@font-face { font-family: 'Oswald'; font-weight: 600; font-display: swap; src: url(/fonts/oswald-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'Oswald'; font-weight: 600; font-display: swap; src: url(/fonts/oswald-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0400-04FF; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(/fonts/manrope-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(/fonts/manrope-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0400-04FF; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(/fonts/manrope-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(/fonts/manrope-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0400-04FF; }
:root { --bg: #07080a; --bg-2: #0e1013; --bg-3: #15181c; --ink: #eef1f4; --muted: #949ca7; --dim: #5f6772; --line: rgba(255,255,255,.08); --accent: #3fe0c5; --warm: #f0a560; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.5 'Manrope', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2 { font-family: 'Oswald', sans-serif; font-weight: 600; text-transform: uppercase; margin: 0; letter-spacing: .02em; }
p { margin: 0; }
.app { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); padding: 24px 16px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0 8px; }
.logo-mark { width: 24px; height: 24px; }
.logo span { font: 600 18px/1 'Oswald', sans-serif; letter-spacing: .18em; }
.side nav { display: grid; gap: 2px; }
.side nav a { padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 700; }
.side nav a.is-on { background: var(--bg-3); color: var(--ink); }
.side nav a[aria-disabled] { pointer-events: none; opacity: .55; }
.side-demo { margin-top: auto; font-size: 12px; color: var(--dim); padding: 0 8px; }
.main { padding: 28px clamp(16px, 3vw, 36px) 48px; min-width: 0; }
.bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.hello { color: var(--muted); font-weight: 700; }
.bar h1 { font-size: 34px; margin-top: 4px; }
.bar-actions { display: flex; gap: 10px; align-items: center; }
.chip { font-weight: 700; font-size: 12px; text-decoration: none; color: var(--muted); padding: 8px 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; background: var(--ink); color: #050607; font: 700 12px/1 'Manrope', sans-serif; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform 140ms cubic-bezier(.23,1,.32,1); }
.btn:active { transform: scale(.97); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 11px; }
.btn--ghost { background: none; color: var(--ink); border-color: rgba(255,255,255,.18); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 18px 20px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.kpi p { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.kpi b { display: flex; align-items: baseline; gap: 6px; font: 600 36px/1.1 'Oswald', sans-serif; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 14px; color: var(--muted); }
.kpi--hot { border-color: rgba(63,224,197,.5); box-shadow: 0 0 30px -10px rgba(63,224,197,.5); }
.kpi--hot b { color: var(--accent); }
.grid { display: grid; grid-template-columns: 340px 1fr; grid-template-rows: auto auto; gap: 16px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; }
.card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.card h2 { font-size: 18px; }
.leads { grid-row: span 2; }
.count { min-width: 24px; height: 24px; border-radius: 12px; background: var(--accent); color: #04140f; font-weight: 800; font-size: 12px; display: grid; place-items: center; padding: 0 6px; }
.count:empty { display: none; }
.legend { color: var(--dim); font-size: 12px; }
.leads ul, .sms ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lead { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 4px; background: var(--bg); }
.lead p { color: var(--muted); }
.lead-top { display: flex; justify-content: space-between; align-items: center; }
.lead-when { color: var(--ink) !important; }
.lead-meta { font-size: 12px; color: var(--accent) !important; }
.lead.is-new { border-color: rgba(63,224,197,.45); }
.lead.is-flash { animation: flash 1.6s cubic-bezier(.23,1,.32,1) 2; }
@keyframes flash { 30% { box-shadow: 0 0 0 4px rgba(63,224,197,.35), 0 0 40px rgba(63,224,197,.3); } }
.lead-actions { display: flex; gap: 8px; margin-top: 8px; }
.tag { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; }
.tag--new { background: var(--accent); border-color: var(--accent); color: #04140f; }
.empty { color: var(--dim); font-size: 13px; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.cal-grid { display: grid; grid-template-columns: 48px repeat(6, minmax(90px, 1fr)); grid-template-rows: auto calc(10 * 44px); column-gap: 6px; overflow-x: auto; }
.cal-h { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding-bottom: 8px; display: flex; gap: 6px; align-items: baseline; }
.cal-h b { font: 600 18px/1 'Oswald', sans-serif; color: var(--ink); }
.cal-h.is-today b { color: var(--accent); }
.cal-times { display: grid; grid-template-rows: repeat(10, 44px); font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.cal-col { position: relative; border-radius: 10px; background: repeating-linear-gradient(to bottom, transparent 0 43px, var(--line) 43px 44px); }
.cal-col::after { content: ''; position: absolute; left: 0; right: 0; top: calc(var(--open) * 44px); bottom: 0; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,255,255,.03) 6px 12px); border-radius: 0 0 10px 10px; }
.cal-col.is-today { background-color: rgba(63,224,197,.04); }
.ev { position: absolute; left: calc(3px + (100% - 6px) * var(--k, 0) / var(--n, 1)); width: calc((100% - 6px) / var(--n, 1) - 2px); top: calc(var(--s) * 44px + 2px); height: calc(var(--l) * 44px - 4px); border-radius: 8px; padding: 6px 8px; font-size: 11px; overflow: hidden; background: #1c2128; border-left: 3px solid var(--muted); z-index: 1; }
.ev b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev span { color: var(--muted); }
.ev--ceramic { border-left-color: var(--accent); }
.ev--polish { border-left-color: #8fb7ff; }
.ev--full { border-left-color: var(--warm); }
.ev.is-new { background: rgba(63,224,197,.16); box-shadow: 0 0 0 1px rgba(63,224,197,.6); }
.sms li { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sms li:last-child { border-bottom: 0; }
.sms .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); margin-top: 6px; }
.sms li.is-fresh .dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.sms time { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #050607; padding: 12px 18px; border-radius: 999px; font-weight: 700; transition: opacity 250ms, transform 250ms cubic-bezier(.23,1,.32,1); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1100px) { .grid { grid-template-columns: 1fr; } .leads { grid-row: auto; } .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .app { grid-template-columns: 1fr; } .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); } .side nav, .side-demo { display: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
