/* OneDoc interfeysi. Rənglər və komponentlər təsdiqlənmiş maketdən (16.11) götürülüb: eyni tokenlər, işıqlı və tünd rejim. Xarici resurs yoxdur (CSP). */
:root {
  --bg: #F2F5F6; --surface: #FFFFFF; --surface2: #E9EEF0; --line: #D3DBDF;
  --fg: #14212A; --muted: #56676F; --accent: #0B6E74; --accent-soft: #D8EDEE; --accent-fg: #FFFFFF;
  --warn: #9A6410; --warn-soft: #FBF0D9; --bad: #B42318; --bad-soft: #FCE4E1;
  --good: #1B7F4B; --good-soft: #DDF3E6; --info: #2F5DA8; --info-soft: #E1EAF7;
  --on-solid: #fff; --acc-t: #095A60; --good-t: #14603A; --warn-t: #7A4C07; --bad-t: #9A1A10; --info-t: #244B8A;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1519; --surface: #142026; --surface2: #1B2B33; --line: #2A3D47;
    --fg: #E5EDF0; --muted: #91A6B0; --accent: #4FC1C8; --accent-soft: #11383D; --accent-fg: #052226;
    --on-solid: #0D1519; --acc-t: #4FC1C8; --good-t: #62C58D; --warn-t: #E3AC52; --bad-t: #F2877D; --info-t: #7EA6E8;
    --warn: #E3AC52; --warn-soft: #382D14; --bad: #F2877D; --bad-soft: #3D1D19;
    --good: #62C58D; --good-soft: #143826; --info: #7EA6E8; --info-soft: #172949; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.5 var(--font); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); margin: 0; line-height: 1.25; }
a { color: var(--accent); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
[hidden] { display: none !important; }

/* ---------- çərçivə */
.app { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--surface2); border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; }
.side .brand { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--accent); padding: 4px 10px 14px; }
.side a.nav { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--fg); text-decoration: none; font-weight: 500; }
.side a.nav:hover { background: var(--surface); }
.side a.nav.on { background: var(--accent); color: var(--accent-fg); font-weight: 600; }
.side a.nav em { font-style: normal; font-size: 11px; font-weight: 700; background: var(--bad); color: var(--on-solid); padding: 0 7px; border-radius: 99px; }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 8px 4px; width: calc(100% - 8px); }
.side .foot { margin-top: auto; font-size: 12px; color: var(--muted); padding: 6px 10px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 10px 22px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.topbar .search { flex: 1; max-width: 420px; }
.topbar .me { margin-left: auto; text-align: right; line-height: 1.25; font-size: 13px; color: var(--muted); }
.topbar .me b { display: block; color: var(--fg); font-weight: 600; }
.page { padding: 20px 24px 40px; max-width: 1280px; width: 100%; }
.page:focus { outline: none; }
.pt { font-size: 22px; margin-bottom: 4px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 8px; top: 8px; z-index: 70; background: var(--surface); padding: 6px 10px; border-radius: 6px; }
.lead { color: var(--muted); margin-bottom: 14px; }
.btn.menu-toggle { display: none; }

/* ---------- komponentlər */
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 9px; border-radius: 99px; background: var(--surface2); color: var(--muted); white-space: nowrap; }
.tag.acc { background: var(--accent-soft); color: var(--acc-t); } .tag.warn { background: var(--warn-soft); color: var(--warn-t); }
.tag.good { background: var(--good-soft); color: var(--good-t); } .tag.bad { background: var(--bad-soft); color: var(--bad-t); } .tag.info { background: var(--info-soft); color: var(--info-t); }
.btn { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn:hover:not([disabled]) { border-color: var(--accent); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.pri { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn.ok { background: var(--good); color: var(--on-solid); border-color: var(--good); }
.btn.no { background: var(--surface); color: var(--bad); border-color: var(--bad); }
.btn.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.btn.sm { padding: 3px 10px; font-size: 12px; }
.btn.link { border: 0; background: transparent; color: var(--accent); padding: 2px 4px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.row.end { justify-content: flex-end; }
a.pill, a.btn { text-decoration: none; }
.pill { font-size: 12.5px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.pill.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); font-weight: 600; }
.card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; min-width: 0; }
.panel h2 { font-size: 13.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.empty { text-align: center; color: var(--muted); padding: 34px 10px; }
.scroll { overflow-x: auto; position: relative; } /* position: gizli .sr elementləri cədvəl bölgəsindən çıxıb səhifəni genişləndirməsin */
table.mt { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
table.mt th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface2); white-space: nowrap; }
table.mt td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.mt tbody tr:last-child td { border-bottom: 0; }
table.mt tr.click { cursor: pointer; } table.mt tr.click:hover td { background: var(--accent-soft); }
table.mt tr.late td { background: var(--bad-soft); }
table.mt .num { font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
table.mt .t2 { color: var(--muted); font-size: 12px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 10px; color: var(--muted); }

/* ---------- formalar */
.fld { margin-bottom: 12px; min-width: 0; }
.fld > label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.fld .req { color: var(--bad); }
.fld .hint { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.fld .err { font-size: 12px; color: var(--bad); margin-top: 2px; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-height: 34px;
}
textarea { min-height: 84px; resize: vertical; }
input:disabled, select:disabled, textarea:disabled { background: var(--surface2); color: var(--muted); }
.fld.bad input, .fld.bad select, .fld.bad textarea { border-color: var(--bad); }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: 18px; height: 18px; }
.frow { display: grid; gap: 12px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; align-items: end; }
.filters .fld { margin: 0; }

/* ---------- giriş */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login .box { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px 26px 22px; box-shadow: 0 8px 30px rgba(0, 0, 0, .08); }
.login h1 { font-size: 26px; color: var(--accent); margin-bottom: 4px; }
.login .sub { color: var(--muted); margin-bottom: 18px; }
.login .btn { width: 100%; justify-content: center; padding: 9px; }
.msg { padding: 9px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; }
.msg.bad { background: var(--bad-soft); color: var(--bad-t); } .msg.warn { background: var(--warn-soft); color: var(--warn-t); } .msg.good { background: var(--good-soft); color: var(--good-t); }

/* ---------- sənəd */
.stepper { display: flex; margin: 10px 0 14px; overflow-x: auto; }
.stepper div { flex: 1 0 auto; min-width: 90px; font-size: 12px; text-align: center; padding: 7px 10px; background: var(--surface2); color: var(--muted); border-right: 2px solid var(--bg); }
.stepper div:first-child { border-radius: 8px 0 0 8px; } .stepper div:last-child { border-radius: 0 8px 8px 0; border-right: 0; }
.stepper div.done { background: var(--good-soft); color: var(--fg); font-weight: 600; }
.stepper div.now { background: var(--accent); color: var(--accent-fg); font-weight: 700; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 8px 14px; color: var(--muted); cursor: pointer; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv > span:first-child { color: var(--muted); font-size: 12.5px; }
.kv .val { overflow-wrap: anywhere; white-space: pre-wrap; }
.sec { font-family: var(--font-head); font-size: 15px; margin: 14px 0 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.grp { border-left: 3px solid var(--accent); padding-left: 10px; margin-bottom: 10px; }
.grp.wait { border-color: var(--line); }
.grp .gh { font-size: 11.5px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.grp.wait .gh { color: var(--muted); }
.person { display: flex; align-items: center; gap: 9px; padding: 5px 0; }
.person .av { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.person b { display: block; font-size: 13px; line-height: 1.2; } .person span.s { color: var(--muted); font-size: 11.5px; }
.person .st { margin-left: auto; text-align: right; }
.tl { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 14px; font-size: 12.5px; }
.tl > div { margin-bottom: 10px; position: relative; }
.tl > div::before { content: ""; position: absolute; left: -20px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.tl small { color: var(--muted); display: block; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tcard { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--fg); }
.tcard:hover { border-color: var(--accent); background: var(--accent-soft); }
.tcard b { display: block; font-size: 14px; margin-bottom: 2px; } .tcard span { font-size: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--accent-soft); color: var(--accent); border-radius: 99px; padding: 2px 4px 2px 10px; font-size: 12.5px; }
.chip button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 5px; }
.hits { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); max-height: 220px; overflow: auto; margin-top: 4px; }
.hits button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 7px 10px; cursor: pointer; color: var(--fg); border-bottom: 1px solid var(--line); }
.hits button:last-child { border-bottom: 0; } .hits button:hover { background: var(--accent-soft); }
.hits small { color: var(--muted); display: block; }
.pnl { border: 1.5px solid var(--accent); border-radius: 10px; background: var(--surface); padding: 8px 10px 10px; margin-bottom: 12px; }
.pnl-r { display: grid; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); margin-bottom: 6px; position: relative; }

/* ---------- pəncərə və bildiriş */
.overlay { position: fixed; inset: 0; background: rgba(8, 20, 26, .55); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 14px 14px; z-index: 50; overflow: auto; }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; width: 100%; max-width: 560px; box-shadow: 0 14px 40px rgba(0, 0, 0, .25); }
.modal.wide { max-width: 760px; }
.modal .mh { padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; display: flex; justify-content: space-between; }
.modal .mb { padding: 14px 16px; }
.modal .mf { padding: 10px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--fg); color: var(--bg); padding: 9px 14px; border-radius: 8px; font-size: 13px; max-width: 360px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.toast.bad { background: var(--bad); color: var(--on-solid); } .toast.good { background: var(--good); color: var(--on-solid); } .toast.warn { background: var(--warn); color: var(--on-solid); }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: sp .7s linear infinite; vertical-align: middle; }
@keyframes sp { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 40; left: 0; top: 0; width: 240px; transform: translateX(-100%); transition: transform .18s; box-shadow: 0 0 30px rgba(0, 0, 0, .3); }
  .side.open { transform: none; }
  .btn.menu-toggle { display: inline-flex; }
  .page { padding: 14px 12px 32px; }
  .split { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .topbar { padding: 8px 12px; }
  .topbar .me { display: none; }
}
@media print { .side, .topbar, .btn, .tabs { display: none !important; } .app { display: block; } }
@media (prefers-reduced-motion: reduce) { .side, .spin { transition: none; animation: none; } }

.pad { padding: 24px; }
.bad-text { color: var(--bad); }

.frow { grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); }
.frow.cols1 { grid-template-columns: minmax(0, 1fr); }
.frow.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.frow.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.frow > .s2 { grid-column: span 2; } .frow > .s3 { grid-column: span 3; }
.pad-s { padding: 8px 10px; }
@media (max-width: 720px) { .frow.cols2, .frow.cols3 { grid-template-columns: minmax(0, 1fr); } .frow > .s2, .frow > .s3 { grid-column: auto; } }

.row-gap { flex: 1; }
.grow { flex: 1; min-width: 200px; }
.bad-input { border-color: var(--bad) !important; }
select[multiple] { min-height: 74px; padding: 4px; }
.journal tr.cancelled td { color: var(--muted); text-decoration: line-through; }
.journal tr.cancelled td .t2 { text-decoration: none; }
@media print { .noprint { display: none !important; } .page { padding: 0; max-width: none; } table.mt { font-size: 11px; } .journal tr.cancelled td { text-decoration: none; font-style: italic; } }

.c { text-align: center; }
.tabs a.tablink { padding: 8px 14px; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.tablink.on { color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--bg); }
pre.json { margin: 6px 0 0; padding: 8px; background: var(--surface2); border-radius: 6px; font: 12px/1.4 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 560px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Axın sxemi (flowmap.js) */
.fm { display: block; max-width: none; }
.fm-box { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.fm-cat-start .fm-box { fill: var(--accent-soft); stroke: var(--accent); }
.fm-cat-final .fm-box { fill: var(--good-soft); stroke: var(--good); }
.fm-cat-cancelled .fm-box { fill: var(--bad-soft); stroke: var(--bad); }
.fm-name { fill: var(--fg); font-size: 13px; font-weight: 600; }
.fm-sub { fill: var(--muted); font-size: 11px; }
.fm-link { fill: none; stroke-width: 1.8; }
.fm-next { stroke: var(--accent); } .fm-back { stroke: var(--warn); stroke-dasharray: 5 4; }
.fm-approve { stroke: var(--good); } .fm-reject { stroke: var(--bad); } .fm-none { stroke: var(--muted); stroke-dasharray: 2 3; }
.fm-head.fm-next { fill: var(--accent); } .fm-head.fm-back { fill: var(--warn); } .fm-head.fm-approve { fill: var(--good); }
.fm-head.fm-reject { fill: var(--bad); } .fm-head.fm-none { fill: var(--muted); }
.fm-label { font-size: 11px; font-weight: 600; fill: var(--fg); }
.fm-approve-t { fill: var(--good-t); } .fm-reject-t { fill: var(--bad-t); } .fm-back-t { fill: var(--warn-t); }
.fm-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* ---- Admin icmalı (admin-overview.js) */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.kpi .kl { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .kpi-v { font: 700 30px/1.2 var(--font-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .kpi-v.bad { color: var(--bad-t); } .kpi .kpi-v.acc { color: var(--acc-t); }
.kpi .kn { font-size: 12px; color: var(--muted); min-height: 1.5em; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 14px; align-items: start; }
.bars { width: 100%; height: auto; display: block; }
.bars .axis { stroke: var(--line); stroke-width: 1; }
.bars .b-reg { fill: var(--accent); } .bars .b-late { fill: var(--bad); }
.bars .ax-l { fill: var(--muted); font-size: 11px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.legend .sw.reg { background: var(--accent); } .legend .sw.late { background: var(--bad); }
.alert { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; }
.alert.bad { background: var(--bad-soft); color: var(--bad-t); } .alert.warn { background: var(--warn-soft); color: var(--warn-t); } .alert.info { background: var(--info-soft); color: var(--info-t); }
table.mt th.r, table.mt td.r { text-align: right; font-variant-numeric: tabular-nums; }
table.mt td.badt { color: var(--bad-t); font-weight: 700; }
@media (max-width: 900px) { .ov-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- Demo mühiti (demo.js) */
.demo-banner { background: #14232B; color: #E9F1F3; font-size: 13px; padding: 7px 22px; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; align-items: center; }
.demo-banner b { font-weight: 600; }
.role-switch { display: flex; align-items: center; gap: 4px; background: #22343D; border-radius: 8px; padding: 3px; flex-wrap: wrap; }
.role-switch .rs-label { color: #B9C8CE; padding: 0 6px; }
.role-switch .rs { border: 0; background: transparent; color: #E9F1F3; padding: 5px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.role-switch .rs:hover { background: #2E4651; }
.role-switch .rs.on { background: #fff; color: #14232B; font-weight: 600; }
.role-switch .rs.walk { border: 1px solid #4B6672; margin-left: 4px; }
.role-switch .rs:focus-visible { outline: 3px solid #7CD0D6; outline-offset: 1px; }
.walk-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.walk-steps li b { display: block; }
.walk-steps li span { color: var(--muted); }

.demo-entry { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.de-top { display: flex; align-items: baseline; gap: 10px; padding: 18px 48px; }
.de-logo { font: 700 24px var(--font-head); color: var(--accent); letter-spacing: -.02em; }
.de-main { flex: 1; display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; justify-content: center; padding: 24px 48px 56px; max-width: 1280px; margin: 0 auto; width: 100%; }
.de-hero { flex: 1 1 420px; min-width: 0; max-width: 540px; padding-top: 16px; display: flex; flex-direction: column; gap: 20px; }
.de-hero h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.de-hero p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.de-hero ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.de-hero li { display: flex; gap: 10px; } .de-hero li::before { content: '·'; color: var(--accent); font-weight: 700; }
.de-card { flex: 1 1 440px; min-width: 0; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.de-card h2 { font-size: 20px; } .de-card p { margin: 0; }
.roles { display: flex; flex-direction: column; gap: 10px; }
.role { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); cursor: pointer; text-align: left; width: 100%; font: inherit; }
.role:hover:not([disabled]) { border-color: var(--accent); background: var(--accent-soft); }
.role[disabled] { opacity: .6; cursor: progress; }
.role .av { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--acc-t); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.role .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.role .who b { font-size: 15px; font-weight: 600; } .role .ttl { font-weight: 400; color: var(--muted); }
.role .does { font-size: 13px; color: var(--muted); }
.role .go { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--acc-t); }
.de-foot { border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; }
@media (max-width: 700px) { .de-top, .de-main { padding-left: 16px; padding-right: 16px; } .de-hero h1 { font-size: 30px; } .de-card { padding: 18px; } .role .go { display: none; } }

/* ---- Təşkilat (admin-org.js): şöbə ağacının girintisi (inline style CSP-yə görə qadağandır) */
td.oi { padding-left: 10px; }
td.oi1 { padding-left: 30px; } td.oi2 { padding-left: 50px; } td.oi3 { padding-left: 70px; } td.oi4 { padding-left: 90px; } td.oi5 { padding-left: 110px; } td.oi6 { padding-left: 130px; }
.pwpage { max-width: 440px; }
