:root {
  color-scheme: light;
  --bg: #f4f2f1;
  --bg-strong: #e8dfdf;
  --surface: #ffffff;
  --surface-2: #fbf8f7;
  --ink: #211b1f;
  --muted: #6e6066;
  --line: #ded3d3;
  --brand: #9f1239;
  --brand-2: #e11d48;
  --brand-deep: #35111b;
  --accent: #d97706;
  --panel-nav: #22171d;
  --panel-nav-2: #3b2028;
  --panel-nav-3: #7f1d1d;
  --owner-nav: #171a21;
  --owner-nav-2: #2d313b;
  --owner-nav-3: #4a2b35;
  --danger: #b42335;
  --danger-bg: #fff4f6;
  --ok: #1d4ed8;
  --ok-bg: #eff6ff;
  --warning: #8a5a00;
  --warning-bg: #fff4db;
  --info: #214d8f;
  --info-bg: #eaf1ff;
  --offline: #4b5868;
  --offline-bg: #eef0f3;
  --radius-control: 7px;
  --radius-card: 8px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --control-min-height: 42px;
  --shadow: 0 18px 46px rgba(37, 24, 30, .14);
  --shadow-soft: 0 10px 26px rgba(37, 24, 30, .09);
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(159, 18, 57, .72) rgba(33, 23, 29, .12);
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: rgba(33, 23, 29, .08); border-radius: 999px; }
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #5f2432, var(--brand)); border: 2px solid rgba(255,255,255,.72); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #7f1d1d, var(--brand-2)); }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #fdfcfc 0, var(--bg) 280px, var(--bg) 100%); }
button, input, select, textarea { font: inherit; }
button { border: 0; border-radius: 7px; padding: 10px 14px; background: var(--brand); color: #fff; font-weight: 800; letter-spacing: 0; cursor: pointer; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
button:hover { box-shadow: 0 10px 20px rgba(159, 18, 57, .18); transform: translateY(-1px); }
button:disabled, button[aria-disabled="true"] { cursor: not-allowed; opacity: .58; transform: none; box-shadow: none; }
button.is-busy { background: var(--brand-deep); color: #fff; }
button.secondary { background: #e4ecef; color: var(--ink); }
button.danger { background: var(--danger); }
button.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
button:focus, input:focus, select:focus, textarea:focus { outline: 3px solid rgba(159, 18, 57, .18); outline-offset: 1px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(159, 18, 57, .24); outline-offset: 2px; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at 18% 18%, rgba(217, 119, 6, .16), transparent 30%), linear-gradient(135deg, #fdfcfc 0%, #e8e3e3 100%); }
.login-card { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 30px; }
.login-wrap-modern { grid-template-columns: minmax(340px, 460px) minmax(320px, 520px); gap: 28px; justify-content: center; place-items: stretch; }
.login-card-modern { align-self: center; min-height: 560px; display: grid; align-content: center; }
.auth-card { position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent)); }
.login-mark, .brand-logo, .profile-logo { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: #f8e9ef; color: var(--brand); font-weight: 900; margin-bottom: 12px; }
.login-logo { display: block; width: 210px; max-width: 75%; height: auto; margin: 0 0 14px; }
.brand-logo-img { width: 44px; height: 44px; object-fit: contain; margin-bottom: 10px; }
.panel-wordmark { display: inline-flex; align-items: center; gap: 12px; min-width: 0; margin-bottom: 18px; color: var(--ink); }
.wordmark-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: linear-gradient(160deg, var(--brand), #b45309); color: #fff; font-weight: 950; box-shadow: 0 10px 22px rgba(159,18,57,.18); }
.panel-wordmark strong { display: block; color: var(--ink); font-size: 24px; line-height: 1; letter-spacing: 0; }
.panel-wordmark strong::first-letter { color: var(--brand); }
.panel-wordmark small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.2; }
.dashboard-wordmark { margin-bottom: 20px; }
.dashboard-wordmark .wordmark-icon { width: 38px; height: 38px; }
.dashboard-wordmark strong { font-size: 22px; }
.login-card h1 { margin: 0 0 8px; font-size: 28px; }
.login-card p { margin: 0 0 18px; color: var(--muted); }
.login-simple-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 16px 0 18px; }
.login-simple-points span { min-height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: #fbf7f8; color: var(--brand); font-size: 12px; font-weight: 900; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 800; color: #2c3a45; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 11px 12px; background: #fff; color: var(--ink); }
.field .form-help, .public-field .form-help, .form-help { color: var(--muted); font-size: 12px; font-weight: 750; line-height: 1.45; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"], .public-field input[aria-invalid="true"], .public-field textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 35, 53, .10); }
.password-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.password-control button { min-width: 78px; padding-inline: 10px; }
.remember-check { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 800; margin: 2px 0 10px; }
.remember-check input { width: 16px; height: 16px; accent-color: var(--brand); }
.login-message { margin: 4px 0 10px; }
.auth-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 14px; }
.login-actions button { min-width: 150px; }
.login-actions a { color: var(--brand); font-size: 13px; font-weight: 850; text-decoration: none; }
.login-safe-note { margin: 12px 0 0 !important; color: var(--muted); font-size: 13px; line-height: 1.5; }
.login-secondary-panel { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbf8f8; padding: 10px; }
.login-secondary-panel summary { cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 900; }
.login-guide-panel { align-self: center; min-height: 560px; border-radius: 8px; background: linear-gradient(160deg, #171a21 0%, #22171d 58%, #4a0f20 100%); color: #fff; box-shadow: var(--shadow); padding: 34px; display: grid; align-content: center; gap: 20px; overflow: hidden; position: relative; }
.login-guide-panel::after { content: ""; position: absolute; inset: auto -80px -100px auto; width: 220px; height: 220px; border-radius: 50%; background: rgba(225, 29, 72, .22); }
.login-guide-panel h2 { position: relative; z-index: 1; margin: 0; max-width: 420px; font-size: clamp(32px, 4vw, 48px); line-height: 1.06; }
.login-guide-panel p { position: relative; z-index: 1; max-width: 440px; margin: 0; color: rgba(255,255,255,.76); font-size: 16px; line-height: 1.6; }
.login-guide-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.login-guide-grid strong { min-height: 72px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; font-size: 18px; }
.hint { color: var(--muted); font-size: 13px; }
.login-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.login-proof span { border: 1px solid var(--line); border-radius: 7px; background: #fbf7f8; color: var(--brand); font-size: 11px; font-weight: 850; line-height: 1.25; min-height: 42px; display: grid; place-items: center; text-align: center; padding: 7px; }
.login-links { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.login-links a { color: var(--brand); font-size: 13px; font-weight: 850; text-decoration: none; }
.login-links a:hover { text-decoration: underline; }
.login-entry-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.login-entry-list a { border: 1px solid var(--line); border-radius: 7px; background: #fbf8f8; color: #284459; font-size: 12px; font-weight: 850; line-height: 1.25; min-height: 42px; display: grid; place-items: center; text-align: center; padding: 8px; text-decoration: none; }
.login-entry-list a.active { background: #fde8ee; border-color: rgba(159, 18, 57, .25); color: var(--brand); }
.role-landing .auth-row a { text-decoration: none; }
.public-cta-link.subtle { background: #fff; color: var(--brand) !important; border: 1px solid rgba(159, 18, 57, .18); box-shadow: none; }

.public-shell { min-height: 100vh; background: #fbf8f8; color: var(--ink); }
.public-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; padding: 12px clamp(18px, 4vw, 58px); background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(202,216,234,.72); backdrop-filter: blur(16px); }
.public-brand { display: grid; gap: 2px; color: var(--brand-deep); text-decoration: none; }
.public-brand img { width: 210px; max-width: 46vw; height: auto; }
.public-brand span { color: var(--muted); font-size: 12px; font-weight: 750; }
.public-nav { display: flex; align-items: center; gap: 8px; }
.public-nav a, .public-text-link { color: #284459; text-decoration: none; font-size: 14px; font-weight: 850; border-radius: 7px; padding: 10px 11px; }
.public-nav a:hover, .public-nav a.active, .public-text-link:hover { background: #fbe8ef; color: var(--brand); }
.public-login-link { border: 1px solid var(--line); background: #fff; }
.public-login-menu { position: relative; }
.public-login-menu summary { list-style: none; cursor: pointer; color: #284459; font-size: 14px; font-weight: 850; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 10px 11px; }
.public-login-menu summary::-webkit-details-marker { display: none; }
.public-login-menu div { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 260px; display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); padding: 8px; }
.public-login-menu a { display: block; border-radius: 7px; color: #284459; padding: 10px; text-decoration: none; }
.public-login-menu a:hover { background: #fbe8ef; color: var(--brand); }
.public-cta-link, .public-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 7px; background: var(--brand); color: #fff !important; padding: 11px 16px; text-decoration: none; font-weight: 900; box-shadow: 0 10px 24px rgba(159,18,57,.18); }
.public-cta-link:hover, .public-primary:hover { background: var(--brand-deep); }
.public-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--brand); padding: 11px 16px; text-decoration: none; font-weight: 900; }
.public-menu-button { display: none; background: #fbe8ef; color: var(--brand); border: 1px solid var(--line); }
.public-hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(340px, .98fr); align-items: center; gap: clamp(24px, 5vw, 58px); min-height: calc(100vh - 78px); padding: clamp(42px, 6vw, 82px) clamp(18px, 5vw, 70px) 42px; }
.public-hero-copy h1, .public-page-hero h1 { margin: 0; color: var(--brand-deep); font-size: clamp(38px, 6vw, 72px); line-height: 1.02; letter-spacing: 0; }
.public-hero-copy p, .public-page-hero p { max-width: 780px; color: #40566a; font-size: 18px; line-height: 1.65; margin: 18px 0 0; }
.public-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.public-mock { border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(145deg, #fff 0%, #fbf3f4 100%); box-shadow: var(--shadow); padding: 18px; }
.mock-label { display: inline-flex; margin-bottom: 12px; color: var(--muted); font-size: 12px; font-weight: 850; }
.mock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mock-grid div { min-height: 112px; border: 1px solid rgba(202,216,234,.82); border-radius: 8px; background: rgba(255,255,255,.9); padding: 14px; display: grid; align-content: space-between; }
.mock-grid b { color: var(--muted); font-size: 12px; line-height: 1.35; }
.mock-grid strong { color: var(--brand-deep); font-size: 26px; line-height: 1.1; }
.public-section { padding: clamp(42px, 6vw, 74px) clamp(18px, 5vw, 70px); }
.section-heading { max-width: 820px; margin-bottom: 22px; }
.section-heading h2, .public-audience h2, .public-problem h2, .public-cta h2 { margin: 0; color: var(--brand-deep); font-size: clamp(28px, 4vw, 44px); line-height: 1.1; }
.section-heading p, .public-audience p, .public-card p, .public-module-list p, .prose p { color: var(--muted); line-height: 1.65; }
.public-feature-grid, .public-contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.public-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-soft); padding: 18px; }
.public-card h3 { margin: 0 0 9px; color: var(--brand-deep); font-size: 19px; }
.public-card p { margin: 0; }
.public-login-entry-section { background: #fff; border-block: 1px solid var(--line); }
.public-login-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.public-login-card { min-height: 150px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #fff 0%, #fbf4f4 100%); box-shadow: var(--shadow-soft); color: var(--ink); padding: 16px; text-decoration: none; display: grid; align-content: start; gap: 10px; }
.public-login-card strong { color: var(--brand-deep); font-size: 18px; line-height: 1.2; }
.public-login-card span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.public-login-card:hover { border-color: rgba(159,18,57,.32); transform: translateY(-1px); }
.public-login-grid.single-entry { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.public-login-card.primary { background: linear-gradient(180deg, #fffafa 0%, #fde8ee 100%); }
.public-login-card.support-card { gap: 12px; }
.public-login-pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.public-login-pill-list a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; text-decoration: none; color: #284459; font-size: 12px; font-weight: 800; background: #fff; }
.public-login-pill-list a:hover { border-color: rgba(159,18,57,.32); color: var(--brand); background: #fbe8ef; }
.public-audience { display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, .55fr); gap: 24px; align-items: center; background: #f8eeee; }
.public-audience ul, .public-problem ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.public-audience li, .public-problem li { border: 1px solid rgba(159,18,57,.12); border-radius: 7px; background: #fff; padding: 11px 12px; color: #294156; font-weight: 750; }
.public-problem { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.public-problem article { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 22px; }
.public-cta { margin: 0 clamp(18px, 5vw, 70px) clamp(42px, 6vw, 74px); display: flex; align-items: center; justify-content: space-between; gap: 18px; border-radius: 8px; background: var(--brand-deep); color: #fff; padding: clamp(22px, 4vw, 34px); }
.public-cta h2 { color: #fff; max-width: 880px; }
.public-page-hero { padding: clamp(48px, 7vw, 90px) clamp(18px, 5vw, 70px) clamp(30px, 4vw, 54px); background: linear-gradient(135deg, #ffffff 0%, #fbf0f2 100%); border-bottom: 1px solid var(--line); }
.public-module-list { display: grid; gap: 12px; }
.public-module-list article { border-left: 4px solid var(--brand); background: #fff; border-radius: 8px; box-shadow: var(--shadow-soft); padding: 18px 20px; }
.public-module-list h2 { margin: 0 0 8px; color: var(--brand-deep); font-size: 22px; }
.public-module-list p, .prose p { margin: 0; }
.public-module-list article + article, .prose p + p { margin-top: 12px; }
.public-form-section { padding: clamp(34px, 5vw, 70px) clamp(18px, 5vw, 70px); }
.request-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 980px; }
.public-field { display: grid; gap: 7px; color: #294156; font-size: 13px; font-weight: 850; }
.public-field input, .public-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); padding: 12px; }
.public-wide { grid-column: 1 / -1; }
.kvkk-check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); line-height: 1.5; }
.kvkk-check input { margin-top: 3px; }
.form-message { display: grid; gap: 4px; min-height: 24px; font-weight: 800; }
.form-message span { display: block; line-height: 1.45; }
.form-message.error { color: var(--danger); }
.form-message.success { color: var(--ok); }
.public-footer { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1fr) auto; gap: 24px; padding: 32px clamp(18px, 5vw, 70px); border-top: 1px solid var(--line); background: #fff; }
.public-footer strong { color: var(--brand-deep); font-size: 20px; }
.public-footer p, .public-footer small { color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.public-footer nav { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 9px 14px; }
.public-footer a { color: #294156; font-size: 13px; font-weight: 800; text-decoration: none; }
.public-footer a:hover { color: var(--brand); text-decoration: underline; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 272px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow: auto; background: linear-gradient(180deg, var(--panel-nav) 0%, var(--panel-nav-2) 52%, var(--panel-nav-3) 100%); color: #fff8fa; padding: 20px 14px; display: flex; flex-direction: column; gap: 14px; box-shadow: inset -1px 0 0 rgba(255,255,255,.08), 10px 0 34px rgba(48, 24, 34, .18); }
.owner-sidebar { background: linear-gradient(180deg, var(--owner-nav) 0%, var(--owner-nav-2) 58%, var(--owner-nav-3) 100%); }
.owner-topbar { background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(251,248,248,.96) 100%); }
.owner-actions { gap: 10px; }
.owner-overview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 24px 0;
}
.owner-overview-card {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf5f5 100%);
}
.owner-overview-card b { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.owner-overview-card strong { color: var(--ink); font-size: 24px; line-height: 1.1; }
.owner-overview-card span { color: var(--muted); font-size: 12px; line-height: 1.35; }
.owner-hero-intro {
  background: linear-gradient(135deg, #ffffff 0%, #fbf2f3 52%, #fff7e8 100%);
}
.owner-compact-intro {
  padding: 16px 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
}
.brand { padding: 12px 10px 20px; border-bottom: 1px solid rgba(255,255,255,.14); }
.brand .brand-logo { background: rgba(255,255,255,.12); color: #fff; margin-bottom: 10px; }
.brand strong { display: block; font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
.brand span { color: #ead8dd; font-size: 13px; line-height: 1.4; }
.brand em { display: inline-flex; margin-top: 10px; padding: 4px 8px; border-radius: 999px; background: rgba(245, 158, 11, .16); color: #ffe2a8; font-style: normal; font-size: 11px; font-weight: 800; }
.nav-list { display: grid; gap: 4px; overflow: auto; }
.nav-item { text-align: left; width: 100%; color: #fff7f9; background: transparent; border: 1px solid transparent; border-radius: 7px; padding: 12px 11px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.nav-item.compact { font-size: 13px; padding: 8px 10px; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.12); box-shadow: inset 3px 0 0 var(--accent); }
.nav-item small { color: #b2cacd; }
.nav-more { border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; }
.nav-more summary { cursor: pointer; color: #ead8dd; font-size: 12px; font-weight: 850; letter-spacing: 0; padding: 8px 10px; }

.main { min-width: 0; display: flex; flex-direction: column; background: linear-gradient(180deg, #fbf8f7 0%, var(--bg) 260px, var(--bg) 100%); }
.topbar { min-height: 76px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(222, 211, 211, .9); display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 18px; position: sticky; top: 0; z-index: 2; box-shadow: 0 10px 30px rgba(37, 24, 30, .06); }
.page-title strong { display: block; font-size: 24px; line-height: 1.1; letter-spacing: 0; }
.page-title span { display: block; max-width: 700px; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 4px; }
.top-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.session-chip { max-width: 260px; border: 1px solid var(--line); border-radius: 7px; background: #fbf8f8; color: var(--muted); font-size: 12px; font-weight: 850; line-height: 1.3; padding: 9px 11px; }
.content { padding: 20px 24px 30px; display: grid; gap: 16px; }
.workspace-band { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: rgba(251, 248, 248, .94); padding: 10px 24px; }
.subnav-list { display: flex; gap: 8px; min-width: 0; overflow-x: auto; padding: 0; }
.subnav-list button { white-space: nowrap; background: #e4ecef; color: var(--ink); border: 1px solid var(--line); }
.subnav-list button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.subnav-more { position: relative; flex: none; }
.subnav-more summary { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 7px; color: var(--brand-2); cursor: pointer; display: inline-flex; font-size: 13px; font-weight: 850; min-height: 40px; padding: 0 12px; }
.subnav-more div { position: absolute; top: calc(100% + 8px); right: 0; z-index: 4; width: min(360px, calc(100vw - 32px)); display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); padding: 9px; }
.subnav-more button { background: #f3f7f7; border: 1px solid var(--line); color: var(--ink); text-align: left; }
.subnav-more button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.feed-workspace { background: linear-gradient(90deg, rgba(159,18,57,.08), rgba(217,119,6,.09)); }
.feed-workspace .subnav-list button.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 9px 22px rgba(159, 18, 57, .18);
}
.feed-workspace .subnav-list button { background: #fff; box-shadow: inset 0 0 0 1px rgba(159,18,57,.06); }
.feed-workspace .subnav-list button.active { box-shadow: 0 9px 22px rgba(159,18,57,.18); }

.mode-switch { display: inline-flex; background: #e3ebef; border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 3px; }
.mode-switch button { background: transparent; color: #38505e; padding: 8px 12px; }
.mode-switch button.active { background: #fff; color: var(--brand); box-shadow: 0 4px 12px rgba(22,50,68,.10); }

.dashboard-hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(240px, .35fr); gap: 18px; align-items: stretch; border: 1px solid rgba(159, 18, 57, .18); border-radius: 8px; background: linear-gradient(135deg, #ffffff 0%, #fbf1f3 58%, #fff7e8 100%); box-shadow: var(--shadow-soft); padding: 20px; overflow: hidden; position: relative; }
.dashboard-hero::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%; background: rgba(225, 29, 72, .13); pointer-events: none; }
.dashboard-logo { width: min(260px, 80%); height: auto; margin-bottom: 16px; }
.dashboard-hero h1 { margin: 0; max-width: 680px; color: var(--brand-deep); font-size: clamp(30px, 4vw, 50px); line-height: 1.02; letter-spacing: 0; }
.dashboard-hero p { max-width: 760px; color: #40566a; font-size: 16px; line-height: 1.55; margin: 14px 0 0; }
.dashboard-hero aside { position: relative; z-index: 1; display: grid; align-content: center; gap: 8px; border-radius: 8px; background: linear-gradient(160deg, var(--brand-deep) 0%, var(--brand) 72%, #7f1d1d 100%); color: #fff; min-height: 190px; padding: 20px; box-shadow: var(--shadow); }
.dashboard-hero aside strong { font-size: 46px; line-height: 1; }
.dashboard-hero aside span { font-size: 15px; font-weight: 850; }
.dashboard-hero aside small { color: rgba(255,255,255,.78); line-height: 1.4; }
.hero-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.dashboard-hero-simple h1 { max-width: 760px; font-size: clamp(34px, 4.4vw, 58px); }
.dashboard-hero-simple .hero-actions button { min-height: 48px; min-width: 112px; }
.dashboard-simple-grid { display: grid; grid-template-columns: repeat(5, minmax(155px, 1fr)); gap: 12px; }
.dashboard-simple-card { min-height: 196px; display: grid; align-content: space-between; gap: 12px; padding: 16px; }
.dashboard-simple-card h2 { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.2; text-transform: uppercase; }
.dashboard-simple-card strong { display: block; color: var(--ink); font-size: 25px; line-height: 1.08; letter-spacing: 0; }
.dashboard-simple-card ul { margin: 0; }
.dashboard-simple-card li { min-height: 32px; display: flex; align-items: center; border-radius: 7px; background: #fbf8f8; }
.dashboard-simple-card button { width: 100%; min-height: 42px; }
.dashboard-simple-card.attention { background: linear-gradient(180deg, #fff 0%, #fff7e8 100%); border-color: rgba(217,119,6,.22); }
.next-work-panel { border-top: 4px solid var(--brand); }
.next-work-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.next-work-list button { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 4px 12px; align-items: center; min-height: 88px; background: #fff; color: var(--ink); border: 1px solid var(--line); text-align: left; box-shadow: var(--shadow-soft); }
.next-work-list b { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 18px; }
.next-work-list strong { font-size: 16px; line-height: 1.2; }
.next-work-list span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.advanced-summary-panel { padding: 0; overflow: hidden; }
.advanced-summary-panel > summary { cursor: pointer; padding: 16px 18px; color: var(--ink); font-size: 15px; font-weight: 900; list-style: none; }
.advanced-summary-panel > summary::-webkit-details-marker { display: none; }
.advanced-summary-panel > summary::after { content: "Ac"; float: right; color: var(--brand); font-size: 12px; }
.advanced-summary-panel[open] > summary::after { content: "Kapat"; }
.advanced-summary-panel > .panel, .advanced-summary-panel > .grid-2 { margin: 0 16px 16px; }
.advanced-dashboard-grid { padding-bottom: 0; }

.priority-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--line); box-shadow: var(--shadow-soft); }
.priority-strip article { background: rgba(255,255,255,.94); min-height: 108px; padding: 16px 18px; display: grid; align-content: center; gap: 5px; }
.priority-strip b, .metric b { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; text-transform: uppercase; }
.priority-strip strong { color: var(--ink); font-size: 24px; line-height: 1.15; }
.priority-strip span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; box-shadow: var(--shadow-soft); position: relative; overflow: hidden; }
.metric::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--brand), var(--accent)); }
.metric strong { display: block; font-size: 27px; margin: 8px 0 3px; }
.metric span { color: var(--muted); font-size: 13px; }

.sk-panel, .sk-card, .sk-state-card, .sk-stat-card, .sk-empty, .sk-error, .sk-warning, .sk-success, .sk-info {
  border-radius: var(--radius-card);
}
.sk-panel, .sk-card, .sk-state-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.sk-stat-card { min-height: 112px; }
.sk-button { min-height: var(--control-min-height); border-radius: var(--radius-control); }
.sk-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: 12px; font-weight: 850; line-height: 1.2; padding: 5px 9px; }
.sk-empty { border-style: dashed; background: var(--info-bg); color: var(--info); }
.sk-error { border-color: #ffd0d8; background: var(--danger-bg); color: var(--danger); }
.sk-warning { border-color: rgba(138, 90, 0, .22); background: var(--warning-bg); color: var(--warning); }
.sk-success { border-color: rgba(29, 78, 216, .20); background: var(--ok-bg); color: var(--ok); }
.sk-info { border-color: rgba(33, 77, 143, .18); background: var(--info-bg); color: var(--info); }
.sk-page-intro {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(159, 18, 57, .14);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, #fff 0%, #fbf1f3 72%, #fff8e9 100%);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}
.sk-page-intro h2 { margin: 0; color: var(--brand-deep); font-size: 22px; line-height: 1.15; }
.sk-page-intro p { margin: 0; color: var(--muted); line-height: 1.55; }
.sk-command-strip, .sk-guidance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.sk-guidance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sk-workflow-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  color: var(--ink);
  padding: 14px;
  box-shadow: var(--shadow-soft);
  text-align: left;
}
.sk-workflow-card strong { display: block; color: var(--ink); font-size: 16px; line-height: 1.22; }
.sk-workflow-card span { color: var(--muted); font-size: 13px; line-height: 1.42; }
.flow-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.flow-step-card {
  display: grid;
  gap: 7px;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.flow-step-card b { color: var(--brand); font-size: 12px; text-transform: uppercase; }
.flow-step-card strong { color: var(--ink); font-size: 16px; line-height: 1.22; }
.flow-step-card span { color: var(--muted); font-size: 13px; line-height: 1.42; }
.calculation-assurance {
  border-color: rgba(159, 18, 57, .18);
  background: linear-gradient(135deg, #ffffff 0%, #fbf1f3 54%, #fff8ea 100%);
}
.calc-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.calc-proof-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 132px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.calc-proof-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent));
}
.calc-proof-card b { color: var(--brand); font-size: 12px; text-transform: uppercase; line-height: 1.2; }
.calc-proof-card strong { color: var(--ink); font-size: 18px; line-height: 1.2; }
.calc-proof-card span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.sk-section-note {
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-card);
  background: #fbf7f8;
  color: var(--muted);
  line-height: 1.5;
  padding: 12px 14px;
}
.sk-safe-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.daily-workflow-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: none;
  padding: 13px 15px;
}
.daily-workflow-hero h2 { margin: 0 0 5px; font-size: 21px; line-height: 1.12; }
.daily-workflow-hero p { max-width: 820px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.daily-action-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.daily-action-nav button {
  min-height: 86px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.06);
  color: #fff;
  text-align: left;
  box-shadow: none;
}
.daily-action-nav button.active {
  border-color: rgba(251,113,133,.72);
  background: linear-gradient(135deg, var(--brand) 0%, #6d1025 100%);
}
.daily-action-nav strong { display: block; font-size: 18px; line-height: 1.12; }
.daily-action-nav span { display: block; margin-top: 6px; color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.35; }
.auto-assurance { display: flex; flex-wrap: wrap; gap: 8px; }
.auto-assurance { justify-content: flex-end; max-width: 430px; }
.auto-assurance span { border: 1px solid #eadce0; border-radius: 999px; background: #fbf7f8; color: var(--brand); font-size: 12px; font-weight: 900; padding: 7px 10px; }
.daily-workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 14px;
}
.simple-form-card { display: grid; gap: 10px; align-content: start; }
.simple-form-card .panel-head { align-items: flex-start; }
.simple-form-card .panel-head p { margin: 6px 0 0; max-width: 660px; }
.primary-large { min-height: 48px; min-width: 132px; font-size: 15px; }
.simple-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.simple-form-grid .field label, .form-more .field label { font-size: 13px; font-weight: 900; color: var(--ink); }
.simple-form-grid input, .simple-form-grid select, .form-more input, .form-more select {
  min-height: 46px;
  font-size: 17px;
  font-weight: 800;
}
.form-more {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f8;
  padding: 12px;
}
.form-more summary { cursor: pointer; color: var(--brand-deep); font-weight: 900; }
.form-more .grid-3 { margin-top: 12px; }
.daily-result-card { background: linear-gradient(180deg, #fff 0%, #fbf7f8 100%); }
.daily-result-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.daily-result-list div {
  min-height: 102px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
  display: grid;
  align-content: center;
  gap: 5px;
}
.daily-result-list div.warn { border-color: rgba(217,119,6,.25); background: #fff8ea; }
.daily-result-list b { color: var(--muted); font-size: 12px; line-height: 1.2; }
.daily-result-list strong { color: var(--ink); font-size: 24px; line-height: 1.05; }
.daily-result-list span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.producer-finder-card { display: grid; gap: 10px; }
.producer-finder-card .toolbar { margin: 0; }
.quick-producer-list { display: grid; gap: 8px; }
.quick-producer-list button {
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}
.quick-producer-list strong { display: block; font-size: 15px; line-height: 1.2; }
.quick-producer-list span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.daily-chart-card, .daily-guide-card { min-height: 100%; }
.accounting-intro-panel .sk-section-note { margin: 0; }
.accounting-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 14px;
}
.accounting-focus-grid .simple-form-card,
.accounting-focus-grid .daily-result-card {
  min-height: 100%;
}
.producer-proof-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 14px;
}
.producer-proof-card {
  background: linear-gradient(135deg, #ffffff 0%, #fbf3f4 72%, #fff8ec 100%);
}
.producer-proof-identity {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.producer-proof-identity span,
.formula-stack span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  padding: 11px 12px;
  display: grid;
  gap: 4px;
}
.producer-proof-identity b,
.formula-stack b {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}
.producer-proof-identity span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  min-width: 0;
}
.producer-proof-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.producer-proof-summary div {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 5px;
}
.producer-proof-summary div.warn { border-color: rgba(217,119,6,.3); background: #fff8ea; }
.producer-proof-summary b { color: var(--muted); font-size: 12px; line-height: 1.2; }
.producer-proof-summary strong { color: var(--ink); font-size: 21px; line-height: 1.08; }
.producer-proof-summary span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.producer-formula-card {
  background: linear-gradient(160deg, #21171d 0%, #35111b 72%, #7f1d1d 100%);
  color: #fff8fa;
}
.producer-formula-card .muted,
.producer-formula-card h2,
.producer-formula-card .status,
.producer-formula-card .formula-stack b,
.producer-formula-card .formula-stack strong {
  color: #fff8fa;
}
.formula-stack {
  display: grid;
  gap: 8px;
}
.formula-stack span {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.13);
}
.formula-stack strong {
  font-size: 18px;
  line-height: 1.15;
}
.formula-stack .formula-total {
  background: rgba(225,29,72,.22);
  border-color: rgba(255,255,255,.22);
}
.producer-proof-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.producer-ledger-proof {
  grid-column: 1 / -1;
}
.proof-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.proof-mini-grid h4 {
  margin: 0 0 8px;
  font-size: 14px;
}
.compact-formula {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.settlement-focus-panel .panel-head {
  align-items: flex-start;
}
.settlement-focus-panel .panel-head p,
.payment-guide .panel-head p {
  margin: 6px 0 0;
  max-width: 720px;
}
.settlement-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.settlement-guide-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf8f8;
  padding: 12px;
  display: grid;
  gap: 6px;
}
.settlement-guide-grid b {
  color: var(--brand);
  font-size: 12px;
  text-transform: uppercase;
  line-height: 1.2;
}
.settlement-guide-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-soft); padding: 16px; min-width: 0; }
article.panel.producer-formula-card {
  background: linear-gradient(160deg, #21171d 0%, #35111b 72%, #7f1d1d 100%);
  color: #fff8fa;
  border-color: rgba(255,255,255,.08);
}
article.panel.producer-formula-card .muted,
article.panel.producer-formula-card h2,
article.panel.producer-formula-card .status,
article.panel.producer-formula-card .formula-stack b,
article.panel.producer-formula-card .formula-stack strong {
  color: #fff8fa;
}
article.panel.producer-formula-card .formula-stack span {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}
article.panel.producer-formula-card .formula-stack .formula-total {
  background: rgba(225,29,72,.28);
  border-color: rgba(255,255,255,.26);
}
.compact-panel { padding: 12px; }
.command-panel { border-top: 4px solid var(--brand); }
.visual-panel { background: linear-gradient(180deg, #ffffff 0%, #fbf7f8 100%); }
.accent-panel { background: linear-gradient(160deg, var(--brand-deep) 0%, #5b2030 62%, var(--brand) 100%); color: #fff8fa; border-color: var(--brand-deep); }
.accent-panel h2, .accent-panel .timeline li { color: #f7fbfc; }
.accent-panel .timeline li { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.workbench-panel { padding-top: 14px; }
.profile-hero { display: flex; justify-content: space-between; align-items: center; gap: 18px; background: linear-gradient(135deg, #ffffff 0%, #fbf1f3 72%, #fff7e8 100%); min-height: 150px; }
.profile-hero h2 { font-size: 28px; margin-bottom: 6px; }
.profile-hero p { max-width: 680px; color: var(--muted); margin: 0; }
.receipt-preview { background: #fff; border: 1px dashed #8aa0ad; border-radius: 8px; padding: 18px; display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow-soft); font-family: "Courier New", monospace; }
.receipt-preview strong { font-size: 20px; }
.receipt-preview b { font-size: 24px; }
.panel h2 { margin: 0 0 12px; font-size: 18px; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.command-center .panel { min-height: 182px; }
.big-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.big-action { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-height: 96px; padding: 16px 18px; text-align: left; color: var(--ink); box-shadow: var(--shadow-soft); }
.professional-actions .big-action { background: linear-gradient(135deg, #fff 0%, #fbf1f3 72%, #fffaf0 100%); }
.big-action strong { display: block; font-size: 19px; line-height: 1.2; margin-bottom: 7px; }
.big-action span { color: var(--muted); font-size: 13px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar input, .toolbar select { border: 1px solid var(--line); border-radius: 7px; padding: 9px 10px; min-width: 180px; }
.professional-filter { margin-bottom: 0; }
.professional-filter input { min-width: min(360px, 100%); flex: 1; }
.table-wrap { overflow: auto; max-height: 520px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.compact-table-wrap { max-height: 420px; }
.table-limit-note {
  margin: 10px 0 0;
  border: 1px solid rgba(159,18,57,.14);
  border-radius: 7px;
  background: #fbf3f4;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  padding: 10px 12px;
}
table { width: 100%; border-collapse: collapse; min-width: 760px; background: #fff; }
th, td { text-align: left; border-bottom: 1px solid #e7edf1; padding: 11px 12px; font-size: 14px; vertical-align: middle; }
th { position: sticky; top: 0; z-index: 1; color: #4f6170; font-size: 12px; text-transform: uppercase; background: #f3f7f7; letter-spacing: 0; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbf7f8; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions button { padding: 7px 9px; font-size: 12px; }

.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 9px; font-size: 12px; font-weight: 800; background: var(--ok-bg); color: var(--ok); }
.status.warn { background: var(--warning-bg); color: var(--warning); }
.status.bad { background: #ffe8ec; color: var(--danger); }
.status.info, .status.demo { background: var(--info-bg); color: var(--info); }
.status.offline, .status.audit { background: var(--offline-bg); color: var(--offline); }
.company-overview { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.company-toolbar select { min-width: 170px; }
.companies-panel { display: grid; gap: 12px; }
.company-list { display: grid; gap: 12px; }
.company-card { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #fff 0%, #f8fbfc 100%); box-shadow: var(--shadow-soft); padding: 15px; }
.company-card.demo-company { border-color: rgba(33, 77, 143, .24); background: linear-gradient(180deg, #fff 0%, #f4f7ff 100%); }
.company-filter-panel { background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%); }
.company-card-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.company-title { display: grid; gap: 4px; min-width: 0; }
.company-title strong { color: var(--ink); font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.company-title span { color: var(--muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.company-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.company-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.company-card-grid div { display: grid; align-content: start; gap: 5px; min-width: 0; border: 1px solid #e7edf1; border-radius: 7px; background: rgba(255,255,255,.74); padding: 10px; }
.company-card-grid b { color: var(--muted); font-size: 11px; line-height: 1.2; text-transform: uppercase; }
.company-card-grid span { color: var(--ink); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.company-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #e7edf1; padding-top: 12px; }
.company-note { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.company-note span { border: 1px solid var(--line); border-radius: 999px; background: #fbfcfd; color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.2; padding: 6px 8px; }
.success { color: var(--ok); font-weight: 850; }
.danger-text { color: var(--danger); font-weight: 850; }
.muted { color: var(--muted); }

.chart { height: 180px; display: flex; align-items: end; gap: 10px; padding: 14px; background: linear-gradient(180deg, #fdfcfc, #f3eeee); border-radius: 8px; border: 1px solid var(--line); }
.bar { flex: 1; min-width: 18px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--brand), #fb7185); position: relative; }
.bar span { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--muted); }
.volume-chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); align-items: end; gap: 9px; min-height: 250px; padding: 18px 12px 12px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #fdfcfc, #f3eeee); }
.volume-bar { display: grid; grid-template-rows: auto minmax(128px, 1fr) auto; align-items: end; gap: 8px; min-width: 0; height: 100%; text-align: center; }
.volume-bar b { color: var(--brand-deep); font-size: 11px; line-height: 1.25; }
.volume-bar i { align-self: end; display: block; min-height: 12px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--brand), var(--accent)); box-shadow: 0 10px 20px rgba(159,18,57,.16); }
.volume-bar span { color: var(--muted); font-size: 11px; font-style: normal; }
.timeline { display: grid; gap: 10px; }
.timeline li { list-style: none; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; }
.state-card { border: 1px solid var(--line); border-radius: 8px; background: #fbfcfd; padding: 18px; color: var(--muted); }
.state-card strong { color: var(--ink); display: block; margin-bottom: 5px; }
.state-card.bad { border-color: #ffd0d8; background: #fff4f6; color: var(--danger); }
.state-card.success { border-color: rgba(29, 78, 216, .20); background: var(--ok-bg); color: var(--ok); }
.state-card.info, .state-card.empty { border-color: rgba(159, 18, 57, .14); background: #fbf3f4; color: var(--brand-deep); }
.state-card.offline { border-color: rgba(75, 88, 104, .22); background: var(--offline-bg); color: var(--offline); }
.compact-error { max-width: 720px; }
.compact-error details { margin-top: 10px; color: #6d3240; }
.compact-error code { display: block; white-space: pre-wrap; margin-top: 6px; padding: 10px; border-radius: 6px; background: rgba(255,255,255,.72); }
.state-card.forbidden { border-color: #ffe2aa; background: #fff8e8; color: #7a5200; }
.state-card.loading { color: var(--brand-2); position: relative; }
.state-card.loading::after { content: ""; display: block; width: 100%; height: 3px; margin-top: 12px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); animation: pulse 1.1s infinite alternate; }
.simple-report-console { border-top: 4px solid var(--brand); }
.report-result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.report-result { min-height: 116px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(180deg, #fff 0%, #fbf8f8 100%); padding: 15px; display: grid; align-content: center; gap: 7px; }
.report-result.warn { background: linear-gradient(180deg, #fff 0%, #fff7e8 100%); border-color: rgba(217,119,6,.24); }
.report-result b { color: var(--muted); font-size: 12px; text-transform: uppercase; line-height: 1.2; }
.report-result strong { color: var(--ink); font-size: 28px; line-height: 1.05; }
.report-result span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.simple-report-card { min-height: 248px; display: grid; align-content: space-between; gap: 12px; }
.simple-report-card .timeline li { min-height: 34px; display: flex; align-items: center; }
.report-preview-panel { border-top: 4px solid var(--accent); }
.report-export-actions { align-items: center; }
.report-export-actions button { min-width: 96px; }
.toolbar-export-actions { margin-left: auto; }
.report-file-note {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  border: 1px solid rgba(75, 88, 104, .18);
  border-radius: 999px;
  background: #f8fbfc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  padding: 6px 9px;
}
.report-action-note {
  margin: 0;
  border-top: 1px solid #e7edf1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  padding-top: 10px;
}
@keyframes pulse { from { opacity: .35; } to { opacity: 1; } }
.empty-state { border: 1px dashed var(--line); border-radius: var(--radius-card); background: #fbfcfd; color: var(--muted); padding: 18px; display: grid; gap: 6px; }
.empty-state strong { color: var(--ink); }
.action-hint { color: var(--muted); font-size: 13px; line-height: 1.45; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; }
.steps span { background: #e8eef2; border: 1px solid var(--line); border-radius: 7px; padding: 9px 11px; font-weight: 800; color: #2f4654; }
.payment-steps span {
  flex: 1 1 190px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
}

.toast { position: fixed; right: 18px; bottom: 18px; background: var(--brand-deep); color: #fff; padding: 12px 14px; border-radius: 8px; box-shadow: var(--shadow); z-index: 20; max-width: 360px; }
.mobile-warning { display: none; }

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: auto;
  padding: 18px;
  background: rgba(5, 18, 36, .54);
  backdrop-filter: blur(5px);
}
.detail-drawer {
  position: relative;
  width: min(880px, calc(100vw - 36px));
  min-height: auto;
  max-height: calc(100vh - 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 14px;
}
.record-dialog { grid-template-columns: 1fr; }
.record-dialog .drawer-head { grid-column: 1 / -1; }
.edit-dialog { width: min(760px, 100%); max-height: calc(100vh - 44px); overflow: auto; display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow); padding: 18px; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding-top: 4px; }
.detail-drawer section { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fbf8f8; }
.detail-drawer h3 { margin: 0 0 10px; font-size: 13px; color: var(--muted); text-transform: uppercase; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.drawer-head strong { display: block; font-size: 22px; color: var(--ink); }
.drawer-head span { color: var(--muted); font-size: 13px; }
.detail-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.detail-nav span { flex: none; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 900; padding: 7px 10px; }
.detail-nav span:first-child { background: var(--brand); border-color: var(--brand); color: #fff; }
.drawer-primary-section { background: linear-gradient(180deg, #fff 0%, #fbf1f3 100%) !important; border-color: rgba(159,18,57,.16) !important; }
.detail-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.detail-stat-grid article { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; display: grid; gap: 6px; }
.detail-stat-grid b { color: var(--muted); font-size: 12px; line-height: 1.2; }
.detail-stat-grid strong { color: var(--ink); font-size: 20px; line-height: 1.1; }
.technical-detail { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; }
.technical-detail summary { cursor: pointer; color: var(--muted); font-weight: 900; }
.technical-detail .timeline { margin-top: 10px; }
.producer-account-sheet {
  width: min(960px, calc(100vw - 36px));
  grid-template-columns: 1fr;
  align-content: start;
}
.producer-account-sheet .drawer-head,
.producer-account-sheet .account-ledger {
  grid-column: 1 / -1;
}
.producer-account-sheet .account-ledger table {
  min-width: 640px;
}

@media (max-width: 980px) {
  .login-wrap-modern { grid-template-columns: 1fr; place-items: center; }
  .login-guide-panel { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { gap: 10px; padding: 14px; position: static; min-width: 0; overflow: hidden; }
  .brand { align-items: center; display: grid; gap: 2px 10px; grid-template-columns: 40px minmax(0, 1fr); min-width: 0; padding: 4px 2px 12px; }
  .brand .brand-logo { grid-row: span 3; margin: 0; }
  .brand strong { font-size: 18px; overflow-wrap: anywhere; }
  .brand span { overflow-wrap: anywhere; }
  .brand em { justify-self: start; margin-top: 4px; }
  .nav-list { display: flex; gap: 6px; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; padding-bottom: 2px; }
  .nav-item { flex: none; min-width: max-content; width: auto; }
  .nav-item:hover, .nav-item.active { box-shadow: inset 0 -3px 0 var(--accent); }
  .nav-more { padding-top: 6px; }
  .priority-strip, .metric-grid, .grid-2, .grid-3, .big-actions, .company-overview, .company-card-grid, .calc-proof-grid, .owner-overview-strip, .dashboard-simple-grid, .next-work-list, .report-result-grid, .daily-workflow-grid, .daily-action-nav, .simple-form-grid, .daily-result-list, .accounting-focus-grid, .producer-proof-shell, .producer-proof-identity, .producer-proof-summary, .producer-proof-tables, .proof-mini-grid, .compact-formula, .settlement-guide-grid { grid-template-columns: 1fr; }
  .sk-command-strip, .sk-guidance-grid, .flow-step-grid { grid-template-columns: 1fr; }
  .daily-action-nav button { min-height: 68px; }
  .simple-form-card .panel-head { align-items: stretch; flex-direction: column; }
  .primary-large { width: 100%; }
  .company-card-main, .company-card-footer { align-items: stretch; flex-direction: column; }
  .company-badges { justify-content: flex-start; }
  .company-toolbar input, .company-toolbar select { min-width: 100%; }
  .dashboard-hero { grid-template-columns: 1fr; padding: 18px; }
  .dashboard-hero aside { min-height: 160px; }
  .dashboard-hero h1 { font-size: 34px; }
  .login-proof { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .workspace-band { align-items: stretch; flex-direction: column; }
  .subnav-more div { left: 0; right: auto; width: min(100%, calc(100vw - 28px)); }
  .dialog-backdrop { align-items: start; padding: 12px; }
  .detail-drawer, .edit-dialog { width: 100%; min-height: auto; max-height: calc(100vh - 24px); border-radius: 8px; }
  .record-dialog { grid-template-columns: 1fr; }
  .record-dialog .drawer-head { grid-column: auto; }
  .producer-account-sheet { grid-template-columns: 1fr; }
  .producer-account-sheet .drawer-head,
  .producer-account-sheet .account-ledger { grid-column: auto; }
  .public-header { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .public-menu-button { display: inline-flex; margin-left: auto; }
  .public-nav { display: none; width: 100%; align-items: stretch; flex-direction: column; }
  .public-nav.open { display: flex; }
  .public-login-menu div { position: static; width: 100%; box-shadow: none; margin-top: 6px; }
  .public-brand img { max-width: 210px; }
  .public-hero, .public-audience, .public-problem, .public-footer { grid-template-columns: 1fr; }
  .public-hero { min-height: auto; padding-top: 34px; }
  .public-hero-copy h1, .public-page-hero h1 { font-size: 38px; }
  .public-hero-copy p, .public-page-hero p { font-size: 16px; }
  .mock-grid, .public-feature-grid, .public-contact-grid, .public-login-grid, .request-form { grid-template-columns: 1fr; }
  .login-entry-list { grid-template-columns: 1fr; }
  .public-cta { align-items: flex-start; flex-direction: column; }
  .public-footer { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  button:hover, .public-login-card:hover { transform: none; }
}
