/* Scale Leads: white, phone-first. Navy "Ring next" card, one big blue Ring button, white sheets. */
:root {
  --bg: #F3F5F9; --card: #FFFFFF; --text: #111A26; --muted: #6B7C93; --line: #E6EAF0; --soft: #F1F4F8;
  --navy: #111A26; --navy2: #1B2738; --navy-line: #2C3A50; --navy-muted: #9AA9BE;
  --blue: #2196FE; --blue2: #0B78DE; --tint: #EAF2FE;
  --green: #17A35A; --green-tint: #E6F6EE; --amber: #C77A00; --amber-tint: #FFF4E0; --red: #D93F3F; --red-tint: #FDECEC;
  --shadow: 0 1px 2px rgba(17,26,38,.05), 0 4px 16px rgba(17,26,38,.06);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: hidden; margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 Manrope, system-ui, -apple-system, sans-serif; }
body { min-height: 100dvh; }
h1, h2, h3, .btn, .tab, .chip, .big, .hello { font-family: Figtree, Manrope, system-ui, sans-serif; }
a { color: var(--blue); text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
input, select, textarea { font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px calc(96px + var(--safe-b)); }

/* top bar */
.top { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 10px; margin: 0 -16px 6px; padding: calc(10px + var(--safe-t)) 16px 10px;
  background: rgba(243,245,249,.92); backdrop-filter: blur(10px); }
.top .logo { height: 26px; }
.top h1 { font-size: 19px; margin: 0; flex: 1; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .grow { flex: 1; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); color: var(--text); }
.icon-btn.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* greeting */
.hello { font-size: 26px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -.01em; }
.live { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }

/* navy ring-next card */
.hero { background: var(--navy); color: #fff; border-radius: 22px; padding: 16px; box-shadow: 0 10px 30px rgba(17,26,38,.18); }
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.eyebrow { font: 800 11px Figtree, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #7CC0FF; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.1); color: #DCE4EE; white-space: nowrap; }
.pill svg.i { width: 13px; height: 13px; }
.pill.hot { background: rgba(33,150,254,.22); color: #BFE0FF; }
.pill.due { background: rgba(245,165,36,.22); color: #FFD58A; }
.hero .name { font: 800 26px/1.15 Figtree, sans-serif; margin: 12px 0 2px; color: #fff; display: block; text-align: left; }
.hero .sub { color: var(--navy-muted); font-size: 14px; }
.hero .why { color: #DCE4EE; font-size: 13px; margin-top: 6px; }
.hero .dnd { color: #FFD58A; font-size: 13px; font-weight: 700; margin-top: 6px; }
.ring { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin: 16px 0 0; padding: 14px; border-radius: 16px;
  background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(33,150,254,.35); text-align: left; }
.ring svg.i { width: 24px; height: 24px; }
.ring b { display: block; font: 800 20px/1.1 Figtree, sans-serif; }
.ring span { display: block; font-size: 13px; opacity: .85; }
.ring:active { background: var(--blue2); transform: scale(.99); }
.wacall { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 10px 0 0; padding: 10px; border-radius: 12px;
  background: rgba(255,255,255,.08); color: #fff; font: 700 14px Figtree, sans-serif; text-decoration: none; }
.wacall svg.i { width: 16px; height: 16px; }
.ring.off { background: var(--navy2); color: var(--navy-muted); box-shadow: none; pointer-events: none; }
.logit { display: block; width: 100%; text-align: center; color: var(--navy-muted); font-size: 13px; padding: 10px 0 8px; }
.logit u { text-decoration: none; color: #fff; font-weight: 700; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.duo button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--navy-line);
  background: var(--navy2); color: #fff; font: 700 15px Figtree, sans-serif; }
.duo button svg.i { width: 17px; height: 17px; }
.duo .yes svg { color: #6FE0A2; } .duo .no svg { color: #FFB86B; }
.duo button:active { filter: brightness(1.2); }
.notnow { display: block; width: 100%; text-align: center; color: #DCE4EE; font-size: 14px; font-weight: 600; padding: 12px 0 2px; }
.hero-links { display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--navy-line); }
.hero-links button, .hero-links a { color: var(--navy-muted); font-size: 13px; font-weight: 600; }

/* section heads + white panels */
.head { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 8px; }
.head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.head button { color: var(--blue); font-weight: 700; font-size: 14px; }
.panel { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.panel.pad { padding: 14px; }
.prow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); min-width: 0; }
.prow:last-child { border-bottom: 0; }
.prow .main { flex: 1; min-width: 0; }
.prow .t1 { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .t2 { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .side { font-size: 12px; color: var(--muted); text-align: right; flex: none; }
.ringpill { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 7px 12px; border-radius: 999px; background: var(--tint); color: var(--blue2); font: 800 13px Figtree, sans-serif; }
.ringpill svg.i { width: 14px; height: 14px; }
.time { font: 800 15px Figtree, sans-serif; width: 52px; flex: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--blue2); display: grid; place-items: center; font: 800 14px Figtree, sans-serif; flex: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); flex: none; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .big { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.hero.empty { color: var(--navy-muted); padding: 34px 18px; }
.hero.empty .big { color: #fff; }
.loading { text-align: center; padding: 40px 0; color: var(--muted); }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip.new { background: var(--tint); color: var(--blue2); }
.chip.callback, .chip.later { background: var(--amber-tint); color: var(--amber); }
.chip.chase, .chip.booked, .chip.won { background: var(--green-tint); color: var(--green); }
.chip.lost, .chip.cold { background: var(--red-tint); color: var(--red); }
.chip.plain::before { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* lead page details */
.sect { margin-top: 16px; }
.sect h3 { font-size: 16px; font-weight: 800; margin: 0 2px 8px; }
.qa { display: grid; }
.qa div.r { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.qa div.r:last-child { border: 0; }
.qa .k { font-size: 12px; color: var(--muted); }
.qa .v { font-weight: 700; }
.feed { display: grid; gap: 6px; padding: 12px; }
.msg { padding: 8px 11px; border-radius: 14px; background: var(--soft); max-width: 88%; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.msg.out { margin-left: auto; background: var(--tint); }
.msg .t { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.logline { font-size: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.logline:last-child { border: 0; }

/* Leads list */
.search { position: relative; margin-bottom: 10px; }
.search svg.i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search input { padding-left: 40px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); border-color: transparent; }
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 10px; margin: 0 -16px 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; padding: 8px 13px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 700; font-size: 13px; color: var(--muted); white-space: nowrap; font-family: Figtree, sans-serif; }
.filters button b { color: var(--text); margin-left: 3px; }
.filters button.on { background: var(--navy); color: #fff; }
.filters button.on b { color: #7CC0FF; }
.dayhead { font: 800 16px Figtree, sans-serif; margin: 20px 2px 8px; }

/* stats */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: var(--card); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.tile b { font: 900 28px Figtree, sans-serif; display: block; }
.tile span { color: var(--muted); font-size: 13px; }
.bars { display: flex; gap: 8px; align-items: flex-end; height: 140px; background: var(--card); border-radius: 16px; padding: 22px 14px 28px; box-shadow: var(--shadow); }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.bar i { display: block; background: #B9D9FF; border-radius: 5px 5px 0 0; min-height: 2px; }
.bar i.sp { background: var(--blue); border-radius: 0; }
.bar em { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 11px; color: var(--muted); }
.bar u { position: absolute; top: -17px; left: 0; right: 0; text-align: center; text-decoration: none; font-size: 11px; color: var(--muted); font-weight: 700; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin: 8px 2px 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.tip { background: var(--navy); color: #DCE4EE; border-radius: 18px; padding: 14px 16px; font-size: 14px; margin-top: 18px; }
.tip b { color: #fff; }

/* bottom tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  display: flex; justify-content: center; padding: 6px 6px calc(6px + var(--safe-b)); z-index: 5; }
.tabs-in { display: flex; width: 100%; max-width: 560px; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0; font-size: 11px; font-weight: 700; color: #94A1B3; position: relative; }
.tab svg.i { width: 23px; height: 23px; }
.tab.on { color: var(--navy); }
.tab.on svg.i { color: var(--blue); }
.badge { position: absolute; top: 0; left: 54%; background: var(--blue); color: #fff; font-size: 10px; font-weight: 800; border-radius: 9px; padding: 1px 5px; min-width: 17px; text-align: center; border: 2px solid #fff; }

/* sheets */
.sheet { position: fixed; inset: 0; z-index: 20; }
.sheet-bg { position: absolute; inset: 0; background: rgba(17,26,38,.45); }
.sheet-card { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 24px 24px 0 0;
  padding: 10px 16px calc(18px + var(--safe-b)); max-height: 92dvh; overflow-y: auto; animation: up .2s ease-out; box-shadow: 0 -10px 40px rgba(17,26,38,.2); }
.sheet-card::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 3px; background: #D5DBE4; margin: 0 auto 14px; }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.sheet-card .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.sheet-card .label.ok { color: var(--green); }
.sheet-card h2 { margin: 2px 0 4px; font-size: 22px; font-weight: 800; }
.sheet-card .grid { display: grid; gap: 8px; margin-top: 14px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border-radius: 14px; background: var(--soft); text-align: left; border: 1.5px solid transparent; }
.opt .oi { width: 36px; height: 36px; border-radius: 10px; background: #fff; display: grid; place-items: center; flex: none; color: var(--navy); }
.opt .main { flex: 1; min-width: 0; }
.opt b { display: block; font: 800 15px Figtree, sans-serif; }
.opt span { display: block; font-size: 13px; color: var(--muted); }
.opt .chev { color: #A9B4C3; }
.opt.hi { border-color: var(--blue); background: var(--tint); }
.opt.hi .oi { color: var(--blue); }
.opt.bad .oi { color: var(--red); }
.opt:active { filter: brightness(.97); }
.big-choice { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px; border-radius: 14px; font: 800 17px Figtree, sans-serif; }
.big-choice.dark { background: var(--navy); color: #fff; }
.big-choice.dark svg { color: #6FE0A2; }
.big-choice.light { background: #fff; border: 1.5px solid var(--line); }
.big-choice.light svg { color: var(--amber); }
.textlink { display: block; width: 100%; text-align: center; color: var(--muted); font-weight: 600; font-size: 14px; padding: 12px 0 4px; }
.sheet-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.sheet-foot button { color: var(--muted); font-weight: 600; font-size: 14px; padding: 6px 0; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px; border-radius: 14px; background: var(--soft); font-weight: 800; font-size: 16px; text-align: center; color: var(--text); }
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(33,150,254,.3); }
.btn.green { background: var(--green); color: #fff; }
.btn.dark { background: var(--navy); color: #fff; }
.btn.red { background: var(--red-tint); color: var(--red); }
.btn:disabled { opacity: .5; }
.draft { background: var(--tint); border-radius: 16px; padding: 4px; margin-top: 12px; }
.draft textarea { background: transparent; border: 0; min-height: 130px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills button { padding: 10px 12px; border-radius: 12px; background: var(--soft); font-weight: 700; font-size: 14px; border: 1.5px solid transparent; }
.pills button.on { background: var(--tint); border-color: var(--blue); color: var(--blue2); }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.days button { padding: 8px 0; border-radius: 14px; background: var(--soft); border: 1.5px solid transparent; text-align: center; line-height: 1.15; }
.days button small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.days button b { display: block; font: 800 20px Figtree, sans-serif; }
.days button.on { background: var(--navy); color: #fff; }
.days button.on small { color: var(--navy-muted); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slots button { padding: 11px 0; border-radius: 12px; background: var(--soft); font-weight: 700; font-size: 14px; border: 1.5px solid transparent; }
.slots button.on { background: var(--tint); border-color: var(--blue); color: var(--blue2); }
label.f { display: block; font: 800 14px Figtree, sans-serif; margin: 16px 0 8px; }
label.f em { font-style: normal; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--tint); color: var(--blue2); font-size: 12px; margin-right: 6px; }

/* ringing sheet */
.ringing { text-align: center; padding: 6px 0 4px; }
.ringing .label, .ringing h2 { text-align: left; }
.pulse { position: relative; width: 112px; height: 112px; margin: 22px auto 12px; }
.pulse::before, .pulse::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(33,150,254,.35); animation: ping 1.8s ease-out infinite; }
.pulse::after { animation-delay: .9s; }
.pulse div { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #5DB4FF, var(--blue) 60%, var(--blue2)); color: #fff;
  display: grid; place-items: center; font: 900 34px Figtree, sans-serif; box-shadow: 0 10px 26px rgba(33,150,254,.4); }
@keyframes ping { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + var(--safe-b)); background: var(--navy); color: #fff; font-weight: 700;
  padding: 10px 16px; border-radius: 12px; z-index: 30; max-width: 90vw; box-shadow: 0 6px 20px rgba(17,26,38,.3); }
.toast.err { background: var(--red); }

/* login */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login form { width: 100%; max-width: 340px; text-align: center; background: #fff; border-radius: 24px; padding: 30px 22px; box-shadow: var(--shadow); }
.login img { height: 40px; margin-bottom: 18px; }
.login h2 { margin: 0 0 4px; }
.login input { text-align: center; font-size: 26px; letter-spacing: .3em; margin: 16px 0; background: var(--soft); border-color: transparent; }

/* Sam: Setter / Closer switch in the top bar */
.modes { display: flex; gap: 2px; padding: 3px; margin-left: auto; margin-right: 8px; border-radius: 999px; background: #E4E9F1; }
.modes button { padding: 6px 10px; border-radius: 999px; font: 800 12px Figtree, sans-serif; color: var(--muted); background: transparent; border: 0; }
.modes button.on { background: var(--navy); color: #fff; }

/* Call confirmation dot: green = confirmed, orange = awaiting */
.cdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; flex: none; }
.cdot.ok { background: #1FA94F; } .cdot.wait { background: #F59E0B; }
.ckey { display: flex; gap: 14px; margin: 4px 2px 2px; font-size: 12px; color: var(--muted); }
.ckey span { display: inline-flex; align-items: center; }
/* Paul's call videos */
.script { background: var(--soft); border-radius: 14px; padding: 12px 14px; margin-top: 12px; font-size: 15px; line-height: 1.45; }
.script .label { margin-bottom: 4px; }
.stage { position: relative; margin-top: 12px; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 9 / 14; max-height: 52vh; display: flex; justify-content: center; }
.stage video { width: 100%; height: 100%; object-fit: cover; }
.vtimer { position: absolute; top: 10px; right: 10px; background: rgba(220, 38, 38, .9); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
#cap { margin-top: 12px; }
.ringpill .i { width: 15px; height: 15px; margin-right: 4px; vertical-align: -3px; }
.sheet-card .qa { padding: 8px 0; border-bottom: 1px solid var(--line); }
/* Sam viewing as someone else */
.viewas { display: flex; align-items: center; gap: 8px; background: #FFF4E0; color: #8A5300; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }
.viewas .i { width: 18px; height: 18px; flex: none; }
.viewas span { flex: 1; }
.viewas button { border: 0; background: #8A5300; color: #fff; font: 800 13px Figtree, sans-serif; padding: 7px 12px; border-radius: 999px; }
/* Onboarding (detailed, 23 Nov 2026): iPhone = list → client page; laptop (1000px+) = three columns */
.amber { color: #B26A00; } .red { color: #C62828; }
.obbar { height: 5px; border-radius: 3px; background: #E4E9F1; margin: 6px 0 4px; overflow: hidden; }
.obbar.big { height: 8px; border-radius: 4px; margin-top: 12px; }
.obbar i { display: block; height: 100%; background: var(--green); border-radius: 3px; }
.obrow.sel { background: #EEF5FF; }
.obhead { background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.obhead h2 { margin: 2px 0 10px; font-size: 24px; font-weight: 800; }
.obhead .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.obmeta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.obday { display: flex; flex-direction: column; background: var(--soft); border-radius: 12px; padding: 6px 12px; line-height: 1.2; }
.obday b { font-size: 16px; } .obday span { font-size: 11px; color: var(--muted); }
.obday.late { background: #FDECEC; } .obday.late b { color: #C62828; }
.obtarget { display: flex; flex-direction: column; font-size: 11px; color: var(--muted); font-weight: 600; }
.obtarget input { padding: 6px 8px; width: auto; font-size: 14px; margin-top: 2px; }
.obowner { margin: 0 0 0 auto; }
.obcontacts { margin-top: 12px; font-size: 14px; display: grid; gap: 4px; }
.obwaitbar { margin-top: 10px; background: #FFF4E0; color: #8A5300; border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; }
.obphases { margin-top: 12px; display: grid; gap: 12px; }
.obphase { background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.obph { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--soft); font-size: 15px; }
.obph span { font-weight: 800; color: var(--muted); font-size: 13px; }
.obphase.complete .obph { background: #E8F6EC; } .obphase.complete .obph span { color: var(--green); }
.obitem { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-top: 1px solid var(--line); }
.obitem .main { flex: 1; min-width: 0; cursor: pointer; }
.obitem .t { font-weight: 700; font-size: 15px; }
.obitem .cl { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #7A5AF8; background: #F1ECFF; border-radius: 6px; padding: 1px 6px; vertical-align: 2px; }
.obitem .hint, .obitem .by { font-size: 13px; color: var(--muted); margin-top: 2px; }
.obitem .st { font-size: 13px; font-weight: 700; margin-top: 2px; }
.obitem.done .t, .obitem.na .t { color: var(--muted); text-decoration: line-through; }
.obtick { flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid #C5CEDB; background: #fff; display: grid; place-items: center; padding: 0; font-weight: 800; color: var(--muted); }
.obtick .i { width: 17px; height: 17px; }
.obtick:disabled { opacity: .35; }
.obitem.done .obtick { background: var(--green); border-color: var(--green); color: #fff; }
.obitem.waiting .obtick { background: #FFF4E0; border-color: #F59E0B; color: #B26A00; }
.obitem.na .obtick { background: var(--soft); }
.obmore { flex: none; background: none; border: 0; color: #B5C0CF; padding: 4px; }
.obmore .i { width: 18px; height: 18px; }
.obnote { margin-top: 4px; background: #FFF8E6; border-radius: 8px; padding: 6px 8px; font-size: 13px; }
.obside { margin-top: 12px; display: grid; gap: 12px; }
.obcard { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 14px 16px; }
.obcard h4 { margin: 0 0 8px; font-size: 15px; }
.obcard .btn { padding: 12px; font-size: 15px; }
.oblist { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.oblog { display: grid; gap: 8px; font-size: 13px; max-height: 320px; overflow: auto; }
.obstatus { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.obstatus button { padding: 12px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; display: flex; gap: 6px; align-items: center; justify-content: center; }
.obstatus button .i { width: 16px; height: 16px; }
.obstatus button.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.obstatus button.waiting.on { background: #F59E0B; border-color: #F59E0B; }
.obstatus button.done.on { background: var(--green); border-color: var(--green); }
#sheet textarea, .obcard textarea { width: 100%; }
/* laptop */
.obwide { display: grid; grid-template-columns: 340px minmax(0, 1fr) 340px; grid-template-rows: auto 1fr; gap: 16px; height: 100dvh; padding: 0 16px 16px; }
.obtop { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 12px 4px 0; }
.obtop .logo { height: 26px; } .obtop b { font-size: 18px; } .obtop .grow { flex: 1; }
.obcol { overflow: auto; min-height: 0; padding-bottom: 24px; }
.obleft .filters { position: sticky; top: 0; z-index: 1; background: var(--bg); padding-bottom: 8px; margin: 0; }
.obmid .obphases { grid-template-columns: 1fr; }
.obright .obcard + .obcard { margin-top: 12px; }
@media (min-width: 1400px) { .obwide { grid-template-columns: 360px minmax(0, 1fr) 380px; } }
