/* Platino OS: same colors and fonts as platinocube.com. Plain CSS. */
@font-face { font-family: 'Questrial'; font-weight: 400; font-display: swap; src: url(fonts/questrial-latin.woff2) format('woff2'); }
@font-face { font-family: 'Cairo'; font-weight: 400 700; font-display: swap; src: url(fonts/cairo-latin.woff2) format('woff2'); }

:root {
  --bg: #0A1224;
  --surface: #141E3D;
  --surface-2: #1A2649;
  --navy: #1C3158;
  --steel: #3E5F94;
  --sky: #6F93CC;
  --slate: #A0A5AD;
  --silver: #BABEC4;
  --red: #ED1C24;
  --text: #F5F7FA;
  --muted: #9AA3B2;
  --line: rgba(186, 190, 196, .16);
  --line-strong: rgba(200, 205, 212, .32);
  --ok: #4CC38A;
  --radius: 14px;
  --font: 'Questrial', 'Century Gothic', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --num: 'Cairo', var(--font);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.2; }
h1 { font-size: 1.9rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 18px; height: 18px; flex-shrink: 0; }

/* App frame */
.app { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 14px; background: #0D1730; border-inline-end: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 10px; }
.brand-mark { width: 22px; height: auto; }
.brand-word { width: 150px; height: auto; }
.menu { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.menu a, .menu .soon { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--silver); }
.menu a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.menu a.on { background: var(--navy); color: var(--text); box-shadow: inset 2px 0 0 var(--red); }
.menu .soon { color: #5F6A80; cursor: default; }
.menu .soon em { margin-inline-start: auto; font-style: normal; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 99px; padding: 0 7px; }
.me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.me-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.me-txt b { font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-txt small { color: var(--muted); font-size: .78rem; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--muted); }
.icon-btn:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.main { padding: 34px clamp(16px, 4vw, 48px) 60px; max-width: 1180px; width: 100%; display: flex; flex-direction: column; gap: 22px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head .muted { margin-top: 6px; }
.eyebrow { color: var(--sky); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }

.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); border: 1px solid var(--line-strong); font-size: .78rem; letter-spacing: .04em; flex-shrink: 0; }
.avatar.big { width: 48px; height: 48px; font-size: 1rem; }

/* Cards, stats */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.card.flush { padding: 0; overflow-x: auto; }
.card h2 { margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; transition: border-color .2s; }
.stat:hover { border-color: var(--line-strong); }
.stat span { color: var(--muted); font-size: .85rem; }
.stat b { font-family: var(--num); font-weight: 600; font-size: 2rem; line-height: 1.1; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0 12px 26px; border-top: 1px solid var(--line); position: relative; }
.steps li::before { content: ''; position: absolute; inset-inline-start: 4px; top: 19px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--slate); }
.steps li.done::before { background: var(--ok); border-color: var(--ok); }
.steps b { font-weight: 400; }
.steps span { color: var(--muted); font-size: .88rem; text-align: end; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: rgba(255, 255, 255, .06); border-color: var(--silver); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: #C8141B; }
.btn.danger { border-color: rgba(237, 28, 36, .6); color: #FF8A8F; }
.btn.danger:hover { background: rgba(237, 28, 36, .12); }
.btn.ghost { border-color: transparent; color: var(--silver); }
.btn.ghost:hover { border-color: var(--line); }
.btn.small { height: 32px; padding: 0 12px; font-size: .85rem; }
.btn.wide { width: 100%; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.span2 { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 6px; color: var(--silver); font-size: .88rem; }
input, select { height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font-size: .95rem; width: 100%; }
input:focus, select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(111, 147, 204, .2); }
.pw { display: flex; gap: 8px; align-items: center; }
.pw input { flex: 1; font-family: ui-monospace, Consolas, monospace; letter-spacing: .03em; }
.panel summary { cursor: pointer; font-size: 1.1rem; list-style: none; }
.panel summary::-webkit-details-marker { display: none; }
.panel summary::before { content: '+'; display: inline-block; width: 22px; color: var(--sky); }
.panel[open] summary { margin-bottom: 18px; }
.panel[open] summary::before { content: '–'; }
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.panel-head h2 { margin: 0; }
.panel-head .btn { margin-inline-start: auto; }
.sub { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); gap: 10px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.err { background: rgba(237, 28, 36, .1); border: 1px solid rgba(237, 28, 36, .45); color: #FFB3B6; padding: 10px 14px; border-radius: 10px; }
.flash { background: rgba(76, 195, 138, .1); border: 1px solid rgba(76, 195, 138, .4); color: #A6E8C6; padding: 10px 14px; border-radius: 10px; }

/* Table */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: start; font-weight: 400; color: var(--muted); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 14px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.table tr.sel { background: rgba(62, 95, 148, .18); }
.table tr.off td { opacity: .55; }
.table .end { text-align: end; }
.who { display: flex; align-items: center; gap: 10px; }
.pill { display: inline-block; font-size: .78rem; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--silver); white-space: nowrap; }
.pill.role-admin { border-color: rgba(237, 28, 36, .55); color: #FF9CA0; }
.pill.role-manager { border-color: rgba(111, 147, 204, .6); color: #A9C2EA; }
.pill.role-designer { border-color: rgba(76, 195, 138, .55); color: #9FE3C1; }
.pill.role-accountant { border-color: rgba(233, 184, 92, .55); color: #F1D29B; }
.pill.off { color: var(--muted); }

/* Clients */
.back { color: var(--muted); font-size: .9rem; margin-bottom: -8px; }
.back:hover { color: var(--text); }
.link { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a span { font-family: var(--num); font-size: .8rem; margin-inline-start: 4px; opacity: .8; }
.tabs a.on { color: var(--text); border-color: var(--red); }
.empty { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty h2 { margin: 0; }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.client-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 16px; transition: border-color .2s, transform .2s; }
.client-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.cc-top { display: flex; align-items: center; gap: 14px; }
.cc-name { display: flex; flex-direction: column; min-width: 0; }
.cc-name b { font-weight: 400; font-size: 1.1rem; }
.cc-facts { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.cc-facts div { display: flex; justify-content: space-between; gap: 12px; }
.cc-facts dt { color: var(--muted); }
.cc-facts dd { margin: 0; text-align: end; }
.logo { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; background: #fff; padding: 4px; flex-shrink: 0; }
.logo.big { width: 76px; height: 76px; border-radius: 16px; padding: 6px; }
.logo-txt { display: grid; place-items: center; background: var(--navy); border: 1px solid var(--line-strong); color: var(--silver); font-size: 1rem; padding: 0; }
.logo.big.logo-txt { font-size: 1.5rem; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches i { display: block; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line-strong); }
.swatches.big { gap: 14px; margin-bottom: 16px; }
.swatches.big span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.swatches.big i { width: 44px; height: 44px; border-radius: 10px; }
.swatches.big small { color: var(--muted); font-size: .72rem; font-family: ui-monospace, Consolas, monospace; }
.client-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.client-head > div { flex: 1; min-width: 200px; }
.client-head .muted { margin-top: 4px; }
.client-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.big-num { font-family: var(--num); font-size: 1.9rem; font-weight: 600; line-height: 1.2; }
.big-num small { font-family: var(--font); font-size: .9rem; font-weight: 400; }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.counts div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; display: flex; flex-direction: column; }
.counts b { font-family: var(--num); font-weight: 600; font-size: 1.4rem; }
.counts span { color: var(--muted); font-size: .8rem; }
.pay { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.pay div { display: flex; justify-content: space-between; gap: 12px; }
.pay dt { color: var(--muted); }
.pay dd { margin: 0; text-align: end; }
.due { color: #F1D29B; }
.hint { grid-column: span 1; align-self: end; }
.num { text-align: end; font-family: var(--num); white-space: nowrap; }
.table th.num { font-family: var(--font); }
.net { font-weight: 600; }
.block { display: block; font-size: .8rem; }
.table tr.click { cursor: pointer; }
.table.compact td, .table.compact th { padding: 10px 0; }
.avatar.xl { width: 76px; height: 76px; font-size: 1.5rem; }
.slip { margin: 0; display: flex; flex-direction: column; }
.slip div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.slip dt { color: var(--silver); }
.slip dd { margin: 0; font-family: var(--num); white-space: nowrap; }
.slip .minus dd { color: #FF9CA0; }
.slip .total { border-bottom: 0; padding-top: 14px; }
.slip .total dt { color: var(--text); }
.slip .total dd { font-size: 1.5rem; font-weight: 600; }
.form.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 18px; }
.checks { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; }
.sub-block { padding-top: 16px; border-top: 1px solid var(--line); }
.check.is-fixed { cursor: default; color: var(--silver); }
.checks legend { color: var(--silver); font-size: .88rem; padding: 0 6px; }
.link-btn { height: 34px; font-size: .88rem; padding: 0 12px; }
.notes { color: var(--silver); white-space: normal; }
.pill.on { border-color: rgba(76, 195, 138, .55); color: #9FE3C1; }
.client-form { display: flex; flex-direction: column; gap: 16px; }
.form.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.span3 { grid-column: 1 / -1; }
textarea { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; width: 100%; resize: vertical; }
textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(111, 147, 204, .2); }
label.check { flex-direction: row; align-items: center; gap: 10px; color: var(--text); font-size: .95rem; cursor: pointer; }
label.check input { width: 18px; height: 18px; accent-color: var(--red); }
input[type=file] { height: auto; padding: 8px; }
.logo-field { display: flex; align-items: center; gap: 18px; }
.logo-field label { flex: 1; }
.sticky-actions { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 35%); }

/* Sign-in card */
.solo { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(900px 500px at 50% -10%, rgba(62, 95, 148, .35), transparent 70%), var(--bg); }
.solo-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 34px 30px; display: flex; flex-direction: column; gap: 16px; }
.solo-mark { width: 34px; margin: 0 auto; }
.solo-word { width: 190px; margin: 0 auto 10px; }
.solo-card h1 { font-size: 1.5rem; text-align: center; }
.solo-card > .muted { text-align: center; }

@media (max-width: 1100px) { .form.grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Phones */
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; padding: 12px 16px; gap: 10px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .menu { flex-direction: row; overflow-x: auto; }
  .menu .soon { display: none; }
  .menu a span { white-space: nowrap; }
  .side { position: relative; }
  .me { position: absolute; top: 10px; inset-inline-end: 12px; padding: 0; border: 0; }
  .me .me-txt { display: none; }
  .form.grid2, .form.grid3, .form.grid4 { grid-template-columns: 1fr; }
  .client-cols, .client-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .table th, .table td { padding: 12px 14px; }
}

/* Task page */
.actions { display: flex; flex-direction: column; gap: 12px; }
.actions form { margin: 0; }
.row.wrap { align-items: center; }
.live-btn { border-color: rgba(76, 195, 138, .6); color: #9FE3C1; }
.clock { font-family: var(--num); min-width: 3.5em; }
.changes summary { list-style: none; display: inline-flex; }
.changes summary::-webkit-details-marker { display: none; }
.changes[open] summary { margin-bottom: 12px; }
.task-cols { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.sub-h { margin: 18px 0 8px; font-size: .9rem; color: var(--silver); display: flex; gap: 8px; align-items: center; }
.links { margin: 0; padding-inline-start: 18px; word-break: break-all; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.file { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.file img, .file video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.file .pdf { display: grid; place-items: center; aspect-ratio: 4 / 5; color: var(--muted); }
.file figcaption { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; font-size: .78rem; }
.file figcaption a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .icon-btn { width: 26px; height: 26px; }
.upload { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.upload label { flex: 1; min-width: 220px; }
.plats { border: 0; padding: 0; margin: 18px 0; display: flex; gap: 8px 18px; flex-wrap: wrap; }
.plats legend { color: var(--silver); font-size: .88rem; margin-bottom: 8px; padding: 0; }
.plat-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; align-items: center; }
.plat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.comments { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.comments li { display: flex; gap: 10px; }
.comments p { color: var(--silver); margin-top: 2px; }
.working { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.working li { display: flex; align-items: center; gap: 12px; }
.working li > span:nth-child(2) { flex: 1; min-width: 0; }
.green { position: relative; }
.green::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid var(--surface); }
@media (max-width: 820px) { .task-cols { grid-template-columns: 1fr; } }

/* ===== Planner ===== */
.i.xs { width: 14px; height: 14px; }
.main:has(.board, .month, .week, .dayplan) { max-width: none; min-width: 0; }
.main:has(.board, .month, .week, .dayplan) > * { min-width: 0; max-width: 100%; }
.avatar.sm { width: 24px; height: 24px; font-size: .62rem; }
.live { color: var(--ok); display: inline-flex; align-items: center; gap: 5px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(76, 195, 138, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(76, 195, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 195, 138, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.late-txt { color: #FF9CA0; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--slate); flex-shrink: 0; }
.st-brief { --c: #A0A5AD; } .st-todo { --c: #6F93CC; } .st-designing { --c: #E9B85C; } .st-review { --c: #C08CF0; }
.st-client { --c: #F08CB4; } .st-approved { --c: #4CC38A; } .st-published { --c: #5A7DB8; }
.dot[class*=st-] { background: var(--c); }
.pill.stage { border-color: color-mix(in srgb, var(--c) 60%, transparent); color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.pill.idea { display: inline-flex; align-items: center; gap: 5px; border-color: rgba(233, 184, 92, .55); color: #F1D29B; align-self: flex-start; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: #3A1418; border: 1px solid rgba(237, 28, 36, .5); color: #FFD0D2; padding: 10px 16px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .2s; z-index: 9; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.toast.ok { background: #10301F; border-color: rgba(76, 195, 138, .5); color: #BDF0D4; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.btn .i { width: 16px; height: 16px; }

/* toolbar */
.ptools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.views { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.views a { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 9px; color: var(--muted); }
.views a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.views a.on { background: var(--navy); color: var(--text); box-shadow: inset 0 -2px 0 var(--red); }
.search { position: relative; flex: 0 1 320px; }
.search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 38px; background: var(--surface); }
.quick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qchip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--silver); font-size: .85rem; --q: var(--sky); }
.qchip b { font-family: var(--num); font-weight: 600; font-size: .78rem; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: color-mix(in srgb, var(--q) 22%, transparent); color: var(--q); }
.qchip:hover { border-color: var(--q); color: var(--text); }
.qchip.on { background: color-mix(in srgb, var(--q) 16%, transparent); border-color: var(--q); color: var(--text); }
.qchip.zero b { background: rgba(255, 255, 255, .06); color: var(--muted); }
.qchip.red { --q: #FF6B70; } .qchip.amber { --q: #E9B85C; } .qchip.violet { --q: #C08CF0; } .qchip.gold { --q: #F1D29B; }
.quick .filters { margin-inline-start: auto; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters select { width: auto; min-width: 140px; height: 36px; font-size: .88rem; background: var(--surface); }

/* board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start; scroll-snap-type: x proximity; }
.col { background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 9%, #0F1A36), #0F1A36 120px); border: 1px solid var(--line); border-top: 2px solid var(--sc); border-radius: var(--radius); padding: 12px 10px; min-height: 62vh; display: flex; flex-direction: column; gap: 8px; scroll-snap-align: start; }
.col.locked { opacity: .55; }
.col h2 { font-size: .92rem; display: flex; align-items: center; gap: 8px; padding: 2px 4px; color: var(--text); }
.col h2 small { font-family: var(--num); font-size: .75rem; color: var(--sc); background: color-mix(in srgb, var(--sc) 16%, transparent); border-radius: 99px; padding: 0 8px; margin-inline-start: auto; }
.col-hint { font-size: .75rem; color: var(--muted); padding: 0 4px 4px; }
.cards { flex: 1; display: flex; flex-direction: column; gap: 8px; border-radius: 10px; min-height: 80px; transition: background .15s; }
.cards.over, .chips.over { background: rgba(111, 147, 204, .1); outline: 1px dashed var(--sky); outline-offset: 2px; }
.col-empty { color: #4F5A70; font-size: .8rem; text-align: center; padding: 18px 0; border: 1px dashed var(--line); border-radius: 10px; }
.cards:has(.tcard) .col-empty { display: none; }
.col-add { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 8px; border-radius: 10px; color: var(--muted); font-size: .85rem; }
.col-add:hover { background: rgba(255, 255, 255, .05); color: var(--text); }

/* card */
.tcard { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 14px 15px; overflow: hidden; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tcard::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--cc); }
.tcard[draggable=true] { cursor: grab; }
.tcard:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.tcard.dragging { opacity: .4; transform: rotate(1.5deg); }
.tcard.late { border-color: rgba(237, 28, 36, .5); }
.tcard.is-done { opacity: .75; }
.tc-img { width: calc(100% + 27px); margin: -12px -12px 0 -15px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg); }
.tc-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tc-client { color: var(--cc); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.type { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; font-style: normal; font-size: .72rem; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); border-radius: 99px; padding: 1px 8px 1px 6px; white-space: nowrap; }
.tc-title { font-weight: 400; line-height: 1.35; }
.tc-plats { display: flex; gap: 4px; flex-wrap: wrap; }
.tc-plats i { display: grid; place-items: center; width: 24px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.tc-plats i.on { background: rgba(76, 195, 138, .2); color: #9FE3C1; }
.tc-foot { display: flex; align-items: center; gap: 10px; font-size: .76rem; color: var(--muted); flex-wrap: wrap; }
.tc-foot > span { display: inline-flex; align-items: center; gap: 4px; }
.tc-foot .avatar { margin-inline-start: auto; }
.tc-bar { position: absolute; left: 4px; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .04); }
.tc-bar i { display: block; height: 100%; background: var(--sc); }

/* calendar */
.calnav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.calnav h2 { margin-inline-start: 8px; font-size: 1.25rem; }
.calnav .icon-btn { border: 1px solid var(--line-strong); }
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.cal-side { display: flex; flex-direction: column; gap: 16px; }
.cal-side .card { padding: 16px; }
.cal-side h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.cal-side h3 small { margin-inline-start: auto; font-family: var(--num); color: var(--muted); }
.cal-side .chips { margin-top: 10px; }
.card.warn { border-color: rgba(237, 28, 36, .4); }
.card.warn h3 { color: #FF9CA0; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); gap: 1px; }
.wd { background: #0F1A36; padding: 8px 10px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wd.wkend { color: #6B7590; }
.mday { background: var(--surface); min-height: 128px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mday.wkend { background: #121B38; }
.mday.out { background: #0D1630; }
.mday.out .num { color: #4F5A70; }
.mday.past:not(.today) .chips { opacity: .8; }
.mday-head { display: flex; align-items: center; justify-content: space-between; }
.mday .num, .wday header a b { font-family: var(--num); }
.mday .num { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-size: .85rem; color: var(--silver); }
.mday .num:hover { background: rgba(255, 255, 255, .06); }
.mday.today .num { background: var(--red); color: #fff; }
.add { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: var(--muted); opacity: 0; transition: opacity .15s; }
.mday:hover .add, .wday:hover .add, .add:focus-visible { opacity: 1; }
.add:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.chips { display: flex; flex-direction: column; gap: 3px; flex: 1; min-height: 24px; border-radius: 8px; }
.chip { display: flex; align-items: center; gap: 5px; padding: 3px 7px 3px 6px; border-radius: 6px; font-size: .76rem; line-height: 1.3; min-width: 0;
  background: color-mix(in srgb, var(--cc) 13%, var(--surface-2)); border-left: 3px solid var(--cc); color: var(--text); }
.chip[draggable=true] { cursor: grab; }
.chip:hover { background: color-mix(in srgb, var(--cc) 24%, var(--surface-2)); }
.chip .i { color: var(--tc); }
.chip time { font-family: var(--num); color: var(--silver); font-size: .72rem; }
.chip span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .sdot { width: 7px; height: 7px; border-radius: 50%; background: var(--sc); flex-shrink: 0; }
.chip.late { box-shadow: inset 0 0 0 1px rgba(237, 28, 36, .7); }
.chip.is-done { opacity: .6; }
.chip.is-done span { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .3); }
.chip.dragging { opacity: .4; }
.more { font-size: .75rem; color: var(--sky); padding: 0 6px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(170px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.wday { background: #0F1A36; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 8px; display: flex; flex-direction: column; gap: 8px; min-height: 60vh; }
.wday.wkend { background: #0D1630; }
.wday.today { border-color: rgba(237, 28, 36, .55); }
.wday header { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.wday header a:first-child { display: flex; align-items: baseline; gap: 6px; }
.wday header span { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.wday header b { font-weight: 400; font-size: 1.3rem; }
.wday.today header b { color: var(--red); }
.wday .tcard .tc-img { display: none; }
.dayplan { display: flex; flex-direction: column; }
.slot { display: grid; grid-template-columns: 76px minmax(0, 1fr); border-bottom: 1px solid var(--line); min-height: 48px; }
.slot:last-child { border-bottom: 0; }
.slot .hr { padding: 12px 10px; font-size: .78rem; color: var(--muted); font-family: var(--num); border-inline-end: 1px solid var(--line); }
.slot .chips { padding: 6px; flex-direction: row; flex-wrap: wrap; }
.slot .chip { flex: 0 1 280px; padding: 6px 9px; font-size: .84rem; }
.slot.anytime { background: #111B39; }
.slot.now { background: rgba(237, 28, 36, .06); }
.slot.now .hr { color: #FF9CA0; }
.pkg { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pkg li { border-left: 3px solid var(--cc); padding-left: 10px; display: flex; flex-direction: column; gap: 5px; }
.pkg b { font-weight: 400; }
.meter { display: grid; grid-template-columns: 52px 1fr 40px; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); }
.meter i { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.meter i b { display: block; height: 100%; background: var(--cc); border-radius: 99px; }
.meter em { font-style: normal; font-family: var(--num); text-align: right; }
.meter.full em { color: var(--ok); }
.num-b { font-family: var(--num); font-weight: 400; }

/* list */
.seg { display: flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }
.seg a { padding: 4px 10px; border-radius: 7px; font-size: .82rem; color: var(--muted); }
.seg a.on { background: var(--navy); color: var(--text); }
.tlist td { vertical-align: middle; }
.tl-title { display: flex; align-items: center; gap: 10px; }
.ticon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); flex-shrink: 0; }
.cdot { display: inline-block; width: 8px; height: 8px; border-radius: 3px; background: var(--cc); margin-inline-end: 8px; }
.who-sm { display: inline-flex; align-items: center; gap: 8px; }
.tlist .tc-plats i { width: 22px; height: 20px; }

/* legend */
.legend summary { cursor: pointer; list-style: none; }
.legend summary::-webkit-details-marker { display: none; }
.legend-body { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; font-size: .85rem; color: var(--silver); }
.legend-body b { font-weight: 400; color: var(--text); margin-inline-end: 6px; }
.lg { display: inline-flex; align-items: center; gap: 5px; margin-inline-end: 14px; }
.lg .i { color: var(--tc); }

@media (max-width: 1100px) { .cal-wrap { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .board { grid-auto-columns: 82vw; }
  .views a span { display: none; }
  .search { flex: 1 1 100%; }
  .quick .filters { margin-inline-start: 0; }
  .mday { min-height: 84px; padding: 3px; }
  .chip span, .chip time { display: none; }
  .chip { justify-content: center; padding: 3px; }
  .chips { flex-direction: row; flex-wrap: wrap; }
  .week { grid-template-columns: repeat(7, 78vw); }
}

/* task page extras */
.task-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; color: var(--muted); font-size: .85rem; }
.task-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.task-meta .type { margin: 0; }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; }
.stepper li { flex: 1; min-width: 104px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: .8rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.stepper li span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-strong); flex-shrink: 0; }
.stepper li.done { color: var(--silver); }
.stepper li.done span { background: var(--c); border-color: var(--c); color: #0A1224; }
.stepper li.now { color: var(--text); border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.stepper li.now span { border: 2px solid var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent); }
.pair { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.types { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.types legend { color: var(--silver); font-size: .88rem; margin-bottom: 6px; padding: 0; }
.tpick { flex-direction: row; align-items: center; gap: 6px; padding: 0 12px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); cursor: pointer; color: var(--silver); font-size: .88rem; }
.tpick .i { color: var(--tc); }
.tpick input, .pcheck input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tpick:has(input:checked) { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); color: var(--text); }
.tpick:has(input:focus-visible), .pcheck:has(input:focus-visible) { outline: 2px solid var(--sky); outline-offset: 2px; }
.pcheck { flex-direction: row; align-items: center; gap: 8px; padding: 0 12px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); cursor: pointer; color: var(--muted); }
.pcheck:has(input:checked) { border-color: rgba(111, 147, 204, .7); background: rgba(111, 147, 204, .14); color: var(--text); }
.tcard .pill { align-self: flex-start; }
.tlist td:nth-child(2), .tlist td:nth-child(5) { white-space: nowrap; }
.main:has(.tlist) { max-width: none; }
@media (max-width: 820px) { .mday .chips { align-items: flex-start; align-content: flex-start; } }

/* post preview */
.preview-card h2 { display: flex; align-items: center; gap: 8px; }
.phone { width: 100%; max-width: 340px; margin: 4px auto 12px; background: #000; border: 1px solid var(--line-strong); border-radius: 18px; overflow: hidden; color: #F5F5F5; font-size: .85rem; }
.ph-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.ph-head .logo, .ph-over .logo { width: 30px; height: 30px; border-radius: 50%; font-size: .62rem; }
.ph-head b, .ph-over b { font-weight: 600; font-size: .82rem; }
.ph-dots { margin-inline-start: auto; color: #aaa; letter-spacing: 1px; }
.ph-media { position: relative; aspect-ratio: 4 / 5; background: #111; }
.phone.wide .ph-media { aspect-ratio: 16 / 9; }
.phone.tall .ph-media { aspect-ratio: 9 / 16; }
.ph-slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ph-slides::-webkit-scrollbar { display: none; }
.ph-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
.ph-slide img, .ph-slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #777; text-align: center; padding: 20px; }
.ph-empty .i { width: 34px; height: 34px; }
.ph-count { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, .65); border-radius: 99px; padding: 1px 9px; font-size: .74rem; font-family: var(--num); }
.ph-over { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 14px 12px; background: linear-gradient(rgba(0, 0, 0, .55), transparent); pointer-events: none; }
.ph-reelcap { position: absolute; left: 12px; right: 12px; bottom: 14px; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); pointer-events: none; }
.ph-actions { display: flex; align-items: center; gap: 14px; padding: 10px 12px 4px; }
.ph-actions .i { width: 22px; height: 22px; }
.ph-dotsrow { display: flex; gap: 4px; margin: 0 auto; transform: translateX(-30px); }
.ph-dotsrow i { width: 6px; height: 6px; border-radius: 50%; background: #555; }
.ph-dotsrow i.on { background: var(--sky); }
.ph-cap { padding: 4px 12px 12px; line-height: 1.45; }
.ph-cap b { font-weight: 600; }
.ph-cap summary { list-style: none; cursor: pointer; }
.ph-cap summary::-webkit-details-marker { display: none; }
.ph-cap details[open] summary { display: none; }
.ph-date { color: #888; font-size: .72rem; margin-top: 6px; text-transform: uppercase; letter-spacing: .03em; }

/* plan a month */
.pkg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.plan-counts { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 18px; }
.plan-counts > div { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.plan-counts b { font-family: var(--num); font-size: 1.3rem; font-weight: 600; color: var(--tc); }
.plan-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.plan-days li { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.pd-date { display: flex; flex-direction: column; align-items: center; width: 40px; font-size: .72rem; color: var(--muted); text-transform: uppercase; flex-shrink: 0; }
.pd-date b { font-family: var(--num); font-size: 1.25rem; font-weight: 400; color: var(--text); line-height: 1.1; }
.pd-items { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
/* preview shows the whole design at its real shape (no cropping); the fixed box is only for the empty state */
.phone .ph-media:has(.ph-slides), .phone.wide .ph-media:has(.ph-slides), .phone.tall .ph-media:has(.ph-slides) { aspect-ratio: auto; }
.ph-slides { align-items: center; max-height: 600px; height: auto; }
.ph-slide { height: auto; }
.ph-slide img, .ph-slide video { height: auto; max-height: 600px; object-fit: contain; }
/* tap left / right to change slide; the button covers that half of the picture (bottom strip left free for video controls) */
.ph-tap { position: absolute; top: 0; bottom: 48px; width: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; display: flex; align-items: center; padding: 0 10px; }
.ph-tap.prev { left: 0; justify-content: flex-start; }
.ph-tap.next { right: 0; justify-content: flex-end; }
.ph-tap .i { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: rgba(255, 255, 255, .85); color: #111; opacity: 0; transition: opacity .15s; box-sizing: border-box; }
.ph-media:hover .ph-tap .i, .ph-tap:focus-visible .i { opacity: 1; }
.ph-tap:focus-visible { outline: none; }
@media (hover: none) { .ph-tap .i { opacity: .7; } }
.ph-bars { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 3px; z-index: 1; pointer-events: none; }
.ph-bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.ph-bars i.on { background: #fff; }
.phone.tall .ph-over { top: 10px; }

/* Projects */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin-top: 18px; }
.proj-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--cc); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .2s; color: inherit; }
.proj-card:hover { border-color: var(--line-strong); border-top-color: var(--cc); transform: translateY(-2px); }
.pj-top { display: flex; align-items: center; gap: 12px; }
.pj-top h1 { margin: 0; }
.pj-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; color: var(--cc); background: color-mix(in srgb, var(--cc) 16%, transparent); }
.pj-icon.big { width: 52px; height: 52px; border-radius: 14px; }
.pj-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pj-bar.big { height: 12px; }
.pj-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cc, var(--red)), color-mix(in srgb, var(--cc, var(--red)) 60%, #fff)); transition: width .4s; }
#steps .pj-bar i { background: linear-gradient(90deg, #2FA36B, #4CC38A); }
.pj-nums { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .9rem; }
.proj-head { align-items: center; }
.proj-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
@media (max-width: 1200px) { .proj-layout { grid-template-columns: minmax(0, 1fr); } }
.psteps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pstep { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: 10px; flex-wrap: wrap; }
.pstep.st-doing { border-left-color: #6F93CC; }
.pstep.st-done { border-left-color: #4CC38A; }
.pstep.st-done .step-main b { text-decoration: line-through; color: var(--muted); }
.pstep.late { border-left-color: var(--red); }
.step-status select { height: 34px; padding: 0 8px; font-size: .85rem; min-width: 130px; }
.pstep.st-done .step-status select { color: #9FE3C1; }
.pstep.st-doing .step-status select { color: #A9C2EA; }
.step-main { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 2px; }
.step-tools { display: flex; align-items: center; gap: 2px; }
.step-tools .rot .i { transform: rotate(90deg); }
.step-tools .btn:disabled { opacity: .3; cursor: default; }
.step-edit { position: relative; }
.step-edit summary { list-style: none; }
.step-edit summary::-webkit-details-marker { display: none; }
.step-edit[open] > form:first-of-type, .step-edit[open] > form { margin-top: 10px; }
.step-edit[open] { flex-basis: 100%; }
.step-edit .form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; align-items: end; }
@media (max-width: 700px) { .step-edit .form { grid-template-columns: 1fr; } }
.step-add { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-strong); align-items: end; }
.kpick { position: relative; cursor: pointer; }
.kpick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kpick span { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; min-width: 200px; color: var(--silver); }
.kpick span .i { grid-row: span 2; color: var(--red); }
.kpick span b { color: var(--text); }
.kpick:has(input:checked) span { border-color: var(--red); background: rgba(237, 28, 36, .1); }
.kpick:has(input:focus-visible) span { outline: 2px solid var(--red); outline-offset: 2px; }
.pre { white-space: pre-wrap; margin: 0; }
.dash-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dash-steps a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; border-left: 3px solid var(--cc); background: color-mix(in srgb, var(--cc) 7%, transparent); color: inherit; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; align-items: start; }
.tpl { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tpl[open] { grid-column: 1 / -1; }
.tpl summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.tpl summary::-webkit-details-marker { display: none; }
.tpl summary small { margin-inline-start: auto; }
.tpl summary .i { color: var(--red); }
.tpl .form { margin: 12px 0 10px; }
.ok-txt { color: #9FE3C1; }
.stack .card > .sub-h:first-child, #steps > .sub-h:first-child { margin-top: 0; }
.pstep:has(.step-edit[open]) .step-tools { display: contents; }
.step-edit[open] { order: 9; }
.step-edit .when-open, .step-edit[open] .when-shut { display: none; }
.step-edit[open] .when-open { display: inline; }
.step-edit[open] summary { position: absolute; right: 0; top: -44px; }
.pstep { position: relative; }

/* Project page: step slider */
.slider-card { padding: 26px 28px 22px; margin-bottom: 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--red) 7%, var(--surface)), var(--surface) 55%); }
.now-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.now h2 { font-size: 1.7rem; margin: 2px 0 8px; }
.now .eyebrow { margin: 0; }
.now-meta { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--silver); flex-wrap: wrap; }
.dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); margin: 0 4px; }
.when { font-size: .78rem; padding: 2px 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); color: var(--silver); margin-inline-start: 4px; }
.when.soon { background: rgba(233, 184, 92, .15); color: #F1D29B; }
.when.late { background: rgba(237, 28, 36, .16); color: #FF9CA0; }
.now-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.now-btns .btn { height: 44px; padding: 0 18px; }

.slider { list-style: none; margin: 30px 0 22px; padding: 0 0 6px; display: flex; overflow-x: auto; scrollbar-width: thin; }
.sl { flex: 1 0 112px; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 6px; }
.sl::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.sl:first-child::before { display: none; }
.sl.done::before, .sl.now::before { background: #4CC38A; }
.sl.final.done::before { background: #4CC38A; }
.sl-dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 600; background: var(--bg, #0A1224); border: 2px solid var(--line-strong); color: var(--muted); margin-bottom: 6px; transition: transform .2s; }
.sl.done .sl-dot { background: #2FA36B; border-color: #2FA36B; color: #fff; }
.sl.now .sl-dot { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.15); box-shadow: 0 0 0 6px rgba(237, 28, 36, .18); }
.sl.now.late .sl-dot { animation: pulse 1.8s ease-in-out infinite; }
.sl.next.late .sl-dot { border-color: rgba(237, 28, 36, .6); }
.sl.final .sl-dot { border-style: dashed; }
.sl.final.done .sl-dot { background: #E9B85C; border: 2px solid #E9B85C; color: #0A1224; }
.sl b { font-size: .84rem; font-weight: 500; line-height: 1.25; color: var(--silver); }
.sl.now b { color: var(--text); font-weight: 600; }
.sl.done b { color: #9FE3C1; }
.sl small { font-size: .72rem; color: var(--muted); }
.sl.now small { color: var(--silver); }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(237, 28, 36, .08); } }
@media (prefers-reduced-motion: reduce) { .sl.now.late .sl-dot { animation: none; } }
.pj-foot { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }

/* Edit steps, folded */
.edit-steps > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.edit-steps > summary::-webkit-details-marker { display: none; }
.es-title { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.edit-steps[open] > summary { margin-bottom: 14px; }
.pnum { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; border: 1px solid var(--line-strong); color: var(--muted); flex-shrink: 0; }
.pstep.st-done .pnum { background: #2FA36B; border-color: #2FA36B; color: #fff; }
.pstep.st-doing .pnum { background: var(--red); border-color: var(--red); color: #fff; }
.pstep { border-left-width: 1px; }
.slider-card .pj-bar i { background: linear-gradient(90deg, #2FA36B, #4CC38A); }
.sl { flex-basis: 96px; }
.slider::-webkit-scrollbar { height: 6px; }
.slider::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 9px; }
.slider::-webkit-scrollbar-button { display: none; }
.proj-card { border-top: 1px solid var(--line); background: linear-gradient(170deg, color-mix(in srgb, var(--cc) 9%, var(--surface)), var(--surface) 45%); gap: 16px; }
.proj-card:hover { border-color: color-mix(in srgb, var(--cc) 55%, transparent); border-top-color: color-mix(in srgb, var(--cc) 55%, transparent); }
.proj-card .pj-top { align-items: flex-start; }
.proj-card .logo { width: 44px; height: 44px; }
.pj-name { flex: 1; min-width: 0; }
.pj-name b { display: block; line-height: 1.3; }
.proj-card .when { margin: 0; white-space: nowrap; }
.when.ok { background: rgba(76, 195, 138, .15); color: #9FE3C1; }
.pj-now { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.pj-now small { grid-column: 1 / -1; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.pj-now b { font-size: 1.05rem; font-weight: 600; }
.pj-who { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--silver); }
.segs { display: flex; gap: 4px; }
.segs i { flex: 1; height: 6px; border-radius: 99px; background: var(--line); }
.segs i.done { background: #4CC38A; }
.segs i.now { background: var(--red); box-shadow: 0 0 8px rgba(237, 28, 36, .5); }
.proj-card .pj-nums .i { vertical-align: -2px; }
.edit-steps .pstep { border-left-color: var(--line); }
.deadline-alert { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 14px; border-radius: 12px; border: 1px solid rgba(233, 184, 92, .5); background: rgba(233, 184, 92, .1); color: #F1D29B; }
.deadline-alert span:first-of-type { flex: 1; }
.deadline-alert b { color: #FFE2A8; }
.deadline-alert .da-go { display: flex; align-items: center; gap: 4px; font-size: .85rem; white-space: nowrap; }
.deadline-alert.late { border-color: rgba(237, 28, 36, .55); background: rgba(237, 28, 36, .12); color: #FFB3B6; }
.deadline-alert.late b { color: #FFD0D2; }
.deadline-alert:hover { filter: brightness(1.1); }

/* Platino calendar (replaces the browser date picker) */
.dp { position: relative; display: block; width: 100%; }
.dp-real { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.dp-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font-size: .95rem; text-align: left; cursor: pointer; transition: border-color .15s; }
.dp-btn:hover { border-color: var(--sky); }
.dp-btn[aria-expanded="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(237, 28, 36, .18); }
.dp-btn .i { color: var(--red); flex-shrink: 0; width: 18px; height: 18px; }
.dp-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-ph { color: var(--muted); }
.dp-pop { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: 304px; padding: 14px; border-radius: 16px; background: #101935; border: 1px solid var(--line-strong); box-shadow: 0 18px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(237, 28, 36, .06); animation: dpIn .16s ease-out; }
.dp-pop.up { top: auto; bottom: calc(100% + 8px); }
@keyframes dpIn { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .dp-pop { animation: none; } }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dp-title { background: none; border: 0; color: var(--text); font-weight: 600; font-size: 1rem; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.dp-title small { color: var(--muted); font-size: .7rem; }
.dp-title:hover, .dp-nav:hover { background: rgba(255, 255, 255, .06); }
.dp-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dp-dow { text-align: center; font-size: .7rem; letter-spacing: .06em; color: var(--muted); padding: 4px 0 6px; text-transform: uppercase; }
.dp-dow.we { color: rgba(237, 28, 36, .7); }
.dp-day { aspect-ratio: 1; border: 0; border-radius: 10px; background: none; color: var(--text); font-size: .88rem; cursor: pointer; position: relative; transition: background .12s; }
.dp-day.we { background: rgba(255, 255, 255, .025); color: var(--silver); }
.dp-day:hover:not(:disabled) { background: rgba(111, 147, 204, .18); }
.dp-day.out { color: var(--muted); opacity: .45; }
.dp-day.today { box-shadow: inset 0 0 0 1.5px var(--sky); font-weight: 600; }
.dp-day.sel { background: var(--red); color: #fff; font-weight: 600; box-shadow: 0 4px 14px rgba(237, 28, 36, .4); }
.dp-day:disabled { opacity: .2; cursor: not-allowed; text-decoration: line-through; }
.dp-day:focus-visible { outline: 2px solid var(--sky); outline-offset: 1px; }
.dp-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dp-month { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--text); cursor: pointer; }
.dp-month:hover { border-color: var(--sky); }
.dp-month.sel { background: var(--red); border-color: var(--red); color: #fff; }
.dp-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.dp-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-quick button { flex: 1; height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line-strong); background: none; color: var(--silver); font-size: .78rem; cursor: pointer; white-space: nowrap; }
.dp-quick button:hover:not(:disabled) { border-color: var(--red); color: var(--text); background: rgba(237, 28, 36, .1); }
.dp-quick button:disabled { opacity: .3; }
.dp-row { display: flex; justify-content: space-between; }
.dp-link { background: none; border: 0; color: var(--sky); font-size: .85rem; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.dp-link:hover { background: rgba(111, 147, 204, .12); }
@media (max-width: 600px) {
  .dp-pop, .dp-pop.up { position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto; width: auto; max-width: 420px; margin: 0 auto; border-radius: 20px; padding: 18px; }
  .dp-day { font-size: 1rem; }
}
.dp-quick { display: grid; grid-template-columns: repeat(4, 1fr); }
.dp-quick button { padding: 0 4px; font-size: .74rem; }
.dp-day:disabled { text-decoration: none; opacity: .18; }

/* Client portal */
.portal-head .logo.big { width: 64px; height: 64px; border-radius: 16px; }
.portal-head .pj-top { gap: 18px; }
.stat.hot { border-color: rgba(237, 28, 36, .55); background: linear-gradient(160deg, rgba(237, 28, 36, .14), var(--surface) 70%); }
.stat.hot b { color: #FF8A8F; }
.stats + .card, .stats + section { margin-top: 22px; }
.all-good { display: flex; align-items: center; gap: 10px; color: #9FE3C1; margin: 0; padding: 14px 16px; border-radius: 12px; background: rgba(76, 195, 138, .08); border: 1px solid rgba(76, 195, 138, .3); }
.ap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ap-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); color: inherit; transition: border-color .15s, transform .15s; }
.ap-card:hover { border-color: var(--red); transform: translateY(-2px); }
.ap-pic { display: grid; place-items: center; aspect-ratio: 4 / 5; background: #0D1530; overflow: hidden; }
.ap-pic img { width: 100%; height: 100%; object-fit: cover; }
.ap-pic.sm { width: 46px; height: 46px; aspect-ratio: auto; border-radius: 10px; flex-shrink: 0; }
.ap-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.ap-body .btn { margin-top: 8px; align-self: flex-start; }
.pt-icon { display: grid; place-items: center; width: 100%; height: 100%; color: var(--tc); background: color-mix(in srgb, var(--tc) 12%, transparent); }
.ap-pic .pt-icon .i { width: 36px; height: 36px; }
.ap-pic.sm .pt-icon .i { width: 20px; height: 20px; }
.portal-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; margin: 22px 0; align-items: start; }
.portal-cols .card { margin: 0; }
.soon-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.soon-list a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: inherit; border: 1px solid transparent; }
.soon-list a:hover { border-color: var(--line); background: rgba(255, 255, 255, .03); }
.date-chip { display: flex; flex-direction: column; align-items: center; width: 44px; flex-shrink: 0; font-size: .7rem; text-transform: uppercase; color: var(--muted); line-height: 1.1; }
.date-chip b { font-size: 1.25rem; color: var(--text); }
.soon-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.soon-txt b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill.st-client { border-color: rgba(237, 28, 36, .55); color: #FF9CA0; background: rgba(237, 28, 36, .1); }
.pill.st-approved { border-color: rgba(111, 147, 204, .6); color: #A9C2EA; background: rgba(111, 147, 204, .1); }
.pill.st-published { border-color: rgba(76, 195, 138, .55); color: #9FE3C1; background: rgba(76, 195, 138, .1); }
.pkg-rows { display: flex; flex-direction: column; gap: 16px; margin-bottom: 14px; }
.pkg-row { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.pkg-row .pt-icon { width: 40px; height: 40px; border-radius: 10px; }
.pkg-bar { position: relative; height: 10px; border-radius: 99px; background: var(--line); margin-top: 6px; overflow: hidden; }
.pkg-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--tc); }
.pkg-bar i.pl { background: color-mix(in srgb, var(--tc) 35%, transparent); }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: -1px; background: var(--silver); }
.key.pl { background: color-mix(in srgb, var(--silver) 35%, transparent); }
.key.pub:first-child { margin-left: 0; }
.cl-projects { display: flex; flex-direction: column; gap: 18px; }
.cl-proj { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; }
.slider.mini { margin: 16px 0 4px; }
.slider.mini .sl-dot { width: 28px; height: 28px; font-size: .75rem; }
.slider.mini .sl::before { top: 13px; }
.slider.mini .sl b { font-size: .76rem; }
.post-layout { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 1150px) { .post-layout { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
.post-layout .preview-card { margin: 0; }
.plats { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: flex-end; }
.plats span { display: inline-flex; align-items: center; gap: 4px; }
.caption-box { padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); max-height: 320px; overflow: auto; }
.decide { display: flex; flex-direction: column; gap: 10px; border-color: rgba(237, 28, 36, .35); }
.decide h2 { margin-bottom: 4px; }
.btn.approve { height: 50px; font-size: 1rem; background: #2FA36B; border-color: #2FA36B; color: #fff; gap: 8px; }
.btn.approve:hover { background: #28915F; }
.ask summary { list-style: none; height: 46px; gap: 8px; }
.ask summary::-webkit-details-marker { display: none; }
.ask[open] summary { display: none; }
.ask .form { display: flex; flex-direction: column; gap: 10px; }
.note-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.note-list li { padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.note-list p { margin: 4px 0 0; }
.cal-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-bar h2 { margin: 0 6px; min-width: 150px; text-align: center; }
.cal-keys { margin-inline-start: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.cal-keys b { margin-left: 4px; }
.ccal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ccal-dow { text-align: center; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 4px 0; }
.ccal-dow.we { color: rgba(237, 28, 36, .7); }
.ccal-day { min-height: 118px; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ccal-day.we { background: color-mix(in srgb, var(--surface) 70%, var(--bg)); }
.ccal-day.out { opacity: .35; }
.ccal-day.today { border-color: var(--sky); box-shadow: inset 0 0 0 1px var(--sky); }
.ccal-n { font-size: .85rem; color: var(--silver); }
.ccal-n small { display: none; margin-left: 6px; color: var(--muted); }
.ccal-day.today .ccal-n { color: var(--sky); font-weight: 600; }
.ccal-post { display: flex; align-items: center; gap: 8px; padding: 5px; border-radius: 9px; color: inherit; background: var(--bg); border-left: 3px solid var(--sc, var(--line-strong)); min-width: 0; }
.ccal-post:hover { filter: brightness(1.2); }
.ccal-post.st-client { --sc: var(--red); }
.ccal-post.st-approved { --sc: #6F93CC; }
.ccal-post.st-published { --sc: #4CC38A; }
.ccal-post img, .ccal-post .pt-icon { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.ccal-post span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ccal-post b { font-size: .78rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccal-post small { font-size: .68rem; color: var(--muted); }
@media (max-width: 800px) {
  .ccal { grid-template-columns: minmax(0, 1fr); }
  .ccal-dow, .ccal-day:not(.has) { display: none; }
  .ccal-day { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ccal-n { width: 100%; font-weight: 600; }
  .ccal-n small { display: inline; }
  .ccal-post { flex: 1 1 100%; }
  .cal-keys { margin-inline-start: 0; }
}
.ap-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.ap-pic { aspect-ratio: 1; }
.portal-cols { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
@media (max-width: 500px) { .portal-cols { grid-template-columns: minmax(0, 1fr); } }
.soon-list .pill { flex-shrink: 0; }
.slider.mini .sl { flex-basis: 84px; }
@media (min-width: 801px) {
  .ccal-post { flex-direction: column; align-items: stretch; gap: 4px; padding: 4px; border-left: 0; border-bottom: 3px solid var(--sc, var(--line-strong)); }
  .ccal-post img, .ccal-post .pt-icon { width: 100%; height: 64px; border-radius: 6px; }
  .ccal-post b { font-size: .74rem; }
  .ccal-post small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 500px) { .ap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ap-body { padding: 10px; } }
.pill.client-ask { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; border-color: rgba(240, 140, 180, .6); color: #F7B8D0; background: rgba(240, 140, 180, .12); }

/* Client calendar: suggest a post */
.suggest { padding: 0; border: 0; background: none; margin: 0 0 16px; }
.suggest summary { list-style: none; display: inline-flex; gap: 8px; }
.suggest summary::-webkit-details-marker { display: none; }
.suggest[open] summary { display: none; }
.suggest[open] { padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.ccal-n { display: flex; align-items: center; }
.ccal-add { margin-inline-start: auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: var(--muted); opacity: .35; transition: opacity .15s, background .15s; }
.ccal-day:hover .ccal-add, .ccal-add:focus-visible { opacity: 1; }
.ccal-add:hover { background: var(--red); color: #fff; }
.ccal-post.st-idea { --sc: #E3B341; border: 1px dashed rgba(227, 179, 65, .5); border-left: 3px solid var(--sc); background: rgba(227, 179, 65, .06); cursor: default; }
.ccal-post.st-idea:hover { filter: none; }
.pill.st-idea { border-color: rgba(227, 179, 65, .55); color: #F0CF7A; background: rgba(227, 179, 65, .1); }
@media (hover: none) { .ccal-add { opacity: .8; } }

/* Reports */
.logo.sm { width: 34px; height: 34px; border-radius: 9px; }
.rp-h { display: flex; align-items: center; gap: 8px; margin: 26px 0 10px; }
.rp-bar-cell { min-width: 140px; }
.rp-bar-cell .pkg-bar { display: block; margin: 0 0 4px; }
.rp-proj { display: flex; align-items: center; gap: 12px; padding: 8px; }
.rp-links { display: flex; gap: 10px; margin-top: 6px; }
.rp-links a { color: var(--silver); }
.rp-links a:hover { color: var(--text); }
.stat b small { font-size: 1rem; font-weight: 400; }
@media print {
  .side, .no-print, .flash, .deadline-alert, .topbar { display: none !important; }
  body, .app { background: #fff !important; color: #111 !important; }
  .main, main { margin: 0 !important; padding: 0 !important; }
  .card, .stat, .ap-card { background: #fff !important; border-color: #ccc !important; color: #111 !important; break-inside: avoid; }
  .muted, .stat span { color: #555 !important; }
  .ap-grid { grid-template-columns: repeat(4, 1fr); }
}
.table th.num { text-align: end; }

/* Attendance */
.duty { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.duty > span:nth-of-type(2) { flex: 1; min-width: 160px; }
.duty .btn { margin-inline-start: auto; }
.duty-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.duty.on { border-color: rgba(76, 195, 138, .4); background: linear-gradient(90deg, rgba(76, 195, 138, .1), var(--surface) 60%); }
.duty.on .duty-dot { background: #4CC38A; box-shadow: 0 0 0 4px rgba(76, 195, 138, .2); }
.miss-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(237, 28, 36, .2); vertical-align: middle; }
.red-txt { color: #FF8A8F; font-weight: 500; }
.att-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.att-badge.on, .att-badge.done { color: #9FE3C1; border-color: rgba(76, 195, 138, .45); background: rgba(76, 195, 138, .08); }
.att-badge.late { color: #F0CF7A; border-color: rgba(227, 179, 65, .5); background: rgba(227, 179, 65, .08); }
.att-badge.none { color: #FF9CA0; border-color: rgba(237, 28, 36, .4); }
.att-badge.leave { color: #A9C2EA; border-color: rgba(111, 147, 204, .5); }
.att-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.att-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.att-list .who { flex: 1; min-width: 140px; }
.att-miss { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: #FF9CA0; }
.att-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.att-head h2 { margin: 0; }
.att-nav { display: inline-flex; align-items: center; gap: 8px; }
.att-stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-bottom: 10px; }
.att-stats .stat { padding: 12px 14px; }
.att-stats .stat b { font-size: 1.5rem; }
.stat.warn { border-color: rgba(227, 179, 65, .5); }
.stat.warn b { color: #F0CF7A; }
.att-wrap { overflow-x: auto; margin: 12px -4px 0; }
.att-table tr.att-absent td:first-child, .att-table tr.att-leave td:first-child { color: var(--muted); }
.fix-end { display: inline-flex; gap: 6px; margin-inline-start: 8px; vertical-align: middle; }
.fix-end input { width: 110px; padding: 4px 8px; }
.leave-list .row { display: inline-flex; gap: 6px; align-items: center; }
.leave-list form { display: inline; }
.att-table { min-width: 560px; }
.att-table th, .att-table td { padding: 10px 12px; }
.att-table td:first-child { white-space: nowrap; }

/* Employees: tabs, documents, salary history */
.people-tabs { margin: -4px 0 22px; }
.people-tabs a { display: inline-flex; align-items: center; gap: 6px; }
.people-tabs a.on { color: var(--text); border-bottom-color: var(--red); }
.hr-alerts { border-color: rgba(227, 179, 65, .45); }
.doc-list, .sal-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.doc-list .soon-txt { flex: 1; min-width: 150px; }
.doc-list form { display: inline; }
.doc-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(111, 147, 204, .12); color: #A9C2EA; flex-shrink: 0; }
.sal-list li { display: flex; gap: 12px; align-items: flex-start; position: relative; padding-left: 4px; }
.sal-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); margin-top: 6px; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(111, 147, 204, .15); }
.sal-list .up { color: #4CC38A; font-size: .82rem; font-weight: 500; }
.sal-list .down { color: #FF8A8F; font-size: .82rem; font-weight: 500; }
.bal { margin: 4px 0 16px; }

/* Employee page: hero, quick numbers, tabs, card grid, copy buttons */
.emp-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 20px; }
.avatar.xl { width: 72px; height: 72px; font-size: 1.4rem; background: linear-gradient(135deg, var(--navy), #1d2f57); }
.emp-who h1 { margin: 0 0 4px; font-size: 1.6rem; }
.emp-who p { margin: 0 0 10px; }
.emp-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.emp-tags .i { vertical-align: -2px; }
.emp-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.emp-ring { display: block; line-height: 0; }
.emp-stats { grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); }
.emp-stats .stat { padding: 14px 16px; }
.emp-stats .stat b { font-size: 1.5rem; }
.emp-stats .stat b.sm { font-size: 1.05rem; line-height: 1.5; font-family: inherit; }
.emp-tabs { overflow-x: auto; scrollbar-width: none; }
.emp-tabs a { white-space: nowrap; }
.emp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.emp-grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.emp-grid .card h2, .doc-grid + .card h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 14px; }
.emp-grid .card h2 .i { color: var(--sky); }
.facts { margin: 0; display: grid; }
.facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); align-items: center; }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--muted); font-size: .85rem; }
.facts dd { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .9rem; letter-spacing: .02em; overflow-wrap: anywhere; }
.copy { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); cursor: pointer; flex-shrink: 0; transition: color .15s, border-color .15s, background .15s; }
.copy:hover { color: var(--text); border-color: var(--sky); }
.copy.done { color: #4CC38A; border-color: #4CC38A; background: rgba(76, 195, 138, .12); }
.pay-to { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.miss-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.miss-list li { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.missing-card { border-color: rgba(227, 179, 65, .35); }
.doc-need { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.doc-card { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-width: 0; }
.doc-thumb { flex: 0 0 78px; height: 96px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; align-content: center; gap: 4px; overflow: hidden; color: var(--sky); }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-thumb b { font-size: .7rem; letter-spacing: .08em; color: var(--muted); }
.doc-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.doc-body .row { margin-top: auto; padding-top: 6px; gap: 6px; }
.bal-ring { display: flex; align-items: center; gap: 20px; }
.bal-ring .facts { flex: 1; }
.chart { width: 100%; height: auto; display: block; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-ax { fill: var(--muted); font-size: 11px; }
.ring-bg { fill: none; stroke: var(--line-strong); stroke-width: 10; }
.ring-num { fill: var(--text); font-size: 20px; font-weight: 600; }
.ring-lbl { fill: var(--muted); font-size: 10px; }
@media (max-width: 1000px) {
  .emp-hero { grid-template-columns: auto minmax(0, 1fr) auto; }
  .emp-actions { grid-column: 1 / -1; justify-content: flex-start; order: 5; }
}
@media (max-width: 600px) {
  .emp-hero { grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
  .emp-ring { grid-row: 1; grid-column: 2; justify-self: end; display: none; }
  .avatar.xl { width: 56px; height: 56px; font-size: 1.1rem; }
  .emp-who h1 { font-size: 1.3rem; }
  .emp-grid, .emp-grid.two { grid-template-columns: minmax(0, 1fr); }
  .facts > div { grid-template-columns: 100px minmax(0, 1fr); }
  .bal-ring { flex-direction: column; align-items: stretch; }
}
@media print { .copy, .emp-actions, .emp-tabs { display: none; } }
.emp-stats .stat b { white-space: nowrap; font-size: 1.35rem; }
/* overview cards stack like a wall (no empty holes under short cards) */
.emp-grid.wall { display: block; columns: 3 300px; column-gap: 16px; }
.emp-grid.wall > .card { break-inside: avoid; margin-bottom: 16px; }
.facts .mono { font-size: .84rem; }

/* Stars when approving */
.stars-in { border: 0; padding: 0; margin: 0 0 10px; min-width: 0; }
.stars-in legend { font-size: .85rem; color: var(--muted); padding: 0; margin-bottom: 4px; }
.stars-in > span { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.stars-in input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-in label { font-size: 1.7rem; line-height: 1; color: var(--line-strong); cursor: pointer; padding: 2px; transition: color .1s, transform .1s; }
.stars-in label:hover, .stars-in label:hover ~ label, .stars-in input:checked ~ label { color: #E9B85C; }
.stars-in input:focus-visible + label { outline: 2px solid var(--sky); border-radius: 4px; }
.stars-in label:active { transform: scale(.9); }
.approve-stars { display: flex; flex-direction: column; align-items: flex-start; }

/* Team performance */
.perf-head { display: flex; align-items: center; gap: 18px; }
.perf-head h1 { margin: 0 0 4px; }
.perf-head p { margin: 0; }
.perf-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.perf-final { display: flex; align-items: center; gap: 20px; padding: 16px 22px; }
.perf-final > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.perf-final b.big { font-family: var(--num); font-size: 2.6rem; line-height: 1; }
.perf-top .stat { justify-content: center; }
.trend { font-size: .78rem; font-weight: 600; white-space: nowrap; }
.trend.up { color: #4CC38A; }
.trend.down { color: #FF8A8F; }
.trend.same { color: var(--muted); }
.score { font-family: var(--num); font-size: 1.15rem; }
.score.sc-top { color: #4CC38A; } .score.sc-ok { color: #A9C2EA; } .score.sc-mid { color: #F0CF7A; } .score.sc-low { color: #FF8A8F; }
.pill.ev-excellent { color: #9FE3C1; border-color: rgba(76, 195, 138, .5); }
.pill.ev-ontrack { color: #A9C2EA; border-color: rgba(111, 147, 204, .5); }
.pill.ev-improve { color: #F0CF7A; border-color: rgba(227, 179, 65, .5); }
.pill.ev-final { color: #FF9CA0; border-color: rgba(237, 28, 36, .5); }
.kpi-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.kpi-list li.na { opacity: .55; }
.kpi-top, .kpi-foot { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.kpi-top span { font-size: .88rem; color: var(--silver); text-align: end; }
.kpi-bar { height: 8px; border-radius: 99px; background: var(--line); margin: 6px 0 4px; overflow: hidden; }
.kpi-bar i { display: block; height: 100%; border-radius: 99px; }
.kpi-foot span { white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ch-a { fill: var(--line-strong); } .ch-b { fill: var(--sky); }
.key.ch-a { background: var(--line-strong); } .key.ch-b { background: var(--sky); }
.ch-v { fill: var(--text); font-weight: 600; }
.radar { max-width: 440px; margin: 0 auto; }
.donut { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 8px; }
.legend b { margin-inline-start: 6px; font-family: var(--num); }
.eval-areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.eval-area { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0; min-width: 0; }
.eval-area legend, .eval-area h3 { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; padding: 0 4px; margin: 0; }
.eval-area h3 { padding: 0; margin-bottom: 8px; }
.eval-area h3 b { margin-inline-start: auto; font-family: var(--num); color: var(--sky); }
.ev-letter { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--navy); color: var(--sky); font-size: .75rem; }
.ev-row { display: grid !important; grid-template-columns: minmax(0, 1fr) 76px; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.ev-row:first-of-type { border-top: 0; }
.ev-row select { height: 34px; padding: 0 8px; }
.eval-area ul { list-style: none; margin: 0; padding: 0; }
.eval-area li { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.eval-area li b { text-align: end; font-family: var(--num); }
.ev-dots { display: inline-flex; gap: 3px; }
.ev-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.ev-dots i.on { background: var(--sky); }
.ev-dots i.half { background: linear-gradient(90deg, var(--sky) 50%, var(--line-strong) 50%); }
.eval-view { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
.eval-text { margin-top: 16px; }
.plan-rows { display: grid; gap: 8px; margin-bottom: 14px; }
.plan-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan-row.head span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.print-only { display: none; }
@media (max-width: 1000px) { .perf-top { grid-template-columns: 1fr 1fr; } .perf-final { grid-column: 1 / -1; } .eval-view { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .perf-head .avatar { display: none; }
  .perf-final { flex-direction: column; align-items: flex-start; }
  .eval-areas { grid-template-columns: minmax(0, 1fr); }
  .plan-row { grid-template-columns: minmax(0, 1fr); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .plan-row.head { display: none; }
}
@media print {
  .print-only { display: block; }
  .perf-logo { height: 22px; width: auto; filter: invert(1); margin-inline-end: auto; order: 9; }
  .kpi-list li.na { opacity: .4; }
  .perf-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .eval-view { grid-template-columns: 300px 1fr; }
  .ring-num, .ch-v { fill: #111 !important; }
  .ch-ax { fill: #555 !important; }
}
.eval-view { margin-bottom: 16px; }
@media (min-width: 1001px) { .eval-view { grid-template-columns: minmax(300px, 480px) minmax(0, 1fr); } }
.radar { max-width: 480px; }
.eval-text { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 20px; margin-top: 0; }
.eval-notes .sub-h:first-child, .eval-text .sub-h { margin-top: 0; }
.eval-notes .notes { margin-top: 4px; }
.eval-notes .table th, .eval-notes .table td { padding: 8px 12px 8px 0; }
.radar .ch-ax { font-size: 12.5px; }

/* Client monthly report */
.cr-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cr-brand { height: 20px; width: auto; opacity: .85; display: none; }
.shared .cr-brand { display: block; }
.shared-main { margin: 0 auto; }
.shared-print { display: flex; justify-content: center; }
.cr-admin { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; }
.cr-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cr-link { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.cr-link code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .82rem; color: var(--silver); }
.cr-summary { border-color: rgba(111, 147, 204, .35); background: linear-gradient(135deg, rgba(111, 147, 204, .1), var(--surface) 55%); }
.cr-summary .notes, .cr-next .notes { font-size: 1.02rem; margin: 0; }
.cr-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cr-tiles .stat b { font-size: 1.8rem; }
.cr-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.cr-charts .card h2, .cr-summary h2, .cr-next h2 { font-size: 1.05rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.cr-table td:first-child { color: var(--silver); }
.cr-table .trend { margin-inline-start: 6px; font-size: .72rem; }
.cr-tag { position: absolute; top: 8px; left: 8px; font-style: normal; font-size: .72rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--red); color: #fff; }
.cr-top .ap-pic { position: relative; }
.cr-nums { display: flex; gap: 12px; margin-top: 6px; font-size: .88rem; font-family: var(--num); }
.cr-nums span { display: inline-flex; align-items: center; gap: 4px; }
.cr-input td { padding: 6px 12px; }
.cr-input td:first-child { white-space: nowrap; }
.cr-input input { height: 36px; min-width: 110px; }
.cr-form { display: flex; flex-direction: column; gap: 16px; }
.cr-top-rows { display: grid; gap: 8px; }
.cr-top-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.cr-ready { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; }
.cr-ready input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.cr-foot { text-align: center; }
.cr-form .card.flush { overflow-x: auto; }
@media (max-width: 600px) {
  .cr-top-row { grid-template-columns: 1fr 1fr; }
  .cr-top-row select { grid-column: 1 / -1; }
  .cr-charts { grid-template-columns: minmax(0, 1fr); }
  .cr-tiles { grid-template-columns: 1fr 1fr; }
}
@media print {
  .cr-brand { display: block; filter: invert(1); }
  .cr-tiles { grid-template-columns: repeat(4, 1fr); }
  .cr-charts { grid-template-columns: repeat(2, 1fr); }
  .cr-summary { background: #fff !important; }
}
.cr-tiles { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; }
.cr-tiles .stat { padding: 14px 16px; }
.cr-tiles .stat b { font-size: 1.5rem; }
.cr-charts { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cr-charts .donut { justify-content: center; min-height: 150px; }
@media (max-width: 600px) { .cr-tiles { grid-template-columns: 1fr 1fr; } .cr-charts { grid-template-columns: minmax(0, 1fr); } }
.cr-best { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 16px; align-items: start; }
.cr-best > :only-child { grid-column: 1 / -1; }
.cr-best .card h2 { font-size: 1.05rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.cr-best .cr-top { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.cr-aud .notes { font-size: 1rem; margin: 0; }
@media (max-width: 900px) { .cr-best { grid-template-columns: minmax(0, 1fr); } }
.demo-card { border-color: rgba(227, 179, 65, .35); }
.demo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pill.demo { color: #F0CF7A; border-color: rgba(227, 179, 65, .5); font-size: .7rem; }
