/* ============ Pastel theme ============ */
:root {
  --bg: #f5f6f8; --bg2: #fafbfc; --card: #ffffff; --ink: #1b2230; --ink2: #475467; --muted: #8a94a6; --line: #e6e9ef;
  --brand: #1f2937; --brand2: #94a3b8; --brand-ink: #1f2937;
  /* neutral (not a status colour) */
  --lav: #f1f3f6; --lav-ink: #334155; --lav-line: #e2e6ec; --grey: #f1f3f6; --grey-ink: #64748b;
  /* the 4 status colours */
  --rose: #fde7e7; --rose-ink: #d42d2d; --rose-line: #f7c3c3;      /* red    = delayed */
  --butter: #fff4cc; --butter-ink: #a36a00; --butter-line: #fbe08a; /* yellow = clock running */
  --mint: #e3f6ea; --mint-ink: #15803d; --mint-line: #bfe9cf;       /* green  = good / done */
  --sky: #e5efff; --sky-ink: #1f5fd6; --sky-line: #c4d8fb;          /* blue   = lead / customer */
  --peach: #e5efff; --peach-ink: #1f5fd6; --peach-line: #c4d8fb; --teal: #e3f6ea; --teal-ink: #15803d; --teal-line: #bfe9cf;
  --red: #e5484d; --yellow: #f5b301; --green: #22c55e; --blue: #3b82f6;
  --r: 16px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 36px rgba(16, 24, 40, .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 14px/1.5 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; color: var(--ink);
  background: radial-gradient(1200px 600px at 10% -10%, #eef1f6 0, transparent 60%), radial-gradient(900px 500px at 100% 0, #f3f5f8 0, transparent 55%), var(--bg); min-height: 100vh; }
a { color: var(--brand-ink); text-decoration: none; }
h1 { font-size: 26px; margin: 0; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: 19px; margin: 0; font-weight: 700; } h3 { font-size: 17px; margin: 0; font-weight: 700; }
h4 { font-size: 14px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-weight: 700; }
small, .small { font-size: 12.5px; } .muted { color: var(--muted); } .mono { font-family: Consolas, monospace; font-size: 11.5px; }
.t-rose { color: var(--rose-ink); } .grow { flex: 1; min-width: 0; } .nowrap { white-space: nowrap; } .center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 700; color: var(--muted); }
.ic { width: 18px; height: 18px; flex-shrink: 0; } .ic.xs { width: 13px; height: 13px; vertical-align: -2px; }

/* ============ Top bar ============ */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; padding: 10px 28px;
  background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); white-space: nowrap; }
.brand b { display: block; font-size: 16px; } .brand small { display: block; color: var(--muted); font-size: 11px; margin-top: -2px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #94a3b8, #334155 60%, #1f2937); box-shadow: 0 6px 18px rgba(100, 116, 139, .45); }
.brand-mark.big { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 8px; } .brand-mark.big .ic { width: 26px; height: 26px; }
.spacer { flex: 1; }
.tabs { flex: 1; display: flex; gap: 4px; position: relative; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.tab { display: flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 12px; color: var(--ink2); font-weight: 600; transition: all .25s var(--ease); white-space: nowrap; }
.tab:hover { background: var(--lav); color: var(--brand-ink); }
.tab.active { background: linear-gradient(135deg, var(--lav), #eef1f6); color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--lav-line); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink2); transition: all .2s var(--ease); }
.icon-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--brand-ink); }
.icon-btn.sm { width: 26px; height: 26px; border-radius: 8px; } .icon-btn.sm .ic { width: 13px; height: 13px; }
.badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--rose-ink); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; animation: pop .4s var(--ease); }
.me { position: relative; cursor: pointer; outline: none; }
.me-menu { position: absolute; right: 0; top: 50px; width: 240px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; border: 1px solid var(--line);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: all .2s var(--ease); }
.me:focus-within .me-menu, .me:hover .me-menu { opacity: 1; transform: none; pointer-events: auto; }
.me-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; } .me-head b, .me-head small { display: block; } .me-head small { color: var(--muted); }
.me-menu a, .me-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border-radius: 9px; color: var(--ink2); background: none; border: 0; font: inherit; cursor: pointer; }
.me-menu a:hover, .me-menu button:hover { background: var(--lav); color: var(--brand-ink); } .me-menu form { margin: 0; }

/* ============ Avatars, pills, tags ============ */
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 12.5px; color: #334155; flex-shrink: 0; box-shadow: 0 0 0 2px #fff; }
.av.sm { width: 26px; height: 26px; font-size: 10.5px; } .av.xs { width: 20px; height: 20px; font-size: 9px; vertical-align: middle; } .av.lg { width: 44px; height: 44px; font-size: 15px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; margin-left: 4px; }
.pill-REMODEL { background: var(--sky); color: var(--sky-ink); } .pill-ADU { background: #f1f3f6; color: #334155; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--grey); color: var(--grey-ink); }
.tag.mint { background: var(--mint); color: var(--mint-ink); } .tag.rose { background: var(--rose); color: var(--rose-ink); } .tag.sky { background: var(--sky); color: var(--sky-ink); } .tag.butter { background: var(--butter); color: var(--butter-ink); }

/* ============ Buttons & forms ============ */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 9px 16px; border-radius: 12px; cursor: pointer; font: inherit; font-weight: 600; white-space: nowrap; transition: all .2s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: linear-gradient(135deg, #1f2937, #94a3b8); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(31, 41, 55, .35); }
.btn.primary:hover { box-shadow: 0 10px 24px rgba(31, 41, 55, .45); }
.btn.glow { position: relative; overflow: hidden; }
.btn.glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-100%); animation: shine 4s infinite; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; } .btn.block { width: 100%; justify-content: center; padding: 12px; }
.btn.rose { background: var(--rose); color: var(--rose-ink); border-color: var(--rose-line); } .btn.mint { background: var(--mint); color: var(--mint-ink); border-color: var(--mint-line); }
.btn.sky { background: var(--sky); color: var(--sky-ink); border-color: var(--sky-line); }
.btn:disabled { opacity: .6; cursor: progress; }
input, select, textarea { font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: #ffffff; width: 100%; color: var(--ink); transition: border .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand2); box-shadow: 0 0 0 4px rgba(100, 116, 139, .18); background: #fff; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand); }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 12.5px; color: var(--ink2); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid .full { grid-column: 1 / -1; } .form-grid .span2 { grid-column: span 2; }
.fsec { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand-ink); padding-top: 10px; border-top: 1px dashed var(--line); margin-top: 4px; }
.stack { display: flex; flex-direction: column; gap: 10px; } .actions { display: flex; justify-content: flex-end; gap: 8px; }
form.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; } form.inline input, form.inline select { width: auto; }
form.inline .grow, form.inline.grow { flex: 1; min-width: 200px; } .inline-mini { display: inline; margin-left: auto; }
.drop { flex-direction: row !important; align-items: center; gap: 10px !important; border: 1.5px dashed var(--lav-line); background: #f8fafc; padding: 12px 14px; border-radius: 12px; cursor: pointer; color: var(--lav-ink); transition: all .2s; }
.drop:hover { background: var(--lav); border-color: var(--brand2); }
.drop input { border: 0; background: none; padding: 0; width: auto; flex: 1; font-size: 12.5px; }
.seg-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.seg-toggle label { flex-direction: row; } .seg-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.seg-toggle span { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: all .2s var(--ease); font-weight: 600; }
.seg-toggle.small span { padding: 7px 12px; font-size: 12.5px; }
.seg-toggle input:checked + span { background: var(--lav); border-color: var(--brand2); color: var(--brand-ink); box-shadow: 0 4px 12px rgba(100, 116, 139, .2); }
.pick { display: flex; gap: 8px; flex-wrap: wrap; }
.pick-opt { flex-direction: row; } .pick-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pick-opt span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; border: 1px solid var(--line); background: #fff; cursor: pointer; transition: all .2s var(--ease); font-weight: 600; color: var(--ink); }
.pick-opt input:checked + span { background: var(--lav); border-color: var(--brand2); box-shadow: 0 0 0 3px rgba(100, 116, 139, .2); }

/* ============ Main, hero, tiles ============ */
main { max-width: 1440px; margin: 0 auto; padding: 26px 28px 80px; }
.view { display: none; } .view.show { display: block; animation: fadeUp .45s var(--ease); }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.hero p { margin: 6px 0 0; }
.wave { display: inline-block; animation: wave 2.4s ease-in-out 1; transform-origin: 70% 70%; }
.tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { text-align: left; border: 1px solid transparent; border-radius: var(--r); padding: 14px 16px; cursor: pointer; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  font: inherit; transition: all .25s var(--ease); animation: fadeUp .5s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile.active { box-shadow: 0 0 0 2px currentColor inset, var(--shadow); }
.tile-ic { grid-row: span 2; width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, .7); display: grid; place-items: center; }
.tile-n { font-size: 26px; font-weight: 800; line-height: 1; } .tile-l { font-size: 12.5px; font-weight: 600; opacity: .85; }
.tone-lav { background: var(--lav); color: var(--lav-ink); } .tone-rose { background: var(--rose); color: var(--rose-ink); } .tone-butter { background: var(--butter); color: var(--butter-ink); }
.tone-mint { background: var(--mint); color: var(--mint-ink); } .tone-sky { background: var(--sky); color: var(--sky-ink); } .tone-peach { background: var(--peach); color: var(--peach-ink); } .tone-teal { background: var(--teal); color: var(--teal-ink); }

/* ============ Toolbar ============ */
.toolbar { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; position: sticky; top: 61px; z-index: 20; padding: 10px 0; background: linear-gradient(var(--bg) 70%, transparent); }
.searchbox { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; min-width: 300px; flex: 0 1 380px; box-shadow: var(--shadow); color: var(--muted); }
.searchbox input { border: 0; background: none; box-shadow: none; padding: 11px 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink2); font: inherit; font-weight: 600; font-size: 12.5px; cursor: pointer; transition: all .2s var(--ease); }
.chip-btn .ic { width: 14px; height: 14px; } .chip-btn:hover { border-color: var(--brand2); color: var(--brand-ink); }
.chip-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }

/* ============ Project rows ============ */
.list { display: flex; flex-direction: column; gap: 10px; }
.row { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; overflow: hidden;
  animation: fadeUp .45s var(--ease) both; animation-delay: calc(var(--i) * 35ms); transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s; }
.row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent, var(--line)); }
.row:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.row.open { border-color: var(--lav-line); box-shadow: var(--shadow-lg); transform: none; }
.row.hide { display: none; }
.row-head { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 46px minmax(220px, 1.4fr) minmax(220px, 1.2fr) 150px 210px 24px; gap: 16px; align-items: center; padding: 14px 18px 14px 22px; cursor: pointer; }
.row-head:focus-visible { outline: 2px solid var(--brand2); outline-offset: -2px; border-radius: var(--r); }
.row-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tone-bg, var(--lav)); color: var(--tone-ink, var(--lav-ink)); transition: transform .3s var(--ease); }
.row:hover .row-ic { transform: rotate(-6deg) scale(1.05); }
.row-main { min-width: 0; } .row-title { display: block; font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-prog { min-width: 0; } .row-stage { display: block; font-size: 12px; color: var(--ink2); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-holder { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--ink2); }
.row-chev { color: var(--muted); transition: transform .35s var(--ease); } .row.open .row-chev { transform: rotate(180deg); color: var(--brand); }
.prog { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; }
.seg { height: 7px; border-radius: 99px; background: #eceff3; transition: background .3s; }
.seg-done { background: #86e0ad; } .seg-late { background: #f5a3a3; } .seg-na { background: repeating-linear-gradient(45deg, #eceff3 0 3px, #f5f7fa 3px 6px); }
.seg-lost { background: #cbd5e1; }
[class*="seg-cur-"] { animation: breathe 1.8s ease-in-out infinite; }
.seg-cur-delayed { background: var(--rose-ink); } .seg-cur-soon { background: #f5b83d; } .seg-cur-ok { background: #34c47c; } .seg-cur-waiting { background: #5ab0ef; }
.seg-cur-customer, .seg-cur-input { background: #5ab0ef; } .seg-cur-lead { background: #5ab0ef; }

/* status badge */
.status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 12px; font-weight: 700; font-size: 12.5px; white-space: nowrap; justify-self: start; }
.status .ic { width: 15px; height: 15px; } .status.big { padding: 9px 14px; font-size: 13.5px; }
.st-delayed { background: var(--rose); color: var(--rose-ink); } .st-soon { background: var(--butter); color: var(--butter-ink); } .st-ok { background: var(--mint); color: var(--mint-ink); }
.st-waiting { background: var(--sky); color: var(--sky-ink); } .st-customer, .st-input { background: var(--lav); color: var(--lav-ink); } .st-lead { background: var(--peach); color: var(--peach-ink); }
.st-done { background: var(--teal); color: var(--teal-ink); } .st-lost { background: var(--grey); color: var(--grey-ink); }
.row.cat-delayed .status { animation: pulse 2s infinite; }
.cat-delayed { --accent: #e5484d; --tone-bg: var(--rose); --tone-ink: var(--rose-ink); } .cat-soon { --accent: #fbbf24; --tone-bg: var(--butter); --tone-ink: var(--butter-ink); }
.cat-ok { --accent: #4ade80; --tone-bg: var(--mint); --tone-ink: var(--mint-ink); } .cat-waiting { --accent: #60a5fa; --tone-bg: var(--sky); --tone-ink: var(--sky-ink); }
.cat-customer, .cat-input { --accent: #94a3b8; --tone-bg: var(--lav); --tone-ink: var(--lav-ink); } .cat-lead { --accent: #60a5fa; --tone-bg: var(--peach); --tone-ink: var(--peach-ink); }
.cat-done { --accent: #4ade80; --tone-bg: var(--teal); --tone-ink: var(--teal-ink); } .cat-lost { --accent: #cbd5e1; --tone-bg: var(--grey); --tone-ink: var(--grey-ink); }
.row.cat-lost { opacity: .75; }

/* expandable body */
.row-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.row.open .row-body { grid-template-rows: 1fr; }
.row-inner { overflow: hidden; min-height: 0; }
.row.open .row-inner { border-top: 1px dashed var(--line); }
.skeleton { padding: 20px 22px; display: grid; gap: 10px; }
.skeleton i { height: 14px; border-radius: 8px; background: linear-gradient(90deg, #eceff3 25%, #f8fafc 37%, #eceff3 63%); background-size: 400% 100%; animation: shimmer 1.2s infinite; }
.skeleton i:nth-child(2) { width: 70%; } .skeleton i:nth-child(3) { width: 45%; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); background: #fff; border-radius: var(--r); border: 1px dashed var(--lav-line); }
.empty .ic { width: 40px; height: 40px; color: var(--brand2); } .empty h3 { color: var(--ink); margin: 10px 0 4px; }

/* ============ Panel (details) ============ */
.panel { padding: 18px 22px 22px; background: linear-gradient(180deg, #f8fafc, #fff); }
.panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.p-main, .p-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card.narrow { max-width: 460px; margin: 40px auto; }
.journey { list-style: none; display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; padding: 0; margin: 0 0 18px; position: relative; }
.j { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; position: relative; }
.j:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 3px; border-radius: 3px; background: #eceff3; }
.j-done:not(:last-child)::after, .j-late:not(:last-child)::after { background: linear-gradient(90deg, #86e0ad, #bbf7d0); }
.j-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #eceff3; color: #cbd5e1; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); transition: transform .3s var(--ease); }
.j-dot .ic { width: 17px; height: 17px; } .j:hover .j-dot { transform: scale(1.08); }
.j-done .j-dot { background: var(--mint); color: var(--mint-ink); box-shadow: 0 0 0 1px var(--mint-line); }
.j-late .j-dot { background: var(--rose); color: var(--rose-ink); box-shadow: 0 0 0 1px var(--rose-line); }
.j-cur .j-dot { background: var(--lav); color: var(--lav-ink); box-shadow: 0 0 0 4px rgba(100, 116, 139, .25); animation: ring 2s infinite; }
.jc-delayed .j-dot { background: var(--rose); color: var(--rose-ink); box-shadow: 0 0 0 4px rgba(229, 72, 77, .25); }
.jc-ok .j-dot { background: var(--mint); color: var(--mint-ink); } .jc-soon .j-dot { background: var(--butter); color: var(--butter-ink); }
.jc-waiting .j-dot { background: var(--sky); color: var(--sky-ink); } .jc-lead .j-dot { background: var(--peach); color: var(--peach-ink); }
.j-na { opacity: .4; } .j-lost .j-dot { background: var(--grey); }
.j-txt { display: flex; flex-direction: column; font-size: 11.5px; line-height: 1.3; } .j-txt b { font-size: 11.5px; } .j-txt small { font-size: 10.5px; color: var(--muted); }

.current { border-radius: var(--r); padding: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.current::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent, var(--brand2)); }
.cc-delayed { --accent: linear-gradient(90deg, #e5484d, #f5a3a3); background: linear-gradient(180deg, #fff5f5, #fff 40%); }
.cc-soon { --accent: linear-gradient(90deg, #fbbf24, #fde68a); background: linear-gradient(180deg, #fffbeb, #fff 40%); }
.cc-ok { --accent: linear-gradient(90deg, #22c55e, #bbf0cf); background: linear-gradient(180deg, #f2fdf6, #fff 40%); }
.cc-waiting { --accent: linear-gradient(90deg, #60a5fa, #c4d8fb); background: linear-gradient(180deg, #f3f9ff, #fff 40%); }
.cc-customer, .cc-input { --accent: linear-gradient(90deg, #94a3b8, #c4d8fb); background: linear-gradient(180deg, #f8fafc, #fff 40%); }
.cc-lead { --accent: linear-gradient(90deg, #1f2937, #c4d8fb); background: linear-gradient(180deg, #f3f8ff, #fff 40%); }
.cc-done { --accent: linear-gradient(90deg, #22c55e, #bbf0cf); background: linear-gradient(180deg, #f2fdf6, #fff 40%); } .cc-lost { --accent: #cbd5e1; }
.cur-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; flex-wrap: wrap; }
.cur-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--lav); color: var(--lav-ink); flex-shrink: 0; }
.cur-ic .ic { width: 24px; height: 24px; } .cur-ic.big { width: 64px; height: 64px; margin: 0 auto 10px; }
.cc-delayed .cur-ic { background: var(--rose); color: var(--rose-ink); } .cc-ok .cur-ic { background: var(--mint); color: var(--mint-ink); } .cc-soon .cur-ic { background: var(--butter); color: var(--butter-ink); }
.cc-waiting .cur-ic { background: var(--sky); color: var(--sky-ink); } .cc-lead .cur-ic { background: var(--peach); color: var(--peach-ink); } .cc-done .cur-ic { background: var(--teal); color: var(--teal-ink); }
.cur-head h3 { margin: 2px 0 4px; }
.cur-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cur-grid > div { background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.cur-grid small { display: block; color: var(--muted); font-weight: 600; } .cur-grid b { font-size: 13.5px; }
.meter { height: 8px; border-radius: 99px; background: #eceff3; margin: 14px 0 4px; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, #bbf0cf, #22c55e); animation: grow 1s var(--ease) both; }
.cc-soon .meter i { background: linear-gradient(90deg, #fde68a, #f59e0b); } .meter.over i { background: linear-gradient(90deg, #f5a3a3, #e5484d); }
.cur-actions { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; padding: 12px; background: rgba(255, 255, 255, .7); border-radius: 12px; border: 1px dashed var(--line); }
.cur-actions form.inline > .ic { color: var(--muted); }
.submit-box > summary { list-style: none; cursor: pointer; } .submit-box > summary::-webkit-details-marker { display: none; }
.submit-box[open] > summary { margin-bottom: 14px; }
.submit-box form { padding: 16px; background: #f8fafc; border: 1px solid var(--lav-line); border-radius: 14px; animation: fadeUp .35s var(--ease); }
.note-ok { display: flex; align-items: center; gap: 8px; background: var(--teal); color: var(--teal-ink); padding: 10px 12px; border-radius: 10px; font-weight: 600; margin: 0; }

.callout { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-top: 12px; font-size: 13px; }
.callout.sm { padding: 8px 12px; margin: 8px 0; font-size: 12.5px; } .callout > .ic { margin-top: 1px; }
.callout.rose { background: var(--rose); color: #8f1d3a; } .callout.sky { background: var(--sky); color: #134e79; }
.callout.mint { background: var(--mint); color: #0f5e3a; } .callout.butter { background: var(--butter); color: #7a5112; }

.h-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: #fff; transition: box-shadow .2s; }
.h-item:hover { box-shadow: var(--shadow); }
.h-item > summary, .h-na { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; }
.h-item > summary::-webkit-details-marker { display: none; }
.h-item summary small { display: block; color: var(--muted); }
.h-dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--mint); color: var(--mint-ink); flex-shrink: 0; }
.h-dot .ic { width: 15px; height: 15px; } .h-late .h-dot { background: var(--rose); color: var(--rose-ink); } .h-na .h-dot, .h-sup .h-dot { background: var(--grey); color: var(--grey-ink); }
.h-sup { opacity: .6; } .h-na { opacity: .55; cursor: default; }
.h-lock { width: 14px; height: 14px; color: #cbd5e1; }
.h-body { padding: 0 14px 14px 56px; animation: fadeUp .3s var(--ease); }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 6px 12px; margin: 8px 0; } .kv dt { color: var(--muted); } .kv dd { margin: 0; white-space: pre-wrap; }
.note { background: var(--butter); border-radius: 10px; padding: 8px 12px; margin: 8px 0; white-space: pre-wrap; display: flex; gap: 8px; align-items: flex-start; }

.contact .c-name { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; } .contact .c-name b, .contact .c-name small { display: block; } .contact .c-name small { color: var(--muted); }
.c-links { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.c-links a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: #f8fafc; color: var(--ink2); font-weight: 500; transition: all .2s; word-break: break-word; }
.c-links a:hover { background: var(--lav); color: var(--brand-ink); transform: translateX(2px); }
.c-links .ic { width: 15px; height: 15px; color: var(--brand); }
.c-meta { display: flex; flex-wrap: wrap; gap: 6px; } .c-meta span { display: inline-flex; align-items: center; gap: 5px; background: var(--grey); padding: 4px 9px; border-radius: 99px; font-size: 12px; color: var(--ink2); }
.c-meta .ic { width: 13px; height: 13px; }
.scope { background: #f8fafc; border-radius: 10px; padding: 10px 12px; margin: 12px 0 0; white-space: pre-wrap; color: var(--ink2); border-left: 3px solid var(--lav-line); }
.edit { margin-top: 12px; } .edit > summary { list-style: none; } .edit > summary::-webkit-details-marker { display: none; } .edit[open] form { margin-top: 12px; grid-template-columns: 1fr 1fr; }
.edit .span2 { grid-column: 1 / -1; }
.convert { background: linear-gradient(180deg, #f2fdf6, #fff); border-color: var(--mint-line); }

.files { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #f8fafc; color: var(--ink); transition: all .2s; }
.file:hover { background: var(--lav); } .file b, .file small { display: block; } .file small { color: var(--muted); font-size: 11.5px; }
.file > .ic:first-child { color: var(--brand); } .file .dl { margin-left: auto; color: var(--muted); } .file span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; }
.dates, .waits, .log, .archive { list-style: none; padding: 0; margin: 0; }
.dates li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.dates li span { color: var(--muted); flex: 1; } .dates li.sup { opacity: .45; text-decoration: line-through; } .dates small { background: var(--butter); padding: 1px 6px; border-radius: 6px; }
.waits li, .log li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; } .waits small, .log small { display: block; color: var(--muted); }
.log { max-height: 300px; overflow: auto; } .log b { text-transform: capitalize; }
.archive li a { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; color: var(--ink2); } .archive li a:hover { background: var(--lav); }

.tl { list-style: none; padding: 0; margin: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 17px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl li { display: flex; gap: 12px; padding: 8px 0; position: relative; animation: fadeUp .35s var(--ease) both; }
.tl-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--peach); color: var(--peach-ink); display: grid; place-items: center; flex-shrink: 0; border: 3px solid #fff; z-index: 1; }
.tl-dot .ic { width: 15px; height: 15px; }
.tl-CALL .tl-dot { background: var(--mint); color: var(--mint-ink); } .tl-MEETING .tl-dot { background: var(--lav); color: var(--lav-ink); } .tl-EMAIL .tl-dot { background: var(--sky); color: var(--sky-ink); }
.tl-STATUS .tl-dot { background: var(--grey); color: var(--grey-ink); } .tl-STATUS .tl-body { color: var(--muted); font-style: italic; }
.tl-meta { font-size: 12px; color: var(--muted); } .tl-meta b { color: var(--ink2); text-transform: capitalize; } .tl-body { white-space: pre-wrap; margin: 2px 0 4px; }

.admin-box { background: linear-gradient(180deg, #fffbeb, #fff); border-color: var(--butter-line); }
.admin-box > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.admin-box > summary::-webkit-details-marker { display: none; }
.admin-forms { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

/* ============ Team ============ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); animation: fadeUp .5s var(--ease) both; animation-delay: calc(var(--i) * 70ms); transition: transform .25s var(--ease), box-shadow .25s; }
.person:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.p-head { display: flex; align-items: center; gap: 12px; } .p-head b, .p-head small { display: block; } .p-head small { color: var(--muted); } .p-head > div { flex: 1; }
.ring { --p: 0; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ring, #94a3b8) calc(var(--p) * 1%), #eceff3 0); animation: spin-in .9s var(--ease); }
.ring span { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.ring.tone-mint { --ring: #22c55e; background-color: transparent; color: var(--mint-ink); } .ring.tone-rose { --ring: #e5484d; color: var(--rose-ink); } .ring.tone-butter { --ring: #fbbf24; color: var(--butter-ink); } .ring.tone-lav { --ring: #94a3b8; color: var(--lav-ink); }
.ring[class*="tone-"] { background: conic-gradient(var(--ring) calc(var(--p) * 1%), #eceff3 0); }
.p-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; }
.p-stats > div { background: #f8fafc; border-radius: 12px; padding: 8px; text-align: center; } .p-stats b { display: block; font-size: 14px; } .p-stats small { color: var(--muted); font-size: 11px; }
.p-now { display: flex; flex-direction: column; gap: 6px; }
.mini { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; transition: transform .2s; } .mini:hover { transform: translateX(3px); }
.mini .ic { width: 15px; height: 15px; } .mini b { white-space: nowrap; }

/* ============ Settings / tables ============ */
.users { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.user-row { display: grid; grid-template-columns: 36px 1fr 1.4fr 110px auto auto auto 140px auto; gap: 8px; align-items: center; padding: 8px; border-radius: 12px; background: #f8fafc; }
.user-row.inactive { opacity: .55; } .user-row input, .user-row select { padding: 7px 10px; }
.add-user { padding-top: 12px; border-top: 1px dashed var(--line); }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } .tbl tr:hover td { background: #f8fafc; }
.clip { max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.report { overflow-x: auto; } .report h2 { font-size: 20px; } .report h3 { color: var(--brand-ink); margin-top: 22px; }
.report table { border-radius: 12px; overflow: hidden; }
.range label { flex-direction: row; align-items: center; gap: 6px; }

/* ============ Drawer, modal, toast ============ */
.drawer { position: fixed; inset: 0; z-index: 60; } .drawer[hidden] { display: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(30, 27, 58, .35); backdrop-filter: blur(3px); animation: fade .3s; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(720px, 100%); background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: slideIn .4s var(--ease); }
.drawer-head, .modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head small, .modal-head small { color: var(--muted); } .drawer-head > div, .modal-head > div { flex: 1; }
.drawer-body { padding: 20px 22px; overflow-y: auto; flex: 1; align-content: start; }
.drawer-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.mh-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--rose); color: var(--rose-ink); }
.mh-icon.peach { background: var(--peach); color: var(--peach-ink); }
.x { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 8px; display: grid; place-items: center; transition: all .2s; } .x:hover { background: var(--grey); color: var(--ink); }
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(30, 27, 58, .4); backdrop-filter: blur(4px); animation: fade .25s; }
.modal[hidden] { display: none; }
.modal-box { width: min(560px, 100%); background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; animation: popIn .4s var(--ease); max-height: 86vh; display: flex; flex-direction: column; }
.modal-head { background: linear-gradient(135deg, #fff5f5, #fffbeb); }
#alertList { padding: 10px 18px; overflow-y: auto; }
.alert-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; margin: 8px 0; color: var(--ink); transition: transform .2s var(--ease); animation: fadeUp .35s var(--ease) both; }
.alert-item:hover { transform: translateX(4px); } .alert-item b { display: block; } .alert-item small { color: var(--ink2); }
.alert-item .ai { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .7); flex-shrink: 0; }
.alert-overdue { background: var(--rose); } .alert-overdue .ai { color: var(--rose-ink); } .alert-soon { background: var(--butter); } .alert-soon .ai { color: var(--butter-ink); }
.alert-wait { background: var(--sky); } .alert-wait .ai { color: var(--sky-ink); }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: flex; align-items: center; gap: 10px; max-width: 460px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: toastIn .5s var(--ease); font-weight: 600; }
.toast-success { border-left: 5px solid #22c55e; } .toast-success > .ic { color: var(--mint-ink); }
.toast-error { border-left: 5px solid #e5484d; } .toast-error > .ic { color: var(--rose-ink); }
.toast.out { animation: toastOut .4s var(--ease) forwards; }

/* ============ Login ============ */
.login-wrap { min-height: 100vh; display: grid; place-items: center; position: relative; overflow: hidden; padding: 20px; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .7; animation: float 14s ease-in-out infinite; }
.b1 { width: 420px; height: 420px; background: #c4d8fb; top: -80px; left: -80px; } .b2 { width: 380px; height: 380px; background: #fde68a; bottom: -100px; right: -60px; animation-delay: -5s; }
.b3 { width: 300px; height: 300px; background: #c4d8fb; top: 40%; left: 55%; animation-delay: -9s; }
.login { position: relative; width: min(400px, 100%); background: rgba(255, 255, 255, .85); backdrop-filter: blur(16px); border-radius: 26px; padding: 34px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 14px; text-align: center; animation: popIn .6s var(--ease); }
.login label { text-align: left; }

/* ============ Lead wizard ============ */
.hidden { display: none !important; }
.wizard[data-type="REMODEL"] .only-ADU, .wizard[data-type="ADU"] .only-REMODEL { display: none; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding: 12px 22px; border-bottom: 1px solid var(--line); background: #f8fafc; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; color: var(--muted); cursor: pointer; font-size: 12.5px; transition: all .25s var(--ease); position: relative; }
.steps li span { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--grey); flex-shrink: 0; transition: all .25s; }
.steps li span .ic { width: 15px; height: 15px; }
.steps li.on { background: var(--lav); color: var(--brand-ink); } .steps li.on span { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(31, 41, 55, .25); }
.steps li.done { color: var(--mint-ink); } .steps li.done span { background: var(--mint); color: var(--mint-ink); }
.step { border: 0; padding: 0; margin: 0; min-width: 0; animation: fadeUp .35s var(--ease); }
.step .seg-toggle.full { margin-bottom: 4px; }
.lbl { display: block; font-weight: 600; font-size: 12.5px; color: var(--ink2); margin-bottom: 6px; }
.seg-toggle.multi span { padding: 6px 12px; } .seg-toggle.multi input:checked + span { background: var(--mint); border-color: #86e0ad; color: var(--mint-ink); box-shadow: none; }
.seg-toggle.multi input:checked + span::before { content: "✓ "; }
.phone { display: flex; gap: 6px; } .phone select { width: 112px; flex-shrink: 0; padding-right: 4px; }
input.ok { border-color: #86e0ad; background: #f6fff9; }
.sub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; padding: 14px; background: #f8fafc; border: 1px dashed var(--lav-line); border-radius: 14px; animation: fadeUp .3s var(--ease); }
.sub-grid .full { grid-column: 1 / -1; } .sub-grid .span2 { grid-column: span 2; }
.quick { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.chip-btn.xs { padding: 3px 9px; font-size: 11.5px; } .chip-btn.xs.active { background: var(--lav); color: var(--brand-ink); border-color: var(--brand2); }
.dupe { background: var(--butter); color: #7a5112; border-radius: 10px; padding: 8px 12px; font-size: 12.5px; animation: fadeUp .3s; } .dupe a { font-weight: 700; }
.edit-form { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; } .edit-form .form-grid { grid-template-columns: 1fr 1fr; }
.edit-form .form-grid .span2, .edit-form .form-grid .full { grid-column: 1 / -1; } .edit-form .fsec { margin: 4px 0 0; }

/* ============ Meetings ============ */
.meets { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.meet { display: flex; gap: 12px; padding: 10px; border-radius: 12px; background: #fafcff; border: 1px solid var(--sky-line); transition: box-shadow .2s; }
.meet:hover { box-shadow: var(--shadow); } .meet.past { background: #fff8f9; border-color: var(--rose-line); } .meet.closed { opacity: .7; background: #fbfbfd; border-color: var(--line); }
.m-date { width: 44px; height: 48px; border-radius: 11px; background: linear-gradient(180deg, var(--sky), #fff); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; color: var(--sky-ink); }
.m-date b { font-size: 18px; line-height: 1; } .m-date small { font-size: 10.5px; text-transform: uppercase; font-weight: 700; }
.m-title { font-weight: 700; font-size: 13.5px; } .m-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.note-in { color: var(--ink2); margin-top: 2px; }
.m-act > summary, .m-new > summary { list-style: none; cursor: pointer; display: inline-flex; } .m-act > summary::-webkit-details-marker, .m-new > summary::-webkit-details-marker { display: none; }
.link-btn { color: var(--brand-ink); font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.m-act form { margin-top: 8px; padding: 10px; border-radius: 10px; background: #fff; border: 1px dashed var(--line); animation: fadeUp .25s; }
.m-act .inline { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .inline-lbl { flex-direction: row !important; align-items: center; gap: 6px !important; }
.inline-lbl input { width: auto; }
.m-new[open] form { margin-top: 12px; padding: 14px; background: #f8fafc; border-radius: 12px; border: 1px dashed var(--lav-line); animation: fadeUp .3s; }
.agenda { display: flex; align-items: center; gap: 12px; margin: -6px 0 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; box-shadow: var(--shadow); }
.agenda-h { display: flex; align-items: center; gap: 6px; color: var(--sky-ink); white-space: nowrap; padding: 0 6px; font-size: 13px; }
.agenda-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding: 2px; }
.ag { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--sky); color: var(--ink); white-space: nowrap; transition: transform .2s var(--ease); flex-shrink: 0; }
.ag:hover { transform: translateY(-2px); } .ag.mine { background: linear-gradient(135deg, var(--lav), var(--sky)); box-shadow: inset 0 0 0 1px var(--lav-line); } .ag.past { background: var(--rose); }
.ag-d { display: flex; flex-direction: column; align-items: center; background: #fff; border-radius: 9px; padding: 3px 8px; } .ag-d b { font-size: 12px; } .ag-d small { font-size: 10.5px; color: var(--muted); }
.ag-t b { display: block; font-size: 12.5px; } .ag-t small { font-size: 11px; color: var(--ink2); }
.c-phone { display: flex; gap: 6px; align-items: center; } .c-phone a:first-child { flex: 1; }
.c-pref { color: var(--ink2); background: var(--lav); border-radius: 9px; padding: 6px 10px; margin-bottom: 10px; }
.c-meta span.cat { background: var(--mint); color: var(--mint-ink); font-weight: 600; }

/* ============ Team KPIs ============ */
.team-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.tk { border-radius: var(--r); padding: 12px 14px; animation: fadeUp .45s var(--ease) both; } .tk small { display: block; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.tk b { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; } .tk span { font-size: 12px; opacity: .85; }
.p-stats { grid-template-columns: repeat(4, 1fr); } .p-stats > div { padding: 7px 4px; }
.p-line { font-size: 12.5px; padding: 7px 10px; border-radius: 10px; background: #f8fafc; margin-bottom: 8px; color: var(--ink2); }
.p-line.warn { background: var(--butter); color: #7a5112; } .p-line.good { background: var(--mint); color: #0f5e3a; } .t-mint { color: var(--mint-ink); }
.trend { display: block; font-size: 11px; font-weight: 700; margin-top: 2px; } .trend.up { color: var(--mint-ink); } .trend.down { color: var(--rose-ink); } .trend.flat { color: var(--muted); }
.legend-note { margin-top: 14px; }

/* ============ Animations ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(10px); } }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(20px); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .35); } 50% { box-shadow: 0 0 0 6px rgba(229, 72, 77, 0); } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 3px rgba(100, 116, 139, .25); } 50% { box-shadow: 0 0 0 7px rgba(100, 116, 139, .08); } }
@keyframes grow { from { width: 0; } }
@keyframes spin-in { from { transform: rotate(-90deg) scale(.8); opacity: 0; } }
@keyframes shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(40px, 30px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ============ Responsive ============ */
@media (max-width: 1200px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .row-head { grid-template-columns: 42px minmax(0, 1fr) 190px 24px; }
  .row-prog, .row-holder { display: none; }
  .panel-grid { grid-template-columns: 1fr; }
  .user-row { grid-template-columns: 36px 1fr 1fr; }
}
@media (max-width: 760px) {
  .topbar { padding: 10px 14px; gap: 10px; flex-wrap: wrap; } .brand small, .top-actions .btn span { display: none; }
  .tabs { order: 3; flex-basis: 100%; justify-content: flex-start; } .tab span { display: none; }
  main { padding: 16px 14px 60px; } .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row-head { grid-template-columns: 38px minmax(0, 1fr) 24px; gap: 10px; padding: 12px 12px 12px 16px; }
  .row-head .status { grid-column: 2; grid-row: 2; } .row-ic { width: 38px; height: 38px; }
  .journey { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 14px; } .j::after { display: none; }
  .cur-grid { grid-template-columns: 1fr 1fr; } .form-grid { grid-template-columns: 1fr 1fr; }
  .searchbox { min-width: 0; flex: 1 1 100%; } .toolbar { top: 104px; } .kv { grid-template-columns: 1fr; }
  .panel { padding: 14px; }
}
@media (max-width: 1200px) { .team-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .team-kpis { grid-template-columns: 1fr 1fr; } .sub-grid { grid-template-columns: 1fr 1fr; }
  .steps { padding: 10px 12px; } .steps li b { display: none; } .steps li { justify-content: center; }
  .phone select { width: 92px; } .agenda { flex-direction: column; align-items: stretch; } .agenda-scroll { padding-bottom: 4px; }
}


/* =====================================================================
   THEME · refined neutrals + exactly 4 status colours
   blue = lead / customer · red = delayed · green = done / good · yellow = clock running
   ===================================================================== */
:root {
  --bg: #f7f8fa; --card: #ffffff; --ink: #101828; --ink2: #344054; --muted: #667085; --line: #eaecf0; --line2: #f2f4f7;
  --brand: #101828; --brand2: #98a2b3; --brand-ink: #101828;
  --lav: #f2f4f7; --lav-ink: #344054; --lav-line: #e4e7ec; --grey: #f2f4f7; --grey-ink: #667085;
  --red: #f04438;    --rose: #fef3f2;   --rose-ink: #b42318;   --rose-line: #fecdca;
  --yellow: #eaaa08; --butter: #fefbe8; --butter-ink: #854a0e; --butter-line: #feee95;
  --green: #17b26a;  --mint: #ecfdf3;   --mint-ink: #067647;   --mint-line: #abefc6;
  --blue: #2e90fa;   --sky: #eff8ff;    --sky-ink: #175cd3;    --sky-line: #b2ddff;
  --peach: var(--sky); --peach-ink: var(--sky-ink); --peach-line: var(--sky-line); --teal: var(--mint); --teal-ink: var(--mint-ink); --teal-line: var(--mint-line);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 16px 32px -8px rgba(16, 24, 40, .14), 0 4px 8px -4px rgba(16, 24, 40, .05);
  --r: 14px;
}
body { background: var(--bg); color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: 24px; letter-spacing: -.025em; }

/* ---------- top bar ---------- */
.topbar { background: rgba(255, 255, 255, .85); border-bottom: 1px solid var(--line); }
.brand-mark { background: #101828; box-shadow: none; position: relative; }
.brand-mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 4px; border: 2px solid #fff;
  background: conic-gradient(var(--blue) 0 25%, var(--green) 0 50%, var(--yellow) 0 75%, var(--red) 0); }
.tab { color: var(--muted); font-weight: 600; padding: 8px 14px; border-radius: 10px; }
.tab:hover { background: var(--line2); color: var(--ink); }
.tab.active { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.btn { border-color: var(--line); border-radius: 10px; font-weight: 600; box-shadow: var(--shadow); }
.btn:hover { transform: none; background: #f9fafb; box-shadow: var(--shadow); }
.btn.primary { background: #101828; color: #fff; border-color: #101828; box-shadow: var(--shadow); }
.btn.primary:hover { background: #1d2939; }
.btn.glow::after { display: none; }
.icon-btn { border-radius: 10px; } .icon-btn:hover { transform: none; }
.av { background: #f2f4f7 !important; color: #475467; box-shadow: 0 0 0 1px #e4e7ec; }
.pill { background: #fff !important; color: var(--muted) !important; border: 1px solid var(--line); font-weight: 600; }
.wave { display: none; }
input, select, textarea { border-color: #d0d5dd; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
input:focus, select:focus, textarea:focus { border-color: #98a2b3; box-shadow: 0 0 0 4px rgba(152, 162, 179, .18); }
.seg-toggle span, .pick-opt span { border-color: #d0d5dd; }
.seg-toggle input:checked + span, .pick-opt input:checked + span, .seg-toggle.multi input:checked + span { background: #101828; color: #fff; border-color: #101828; box-shadow: none; }
.seg-toggle input:checked + span .ic { color: #fff; }
.chip-btn { border-color: var(--line); color: var(--ink2); box-shadow: var(--shadow); }
.chip-btn.active, .chip-btn.xs.active { background: #101828; color: #fff; border-color: #101828; }
.drop { border-color: #d0d5dd; background: #fcfcfd; color: var(--ink2); } .drop:hover { background: var(--line2); border-color: #98a2b3; }
.fsec { color: var(--ink); }
.card, .current, .person { border-color: var(--line); box-shadow: var(--shadow); border-radius: var(--r); }
.login-wrap .blob { opacity: .45; } .login-wrap .b1 { background: #b2ddff; } .login-wrap .b2 { background: #feee95; } .login-wrap .b3 { background: #abefc6; }

/* ---------- status families (4 colours) ---------- */
.st-delayed { background: var(--rose); color: var(--rose-ink); }
.st-ok, .st-soon { background: var(--butter); color: var(--butter-ink); }
.st-waiting, .st-customer, .st-input, .st-lead { background: var(--sky); color: var(--sky-ink); }
.st-done { background: var(--mint); color: var(--mint-ink); }
.st-lost { background: var(--grey); color: var(--grey-ink); }
.cat-delayed { --accent: var(--red); --tone-bg: var(--rose); --tone-ink: var(--rose-ink); }
.cat-ok, .cat-soon { --accent: var(--yellow); --tone-bg: var(--butter); --tone-ink: var(--butter-ink); }
.cat-waiting, .cat-customer, .cat-input, .cat-lead { --accent: var(--blue); --tone-bg: var(--sky); --tone-ink: var(--sky-ink); }
.cat-done { --accent: var(--green); --tone-bg: var(--mint); --tone-ink: var(--mint-ink); }
.cat-lost { --accent: #d0d5dd; --tone-bg: var(--grey); --tone-ink: var(--grey-ink); }
.tag.mint { background: var(--mint); color: var(--mint-ink); } .tag.rose { background: var(--rose); color: var(--rose-ink); }
.tag.sky { background: var(--sky); color: var(--sky-ink); } .tag.butter { background: var(--butter); color: var(--butter-ink); }
.callout.rose { background: var(--rose); color: var(--rose-ink); border: 1px solid var(--rose-line); }
.callout.sky, .callout.blue { background: var(--sky); color: var(--sky-ink); border: 1px solid var(--sky-line); }
.callout.mint { background: var(--mint); color: var(--mint-ink); border: 1px solid var(--mint-line); }
.callout.butter { background: var(--butter); color: var(--butter-ink); border: 1px solid var(--butter-line); }
.callout.wk { margin: -4px 0 14px; }

/* ---------- summary tiles: white cards, colour only on the icon + number ---------- */
.tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tile { background: #fff !important; border: 1px solid var(--line) !important; box-shadow: var(--shadow); padding: 14px 16px; color: var(--ink) !important; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tile.active { box-shadow: 0 0 0 2px #101828, var(--shadow-md); }
.tile-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--line2); color: var(--ink2); }
.tile-n { font-size: 24px; letter-spacing: -.02em; } .tile-l { color: var(--muted); font-weight: 600; } .tile-l b { color: var(--butter-ink); }
.tone-red .tile-ic { background: var(--rose); color: var(--rose-ink); } .tone-red .tile-n { color: var(--rose-ink); }
.tone-yellow .tile-ic { background: var(--butter); color: var(--butter-ink); } .tone-yellow .tile-n { color: var(--butter-ink); }
.tone-blue .tile-ic { background: var(--sky); color: var(--sky-ink); } .tone-blue .tile-n { color: var(--sky-ink); }
.tone-green .tile-ic { background: var(--mint); color: var(--mint-ink); } .tone-green .tile-n { color: var(--mint-ink); }
.tk.tone-mint { background: var(--mint); color: var(--mint-ink); } .tk.tone-rose { background: var(--rose); color: var(--rose-ink); }
.tk.tone-butter { background: var(--butter); color: var(--butter-ink); } .tk.tone-lav, .tk.tone-sky { background: var(--sky); color: var(--sky-ink); }
.ring.tone-lav { --ring: var(--blue); color: var(--sky-ink); } .ring.tone-butter { --ring: var(--yellow); color: var(--butter-ink); }
.ring.tone-mint { --ring: var(--green); color: var(--mint-ink); } .ring.tone-rose { --ring: var(--red); color: var(--rose-ink); }
.ring span { background: #fff; }

/* ---------- agenda strip ---------- */
.agenda { box-shadow: var(--shadow); border-color: var(--line); }
.agenda-h { color: var(--ink2); }
.ag { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; padding-left: 14px; }
.ag::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--blue); }
.ag.past::before { background: var(--red); } .ag.past { background: #fff; } .ag.mine { box-shadow: inset 0 0 0 1px var(--sky-line), var(--shadow); }
.ag-d { background: var(--line2); }

/* ---------- project rows ---------- */
.list { gap: 12px; }
.row { border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 16px; transition: box-shadow .25s, border-color .25s; }
.row::before { width: 3px; top: 16px; bottom: 16px; border-radius: 0 3px 3px 0; }
.row:hover { transform: none; box-shadow: var(--shadow-md); border-color: #d0d5dd; }
.row.open { box-shadow: var(--shadow-lg); border-color: #d0d5dd; }
.row-head { grid-template-columns: 44px minmax(220px, 1fr) 180px 250px 20px; column-gap: 20px; row-gap: 14px; padding: 18px 20px 16px 22px; }
.row-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--tone-bg); color: var(--tone-ink); }
.row:hover .row-ic { transform: none; }
.row-title { font-size: 16px; letter-spacing: -.015em; }
.row-sub { margin-top: 2px; }
.row-holder { gap: 10px; } .row-holder b { font-size: 13.5px; color: var(--ink); } .row-holder small { color: var(--muted); font-size: 12px; font-weight: 500; display: block; }
.row-clock { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.rc-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rc-cap { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.row .track { grid-column: 2 / -1; }
.row.cat-lost { opacity: .7; }

/* ---------- the timer ---------- */
.timer { --tc: var(--ink2); --tb: var(--line2); --tl: var(--line); display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--tb); box-shadow: inset 0 0 0 1px var(--tl); color: var(--tc); font-variant-numeric: tabular-nums; white-space: nowrap; }
.timer.t-red { --tc: var(--rose-ink); --tb: var(--rose); --tl: var(--rose-line); --ring: var(--red); }
.timer.t-yellow { --tc: var(--butter-ink); --tb: var(--butter); --tl: var(--butter-line); --ring: var(--yellow); }
.timer.t-blue { --tc: var(--sky-ink); --tb: var(--sky); --tl: var(--sky-line); --ring: var(--blue); }
.timer.t-green { --tc: var(--mint-ink); --tb: var(--mint); --tl: var(--mint-line); --ring: var(--green); }
.tr { position: relative; width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .06); }
.tr svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tr-bg { fill: none; stroke: var(--tl); stroke-width: 3; }
.tr-fg { fill: none; stroke: var(--ring, var(--tc)); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset 1s linear; }
.tr-ic { display: grid; place-items: center; } .tr-ic .ic { width: 13px; height: 13px; }
.timer.run .tr::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--ring, var(--tc)); opacity: 0; animation: halo 2s ease-out infinite; }
.timer.t-red.run .tr::after { animation-duration: 1.2s; }
.tu-wrap { display: inline-flex; align-items: baseline; gap: 6px; }
.tu { display: inline-flex; align-items: baseline; gap: 1px; }
.tu b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.tu i { font-style: normal; font-size: 11px; font-weight: 600; opacity: .7; }
.tu.sec b { font-weight: 500; opacity: .75; }
.timer.paused .tu b { opacity: .8; }
.timer.none { background: transparent; box-shadow: none; color: #d0d5dd; padding: 0; } .timer.none .ct { font-size: 18px; }
.timer.big { padding: 8px 18px 8px 8px; gap: 14px; }
.timer.big .tr { width: 44px; height: 44px; } .timer.big .tr-ic .ic { width: 18px; height: 18px; }
.timer.big .tu b { font-size: 30px; } .timer.big .tu i { font-size: 13px; } .timer.big .tu-wrap { gap: 10px; }
.timer.xs { padding: 0; background: transparent; box-shadow: none; gap: 5px; font-size: 11.5px; font-weight: 700; }
.timer.xs.run::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ring, currentColor); animation: breathe 1.6s ease-in-out infinite; }
.cur-clock { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@keyframes halo { 0% { opacity: .55; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }

/* ---------- 11-stage stepper ---------- */
.track { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 0; position: relative; padding-top: 2px; }
.tc { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 0 8px 0 0; background: none !important; border: 0 !important; box-shadow: none !important; min-width: 0; position: relative; }
.tc:hover { transform: none; }
.tc::before { content: ""; position: absolute; top: 9px; left: 20px; right: 0; height: 2px; border-radius: 2px; background: var(--line); }
.tc:last-child::before { display: none; }
.tc-node { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 2px #d0d5dd; position: relative; z-index: 1; flex-shrink: 0; }
.tc-node .ic { width: 11px; height: 11px; stroke-width: 2.6; }
.tc b { font-size: 11.5px; font-weight: 600; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; margin-top: 4px; padding: 0; }
.tc small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; line-height: 1.35; }
.tc-done .tc-node { background: var(--green); box-shadow: none; color: #fff; } .tc-done::before { background: var(--green); opacity: .45; }
.tc-done .tc-sub { color: var(--mint-ink); }
.tc-late .tc-node { background: var(--red); box-shadow: none; color: #fff; } .tc-late::before { background: var(--red); opacity: .35; }
.tc-late .tc-sub { color: var(--rose-ink); font-weight: 600; }
.tc-todo b { color: var(--muted); font-weight: 500; }
.tc-na { opacity: .45; } .tc-na .tc-node { box-shadow: inset 0 0 0 2px var(--line); background: repeating-linear-gradient(45deg, #fff 0 3px, #f2f4f7 3px 6px); }
.tc-lost .tc-node { background: #d0d5dd; box-shadow: none; }
.tc-cur .tc-node { width: 20px; height: 20px; color: #fff; box-shadow: 0 0 0 4px var(--halo); background: var(--dot); animation: nodePulse 2s ease-in-out infinite; }
.tc-cur b { color: var(--ink); font-weight: 700; }
.tc-cur-delayed { --dot: var(--red); --halo: rgba(240, 68, 56, .18); } .tc-cur-delayed .tc-sub { color: var(--rose-ink); }
.tc-cur-ok, .tc-cur-soon { --dot: var(--yellow); --halo: rgba(234, 170, 8, .22); } .tc-cur-ok .tc-sub, .tc-cur-soon .tc-sub { color: var(--butter-ink); }
.tc-cur-waiting, .tc-cur-customer, .tc-cur-input, .tc-cur-lead { --dot: var(--blue); --halo: rgba(46, 144, 250, .18); }
.tc-cur-waiting .tc-sub, .tc-cur-customer .tc-sub, .tc-cur-input .tc-sub, .tc-cur-lead .tc-sub { color: var(--sky-ink); }
.tc-cur * { color: inherit; } .tc-cur .tc-node .ic { color: #fff; }
@keyframes nodePulse { 0%, 100% { box-shadow: 0 0 0 4px var(--halo); } 50% { box-shadow: 0 0 0 7px var(--halo); } }
.track.big { padding: 16px 18px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.track.big .tc-node { width: 26px; height: 26px; } .track.big .tc-node .ic { width: 13px; height: 13px; }
.track.big .tc::before { top: 12px; left: 26px; }
.track.big .tc b { font-size: 12.5px; } .track.big .tc small { font-size: 11.5px; }
.tc-who { color: var(--ink2) !important; font-weight: 600; margin-top: 2px; } .tc-when { opacity: .9; }
.track-wrap { margin-bottom: 16px; overflow-x: auto; padding-bottom: 4px; } .track-wrap .track { min-width: 1000px; }

/* ---------- current-stage card ---------- */
.current { background: #fff !important; }
.current::before { height: 3px; background: var(--accent, var(--line)); }
.cc-delayed { --accent: var(--red); } .cc-ok, .cc-soon { --accent: var(--yellow); } .cc-done { --accent: var(--green); }
.cc-waiting, .cc-customer, .cc-input, .cc-lead { --accent: var(--blue); }
.cur-ic { background: var(--line2); color: var(--ink2); border-radius: 12px; }
.cc-delayed .cur-ic { background: var(--rose); color: var(--rose-ink); } .cc-ok .cur-ic, .cc-soon .cur-ic { background: var(--butter); color: var(--butter-ink); }
.cc-waiting .cur-ic, .cc-customer .cur-ic, .cc-input .cur-ic, .cc-lead .cur-ic { background: var(--sky); color: var(--sky-ink); } .cc-done .cur-ic { background: var(--mint); color: var(--mint-ink); }
.cur-grid > div { background: #fcfcfd; border-color: var(--line); }
.meter { height: 6px; background: var(--line2); }
.meter i { background: var(--yellow); } .cc-ok .meter i, .cc-soon .meter i { background: var(--yellow); } .meter.over i { background: var(--red) !important; }
.cur-actions { background: #fcfcfd; border-color: var(--line); }
.panel { background: #fcfcfd; }
.h-item { border-color: var(--line); } .h-dot { border-radius: 50%; width: 28px; height: 28px; }
.note { background: var(--line2); color: var(--ink2); }
.contact .c-links a { background: #fcfcfd; border: 1px solid var(--line2); } .c-links a:hover { background: var(--line2); color: var(--ink); }
.c-links .ic { color: var(--muted); }
.c-pref { background: var(--line2); color: var(--ink2); }
.c-meta span.cat { background: #fff; color: var(--ink2); border: 1px solid var(--line); }
.scope { border-left-color: var(--line); background: #fcfcfd; }
.convert { background: #fff; border-color: var(--mint-line); }
.admin-box { background: #fff; border-color: var(--line); }
.meet { background: #fff; border-color: var(--line); } .meet.past { border-color: var(--rose-line); background: #fff; } .m-date { background: var(--sky); }
.tl-dot { background: var(--line2); color: var(--ink2); } .tl-CALL .tl-dot, .tl-MEETING .tl-dot, .tl-EMAIL .tl-dot { background: var(--sky); color: var(--sky-ink); }
.mini.st-ok, .mini.st-soon { background: var(--butter); }
.person:hover { transform: none; box-shadow: var(--shadow-md); }
.p-stats > div { background: #fcfcfd; border: 1px solid var(--line2); }
.p-line { background: #fcfcfd; border: 1px solid var(--line2); } .p-line.warn { background: var(--butter); color: var(--butter-ink); border-color: var(--butter-line); }
.p-line.good { background: var(--mint); color: var(--mint-ink); border-color: var(--mint-line); }
.dupe { background: var(--butter); color: var(--butter-ink); border: 1px solid var(--butter-line); }
.steps li.on { background: var(--line2); color: var(--ink); } .steps li.on span { color: var(--ink); box-shadow: var(--shadow); }
.steps li.done span { background: var(--mint); color: var(--mint-ink); }
.toast-success { border-left-color: var(--green); } .toast-error { border-left-color: var(--red); }
.modal-head { background: #fff; } .mh-icon { background: var(--rose); color: var(--rose-ink); } .mh-icon.peach { background: var(--sky); color: var(--sky-ink); }
.alert-overdue { background: var(--rose); } .alert-soon { background: var(--butter); } .alert-wait { background: var(--sky); }
.badge { background: var(--red); }

@media (max-width: 1200px) {
  .row-head { grid-template-columns: 40px minmax(0, 1fr) 230px 20px; }
  .row-holder { display: none; }
  .row .track { overflow-x: auto; grid-template-columns: repeat(11, 104px); padding-bottom: 6px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .row-head { grid-template-columns: 38px minmax(0, 1fr) 20px; padding: 14px 14px 14px 16px; }
  .row-clock { grid-column: 1 / -1; grid-row: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .row .track { grid-column: 1 / -1; grid-row: 3; }
  .tu b { font-size: 16px; } .timer.big .tu b { font-size: 22px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cur-clock { align-items: flex-start; }
}

/* =====================================================================
   COMPACT LIST · many projects per screen
   ===================================================================== */
main { padding-top: 18px; }
.head-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.head-line h1 { font-size: 20px; } .hl-sub { color: var(--muted); font-size: 12.5px; } .t-sky { color: var(--sky-ink); }
.stats { display: flex; gap: 6px; flex-wrap: wrap; }
.stat { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: inherit;
  color: var(--ink2); box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s, transform .2s; animation: fadeUp .4s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.stat .ic { width: 15px; height: 15px; color: var(--muted); } .stat b { font-size: 15px; font-weight: 800; color: var(--ink); } .stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat:hover { border-color: #d0d5dd; transform: translateY(-1px); }
.stat.active { border-color: #101828; box-shadow: 0 0 0 1px #101828; }
.stat.tone-red .ic, .stat.tone-red b { color: var(--rose-ink); } .stat.tone-yellow .ic, .stat.tone-yellow b { color: var(--butter-ink); }
.stat.tone-blue .ic, .stat.tone-blue b { color: var(--sky-ink); } .stat.tone-green .ic, .stat.tone-green b { color: var(--mint-ink); }
.agenda { margin: 0 0 10px; padding: 6px 8px; } .ag { padding: 4px 10px 4px 14px; } .ag-d { padding: 2px 7px; }
.toolbar { top: 57px; padding: 8px 0; margin-bottom: 8px; gap: 10px; }
.searchbox { min-width: 240px; flex: 0 1 320px; } .searchbox input { padding: 8px 0; }
.chip-btn { padding: 6px 11px; }
.view-ctl { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sortby { flex-direction: row; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 4px 0 10px; box-shadow: var(--shadow); }
.sortby .ic { width: 15px; height: 15px; color: var(--muted); } .sortby select { border: 0; box-shadow: none; padding: 7px 6px; font-weight: 600; font-size: 12.5px; width: auto; background: transparent; }
.density { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 2px; box-shadow: var(--shadow); }
.density button { border: 0; background: none; width: 32px; height: 30px; border-radius: 8px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.density button.on { background: #101828; color: #fff; } .density .ic { width: 16px; height: 16px; }
.view-ctl .icon-btn.sm { width: 32px; height: 32px; font-weight: 800; color: var(--muted); }

/* ---- detailed mode (old layout) ---- */
.list:not(.dense) .row-prog, .list:not(.dense) .row-stage, .list:not(.dense) .list-head { display: none; }
.list:not(.dense) .row-head { grid-template-columns: 44px minmax(220px, 1fr) 180px 250px 20px; }

/* ---- compact mode ---- */
.list.dense { gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.list.dense .list-head, .list.dense .row-head { grid-template-columns: 30px minmax(190px, 1.25fr) 170px minmax(170px, 1fr) 210px 16px; column-gap: 16px; }
.list-head { display: grid; padding: 8px 16px 8px 18px; background: #fcfcfd; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); position: sticky; top: 105px; z-index: 5; }
.list.dense .row { border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line2); animation-duration: .3s; animation-delay: calc(var(--i) * 15ms); }
.list.dense .row:last-of-type { border-bottom: 0; }
.list.dense .row::before { top: 10px; bottom: 10px; width: 3px; }
.list.dense .row:hover { background: #fcfcfd; box-shadow: none; }
.list.dense .row.open { background: #fff; box-shadow: inset 0 0 0 1px #d0d5dd; border-radius: 12px; margin: 6px; }
.list.dense .row.kb { background: #f9fafb; box-shadow: inset 3px 0 0 #101828; }
.list.dense .row-head { padding: 8px 16px 8px 18px; row-gap: 0; align-items: center; }
.list.dense .row-ic { width: 30px; height: 30px; border-radius: 9px; } .list.dense .row-ic .ic { width: 15px; height: 15px; }
.list.dense .row-title { font-size: 14px; } .list.dense .row-sub { font-size: 12px; margin-top: 0; }
.list.dense .row-holder, .list.dense .track, .list.dense .rc-label, .list.dense .rc-cap { display: none; }
.list.dense .row-clock { flex-direction: row; align-items: center; }
.row-prog { display: flex; flex-direction: column; gap: 4px; min-width: 0; } .row-prog small { font-size: 11px; color: var(--muted); }
.row-stage { display: flex; flex-direction: column; min-width: 0; } .row-stage b { font-size: 12.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-stage small { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; }
.ms-line { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; }
.ms { height: 8px; border-radius: 3px; background: #eaecf0; position: relative; }
.ms-done { background: var(--green); } .ms-late { background: var(--red); opacity: .85; } .ms-na { background: repeating-linear-gradient(45deg, #eaecf0 0 2px, #fff 2px 4px); } .ms-lost { background: #d0d5dd; }
.ms-cur { height: 12px; margin-top: -2px; border-radius: 4px; animation: breathe 1.8s ease-in-out infinite; }
.ms-delayed { background: var(--red); } .ms-ok, .ms-soon { background: var(--yellow); }
.ms-waiting, .ms-customer, .ms-input, .ms-lead { background: var(--blue); }

/* compact timer */
.list.dense .timer { padding: 3px 10px 3px 3px; gap: 7px; }
.list.dense .timer .tr { width: 22px; height: 22px; } .list.dense .timer .tr-ic .ic { width: 11px; height: 11px; }
.list.dense .timer .tu b { font-size: 14.5px; } .list.dense .timer .tu i { font-size: 10px; } .list.dense .tu-wrap { gap: 4px; }

/* =====================================================================
   TIMER EFFECTS · draining fill · overtime stripes · paused hatch · rolling digits
   ===================================================================== */
.timer { position: relative; overflow: hidden; isolation: isolate; }
.timer:not(.xs)::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transition: width 1s linear; }
.timer.fx-fill::before { width: var(--fill); background: linear-gradient(90deg, var(--fillc, rgba(234, 170, 8, .28)), var(--fillc2, rgba(234, 170, 8, .12))); border-right: 2px solid var(--ring, transparent); border-radius: 999px 0 0 999px; }
.timer.t-yellow { --fillc: rgba(234, 170, 8, .32); --fillc2: rgba(234, 170, 8, .14); }
.timer.t-blue { --fillc: rgba(46, 144, 250, .22); --fillc2: rgba(46, 144, 250, .08); }
.timer.fx-over::before { width: 100%; background: repeating-linear-gradient(-45deg, rgba(240, 68, 56, .16) 0 7px, transparent 7px 14px); background-size: 20px 20px; animation: stripes 1.2s linear infinite; }
.timer.fx-over.paused::before { animation: none; }
.timer.fx-hatch::before { width: 100%; background: repeating-linear-gradient(45deg, rgba(46, 144, 250, .13) 0 3px, transparent 3px 7px); }
.timer.fx-wash.run::before { width: 100%; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .7) 50%, transparent 80%); background-size: 220% 100%; animation: wash 3s ease-in-out infinite; }
.timer.t-green.fx-wash::before { animation: none; }
.tu b { display: inline-block; }
.tu b.roll { animation: roll .35s cubic-bezier(.2, .9, .3, 1.2); }
.timer.t-red.run .tr { animation: beat 1.2s ease-in-out infinite; }
@keyframes stripes { from { background-position: 0 0; } to { background-position: 20px 0; } }
@keyframes wash { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
@keyframes roll { 0% { transform: translateY(-60%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } }

/* help modal */
.modal-box.sm { width: min(460px, 100%); }
.keys { padding: 14px 20px 20px; display: grid; gap: 8px; }
.keys div { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink2); }
kbd { min-width: 54px; text-align: center; font: 700 12px/1 ui-monospace, Consolas, monospace; padding: 6px 8px; border-radius: 8px; background: #f9fafb; border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line); color: var(--ink); }

@media (max-width: 1200px) {
  .list.dense .list-head, .list.dense .row-head { grid-template-columns: 30px minmax(0, 1fr) 150px 200px 16px; }
  .list.dense .row-stage, .list.dense .list-head span:nth-child(4) { display: none; }
}
@media (max-width: 760px) {
  .head-line { flex-direction: column; align-items: flex-start; } .view-ctl { margin-left: 0; }
  .list.dense .list-head { display: none; }
  .list.dense .row-head { grid-template-columns: 30px minmax(0, 1fr) 16px; row-gap: 6px; }
  .list.dense .row-prog { grid-column: 2; grid-row: 2; } .list.dense .row-clock { grid-column: 2; grid-row: 3; }
  .toolbar { top: 100px; }
}
@media (prefers-reduced-motion: reduce) { .timer::before { animation: none !important; } }

.list-head { position: static; }

.timer.fx-over::before { background: repeating-linear-gradient(-45deg, rgba(240, 68, 56, .09) 0 7px, transparent 7px 14px); background-size: 20px 20px; }

/* =====================================================================
   PASTEL DASHBOARD · soft, complementary colours (status meaning unchanged)
   rose = delayed · butter = clock running · sky / periwinkle = customer & leads · mint = done · lavender = all
   ===================================================================== */
:root {
  --rose: #ffe7ec; --rose-ink: #c0324c; --rose-line: #ffc9d4; --red: #f2708a;
  --butter: #fff4d2; --butter-ink: #8a5a00; --butter-line: #ffe3a1; --yellow: #f6c445;
  --mint: #def6ea; --mint-ink: #16784c; --mint-line: #b5ebd0; --green: #4cc38a;
  --sky: #e2f1ff; --sky-ink: #1d63b5; --sky-line: #bddcff; --blue: #63a8f5;
  --peri: #ecebff; --peri-ink: #4b44c4; --peri-line: #d4d1ff; --peri-strong: #9b95ff;
  --lavb: #f1ecff; --lavb-ink: #5b3fc4; --lavb-line: #ddd2ff; --lav-strong: #b39dfa;
}
body { background:
  radial-gradient(900px 520px at -5% -10%, #efe9ff 0, transparent 60%),
  radial-gradient(800px 480px at 105% -5%, #ffe9f0 0, transparent 58%),
  radial-gradient(900px 600px at 50% 120%, #e6f6ff 0, transparent 60%),
  #f8f7fc; background-attachment: fixed; }
.topbar { background: rgba(255, 255, 255, .78); border-bottom: 0; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, #b39dfa, #f2a1b8, #f6c445, #4cc38a, #63a8f5); opacity: .55; }
.tab.active { background: linear-gradient(135deg, #f1ecff, #ffeef3); color: #3b2a8a; box-shadow: inset 0 0 0 1px #e3d9ff; }
.btn.primary { background: linear-gradient(135deg, #6d5bd0, #8b6fe6); border-color: transparent; box-shadow: 0 6px 16px -4px rgba(109, 91, 208, .45); }
.btn.primary:hover { background: linear-gradient(135deg, #5f4cc4, #7d61dc); }
.av { background: var(--avc, #ece9ff) !important; color: #3b3563; box-shadow: 0 0 0 2px #fff; }
.av.photo { object-fit: cover; padding: 0; background: #fff !important; }
.av.xl { width: 96px; height: 96px; font-size: 32px; box-shadow: 0 0 0 4px #fff, 0 10px 30px -8px rgba(91, 63, 196, .35); }

/* ---------- banner ---------- */
.banner { position: relative; overflow: hidden; border-radius: 24px; padding: 20px 22px 16px; margin-bottom: 14px;
  background: linear-gradient(120deg, #f1ecff 0%, #ffeef3 38%, #fff4dd 70%, #e5f6ff 100%); border: 1px solid #ece6ff;
  box-shadow: 0 20px 40px -24px rgba(91, 63, 196, .35); }
.bn-deco i { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; animation: float 16s ease-in-out infinite; }
.bn-deco i:nth-child(1) { width: 180px; height: 180px; right: 6%; top: -70px; background: radial-gradient(circle at 30% 30%, #ffffff, #d9ccff); }
.bn-deco i:nth-child(2) { width: 120px; height: 120px; right: 28%; bottom: -60px; background: radial-gradient(circle at 30% 30%, #ffffff, #ffd2de); animation-delay: -4s; }
.bn-deco i:nth-child(3) { width: 70px; height: 70px; left: 42%; top: -30px; background: radial-gradient(circle at 30% 30%, #ffffff, #ffe7a8); animation-delay: -8s; }
.bn-deco i:nth-child(4) { width: 90px; height: 90px; left: -30px; bottom: -40px; background: radial-gradient(circle at 30% 30%, #ffffff, #c7e8ff); animation-delay: -11s; }
.bn-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; }
.bn-hello { display: flex; align-items: center; gap: 14px; }
.bn-hello h1 { font-size: 24px; margin: 2px 0; color: #24204a; } .bn-hello p { margin: 0; color: #5a5680; font-size: 13px; }
.bn-hello .eyebrow { color: #7b6fbf; }
.bn-health { min-width: 340px; flex: 0 1 460px; background: rgba(255, 255, 255, .65); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .9); border-radius: 16px; padding: 10px 12px; }
.hb-label { display: flex; justify-content: space-between; font-size: 12px; color: #5a5680; margin-bottom: 7px; } .hb-label b { color: #24204a; }
.hb-bar { display: flex; gap: 4px; height: 14px; }
.hb-seg { border: 0; padding: 0; cursor: pointer; width: var(--w); min-width: 10px; border-radius: 99px; transition: transform .2s var(--ease), filter .2s; animation: grow .9s var(--ease) both; }
.hb-seg:hover { transform: scaleY(1.35); filter: saturate(1.2); }
.hb-seg.tone-red { background: linear-gradient(90deg, #f7a2b3, #f2708a); } .hb-seg.tone-yellow { background: linear-gradient(90deg, #ffe08a, #f6c445); }
.hb-seg.tone-blue { background: linear-gradient(90deg, #a9d1ff, #63a8f5); } .hb-seg.tone-blue.lead { background: linear-gradient(90deg, #cfccff, #9b95ff); }
.hb-seg.tone-green { background: linear-gradient(90deg, #a8e8c7, #4cc38a); }

/* ---------- stat cards ---------- */
.banner .stats { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.stat { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; border: 1px solid transparent; box-shadow: 0 4px 14px -8px rgba(36, 32, 74, .25);
  text-align: left; overflow: hidden; }
.stat .st-ic { width: 36px; height: 36px; border-radius: 12px; background: rgba(255, 255, 255, .85); display: grid; place-items: center; flex-shrink: 0; }
.stat .st-ic .ic { width: 18px; height: 18px; color: inherit; }
.stat .st-tx { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.stat .st-tx b { font-size: 22px; font-weight: 800; color: inherit; } .stat .st-tx span { font-size: 12px; font-weight: 600; opacity: .8; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .st-share { position: absolute; right: 10px; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(currentColor calc(var(--p) * 1%), rgba(255, 255, 255, .7) 0); opacity: .55; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(36, 32, 74, .35); border-color: rgba(255, 255, 255, .9); }
.stat.active { box-shadow: 0 0 0 2px currentColor, 0 10px 22px -10px rgba(36, 32, 74, .3); }
.stat.tone-lav { background: linear-gradient(135deg, #f4f0ff, #e9e1ff); color: var(--lavb-ink); }
.stat.tone-red { background: linear-gradient(135deg, #fff0f3, #ffdfe6); color: var(--rose-ink); }
.stat.tone-yellow { background: linear-gradient(135deg, #fff8e0, #ffeeb8); color: var(--butter-ink); }
.stat.tone-blue { background: linear-gradient(135deg, #eef7ff, #d9ecff); color: var(--sky-ink); }
.stat.tone-blue.lead { background: linear-gradient(135deg, #f3f2ff, #e2e0ff); color: var(--peri-ink); }
.stat.tone-green { background: linear-gradient(135deg, #ecfbf3, #d3f3e2); color: var(--mint-ink); }
.stat .ic, .stat b { color: inherit !important; }

/* ---------- toolbar + list in pastel ---------- */
.toolbar { background: linear-gradient(#f8f7fc 70%, transparent); }
.chip-btn.active { background: linear-gradient(135deg, #6d5bd0, #8b6fe6); border-color: transparent; color: #fff; }
.density button.on { background: linear-gradient(135deg, #6d5bd0, #8b6fe6); }
.list.dense { border-color: #ece6ff; box-shadow: 0 18px 40px -28px rgba(91, 63, 196, .35); }
.list-head { background: linear-gradient(90deg, #f6f2ff, #fff3f6, #fff9ea, #eef8ff); color: #6b638f; border-bottom-color: #efe9ff; }
.list.dense .row:hover { background: linear-gradient(90deg, var(--tone-bg), #fff 40%); }
.list.dense .row.kb { background: linear-gradient(90deg, #f1ecff, #fff 45%); box-shadow: inset 3px 0 0 #6d5bd0; }
.row::before { background: var(--accent); }
.cat-delayed { --accent: var(--red); } .cat-ok, .cat-soon { --accent: var(--yellow); } .cat-done { --accent: var(--green); }
.cat-waiting, .cat-customer, .cat-input { --accent: var(--blue); } .cat-lead { --accent: var(--peri-strong); --tone-bg: var(--peri); --tone-ink: var(--peri-ink); }
.ms-done { background: var(--green); } .ms-late, .ms-delayed { background: var(--red); } .ms-ok, .ms-soon { background: var(--yellow); }
.ms-waiting, .ms-customer, .ms-input { background: var(--blue); } .ms-lead { background: var(--peri-strong); }
.agenda { background: rgba(255, 255, 255, .7); backdrop-filter: blur(6px); border-color: #ece6ff; }
.ag::before { background: var(--peri-strong); } .ag.past::before { background: var(--red); }
.tc-done .tc-node { background: var(--green); } .tc-late .tc-node { background: var(--red); }
.tc-cur-delayed { --dot: var(--red); --halo: rgba(242, 112, 138, .22); } .tc-cur-ok, .tc-cur-soon { --dot: var(--yellow); --halo: rgba(246, 196, 69, .28); }
.tc-cur-waiting, .tc-cur-customer, .tc-cur-input { --dot: var(--blue); --halo: rgba(99, 168, 245, .22); } .tc-cur-lead { --dot: var(--peri-strong); --halo: rgba(155, 149, 255, .25); }
.timer.t-red { --ring: var(--red); } .timer.t-yellow { --ring: var(--yellow); } .timer.t-blue { --ring: var(--blue); } .timer.t-green { --ring: var(--green); }
.card, .current, .person { border-color: #eeeaf8; }

/* ---------- profile page ---------- */
.profile-main { max-width: 1240px; }
.profile-hero { position: relative; display: flex; align-items: center; gap: 24px; padding: 26px; border-radius: 24px; margin-bottom: 16px; flex-wrap: wrap;
  background: linear-gradient(120deg, #f1ecff, #ffeef3 45%, #e5f6ff); border: 1px solid #ece6ff; box-shadow: 0 20px 40px -26px rgba(91, 63, 196, .4); }
.ph-photo { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ph-upload { margin: 0; } .ph-upload label { cursor: pointer; }
.ph-text h1 { margin: 2px 0; font-size: 26px; } .ph-text p { margin: 0 0 10px; color: #5a5680; }
.ph-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ph-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .75); }
.ph-chip .ic { width: 14px; height: 14px; } .ph-chip b { font-size: 14px; }
.ph-chip.tone-lav { color: var(--lavb-ink); } .ph-chip.tone-rose { color: var(--rose-ink); } .ph-chip.tone-butter { color: var(--butter-ink); } .ph-chip.tone-mint { color: var(--mint-ink); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.admin-settings { border-top: 1px dashed #e3dcfa; padding-top: 18px; }
.link-btn { background: none; border: 0; cursor: pointer; font: inherit; }

@media (max-width: 1200px) { .banner .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .banner { padding: 16px; } .bn-health { min-width: 0; flex: 1 1 100%; }
  .banner .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   SPLIT-FLAP CLOCK · each digit on its own card, flips when it changes
   ===================================================================== */
.timer:not(.xs) { gap: 9px; padding: 4px 10px 4px 4px; }
.fc { display: inline-flex; align-items: flex-end; gap: 5px; perspective: 400px; }
.fg { display: inline-flex; align-items: flex-end; gap: 2px; }
.fg i { font-style: normal; font-size: 10px; font-weight: 700; opacity: .7; margin: 0 0 1px 1px; text-transform: lowercase; }
.fd { position: relative; display: inline-grid; place-items: center; width: 17px; height: 24px; border-radius: 5px;
  background: linear-gradient(180deg, #ffffff 0 49%, #f4f1fb 51% 100%); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 4px -1px rgba(36, 32, 74, .22), 0 0 0 1px rgba(36, 32, 74, .06);
  transform-origin: 50% 50%; overflow: hidden; }
.fd::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(36, 32, 74, .14); }
.fd::before { content: ""; position: absolute; left: -1px; top: calc(50% - 2px); width: 3px; height: 4px; border-radius: 2px; background: rgba(36, 32, 74, .18); box-shadow: 18px 0 0 rgba(36, 32, 74, .18); }
.fd b { font: 800 15px/1 "Plus Jakarta Sans", system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--tc); letter-spacing: -.02em; }
.fg.sec .fd { width: 14px; height: 20px; } .fg.sec .fd b { font-size: 12px; opacity: .85; }
.fd.flip { animation: flapDown .42s cubic-bezier(.3, .7, .3, 1.15); }
.fd.flip b { animation: flapText .42s ease-out; }
@keyframes flapDown { 0% { transform: rotateX(-88deg); filter: brightness(.82); } 60% { transform: rotateX(8deg); } 100% { transform: rotateX(0); filter: none; } }
@keyframes flapText { 0% { opacity: .2; } 100% { opacity: 1; } }

/* tone tint on the cards */
.timer.t-red .fd { background: linear-gradient(180deg, #fff 0 49%, #ffeef2 51% 100%); }
.timer.t-yellow .fd { background: linear-gradient(180deg, #fff 0 49%, #fff6dc 51% 100%); }
.timer.t-blue .fd { background: linear-gradient(180deg, #fff 0 49%, #eaf4ff 51% 100%); }
.timer.t-green .fd { background: linear-gradient(180deg, #fff 0 49%, #e8f9f0 51% 100%); }
.timer.paused .fd b { opacity: .7; }

/* compact list */
.list.dense .timer:not(.xs) { padding: 3px 8px 3px 3px; gap: 7px; }
.list.dense .fd { width: 14px; height: 20px; border-radius: 4px; } .list.dense .fd b { font-size: 12.5px; }
.list.dense .fg.sec .fd { width: 12px; height: 17px; } .list.dense .fg.sec .fd b { font-size: 10.5px; }
.list.dense .fd::before { box-shadow: 15px 0 0 rgba(36, 32, 74, .18); }
.list.dense .fc { gap: 4px; } .list.dense .fg i { font-size: 9px; }

/* big (inside an opened project) */
.timer.big .fd { width: 30px; height: 42px; border-radius: 8px; } .timer.big .fd b { font-size: 26px; }
.timer.big .fg.sec .fd { width: 24px; height: 34px; } .timer.big .fg.sec .fd b { font-size: 20px; }
.timer.big .fd::before { box-shadow: 31px 0 0 rgba(36, 32, 74, .18); }
.timer.big .fc { gap: 8px; } .timer.big .fg { gap: 3px; } .timer.big .fg i { font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .fd.flip, .fd.flip b { animation: none; } }

/* ---------- project status overview (first thing in an opened project) ---------- */
.overview { display: grid; grid-template-columns: auto minmax(220px, 1fr) auto; gap: 20px; align-items: center; padding: 16px 18px; margin-bottom: 14px; border-radius: 18px;
  background: linear-gradient(120deg, #f6f2ff, #fff4f7 50%, #eef8ff); border: 1px solid #ece6ff; box-shadow: 0 12px 30px -22px rgba(91, 63, 196, .4); animation: fadeUp .35s var(--ease); }
.oc-delayed { background: linear-gradient(120deg, #fff0f3, #fff7f8 55%, #f6f2ff); border-color: var(--rose-line); }
.oc-ok, .oc-soon { background: linear-gradient(120deg, #fff8e3, #fffbf0 55%, #f6f2ff); border-color: var(--butter-line); }
.oc-done { background: linear-gradient(120deg, #e9fbf2, #f5fdf9 55%, #eef8ff); border-color: var(--mint-line); }
.oc-waiting, .oc-customer, .oc-input { background: linear-gradient(120deg, #eaf5ff, #f6fbff 55%, #f6f2ff); border-color: var(--sky-line); }
.ov-ring { --p: 0; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; animation: spin-in .9s var(--ease);
  background: conic-gradient(var(--ovc, #9b95ff) calc(var(--p) * 1%), rgba(255, 255, 255, .8) 0); box-shadow: 0 6px 16px -8px rgba(36, 32, 74, .35); }
.oc-delayed .ov-ring { --ovc: var(--red); } .oc-ok .ov-ring, .oc-soon .ov-ring { --ovc: var(--yellow); } .oc-done .ov-ring { --ovc: var(--green); }
.oc-waiting .ov-ring, .oc-customer .ov-ring, .oc-input .ov-ring { --ovc: var(--blue); }
.ov-ring span { width: 68px; height: 68px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.ov-ring b { font-size: 19px; font-weight: 800; } .ov-ring small { font-size: 9.5px; color: var(--muted); font-weight: 600; }
.ov-main h3 { margin: 2px 0 4px; font-size: 17px; } .ov-main p { margin: 0; }
.ov-kpis { display: grid; grid-template-columns: repeat(5, auto); gap: 8px; }
.ov-kpis > div { background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .95); border-radius: 12px; padding: 8px 12px; min-width: 96px; }
.ov-kpis small { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ov-kpis b { font-size: 14px; } .t-mint { color: var(--mint-ink); } .t-sky { color: var(--sky-ink); }

/* ---------- type switch: Remodel / ADU / Remodel + ADU ---------- */
.type-seg { display: inline-flex; padding: 3px; gap: 2px; background: #fff; border: 1px solid #ece6ff; border-radius: 12px; box-shadow: var(--shadow); }
.type-seg button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 6px 12px; border-radius: 9px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink2); cursor: pointer; transition: all .2s; }
.type-seg button .ic { width: 14px; height: 14px; } .type-seg button .ic + .ic { margin-left: -3px; }
.type-seg button:hover { background: #f6f2ff; }
.type-seg button.on { background: linear-gradient(135deg, #6d5bd0, #8b6fe6); color: #fff; box-shadow: 0 4px 10px -4px rgba(109, 91, 208, .5); }

@media (max-width: 1200px) { .overview { grid-template-columns: auto 1fr; } .ov-kpis { grid-column: 1 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ov-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .type-seg { width: 100%; } .type-seg button { flex: 1; justify-content: center; } }

/* =====================================================================
   COUNTDOWN TILES · days · hrs · min · sec (chosen style D)
   ===================================================================== */
.timer.tiles { display: inline-flex; align-items: stretch; gap: 5px; padding: 0; background: none !important; box-shadow: none !important; overflow: visible; isolation: auto; }
.timer.tiles::before, .timer.tiles::after { display: none !important; }
.ctile { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 44px; padding: 5px 4px 4px; border-radius: 10px;
  background: var(--tlb); border: 1px solid var(--tll); transition: transform .2s var(--ease); }
.ctile b { font: 700 18px/1.05 "Plus Jakarta Sans", system-ui, sans-serif; font-variant-numeric: tabular-nums; color: var(--tlc); letter-spacing: -.02em; }
.ctile i { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--tlc); opacity: .75; margin-top: 1px; }
.timer.t-red { --tlb: #fdebee; --tll: #f8ccd5; --tlc: #a32d45; }
.timer.t-yellow { --tlb: #fdf2dc; --tll: #f6dca4; --tlc: #855209; }
.timer.t-blue { --tlb: #e7f1fb; --tll: #c3dcf4; --tlc: #185fa5; }
.timer.t-green { --tlb: #e8f6ee; --tll: #c2e8d2; --tlc: #17704a; }
/* days tile sits a touch stronger, seconds a touch lighter */
.ctile-d { background: color-mix(in srgb, var(--tlb) 70%, var(--tll)); }
.ctile-s b { font-weight: 600; opacity: .85; }
.ctile.pop { animation: tilePop .35s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes tilePop { 0% { transform: translateY(-3px) scale(1.06); } 100% { transform: none; } }
/* delayed: the seconds tile gently pulses · paused: dashed boxes */
.timer.t-red.run .ctile-s { animation: tileAlarm 2s ease-in-out infinite; }
@keyframes tileAlarm { 0%, 100% { box-shadow: 0 0 0 0 rgba(226, 75, 74, 0); } 50% { box-shadow: 0 0 0 3px rgba(226, 75, 74, .18); } }
.timer.paused:not(.t-green) .ctile { border-style: dashed; }
.timer.paused:not(.t-green) .ctile b { opacity: .75; }

/* compact list rows */
.list.dense .timer.tiles { gap: 4px; }
.list.dense .ctile { min-width: 38px; padding: 3px 3px 2px; border-radius: 8px; }
.list.dense .ctile b { font-size: 15px; } .list.dense .ctile i { font-size: 9.5px; }

/* opened project: big tiles */
.timer.tiles.big { gap: 8px; }
.timer.tiles.big .ctile { min-width: 64px; padding: 9px 6px 7px; border-radius: 14px; }
.timer.tiles.big .ctile b { font-size: 28px; } .timer.tiles.big .ctile i { font-size: 12px; }

/* detailed list rows */
.list:not(.dense) .ctile { min-width: 46px; }
@media (max-width: 760px) { .timer.tiles.big .ctile { min-width: 50px; } .timer.tiles.big .ctile b { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .ctile.pop, .timer.t-red.run .ctile-s { animation: none; } }
