/* IQ007 · Контроль CRM — светлая деловая тема */
:root {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --ink: #1d1a2c;
  --ink-2: #48445c;
  --muted: #8b879a;
  --line: #ece8e1;
  --line-2: #e2ddd5;
  --violet: #6b4fe0;
  --violet-2: #8a6ff0;
  --violet-soft: #f1edff;
  --rose: #e2728b;
  --coral: #e2604c;
  --coral-soft: #fdeeea;
  --amber: #c98716;
  --amber-soft: #fdf3df;
  --sage: #2f9a72;
  --sage-soft: #e5f4ed;
  --slate-soft: #eef0f4;
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 22px;
  --shadow: 0 1px 2px rgba(29, 26, 44, .04), 0 8px 28px -12px rgba(29, 26, 44, .12);
  --shadow-lg: 0 2px 4px rgba(29, 26, 44, .04), 0 24px 60px -20px rgba(64, 40, 140, .22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg);
  font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(900px 480px at 92% -8%, rgba(226, 114, 139, .13), transparent 60%),
    radial-gradient(900px 520px at 8% -12%, rgba(107, 79, 224, .12), transparent 60%);
  background-repeat: no-repeat;
}
a { color: var(--violet); text-decoration: none; }
button, input { font: inherit; color: inherit; }
form { margin: 0; }
svg { width: 1em; height: 1em; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3, p { margin: 0; }
b { font-weight: 650; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 8px; }

/* ——— Top bar ——— */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 245, 242, .78); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(226, 221, 213, .6);
}
.topbar-inner { max-width: 1280px; margin: auto; height: 64px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet) 0%, var(--rose) 100%);
  color: #fff; font: 700 16px/1 var(--serif); letter-spacing: .5px;
  box-shadow: 0 8px 20px -8px rgba(107, 79, 224, .7), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 16px; letter-spacing: -.2px; }
.brand-text small { font-size: 12px; color: var(--muted); }
.identity { display: flex; align-items: center; gap: 12px; }
.who { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.who b { font-size: 14px; }
.who small { font-size: 12px; color: var(--muted); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #efe9ff, #fde5ea); color: var(--violet); font: 600 15px/1 var(--serif);
  box-shadow: inset 0 0 0 1px rgba(107, 79, 224, .12);
}
.identity .avatar { order: 2; }
.identity form { order: 3; }
.icon-button {
  width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface);
  display: grid; place-items: center; color: var(--muted); cursor: pointer; transition: .2s;
}
.icon-button svg { width: 18px; height: 18px; }
.icon-button:hover { color: var(--ink); border-color: var(--ink-2); }

/* ——— Page ——— */
.page { max-width: 1280px; margin: 0 auto; padding: 26px 28px 40px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .4px;
  color: var(--ink-2); background: rgba(255, 255, 255, .7); border: 1px solid var(--line); padding: 6px 12px 6px 10px; border-radius: 99px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--rose)); }
.lead { color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 620px; }
.lead.small { font-size: 15px; }
.t-coral { color: var(--coral); } .t-amber { color: var(--amber); } .t-sage { color: var(--sage); }
.fine { font-size: 12px; color: var(--muted); }
.center { text-align: center; justify-content: center; }

.banner {
  padding: 9px 14px; margin-bottom: 14px; border-radius: 12px; font-size: 13px;
  background: var(--amber-soft); color: #7a5414; border: 1px solid #f6e3b8;
}
.banner.demo { background: var(--violet-soft); color: #4a35a8; border-color: #e1d8ff; }
.banner.error { background: var(--coral-soft); color: #a3392a; border-color: #f8d7cf; margin: 18px 0 0; }

/* ——— Buttons ——— */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap;
  border: 0; border-radius: 14px; padding: 12px 18px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.button svg { width: 17px; height: 17px; }
.primary {
  color: #fff; background: linear-gradient(135deg, #5b3fd6 0%, var(--violet-2) 100%);
  box-shadow: 0 10px 24px -10px rgba(91, 63, 214, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(91, 63, 214, .8), inset 0 1px 0 rgba(255, 255, 255, .22); }
.primary:active { transform: none; }
.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.ghost:hover { border-color: var(--violet); color: var(--violet); }
.wide { width: 100%; }
.big { padding: 15px 20px; font-size: 15px; }

/* ——— Top line ——— */
.topline { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.greet h1 { font: 500 34px/1.1 var(--serif); letter-spacing: -.8px; }
.greet p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.greet h1 em, .auth h1 em, .art-copy em {
  font-style: italic; background: linear-gradient(100deg, var(--violet) 10%, var(--rose) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em;
}
.controls { display: flex; align-items: center; gap: 12px; flex: none; }
.periods {
  display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.periods a { padding: 7px 13px; border-radius: 10px; color: var(--ink-2); font-size: 13px; font-weight: 550; white-space: nowrap; transition: .2s; }
.periods a:hover { color: var(--ink); background: #f6f3ee; }
.periods a.on { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(29, 26, 44, .7); }
.status {
  display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.status-text { display: flex; flex-direction: column; line-height: 1.2; }
.status-text b { font-size: 13px; white-space: nowrap; }
.status-text small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.status .icon-button { width: 34px; height: 34px; border: 0; background: var(--violet-soft); color: var(--violet); }
.status .icon-button:hover { background: var(--violet); color: #fff; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); position: relative; flex: none; }
.pulse.success { background: var(--sage); }
.pulse.running, .pulse.queued { background: var(--violet); }
.pulse.failed { background: var(--coral); }
.pulse.success::after, .pulse.running::after, .pulse.queued::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid currentColor; opacity: 0;
  animation: ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}
.pulse.success::after { color: var(--sage); }
.pulse.running::after, .pulse.queued::after { color: var(--violet); }
@keyframes ping { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }

/* ——— Cards ——— */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; }
.card h2, .team-head h2 { font: 500 20px/1.2 var(--serif); letter-spacing: -.3px; }
.card h2 small, .team-head h2 small { font: 400 13px var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.card-foot { font-size: 11px; color: var(--muted); margin-top: 10px; line-height: 1.5; }

/* ——— Views ——— */
.views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.view {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; color: var(--ink);
  background: rgba(255, 255, 255, .6); border: 1px solid var(--line); transition: background .2s, box-shadow .2s, border-color .2s;
}
.view:hover { background: #fff; box-shadow: var(--shadow); }
.view.on { background: #fff; border-color: transparent; box-shadow: 0 0 0 2px var(--violet), var(--shadow-lg); }
.view-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.view-icon svg { width: 20px; height: 20px; }
.v-quality { background: var(--violet-soft); color: var(--violet); }
.v-renew { background: var(--sage-soft); color: var(--sage); }
.v-risk { background: var(--coral-soft); color: var(--coral); }
.view-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.view-text b { font-size: 15px; }
.view-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-count {
  margin-left: auto; min-width: 30px; padding: 3px 9px; border-radius: 99px; text-align: center;
  font: 700 13px/1.3 var(--sans); color: #fff; background: var(--coral); font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 14px -6px rgba(226, 96, 76, .7);
}

/* ——— Team ——— */
.team { padding: 0; margin-bottom: 18px; overflow: hidden; }
.team-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 20px 10px; }
.hint { font-size: 12px; color: var(--muted); }
.team table { width: 100%; border-collapse: collapse; font-size: 14px; }
.team th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .3px; color: var(--muted);
  padding: 6px 12px 8px; border-bottom: 1px solid var(--line);
}
.team td { padding: 6px 12px; border-bottom: 1px solid var(--line); }
.team tr:last-child td { border-bottom: 0; }
.team th:first-child, .team td:first-child { padding-left: 20px; }
.team th:last-child, .team td:last-child { padding-right: 20px; }
.team tbody tr { transition: background .15s; }
.team tbody tr:hover { background: #fbfaf7; }
.team tr.on { background: var(--violet-soft); }
.team .num { text-align: right; width: 1%; white-space: nowrap; }
.bar-col { width: 32%; }
.who-cell { display: flex; align-items: center; gap: 10px; color: var(--ink); padding: 2px 0; }
.who-cell b { font-weight: 600; white-space: nowrap; }
.who-cell:hover b { color: var(--violet); }
.avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.avatar.num { font: 600 11px/1 var(--sans); }
.nobody .avatar { background: #f2efea; color: var(--muted); box-shadow: none; }
.nobody .who-cell b { color: var(--ink-2); }
.stack { display: block; width: 100%; height: 6px; }
.m-track { fill: #f2efea; }
.s-coral { fill: var(--coral); } .s-amber { fill: #e8b14a; } .s-sage { fill: var(--sage); } .s-slate { fill: #b9bfcc; }
.n {
  display: inline-block; min-width: 44px; padding: 3px 9px; border-radius: 8px; text-align: center;
  font: 650 13px/1.35 var(--sans); font-variant-numeric: tabular-nums;
}
.n.coral { background: var(--coral-soft); color: #b8432f; }
.n.amber { background: var(--amber-soft); color: #9a6408; }
.n.sage { background: var(--sage-soft); color: #23795a; }
.n.slate { background: var(--slate-soft); color: #5c6478; }
.n.zero { background: transparent; color: #c4bfcb; }
.muted-num { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ——— Workspace ——— */
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.side { display: grid; gap: 18px; position: sticky; top: 90px; }

/* List */
.list { padding: 0; overflow: hidden; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px;
  color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s;
}
.tab span {
  padding: 1px 8px; border-radius: 99px; font-size: 12px; font-variant-numeric: tabular-nums;
  background: #f3f0eb; color: var(--ink-2);
}
.tab:hover { background: #f8f6f2; color: var(--ink); }
.tab.on { color: var(--ink); }
.tab.coral.on { background: var(--coral-soft); } .tab.coral.on span { background: var(--coral); color: #fff; }
.tab.amber.on { background: var(--amber-soft); } .tab.amber.on span { background: #d8961f; color: #fff; }
.tab.sage.on { background: var(--sage-soft); } .tab.sage.on span { background: var(--sage); color: #fff; }
.tab.slate.on { background: var(--slate-soft); } .tab.slate.on span { background: #6b7385; color: #fff; }
.search { position: relative; width: 280px; max-width: 100%; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search input { padding: 9px 12px 9px 38px; font-size: 13px; border-radius: 12px; }
input {
  width: 100%; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--line-2); background: #fcfbf9;
  font-size: 14px; transition: border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder { color: #aba7b6; }
input:focus { outline: 0; border-color: var(--violet-2); background: #fff; box-shadow: 0 0 0 4px rgba(107, 79, 224, .12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fcfbf9; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 99px;
  background: var(--violet-soft); color: #4b34b0; font-size: 13px; font-weight: 550; white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; opacity: .7; }
.chip:hover svg { opacity: 1; }

.finding { border-bottom: 1px solid var(--line); position: relative; }
.finding:last-child { border-bottom: 0; }
.finding::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; transition: background .2s; }
.finding.warning:hover::before, .finding.warning[open]::before { background: var(--coral); }
.finding.question:hover::before, .finding.question[open]::before, .finding.unknown:hover::before { background: #e8b14a; }
.finding.fixed:hover::before, .finding.fixed[open]::before { background: var(--sage); }
.finding:hover, .finding[open] { background: #fcfbf9; }
.finding > summary {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 11px 16px; cursor: pointer; list-style: none;
}
.finding > summary::-webkit-details-marker { display: none; }
.kind { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--slate-soft); color: var(--ink-2); }
.kind svg { width: 17px; height: 17px; }
.finding.warning .kind { background: var(--coral-soft); color: var(--coral); }
.finding.question .kind, .finding.unknown .kind { background: var(--amber-soft); color: var(--amber); }
.finding.fixed .kind { background: var(--sage-soft); color: var(--sage); }
.f-main { min-width: 0; }
.f-title { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-meta { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finding.fixed .f-title { color: var(--ink-2); }
.f-side { display: flex; align-items: center; gap: 12px; }
.f-owner { font-size: 12px; color: var(--ink-2); background: #f3f0eb; padding: 3px 9px; border-radius: 99px; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.f-age { font-size: 12px; color: var(--muted); white-space: nowrap; min-width: 56px; text-align: right; }
.crm-link {
  display: inline-flex; align-items: center; gap: 3px; padding: 4px 8px; border-radius: 8px;
  font-size: 12px; font-weight: 650; color: var(--violet); background: var(--violet-soft); opacity: .0; transition: opacity .15s;
}
.crm-link svg { width: 13px; height: 13px; }
.finding:hover .crm-link, .finding[open] .crm-link, .crm-link:focus-visible { opacity: 1; }
.crm-link:hover { background: var(--violet); color: #fff; }
.badge { font-size: 12px; font-weight: 600; white-space: nowrap; padding: 3px 10px; border-radius: 99px; }
.badge.warning { color: #b8432f; background: var(--coral-soft); }
.badge.question { color: #9a6408; background: var(--amber-soft); }
.badge.unknown { color: #5c6478; background: var(--slate-soft); }
.chev { width: 18px; height: 18px; color: var(--muted); transition: transform .25s; }
.finding[open] .chev { transform: rotate(180deg); }
.f-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 2px 16px 18px 64px; animation: reveal .2s ease; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.f-body h3 { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.f-body dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 5px 16px; margin: 0 0 10px; font-size: 14px; }
.f-body dt { color: var(--muted); }
.f-body dd { margin: 0; overflow-wrap: anywhere; }
.f-body p { font-size: 14px; color: var(--ink-2); }
.f-body .fine { font-size: 12px; color: var(--muted); }
.todo { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.todo p { margin-bottom: 14px; color: var(--ink); }
.todo .button { padding: 9px 13px; font-size: 13px; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 20px; gap: 6px; }
.empty-art { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 8px; background: var(--sage-soft); color: var(--sage); }
.empty-art svg { width: 30px; height: 30px; }
.empty b { font: 500 21px var(--serif); }
.empty p { font-size: 14px; color: var(--muted); max-width: 420px; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pager a { font-weight: 600; padding: 7px 12px; border-radius: 10px; }
.pager a:hover { background: var(--violet-soft); }

/* Side */
.reasons { margin: 0 0 12px; padding-left: 18px; font-size: 14px; display: grid; gap: 3px; }
.rules { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.rules li { display: flex; gap: 10px; }
.dot-l { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 5px; }
.dot-l.coral { background: var(--coral); } .dot-l.amber { background: #e8b14a; } .dot-l.slate { background: #9aa1b1; }
.types-card h2, .chart-card h2 { margin-bottom: 10px; }
.type { display: block; padding: 8px 10px; margin: 0 -10px; border-radius: 12px; color: var(--ink); transition: background .2s; }
.type:hover, .type.on { background: #f8f6f2; }
.type.on { box-shadow: inset 0 0 0 1px var(--line-2); }
.type-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.type-title { font-size: 13px; font-weight: 550; line-height: 1.35; }
.type-row b { font: 650 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.meter { display: block; width: 100%; height: 4px; }
.type.warning .m-fill { fill: var(--coral); }
.type.question .m-fill, .type.unknown .m-fill { fill: #e8b14a; }
.calm { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 10px; color: var(--muted); font-size: 13px; }
.calm svg { width: 32px; height: 32px; color: var(--sage); }
.calm b { color: var(--ink); font: 500 18px var(--serif); }
.legend { display: flex; gap: 12px; font-size: 11px; color: var(--ink-2); margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.lg-new::before { background: var(--violet); }
.lg-fixed::before { background: var(--sage); }
.chart { height: 120px; }
.cols { height: 100%; display: flex; gap: 1px; align-items: stretch; border-bottom: 1px solid var(--line-2); padding-bottom: 0; }
.col { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
.col svg { width: 100%; height: 0; flex: 1 1 auto; overflow: visible; }
.col span { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart.hours .col:not(:nth-child(6n+1)) span, .chart.days .col:not(:nth-child(5n+1)) span { display: none; }
.chart + .card-foot { margin-top: 26px; }
.b-new { fill: var(--violet); } .b-fixed { fill: var(--sage); }
.col:hover .b-new { fill: var(--violet-2); }
.col.future svg { opacity: .25; }
.about { font-size: 13px; color: var(--ink-2); padding: 0 4px; }
.about summary { cursor: pointer; color: var(--muted); font-weight: 550; }
.about summary:hover { color: var(--ink); }
.about div { margin-top: 10px; display: grid; gap: 8px; line-height: 1.6; }
.foot { margin-top: 26px; font-size: 12px; color: #aaa5b3; }


/* ——— Auth ——— */
body.auth { background: #f4f1ec; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.auth-page { align-content: center; gap: 16px; }
.auth-page > .banner { margin: 0; width: min(1080px, 100%); text-align: center; }
.auth-wrap {
  width: min(1080px, 100%); min-height: 640px; display: grid; grid-template-columns: 1.15fr 1fr;
  background: var(--surface); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
}
.auth-art {
  position: relative; overflow: hidden; padding: 40px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, #f6f1ff 0%, #fdf0f2 55%, #fff6ec 100%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .85; }
.o1 { width: 340px; height: 340px; right: -90px; top: -80px; background: radial-gradient(circle at 30% 30%, #b9a6ff, rgba(185, 166, 255, 0) 70%); animation: drift 14s ease-in-out infinite alternate; }
.o2 { width: 280px; height: 280px; left: -80px; bottom: 40px; background: radial-gradient(circle at 60% 40%, #ffc1cf, rgba(255, 193, 207, 0) 70%); animation: drift 18s ease-in-out infinite alternate-reverse; }
.o3 { width: 200px; height: 200px; right: 60px; bottom: -60px; background: radial-gradient(circle, #ffe0b0, rgba(255, 224, 176, 0) 70%); animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(24px, 18px) scale(1.06); } }
.auth-art > :not(.orb) { position: relative; }
.art-copy h2 { font: 500 40px/1.1 var(--serif); letter-spacing: -1px; margin-bottom: 26px; }
.art-copy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.art-copy li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }
.art-copy li svg {
  width: 34px; height: 34px; padding: 8px; border-radius: 11px; color: var(--violet);
  background: rgba(255, 255, 255, .75); box-shadow: 0 4px 12px -6px rgba(107, 79, 224, .4);
}
.art-float { position: relative; height: 130px; }
.float-card {
  position: absolute; display: flex; flex-direction: column; gap: 4px; width: 230px; padding: 14px 16px;
  background: rgba(255, 255, 255, .9); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(64, 40, 140, .35);
  backdrop-filter: blur(6px); animation: float 6s ease-in-out infinite;
}
.float-card .badge { align-self: flex-start; font-size: 11px; }
.float-card b { font-size: 14px; }
.float-card small { font-size: 12px; color: var(--muted); }
.fc1 { left: 0; top: 0; transform: rotate(-2deg); }
.fc2 { left: 200px; top: 46px; animation-delay: -3s; }
@keyframes float { 50% { translate: 0 -8px; } }
.auth-card { padding: 56px 52px; display: flex; flex-direction: column; justify-content: center; }
.auth-card > .eyebrow { align-self: flex-start; }
.auth-card h1 { font: 500 42px/1.1 var(--serif); letter-spacing: -1px; margin: 22px 0 10px; }
.auth-card form { margin-top: 26px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 16px; }
label input { margin-top: 7px; padding: 14px 16px; }
.auth-card .button { margin-top: 8px; }
.auth-card .fine { display: flex; align-items: center; gap: 6px; margin-top: 22px; }
.auth-card .fine svg { width: 15px; height: 15px; color: var(--sage); }

.error-card { max-width: 520px; margin: 40px auto; text-align: center; padding: 48px 36px; }
.error-code { font: 500 84px/1 var(--serif); background: linear-gradient(120deg, var(--violet), var(--rose)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-card h1 { font: 500 30px var(--serif); margin: 12px 0 8px; }
.error-card .lead { margin: 0 auto 24px; }

/* ——— Responsive ——— */
.short { display: none; }
.tab i { font-style: normal; }
@media (max-width: 1100px) {
  .topline { flex-direction: column; align-items: stretch; gap: 14px; }
  .controls { justify-content: space-between; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; grid-template-columns: 1fr 1fr; }
  .about { grid-column: 1 / -1; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { min-height: 300px; }
  .art-float { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .topbar-inner { height: 60px; padding: 0 14px; }
  .brand-text small, .who { display: none; }
  .page { padding: 18px 12px 28px; }
  .greet h1 { font-size: 26px; }
  .greet p { font-size: 14px; }
  .controls { flex-direction: column; align-items: stretch; gap: 8px; }
  .periods { display: flex; }
  .periods a { flex: 1; text-align: center; padding: 7px 4px; }
  .status { justify-content: flex-start; }
  .status .icon-button { margin-left: auto; }
  .team-head { flex-direction: column; gap: 2px; padding: 14px 14px 8px; }
  .team th:first-child, .team td:first-child { padding-left: 14px; }
  .team th:last-child, .team td:last-child { padding-right: 14px; }
  .team th, .team td { padding-left: 6px; padding-right: 6px; }
  .bar-col, .team th:last-child, .team td:last-child { display: none; }
  .team th:nth-last-child(3), .team td:nth-last-child(3) { padding-right: 14px; }
  .who-cell b { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  .n { min-width: 34px; padding: 2px 6px; font-size: 12px; }
  .list-head { flex-direction: column; align-items: stretch; padding: 10px; gap: 10px; }
  .full { display: none; }
  .short { display: inline; }
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .tab { justify-content: center; padding: 7px 4px; font-size: 13px; gap: 5px; }
  .team th.num { text-align: center; font-size: 13px; }
  .team td.num { text-align: center; }
  .search { width: 100%; }
  .finding > summary { grid-template-columns: auto 1fr auto; padding: 11px 12px; gap: 10px; }
  .f-owner, .chev { display: none; }
  .crm-link { opacity: 1; padding: 4px 6px; }
  .f-side { gap: 8px; }
  .f-title { white-space: normal; }
  .f-body { grid-template-columns: 1fr; padding: 0 12px 16px; gap: 14px; }
  .side { grid-template-columns: 1fr; }
  .views { gap: 6px; }
  .view { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; }
  .view-text small { display: none; }
  .view-text b { font-size: 13px; }
  .view-icon { width: 30px; height: 30px; border-radius: 10px; }
  .view-icon svg { width: 16px; height: 16px; }
  .view-count { position: absolute; top: 8px; right: 8px; min-width: 24px; padding: 2px 7px; font-size: 11px; }
  .periods a { font-size: 12px; }
  .auth-page { padding: 12px; }
  .auth-art { padding: 28px; min-height: 0; }
  .art-copy h2 { font-size: 30px; }
  .auth-card { padding: 34px 26px; }
  .auth-card h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
