/* P2 Sites client dashboard. Design: Draft 6 "Blue + Chat" (website-generator/dashboard-drafts/6-blue-chat). */
@font-face { font-family: Inter; src: url("/dash/InterVariable-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --blue: #2B4BFF; --blue-2: #2240E6; --blue-soft: #EAEDFF; --ink: #0B0B0C; --paper: #FFFFFF; --card: #FFFFFF; --fog: #F2F2F4;
  --steel: #6B6F7A; --line: #E3E3E8; --green: #12804A; --green-soft: #E3F4EA; --amber: #A15C00; --amber-soft: #FFF1DC;
  --red: #C62828; --red-soft: #FDECEC; --shadow: 0 10px 40px rgba(11,11,12,.08), 0 0 0 1px rgba(11,11,12,.04);
  --font: Inter, -apple-system, "Helvetica Neue", Arial, sans-serif; color-scheme: light;
  /* Motion, after Apple's Human Interface Guidelines: brief, purposeful, no bounce. --spring is close to the critically
     damped spring iOS uses for sheets; --out for small changes. Reduce Motion swaps movement for fades (bottom). */
  --spring: cubic-bezier(0.32, 0.72, 0, 1); --out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 120ms; --t-fast: 180ms; --t: 280ms; --t-sheet: 450ms;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #F2F2F4; --paper: #0E0F12; --card: #17181C; --fog: #22242A; --steel: #9A9DA8; --line: #2C2E35; --blue-soft: #1D2448;
    --green-soft: #12301F; --amber-soft: #3A2A10; --red-soft: #3A1717; --green: #4CC38A; --amber: #F0B35A; --red: #FF8A80;
    --shadow: 0 0 0 1px #2C2E35; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* shell */
.app { display: grid; grid-template-columns: 96px 1fr; min-height: 100vh; }
.rail { background: var(--blue); color: #fff; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 0; position: sticky; top: 0; height: 100vh; z-index: 5; }
.rail .mk { margin-bottom: 22px; display: block; width: 46px; height: 46px; }
.rail a, .ptabs a { position: relative; }
.rail a { width: 76px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-radius: 16px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); }
.rail a:hover { background: rgba(255,255,255,.1); color: #fff; }
.rail a.on { background: #fff; color: var(--blue); }
.nb { position: absolute; top: 6px; right: 16px; min-width: 18px; height: 18px; border-radius: 9px; background: #FF4D4D; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.av { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.rail .av { margin-top: auto; color: var(--blue); background: #fff; }
.rail .av:hover { background: #fff; color: var(--blue); }
main { min-width: 0; }
.band { background: var(--blue); color: #fff; padding: 40px 56px 112px; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 70px solid rgba(255,255,255,.07); pointer-events: none; }
.band.slim { padding-bottom: 104px; }
.band .top { display: none; }
.band .hi { font-size: 17px; color: rgba(255,255,255,.82); margin: 0 0 8px; position: relative; z-index: 1; }
.band .hi a:hover { text-decoration: underline; }
.band h1 { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -.045em; max-width: 16ch; position: relative; z-index: 1; }
.band.slim h1 { font-size: clamp(32px, 4.4vw, 54px); }
.band .sub { color: rgba(255,255,255,.88); font-size: 18px; margin: 14px 0 0; max-width: 52ch; position: relative; z-index: 1; }
.band .row { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; position: relative; z-index: 1; }
.band .row b { display: block; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.band .row span { font-size: 14px; color: rgba(255,255,255,.78); }
.body { padding: 0 56px 110px; margin-top: -72px; position: relative; z-index: 2; max-width: 1240px; }
.cards { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cards.even { grid-template-columns: 1fr 1fr; }
.cards.one { grid-template-columns: minmax(0, 760px); }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.card { background: var(--card); border-radius: 26px; padding: 28px; box-shadow: var(--shadow); min-width: 0; }
.card h2 { margin: 0 0 18px; font-size: 20px; letter-spacing: -.02em; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h2 a, .card h2 button.link { font-size: 14px; color: var(--blue); font-weight: 600; }
.card .lead { margin: -10px 0 16px; color: var(--steel); font-size: 14px; }
.muted { color: var(--steel); }
.small { font-size: 14px; }
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 99px; font-weight: 700; border: 0; background: var(--blue); color: #fff; }
.btn:hover { background: var(--blue-2); }
.btn.ghost { background: var(--blue-soft); color: var(--blue); }
.btn.plain { background: var(--fog); color: var(--ink); }
.btn.danger { background: var(--red-soft); color: var(--red); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
button.link { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; }
.fab { position: fixed; right: 36px; bottom: 36px; height: 64px; padding: 0 26px 0 20px; border-radius: 99px; background: var(--ink); color: var(--paper); display: flex; align-items: center; gap: 10px; font-weight: 700; box-shadow: 0 10px 30px rgba(11,11,12,.3); z-index: 20; }
.ptabs { display: none; }
.empty { min-height: 100vh; display: grid; place-items: center; color: var(--steel); padding: 24px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 12px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-size: 15px; z-index: 80; opacity: 0; transition: opacity var(--t-fast) var(--out), transform var(--t) var(--spring); pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.err { color: var(--red); font-size: 14px; margin: 8px 0 0; min-height: 1em; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; background: var(--amber-soft); color: var(--ink); font-size: 14px; margin: 0 0 20px; }
.note.blue { background: var(--blue-soft); }
.note b { display: block; font-size: 15px; }
.note svg { color: var(--amber); margin-top: 2px; }
.note.blue svg { color: var(--blue); }

/* forms */
.lab { display: block; font-weight: 700; margin: 0 0 10px; font-size: 16px; }
.field { margin: 0 0 22px; }
.input, textarea.input, select.input { width: 100%; border: 2px solid var(--fog); background: var(--fog); border-radius: 16px; padding: 12px 16px; font-size: 16px; line-height: 1.4; }
.input:focus { outline: 0; border-color: var(--blue); background: var(--card); }
textarea.input { min-height: 130px; resize: vertical; }
select.input { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B6F7A' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; }
.pills span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: var(--fog); font-weight: 600; cursor: pointer; font-size: 15px; }
.pills input:checked + span { background: var(--blue); color: #fff; }
.pills input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kinds label { position: relative; }
.kinds input { position: absolute; opacity: 0; }
.kinds span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 18px 8px; min-height: 100px; border-radius: 18px; background: var(--fog); font-size: 14px; font-weight: 600; cursor: pointer; border: 2px solid transparent; height: 100%; }
.kinds input:checked + span { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }
.kinds input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.tg { position: relative; display: inline-block; width: 52px; height: 32px; cursor: pointer; flex: none; }
.tg input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tg i { position: absolute; inset: 0; border-radius: 99px; background: #C9CAD2; transition: background .15s; pointer-events: none; }
.tg i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tg input:checked + i { background: var(--blue); }
.tg input:checked + i::after { transform: translateX(20px); }
.tg input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }
.togrow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--fog); }
.togrow .t { flex: 1; } .togrow b { display: block; } .togrow span { color: var(--steel); font-size: 14px; }
.wiz { display: flex; gap: 8px; margin-top: 26px; position: relative; z-index: 1; flex-wrap: wrap; }
.wiz span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 99px; background: rgba(255,255,255,.14); font-size: 14px; font-weight: 600; }
.wiz span i { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.25); display: grid; place-items: center; font-style: normal; font-size: 12px; }
.wiz span.done i { background: #fff; color: var(--blue); }
.wiz span.on { background: #fff; color: var(--blue); } .wiz span.on i { background: var(--blue); color: #fff; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; margin-top: 6px; border-top: 1px solid var(--line); }
.foot .btn { height: 54px; padding: 0 30px; font-size: 16px; }
.chosen { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--blue-soft); color: var(--blue); font-weight: 700; margin-bottom: 22px; }
.chosen button { margin-left: auto; }
.attach { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.attach .add { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 18px; border-radius: 16px; border: 2px dashed var(--line); color: var(--blue); font-weight: 700; background: none; }
.chip-file { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 12px; border-radius: 12px; background: var(--fog); font-size: 14px; max-width: 260px; }
.chip-file span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-file button { border: 0; background: none; color: var(--steel); width: 26px; height: 26px; border-radius: 50%; }
.sum dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; font-size: 15px; }
.sum dt { color: var(--steel); } .sum dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.sum hr { border: 0; border-top: 1px dashed var(--line); margin: 18px 0; }

/* home */
.sitec .pv { border-radius: 16px; overflow: hidden; margin-bottom: 18px; background: var(--fog); aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--steel); }
.sitec .pv iframe { width: 1280px; height: 800px; border: 0; transform-origin: 0 0; pointer-events: none; }
.sitec .addr { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sitec b { font-size: 20px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--green); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.qgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.qgrid a { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--fog); position: relative; min-width: 0; }
.qgrid a:hover { background: var(--blue-soft); }
.qgrid .qi { width: 40px; height: 40px; border-radius: 12px; background: var(--card); color: var(--blue); display: grid; place-items: center; }
.qgrid b { display: block; font-size: 15px; } .qgrid span { font-size: 13px; color: var(--steel); display: block; overflow: hidden; text-overflow: ellipsis; }
.qgrid a.flag::after { content: ""; position: absolute; top: 14px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.time .big { font-size: 48px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--blue); }
.time .big small { font-size: 18px; color: var(--steel); font-weight: 600; letter-spacing: -.01em; }
.dots { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; margin: 16px 0 10px; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: var(--blue); }
.dots i.used { background: var(--fog); }
.time p { margin: 0; color: var(--steel); font-size: 14px; }
.wsteps { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 34px; position: relative; z-index: 1; max-width: 880px; }
.wsteps div { position: relative; padding-top: 34px; font-size: 14px; color: rgba(255,255,255,.75); padding-right: 8px; }
.wsteps div::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.25); }
.wsteps div.done::before { background: #fff; }
.wsteps div.now::before { background: linear-gradient(90deg, #fff 50%, rgba(255,255,255,.25) 50%); }
.wsteps div::after { content: ""; position: absolute; top: 0; left: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--blue); box-shadow: inset 0 0 0 3px rgba(255,255,255,.45); }
.wsteps div.done::after { background: #fff; box-shadow: none; }
.wsteps div.now::after { background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.25); }
.wsteps b { display: block; color: #fff; font-size: 15px; }
.task { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.task:first-of-type { border-top: 0; padding-top: 0; }
.task .ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.task .t { flex: 1; min-width: 0; } .task b { display: block; } .task span { color: var(--steel); font-size: 14px; }
.task.ok .ic { background: var(--green-soft); color: var(--green); } .task.ok b { color: var(--steel); }
.rlist a { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.rlist a:first-child { border-top: 0; padding-top: 0; }
.rlist .t { flex: 1; min-width: 0; } .rlist b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rlist span { font-size: 13px; color: var(--steel); }
.tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; background: var(--fog); color: var(--steel); }
.tag.done { background: var(--green-soft); color: var(--green); } .tag.in-progress { background: var(--blue); color: #fff; } .tag.waiting-on-client { background: var(--amber-soft); color: var(--amber); }
.tag.new { background: var(--fog); color: var(--ink); } .tag.won-t-do { background: var(--red-soft); color: var(--red); }

/* messages */
.m { display: flex; gap: 10px; align-items: flex-end; max-width: 82%; }
.m .bub { padding: 12px 16px; border-radius: 20px 20px 20px 6px; background: var(--fog); font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.m.me { align-self: flex-end; flex-direction: row-reverse; }
.m.me .bub { background: var(--blue); color: #fff; border-radius: 20px 20px 6px 20px; }
.m .who { width: 30px; height: 30px; flex: none; }
.m .who img { width: 30px; height: 30px; display: block; }
.meta { font-size: 12px; color: var(--steel); margin-top: 4px; }
.m.me .meta { text-align: right; }
.sys { align-self: center; font-size: 13px; color: var(--steel); background: var(--fog); padding: 6px 12px; border-radius: 12px; max-width: 90%; text-align: center; }
.sys.done { background: var(--green-soft); color: var(--green); font-weight: 600; }
.day { align-self: center; font-size: 12px; font-weight: 600; color: var(--steel); }
.bub .files { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.bub .files a { display: flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: underline; }
.bub .files img { display: block; max-width: 220px; max-height: 220px; border-radius: 12px; }
.chat { display: grid; grid-template-columns: 300px 1fr; padding: 0; overflow: hidden; height: min(700px, calc(100vh - 190px)); min-height: 480px; }
.tlist { border-right: 1px solid var(--line); padding: 14px 10px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.tlist > a { display: flex; gap: 12px; padding: 12px 10px; border-radius: 16px; align-items: flex-start; }
.tlist > a:hover { background: var(--fog); }
.tlist > a.on { background: var(--blue-soft); }
.tlist .ti { width: 42px; height: 42px; border-radius: 50%; background: var(--fog); color: var(--steel); display: grid; place-items: center; flex: none; overflow: hidden; }
.tlist .tt { flex: 1; min-width: 0; }
.tlist .tt div { display: flex; justify-content: space-between; gap: 8px; }
.tlist b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlist small { font-size: 12px; color: var(--steel); white-space: nowrap; }
.tlist p { margin: 2px 0 0; font-size: 13px; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlist .tag { display: inline-block; margin-top: 5px; font-size: 11px; padding: 3px 8px; }
.tlist .unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-left: 6px; vertical-align: middle; }
.conv { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.conv .head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.conv .head b { display: block; } .conv .head span { font-size: 13px; color: var(--steel); }
.conv .head .back { display: none; }
.conv .msgs { flex: 1; overflow: auto; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.box { padding: 12px 16px; border-top: 1px solid var(--line); background: var(--card); }
.box .row { display: flex; align-items: flex-end; gap: 8px; }
.box .att { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--fog); color: var(--steel); flex: none; border: 0; }
.box textarea { flex: 1; min-height: 46px; max-height: 160px; margin: 0; border: 2px solid var(--fog); background: var(--fog); border-radius: 23px; padding: 11px 18px; font-size: 16px; resize: none; line-height: 1.35; }
.box textarea:focus { outline: 0; border-color: var(--blue); background: var(--card); }
.snd { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; border: 0; flex: none; }
.snd:disabled { opacity: .5; }
.box .attach { margin-bottom: 8px; }
.mini { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.mini input { flex: 1; min-width: 0; height: 46px; border: 2px solid var(--fog); background: var(--fog); border-radius: 99px; padding: 0 18px; font-size: 15px; }
.mini input:focus { outline: 0; border-color: var(--blue); background: var(--card); }
.chips { display: none; }

/* files */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fcard { border-radius: 16px; background: var(--fog); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.fcard .th { aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--steel); background: var(--line); }
.fcard .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fcard .fi { padding: 10px 12px; font-size: 13px; min-width: 0; }
.fcard .fi b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.fcard .x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.drop { border: 2px dashed var(--line); border-radius: 20px; padding: 26px; text-align: center; color: var(--steel); display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.drop.over { border-color: var(--blue); background: var(--blue-soft); }
.drop svg { color: var(--blue); }
.drop b { color: var(--ink); }
.progress { height: 6px; border-radius: 4px; background: var(--fog); overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: var(--blue); }

/* editors */
.dr { display: grid; grid-template-columns: 120px 64px 1fr; gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--line); }
.dr:first-child { border-top: 0; padding-top: 0; }
.dr .dn { font-weight: 700; padding-top: 10px; }
.dr .tg { margin-top: 4px; }
.times { display: flex; flex-direction: column; gap: 8px; }
.tr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tr select { height: 44px; border: 2px solid var(--fog); background: var(--fog); border-radius: 12px; padding: 0 10px; font-weight: 600; font-size: 15px; }
.tr span { color: var(--steel); font-size: 14px; }
.tr .x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--steel); border: 0; background: none; }
.addh { color: var(--blue); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 4px 0; align-self: flex-start; }
.closed { color: var(--steel); padding-top: 10px; font-weight: 600; }
.copyall { margin-top: 6px; }
.sp { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sp:first-of-type { border-top: 0; }
.cal { width: 52px; height: 56px; border-radius: 14px; background: var(--fog); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.cal small { font-size: 11px; font-weight: 700; color: #FF4D4D; text-transform: uppercase; }
.cal b { font-size: 20px; line-height: 1; }
.sp .t { flex: 1; min-width: 140px; } .sp .t b { display: block; } .sp .t span { color: var(--steel); font-size: 14px; }
.sp.sug .t span { color: var(--amber); font-weight: 600; }
.spedit { width: 100%; display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: var(--fog); }
.spedit .input { background: var(--card); border-color: var(--card); }
.addd { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 16px; border: 2px dashed var(--line); color: var(--blue); font-weight: 700; margin-top: 10px; width: 100%; background: none; }
.prev { background: #F6EFE6; border-radius: 16px; padding: 18px 20px; font-family: Georgia, serif; color: #3B2414; }
.prev h4 { margin: 0 0 10px; font-size: 18px; }
.prev dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14px; }
.prev dt { font-weight: 700; } .prev dd { margin: 0; text-align: right; }
.prev .bn { background: #3B2414; color: #F6EFE6; font: 600 14px/1.4 var(--font); padding: 10px 14px; border-radius: 10px; text-align: center; }
.savebar { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.savebar p { margin: 0; flex: 1; color: var(--steel); font-size: 14px; min-width: 160px; }
.savebar .btn { height: 54px; padding: 0 30px; font-size: 16px; }

/* account */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: 15px; }
.kv dt { color: var(--steel); } .kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.inv { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.inv:first-child { border-top: 0; }
.inv .t { flex: 1; min-width: 0; } .inv span { color: var(--steel); font-size: 13px; display: block; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.person:first-child { border-top: 0; }
.person .av { background: var(--blue-soft); width: 38px; height: 38px; font-size: 13px; }
.person .t { flex: 1; min-width: 0; } .person b { display: block; overflow-wrap: anywhere; } .person span { color: var(--steel); font-size: 13px; }

/* sign in */
.signin { min-height: 100vh; background: var(--blue); display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.signin::after { content: ""; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%; border: 90px solid rgba(255,255,255,.07); }
.signin .card { width: 100%; max-width: 420px; position: relative; z-index: 1; padding: 34px; }
.signin h1 { font-size: 30px; letter-spacing: -.03em; margin: 26px 0 8px; line-height: 1.1; }
.signin p { margin: 0 0 22px; color: var(--steel); }
.signin .btn { width: 100%; height: 54px; font-size: 16px; }
.codein { font-size: 28px !important; letter-spacing: .5em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.signin .alt { margin-top: 18px; text-align: center; font-size: 14px; }
.devcode { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--amber-soft); font-size: 14px; }

@media (max-width: 900px) {
  .app { display: block; }
  .rail { display: none; }
  .band { padding: 18px 20px 96px; }
  .band.slim { padding-bottom: 92px; }
  .band .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; position: relative; z-index: 1; }
  .band .top img { height: 26px; display: block; }
  .band .top .av { width: 36px; height: 36px; font-size: 13px; }
  .band .row { gap: 22px; margin-top: 22px; } .band .row b { font-size: 24px; }
  .band .sub { font-size: 16px; }
  .body { padding: 0 14px calc(120px + env(safe-area-inset-bottom)); margin-top: -64px; }
  .cards, .cards.even { grid-template-columns: 1fr; gap: 14px; } .stack { gap: 14px; }
  .card { padding: 20px; border-radius: 22px; }
  .qgrid { grid-template-columns: 1fr 1fr; }
  .kinds { grid-template-columns: repeat(2, 1fr); }
  .wsteps { grid-template-columns: 1fr; margin-top: 24px; }
  .wsteps div { padding: 0 0 16px 36px; }
  .wsteps div::before { top: 21px; bottom: 0; left: 9px; right: auto; width: 3px; height: auto; }
  .wsteps div:last-child::before { display: none; }
  .wsteps div.now::before { background: rgba(255,255,255,.25); }
  .wsteps div b { display: inline; margin-right: 6px; }
  .fab { right: 18px; bottom: calc(88px + env(safe-area-inset-bottom)); width: 60px; height: 60px; padding: 0; justify-content: center; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 8px 24px rgba(43,75,255,.45); }
  .fab span { display: none; }
  .foot { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); background: var(--card); margin: 6px -20px -20px; padding: 14px 20px; border-radius: 0 0 22px 22px; z-index: 3; }
  .foot .btn { flex: 1; }
  .ptabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); padding: 8px 4px calc(8px + env(safe-area-inset-bottom)); z-index: 15; }
  .ptabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--steel); padding: 4px 0; }
  .ptabs a.on { color: var(--blue); }
  .ptabs .nb { top: 0; right: calc(50% - 22px); }
  .chat { display: block; height: auto; min-height: 0; overflow: visible; }
  .chat.open .tlist { display: none; }
  .chat:not(.open) .conv { display: none; }
  .tlist { border-right: 0; padding: 8px 4px; }
  .conv .head .back { display: grid; place-items: center; width: 36px; height: 36px; margin-left: -8px; color: var(--blue); }
  .conv .msgs { padding: 16px 12px; overflow: visible; }
  .m { max-width: 90%; }
  .box { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); border-radius: 0 0 22px 22px; padding: 10px 12px; }
  .dr { grid-template-columns: 1fr auto; gap: 10px; }
  .dr .dn { padding-top: 6px; }
  .dr .tg { grid-column: 2; grid-row: 1; margin-top: 0; }
  .dr .times, .dr .closed { grid-column: span 2; padding-top: 0; }
  .tr select { flex: 1; min-width: 0; }
  .savebar { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); background: var(--card); margin: 22px -20px -20px; padding: 14px 20px; border-radius: 0 0 22px 22px; z-index: 3; }
  .savebar p { display: none; } .savebar .btn { flex: 1; }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* menu and product editors */
.ib { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--fog); color: var(--steel); display: grid; place-items: center; flex: none; }
.ib:hover { color: var(--ink); } .ib.danger:hover { color: var(--red); background: var(--red-soft); }
.chipbtn { border: 0; background: var(--fog); color: var(--ink); font-weight: 600; font-size: 13px; padding: 8px 12px; border-radius: 99px; white-space: nowrap; }
.chipbtn.on { background: var(--amber-soft); color: var(--amber); }
.msecs { display: flex; flex-direction: column; gap: 18px; }
.msec { border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mhead { display: flex; gap: 6px; align-items: center; }
.mhead .mname { font-weight: 700; font-size: 17px; }
.mnote { font-size: 14px; padding: 9px 14px; }
.mitem { background: var(--fog); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mitem .input { background: var(--card); border-color: var(--card); padding: 9px 12px; font-size: 15px; }
.mitem .input:focus { border-color: var(--blue); }
.mitem.off { opacity: .6; } .mitem.sold { box-shadow: inset 3px 0 0 var(--amber); }
.mrow { display: flex; gap: 8px; align-items: center; }
.mprice { width: 96px; flex: none; }
.mdesc { min-height: 40px !important; resize: vertical; }
.mthumb { width: 44px; height: 44px; border-radius: 12px; border: 0; padding: 0; overflow: hidden; flex: none; background: var(--card); color: var(--steel); display: grid; place-items: center; }
.mthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mthumb.add { border: 2px dashed var(--line); }
.mfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.mini-pills span { padding: 5px 10px; font-size: 12.5px; background: var(--card); }
.mact { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mact .ib { background: var(--card); }
.plist { display: flex; flex-direction: column; gap: 10px; }
.pitem { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.pitem.off { opacity: .65; }
.phead { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; background: none; border: 0; text-align: left; }
.phead .mthumb { background: var(--fog); }
.pt { flex: 1; min-width: 0; } .pt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pt span { font-size: 13px; color: var(--steel); }
.pbody { padding: 6px 16px 16px; border-top: 1px solid var(--line); }
.pbody .field { margin-bottom: 16px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pphotos { display: flex; gap: 10px; flex-wrap: wrap; }
.pph { width: 92px; height: 92px; border-radius: 14px; overflow: hidden; position: relative; background: var(--fog); }
.pph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pph.add { border: 2px dashed var(--line); background: none; color: var(--blue); font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; }
.pphb { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; }
.pphb .ib { width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; }
/* the preview looks like a plain client site (same classes as site-kit/p2.css) */
.p2prev { background: #F6EFE6; color: #3B2414; border-radius: 16px; padding: 18px; font: 15px/1.5 Georgia, serif; max-height: 70vh; overflow: auto; }
.p2prev h3 { margin: 0 0 6px; font-size: 19px; }
.p2prev .p2-menu-section { margin-bottom: 22px; }
.p2prev .p2-note { opacity: .7; margin: 0 0 8px; }
.p2prev .p2-items { list-style: none; margin: 0; padding: 0; }
.p2prev .p2-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(59,36,20,.15); }
.p2prev .p2-item .p2-photo { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }
.p2prev .p2-item-main { flex: 1; min-width: 0; }
.p2prev .p2-item-head { display: flex; justify-content: space-between; gap: 10px; }
.p2prev .p2-name { font-weight: 700; } .p2prev .p2-price { font-weight: 600; white-space: nowrap; }
.p2prev .p2-desc { margin: 3px 0 0; opacity: .75; }
.p2prev .p2-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 5px 0 0; }
.p2prev .p2-tag { font: 600 11px/1.6 var(--font); padding: 1px 8px; border-radius: 99px; border: 1px solid rgba(59,36,20,.25); }
.p2prev .p2-soldout .p2-name, .p2prev .p2-soldout .p2-price { opacity: .5; }
.p2prev .p2-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.p2prev .p2-product { display: flex; flex-direction: column; font-family: var(--font); }
.p2prev .p2-product .p2-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin-bottom: 6px; background: rgba(59,36,20,.1); }
.p2prev .p2-product .p2-name { margin: 0; font-size: 15px; } .p2prev .p2-options { margin: 2px 0 0; font-size: 12.5px; opacity: .7; }
.p2prev .p2-product .p2-desc { font-size: 13px; }
.p2prev .p2-buy { align-self: flex-start; margin-top: 8px; background: #3B2414; color: #F6EFE6; padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: 13px; }
.p2prev .p2-flag { font-weight: 700; font-size: 12.5px; margin-top: 6px; }
@media (max-width: 900px) {
  .f2 { grid-template-columns: 1fr; }
  .mprice { width: 84px; }
  .p2prev { max-height: none; }
}
.mdur { max-width: 220px; }
.trow { display: flex; gap: 12px; align-items: flex-start; }
.tph { width: 96px; height: 120px; flex: none; }
.p2prev .p2-service-group { margin-bottom: 20px; }
.p2prev .p2-duration { margin: 2px 0 0; font-size: 13px; opacity: .7; }
.p2prev .p2-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; font-family: var(--font); }
.p2prev .p2-member .p2-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; margin-bottom: 6px; background: rgba(59,36,20,.1); display: block; }
.p2prev .p2-member .p2-name { margin: 0; font-size: 15px; } .p2prev .p2-role { margin: 1px 0 0; font-size: 13px; opacity: .7; }
.p2prev .p2-member .p2-desc { font-size: 13px; }
.p2prev .p2-booking { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-family: var(--font); }
.p2prev .p2-book { background: #3B2414; color: #F6EFE6; padding: 11px 20px; border-radius: 99px; font-weight: 700; }
.p2prev .p2-booking .p2-note { margin: 0; font-size: 14px; }

/* ---------- motion ---------- */
main.enter > * { animation: rise var(--t) var(--out) both; }
main.enter > .body { animation-delay: 40ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.btn, .qgrid a, .rlist a, .sw-row, .sw-act, .chipbtn, .ib, .kinds span, .pills span, .fab, .rail a, .ptabs a, .tlist > a, .av, .addd, .phead, .seg button {
  transition: transform var(--t-press) var(--out), background-color var(--t-fast) var(--out), color var(--t-fast) var(--out), box-shadow var(--t-fast) var(--out); }
.btn:active, .qgrid a:active, .rlist a:active, .sw-row:active, .sw-act:active, .chipbtn:active, .ib:active, .kinds span:active, .pills span:active, .fab:active, .tlist > a:active, .av:active, .addd:active, .phead:active, .seg button:active { transform: scale(.97); }
.tg i, .tg i::after { transition-timing-function: var(--spring); transition-duration: var(--t-fast); }

/* ---------- business switcher ---------- */
button.av { border: 0; cursor: pointer; font: inherit; font-weight: 800; padding: 0; }
.rail button.av { margin-top: auto; }
.scrim { position: fixed; inset: 0; background: rgba(11,11,12,.34); opacity: 0; transition: opacity var(--t) var(--out); z-index: 70; }
.scrim.open { opacity: 1; }
.switcher { position: fixed; z-index: 71; background: var(--card); color: var(--ink); }
.sheet { left: 0; right: 0; bottom: 0; border-radius: 22px 22px 0 0; padding: 8px 10px calc(14px + env(safe-area-inset-bottom)); max-height: 86vh; overflow: auto;
  box-shadow: 0 -12px 40px rgba(11,11,12,.18); transform: translateY(100%); transition: transform var(--t-sheet) var(--spring); touch-action: none; }
.sheet.open { transform: none; }
.sheet.dragging { transition: none; }
.grabber { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 10px; }
.popover { width: 340px; border-radius: 20px; padding: 8px; box-shadow: 0 24px 60px rgba(11,11,12,.24), 0 0 0 1px rgba(11,11,12,.05);
  opacity: 0; transform: scale(.94) translateY(6px); transform-origin: bottom left; transition: opacity var(--t-fast) var(--out), transform var(--t) var(--spring); }
.popover.open { opacity: 1; transform: none; }
.sw-head { margin: 4px 12px 8px; font-size: 13px; font-weight: 700; color: var(--steel); letter-spacing: .02em; }
.sw-row, .sw-act { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: none; border-radius: 14px; text-align: left; color: var(--ink); font: inherit; cursor: pointer; }
.sw-row:hover, .sw-act:hover { background: var(--fog); }
.sw-av { width: 44px; height: 44px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; }
.sw-row.cur .sw-av { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--blue); }
.sw-t { flex: 1; min-width: 0; } .sw-t b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-t span { display: block; font-size: 13px; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-check { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; }
.sw-dot { min-width: 20px; height: 20px; border-radius: 10px; background: #FF4D4D; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; flex: none; }
.sw-sep { height: 1px; background: var(--line); margin: 8px 12px; }
.sw-act { font-weight: 600; font-size: 15px; padding: 12px; }
.sw-ic { width: 44px; display: grid; place-items: center; color: var(--steel); flex: none; }
.rlist a.unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-left: 6px; vertical-align: middle; }

/* Reduce Motion: no sliding or scaling, just quick fades (HIG). */
@media (prefers-reduced-motion: reduce) {
  main.enter > * { animation: fade var(--t-fast) linear both; }
  @keyframes fade { from { opacity: 0; } }
  .sheet { transform: none; opacity: 0; transition: opacity var(--t-fast) linear; }
  .sheet.open { opacity: 1; }
  .popover { transform: none; transition: opacity var(--t-fast) linear; }
  .toast { transform: translate(-50%, 0); }
  .btn:active, .qgrid a:active, .rlist a:active, .sw-row:active, .sw-act:active, .chipbtn:active, .ib:active, .kinds span:active, .pills span:active, .fab:active, .tlist > a:active, .av:active, .addd:active, .phead:active, .seg button:active { transform: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- link in bio editor ---------- */
.bio-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; position: relative; z-index: 1; }
.bio-sub a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; overflow-wrap: anywhere; }
.bio-sub .tag { background: rgba(255,255,255,.18); color: #fff; }
.bio-prevbtn { display: none; background: #fff; color: var(--blue); margin-left: auto; }
.bio-tabs { display: flex; gap: 6px; margin-top: 22px; position: relative; z-index: 1; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.bio-tabs::-webkit-scrollbar { display: none; }
.bio-tabs a { flex: none; padding: 9px 16px; border-radius: 99px; background: rgba(255,255,255,.14); color: #fff; font-weight: 600; font-size: 14px; transition: background-color var(--t-fast) var(--out), color var(--t-fast) var(--out); }
.bio-tabs a:hover { background: rgba(255,255,255,.24); }
.bio-tabs a.on { background: #fff; color: var(--blue); }
.bio-cards { grid-template-columns: minmax(0, 1fr) 360px; }
.bio-panel { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bio-phone { position: sticky; top: 24px; display: flex; flex-direction: column; align-items: center; }
.phone { width: 340px; height: min(700px, calc(100vh - 140px)); border-radius: 44px; padding: 12px; background: #0B0B0C; box-shadow: var(--shadow), 0 30px 60px -30px rgba(11,11,12,.5); }
.bio-frame { width: 100%; height: 100%; border: 0; border-radius: 34px; background: #fff; display: block; }
.bf { margin-bottom: 18px; display: block; }
.bh { display: block; margin-top: 6px; }
.bt { margin-bottom: 12px; cursor: pointer; }
.bio-add { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bio-kinds { grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.bio-kinds span { min-height: 86px; }
.bio-kinds span.dim { opacity: .5; }
.brow .mthumb.line { background: var(--fog); }
.tiles { display: flex; gap: 8px; flex-wrap: wrap; }
.tile { width: 56px; height: 56px; border-radius: 14px; border: 2px solid var(--line); background: var(--card); display: grid; place-items: center; padding: 0; overflow: hidden; font-size: 12px; font-weight: 700; color: var(--steel); cursor: pointer; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.tile.up { border-style: dashed; color: var(--blue); }
.bimg { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bimg img { width: 120px; max-height: 120px; object-fit: cover; border-radius: 12px; }
.galed { display: grid; gap: 8px; }
.galrow { display: flex; align-items: center; gap: 8px; }
.galrow img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; flex: none; }
.galrow .input { flex: 1; min-width: 0; }
.bio-banner { height: 120px; border-radius: 18px; position: relative; margin-bottom: 44px; }
.bio-avatar { position: absolute; left: 20px; bottom: -36px; width: 84px; height: 84px; border-radius: 50%; background: var(--fog); border: 4px solid var(--card); overflow: hidden; display: grid; place-items: center; font-weight: 800; font-size: 24px; color: var(--steel); }
.bio-avatar.sq { border-radius: 22px; }
.bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; background: var(--fog); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--steel); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(11,11,12,.12); }
.srow { display: grid; grid-template-columns: auto 36px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; background: var(--card); border-radius: 14px; }
.srow.wcount { grid-template-columns: auto 36px minmax(0, 1fr) 64px auto; }
.srow .input { padding: 10px 12px; font-size: 15px; }
/* solo.to-style editor pieces (2026-10-26): drag handles, character counts, icon library, network picker */
.phead-row { display: flex; align-items: center; padding-left: 4px; }
.phead-row .phead { padding-left: 4px; }
.grip { width: 28px; height: 40px; border: 0; background: none; color: var(--steel); display: grid; place-items: center; cursor: grab; touch-action: none; flex: none; border-radius: 8px; padding: 0; }
.grip:hover { color: var(--ink); background: var(--fog); }
.dragging { position: relative; z-index: 5; box-shadow: 0 16px 40px -12px rgba(11,11,12,.35); transform: scale(1.02); background: var(--card); transition: box-shadow var(--t-fast) var(--out), transform var(--t-fast) var(--spring); }
.dragging .grip { cursor: grabbing; }
.nosel { -webkit-user-select: none; user-select: none; }
.gl { display: block; width: 60%; height: 60%; background: currentColor; -webkit-mask: var(--g) center / contain no-repeat; mask: var(--g) center / contain no-repeat; }
.mthumb .gl { width: 22px; height: 22px; }
.cntw { position: relative; display: block; }
.cntw .input { padding-right: 64px; }
.cntw textarea.input { padding-right: 16px; padding-bottom: 28px; }
.cnt { position: absolute; right: 12px; bottom: 12px; font-size: 12px; color: var(--steel); font-variant-numeric: tabular-nums; pointer-events: none; }
.thumbbox { margin-top: 10px; }
.thumbbox:empty { display: none; }
.presetrow { display: flex; align-items: center; gap: 12px; }
.presetrow .mthumb { background: var(--fog); }
.icgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin-top: 10px; max-height: 240px; overflow-y: auto; padding: 2px; }
.icbtn { aspect-ratio: 1; border: 2px solid transparent; border-radius: 12px; background: var(--fog); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.icbtn:hover { background: var(--blue-soft); color: var(--blue); }
.icbtn.on { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.sched { font-style: normal; color: var(--amber); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.sched2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--blue); font-weight: 700; cursor: pointer; font: inherit; font-weight: 700; }
.bstack .field { margin: -4px 0 14px; }
.subh { font-size: 15px; margin: 22px 0 10px; }
.segs { display: flex; flex-wrap: wrap; gap: 0 18px; }
.seg button.dim, .togrow.dim { opacity: .55; }
.slist { margin-top: 6px; }
.neti { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--fog); }
.neti svg { width: 18px; height: 18px; fill: currentColor; } .neti svg[stroke] { fill: none; }
.netpick { margin-top: 12px; padding: 14px; border-radius: 18px; background: var(--fog); }
.netpick .input { background: var(--card); }
.netgroups h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--steel); margin: 16px 0 8px; }
.netgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.netchip { display: flex; align-items: center; gap: 8px; border: 0; background: var(--card); border-radius: 12px; padding: 6px 10px 6px 6px; font-weight: 600; font-size: 14px; color: var(--ink); cursor: pointer; text-align: left; }
.netchip .neti { width: 30px; height: 30px; }
.netchip span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.netchip .icw { color: var(--steel); }
.favrow { display: inline-flex; align-items: center; gap: 8px; } .favrow img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.subs { margin-top: 12px; }
.subs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.subrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.subrow span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sttiles.four { grid-template-columns: repeat(4, 1fr); }
.sttab { width: 100%; border-collapse: collapse; font-size: 14px; }
.sttab th { text-align: right; font-size: 12px; color: var(--steel); font-weight: 600; padding: 4px 0 6px 12px; }
.sttab td { padding: 7px 0; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; padding-left: 12px; }
.sttab td:first-child { text-align: left; padding-left: 0; max-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stbl h3 { display: flex; align-items: center; gap: 8px; }
.bio-sharebtn { background: rgba(255,255,255,.18); color: #fff; }
.bio-banner { overflow: visible; }
.bio-banner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.bio-banner .bio-avatar { z-index: 1; }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme { border: 2px solid var(--line); border-radius: 16px; background: var(--card); padding: 10px; display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink); }
.theme.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.th-sw { height: 56px; border-radius: 10px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.th-sw i { height: 12px; border-radius: 6px; border: 1px solid; }
.colorrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.colorrow input[type=color] { width: 40px; height: 40px; border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }
.dotc { width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.dotc.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--blue); }
.sttiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.sttile { background: var(--fog); border-radius: 16px; padding: 14px; } .sttile span { font-size: 13px; color: var(--steel); } .sttile b { display: block; font-size: 26px; letter-spacing: -.02em; }
.stchart { display: flex; align-items: flex-end; gap: 2px; height: 110px; margin-bottom: 20px; padding: 8px; background: var(--fog); border-radius: 16px; }
.stchart i { flex: 1; background: var(--blue); border-radius: 3px 3px 0 0; min-height: 2px; }
.stbl { margin-bottom: 18px; } .stbl h3 { font-size: 15px; margin: 0 0 8px; }
.strow { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr auto; gap: 10px; align-items: center; font-size: 14px; padding: 4px 0; }
.strow span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .strow i { height: 8px; border-radius: 4px; background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); } .strow b { font-variant-numeric: tabular-nums; }
.bio-pick { display: flex; align-items: center; gap: 14px; }
.bio-pick .sw-av { overflow: hidden; } .bio-pick .sw-av img { width: 100%; height: 100%; object-fit: cover; }
.bio-save { position: fixed; right: 32px; bottom: 32px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-radius: 99px; background: var(--ink); color: var(--paper);
  box-shadow: 0 14px 40px rgba(11,11,12,.3); font-weight: 600; font-size: 14px; transform: translateY(140%); opacity: 0; pointer-events: none;
  transition: transform var(--t) var(--spring), opacity var(--t-fast) var(--out); }
.bio-save.show { transform: none; opacity: 1; pointer-events: auto; }
.bio-save .btn.plain { background: rgba(255,255,255,.14); color: var(--paper); }
.bio-sheet { height: 92vh; display: flex; flex-direction: column; touch-action: auto; }
.bio-sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 10px; }
.bio-sheet iframe { flex: 1; border: 0; border-radius: 16px; width: 100%; background: #fff; }
/* the phone preview stays beside the editor on laptops; it gets a little smaller before it moves into the Preview sheet */
@media (max-width: 1240px) { .bio-cards { grid-template-columns: minmax(0, 1fr) 300px; } .phone { width: 300px; } }
@media (max-width: 980px) { .bio-cards { grid-template-columns: 1fr; } .bio-phone { display: none; } .bio-prevbtn { display: inline-flex; } }
.linkword { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .linkword b { font-size: 16px; }
.dnsrec { background: var(--fog); padding: 14px 16px; border-radius: 14px; } .dnsrec dd { font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
@media (max-width: 900px) {
  .bio-kinds { grid-template-columns: repeat(2, 1fr); }
  .sttiles.four { grid-template-columns: repeat(2, 1fr); }
  .seg button { padding: 8px 13px; }
  .sched2 { grid-template-columns: 1fr; }
  .netgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bio-save { left: 14px; right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); justify-content: flex-end; }
  .bio-save span { flex: 1; }
  .sttiles { grid-template-columns: repeat(3, 1fr); } .sttile b { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .bio-save { transform: none; transition: opacity var(--t-fast) linear; } .dragging { transform: none; } }

/* website inbox: a message's fields read top to bottom, words as typed */
.kv.fl { grid-template-columns: minmax(80px, auto) 1fr; }
.kv.fl dd { text-align: left; font-weight: 500; white-space: pre-wrap; }
.seg.tabrow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .seg.tabrow::-webkit-scrollbar { display: none; } .seg.tabrow button { white-space: nowrap; }
.viewbar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 9px 16px; background: #0B0B0C; color: #fff; font-size: 14px; text-align: center; }
.viewbar button { border: 0; border-radius: 99px; background: #fff; color: #0B0B0C; font: inherit; font-weight: 700; padding: 5px 14px; cursor: pointer; flex: none; }

/* website snapshot: their site on a drawn laptop and phone (snapArt in dash.js) */
.snap { position: relative; margin: 0 0 20px; padding: 6px 10% 18px 0; }
.snap .lap .scr { position: relative; aspect-ratio: 16 / 10; border: 7px solid #16171B; border-bottom-width: 9px; border-radius: 14px 14px 4px 4px; overflow: hidden; background: var(--fog); }
.snap .lap .base { height: 10px; margin: 0 -5%; border-radius: 0 0 12px 12px; background: linear-gradient(#D9DAE0, #B9BBC3); position: relative; }
.snap .lap .base::after { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 4px; border-radius: 0 0 6px 6px; background: #A6A8B1; }
.snap .ph { position: absolute; right: 0; bottom: 0; width: 24%; min-width: 74px; }
.snap .ph .scr { aspect-ratio: 390 / 844; border: 5px solid #16171B; border-radius: 22px; overflow: hidden; background: var(--fog); box-shadow: 0 18px 40px -14px rgba(11, 11, 12, .45); }
.snap img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.snap .tag.mock { position: absolute; left: 12px; top: 16px; background: var(--amber-soft); color: var(--amber); }
.snap .sk { width: 100%; height: 100%; padding: 8% 7%; display: flex; flex-direction: column; gap: 7%; background: var(--card); }
.snap .sk i { display: block; border-radius: 6px; background: var(--fog); }
.snap .sk .nav { height: 6%; width: 100%; } .snap .sk .l1 { height: 5%; width: 70%; } .snap .sk .l2 { height: 5%; width: 50%; }
.snap .sk .btn { height: 8%; width: 28%; background: var(--blue); opacity: .85; border-radius: 99px; } .snap .sk .pic { flex: 1; }
.snap .sk b { font-size: clamp(11px, 2.4vw, 22px); letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.snap .sk.phone { padding: 14% 9%; gap: 5%; } .snap .sk.phone b { font-size: 10px; } .snap .sk.phone .btn { width: 60%; }

/* website inbox: who gets the emails */
.who-list { display: flex; flex-direction: column; border-radius: 16px; background: var(--fog); padding: 4px 14px; }
.who-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; overflow-wrap: anywhere; }
.who-row:first-child { border-top: 0; }
.who-row > span:not(.av):not(.icw) { flex: 1; min-width: 0; } .who-row .icw { color: var(--steel); } .who-row small { color: var(--steel); font-size: 12px; }
.who-row .av { width: 30px; height: 30px; font-size: 11px; background: var(--blue-soft); color: var(--blue); }
.who-row.pick { cursor: pointer; } .who-row input { width: 18px; height: 18px; accent-color: var(--blue); }

/* email and text lists (inboxList) */
.growth .gnum b { font-size: 40px; letter-spacing: -.03em; line-height: 1; } .growth .gnum span { color: var(--steel); }
.gbars { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; align-items: end; height: 72px; border-bottom: 1px solid var(--line); }
.gbar { display: block; background: var(--blue); border-radius: 4px 4px 0 0; min-height: 2px; cursor: default; }
.gbar[data-empty] { background: var(--line); }
.gbar:hover { opacity: .8; }
.gtip { position: absolute; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 8px; pointer-events: none; }
.gaxis { display: flex; justify-content: space-between; font-size: 12px; color: var(--steel); margin-top: 6px; }
.lactions { display: inline-flex; gap: 14px; align-items: baseline; } .lactions button.link, .lactions a { font-size: 14px; color: var(--blue); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; }
.lfilters { display: grid; grid-template-columns: 1fr; gap: 8px; margin: -4px 0 14px; }
@media (min-width: 560px) { .lfilters { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lfilters .searchbox { grid-column: 1 / -1; } }
.searchbox { display: flex; align-items: center; gap: 8px; background: var(--fog); border-radius: 16px; padding: 0 0 0 14px; color: var(--steel); }
.searchbox .input { background: transparent; border-color: transparent; padding-left: 0; }
.lsel { padding: 10px 12px; font-size: 14px; }
.pickbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--blue-soft); margin: 0 0 10px; }
.ltable { display: flex; flex-direction: column; }
.lrow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 11px 4px; border-top: 1px solid var(--line); cursor: pointer; }
.lrow input { width: 18px; height: 18px; accent-color: var(--blue); }
.lrow .lmain { min-width: 0; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
.lrow .lmain b { font-size: 15px; overflow-wrap: anywhere; } .lrow small { color: var(--steel); font-size: 12.5px; }
.lrow .lsrc { grid-column: 2; font-size: 13px; color: var(--steel); display: flex; gap: 8px; } .lrow .lwhen { grid-column: 3; grid-row: 1; font-size: 13px; color: var(--steel); white-space: nowrap; }
.lrow.lhead { border-top: 0; font-size: 12px; font-weight: 700; color: var(--steel); text-transform: uppercase; letter-spacing: .04em; padding-top: 0; }
.lrow.lhead .lsrc { display: none; }
.lrow.unsub .lmain b { color: var(--steel); }
@media (min-width: 900px) { .lrow { grid-template-columns: 22px minmax(0, 1.6fr) minmax(0, 1fr) auto; } .lrow .lsrc { grid-column: 3; grid-row: 1; } .lrow .lwhen { grid-column: 4; } .lrow.lhead .lsrc { display: flex; } }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.hqdlg { border: 0; border-radius: 24px; padding: 28px; width: min(560px, calc(100vw - 32px)); background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(11,11,12,.35); }
.hqdlg::backdrop { background: rgba(11,11,12,.45); }
.hqdlg h2 { margin: 0 0 18px; font-size: 22px; letter-spacing: -.02em; }
.hqf { display: flex; flex-direction: column; margin: 0 0 14px; } .hqf .lab { font-size: 13px; margin: 0 0 6px; color: var(--steel); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@media (max-width: 559px) {
  .card h2:has(.lactions) { flex-wrap: wrap; }
  .lactions { width: 100%; gap: 18px; }
  .lsel { padding: 8px 12px; }
  .lfilters { grid-template-columns: 1fr 1fr; } .lfilters .searchbox { grid-column: 1 / -1; } .lfilters .lsel:last-child { grid-column: 1 / -1; }
}
.reqchange { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* opened from the home screen ("Add to home screen"): the status bar sits over the top of the page */
@media (max-width: 900px) { .band { padding-top: calc(18px + env(safe-area-inset-top)); } .viewbar ~ .app .band { padding-top: 18px; } }
.signin { padding-top: calc(24px + env(safe-area-inset-top)); }
.viewbar { padding-top: calc(9px + env(safe-area-inset-top)); }
.a2hs ol { margin: 0; padding-left: 20px; } .a2hs li { margin: 4px 0; }
