/* =========================================================
   UStartup Portal
   Brand: violet #371AC9, DM Sans (same family as Hostinger hPanel)
   Signature element: the folder shape, used on key cards
   ========================================================= */


@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-Variable.woff2") format("woff2-variations"), url("../fonts/DMSans-Variable.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  --violet: #371AC9;
  --violet-hi: #4A30F0;
  --violet-deep: #2A129E;
  --violet-50: #F3F0FE;
  --violet-100: #E6E0FC;
  --violet-200: #CFC4F8;
  --navy: #07041C;
  --ink: #16132E;
  --ink-2: #45425F;
  --muted: #7A7792;
  --faint: #A6A3B8;
  --line: #E8E6F1;
  --line-2: #F0EEF6;
  --rail: #F7F6FB;
  --white: #FFFFFF;
  --success: #0E8A63;
  --success-bg: #E7F6F0;
  --warn: #B25C0B;
  --warn-bg: #FDF1E4;
  --danger: #C12F3F;
  --danger-bg: #FCEBED;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(22,19,46,.04), 0 10px 30px -18px rgba(55,26,201,.28);
  --shadow-lift: 0 2px 4px rgba(22,19,46,.05), 0 18px 40px -20px rgba(55,26,201,.38);
  --f-head: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sidebar: 264px;
  --topbar: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 15px; font-optical-sizing: auto; line-height: 1.55; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: var(--violet); text-decoration: none; }
a:hover { color: var(--violet-deep); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); margin: 0; line-height: 1.25; letter-spacing: -0.015em; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--violet) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
.icon { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 20px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; background: var(--rail);
  border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 16px 16px; z-index: 40;
}
.sidebar .brand { padding: 4px 10px 24px; }
.sidebar .brand img { height: 30px; width: auto; }
.nav-group { margin-bottom: 18px; }
.nav-label { font-size: 12px; color: var(--faint); padding: 0 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--ink-2); font-weight: 500; border: 1px solid transparent; transition: background .15s, color .15s;
}
.nav a .icon { color: var(--muted); }
.nav a:hover { background: var(--white); color: var(--ink); }
.nav a.active { background: var(--white); color: var(--violet); border-color: var(--line); box-shadow: 0 1px 2px rgba(22,19,46,.05); }
.nav a.active .icon { color: var(--violet); }
.nav .count { margin-left: auto; font-size: 12px; font-weight: 600; background: var(--violet); color: #fff; border-radius: 999px; padding: 1px 8px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.me .who { min-width: 0; flex: 1; }
.me .who strong { display: block; font-size: 14px; font-weight: 600; }
.me .who span { font-size: 12px; color: var(--muted); }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--ink-2); cursor: pointer; position: relative;
}
.icon-btn:hover { background: var(--white); border-color: var(--line); color: var(--ink); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar); background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 32px;
}
.topbar .crumbs { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar .crumbs a { color: var(--muted); }
.topbar .crumbs a:hover { color: var(--ink); }
.topbar .crumbs strong { color: var(--ink); font-weight: 600; }
.topbar .actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.bell-dot {
  position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--violet); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff;
}
[hidden] { display: none !important; }
.bell-dot[hidden] { display: none; }
.content { padding: 32px; width: 100%; max-width: 1320px; }

/* ---------- Dropdown (notifications) ---------- */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 380px; max-width: calc(100vw - 24px); background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lift); overflow: hidden; display: none;
}
.dropdown.open .dropdown-panel { display: block; }
.dropdown-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.notif-list { max-height: 420px; overflow: auto; }
.notif { display: flex; gap: 12px; padding: 12px 16px; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.notif:hover { background: var(--rail); color: var(--ink); }
.notif .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); margin-top: 7px; flex: none; }
.notif.read .dot { background: transparent; }
.notif strong { display: block; font-weight: 600; font-size: 14px; line-height: 1.35; }
.notif span { font-size: 12px; color: var(--muted); }
.dropdown-foot { display: block; text-align: center; padding: 12px; font-weight: 600; font-size: 14px; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head p { color: var(--muted); margin: 6px 0 0; }
.page-head .tools { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 20px; border-radius: 999px;
  font: 600 14px/1 var(--f-body); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 6px 16px -8px rgba(55,26,201,.7); }
.btn-primary:hover { background: var(--violet-deep); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--violet-200); color: var(--violet); }
.btn-soft { background: var(--violet-50); color: var(--violet); }
.btn-soft:hover { background: var(--violet-100); color: var(--violet-deep); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #0B7453; color: #fff; }
.btn-danger-ghost { background: #fff; color: var(--danger); border-color: #F2CDD2; }
.btn-danger-ghost:hover { background: var(--danger-bg); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--violet); font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card-pad { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.card-head h2 { font-size: 17px; }
.card-body { padding: 16px 24px 24px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.grid-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 32px; }
.grid-folders { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 24px; }

/* ---------- The folder shape ----------
   Tab on the top-left with a slanted edge, like the folders on ustartup.co.
   Built from the element plus two pseudo-elements so it keeps a single
   drop-shadow (filter) around the whole silhouette. */
.folder {
  --fill: #fff; --tab-w: 42%;
  position: relative; background: var(--fill); border-radius: 0 var(--r-lg) var(--r-lg) var(--r-lg);
  margin-top: 16px; filter: drop-shadow(0 1px 1px rgba(22,19,46,.06)) drop-shadow(0 12px 22px rgba(55,26,201,.13));
}
.folder::before {
  content: ""; position: absolute; left: 0; top: -15px; width: var(--tab-w); height: 16px;
  background: var(--fill); border-radius: 14px 0 0 0;
}
.folder::after {
  content: ""; position: absolute; left: calc(var(--tab-w) - 12px); top: -15px; width: 30px; height: 16px;
  background: var(--fill); border-top-right-radius: 10px; transform: skewX(42deg); transform-origin: bottom left;
}
a.folder { display: block; color: var(--ink); transition: filter .2s, transform .2s; }
a.folder:hover { filter: drop-shadow(0 1px 1px rgba(22,19,46,.06)) drop-shadow(0 18px 28px rgba(55,26,201,.22)); transform: translateY(-2px); }

/* Violet KPI folders */
.kpi {
  --fill: var(--violet-hi); --tab-w: 38%;
  background: linear-gradient(180deg, var(--violet-hi) 0%, var(--violet) 70%);
  color: #fff; padding: 20px 22px 22px; min-height: 132px; display: flex; flex-direction: column;
  filter: drop-shadow(0 14px 20px rgba(55,26,201,.28));
}
.kpi .kpi-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); }
.kpi .kpi-icon .icon { width: 19px; height: 19px; }
.kpi .kpi-num { font-family: var(--f-head); font-weight: 700; font-size: 38px; line-height: 1; margin-top: auto; padding-top: 16px; }
.kpi .kpi-label { color: rgba(255,255,255,.78); font-size: 14px; margin-top: 6px; }
a.kpi { color: #fff; }
a.kpi:hover { color: #fff; }

/* Project folder cards (white) */
.project-card { padding: 22px 22px 20px; min-height: 190px; display: flex; flex-direction: column; }
.project-card .client { font-size: 13px; color: var(--muted); }
.project-card h3 { font-size: 18px; margin: 6px 0 10px; line-height: 1.3; }
.project-card .meta { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.progress { height: 6px; background: var(--line-2); border-radius: 999px; overflow: hidden; margin: 14px 0 12px; }
.progress span { display: block; height: 100%; background: var(--violet); border-radius: inherit; }

/* ---------- Badges, avatars ---------- */
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-neutral { background: var(--line-2); color: var(--ink-2); }
.badge-violet { background: var(--violet-50); color: var(--violet); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.due { font-size: 12px; font-weight: 600; }
.due.danger { color: var(--danger); }
.due.warn { color: var(--warn); }
.due.muted { color: var(--muted); font-weight: 500; }

.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 13px/1 var(--f-body); flex: none; }
.avatar-sm { width: 26px; height: 26px; font-size: 11px; }
.avatar-lg { width: 44px; height: 44px; font-size: 15px; }
.avatar-0 { background: var(--violet-100); color: var(--violet-deep); }
.avatar-1 { background: #DDEBFF; color: #1E4FA8; }
.avatar-2 { background: #DFF3EC; color: #0B6B4E; }
.avatar-3 { background: #FBE6EF; color: #A0305F; }
.avatar-4 { background: #EDE9E3; color: #5E503D; }

/* ---------- Lists & tables ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
.list-item .title { font-weight: 600; color: var(--ink); display: block; }
.list-item .sub { font-size: 13px; color: var(--muted); }
a.list-item:hover .title { color: var(--violet); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--rail); }
.table th:first-child { border-top-left-radius: var(--r); }
.table th:last-child { border-top-right-radius: var(--r); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FCFBFF; }
.table a.row-link { color: var(--ink); font-weight: 600; }
.table a.row-link:hover { color: var(--violet); }

.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: flex; gap: 12px; padding: 10px 0; font-size: 14px; }
.activity li + li { border-top: 1px solid var(--line-2); }
.activity .when { display: block; font-size: 12px; color: var(--muted); }

/* ---------- Tabs & filters ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 12px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--violet); border-color: var(--violet); }
.tabs .n { font-size: 12px; background: var(--line-2); color: var(--ink-2); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.pills { display: inline-flex; background: var(--rail); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.pills a { padding: 7px 14px; border-radius: 999px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.pills a.active { background: #fff; color: var(--violet); box-shadow: 0 1px 3px rgba(22,19,46,.08); }

/* ---------- Kanban ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.column { background: var(--rail); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; min-height: 180px; }
.column-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; font-weight: 600; font-size: 14px; }
.column-head .n { font-size: 12px; color: var(--muted); }
.column.drop-target { border-color: var(--violet-200); background: var(--violet-50); }
.task-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; color: var(--ink); margin-bottom: 10px; box-shadow: 0 1px 2px rgba(22,19,46,.04); }
.task-card:hover { border-color: var(--violet-200); color: var(--ink); }
.task-card[draggable="true"] { cursor: grab; }
.task-card.dragging { opacity: .5; }
.task-card .t { font-weight: 600; font-size: 14px; line-height: 1.35; display: block; margin-bottom: 10px; }
.task-card .foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.task-card .foot .push { margin-left: auto; }
.hidden-flag { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.hidden-flag .icon { width: 14px; height: 14px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
  font: 400 15px/1.4 var(--f-body); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237A7792' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(55,26,201,.12); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--violet); margin-top: 2px; flex: none; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.file-input { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--violet-200); background: var(--violet-50); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.file-input input { display: none; }
.file-input .icon { color: var(--violet); }

/* ---------- Flash ---------- */
.flashes { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.flash { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow-lift); font-size: 14px; animation: flash-in .25s ease-out; }
.flash .icon { width: 20px; height: 20px; }
.flash-success .icon { color: var(--success); }
.flash-error { border-color: #F2CDD2; }
.flash-error .icon { color: var(--danger); }
.flash button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0; }
@keyframes flash-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Detail pages ---------- */
.detail-head { margin-bottom: 24px; }
.detail-head .kicker { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.detail-head .kicker a { color: var(--muted); }
.detail-head .kicker a:hover { color: var(--violet); }
.detail-head h1 { font-size: 28px; }
.detail-head .badges { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.prose { color: var(--ink-2); white-space: normal; overflow-wrap: anywhere; }
.side-card dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 12px 12px; font-size: 14px; }
.side-card dt { color: var(--muted); }
.side-card dd { margin: 0; font-weight: 500; }

.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.file-tile { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; color: var(--ink); }
.file-tile:hover { border-color: var(--violet-200); color: var(--ink); }
.file-tile .thumb { aspect-ratio: 4/3; background: var(--rail); display: grid; place-items: center; overflow: hidden; }
.file-tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-tile .thumb .icon { width: 34px; height: 34px; color: var(--violet); }
.file-tile .fname { padding: 10px 12px 2px; font-size: 13px; font-weight: 600; }
.file-tile .fmeta { padding: 0 12px 10px; font-size: 12px; color: var(--muted); }

/* Approval banner */
.decision { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 20px; border-radius: var(--r); margin-bottom: 24px; flex-wrap: wrap; }
.decision.pending { background: var(--violet-50); border: 1px solid var(--violet-100); }
.decision.approved { background: var(--success-bg); border: 1px solid #C6E9DB; }
.decision.changes { background: var(--danger-bg); border: 1px solid #F2CDD2; }
.decision strong { font-family: var(--f-head); font-size: 17px; font-weight: 600; display: block; }
.decision p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 24px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: -2px; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 1px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--violet); }
.timeline .when { display: block; font-size: 12px; color: var(--muted); }
.timeline .note { margin-top: 6px; background: var(--rail); border-radius: 10px; padding: 8px 12px; color: var(--ink-2); }

/* ---------- Comments ---------- */
.comments { list-style: none; margin: 0; padding: 0; }
.comment { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.comment:last-child { border-bottom: 0; }
.comment .bubble { flex: 1; min-width: 0; }
.comment .by { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.comment .by strong { font-weight: 600; }
.comment .by span { font-size: 12px; color: var(--muted); }
.comment .text { margin-top: 4px; color: var(--ink-2); overflow-wrap: anywhere; }
.comment.internal .bubble { background: #FFF9EF; border: 1px solid #F3E2C4; border-radius: 12px; padding: 10px 14px; }
.internal-tag { font-size: 11px; font-weight: 700; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 2px 8px; }
.mention { color: var(--violet); font-weight: 600; background: var(--violet-50); border-radius: 6px; padding: 0 4px; }
.comment-files { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 10px; font-size: 13px; color: var(--ink-2); background: #fff; }
.chip .icon { width: 15px; height: 15px; color: var(--violet); }
.chip:hover { border-color: var(--violet-200); color: var(--violet); }

.composer { border: 1px solid var(--line); border-radius: var(--r); background: #fff; position: relative; transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(55,26,201,.1); }
.composer.is-internal { background: #FFFCF6; border-color: #F0DDB8; }
.composer textarea { border: 0; width: 100%; min-height: 96px; resize: vertical; padding: 14px 16px; font: 400 15px/1.5 var(--f-body); color: var(--ink); background: transparent; border-radius: var(--r) var(--r) 0 0; }
.composer textarea:focus { outline: none; }
.composer-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.composer-bar .push { margin-left: auto; }
.mention-menu { position: absolute; left: 12px; bottom: calc(100% - 40px); z-index: 20; width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lift); padding: 6px; display: none; max-height: 260px; overflow: auto; }
.mention-menu.open { display: block; }
.mention-menu button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 8px 10px; border-radius: 8px; text-align: left; font: inherit; cursor: pointer; color: var(--ink); }
.mention-menu button small { display: block; color: var(--muted); font-size: 12px; }
.mention-menu button.active, .mention-menu button:hover { background: var(--violet-50); }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .icon { width: 34px; height: 34px; color: var(--violet-200); margin: 0 auto 12px; }
.empty strong { display: block; color: var(--ink); font-family: var(--f-head); font-weight: 600; font-size: 16px; margin-bottom: 4px; }

/* ---------- Review & partners ---------- */
.review-card { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.review-card .stars { display: flex; gap: 3px; color: #00B67A; }
.review-card .stars .icon { width: 18px; height: 18px; fill: currentColor; }
.partners { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.partners .label { font-weight: 600; color: var(--ink-2); margin: 0 4px 0 0; font-size: 13px; }
.partner { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-2); }
.partner::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-200); }
.app-foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 20px 32px 28px; }

/* ---------- Modal (native dialog) ---------- */
dialog.modal { border: 0; padding: 0; border-radius: var(--r-lg); width: min(620px, calc(100vw - 24px)); box-shadow: 0 30px 80px -20px rgba(7,4,28,.45); color: var(--ink); }
dialog.modal::backdrop { background: rgba(7,4,28,.4); backdrop-filter: blur(4px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line-2); }
.modal-body { padding: 22px 24px 8px; max-height: 70vh; overflow: auto; }
.modal-foot { padding: 14px 24px 20px; display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Auth pages ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; }
.auth-art { position: relative; background: var(--navy); color: #fff; padding: 44px 56px; display: flex; flex-direction: column; overflow: hidden; }
.auth-art .logo { height: 34px; width: auto; position: relative; z-index: 2; }
.auth-art h1 { color: #fff; font-size: clamp(34px, 4vw, 52px); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; margin-top: auto; position: relative; z-index: 2; max-width: 12ch; }
.auth-art .lede { color: rgba(255,255,255,.72); font-size: 16px; max-width: 42ch; margin: 18px 0 32px; position: relative; z-index: 2; }
.auth-art .partners { color: rgba(255,255,255,.62); position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }
.auth-art .partners .label { color: #fff; }
.auth-art .partner { color: rgba(255,255,255,.85); }
.auth-art .partner::before { background: #7D66F5; }
/* Stack of violet folders behind the headline */
.folder-stack { position: absolute; right: -60px; top: 90px; width: 420px; height: 360px; z-index: 1; }
.folder-stack .folder { position: absolute; width: 100%; height: 240px; --tab-w: 40%; filter: drop-shadow(0 24px 40px rgba(0,0,0,.45)); }
.folder-stack .f1 { --fill: #1C1060; top: 0; left: 60px; }
.folder-stack .f2 { --fill: #2A18A0; top: 50px; left: 30px; }
.folder-stack .f3 { --fill: var(--violet); top: 100px; left: 0; background: linear-gradient(180deg, var(--violet-hi), var(--violet)); --fill: var(--violet-hi); }
.folder-stack .f3 .mark { position: absolute; right: 26px; bottom: 26px; width: 58px; opacity: .95; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box .mobile-logo { display: none; height: 28px; width: auto; margin-bottom: 32px; }
.auth-box h2 { font-size: 28px; margin-bottom: 6px; }
.auth-box > p { color: var(--muted); margin-bottom: 28px; }
.auth-box .field-row { display: flex; justify-content: space-between; align-items: baseline; }
.auth-box .alt { text-align: center; margin-top: 22px; font-size: 14px; color: var(--muted); }

/* Bare error page */
.bare { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.bare .code { font-family: var(--f-head); font-size: 64px; font-weight: 800; color: var(--violet); line-height: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .grid-main { grid-template-columns: 1fr; }
  .grid-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: 0 0 60px rgba(7,4,28,.3); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(7,4,28,.35); z-index: 35; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 0 16px; padding-top: env(safe-area-inset-top); height: calc(var(--topbar) + env(safe-area-inset-top)); }
  .content { padding: 22px 16px 32px; }
  .grid-2 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-box .mobile-logo { display: block; }
  .app-foot { padding: 18px 16px 28px; }
}
@media (max-width: 640px) {
  h1 { font-size: 25px; }
  .grid-kpi { gap: 16px 12px; }
  .kpi { padding: 16px; min-height: 118px; }
  .kpi .kpi-num { font-size: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .topbar .crumbs .hide-sm { display: none; }
  .board { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; }
  .column { scroll-snap-align: start; }
  .table .hide-sm { display: none; }
  .side-card dl { grid-template-columns: 96px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.icon-sm { width: 15px; height: 15px; vertical-align: -3px; }
.fmeta a { font-weight: 600; font-size: 12px; }

/* ---------- Fixes after visual review ---------- */
.folder.kpi { display: flex; }
.auth-art .logo { align-self: flex-start; }
.folder-stack { right: -30px; }
.shell { background: linear-gradient(to right, var(--rail) var(--sidebar), #fff var(--sidebar)); }
.main { background: #fff; }
.detail-head .kicker span::before { content: "/"; margin-right: 8px; color: var(--faint); }
@media (max-width: 1200px) { .grid-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) {
  .shell { background: #fff; }
  .sidebar { box-shadow: none; }
  body.nav-open .sidebar { box-shadow: 0 0 60px rgba(7,4,28,.3); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .main { overflow-x: clip; }
}

/* ---------- v1.1 ---------- */
.password-field { position: relative; }
.password-field .input { padding-right: 48px; }
.password-field .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--muted); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.password-field .eye:hover { color: var(--violet); background: var(--violet-50); }
.password-field .eye[aria-pressed="true"] { color: var(--violet); }
.partner-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.partner-badges img { height: 30px; width: auto; }
.auth-partners { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; }
.auth-partners .partner-badges { gap: 10px 12px; }
.auth-partners .partner-badges img { height: 28px; background: #fff; border-radius: 8px; padding: 4px 8px; box-sizing: content-box; }
/* Calendar */
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.lg::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg.task::before { background: var(--violet); }
.lg.project::before { background: #fff; border: 2px solid var(--violet); }
.lg.google::before { background: #1A73E8; }
.cal { overflow: hidden; }
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--rail); border-bottom: 1px solid var(--line); }
.cal-head div { padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-day { min-height: 118px; padding: 8px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.out { background: #FCFCFE; }
.cal-day.out .num { color: var(--faint); }
.cal-day .num { font-size: 13px; font-weight: 600; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .num { background: var(--violet); color: #fff; }
.ev { display: block; font-size: 12px; line-height: 1.35; padding: 3px 7px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.ev b { font-weight: 700; }
.ev small { color: var(--muted); font-size: 12px; }
.ev-task { background: var(--violet-50); color: var(--violet-deep); border-left: 3px solid var(--violet); }
.ev-task.done { opacity: .5; text-decoration: line-through; }
.ev-project { background: #fff; border: 1px solid var(--violet-200); color: var(--violet); font-weight: 600; }
.ev-google { background: #E8F0FE; color: #174EA6; border-left: 3px solid #1A73E8; }
a.ev:hover { filter: brightness(.97); }
.more { font-size: 12px; color: var(--muted); padding-left: 4px; }
.agenda { display: none; margin-top: 20px; }
.agenda-day { padding: 12px 0; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; }
.agenda-day:last-child { border-bottom: 0; }
.agenda-day .ev { white-space: normal; font-size: 14px; padding: 8px 10px; }
@media (max-width: 760px) { .cal { display: none; } .agenda { display: block; } .legend { margin-top: -8px; } }
/* Inbox */
.search-box { position: relative; }
.search-box .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search-box .input { padding-left: 38px; height: 42px; border-radius: 999px; min-width: 240px; }
.mail-list { overflow: hidden; }
.mail-row { display: flex; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.mail-row:last-child { border-bottom: 0; }
.mail-row:hover { background: #FCFBFF; color: var(--ink); }
.mail-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mail-top .who { font-weight: 500; min-width: 0; }
.mail-top .when { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.mail-row .subj { font-size: 14px; color: var(--muted); }
.mail-row.unread .who, .mail-row.unread .subj { font-weight: 700; color: var(--ink); }
.mail-row.unread { box-shadow: inset 3px 0 0 var(--violet); }
.mail-meta { display: flex; gap: 14px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.mail-body { padding: 20px 24px 24px; }
.mail-frame { width: 100%; border: 0; min-height: 300px; }
.steps { padding-left: 20px; line-height: 1.9; }
code { background: var(--rail); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 13px; }
/* Accounting */
.month-hero { --fill: var(--violet-hi); --tab-w: 30%; background: linear-gradient(180deg, var(--violet-hi), var(--violet) 75%); color: #fff; padding: 28px 30px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; margin-bottom: 20px; filter: drop-shadow(0 14px 22px rgba(55,26,201,.28)); }
.hero-label { display: block; color: rgba(255,255,255,.8); font-size: 15px; }
.hero-num { display: block; font-size: clamp(38px, 5vw, 56px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 6px 0 16px; }
.hero-progress { height: 8px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; max-width: 460px; }
.hero-progress span { display: block; height: 100%; background: #fff; border-radius: inherit; }
.hero-sub { display: block; margin-top: 10px; color: rgba(255,255,255,.85); font-size: 14px; }
.hero-side { display: grid; gap: 14px; align-content: center; }
.hero-side div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 14px 18px; }
.hero-side span { display: block; font-size: 13px; color: rgba(255,255,255,.75); }
.hero-side strong { display: block; font-size: 26px; font-weight: 700; margin-top: 2px; }
.hero-side strong.neg { color: #FFC9CF; }
.hero-side small { color: rgba(255,255,255,.65); font-size: 12px; }
.stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { padding: 16px 20px; display: block; color: var(--ink); }
.stat span { display: block; font-size: 13px; color: var(--muted); }
.stat strong { display: block; font-size: 22px; font-weight: 700; margin-top: 4px; }
a.stat:hover { border-color: var(--violet-200); color: var(--ink); }
.stat.alert strong { color: var(--danger); }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: var(--line-2); }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--f-body); }
.chart .axis.cur { fill: var(--violet); font-weight: 700; }
.chart .bar-inv { fill: var(--violet-200); }
.chart .bar-col { fill: var(--violet); }
.chart .net-line { fill: none; stroke: #0E8A63; stroke-width: 2.5; stroke-linejoin: round; }
.chart .net-dot { fill: #fff; stroke: #0E8A63; stroke-width: 2; }
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.chart-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.l-inv::before { background: var(--violet-200); } .l-col::before { background: var(--violet); } .l-net::before { background: #0E8A63; border-radius: 50% !important; }
.hbar { padding: 8px 0; }
.hbar .progress { margin: 8px 0 4px; }
@media (max-width: 1100px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .month-hero { grid-template-columns: 1fr; } }

/* ---------- v1.2 accounting ---------- */
.acc-tabs { margin-top: -8px; }
.tabs .n-alert { background: var(--violet); color: #fff; }
.attention { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 24px; }
.att { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r); border: 1px solid; color: var(--ink); }
.att .icon { flex: none; }
.att span { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.att strong { display: block; font-size: 15px; color: var(--ink); }
.att:hover { color: var(--ink); filter: brightness(.98); }
.att-violet { background: var(--violet-50); border-color: var(--violet-100); } .att-violet .icon { color: var(--violet); }
.att-danger { background: var(--danger-bg); border-color: #F2CDD2; } .att-danger .icon { color: var(--danger); }
.att-warn { background: var(--warn-bg); border-color: #F3DDC2; } .att-warn .icon { color: var(--warn); }

.month-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 22px; }
.month-card { padding: 20px 22px 18px; display: flex; flex-direction: column; }
.month-card.is-current { --fill: var(--violet-hi); background: linear-gradient(180deg, var(--violet-hi), var(--violet) 78%); color: #fff; filter: drop-shadow(0 14px 22px rgba(55,26,201,.28)); }
.mc-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.mc-head strong { color: var(--ink); font-size: 14px; }
.is-current .mc-head, .is-current .mc-head strong { color: rgba(255,255,255,.85); }
.mc-main { margin: 14px 0 12px; }
.mc-label { display: block; font-size: 13px; color: var(--muted); }
.mc-num { display: block; font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.mc-note { display: block; font-size: 12px; margin-top: 4px; color: var(--violet); }
.is-current .mc-label { color: rgba(255,255,255,.78); }
.is-current .mc-note { color: #DCD5FF; }
.mc-rows { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.is-current .mc-rows { border-color: rgba(255,255,255,.18); }
.mc-rows dt { color: var(--ink-2); } .mc-rows dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.is-current .mc-rows dt { color: rgba(255,255,255,.8); }
.mc-rows .strong { font-weight: 600; color: var(--ink); }
.is-current .mc-rows .strong { color: #fff; }
.mc-rows .total { font-weight: 700; font-size: 16px; padding-top: 6px; border-top: 1px solid var(--line-2); color: var(--success); }
.mc-rows dt.total { color: var(--ink); }
.mc-rows .total.neg { color: var(--danger); }
.is-current .mc-rows .total { border-color: rgba(255,255,255,.18); color: #fff; }
.mc-foot { margin-top: auto; padding-top: 14px; font-size: 12px; color: var(--muted); display: grid; gap: 4px; }
.mc-foot .progress { margin: 0 0 4px; }
.is-current .mc-foot { color: rgba(255,255,255,.8); }
.is-current .mc-foot strong { color: #fff; }
.is-current .progress { background: rgba(255,255,255,.22); } .is-current .progress span { background: #fff; }

.mrr-strip { display: flex; align-items: center; gap: 20px; padding: 16px 22px; color: var(--ink); flex-wrap: wrap; }
.mrr-strip:hover { border-color: var(--violet-200); color: var(--ink); }
.mrr-strip strong { display: block; font-size: 20px; }
.mrr-bits { display: flex; gap: 8px 22px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); margin-left: auto; }
.mrr-strip > .icon { color: var(--muted); }

.pl-table td, .pl-table th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pl-table tr.cur td { background: var(--violet-50); }
.pl-table tfoot td { font-weight: 700; border-top: 2px solid var(--line); padding: 14px 16px; }
.pos { color: var(--success); } .neg { color: var(--danger); }
.chart .bar-exp { fill: #F3C9CF; }
.l-exp::before { background: #F3C9CF; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters .select, .filters .input { height: 42px; width: auto; min-width: 140px; }
.filters .search-box .input { min-width: 180px; }
.bulk-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 12px; background: var(--violet-50); border: 1px solid var(--violet-100); border-radius: var(--r); }
.bulk-bar .btn { margin-left: auto; }
tr.is-off td, .list-item.is-off { opacity: .55; }
.stack-sm { display: grid; gap: 8px; }
.form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.lines { display: grid; gap: 8px; margin-top: 4px; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) 70px 120px 110px 38px; gap: 8px; align-items: center; }
.lines-2 .line { grid-template-columns: minmax(0, 1fr) 130px 38px; }
.line-head { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.line-amount { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; padding-right: 4px; }
.inv-total { font-size: 15px; color: var(--ink-2); }
.inv-total strong { font-size: 20px; color: var(--ink); margin-left: 8px; }

.public-inv { max-width: 860px; margin: 0 auto; padding: 32px 18px 48px; }
.pi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.pi-top img { height: 30px; width: auto; }
.pi-card { padding: 28px; }
.kicker-v { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--violet); text-transform: uppercase; }
.pi-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; background: var(--rail); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 22px 0; }
.pi-meta span { display: block; font-size: 12px; color: var(--muted); }
.pi-meta strong { font-size: 15px; }
.pi-card tfoot td { font-weight: 700; font-size: 16px; border-top: 2px solid var(--line); }
.pi-foot { text-align: center; color: var(--muted); font-size: 13px; margin: 22px 0 14px; }
.pi-badges .partner-badges { justify-content: center; }
.pi-badges img { height: 24px; }

@media (max-width: 1100px) { .month-cards { grid-template-columns: 1fr; } .form-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .line { grid-template-columns: minmax(0, 1fr) 56px 92px 34px; }
  .line .line-amount, .line-head span:nth-child(4) { display: none; }
  .line-head { grid-template-columns: minmax(0, 1fr) 56px 92px 34px; }
  .pi-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-num { font-size: 30px; }
  .form-grid-4 { grid-template-columns: 1fr; }
  .filters { width: 100%; } .filters > * { flex: 1 1 140px; }
}

/* ---------- v1.3 finance + CRM ---------- */
.month-nav { display: flex; align-items: center; gap: 6px; }
.month-nav form { margin: 0; }
.month-nav .input { height: 36px; width: 160px; padding: 0 10px; }
.stat .delta { display: block; font-size: 12px; font-weight: 600; margin-top: 4px; }
.stat .delta.up { color: var(--success); } .stat .delta.down { color: var(--danger); }
.stat-hero { background: var(--violet-50); border-color: var(--violet-100); }
.stat-hero strong { color: var(--violet); font-size: 26px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.l-plan::before { background: var(--violet-100); border: 1px dashed var(--violet-200); }

.trend { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: end; height: 190px; }
.trend-sm { height: 140px; margin-top: 8px; }
.trend-col { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; height: 100%; text-align: center; color: var(--ink-2); border-radius: 10px; padding: 6px 2px; }
a.trend-col:hover { background: var(--rail); color: var(--ink); }
.trend-col.on { background: var(--violet-50); }
.trend-val { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.trend-bar { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-start; width: 62%; max-width: 44px; margin: 0 auto; }
.trend-bar i { display: block; width: 100%; background: var(--violet); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.trend-bar i.plan { background: var(--violet-100); border: 1px dashed var(--violet-200); border-radius: 0 0 2px 2px; min-height: 0; }
.trend-bar i + i.plan, .trend-bar i.plan:last-child { border-radius: 6px 6px 0 0; }
.trend-lbl { font-size: 12px; color: var(--muted); }
.trend-col.on .trend-lbl { color: var(--violet); font-weight: 700; }

.cat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cat-strip div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; position: relative; overflow: hidden; }
.cat-strip span { display: block; font-size: 12px; color: var(--muted); }
.cat-strip strong { font-size: 17px; }
.cat-strip i { position: absolute; left: 0; bottom: 0; height: 3px; background: #F3C9CF; }
.progress-out span { background: #E9A3AD; }

.seg { display: flex; gap: 4px; background: var(--rail); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.seg label { flex: 1; text-align: center; padding: 8px 10px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: #fff; color: var(--violet); box-shadow: 0 1px 3px rgba(22,19,46,.08); }
.seg-wrap { flex-wrap: wrap; }
.seg-wrap label { flex: 1 1 30%; }

.list-btn { width: 100%; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.list-btn:hover { background: var(--rail); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: right; word-break: break-word; }
.menu-panel { right: 0; left: auto; min-width: 240px; padding: 6px; }
.menu-panel a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; }
.menu-panel a:hover { background: var(--rail); }
.dropdown.open .menu-panel { display: block; }
.small-head { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.forecast-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.forecast-head div { background: var(--rail); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.forecast-head span { display: block; font-size: 13px; color: var(--muted); }
.forecast-head strong { display: block; font-size: 24px; margin: 2px 0; }
.forecast-head small { color: var(--muted); font-size: 12px; }

/* CRM */
.search-inline .input { height: 42px; width: 200px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; scroll-snap-type: x proximity; }
.board-col { background: var(--rail); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; scroll-snap-align: start; min-height: 200px; }
.board-col header { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 10px; }
.board-col.col-won { background: var(--success-bg); border-color: #CBEBDD; }
.board-list { display: grid; gap: 8px; min-height: 80px; border-radius: 10px; transition: background .15s; }
.board-list.over { background: var(--violet-50); outline: 2px dashed var(--violet-200); }
.board-empty { font-size: 13px; color: var(--faint); text-align: center; padding: 22px 8px; }
.lead-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(22,19,46,.04); border-left: 3px solid var(--line); cursor: grab; }
.lead-card { border-left: 4px solid var(--ch, var(--violet)); }
.lead-card.ch-partner { background: linear-gradient(90deg, color-mix(in srgb, var(--ch) 6%, #fff), #fff 45%); }
.lead-card.dragging { opacity: .5; }
.lead-main { display: grid; gap: 3px; padding: 10px 12px 6px; color: var(--ink); min-width: 0; }
.lead-main:hover { color: var(--ink); }
.lead-val { font-size: 13px; font-weight: 700; color: var(--violet); }
.lead-next { display: flex; gap: 4px; align-items: center; font-size: 12px; }
.lead-next .icon { width: 13px; height: 13px; flex: none; }
.lead-actions { display: flex; gap: 2px; align-items: center; padding: 0 6px 6px; }
.lead-actions .icon-btn { width: 32px; height: 32px; }
.owner-dot { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; background: var(--violet-100); color: var(--violet); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.due.ok { color: var(--success); }
.fu-list { padding-top: 4px; }
.fu { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.fu:last-of-type { border-bottom: 0; }
.fu-main { display: grid; gap: 3px; color: var(--ink); min-width: 0; }
.fu-main .title { font-weight: 600; }
.fu-main .sub { font-size: 13px; color: var(--muted); }
.fu-actions { display: flex; gap: 6px; flex: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
button.chip { cursor: pointer; font: inherit; font-size: 13px; }
button.chip.on { background: var(--violet); border-color: var(--violet); color: #fff; }
.chips-check .chip { cursor: pointer; }
.chips-check .chip input { accent-color: var(--violet); }
.chips-check .chip:has(input:checked) { background: var(--violet-50); border-color: var(--violet-200); color: var(--violet); }
.next-edit { background: var(--violet-50); border: 1px solid var(--violet-100); border-radius: var(--r); padding: 14px 16px 2px; margin: 16px 0; }
.stage-track { display: flex; gap: 4px; margin-bottom: 22px; overflow-x: auto; }
.stage-track form { flex: 1 1 0; margin: 0; min-width: 96px; }
.stage-track button { width: 100%; height: 40px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%); padding: 0 14px; white-space: nowrap; }
.stage-track > :first-child button { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); border-radius: 10px 0 0 10px; }
.stage-track button.past { background: var(--violet-50); color: var(--violet); }
.stage-track button.on { background: var(--violet); color: #fff; border-color: var(--violet); }
.stage-track button.won.on { background: var(--success); border-color: var(--success); }
.stage-track > button.lost { flex: 0 0 80px; height: 40px; border: 1px solid var(--line); background: #fff; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; border-radius: 0 10px 10px 0; cursor: pointer; }
.stage-track > button.lost.on { background: var(--danger); color: #fff; border-color: var(--danger); }
.next-box { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--violet-100); background: var(--violet-50); }
.next-box > .icon { color: var(--violet); width: 22px; height: 22px; flex: none; }
.next-box strong { display: block; font-size: 16px; }
.next-box .small { display: block; }
.next-box.due-danger { background: var(--danger-bg); border-color: #F2CDD2; } .next-box.due-danger > .icon { color: var(--danger); }
.acts { list-style: none; margin: 0; padding-top: 4px; }
.tl { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.tl:last-child { border-bottom: 0; }
.tl-ic { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--violet-50); color: var(--violet); display: grid; place-items: center; }
.tl-ic .icon { width: 16px; height: 16px; }
.tl-stage .tl-ic, .tl-created .tl-ic { background: var(--rail); color: var(--muted); }
.tl-body { margin-top: 4px; color: var(--ink-2); }
.tl-body p { margin: 0 0 4px; }
.note-box { margin-top: 14px; background: var(--rail); border-radius: 10px; padding: 10px 12px; color: var(--ink-2); }
.lg.lead::before { background: #F0B45B; }
.ev-lead { background: #FDF3E3; color: #8A4B05; border-left: 3px solid #F0B45B; }

@media (max-width: 1100px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .forecast-head { grid-template-columns: 1fr; }
  .trend { height: 160px; gap: 4px; }
  .trend-val { font-size: 9px; }
  .month-nav .input { width: 140px; }
  .board { grid-auto-columns: 82%; }
  .fu { flex-wrap: wrap; }
  .fu-actions { width: 100%; justify-content: flex-end; }
  .search-inline, .search-inline .input { width: 100%; }
  .page-head .tools .pills { order: 3; }
}
.card > ul.card-body { padding: 4px 20px 10px; margin: 0; list-style: none; }
@media (max-width: 640px) { .card > ul.card-body { padding: 2px 16px 8px; } }

/* ---------- v1.4 invoices ---------- */
.inv-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.inv-tile { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ic label" "ic num" "ic sub"; column-gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.inv-tile:hover { color: var(--ink); border-color: var(--violet-200); transform: translateY(-1px); }
.inv-tile.on { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-50), var(--shadow); }
.it-ic { grid-area: ic; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; align-self: center; }
.it-ic .icon { width: 20px; height: 20px; }
.it-label { grid-area: label; font-size: 13px; color: var(--muted); }
.inv-tile strong { grid-area: num; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.it-sub { grid-area: sub; font-size: 12px; color: var(--muted); }
.tone-violet .it-ic { background: var(--violet-50); color: var(--violet); }
.tone-warn .it-ic { background: var(--warn-bg); color: var(--warn); }
.tone-danger .it-ic { background: var(--danger-bg); color: var(--danger); }
.tone-danger strong { color: var(--danger); }
.tone-success .it-ic { background: var(--success-bg); color: var(--success); }
.inv-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.seg-nav { display: inline-flex; background: var(--rail); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; overflow-x: auto; max-width: 100%; }
.seg-nav a { padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.seg-nav a.on { background: #fff; color: var(--violet); box-shadow: 0 1px 3px rgba(22,19,46,.08); }
.inv-group { margin-bottom: 22px; }
.inv-group > header { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 8px; gap: 10px; }
.inv-group > header h2 { font-size: 16px; }
.inv-group > header span { font-size: 13px; color: var(--muted); }
.inv-group > header strong { color: var(--ink); }
.inv-list { padding: 4px 0; overflow: hidden; }
.inv-row { display: grid; grid-template-columns: auto minmax(0, 1.6fr) minmax(0, 1fr) auto 128px auto; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); position: relative; }
.inv-row:has(> input) { grid-template-columns: auto auto minmax(0, 1.6fr) minmax(0, 1fr) auto 128px auto; }
.inv-row:last-child { border-bottom: 0; }
.inv-row:hover { background: #FCFBFF; }
.inv-row::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line); }
.inv-row.st-draft::before, .inv-row.st-scheduled::before { background: var(--violet-200); }
.inv-row.st-sent::before { background: #F0B45B; } .inv-row.st-partial::before { background: var(--violet); }
.inv-row.st-overdue::before { background: var(--danger); } .inv-row.st-paid::before { background: var(--success); }
.inv-row.is-upcoming { opacity: .9; } .inv-row.is-upcoming::before { background: var(--violet-100); }
.ir-av { width: 38px; height: 38px; border-radius: 12px; background: var(--violet-50); color: var(--violet); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.ir-main { display: grid; min-width: 0; color: var(--ink); }
.ir-main:hover { color: var(--violet); }
.ir-main strong { font-size: 15px; }
.ir-main span, .ir-meta span { font-size: 13px; color: var(--muted); }
.ir-meta { display: grid; min-width: 0; font-size: 13px; }
.ir-meta .icon { width: 13px; height: 13px; vertical-align: -2px; color: var(--violet); }
.ir-amt { display: grid; text-align: right; font-variant-numeric: tabular-nums; }
.ir-amt strong { font-size: 15px; } .ir-amt span { font-size: 12px; color: var(--muted); }
.ir-status { justify-self: start; }
.ir-act { display: flex; gap: 6px; align-items: center; justify-content: flex-end; min-width: 92px; }

.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.back-link .icon { width: 15px; height: 15px; }
.h-sub { font-size: .6em; color: var(--muted); font-weight: 500; }
.inv-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; margin: 0 0 22px; counter-reset: s; }
.inv-steps li { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding-right: 16px; }
.inv-steps li::after { content: ""; position: absolute; left: 34px; right: 12px; top: 13px; height: 2px; background: var(--line); }
.inv-steps li:last-child::after { display: none; }
.inv-steps li.done::after { background: var(--violet-200); }
.inv-steps .dot { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; position: relative; z-index: 1; align-self: start; }
.inv-steps li.done .dot { background: var(--violet); border-color: var(--violet); color: #fff; }
.inv-steps .dot .icon { width: 14px; height: 14px; }
.inv-steps strong { font-size: 13px; background: var(--bg, #fff); position: relative; z-index: 1; justify-self: start; padding-right: 8px; margin-top: 3px; }
.inv-steps small { font-size: 12px; color: var(--muted); }

.inv-editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.inv-doc { padding: 28px 30px; box-shadow: inset 0 4px 0 var(--violet), var(--shadow); }
.doc-top { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.doc-to label { display: flex; justify-content: space-between; }
.select-lg { height: 50px; font-size: 17px; font-weight: 600; }
.doc-dates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 18px 0 6px; }
.doc-lines { padding: 14px 0 6px; }
.doc-totals { margin-left: auto; max-width: 320px; padding: 14px 0 6px; }
.dt-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
.dt-total { border-top: 2px solid var(--ink); padding-top: 12px; font-size: 16px; font-weight: 600; }
.dt-total strong { font-size: 24px; }
.doc-more { margin: 18px 0 4px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; }
.doc-more summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.doc-more[open] { padding-bottom: 14px; }
.doc-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; }
.inv-side { position: sticky; top: calc(var(--topbar) + 16px); }
.side-panel h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 12px; }
.side-panel h3 .icon { width: 17px; height: 17px; color: var(--violet); }
.side-panel .card-head h3 { margin: 0; }
.next-dates { list-style: none; margin: 12px 0 0; padding: 0; font-size: 13px; }
.next-dates li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px dashed var(--line); }
.pay-bar { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.pay-bar span { display: block; height: 100%; background: var(--success); border-radius: inherit; }

@media (max-width: 1100px) {
  .inv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inv-editor { grid-template-columns: 1fr; }
  .inv-side { position: static; }
  .inv-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .inv-row .ir-meta, .inv-row .ir-status { display: none; }
  .inv-row:has(> input) { grid-template-columns: auto auto minmax(0, 1fr) auto auto; }
}
@media (max-width: 640px) {
  .inv-tile { padding: 12px 14px; column-gap: 10px; }
  .inv-tile strong { font-size: 18px; }
  .it-ic { width: 32px; height: 32px; }
  .inv-row { padding: 12px 14px; gap: 10px; }
  .ir-av { display: none; }
  .ir-act { min-width: 0; }
  .inv-doc { padding: 20px 16px; }
  .doc-top, .doc-dates { grid-template-columns: 1fr 1fr; }
  .doc-to { grid-column: 1 / -1; }
  .inv-steps { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .inv-steps li::after { display: none; }
  .inv-toolbar .filters { width: 100%; }
}
.inv-group.is-later .inv-list { opacity: .75; }

/* v1.4 overview */
.acc-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; padding: 28px 30px; border-radius: var(--r-lg); color: #fff; background: radial-gradient(120% 140% at 100% 0%, #5B3FF5 0%, var(--violet) 45%, var(--violet-deep) 100%); box-shadow: 0 18px 40px -22px rgba(55,26,201,.7); margin-bottom: 22px; position: relative; overflow: hidden; }
.acc-hero::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.06); }
.ah-label { font-size: 14px; color: rgba(255,255,255,.8); }
.ah-num { display: block; font-size: clamp(40px, 5vw, 60px); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin: 6px 0 16px; }
.ah-num.neg { color: #FFC9CF; }
.ah-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-chips span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: rgba(255,255,255,.85); }
.ah-chips b { color: #fff; font-weight: 700; margin-left: 4px; }
.ah-side { display: grid; gap: 12px; position: relative; z-index: 1; }
.ah-side > * { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 16px; padding: 14px 18px; color: #fff; display: block; }
.ah-side a:hover { background: rgba(255,255,255,.16); color: #fff; }
.ah-side span { display: block; font-size: 13px; color: rgba(255,255,255,.78); }
.ah-side strong { display: block; font-size: 26px; font-weight: 700; margin: 2px 0 6px; }
.ah-side small { font-size: 12px; color: rgba(255,255,255,.7); }
.ah-bar { height: 6px; background: rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.ah-bar i { display: block; height: 100%; background: #fff; border-radius: inherit; }
.acc-top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; margin-bottom: 28px; }
.act-list { list-style: none; margin: 0; padding: 4px 12px 10px; }
.act-list a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; color: var(--ink); }
.act-list a:hover { background: var(--rail); color: var(--ink); }
.act-list > li + li { border-top: 1px solid var(--line-2); }
.al-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.al-ic .icon { width: 18px; height: 18px; }
.al-ic.tone-violet { background: var(--violet-50); color: var(--violet); } .al-ic.tone-warn { background: var(--warn-bg); color: var(--warn); } .al-ic.tone-danger { background: var(--danger-bg); color: var(--danger); }
.al-txt { display: grid; min-width: 0; flex: 1; }
.al-txt strong { font-size: 14px; } .al-txt small { font-size: 12px; color: var(--muted); }
.al-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.act-list a > .icon { color: var(--faint); width: 16px; height: 16px; }
.rec-big { display: block; background: var(--violet-50); border: 1px solid var(--violet-100); border-radius: var(--r); padding: 16px 18px; color: var(--ink); }
.rec-big:hover { color: var(--ink); border-color: var(--violet-200); }
.rec-big span, .rec-big > small { display: block; font-size: 13px; color: var(--muted); }
.rec-big strong { display: block; font-size: 28px; color: var(--violet); margin: 2px 0; }
.rec-big strong small { font-size: 13px; color: var(--muted); font-weight: 500; }
.sec-title { font-size: 16px; margin: 0 0 12px; color: var(--ink-2); }
@media (max-width: 1100px) { .acc-hero, .acc-top { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .acc-hero { padding: 22px 20px; } }

/* ---------- v1.4 growth ---------- */
.health { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px 3px 4px; white-space: nowrap; }
.health b { display: inline-grid; place-items: center; min-width: 26px; height: 20px; border-radius: 999px; color: #fff; font-size: 11px; }
.health.h-success { background: var(--success-bg); color: var(--success); } .health.h-success b { background: var(--success); }
.health.h-warn { background: var(--warn-bg); color: var(--warn); } .health.h-warn b { background: var(--warn); }
.health.h-danger { background: var(--danger-bg); color: var(--danger); } .health.h-danger b { background: var(--danger); }
.health-bar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.health-bar span { display: block; height: 100%; border-radius: inherit; }
.health-bar.h-success span { background: var(--success); } .health-bar.h-warn span { background: #F0B45B; } .health-bar.h-danger span { background: var(--danger); }
.health-why { list-style: none; margin: 12px 0 0; padding: 0; font-size: 13px; display: grid; gap: 6px; }
.health-why li { display: flex; gap: 8px; color: var(--ink-2); }
.health-why span { min-width: 28px; font-weight: 700; } .health-why .neg span { color: var(--danger); } .health-why .pos span { color: var(--success); }
.wa-menu .menu-panel { min-width: 300px; max-width: 340px; }
.wa-menu .menu-panel a { display: grid; }
.wa-menu .menu-panel small { color: var(--muted); font-size: 12px; }
.comm-box { background: var(--rail); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 4px; margin: 6px 0 14px; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.wa-tpl { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.wa-tpl:last-child { border-bottom: 0; margin-bottom: 12px; }
.sig-img { width: 100%; max-height: 120px; object-fit: contain; background: var(--rail); border-radius: 10px; }
.prop-items { display: grid; gap: 10px; }
.prop-item { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: grid; gap: 8px; background: var(--rail); }
.pi-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 120px 38px; gap: 8px; }

/* Proposal (client page) */
body.bare { background: var(--rail); }
.prop-page { max-width: 880px; margin: 0 auto; padding: 0 0 40px; }
.prop-cover { background: radial-gradient(120% 140% at 100% 0%, #5B3FF5 0%, var(--violet) 45%, var(--violet-deep) 100%); color: #fff; padding: 40px 44px 46px; border-radius: 0 0 28px 28px; }
.prop-logo { height: 30px; width: auto; margin-bottom: 46px; }
.prop-kicker { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.75); }
.prop-cover h1 { color: #fff; font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 8px 0 10px; }
.prop-cover p { margin: 0; color: rgba(255,255,255,.8); }
.prop-body { padding: 0 20px; display: grid; gap: 28px; margin-top: 28px; }
.prop-done { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: var(--r); }
.prop-done.ok { background: var(--success-bg); color: var(--success); } .prop-done.no { background: var(--danger-bg); color: var(--danger); }
.prop-done strong { display: block; color: var(--ink); } .prop-done span { font-size: 14px; color: var(--ink-2); }
.prop-intro { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.prop-hi { font-weight: 600; color: var(--ink); }
.prop-h { font-size: 20px; margin: 0 0 14px; }
.prop-services { display: grid; gap: 12px; }
.prop-svc { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow); }
.ps-n { font-weight: 700; color: var(--violet); font-size: 14px; background: var(--violet-50); border-radius: 10px; padding: 6px 9px; }
.prop-svc h3 { font-size: 17px; margin: 2px 0 6px; } .prop-svc p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.ps-price { text-align: right; white-space: nowrap; } .ps-price strong { display: block; font-size: 18px; } .ps-price span { font-size: 12px; color: var(--muted); }
.prop-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.prop-sum div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.prop-sum div:first-child { background: var(--violet); color: #fff; border-color: var(--violet); }
.prop-sum span { display: block; font-size: 13px; opacity: .8; } .prop-sum strong { display: block; font-size: 30px; margin: 2px 0; } .prop-sum small { font-size: 12px; opacity: .75; }
.prop-terms { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.prop-sign, .prop-signed { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-lift); }
.prop-signed { display: grid; gap: 6px; justify-items: start; } .prop-signed img { max-height: 110px; } .prop-signed span, .prop-signed small { font-size: 13px; color: var(--muted); }
.sig-pad { position: relative; border: 2px dashed var(--violet-200); border-radius: var(--r); background: #FCFBFF; height: 170px; }
.sig-pad.err { border-color: var(--danger); background: var(--danger-bg); }
.sig-pad canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.sig-pad .link-btn { position: absolute; right: 12px; bottom: 8px; }
.btn-lg { height: 52px; font-size: 16px; }
.prop-decline { margin-top: 14px; font-size: 14px; color: var(--muted); } .prop-decline summary { cursor: pointer; }
.prop-foot { text-align: center; padding: 30px 20px 0; color: var(--muted); font-size: 12px; }
.prop-foot .partner-badges { justify-content: center; margin-bottom: 10px; } .prop-foot img { height: 24px; }

/* Client report */
.report { max-width: 980px; }
.report-cover { background: radial-gradient(120% 140% at 100% 0%, #5B3FF5 0%, var(--violet) 45%, var(--violet-deep) 100%); color: #fff; border-radius: var(--r-lg); padding: 28px 30px; margin-bottom: 20px; }
.report-cover span { font-size: 13px; color: rgba(255,255,255,.8); } .report-cover h1 { color: #fff; font-size: 38px; margin: 4px 0 6px; }
.rkpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 20px; }
.rkpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); }
.rkpi span { display: block; font-size: 13px; color: var(--muted); } .rkpi strong { display: block; font-size: 26px; margin: 4px 0; color: var(--ink); }
.rkpi em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); } .rkpi em.up { color: var(--success); } .rkpi em.down { color: var(--danger); }
.report-sec { margin-bottom: 20px; } .report-sec h2 { margin-bottom: 10px; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; } .tick-list .icon { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: 2px; }
.tick-list.next .icon { color: var(--violet); }
.kpi-edit { display: grid; gap: 8px; }
.kpi-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 1fr 38px; gap: 8px; align-items: center; }
.kpi-head { font-size: 12px; font-weight: 600; color: var(--muted); }
@media (max-width: 640px) {
  .pi-row { grid-template-columns: 1fr 1fr; } .pi-row input:first-child { grid-column: 1 / -1; }
  .prop-cover { padding: 28px 22px 34px; } .prop-svc { flex-wrap: wrap; } .ps-price { text-align: left; }
  .kpi-row { grid-template-columns: 1.3fr 1fr 1fr 32px; }
}
body.bare { display: block; text-align: left; }
.prop-page, .prop-page * { text-align: left; }
.prop-page { width: 100%; }
.prop-page .ps-price, .prop-page .ps-price * { text-align: right; }
.prop-page .prop-foot, .prop-page .prop-foot * { text-align: center; }
.prop-sum { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (max-width: 640px) { .prop-page .ps-price, .prop-page .ps-price * { text-align: left; } }
body.bare { padding: 0; min-height: 0; place-items: initial; }

.push-guide { background: var(--warn-bg); border: 1px solid #F3DDC2; border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; font-size: 14px; }
.push-guide ol { margin: 8px 0 0; padding-left: 20px; } .push-guide li { margin: 4px 0; }
.push-ok { color: var(--success); font-weight: 600; }

/* ---------- v1.5 planner ---------- */
.cdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.select-sm { height: 36px; padding-top: 0; padding-bottom: 0; }
.input-lg { height: 50px; font-size: 17px; font-weight: 600; }
.quick-add { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px; box-shadow: var(--shadow); }
.quick-add:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-50); }
.qa-ic { color: var(--violet); display: grid; } .qa-ic .icon { width: 20px; height: 20px; }
.qa-input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15px; height: 40px; background: transparent; min-width: 0; color: var(--ink); }
.qa-hint { font-size: 12px; color: var(--muted); margin: 8px 4px 18px; line-height: 1.6; }
.qa-hint b { color: var(--ink-2); font-weight: 600; background: var(--rail); border-radius: 5px; padding: 1px 5px; }

.planner { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.pl-side { display: grid; gap: 16px; position: sticky; top: calc(var(--topbar) + 12px); }
.pl-side h3 { font-size: 14px; margin: 0 0 6px; display: flex; justify-content: space-between; }
.pl-late { display: grid; gap: 8px; background: var(--warn-bg); border: 1px solid #F3DDC2; border-radius: var(--r); padding: 12px 14px; font-size: 13px; }
.pl-late .icon { width: 15px; height: 15px; vertical-align: -3px; color: var(--warn); }
.pl-inbox, .pl-legend { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.pl-inbox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 46vh; overflow: auto; }
.pl-chip { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: grab; background: #fff; touch-action: none; }
.pl-chip:hover { border-color: var(--c); }
.pl-chip > i { width: 4px; align-self: stretch; border-radius: 4px; background: var(--c); flex: none; }
.pl-chip span { display: grid; min-width: 0; } .pl-chip strong { font-size: 13px; font-weight: 600; } .pl-chip small { font-size: 11px; color: var(--muted); }
.lg-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; position: relative; }
.lg-row i { width: 10px; height: 10px; border-radius: 3px; } .lg-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.lg-row em { grid-column: 2 / -1; height: 3px; border-radius: 3px; opacity: .35; }

.pl-cal { padding: 0; overflow: hidden; }
.pl-days, .pl-allday { display: grid; grid-template-columns: 56px repeat(var(--days), minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.pl-dayhead { display: grid; justify-items: center; padding: 10px 4px 8px; color: var(--ink); border-left: 1px solid var(--line-2); }
.pl-dayhead span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pl-dayhead strong { font-size: 22px; line-height: 1.2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.pl-dayhead.is-today span { color: var(--violet); } .pl-dayhead.is-today strong { background: var(--violet); color: #fff; }
.pl-dayhead small { font-size: 11px; color: var(--muted); min-height: 14px; }
.pl-dayhead:hover { background: var(--rail); color: var(--ink); }
.pl-gutter { display: grid; align-items: center; justify-items: end; padding-right: 8px; font-size: 11px; }
.pl-allday { min-height: 34px; }
.pl-adcol { border-left: 1px solid var(--line-2); padding: 4px; display: grid; gap: 3px; align-content: start; }
.pl-adcol.drop { background: var(--violet-50); }
.pl-ad { border: 0; text-align: left; font: inherit; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--ink); border-left: 3px solid var(--c); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; touch-action: none; }
.pl-ad.is-done { opacity: .5; text-decoration: line-through; }
.pl-ad.is-gcal { background: var(--rail); border-left-color: #9AA0A6; color: var(--ink-2); cursor: default; }
.pl-scroll { height: calc(100vh - 330px); min-height: 460px; overflow-y: auto; position: relative; }
.pl-grid { display: grid; grid-template-columns: 56px repeat(var(--days), minmax(0, 1fr)); position: relative;
  background-image: repeating-linear-gradient(to bottom, var(--line-2) 0, var(--line-2) 1px, transparent 1px, transparent 48px); }
.pl-hours { position: relative; }
.pl-hours span { position: absolute; right: 8px; transform: translateY(-7px); font-size: 11px; color: var(--muted); white-space: nowrap; }
.pl-hours span:first-child { transform: none; }
.pl-col { position: relative; border-left: 1px solid var(--line-2); cursor: copy; }
.pl-col.is-today { background: rgba(55, 26, 201, .025); }
.pl-col.drop { background: var(--violet-50); }
.pl-ev { position: absolute; border-radius: 8px; padding: 4px 8px 4px 26px; background: var(--c); color: var(--ink, #fff); overflow: hidden; cursor: pointer; display: grid; align-content: start; gap: 1px; box-shadow: 0 1px 2px rgba(22,19,46,.12); touch-action: none; user-select: none; z-index: 2; border: 1px solid rgba(255,255,255,.6); }
.pl-ev:hover { z-index: 5; box-shadow: 0 6px 16px -6px rgba(22,19,46,.4); }
.pl-ev .pl-t { font-size: 12.5px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.pl-ev small { font-size: 11px; opacity: .88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-ev.is-short { padding-top: 1px; padding-bottom: 1px; grid-auto-flow: column; justify-content: start; gap: 6px; align-items: center; }
.pl-ev.is-short .pl-t { -webkit-line-clamp: 1; } .pl-ev.is-short small { display: none; }
.pl-ev.pr-urgent { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--danger); }
.pl-ev.is-done { opacity: .5; } .pl-ev.is-done .pl-t { text-decoration: line-through; }
.pl-ev.is-gcal { background: repeating-linear-gradient(135deg, #F1F3F4, #F1F3F4 6px, #E8EAED 6px, #E8EAED 12px); color: #3C4043; left: 0; right: 30%; padding-left: 8px; cursor: default; z-index: 1; border-color: #DADCE0; }
.pl-ev.is-dragging { opacity: .35; }
.pl-check { position: absolute; left: 5px; top: 5px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; display: grid; place-items: center; padding: 0; cursor: pointer; opacity: .85; }
.pl-check .icon { width: 10px; height: 10px; opacity: 0; }
.pl-ev.is-short .pl-check { top: 50%; transform: translateY(-50%); }
.is-done .pl-check { background: currentColor; } .is-done .pl-check .icon { opacity: 1; color: var(--c); }
.pl-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; cursor: ns-resize; }
.pl-now { position: absolute; left: -1px; right: 0; height: 2px; background: #EA4335; z-index: 6; pointer-events: none; }
.pl-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #EA4335; }
.pl-ghost { position: fixed; z-index: 1000; pointer-events: none; opacity: .9; transform: rotate(-1.5deg); height: auto !important; max-height: 70px; box-shadow: 0 12px 30px -8px rgba(22,19,46,.45); }

/* Today agenda */
.ag-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.ag-hero strong { display: block; font-size: 17px; } .ag-hero small { color: var(--muted); font-size: 13px; }
.ag-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; background: conic-gradient(var(--violet) calc(var(--p) * 1%), var(--violet-50) 0); }
.ag-ring span { width: 50px; height: 50px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ag-list { list-style: none; margin: 0; padding: 4px 12px 10px; }
.ag-item { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 12px; }
.ag-item + .ag-item { border-top: 1px solid var(--line-2); }
.ag-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--c); background: #fff; display: grid; place-items: center; flex: none; cursor: pointer; padding: 0; color: #fff; }
.ag-check .icon { width: 14px; height: 14px; opacity: 0; }
.ag-item.is-done .ag-check { background: var(--c); } .ag-item.is-done .ag-check .icon { opacity: 1; }
.ag-item.is-done .ag-txt strong { text-decoration: line-through; color: var(--muted); }
.ag-main { flex: 1; display: flex; gap: 12px; align-items: center; background: none; border: 0; font: inherit; text-align: left; color: inherit; cursor: pointer; min-width: 0; padding: 4px 0; }
.ag-time { width: 52px; flex: none; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.ag-time small { font-size: 11px; color: var(--muted); margin-left: 2px; font-weight: 600; }
.ag-txt { display: grid; min-width: 0; } .ag-txt strong { font-size: 15px; font-weight: 600; }
.ag-txt small { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.ag-txt small i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; }
.ag-item.is-late .ag-txt small::after { content: ""; }
.ag-item.is-gcal .ag-cal { border-color: #DADCE0; color: #5F6368; } .ag-item.is-gcal .ag-cal .icon { opacity: 1; color: #5F6368; }
.ag-now { position: relative; height: 0; border-top: 2px solid #EA4335; margin: 10px 0; list-style: none; }
.ag-now span { position: absolute; left: 0; top: -11px; background: #EA4335; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ag-late { border-color: #F3DDC2; }

/* Insights */
.hb-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) 80px; gap: 12px; align-items: center; padding: 8px 0; font-size: 14px; }
.hb-name { display: flex; gap: 8px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-name i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.hb-bar { display: flex; height: 14px; background: var(--rail); border-radius: 6px; overflow: hidden; }
.hb-bar b { display: block; height: 100%; } .hb-bar s { display: block; height: 100%; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 30%, #fff), color-mix(in srgb, var(--c) 30%, #fff) 4px, #fff 4px, #fff 8px); }
.hb-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; } .hb-val small { color: var(--muted); font-weight: 500; }
.steps-list { padding-left: 20px; margin: 0 0 14px; font-size: 14px; color: var(--ink-2); } .steps-list li { margin: 6px 0; }

@media (max-width: 1100px) { .planner { grid-template-columns: 1fr; } .pl-side { position: static; grid-template-columns: 1fr 1fr; } .pl-late { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .pl-side { grid-template-columns: 1fr; } .pl-legend { display: none; }
  .pl-inbox ul { max-height: 180px; }
  .pl-scroll { height: auto; max-height: none; overflow: visible; }
  .planner-head .tools { width: 100%; justify-content: space-between; }
  .qa-hint { display: none; }
  .hb-row { grid-template-columns: minmax(0, 1fr) 70px; } .hb-bar { grid-column: 1 / -1; grid-row: 2; }
}
.pl-ev { padding: 4px 22px 4px 7px; }
.pl-check { left: auto; right: 4px; top: 4px; }
.pl-ev.is-short { padding-top: 1px; padding-bottom: 1px; }
/* Client board */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.ccard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); display: grid; gap: 14px; padding: 16px 18px; border-top: 4px solid var(--c); }
.ccard header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cc-name { display: flex; gap: 10px; align-items: center; color: var(--ink); min-width: 0; }
.cc-name:hover { color: var(--violet); }
.cc-av { width: 38px; height: 38px; border-radius: 12px; background: var(--c); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.cc-name strong { display: block; font-size: 15px; } .cc-name small { font-size: 12px; color: var(--muted); }
.cc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.cc-stats div { background: var(--rail); border-radius: 10px; padding: 8px 10px; }
.cc-stats span { display: block; font-size: 11px; color: var(--muted); } .cc-stats strong { font-size: 17px; } .cc-stats small { display: block; font-size: 11px; color: var(--muted); }
.cc-stats small.neg { color: var(--danger); font-weight: 600; }
.cc-next a { display: flex; gap: 6px; align-items: baseline; color: var(--ink); font-size: 13px; min-width: 0; }
.cc-next strong { font-weight: 600; min-width: 0; flex: 1; }
.ccard footer { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatches label { cursor: pointer; } .swatches input { position: absolute; opacity: 0; }
.swatches i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); }
.swatches input:checked + i { box-shadow: 0 0 0 2px var(--ink); }
.sw-auto { background: var(--rail); }
@media (max-width: 760px) { .quick-add { margin-bottom: 16px; } }

/* v1.6 CRM: channels (UStartup vs partners), brief, parked leads */
.ch-tag { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .01em; color: var(--ch); background: color-mix(in srgb, var(--ch) 10%, #fff); border: 1px solid color-mix(in srgb, var(--ch) 28%, #fff); white-space: nowrap; vertical-align: middle; }
.ch-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ch); }
h1 .ch-tag { font-size: 12px; height: 24px; padding: 0 10px; }
.lead-top { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.prio-dot { margin-left: auto; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.prio-dot.hot { color: var(--danger); } .prio-dot.cold { color: var(--faint); }
.board-bar { margin: 0 0 14px; gap: 12px; flex-wrap: wrap; }
.ch-pills { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ch-pills a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.ch-pills a i { width: 9px; height: 9px; border-radius: 50%; background: var(--ch); }
.ch-pills a span { font-size: 11px; color: var(--muted); background: var(--rail); border-radius: 999px; padding: 1px 7px; }
.ch-pills a.active { border-color: var(--ch, var(--violet)); color: var(--ch, var(--violet)); box-shadow: inset 0 0 0 1px var(--ch, var(--violet)); }
.board-col.col-onboarded { background: var(--success-bg); border-color: #CBEBDD; }
.stage-track button.past { background: color-mix(in srgb, var(--ch, var(--violet)) 9%, #fff); color: var(--ch, var(--violet)); }
.stage-track button.on { background: var(--ch, var(--violet)); border-color: var(--ch, var(--violet)); }
.stage-track form { flex: 1 0 auto; min-width: 104px; }
.stage-track > button.hold { margin-left: 8px; border-radius: 10px 0 0 10px; }
.stage-track > button.hold { flex: 0 0 92px; height: 40px; border: 1px solid var(--line); background: #fff; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.stage-track > button.hold.on { background: var(--ink-2); color: #fff; border-color: var(--ink-2); }
.decision.parked { background: var(--rail); border: 1px solid var(--line); }
.brief-card { border-top: 3px solid var(--ch, var(--violet)); }
.brief-card h2 { margin: 0; }
.brief-body { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.brief-body p { margin: 0 0 8px; }
.brief-line { white-space: normal; }
tr.ch-row td:first-child { box-shadow: inset 3px 0 0 var(--ch); }
@supports not (color: color-mix(in srgb, red 10%, white)) { .ch-tag { background: #fff; } .lead-card.ch-partner { background: #fff; } }
