@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../../vendor/fonts/inter-cyrillic.de93fdc85e3d.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../../vendor/fonts/inter-latin.260c81a4759b.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0A0C12;
  --bg2: #0E111B;
  --surface: #141826;
  --surface-2: #1A1F30;
  --surface-3: #222840;
  --text: #ECEFF7;
  --muted: #8C95AC;
  --faint: #5B6378;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.045);
  --cyan: #38E0C4;
  --cyan-deep: #16B79B;
  --cyan-soft: rgba(56, 224, 196, 0.12);
  --orange: #FF7A33;
  --orange-soft: rgba(255, 122, 51, 0.13);
  --red: #F2555A;
  --green: #3DD68C;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
  --shadow-sm: 0 8px 24px -16px rgba(0, 0, 0, 0.8);
  --r: 14px;
  --r-sm: 10px;
  --sidebar: 248px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --c-sky: #5AB8FF; --c-violet: #A78BFA; --c-amber: #FBBF24; --c-pink: #F472B6; --c-orange: #FF7A33; --c-teal: #38E0C4; --c-green: #3DD68C; --c-red: #F2555A; --c-slate: #8C95AC;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #F4F6FB;
  --bg2: #EDF0F7;
  --surface: #FFFFFF;
  --surface-2: #F6F8FC;
  --surface-3: #E9EDF6;
  --text: #121626;
  --muted: #5B6478;
  --faint: #8D95A8;
  --line: rgba(15, 23, 42, 0.09);
  --line-2: rgba(15, 23, 42, 0.05);
  --cyan: #0FA68C;
  --cyan-deep: #0B8A74;
  --cyan-soft: rgba(15, 166, 140, 0.1);
  --orange: #E8661C;
  --orange-soft: rgba(232, 102, 28, 0.1);
  --shadow: 0 24px 50px -30px rgba(15, 23, 42, 0.35);
  --shadow-sm: 0 6px 18px -12px rgba(15, 23, 42, 0.3);
  --c-sky: #1E88E5; --c-violet: #7C5CE0; --c-amber: #C98A04; --c-pink: #D9468F; --c-orange: #E8661C; --c-teal: #0FA68C; --c-green: #17A35E; --c-red: #DC3A40; --c-slate: #5B6478;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01", "tnum";
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 750; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
[x-cloak] { display: none !important; }
::selection { background: var(--cyan); color: #04130F; }

.ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }

.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--bg2); border-right: 1px solid var(--line);
  padding: 18px 14px; display: flex; flex-direction: column; gap: 6px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 18px; font-weight: 800; letter-spacing: 0.03em; font-size: 17px; }
.brand svg { width: 30px; height: 30px; }
.brand small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); padding: 14px 12px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px;
  color: var(--muted); font-weight: 550; transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.on { background: var(--cyan-soft); color: var(--cyan); }
.nav-link .count { margin-left: auto; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 7px; }
.sidebar .spacer { flex: 1; }
.side-new { margin: 4px 0 10px; }
.user-box { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.user-box .who { font-weight: 600; font-size: 13px; }
.user-box .who small { display: block; color: var(--muted); font-weight: 500; }
.user-box .actions { margin-left: auto; display: flex; gap: 2px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px;
  padding: 14px 28px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2);
}
.search-btn {
  display: flex; align-items: center; gap: 10px; width: min(460px, 100%); padding: 9px 14px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; text-align: left;
}
.search-btn:hover { border-color: color-mix(in srgb, var(--cyan) 40%, var(--line)); }
.search-btn kbd { margin-left: auto; }
kbd { font: 600 11px var(--font); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.topbar .grow { flex: 1; }
.page { padding: 26px 28px 80px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .sub { color: var(--muted); margin-top: 6px; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.crumbs a:hover { color: var(--cyan); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 13.5px; cursor: pointer; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--text) 18%, transparent); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, var(--cyan), var(--cyan-deep)); border-color: transparent; color: #04130F; box-shadow: 0 10px 24px -14px var(--cyan); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.accent { background: linear-gradient(135deg, var(--orange), #E85C12); border-color: transparent; color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: color-mix(in srgb, var(--red) 12%, transparent); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.btn.sm { padding: 6px 10px; font-size: 12.5px; border-radius: 9px; }
.btn.icon { padding: 8px; }
.btn.icon.sm { padding: 6px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 0; }
.card-head .muted { font-size: 13px; }
.card-body { padding: 16px 20px 20px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mono { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack.tight { gap: 8px; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); align-items: start; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi .label { color: var(--muted); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kpi .value { font-size: 28px; font-weight: 750; letter-spacing: -0.02em; margin-top: 8px; }
.kpi .meta { margin-top: 6px; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kpi .glow { position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; filter: blur(30px); opacity: .25; }
.kpi .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); }
.delta { font-weight: 700; font-size: 12px; padding: 1px 7px; border-radius: 99px; }
.delta.up { color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.delta.down { color: var(--red); background: color-mix(in srgb, var(--red) 14%, transparent); }

.badge {
  --c: var(--c-slate);
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 650;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.c-sky { --c: var(--c-sky); } .c-violet { --c: var(--c-violet); } .c-amber { --c: var(--c-amber); } .c-pink { --c: var(--c-pink); } .c-orange { --c: var(--c-orange); } .c-teal { --c: var(--c-teal); } .c-green { --c: var(--c-green); } .c-red { --c: var(--c-red); } .c-slate { --c: var(--c-slate); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--muted); font-weight: 550; }
.chip.mat { color: var(--text); }
.chip.mat i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.avatar {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
  font-weight: 750; font-size: 13px; color: #04130F; background: linear-gradient(135deg, var(--cyan), #7FD3FF);
}
.avatar.lg { width: 60px; height: 60px; border-radius: 18px; font-size: 20px; }
.avatar.company { background: linear-gradient(135deg, var(--orange), #FFC15E); }

.input, .select, .textarea {
  width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { resize: vertical; min-height: 64px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
input[type="color"].input { padding: 3px; height: 38px; }
.checkbox { width: 18px; height: 18px; accent-color: var(--cyan); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field .help { font-size: 12px; color: var(--faint); }
.field .err { font-size: 12px; color: var(--red); }
.field.check { flex-direction: row; align-items: center; gap: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.errorlist { color: var(--red); margin: 0; padding: 0; list-style: none; font-size: 12.5px; }

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.tab { padding: 7px 13px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; display: flex; align-items: center; gap: 7px; }
.tab:hover { color: var(--text); }
.tab.on { background: var(--surface-3); color: var(--text); }
.tab .n { font-size: 11px; color: var(--faint); font-weight: 700; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 150px; }
.toolbar .search { position: relative; flex: 1; min-width: 220px; }
.toolbar .search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.toolbar .search .input { padding-left: 38px; width: 100%; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 650; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th a { display: inline-flex; gap: 4px; align-items: center; }
.table th a:hover { color: var(--text); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tr.link { cursor: pointer; }
.table tfoot td { font-weight: 700; border-top: 1px solid var(--line); border-bottom: none; }
.table .title { font-weight: 600; }
.table .sub { color: var(--muted); font-size: 12.5px; }
.cell-client { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.cell-client .avatar { width: 32px; height: 32px; border-radius: 10px; font-size: 12px; }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 14px; align-items: start; scroll-snap-type: x proximity; }
.col { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; max-height: calc(100vh - 190px); scroll-snap-align: start; }
.col-head { padding: 13px 14px 10px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-2); }
.col-head .name { font-weight: 700; font-size: 13.5px; }
.col-head .n { color: var(--faint); font-weight: 700; font-size: 12px; }
.col-head .sum { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 600; }
.col-head .bar { width: 4px; height: 16px; border-radius: 3px; background: var(--c); }
.col-body { padding: 10px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 80px; flex: 1; }
.col.lost-drop { border-style: dashed; border-color: color-mix(in srgb, var(--c-red) 45%, transparent); background: color-mix(in srgb, var(--c-red) 5%, var(--bg2)); }
.col.lost-drop .col-body { min-height: 120px; align-items: center; justify-content: center; color: var(--c-red); font-weight: 600; text-align: center; }
.col.lost-drop .hint { display: flex; flex-direction: column; gap: 8px; align-items: center; font-size: 13px; opacity: .85; }
.kcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 12px; cursor: grab; position: relative;
  transition: border-color .15s, transform .15s, box-shadow .15s; box-shadow: var(--shadow-sm);
}
.kcard:hover { border-color: color-mix(in srgb, var(--cyan) 45%, var(--line)); transform: translateY(-1px); }
.kcard .thumb { height: 108px; border-radius: 9px; margin: -2px -2px 10px; background: radial-gradient(circle at 50% 40%, var(--surface-3), var(--bg2)); overflow: hidden; display: grid; place-items: center; }
.kcard .thumb img { width: 100%; height: 100%; object-fit: contain; }
.kcard .t { font-weight: 650; line-height: 1.3; }
.kcard .c { color: var(--muted); font-size: 12.5px; margin-top: 3px; display: flex; gap: 6px; align-items: center; }
.kcard .f { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.kcard .price { margin-left: auto; font-weight: 750; }
.kcard .num { position: absolute; top: 10px; right: 12px; font-size: 11px; color: var(--faint); font-weight: 650; }
.kcard.overdue { border-color: color-mix(in srgb, var(--red) 55%, var(--line)); }
.sortable-ghost { opacity: .35; }
.sortable-chosen { box-shadow: 0 20px 40px -18px rgba(0,0,0,.7); }
.sortable-drag { transform: rotate(2deg); }
.col.drop-hover { border-color: var(--cyan); }

.timeline { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 9px 0; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 13px; top: 34px; bottom: -6px; width: 1px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.tl-ico.status { color: var(--cyan); }
.tl-ico.payment { color: var(--green); }
.tl-ico.file { color: var(--c-violet); }
.tl-ico.call, .tl-ico.message { color: var(--orange); }
.tl-text { font-size: 13.5px; white-space: pre-line; }
.tl-meta { font-size: 12px; color: var(--faint); margin-top: 2px; }

.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.file {
  border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); overflow: hidden; position: relative;
  display: flex; flex-direction: column; transition: border-color .15s, transform .15s;
}
.file:hover { border-color: color-mix(in srgb, var(--cyan) 50%, var(--line)); transform: translateY(-1px); }
.file .pv { aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 35%, var(--surface-3), var(--bg2)); display: grid; place-items: center; color: var(--faint); position: relative; }
.file .pv img { width: 100%; height: 100%; object-fit: cover; }
.file .pv img.contain { object-fit: contain; padding: 6px; }
.file .pv .ext { position: absolute; left: 8px; top: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: color-mix(in srgb, var(--bg) 75%, transparent); color: var(--text); backdrop-filter: blur(6px); }
.file .pv .ext.model { color: var(--cyan); }
.file .pv .play3d { position: absolute; inset: auto 8px 8px auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--cyan); color: #04130F; opacity: 0; transition: opacity .15s; }
.file:hover .pv .play3d { opacity: 1; }
.file .meta { padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; }
.file .name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .sub { font-size: 11.5px; color: var(--faint); }
.file .acts { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.file:hover .acts { opacity: 1; }
.file .acts .btn { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(6px); }
.file .slicer { font-size: 11px; color: var(--cyan); display: flex; gap: 6px; flex-wrap: wrap; }

.dropzone {
  border: 1.5px dashed color-mix(in srgb, var(--text) 18%, transparent); border-radius: 14px; padding: 18px; text-align: center; color: var(--muted);
  transition: border-color .15s, background .15s; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px;
}
.dropzone:hover, .dropzone.over { border-color: var(--cyan); background: var(--cyan-soft); color: var(--text); }
.dropzone strong { color: var(--cyan); }
.uploads { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.upl { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 12.5px; }
.upl .pbar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.upl .pbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--orange)); width: 0; transition: width .2s; }
.upl.err { color: var(--red); }

.fin { display: flex; flex-direction: column; gap: 8px; }
.fin-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.fin-row span:first-child { color: var(--muted); }
.fin-row.total { font-weight: 750; font-size: 15px; padding-top: 10px; border-top: 1px solid var(--line); }
.fin-row.profit span:last-child { color: var(--green); }
.fin-row.loss span:last-child { color: var(--red); }
.meter { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; display: flex; }
.meter i { display: block; height: 100%; }
.big-price { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
.reco { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 11px; background: var(--orange-soft); color: var(--orange); font-size: 13px; font-weight: 600; }

.items-table td, .items-table th { padding: 10px 10px; }
.status-steps { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; }
.step {
  --c: var(--c-slate);
  flex: 1; min-width: 92px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  font-size: 12px; font-weight: 650; color: var(--muted); cursor: pointer; text-align: center; transition: all .15s; position: relative;
}
.step:hover { color: var(--text); border-color: color-mix(in srgb, var(--c) 50%, var(--line)); }
.step.done { color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface-2)); }
.step.on { color: #04130F; background: var(--c); border-color: var(--c); }
.step.lost { --c: var(--c-red); }

.contact-links { display: flex; gap: 8px; flex-wrap: wrap; }
.contact-links .btn { flex: 1; min-width: 110px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

.lost-box { border: 1px solid color-mix(in srgb, var(--red) 35%, var(--line)); background: color-mix(in srgb, var(--red) 7%, var(--surface)); border-radius: var(--r); padding: 14px 16px; }
.lost-box .head { display: flex; gap: 10px; align-items: center; color: var(--red); font-weight: 700; }

.empty { padding: 36px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ic { color: var(--faint); }

.task { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.task:last-child { border-bottom: none; }
.task .tick {
  width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--faint); display: grid; place-items: center; cursor: pointer; flex: none; background: transparent; color: transparent; margin-top: 1px; transition: all .15s;
}
.task .tick:hover { border-color: var(--cyan); }
.task.done .tick { background: var(--cyan); border-color: var(--cyan); color: #04130F; }
.task.done .tt { text-decoration: line-through; color: var(--faint); }
.task .tt { font-weight: 550; }
.task .tm { font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.task .tm a:hover { color: var(--cyan); }
.task .del { margin-left: auto; opacity: 0; }
.task:hover .del { opacity: 1; }
.due-red { color: var(--red); font-weight: 650; }
.due-amber { color: var(--c-amber); font-weight: 650; }

.pipeline { display: flex; flex-direction: column; gap: 10px; }
.pipe-row { display: grid; grid-template-columns: 120px 1fr 34px; gap: 10px; align-items: center; font-size: 13px; }
.pipe-row .bar { height: 10px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.pipe-row .bar i { display: block; height: 100%; border-radius: 6px; background: var(--c); }
.chart-box { position: relative; height: 270px; }
.chart-box.sm { height: 220px; }

dialog.modal {
  border: 1px solid var(--line); border-radius: 18px; padding: 0; background: var(--surface); color: var(--text);
  width: min(560px, calc(100vw - 24px)); box-shadow: var(--shadow); max-height: calc(100vh - 40px);
}
dialog.modal.wide { width: min(760px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(4, 6, 12, 0.65); backdrop-filter: blur(4px); }
dialog.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-body { padding: 18px 22px 22px; }

.palette { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; background: rgba(4, 6, 12, 0.6); backdrop-filter: blur(4px); }
.palette-box { width: min(640px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.palette-in { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.palette-in input { flex: 1; border: none; outline: none; background: transparent; font-size: 16px; }
.palette-res { max-height: 56vh; overflow-y: auto; padding: 8px; }
.pr-group { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 700; padding: 10px 10px 4px; }
.pr-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; }
.pr-item:hover, .pr-item.sel { background: var(--surface-2); }
.pr-item .sub { color: var(--muted); font-size: 12.5px; }
.pr-item .avatar { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; min-width: 260px; max-width: 420px; border-radius: 13px; background: var(--surface-3); border: 1px solid var(--line);
  box-shadow: var(--shadow); font-weight: 550; animation: pop .2s ease-out;
}
.toast.success .ic { color: var(--green); }
.toast.error .ic { color: var(--red); }
.toast .grow { flex: 1; }

.viewer-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; height: calc(100vh - 66px); }
.viewer-stage { position: relative; background: radial-gradient(ellipse at 50% 30%, #1d2338 0%, #0a0c12 70%); overflow: hidden; }
:root[data-theme="light"] .viewer-stage { background: radial-gradient(ellipse at 50% 30%, #ffffff 0%, #dfe4ef 75%); }
.viewer-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.viewer-tools { position: absolute; left: 16px; top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.viewer-tools .btn { background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(8px); }
.viewer-tools .btn.on { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 45%, var(--line)); }
.viewer-status { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); pointer-events: none; }
.viewer-status .box { pointer-events: auto; display: flex; flex-direction: column; gap: 12px; align-items: center; background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 22px 26px; border-radius: 16px; border: 1px solid var(--line); backdrop-filter: blur(8px); }
.viewer-side { border-left: 1px solid var(--line); background: var(--bg2); padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dims div { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 10px; text-align: center; }
.dims b { display: block; font-size: 17px; }
.dims span { font-size: 11px; color: var(--faint); font-weight: 700; letter-spacing: .1em; }
.dims .x b { color: #FF6B6B; } .dims .y b { color: #3DD68C; } .dims .z b { color: #5AB8FF; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--cyan); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mini-viewer { height: 320px; border-radius: 13px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.mini-viewer .viewer-stage { height: 100%; }
.thumbs-row { display: flex; gap: 8px; overflow-x: auto; }
.thumbs-row a { width: 62px; height: 62px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--faint); text-transform: uppercase; }
.thumbs-row a.on { border-color: var(--cyan); }
.thumbs-row img { width: 100%; height: 100%; object-fit: cover; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at 20% 0%, rgba(56, 224, 196, 0.16), transparent 50%), radial-gradient(ellipse at 90% 100%, rgba(255, 122, 51, 0.14), transparent 50%), var(--bg); }
.login-card { width: min(400px, 100%); padding: 34px 30px; }
.login-card .brand { justify-content: center; font-size: 22px; padding: 0 0 6px; }
.login-card .brand svg { width: 40px; height: 40px; }

.bottom-nav { display: none; }
.hide-desk { display: none; }

@media (max-width: 1180px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 12px 16px; }
  .page { padding: 18px 16px 96px; }
  h1 { font-size: 22px; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .viewer-page { grid-template-columns: 1fr; grid-template-rows: 60vh auto; height: auto; }
  .viewer-side { border-left: none; border-top: 1px solid var(--line); }
  .board { grid-auto-columns: 84vw; }
  .col { max-height: none; }
  .hide-mob { display: none !important; }
  .hide-desk { display: inline-flex; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: color-mix(in srgb, var(--bg2) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 6px 0; border-radius: 10px; position: relative; }
  .bottom-nav a.on { color: var(--cyan); }
  .bottom-nav a .count { position: absolute; top: 2px; right: 22%; background: var(--orange); color: #fff; font-size: 10px; border-radius: 99px; padding: 0 5px; }
  .kv { grid-template-columns: 110px 1fr; }
  .toasts { left: 12px; right: 12px; bottom: 84px; }
  .toast { min-width: 0; max-width: none; }
}
@media (max-width: 560px) {
  .g-4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi .value { font-size: 21px; }
  .page-head { align-items: flex-start; }
}
.page.wide { max-width: none; }

.ch-icons { display: inline-flex; gap: 3px; vertical-align: middle; }
.ch { --ch: var(--muted); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: var(--ch); background: color-mix(in srgb, var(--ch) 14%, transparent); }
.ch.guess { opacity: .55; }
.ch.primary { box-shadow: 0 0 0 1.5px var(--ch); }
.row-ch { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ch-phone { --ch: var(--cyan); }
.ch-telegram { --ch: #2AABEE; }
.ch-viber { --ch: #8B7CF6; }
.ch-whatsapp { --ch: #25D366; }
.ch-instagram { --ch: #E1306C; }
.ch-email { --ch: #94A3B8; }
.ch-btn { border-color: color-mix(in srgb, var(--ch) 40%, var(--line)); }
.ch-btn > svg:first-child { color: var(--ch); }
.ch-btn:hover { background: color-mix(in srgb, var(--ch) 14%, var(--surface-2)); }
.ch-btn.primary-ch { background: color-mix(in srgb, var(--ch) 18%, var(--surface)); }
.ch-btn .star { color: var(--orange); margin-left: 2px; }
.ch-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-pick { cursor: pointer; }
.ch-pick input { position: absolute; opacity: 0; pointer-events: none; }
.ch-pick span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 550; color: var(--muted); transition: all .15s; }
.ch-pick span svg { color: var(--ch); }
.ch-pick:hover span { border-color: var(--ch); }
.ch-pick input:checked + span { color: var(--text); border-color: var(--ch); background: color-mix(in srgb, var(--ch) 16%, var(--surface-2)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ch) 18%, transparent); }
.ch-pick input:focus-visible + span { outline: 2px solid var(--ch); outline-offset: 2px; }
