:root {
  --bg: #f6f6f9; --panel: #ffffff; --panel-2: #f9f8fc; --text: #242424; --muted: #8b8b9a; --line: #ececf2;
  --accent: #8b16ef; --accent-2: #cb11ab; --accent-soft: #f3e8ff; --accent-text: #6b0fc0;
  --ok: #19a463; --ok-soft: #e4f6ec; --err: #f2364d; --err-soft: #fde8eb; --warn: #f39c12; --warn-soft: #fff4e0;
  --grad: linear-gradient(90deg, #cb11ab 0%, #8b16ef 60%, #6a11cb 100%);
  --radius: 16px; --shadow: 0 1px 2px rgba(20, 10, 40, .04), 0 4px 16px rgba(20, 10, 40, .04);
}
:root[data-theme="dark"] {
  --bg: #121117; --panel: #1c1b22; --panel-2: #23222b; --text: #ececf1; --muted: #9a99a8; --line: #2d2c36;
  --accent: #b76bff; --accent-2: #ff4fd8; --accent-soft: #2c1f40; --accent-text: #d4a8ff;
  --ok: #3ccf87; --ok-soft: #173426; --err: #ff6b7e; --err-soft: #3a1c22; --warn: #ffb347; --warn-soft: #3a2c16;
  --shadow: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.ti { font-size: 18px; vertical-align: -3px; }

/* шапка */
.header { background: var(--grad); color: #fff; height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 20px; position: sticky; top: 0; z-index: 20; }
.logo { font-weight: 800; font-size: 19px; letter-spacing: .3px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.logo .mark { background: #fff; color: #8b16ef; border-radius: 10px; width: 32px; height: 32px; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.header .spacer { flex: 1; }
.header select, .header .hbtn { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; padding: 7px 12px; font: inherit; cursor: pointer; }
.header select option { color: #242424; }
.header .hbtn:hover { background: rgba(255,255,255,.26); text-decoration: none; }
.search { position: relative; max-width: 300px; flex: 1; }
.search input { width: 100%; background: rgba(255,255,255,.95); border: 0; border-radius: 10px; padding: 8px 12px 8px 34px; color: #242424; }
.search .ti { position: absolute; left: 10px; top: 9px; color: #8b8b9a; }

.layout { display: flex; min-height: calc(100vh - 60px); }
.topnav { display: flex; gap: 2px; margin-left: 18px; }
.tn-item { position: relative; }
.tn-btn { background: transparent; color: rgba(255,255,255,.92); border: 0; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 4px; }
.tn-btn:hover, .tn-item.open .tn-btn, .tn-btn.on { background: rgba(255,255,255,.18); filter: none; }
.tn-drop { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 12px 32px rgba(20,10,40,.18); z-index: 50; }
.tn-item.open .tn-drop { display: block; }
@media (hover: hover) { .tn-item:hover .tn-drop { display: block; } .tn-item:hover .tn-btn { background: rgba(255,255,255,.18); } }
.tn-drop::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.tn-drop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 500; white-space: nowrap; }
.tn-drop a .ti { color: var(--muted); font-size: 19px; }
.tn-drop a:hover { background: var(--panel-2); text-decoration: none; }
.tn-drop a.active { background: var(--accent-soft); color: var(--accent-text); }
.tn-drop a.active .ti { color: var(--accent); }
.side { width: 232px; flex-shrink: 0; background: var(--panel); border-right: 1px solid var(--line); padding: 14px 10px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--text); margin-bottom: 2px; font-weight: 500; }
.nav a .ti { color: var(--muted); font-size: 20px; }
.nav a:hover { background: var(--panel-2); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--accent-text); }
.nav a.active .ti { color: var(--accent); }
.nav .sep { font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 14px 12px 6px; }
.nav .cnt { margin-left: auto; background: var(--accent-2); color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 7px; }

.main { flex: 1; min-width: 0; padding: 22px 28px 60px; max-width: 1680px; margin: 0 auto; }
.top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.top h1 { font-size: 24px; margin: 0; margin-right: auto; font-weight: 700; }
select, input, textarea, button { font: inherit; color: inherit; }
select, input[type=text], input[type=password], input[type=number], input[type=date], textarea {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { width: 100%; min-height: 72px; resize: vertical; }
button, .btn { background: var(--grad); color: #fff; border: 0; border-radius: 10px; padding: 9px 16px; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
button:hover, .btn:hover { filter: brightness(1.07); text-decoration: none; }
button.ghost, .btn.ghost { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
button.danger { background: var(--err); }
button.small, .btn.small { padding: 6px 11px; font-size: 13px; }
button[disabled] { opacity: .6; cursor: default; }

.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 3px; flex-wrap: wrap; }
.seg a { padding: 6px 12px; color: var(--text); border-radius: 9px; font-weight: 500; white-space: nowrap; }
.seg a.on { background: var(--accent-soft); color: var(--accent-text); }
.seg a:hover { text-decoration: none; background: var(--panel-2); }
.period { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.period form { display: flex; gap: 6px; align-items: center; }
.period input[type=date] { padding: 6px 8px; }

.grid { display: grid; gap: 14px; }
.kpis { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 14px; }
.cols2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--panel); border-radius: var(--radius); padding: 18px; min-width: 0; box-shadow: var(--shadow); border: 1px solid var(--line); }
.card h2 { font-size: 16px; margin: 0 0 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card h2 .more { margin-left: auto; font-size: 13px; font-weight: 500; }
.kpi .label { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 25px; font-weight: 700; margin-top: 6px; white-space: nowrap; letter-spacing: -.3px; }
.kpi .sub { color: var(--muted); font-size: 12.5px; margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kpi.hero { background: var(--grad); color: #fff; border: 0; }
.kpi.hero .label, .kpi.hero .sub { color: rgba(255,255,255,.85); }
.delta { font-weight: 600; font-size: 12.5px; padding: 1px 7px; border-radius: 99px; }
.delta.up { color: var(--ok); background: var(--ok-soft); }
.delta.down { color: var(--err); background: var(--err-soft); }
.kpi.hero .delta { background: rgba(255,255,255,.2); color: #fff; }
.muted { color: var(--muted); }
.small-t { font-size: 12.5px; }
.tbl-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; background: var(--panel-2); position: sticky; top: 0; }
th:first-child { border-top-left-radius: 10px; } th:last-child { border-top-right-radius: 10px; }
td.r, th.r { text-align: right; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--panel-2); }
tr.total td { font-weight: 700; background: var(--panel-2); }
.thumb { width: 40px; height: 53px; object-fit: cover; border-radius: 8px; background: var(--line); display: block; }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-weight: 500; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.err { background: var(--err-soft); color: var(--err); }
.badge { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent-text); margin: 2px 4px 2px 0; white-space: nowrap; }
.badge.red { background: var(--err-soft); color: var(--err); }
.badge.green { background: var(--ok-soft); color: var(--ok); }
.badge.yellow { background: var(--warn-soft); color: var(--warn); }
.badge.gray { background: var(--panel-2); color: var(--muted); }
.price-form { display: flex; gap: 6px; align-items: center; }
.price-form input { width: 88px; padding: 6px 8px; }
.fb { border-bottom: 1px solid var(--line); padding: 14px 0; }
.fb:last-child { border-bottom: 0; }
.stars { color: #ffb400; letter-spacing: 1px; }
.login { max-width: 380px; margin: 12vh auto; padding: 0 16px; }
.login .card { padding: 30px; }
.login input { width: 100%; margin: 12px 0 14px; }
.login button { width: 100%; justify-content: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.notice { background: var(--accent-soft); color: var(--accent-text); border-radius: 12px; padding: 11px 16px; margin-bottom: 14px; font-weight: 500; }
.bar { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; margin-top: 5px; }
.bar > i { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.signals { display: grid; gap: 8px; }
.signal { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); color: var(--text); }
.signal:hover { text-decoration: none; filter: brightness(.98); }
.signal.red { background: var(--err-soft); }
.signal.yellow { background: var(--warn-soft); }
.list-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.list-row:last-child { border-bottom: 0; }
.pos { color: var(--ok); } .neg { color: var(--err); }
.mnav { display: none; }
@media (max-width: 960px) {
  .cols2, .cols3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .side, .topnav, .hide-m { display: none; }
  .header { padding: 0 12px; gap: 8px; }
  .search { display: none; }
  .logo span.txt { display: none; }
  .main { padding: 14px 14px 90px; }
  .top h1 { font-size: 20px; width: 100%; }
  .mnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--panel); border-top: 1px solid var(--line); z-index: 30; overflow-x: auto; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mnav a { flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--muted); padding: 4px 2px; }
  .mnav a .ti { font-size: 22px; }
  .mnav a.active { color: var(--accent); }
  .kpi .value { font-size: 21px; }
}
.sec-t { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.forecast { border-left: 4px solid var(--accent); }
.forecast .fl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.forecast b { font-size: 16px; }
#st tr.grp { cursor: pointer; }
#st tr.grp td { font-weight: 600; }
#st tr.child td { background: var(--panel-2); font-size: 13px; }
#st .cmpv { display: none; color: var(--muted); }
#st.show-cmp .cmpv { display: block; }
.btn.on { background: var(--accent-soft); color: var(--accent-text); }
.tile-h { font-size: 18px; font-weight: 800; }
.tile-main { border: 2px solid var(--accent); }
.tile-row { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.tile-row.hl { background: var(--accent-soft); margin: 0 -10px; padding: 10px; border-radius: 10px; border-bottom: 0; }
.tile-l { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.tile-v { font-size: 24px; font-weight: 800; letter-spacing: -.3px; margin-top: 2px; white-space: nowrap; }
.tile-s { color: var(--muted); font-size: 12.5px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.tile-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.tile-mini > div { display: flex; flex-direction: column; font-size: 12.5px; background: var(--panel-2); border-radius: 10px; padding: 8px 10px; }
.tile-mini b { font-size: 15px; }
table.costs td { padding: 14px 18px; }
table.costs th { padding: 12px 18px; text-transform: uppercase; letter-spacing: .6px; }
.cname { font-weight: 700; font-size: 15px; color: var(--text); }
.cval { font-weight: 800; font-size: 17px; color: var(--accent); }
.cedit { position: relative; display: inline-block; }
.cedit summary { list-style: none; }
.cedit summary::-webkit-details-marker { display: none; }
.cedit-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: 0 12px 32px rgba(20,10,40,.18); text-align: left; min-width: 200px; }
.dcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.dday { background: var(--panel-2); border-radius: 12px; padding: 8px; min-height: 140px; }
.dday.today { outline: 2px solid var(--accent); }
.dday-h { font-weight: 700; font-size: 13px; margin-bottom: 6px; display: flex; justify-content: space-between; }
.dday-h span { color: var(--muted); font-weight: 500; }
.dchip { display: block; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid; border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; font-size: 12px; color: var(--text); overflow: hidden; }
.dchip:hover { text-decoration: none; box-shadow: var(--shadow); }
.dchip b { display: block; font-size: 11.5px; }
.dchip span { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.dexpl { display: grid; gap: 4px; margin-top: 10px; font-size: 13.5px; }
@media (max-width: 860px) { .dcal { grid-template-columns: 1fr; } .dday { min-height: 0; } }

/* ===== Бухгалтерия ===== */
.top:has(h1:empty) { display: none; }
.acc { --r: 18px; display: grid; gap: 18px; }
.acc-muted { color: var(--muted); }
.acc-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 26px 28px; border-radius: 22px;
  background: radial-gradient(1200px 300px at 0% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
              radial-gradient(800px 260px at 100% 0%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 60%), var(--panel);
  border: 1px solid var(--line); }
.acc-eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .4px; color: var(--accent); display: flex; gap: 6px; align-items: center; }
.acc-title { font-size: 30px; font-weight: 800; letter-spacing: -.6px; margin: 6px 0 6px; }
.acc-sub { margin: 0; color: var(--muted); max-width: 620px; font-size: 14.5px; }
.acc-hero-r { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.acc-switch { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.acc-switch a { display: flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.acc-switch a:hover { text-decoration: none; color: var(--text); }
.acc-switch a.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(20,10,40,.1); }
.acc-weeknav { display: flex; gap: 6px; align-items: center; }
.acc-weeknav > a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.acc-weeknav > a:hover { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.acc-weeknav a.acc-today { width: auto; padding: 0 14px; font-weight: 600; }
.acc-weekpick { position: relative; display: flex; gap: 8px; align-items: center; height: 38px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-weight: 700; cursor: pointer; }
.acc-weekpick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.acc-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.acc-kpi { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); }
.acc-kpi.alert { border-color: color-mix(in srgb, var(--err) 45%, var(--line)); background: color-mix(in srgb, var(--err) 6%, var(--panel)); }
.acc-kpi-i, .acc-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); font-size: 22px; }
.acc-ico .ti, .acc-kpi-i .ti { font-size: 22px; vertical-align: 0; }
.acc-ico.sm { width: 36px; height: 36px; border-radius: 11px; }
.acc-ico.sm .ti { font-size: 18px; }
.acc-kpi-v { font-size: 26px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.acc-kpi-l { color: var(--muted); font-size: 12.5px; }
.acc-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 18px; }
.acc-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); min-width: 0; }
.acc-card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.acc-card-h h2 { font-size: 17px; font-weight: 800; margin: 0; }
.acc-card-h .acc-muted { font-size: 12.5px; margin-left: auto; }
.acc-pill { background: var(--accent-soft); color: var(--accent-text); border-radius: 99px; padding: 2px 10px; font-weight: 700; font-size: 12.5px; }
.acc-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.acc-day { border-radius: 14px; padding: 10px 8px; min-height: 168px; background: var(--panel-2); border: 1px solid transparent; }
.acc-day.empty { opacity: .75; }
.acc-day.today { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.acc-day-h { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; padding: 0 2px; }
.acc-dow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; }
.acc-dnum { font-size: 20px; font-weight: 800; }
.acc-day.today .acc-dnum { color: var(--accent); }
.acc-dcnt { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 0 7px; }
.acc-chip { display: flex; gap: 6px; align-items: center; padding: 6px 8px; margin-bottom: 6px; border-radius: 9px; font-size: 11.5px; font-weight: 600;
  background: color-mix(in srgb, var(--c) 11%, var(--panel)); color: var(--text); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); }
.acc-chip .ti { color: var(--c); font-size: 15px; vertical-align: 0; flex-shrink: 0; }
.acc-chip { align-items: flex-start; line-height: 1.3; }
.acc-chip span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.acc-chip:hover { text-decoration: none; border-color: var(--c); }
.acc-act { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.acc-act:last-child { border-bottom: 0; }
.acc-act-b { flex: 1; min-width: 0; }
.acc-act-t { font-weight: 700; font-size: 13.5px; }
.acc-act-b .small-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-bar { height: 5px; background: var(--panel-2); border-radius: 3px; margin-top: 7px; overflow: hidden; }
.acc-bar i { display: block; height: 100%; border-radius: 3px; }
.acc-due { text-align: right; display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.acc-due b { font-size: 15px; color: var(--text); }
.acc-act.hot .acc-due b { color: var(--err); }
.acc-empty { display: flex; gap: 14px; align-items: center; padding: 18px 4px; color: var(--ok); }
.acc-empty .ti { font-size: 34px; }
.acc-empty b { color: var(--text); }
.acc-empty.big { justify-content: center; padding: 34px; color: var(--muted); }
.acc-sec { font-size: 12.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; margin: 6px 2px -6px; }
.acc-group { border-top: 4px solid var(--c); }
.acc-group-h { display: flex; gap: 14px; align-items: center; }
.acc-group-h h2 { margin: 0; font-size: 17px; font-weight: 800; }
.acc-tag { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.acc-tag .ti { font-size: 14px; vertical-align: 0; }
.acc-expl { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 12px; margin: 16px 0 6px; }
.acc-expl > div { background: var(--panel-2); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.acc-expl-l { display: flex; gap: 5px; align-items: center; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.acc-expl-l .ti { font-size: 14px; vertical-align: 0; }
.acc-docs { display: grid; }
.acc-doc { display: flex; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.acc-doc:last-child { border-bottom: 0; }
.acc-doc:target { background: var(--accent-soft); border-radius: 12px; }
.acc-doc-date { width: 52px; text-align: center; display: flex; flex-direction: column; flex-shrink: 0; }
.acc-doc-date b { font-size: 15px; }
.acc-doc-date span { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.acc-doc-b { flex: 1; min-width: 0; }
.acc-doc-n { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.acc-new { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; background: var(--accent); color: #fff; padding: 1px 7px; border-radius: 99px; }
.acc-st { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.acc-st.ok { background: var(--ok-soft); color: var(--ok); }
.acc-st.hot { background: var(--err-soft); color: var(--err); }
.acc-st.done { background: var(--panel-2); color: var(--muted); font-weight: 600; }
.acc-files { display: flex; gap: 6px; }
.acc-file { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); background: var(--panel); }
.acc-file .ti { font-size: 16px; vertical-align: 0; color: var(--accent); }
.acc-file:hover { text-decoration: none; border-color: var(--accent); }
.acc-chart { display: flex; gap: 10px; align-items: flex-end; height: 190px; padding: 6px 2px 0; }
.acc-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; color: var(--muted); }
.acc-col:hover { text-decoration: none; }
.acc-col-n { font-size: 12px; font-weight: 700; color: var(--text); height: 18px; }
.acc-col-bar { flex: 1; width: 100%; max-width: 44px; display: flex; flex-direction: column-reverse; border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.acc-col-bar i { display: block; width: 100%; }
.acc-col:hover .acc-col-bar { outline: 2px solid var(--accent); }
.acc-col.cur .acc-col-bar { outline: 2px solid var(--accent); }
.acc-col-l { font-size: 11px; margin-top: 6px; }
.acc-col.cur .acc-col-l { color: var(--accent); font-weight: 700; }
.acc-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.acc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.acc-search { position: relative; margin-left: auto; }
.acc-search .ti { position: absolute; left: 12px; top: 10px; color: var(--muted); }
.acc-search input[type=text] { padding-left: 34px; width: 300px; border-radius: 12px; }
.acc-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.acc-filters a { padding: 6px 12px; border-radius: 99px; background: var(--panel-2); color: var(--text); font-size: 12.5px; font-weight: 600; border: 1px solid transparent; }
.acc-filters a b { color: var(--muted); margin-left: 4px; }
.acc-filters a.on { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.acc-filters a:hover { text-decoration: none; }
.acc-guide { display: grid; gap: 10px; }
.acc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.acc-two h3 { margin: 12px 0 6px; font-size: 16px; }
.acc-two p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.acc-acc { padding: 14px 18px; }
.acc-acc summary { display: flex; gap: 12px; align-items: center; cursor: pointer; list-style: none; }
.acc-acc summary::-webkit-details-marker { display: none; }
.acc-chev { margin-left: auto; color: var(--muted); transition: transform .2s; }
.acc-acc[open] .acc-chev { transform: rotate(180deg); }
.acc-acc .acc-tag { margin-left: 4px; }
@media (max-width: 1200px) { .acc-grid { grid-template-columns: 1fr; } .acc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .acc-hero { padding: 18px; } .acc-title { font-size: 24px; } .acc-hero-r { align-items: stretch; width: 100%; }
  .acc-kpis { grid-template-columns: 1fr 1fr; } .acc-cal { grid-template-columns: 1fr; } .acc-day { min-height: 0; }
  .acc-expl, .acc-two { grid-template-columns: 1fr; } .acc-doc { flex-wrap: wrap; } .acc-search input[type=text] { width: 100%; }
}

/* ---------- Интеграции ---------- */
.int-stat { display: flex; flex-direction: column; align-items: flex-end; } .int-stat b { font-size: 30px; font-weight: 800; line-height: 1; } .int-stat span { font-size: 12.5px; opacity: .8; }
.int-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); flex: none; }
.int-list { display: flex; flex-direction: column; }
.int-row { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); }
.int-row:first-child { border-top: 0; padding-top: 0; }
.int-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.int-name { font-weight: 700; font-size: 15px; }
.int-scopes { display: flex; flex-wrap: wrap; gap: 4px; }
.int-act { display: flex; gap: 8px; align-items: flex-start; flex: none; }
.int-act .cedit-pop { right: 0; }
.int-add { margin-top: 16px; padding: 16px; border: 1px dashed var(--line); border-radius: 14px; background: color-mix(in srgb, var(--accent, #cb11ab) 4%, transparent); }
.int-add-h { font-weight: 700; margin-bottom: 10px; }
.int-add-g { display: grid; grid-template-columns: 260px 1fr auto; gap: 10px; align-items: start; }
.int-add-g textarea { min-height: 42px; }
.int-sec { display: flex; flex-direction: column; gap: 14px; }
.int-field { display: flex; flex-direction: column; gap: 6px; }
.int-flabel { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.int-clear { display: inline-flex; gap: 4px; align-items: center; cursor: pointer; }
@media (max-width: 900px) { .int-add-g { grid-template-columns: 1fr; } .int-row { flex-direction: column; } .acc .acc-grid[style] { grid-template-columns: 1fr !important; } }
