/* Studio HQ. One stylesheet for the dashboard and the customer pages. System fonts only: no
   requests leave our server. Palette: a cool mehendi-grey base, kohl ink, rani pink for action. */
:root {
  --bg: #ECEFEA; --surface: #FFFFFF; --surface-2: #F5F7F3; --sunk: #E3E7E1;
  --ink: #17201B; --ink-2: #47524C; --ink-3: #75807A; --line: #D5DBD4; --line-2: #E6EAE4;
  --rani: #AE1259; --rani-ink: #FFFFFF; --rani-soft: #F6DFEA;
  --haldi: #B57A00; --haldi-soft: #FAEDCB;
  --leaf: #2C6A3C; --leaf-soft: #DDEEE1;
  --sindoor: #B3261E; --sindoor-soft: #FADFDC;
  --sky: #2B5F8A; --sky-soft: #DCE8F2;
  --frame: #0E1210;
  --shadow: 0 1px 0 rgba(23, 32, 27, .04), 0 8px 24px -16px rgba(23, 32, 27, .25);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --r-sm: 8px; --r: 12px; --r-lg: 18px;
  --tab-h: 62px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1311; --surface: #171C19; --surface-2: #1D231F; --sunk: #0B0E0C;
    --ink: #E7ECE8; --ink-2: #A8B2AC; --ink-3: #77827C; --line: #2A322D; --line-2: #222925;
    --rani: #F0609F; --rani-ink: #1A0A11; --rani-soft: #3A1628;
    --haldi: #F0B73E; --haldi-soft: #392A08;
    --leaf: #74C489; --leaf-soft: #15301D;
    --sindoor: #F47B70; --sindoor-soft: #3C1714;
    --sky: #7FB4E0; --sky-soft: #142736;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); font-feature-settings: "tnum" 0; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rani); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0 0 .6em; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.stack > * + * { margin-top: 12px; }
.row-flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre { white-space: pre-wrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------------------------------------------------------------- studio shell */
.studio { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 52px;
  padding: 0 16px; padding-top: env(safe-area-inset-top); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-2); }
.mark { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 650; letter-spacing: -.01em; }
.mark svg { width: 22px; height: 22px; color: var(--rani); }
.topbar .who { margin-left: auto; font-size: 13px; color: var(--ink-2); text-decoration: none; }
.main { max-width: 1180px; min-width: 0; width: 100%; margin: 0 auto; padding: 18px 16px 40px; }
.sidenav { display: none; }
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; font-size: 11px; color: var(--ink-3); }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"] .ic { color: var(--rani); }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--rani); color: var(--rani-ink);
  font-size: 11px; font-weight: 650; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.tabbar .badge { position: absolute; top: 7px; left: calc(50% + 6px); }

@media (min-width: 900px) {
  .studio { padding-bottom: 0; }
  .tabbar { display: none; }
  .shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 52px); }
  .sidenav { display: block; position: sticky; top: 52px; align-self: start; height: calc(100vh - 52px); overflow: auto;
    padding: 16px 10px; border-right: 1px solid var(--line-2); }
  .sidenav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; text-decoration: none;
    color: var(--ink-2); font-size: 14.5px; }
  .sidenav a:hover { background: var(--surface-2); color: var(--ink); }
  .sidenav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
  .sidenav a[aria-current="page"] .ic { color: var(--rani); }
  .sidenav .badge { margin-left: auto; }
  .sidenav hr { border: 0; border-top: 1px solid var(--line-2); margin: 12px 8px; }
  .main { padding: 28px 32px 60px; }
}

/* ---------------------------------------------------------------- page structure */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 26px; font-weight: 680; letter-spacing: -.022em; }
.page-head .sub { color: var(--ink-2); margin-top: 4px; font-size: 14px; }
.section { margin-top: 28px; }
.section > h2, .h2 { font-size: 15px; font-weight: 650; letter-spacing: -.005em; margin: 0 0 10px; display: flex;
  align-items: baseline; gap: 8px; }
.section > h2 .count, .h2 .count { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.sheet { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; overflow: clip; }
.sheet.pad { padding: 16px; }
.sheet + .sheet { margin-top: 12px; }
.cols { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) {
  .cols.two { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
}

/* lists of tappable rows */
.list { list-style: none; margin: 0; padding: 0; }
.list > li + li { border-top: 1px solid var(--line-2); }
.item { display: flex; gap: 12px; align-items: center; padding: 13px 16px; text-decoration: none; min-height: 56px; }
a.item:hover { background: var(--surface-2); }
.item .title { font-weight: 600; letter-spacing: -.005em; }
.item .meta { font-size: 13px; color: var(--ink-2); }
.item .end { margin-left: auto; text-align: right; font-size: 13px; color: var(--ink-2); flex: none; max-width: 45%; }
.item.wrap { flex-wrap: wrap; }
@media (max-width: 520px) { .item.wrap > form { flex-basis: 100%; } .item.wrap > form .btn { width: 100%; } }
.item .thumb { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: var(--sunk); flex: none; }
.item .thumb.tall { width: 36px; height: 64px; }
.empty { padding: 22px 16px; color: var(--ink-2); }
.code { font-variant-numeric: tabular-nums; font-weight: 650; letter-spacing: .01em; }

/* pills and dots */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px;
  font-weight: 560; white-space: nowrap; background: var(--sunk); color: var(--ink-2); }
.pill.rani { background: var(--rani-soft); color: var(--rani); }
.pill.haldi { background: var(--haldi-soft); color: var(--haldi); }
.pill.leaf { background: var(--leaf-soft); color: var(--leaf); }
.pill.sindoor { background: var(--sindoor-soft); color: var(--sindoor); }
.pill.sky { background: var(--sky-soft); color: var(--sky); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.ok { background: var(--leaf); } .dot.down { background: var(--sindoor); box-shadow: 0 0 0 4px var(--sindoor-soft); }
.dot.off { background: var(--haldi); } .dot.idle { background: var(--ink-3); }
.unread { width: 9px; height: 9px; border-radius: 50%; background: var(--rani); flex: none; }

/* health strip on Today */
.health { display: grid; gap: 1px; background: var(--line-2); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.health > div { display: flex; gap: 10px; align-items: center; padding: 11px 16px; background: var(--surface); font-size: 13.5px; }
.health b { font-weight: 620; min-width: 58px; }
@media (min-width: 900px) { .health { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } .health > div { align-items: flex-start; } .health .dot { margin-top: 6px; } }

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600;
  font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--rani); border-color: var(--rani); color: var(--rani-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn.danger { color: var(--sindoor); }
.btn.danger:hover { border-color: var(--sindoor); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--ink-2); padding: 0 10px; }
.btn.quiet:hover { color: var(--ink); background: var(--surface-2); }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
@media (max-width: 899px) { .btn { min-height: 44px; } .btn.small { min-height: 36px; } }
form.inline { display: inline; }
.field { display: grid; gap: 5px; margin-bottom: 14px; align-content: start; }
.field > span, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 12.5px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url],
input[type=search], input[type=datetime-local], input[type=time], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  font-size: 16px; }
textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rani); box-shadow: 0 0 0 3px var(--rani-soft); }
.grid2 { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
.grid3 { display: grid; gap: 0 14px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr 1fr; } }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--line);
  border-radius: 20px; font-size: 13.5px; cursor: pointer; background: var(--surface); }
.checks input { accent-color: var(--rani); }
.search { display: flex; gap: 8px; margin-bottom: 14px; }
.search input { flex: 1; }

/* tabs (segmented) */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 0 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-flex; gap: 6px; align-items: center; height: 34px; padding: 0 13px; border-radius: 17px;
  text-decoration: none; font-size: 13.5px; font-weight: 560; color: var(--ink-2); border: 1px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="true"] { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.tabs .n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .tabs { margin: 0 0 16px; padding: 0; } }

/* flash */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); margin-bottom: 16px;
  background: var(--leaf-soft); color: var(--ink); font-size: 14px; word-break: break-word; }
.flash.err { background: var(--sindoor-soft); }
.flash .x { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--ink-2); font-size: 18px; line-height: 1; }

/* ---------------------------------------------------------------- media: 9:16 frames, strips */
.frame { position: relative; aspect-ratio: 9 / 16; background: var(--frame); border-radius: 12px; overflow: hidden; }
.frame > img, .frame > video { width: 100%; height: 100%; object-fit: cover; }
.frame.contain > img, .frame.contain > video { object-fit: contain; }
.frame.square { aspect-ratio: 4 / 5; }
.frame .tag { position: absolute; left: 8px; top: 8px; z-index: 2; }
.frame .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; pointer-events: none; }
.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.strip > * { scroll-snap-align: start; flex: none; }
.strip .frame { width: 168px; }
.strip.big .frame { width: min(300px, 78vw); }
.tiles { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.tile { position: relative; display: block; border-radius: 10px; overflow: hidden; background: var(--sunk); aspect-ratio: 1;
  text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 7px 5px; font-size: 11px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .kind { position: absolute; right: 6px; top: 6px; }
.tile .noimg { display: grid; place-items: center; height: 100%; color: var(--ink-3); font-size: 12px; padding: 8px; text-align: center; }

/* ---------------------------------------------------------------- the stage rail (orders' signature) */
.rail { display: flex; gap: 3px; margin: 14px 0 6px; }
.rail > span { flex: 1; height: 6px; border-radius: 3px; background: var(--sunk); }
.rail > span.done { background: var(--ink-3); }
.rail > span.now { background: var(--rani); }
.rail-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); gap: 6px; }
.rail-labels .now { color: var(--rani); font-weight: 650; }
@media (max-width: 560px) { .public .rail-labels span:not(.now) { display: none; } }

/* ---------------------------------------------------------------- orders board */
.board { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (max-width: 899px) { .board .col[aria-hidden="true"] { display: none; } }
.board .col h2 { font-size: 14px; display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.board .col h2 .count { color: var(--ink-3); font-weight: 500; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 18px; padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; height: 32px; padding: 0 12px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13px; }
.chips a .n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chips a.us { border-color: var(--haldi); }
.card { display: block; text-decoration: none; background: var(--surface); border-radius: 14px; padding: 12px 14px;
  box-shadow: var(--shadow); border-left: 3px solid transparent; }
.card + .card { margin-top: 8px; }
.card.us { border-left-color: var(--haldi); }
.card.late { border-left-color: var(--sindoor); }
.card .top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.card .who { font-weight: 600; }
.card .meta { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; display: flex; gap: 6px 12px; flex-wrap: wrap; }
.bar { height: 3px; background: var(--sunk); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--rani); }
@media (min-width: 900px) {
  .chips { display: none; }
  .board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 262px; overflow-x: auto; padding-bottom: 12px; align-items: start; gap: 12px; }
  .board .col { background: var(--surface-2); border-radius: 16px; padding: 12px 10px; min-height: 120px; }
  .board .col h2 { padding: 0 4px; }
}

/* ---------------------------------------------------------------- order page */
.order-head { display: grid; gap: 4px; }
.order-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -.025em; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow); }
.facts > div { background: var(--surface); padding: 11px 14px; }
.facts dt { font-size: 12px; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--ink-3); }
dl.kv dd { margin: 0; word-break: break-word; }
.review { border: 2px solid var(--haldi); }
.version-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.piece { padding: 16px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.piece > div:first-child .frame { max-width: 270px; }
.piece > div:first-child .frame + .frame { margin-top: 10px; }
.piece + .piece { border-top: 1px solid var(--line-2); }
@media (min-width: 700px) { .piece { grid-template-columns: 220px minmax(0, 1fr); } .piece.carousel { grid-template-columns: minmax(0, 1fr); } }
.caption { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; white-space: pre-wrap; }
.verdicts { display: flex; gap: 8px; flex-wrap: wrap; }
.verdicts .btn { flex: 1 1 auto; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 17px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li:first-child::before { background: var(--rani); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-3); padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
table.t td { padding: 11px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t .r { text-align: right; font-variant-numeric: tabular-nums; }
.scroll-x { overflow-x: auto; }

/* ---------------------------------------------------------------- inbox */
.inbox { display: grid; gap: 0; }
.inbox .conv-list { display: block; }
.inbox .thread-pane { display: none; }
.inbox.open .conv-list { display: none; }
.inbox.open .thread-pane { display: block; }
@media (min-width: 1000px) {
  .inbox { grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
  .inbox .conv-list, .inbox.open .conv-list { display: block; position: sticky; top: 72px; max-height: calc(100vh - 96px); overflow: auto; }
  .inbox .thread-pane { display: block; }
  .inbox .back-link { display: none; }
}
.ch { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 11px;
  font-weight: 700; color: #fff; }
.ch.whatsapp { background: #1F8F55; } .ch.instagram { background: #B8327A; } .ch.messenger { background: #2E6BD6; }
.conv.active { background: var(--surface-2); }
.thread { display: flex; flex-direction: column; gap: 6px; padding: 16px 12px; min-height: 200px; }
.day { align-self: center; font-size: 12px; color: var(--ink-3); margin: 10px 0 4px; }
.bubble { max-width: min(82%, 520px); padding: 8px 12px 6px; border-radius: 16px; font-size: 15px; line-height: 1.42;
  word-break: break-word; }
.bubble .txt { white-space: pre-wrap; }
.thread-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 14px;
  border-bottom: 1px solid var(--line-2); }
.thread-head > :first-child { flex: 1 1 220px; min-width: 0; flex-wrap: nowrap; }
.bubble.in { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 5px; }
.bubble.out { align-self: flex-end; background: var(--sunk); border-bottom-right-radius: 5px; }
.bubble.staff { background: var(--rani-soft); }
.bubble.system { background: transparent; border: 1px dashed var(--line); color: var(--ink-2); font-size: 13.5px; }
.bubble .by { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; text-align: right; white-space: nowrap; }
.bubble.in .by { text-align: left; }
.bubble .media { margin: 4px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.bubble .media img, .bubble .media video { max-height: 240px; border-radius: 10px; }
.bubble.failed { outline: 1px solid var(--sindoor); }
.composer { position: sticky; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); display: flex; gap: 8px; align-items: flex-end;
  padding: 10px 12px; background: var(--surface); border-top: 1px solid var(--line-2); }
.composer textarea { min-height: 44px; max-height: 180px; border-radius: 22px; padding: 10px 16px; resize: none; }
@media (min-width: 900px) { .composer { bottom: 0; } }
.note { padding: 10px 14px; font-size: 13px; background: var(--haldi-soft); color: var(--ink); }
.note.rani { background: var(--rani-soft); }

/* ---------------------------------------------------------------- library and content grids */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.gallery .g { display: grid; gap: 8px; align-content: start; }
.post { display: grid; gap: 14px; padding: 16px; grid-template-columns: minmax(0, 1fr); }
.post > div:first-child > .frame { max-width: 200px; }
@media (min-width: 760px) { .post > div:first-child > .frame { max-width: none; } }
@media (min-width: 760px) { .post { grid-template-columns: 240px minmax(0, 1fr); } }
.post + .post { border-top: 1px solid var(--line-2); }

/* money */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow); }
.stats > div { background: var(--surface); padding: 14px 16px; }
.stats .v { font-size: 22px; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats .k { font-size: 12.5px; color: var(--ink-2); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 150px; padding: 16px 16px 0; }
.months .m { display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 6px; text-align: center; font-size: 12px; color: var(--ink-3); }
.months .bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.months .bars i { width: 14px; border-radius: 4px 4px 0 0; background: var(--ink-3); min-height: 2px; }
.months .bars i.rec { background: var(--rani); }

/* ---------------------------------------------------------------- customer pages */
.public { min-height: 100vh; display: flex; flex-direction: column; }
.public .brandbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px;
  max-width: 760px; width: 100%; margin: 0 auto; }
.public .footlinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 8px; }
.public .footlinks a { text-decoration: none; }
.public .brand { font-family: var(--serif); font-size: 19px; letter-spacing: -.005em; text-decoration: none; }
.public main { max-width: 760px; width: 100%; margin: 0 auto; padding: 8px 20px 60px; flex: 1; }
.public h1 { font-family: var(--serif); font-weight: 500; font-size: 34px; letter-spacing: -.02em; line-height: 1.12; }
.public h2 { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -.01em; }
.public .lede { font-size: 17px; color: var(--ink-2); margin-top: 8px; max-width: 34em; }
.public footer { text-align: center; font-size: 12.5px; color: var(--ink-3); padding: 24px 16px 32px; }
.panel { background: var(--surface); border-radius: 22px; padding: 22px 20px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 14px; }
.code-input { font-size: 28px !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.promise { font-family: var(--serif); font-size: 21px; }
.upi { display: grid; gap: 16px; align-items: center; }
@media (min-width: 560px) { .upi { grid-template-columns: 180px 1fr; } }
.upi img { width: 180px; border-radius: 12px; background: #fff; padding: 8px; }
.copyline { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2);
  font-variant-numeric: tabular-nums; }
.copyline code { font: 600 15px var(--sans); flex: 1; word-break: break-all; }

/* upload page */
.drop { display: grid; place-items: center; gap: 10px; padding: 34px 20px; border: 2px dashed var(--line); border-radius: 22px;
  text-align: center; background: var(--surface); cursor: pointer; }
.drop.over { border-color: var(--rani); background: var(--rani-soft); }
.drop .big { font-family: var(--serif); font-size: 22px; }
.files { list-style: none; margin: 0; padding: 0; }
.files li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.files li:first-child { border-top: 0; }
.files .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 560; }
.files .prog { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.files .prog i { display: block; height: 100%; width: 0; background: var(--rani); transition: width .25s linear; }
.files li.ok .prog i { background: var(--leaf); }
.files li.wait .prog i { background: var(--haldi); }
.files .st { font-size: 12.5px; color: var(--ink-2); text-align: right; white-space: nowrap; }
.files li.err .st { color: var(--sindoor); }
.sticky-cta { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 30%); }

/* flash messages float above the tab bar so they're seen after a redirect to an anchor */
.studio .flash { position: fixed; z-index: 40; left: 12px; right: 12px; margin: 0;
  bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35);
  animation: rise .22s ease-out; }
@media (min-width: 900px) { .studio .flash { left: auto; right: 24px; bottom: 24px; max-width: 460px; } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
section[id], [id^="post-"] { scroll-margin-top: 64px; }

/* ---------------------------------------------------------------- Laali Studio: the customer site
   (portal, upload, delivery). Same palette and fonts as the landing page (static/site.css). Always light. */
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url("/static/fonts/cormorant-italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/static/fonts/montserrat.woff2") format("woff2"); }
.laali {
  --bg: #FBF3E6; --surface: #FFFCF6; --surface-2: #F6ECDC; --sunk: #EEE0C9;
  --ink: #2B1A15; --ink-2: #6A5148; --ink-3: #9C8579; --line: #E4D3B7; --line-2: #EFE3CF;
  --rani: #A3142C; --rani-ink: #FBF3E6; --rani-soft: #F5DADD;
  --haldi: #9A6A0C; --haldi-soft: #F6E9C8; --leaf: #2F6B3F; --leaf-soft: #E3EFDF;
  --gold: #C9A24B; --laali-deep: #7E0F22;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --caps: "Montserrat", system-ui, sans-serif;
  --shadow: 0 1px 0 rgba(43, 26, 21, .04), 0 14px 30px -22px rgba(43, 26, 21, .45);
  color-scheme: light; background: var(--bg); color: var(--ink);
}
.laali .brandband { background: var(--rani); color: var(--rani-ink); padding-top: env(safe-area-inset-top); }
.laali .brandbar { padding: 14px 20px; }
.laali .brand { font: italic 600 26px/1 var(--serif); letter-spacing: 0; }
.laali .brandband .btn.quiet { color: var(--rani-ink); opacity: .85; }
.laali .brandband .btn.quiet:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.laali .brandband .code { color: rgba(251, 243, 230, .8) !important; }
.laali main { padding-top: 26px; }
.laali h1 { font: italic 500 clamp(38px, 10vw, 50px)/1.06 var(--serif); letter-spacing: -.005em; }
.laali h2 { font: italic 500 27px/1.15 var(--serif); }
.laali .lede { font-size: 16.5px; }
.laali .promise { font: italic 500 27px/1.2 var(--serif); color: var(--rani); }
.laali .drop .big { font: italic 500 27px/1.15 var(--serif); color: var(--rani); }
.laali .btn { font: 600 12.5px/1 var(--caps); letter-spacing: .12em; text-transform: uppercase; border-radius: 999px;
  min-height: 46px; padding: 0 22px; }
.laali .btn.small { min-height: 38px; padding: 0 16px; font-size: 11.5px; }
.laali .btn.quiet { text-transform: none; letter-spacing: 0; font: 500 14px/1 var(--sans); }
.laali .btn.primary { box-shadow: 0 10px 22px -14px rgba(126, 15, 34, .8); }
.laali .btn.primary:hover { background: var(--laali-deep); border-color: var(--laali-deep); filter: none; }
.laali .panel { border: 1px solid var(--line-2); }
.laali .rail > span.done { background: var(--gold); }
.laali .rail-labels .now { color: var(--rani); }
.laali .caption { background: var(--surface-2); }
.laali .frame { background: var(--laali-deep); }
.laali .files .prog i { background: var(--rani); }
.laali .files li.ok .prog i { background: var(--gold); }
.laali .drop { border-color: var(--line); background: var(--surface); }
.laali .drop.over { border-color: var(--rani); background: var(--rani-soft); }
.laali footer { color: var(--ink-3); }
.laali footer .footlinks a { color: var(--ink-2); border-bottom: 1px solid var(--line); }
.laali input:focus, .laali select:focus, .laali textarea:focus { border-color: var(--rani); box-shadow: 0 0 0 3px var(--rani-soft); }
.laali .sticky-cta { background: linear-gradient(rgba(251, 243, 230, 0), var(--bg) 30%); }
