/* Стили платформы из канона MazaLab (ui/platform), собраны без повторов. Свои правила SEVN — в sevn.css. */
:root { --bg: #F3F5F9; --bg2: #EAEEF5; --panel: #FFFFFF; --panel2: #F8FAFD; --line: #E4E8F0; --line2: #CBD3E1; --ink: #1B2232; --ink2: #4E5A6E; --ink3: #8A95A8; --accent: #0788CC; --accent2: #066FA8; --accent-soft: #E3F4FD; --mint: #2FB38A; --mint-soft: #E6F6F0; --amber: #E8A33D; --amber-soft: #FDF3E2; --rose: #E06C6C; --rose-soft: #FBE9E9; --violet: #8A6FE0; --violet-soft: #EFEAFB; --shadow: 0 1px 2px rgba(20, 30, 60, .04), 0 8px 24px rgba(20, 30, 60, .06); --shadow2: 0 2px 6px rgba(20, 30, 60, .08), 0 16px 40px rgba(20, 30, 60, .10); --rail: 248px; --rail-min: 72px; --top: 60px; --r: 14px; --cyan: #22D3EE; --g1a: #5EEAD4; --g1b: #0EA5E9;    --g2a: #BEF264; --g2b: #16A34A;    --gline: #F59E0B;                  --p1: #0788CC; --p2: #22D3EE; --p3: #8A6FE0; --p4: #E8A33D; --p5: #F472B6; --p6: #2FB38A; --kpis-bg: var(--panel); --head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace; }
:root[data-theme="dark"] { --bg: #0E1117; --bg2: #141924; --panel: #171C27; --panel2: #1D2330; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.18); --ink: #EEF1F6; --ink2: #AEB7C8; --ink3: #6F7A90; --on-accent: #07202F; --accent: #0AB5FD; --accent2: #4CCBFE; --accent-soft: rgba(10,181,253,.14); --mint: #45CF9F; --mint-soft: rgba(69,207,159,.14); --amber: #F2B33D; --amber-soft: rgba(242,179,61,.14); --rose: #F07070; --rose-soft: rgba(240,112,112,.14); --violet: #A08BF0; --violet-soft: rgba(160,139,240,.14); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35); --shadow2: 0 2px 6px rgba(0,0,0,.4), 0 16px 40px rgba(0,0,0,.5); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 14px/1.5 var(--body); -webkit-font-smoothing: antialiased; min-height: var(--vh, 100vh); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(7,136,204,.25); }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: var(--vh, 100vh); transition: grid-template-columns .22s ease; }
.shell.min { grid-template-columns: var(--rail-min) 1fr; }
.rail { position: sticky; top: 0; height: var(--vh, 100vh); background: var(--panel); display: flex; flex-direction: column; padding: 14px 12px; z-index: 20; overflow: hidden; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 6px 16px; border-bottom: 1px solid var(--line); min-height: 60px; }
.brand .logo { width: 36px; height: 36px; color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.brand .logo svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.brand .t { font: 700 14px/1.15 var(--head); letter-spacing: .01em; white-space: nowrap; }
.brand .s { font: 600 9.5px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); margin-top: 3px; white-space: nowrap; }
.min .brand .t, .min .brand .s, .min .nav a span, .min .nav .grp, .min .rail .foot, .min .nav .badge { display: none; }
.min .brand { justify-content: center; padding-left: 0; padding-right: 0; }
.min .nav a { justify-content: center; padding: 10px 0; }
.nav { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; overflow-x: hidden; }
.nav .grp { font: 700 10px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ink3); padding: 14px 10px 6px; white-space: nowrap; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: var(--ink2); font-weight: 600; font-size: 13.5px; white-space: nowrap; transition: color .15s, text-shadow .15s; position: relative; }
.nav a:hover { color: var(--accent2); }
.nav a.on { color: var(--accent2); text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent); }
.nav a.on svg.i { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 65%, transparent)); }
.nav a .badge { margin-left: auto; font: 700 10.5px/1 var(--mono); background: var(--bg2); color: var(--ink3); padding: 4px 7px; border-radius: 20px; }
.nav a.on .badge { background: rgba(7,136,204,.18); color: var(--accent2); }
.rail .foot { padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink3); line-height: 1.5; white-space: nowrap; }
.rail .foot b { color: var(--ink2); font-weight: 600; }
main { min-width: 0; display: flex; flex-direction: column; background: var(--panel); }
.content { flex: 1; background: var(--bg); border-top-left-radius: 22px; display: flex; flex-direction: column; min-height: calc(var(--vh, 100vh) - var(--top)); }
.content { position: relative; }
:root:not([data-theme="dark"]) .content::after { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-top-left-radius: 22px; box-shadow: inset 9px 9px 18px -12px rgba(20, 30, 60, .22); }
.topbar { position: sticky; top: 0; z-index: 15; height: var(--top); background: var(--panel); display: flex; align-items: center; gap: 12px; padding: 0 22px 0 14px; }
.topbar .burger { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--ink2); display: grid; place-items: center; cursor: pointer; transition: color .15s ease, filter .15s ease, transform .15s ease; }
.topbar .burger svg { width: 20px; height: 20px; transition: inherit; }
.topbar .burger:hover { background: transparent; color: var(--accent2); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 85%, transparent)) drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 45%, transparent)); transform: translateY(-1px); }
.topbar .burger:active { transform: none; }
.topbar .crumbs { font: 600 13px/1 var(--body); color: var(--ink3); display: flex; align-items: center; gap: 8px; }
.topbar .crumbs b { color: var(--ink); font-weight: 700; }
.topbar .search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 36px; width: 300px; color: var(--ink3); }
.topbar .search input { border: 0; background: transparent; outline: 0; width: 100%; color: var(--ink); }
.topbar .ic { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--ink2); display: grid; place-items: center; position: relative; cursor: pointer; transition: color .15s ease, filter .15s ease, transform .15s ease; }
.topbar .ic svg { width: 20px; height: 20px; transition: inherit; }
.topbar .ic:hover { background: transparent; color: var(--accent2); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 85%, transparent)) drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 45%, transparent)); transform: translateY(-1px); }
.topbar .ic:active { transform: none; }
.topbar #userbtn { color: var(--accent2); }
.topbar .ic .dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); border: 2px solid var(--panel); }
.topbar .user { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.topbar .user:hover { background: var(--bg2); }
.ava { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 700 12px/1 var(--head); color: #fff; background: var(--accent); flex-shrink: 0; }
.ava.m { background: var(--mint); }
.ava.a { background: var(--amber); }
.ava.v { background: var(--violet); }
.ava.r { background: var(--rose); }
.topbar .user .n { font-weight: 700; font-size: 13px; line-height: 1.1; }
.topbar .user .r { font-size: 10.5px; color: var(--ink3); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.page { padding: 22px 24px 48px; max-width: none; width: 100%; }
.page.wide { max-width: none; }
.page.flush { padding: 0; max-width: none; flex: 1; display: flex; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ph h1 { font: 700 24px/1.15 var(--head); letter-spacing: -.01em; }
.ph .sub { color: var(--ink3); font-size: 13px; margin-top: 4px; }
.ph .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.eyebrow { font: 700 10.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.muted { color: var(--ink3); }
.mono { font-family: var(--mono); font-size: .93em; }
.num { font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font-weight: 700; font-size: 13px; transition: all .15s; white-space: nowrap; }
.btn:hover { background: var(--bg2); border-color: var(--ink3); }
.btn.p { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.btn.p:hover { background: var(--accent2); border-color: var(--accent2); }
.btn.m { background: var(--mint); border-color: var(--mint); color: #fff; }
.btn.g { background: transparent; border-color: transparent; color: var(--ink2); }
.btn.g:hover { background: var(--bg2); color: var(--ink); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 11.5px; border-radius: 7px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.inp, select.inp, textarea.inp { height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); outline: 0; width: 100%; transition: border-color .15s, box-shadow .15s; }
.inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(7,136,204,.15); }
textarea.inp { height: auto; padding: 10px 12px; min-height: 80px; resize: vertical; }
.inp.sm { height: 30px; padding: 0 9px; font-size: 13px; border-radius: 8px; }
.inp.num { text-align: right; font-family: var(--mono); font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 11.5px; font-weight: 700; color: var(--ink3); letter-spacing: .04em; text-transform: uppercase; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card .hd h3 { font: 700 14px/1.2 var(--head); }
.card .bd { padding: 16px 18px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 20px; font-size: 11px; font-weight: 700; background: var(--bg2); color: var(--ink2); white-space: nowrap; }
.chip.b { background: var(--accent-soft); color: var(--accent2); }
.chip.m { background: var(--mint-soft); color: var(--mint); }
.chip.a { background: var(--amber-soft); color: #B87A1E; }
.chip.r { background: var(--rose-soft); color: var(--rose); }
.chip.v { background: var(--violet-soft); color: var(--violet); }
.chip .dt { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; font-size: 12.5px; color: var(--ink2); background: var(--bg2); border: 1px dashed var(--line2); }
.note.warn { background: var(--amber-soft); border-color: rgba(232,163,61,.4); }
.note svg { margin-top: 2px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 13px; }
.kv .k { color: var(--ink3); font-weight: 600; }
.kv .v { color: var(--ink); }
.kv .v a { color: var(--accent2); font-weight: 600; }
@keyframes up { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.sp { flex: 1; }
.hr { height: 1px; background: var(--line); margin: 14px 0; }
.empty { padding: 40px; text-align: center; color: var(--ink3); }
.lnk { color: var(--accent2); font-weight: 600; cursor: pointer; }
.lnk:hover { text-decoration: underline; }
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr 1fr; }
  .topbar .search { width: 180px; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: var(--rail-min) 1fr; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .topbar .search { display: none; }
}
.xh { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-bottom: 6px; }
:root[data-theme="dark"] { --kpis-bg: linear-gradient(180deg, #171C27, #131824); }
.card > .tbl { max-width: 100%; }
* { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--ink3); background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }
.nav::-webkit-scrollbar { width: 4px; }
.nav { scrollbar-color: transparent transparent; }
.rail:hover .nav { scrollbar-color: var(--line) transparent; }
.rail:hover .nav::-webkit-scrollbar-thumb { background: var(--line); }
.nav::-webkit-scrollbar-thumb { background: transparent; }
.card .hd .row.wrap { gap: 8px; }
.chip .x { font-style: normal; cursor: pointer; margin-left: 2px; opacity: .7; }
.chip .x:hover { opacity: 1; }
:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
select.inp { -webkit-appearance: none; appearance: none; padding-right: 32px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A95A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
select.inp:hover { border-color: var(--ink3); }
select.inp.sm { background-position: right 8px center; background-size: 14px; padding-right: 28px; }
select.inp option { background: var(--panel); color: var(--ink); padding: 8px; }
input[type="date"].inp { cursor: pointer; }
input[type="date"].inp::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; }
.topbar::after { content: ""; position: absolute; left: 0; top: 100%; width: 22px; height: 22px; background: var(--panel); -webkit-mask: radial-gradient(circle at 100% 100%, transparent 21.5px, #000 22px); mask: radial-gradient(circle at 100% 100%, transparent 21.5px, #000 22px); pointer-events: none; }
.page { max-width: none; }
.content { width: 100%; min-width: 0; }
main { width: 100%; min-width: 0; }
.field .sel { width: 100%; display: block; }
.grid.eq > .card { display: flex; flex-direction: column; }
.grid.eq > .card > .bd { flex: 1; }
.chip.src-p, .chip.src-b { height: 18px; padding: 0 6px; font-size: 9.5px; letter-spacing: .06em; vertical-align: 1px; }
.chip.src-p { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent2); }
.chip.src-b { background: var(--bg2); color: var(--ink3); }
.btn.danger, .btn.g.danger { color: var(--rose); }
.btn.g.danger:hover { background: var(--rose-soft); }
.btn.danger-fill { background: var(--rose); border-color: var(--rose); color: #fff; }
.btn.danger-fill:disabled { opacity: .45; }
:root { --ng1: #7C95F0; --ng2: #4BB3BF; --ng3: #9F8CEB; --ng4: #DDA46C; --ng5: #D98AA8; --ng6: #74BA94; --ng0: #8A93A6; }
.field .vatc { display: flex; }
.field .vatc .sel { flex: 1; }
.xbtn { width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--ink3); cursor: pointer; flex-shrink: 0; transition: background .15s, color .15s, transform .1s; }
.xbtn svg.i { width: 18px; height: 18px; stroke-width: 2; pointer-events: none; }
.xbtn:hover { background: var(--bg2); color: var(--ink); }
.xbtn:active { transform: scale(.94); }
.xbtn:focus { outline: none; }
.xbtn:focus-visible { color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn:focus { outline: none; }
.btn:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn svg.i { pointer-events: none; }
.nav a .fdot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); margin-left: auto; flex-shrink: 0; }
.nav a .fdot + .badge { margin-left: 8px; }
.card .hd .sp { flex: 1; }
.empty > svg.i { width: 30px; height: 30px; opacity: .45; display: block; margin: 0 auto 10px; }
.empty > b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 4px; }
.empty > span { display: block; font-size: 13px; }
.noacc { max-width: 640px; margin: 40px auto; }
.ph .ov-acts { flex-direction: column; align-items: flex-end; gap: 10px; }
.mnav-me, .mnav-back { display: none; }
.chip[hidden] { display: none; }
.ph .back-lnk { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 2px -8px; padding: 5px 10px 5px 8px; border-radius: 9px; font-size: 14.5px; font-weight: 600; }
.ph .back-lnk:hover { background: var(--bg2); text-decoration: none; }
.ph .back-lnk svg.i { width: 17px; height: 17px; }
.wav { position: relative; display: inline-grid; place-items: center; flex-shrink: 0; color: #fff; font: 700 12px/1 var(--head); overflow: visible; }
.wav img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.wav.c0 { background: #5B7FE0; }
.wav.c1 { background: #2FA886; }
.wav.c2 { background: #D9963A; }
.wav.c3 { background: #8A6FE0; }
.wav.c4 { background: #D96666; }
.wav.c5 { background: #1EA7C5; }
.wav.gen { background: var(--accent-soft); color: var(--accent); }
.wav.gen svg { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: 5; }
.wav.deal { background: var(--amber-soft); color: var(--amber); }
.wav.deal svg { width: 52%; height: 52%; }
.wav.sup { background: var(--mint-soft); color: var(--mint); }
.wav.sup svg { width: 58%; height: 58%; }
.wav .on { position: absolute; right: -2px; bottom: -2px; width: 30%; height: 30%; min-width: 9px; min-height: 9px; max-width: 14px; max-height: 14px; border-radius: 50%; background: var(--ink3); border: 2px solid var(--panel); }
.wav .on.y { background: var(--mint); }
.c-on { color: var(--mint); font-weight: 700; }
.topbar .ic .tbn { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--rose); color: #fff; font: 700 10px/17px var(--body); font-style: normal; text-align: center; border: 2px solid var(--panel); box-sizing: content-box; }
.nav .badge[hidden] { display: none; }
.inp.bad { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(224,108,108,.14); }
.wpop { position: fixed; z-index: 90; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow2); animation: wpIn .16s ease; }
@keyframes wpIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.npop { width: 400px; max-height: min(620px, 80vh); display: flex; flex-direction: column; }
.np-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; }
.np-h b { font: 700 15px/1 var(--head); }
.np-n { font-size: 11px; font-weight: 700; color: var(--accent2); background: var(--accent-soft); padding: 3px 7px; border-radius: 8px; }
.np-l { overflow: auto; padding: 0 6px 6px; }
.np-i { display: flex; gap: 12px; width: 100%; text-align: left; padding: 10px; border: 0; background: transparent; border-radius: 10px; color: var(--ink); }
.np-i:hover { background: var(--bg2); }
.np-i.new { background: var(--accent-soft); }
.np-a { position: relative; flex-shrink: 0; }
.np-k { position: absolute; right: -4px; bottom: -4px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font: 800 10px/1 var(--body); font-style: normal; color: #fff; background: var(--ink3); border: 2px solid var(--panel); }
.np-k.b { background: var(--accent); }
.np-k.a { background: var(--amber); }
.np-k.v { background: var(--violet); }
.np-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 13px; }
.np-t b { font-weight: 600; line-height: 1.35; }
.np-t span { color: var(--ink2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.np-t small { color: var(--ink3); font-size: 11px; }
.np-e { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 24px; text-align: center; color: var(--ink3); }
.np-e svg.i { width: 30px; height: 30px; opacity: .5; }
.np-e b { color: var(--ink); }
.np-e span { font-size: 12.5px; }
.np-f { padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.np-f .btn { width: 100%; justify-content: center; }
.wti { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--bg2); color: var(--ink2); }
.upop { width: 270px; padding: 6px; }
.up-h { display: flex; gap: 12px; align-items: center; padding: 10px 10px 12px; }
.up-h > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.up-h b { font-size: 14px; }
.up-h span { font-size: 12px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-i { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; text-align: left; }
.up-i:hover { background: var(--bg2); }
.up-i svg.i { width: 17px; height: 17px; color: var(--ink3); }
.up-i.danger svg.i { color: var(--rose); }
.up-n { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--rose); border-radius: 9px; padding: 2px 6px; }
.up-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.btn.gd svg.gd-i { color: #1FA463; }
.card .hd h3 svg.i { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; color: var(--ink3); }
.topbar .ic .tbo { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--mint); color: #fff; font: 700 10px/17px var(--body); font-style: normal; text-align: center; border: 2px solid var(--panel); box-sizing: content-box; }
.tmpop { width: 420px; }
.tm-on { color: var(--mint); background: var(--mint-soft); }
.tm-t { display: flex; gap: 2px; background: var(--bg2); padding: 3px; border-radius: 9px; }
.tm-t button { border: 0; background: transparent; color: var(--ink2); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.tm-t button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.tm-l, .tm-a { overflow: auto; padding: 0 8px 8px; }
.tm-p { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: 10px; }
.tm-p.go { cursor: pointer; }
.tm-p.go:hover { background: var(--bg2); }
.tm-dot { position: absolute; left: 34px; top: 33px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink3); border: 2px solid var(--panel); }
.tm-dot.y { background: var(--mint); }
.tm-n { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tm-n b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-n small { font-size: 12px; color: var(--ink3); }
.tm-n small.c-on { color: var(--mint); font-weight: 700; }
.tm-f { display: flex; gap: 4px; flex-wrap: wrap; padding: 0 14px 10px; }
.tm-f button { border: 1px solid var(--line); background: var(--panel); color: var(--ink2); font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 8px; cursor: pointer; }
.tm-f button.on { background: var(--accent-soft); border-color: transparent; color: var(--accent2); }
.tm-e { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: 10px; font-size: 13px; line-height: 1.4; }
.tm-e:hover { background: var(--bg2); }
.tm-e > span { flex: 1; min-width: 0; color: var(--ink2); }
.tm-e > span b { color: var(--ink); }
.tm-e small { display: block; font-size: 11.5px; color: var(--ink3); margin-top: 1px; }
.tm-ft { font-size: 11.5px; color: var(--ink3); }
.chip.fs-mem { gap: 5px; }
.chip.fs-mem svg { width: 12px; height: 12px; }
.field .xp-drop { display: block; border: 1.5px dashed var(--line2, var(--line)); border-radius: 12px; padding: 14px; cursor: pointer; text-transform: none; letter-spacing: 0; font: 500 13px/1.4 var(--body); color: var(--ink2); margin: 0; }
.up-th { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px; }
.up-th > span { font-size: 12px; color: var(--ink3); }
.up-sw { display: flex; gap: 6px; }
.up-sw button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line2); padding: 0; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.up-sw button:hover { transform: scale(1.12); }
.up-sw button.on { box-shadow: 0 0 0 2px var(--accent); }
@media (max-width: 760px) {
  :root { --top: 56px; }
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  
  .inp, input.inp, textarea.inp, select { font-size: 16px !important; }
  
  .shell, .shell.min { display: block; }
  main { min-height: 100dvh; }
  .content { border-top-left-radius: 0; min-height: calc(100dvh - var(--top)); }
  .topbar::after { display: none; }
  .topbar { height: var(--top); padding: 0 10px; gap: 6px; padding-top: env(safe-area-inset-top); }
  .topbar .burger, .topbar .ic { width: 38px; height: 38px; flex-shrink: 0; }
  .topbar .crumbs { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; font-size: 14px; }
  .topbar .crumbs > * { overflow: hidden; text-overflow: ellipsis; }
  .topbar .search { display: none !important; }
  .topbar .wav { width: 34px !important; height: 34px !important; }
  .topbar #back { display: none; }
  .rail { position: fixed; top: var(--top); left: 0; right: 0; height: auto; max-height: calc(100dvh - var(--top) - 12px); border-radius: 0 0 18px 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); padding: 8px 12px 14px; z-index: 45; overflow-y: auto; transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .2s ease, opacity .2s ease, visibility 0s .2s; }
  body.mnav-open .rail { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .2s ease; }
  .mnav-back { display: block; position: fixed; inset: var(--top) 0 0 0; z-index: 44; background: rgba(8, 11, 18, .45); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
  body.mnav-open .mnav-back { opacity: 1; visibility: visible; transition: opacity .2s; }
  body.mnav-open { overflow: hidden; }
  .rail .brand, .rail .foot { display: none; }
  .mnav-me { display: flex; align-items: center; gap: 10px; padding: 8px 6px 10px; border-bottom: 1px solid var(--line); order: -1; }
  .mnav-me .ava { width: 34px; height: 34px; }
  .mnav-me span:last-child { display: flex; flex-direction: column; }
  .mnav-me b { font-size: 14px; }
  .mnav-me small { font-size: 11.5px; color: var(--ink3); }
  
  .nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; overflow: visible; flex: none; }
  .nav .grp, .shell.min .nav .grp { display: block; grid-column: 1 / -1; padding: 12px 6px 4px; }
  .nav a, .shell.min .nav a { justify-content: flex-start; padding: 11px 10px; border-radius: 12px; background: var(--bg2); font-size: 13.5px; min-height: 44px; white-space: normal; line-height: 1.2; }
  .shell.min .nav a span, .shell.min .nav .badge { display: inline; }
  .nav a.on { background: none; }
  .nav a .badge { padding: 3px 6px; }
  .nav a.soon { opacity: .55; }
  
  .page { padding: 14px 12px calc(40px + env(safe-area-inset-bottom)); }
  .page.flush { padding: 0; }
  .ph { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 14px; }
  .ph h1 { font-size: 22px; line-height: 1.2; }
  .ph .sub { font-size: 12.5px; }
  .ph .acts { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .ph .acts > .btn, .ph .acts > a.btn { flex: 1 1 auto; justify-content: center; }
  .ph .ov-acts { align-items: stretch; }
  .ph .ov-acts > .row { flex-wrap: wrap; }
  .ph .ov-acts .btn.p { flex: 1; justify-content: center; }
  .card { border-radius: 14px; }
  .card > .hd { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .card .bd { padding: 14px; }
  .grid, .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr !important; }
  .btn { min-height: 38px; }
  .btn.xs { min-height: 30px; }
  
  .card:has(> .tbl) { overflow-x: auto !important; -webkit-overflow-scrolling: touch; max-height: none; }
  .card > .tbl { min-width: 620px; }
  
  .wpop { left: 8px !important; right: 8px !important; width: auto !important; max-height: 75dvh; }
  .npop, .tmpop { width: auto; }
}
/* ^ app-shell.html: 277 */
h2.sec { font: 700 15px/1.2 var(--head); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
h2.sec .cnt { font: 600 11px/1 var(--mono); color: var(--ink3); background: var(--bg2); padding: 4px 7px; border-radius: 20px; }
.seg { display: inline-flex; background: var(--bg2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink2); font-weight: 700; font-size: 12.5px; }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .sp { flex: 1; }
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
}
.seg button svg.i { width: 15px; height: 15px; }
.seg button svg.i { margin-right: 5px; vertical-align: -3px; }
.page .kpis.flat .kpi2 { padding-bottom: 16px; min-height: 0; }
.tpop { display: none; position: absolute; right: 0; top: 44px; background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow2); padding: 10px; z-index: 40; width: 230px; }
.tpop.show { display: block; }
.tpop.inline { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; position: static; border: 0; box-shadow: none; padding: 0; background: transparent; margin-bottom: 4px; }
.tpop .th { font: 700 10.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); padding: 4px 8px 8px; }
.tpop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; text-align: left; font-weight: 600; font-size: 13px; color: var(--ink); }
.tpop button:hover { background: var(--bg2); }
.tpop button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent2); }
.tpop .sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--panel); box-shadow: 0 0 0 1px var(--line2); flex-shrink: 0; }
.tpop small { display: block; font-size: 10.5px; color: var(--ink3); font-weight: 500; }
.seg button svg.i { vertical-align: -3px; }
.seg .fn-add { display: inline-flex; align-items: center; gap: 4px; color: var(--ink3); font-weight: 600; }
.seg .fn-add svg { width: 14px; height: 14px; }
.seg .fn-add:hover { color: var(--accent); }
#cp-bar .seg button { white-space: nowrap; }
/* ^ tokens-theme.html: 26 */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { height: 40px; padding: 0 14px; border: 0; background: transparent; color: var(--ink3); font-weight: 700; font-size: 13px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--accent2); border-color: var(--accent); }
.tabs button .cnt { margin-left: 6px; font: 600 10.5px/1 var(--mono); background: var(--bg2); padding: 3px 6px; border-radius: 10px; color: var(--ink3); }
.nsum { display: flex; gap: 6px; flex-wrap: wrap; }
.nsg { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink2); font-weight: 600; font-size: 12.5px; }
.nsg i { width: 9px; height: 9px; border-radius: 50%; background: var(--gc); }
.nsg b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.nsg small { color: var(--ink3); font-family: var(--mono); font-size: 11px; }
.nsg:hover { border-color: var(--ink3); }
.nsg.on { border-color: var(--gc); background: color-mix(in srgb, var(--gc) 12%, var(--panel)); color: var(--ink); }
.ntabs { position: relative; display: flex; align-items: flex-end; padding: 0 6px; margin-bottom: 18px; isolation: isolate; }
.ntabs::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line2); }
.ntabs button { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 30px 12px 20px; margin-right: -12px; border: 0; background: transparent; color: var(--ink3); text-align: left; cursor: pointer; transform: translateY(3px); transition: transform .28s cubic-bezier(.2,.8,.2,1), color .2s; z-index: 1; box-shadow: none; }
.ntabs button::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--bg2); border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; transform: perspective(70px) rotateX(5deg); transform-origin: bottom; transition: background .25s, border-color .25s; }
.ntabs button:hover { color: var(--ink2); transform: translateY(1px); border-color: transparent; }
.ntabs button.on { color: var(--ink); background: transparent; border-color: transparent; box-shadow: none; z-index: 3; transform: translateY(1px); animation: tabrise .35s cubic-bezier(.2,.8,.2,1) both; }
.ntabs button.on::before { background: var(--panel); border-color: var(--line2); }
.ntabs button.on::after { content: ''; position: absolute; left: 1px; right: 1px; bottom: -1px; height: 2px; background: var(--panel); }
@keyframes tabrise { from { transform: translateY(5px); } }
.ntabs button span { display: flex; flex-direction: column; gap: 2px; font: 700 13.5px/1.2 var(--head); }
.ntabs button small { font-size: 11.5px; font-weight: 500; color: var(--ink3); }
.ntabs button.on small { color: var(--ink2); }
.ntabs button .dot { position: absolute; top: 9px; right: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.ntabs svg.ti { width: 26px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; color: var(--ink3); transition: color .2s; overflow: visible; }
.ntabs button:hover svg.ti { color: var(--ink2); }
.ntabs button.on svg.ti { color: var(--accent); }
.ti .pulse { stroke-dasharray: 40; stroke-dashoffset: 0; }
.ntabs button.on .ti .pulse { animation: tpulse 2.6s ease-in-out infinite; }
@keyframes tpulse { 0% { stroke-dashoffset: 40; } 50%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -40; } }
.ntabs button.on .ti .l1 { animation: tlay 2.2s ease-in-out infinite; }
.ntabs button.on .ti .l2 { animation: tlay 2.2s ease-in-out .2s infinite; }
.ntabs button.on .ti .l3 { animation: tlay 2.2s ease-in-out .4s infinite; }
@keyframes tlay { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-2px); } }
.ti .flip { transform-box: view-box; transform-origin: 13px 11px; }
.ntabs button.on .ti .flip { animation: tflip 3s ease-in-out infinite; }
@keyframes tflip { 0%, 35% { transform: scaleX(1); } 50%, 85% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .ntabs .ti * { animation: none !important; }
}
@media (max-width: 900px) {
  .ntabs { flex-wrap: wrap; }
  .ntabs button { margin-right: 4px; }
}
.fbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 7px 10px; margin: 0 0 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.fbar .fb-l { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent2); margin-right: 4px; }
.fbar .fb-l svg { width: 14px; height: 14px; }
.fchip { display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 3px 0 10px; border-radius: 20px; background: var(--panel); color: var(--ink); font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.fchip button { width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink3); cursor: pointer; }
.fchip button:hover { background: var(--bg2); color: var(--ink); }
.fchip svg { width: 12px; height: 12px; pointer-events: none; }
.fbar .fb-r { margin-left: auto; }
.utabs { display: flex; align-items: center; gap: 0; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.utabs button { position: relative; border: 0; background: none; padding: 10px 18px 12px; font: 600 14.5px/1 var(--head); color: var(--ink3); cursor: pointer; letter-spacing: -.005em; transition: color .15s; }
.utabs button:first-child { padding-left: 2px; }
.utabs button:hover { color: var(--ink); }
.utabs button.on { color: var(--ink); }
.utabs button.on::after { content: ''; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.utabs button:first-child.on::after { left: 2px; }
.utabs-sep { width: 1px; height: 16px; background: var(--line2); flex-shrink: 0; }
.utabs-n { display: inline-block; min-width: 18px; padding: 2px 6px; margin-left: 4px; border-radius: 9px; background: var(--rose-soft); color: var(--rose); font: 700 10.5px/1.2 var(--mono); vertical-align: 1px; }
.tabs { overflow-y: hidden; }
.tabs { scrollbar-width: thin; }
@media (max-width: 760px) {
  :root { --top: 56px; }
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  
  .inp, input.inp, textarea.inp, select { font-size: 16px !important; }
  main { min-height: 100dvh; }
  
  .page { padding: 14px 12px calc(40px + env(safe-area-inset-bottom)); }
  .page.flush { padding: 0; }
  .ph { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 14px; }
  .ph h1 { font-size: 22px; line-height: 1.2; }
  .ph .sub { font-size: 12.5px; }
  .ph .acts { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .ph .acts > .btn, .ph .acts > a.btn { flex: 1 1 auto; justify-content: center; }
  .ph .ov-acts { align-items: stretch; }
  .ph .ov-acts > .row { flex-wrap: wrap; }
  .ph .ov-acts .btn.p { flex: 1; justify-content: center; }
  .card { border-radius: 14px; }
  .card > .hd { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .card .bd { padding: 14px; }
  .grid, .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr !important; }
  .btn { min-height: 38px; }
  .btn.xs { min-height: 30px; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .utabs, .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .utabs::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
  .utabs button, .tabs button { flex-shrink: 0; }
  .fbar { font-size: 12px; }
  
  .card:has(> .tbl) { overflow-x: auto !important; -webkit-overflow-scrolling: touch; max-height: none; }
  .card > .tbl { min-width: 620px; }
}
/* ^ page-header-tabs.html: 59 */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--panel2); position: sticky; top: 0; white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.go:hover td { background: var(--panel2); cursor: pointer; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl .t { font-weight: 700; color: var(--ink); }
.tbl .s { color: var(--ink3); font-size: 13px; }
.tbl input.inp { height: 30px; }
.tbl tfoot td { background: var(--panel2); font-weight: 700; }
.tscroll { overflow: auto; max-height: calc(var(--vh, 100vh) - 230px); border-radius: var(--r); }
.pager { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink3); }
.pager .sp { flex: 1; }
@keyframes fadein { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.tbl .chev { width: 8px; height: 8px; border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3); transform: rotate(-45deg); transition: transform .2s; display: inline-block; margin-left: 4px; }
.tbl tr.open > td .chev { transform: rotate(45deg); border-color: var(--accent); }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover, .tbl th.sortable.on { color: var(--accent); }
.tbl tr.xrow td { background: var(--panel2); padding: 12px 16px 14px 44px; border-bottom: 1px solid var(--line); white-space: normal; }
.tbl.mini td { padding: 4px 8px 4px 0; border-bottom: 1px dashed var(--line); font-size: 13px; white-space: normal; }
.tbl.mini tr:last-child td { border-bottom: 0; }
.tbl td.c-r { color: var(--rose); font-weight: 700; }
.tbl td.c-m { color: var(--mint); }
.tbl .rev { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.tbl .rev i { height: 7px; border-radius: 4px; background: var(--accent); display: block; flex: 0 0 auto; max-width: 100px; }
.tbl .rev b { font-family: var(--mono); font-weight: 600; min-width: 72px; text-align: right; white-space: nowrap; }
.tbl.dt td { white-space: nowrap; }
.tbl.dt td.t { white-space: normal; min-width: 180px; }
.tbl .rev .trk { width: 90px; height: 7px; background: var(--bg2); border-radius: 4px; overflow: hidden; display: block; flex: 0 0 auto; }
.tbl .rev .trk i { height: 100%; max-width: none; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.tbl.dt td.t { min-width: 140px; }
.tbl .rev .trk { width: 64px; }
.tbl .rev b { min-width: 62px; }
.tbl.dt { table-layout: fixed; width: 100%; }
.tbl.dt td, .tbl.dt th { overflow: hidden; text-overflow: ellipsis; padding-left: 10px; padding-right: 10px; }
.tbl.dt td.t { white-space: nowrap; min-width: 0; }
.tbl.dt td.ell { white-space: nowrap; }
.tbl.dt span.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 100%; }
.tbl.dt .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-flex; }
.tbl.dt .chip > span, .tbl.dt .chip { white-space: nowrap; }
.tbl.dt tr.xrow td { white-space: normal; overflow: visible; }
.tscroll { overflow-x: hidden; }
.tbl.dt td.r.mono { white-space: nowrap; }
.tbl.dt .btn.xs { padding: 0 7px; }
.tbl.dt td:first-child { overflow: visible; text-overflow: clip; padding-left: 12px; }
.tbl.dt .chev { margin-left: 0; }
.tbl.dt th { white-space: normal; line-height: 1.2; text-overflow: clip; }
.tbl { table-layout: auto; }
.card > .tbl, .tscroll > .tbl { max-width: 100%; }
.tbl td { overflow-wrap: anywhere; }
.tbl.dt td:last-child { overflow: visible; text-overflow: clip; }
.tbl.dt td.r.mono { padding-right: 12px; }
.tscroll::-webkit-scrollbar-thumb { background: var(--line2); }
.tbl.dt { min-width: 1340px; }
.tscroll { overflow-x: auto; }
.tbl.dt tr.xrow2 > td { padding: 0; background: var(--panel2); }
.xp2 { width: var(--tsw, 100%); max-width: 100%; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .9fr); gap: 4px 28px; padding: 14px 20px 12px 46px; animation: fadein .2s ease both; }
.tscroll .xp2 { max-width: none; }
.xp2 > section { min-width: 0; }
.xp2 .xh { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.xp2 .xh i { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink2); font-size: 11.5px; }
.xl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.xi { display: grid; grid-template-columns: minmax(0, 1fr) auto 96px; gap: 12px; align-items: baseline; padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.xi:last-of-type { border-bottom: 0; }
.xn, .xt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.xq { color: var(--ink2); font-size: 12px; white-space: nowrap; }
.xs { text-align: right; white-space: nowrap; }
.xmore { font-size: 12px; color: var(--accent2); margin-top: 4px; }
.xev { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; font-size: 13px; min-width: 0; }
.xd { color: var(--ink3); font-size: 11.5px; flex-shrink: 0; }
.xt { color: var(--ink2); }
.xcn { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; margin-bottom: 4px; }
.xkv { display: flex; gap: 10px; font-size: 12.5px; padding: 2px 0; min-width: 0; }
.xkv span { color: var(--ink3); width: 64px; flex-shrink: 0; }
.xkv b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.xnone { font-size: 12.5px; color: var(--ink3); padding: 4px 0; }
.xbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.xbar .xsrc { margin: 0; white-space: nowrap; }
.xsep { width: 1px; height: 18px; background: var(--line2); margin: 0 4px; }
.xbar .btn.p svg.i { width: 13px; height: 13px; }
.tbl.dt.dl { min-width: 960px; }
.tbl.dt .tlnk { color: inherit; text-decoration: none; }
.tbl.dt .tlnk:hover { color: var(--accent2); text-decoration: underline; }
.tbl.dt { min-width: 1100px; }
.tscroll .tbl.dt tr.xrow:not(.xrow2) > td > .xp { width: calc(var(--tsw, 100%) - 64px); max-width: calc(var(--tsw, 100%) - 64px); box-sizing: border-box; }
.tbl.mini.cdl { table-layout: fixed; width: 100%; }
.tbl.dt tr.xrow .xp .tbl.mini.cdl td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.tbl.mini.cdl td.cdt a { display: block; overflow: hidden; text-overflow: ellipsis; }
.tbl.mini.cdl .chip { max-width: 100%; }
.tbl tr.xrow .tbl.mini td { padding: 5px 10px 5px 0; }
.tbl tr.xrow .tbl.mini td:last-child { padding-right: 0; }
.tbl.ut { table-layout: fixed; width: 100%; min-width: 0; }
.tbl.ut th { position: static; }
.tbl.ut td { padding: 10px 12px; vertical-align: middle; white-space: nowrap; }
.tbl.ut th { padding: 10px 12px; }
.tbl.ut tr:hover td { background: color-mix(in srgb, var(--bg2) 60%, transparent); }
@media (max-width: 1180px) {
  .tbl.ut col:nth-child(7) { width: 150px; }
}
.tbl.hm-t { table-layout: fixed; width: 100%; }
.tbl.hm-t th { position: static; white-space: nowrap; }
.tbl.hm-t th.srt { cursor: pointer; user-select: none; }
.tbl.hm-t th.srt:hover, .tbl.hm-t th.on { color: var(--accent2); }
.tbl.hm-t th.c, .tbl.hm-t td.c { text-align: center; }
.tbl.hm-t td { padding: 10px 12px; vertical-align: middle; }
.tbl.dt.dl td.dl-cr { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl.dt.dl td.dl-cr .dl-tm { color: var(--ink3); margin-left: 2px; }
.tbl.dt.dl th.sortable { white-space: nowrap; }
.tbl.dt.dl td.r.mono { overflow: visible; text-overflow: clip; }
.tbl.dt.dl td:nth-child(2) { overflow: visible; text-overflow: clip; }
.tbl.dt.dl td:nth-child(2) .chip { max-width: none; overflow: visible; padding-right: 10px; }
.tbl.dl col.c-st { width: 150px; }
.tbl.dl col.c-act { width: 100px; }
.tbl.dl col.c-sum { width: 136px; }
.tbl.dl col.c-mgr { width: 192px; }
.tbl.dl col.c-cr { width: 136px; }
.tbl.dt.dl span.mgr-s { display: none; }
@media (max-width: 1500px) {
  .tbl.dl col.c-st { width: 146px; }
  .tbl.dl col.c-act { width: 76px; }
  .tbl.dl col.c-sum { width: 134px; }
  .tbl.dl col.c-mgr { width: 132px; }
  .tbl.dl col.c-cr { width: 116px; }
  .tbl.dt.dl span.mgr-f { display: none; }
  .tbl.dt.dl span.mgr-s { display: block; }
}
.qsrch { display: flex; align-items: center; gap: 8px; flex: 0 1 380px; min-width: 220px; height: 34px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 10px; color: var(--ink3); }
.qsrch .inp { flex: 1; min-width: 0; height: 32px; border: 0; padding: 0; background: none; }
.qsrch .i { width: 16px; height: 16px; flex: none; }
@media (max-width: 760px) {
  :root { --top: 56px; }
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  
  .inp, input.inp, textarea.inp, select { font-size: 16px !important; }
  main { min-height: 100dvh; }
  
  .page { padding: 14px 12px calc(40px + env(safe-area-inset-bottom)); }
  .page.flush { padding: 0; }
  .ph { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 14px; }
  .ph h1 { font-size: 22px; line-height: 1.2; }
  .ph .sub { font-size: 12.5px; }
  .ph .acts { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .ph .acts > .btn, .ph .acts > a.btn { flex: 1 1 auto; justify-content: center; }
  .ph .ov-acts { align-items: stretch; }
  .ph .ov-acts > .row { flex-wrap: wrap; }
  .ph .ov-acts .btn.p { flex: 1; justify-content: center; }
  .card { border-radius: 14px; }
  .card > .hd { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .card .bd { padding: 14px; }
  .grid, .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr !important; }
  .btn { min-height: 38px; }
  .btn.xs { min-height: 30px; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  
  .tscroll, .card:has(> .tbl) { overflow-x: auto !important; -webkit-overflow-scrolling: touch; max-height: none; }
  .card > .tbl { min-width: 620px; }
  .tbl th, .tbl td { padding: 9px 10px; }
  .tbl.hm-t { min-width: 820px; }
  .tbl.hm-t td:first-child, .tbl.hm-t th:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); }
  .xp2 { grid-template-columns: 1fr !important; padding: 12px 14px; width: calc(100vw - 26px) !important; }
  .xp2 .xbar .xsrc { width: 100%; }
  .tscroll .tbl.dt tr.xrow:not(.xrow2) > td > .xp { width: calc(100vw - 40px) !important; max-width: calc(100vw - 40px) !important; grid-template-columns: 1fr !important; }
  
  .tbl.ut { min-width: 860px; }
}
/* ^ data-table.html: 120 */
.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; min-height: 60vh; }
.col { flex: 0 0 272px; background: var(--bg2); border-radius: var(--r); display: flex; flex-direction: column; max-height: calc(var(--vh, 100vh) - 220px); }
.col.over { outline: 2px dashed var(--accent); outline-offset: -2px; }
.col .ch { padding: 12px 14px 10px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.col .ch .dot { width: 8px; height: 8px; border-radius: 50%; }
.col .ch b { font-size: 12.5px; }
.col .ch .cnt { margin-left: auto; font: 600 11px/1 var(--mono); color: var(--ink3); }
.col .ch .sum { font: 600 11px/1 var(--mono); color: var(--ink2); }
.col .cards { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.dc { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; cursor: grab; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.dc:hover { transform: translateY(-1px); box-shadow: var(--shadow2); }
.dc.drag { opacity: .4; }
.dc .t { font-weight: 700; font-size: 13px; line-height: 1.3; margin-bottom: 4px; }
.dc .c { font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc .f { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 11.5px; color: var(--ink3); }
.dc .f b { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.dc .ava { width: 22px; height: 22px; border-radius: 7px; font-size: 9px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--panel); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 13px; box-shadow: var(--shadow2); z-index: 200; display: flex; align-items: center; gap: 8px; animation: up .2s ease; }
.col .cards { scrollbar-width: thin; scrollbar-color: transparent transparent; padding-right: 6px; }
.col .cards::-webkit-scrollbar { width: 6px; }
.col .cards::-webkit-scrollbar-thumb { background: transparent; border-radius: 6px; }
.col:hover .cards { scrollbar-color: var(--line2) transparent; }
.col:hover .cards::-webkit-scrollbar-thumb { background: var(--line2); }
.kanban { scrollbar-width: thin; padding-bottom: 6px; }
.kanban::-webkit-scrollbar { height: 8px; }
.kanban::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.kanban::-webkit-scrollbar-track { margin: 0 4px; }
.col { --cc: var(--accent); border-top: 3px solid var(--cc); background: color-mix(in srgb, var(--cc) 7%, var(--bg2)); }
.col .ch b { color: var(--ink); }
.col .ch .cnt { color: var(--cc); font-weight: 700; }
.dc { border-left: 3px solid color-mix(in srgb, var(--cc) 70%, transparent); }
.dc:hover { border-left-color: var(--cc); }
:root[data-theme="dark"] .col { background: color-mix(in srgb, var(--cc) 10%, var(--bg2)); }
.col { flex: 0 0 280px; width: 280px; max-width: 280px; min-width: 0; }
.col .cards, .dc { min-width: 0; }
.dc .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc .c, .dc .f { min-width: 0; }
.dc .f b { white-space: nowrap; }
.col { flex: 1 1 280px; width: auto; max-width: 340px; min-width: 280px; }
.kanban { width: 100%; }
.dact { margin-top: 6px; font-size: 11px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dact.od { color: var(--rose); }
.ncnt { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--rose); color: #fff; font: 700 10.5px/1 var(--body); font-style: normal; vertical-align: 1px; }
.col.nodrop .dc { cursor: pointer; }
.col { border-top: 0; border-radius: 18px; background: color-mix(in srgb, var(--bg2) 75%, transparent); }
:root[data-theme="dark"] .col { background: color-mix(in srgb, var(--panel) 45%, transparent); }
.col .ch { border-bottom: 0; padding: 14px 14px 6px; gap: 9px; }
.col .ch .dot { width: 8px; height: 8px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--cc) 18%, transparent); }
.col .ch b { font-weight: 700; font-size: 13px; letter-spacing: -.005em; }
.col .ch .cnt { margin-left: auto; color: var(--ink2); background: color-mix(in srgb, var(--ink3) 14%, transparent); padding: 4px 8px; border-radius: 10px; font-weight: 700; }
.col .ch .sum { color: var(--ink3); font-weight: 600; }
.col .cards { padding: 8px 10px 12px; gap: 8px; }
.dc { border: 0; border-left: 0; border-radius: 14px; padding: 12px 13px 11px; box-shadow: none; background: var(--panel); transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s; }
.dc:hover { border-left-color: transparent; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(10, 15, 30, .18); }
:root[data-theme="dark"] .dc { background: color-mix(in srgb, var(--panel2) 85%, transparent); }
.dc .t { font-weight: 650; font-size: 13.5px; display: flex; align-items: center; }
.dc .c { margin-top: 1px; }
.dc .f { margin-top: 10px; }
.dact { display: flex; align-items: center; gap: 7px; margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--line); color: var(--ink3); }
.dact::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink3); flex-shrink: 0; }
.dact.od { color: var(--ink2); }
.dact.od::before { background: var(--rose); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 22%, transparent); }
.col .ch { flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 16px 12px 10px; text-align: center; }
.col .ch .chn { display: flex; align-items: center; justify-content: center; gap: 9px; max-width: 100%; }
.col .ch .chn b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col .ch .chm { display: flex; align-items: center; justify-content: center; gap: 8px; }
.col .ch .cnt { margin-left: 0; }
.col .ch { padding: 10px 10px 6px; gap: 7px; }
.col .ch .chbar { width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 8px 12px; border-radius: 13px; background: linear-gradient(135deg, color-mix(in srgb, var(--cc) 30%, var(--panel)), color-mix(in srgb, var(--cc) 14%, var(--panel))); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 28%, transparent), 0 6px 16px -10px color-mix(in srgb, var(--cc) 70%, transparent); }
:root[data-theme="dark"] .col .ch .chbar, :root:not([data-theme]) .col .ch .chbar { background: linear-gradient(135deg, color-mix(in srgb, var(--cc) 34%, var(--panel)), color-mix(in srgb, var(--cc) 16%, var(--panel))); }
.col .ch .chbar b { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.col .ch .chbar .cnt { margin: 0; flex-shrink: 0; padding: 3px 8px; border-radius: 9px; background: color-mix(in srgb, var(--panel) 72%, transparent); color: var(--ink); font: 700 11px/1 var(--mono); }
.col .ch .chm { justify-content: center; }
.col .ch .chm .sum { font: 600 11.5px/1 var(--mono); color: var(--ink3); }
.dtb { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.dtb-f { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dtb .dq { position: relative; display: flex; align-items: center; }
.dtb .dq svg { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--ink3); pointer-events: none; }
.dtb .dq input { width: 230px; height: 36px; padding-left: 34px; }
.dtb { flex-direction: column; align-items: stretch; gap: 10px; }
.dtb-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dtb-top .sp { flex: 1; }
.dtb .dq { flex: 0 1 380px; min-width: 220px; }
.dtb .dq input { width: 100%; }
.dtb-top { flex-wrap: nowrap; }
@media (max-width: 900px) {
  .dtb-top { flex-wrap: wrap; }
  .dtb-top .sp { display: none; }
}
.col .cards { gap: 10px; padding: 10px 10px 14px; }
.dc { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px 11px; box-shadow: 0 1px 2px rgba(15, 20, 35, .05), 0 6px 16px -10px rgba(15, 20, 35, .18); cursor: grab; }
.dc:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--cc) 45%, var(--line)); box-shadow: 0 2px 4px rgba(15, 20, 35, .06), 0 14px 28px -14px rgba(15, 20, 35, .32); }
.dc:active { cursor: grabbing; }
.dc .f { padding-top: 9px; border-top: 1px solid var(--line); }
.dc.drag { opacity: .5; transform: rotate(1.5deg) scale(.98); box-shadow: none; }
.col.over { outline: 2px dashed color-mix(in srgb, var(--cc) 65%, transparent); outline-offset: -5px; background: color-mix(in srgb, var(--cc) 9%, var(--bg2)); }
:root[data-theme="dark"] .col { background: color-mix(in srgb, var(--bg) 70%, var(--panel)); }
:root[data-theme="dark"] .dc { background: color-mix(in srgb, #FFFFFF 5%, var(--panel2)); border-color: rgba(255, 255, 255, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 22px -14px rgba(0, 0, 0, .75); }
:root[data-theme="dark"] .dc:hover { border-color: color-mix(in srgb, var(--cc) 50%, rgba(255, 255, 255, .1)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 32px -16px rgba(0, 0, 0, .85); }
:root[data-theme="dark"] .dc .f { border-top-color: rgba(255, 255, 255, .06); }
:root[data-theme="dark"] .col.over { background: color-mix(in srgb, var(--cc) 10%, var(--bg)); }
.col .ch .chbar { position: relative; isolation: isolate; height: 42px; min-height: 0; width: calc(100% - 21px); margin-right: 21px; align-self: flex-start; border-radius: 13px 0 0 13px; box-shadow: none; background: color-mix(in srgb, var(--cc) 24%, var(--panel)); }
:root[data-theme="dark"] .col .ch .chbar, :root:not([data-theme]) .col .ch .chbar { background: color-mix(in srgb, var(--cc) 28%, var(--panel)); }
.col .ch .chbar::after { content: ''; position: absolute; top: 50%; right: 0; width: 29.7px; height: 29.7px; z-index: -1; pointer-events: none; background: inherit; border-top-right-radius: 6px; transform: translate(50%, -50%) rotate(45deg); }
.col .ch .chbar::before { content: none; }
.col .ch .chbar b, .col .ch .chbar .cnt { position: relative; z-index: 1; }
.col .ch .chm .sum { font: 700 14px/1.1 var(--mono); color: var(--ink2); letter-spacing: -.01em; }
.col .ch { gap: 9px; }
.dpay { position: relative; height: 18px; margin: 6px 0 2px; border-radius: 5px; background: var(--rose-soft); overflow: hidden; }
.dpay i { position: absolute; inset: 0 auto 0 0; background: var(--mint-soft); }
.dpay span { position: relative; display: block; padding: 0 7px; font-size: 11px; line-height: 18px; font-weight: 700; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc .pp-od { display: inline-block; margin: 4px 0 0; }
@media (min-width: 761px) {
  .dtb-f { gap: 9px; flex-wrap: wrap; width: fit-content; max-width: 100%; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
  .dtb-f > * { position: relative; flex-shrink: 0; }
  .dtb-f > * + *::before { content: ''; position: absolute; left: -5px; top: 7px; bottom: 7px; width: 1px; background: var(--line); pointer-events: none; }
  .dtb-f .seg { background: transparent; padding: 0; }
  
  .dtb-f .seg button { color: var(--ink3); }
  .dtb-f .seg button:hover { color: var(--ink); background: var(--bg2); }
  .dtb-f .seg button.on { background: var(--accent-soft); color: var(--accent2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
  .dtb-f .seg button.on .cnt { color: var(--accent2); }
  .dtb-f .sel-b, .dtb-f .per-b { border-color: transparent; background: transparent; box-shadow: none; }
  .dtb-f .sel-b:hover, .dtb-f .per-b:hover { border-color: transparent; background: var(--bg2); }
  .dtb-f .sel.open .sel-b { border-color: transparent; background: var(--bg2); box-shadow: none; }
  .dtb-f .sel-b.has, .dtb-f .per-b.has { border-color: transparent; background: var(--accent-soft); }
  .dtb-f > .chip { background: transparent; border-color: transparent; align-self: center; }
}
.vseg button { display: inline-flex; align-items: center; gap: 6px; }
.vseg button svg.i { width: 16px; height: 16px; margin: 0; fill: none; stroke: currentColor; stroke-width: 1.8; }
.vseg button svg.i circle { fill: currentColor; stroke: none; }
@media (max-width: 760px) {
  :root { --top: 56px; }
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  
  .inp, input.inp, textarea.inp, select { font-size: 16px !important; }
  main { min-height: 100dvh; }
  
  .page { padding: 14px 12px calc(40px + env(safe-area-inset-bottom)); }
  .page.flush { padding: 0; }
  .ph { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 14px; }
  .ph h1 { font-size: 22px; line-height: 1.2; }
  .ph .sub { font-size: 12.5px; }
  .ph .acts { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .ph .acts > .btn, .ph .acts > a.btn { flex: 1 1 auto; justify-content: center; }
  .ph .ov-acts { align-items: stretch; }
  .ph .ov-acts > .row { flex-wrap: wrap; }
  .ph .ov-acts .btn.p { flex: 1; justify-content: center; }
  .card { border-radius: 14px; }
  .card > .hd { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .card .bd { padding: 14px; }
  .grid, .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr !important; }
  .btn { min-height: 38px; }
  .btn.xs { min-height: 30px; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  
  .card:has(> .tbl) { overflow-x: auto !important; -webkit-overflow-scrolling: touch; max-height: none; }
  .card > .tbl { min-width: 620px; }
  .toast { max-width: calc(100vw - 24px); bottom: calc(16px + env(safe-area-inset-bottom)); }
  
  .dtb, .dtb-top, .dtb-f { width: 100%; }
  .dtb-top .dq { flex: 1 1 100%; order: -1; }
  .dtb-top .dq .inp { width: 100%; }
  .dtb-top .seg, .dtb-top #newdeal { flex: 1; justify-content: center; }
  .dtb-f > .seg { width: 100%; }
  .dtb-f .sel, .dtb-f .per-b { width: calc(50% - 4px) !important; }
  .kanban { scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
  .col, .kanban .col { flex: 0 0 84vw !important; max-width: 84vw !important; min-width: 0 !important; scroll-snap-align: start; max-height: calc(100dvh - 240px); }
}
/* ^ kanban-funnel.html: 114 */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .b i { display: block; width: 100%; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent), #8FB0F3); min-height: 3px; transition: height .4s; position: relative; }
.bars .b i.m { background: linear-gradient(180deg, var(--mint), #86DCC0); }
.bars .b i:hover::after { content: attr(data-v); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; font: 600 10.5px/1 var(--mono); background: var(--ink); color: var(--panel); padding: 4px 6px; border-radius: 6px; white-space: nowrap; }
.bars .b span { font-size: 10.5px; color: var(--ink3); font-family: var(--mono); }
.hbar { display: grid; grid-template-columns: 160px 1fr 70px; gap: 10px; align-items: center; font-size: 12.5px; padding: 5px 0; }
.hbar .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink2); font-weight: 600; }
.hbar .tr { height: 10px; background: var(--bg2); border-radius: 5px; overflow: hidden; }
.hbar .tr i { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.hbar .tr i.m { background: var(--mint); }
.hbar .tr i.a { background: var(--amber); }
.hbar .tr i.r { background: var(--rose); }
.hbar .tr i.v { background: var(--violet); }
.hbar .v { text-align: right; font-family: var(--mono); font-size: 12px; color: var(--ink); }
.donut { width: 130px; height: 130px; }
.mb { margin-bottom: 14px; }
.mt { margin-top: 14px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink2); margin-bottom: 6px; align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.l-open { background: var(--accent); }
.l-won { background: var(--mint); }
.l-lost { background: var(--rose); opacity: .55; }
svg.chart { width: 100%; height: 300px; display: block; font-family: var(--mono); }
svg.chart .gl { stroke: var(--line); stroke-width: 1; }
svg.chart .tk { font-size: 11px; fill: var(--ink3); }
svg.chart .vl { font-size: 11px; fill: var(--ink); font-weight: 600; }
svg.chart .b-open { fill: var(--accent); opacity: .85; }
svg.chart .b-won { fill: var(--mint); }
svg.chart .b-lost { fill: var(--rose); opacity: .5; }
svg.chart .bar { transform-origin: bottom; animation: grow .5s ease both; }
svg.chart .bar:hover .b-open { opacity: 1; }
@keyframes grow { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
svg.chart .b-open { fill: url(#gO); opacity: 1; }
svg.chart .b-won { fill: url(#gW); }
svg.chart .b-lost { fill: var(--ink3); opacity: .28; }
svg.chart .ln { fill: none; stroke: var(--gline); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--gline) 50%, transparent)); }
svg.chart .pt { fill: var(--gline); stroke: var(--panel); stroke-width: 1.5; }
svg.chart .tk2 { fill: var(--gline); }
.l-open { background: linear-gradient(180deg, var(--g1a), var(--g1b)); }
.l-won { background: linear-gradient(180deg, var(--g2a), var(--g2b)); }
.l-lost { background: var(--ink3); opacity: .35; }
.l-line { background: var(--gline); height: 3px !important; border-radius: 2px; width: 16px !important; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.kpi2 { position: relative; padding: 18px 18px 16px; border: 0; border-radius: 0; box-shadow: none; background: transparent; min-height: 150px; }
.kpi2 + .kpi2 { border-left: 1px solid var(--line); }
.kpi2 .l { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.kpi2 .v { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi2 .v small { font-size: 16px; color: var(--ink3); font-weight: 600; margin-left: 3px; }
.kpi2 .sub { font-size: 12px; color: var(--ink2); margin: 2px 0 8px; }
.kpi2 .st { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink3); font-weight: 600; line-height: 1.5; }
.kpi2 .st i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink3); flex-shrink: 0; }
.kpi2 .st.r { color: var(--rose); }
.kpi2 .st.r i { background: var(--rose); }
.kpi2 .st.m { color: var(--mint); }
.kpi2 .st.m i { background: var(--mint); }
.kpi2 .st.b { color: var(--accent2); }
.kpi2 .st.b i { background: var(--accent); }
.spark { position: absolute; right: 12px; bottom: 12px; width: 130px; height: 44px; overflow: visible; }
.spark .line { fill: none; stroke: var(--mint); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark .area { fill: var(--mint); opacity: .12; }
.spark .dot { fill: var(--mint); stroke: var(--panel); stroke-width: 2; filter: drop-shadow(0 0 5px var(--mint)); }
.spark.r .line { stroke: var(--rose); }
.spark.r .dot { fill: var(--rose); filter: drop-shadow(0 0 5px var(--rose)); }
.spark.r .area { fill: var(--rose); }
.spark.c .line { stroke: var(--cyan); }
.spark.c .area { fill: var(--cyan); }
.spark.c .dot { fill: var(--cyan); filter: drop-shadow(0 0 5px var(--cyan)); }
.spark.v .line { stroke: var(--violet); }
.spark.v .area { fill: var(--violet); }
.spark.v .dot { fill: var(--violet); filter: drop-shadow(0 0 5px var(--violet)); }
.kpis { background: var(--kpis-bg); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } .kpi2 + .kpi2 { border-left: 0; border-top: 1px solid var(--line); } }
.kpi2 { padding-right: 150px; }
.kpi2 { padding: 16px 16px 58px; min-height: 172px; }
.spark { left: 10px; right: 10px; bottom: 8px; width: auto; height: 46px; }
.kpi2 .st { font-size: 11px; }
.cwrap { position: relative; }
svg.chart .hz { fill: transparent; }
svg.chart .bar.hi .hz { fill: var(--ink); opacity: .05; }
svg.chart .bar.hi .b-open, svg.chart .bar.hi .b-won { filter: brightness(1.15); }
svg.chart .bar.hi .b-lost { opacity: .45; }
.ctip { position: absolute; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow2); padding: 10px 12px; min-width: 280px; z-index: 20; font-size: 12.5px; }
.ctip.show { opacity: 1; transform: none; }
.ctip .th { font-weight: 800; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink2); margin-bottom: 6px; }
.ctip .tr { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; padding: 3px 0; }
.ctip .tr i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.ctip .tr span { color: var(--ink2); }
.ctip .tr b { font-family: var(--mono); font-weight: 700; min-width: 32px; text-align: right; }
.ctip .tr em { font-style: normal; font-family: var(--mono); color: var(--ink3); min-width: 110px; text-align: right; }
.ctip .tr.tot { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; }
.ctip .tr.tot span, .ctip .tr.tot em { color: var(--ink); font-weight: 700; }
.ctip .tf { margin-top: 6px; font-size: 11.5px; color: var(--gline); }
.kpi2.clickable { cursor: pointer; transition: background .15s; }
.kpi2.clickable:hover { background: var(--bg2); }
.kpi2 .more { position: absolute; top: 14px; right: 14px; color: var(--ink3); opacity: 0; transition: opacity .15s; }
.kpi2.clickable:hover .more { opacity: 1; }
.tcrow, .strow { border-radius: 12px; transition: background .15s; cursor: pointer; }
.tcrow:hover, .strow:hover { background: var(--bg2); }
.tcrow.open, .strow.open { background: var(--panel2); }
.tcmain, .stmain { display: grid; grid-template-columns: 22px 34px 1fr auto 14px; gap: 12px; align-items: center; padding: 9px 10px; }
.stmain { grid-template-columns: 12px 1fr auto 14px; }
.rank { font: 700 12px/1 var(--mono); color: var(--ink3); text-align: center; }
.tcmain .ava { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.tcbody, .stbody { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.tct, .stt { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 700; line-height: 1.2; }
.tct .lnk { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tct .lnk:hover { color: var(--accent2); }
.tcs, .sts { font: 600 11px/1 var(--mono); color: var(--ink3); }
.tcbar, .stbar { height: 7px; border-radius: 4px; background: var(--bg2); overflow: hidden; }
.tcbar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--cyan)); transition: width .6s ease; }
.stbar i { display: block; height: 100%; border-radius: 4px; background: var(--sc); opacity: .9; transition: width .6s ease; }
.strow.k-lost .stbar i { background: repeating-linear-gradient(135deg, var(--ink3) 0 4px, transparent 4px 8px); opacity: .5; }
.tcm, .stm { font-size: 12px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcv, .stv { font: 700 16px/1 var(--mono); color: var(--ink); white-space: nowrap; }
.tcv small { font-size: 11px; color: var(--ink3); margin-left: 3px; font-weight: 500; }
.strow .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sc) 18%, transparent); }
.strow.k-lost .dot { background: var(--ink3); box-shadow: none; }
.tcrow .chev, .strow .chev { width: 8px; height: 8px; border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3); transform: rotate(45deg); transition: transform .2s; justify-self: end; }
.tcrow.open .chev, .strow.open .chev { transform: rotate(-135deg); border-color: var(--accent); }
.tcx, .stx { padding: 4px 12px 12px 78px; font-size: 12.5px; animation: fadein .25s ease both; }
.stx { padding-left: 34px; }
.tcx .xe, .stx .xe { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.fgrp + .fgrp { margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.fgh { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 6px; font-size: 13px; }
.fgh b { font-size: 13.5px; }
.fgh svg.i { width: 15px; height: 15px; color: var(--ink3); }
.fgh .muted { font-size: 11.5px; font-family: var(--mono); }
.c-r { color: var(--rose); font-weight: 700; }
.kpi2 { overflow: hidden; padding: 16px 16px 66px; min-height: 196px; }
.kpi2 .l { margin-bottom: 2px; }
.kpi2 .v { margin-top: 6px; }
.kpi2 .sub { margin: 4px 0 10px; line-height: 1.35; }
.kpi2 .st { line-height: 1.4; margin-bottom: 3px; align-items: flex-start; }
.kpi2 .st i { margin-top: 5px; }
.spark { left: 16px; right: 16px; bottom: 12px; height: 42px; overflow: visible; }
.spark .line { stroke-width: 2; }
.spark .area { opacity: .10; }
.spark .dot { r: 3.5; }
.kpi2::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 10px; height: 1px; background: var(--line); }
svg.chart .b-open { fill: var(--g1b); opacity: .85; }
svg.chart .b-won { fill: var(--g2b); opacity: 1; }
svg.chart .b-lost { fill: var(--ink3); opacity: .22; }
svg.chart .bar path, svg.chart .bar rect:not(.hz) { stroke: var(--panel); stroke-width: 2; paint-order: stroke; }
svg.chart .bar.hi .b-open, svg.chart .bar.hi .b-won { filter: none; opacity: 1; }
svg.chart .bar.hi .b-lost { opacity: .34; }
svg.chart .gl { stroke: var(--line); stroke-dasharray: 2 5; }
svg.chart .vl { font-size: 10.5px; font-weight: 600; fill: var(--ink2); }
svg.chart .tk { font-size: 10.5px; fill: var(--ink3); }
svg.chart .ln { stroke: var(--gline); stroke-width: 1.6; filter: none; opacity: .95; }
svg.chart .pt { fill: var(--panel); stroke: var(--gline); stroke-width: 1.6; }
.l-open, .l-won, .l-lost, .l-line { border-radius: 50%; }
.l-open { background: var(--g1b); opacity: .85; }
.l-won { background: var(--g2b); }
.spark .dot, .spark.r .dot, .spark.c .dot, .spark.v .dot { filter: none; }
.legend [data-lg] { cursor: pointer; user-select: none; padding: 3px 8px; margin: 0 -4px; border-radius: 8px; transition: opacity .15s, background .15s; }
.legend [data-lg]:hover { background: var(--bg2); }
.legend [data-lg].off { opacity: .38; }
.legend [data-lg].off i { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--ink3); }
svg.ring { width: 40px; height: 40px; transform: rotate(-90deg); }
svg.ring circle { fill: none; stroke-width: 3.5; stroke-linecap: round; }
svg.ring .rt { stroke: color-mix(in srgb, var(--ink3) 16%, transparent); }
svg.ring .rv { transition: stroke-dasharray .8s cubic-bezier(.2,.8,.2,1); }
svg.ring text { transform: rotate(90deg); transform-origin: 20px 20px; font: 700 10.5px/1 var(--mono); fill: var(--ink2); }
.kpi2 .more { display: none; }
.kico { position: absolute; top: 14px; right: 14px; width: 26px; height: 26px; fill: none; stroke: var(--kc, var(--accent)); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; transition: transform .25s cubic-bezier(.2,.8,.2,1), filter .25s; }
.kico path, .kico rect, .kico ellipse { stroke-dasharray: 1; stroke-dashoffset: 1; animation: kDraw 1.1s cubic-bezier(.4,.1,.2,1) .15s forwards; }
.kico .a2 { stroke: var(--kc2, var(--kc)); opacity: .55; animation-delay: .5s; }
.kico circle { fill: var(--kc); stroke: none; opacity: 0; animation: kPop .4s ease 1s forwards; }
.kico circle.a2 { fill: var(--kc2, var(--kc)); }
@keyframes kDraw { to { stroke-dashoffset: 0; } }
@keyframes kPop { to { opacity: .85; } }
.kpi2:hover .kico { transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--kc) 45%, transparent)); }
.kico.c { --kc: var(--cyan); --kc2: var(--accent); }
.kico.m { --kc: var(--mint); --kc2: var(--amber); }
.kico.a { --kc: var(--amber); --kc2: var(--mint); }
.kico.r { --kc: var(--rose); --kc2: var(--amber); }
.kico.v { --kc: var(--violet); --kc2: var(--cyan); }
.kico.b { --kc: var(--accent); --kc2: var(--violet); }
.kpi2 .l { padding-right: 34px; }
.spark { color: var(--mint); }
.spark.r { color: var(--rose); }
.spark.c { color: var(--cyan); }
.spark.v { color: var(--violet); }
.spark.m { color: var(--mint); }
.spark .area, .spark.r .area, .spark.c .area, .spark.v .area { opacity: 1; }
.spark .line { stroke: currentColor !important; filter: drop-shadow(0 2px 6px color-mix(in srgb, currentColor 35%, transparent)); }
.spark .dot { fill: currentColor !important; filter: drop-shadow(0 0 5px currentColor) !important; }
@media (prefers-reduced-motion: reduce) { .kico path, .kico rect, .kico ellipse { animation: none; stroke-dashoffset: 0; } .kico circle { animation: none; opacity: .85; } }
.kpi2 .kico { background: none !important; border: 0 !important; box-shadow: none; border-radius: 0; padding: 0; }
/* ^ kpi-tiles.html: 191 */
.mback { position: fixed; inset: 0; background: rgba(15, 20, 35, .45); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: var(--panel); border-radius: 16px; box-shadow: var(--shadow2); width: min(640px, 100%); max-height: 90vh; overflow: auto; }
.modal.lg { width: min(1000px, 100%); }
.modal .hd { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal .hd h3 { font: 700 16px/1.2 var(--head); }
.modal .bd { padding: 20px; }
.modal .ft { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.modal::-webkit-scrollbar { width: 6px; }
.modal .xh { margin-top: 2px; }
.modal .list .it .t { font-size: 13px; }
.sel { position: relative; display: inline-block; min-width: 120px; }
.sel-b { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); color: var(--ink); font-weight: 600; font-size: 13px; text-align: left; transition: border-color .15s, box-shadow .15s; }
.sel.sm .sel-b { height: 30px; font-size: 12.5px; border-radius: 8px; }
.sel-b:hover { border-color: var(--ink3); }
.sel.open .sel-b { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.sel-b > svg.i:first-child { width: 15px; height: 15px; color: var(--ink3); }
.sel-b.has { border-color: var(--accent); color: var(--accent2); background: var(--accent-soft); }
.sel-b.has > svg.i:first-child { color: var(--accent2); }
.sel-l { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-n { font: 700 10.5px/1 var(--mono); background: var(--accent); color: #fff; border-radius: 10px; padding: 3px 6px; font-style: normal; }
.sel-c { width: 14px !important; height: 14px !important; color: var(--ink3); transition: transform .2s; flex-shrink: 0; }
.sel.open .sel-c { transform: rotate(180deg); }
.sel-p { display: none; position: absolute; left: 0; top: calc(100% + 6px); min-width: 100%; width: max-content; max-width: 320px; background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--shadow2); padding: 6px; z-index: 60; animation: up2 .14s ease; }
.sel-p.show { display: block; }
.sel-s { margin: 2px 2px 6px; width: calc(100% - 4px); }
.sel-a { display: flex; gap: 4px; padding: 0 4px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.sel-a button { border: 0; background: transparent; color: var(--accent2); font-size: 11.5px; font-weight: 700; padding: 3px 6px; border-radius: 6px; }
.sel-a button:hover { background: var(--accent-soft); }
.sel-o { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.sel-i { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; text-align: left; white-space: nowrap; }
.sel-i:hover { background: var(--bg2); }
.sel-i.on { background: var(--accent-soft); color: var(--accent2); }
.sel-i span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sel-i small { font-size: 10.5px; color: var(--ink3); font-weight: 500; }
.sel-i svg.i { width: 15px; height: 15px; color: var(--accent2); }
.sel-i .cb { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line2); flex-shrink: 0; position: relative; background: var(--panel); }
.sel-i.on .cb { background: var(--accent); border-color: var(--accent); }
.sel-i.on .cb::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sel-i .sw { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.modal .sel, .field .sel { width: 100%; display: block; }
.sel.metric { margin-left: auto; }
.sel.metric .sel-b { height: 38px; padding: 0 12px 0 14px; border-radius: 11px; font-weight: 700; color: var(--accent2); border-color: color-mix(in srgb, var(--accent) 45%, var(--line2)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--panel)), var(--panel) 70%); }
.sel.metric .sel-b > svg.i:first-child { color: var(--accent); width: 17px; height: 17px; }
.sel.metric .sel-b:hover { border-color: var(--accent); }
.sel.metric .sel-l::before { content: 'Показатель · '; font-weight: 500; color: var(--ink3); }
.nd .inp.bad { border-color: var(--rose); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rose) 18%, transparent); }
.nd-hint { margin-top: 6px; min-height: 16px; font-size: 12px; color: var(--ink3); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nd-hint .ok { display: inline-flex; align-items: center; gap: 4px; color: var(--mint); font-weight: 600; }
.nd-hint .ok svg { width: 14px; height: 14px; }
.nd-new { border: 1px dashed var(--line2); border-radius: 12px; padding: 12px 14px 2px; }
.nd-new[hidden] { display: none; }
.nd-new-h { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.nd-sum { height: 36px; display: flex; align-items: center; gap: 8px; color: var(--ink3); font-size: 12.5px; }
.nd-sum svg { width: 16px; height: 16px; opacity: .7; }
.modal.docx { width: min(1360px, 100%); max-height: 94vh; display: flex; flex-direction: column; overflow: hidden; }
.modal.docx > .bd { padding: 0; flex: 1; min-height: 0; overflow: hidden; }
.modal.docx > .ft { align-items: center; }
.nd-err { min-height: 0; font-size: 11.5px; color: var(--rose); margin-top: 4px; line-height: 1.3; }
.nd-err:empty { display: none; }
.btn:focus, .sel-b:focus { outline: none; }
.btn:focus-visible, .sel-b:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.sel.pre-st .sel-l::before { content: 'Статус · '; color: var(--ink3); font-weight: 500; }
.sel.pre-act .sel-l::before { content: 'Дела · '; color: var(--ink3); font-weight: 500; }
.sel.pre-act.warn .sel-l { color: var(--rose); }
.udel-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.udel-h .ava { width: 40px; height: 40px; font-size: 14px; border-radius: 12px; }
.udel-h b { display: block; font-size: 15px; }
.udel-h small { color: var(--ink3); font-size: 12.5px; }
.udel-g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.udel-c { padding: 12px 14px; border-radius: 12px; background: var(--bg2); }
.udel-c.bad { background: var(--rose-soft); }
.udel-c.bad .xh { color: var(--rose); }
.udel-c.ok { background: var(--mint-soft); }
.udel-c.ok .xh { color: var(--mint); }
.udel-c ul { margin: 0; padding-left: 16px; font-size: 13px; line-height: 1.7; color: var(--ink2); }
.udel-ok { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.udel-ok input { margin-top: 2px; accent-color: var(--rose); }
.co-sug { position: fixed; z-index: 3000; max-height: 320px; overflow-y: auto; padding: 4px; background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; }
.co-sug-i { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; padding: 7px 9px; border: 0; border-radius: 7px; background: none; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.co-sug-i:hover, .co-sug-i.on { background: var(--bg2); }
.co-sug-i b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-sug-i small { flex-shrink: 0; color: var(--ink3); font-size: 11.5px; }
@media (max-width: 760px) {
  :root { --top: 56px; }
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  
  .inp, input.inp, textarea.inp, select, .sel-s { font-size: 16px !important; }
  main { min-height: 100dvh; }
  
  .page { padding: 14px 12px calc(40px + env(safe-area-inset-bottom)); }
  .page.flush { padding: 0; }
  .ph { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 14px; }
  .ph h1 { font-size: 22px; line-height: 1.2; }
  .ph .sub { font-size: 12.5px; }
  .ph .acts { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .ph .acts > .btn, .ph .acts > a.btn { flex: 1 1 auto; justify-content: center; }
  .ph .ov-acts { align-items: stretch; }
  .ph .ov-acts > .row { flex-wrap: wrap; }
  .ph .ov-acts .btn.p { flex: 1; justify-content: center; }
  .card { border-radius: 14px; }
  .card > .hd { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .card .bd { padding: 14px; }
  .grid, .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr !important; }
  .btn { min-height: 38px; }
  .btn.xs { min-height: 30px; }
  .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  
  .card:has(> .tbl) { overflow-x: auto !important; -webkit-overflow-scrolling: touch; max-height: none; }
  .card > .tbl { min-width: 620px; }
  
  .mback { padding: 0; align-items: end; place-items: end stretch; }
  .modal, .modal.lg, .modal.docx { width: 100% !important; max-width: 100% !important; max-height: 92dvh; border-radius: 18px 18px 0 0; }
  .modal .hd { padding: 14px 16px; position: sticky; top: 0; background: var(--panel); z-index: 2; }
  .modal .bd { padding: 16px; }
  .modal .ft { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); position: sticky; bottom: 0; background: var(--panel); flex-wrap: wrap; }
  .modal .ft .btn { flex: 1; justify-content: center; }
  .udel-g { grid-template-columns: 1fr; }
  .toast { max-width: calc(100vw - 24px); bottom: calc(16px + env(safe-area-inset-bottom)); }
  .sel.metric { margin-left: 0; width: 100% !important; }
}
/* ^ modal-form.html: 83 */
.g-3-2 { grid-template-columns: 3fr 2fr; }
.stages { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; }
.stages .st { flex: 1; min-width: 120px; height: 36px; display: flex; align-items: center; justify-content: center; padding: 0 16px 0 20px; font-size: 12px; font-weight: 700; color: var(--ink3); background: var(--bg2); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); cursor: pointer; white-space: nowrap; transition: all .15s; }
.stages .st:first-child { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); border-radius: 8px 0 0 8px; }
.stages .st.done { background: var(--accent-soft); color: var(--accent2); }
.stages .st.cur { background: var(--accent); color: #fff; }
.stages .st.won { background: var(--mint); color: #fff; }
.stages .st.lost { background: var(--rose); color: #fff; }
.stages .st:hover:not(.cur) { filter: brightness(.96); }
.tl { display: flex; flex-direction: column; }
.tl .e { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 8px 0; position: relative; }
.tl .e::before { content: ""; position: absolute; left: 12px; top: 28px; bottom: -8px; width: 1px; background: var(--line); }
.tl .e:last-child::before { display: none; }
.tl .e .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent2); }
.tl .e .ic.m { background: var(--mint-soft); color: var(--mint); }
.tl .e .ic.a { background: var(--amber-soft); color: var(--amber); }
.tl .e .ic.v { background: var(--violet-soft); color: var(--violet); }
.tl .e .ic.g { background: var(--bg2); color: var(--ink3); }
.tl .e .tx { font-size: 13px; }
.tl .e .tx b { font-weight: 700; }
.tl .e .dt { font-size: 11px; color: var(--ink3); font-family: var(--mono); }
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr 1fr; }
  .g-3-2 { grid-template-columns: 1fr; }
}
.it-tot { display: grid; grid-template-columns: auto 170px; justify-content: end; gap: 7px 28px; padding: 14px 20px 6px; font-size: 13px; }
.it-tot .k { color: var(--ink2); text-align: right; }
.it-tot .v { text-align: right; font-family: var(--mono); color: var(--ink); }
.it-tot .big { font-size: 17px; font-weight: 700; color: var(--ink); padding-top: 4px; }
.stages-ro .stages .st { cursor: default; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tabs, .stages { overflow-y: hidden; }
.it-tot .it-mk-k { color: var(--accent2); }
.it-tot .it-mk-v { color: var(--mint, #3aa676); font-weight: 700; }
.fn-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px 0 6px; border: 0; border-radius: 6px; background: var(--bg2); color: var(--ink2); font: inherit; font-weight: 600; cursor: pointer; vertical-align: 1px; }
.fn-chip svg { width: 13px; height: 13px; }
.fn-chip:hover { color: var(--accent); }
.fn-chip.ro { cursor: default; }
.fn-chip.ro:hover { color: var(--ink2); }
@media (max-width: 760px) {
  :root { --top: 56px; }
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  
  .inp, input.inp, textarea.inp, select { font-size: 16px !important; }
  main { min-height: 100dvh; }
  
  .page { padding: 14px 12px calc(40px + env(safe-area-inset-bottom)); }
  .page.flush { padding: 0; }
  .ph { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 14px; }
  .ph h1 { font-size: 22px; line-height: 1.2; }
  .ph .sub { font-size: 12.5px; }
  .ph .acts { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .ph .acts > .btn, .ph .acts > a.btn { flex: 1 1 auto; justify-content: center; }
  .ph .ov-acts { align-items: stretch; }
  .ph .ov-acts > .row { flex-wrap: wrap; }
  .ph .ov-acts .btn.p { flex: 1; justify-content: center; }
  .card { border-radius: 14px; }
  .card > .hd { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .card .bd { padding: 14px; }
  .grid, .grid.g2, .grid.g3, .grid.g4, .g-3-2 { grid-template-columns: 1fr !important; }
  .btn { min-height: 38px; }
  .btn.xs { min-height: 30px; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex-shrink: 0; }
  
  .tscroll, .card:has(> .tbl) { overflow-x: auto !important; -webkit-overflow-scrolling: touch; max-height: none; }
  .card > .tbl { min-width: 620px; }
  .tbl th, .tbl td { padding: 9px 10px; }
  .toast { max-width: calc(100vw - 24px); bottom: calc(16px + env(safe-area-inset-bottom)); }
  .tbl.hm-t { min-width: 820px; }
  .tbl.hm-t td:first-child, .tbl.hm-t th:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); }
  .stages .st { flex-shrink: 0; }
  .tscroll .tbl.dt tr.xrow:not(.xrow2) > td > .xp { width: calc(100vw - 40px) !important; max-width: calc(100vw - 40px) !important; grid-template-columns: 1fr !important; }
  
  .tbl.ut { min-width: 860px; }
}
/* ^ entity-card.html: 37 */
@media (max-width: 760px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .topbar .search { display: none; }
}
.wtoast { display: flex; gap: 12px; align-items: flex-start; width: 340px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow2); cursor: pointer; animation: wtIn .25s cubic-bezier(.2,.9,.3,1.2); }
.wtoast > div { display: flex; flex-direction: column; gap: 3px; font-size: 13px; min-width: 0; }
.wtoast span { color: var(--ink2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wtoast.out { opacity: 0; transform: translateX(30px); transition: .35s; }
@keyframes wtIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.toast.undo { display: flex; align-items: center; gap: 10px; }
.toast.undo button { border: 0; background: transparent; color: var(--accent); font-weight: 700; margin-left: 6px; }
@media (max-width: 760px) {
  :root { --top: 56px; }
  html { -webkit-text-size-adjust: 100%; }
  body { overflow-x: hidden; }
  
  .inp, input.inp, textarea.inp, select { font-size: 16px !important; }
  main { min-height: 100dvh; }
  .topbar::after { display: none; }
  .topbar { height: var(--top); padding: 0 10px; gap: 6px; padding-top: env(safe-area-inset-top); }
  .topbar .burger, .topbar .ic { width: 38px; height: 38px; flex-shrink: 0; }
  .topbar .crumbs { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; font-size: 14px; }
  .topbar .crumbs > * { overflow: hidden; text-overflow: ellipsis; }
  .topbar .search { display: none !important; }
  .topbar .wav { width: 34px !important; height: 34px !important; }
  .topbar #back { display: none; }
  
  .nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; overflow: visible; flex: none; }
  .nav .grp { display: block; grid-column: 1 / -1; padding: 12px 6px 4px; }
  .nav a { justify-content: flex-start; padding: 11px 10px; border-radius: 12px; background: var(--bg2); font-size: 13.5px; min-height: 44px; white-space: normal; line-height: 1.2; }
  .nav a.on { background: none; }
  .nav a .badge { padding: 3px 6px; }
  .nav a.soon { opacity: .55; }
  
  .page { padding: 14px 12px calc(40px + env(safe-area-inset-bottom)); }
  .page.flush { padding: 0; }
  .ph { flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 14px; }
  .ph h1 { font-size: 22px; line-height: 1.2; }
  .ph .sub { font-size: 12.5px; }
  .ph .acts { width: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .ph .acts > .btn, .ph .acts > a.btn { flex: 1 1 auto; justify-content: center; }
  .ph .ov-acts { align-items: stretch; }
  .ph .ov-acts > .row { flex-wrap: wrap; }
  .ph .ov-acts .btn.p { flex: 1; justify-content: center; }
  .card { border-radius: 14px; }
  .card > .hd { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .card .bd { padding: 14px; }
  .grid, .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: 1fr !important; }
  .btn { min-height: 38px; }
  .btn.xs { min-height: 30px; }
  
  .card:has(> .tbl) { overflow-x: auto !important; -webkit-overflow-scrolling: touch; max-height: none; }
  .card > .tbl { min-width: 620px; }
  
  .wpop { left: 8px !important; right: 8px !important; width: auto !important; max-height: 75dvh; }
  .npop { width: auto; }
  .wtoast { width: auto; }
  .toast { max-width: calc(100vw - 24px); bottom: calc(16px + env(safe-area-inset-bottom)); }
}
/* ^ toast-notify.html: 9 */
.perm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.perm { display: flex; align-items: flex-start; gap: 9px; padding: 8px 10px; border-radius: 10px; background: var(--bg2); cursor: pointer; }
.perm input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.perm b { display: block; font-size: 13px; }
.perm .s { display: block; margin-top: 2px; }
@media (max-width: 760px) { .perm-list { grid-template-columns: 1fr; } }
.acc { display: grid; grid-template-columns: minmax(260px, 330px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .acc { grid-template-columns: 1fr; } }
.acc-l { position: sticky; top: 76px; }
.acc-ul { display: flex; flex-direction: column; gap: 2px; padding: 6px; max-height: calc(var(--vh, 100vh) - 200px); overflow: auto; }
.acc-u { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.acc-u:hover { background: var(--bg2); }
.acc-u.on { background: var(--accent-soft); }
.acc-u .ava { width: 32px; height: 32px; flex-shrink: 0; }
.acc-un { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-un b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-un small { font-size: 11.5px; color: var(--ink3); }
.acc-u.on .acc-un b { color: var(--accent2); }
.acc-pers { font-style: normal; color: var(--accent2); font-weight: 600; }
.acc-h { gap: 12px; flex-wrap: wrap; }
.acc-h h3 { margin: 0; }
.acc-role { display: flex; align-items: center; gap: 8px; }
.acc-note { margin-bottom: 6px; }
.acc-g { margin-top: 18px; }
.acc-gh { display: flex; align-items: center; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.acc-gh > div { display: flex; flex-direction: column; gap: 2px; }
.acc-gh b { font: 700 14px/1.2 var(--head); }
.acc-gh small { font-size: 12px; color: var(--ink3); }
.acc-row { padding: 9px 2px; }
.acc-tag { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--accent2); background: var(--accent-soft); padding: 2px 6px; border-radius: 6px; margin-left: 8px; vertical-align: 1px; }
.ut-wrap { overflow: visible; }
.ut-u { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ut-u .ava { width: 34px; height: 34px; font-size: 12px; border-radius: 10px; }
.ut-n { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ut-n b { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.ut-n small { font-size: 12px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; }
.ut-c { font-size: 13px; color: var(--ink2); }
.ut-acc { display: flex; flex-direction: column; gap: 5px; text-decoration: none; color: var(--ink2); font-size: 12px; padding: 4px 0; }
.ut-acc:hover .ut-al { color: var(--accent2); }
.ut-bar { display: block; height: 4px; border-radius: 3px; background: var(--line2); overflow: hidden; width: 100%; max-width: 150px; }
.ut-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.ut-al b { color: var(--ink); font-weight: 700; }
.ut-pers { font-style: normal; color: var(--accent); font-size: 9px; margin-left: 5px; vertical-align: 2px; }
.ut-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink3); }
.ut-st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ink3); }
.ut-st.ok { color: var(--ink); }
.ut-st.ok::before { background: var(--mint); }
.ut-st.bad { color: var(--rose); }
.ut-st.bad::before { background: var(--rose); }
.ut-sm { display: block; font-size: 11.5px; color: var(--ink3); margin: 2px 0 0 13px; }
.ut-a { text-align: right; }
.ut-a .btn { margin-left: 4px; }
.ut-a .btn svg.i { width: 13px; height: 13px; }
.ut-me { display: inline-block; width: 30px; text-align: center; font-size: 11.5px; color: var(--ink3); margin-left: 4px; }
.ut-ic { width: 30px; padding: 0 !important; justify-content: center; }
.ut-ic svg.i { width: 15px !important; height: 15px !important; }
.ut-off td { opacity: .55; }
.ut-off td.ut-a { opacity: 1; }
.ut-note { padding-top: 12px; }
.acc-sub { display: flex; align-items: center; gap: 10px; margin: -2px 0 6px 18px; padding: 6px 10px; border-left: 2px solid var(--line); }
.acc-sub.dis { opacity: .5; }
.acc-sub-l { font-size: 12.5px; color: var(--ink2); flex: 1; }
.acc-sub .seg button { font-size: 12px; }
.sw-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.sw-row:last-of-type { border-bottom: 0; }
.sw-row > span:first-child { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.sw-row b { font-size: 13.5px; font-weight: 600; }
.sw-row small { font-size: 12px; color: var(--ink3); }
.sw-row.dis { opacity: .55; cursor: not-allowed; }
.sw { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.sw i { position: absolute; inset: 0; border-radius: 12px; background: var(--line2); transition: .2s; }
.sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: .2s; }
.sw input:checked + i { background: var(--accent); }
.sw input:checked + i::after { transform: translateX(18px); }
.sw input:focus-visible + i { box-shadow: 0 0 0 3px rgba(7,136,204,.3); }
@media (max-width: 760px) {
  .tbl.ut { min-width: 860px; }
  .acc { grid-template-columns: 1fr !important; }
  .acc-l { position: static; }
  .acc-ul { max-height: 240px; }
  .acc-h { flex-direction: column; align-items: flex-start; }
}
.c-a { color: var(--amber, #c98a2b); }
/* ^ perms-matrix.html: 78 */
