:root {
  --panel-top: 82px;
  --ink: #20231f;
  --muted: #7f837d;
  --line: #e8e6df;
  --cream: #f7f4ee;
  --paper: #fffefa;
  --green: #286b54;
  --green-dark: #1d4f3e;
  --orange: #df7956;
  --shadow: 0 18px 50px rgba(52, 52, 41, .12);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "Noto Sans KR", sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: relative; z-index: 4; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; background: rgba(255,254,250,.92); border-bottom: 1px solid var(--line); box-shadow: 0 5px 20px rgba(56,63,50,.06); backdrop-filter: blur(14px); }
.brand { display: flex; gap: 10px; align-items: center; font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; color: var(--paper); background: linear-gradient(145deg, #55a37d, var(--green-dark)); border: 2px solid #e7f3e7; border-radius: 11px 11px 11px 4px; box-shadow: 3px 4px 0 #b5cbb7, 0 8px 15px rgba(40,107,84,.22); font-family: Georgia, serif; font-size: 23px; line-height: 1; transform: rotate(-5deg); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.save-status { color: var(--muted); font-size: 12px; margin-right: 12px; }
.ghost-button, .primary-button, .text-button, .danger-button { border: 0; border-radius: 10px; background: transparent; font-weight: 700; }
.ghost-button { color: #5d625d; padding: 11px 13px; }
.ghost-button:hover, .text-button:hover { background: #f1efe9; }
.primary-button { color: white; background: linear-gradient(145deg, #3b8669, var(--green-dark)); padding: 12px 17px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 0 #153d30, 0 10px 18px rgba(40,107,84,.18); transform: translateY(-2px); }
.primary-button:hover { background: var(--green-dark); }
.primary-button:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 2px 0 #153d30; }
.primary-button.compact { padding: 10px 18px; border-radius: 9px; }
.workspace { flex: 1; display: grid; grid-template-columns: 344px minmax(420px, 1fr) 340px; min-height: calc(100vh - 76px); }
.route-panel, .detail-panel { background: var(--paper); padding: 34px 26px; }
.route-panel { border-right: 1px solid var(--line); }
.detail-panel { border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.eyebrow, .section-label, .field-label { color: var(--green); font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 10px; letter-spacing: .16em; }
.plan-title { width: 100%; padding: 5px 0 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 25px; font-weight: 800; letter-spacing: -.06em; }
.subtitle { margin: 8px 0 25px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.search-box { display: flex; align-items: center; height: 47px; padding: 0 9px 0 13px; border: 1px solid #dfe5dc; border-radius: 15px; background: linear-gradient(145deg, #fffefa, #eef4ed); box-shadow: inset 0 1px 0 white, 0 5px 0 #dbe5db, 0 12px 20px rgba(71,88,72,.08); }
.search-icon { color: var(--green); font-size: 26px; transform: translateY(-2px) rotate(-20deg); }
.search-box input { min-width: 0; flex: 1; padding: 0 9px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
.search-box button { padding: 7px 8px; border: 0; color: var(--green); background: transparent; font-weight: 800; font-size: 12px; }
.search-results { position: relative; z-index: 3; margin-top: 6px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow); }
.search-result { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 0; border-bottom: 1px solid #f0eee8; background: white; text-align: left; width: 100%; }
.search-result:last-child { border: 0; }
.search-result:hover { background: #faf7ef; }
.search-result b { display: block; font-size: 12px; }
.search-result span { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.add-result { align-self: center; color: var(--green); font-weight: 800; }
.route-heading { display: flex; align-items: end; justify-content: space-between; margin: 31px 0 14px; }
.route-heading strong { display: block; margin-top: 5px; font-size: 16px; letter-spacing: -.04em; }
.text-button { padding: 5px; color: var(--green); font-size: 11px; }
.place-list { display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0; list-style: none; }
.place-item { position: relative; display: grid; grid-template-columns: 30px 1fr 20px; gap: 10px; align-items: center; padding: 11px 10px 11px 8px; border: 1px solid transparent; border-radius: 13px; transition: .2s ease; cursor: pointer; }
.place-item:hover { background: #faf8f2; }
.place-item.selected { background: linear-gradient(145deg, #f3faf1, #e7f1e8); border-color: #d6e6d7; box-shadow: inset 0 1px 0 white, 0 4px 0 #d5e2d5, 0 8px 16px rgba(70,99,70,.08); }
.place-index { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--green); background: linear-gradient(145deg, #f8fff5, #dce9da); border: 1px solid #d0dfd0; border-radius: 10px 10px 10px 4px; box-shadow: inset 0 1px 0 white, 2px 3px 0 #c4d4c4; font: 700 11px "DM Sans", sans-serif; transform: rotate(-4deg); }
.place-item.selected .place-index { color: white; background: linear-gradient(145deg, #4d9b76, var(--green)); border-color: #286b54; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 2px 3px 0 #174b3a; }
.place-text b { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.place-text span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 3px; color: var(--muted); font-size: 10px; }
.place-time { color: var(--green); font-style: normal; font-weight: 800; }
.place-arrow { color: #a9aea8; font-size: 20px; }
.segment-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center; padding: 5px 10px 7px 39px; color: var(--muted); font-size: 9px; }
.segment-label { display: flex; gap: 6px; align-items: center; min-width: 0; }
.segment-label span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.segment-line { width: 1px; height: 19px; margin-left: 4px; background: #cfd8cd; }
.mode-switch { display: flex; gap: 3px; }
.mode-button { padding: 4px 6px; border: 1px solid #e2e7df; border-radius: 6px; color: #8b938b; background: #fcfbf8; font-size: 9px; }
.mode-button.active.car { border-color: #efc4b6; color: #ba654d; background: #fff5f1; }
.mode-button.active.transit { border-color: #bfd3ee; color: #376ea6; background: #f1f7ff; }
.segment-meta { grid-column: 1 / -1; margin-left: 11px; color: #a1a79f; font-size: 9px; }
.timeline-card { margin-top: 18px; padding: 14px 15px 11px; border: 1px solid #e9e3d7; border-radius: 15px; background: linear-gradient(145deg, #fffdf5, #f7efe0); box-shadow: inset 0 1px 0 white, 0 5px 0 #e8dfd0, 0 12px 20px rgba(104,85,55,.08); }
.timeline-card #plan-date { color: var(--muted); font: 10px "DM Sans", sans-serif; }
.schedule-list { display: flex; flex-direction: column; margin-top: 10px; }
.schedule-item { display: grid; grid-template-columns: 39px 1fr; gap: 8px; min-height: 37px; }
.schedule-time { color: var(--green); font: 700 11px "DM Sans", sans-serif; }
.schedule-copy { position: relative; padding: 0 0 10px 12px; border-left: 1px solid #dfd4bf; cursor: pointer; }
.schedule-copy::before { content: ''; position: absolute; left: -4px; top: 3px; width: 6px; height: 6px; border: 2px solid #fffaf1; border-radius: 50%; background: var(--orange); }
.schedule-copy b { display: block; color: var(--ink); font-size: 10px; }
.schedule-copy span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.tip-card { display: flex; gap: 10px; align-items: flex-start; margin-top: 25px; padding: 13px; border-radius: 13px; color: #6c776e; background: linear-gradient(145deg, #fbfaf4, #ecebe1); border: 1px solid #e8e6db; box-shadow: 0 4px 0 #dcdcd0, 0 10px 18px rgba(78,77,62,.08); font-size: 10px; line-height: 1.7; }
.tip-card b { color: var(--ink); font-size: 11px; }
.tip-icon { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; color: #fff8ed; background: linear-gradient(145deg, #f3a27f, var(--orange)); border-radius: 9px 9px 9px 3px; box-shadow: 2px 3px 0 #c96147, inset 0 1px 0 rgba(255,255,255,.45); font-size: 15px; transform: rotate(-5deg); }
.content-card { margin-top: 14px; padding: 15px; border: 1px solid #dfe9df; border-radius: 15px; background: linear-gradient(145deg, #f5faf3, #fbfaf5); }
.content-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.content-card-top #content-count { color: var(--muted); font: 10px "DM Sans", sans-serif; }
.content-card h3 { margin: 9px 0 6px; color: var(--ink); font-size: 15px; letter-spacing: -.05em; }
.content-card p { margin: 0; color: #68736a; font-size: 10px; line-height: 1.7; }
.story-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.story-tag { padding: 4px 7px; border-radius: 99px; color: var(--green); background: #e4f0e3; font-size: 9px; }
.content-copy { width: 100%; margin-top: 12px; padding: 8px 9px; border: 1px solid #cbdcca; border-radius: 8px; color: var(--green); background: transparent; font-size: 10px; font-weight: 800; }
.content-copy:hover { color: white; background: var(--green); }
.map-section { position: relative; min-width: 0; background: #dbe1d8; }
.map-canvas { position: absolute; inset: 0 0 28px; overflow: hidden; background: #dae2d8; }
#map { min-height: 420px; }
.map-fallback { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 70% 30%, #e9ebdf 0 18%, transparent 18.2%), radial-gradient(circle at 20% 80%, #d0dbd0 0 13%, transparent 13.2%), linear-gradient(122deg, #e6e9df, #d1dbd1); }
.fallback-grid { position: absolute; inset: -10%; opacity: .35; background-image: linear-gradient(25deg, transparent 48%, #b4c0b3 49%, transparent 50%), linear-gradient(116deg, transparent 48%, #c0c9bd 49%, transparent 50%); background-size: 150px 90px, 210px 170px; transform: rotate(-7deg); }
.fallback-route { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .78; }
.fallback-route path { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 11 8; }
.fallback-route circle { fill: var(--paper); stroke: var(--green); stroke-width: 5; }
.fallback-copy { position: absolute; top: 45%; left: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 25px; border-radius: 18px; color: #5d665d; background: rgba(255,254,250,.78); box-shadow: 0 10px 30px rgba(52,52,41,.08); text-align: center; white-space: nowrap; backdrop-filter: blur(5px); }
.fallback-copy b { color: var(--ink); font-size: 14px; }
.fallback-copy span:last-child { font-size: 10px; }
.map-pin-large { color: var(--orange); font-size: 34px; }
.map-overlay { position: absolute; z-index: 2; border-radius: 13px; background: rgba(255,254,250,.88); box-shadow: 0 10px 25px rgba(52,52,41,.10); backdrop-filter: blur(9px); }
.map-title { top: 26px; left: 28px; display: flex; flex-direction: column; gap: 3px; padding: 15px 17px; }
.map-title b { font-size: 21px; letter-spacing: -.07em; }
.map-title span:last-child { color: var(--muted); font-size: 10px; }
.route-pill { right: 28px; bottom: 23px; display: flex; gap: 8px; align-items: center; padding: 11px 14px; color: var(--ink); font-size: 11px; }
.route-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px #f6dfd5; }
.map-controls { position: absolute; z-index: 2; right: 28px; top: 27px; display: flex; flex-direction: column; overflow: hidden; border-radius: 11px; box-shadow: 0 8px 18px rgba(52,52,41,.12); }
.map-controls button { width: 37px; height: 35px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: rgba(255,254,250,.92); font-size: 21px; }
.map-controls button:last-child { border: 0; }
.map-footer { position: absolute; bottom: 0; left: 0; right: 0; height: 28px; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; color: #768076; background: rgba(255,254,250,.8); font-size: 10px; }
.map-order-pin { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 3px solid white; border-radius: 50% 50% 50% 0; color: white; background: var(--green); box-shadow: 0 4px 10px rgba(33,70,53,.28); font: 800 10px "DM Sans", sans-serif; transform: rotate(-45deg); cursor: pointer; }
.map-order-pin span { transform: rotate(45deg); }
.map-order-pin.selected { background: var(--orange); }
.map-route-label { display: flex; flex-direction: column; gap: 3px; min-width: 132px; max-width: 190px; padding: 7px 9px; border: 1px solid rgba(255,255,255,.9); border-left: 3px solid var(--orange); border-radius: 8px; color: var(--ink); background: rgba(255,254,250,.94); box-shadow: 0 4px 12px rgba(52,52,41,.16); font-size: 9px; line-height: 1.25; pointer-events: none; }
.map-route-label b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.map-route-label span { color: #8a746b; font: 700 9px "DM Sans", sans-serif; }
.map-route-label.transit { border-left-color: #3d78b8; }
.map-route-label.transit span { color: #376ea6; }
.legend-line { display: inline-block; width: 19px; margin: 0 3px 3px 7px; border-top: 2px solid var(--orange); }
.legend-line:first-child { margin-left: 0; }
.legend-line.transit { border-top-color: #3d78b8; border-top-style: dashed; }
.detail-header { display: flex; justify-content: space-between; gap: 10px; }
.detail-header h2 { margin: 7px 0 4px; font-size: 22px; letter-spacing: -.06em; }
.detail-header p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.number-badge { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; color: var(--green); background: #e8f0e6; font: 700 12px "DM Sans", sans-serif; }
.detail-divider { height: 1px; margin: 26px 0 23px; background: var(--line); }
.field-label { display: block; margin-bottom: 10px; color: #a0a49d; }
#memo-input { width: 100%; height: 150px; resize: vertical; padding: 13px; border: 1px solid var(--line); outline: 0; border-radius: 12px; color: var(--ink); background: #fcfbf8; font-size: 12px; line-height: 1.7; }
#memo-input:focus { border-color: #abc7b0; box-shadow: 0 0 0 3px #eaf3ea; }
.photo-heading { display: flex; justify-content: space-between; margin-top: 27px; }
.photo-heading #photo-count { color: var(--muted); font: 11px "DM Sans", sans-serif; }
.photo-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 92px; border: 1px dashed #c9d0c7; border-radius: 12px; color: var(--muted); background: #fcfbf8; cursor: pointer; }
.photo-drop:hover { border-color: var(--green); background: #f8fbf7; }
.photo-drop b { color: var(--ink); font-size: 12px; }
.photo-drop span:last-child { font-size: 10px; }
.camera-icon { display: block; color: var(--green); font-size: 22px; line-height: 1; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.photo-tile { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #eee; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove { position: absolute; top: 4px; right: 4px; width: 21px; height: 21px; border: 0; border-radius: 50%; color: white; background: rgba(0,0,0,.55); font-size: 13px; }
.insight-card { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.insight-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.insight-heading .field-label { margin: 0; }
.insight-caption { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.insight-heading .text-button { flex: 0 0 auto; padding-top: 0; }
.insight-heading .text-button:disabled { color: #a6aaa4; cursor: wait; }
.insight-state { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.insight-summary { margin: 10px 0 0; color: #68736a; font-size: 11px; line-height: 1.7; }
.insight-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.insight-chip { padding: 4px 6px; border-radius: 7px; color: #657468; background: #eef3ed; font-size: 9px; line-height: 1.35; }
.insight-sources { display: flex; flex-direction: column; gap: 5px; margin-top: 11px; }
.insight-sources a { overflow: hidden; color: var(--green); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.insight-sources a:hover { text-decoration: underline; }
.detail-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 22px; }
.danger-button { padding: 8px 0; color: #a56b5d; font-size: 11px; }
.danger-button:hover { color: #8b4031; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 11px 17px; border-radius: 30px; color: white; background: #27362d; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .22s ease; font-size: 12px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1100px) { .workspace { grid-template-columns: 300px minmax(380px, 1fr); } .detail-panel { grid-column: 1 / -1; border: 0; border-top: 1px solid var(--line); min-height: 360px; } .detail-panel .detail-bottom { margin-top: 22px; } }
@media (max-width: 760px) { .topbar { height: 64px; padding: 0 17px; } .save-status, .ghost-button { display: none; } .workspace { display: flex; flex-direction: column; min-height: auto; } .route-panel, .detail-panel { padding: 25px 18px; border: 0; } .map-section { min-height: 430px; order: -1; } .map-canvas { position: absolute; inset: 0 0 28px; } .place-list { display: grid; grid-template-columns: 1fr 1fr; } .segment-item { grid-column: 1 / -1; padding-left: 8px; } .tip-card { display: none; } .timeline-card { margin-top: 18px; } .content-card { margin-top: 18px; } .detail-panel { min-height: 470px; } .fallback-copy { white-space: normal; width: 210px; } }
