/* SaatSamundra web app layout.
   Wide screens: a 244px sidebar beside the page. Tablets: a 76px icon rail. Phones: a top bar and five bottom tabs.
   Components (buttons, rings, seats, fare ladder, tickets, posts, bubbles) come from base.css. */
:root { --side: 244px; --rail: 76px; --wrap: 1120px; --bottom: 66px; }
html { height: auto; }
body { min-height: 100vh; min-height: 100dvh; background: var(--bg); }
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }

/* ---------- sidebar ---------- */
.side {
  position: sticky; top: 0; height: 100vh; height: 100dvh; z-index: 30; display: flex; flex-direction: column; gap: 2px;
  padding: 22px 12px 16px; border-right: 1px solid var(--line); background: var(--bg); overflow-y: auto; scrollbar-width: none;
}
.side::-webkit-scrollbar { display: none; }
.brand { display: flex; align-items: center; padding: 6px 12px 24px; border: 0; background: none; }
.brand img { height: 30px; width: auto; }
.brand .mark { display: none; width: 26px; height: 30px; overflow: hidden; }
.brand .mark img { height: 30px; max-width: none; }
.brand .full { display: flex; }
.nav-i {
  position: relative; display: flex; align-items: center; gap: 16px; width: 100%; height: 50px; padding: 0 12px; border: 0; border-radius: 12px;
  background: none; color: var(--ink); font-size: 15px; font-weight: 500; text-align: left; transition: background-color .15s;
}
.nav-i:hover { background: var(--hover); }
.nav-i svg, .nav-i .av { flex: none; transition: transform .25s var(--spring); }
.nav-i:hover svg, .nav-i:hover .av { transform: scale(1.08); }
.nav-i:active svg { transform: scale(.9); }
.nav-i[aria-current="page"] { font-weight: 800; }
.nav-i[aria-current="page"] svg { stroke-width: 2.5; }
.nav-i .cnt { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #FFFFFF; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.nav-i .dot { position: absolute; left: 30px; top: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.side .grow { flex: 1 1 auto; min-height: 12px; }
.side-label { margin: 14px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.side .nav-i.sub { height: 42px; font-size: 14px; }

.main { min-width: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 32px 40px 96px; }
.wrap.narrow { max-width: 760px; }
.topbar, .botbar { display: none; }

/* ---------- tablets: icon rail ---------- */
@media (max-width: 1279px) {
  .shell { grid-template-columns: var(--rail) minmax(0, 1fr); }
  .side { padding: 22px 10px 16px; align-items: center; }
  .brand { padding: 6px 0 22px; justify-content: center; }
  .brand .full { display: none; }
  .brand .mark { display: block; }
  .nav-i { width: 52px; justify-content: center; padding: 0; }
  .nav-i .lbl, .nav-i .cnt, .side-label { display: none; }
  .nav-i .dot { left: 30px; }
  .wrap { padding: 28px 28px 96px; }
}
/* ---------- phones: top bar and bottom tabs ---------- */
@media (max-width: 767px) {
  .shell { display: block; }
  .side { display: none; }
  .topbar {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; display: flex; align-items: center; gap: 4px; height: 56px;
    padding: 0 max(6px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
    background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%); border-bottom: 1px solid var(--glass-line);
  }
  .topbar .brand { padding: 0; }
  .topbar .brand img { height: 26px; }
  .topbar .grow { flex: 1; }
  .botbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    height: calc(var(--bottom) + env(safe-area-inset-bottom, 0px)); padding: 6px max(6px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(6px, env(safe-area-inset-left, 0px));
    background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(190%); backdrop-filter: blur(24px) saturate(190%); border-top: 1px solid var(--glass-line);
  }
  .botbar .nav-i { width: auto; height: 52px; flex-direction: column; gap: 2px; justify-content: center; padding: 0; font-size: 10.5px; font-weight: 600; color: var(--muted); }
  .botbar .nav-i .lbl { display: block; }
  .botbar .nav-i[aria-current="page"] { color: var(--ink); font-weight: 800; }
  .botbar .nav-i .dot { left: calc(50% + 6px); top: 4px; }
  .wrap { padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(var(--bottom) + 40px) max(16px, env(safe-area-inset-left, 0px)); }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); }
}

/* ---------- page heads ---------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ph h1 { font-size: 32px; font-weight: 800; letter-spacing: -1.1px; line-height: 1.1; margin: 0; text-wrap: balance; }
.ph p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; max-width: 60ch; }
.crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.crumb a:hover { color: var(--ink); }
.h2w { font-size: 21px; font-weight: 800; letter-spacing: -.5px; margin: 0; }
.secw { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 44px 0 16px; }
.secw p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.lead { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* ---------- flights home ---------- */
.hero-w { position: relative; height: 440px; border-radius: 28px; overflow: hidden; color: #FFFFFF; isolation: isolate; background: #2A0A3F; }
.hero-w > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-w::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(22, 4, 30, .78) 0%, rgba(22, 4, 30, .42) 42%, rgba(22, 4, 30, 0) 68%); }
.hero-copy { position: absolute; z-index: 2; left: 48px; top: 50px; max-width: 540px; }
.hero-copy h1 { margin: 12px 0 0; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -2px; font-weight: 800; text-wrap: balance; }
.hero-copy p { margin: 16px 0 0; max-width: 44ch; font-size: 16.5px; line-height: 1.5; color: rgba(255, 255, 255, .9); }
.hero-copy .ne { display: block; margin-top: 10px; font-size: 17px; font-weight: 600; color: #FFB3CB; }
.qbar {
  position: relative; z-index: 4; margin: -46px 28px 0; display: grid; grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center;
  padding: 8px; border-radius: 22px; background: var(--glass-strong); -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow-2);
}
.qf { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 16px; border: 0; border-radius: 15px; background: none; text-align: left; color: var(--ink); transition: background-color .15s; }
.qf:hover, .qf:focus-within { background: var(--hover); }
.qf .k { font-size: 11px; font-weight: 700; letter-spacing: .4px; color: var(--muted); }
.qf .v { font-size: 17px; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qf select { appearance: none; -webkit-appearance: none; border: 0; background: none; padding: 0; font-size: 17px; font-weight: 800; letter-spacing: -.3px; outline: none; cursor: pointer; width: 100%; }
.qbar .swap { margin: 0 2px; }
.qbar .btn { height: 56px; border-radius: 16px; margin-left: 4px; }
@media (max-width: 1100px) {
  .qbar { grid-template-columns: 1fr auto 1fr; row-gap: 4px; }
  .qbar .qf.when, .qbar .qf.who { grid-column: span 1; }
  .qbar .btn { grid-column: 1 / -1; margin: 4px 0 0; }
}
@media (max-width: 767px) {
  .hero-w { height: 360px; border-radius: 22px; }
  .hero-w::after { background: linear-gradient(180deg, rgba(22, 4, 30, .78) 0%, rgba(22, 4, 30, .3) 60%, rgba(22, 4, 30, 0) 100%); }
  .hero-copy { left: 20px; right: 20px; top: 26px; }
  .qbar { margin: -36px 8px 0; }
}

/* festival calendar: departures drawn to scale on a date axis */
.cal { border: 1px solid var(--line-2); border-radius: 22px; padding: 18px 20px 14px; overflow-x: auto; }
.cal-inner { min-width: 680px; }
.cal-axis, .cal-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.cal-ticks { position: relative; height: 22px; }
.cal-ticks span { position: absolute; left: var(--x); transform: translateX(-1px); font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; padding-left: 6px; border-left: 1px solid var(--line-2); height: 22px; }
.cal-row { height: 58px; align-items: center; border-top: 1px dashed var(--line); }
.cal-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cal-name .av { --s: 32px; }
.cal-name b { display: block; font-size: 14px; }
.cal-name span { display: block; font-size: 12px; color: var(--muted); }
.cal-track { position: relative; height: 100%; }
.cal-track .vl { position: absolute; top: 0; bottom: 0; left: var(--x); width: 1px; background: var(--line); }
.cal-bar {
  position: absolute; top: 13px; left: var(--x); width: var(--w); min-width: 54px; height: 32px; padding: 0 10px; border: 0; border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #FFFFFF; font-size: 12px; font-weight: 800; white-space: nowrap;
  background: var(--grad-warm); box-shadow: 0 6px 16px -10px rgba(212, 20, 90, .8); transition: transform .3s var(--spring), box-shadow .3s;
}
.cal-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--fill); background: rgba(255, 255, 255, .2); }
.cal-bar > * { position: relative; }
.cal-bar:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -12px rgba(212, 20, 90, .9); }
.cal-bar.closed { background: var(--line-2); color: var(--muted); box-shadow: none; }

.dep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dep-grid .dep-art { height: 200px; }
@media (max-width: 900px) { .dep-grid { grid-template-columns: minmax(0, 1fr); } }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how > div { padding: 20px; border-radius: 20px; background: var(--surface); }
.how .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #FFFFFF; font-weight: 800; font-size: 14px; }
.how h3 { margin: 14px 0 6px; font-size: 16px; font-weight: 800; }
.how p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 900px) { .how { grid-template-columns: minmax(0, 1fr); } }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .duo { grid-template-columns: minmax(0, 1fr); } }
.tile { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); text-align: left; width: 100%; transition: box-shadow .3s, transform .3s var(--ease-out); }
.tile:hover { box-shadow: var(--shadow-1); transform: translateY(-2px); }
.tile .art { width: 92px; height: 72px; border-radius: 14px; overflow: hidden; flex: none; position: relative; }
.tile .art > svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- departure page ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1080px) { .split { grid-template-columns: minmax(0, 1fr); gap: 28px; } .aside { position: static; } }
.dhero { position: relative; height: 340px; border-radius: 24px; overflow: hidden; color: #FFFFFF; }
.dhero > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dhero .chips-on { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 767px) { .dhero { height: 240px; border-radius: 20px; } }
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.title-row h1 { font-size: 36px; font-weight: 800; letter-spacing: -1.3px; line-height: 1.05; margin: 6px 0 0; }
.metas { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.metas span { display: inline-flex; align-items: center; gap: 6px; }
.panel { border: 1px solid var(--line-2); border-radius: 22px; padding: 20px; background: var(--bg); }
.panel + .panel { margin-top: 16px; }
.panel h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.panel .sub { margin: 0 0 14px; }
.panel .seats { padding: 0; }
.panel .ladder, .panel .incl, .panel .legs { margin: 0; padding-left: 0; padding-right: 0; }
.panel .ladder { padding: 16px; }
.panel .incl { padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 767px) { .panel .incl { grid-template-columns: repeat(2, minmax(0, 1fr)); } .title-row h1 { font-size: 28px; } }
.panel .legs { padding: 0; }
.panel .stopover { margin-left: 80px; }
.legs-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: center; }
.legs-wrap .route-art { position: relative; height: 220px; border-radius: 18px; overflow: hidden; }
.legs-wrap .route-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 767px) { .legs-wrap { grid-template-columns: minmax(0, 1fr); } }
.bookcard { padding: 22px; border-radius: 24px; border: 1px solid var(--line-2); background: var(--bg); box-shadow: var(--shadow-1); }
.bookcard .price { font-size: 30px; letter-spacing: -1px; }
.tiers { margin: 16px 0; border-radius: 16px; border: 1px solid var(--line-2); overflow: hidden; }
.tier { display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-size: 13.5px; }
.tier + .tier { border-top: 1px solid var(--line); }
.tier b { margin-left: auto; font-variant-numeric: tabular-nums; }
.tier.hit { background: var(--surface); }
.tier .mk { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 2px var(--line-2); color: #FFFFFF; }
.tier.hit .mk { background: var(--grad-brand); box-shadow: none; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; box-shadow: inset 0 0 0 1.5px var(--line-2); font-size: 20px; font-weight: 700; display: grid; place-items: center; color: var(--ink); }
.stepper button:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.stepper b { min-width: 24px; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.going { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.going .row { padding: 6px 0; min-height: 0; }
.fine { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.mob-cta { display: none; }
@media (max-width: 1080px) {
  .mob-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; align-items: center; gap: 14px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: var(--glass-strong); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border-top: 1px solid var(--glass-line); }
}
@media (max-width: 767px) { .mob-cta { bottom: calc(var(--bottom) + env(safe-area-inset-bottom, 0px)); } }

/* ---------- forms ---------- */
.formw { display: flex; flex-direction: column; gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
.inp select { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font-size: 15px; }
.inp .hint { font-size: 12px; color: var(--muted); }
.inp .box.sm { height: 44px; }
.inp .err { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.trow { display: grid; grid-template-columns: minmax(0, 1fr) 150px 44px; gap: 10px; align-items: end; }
@media (max-width: 640px) { .trow { grid-template-columns: minmax(0, 1fr) 120px 44px; } }
.optgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .optgrid { grid-template-columns: minmax(0, 1fr); } }
.optgrid .opt { flex-direction: column; align-items: flex-start; gap: 8px; height: 100%; }
.agree { display: flex; gap: 12px; align-items: flex-start; padding: 0; border: 0; background: none; text-align: left; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.agree .check { margin-top: 1px; }
.summary { padding: 20px; border-radius: 24px; background: var(--surface); }
.summary .sum { padding: 0; }
.payinfo { padding: 16px; border-radius: 16px; background: var(--bg); border: 1px dashed var(--line-2); font-size: 13.5px; line-height: 1.6; }
.payinfo dl { margin: 6px 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; }
.payinfo dt { color: var(--muted); }
.payinfo dd { margin: 0; font-weight: 700; word-break: break-word; }

/* ---------- trips ---------- */
.tickets { display: flex; flex-direction: column; gap: 18px; }
.wticket { display: grid; grid-template-columns: minmax(0, 1fr) 220px; border-radius: 24px; overflow: hidden; color: #FFFFFF; background: var(--grad-ticket); position: relative; box-shadow: 0 24px 50px -26px rgba(142, 27, 138, .7); }
.wticket::before { content: ""; position: absolute; inset: 0; opacity: .14; background-image: var(--dhaka); background-size: 36px 36px; pointer-events: none; }
.wticket > * { position: relative; }
.wticket .main-t { padding: 20px 22px; }
.wticket .stub { padding: 20px 22px; border-left: 2px dashed rgba(255, 255, 255, .45); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.wticket .code { font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.wticket .ticket-mid { margin: -14px 14px 0; }
.bars { height: 46px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .92) 0 2px, transparent 2px 4px, rgba(255, 255, 255, .92) 4px 5px, transparent 5px 8px, rgba(255, 255, 255, .92) 8px 11px, transparent 11px 13px); border-radius: 4px; opacity: .9; }
@media (max-width: 760px) { .wticket { grid-template-columns: minmax(0, 1fr); } .wticket .stub { border-left: 0; border-top: 2px dashed rgba(255, 255, 255, .45); } }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.held { color: #B45309; }
.status.paid { color: var(--ok); }
.status.ticketed { color: #2563EB; }
.status.cancelled { color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status.held { color: #FBBF24; } :root:not([data-theme="light"]) .status.ticketed { color: #60A5FA; } }
:root[data-theme="dark"] .status.held { color: #FBBF24; }
:root[data-theme="dark"] .status.ticketed { color: #60A5FA; }
.wticket .status { color: #FFFFFF; }

/* ---------- community ---------- */
.feed-grid { display: grid; grid-template-columns: minmax(0, 620px) 320px; gap: 44px; justify-content: center; align-items: start; }
.rail { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 1180px) { .feed-grid { grid-template-columns: minmax(0, 620px); } .rail { display: none; } }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.subnav a { height: 36px; padding: 0 14px; border-radius: 11px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); background: var(--surface-2); transition: background-color .2s, color .2s; }
.subnav a:hover { background: var(--line-2); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.composer-w { border: 1px solid var(--line-2); border-radius: 20px; padding: 16px; background: var(--bg); }
.composer-w textarea { width: 100%; min-height: 64px; border: 0; outline: none; resize: vertical; background: none; font-size: 15.5px; line-height: 1.5; padding: 4px 0; }
.artpick { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.artpick::-webkit-scrollbar { display: none; }
.artpick .np-thumb { width: 52px; height: 52px; }
.artpick .np-thumb.none { display: grid; place-items: center; color: var(--muted); font-size: 11px; font-weight: 700; }
.pcard { border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; background: var(--bg); }
.pcard + .pcard { margin-top: 18px; }
.pcard .post { padding-bottom: 12px; }
.pcard .post-media { aspect-ratio: auto; }
.pcard .post-media.art { aspect-ratio: 390 / 300; }
.pcard .post-media img { display: block; width: 100%; max-height: 640px; object-fit: cover; }
.pcard .over { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #FFFFFF; font-size: 22px; font-weight: 800; letter-spacing: -.4px; line-height: 1.25; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.textpost { padding: 4px 16px 6px; font-size: 16px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.post-meta .cap { white-space: pre-wrap; word-break: break-word; }
.cmts-w { padding: 4px 16px 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.45; }
.cmts-w .c { display: flex; gap: 8px; align-items: flex-start; }
.cmts-w .c .x { margin-left: auto; border: 0; background: none; color: var(--muted); padding: 0 2px; font-size: 12px; }
.addc { display: flex; align-items: center; gap: 10px; padding: 10px 16px 0; margin-top: 8px; border-top: 1px solid var(--line); }
.addc input { flex: 1; min-width: 0; height: 38px; border: 0; outline: none; background: none; font-size: 14px; }
.addc button { border: 0; background: none; font-weight: 800; color: var(--accent); font-size: 14px; }
.addc button:disabled { opacity: .4; }
.railbox { border: 1px solid var(--line-2); border-radius: 20px; padding: 16px; }
.railbox h3 { margin: 0 0 10px; font-size: 14px; font-weight: 800; }
.railbox .row { padding: 6px 0; min-height: 0; }
.muted-note { font-size: 12px; color: var(--muted); line-height: 1.5; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .cards3, .cards2 { grid-template-columns: minmax(0, 1fr); } }
.ecard { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; background: var(--bg); color: var(--ink); text-align: left; transition: box-shadow .3s, transform .3s var(--ease-out); }
.ecard:hover { box-shadow: var(--shadow-1); transform: translateY(-2px); }
.ecard .eart { position: relative; height: 150px; overflow: hidden; }
.ecard .eart > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ecard .ebody { padding: 14px 16px 16px; display: flex; gap: 12px; align-items: flex-start; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px 16px 18px; border: 1px solid var(--line-2); border-radius: 20px; }
.person .ring { margin-bottom: 8px; }
.person .flights { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.flight-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--accent); }

/* chats */
.chat-shell { display: grid; grid-template-columns: 330px minmax(0, 1fr); height: calc(100vh - 64px); height: calc(100dvh - 64px); min-height: 480px; border: 1px solid var(--line-2); border-radius: 24px; overflow: hidden; background: var(--bg); }
.ch-list { border-right: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; }
.ch-list h2 { margin: 0; padding: 18px 18px 10px; font-size: 18px; font-weight: 800; }
.ch-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 18px; border: 0; background: none; color: var(--ink); text-align: left; transition: background-color .15s; }
.ch-item:hover { background: var(--hover); }
.ch-item[aria-current="true"] { background: var(--surface); }
.ch-item .last { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-item.unread .last { color: var(--ink); font-weight: 700; }
.convo { display: flex; flex-direction: column; min-height: 0; }
.convo-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.convo-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.msg-row { display: flex; gap: 8px; align-items: flex-end; }
.msg-row.me { justify-content: flex-end; }
.msg-row .av { --s: 28px; }
.msg-row .bubble { animation: none; }
.msg-row.new .bubble { animation: bubbleIn .4s var(--spring) both; }
.msg-row + .msg-row.first { margin-top: 10px; }
.convo .composer { border-top: 1px solid var(--line); }
@media (max-width: 900px) { .chat-shell { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; } .chat-shell.has-ch .ch-list { display: none; } .chat-shell:not(.has-ch) .convo { display: none; } .convo-msgs { height: calc(100dvh - 260px); } }

/* jobs: list and detail side by side */
.md { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 24px; align-items: start; }
.md-list { display: flex; flex-direction: column; gap: 12px; }
.md-list .card { margin: 0; width: 100%; }
.md-list .card[aria-current="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.md-detail { position: sticky; top: 24px; }
@media (max-width: 1000px) { .md { grid-template-columns: minmax(0, 1fr); } .md-detail { position: static; } }

/* travel help item */
.offer { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.offer + .offer { border-top: 1px solid var(--line); }

/* profile */
.prof-w { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 36px; align-items: center; margin-bottom: 30px; }
.prof-w .ring { --s: 150px; }
.prof-w .stats { text-align: left; justify-content: start; display: flex; gap: 28px; margin: 14px 0; }
.prof-w .stats b { display: inline; font-size: 16px; margin-right: 4px; }
@media (max-width: 640px) { .prof-w { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .prof-w .stats { justify-content: center; } }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.thumbs > button { position: relative; aspect-ratio: 1; padding: 0; border: 0; overflow: hidden; background: var(--surface); border-radius: 6px; color: #FFFFFF; }
.thumbs > button > svg, .thumbs > button > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumbs .hov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 16px; background: rgba(0, 0, 0, .38); opacity: 0; transition: opacity .2s; font-weight: 800; }
.thumbs > button:hover .hov, .thumbs > button:focus-visible .hov { opacity: 1; }
.thumbs .tx { position: absolute; left: 8px; right: 8px; bottom: 8px; font-size: 12px; font-weight: 700; text-align: left; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

/* admin */
.tabs-w { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs-w a { height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tabs-w a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 18px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl select, .tbl input { height: 34px; border-radius: 9px; border: 1.5px solid var(--line-2); background: var(--bg); padding: 0 8px; font-size: 13px; max-width: 150px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpis > div { padding: 16px; border-radius: 18px; background: var(--surface); }
.kpis b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.kpis span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- empty, loading, notices ---------- */
.empty-w { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 20px; border: 1.5px dashed var(--line-2); border-radius: 22px; }
.empty-w .art { width: 120px; height: 90px; border-radius: 16px; overflow: hidden; position: relative; }
.empty-w .art > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.empty-w h3 { margin: 6px 0 0; font-size: 17px; font-weight: 800; }
.empty-w p { margin: 0; max-width: 46ch; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--surface); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin-bottom: 18px; }
.notice svg { flex: none; color: var(--accent); margin-top: 1px; }
.notice b { color: var(--ink); }
.skel { border-radius: 14px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: skel 1.4s ease-in-out infinite; }
@keyframes skel { to { background-position: -200% 0; } }
.foot { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; gap: 10px 24px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }

/* ---------- overlays ---------- */
.overlays { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.overlays > * { pointer-events: auto; }
.modal-wrap { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; }
.modal-back { position: absolute; inset: 0; border: 0; padding: 0; width: 100%; background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .25s ease both; }
.modal {
  position: relative; width: min(560px, 100%); max-height: min(88vh, 920px); overflow-y: auto; border-radius: 26px; background: var(--glass-strong);
  -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%); border: 1px solid var(--glass-line); box-shadow: var(--shadow-2);
  animation: modalIn .4s var(--ease-out) both; scrollbar-width: thin;
}
.modal.wide { width: min(960px, 100%); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 12px 8px 24px; background: inherit; }
.modal-head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.modal-body { padding: 4px 24px 24px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-wrap.closing .modal { animation: modalOut .22s ease-in forwards; }
.modal-wrap.closing .modal-back { animation: fadeOut .22s ease-in forwards; }
@keyframes modalOut { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fadeOut { to { opacity: 0; } }
@media (max-width: 767px) {
  .modal-wrap { place-items: end center; padding: 0; }
  .modal { width: 100%; border-radius: 26px 26px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom, 0px); animation-name: sheetUp; }
  @keyframes sheetUp { from { transform: translateY(100%); } }
}
.toast { position: fixed; bottom: 28px; }
@media (max-width: 767px) { .toast { bottom: calc(var(--bottom) + 18px); } }
.story-wrap { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; background: rgba(12, 6, 14, .92); animation: fadeIn .3s ease both; }
.story-frame { position: relative; height: min(88vh, 860px); aspect-ratio: 9 / 16; max-width: 100vw; border-radius: 22px; overflow: hidden; }
.story-frame .sv { border-radius: 22px; }
.story-nav { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #0E0E10; display: grid; place-items: center; }
.story-nav.prev { left: calc(50% - (min(88vh, 860px) * 9 / 32) - 64px); }
.story-nav.next { right: calc(50% - (min(88vh, 860px) * 9 / 32) - 64px); }
.story-x { position: absolute; top: 18px; right: 18px; color: #FFFFFF; }
@media (max-width: 767px) { .story-frame { height: 100%; width: 100%; aspect-ratio: auto; border-radius: 0; } .story-nav { display: none; } .story-x { display: none; } }
.celebrate .inner { max-width: 520px; margin-left: auto; margin-right: auto; }
.celebrate .acts { max-width: 520px; width: 100%; margin: 0 auto; }
.celebrate { position: fixed; }

/* card maker preview */
.cardprev { position: sticky; top: 24px; }
.tcard.big .ne-big { font-size: 26px; }
.tcard.big .en { font-size: 16px; }

/* ---------- added after the first pass ---------- */
.main-col { min-width: 0; }
.tsplit { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.tsplit.wide { gap: 36px; }
@media (max-width: 1080px) { .tsplit { grid-template-columns: minmax(0, 1fr); } }
.wrap.chat-wrap { padding-bottom: 24px; }
@media (max-width: 767px) { .wrap.chat-wrap { padding-bottom: calc(var(--bottom) + 16px); } .chat-shell { border-radius: 18px; } }
.skip { position: fixed; left: -999px; top: 12px; z-index: 300; padding: 10px 14px; border-radius: 10px; border: 0; background: var(--ink); color: var(--bg); font-weight: 700; }
.skip:focus { left: 12px; }
.agree.is-on .check, .trav.is-on .check { background: var(--grad-brand); box-shadow: none; }
.agree.is-on .check path { stroke-dashoffset: 0; }
.ecard .ebody .btn { flex: none; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.sv .layer .big { overflow-wrap: anywhere; }
@media (max-width: 520px) { .convo-head .btn { display: none; } .convo-head .xs { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } }
.panel .seats { max-width: 560px; }
@media (max-width: 767px) { .qf select, .qf .v { font-size: 15px; } .qf { padding: 8px 10px; } }
.img-missing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 220px; width: 100%; height: 100%; background: var(--surface); color: var(--muted); font-size: 13px; }
.thumbs .img-missing, .story-frame .img-missing { min-height: 0; }

/* sign-in dialog (saatsamundra.com) */
.signin .gbtn { min-height: 44px; display: flex; justify-content: center; align-items: center; }
.signin .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.signin .or::before, .signin .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.topbar .btn--sm { margin-right: 4px; }
