:root {
  color-scheme: dark;
  --bg: #130e12;
  --surface: #1d151a;
  --surface-raised: #261a20;
  --surface-soft: #2f2227;
  --line: #432e34;
  --line-soft: rgba(209, 139, 112, .15);
  --accent: #ff9d63;
  --teal: #45d6c7;
  --gold: #f3c77b;
  --red: #ff838b;
  --violet: #a9a4ff;
  --text: #fff0e7;
  --muted: #c8aea6;
  --faint: #ae918a;
  --font: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: radial-gradient(ellipse at 76% -18%, rgba(249, 111, 71, .075), transparent 36%), var(--bg); font: 400 16px/1.55 var(--font); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(255, 157, 99, .82); outline-offset: 3px; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.login-layout { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(480px, .84fr); min-height: 100vh; overflow: hidden; }
.login-intro { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; position: relative; isolation: isolate; overflow: hidden; padding: 42px clamp(38px, 7vw, 112px) 30px; border-right: 1px solid var(--line-soft); background: linear-gradient(135deg, rgba(47, 26, 28, .72), rgba(19, 14, 18, .94)); }
.login-intro::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .3; background-image: linear-gradient(rgba(207, 139, 109, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(207, 139, 109, .055) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(130deg, black, transparent 75%); }
.login-intro::after { content: ""; position: absolute; left: 12%; right: 0; bottom: -30%; height: 60%; z-index: -1; background: radial-gradient(ellipse, rgba(255, 157, 99, .08), transparent 68%); }
.login-atmosphere { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.solar-core { position: absolute; width: min(38vw, 560px); aspect-ratio: 1; top: 48%; left: 72%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 157, 99, .17) 0 1px, rgba(255, 157, 99, .055) 2px, rgba(249, 111, 71, .025) 21%, transparent 64%); box-shadow: 0 0 80px rgba(249, 111, 71, .04); }
.solar-core::before, .solar-core::after { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(255, 157, 99, .1); border-radius: 50%; }
.solar-core::after { inset: 26%; border-color: rgba(249, 111, 71, .12); }
.solar-orbit { position: absolute; left: 72%; top: 48%; border: 1px solid rgba(214, 122, 88, .15); border-radius: 50%; transform: translate(-50%, -50%) rotate(-28deg); }
.orbit-one { width: min(52vw, 760px); height: min(20vw, 292px); }
.orbit-two { width: min(47vw, 685px); height: min(29vw, 420px); transform: translate(-50%, -50%) rotate(35deg); border-color: rgba(255, 157, 99, .085); }
.starfield { position: absolute; width: 2px; height: 2px; top: 21%; left: 74%; border-radius: 50%; background: #ffc286; box-shadow: 154px 72px #ca633f, -240px 182px #ffc286, 74px 257px #ffa97a, -140px -63px #de8f70, 288px -45px #ffc286, -280px -140px #ca633f, 315px 190px #ffa97a, -82px 348px #ffc286, 210px -190px #ca633f, -336px 264px #ffa97a; opacity: .75; }
.brand { display: inline-flex; align-items: center; gap: 12px; position: relative; z-index: 1; width: fit-content; }
.brand img { flex: 0 0 auto; filter: drop-shadow(0 0 13px rgba(255, 157, 99, .24)); }
.brand span { display: grid; gap: 2px; }
.brand strong { font-size: 21px; line-height: 1.1; font-weight: 800; letter-spacing: .22em; }
.brand small { color: var(--faint); font-size: 10px; letter-spacing: .16em; }
.brand-large strong { font-size: 23px; }
.intro-copy { position: relative; z-index: 1; max-width: 760px; margin: auto 0; padding: 70px 0 80px; }
.eyebrow, .section-kicker, .panel-kicker { color: var(--teal); font-size: 12px; font-weight: 700; letter-spacing: .15em; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow-line { width: 32px; height: 1px; background: var(--teal); box-shadow: 0 0 11px rgba(249, 111, 71, .65); }
.intro-copy h1 { margin: 22px 0 17px; font-size: clamp(42px, 5.3vw, 78px); line-height: 1.05; font-weight: 700; letter-spacing: -.055em; }
.intro-copy h1 em { color: var(--accent); font-style: normal; }
.intro-copy > p { max-width: 570px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.7; }
.login-pillars { display: grid; gap: 18px; margin-top: 43px; }
.login-pillars > div { display: flex; align-items: center; gap: 14px; }
.pillar-symbol { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255, 157, 99, .21); border-radius: 12px; color: var(--accent); background: rgba(255, 157, 99, .055); font-size: 20px; }
.login-pillars strong, .login-pillars small { display: block; }
.login-pillars strong { font-size: 15px; font-weight: 650; }
.login-pillars small { margin-top: 2px; color: var(--faint); font-size: 13px; }
.login-footer { display: flex; justify-content: space-between; gap: 14px; color: var(--faint); font-size: 11px; letter-spacing: .06em; }
.login-footer > span:last-child { display: inline-flex; align-items: center; gap: 8px; }
.login-panel { display: grid; place-items: center; padding: 48px clamp(32px, 6vw, 96px); background: rgba(8, 12, 16, .62); }
.login-panel-inner { width: min(100%, 450px); }
.panel-kicker { font-size: 11px; }
.login-panel h2 { margin: 12px 0 6px; font-size: 36px; line-height: 1.2; letter-spacing: -.04em; }
.panel-lead { margin: 0 0 31px; color: var(--muted); font-size: 16px; }
.form-stack { display: grid; gap: 18px; }
.form-stack > label, .dialog-field { display: grid; gap: 8px; color: #d3dce2; font-size: 14px; font-weight: 600; }
.form-stack input, .dialog-field input, .dialog-field textarea, .dialog-field select, .search-input input { width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid #34434e; border-radius: 9px; outline: 0; color: var(--text); background: #111923; font-size: 15px; transition: border-color .18s, box-shadow .18s; }
.form-stack input::placeholder, .dialog-field input::placeholder, .dialog-field textarea::placeholder { color: #758492; }
.form-stack input:focus, .dialog-field input:focus, .dialog-field textarea:focus, .dialog-field select:focus { border-color: rgba(255, 157, 99, .58); box-shadow: 0 0 0 4px rgba(255, 157, 99, .07); }
.owner-form { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.owner-form > p { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.owner-form code { color: var(--accent); font-size: 13px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .68; transform: none; }
.button-primary { color: #11160d; background: var(--accent); box-shadow: 0 7px 22px rgba(255, 157, 99, .14); }
.button-primary:hover { background: #c7ff7c; box-shadow: 0 9px 28px rgba(255, 157, 99, .24); }
.button-outline { color: #dce5ea; border-color: #34434e; background: rgba(255, 255, 255, .018); }
.button-outline:hover, .button-quiet:hover { border-color: #596c79; background: rgba(255, 255, 255, .045); }
.button-quiet { color: #b7c1c9; border-color: transparent; background: transparent; }
.button-danger { color: #ffdadd; border-color: rgba(255, 131, 139, .24); background: rgba(255, 91, 104, .1); }
.button-danger:hover { background: rgba(255, 91, 104, .18); }
.button-wide { width: 100%; min-height: 52px; margin-top: 5px; }
.button-small { min-height: 37px; padding: 7px 12px; font-size: 13px; }
.notice { padding: 12px 14px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; line-height: 1.5; }
.notice-error { margin-top: 15px; color: #ffc6c9; border-color: rgba(255, 131, 139, .2); background: rgba(255, 91, 104, .09); }
.login-separator { display: flex; align-items: center; gap: 13px; margin: 26px 0 17px; color: var(--faint); font-size: 12px; }
.login-separator::before, .login-separator::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.login-footnote { display: flex; gap: 10px; margin-top: 27px; padding-top: 19px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 12px; line-height: 1.6; }
.lock-mark { color: var(--teal); font-size: 17px; }

.app-shell { min-height: 100vh; }
.sidebar { width: 270px; position: fixed; inset: 0 auto 0 0; z-index: 8; display: flex; flex-direction: column; padding: 25px 16px 17px; border-right: 1px solid var(--line-soft); background: rgba(12, 18, 24, .98); }
.sidebar .brand { padding: 0 7px; }
.sidebar .brand strong { font-size: 19px; }
.sidebar .brand small { font-size: 9px; }
.workspace-card { min-height: 61px; display: flex; align-items: center; gap: 11px; margin: 28px 0 27px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(120deg, #18242e, #111a23); }
.workspace-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border: 1px solid rgba(255, 157, 99, .25); border-radius: 9px; color: var(--accent); background: rgba(255, 157, 99, .08); font-weight: 800; }
.workspace-card > span:nth-child(2) { min-width: 0; }
.workspace-card strong, .workspace-card small { display: block; }
.workspace-card strong { font-size: 14px; }
.workspace-card small { margin-top: 2px; color: var(--faint); font-size: 12px; }
.chevron { margin-left: auto; color: var(--faint); font-size: 14px; }
.nav-label { padding: 0 11px; margin-bottom: 9px; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.nav-label-spaced { margin-top: 27px; }
.primary-nav { display: grid; gap: 4px; }
.nav-item { min-height: 45px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 8px; color: #adbac3; background: transparent; font-size: 14px; text-align: left; cursor: pointer; transition: background .18s, color .18s, transform .18s; }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, .045); transform: translateX(2px); }
.nav-item.active { color: var(--accent); background: linear-gradient(90deg, rgba(255, 157, 99, .12), rgba(255, 157, 99, .025)); font-weight: 700; }
.nav-item.active::before { content: ""; position: absolute; left: 0; width: 2px; height: 24px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px rgba(255, 157, 99, .45); }
.nav-icon { width: 20px; flex: 0 0 20px; color: currentColor; font-size: 18px; text-align: center; }
.sidebar-bottom { margin-top: auto; }
.server-status { display: flex; align-items: center; gap: 10px; padding: 14px 9px; border-top: 1px solid var(--line-soft); }
.status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 11px rgba(255, 157, 99, .5); }
.server-status strong, .server-status small { display: block; }
.server-status strong { font-size: 13px; }
.server-status small { margin-top: 2px; color: var(--faint); font-size: 12px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 13px 7px 2px; border-top: 1px solid var(--line-soft); }
.user-avatar { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 37px; border: 1px solid rgba(249, 111, 71, .34); border-radius: 50%; color: var(--teal); background: rgba(249, 111, 71, .1); font-size: 15px; font-weight: 700; }
.sidebar-user > span:nth-child(2) { min-width: 0; flex: 1; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: 13px; }
.sidebar-user small { margin-top: 2px; color: var(--faint); font-size: 12px; }
.logout-button { width: 35px; height: 35px; border: 1px solid transparent; border-radius: 7px; color: var(--faint); background: transparent; font-size: 19px; cursor: pointer; }
.logout-button:hover { color: var(--red); border-color: rgba(255, 131, 139, .2); background: rgba(255, 131, 139, .07); }
.main-content { min-height: 100vh; margin-left: 270px; }
.topbar { height: 72px; position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(24px, 4vw, 58px); border-bottom: 1px solid var(--line-soft); background: rgba(19, 14, 18, .86); backdrop-filter: blur(16px); }
.breadcrumb { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; }
.breadcrumb b { color: #4c5b66; font-weight: 400; }
.breadcrumb strong { color: #dbe4e9; font-weight: 650; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.secure-badge { display: flex; align-items: center; gap: 8px; color: #afbdc5; font-size: 13px; }
.secure-badge.offline .status-dot { background: var(--gold); box-shadow: 0 0 10px rgba(243, 199, 123, .4); }
.topbar-divider { width: 1px; height: 24px; background: var(--line); }
.topbar-date { color: var(--faint); font-size: 13px; }
.menu-toggle { display: none; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); font-size: 17px; cursor: pointer; }
.content-wrap { width: min(1640px, 100%); min-height: calc(100vh - 125px); margin: 0 auto; padding: 42px clamp(24px, 4vw, 58px) 34px; outline: none; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; animation: rise-in .45s both; }
.page-heading h1 { margin: 8px 0 6px; font-size: clamp(30px, 3vw, 42px); line-height: 1.12; letter-spacing: -.045em; font-weight: 720; }
.page-heading > div:first-child > p { max-width: 820px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.section-kicker { color: #7d929f; font-size: 11px; letter-spacing: .14em; }
.heading-action { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.dashboard-hero { min-height: 302px; display: flex; align-items: center; position: relative; overflow: hidden; margin-bottom: 20px; padding: 34px clamp(27px, 4vw, 56px); border: 1px solid rgba(255, 157, 99, .18); border-radius: 16px; background: linear-gradient(111deg, rgba(25, 41, 40, .98) 0%, rgba(18, 30, 34, .98) 48%, rgba(17, 27, 37, .98) 100%); }
.dashboard-hero::before { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(30deg, transparent 49.7%, rgba(195, 213, 193, .2) 50%, transparent 50.3%), linear-gradient(150deg, transparent 49.7%, rgba(195, 213, 193, .14) 50%, transparent 50.3%); background-size: 42px 42px; mask-image: linear-gradient(90deg, transparent, black 80%); }
.hero-copy { max-width: 610px; position: relative; z-index: 2; }
.hero-kicker { display: flex; align-items: center; gap: 9px; color: #b4c9b0; font-size: 11px; font-weight: 700; letter-spacing: .11em; }
.hero-kicker .status-dot { width: 7px; height: 7px; flex-basis: 7px; }
.hero-copy h2 { margin: 16px 0 12px; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.05em; }
.hero-copy h2 em { color: var(--accent); font-style: normal; }
.hero-copy p { max-width: 520px; margin: 0 0 21px; color: #b3c0c3; font-size: 15px; line-height: 1.7; }
.hero-copy .button { min-width: 245px; }
.hero-visual { width: 430px; height: 430px; position: absolute; right: 4%; top: 50%; transform: translateY(-50%); opacity: .85; }
.hero-sun { width: 188px; height: 188px; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; transform: translate(-50%, -50%); border: 1px solid rgba(255, 157, 99, .3); border-radius: 50%; background: radial-gradient(circle, rgba(255, 157, 99, .18), rgba(255, 157, 99, .035) 48%, transparent 70%); box-shadow: 0 0 75px rgba(255, 157, 99, .08), inset 0 0 40px rgba(249, 111, 71, .07); }
.hero-sun::before, .hero-sun::after { content: ""; position: absolute; border: 1px solid rgba(255, 157, 99, .24); border-radius: 50%; }
.hero-sun::before { inset: 18px; }
.hero-sun::after { inset: 38px; border-color: rgba(249, 111, 71, .29); }
.hero-sun span { width: 34px; height: 34px; z-index: 1; border-radius: 50%; background: var(--accent); box-shadow: 0 0 40px 15px rgba(255, 157, 99, .3); }
.hero-ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(121, 158, 155, .22); border-radius: 50%; transform: translate(-50%, -50%); }
.hero-ring-a { width: 340px; height: 180px; transform: translate(-50%, -50%) rotate(-28deg); }
.hero-ring-b { width: 400px; height: 280px; transform: translate(-50%, -50%) rotate(35deg); border-color: rgba(255, 157, 99, .13); }
.hero-crosshair { position: absolute; inset: 50% 10%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 157, 99, .3), transparent); }
.hero-coordinate { position: absolute; right: 3%; bottom: 24%; color: rgba(202, 223, 202, .48); font: 10px/1.7 ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.hero-orbit-dot { width: 8px; height: 8px; position: absolute; top: 28%; left: 25%; border-radius: 50%; background: var(--teal); box-shadow: 0 0 16px rgba(249, 111, 71, .75); }
.hero-index { display: flex; align-items: center; gap: 8px; position: absolute; top: 22px; right: 23px; color: #7f958d; font: 11px ui-monospace, Consolas, monospace; letter-spacing: .1em; }
.hero-index i { width: 36px; height: 1px; background: rgba(255, 157, 99, .4); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric-card { min-height: 150px; position: relative; overflow: hidden; padding: 19px 20px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, rgba(23, 34, 44, .96), rgba(15, 23, 31, .98)); animation: rise-in .48s both; }
.metric-card:nth-child(2) { animation-delay: .05s; }.metric-card:nth-child(3) { animation-delay: .1s; }.metric-card:nth-child(4) { animation-delay: .15s; }
.metric-lime { border-color: rgba(255, 157, 99, .22); }
.metric-teal { border-color: rgba(249, 111, 71, .2); }
.metric-gold { border-color: rgba(243, 199, 123, .22); }
.metric-top { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .07em; }
.metric-icon { color: var(--teal); font-size: 20px; line-height: 1; }
.metric-lime .metric-icon, .metric-lime .metric-value { color: var(--accent); }
.metric-teal .metric-icon, .metric-teal .metric-value { color: var(--teal); }
.metric-gold .metric-icon, .metric-gold .metric-value { color: var(--gold); }
.metric-value { position: relative; z-index: 1; margin-top: 13px; color: var(--text); font-size: clamp(24px, 2vw, 32px); font-weight: 650; letter-spacing: -.04em; }
.metric-detail { position: relative; z-index: 1; margin-top: 3px; color: var(--faint); font-size: 13px; }
.metric-glow { width: 120px; height: 100px; position: absolute; right: -65px; bottom: -76px; border-radius: 50%; background: var(--accent); filter: blur(38px); opacity: .13; }
.metric-teal .metric-glow { background: var(--teal); }
.metric-gold .metric-glow { background: var(--gold); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .86fr); gap: 16px; margin-bottom: 19px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(155deg, rgba(18, 27, 36, .96), rgba(14, 21, 29, .98)); }
.chart-panel, .focus-panel, .recent-panel { padding: 21px 22px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.panel-heading h2 { margin: 4px 0 0; font-size: 21px; line-height: 1.25; letter-spacing: -.025em; }
.panel-period { padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--faint); font-size: 10px; letter-spacing: .1em; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 15px; margin: 14px 0 18px; color: var(--muted); font-size: 12px; }
.chart-legend span, .org-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i, .org-legend i { width: 8px; height: 8px; display: inline-block; border-radius: 2px; }
.legend-teal { background: var(--teal); }.legend-lime { background: var(--accent); }.legend-gold { background: var(--gold); }.legend-violet { background: var(--violet); }
.bar-chart { display: grid; gap: 13px; min-height: 155px; align-content: center; }
.chart-row { display: grid; grid-template-columns: 110px minmax(50px, 1fr) 28px; align-items: center; gap: 13px; color: var(--muted); font-size: 13px; }
.chart-track { height: 12px; overflow: hidden; border-radius: 10px; background: #1e2a34; }
.chart-track i { height: 100%; display: block; border-radius: inherit; box-shadow: 0 0 12px rgba(255, 157, 99, .17); transition: width .6s ease; }
.chart-row strong { color: #dbe4e9; font-size: 13px; text-align: right; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 12px; }
.panel-foot > span { display: flex; align-items: center; gap: 7px; }
.panel-foot .status-dot { width: 6px; height: 6px; flex-basis: 6px; }
.text-button { padding: 5px 0; border: 0; color: var(--teal); background: transparent; font-size: 13px; font-weight: 650; cursor: pointer; }
.text-button:hover { color: var(--accent); }
.focus-symbol { color: var(--accent); font-size: 23px; }
.focus-list { display: grid; gap: 7px; }
.focus-row { min-height: 65px; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; color: inherit; background: rgba(255, 255, 255, .02); text-align: left; cursor: pointer; transition: border-color .18s, background .18s; }
.focus-row:hover { border-color: var(--line); background: rgba(255, 255, 255, .04); }
.focus-count { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 9px; font-size: 16px; font-weight: 750; }
.focus-gold { color: var(--gold); background: rgba(243, 199, 123, .1); }.focus-teal { color: var(--teal); background: rgba(249, 111, 71, .09); }
.focus-copy { min-width: 0; flex: 1; }
.focus-copy strong, .focus-copy small { display: block; }
.focus-copy strong { font-size: 14px; }
.focus-copy small { margin-top: 2px; color: var(--faint); font-size: 12px; }
.focus-arrow { color: var(--faint); font-size: 17px; }
.focus-note { display: flex; gap: 10px; margin-top: 13px; padding: 11px; border: 1px solid rgba(249, 111, 71, .15); border-radius: 8px; color: var(--teal); background: rgba(249, 111, 71, .035); }
.focus-note > span { width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 19px; border: 1px solid rgba(249, 111, 71, .4); border-radius: 50%; font-size: 11px; }
.focus-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.recent-panel { margin-bottom: 17px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 12px 13px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
td { padding: 14px 13px; border-bottom: 1px solid rgba(209, 139, 112, .08); color: #c6d0d6; font-size: 14px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, .018); }
td strong, td small { display: block; }
td strong { color: var(--text); font-weight: 650; }
td small { margin-top: 3px; color: var(--faint); font-size: 12px; }
.status-pill, .role-tag, .severity-tag { min-height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 4px 9px; border: 1px solid var(--line); border-radius: 100px; color: #bbc7ce; background: rgba(255, 255, 255, .025); font-size: 12px; font-weight: 650; white-space: nowrap; }
.status-active, .status-completed { color: #c7f196; border-color: rgba(255, 157, 99, .18); background: rgba(255, 157, 99, .075); }
.status-available { color: #85eee2; border-color: rgba(249, 111, 71, .22); background: rgba(249, 111, 71, .07); }
.status-inprogress { color: #c2c5ff; border-color: rgba(169, 164, 255, .2); background: rgba(169, 164, 255, .07); }
.status-reported, .status-pending { color: var(--gold); border-color: rgba(243, 199, 123, .21); background: rgba(243, 199, 123, .075); }
.status-cancelled, .status-suspended, .status-rejected { color: #ffadb3; border-color: rgba(255, 131, 139, .2); background: rgba(255, 131, 139, .07); }
.app-footer { min-height: 53px; display: flex; justify-content: space-between; gap: 15px; padding: 14px clamp(24px, 4vw, 58px); border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 11px; letter-spacing: .04em; }
.app-footer span:last-child { display: flex; align-items: center; gap: 7px; }
.app-footer .status-dot { width: 6px; height: 6px; flex-basis: 6px; }

.department-summary { display: flex; align-items: center; gap: 14px; margin-bottom: 19px; padding: 15px 17px; border: 1px solid rgba(249, 111, 71, .18); border-radius: 10px; background: linear-gradient(100deg, rgba(22, 43, 45, .55), rgba(17, 25, 35, .72)); }
.summary-orb { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(249, 111, 71, .3); border-radius: 10px; color: var(--teal); background: rgba(249, 111, 71, .075); font-size: 20px; }
.department-summary > span:nth-child(2) { flex: 1; }
.department-summary strong, .department-summary small { display: block; }
.department-summary strong { font-size: 15px; }
.department-summary small { margin-top: 2px; color: var(--faint); font-size: 13px; }
.summary-count { color: var(--accent); font-size: 24px; font-weight: 700; text-align: right; }
.summary-count small { margin-top: -3px; color: var(--faint); font-size: 9px; letter-spacing: .1em; }
.department-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.department-card { min-height: 246px; display: flex; flex-direction: column; position: relative; overflow: hidden; padding: 17px 18px 14px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(147deg, rgba(21, 32, 42, .97), rgba(14, 21, 29, .98)); transition: border-color .2s, transform .2s, box-shadow .2s; }
.department-card::after { content: ""; position: absolute; width: 120px; height: 120px; top: -65px; right: -57px; border-radius: 50%; background: var(--card-accent, var(--accent)); filter: blur(34px); opacity: .08; }
.department-card:nth-child(4n+2) { --card-accent: var(--teal); }.department-card:nth-child(4n+3) { --card-accent: var(--violet); }.department-card:nth-child(4n+4) { --card-accent: var(--gold); }
.department-card:hover { transform: translateY(-3px); border-color: rgba(255, 157, 99, .34); box-shadow: 0 13px 32px rgba(0, 0, 0, .2); }
.dept-card-top { display: flex; align-items: center; justify-content: space-between; }
.dept-number { color: var(--faint); font: 13px ui-monospace, Consolas, monospace; }
.dept-mark { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--card-accent, var(--accent)) 24%, transparent); border-radius: 9px; color: var(--card-accent, var(--accent)); background: color-mix(in srgb, var(--card-accent, var(--accent)) 8%, transparent); font-size: 18px; }
.department-card h3 { position: relative; z-index: 1; margin: 12px 0 5px; font-size: 17px; line-height: 1.35; }
.department-card > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.dept-focus { margin-top: auto; padding-top: 12px; color: var(--faint); font-size: 12px; line-height: 1.5; }
.dept-stats { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0 9px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 12px; }
.dept-stats strong { color: #d9e3e8; font-size: 13px; }
.dept-actions { display: flex; justify-content: flex-end; }
.small-muted { color: var(--faint); font-size: 12px; }
.toolbar { display: flex; align-items: center; gap: 15px; margin: -7px 0 15px; }
.search-input { min-width: min(100%, 390px); display: flex; align-items: center; gap: 9px; padding-left: 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--faint); background: var(--surface); }
.search-input > span { font-size: 20px; }
.search-input input { min-height: 45px; border: 0; background: transparent; }
.search-input input:focus { box-shadow: none; }
.toolbar-count { margin-left: auto; color: var(--faint); font-size: 13px; }
.person-cell { display: flex; align-items: center; gap: 11px; min-width: 200px; }
.person-avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; border: 1px solid rgba(249, 111, 71, .25); border-radius: 50%; color: var(--teal); background: rgba(249, 111, 71, .08); font-weight: 700; }
.role-owner { color: var(--accent); }.role-administrator { color: #c6c2ff; }.role-departmenthead { color: var(--teal); }.role-oversight { color: var(--gold); }
.order-filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.filter-chip { padding: 7px 11px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); background: rgba(255,255,255,.02); font-size: 13px; }
.filter-chip b { margin-left: 4px; color: #e1e9ed; }
.filter-selected { color: var(--accent); border-color: rgba(183,243,107,.25); background: rgba(183,243,107,.065); }
.order-list, .warning-list, .appeal-list, .payout-list { display: grid; gap: 11px; }
.order-card { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(145deg, rgba(20, 31, 41, .95), rgba(14, 21, 29, .98)); }
.order-kicker { display: flex; align-items: center; gap: 9px; }
.order-ref { color: var(--faint); font: 12px ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.order-card h3 { margin: 9px 0 3px; font-size: 19px; }
.order-card p { margin: 0; color: var(--muted); font-size: 14px; }
.order-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 13px; color: var(--faint); font-size: 13px; }
.order-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 3px; padding-left: 15px; border-left: 1px solid var(--line-soft); }
.order-side > strong { color: var(--accent); font-size: 20px; }
.order-side > small { color: var(--faint); font-size: 12px; }
.order-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-top: 13px; }
.order-actions .button { min-height: 38px; padding: 8px 11px; font-size: 12px; }
.report-preview { display: grid; gap: 5px; margin-top: 14px; padding: 12px; border: 1px solid rgba(243, 199, 123, .2); border-radius: 8px; background: rgba(243, 199, 123, .045); }
.report-preview strong { color: #f4d49e; font-size: 13px; }
.report-preview span, .report-preview small { color: var(--muted); font-size: 12px; }
.report-preview a, .evidence-link { color: var(--teal); font-size: 13px; }
.report-preview a:hover, .evidence-link:hover { color: var(--accent); }
.finance-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 25px; padding: 26px 30px; border: 1px solid rgba(255, 157, 99, .23); border-radius: 13px; background: linear-gradient(112deg, rgba(34, 49, 42, .85), rgba(17, 28, 35, .98)); }
.finance-hero > div:first-child > strong, .finance-hero > div:first-child > span { display: block; }
.finance-hero > div:first-child > strong { margin: 4px 0 5px; color: var(--accent); font-size: clamp(32px, 4vw, 47px); letter-spacing: -.055em; }
.finance-hero > div:first-child > span { color: var(--muted); font-size: 14px; }
.profit-split { display: flex; align-items: center; gap: 18px; }
.profit-split > div { text-align: center; }
.profit-split strong { display: block; color: var(--accent); font-size: 29px; line-height: 1.1; }
.profit-split > div:last-child strong { color: var(--teal); }
.profit-split strong span { font-size: 16px; }
.profit-split small { display: block; margin-top: 4px; color: var(--faint); font-size: 12px; }
.profit-split > i { width: 1px; height: 39px; background: var(--line); }
.section-block { margin-top: 28px; }
.count-pill { display: inline-grid; min-width: 25px; height: 23px; place-items: center; vertical-align: 2px; margin-left: 5px; padding: 0 6px; border: 1px solid rgba(255, 157, 99, .2); border-radius: 100px; color: var(--accent); background: rgba(255, 157, 99, .06); font-size: 12px; }
.ledger-list { padding: 0 17px; }
.ledger-row, .payout-row { min-height: 72px; display: flex; align-items: center; gap: 13px; padding: 12px 2px; border-bottom: 1px solid var(--line-soft); }
.ledger-row:last-child, .payout-row:last-child { border-bottom: 0; }
.ledger-symbol, .payout-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border: 1px solid rgba(255, 157, 99, .18); border-radius: 9px; color: var(--accent); background: rgba(255, 157, 99, .06); font-size: 20px; }
.ledger-negative { color: var(--red) !important; }
.ledger-copy, .payout-user { min-width: 0; flex: 1; }
.ledger-copy strong, .ledger-copy small, .payout-user strong, .payout-user small { display: block; }
.ledger-copy strong, .payout-user strong { overflow: hidden; color: #d8e1e6; font-size: 14px; text-overflow: ellipsis; }
.ledger-copy small, .payout-user small { margin-top: 3px; color: var(--faint); font-size: 12px; }
.ledger-amount, .payout-amount { color: var(--accent); font-size: 15px; white-space: nowrap; }
.payout-row { padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.015); }
.payout-row .order-actions { margin-top: 0; }
.org-canvas { overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: 13px; background: radial-gradient(ellipse at 50% 0%, rgba(249, 111, 71, .06), transparent 50%), #0d141b; }
.org-tier { display: grid; justify-items: center; }
.org-tier-label { width: 100%; display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.org-tier-label span { padding: 2px 7px; border: 1px solid var(--line); border-radius: 100px; color: var(--teal); font-size: 11px; }
.org-nodes { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; width: 100%; margin-top: 13px; }
.org-node { min-width: 240px; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, #17232d, #111921); }
.org-owner { border-color: rgba(255, 157, 99, .31); background: linear-gradient(120deg, rgba(183,243,107,.09), #121b22); }
.org-admin { border-color: rgba(169, 164, 255, .25); }.org-oversight { border-color: rgba(243, 199, 123, .25); }.org-head { border-color: rgba(249, 111, 71, .25); }
.org-avatar { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 36px; border: 1px solid rgba(249, 111, 71, .26); border-radius: 50%; color: var(--teal); background: rgba(249, 111, 71, .08); font-weight: 700; }
.org-owner .org-avatar { color: var(--accent); border-color: rgba(183,243,107,.28); background: rgba(183,243,107,.08); }
.org-person { min-width: 0; flex: 1; }
.org-person strong, .org-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-person strong { font-size: 14px; }
.org-person small { margin-top: 1px; color: var(--faint); font-size: 12px; }
.org-state { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(183,243,107,.35); }
.org-state.offline { background: #677683; box-shadow: none; }
.org-connectors { width: min(540px, 75%); height: 37px; display: flex; flex-direction: column; align-items: center; margin: 0 auto; }
.org-connectors span { width: 1px; flex: 1; background: linear-gradient(var(--teal), rgba(69,214,199,.08)); }
.org-connectors i { width: 7px; height: 7px; border: 1px solid rgba(69,214,199,.65); border-radius: 50%; background: var(--bg); }
.org-nodes-wide { justify-content: flex-start; }
.org-placeholder { max-width: 530px; padding: 15px; border: 1px dashed #3a4852; border-radius: 9px; color: var(--faint); font-size: 13px; }
.org-branch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; padding-top: 19px; border-top: 1px solid var(--line); }
.org-branch { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(18, 28, 37, .82); }
.branch-heading { display: flex; align-items: center; gap: 10px; padding-bottom: 11px; border-bottom: 1px solid var(--line-soft); }
.branch-number { color: var(--teal); font: 12px ui-monospace, Consolas, monospace; }
.branch-heading > span:nth-child(2) { min-width: 0; flex: 1; }
.branch-heading strong, .branch-heading small { display: block; }
.branch-heading strong { font-size: 14px; }
.branch-heading small, .branch-load { margin-top: 2px; color: var(--faint); font-size: 12px; }
.branch-empty { padding: 11px 2px 1px; color: var(--faint); font-size: 12px; }
.branch-heads, .branch-members { display: grid; gap: 7px; margin-top: 9px; }
.org-compact { min-width: 0; padding: 8px; border-color: var(--line-soft); background: rgba(255,255,255,.02); }
.org-compact .org-avatar { width: 30px; height: 30px; flex-basis: 30px; font-size: 13px; }
.org-compact .org-person strong { font-size: 13px; }.org-compact .org-person small { font-size: 11px; }
.org-legend { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 15px; color: var(--faint); font-size: 12px; }
.legend-owner { background: var(--accent); }.legend-admin { background: var(--violet); }.legend-oversight { background: var(--gold); }.legend-head { background: var(--teal); }
.suspension-banner { display: flex; align-items: flex-start; gap: 13px; margin: -10px 0 18px; padding: 16px; border: 1px solid rgba(255, 131, 139, .24); border-radius: 10px; background: rgba(255, 131, 139, .065); }
.suspension-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; border-radius: 50%; color: #ffdce0; background: rgba(255, 131, 139, .15); font-weight: 800; }
.suspension-banner strong, .suspension-banner small { display: block; }
.suspension-banner strong { color: #ffdce0; font-size: 15px; }
.suspension-banner small { margin-top: 4px; color: #c8aaad; font-size: 13px; line-height: 1.55; }
.warning-overview { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; margin-bottom: 20px; }
.warning-overview > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.warning-overview span, .warning-overview strong { display: block; }
.warning-overview span { color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.warning-overview strong { margin-top: 5px; color: var(--text); font-size: 22px; }
.warning-card, .appeal-card { padding: 17px 19px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(145deg, rgba(20, 30, 40, .95), rgba(14, 21, 29, .98)); }
.warning-reversed { opacity: .78; }
.warning-card-head, .appeal-head { display: flex; align-items: center; gap: 9px; }
.warning-date { margin-left: auto; color: var(--faint); font-size: 12px; }
.severity-minor { color: var(--teal); border-color: rgba(69,214,199,.21); background: rgba(69,214,199,.065); }
.severity-standard { color: var(--gold); border-color: rgba(243,199,123,.22); background: rgba(243,199,123,.07); }
.severity-serious { color: #ffb2b7; border-color: rgba(255,131,139,.25); background: rgba(255,131,139,.08); }
.warning-user { margin-top: 13px; color: var(--text); font-size: 16px; font-weight: 700; }
.warning-user span { color: var(--muted); font-size: 14px; font-weight: 400; }
.warning-card > p, .appeal-card > p { margin: 8px 0; color: #d2dce2; font-size: 14px; line-height: 1.65; white-space: pre-wrap; }
.warning-card-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 12px; }
.warning-card > .button { min-height: 39px; margin-top: 12px; }
.appeal-head { justify-content: space-between; }
.appeal-head strong, .appeal-head small { display: block; }
.appeal-head strong { font-size: 15px; }
.appeal-head small { margin-top: 2px; color: var(--faint); font-size: 12px; }
.appeal-warning { margin-top: 12px; color: var(--faint); font-size: 13px; }
.appeal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.appeal-actions .button { min-height: 40px; }
.decision-note, .inline-notice { display: grid; gap: 4px; margin-top: 11px; padding: 10px 12px; border-left: 2px solid var(--teal); color: var(--muted); background: rgba(249, 111, 71, .04); font-size: 13px; }
.decision-note strong { color: var(--teal); font-size: 12px; }
.inline-notice { display: block; border-left-color: var(--gold); color: var(--gold); }
.audit-note { display: flex; align-items: center; gap: 12px; margin-bottom: 19px; padding: 14px 16px; border: 1px solid rgba(249, 111, 71, .18); border-radius: 9px; background: rgba(249, 111, 71, .04); }
.audit-note > span:first-child { color: var(--teal); font-size: 22px; }
.audit-note strong, .audit-note small { display: block; }
.audit-note strong { font-size: 14px; }.audit-note small { margin-top: 2px; color: var(--faint); font-size: 12px; }
.audit-timeline { position: relative; margin-left: 8px; padding-left: 26px; border-left: 1px solid #34434d; }
.audit-event { position: relative; padding: 0 0 21px; }
.audit-marker { width: 11px; height: 11px; position: absolute; top: 5px; left: -32px; border: 2px solid var(--teal); border-radius: 50%; background: var(--bg); box-shadow: 0 0 10px rgba(69,214,199,.25); }
.audit-event-main { padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.audit-event-top { display: flex; justify-content: space-between; gap: 13px; }
.audit-event-top strong { font-size: 15px; }.audit-event-top time { color: var(--faint); font-size: 12px; white-space: nowrap; }
.audit-event p { margin: 7px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.audit-ref { color: var(--faint); font: 11px ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.audit-ref span { color: #50606c; }
.telegram-card { min-height: 350px; display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr); overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(120deg, #142129, #111920); }
.telegram-art { min-height: 280px; display: grid; place-items: center; position: relative; overflow: hidden; border-right: 1px solid var(--line-soft); background: radial-gradient(circle, rgba(69,214,199,.13), transparent 58%), #101a21; }
.telegram-art::before, .telegram-art::after { content: ""; width: 260px; height: 95px; position: absolute; border: 1px solid rgba(69,214,199,.25); border-radius: 50%; transform: rotate(-32deg); }
.telegram-art::after { width: 230px; height: 145px; transform: rotate(35deg); border-color: rgba(183,243,107,.17); }
.telegram-orbit { width: 74px; height: 74px; z-index: 1; display: grid; place-items: center; border: 1px solid rgba(69,214,199,.45); border-radius: 50%; color: var(--teal); background: rgba(69,214,199,.09); font-size: 30px; box-shadow: 0 0 48px rgba(69,214,199,.12); }
.telegram-art > span { position: absolute; left: 20px; bottom: 18px; color: var(--faint); font: 10px/1.6 ui-monospace, Consolas, monospace; letter-spacing: .14em; }
.telegram-copy { align-self: center; padding: 29px clamp(24px, 4vw, 48px); }
.telegram-copy h2 { margin: 7px 0; font-size: 27px; }
.telegram-copy > p { max-width: 660px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.telegram-steps { display: grid; gap: 10px; margin: 18px 0 20px; color: #ced8de; font-size: 14px; }
.telegram-steps span { display: flex; align-items: center; gap: 10px; }
.telegram-steps b { color: var(--teal); font: 12px ui-monospace, Consolas, monospace; }
.telegram-copy .button { min-width: 240px; }
.security-note { display: flex; gap: 11px; margin-top: 15px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--teal); background: rgba(255,255,255,.018); }
.security-note > span { font-size: 18px; }.security-note p { margin: 0; color: var(--muted); font-size: 13px; }
.empty-state { min-height: 145px; display: grid; justify-items: center; align-content: center; gap: 6px; padding: 28px; border: 1px dashed #3a4853; border-radius: 10px; color: var(--faint); text-align: center; }
.empty-icon { color: #617281; font-size: 25px; }
.empty-state strong { color: #d4dde2; font-size: 16px; }
.empty-state p { max-width: 480px; margin: 0; color: var(--faint); font-size: 13px; }
.toast-stack { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: grid; gap: 9px; width: min(410px, calc(100vw - 32px)); }
.toast { padding: 14px 16px; border: 1px solid rgba(183,243,107,.25); border-radius: 9px; color: #e4f3d2; background: #18241e; box-shadow: 0 10px 35px rgba(0,0,0,.35); font-size: 14px; animation: rise-in .22s both; }
.toast-error { color: #ffd2d5; border-color: rgba(255,131,139,.28); background: #2a1a1d; }
.form-dialog { width: min(590px, calc(100vw - 30px)); max-height: min(88vh, 830px); position: fixed; top: 50%; padding: 29px; border: 1px solid #394a56; border-radius: 14px; color: var(--text); background: linear-gradient(145deg, #18232d, #0f161e); box-shadow: 0 30px 120px rgba(0,0,0,.65); }
.form-dialog::backdrop { background: rgba(3, 6, 9, .79); backdrop-filter: blur(7px); }
.dialog-close-form { position: absolute; top: 12px; right: 12px; }
.dialog-close { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 23px; cursor: pointer; }
.dialog-close:hover { color: var(--text); background: rgba(255,255,255,.07); }
.dialog-orb { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 14px; border: 1px solid rgba(183,243,107,.27); border-radius: 11px; color: var(--accent); background: rgba(183,243,107,.075); font-size: 21px; }
.form-dialog h2 { margin: 5px 0 6px; font-size: 26px; letter-spacing: -.03em; }
.dialog-description { max-width: 500px; margin: 0 0 19px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.dialog-form { display: grid; gap: 14px; max-height: 56vh; overflow-y: auto; padding: 0 3px 3px 0; }
.dialog-field { font-size: 13px; }
.dialog-field input, .dialog-field select, .dialog-field textarea { font-weight: 400; }
.dialog-field textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.field-hint { color: var(--faint); font-size: 12px; font-weight: 400; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 6px; }

@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-width: 1320px) {
  .login-layout { grid-template-columns: minmax(0, 1fr) minmax(420px, .85fr); }
  .login-intro { padding-left: 55px; padding-right: 45px; }
  .department-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { right: -3%; opacity: .56; }
}
@media (max-width: 1050px) {
  .sidebar { width: 76px; align-items: center; padding-right: 10px; padding-left: 10px; }
  .sidebar .brand { padding: 0; }
  .sidebar .brand img { width: 43px; height: 43px; }
  .sidebar .brand span, .workspace-card > span:nth-child(2), .workspace-card .chevron, .nav-label, .nav-item > span:not(.nav-icon), .server-status > span, .sidebar-user > span:nth-child(2), .logout-button { display: none; }
  .workspace-card { width: 48px; justify-content: center; padding: 6px; margin: 24px 0; }
  .nav-item { width: 49px; justify-content: center; padding: 0; font-size: 0; }
  .nav-item.active::before { left: -10px; }
  .sidebar-bottom { width: 100%; }
  .server-status { justify-content: center; padding: 16px 0; }
  .sidebar-user { justify-content: center; padding: 12px 0 0; }
  .main-content { margin-left: 76px; }
  .login-layout { grid-template-columns: minmax(0, .98fr) minmax(400px, 1.02fr); }
  .login-intro { padding-left: 36px; padding-right: 32px; }
  .intro-copy h1 { font-size: clamp(39px, 5vw, 58px); }
  .login-panel { padding: 35px; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .login-layout { display: block; }
  .login-intro { min-height: 320px; padding: 24px 24px 25px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .login-intro .brand img { width: 39px; height: 39px; }
  .intro-copy { padding: 38px 0 12px; }
  .intro-copy h1 { margin: 13px 0 8px; font-size: 38px; }
  .intro-copy > p { max-width: 580px; font-size: 15px; }
  .login-pillars, .login-footer { display: none; }
  .solar-core { width: 320px; top: 36%; left: 86%; }
  .solar-orbit { left: 86%; top: 36%; }
  .orbit-one { width: 420px; height: 190px; }
  .orbit-two { width: 380px; height: 260px; }
  .login-panel { min-height: calc(100vh - 320px); padding: 32px 22px; }
  .login-panel h2 { font-size: 30px; }
  .sidebar { width: 270px; align-items: stretch; transform: translateX(-101%); transition: transform .24s ease; box-shadow: 18px 0 45px rgba(0,0,0,.4); }
  .sidebar.sidebar-open { transform: translateX(0); }
  .sidebar .brand { padding: 0 7px; }
  .sidebar .brand img { width: 40px; height: 40px; }
  .sidebar .brand span, .workspace-card > span:nth-child(2), .workspace-card .chevron, .nav-label, .nav-item > span:not(.nav-icon), .server-status > span, .sidebar-user > span:nth-child(2), .logout-button { display: revert; }
  .workspace-card { width: auto; justify-content: flex-start; padding: 10px; margin: 25px 0; }
  .nav-label { display: block; }
  .nav-item { width: auto; justify-content: flex-start; padding: 0 12px; font-size: 14px; }
  .nav-item.active::before { left: 0; }
  .sidebar-bottom { width: auto; }
  .server-status { justify-content: flex-start; padding: 14px 9px; }
  .sidebar-user { justify-content: flex-start; padding: 13px 7px 2px; }
  .main-content { margin-left: 0; }
  .topbar { height: 62px; gap: 10px; padding: 0 15px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .breadcrumb { gap: 9px; }
  .topbar-actions { gap: 9px; }
  .secure-badge span, .topbar-date, .topbar-divider { display: none; }
  .content-wrap { padding: 28px 16px 25px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .page-heading h1 { font-size: 31px; }
  .heading-action { justify-content: flex-start; }
  .dashboard-hero { min-height: 290px; padding: 26px 22px; }
  .hero-copy { max-width: 100%; }
  .hero-visual { width: 280px; height: 280px; top: 55%; right: -19%; opacity: .34; }
  .hero-sun { width: 130px; height: 130px; }
  .hero-ring-a { width: 245px; height: 130px; }.hero-ring-b { width: 275px; height: 195px; }
  .hero-copy h2 { font-size: 34px; }
  .hero-copy p { max-width: 470px; font-size: 14px; }
  .hero-index, .hero-coordinate { display: none; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .metric-card { min-height: 132px; padding: 14px; }
  .metric-top { font-size: 10px; }.metric-value { font-size: 25px; }.metric-detail { font-size: 11px; }
  .chart-panel, .focus-panel, .recent-panel { padding: 16px 14px; }
  .chart-row { grid-template-columns: 89px minmax(30px,1fr) 22px; gap: 8px; font-size: 12px; }
  .chart-legend { gap: 9px; font-size: 11px; }
  .panel-foot { align-items: flex-start; flex-direction: column; }
  .department-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .department-card { min-height: 260px; padding: 12px; }
  .department-card h3 { font-size: 15px; }.department-card > p { font-size: 12px; }
  .dept-stats { flex-direction: column; gap: 4px; }
  .summary-count { display: none; }
  .order-card { grid-template-columns: 1fr; gap: 13px; padding: 15px; }
  .order-side { align-items: flex-start; padding: 12px 0 0; border-top: 1px solid var(--line-soft); border-left: 0; }
  .order-side > small { display: none; }.order-actions { justify-content: flex-start; }
  .finance-hero { align-items: flex-start; flex-direction: column; padding: 19px; }
  .profit-split { align-self: flex-end; }
  .org-canvas { padding: 15px 11px; }
  .org-branch-grid { grid-template-columns: 1fr; }
  .org-node { min-width: min(100%, 245px); }
  .org-nodes-wide { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .warning-overview { gap: 7px; }.warning-overview > div { padding: 10px; }.warning-overview span { font-size: 9px; }.warning-overview strong { font-size: 19px; }
  .warning-card, .appeal-card { padding: 14px; }
  .warning-card-head { flex-wrap: wrap; }.warning-date { margin-left: 0; }.warning-card-foot { flex-direction: column; gap: 4px; }
  .telegram-card { grid-template-columns: 1fr; }.telegram-art { min-height: 150px; border-right: 0; border-bottom: 1px solid var(--line-soft); }.telegram-copy { padding: 21px; }
  .app-footer { flex-direction: column; padding: 13px 16px; }
}
@media (max-width: 460px) {
  body { font-size: 15px; }
  .intro-copy h1 { font-size: 33px; }
  .login-panel { padding: 26px 18px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 121px; padding: 12px 10px; }
  .metric-top { font-size: 9px; letter-spacing: .04em; }.metric-value { font-size: 22px; }.metric-detail { font-size: 10px; }
  .department-grid { grid-template-columns: 1fr; }
  .department-card { min-height: 215px; padding: 15px; }
  .dept-stats { flex-direction: row; }
  .department-summary { gap: 9px; padding: 12px; }.summary-orb { width: 32px; height: 32px; flex-basis: 32px; }.department-summary strong { font-size: 13px; }.department-summary small { font-size: 11px; }
  .topbar-actions .button { min-height: 35px; padding: 6px 9px; font-size: 12px; }
  .topbar-actions .button span { display: none; }
  .org-nodes-wide { grid-template-columns: 1fr; }
  .dialog-actions { flex-direction: column-reverse; }.dialog-actions .button { width: 100%; }
  .form-dialog { padding: 23px 18px; }
}

.rules-banner, .rules-accepted-banner { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; padding: 19px 22px; border: 1px solid rgba(183,243,107,.22); border-radius: 12px; background: linear-gradient(110deg, rgba(183,243,107,.085), rgba(69,214,199,.045)); }
.rules-banner-symbol { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--accent); background: rgba(183,243,107,.11); font-size: 22px; }
.rules-banner strong, .rules-accepted-banner strong { font-size: 16px; }
.rules-banner p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.rules-count { margin-left: auto; color: var(--accent); font-size: 24px; font-weight: 750; text-align: right; }
.rules-count small { display: block; color: var(--faint); font-size: 9px; letter-spacing: .1em; }
.rules-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(330px,.8fr); align-items: start; gap: 18px; }
.rules-document, .rules-aside { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.rules-document { padding: 23px 25px; }
.rules-document-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.rules-document-heading h2, .quiz-heading h2 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.025em; }
.rules-version { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 11px; }
.rules-section-list, .rules-reference-list { display: grid; }
.rules-section { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 10px; padding: 15px 0; border-top: 1px solid var(--line-soft); }
.rules-marker { color: var(--accent); font-size: 15px; }
.rules-section h3 { margin: 0; font-size: 15px; line-height: 1.4; }
.rules-section p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.rules-aside { position: sticky; top: 86px; overflow: hidden; }
.rules-aside-top { padding: 22px 23px 17px; }
.rules-score { margin: 12px 0 3px; color: var(--accent); font-size: 40px; line-height: 1; font-weight: 760; letter-spacing: -.045em; }
.rules-score span { color: var(--faint); font-size: 20px; }
.rules-aside-top h3 { margin: 8px 0 5px; font-size: 17px; }
.rules-aside-top p { margin: 0; color: var(--muted); font-size: 13px; }
.rules-start-panel { display: flex; align-items: flex-start; gap: 13px; padding: 17px; border-top: 1px solid var(--line-soft); background: rgba(255,255,255,.016); }
.rules-start-mark { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(183,243,107,.26); border-radius: 9px; color: var(--accent); }
.rules-start-panel strong { display: block; font-size: 14px; }
.rules-start-panel p { margin: 5px 0 13px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.rules-start-panel .button { width: 100%; min-height: 42px; font-size: 12px; }
.rules-result-note { padding: 11px 17px; border-top: 1px solid var(--line-soft); color: var(--gold); font-size: 13px; }
.rules-quiz { padding: 0 20px 20px; }
.quiz-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 10px; }
.quiz-heading h2 { font-size: 17px; }
.quiz-timer { color: var(--faint); font-size: 9px; letter-spacing: .1em; }
.quiz-question { min-width: 0; margin: 0; padding: 16px 0; border: 0; border-top: 1px solid var(--line-soft); }
.quiz-question legend { width: 100%; padding: 0; font-size: 14px; font-weight: 700; line-height: 1.5; }
.quiz-question legend span { display: inline-block; margin-right: 8px; color: var(--teal); font-size: 11px; letter-spacing: .08em; }
.quiz-options { display: grid; gap: 7px; margin-top: 11px; }
.quiz-option { display: flex; align-items: flex-start; gap: 9px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; color: #d5dfe5; background: rgba(255,255,255,.014); cursor: pointer; font-size: 12px; line-height: 1.45; }
.quiz-option:has(input:checked) { border-color: rgba(183,243,107,.48); background: rgba(183,243,107,.065); }
.quiz-option input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--accent); }
.rules-accepted-banner { margin-bottom: 15px; }
.rules-accepted-banner > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: #11160d; background: var(--accent); font-weight: 800; }
.rules-accepted-banner small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.rules-reference-list { max-width: 1000px; padding: 8px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.rules-browser { display: grid; gap: 11px; margin: 13px 0 15px; padding: 13px; border: 1px solid var(--line-soft); border-radius: 11px; background: rgba(255,255,255,.018); }
.rules-search { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--teal); background: var(--bg); }
.rules-search > span { font-size: 21px; line-height: 1; }
.rules-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 15px; }
.rules-search input::placeholder { color: var(--faint); }
.rules-search kbd { flex: 0 0 auto; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font: 11px var(--font); }
.rules-filter-row { display: flex; flex-wrap: wrap; gap: 7px; }
.rules-filter { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface-raised); cursor: pointer; font-size: 14px; transition: border-color .16s ease, color .16s ease, background .16s ease; }
.rules-filter:hover { border-color: rgba(69,214,199,.45); color: var(--text); }
.rules-filter.selected { border-color: rgba(183,243,107,.45); color: var(--accent); background: rgba(183,243,107,.08); }
.rules-filter > span { min-width: 20px; padding: 1px 5px; border-radius: 10px; color: var(--text); background: rgba(255,255,255,.08); text-align: center; font-size: 11px; }
.rules-browser-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; color: var(--faint); font-size: 12px; }
.rules-browser-meta > span:first-child { color: var(--teal); }
.rules-filter-empty, .department-filter-empty { display: grid; gap: 4px; padding: 22px 16px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; }
.rules-filter-empty strong, .department-filter-empty strong { color: var(--text); font-size: 15px; }
.rules-filter-empty span, .department-filter-empty span { font-size: 13px; }
.department-browser { display: flex; align-items: center; gap: 14px; max-width: 720px; margin: 20px 0 14px; }
.department-browser .search-input { flex: 1 1 auto; min-width: 0; }
.department-grid [hidden], .rules-section-list [hidden] { display: none !important; }
@media (max-width: 620px) { .rules-browser { padding: 10px; }.rules-filter { min-height: 40px; padding: 7px 10px; font-size: 13px; }.rules-search kbd { display: none; }.rules-browser-meta { font-size: 11px; }.department-browser { align-items: stretch; flex-direction: column; gap: 8px; }.department-browser .toolbar-count { align-self: flex-end; } }
@media (max-width: 1050px) { .rules-layout { grid-template-columns: minmax(0,1fr); }.rules-aside { position: static; } }
@media (max-width: 620px) { .rules-banner { align-items: flex-start; padding: 15px; }.rules-count { display: none; }.rules-document { padding: 17px 15px; }.rules-document-heading h2 { font-size: 19px; }.rules-section p { font-size: 13px; }.rules-quiz { padding: 0 14px 14px; } }

/* Warm solar accents across the sign-in and workspace. */
.login-intro { background: radial-gradient(ellipse at 72% 54%, #53241f 0, #2b171a 38%, #171115 73%); }
.solar-core { left: 72%; background: radial-gradient(circle, #ffd7a64a 0, #ee713740 9%, #e8582630 18%, transparent 65%); }
.solar-core::before { inset: 18%; border-color: #ff9d6360; box-shadow: inset 0 0 45px #e45d3724, 0 0 70px #f878322d; }
.solar-core::after { inset: 28%; border-color: #ffba8355; }
.orbit-one, .orbit-two { border-color: #ff976136; }
.login-panel { background: linear-gradient(158deg, #23171c, var(--bg) 67%); }
.login-panel-inner > .button-quiet:last-child { margin-top: 10px; }
.login-footer { color: var(--muted); }
.button-primary { background: linear-gradient(118deg, #ffc38f, var(--accent) 62%, #f9814c); color: #201314; box-shadow: 0 8px 24px #ef6d3325; }
.button-primary:hover { box-shadow: 0 10px 30px #ef6d3348; }
.nav-item.active { box-shadow: inset 2px 0 var(--accent); }
.nav-item, .button, .department-card { transition: color .18s, border-color .18s, background-color .18s, box-shadow .18s, transform .18s; }
.department-card:hover { transform: translateY(-2px); border-color: #9e6854; }
@media (prefers-reduced-motion: no-preference) {
  .login-panel-inner, .mini-hero { animation: solar-enter .32s ease-out both; }
  .solar-core::before { animation: solar-halo 8s ease-in-out infinite alternate; }
}
@keyframes solar-enter { from { opacity: .5; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes solar-halo { from { opacity: .65; transform: scale(.97); } to { opacity: 1; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.operation-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 14px; margin: 16px 0 26px; }
.operation-card { min-width: 0; padding: 18px; overflow-wrap: anywhere; }
.operation-card h3 { margin: 0 0 9px; font-size: 1.1rem; }
.operation-card p { margin: 5px 0; color: var(--muted); white-space: pre-line; }
.operation-card p strong { color: var(--text); }
.operation-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 9px 0; }
.operation-actions select, .analytics-filter input { color: var(--text); background: var(--surface); border: 1px solid var(--line); padding: 9px 12px; border-radius: 8px; }
.operation-card progress { width: 100%; height: 8px; accent-color: var(--accent); }
.sidebar { overflow-y: auto; scrollbar-width: thin; background: var(--bg); }
