/* ================================================================ tokens */
:root {
  --bg: #f4f5f9;
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #eef0f6;
  --border: #e6e8f0;
  --border-strong: #d6dae5;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --primary: #5046e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef0ff;
  --primary-text: #4338ca;
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --green: #059669; --green-soft: #e3f7ef;
  --red: #e11d48; --red-soft: #ffe8ed;
  --amber: #c26a05; --amber-soft: #fff3dc;
  --blue: #2563eb; --blue-soft: #e8f0ff;
  --sidebar-bg: #0d1021;
  --sidebar-text: #9ea4bd;
  --sidebar-hover: rgba(255, 255, 255, .06);
  --sidebar-active: rgba(255, 255, 255, .1);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 8px 20px -6px rgba(16, 24, 40, .12), 0 2px 6px -2px rgba(16, 24, 40, .06);
  --shadow-lg: 0 28px 60px -16px rgba(16, 24, 40, .35), 0 8px 20px -8px rgba(16, 24, 40, .15);
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 20px;
  --tabbar-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0c16; --surface: #11141f; --surface-2: #151927; --surface-3: #1c2132; --border: #232a3c; --border-strong: #2f374c;
  --text: #eef0f6; --text-2: #c9cedc; --muted: #8b93a8; --faint: #5f6780;
  --primary: #7c7cf8; --primary-hover: #9595fa; --primary-soft: #1d1f3f; --primary-text: #a9abff;
  --green: #34d399; --green-soft: #0e2a21; --red: #fb7185; --red-soft: #2f1219; --amber: #fbbf24; --amber-soft: #2d220b; --blue: #60a5fa; --blue-soft: #10203d;
  --sidebar-bg: #080a12;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5); --shadow-md: 0 10px 24px -8px rgba(0, 0, 0, .6); --shadow-lg: 0 28px 60px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0a0c16; --surface: #11141f; --surface-2: #151927; --surface-3: #1c2132; --border: #232a3c; --border-strong: #2f374c;
    --text: #eef0f6; --text-2: #c9cedc; --muted: #8b93a8; --faint: #5f6780;
    --primary: #7c7cf8; --primary-hover: #9595fa; --primary-soft: #1d1f3f; --primary-text: #a9abff;
    --green: #34d399; --green-soft: #0e2a21; --red: #fb7185; --red-soft: #2f1219; --amber: #fbbf24; --amber-soft: #2d220b; --blue: #60a5fa; --blue-soft: #10203d;
    --sidebar-bg: #080a12;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5); --shadow-md: 0 10px 24px -8px rgba(0, 0, 0, .6); --shadow-lg: 0 28px 60px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* ================================================================ base */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* The page itself never scrolls (only inner panes do). With overscroll-behavior this disables
   pull-to-refresh and bounce on phones, so swiping down never reloads the app. */
html, body {
  height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none;
  background: var(--bg); color: var(--text);
  font: 14.5px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; touch-action: manipulation;
}
#app { height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.strong { font-weight: 600; }
.hidden { display: none !important; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
::selection { background: color-mix(in srgb, var(--primary) 25%, transparent); }
.scroll::-webkit-scrollbar, .modal-body::-webkit-scrollbar, .notes-list::-webkit-scrollbar { width: 10px; }
.scroll::-webkit-scrollbar-thumb, .modal-body::-webkit-scrollbar-thumb, .notes-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }

.boot { height: 100%; display: grid; place-items: center; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================ shell */
.shell { height: 100%; display: grid; grid-template-columns: 248px 1fr; }
@media (max-width: 1180px) { .shell { grid-template-columns: 224px 1fr; } .view { padding-left: 22px; padding-right: 22px; } .topbar { padding-left: 22px; padding-right: 22px; } }
.sidebar { background: var(--sidebar-bg); color: var(--sidebar-text); display: flex; flex-direction: column; padding: 18px 14px 14px; gap: 2px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 22px; color: #fff; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand b { font-size: 16px; display: block; letter-spacing: -.01em; }
.brand span { font-size: 11.5px; color: var(--sidebar-text); }
.nav-label { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #5d6380; padding: 14px 12px 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--sidebar-text); font-weight: 550; border: 0; background: none; text-align: left; width: 100%; font-size: 14px; transition: background .12s, color .12s; }
.nav-item svg.i { opacity: .85; }
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active { background: var(--sidebar-active); color: #fff; box-shadow: inset 2px 0 0 #8b8cf9; }
.nav-item .count { margin-left: auto; background: #ef4466; color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 7px; line-height: 19px; }
.nav-item .pill { margin-left: auto; font-size: 11px; color: #c6c8ff; background: rgba(139, 140, 249, .18); border-radius: 99px; padding: 0 8px; line-height: 19px; font-weight: 600; }
.sidebar .spacer { flex: 1; min-height: 12px; }
.install-card { margin: 8px 2px; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(99, 102, 241, .22), rgba(139, 92, 246, .14)); color: #e6e7ff; font-size: 12.5px; }
.install-card b { display: block; color: #fff; margin-bottom: 2px; font-size: 13px; }
.install-card .btn { margin-top: 10px; width: 100%; background: #fff; color: #1e1b4b; border: 0; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 0; background: none; width: 100%; text-align: left; color: var(--sidebar-text); margin-top: 6px; }
.me-card:hover, .me-card.active { background: var(--sidebar-hover); }
.me-card b { color: #fff; font-size: 13.5px; }

.main { display: flex; flex-direction: column; min-width: 0; height: 100%; position: relative; }
.topbar { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 12px 28px; padding-top: calc(12px + var(--safe-t)); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); z-index: 5; }
.topbar .titles { flex: 1; min-width: 0; }
.topbar h1 { font-size: 19px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .back { margin-left: -10px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 4px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.live.on { color: var(--green); }
.live.on::before { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 8%, transparent); } }
.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.view { max-width: 1240px; margin: 0 auto; padding: 26px 28px 110px; }
.tabbar, .fab { display: none; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 10px 16px; padding-top: calc(10px + var(--safe-t)); min-height: 58px; }
  .topbar h1 { font-size: 18px; }
  .topbar .live { padding: 0; border: 0; background: none; font-size: 0; gap: 0; }
  .view { padding: 16px 16px calc(var(--tabbar-h) + var(--safe-b) + 96px); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
  }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: none; color: var(--faint); font-size: 10.5px; font-weight: 650; position: relative; }
  .tab svg.i { width: 22px; height: 22px; }
  .tab.active { color: var(--primary-text); }
  .tab .count { position: absolute; top: 6px; left: calc(50% + 5px); background: var(--red); color: #fff; font-size: 10px; border-radius: 99px; padding: 0 5px; min-width: 17px; line-height: 17px; border: 2px solid var(--surface); }
  .tab.center .bubble { width: 50px; height: 50px; border-radius: 17px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-top: -24px; box-shadow: 0 10px 22px -6px rgba(99, 102, 241, .65); border: 3px solid var(--surface); transition: transform .15s; }
  .tab.center .bubble svg.i { width: 23px; height: 23px; }
  .tab.center.active { color: var(--primary-text); }
  .tab.center.active .bubble { transform: rotate(-8deg) scale(1.05); }
  .fab {
    display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); z-index: 29;
    width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--text); color: var(--surface); box-shadow: var(--shadow-md);
  }
  .fab svg.i { width: 24px; height: 24px; stroke-width: 2.4; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 901px) { .hide-desktop { display: none !important; } }

/* ================================================================ buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 10px; font-weight: 600; white-space: nowrap; min-height: 38px; font-size: 14px; box-shadow: var(--shadow-sm); transition: background .12s, border-color .12s, transform .05s; }
.btn:hover { background: var(--surface-2); border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(80, 70, 229, .3), inset 0 1px 0 rgba(255, 255, 255, .15); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.success { background: var(--green); border-color: var(--green); color: #fff; }
.btn.success:hover { filter: brightness(1.05); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-soft); border-color: transparent; }
.btn.danger-fill { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { border-color: transparent; background: none; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.soft { background: var(--primary-soft); color: var(--primary-text); border-color: transparent; box-shadow: none; }
.btn.soft:hover { background: color-mix(in srgb, var(--primary-soft) 70%, var(--primary) 12%); }
.btn.sm { padding: 5px 10px; min-height: 32px; font-size: 13px; border-radius: 8px; gap: 5px; }
.btn.sm svg.i { width: 15px; height: 15px; }
.btn.block { width: 100%; }
.btn.lg { min-height: 46px; font-size: 15px; border-radius: 12px; padding: 10px 18px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 0; background: none; color: var(--muted); position: relative; flex: none; transition: background .12s, color .12s; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 8px; }
.icon-btn.sm svg.i { width: 16px; height: 16px; }
.icon-btn .count { position: absolute; top: 3px; right: 2px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; border-radius: 99px; padding: 0 5px; line-height: 16px; min-width: 16px; text-align: center; border: 2px solid var(--surface); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span, .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.label.up { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.req { color: var(--red); }
.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); outline: none; font-size: 15px;
  transition: border-color .12s, box-shadow .12s; box-shadow: var(--shadow-sm);
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent); }
textarea.input { resize: vertical; min-height: 96px; line-height: 1.5; }
select.input { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
@media (max-width: 900px) { .input { font-size: 16px; } }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.err { color: var(--red); font-size: 13px; font-weight: 600; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }

/* ================================================================ surfaces */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card.pad { padding: 20px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; }
.card-head h3 { font-size: 15px; flex: 1; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-height: 32px; }
.section-head h2 { font-size: 15.5px; font-weight: 700; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ico { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); }
.empty .ico svg.i { width: 26px; height: 26px; }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.empty .btn { margin-top: 16px; }

.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hero h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 12px; }

.stat { padding: 14px 16px; text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; transition: transform .12s, box-shadow .12s; color: inherit; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--tone-soft, var(--primary-soft)); color: var(--tone, var(--primary-text)); }
.stat b { display: block; font-size: 28px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: 13px; color: var(--muted); font-weight: 550; margin-top: 2px; }
.tone-blue { --tone: var(--blue); --tone-soft: var(--blue-soft); }
.tone-red { --tone: var(--red); --tone-soft: var(--red-soft); }
.tone-green { --tone: var(--green); --tone-soft: var(--green-soft); }
.tone-amber { --tone: var(--amber); --tone-soft: var(--amber-soft); }
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats > :last-child { grid-column: span 2; }
  .stat { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
  .stat b { font-size: 22px; }
  .stat span { font-size: 12px; }
  .hero h2 { font-size: 22px; }
}
.scroll { overflow-x: hidden; }
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 24px; }
@media (max-width: 1100px) { .cols { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================ logos & avatars */
.logo { display: grid; place-items: center; flex: none; overflow: hidden; color: #fff; font-weight: 700; background: var(--c, var(--primary)); width: 44px; height: 44px; border-radius: 12px; font-size: 15px; letter-spacing: .02em; }
.logo.img { background: #fff; border: 1px solid var(--border); }
.logo img { width: 100%; height: 100%; object-fit: contain; padding: 12%; display: block; }
.logo.xs { width: 18px; height: 18px; border-radius: 5px; font-size: 8px; }
.logo.xs img { padding: 6%; }
.logo.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.logo.lg { width: 76px; height: 76px; border-radius: 20px; font-size: 26px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; background: var(--c, var(--primary)); font-size: 12.5px; }
.avatar.lg { width: 60px; height: 60px; font-size: 21px; }
.avatar.xs { width: 26px; height: 26px; font-size: 10px; border: 2px solid var(--surface); }
.avatar.xxs { width: 20px; height: 20px; font-size: 8.5px; }
.avatars { display: flex; flex: none; }
.avatars .avatar + .avatar { margin-left: -8px; }

/* ================================================================ chips & meta */
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; border: 0; line-height: 20px; }
.chip svg.i { width: 13px; height: 13px; }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.indigo { background: var(--primary-soft); color: var(--primary-text); }
.chip.click { cursor: pointer; }
.chip.click:hover { filter: brightness(.97); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.meta > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.meta svg.i { width: 14px; height: 14px; }
.meta .red { color: var(--red); font-weight: 600; }
.meta .amber { color: var(--amber); font-weight: 600; }
.meta .green { color: var(--green); font-weight: 600; }
.meta .blue { color: var(--blue); font-weight: 600; }
.meta .client { color: var(--text-2); font-weight: 600; }
.badge-self { font-size: 11px; font-weight: 700; color: var(--primary-text); background: var(--primary-soft); border-radius: 6px; padding: 0 6px; line-height: 18px; }
.pill-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.pill-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-todo { background: var(--surface-3); color: var(--muted); }
.st-in_progress { background: var(--blue-soft); color: var(--blue); }
.st-done { background: var(--green-soft); color: var(--green); }

/* ================================================================ client cards */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.client-card { display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: transform .14s, box-shadow .14s, border-color .14s; }
.client-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--c) 45%, var(--border)); }
.client-card .top { display: flex; gap: 14px; align-items: center; padding: 18px 18px 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, transparent), transparent); }
.client-card h3 { font-size: 16px; font-weight: 700; }
.client-card .body { padding: 0 18px 16px; }
.progress { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: var(--c, var(--green)); }
.client-card .foot { display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); background: var(--surface-2); margin-top: auto; }
.client-card .foot svg.i { width: 14px; height: 14px; }
.add-card { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 186px; border: 2px dashed var(--border-strong); border-radius: var(--r-lg); background: none; color: var(--muted); font-weight: 600; transition: border-color .12s, color .12s, background .12s; }
.add-card:hover { border-color: var(--primary); color: var(--primary-text); background: var(--primary-soft); }
.add-card .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); margin: 0 auto 4px; }

/* client page header */
.client-hero { overflow: hidden; }
.client-hero .banner { height: 92px; background: linear-gradient(120deg, color-mix(in srgb, var(--c) 88%, #000), color-mix(in srgb, var(--c) 55%, #fff)); position: relative; }
.client-hero .banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 120px at 85% 0%, rgba(255, 255, 255, .25), transparent); }
.client-hero .inner { display: flex; gap: 18px; align-items: flex-end; padding: 0 22px 20px; margin-top: -38px; position: relative; flex-wrap: wrap; }
.client-hero .logo.lg { border: 4px solid var(--surface); box-shadow: var(--shadow-md); }
.client-hero .logo-wrap { position: relative; }
.client-hero .logo-edit { position: absolute; right: -6px; bottom: -6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); box-shadow: var(--shadow); cursor: pointer; }
.client-hero .logo-edit svg.i { width: 14px; height: 14px; }
.client-hero h2 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.client-hero .info { flex: 1; min-width: 220px; padding-bottom: 2px; }
.contact-line { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.contact-line a, .contact-line span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.contact-line a:hover { color: var(--primary-text); text-decoration: none; }
.contact-line svg.i { width: 15px; height: 15px; }
.hero-stats { display: flex; gap: 26px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); flex-wrap: wrap; }
.hero-stats div { font-size: 12.5px; color: var(--muted); }
.hero-stats b { display: block; font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .hero-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 12px 16px; } .hero-stats div { font-size: 11px; } .hero-stats b { font-size: 17px; } .client-hero .inner { padding: 0 16px 16px; } }

/* ================================================================ tabs & toolbars */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 600; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 14px; display: inline-flex; gap: 7px; align-items: center; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--primary-text); border-bottom-color: var(--primary); }
.tabs .n { font-size: 11.5px; background: var(--surface-3); color: var(--muted); border-radius: 99px; padding: 0 7px; line-height: 18px; font-variant-numeric: tabular-nums; }
.tabs button.on .n { background: var(--primary-soft); color: var(--primary-text); }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-weight: 600; color: var(--muted); white-space: nowrap; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.seg button svg.i { width: 15px; height: 15px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar select.input { width: auto; min-width: 150px; padding-top: 8px; padding-bottom: 8px; font-size: 14px; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 420px; }
.search .input { padding-left: 38px; font-size: 14px; padding-top: 9px; padding-bottom: 9px; }
.search svg.i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 17px; height: 17px; }
@media (max-width: 900px) { .search { max-width: none; flex-basis: 100%; } .toolbar select.input { flex: 1; min-width: 0; } }

/* ================================================================ tasks */
.task-list { display: flex; flex-direction: column; gap: 8px; }
.task { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; text-align: left; width: 100%; color: inherit; box-shadow: var(--shadow-sm); transition: border-color .12s, box-shadow .12s; }
.task:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.task::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--prio, transparent); }
.task.prio-urgent { --prio: var(--red); }
.task.prio-high { --prio: var(--amber); }
.task.done .task-title { text-decoration: line-through; text-decoration-color: var(--faint); color: var(--muted); }
.check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; display: grid; place-items: center; background: var(--surface); margin-top: 1px; color: transparent; transition: all .12s; padding: 0; }
button.check:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.check.on { background: var(--green); border-color: var(--green); color: #fff; }
.check.prog { border-color: var(--blue); background: conic-gradient(var(--blue) 0 50%, transparent 50% 100%); background-clip: content-box; padding: 2px; }
.check.prog svg { display: none; }
.check svg.i { width: 13px; height: 13px; stroke-width: 3.2; }
.task-main { flex: 1; min-width: 0; }
.task-title { font-weight: 600; overflow-wrap: anywhere; font-size: 14.5px; }
.task-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }

/* board */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); display: flex; flex-direction: column; min-height: 200px; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 700; font-size: 13.5px; }
.col-head .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.col-head .n { margin-left: auto; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.col-body { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; border-radius: 0 0 var(--r-lg) var(--r-lg); transition: background .12s; }
.col.drop .col-body { background: color-mix(in srgb, var(--primary) 8%, transparent); outline: 2px dashed color-mix(in srgb, var(--primary) 50%, transparent); outline-offset: -4px; }
.col-empty { text-align: center; color: var(--faint); font-size: 13px; padding: 24px 0; }
.col .task { padding: 12px; flex-wrap: wrap; row-gap: 8px; }
.col .task-main { flex-basis: calc(100% - 34px); }
.col .task-side { flex-basis: 100%; flex-direction: row; justify-content: flex-end; margin-top: -2px; }
.col .meta { flex-direction: column; align-items: flex-start; gap: 3px; }
.col .meta > span { white-space: normal; }
.col .task[draggable="true"] { cursor: grab; }
.task.dragging { opacity: .45; }

/* ================================================================ lists */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item.click { cursor: pointer; transition: background .1s; }
.list-item.click:hover { background: var(--surface-2); }
.list-item.unread { background: color-mix(in srgb, var(--primary-soft) 70%, transparent); }
.list-item.unread::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex: none; }
.mat-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); flex: none; }
.mat-icon.file { background: var(--amber-soft); color: var(--amber); }
.mat-icon.green { background: var(--green-soft); color: var(--green); }
.workload { display: flex; flex-direction: column; gap: 14px; padding: 4px 18px 18px; }
.workload .row b { font-size: 13.5px; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }

/* ================================================================ task sheet */
.props { display: grid; grid-template-columns: 130px 1fr; gap: 2px 12px; font-size: 13.5px; margin: 0; }
.props dt { color: var(--muted); display: flex; align-items: center; gap: 8px; padding: 7px 0; font-weight: 500; }
.props dt svg.i { width: 15px; height: 15px; }
.props dd { margin: 0; padding: 6px 0; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
@media (max-width: 560px) { .props { grid-template-columns: 108px 1fr; } }
.desc { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); line-height: 1.6; }
.sheet-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; margin: 10px 0 16px; }
.done-box { border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); background: var(--green-soft); border-radius: var(--r); padding: 14px 16px; }
.done-box .stamp { color: var(--green); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.sub-head { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; margin: 22px 0 10px; }

/* people picker (assignment is compulsory) */
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.person { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 99px; border: 1.5px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: 13.5px; transition: all .12s; }
.person .avatar { width: 26px; height: 26px; font-size: 10.5px; }
.person:hover { border-color: var(--primary); }
.person.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-text); }
.person.on::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat; }
.assign-box { border: 1.5px dashed var(--border-strong); border-radius: var(--r); padding: 12px; transition: border-color .15s, background .15s; }
.assign-box.invalid { border-color: var(--red); background: color-mix(in srgb, var(--red-soft) 60%, transparent); animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* attachments */
.attach-list { display: flex; flex-direction: column; gap: 6px; }
.attach-list:not(:empty) { margin-bottom: 8px; }
.attach-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-size: 13.5px; }
.link-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.link-form .input { flex: 1; min-width: 160px; }
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: var(--r); padding: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; background: var(--surface-2); }
.dropzone .hint { width: 100%; text-align: center; font-size: 12.5px; color: var(--muted); }

/* logo picker */
.logo-picker { display: flex; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); margin-bottom: 16px; }
.logo-picker .logo { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; }

/* ================================================================ modal / bottom sheet */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(10, 12, 25, .5); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 24px; animation: fade .15s; overscroll-behavior: contain; }
.modal { position: relative; background: var(--surface); width: 100%; max-width: 600px; max-height: calc(100dvh - 48px); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: pop .2s cubic-bezier(.2, .9, .3, 1.2); border: 1px solid var(--border); }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; gap: 8px; padding: 16px 16px 14px 22px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 17px; font-weight: 700; flex: 1; min-width: 0; }
.modal-body { padding: 20px 22px; overflow-y: auto; overscroll-behavior: contain; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px; padding-bottom: calc(14px + var(--safe-b)); border-top: 1px solid var(--border); flex-wrap: wrap; background: var(--surface-2); border-radius: 0 0 var(--r-xl) var(--r-xl); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes up { from { transform: translateY(100%); } }
@media (max-width: 900px) {
  .overlay { place-items: end stretch; padding: 0; }
  .modal, .modal.wide { max-width: none; max-height: 94dvh; border-radius: 22px 22px 0 0; animation: up .25s cubic-bezier(.2, .9, .3, 1); border: 0; }
  .modal-head { padding-top: 20px; }
  .modal-head::before { content: ""; position: absolute; left: 50%; top: 7px; transform: translateX(-50%); width: 38px; height: 4px; border-radius: 4px; background: var(--border-strong); }
  .modal-body { padding: 18px 16px; }
  .modal-foot { padding: 12px 16px; padding-bottom: calc(12px + var(--safe-b)); border-radius: 0; }
  .modal-foot .btn { flex: 1; }
}

/* ================================================================ notes window */
.notes-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(99, 102, 241, .7);
  transition: transform .18s cubic-bezier(.2, .9, .3, 1.3);
}
.notes-fab:hover { transform: scale(1.07); }
.notes-fab svg.i { width: 25px; height: 25px; transition: transform .2s; }
.notes-fab.open svg.i { transform: rotate(90deg); }
.notes-fab .tip { position: absolute; right: 70px; background: var(--text); color: var(--surface); font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: all .15s; pointer-events: none; }
.notes-fab:hover .tip { opacity: 1; transform: none; }
.notes-fab.open .tip { display: none; }
@media (max-width: 900px) { .notes-fab { display: none; } }
.notes-backdrop { position: fixed; inset: 0; z-index: 46; background: rgba(10, 12, 25, .45); animation: fade .15s; }
@media (min-width: 901px) { .notes-backdrop { display: none; } }
.notes-win {
  position: fixed; right: 26px; bottom: 98px; z-index: 47; width: 410px; height: min(660px, calc(100dvh - 128px));
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; animation: winpop .22s cubic-bezier(.2, .9, .3, 1.15);
}
@keyframes winpop { from { opacity: 0; transform: scale(.85) translateY(16px); } }
@media (max-width: 900px) {
  .notes-win { left: 0; right: 0; bottom: 0; width: auto; height: 92dvh; border-radius: 22px 22px 0 0; border: 0; transform-origin: bottom center; animation: up .25s cubic-bezier(.2, .9, .3, 1); padding-bottom: var(--safe-b); }
}
.notes-head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 14px 18px; background: var(--grad); color: #fff; }
.notes-head .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.notes-head b { font-size: 16px; display: block; }
.notes-head span { font-size: 12px; opacity: .85; }
.notes-head .icon-btn { color: #fff; }
.notes-head .icon-btn:hover { background: rgba(255, 255, 255, .18); }
.notes-compose { padding: 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.notes-compose textarea { width: 100%; border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 12px; min-height: 64px; max-height: 180px; resize: none; outline: none; background: var(--surface-2); font-size: 14.5px; line-height: 1.5; display: block; }
.notes-compose textarea:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.notes-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.note { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); flex: none; }
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
.note-foot { display: flex; align-items: center; gap: 4px; margin-top: 10px; flex-wrap: wrap; }
.note-foot .when { font-size: 12px; color: var(--faint); margin-right: auto; }
.note.converting { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); }
.convert { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-strong); }
.convert .input { padding: 8px 10px; font-size: 14px; }
.convert .date-quick { margin: 8px 0 12px; }
.note textarea.input { min-height: 90px; font-size: 14px; }

/* ================================================================ toasts */
#toasts { position: fixed; z-index: 80; top: calc(16px + var(--safe-t)); right: 16px; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; animation: slidein .25s cubic-bezier(.2, .9, .3, 1.2); cursor: pointer; font-size: 13.5px; }
.toast .t-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary-text); }
.toast.ok .t-ico { background: var(--green-soft); color: var(--green); }
.toast.bad .t-ico { background: var(--red-soft); color: var(--red); }
.toast .t-ico svg.i { width: 16px; height: 16px; }
.toast b { display: block; font-size: 14px; }
.toast span { color: var(--muted); }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } }
@media (max-width: 900px) { #toasts { left: 16px; right: 16px; width: auto; } }

/* ================================================================ auth */
.auth { height: 100%; overflow-y: auto; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { background: var(--sidebar-bg); color: #c9cce0; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; width: 640px; height: 640px; right: -260px; top: -220px; background: radial-gradient(closest-side, rgba(124, 92, 246, .55), transparent); }
.auth-side::after { content: ""; position: absolute; width: 520px; height: 520px; left: -220px; bottom: -240px; background: radial-gradient(closest-side, rgba(56, 120, 255, .35), transparent); }
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 14px; max-width: 460px; }
.auth-side ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; align-items: center; }
.auth-side li .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #c7c8ff; flex: none; }
.auth-main { display: grid; place-items: center; padding: 32px 24px; background: var(--bg); }
.auth-form { width: 100%; max-width: 380px; }
.auth-form .logo-sm { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 20px; }
.auth-form h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ================================================================ misc */
.banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--primary-soft); color: var(--text); margin-bottom: 18px; flex-wrap: wrap; border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent); }
.banner .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--surface); color: var(--primary-text); display: grid; place-items: center; flex: none; }
.banner.red { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 20%, transparent); }
.banner.red .ico { color: var(--red); }
.banner .grow { min-width: 180px; }
.date-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.date-quick .btn { box-shadow: none; }
.color-row { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--border); background: var(--c); padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--c); }
.deadline-item.done .grow b { text-decoration: line-through; color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }
.setting { display: flex; gap: 14px; align-items: flex-start; }
.kbd { font-size: 11px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--muted); font-family: inherit; }

/* ================================================================ progress updates */
.last-update { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; min-width: 0; }
.last-update svg.i { width: 13px; height: 13px; color: var(--blue); }
.update-box { border: 1px solid var(--border); background: var(--surface-2); border-radius: var(--r); padding: 12px; margin-bottom: 8px; }
.update-box textarea.input { min-height: 64px; }
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.feed-item:last-child { border-bottom: 0; }
.feed-item .avatar.xs { border: 0; margin-top: 1px; }
.feed-text { margin-top: 2px; overflow-wrap: anywhere; }
.feed-task { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; border: 0; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 600; border-radius: 6px; padding: 2px 8px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-task:hover { background: var(--primary-soft); color: var(--primary-text); }
