:root {
  --ink: #1d2b36; --muted: #667785; --line: #e7dfd0; --sand: #fff8ec; --paper: #ffffff;
  --deep: #0b3c49; --ocean: #19a7ce; --palm: #2a9d8f; --coral: #ff6f59; --sun: #ffc857; --berry: #9b5de5;
  --shadow: 0 6px 24px rgba(11, 60, 73, .10); --shadow-sm: 0 2px 8px rgba(11, 60, 73, .08);
  --radius: 18px;
  --font: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Fraunces', Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--sand); -webkit-font-smoothing: antialiased; line-height: 1.45; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.01em; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn { border: 0; border-radius: 999px; padding: 11px 22px; font-weight: 800; background: var(--paper); box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s, background .12s; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn.primary { background: linear-gradient(135deg, var(--coral), #ff9a5a); color: #fff; box-shadow: 0 8px 20px rgba(255, 111, 89, .35); }
.btn.deep { background: var(--deep); color: #fff; }
.btn.ghost { background: transparent; box-shadow: none; border: 2px solid var(--line); }
.btn.small { padding: 7px 14px; font-size: .86rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { border: 0; background: transparent; width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; }
.icon-btn:hover { background: rgba(0, 0, 0, .07); }

/* ---------- welcome ---------- */
.welcome { min-height: 100vh; position: relative; overflow: hidden; display: grid; place-items: center; padding: 32px 20px; color: #fff;
  background: radial-gradient(1200px 600px at 75% 15%, #ffd166 0, rgba(255, 209, 102, 0) 55%), linear-gradient(180deg, #ff9a6b 0%, #ff6f59 35%, #8e4b9c 70%, #0b3c49 100%); }
.welcome .sun { position: absolute; width: 360px; height: 360px; border-radius: 50%; right: 8%; top: 8%; background: radial-gradient(circle, #fff3b0, #ffd166 60%, rgba(255, 209, 102, 0) 72%); filter: blur(2px); opacity: .9; animation: float 9s ease-in-out infinite; }
.welcome .waves { position: absolute; left: 0; right: 0; bottom: 0; height: 28vh; }
.welcome .palms { position: absolute; inset: auto 0 18vh 0; text-align: center; font-size: 4rem; opacity: .28; letter-spacing: 1.5rem; pointer-events: none; }
.welcome-card { position: relative; max-width: 720px; text-align: center; z-index: 2; }
.welcome h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.05; text-shadow: 0 4px 30px rgba(0, 0, 0, .25); }
.welcome p.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); margin: 18px auto 30px; max-width: 560px; opacity: .95; }
.welcome .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.welcome .btn { padding: 15px 30px; font-size: 1.05rem; }
.welcome .pills { margin-top: 34px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pill { background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .9rem; }
@keyframes float { 50% { transform: translateY(14px); } }

/* ---------- wizard ---------- */
.wiz { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #e6f6fa 0, var(--sand) 320px); }
.wiz-top { padding: 18px 24px 6px; max-width: 1040px; width: 100%; margin: 0 auto; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; color: var(--deep); }
.steps { display: flex; align-items: center; margin: 18px 0 8px; gap: 0; }
.step { display: flex; align-items: center; flex: 1; min-width: 0; }
.step:last-child { flex: 0; }
.step .dot { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; background: #fff; border: 2px solid var(--line); color: var(--muted); transition: all .25s; cursor: default; }
.step.done .dot { background: var(--palm); border-color: var(--palm); color: #fff; cursor: pointer; }
.step.current .dot { background: var(--coral); border-color: var(--coral); color: #fff; box-shadow: 0 0 0 6px rgba(255, 111, 89, .18); }
.step .label { margin-left: 8px; font-weight: 700; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.step.current .label { color: var(--ink); }
.step .bar { height: 3px; background: var(--line); flex: 1; margin: 0 10px; border-radius: 3px; overflow: hidden; }
.step .bar i { display: block; height: 100%; width: 0; background: var(--palm); transition: width .4s; }
.step.done .bar i { width: 100%; }
.wiz-body { flex: 1; max-width: 1040px; width: 100%; margin: 0 auto; padding: 10px 24px 120px; }
.panel { background: var(--paper); border-radius: 26px; box-shadow: var(--shadow); padding: 34px; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.panel .sub { color: var(--muted); margin: 6px 0 26px; font-size: 1.05rem; }
.wiz-foot { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255, 248, 236, .92); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 14px 24px; z-index: 20; }
.wiz-foot > div { max-width: 1040px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wiz-foot .hint { color: var(--coral); font-weight: 700; font-size: .9rem; }

.field { margin-bottom: 22px; }
.field > label, .field > .lbl { display: block; font-weight: 800; margin-bottom: 8px; font-size: .92rem; text-transform: uppercase; letter-spacing: .05em; color: var(--deep); }
.text-in, .date-in, select.text-in { width: 100%; padding: 13px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.text-in:focus, .date-in:focus { border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(25, 167, 206, .15); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stepper { display: flex; align-items: center; gap: 14px; background: #faf6ec; border-radius: 18px; padding: 14px 18px; }
.stepper .n { font-family: var(--display); font-size: 2rem; min-width: 38px; text-align: center; }
.stepper .who { flex: 1; font-weight: 800; }
.stepper .who small { display: block; font-weight: 600; color: var(--muted); }
.round { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-size: 1.3rem; font-weight: 800; line-height: 1; }
.round:hover { border-color: var(--coral); color: var(--coral); }

.choice { border: 2px solid var(--line); border-radius: 18px; padding: 16px; background: #fff; text-align: left; transition: all .15s; position: relative; }
.choice:hover { border-color: var(--ocean); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.choice.on { border-color: var(--coral); background: #fff4f1; box-shadow: 0 0 0 4px rgba(255, 111, 89, .12); }
.choice .em { font-size: 1.8rem; display: block; margin-bottom: 6px; }
.choice b { display: block; }
.choice small { color: var(--muted); font-weight: 600; }
.choice.on::after { content: '✓'; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--coral); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .9rem; }
.chip:hover { border-color: var(--ocean); }
.chip.on { background: var(--deep); border-color: var(--deep); color: #fff; }
.banner { background: linear-gradient(135deg, #e6f6fa, #fff4dd); border-radius: 16px; padding: 14px 18px; font-weight: 700; margin-top: 4px; display: flex; gap: 10px; align-items: center; }
.err { color: #c0392b; font-weight: 700; margin-top: 8px; }

.hotel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; max-height: 52vh; overflow: auto; padding: 4px 6px 10px 4px; }
.hotel { border: 2px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; text-align: left; padding: 0; transition: all .15s; position: relative; }
.hotel:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hotel.on { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255, 111, 89, .14); }
.hotel .banner-img { height: 74px; display: flex; align-items: flex-end; justify-content: space-between; padding: 8px 12px; color: #fff; font-weight: 800; font-size: .8rem; }
.hotel .body { padding: 12px 14px 14px; }
.hotel .body b { display: block; font-size: 1rem; line-height: 1.25; }
.hotel .body p { margin: 6px 0 0; font-size: .85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hotel.on::after { content: '✓ Your hotel'; position: absolute; top: 10px; right: 10px; background: var(--coral); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .75rem; font-weight: 800; }
.search { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search .text-in { max-width: 320px; }

.daytypes { display: flex; flex-direction: column; gap: 12px; }
.daytype { display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 18px; background: #faf6ec; }
.daytype .dt-date b { font-family: var(--display); font-size: 1.1rem; display: block; }
.daytype .tag { display: inline-block; font-size: .72rem; font-weight: 800; background: var(--deep); color: #fff; padding: 2px 9px; border-radius: 999px; margin-top: 4px; }
.daytype .chips .chip { font-size: .85rem; padding: 6px 12px; }
.daytype .chip.on.t-pool { background: var(--ocean); border-color: var(--ocean); }
.daytype .chip.on.t-shopping { background: var(--berry); border-color: var(--berry); }
.daytype .chip.on.t-free { background: var(--palm); border-color: var(--palm); }
.daytype .chip.on.t-auto { background: var(--coral); border-color: var(--coral); }

.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 14px; max-height: 50vh; overflow: auto; padding: 4px; }
.pick { border: 2px solid var(--line); background: #fff; border-radius: 16px; padding: 12px 14px; text-align: left; position: relative; display: flex; gap: 12px; }
.pick:hover { border-color: var(--ocean); }
.pick.on { border-color: var(--coral); background: #fff4f1; }
.pick .em { font-size: 1.6rem; }
.pick b { display: block; line-height: 1.2; }
.pick small { color: var(--muted); font-weight: 600; }
.pick.on::after { content: '✓'; position: absolute; top: 8px; right: 10px; color: var(--coral); font-weight: 800; }
.tabs { display: flex; gap: 6px; background: #faf6ec; padding: 5px; border-radius: 999px; width: fit-content; }
.tab { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font-weight: 800; color: var(--muted); }
.tab.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.review { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.tile { background: #faf6ec; border-radius: 18px; padding: 16px 18px; }
.tile small { display: block; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--muted); font-size: .72rem; }
.tile b { font-size: 1.1rem; display: block; margin-top: 4px; }
.building { position: fixed; inset: 0; background: linear-gradient(160deg, #0b3c49, #19a7ce); color: #fff; z-index: 100; display: grid; place-items: center; text-align: center; }
.building .spin { font-size: 4rem; animation: bob 1.2s ease-in-out infinite; }
.building h2 { margin: 12px 0 6px; font-size: 2rem; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(8deg); } }

/* ---------- planner ---------- */
.planner { height: 100vh; display: flex; flex-direction: column; }
.ptop { background: linear-gradient(120deg, var(--deep), #156b7f 60%, #19a7ce); color: #fff; padding: 12px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; z-index: 10; }
.ptop .ttl { min-width: 0; flex: 1 1 260px; }
.ptop h1 { font-size: 1.45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptop .meta { font-size: .86rem; opacity: .9; font-weight: 700; }
.ptop .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ptop .btn { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; padding: 8px 14px; font-size: .88rem; }
.ptop .btn:hover { background: rgba(255, 255, 255, .28); }
.ptop .btn.on { background: #fff; color: var(--deep); }
.seg { display: inline-flex; background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; color: #fff; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: .85rem; }
.seg button.on { background: #fff; color: var(--deep); }
.summary { display: flex; gap: 10px; padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--line); overflow-x: auto; }
.stat { display: flex; align-items: center; gap: 8px; background: var(--sand); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: .86rem; white-space: nowrap; }
.pmain { flex: 1; display: flex; min-height: 0; position: relative; }
.board { flex: 1; display: flex; gap: 16px; overflow: auto; padding: 18px 20px 30px; align-items: flex-start; scroll-snap-type: x proximity; }
.col { flex: 0 0 330px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 22px; padding: 12px; scroll-snap-align: start; max-height: 100%; display: flex; flex-direction: column; transition: box-shadow .15s, background .15s; }
.col.over { box-shadow: 0 0 0 3px var(--ocean), var(--shadow); background: #fff; }
.col-head { padding: 6px 6px 10px; }
.col-head .row1 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.col-head .dn { font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.col-head .dd { font-weight: 800; color: var(--muted); font-size: .85rem; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.badge { font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: #eef3f5; color: var(--deep); }
.badge.warn { background: #ffe9e4; color: #c0392b; }
.badge.travel { background: #e9eefb; color: #3b55b5; }
.col-tools { display: flex; gap: 6px; align-items: center; }
.col-tools select { flex: 1; min-width: 0; border: 2px solid var(--line); border-radius: 999px; padding: 5px 10px; font-weight: 800; font-size: .82rem; background: #fff; }
.col-stats { font-size: .78rem; color: var(--muted); font-weight: 700; margin-top: 6px; }
.items { overflow-y: auto; padding: 4px 2px 6px; min-height: 80px; flex: 1; }
.card { display: flex; gap: 10px; background: #fff; border-radius: 16px; padding: 10px 10px 10px 12px; margin: 0; box-shadow: var(--shadow-sm); border-left: 5px solid var(--c, var(--ocean)); position: relative; cursor: grab; transition: transform .12s, box-shadow .12s, opacity .12s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.card.locked { cursor: default; background: #f6f8fb; }
.card.dragging { opacity: .35; }
.card .time { flex: none; width: 62px; font-size: .74rem; font-weight: 800; color: var(--muted); line-height: 1.25; }
.card .time b { display: block; color: var(--ink); font-size: .82rem; }
.card .ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: color-mix(in srgb, var(--c, #19a7ce) 16%, white); }
.card .tx { min-width: 0; flex: 1; }
.card .tx b { display: block; font-size: .93rem; line-height: 1.22; }
.card .tx small { color: var(--muted); font-weight: 600; font-size: .78rem; display: block; margin-top: 2px; }
.card .x { position: absolute; top: 4px; right: 4px; opacity: 0; width: 24px; height: 24px; font-size: .8rem; }
.card:hover .x { opacity: 1; }
.conn { font-size: .74rem; font-weight: 700; color: var(--muted); padding: 3px 0 3px 78px; display: flex; align-items: center; gap: 6px; }
.conn::before { content: ''; width: 2px; height: 14px; background: repeating-linear-gradient(var(--line) 0 3px, transparent 3px 6px); margin-right: 4px; }
.drop-line { height: 4px; border-radius: 4px; background: var(--ocean); margin: 3px 0; box-shadow: 0 0 10px rgba(25, 167, 206, .6); }
.empty { text-align: center; color: var(--muted); font-weight: 700; padding: 26px 10px; border: 2px dashed var(--line); border-radius: 16px; }
.col-foot { padding-top: 6px; }
.col-foot .btn { width: 100%; justify-content: center; }

.drawer { width: 400px; max-width: 100vw; background: #fff; border-left: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(11, 60, 73, .08); z-index: 8; }
.drawer-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.15rem; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.drawer .tabs { width: 100%; }
.drawer .tab { flex: 1; padding: 7px 4px; font-size: .84rem; }
.drawer-list { flex: 1; overflow: auto; padding: 10px 12px 24px; }
.rowi { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 8px; cursor: grab; background: #fff; }
.rowi:hover { border-color: var(--ocean); box-shadow: var(--shadow-sm); }
.rowi .ic { font-size: 1.3rem; width: 34px; text-align: center; }
.rowi .tx { flex: 1; min-width: 0; }
.rowi .tx b { font-size: .88rem; display: block; line-height: 1.2; }
.rowi .tx small { color: var(--muted); font-weight: 600; font-size: .75rem; }
.rowi .add { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--deep); color: #fff; font-weight: 800; font-size: 1.1rem; flex: none; }
.rowi .add:hover { background: var(--coral); }
.inplan { font-size: .7rem; font-weight: 800; background: #e6f6f1; color: #1c7a6d; border-radius: 999px; padding: 1px 8px; margin-left: 4px; white-space: nowrap; }
.dropzone-note { text-align: center; padding: 18px; border: 2px dashed var(--line); border-radius: 16px; color: var(--muted); font-weight: 700; margin-bottom: 10px; }
.drawer-list.over { background: #eef9fc; }
.trash { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 120px); background: #c0392b; color: #fff; padding: 14px 28px; border-radius: 999px; font-weight: 800; z-index: 60; transition: transform .2s; box-shadow: 0 10px 30px rgba(192, 57, 43, .4); }
body.is-dragging .trash { transform: translate(-50%, 0); }
.trash.over { background: #8e1f14; transform: translate(-50%, -4px) scale(1.06); }

.dayview { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.daystrip { display: flex; gap: 8px; padding: 12px 20px; overflow-x: auto; background: rgba(255, 255, 255, .6); border-bottom: 1px solid var(--line); }
.dchip { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 6px 12px; font-weight: 800; font-size: .82rem; text-align: center; white-space: nowrap; }
.dchip small { display: block; color: var(--muted); font-weight: 700; }
.dchip.on { background: var(--deep); border-color: var(--deep); color: #fff; }
.dchip.on small { color: #bfe3ee; }
.dchip.over { border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(25, 167, 206, .3); }
.daybody { flex: 1; display: grid; grid-template-columns: minmax(360px, 480px) 1fr; gap: 16px; padding: 16px 20px 24px; min-height: 0; }
.daybody .col { flex: none; width: auto; max-height: none; height: 100%; }
.mapwrap { isolation: isolate; z-index: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #dfeef3; min-height: 320px; position: relative; }
#map { position: absolute; inset: 0; }
.nomap { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 20px; font-weight: 700; }
.pin { width: 28px; height: 28px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 800; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); font-size: .8rem; }
.pin.h { background: var(--deep); }

/* ---------- modal / menu / toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(11, 60, 73, .5); backdrop-filter: blur(3px); z-index: 50; display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 26px; max-width: 560px; width: 100%; max-height: 92vh; overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: rise .25s ease both; }
.modal .mh { padding: 26px 28px 18px; color: #fff; position: relative; background: linear-gradient(135deg, var(--c, var(--ocean)), color-mix(in srgb, var(--c, var(--ocean)) 60%, #0b3c49)); }
.modal .mh .big { font-size: 2.4rem; }
.modal .mh h2 { font-size: 1.6rem; margin-top: 4px; }
.modal .mh .close { position: absolute; top: 14px; right: 14px; color: #fff; }
.modal .mb { padding: 22px 28px 26px; }
.modal .mb p { margin: 0 0 14px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.kv div { background: #faf6ec; border-radius: 14px; padding: 10px 14px; }
.kv small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; color: var(--muted); }
.kv b { font-size: .98rem; }
.mrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.menu { position: fixed; z-index: 70; background: #fff; border-radius: 16px; box-shadow: 0 14px 40px rgba(0, 0, 0, .25); padding: 6px; min-width: 210px; max-height: 60vh; overflow: auto; animation: fade .12s; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 14px; border-radius: 10px; font-weight: 700; }
.menu button:hover { background: var(--sand); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.menu .mh2 { padding: 6px 14px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
#toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); opacity: 0; background: var(--deep); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; z-index: 90; transition: all .25s; pointer-events: none; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); }
#toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast button { background: transparent; border: 0; color: var(--sun); font-weight: 800; text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .panel { padding: 22px 18px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .step .label, .step .bar { display: none; }
  .step { flex: none; margin-right: 8px; }
  .steps { overflow-x: auto; }
  .daytype { grid-template-columns: 1fr; }
  .drawer { position: absolute; right: 0; top: 0; bottom: 0; }
  .daybody { grid-template-columns: 1fr; overflow: auto; }
  .daybody .col { height: auto; }
  .mapwrap { min-height: 300px; }
  .col { flex-basis: 86vw; }
}

/* ---------- print ---------- */
@media print {
  body { background: #fff; }
  .ptop .acts, .summary, .drawer, .col-tools, .col-foot, .x, .trash, #toast, .daystrip, .mapwrap { display: none !important; }
  .planner { height: auto; }
  .board, .pmain { overflow: visible; display: block; }
  .col { break-inside: avoid; page-break-inside: avoid; max-height: none; border: 1px solid #ccc; margin-bottom: 14px; width: 100%; }
  .items { overflow: visible; }
  .card { box-shadow: none; border: 1px solid #ddd; border-left: 5px solid var(--c); }
  .ptop { background: #fff !important; color: #000; }
}
a.btn { text-decoration: none; }

.aff { display: flex; align-items: center; justify-content: center; gap: 8px; height: 38px; background: #131a22; color: #fff; font-weight: 800; font-size: .88rem; text-decoration: none; position: relative; z-index: 30; }
.aff:hover { background: #232f3e; }
.aff span { border-bottom: 1px solid #ff9900; }
.planner { height: calc(100vh - 38px); }
.wiz, .welcome { min-height: calc(100vh - 38px); }
@media print { .aff { display: none; } }
.aff small { font-weight: 600; opacity: .75; font-size: .74rem; }
@media (max-width: 700px) { .aff { height: auto; min-height: 38px; flex-wrap: wrap; padding: 6px 12px; text-align: center; } .planner { height: calc(100vh - 62px); } }
