:root{--route-color:#b42a63}
:root{font-family:"DM Sans","Noto Sans KR",sans-serif;color:#3e2434;background:#fff8fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b72e69;outline-offset:2px}a{color:inherit;text-decoration:none}.app-shell{max-width:1240px;margin:auto;padding:0 32px}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between}.brand{display:inline-flex;gap:10px;align-items:center;font-size:21px;font-weight:800;letter-spacing:-.06em}.brand-mark{display:grid;place-items:center;width:35px;height:35px;border-radius:12px;background:#b42a63;color:white;font-size:22px;line-height:1}.plus{font-size:19px;vertical-align:-1px;margin-right:3px}.trip-hero{min-height:190px;background:#fbe1ed;border-radius:24px;display:flex;overflow:hidden;position:relative}.hero-content{z-index:1;padding:34px 40px;flex:1;display:flex;flex-direction:column}.eyebrow{font-size:13px;font-weight:800;letter-spacing:.04em;color:#992756;display:flex;align-items:center;gap:8px}.eyebrow-dot{width:7px;height:7px;background:#b42a63;border-radius:50%}.hero-title-row{display:flex;align-items:start;gap:16px}.trip-hero h1{font-size:clamp(27px,3.2vw,40px);line-height:1.25;letter-spacing:-.06em;margin:15px 0 10px;font-weight:800}.hero-meta{font-size:15px;color:#743d59;margin:0}.round-button{width:32px;height:32px;border:0;border-radius:50%;background:#ffffffb8;color:#9d2b59;font-size:18px}.hero-edit{margin-top:20px}.hero-art{width:38%;position:relative;overflow:hidden}.sun{position:absolute;width:168px;height:168px;background:#ffe6b8;border-radius:50%;right:74px;top:36px}.hill{position:absolute;width:500px;height:280px;border-radius:50% 50% 0 0}.hill-back{background:#f4bed6;right:-150px;bottom:-157px;transform:rotate(-17deg)}.hill-front{background:#eaa0c4;right:-90px;bottom:-205px;transform:rotate(17deg)}.plane{position:absolute;top:38px;right:68px;color:#9c2858;font-size:53px;transform:rotate(-18deg)}.sparkle{position:absolute;top:112px;right:255px;color:white;font-size:28px}.planner-heading{display:flex;justify-content:space-between;align-items:end;margin:47px 2px 24px}.section-kicker,.map-kicker{font-size:11px;letter-spacing:.16em;font-weight:800;color:#992756}.planner-heading h2{font-size:26px;letter-spacing:-.055em;margin:7px 0 6px}.planner-heading p{margin:0;color:#765766;font-size:14px}.ghost-button{border:1px solid #deabc3;background:#fff;color:#962253;border-radius:11px;padding:11px 17px;font-weight:800;font-size:14px}.workspace{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:20px;align-items:start}.schedule-panel,.map-panel{border:1px solid #f0dce6;background:white;border-radius:18px;box-shadow:0 5px 28px #5c294508;overflow:hidden}.day-tabs{display:flex;gap:3px;padding:18px 21px 0;overflow-x:auto;scrollbar-width:thin}.day-tab{border:0;background:transparent;color:#765466;min-width:83px;padding:10px 8px 14px;border-bottom:3px solid transparent;white-space:nowrap;text-align:center}.day-tab strong{font-size:14px;display:block}.day-tab small{font-size:12px;display:block;margin-top:4px}.day-tab.active{border-color:#b42a63;color:#a7275a}.day-summary{border-top:1px solid #f3e6ed;display:flex;justify-content:space-between;align-items:center;padding:24px 25px 16px}.day-summary>div{position:relative;padding-left:29px}.summary-icon{position:absolute;left:0;top:0;color:#a75b1e;font-size:18px}.day-summary strong{font-size:17px;letter-spacing:-.04em}.day-summary p{font-size:13px;color:#7c5869;margin:5px 0 0}.spot-count{font-size:12px;font-weight:700;color:#9b2355;background:#fae5ef;border-radius:20px;padding:6px 10px}.route-list{padding:2px 25px 0}.spot-item{display:grid;grid-template-columns:30px minmax(0,1fr) auto;gap:13px;position:relative;padding:0 0 18px}.spot-item:not(:last-child):before{content:"";position:absolute;left:14px;top:31px;bottom:-1px;width:2px;background:#f0ccd9}.route-marker{z-index:1;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#b42a63;color:white;font-size:13px;font-weight:800;box-shadow:0 0 0 4px #f9e3ed}.spot-card{border:1px solid #f1dfe8;border-radius:13px;min-height:80px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:10px}.spot-copy{min-width:0}.spot-copy strong{font-size:15px;letter-spacing:-.04em;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.spot-copy p{color:#795768;font-size:12px;margin:6px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.spot-time{background:#faecf2;border-radius:7px;color:#8e2d58;font-size:11px;padding:5px 7px;font-weight:700;white-space:nowrap}.category-icon{width:29px;height:29px;display:grid;place-items:center;border-radius:8px;background:#fae8f0;font-size:15px;flex:none}.spot-card-main{display:flex;align-items:center;gap:10px;min-width:0}.spot-actions{display:flex;align-items:center;gap:1px}.icon-button{border:0;background:transparent;color:#7c5869;width:29px;height:29px;font-size:15px;border-radius:6px}.icon-button:hover{background:#fbebf3;color:#9b2c59}.icon-button:disabled{opacity:.25;cursor:default}.spot-info{display:flex;align-items:center;gap:8px}.spot-link{font-size:12px;color:#9b2355;text-decoration:underline;white-space:nowrap}.empty-state{text-align:center;padding:36px 10px;color:#785767}.empty-state .empty-emoji{font-size:33px;display:block;margin-bottom:13px}.empty-state strong{display:block;color:#6f3f58;margin-bottom:6px}.empty-state p{font-size:13px;margin:0}.add-card{width:calc(100% - 50px);margin:4px 25px 20px;border:1px dashed #daa5be;background:#fff9fc;border-radius:12px;padding:14px 16px;display:flex;align-items:center;gap:12px;text-align:left;color:#943155}.add-card-icon{background:#fae4ee;width:32px;height:32px;display:grid;place-items:center;border-radius:9px;font-size:20px}.add-card strong{display:block;font-size:14px}.add-card small{display:block;color:#795465;margin-top:2px;font-size:12px}.schedule-footer{border-top:1px solid #f4e6ed;padding:17px 25px 20px}.route-button{width:100%;display:flex;justify-content:center;align-items:center;gap:10px;background:#b42a63;color:#fff;border:0;border-radius:10px;padding:13px;font-size:14px;font-weight:800}.route-button:disabled{opacity:.45;cursor:default}.schedule-footer p{text-align:center;color:#7c576a;font-size:11px;margin:9px 0 0}.map-panel{padding:21px}.map-header{display:flex;justify-content:space-between;align-items:center;margin:0 1px 17px}.map-header h3{font-size:18px;margin:5px 0 0;letter-spacing:-.05em}.map-badge{font-size:11px;font-weight:700;color:#902d58;background:#fbeaf2;border-radius:20px;padding:7px 11px}#map{height:430px;border-radius:13px;background:#f4e7ee;z-index:0}.map-legend{display:flex;justify-content:center;gap:21px;color:#785466;font-size:12px;padding:17px 0 3px}.map-legend span{display:flex;align-items:center;gap:7px}.legend-dot{width:9px;height:9px;background:#b42a63;border-radius:50%}.legend-line{width:19px;height:3px;background:#b42a63;border-radius:3px}.map-pin{width:26px;height:26px;border:2px solid white;background:#b42a63;color:white;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800;box-shadow:0 2px 8px #72284666}.leaflet-div-icon{background:transparent;border:0}.map-unavailable{height:100%;display:grid;place-items:center;text-align:center;padding:30px;color:#765163;font-size:14px}.import-strip{margin:28px 0 53px;border:1px solid #f0d9e5;background:#fbeef5;border-radius:16px;display:flex;align-items:center;gap:16px;padding:21px 24px}.import-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#a7255b;background:#f9dce9;font-size:25px;font-weight:700}.import-strip>div:nth-child(2){flex:1}.import-strip strong{font-size:14px}.import-strip p{font-size:12px;color:#765465;margin:4px 0 0}.import-strip button{border:1px solid #deabc3;border-radius:9px;background:white;color:#932553;padding:10px 16px;font-size:13px;font-weight:800}.site-footer{border-top:1px solid #f3e2ec;padding:24px 0 35px;display:flex;justify-content:space-between;color:#795568;font-size:12px}.site-footer span:first-child{font-weight:800;color:#874664}.modal-backdrop{position:fixed;inset:0;background:#342030a3;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px}.modal-backdrop[hidden]{display:none}.modal{position:relative;width:min(100%,480px);max-height:min(90vh,780px);overflow:auto;background:#fff;border-radius:20px;padding:29px;box-shadow:0 24px 70px #4d243d40}.modal-close{position:absolute;right:21px;top:15px;background:transparent;border:0;color:#795669;font-size:27px}.modal-icon{width:42px;height:42px;display:grid;place-items:center;background:#fbe4ee;color:#a5295b;font-size:23px;border-radius:12px}.modal-icon.coral{background:#ffe7ed;color:#a63860}.modal-icon.mint{background:#f9e2ef}.modal h2{font-size:23px;letter-spacing:-.055em;margin:16px 0 6px}.modal-description{color:#765567;font-size:14px;margin:0 0 24px}.modal form{display:flex;flex-direction:column;gap:15px}.modal label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:800;color:#703854;flex:1}.modal input,.modal select,.modal textarea{width:100%;border:1px solid #ebd2de;border-radius:10px;background:#fff9fc;color:#582c44;padding:12px;font-size:14px;min-height:45px}.modal textarea{resize:vertical;line-height:1.6}.modal input::placeholder,.modal textarea::placeholder{color:#8d6378}.form-row{display:flex;gap:11px}.primary-button{border:0;border-radius:11px;background:#b42a63;color:white;font-weight:800;padding:14px;margin-top:6px}.form-error{margin:0;color:#a72146;font-size:13px}.form-error:empty{display:none}.field-help{margin:-4px 0 0;color:#765469;font-size:12px;line-height:1.5}.info-box{border-radius:10px;padding:13px;background:#fbecf3;color:#75485e;font-size:12px;line-height:1.65}.info-box strong{color:#82375a}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,30px);background:#542c44;color:white;padding:11px 16px;border-radius:10px;font-size:13px;z-index:1100;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:800px){.app-shell{padding:0 16px}.topbar{height:67px}.trip-hero{min-height:172px}.hero-content{padding:26px}.hero-art{width:31%}.sun{right:-30px;top:49px;width:133px;height:133px}.plane{right:10px;top:36px}.sparkle{display:none}.workspace{grid-template-columns:1fr}.map-panel{order:2}.planner-heading{margin:34px 2px 20px}.desktop-add{display:none}.map-panel #map{height:340px}}
@media(max-width:480px){.brand{font-size:19px}.brand-mark{width:32px;height:32px}.trip-hero{border-radius:18px;min-height:164px}.hero-content{padding:24px 20px}.trip-hero h1{font-size:26px;max-width:270px}.hero-meta{font-size:13px;max-width:260px;line-height:1.5}.hero-art{position:absolute;inset:0;width:100%;opacity:.5;pointer-events:none}.hero-art .sun{right:-40px;top:30px}.hero-art .hill-back{right:-300px}.hero-art .hill-front{right:-280px}.hero-art .plane{right:18px;top:25px;font-size:35px}.hero-content{width:100%}.planner-heading h2{font-size:23px}.planner-heading p{font-size:13px;line-height:1.5}.day-tabs{padding:13px 11px 0}.day-tab{min-width:75px}.day-summary{padding:21px 17px 16px}.route-list{padding:2px 17px 0}.spot-item{grid-template-columns:27px minmax(0,1fr) auto;gap:10px}.route-marker{width:27px;height:27px}.spot-item:not(:last-child):before{left:13px}.spot-card{padding:10px;min-height:74px}.spot-card-main{gap:7px}.category-icon{width:25px;height:25px;font-size:13px}.spot-copy strong{font-size:13px}.spot-copy p{font-size:11px}.spot-time{font-size:10px}.spot-actions{flex-direction:column}.icon-button{width:25px;height:23px;font-size:13px}.add-card{width:calc(100% - 34px);margin:4px 17px 17px}.schedule-footer{padding:16px 17px}.map-panel{padding:16px}.import-strip{padding:17px 15px;gap:11px}.import-icon{width:35px;height:35px;flex:none}.import-strip strong{font-size:13px}.import-strip p{font-size:11px;line-height:1.4}.import-strip button{padding:9px 10px;white-space:nowrap}.modal{padding:23px 20px}.form-row{gap:8px}}
.topbar { gap: 8px; }
.topbar .brand { flex: none; }
.header-actions { display: flex; align-items: center; gap: 9px; min-width: 0; }
.header-actions > :is(select, button) {
  height: 44px;
  margin: 0;
  border: 1px solid #ebd2de;
  border-radius: 12px;
  background: white;
  color: #76304f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.header-actions > button {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 16px;
  white-space: nowrap;
  box-shadow: 0 2px 7px #5c29450a;
}
#trip-switcher { max-width: 185px; min-width: 0; padding: 0 12px; text-overflow: ellipsis; }
#trip-switcher option { color: #3e2434; }
@media (max-width: 480px) {
  .header-actions { gap: 6px; }
  .header-actions > :is(select, button) { font-size: 12px; }
  .header-actions > button, #trip-switcher { padding: 0 9px; }
  #trip-switcher { max-width: 83px; }
  .plus { font-size: 16px; margin-right: 3px; }
}
[hidden]{display:none!important}.cloud-empty{margin:18px 0 36px;padding:28px;border:1px solid #ebd2de;border-radius:18px;background:white}.cloud-empty h1{font-size:23px;margin:0 0 10px}.cloud-empty p,#member-form p{color:#703854;font-size:14px;line-height:1.6}.account-status{font-size:14px;color:#76304f;overflow-wrap:anywhere}.account-status:empty{display:none}#account-details>.ghost-button{margin:0 5px 6px 0}#member-form{margin-top:12px}
.map-route{stroke:var(--route-color)}
.workspace.no-map { grid-template-columns: minmax(0, 1fr); }
.login-panel { max-width: 400px; margin: 32px auto; padding: 28px; border: 1px solid #ebd2de; border-radius: 18px; background: #fff; }
.login-panel h1 { margin: 0 0 22px; font-size: 24px; }
.login-panel form, .login-panel label { display: flex; flex-direction: column; gap: 10px; }
.login-panel form { gap: 16px; }
.login-panel label { font-weight: 700; }
.login-panel input { min-height: 46px; padding: 10px 12px; color: #3e2434; border: 1px solid #ebd2de; border-radius: 10px; background: #fff9fc; }
.login-panel button:disabled { opacity: .6; cursor: default; }
#trip-load-error { margin: 12px 0; }
/* Itinerary editing */
.planner-heading { gap: 12px; }
.planner-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.planner-actions button { min-height: 44px; white-space: nowrap; }
.spot-edit-button { min-height: 36px; padding: 0 8px; border: 0; background: #fae8f0; color: #962253; border-radius: 8px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.spot-edit-button:hover { background: #f6d7e6; }
.category-fields { display: grid; gap: 8px; }
.category-fields:empty { display: none; }
.category-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.category-row button { padding-inline: 12px; }
#add-category:disabled { opacity: .5; cursor: default; }
@media (max-width: 480px) {
  .planner-actions button { padding-inline: 11px; }
  .spot-edit-button { min-height: 44px; min-width: 44px; }
}
