/* Renk jetonları CFO tasarımı ile aynı (2026-11-23): sayfa/kart
   arka planları (--canvas/--surface), çizgiler (--line) ve yeşil
   ailesi (--green/--green-dark/--green-pale) CFO :root değerleridir
   (açık: canvas #f8f8f8, surface #fff; koyu: canvas #0f1512,
   surface #171f1a). Giriş ekranlarıyla eşitlenen marka/slogan
   (2026-11-18) aynen durur. */
:root {
  color-scheme: light;
  --palette-forest: #2f7659;
  --palette-green: #098e4d;
  --palette-sage: #747474;
  --palette-mist: #D4AF37;
  --palette-silver: #dedbd4;
  --ink: #0d0d0e;
  --muted: #747474;
  --line: #ebebeb;
  --canvas: #f8f8f8;
  --surface: #fff;
  --green: #098e4d;
  --green-dark: #0f4f2a;
  --green-pale: #eef7f1;
  --accent-hover: #75c8a7;
  --purple: #098e4d;
  --purple-dark: #2f7659;
  --purple-pale: #e8f3ed;
  font-family: Georgia, "Times New Roman", serif;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --ink: #F5F1E6;
  --muted: #F5F1E6;
  --line: #2d3932;
  --canvas: #0f1512;
  --surface: #171f1a;
  --green: #71c99d;
  --green-dark: #b8e6ca;
  --green-pale: #20382b;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 14px; }
body[data-theme="dark"] { color: #e1ebe6; }
body[data-theme="dark"] .metric-card, body[data-theme="dark"] .content-card, body[data-theme="dark"] .invoice-card, body[data-theme="dark"] .account-list-panel, body[data-theme="dark"] .account-list-details { border-color: #344740; background: #19241f; }
body[data-theme="dark"] .workspace-summary-item, body[data-theme="dark"] .workspace-tax-item { border-color: #344740; background: #202f29; }
body[data-theme="dark"] .workspace-summary-item strong, body[data-theme="dark"] .workspace-tax-item strong, body[data-theme="dark"] .workspace-withholding-item strong { color: #f1f3ee; }
body[data-theme="dark"] .workspace-summary-item span, body[data-theme="dark"] .workspace-tax-item span, body[data-theme="dark"] .workspace-withholding-item { color: #b5c2bb; }
body[data-theme="dark"] .workspace-withholding-item { border-color: #344740; background: #202f29; }
body[data-theme="dark"] .workspace-withholding-item.is-total { border-color: #3e544a; background: #24372f; }
body[data-theme="dark"] .client-context-card, body[data-theme="dark"] .review-summary, body[data-theme="dark"] .account-list-summary { border-color: #344740; background: #202f29; }
body[data-theme="dark"] .sidebar { background: #101a17; border-color: #2d3d37; }
body[data-theme="dark"] .nav-link.active { background: #263c34; }
body[data-theme="dark"] .local-card { border-color: #334b42; background: #1a2d25; }
body[data-theme="dark"] .local-badge, body[data-theme="dark"] .date-chip, body[data-theme="dark"] .search-box { border-color: #344740; background: #19241f; color: #c0d0c8; }
body[data-theme="dark"] .list-field input, body[data-theme="dark"] .list-field select, body[data-theme="dark"] .code-input, body[data-theme="dark"] .search-box input { border-color: #3c5047; background: #121b18; color: #e1ebe6; }
body[data-theme="dark"] th { border-color: #2d3c36; color: #96aaa0; }
body[data-theme="dark"] td { border-color: #293933; color: #b2c1ba; }
body[data-theme="dark"] .line-description strong, body[data-theme="dark"] .line-amounts strong, body[data-theme="dark"] .account-list-panel-head strong { color: #d4e2db; }
body[data-theme="dark"] .account-list-form .list-file-field, body[data-theme="dark"] .list-file-field { border-color: #41584d; background: #1b2b24; }
body[data-theme="dark"] .secondary-button, body[data-theme="dark"] .text-button { border-color: #3e544a; background: #24372f; color: #c7d8cf; }
body[data-theme="dark"] .expense-list-button:not(:disabled) { border-color: #705e3d; background: #403623; color: #f1d7a2; }
body[data-theme="dark"] .drop-zone { border-color: #47675a; background: #1a2b24; }
body[data-theme="dark"] .notice { background: #1b392e; color: #a4d8bd; }
body[data-theme="dark"] .notice.error { background: #402824; color: #ffc1b4; }
body[data-theme="dark"] .invoice-warning { background: #3b3322; color: #eed49d; }
body[data-theme="dark"] .cari-edit-row { background: #202f29; }
body[data-theme="dark"] .review-empty { border-color: #3d5148; }
body[data-theme="dark"] .auth-card { border-color: #344740; background: #19241f; }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 2; display: flex; flex-direction: column; width: 226px; padding: 25px 17px 18px; background: #1c3732; border-right: 1px solid #304a44; }
.brand { display: flex; align-items: center; gap: 11px; padding: 3px 8px 37px; }
.brand-mark { display: block; width: 38px; height: 38px; flex: 0 0 auto; padding: 2px; border: 1px solid #e5e9e7; border-radius: 12px; background: #fff; object-fit: contain; box-shadow: 0 5px 12px #087e7026; }
.brand-name { color: #f3f7f5; font: 800 16px Georgia, "Times New Roman", serif; letter-spacing: -.5px; }
.brand-name span { display: block; margin-top: 1px; color: #a6b9b2; font: 600 10px Georgia, "Times New Roman", serif; letter-spacing: .75px; text-transform: uppercase; }
.workspace-label, .eyebrow { color: #899995; font-size: 12px; font-weight: 700; letter-spacing: 1.1px; }
.workspace-label { color: #9aafa7; }
.workspace-label { padding: 0 11px 12px; }
.nav-list { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; min-height: 38px; gap: 11px; padding: 0 10px; border-radius: 6px; color: #c0cec8; font-size: 11px; font-weight: 550; }
.nav-link.active { color: #edf5f1; background: #2b4c45; }
.nav-icon { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border: 1px solid #59736a; border-radius: 7px; background: #28453e; color: #c0cec8; font-size: 11px; font-weight: 700; text-align: center; }
.active .nav-icon { border-color: #8bb9a7; background: #3b6858; color: #fff; }
.muted-link { opacity: .67; }
.soon { margin-left: auto; color: #9cafaa; font-size: 9px; font-weight: 500; }
.sidebar-spacer { flex: 1; }
.active-client-indicator { margin-bottom: 10px; padding: 11px; border: 1px solid #6b826b; border-radius: 9px; background: #263d2c; color: #f4edcf; font-size: 10px; font-weight: 650; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.active-client-indicator[hidden] { display: none; }
.local-card { display: flex; align-items: flex-start; gap: 9px; padding: 13px 11px; border: 1px solid #36534c; border-radius: 10px; background: #24423c; }
.local-dot { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #34aa7f; box-shadow: 0 0 0 3px #34aa7f1b; }
.local-card strong, .local-card small { display: block; }
.local-card strong { color: #edf4f1; font-size: 11px; }
.local-card small { margin-top: 4px; color: #afc0b9; font-size: 10px; }
.sidebar-footer { padding: 14px 11px 0; color: #9cafaa; font-size: 10px; }
.workspace { min-height: 100vh; margin-left: 226px; }
.dashboard { width: min(100%, 1320px); margin: 0 auto; padding: 30px 38px 20px; }
@media (min-width: 1500px) { .dashboard { padding-top: 38px; } }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 65px; border-bottom: 1px solid var(--line); background: #fff; padding: 0 38px; }
.account-tools { display: flex; align-items: center; gap: 8px; }
.account-identity { display: flex; min-width: 0; flex-direction: column; align-items: flex-end; gap: 2px; }
.topbar-date { max-width: 100%; overflow: hidden; color: #71817c; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.account-tools .theme-toggle-button, .account-tools #logout-button { height: 36px; min-height: 36px; }
.signed-in-user { max-width: 180px; overflow: hidden; color: #50655c; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
body[data-theme="dark"] .signed-in-user { color: #c3d5cc; }
.breadcrumb { color: #85928f; font-size: 11px; }
.breadcrumb span { padding: 0 8px; color: #bac3c1; }
.local-badge { display: flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid #d8e2dd; border-radius: 20px; background: #f7faf8; color: #586b65; font-size: 10px; font-weight: 600; }
.local-badge .local-dot { margin: 0; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; padding: 35px 0 25px; }
.eyebrow { margin: 0 0 10px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font: 800 29px Georgia, "Times New Roman", serif; letter-spacing: -.9px; }
.welcome-copy, .section-copy { margin: 0; color: #71817c; font-size: 12px; line-height: 1.6; }
.date-chip { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #dce5e1; border-radius: 8px; background: #f8faf9; color: #687973; font-size: 11px; }
.calendar-icon { color: var(--green); font-size: 15px; }
.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.metric-card, .content-card { border: 1px solid #dce5e1; border-radius: 12px; background: #f9fbfa; box-shadow: 0 2px 6px #193b3208; }
.metric-card { min-height: 128px; padding: 17px 18px 15px; }
.workspace-metric-card { grid-column: 1 / -1; }
.workspace-invoice-summary { display: grid; gap: 13px; margin-top: 15px; }
.workspace-invoice-summary[hidden] { display: none; }
.workspace-count-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.workspace-summary-item, .workspace-tax-item { display: grid; min-width: 0; gap: 4px; padding: 9px 10px; border: 1px solid #e1e8e4; border-radius: 8px; background: #fff; }
.workspace-summary-item strong { color: #263a34; font-size: 19px; line-height: 1.2; }
.workspace-summary-item span, .workspace-tax-item span { color: #53635c; font-size: 11px; line-height: 1.35; }
.workspace-tax-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.workspace-tax-item strong { color: #344d43; font-size: 15px; font-variant-numeric: tabular-nums; }
.workspace-withholding-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.workspace-withholding-summary[hidden] { display: none; }
.workspace-withholding-item { display: flex; min-width: 220px; flex: 1 1 220px; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid #e1e8e4; border-radius: 8px; background: #f3f7f4; color: #63756d; font-size: 10px; }
.workspace-withholding-item strong { color: #344d43; font-size: 12px; font-variant-numeric: tabular-nums; }
.workspace-withholding-item.is-total { border-color: #9ab9ac; background: #e8f3ec; }
.workspace-withholding-item.is-total > span { color: #40574e; font-weight: 700; }
.workspace-withholding-item.is-total strong { font-size: 13px; }
.workspace-withholding-break { flex-basis: 100%; height: 0; }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; font-size: 15px; }
.metric-icon.teal { color: #168575; background: #e8f6f2; }
.metric-icon.amber { color: #c18529; background: #fbf3e5; }
.metric-icon.violet { color: #8274bb; background: #f0eef9; }
.metric-caption { color: #a1adaa; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.metric-value { margin-top: 10px; font: 800 23px Georgia, "Times New Roman", serif; letter-spacing: -.5px; }
.metric-value-progress.is-processing { display: flex; align-items: center; gap: 7px; letter-spacing: 0; }
.metric-progress-label { font-size: 14px; line-height: 1.25; white-space: nowrap; }
.metric-value-progress .metric-ai-hourglass { flex-basis: 18px; width: 18px; height: 18px; margin-top: 0; }
.metric-label { margin-top: 2px; color: #82918e; font-size: 11px; }
.content-card { margin-bottom: 17px; padding: 21px 22px; }
.section-heading, .files-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.section-heading { margin-bottom: 18px; }
h2 { margin-bottom: 5px; font: 750 20px Georgia, "Times New Roman", serif; letter-spacing: -.45px; }
.step-pill, .count-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #e6eeeb; border-radius: 20px; color: #758581; font-size: 10px; font-weight: 600; }
.step-pill span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #e9f5f1; color: var(--green); font-size: 11px; }
.drop-zone { position: relative; display: flex; min-height: 180px; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border: 1px dashed #a8c2b8; border-radius: 10px; background: #f1f6f3; cursor: pointer; transition: border .15s, background .15s; }
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--green); background: #eaf3ee; }
.upload-icon { display: grid; width: 36px; height: 36px; margin-bottom: 9px; place-items: center; border: 1px solid #d5e2dc; border-radius: 11px; background: #f8fbf9; color: var(--green); font-size: 20px; box-shadow: 0 2px 6px #163e3609; }
.drop-title { font-size: 12px; font-weight: 700; }
.drop-subtitle { margin-top: 3px; color: #899693; font-size: 11px; }
.file-types { margin-top: 13px; color: #a0aaa8; font-size: 9px; }
.file-types i { padding: 0 4px; color: #c4cdca; font-style: normal; }
#file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.upload-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 53px; }
.selection-label { overflow: hidden; color: #687973; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
#selection-label { flex: 1 1 auto; }
#selection-label.is-ready { padding: 9px 12px; border: 1px solid #9dcbb6; border-radius: 8px; background: #e7f5ec; color: #1f684b; font-size: 12px; font-weight: 700; white-space: normal; }
#selection-label.is-error { color: #b74e3e; font-weight: 700; }
body[data-theme="dark"] #selection-label.is-ready { border-color: #477c5e; background: #173b2a; color: #a9e0bb; }
body[data-theme="dark"] #selection-label.is-error { color: #ffb6a9; }
.primary-button { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 13px; border: 0; border-radius: 7px; background: var(--green); color: #fff; cursor: pointer; font: 700 11px Georgia, "Times New Roman", serif; transition: background .15s, opacity .15s; }
.primary-button:hover:not(:disabled) { background: var(--green-dark); }
.primary-button:disabled { cursor: not-allowed; opacity: .45; }
.primary-button span { font-size: 14px; }
.notice { margin-top: 3px; padding: 10px 12px; border-radius: 7px; background: #edf7f2; color: #25755e; font-size: 11px; overflow-wrap: anywhere; }
.notice.error { background: #fff0ed; color: #b74e3e; }
@media (max-width: 760px) { .upload-actions { align-items: stretch; flex-direction: column; padding: 9px 0 12px; } #selection-label.is-ready { line-height: 1.5; } .upload-actions .primary-button { justify-content: center; min-height: 40px; } }
.files-card { padding-bottom: 21px; }
.files-heading { align-items: center; margin-bottom: 14px; }
.count-pill { color: #798885; }
.table-wrap { overflow-x: auto; }
.files-card .table-wrap { max-height: 330px; overflow: auto; overscroll-behavior: contain; }
.files-card .table-wrap th { position: sticky; top: 0; z-index: 1; background: var(--surface); }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 9px; border-top: 1px solid #edf1f0; border-bottom: 1px solid #edf1f0; color: #a1adaa; font-size: 8px; font-weight: 700; letter-spacing: .7px; }
td { padding: 12px 9px; border-bottom: 1px solid #f0f3f2; color: #637370; font-size: 10px; }
th:first-child, td:first-child { padding-left: 5px; }
.file-cell { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.file-name-button { min-width: 0; overflow-wrap: anywhere; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: left; text-decoration: underline; text-decoration-color: #9aa6a3; text-underline-offset: 2px; }
.file-name-button:hover { text-decoration-color: currentColor; }
.file-preview-button { display: inline-flex; height: 28px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 5px; padding: 0 8px; border: 1px solid #9cbaaa; border-radius: 6px; background: #e8eee2; color: var(--palette-forest); cursor: pointer; font: 700 9px Georgia, "Times New Roman", serif; }
.file-preview-button:hover { border-color: var(--palette-green); background: #dce8d4; }
.file-preview-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.file-command-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.file-command-actions .file-preview-button, .file-command-actions .danger-button { height: 28px; min-height: 28px; }
.file-badge { display: grid; width: 27px; height: 29px; place-items: center; border: 1px solid #d9e5df; border-radius: 6px; background: #eff5f1; color: var(--green); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.status-label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 15px; background: #f5f6f6; color: #778480; font-size: 9px; }
.status-label.archive-error { background: #fff0ed; color: #a04e42; }
.status-label::before { width: 5px; height: 5px; border-radius: 50%; background: #a7b2af; content: ''; }
.empty-row td { height: 143px; text-align: center; }
.empty-row td > * { display: block; }
.empty-icon { margin-bottom: 8px; color: #b3c3be; font-size: 21px; }
.empty-row strong { margin-bottom: 4px; color: #637370; font-size: 11px; }
.empty-row span:last-child { color: #9aa6a3; font-size: 10px; }
.invoice-preview-dialog { width: min(1100px, calc(100% - 28px)); max-width: none; max-height: 92vh; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 60px #0005; }
.invoice-preview-dialog::backdrop { background: #101a17a8; }
.invoice-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.invoice-preview-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.invoice-preview-actions .text-button { display: inline-flex; align-items: center; gap: 7px; }
.invoice-preview-actions svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.invoice-preview-heading h2 { min-width: 0; overflow: hidden; margin: 0; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.invoice-preview-dialog iframe { display: block; width: 100%; height: min(78vh, 900px); border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.page-footer { display: flex; justify-content: space-between; padding: 3px 2px; color: #a0adaa; font-size: 9px; }

.auth-screen { display: grid; min-height: 100vh; place-items: center; padding: 26px; background: radial-gradient(circle at 50% 0%, #dceae3, transparent 48%), var(--canvas); }
.auth-card { width: min(720px, 100%); padding: 28px; border: 1px solid #dce5e1; border-radius: 16px; background: #fbfcfb; box-shadow: 0 20px 60px #193b3212; }
.auth-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-card-heading > div:nth-child(2) { display: grid; gap: 3px; }
.auth-card-heading strong { color: #263a34; font-size: 16px; }
.auth-card-heading span { color: #82918b; font-size: 10px; }
.auth-theme-toggle { margin-left: auto; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 22px; padding: 4px; border-radius: 9px; background: #edf3ef; }
.auth-tab { flex: 1; min-height: 37px; border: 0; border-radius: 7px; background: transparent; color: #71817a; cursor: pointer; font: 700 11px Georgia, "Times New Roman", serif; }
.auth-tab.active { background: #fff; color: #276e59; box-shadow: 0 1px 4px #183d300e; }
.auth-form { display: grid; gap: 13px; }
.auth-form h1 { margin: 0; font-size: 25px; }
.auth-form > p { margin: -8px 0 4px; color: #7c8b85; font-size: 11px; }
.auth-form > .primary-button { justify-content: center; min-height: 42px; margin-top: 4px; }
.auth-text-link { justify-self: center; padding: 3px 6px; border: 0; background: transparent; color: #276e59; cursor: pointer; font: 12px Georgia, "Times New Roman", serif; text-decoration: underline; text-underline-offset: 3px; }
.auth-text-link:hover { color: #173326; }
.auth-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.password-input-wrap { position: relative; display: block; }
.password-input-wrap input { width: 100%; padding-right: 42px; }
.password-toggle { position: absolute; top: 50%; right: 6px; display: grid; width: 30px; height: 30px; padding: 0; transform: translateY(-50%); place-items: center; border: 0; border-radius: 5px; background: transparent; color: #71817a; cursor: pointer; }
.password-toggle:hover { background: #eef1ed; color: var(--palette-green); }
.password-eye { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-terms-consent { display: flex; grid-column: 1 / -1; align-items: flex-start; gap: 9px; color: var(--ink); font-size: 11px; line-height: 1.5; }
.auth-terms-consent input { width: 16px; height: 16px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--palette-green); }
.auth-terms-consent a { color: var(--palette-green); text-decoration: underline; text-underline-offset: 2px; }
.auth-form[hidden], .auth-screen[hidden], .app-shell[hidden] { display: none !important; }
.auth-screen > .auth-card > .notice { margin-top: 14px; }
body[data-theme="dark"] .auth-card-heading strong { color: #e1ebe6; }
body[data-theme="dark"] .auth-tabs { background: #202f29; }
body[data-theme="dark"] .auth-tab.active { background: #30473d; color: #a8dbc2; }
body[data-theme="dark"] .auth-screen { background: radial-gradient(circle at 50% 0%, #20372d, transparent 48%), var(--canvas); }
body[data-theme="dark"] .password-toggle { color: #c6c8bd; }
body[data-theme="dark"] .password-toggle:hover { background: #30372f; color: var(--palette-mist); }
body[data-theme="dark"] .auth-terms-consent a { color: var(--palette-mist); }
body[data-theme="dark"] .auth-text-link { color: #9ecfba; }
body[data-theme="dark"] .auth-text-link:hover { color: #c7ead8; }

.list-field { display: grid; gap: 6px; color: #63756d; font-size: 10px; font-weight: 700; }
.list-field input, .list-field select { min-height: 38px; padding: 7px 10px; border: 1px solid #d4dfd9; border-radius: 7px; outline: 0; background: #fff; color: #263a34; font: 12px Georgia, "Times New Roman", serif; }
.list-field input:focus, .list-field select:focus { border-color: #619783; box-shadow: 0 0 0 2px #3182671a; }
.client-context-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); align-items: center; column-gap: 24px; row-gap: 8px; border-color: #cbdad3; background: #f4f8f5; }
.client-context-copy .eyebrow { margin-bottom: 6px; }
.client-context-copy h2 { margin-bottom: 4px; }
.client-selection-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.client-selection-controls button { min-height: 38px; }
.new-client-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.new-client-fields[hidden] { display: none; }
.new-client-fields .list-field[hidden] { display: none; }
#client-sector-field { grid-column: 1 / -1; }
.client-selection-status { grid-column: 1 / -1; margin: 0; color: #74827d; font-size: 10px; }
.client-selection-status.ready { color: #25755e; font-weight: 700; }
.client-selection-status.error { color: #b74e3e; }
.file-actions { display: flex; justify-content: flex-end; margin: -4px 0 8px; }
.danger-button { min-height: 32px; padding: 0 11px; border: 1px solid #e8c9c3; border-radius: 7px; background: #fff6f4; color: #a04e42; cursor: pointer; font: 700 10px Georgia, "Times New Roman", serif; }
.danger-button:hover:not(:disabled) { border-color: #d9a69c; background: #fce9e5; }
.danger-button:disabled { opacity: .45; cursor: not-allowed; }
.danger-button.small { min-height: 27px; padding: 0 8px; }
.list-file-field { display: grid; min-height: 38px; align-content: center; gap: 4px; padding: 6px 10px; border: 1px dashed #b7cbc1; border-radius: 7px; background: #f4f8f5; cursor: pointer; }
.list-file-label { color: #63756d; font-size: 10px; font-weight: 700; }
.list-file-field input { display: none; }
.list-file-field .selection-label { font-size: 10px; }
.account-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.account-list-panel { min-width: 0; padding: 14px; border: 1px solid #e0e8e3; border-radius: 9px; background: #fbfcfb; }
.account-list-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.account-list-panel-head strong { color: #334940; font-size: 14px; }
.account-list-panel-head span { color: #82918b; font-size: 9px; }
.account-list-panel > p { min-height: 30px; margin: 6px 0 12px; color: #87948f; font-size: 9px; line-height: 1.5; }
.account-list-form { display: grid; grid-template-columns: minmax(150px, 1fr) auto; align-items: end; gap: 9px; }
.account-list-form .list-file-field { grid-column: auto; }
.account-list-form .primary-button, .account-list-form .secondary-button { min-height: 38px; justify-content: center; white-space: nowrap; }
.expense-list-button:not(:disabled) { border-color: #e4d7b7; background: #f8f2e6; color: #806126; }
.account-list-summary { margin-top: 11px; padding: 9px 10px; border: 1px solid #e1e8e4; border-radius: 7px; background: #f3f7f4; color: #65756f; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.account-list-preview { margin-top: 8px; }
.account-list-details { min-width: 0; padding: 9px 11px; border: 1px solid #e3eae6; border-radius: 7px; background: #fbfcfb; }
.account-list-details summary { color: #46675b; cursor: pointer; font-size: 10px; font-weight: 700; }
.account-list-details ul { max-height: 190px; overflow: auto; margin: 8px 0 0; padding-left: 17px; color: #71817c; font-size: 9px; line-height: 1.7; }
.account-list-rest { color: #8b9893; font-style: italic; }
.account-source { color: #3c816b !important; font-size: 8px !important; }
.account-reference { display: block; margin-top: 5px; color: #527367; font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; }
.account-suggestion-button { display: block; margin-top: 5px; padding: 0; border: 0; background: transparent; color: #236e57; font: 700 9px Georgia, "Times New Roman", serif; text-align: left; cursor: pointer; }
.ai-review-button:not(:disabled) { border-color: #cfc4e9; background: #f4f0fb; color: #655090; }
.ai-review-button:hover:not(:disabled) { border-color: #aa9aca; background: #eee8f8; }
.ai-review-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.ai-review-button .button-icon { display: block; flex: 0 0 auto; }
.ai-review-help { margin: -6px 0 12px; color: #899693; font-size: 9px; line-height: 1.5; text-align: right; }
.ai-quota-status { margin: -7px 0 12px; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.5; text-align: right; text-decoration: none; }
.ai-quota-status.is-exhausted { color: #9b443a; font-weight: 600; }
.ai-quota-inline-link { color: var(--green-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.ai-quota-inline-link:hover, .ai-quota-inline-link:focus-visible { color: #1f5d43; }
#invoice-review .ai-quota-inline-link { color: #c62828; }
#invoice-review .ai-quota-inline-link:hover, #invoice-review .ai-quota-inline-link:focus-visible { color: #a4161a; }
.ai-quota-request-panel { margin: 10px 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.ai-quota-request-panel[hidden] { display: none; }
.ai-quota-request-panel [hidden] { display: none !important; }
.ai-quota-request-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ai-quota-request-heading h3 { margin: 0 0 5px; font-size: 14px; }
.ai-quota-request-heading p { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.ai-quota-request-state { margin: 5px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); color: var(--ink); font-size: 12px; line-height: 1.55; }
.ai-quota-request-state[hidden], .ai-quota-payment-step[hidden], .ai-quota-eft-panel[hidden] { display: none; }
.ai-quota-request-refresh { min-height: 32px; margin: 0 0 12px; padding: 0 11px; font-size: 11px; }
.ai-quota-request-refresh[hidden] { display: none; }
.ai-quota-quote-summary { margin: 6px 0 12px; padding: 11px 13px; border-left: 3px solid #9ecfba; border-radius: 6px; background: var(--canvas); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.55; }
.ai-quota-request-close { min-height: 30px; padding: 0 9px; font-size: 10px; }
.ai-quota-package-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 6px 0 12px; }
.ai-quota-package-list[hidden] { display: none; }
.ai-quota-package-card { display: grid; gap: 9px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.ai-quota-package-amount { color: var(--ink); font-size: 14px; font-weight: 600; }
.ai-quota-package-price { color: var(--ink); font-size: 17px; font-weight: 600; }
.ai-quota-package-select { min-height: 34px; padding-inline: 11px; font-size: 11px; }
.ai-quota-package-empty { margin: 8px 0 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); color: var(--muted); font-size: 12px; line-height: 1.55; }
.ai-quota-package-empty[hidden] { display: none; }
.ai-quota-package-back { min-height: 32px; margin: 0 0 8px; padding: 0 11px; font-size: 11px; }
.ai-quota-payment-step > h4 { margin: 15px 0 9px; font-size: 13px; }
.ai-quota-method-grid { margin-bottom: 12px; }
.ai-quota-method-grid .subscription-channel-card:disabled { opacity: .55; cursor: not-allowed; }
.ai-quota-payment-step .subscription-method-panel { margin-top: 8px; }
.ai-quota-bank-details { margin: 4px 0 14px; }
.ai-quota-payment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 10px; }
.ai-quota-payment-form label { display: grid; gap: 5px; color: var(--ink); font-size: 11px; }
.ai-quota-payment-form input { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); color: var(--ink); font: inherit; font-size: 12px; }
.ai-quota-payment-form button { grid-column: 1 / -1; justify-self: start; min-height: 38px; padding: 0 14px; }
.ai-quota-payment-form button:disabled { opacity: .55; cursor: not-allowed; }
.ai-quota-request-panel > .subscription-payment-notice { margin-bottom: 0; }
.ai-account-suggestion-button { display: block; margin-top: 5px; padding: 0; border: 0; background: transparent; color: #655090; font: 700 9px/1.5 Georgia, "Times New Roman", serif; text-align: left; cursor: pointer; }
.ai-account-suggestion-button[hidden] { display: none; }
body[data-theme="dark"] .ai-review-button:not(:disabled) { border-color: #5b4d76; background: #302740; color: #d6c5f4; }
body[data-theme="dark"] .ai-review-help { color: #a0afa8; }
body[data-theme="dark"] .ai-quota-status { color: #c0cdc5; }
body[data-theme="dark"] .ai-quota-status.is-exhausted { color: #ffb9ac; font-weight: 600; }
body[data-theme="dark"] .ai-quota-inline-link { color: #a9dfc4; }
body[data-theme="dark"] .ai-quota-inline-link:hover, body[data-theme="dark"] .ai-quota-inline-link:focus-visible { color: #d1f4df; }
body[data-theme="dark"] .ai-quota-request-panel { border-color: var(--line); background: var(--surface); }
body[data-theme="dark"] .ai-quota-request-heading p { color: #c0cdc5; }
body[data-theme="dark"] .ai-quota-request-state, body[data-theme="dark"] .ai-quota-quote-summary { border-color: #45574c; background: #10251a; color: #e1ebe5; }
body[data-theme="dark"] .ai-quota-package-card, body[data-theme="dark"] .ai-quota-package-empty { border-color: #45574c; background: #10251a; color: #e1ebe5; }
body[data-theme="dark"] .ai-quota-package-amount, body[data-theme="dark"] .ai-quota-package-price { color: #e1ebe5; }
body[data-theme="dark"] .ai-quota-payment-form label { color: #e1ebe5; }
body[data-theme="dark"] .ai-quota-payment-form input { border-color: #45574c; background: #10251a; color: #e1ebe5; }
body[data-theme="dark"] .ai-account-suggestion-button { color: #cfb8f5; }

@media (max-width: 700px) {
  .ai-quota-payment-form { grid-template-columns: 1fr; }
  .ai-quota-payment-form button { grid-column: auto; }
  .ai-quota-request-heading { flex-direction: column; }
  .ai-quota-request-close { align-self: flex-end; margin-top: -7px; }
}

@media (max-width: 1050px) { .sidebar { width: 220px; } .workspace { margin-left: 220px; } .topbar, .dashboard { padding-left: 25px; padding-right: 25px; } }
@media (max-width: 760px) { .app-shell { display: flex; flex-wrap: wrap; } .sidebar { position: static; width: auto; height: auto; padding: 0 0 0 16px; border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: row; align-items: center; gap: 8px; } .brand { padding: 0; } .brand-name span { display: none; } .workspace-label, .nav-list, .sidebar-spacer, .active-client-indicator, .local-card, .sidebar-footer { display: none; } .support-feedback-open { display: inline-flex; width: auto; padding: 0; font-size: 8px; white-space: nowrap; } .support-feedback-open::before { display: none; } .workspace { display: contents; } .dashboard { flex: 1 1 100%; padding: 23px 16px 16px; } .topbar { height: 48px; padding: 0 16px 0 8px; flex: 1 1 0; min-width: 0; } .breadcrumb { min-width: 0; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; } .breadcrumb span, .breadcrumb b { display: none; } .account-tools { gap: 5px; } .account-identity { max-width: none; flex-direction: row; align-items: center; gap: 6px; } .topbar-date { font-size: 8px; } .topbar-time-text { display: none; } .profile-menu-trigger .signed-in-user, .profile-menu-trigger .profile-menu-chevron { display: none; } .account-tools .theme-toggle-button { display: none; } .welcome-row { align-items: flex-start; flex-direction: column; padding: 25px 0 19px; } h1 { font-size: 21px; } .welcome-copy { max-width: 420px; } .metric-grid { grid-template-columns: 1fr; gap: 8px; } .workspace-metric-card { grid-column: auto; } .workspace-count-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .workspace-tax-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .metric-card { min-height: 111px; padding: 12px; } .metric-caption { max-width: 86px; text-align: right; line-height: 1.4; } .metric-value { font-size: 20px; } .metric-label { font-size: 10px; } .content-card { padding: 17px 14px; } .section-heading { align-items: flex-start; } .step-pill { font-size: 0; } .step-pill span { font-size: 9px; } .drop-zone { min-height: 165px; padding: 12px; text-align: center; } .file-types { max-width: 240px; line-height: 1.6; } th, td { white-space: nowrap; } }

.review-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin: -3px 0 13px; }
.unregistered-suppliers-button { display: inline-flex; align-items: center; gap: 7px; }
.unregistered-suppliers-button svg { display: block; flex: 0 0 15px; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.secondary-button, .text-button { min-height: 34px; padding: 0 13px; border: 1px solid #d5e1db; border-radius: 7px; background: #f4f8f5; color: #3e6056; cursor: pointer; font: 700 11px Georgia, "Times New Roman", serif; }
.secondary-button:hover:not(:disabled), .text-button:hover:not(:disabled) { border-color: #9ab9ac; background: #edf4f0; }
.secondary-button:disabled, .text-button:disabled { cursor: not-allowed; opacity: .5; }
.review-summary { display: grid; gap: 5px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #e1e8e4; border-radius: 8px; background: #f3f7f4; color: #65756f; font-size: 11px; }
.review-summary-totals { color: #40574e; font-size: 10px; font-weight: 600; line-height: 1.5; }
body[data-theme="dark"] .review-summary { color: #F5F1E6; }
body[data-theme="dark"] .review-summary-totals { color: #F5F1E6; }
.review-toolbar { display: grid; gap: 10px; margin-bottom: 12px; }
.review-search-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.review-search-row > .search-box { width: min(100%, 200px); }
.review-search-row > button { flex: 0 0 auto; white-space: nowrap; }
.review-toolbar-controls > .toolbar-push-right { margin-left: auto; }
.review-toolbar-controls { display: flex; min-width: 0; align-items: center; gap: 10px; overflow-x: auto; padding: 1px 1px 5px; }
.temporary-cari-fill-control { display: flex; align-items: center; gap: 7px; }
.review-toolbar-controls > button { flex: 0 0 auto; white-space: nowrap; }
.temporary-cari-fill-control .code-input { width: 145px; }
.withholding-account-fill-control { padding: 0 10px; border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
.cash-account-code-control { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 0 10px; }
.cash-account-code-control label { color: var(--ink-soft); font-size: 10px; font-weight: 700; white-space: nowrap; }
.cash-account-code-control .code-input { width: 145px; }
.review-toolbar-controls > .secondary-button { flex: 0 0 auto; white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.search-box { display: flex; align-items: center; gap: 7px; width: min(370px, 100%); height: 35px; padding: 0 10px; border: 1px solid #dce5e1; border-radius: 7px; background: #fbfcfb; color: #799087; }
.search-box > span { font-size: 18px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: 11px Georgia, "Times New Roman", serif; }
.search-box input::placeholder { color: #9aa7a2; }
.text-button { flex: 0 0 auto; }
.invoice-review-list { display: grid; gap: 10px; }
.invoice-export-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.invoice-export-actions .primary-button, .invoice-export-actions .secondary-button { min-width: 160px; justify-content: center; }
.csv-export-help { flex: 1 0 100%; margin: 0; color: #71817c; font-size: 10px; line-height: 1.5; text-align: right; }
.review-empty { display: flex; min-height: 135px; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #cbd8d2; border-radius: 9px; color: #8b9a94; text-align: center; }
.review-empty > span { margin-bottom: 8px; color: #91aaa0; font-size: 22px; }
.review-empty strong { color: #526760; font-size: 12px; }
.review-empty p { margin: 5px 12px 0; font-size: 10px; }
.invoice-card { padding: 13px 14px; border: 1px solid #dce5e1; border-radius: 9px; background: #fbfcfb; }
.invoice-card.withholding-invoice { border-color: #dc7770; background: #fff0ee; box-shadow: inset 4px 0 #c83d35, 0 2px 8px #a92b2412; }
.invoice-card.withholding-invoice.needs-attention { border-color: #dc7770; background: #fff0ee; box-shadow: inset 4px 0 #c83d35, 0 2px 8px #a92b2412; }
.invoice-card[hidden] { display: none; }
.invoice-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 15px; }
.invoice-card-head-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.invoice-card-head-actions .file-preview-button { min-height: 28px; }
.invoice-card-head-actions .invoice-delete-button { min-height: 28px; }
.invoice-card-head-actions .invoice-checked-button { min-height: 28px; padding: 0 9px; white-space: nowrap; }
.invoice-card-head-actions .invoice-checked-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.invoice-card-head-actions .invoice-checked-button.is-checked { border-color: #82a98b; background: #e5efe5; color: #315e3c; }
.invoice-card.invoice-checked { border-color: #cbd5cc; background: #f1f4f0; }
.invoice-card.invoice-checked .invoice-identity,
.invoice-card.invoice-checked .invoice-tax-summary,
.invoice-card.invoice-checked .cari-edit-row,
.invoice-card.invoice-checked .line-details { opacity: .62; }
.withholding-badge { display: inline-flex; align-items: center; max-width: 100%; min-height: 27px; padding: 4px 8px; border: 1px solid #d75a52; border-radius: 6px; background: #f8d9d6; color: #8f201a; font-size: 9px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; text-align: left; }
.foreign-currency-badge { display: inline-flex; align-items: center; max-width: 100%; min-height: 27px; padding: 4px 8px; border: 1px solid #9ecfba; border-radius: 6px; background: #e8f3ed; color: #315e50; font-size: 9px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; text-align: left; }
.foreign-currency-badge.is-unconverted { border-color: #d75a52; background: #f8d9d6; color: #8f201a; }
.invoice-identity { display: grid; flex: 1 1 260px; min-width: 0; gap: 5px; }
.invoice-identity strong { overflow-wrap: anywhere; color: #283c36; font-size: 12px; }
.invoice-identity span, .invoice-file-name { overflow-wrap: anywhere; color: #82918b; font-size: 9px; }
.invoice-meta { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 3px 5px; }
.copy-vkn-button { display: inline-flex; flex: 0 0 auto; width: 19px; height: 19px; align-items: center; justify-content: center; margin: -2px 0; padding: 2px; border: 1px solid #cbd8d0; border-radius: 5px; background: transparent; color: #45665a; cursor: pointer; }
.copy-vkn-button:hover { border-color: #677663; background: #edf2ec; }
.copy-vkn-button svg { display: block; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.copy-vkn-button.is-copied { border-color: #78927b; background: #e5efe5; color: #315e3c; }
.invoice-total { flex: 0 0 auto; color: #315e50; font-size: 12px; font-weight: 700; }
.invoice-tax-summary { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; padding: 7px 9px; border-radius: 6px; background: #f1f6f3; color: #526a60; font-size: 9px; font-weight: 600; line-height: 1.5; }
.invoice-warning { margin-top: 8px; padding: 7px 9px; border-radius: 6px; background: #fbf3e6; color: #8c682b; font-size: 9px; line-height: 1.5; }
.cari-edit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 11px 0 8px; padding: 9px 10px; border-radius: 7px; background: #f1f6f3; }
.cari-code-field-group { display: flex; flex: 0 1 auto; align-items: center; gap: 8px; }
.cari-code-field-group label { flex: 0 0 auto; justify-content: flex-start; }
.cash-paid-button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 30px; padding: 0 9px; white-space: nowrap; }
.cash-paid-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.cash-paid-button.is-active { border-color: #82a98b; background: #e5efe5; color: #315e3c; }
.invoice-card.cash-paid-invoice { border-left: 3px solid #6b9671; }
.withholding-detail-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 8px 0; padding: 9px 10px; border: 1px solid #dc7770; border-radius: 7px; background: #fff7f6; }
.withholding-detail-row label { display: flex; align-items: center; gap: 9px; color: #8f201a; font-size: 10px; font-weight: 700; }
.withholding-detail-row .code-input { width: 150px; }
.withholding-detail-amount { color: #8f201a; font-size: 11px; font-weight: 750; }
.cari-edit-row label { display: flex; align-items: center; gap: 9px; color: #687871; font-size: 10px; font-weight: 700; }
.code-input { width: 130px; min-height: 31px; padding: 5px 8px; border: 1px solid #d4dfd9; border-radius: 6px; outline: 0; background: #fff; color: #263a34; font: 11px Georgia, "Times New Roman", serif; }
.code-input:focus { border-color: #619783; box-shadow: 0 0 0 2px #3182671a; }
.account-code-input { width: 138px; }
.account-name-input { width: 160px; }
.line-details { border-top: 1px solid #e9eeeb; }
.line-details summary { padding: 10px 2px 2px; color: #46675b; cursor: pointer; font-size: 10px; font-weight: 700; }
.line-table-wrap { overflow-x: auto; margin-top: 9px; }
.line-table { width: 100%; min-width: 760px; table-layout: fixed; }
.line-table th:nth-child(1), .line-table td:nth-child(1) { width: 27%; }
.line-table th:nth-child(2), .line-table td:nth-child(2) { width: 20%; }
.line-table th:nth-child(3), .line-table td:nth-child(3) { width: 25%; }
.line-table th:nth-child(4), .line-table td:nth-child(4) { width: 28%; }
.line-table th { padding-top: 8px; padding-bottom: 8px; }
.line-table td { vertical-align: top; }
.line-description, .line-amounts { min-width: 0; }
.line-description strong, .line-description span, .line-amounts strong, .line-amounts span { display: block; }
.line-description strong, .line-amounts strong { max-width: 100%; color: #3c514a; font-size: 10px; font-weight: 600; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.line-description span, .line-amounts span { max-width: 100%; margin-top: 5px; color: #87958f; font-size: 9px; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.line-table td { padding-top: 9px; padding-bottom: 9px; }
.line-table .code-input { margin: -3px 0; }
.review-card .notice { margin: 8px 0 12px; }
@media (max-width: 760px) { .review-actions { justify-content: stretch; } .review-actions button { flex: 1; padding: 0 8px; } .review-search-row > .search-box { width: 100%; } .review-toolbar-controls { width: 100%; } .review-toolbar-controls .temporary-cari-fill-control { flex: 0 0 auto; align-items: center; flex-direction: row; } .review-toolbar-controls .temporary-cari-fill-control .code-input { width: 125px; } .review-toolbar-controls .text-button, .review-toolbar-controls > .secondary-button { width: auto; flex: 0 0 auto; white-space: nowrap; } .withholding-account-fill-control { padding: 0 10px; border-top: 0; border-right: 1px solid var(--line); border-left: 1px solid var(--line); } .cash-account-code-control { padding-right: 10px; } .cash-account-code-control .code-input { width: 125px; } .invoice-card { padding: 11px; } .invoice-total { font-size: 10px; } .cari-edit-row { align-items: flex-start; flex-direction: column; } .cari-code-field-group { max-width: 100%; flex-wrap: wrap; } .cari-code-field-group label { width: auto; justify-content: flex-start; } .code-input, .account-name-input { width: 44%; min-width: 118px; } }
@media (max-width: 900px) { .account-list-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .client-context-card { grid-template-columns: 1fr; gap: 12px; } .client-selection-controls { grid-template-columns: minmax(0, 1fr); } .client-selection-controls button { width: 100%; } .new-client-fields { grid-template-columns: 1fr; } .client-selection-status { grid-column: auto; } }
@media (max-width: 760px) { .account-list-form, .expense-list-form { grid-template-columns: 1fr; } .account-list-form .list-file-field, .expense-list-form .list-file-field { grid-column: auto; } .account-list-form button { width: 100%; } }
@media (max-width: 760px) { .auth-screen { padding: 14px; } .auth-card { padding: 19px; } .auth-form-grid { grid-template-columns: 1fr; } .auth-confirm-password { grid-column: auto; } .account-tools button { min-height: 31px; padding: 0 8px; font-size: 9px; } }

.client-selection-buttons { display: flex; align-items: stretch; gap: 8px; }
.client-selection-buttons > button { justify-content: center; white-space: nowrap; }
.new-client-fields #client-sector-field { grid-column: auto; }
.client-form-actions { grid-column: 1 / -1; }
.list-field textarea { width: 100%; min-height: 88px; resize: vertical; padding: 9px 10px; border: 1px solid #d4dfd9; border-radius: 7px; outline: 0; background: #fff; color: #263a34; font: 12px/1.5 Georgia, "Times New Roman", serif; }
.list-field textarea:focus { border-color: #619783; box-shadow: 0 0 0 2px #3182671a; }
.field-help { color: #899693; font-size: 9px; font-weight: 400; line-height: 1.5; }
.client-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.client-form-actions > button { width: auto; }
.scroll-top-button { position: fixed; right: 20px; bottom: 20px; z-index: 20; display: inline-flex; align-items: center; gap: 7px; min-height: 39px; padding: 0 13px; border: 1px solid #cbdcd4; border-radius: 22px; background: #f9fcfa; color: #246b59; box-shadow: 0 5px 20px #153d321c; cursor: pointer; font: 700 11px Georgia, "Times New Roman", serif; }
.scroll-top-button span { font-size: 16px; }
.scroll-top-button[hidden] { display: none; }
body[data-theme="dark"] .list-field textarea { border-color: #40554b; background: #1c2a24; color: #e0ebe5; }
body[data-theme="dark"] .field-help { color: #9eafa7; }
body[data-theme="dark"] .scroll-top-button { border-color: #496457; background: #263a31; color: #b8e1cc; }
@media (max-width: 760px) { .client-selection-buttons { display: grid; grid-template-columns: 1fr 1fr; } .client-selection-buttons > button { width: 100%; } .scroll-top-button { right: 12px; bottom: 12px; min-height: 36px; padding: 0 11px; } }

html { scroll-behavior: smooth; }
#genel-bakis, #mukellef-secimi, #muhasebe-kriterleri, #account-list-step, #dosyalar, .files-card, #invoice-review { scroll-margin-top: 18px; }
.sidebar { background: var(--palette-forest); border-right-color: var(--palette-green); }
.workspace-label, .sidebar-footer { color: var(--palette-mist); }
.nav-link { color: var(--palette-silver); }
.nav-link:hover { background: #354e39; color: #fff; }
.nav-link.active { background: var(--palette-green); color: #fff; }
.nav-icon { border-color: #617762; background: #354e39; color: #e5ebe4; }
.active .nav-icon { border-color: #bfd7b9; background: #617f5b; color: #fff; }
.brand-mark, .primary-button { background: var(--palette-green); }
.primary-button:hover:not(:disabled) { background: var(--palette-forest); }
.client-context-card { border-color: var(--palette-mist); background: #eef1ed; }
.eyebrow, .account-list-details summary, .line-details summary { color: var(--palette-sage); }
.metric-icon.teal, .metric-icon.amber, .metric-icon.violet { color: var(--palette-green); background: #e8ece7; }
.account-list-panel-head strong, .line-description strong, .line-amounts strong { color: var(--palette-forest); }
.expense-list-button:not(:disabled), .ai-review-button:not(:disabled) { border-color: var(--palette-mist); background: #e8ece7; color: var(--palette-green); }
.expense-list-button:hover:not(:disabled), .ai-review-button:hover:not(:disabled) { border-color: var(--palette-sage); background: #dfe5de; }
.auth-tab.active { color: var(--palette-green); }
.local-card { border-color: var(--palette-green); background: #183729; }
.local-dot { background: var(--palette-green); box-shadow: 0 0 0 3px #2e7d321b; }
.theme-toggle-button { display: inline-grid; width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; place-items: center; }
.theme-icon { display: block; font-size: 19px; line-height: 1; }
.auth-theme-toggle { border: 1px solid var(--palette-mist); border-radius: 8px; background: #eef1ed; color: var(--palette-forest); cursor: pointer; }
body[data-theme="dark"] .sidebar { background: var(--palette-forest); border-right-color: var(--palette-green); }
body[data-theme="dark"] .active-client-indicator { border-color: #6b826b; background: #263d2c; color: #f4edcf; }
body[data-theme="dark"] .nav-link.active, body[data-theme="dark"] .nav-link:hover { background: var(--palette-green); color: #fff; }
body[data-theme="dark"] .local-card { border-color: var(--palette-green); background: #183729; }
body[data-theme="dark"] .metric-card, body[data-theme="dark"] .content-card, body[data-theme="dark"] .invoice-card, body[data-theme="dark"] .account-list-panel, body[data-theme="dark"] .account-list-details { border-color: var(--palette-green); background: #173326; }
body[data-theme="dark"] .client-context-card, body[data-theme="dark"] .review-summary, body[data-theme="dark"] .account-list-summary { border-color: var(--palette-sage); background: #1b392a; }
body[data-theme="dark"] .account-list-panel-head strong, body[data-theme="dark"] .line-description strong, body[data-theme="dark"] .line-amounts strong { color: #eef1ed; }
body[data-theme="dark"] .theme-toggle-button { border-color: var(--palette-sage); background: #173326; color: #f0f3f0; }
body[data-theme="dark"] .expense-list-button:not(:disabled), body[data-theme="dark"] .ai-review-button:not(:disabled) { border-color: var(--palette-sage); background: #354e39; color: #f0f3f0; }
body[data-theme="dark"] .secondary-button, body[data-theme="dark"] .text-button { border-color: var(--palette-sage); background: #183729; color: #e8ece7; }
body[data-theme="dark"] .secondary-button:hover:not(:disabled), body[data-theme="dark"] .text-button:hover:not(:disabled) { border-color: var(--palette-mist); background: #354e39; }
body[data-theme="dark"] .list-field input, body[data-theme="dark"] .list-field select, body[data-theme="dark"] .list-field textarea, body[data-theme="dark"] .code-input, body[data-theme="dark"] .search-box { border-color: var(--palette-sage); background: #0c2a1e; color: #f0f3f0; }
body[data-theme="dark"] .drop-zone, body[data-theme="dark"] .account-list-form .list-file-field, body[data-theme="dark"] .list-file-field { border-color: var(--palette-sage); background: #183729; }
body[data-theme="dark"] .invoice-warning { background: #354e39; color: #e8ece7; }
body[data-theme="dark"] .notice { background: #183729; color: #cdd8cb; }
body[data-theme="dark"] .ai-account-suggestion-button { color: var(--palette-mist); }
.secondary-button, .text-button { border-color: var(--palette-silver); background: #eef1ed; color: var(--palette-green); }
.secondary-button:hover:not(:disabled), .text-button:hover:not(:disabled) { border-color: var(--palette-mist); background: #e2e7e1; }
.account-source, .account-reference { color: var(--palette-sage) !important; }
.account-suggestion-button, .ai-account-suggestion-button { color: var(--palette-green); }
.auth-card, .metric-card, .content-card, .account-list-panel { border-color: #d6dbd5; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

tr[hidden] { display: none !important; }
.review-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.period-notice { margin: -1px 0 10px; padding: 9px 11px; border: 1px solid var(--palette-mist); border-radius: 7px; background: #eef1ed; color: var(--palette-green); font-size: 10px; line-height: 1.5; }
.period-notice-alert { border-color: #df9a91; background: #fff0ed; color: #9f3933; }
.out-of-period-row > td { background: #fff1ef; color: #813b36; }
.out-of-period-row > td:first-child { border-left: 3px solid #bf564c; }
.period-status-label { background: #f7deda; color: #9f3933; }
.period-status-label::before { background: #b84940; }
.company-mismatch-row > td { background: #ffebe9; color: #9f2924; font-weight: 650; }
.company-mismatch-row > td:first-child { border-left: 3px solid #c9342b; }
.company-mismatch-row .file-cell { color: #9f2924; }
.company-mismatch-status-label { background: #f8d5d2; color: #a51f19; font-weight: 700; }
.company-mismatch-status-label::before { background: #c9342b; }
.ai-job-panel { margin: 0 0 14px; padding: 12px; border: 1px solid var(--palette-silver); border-radius: 9px; background: #f7f8f6; }
.ai-job-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ai-job-heading h3 { margin: 0; color: var(--palette-forest); font-size: 12px; }
.ai-job-heading p { margin: 3px 0 0; color: var(--palette-sage); font-size: 9px; }
.ai-job-table-wrap { max-height: 230px; overflow: auto; border: 1px solid #dfe5df; border-radius: 6px; background: #fff; }
.ai-job-table { width: 100%; min-width: 640px; margin: 0; }
.ai-job-table th { position: sticky; top: 0; z-index: 1; padding: 9px 10px; background: #eef1ed; color: var(--palette-green); font-size: 9px; }
.ai-job-table td { padding: 8px 10px; color: #53635c; font-size: 11px; }
.ai-job-invoice-identity { display: grid; max-width: 260px; gap: 4px; }
.ai-job-filename { overflow: hidden; text-overflow: ellipsis; }
.ai-job-invoice-number { color: #82918b; font-size: 9px; }
.ai-job-status { display: inline-flex; max-width: 230px; padding: 5px 8px; border-radius: 10px; background: #eef1ed; color: var(--palette-green); font-size: 10px; line-height: 1.4; white-space: normal; }
.ai-job-status.is-error { background: #f7deda; color: #9f3933; }
.ai-job-empty { height: 48px; color: #899693 !important; text-align: center; }
.ai-job-events { display: grid; max-height: 150px; gap: 6px; overflow: auto; margin: 8px 0 0; padding: 0; list-style: none; }
.ai-job-events li { display: flex; align-items: flex-start; gap: 8px; color: #687871; font-size: 10px; line-height: 1.5; }
.ai-job-events li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.ai-job-events time { flex: 0 0 auto; color: var(--palette-sage); font-variant-numeric: tabular-nums; }
.ai-job-event-hourglass { display: block; flex: 0 0 15px; width: 15px; height: 15px; margin-top: 1px; color: var(--palette-sage); transform-box: view-box; transform-origin: center; animation: ai-hourglass-turn 5s linear infinite; }
.ai-job-event-hourglass > path:first-child { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ai-job-event-hourglass .hourglass-sand { fill: currentColor; }
@keyframes ai-hourglass-turn { to { transform: rotate(360deg); } }
.ai-job-events li.is-warning { align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid #efc1bb; border-radius: 7px; background: #fff0ee; color: #a32921; font-size: 14px; font-weight: 700; line-height: 1.5; }
.ai-job-events li.is-warning time { color: #ad5149; font-size: 11px; }
.ai-job-events li.is-warning > span[aria-hidden="true"] { font-size: 17px; }
body[data-theme="dark"] .period-notice { border-color: var(--palette-sage); background: #183729; color: #d7e0d8; }
body[data-theme="dark"] .period-notice-alert, body[data-theme="dark"] .out-of-period-row > td { border-color: #945a51; background: #432b27; color: #ffd2ca; }
body[data-theme="dark"] .company-mismatch-row > td { border-color: #a74640; background: #492522; color: #ffd2ca; }
body[data-theme="dark"] .company-mismatch-row .file-cell { color: #ffd2ca; }
body[data-theme="dark"] .company-mismatch-status-label { background: #5a2825; color: #ffd2ca; }
body[data-theme="dark"] .company-mismatch-status-label::before { background: #ff8d82; }
body[data-theme="dark"] .period-status-label, body[data-theme="dark"] .ai-job-status.is-error { background: #5a322c; color: #ffd2ca; }
body[data-theme="dark"] .period-status-label::before { background: #ff9e90; }
body[data-theme="dark"] .ai-job-panel { border-color: var(--palette-green); background: #173326; }
body[data-theme="dark"] .ai-job-heading h3 { color: #eef1ed; }
body[data-theme="dark"] .ai-job-heading p, body[data-theme="dark"] .ai-job-events time { color: var(--palette-mist); }
body[data-theme="dark"] .ai-job-table-wrap { border-color: var(--palette-green); background: #0c2a1e; }
body[data-theme="dark"] .ai-job-table th { background: #354e39; color: #eef1ed; }
body[data-theme="dark"] .ai-job-table td, body[data-theme="dark"] .ai-job-events li { color: #c9d6ce; }
body[data-theme="dark"] .ai-job-status { background: #354e39; color: #e8ece7; }
body[data-theme="dark"] .ai-job-invoice-number, body[data-theme="dark"] .csv-export-help { color: #a0afa8; }
@media (max-width: 760px) { .review-heading-actions { align-items: flex-end; flex-direction: column; } .ai-job-panel { padding: 9px; } .ai-job-table-wrap { max-height: 210px; } .ai-job-events { max-height: 130px; } }

.accounting-criteria-card { margin-bottom: 18px; }
.criteria-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.criteria-editor-panel { min-width: 0; padding: 16px; border: 1px solid #dce5df; border-radius: 9px; background: #fbfcfa; }
.criteria-editor-panel > .section-copy { min-height: 34px; margin: 10px 0; }
.criteria-editor-panel .list-field textarea { min-height: 190px; resize: vertical; font: 12px/1.55 Georgia, "Times New Roman", serif; }
.criteria-editor-panel textarea:disabled { cursor: not-allowed; opacity: .6; }
.criteria-editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 10px; }
.criteria-editor-actions .field-help { max-width: 390px; }
.criteria-learning-note { margin: 14px 0 0; padding: 11px 13px; border-left: 3px solid var(--palette-sage); border-radius: 4px; background: #f1f4ef; color: #59685f; font-size: 10px; line-height: 1.55; }
.criteria-learning-note strong { color: var(--palette-forest); }
.temporary-cari-settings { display: grid; gap: 12px; margin-top: 12px; }
.toggle-field { display: inline-flex; align-items: center; gap: 10px; color: #536660; font-size: 11px; font-weight: 600; }
.toggle-field input { width: 16px; height: 16px; accent-color: var(--green); }
body[data-theme="dark"] .criteria-editor-panel { border-color: #294634; background: #12291e; }
body[data-theme="dark"] .criteria-learning-note { border-left-color: var(--palette-sage); background: #10251a; color: #afc1b5; }
body[data-theme="dark"] .criteria-learning-note strong { color: #e1ebe3; }
.ai-review-flag { display: inline-flex; align-self: flex-start; margin-top: 5px; padding: 4px 7px; border: 1px solid #a88632; border-radius: 6px; background: #ddc778; color: #303734; font-size: 10px; font-weight: 600; line-height: 1.3; }
.invoice-attention { margin: 9px 0 3px; padding: 9px 11px; border: 1px solid #f0d49b; border-radius: 7px; background: #fff8e9; color: #765714; font-size: 11px; font-weight: 600; line-height: 1.45; }
.invoice-attention[hidden] { display: none; }
.code-input.needs-attention { border-color: #d89a48; background: #fffaf0; box-shadow: 0 0 0 2px #d89a4820; }
.field-attention { display: block; margin-top: 6px; color: #9a6419; font-size: 9px; font-weight: 650; line-height: 1.35; }
.field-attention.is-resolved { color: #348064; }
.brand-mark { background: #fff; }
body[data-theme="dark"] .invoice-card.needs-attention { border-color: #886b36; box-shadow: inset 3px 0 #cf9d3e, 0 2px 6px #0002; }
body[data-theme="dark"] .invoice-attention { border-color: #71592f; background: #342b17; color: #ffe6a0; }
body[data-theme="dark"] .code-input.needs-attention { border-color: #a47b36; background: #2a2417; box-shadow: 0 0 0 2px #cf9d3e20; }
body[data-theme="dark"] .field-attention { color: #f0c878; }
body[data-theme="dark"] .field-attention.is-resolved { color: #8fd0ab; }
body[data-theme="dark"] {
  --canvas: #07160f;
}
body[data-theme="dark"] .sidebar { background: #08150f; border-right-color: #1d3326; }
body[data-theme="dark"] .metric-card,
body[data-theme="dark"] .content-card,
body[data-theme="dark"] .invoice-card,
body[data-theme="dark"] .account-list-panel,
body[data-theme="dark"] .account-list-details,
body[data-theme="dark"] .auth-card { border-color: #203a2b; background: #0e2117; }
body[data-theme="dark"] .client-context-card,
body[data-theme="dark"] .review-summary,
body[data-theme="dark"] .account-list-summary,
body[data-theme="dark"] .ai-job-panel { border-color: #294634; background: #12291e; }
body[data-theme="dark"] .account-list-details,
body[data-theme="dark"] .local-card { background: #10251a; }
body[data-theme="dark"] .list-field input,
body[data-theme="dark"] .list-field select,
body[data-theme="dark"] .list-field textarea,
body[data-theme="dark"] .code-input,
body[data-theme="dark"] .search-box { border-color: #2b4736; background: #091710; color: #e7f0e9; }
body[data-theme="dark"] .drop-zone,
body[data-theme="dark"] .account-list-form .list-file-field,
body[data-theme="dark"] .list-file-field { border-color: #2b4736; background: #10251a; }
body[data-theme="dark"] .ai-review-flag { border-color: #8b7137; background: #342b17; color: #303734; }
body[data-theme="dark"] .criteria-editor-actions .field-help { color: #afc1b5; }
@media (max-width: 760px) {
  .criteria-editor-grid { grid-template-columns: 1fr; }
  .criteria-editor-actions { align-items: stretch; flex-direction: column; }
  .criteria-editor-actions .primary-button { width: 100%; }
}

/* Lucayz palette */
body { background: var(--canvas); color: var(--ink); }
.sidebar { background: #fff; border-right-color: var(--line); }
.brand-name, .workspace-label, .sidebar-footer, .nav-link,
.signed-in-user, .topbar-date, .breadcrumb, .welcome-copy, .section-copy,
.eyebrow, .date-chip, .metric-value, h1, h2, h3 { color: var(--ink); }
.brand-name span, .workspace-label, .sidebar-footer, .eyebrow,
.welcome-copy, .section-copy, .breadcrumb, .metric-label,
.metric-caption, .field-help { color: var(--muted); }
.nav-link { color: var(--palette-forest); }
.nav-link:hover { background: #e8eee2; color: var(--palette-forest); }
.nav-link.active { background: var(--palette-forest); color: var(--canvas); }
.nav-icon, .active .nav-icon { border-color: var(--palette-green); background: var(--palette-green); color: var(--canvas); }
.metric-card, .content-card, .invoice-card, .account-list-panel,
.account-list-details, .auth-card, .local-card, .client-context-card,
.review-summary, .account-list-summary { background: var(--surface); }
.metric-card, .content-card, .invoice-card, .account-list-panel,
.account-list-details, .auth-card { border-color: #ded7c6; }
.local-card { border-color: #ded7c6; }
.local-card strong, .local-card small { color: var(--ink); }
.primary-button { background: var(--palette-forest); color: var(--canvas); }
.primary-button:hover:not(:disabled) { background: var(--palette-green); }
.secondary-button, .text-button { border-color: #c9bea5; background: var(--surface); color: var(--palette-forest); }
.secondary-button:hover:not(:disabled), .text-button:hover:not(:disabled) { border-color: var(--palette-green); background: #e8eee2; }
.topbar { border-bottom-color: var(--line); }
.list-field, .toggle-field, .cari-edit-row label,
.invoice-identity strong, .line-description strong,
.line-amounts strong, .account-list-panel-head strong { color: var(--ink); }
.list-field input, .list-field select, .list-field textarea, .code-input,
.search-box, .date-chip, .auth-tabs { background: var(--surface); color: var(--ink); }
.list-field input, .list-field select, .list-field textarea, .code-input,
.search-box, .table-wrap, .line-details { border-color: #ded7c6; }
.drop-zone { border-color: var(--palette-green); background: #e8eee2; }
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--palette-forest); background: #dce8d4; }
.notice { border: 1px solid #b8c9ae; background: #e8eee2; color: var(--palette-forest); }
.notice.error, .invoice-warning, .invoice-attention, .period-notice-alert,
.out-of-period-row > td, .company-mismatch-row > td {
  border-color: var(--palette-mist);
  background: var(--palette-sage);
  color: #F5F1E6;
}
.period-notice { border-color: #d8c98e; border-left: 4px solid #c6a93a; background: #f8f3df; color: #66551f; box-shadow: 0 2px 7px #6f5a1712; font-size: 11px; }
.company-mismatch-row > td:first-child,
.out-of-period-row > td:first-child { border-left-color: var(--palette-mist); }
.company-mismatch-row .file-cell, .period-status-label,
.company-mismatch-status-label { color: #F5F1E6; }
.period-status-label, .company-mismatch-status-label { background: var(--palette-sage); }
.ai-job-panel, .ai-job-table-wrap { border-color: #ded7c6; background: var(--surface); }
.ai-job-table th { background: #e8eee2; color: var(--palette-forest); }
.ai-job-table td, .ai-job-events li, .ai-job-heading p { color: var(--ink); }
.ai-job-status { background: #e8eee2; color: var(--palette-forest); }
.ai-job-status.is-error { background: var(--palette-sage); color: #F5F1E6; }
.ai-review-flag, .line-description .ai-review-flag { border-color: #a88632; background: #ddc778; color: #303734; }
.scroll-top-button { border-color: #c9bea5; background: var(--surface); color: var(--palette-forest); }
.scroll-top-button:hover:not(:disabled) { border-color: var(--palette-green); background: #e8eee2; }

body[data-theme="dark"] {
  --canvas: #2B2B2B;
  --surface: #222722;
  --table-surface: #171D18;
  --line: #41453f;
  --ink: #F5F1E6;
  --muted: #d2cdbc;
  color: var(--ink);
}
body[data-theme="dark"] .sidebar { background: var(--surface); border-right-color: var(--line); }
body[data-theme="dark"] .topbar { background: var(--surface); }
body[data-theme="dark"] .brand-name, body[data-theme="dark"] .brand-name span,
body[data-theme="dark"] .workspace-label, body[data-theme="dark"] .sidebar-footer,
body[data-theme="dark"] .nav-link, body[data-theme="dark"] .signed-in-user,
body[data-theme="dark"] .breadcrumb, body[data-theme="dark"] .welcome-copy,
body[data-theme="dark"] .section-copy, body[data-theme="dark"] .eyebrow,
body[data-theme="dark"] .date-chip, body[data-theme="dark"] .metric-value,
body[data-theme="dark"] h1, body[data-theme="dark"] h2, body[data-theme="dark"] h3,
body[data-theme="dark"] .metric-label, body[data-theme="dark"] .metric-caption,
body[data-theme="dark"] .field-help, body[data-theme="dark"] .local-card strong,
body[data-theme="dark"] .local-card small, body[data-theme="dark"] .list-field,
body[data-theme="dark"] .toggle-field, body[data-theme="dark"] .cari-edit-row label,
body[data-theme="dark"] .invoice-identity strong,
body[data-theme="dark"] .line-description strong,
body[data-theme="dark"] .line-amounts strong,
body[data-theme="dark"] .account-list-panel-head strong { color: #F5F1E6; }
body[data-theme="dark"] .nav-link:hover { background: var(--palette-green); color: #F5F1E6; }
body[data-theme="dark"] .nav-link.active { background: var(--palette-green); color: #F5F1E6; }
body[data-theme="dark"] .nav-icon, body[data-theme="dark"] .active .nav-icon { border-color: var(--palette-mist); background: var(--palette-forest); color: #F5F1E6; }
body[data-theme="dark"] .metric-card, body[data-theme="dark"] .content-card,
body[data-theme="dark"] .invoice-card, body[data-theme="dark"] .account-list-panel,
body[data-theme="dark"] .account-list-details, body[data-theme="dark"] .auth-card,
body[data-theme="dark"] .local-card, body[data-theme="dark"] .client-context-card,
body[data-theme="dark"] .review-summary, body[data-theme="dark"] .account-list-summary,
body[data-theme="dark"] .ai-job-panel,
body[data-theme="dark"] .period-notice { border-color: var(--line); background: var(--surface); }
body[data-theme="dark"] .primary-button { background: var(--palette-green); color: #F5F1E6; }
body[data-theme="dark"] .primary-button:hover:not(:disabled) { background: var(--palette-forest); }
body[data-theme="dark"] .secondary-button, body[data-theme="dark"] .text-button,
body[data-theme="dark"] .scroll-top-button { border-color: var(--palette-green); background: var(--palette-forest); color: #F5F1E6; }
body[data-theme="dark"] .copy-vkn-button { border-color: #677663; color: #d5dfd3; }
body[data-theme="dark"] .copy-vkn-button:hover, body[data-theme="dark"] .copy-vkn-button.is-copied { background: #354e39; color: #F5F1E6; }
body[data-theme="dark"] .secondary-button:hover:not(:disabled),
body[data-theme="dark"] .text-button:hover:not(:disabled),
body[data-theme="dark"] .scroll-top-button:hover { border-color: var(--palette-mist); background: var(--palette-green); }
body[data-theme="dark"] .list-field input, body[data-theme="dark"] .list-field select,
body[data-theme="dark"] .list-field textarea, body[data-theme="dark"] .code-input,
body[data-theme="dark"] .search-box, body[data-theme="dark"] .date-chip,
body[data-theme="dark"] .auth-tabs { border-color: var(--line); background: #202520; color: #F5F1E6; }
body[data-theme="dark"] .drop-zone { border-color: #65705f; background: #202520; }
body[data-theme="dark"] .drop-zone:hover, body[data-theme="dark"] .drop-zone.drag-over { border-color: var(--palette-mist); background: #272b26; }
body[data-theme="dark"] .notice { border-color: #59624f; background: #202520; color: #F5F1E6; }
body[data-theme="dark"] .notice.error, body[data-theme="dark"] .invoice-warning,
body[data-theme="dark"] .invoice-attention, body[data-theme="dark"] .period-notice-alert,
body[data-theme="dark"] .out-of-period-row > td,
body[data-theme="dark"] .company-mismatch-row > td,
body[data-theme="dark"] .period-status-label,
body[data-theme="dark"] .company-mismatch-status-label,
body[data-theme="dark"] .ai-job-status.is-error {
  border-color: var(--palette-mist);
  background: var(--palette-sage);
  color: #F5F1E6;
}
body[data-theme="dark"] .company-mismatch-row .file-cell,
body[data-theme="dark"] .period-status-label,
body[data-theme="dark"] .company-mismatch-status-label { color: #F5F1E6; }
body[data-theme="dark"] .period-notice { border-color: #85713a; border-left-color: #d4af37; background: #302b1d; color: #f0df9e; }
body[data-theme="dark"] .file-preview-button { border-color: #77957f; background: #263b2d; color: #e4efd9; }
body[data-theme="dark"] .file-preview-button:hover { border-color: #abc99d; background: #354e39; }
body[data-theme="dark"] .invoice-card.needs-attention { border-color: var(--palette-mist); box-shadow: inset 3px 0 var(--palette-mist); }
body[data-theme="dark"] .invoice-card.withholding-invoice { border-color: #e16b63; background: #402522; box-shadow: inset 4px 0 #e16b63, 0 2px 8px #0003; }
body[data-theme="dark"] .invoice-card.withholding-invoice.needs-attention { border-color: #e16b63; background: #402522; box-shadow: inset 4px 0 #e16b63, 0 2px 8px #0003; }
body[data-theme="dark"] .invoice-card.invoice-checked { border-color: #48534a; background: #202520; }
body[data-theme="dark"] .invoice-tax-summary { background: #263b2d; color: #e4efd9; }
body[data-theme="dark"] .invoice-card-head-actions .invoice-checked-button.is-checked { border-color: #77957f; background: #263b2d; color: #e4efd9; }
body[data-theme="dark"] .cash-paid-button.is-active { border-color: #77957f; background: #263b2d; color: #e4efd9; }
body[data-theme="dark"] .invoice-card.cash-paid-invoice { border-left-color: #77957f; }
body[data-theme="dark"] .withholding-badge { border-color: #e16b63; background: #5a2825; color: #ffd2ca; }
body[data-theme="dark"] .foreign-currency-badge { border-color: #77957f; background: #263b2d; color: #e4efd9; }
body[data-theme="dark"] .foreign-currency-badge.is-unconverted { border-color: #e16b63; background: #5a2825; color: #ffd2ca; }
body[data-theme="dark"] .withholding-detail-row { border-color: #e16b63; background: #492522; }
body[data-theme="dark"] .withholding-detail-row label, body[data-theme="dark"] .withholding-detail-amount { color: #ffd2ca; }
body[data-theme="dark"] .withholding-detail-row .code-input { border-color: #a74640; background: #30201e; color: #ffd2ca; }
body[data-theme="dark"] .ai-job-table th { background: #252b25; color: #F5F1E6; }
body[data-theme="dark"] .ai-job-table-wrap,
body[data-theme="dark"] .table-wrap,
body[data-theme="dark"] table { background: var(--table-surface); }
body[data-theme="dark"] .ai-job-status { background: #30372f; color: #F5F1E6; }
body[data-theme="dark"] .ai-job-table td, body[data-theme="dark"] .ai-job-events li,
body[data-theme="dark"] .ai-job-heading p { color: #F5F1E6; }
body[data-theme="dark"] .ai-job-event-hourglass { color: #fff; }
body[data-theme="dark"] .ai-job-events li.is-warning { border-color: #914b43; background: #432421; color: #ffd2ca; }
body[data-theme="dark"] .ai-job-events li.is-warning time { color: #ff9e90; }
body[data-theme="dark"] .ai-review-flag,
body[data-theme="dark"] .line-description .ai-review-flag { border-color: var(--palette-mist); background: var(--palette-sage); color: #fff; }
body[data-theme="dark"] .account-source,
body[data-theme="dark"] .account-reference { color: #fff !important; }
body[data-theme="dark"] .account-list-panel-head strong,
body[data-theme="dark"] .account-list-details summary,
body[data-theme="dark"] .list-file-label,
body[data-theme="dark"] .list-file-field .selection-label { color: #fff; }
body[data-theme="dark"] th, body[data-theme="dark"] td { border-color: #ffffff24; color: #F5F1E6; }
body[data-theme="dark"] .auth-screen { background: radial-gradient(circle at 50% 0%, #20392d, transparent 48%), var(--canvas); }
body[data-theme="dark"] .client-selection-status.ready,
body[data-theme="dark"] .client-selection-status.error,
body[data-theme="dark"] .drop-subtitle,
body[data-theme="dark"] .file-types,
body[data-theme="dark"] .file-types i,
body[data-theme="dark"] .empty-row strong,
body[data-theme="dark"] .empty-row span:last-child { color: #F5F1E6; }
body[data-theme="dark"] .metric-icon.teal,
body[data-theme="dark"] .metric-icon.amber,
body[data-theme="dark"] .metric-icon.violet,
body[data-theme="dark"] .status-label,
body[data-theme="dark"] .file-badge,
body[data-theme="dark"] .step-pill,
body[data-theme="dark"] .count-pill,
body[data-theme="dark"] .auth-tab.active { border-color: #59624f; background: #30372f; color: #F5F1E6; }

/* Shared visual language with the landing page. */
body,
button,
input,
select,
textarea,
h1,
h2,
h3,
.brand-name,
.metric-value,
.primary-button,
.file-preview-button,
.auth-tab,
.list-field input,
.list-field select,
.list-field textarea,
.code-input,
.search-box input,
.danger-button,
.account-suggestion-button,
.ai-account-suggestion-button,
.secondary-button,
.text-button,
.scroll-top-button {
  font-family: Georgia, "Times New Roman", serif;
}

body[data-theme="dark"] {
  --palette-forest: #0c2a1e;
  --palette-green: #9ecfba;
  --palette-sage: #4e342e;
  --palette-mist: #d4af37;
  --palette-silver: #ded7c6;
  --green: #9ecfba;
  --green-dark: #9ecfba;
  --green-pale: #173326;
  --accent-hover: #75c8a7;
  --purple: #9ecfba;
  --purple-dark: #9ecfba;
  --purple-pale: #173326;
}

.nav-link { color: #666; }
.nav-link:hover { background: #f7f7f7; color: var(--ink); }
.nav-link.active { background: #f3f7f4; color: var(--green-dark); font-weight: 650; }
.nav-icon, .active .nav-icon { border-color: #d9d9d9; background: #fff; color: #888; }
.active .nav-icon { border-color: var(--green); background: var(--green); color: #fff; }
.brand-name, .workspace-label, .sidebar-footer, .signed-in-user,
.topbar-date, .breadcrumb, .welcome-copy, .section-copy, .eyebrow,
.date-chip, .metric-value, h1, h2, h3 { color: var(--ink); }
.brand-name span, .workspace-label, .sidebar-footer, .welcome-copy,
.section-copy, .breadcrumb, .metric-label, .metric-caption, .field-help { color: var(--muted); }
.metric-card, .content-card, .invoice-card, .account-list-panel,
.account-list-details, .auth-card, .client-context-card, .review-summary,
.account-list-summary, .ai-job-panel, .ai-job-table-wrap { border-color: var(--line); }
.primary-button { background: var(--purple); color: #173326; }
.primary-button:hover:not(:disabled) { background: var(--accent-hover); color: #173326; }
.secondary-button, .text-button { border-color: #b7dfce; background: var(--surface); color: var(--purple-dark); }
.secondary-button:hover:not(:disabled), .text-button:hover:not(:disabled) { border-color: var(--purple); background: var(--purple-pale); }
.expense-list-button:not(:disabled), .ai-review-button:not(:disabled) { border-color: #b7dfce; background: var(--purple-pale); color: var(--purple-dark); }
.expense-list-button:hover:not(:disabled), .ai-review-button:hover:not(:disabled) { border-color: var(--purple); background: #dcefe8; }
.auth-tab.active, .auth-tabs .auth-tab.active { background: var(--purple); color: #173326; box-shadow: 0 1px 4px #0002; }
.active-client-indicator { border-color: #9ecfba; background: var(--green-pale); color: #245840; }
.drop-zone { border-color: #9ecfba; background: var(--green-pale); }
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--green-dark); background: #dcefe8; }
.upload-icon, .calendar-icon, .file-badge, .account-suggestion-button,
.field-attention.is-resolved { color: var(--green-dark); }
.notice { border-color: #b7dfce; background: var(--green-pale); color: #245840; }
.file-preview-button { border-color: #b7dfce; background: var(--purple-pale); color: var(--purple-dark); }
.file-preview-button:hover { border-color: var(--purple); background: #dcefe8; }
.account-source, .account-reference { color: var(--muted) !important; }
.ai-account-suggestion-button { color: var(--purple-dark); }
.auth-theme-toggle { border-color: #b7dfce; background: var(--purple-pale); color: var(--purple-dark); }
.selection-label.is-ready { border-color: #9ecfba; background: var(--green-pale); color: #245840; }
.period-notice { border-color: #e5d59c; border-left-color: #c6a93a; background: #f8f3df; color: #66551f; }
.period-notice-alert, .out-of-period-row > td, .company-mismatch-row > td,
.notice.error, .company-mismatch-status-label, .period-status-label,
.ai-job-status.is-error { border-color: #edc5c0; background: #fff0ed; color: #8d342c; }
.out-of-period-row > td:first-child, .company-mismatch-row > td:first-child { border-left-color: #bf564c; }
.invoice-warning, .invoice-attention { border-color: #f0d49b; background: #fff8e9; color: #765714; }
.invoice-card.needs-attention { border-color: #e1b35c; box-shadow: inset 3px 0 #dfa63e, 0 2px 6px #193b3208; }
.ai-job-table th, .ai-job-status { background: var(--purple-pale); color: var(--purple-dark); }
.ai-job-heading h3, .ai-job-events time, .ai-job-event-hourglass { color: var(--purple-dark); }
.scroll-top-button { border-color: #b7dfce; background: var(--surface); color: var(--purple-dark); }
.scroll-top-button:hover:not(:disabled) { border-color: var(--purple); background: var(--purple-pale); }
body[data-theme="dark"] .nav-link { color: #b6c0b9; }
body[data-theme="dark"] .nav-link:hover { background: #1d2821; color: var(--ink); }
body[data-theme="dark"] .nav-link.active { background: #20382b; color: #b8e6ca; }
body[data-theme="dark"] .nav-icon, body[data-theme="dark"] .active .nav-icon { border-color: #3a4a40; background: transparent; color: #b6c0b9; }
body[data-theme="dark"] .active .nav-icon { border-color: var(--green); background: var(--green); color: #fff; }
body[data-theme="dark"] .primary-button { background: #9ecfba; color: #0c2a1e; }
body[data-theme="dark"] .primary-button:hover:not(:disabled) { background: #75c8a7; }
body[data-theme="dark"] .expense-list-button:not(:disabled), body[data-theme="dark"] .ai-review-button:not(:disabled) { border-color: #4e342e; background: #354e39; color: #f0f3f0; }
body[data-theme="dark"] .expense-list-button:hover:not(:disabled), body[data-theme="dark"] .ai-review-button:hover:not(:disabled) { border-color: #d4af37; background: #354e39; }
body[data-theme="dark"] .auth-tab.active, body[data-theme="dark"] .auth-tabs .auth-tab.active { border-color: #9ecfba; background: #9ecfba; color: #0c2a1e; }

body[data-theme="dark"] .line-details summary { color: #CFAD6B; }
.auth-full-row { grid-column: 1 / -1; }
.auth-tabs .auth-tab.active { background: var(--purple); color: #173326; box-shadow: 0 1px 4px #0002; }
body[data-theme="dark"] .auth-tabs .auth-tab.active { background: #9ecfba; border-color: #9ecfba; color: #0c2a1e; }

.auth-screen { background: radial-gradient(circle at 50% 0%, #e8f3ed, transparent 48%), var(--canvas); }
.step-pill span, .metric-icon.teal, .metric-icon.amber, .metric-icon.violet { color: var(--green-dark); }
.metric-icon.teal, .metric-icon.amber, .metric-icon.violet { background: var(--green-pale); }
.auth-terms-consent a, .password-toggle:hover { color: var(--green-dark); }

.auth-wordmark { display: inline-flex; width: max-content; flex-direction: column; text-decoration: none; }
.auth-card-heading .auth-wordmark-name { color: rgb(76, 151, 120); font: 400 35px/0.91 Georgia, "Times New Roman", serif; letter-spacing: -.065em; }
.auth-card-heading .auth-wordmark-caption { padding-left: 2px; margin-top: 4px; color: var(--ink); font: 400 9px/1 Georgia, "Times New Roman", serif; letter-spacing: .23em; }
.auth-tabs .auth-tab:not(.active) { border: 1px solid #c3cbc6; background: #e2e6e3; color: #4c5751; }
.auth-tabs .auth-tab:not(.active):hover { border-color: #aab5ae; background: #d6dcd8; color: #293b32; }
.auth-tab:focus-visible, .remember-me:focus-within, #forgot-password-link:focus-visible { outline: 2px solid #4c9778; outline-offset: 2px; }
.login-options { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; margin-top: -5px; }
.remember-me { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; padding: 0 9px; border-radius: 7px; color: var(--ink); cursor: pointer; font-size: 12px; }
.remember-me:hover { background: #edf3ef; }
.remember-me input { width: 18px; height: 18px; margin: 0; accent-color: rgb(76, 151, 120); }
#forgot-password-link { display: inline-flex; min-height: 44px; align-items: center; padding: 0 9px; border-radius: 7px; color: rgb(76, 151, 120); font-size: 12px; font-weight: 700; text-decoration: none; }
#forgot-password-link:hover { background: #edf3ef; text-decoration: underline; text-underline-offset: 3px; }
body[data-theme="dark"] .auth-card-heading .auth-wordmark-caption { color: #d8e1dc; }
body[data-theme="dark"] .auth-tabs .auth-tab:not(.active) { border-color: #526159; background: #35443c; color: #e2e9e4; }
body[data-theme="dark"] .auth-tabs .auth-tab:not(.active):hover { border-color: #73857a; background: #43534a; color: #fff; }
body[data-theme="dark"] .remember-me:hover, body[data-theme="dark"] #forgot-password-link:hover { background: #28372f; }
body[data-theme="dark"] #forgot-password-link { color: #9ecfba; }
@media (max-width: 420px) {
  .login-options { align-items: stretch; gap: 4px; }
  .remember-me, #forgot-password-link { padding-inline: 5px; font-size: 11px; }
}

.client-selection-controls { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.client-selection-buttons { justify-content: flex-end; }
.client-selection-buttons > button { min-width: 132px; }
#client-selector { width: 100%; border: 1px solid #b8c6bd; box-shadow: none; }
#client-selector:focus-visible { border-color: #4c9778; box-shadow: 0 0 0 2px #4c97782b; }
body[data-theme="dark"] #client-selector { border-color: #526c5e; }
body[data-theme="dark"] #client-selector:focus-visible { border-color: #9ecfba; box-shadow: 0 0 0 2px #9ecfba38; }
@media (max-width: 760px) {
  .client-selection-buttons { display: flex; justify-content: stretch; }
  .client-selection-buttons > button { width: auto; min-width: 0; flex: 1; }
}
.client-selection-controls .client-form-actions > button { width: auto; }
.client-selection-step { justify-self: end; }

.auth-screen { grid-template-rows: 1fr auto; padding-bottom: 14px; font-family: Georgia, "Times New Roman", serif; }
.auth-card { grid-row: 1; }
.auth-footer { grid-row: 2; justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; padding: 12px 8px 0; color: #62656a; font: 11px/1.4 Georgia, "Times New Roman", serif; letter-spacing: .01em; text-align: center; }
body:not([data-theme="dark"]) .auth-screen { background: #f8f8f8; color: #17191d; }
body:not([data-theme="dark"]) .auth-card { border-color: #ebebeb; background: #fff; box-shadow: 0 16px 44px #17191d12; }
body:not([data-theme="dark"]) .auth-form h1 { color: #17191d; font: 400 28px/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
body:not([data-theme="dark"]) .auth-form > p { color: #62656a; font: 14px/1.45 Georgia, "Times New Roman", serif; }
body:not([data-theme="dark"]) .auth-tabs { border: 1px solid #ebebeb; background: #eef7f1; }
body:not([data-theme="dark"]) .auth-tabs .auth-tab.active { border: 1px solid #75c8a7; background: #9ecfba; color: #173326; }
body:not([data-theme="dark"]) .auth-tabs .auth-tab:not(.active) { border-color: #ebebeb; background: #eeefec; color: #62656a; }
body:not([data-theme="dark"]) .auth-tabs .auth-tab:not(.active):hover { border-color: #75c8a7; background: #e8f3ed; color: #2f7659; }
body:not([data-theme="dark"]) .auth-screen .list-field { color: #62656a; font-family: Georgia, "Times New Roman", serif; }
body:not([data-theme="dark"]) .auth-screen .list-field input { border-color: #ebebeb; background: #fff; color: #17191d; font: 14px Georgia, "Times New Roman", serif; }
body:not([data-theme="dark"]) .auth-screen .list-field input:focus { border-color: #75c8a7; box-shadow: 0 0 0 2px #9ecfba55; }
body:not([data-theme="dark"]) .auth-form > .primary-button { min-height: 44px; border: 1px solid #75c8a7; border-radius: 999px; background: #9ecfba; color: #173326; font: 15px Georgia, "Times New Roman", serif; }
body:not([data-theme="dark"]) .auth-form > .primary-button:hover:not(:disabled) { background: #75c8a7; }
body:not([data-theme="dark"]) #forgot-password-link, body:not([data-theme="dark"]) .auth-terms-consent a { color: #2f7659; }
body[data-theme="dark"] .auth-footer { color: #b5c2bb; }
@media (max-width: 760px) { .auth-screen { min-height: 100vh; grid-template-rows: 1fr auto; padding-bottom: 12px; } .auth-footer { font-size: 10px; } }

.topbar { position: relative; z-index: 5; }
.profile-menu-container { position: relative; }
.profile-menu-trigger { display: inline-flex; max-width: 100%; min-width: 0; align-items: center; gap: 7px; padding: 5px 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); cursor: pointer; font: 700 11px Georgia, "Times New Roman", serif; text-decoration: none; }
.profile-menu-trigger:hover, .profile-menu-trigger[aria-expanded="true"] { border-color: transparent; background: transparent; color: #2f7659; text-decoration: underline; text-underline-offset: 3px; }
.profile-menu-trigger:focus-visible, .profile-menu a:focus-visible { outline: 2px solid #9dc2b3; outline-offset: 3px; border-radius: 4px; }
.profile-menu-trigger > svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.profile-menu-trigger .signed-in-user { min-width: 0; max-width: 180px; color: inherit; }
.profile-menu-trigger .profile-menu-chevron { width: 13px; height: 13px; }
.profile-menu { position: absolute; top: calc(100% + 7px); right: 0; z-index: 30; display: grid; width: 176px; gap: 3px; padding: 6px; border: 1px solid #d6e2db; border-radius: 11px; background: #fff; box-shadow: 0 12px 32px #17251e24; }
.profile-menu[hidden] { display: none; }
.profile-menu a { display: flex; min-height: 36px; align-items: center; justify-content: flex-start; gap: 10px; padding: 0 10px; border-radius: 7px; background: transparent; color: #263a34; cursor: pointer; font: 12px Georgia, "Times New Roman", serif; text-align: left; text-decoration: none; }
.profile-menu a[hidden] { display: none; }
.profile-menu a:hover { background: transparent; color: #2f7659; text-decoration: underline; text-underline-offset: 3px; }
.profile-menu-link-icon { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.profile-menu-quota { margin-left: auto; padding: 4px 7px; border-radius: 999px; background: #e8f3ed; color: #2f7659; font: 600 9px/1 Roboto, Arial, sans-serif; white-space: nowrap; }
.profile-menu-quota.is-empty { background: #f8e9e7; color: #a13b32; }
.profile-menu .profile-menu-divider { height: 1px; margin: 3px 4px; background: #e2e6e3; }
.profile-menu a.profile-menu-logout { color: #b42318; }
.profile-menu a.profile-menu-logout:hover { background: transparent; color: #8f1d16; }
.account-status-badge { display: inline-flex; flex: 0 0 auto; align-items: center; padding: 3px 7px; border: 1px solid #b7dfce; border-radius: 999px; background: #e8f3ed; color: #2f7659; font-size: 10px; font-weight: 700; }
.account-info-dialog { width: min(470px, calc(100% - 28px)); max-width: none; max-height: 85vh; overflow: auto; padding: 20px; border: 1px solid #ebebeb; border-radius: 14px; background: #fff; color: #17191d; box-shadow: 0 20px 60px #142c2260; }
.account-info-dialog::backdrop { background: rgb(17 42 31 / 52%); backdrop-filter: blur(2px); }
.account-info-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.account-info-heading .eyebrow { margin-bottom: 4px; color: #2f7659; }
.account-info-heading h2 { margin: 0; color: #17191d; font: 400 23px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.03em; }
.account-info-close { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #75c8a7; border-radius: 50%; background: #9ecfba; color: #173326; cursor: pointer; font: 25px/1 Georgia, "Times New Roman", serif; }
.account-info-close:hover { background: #75c8a7; }
.account-info-list { display: grid; gap: 0; margin: 0; }
.account-info-row { display: grid; grid-template-columns: minmax(105px, .65fr) minmax(0, 1fr); gap: 12px; padding: 10px 2px; border-bottom: 1px solid #e5e5e2; }
.account-info-row:last-child { border-bottom: 0; }
.account-info-row dt { color: #62656a; font-size: 12px; }
.account-info-row dd { min-width: 0; margin: 0; color: #17191d; font-size: 13px; overflow-wrap: anywhere; }
.account-status-summary { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid #b7dfce; border-radius: 10px; background: #e8f3ed; }
.account-status-summary p { margin: 0; color: #263a34; font-size: 13px; line-height: 1.45; }
.account-status-quota { margin-top: 15px; padding-top: 13px; border-top: 1px solid #e5e5e2; }
.account-status-quota > summary { color: #2f7659; font-size: 15px; font-weight: 700; cursor: pointer; }
.account-status-quota-summary { margin: 9px 0 10px; color: #62656a; font-size: 12px; line-height: 1.5; }
.account-status-quota-panel > .ai-quota-request-panel { margin: 8px 0 0; padding: 13px; }
.account-status-quota-panel .ai-quota-request-heading { gap: 8px; }
.account-status-quota-panel .ai-quota-request-heading h3 { font-size: 13px; }
.account-status-quota-panel .ai-quota-request-heading p { font-size: 10px; }
body[data-theme="dark"] .profile-menu-trigger { color: #e1ebe6; }
body[data-theme="dark"] .profile-menu-trigger:hover, body[data-theme="dark"] .profile-menu-trigger[aria-expanded="true"] { border-color: transparent; background: transparent; color: #9ecfba; }
body[data-theme="dark"] .profile-menu { border-color: #344740; background: #19241f; box-shadow: 0 12px 32px #0006; }
body[data-theme="dark"] .profile-menu a { color: #e1ebe6; }
body[data-theme="dark"] .profile-menu-quota { background: #294538; color: #b9e2cc; }
body[data-theme="dark"] .profile-menu-quota.is-empty { background: #4c302e; color: #ffc1b8; }
body[data-theme="dark"] .profile-menu a:hover { background: transparent; color: #9ecfba; }
body[data-theme="dark"] .profile-menu .profile-menu-divider { background: #344740; }
body[data-theme="dark"] .profile-menu a.profile-menu-logout { color: #ff9d91; }
body[data-theme="dark"] .profile-menu a.profile-menu-logout:hover { background: transparent; color: #ffc1b8; }
body[data-theme="dark"] .account-status-badge, body[data-theme="dark"] .account-status-summary { border-color: #4e7964; background: #20372d; color: #9ecfba; }
body[data-theme="dark"] .account-info-dialog { border-color: #344740; background: #19241f; color: #e1ebe6; }
body[data-theme="dark"] .account-info-heading .eyebrow { color: #9ecfba; }
body[data-theme="dark"] .account-info-heading h2, body[data-theme="dark"] .account-info-row dd { color: #e1ebe6; }
body[data-theme="dark"] .account-info-row { border-color: #344740; }
body[data-theme="dark"] .account-info-row dt { color: #b5c2bb; }
body[data-theme="dark"] .account-status-summary p { color: #d1ded7; }
body[data-theme="dark"] .account-status-quota { border-color: #344740; }
body[data-theme="dark"] .account-status-quota > summary { color: #9ecfba; }
body[data-theme="dark"] .account-status-quota-summary { color: #b5c2bb; }
@media (max-width: 760px) { .profile-menu-trigger { gap: 5px; padding-inline: 4px; } .profile-menu-trigger .signed-in-user { max-width: 96px; font-size: 9px; } .account-info-dialog { padding: 16px; } }

/* Keep the application sidebar wordmark aligned with the public landing page. */
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0; width: max-content; text-decoration: none; }
.brand-name { color: rgb(76, 151, 120); font: 400 35px/.91 Georgia, "Times New Roman", serif; letter-spacing: -.065em; }
.brand-name span { display: block; padding-left: 2px; margin-top: 4px; color: var(--ink); font: 9px/1 Georgia, "Times New Roman", serif; letter-spacing: .23em; text-transform: uppercase; }
body[data-theme="dark"] .brand-name { color: rgb(76, 151, 120); }
body[data-theme="dark"] .brand-name span { color: #d2cdbc; }

.account-info-dialog { width: min(600px, calc(100% - 28px)); max-height: 90vh; }
.account-profile-form { display: grid; gap: 12px; }
.account-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.account-profile-field { display: grid; min-width: 0; gap: 5px; color: #62656a; font: 12px Georgia, "Times New Roman", serif; }
.account-profile-field input { width: 100%; min-width: 0; height: 37px; padding: 0 10px; border: 1px solid #ebebeb; border-radius: 8px; background: #fff; color: #17191d; font: 13px Georgia, "Times New Roman", serif; }
.account-profile-field input:focus { outline: 2px solid #9ecfba66; border-color: #75c8a7; }
.account-profile-section-title { margin: 4px 0 -4px; color: #17191d; font-size: 14px; font-weight: 700; }
.account-profile-help { margin: -7px 0 0; color: #62656a; font-size: 11px; line-height: 1.4; }
.account-password-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.account-profile-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-profile-save { justify-self: start; min-height: 39px; padding: 0 17px; }
.account-deactivate-link { display: inline-flex; align-items: center; margin-left: auto; padding: 8px 0; color: #c62828; cursor: pointer; font: 12px Georgia, "Times New Roman", serif; text-align: right; text-decoration: none; }
.account-deactivate-link:hover { text-decoration: underline; }
.account-form-notice { padding: 9px 11px; border: 1px solid #b7dfce; border-radius: 8px; background: #e8f3ed; color: #245840; font-size: 12px; line-height: 1.4; }
.account-form-notice.is-error { border-color: #e1b7ae; background: #fff0ed; color: #8d342c; }
.account-deactivate-button { min-height: 36px; padding: 0 13px; border: 1px solid #a84b40; border-radius: 8px; background: #a84b40; color: #fff; cursor: pointer; font: 12px Georgia, "Times New Roman", serif; }
.account-deactivate-button:hover:not(:disabled) { background: #87382f; }
.account-delete-warning { margin: 0; color: #704c47; font-size: 12px; line-height: 1.45; }
.account-delete-form { gap: 13px; }
.account-delete-warning { padding: 11px; border-radius: 8px; background: #fff0ed; }
.account-delete-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
body[data-theme="dark"] .account-profile-field { color: #b5c2bb; }
body[data-theme="dark"] .account-profile-field input { border-color: #3c5047; background: #121b18; color: #e1ebe6; }
body[data-theme="dark"] .account-profile-section-title { color: #e1ebe6; }
body[data-theme="dark"] .account-profile-help { color: #b5c2bb; }
body[data-theme="dark"] .account-form-notice { border-color: #4e7964; background: #20372d; color: #c8e6d7; }
body[data-theme="dark"] .account-form-notice.is-error { border-color: #80534a; background: #402824; color: #ffb9ac; }
body[data-theme="dark"] .account-deactivate-link { color: #ff8a80; }
body[data-theme="dark"] .account-delete-warning { color: #e6c7c0; }
body[data-theme="dark"] .account-delete-warning { background: #402824; }
.invoice-identity strong { color: #172720 !important; }
.invoice-identity span, .invoice-file-name { color: #43534b !important; font-size: 10px; }
.invoice-tax-summary { color: #34483e !important; font-size: 10px; }
.cari-edit-row label { color: #36483e !important; }
.field-attention.is-resolved { color: #246b49 !important; }
body[data-theme="dark"] .invoice-identity strong { color: #f5f1e6 !important; }
body[data-theme="dark"] .invoice-identity span, body[data-theme="dark"] .invoice-file-name { color: #d7e4dc !important; }
body[data-theme="dark"] .invoice-tax-summary { color: #f0f5ef !important; }
body[data-theme="dark"] .cari-edit-row label { color: #f0f5ef !important; }
body[data-theme="dark"] .field-attention.is-resolved { color: #9bd6b0 !important; }
.line-table th { color: #263b31 !important; font-size: 9px; }
.file-name-text { min-width: 0; overflow-wrap: anywhere; color: #34483e; }
.status-label { color: #46574e; }
body[data-theme="dark"] .line-table th { color: #e4eee7 !important; }
body[data-theme="dark"] .file-name-text { color: #e1ebe5; }
body[data-theme="dark"] .status-label { color: #dce8df; }
.subscription-screen { display: flex; min-height: 100vh; flex-direction: column; background: var(--canvas); color: var(--ink); }
.subscription-screen[hidden] { display: none; }
.subscription-topbar { display: flex; width: min(1160px, calc(100% - 36px)); align-items: center; justify-content: space-between; margin: 0 auto; padding: 22px 0; }
.subscription-content { width: min(900px, calc(100% - 32px)); margin: clamp(28px, 7vh, 76px) auto 36px; padding: clamp(22px, 5vw, 44px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 18px 55px #17332612; }
.subscription-kicker { color: #54816c; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.subscription-content h1 { margin: 12px 0 9px; font-size: clamp(27px, 5vw, 38px); line-height: 1.15; }
.subscription-lead { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.55; }
.subscription-explanation { margin: 12px 0 28px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.subscription-content h2 { margin: 0 0 13px; font-size: 17px; }
.subscription-channel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.subscription-channel-card { display: block; min-width: 0; padding: 17px; border: 1px solid #d5e4dc; border-radius: 12px; background: #f7faf8; color: var(--ink); cursor: pointer; font: inherit; text-align: left; transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.subscription-channel-card:hover:not(:disabled), .subscription-channel-card[aria-pressed="true"] { border-color: #9ecfba; background: #d8e9df; box-shadow: 0 4px 13px #17332612; }
.subscription-channel-card:focus-visible { outline: 2px solid #54816c; outline-offset: 2px; }
.subscription-method-panel { margin-top: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.subscription-method-panel[hidden] { display: none; }
.subscription-method-panel h3 { margin: 0 0 8px; font-size: 15px; }
.subscription-method-panel > p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.subscription-card-fields { display: grid; gap: 12px; max-width: 560px; padding: 0; border: 0; }
.subscription-card-fields label, .subscription-payment-form label, .subscription-phone-field { display: grid; gap: 6px; color: var(--ink); font-size: 11px; }
.subscription-card-fields input, .subscription-payment-form input, .subscription-phone-field input { width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); color: var(--ink); font: inherit; font-size: 12px; }
.subscription-card-fields input:disabled { opacity: .75; cursor: not-allowed; }
.subscription-card-small-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.subscription-provider-notice { margin-top: 14px; padding: 10px 12px; border: 1px solid #d6d8ba; border-radius: 8px; background: #f7f5e9; color: #62592d; font-size: 11px; line-height: 1.5; }
.subscription-provider-button { margin-top: 12px; }
.subscription-provider-button:disabled { opacity: .55; cursor: not-allowed; }
.subscription-bank-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; margin: 0 0 17px; }
.subscription-bank-details > div { min-width: 0; }
.subscription-bank-details dt { color: var(--muted); font-size: 10px; }
.subscription-bank-details dd { margin: 3px 0 0; color: var(--ink); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.subscription-payment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; }
.subscription-payment-form button { grid-column: 1 / -1; justify-self: start; min-height: 40px; padding: 0 16px; }
.subscription-payment-notice { margin-top: 12px; padding: 10px 12px; border: 1px solid #abd0bb; border-radius: 8px; background: #e8f3ed; color: #244d39; font-size: 11px; line-height: 1.5; }
.subscription-payment-notice.is-error { border-color: #e1b7ae; background: #fff0ed; color: #8d342c; }
.subscription-channel-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: #e8f3ed; color: #315e4b; font-size: 19px; }
.subscription-channel-card h3 { margin: 13px 0 6px; font-size: 14px; }
.subscription-channel-card p { margin: 0; color: #5b6b62; font-size: 12px; line-height: 1.55; }
.subscription-screen-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.subscription-screen-actions .primary-button { min-height: 40px; padding: 0 17px; }
.subscription-screen-actions span { color: #5b6b62; font-size: 11px; }
.subscription-logout-link { display: inline-block; margin-top: 20px; padding: 4px 0; border: 0; background: transparent; color: #b42318; cursor: pointer; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
body[data-theme="dark"] .subscription-content { border-color: var(--line); background: var(--surface); box-shadow: 0 18px 55px #0004; }
body[data-theme="dark"] .subscription-kicker { color: #9ecfba; }
body[data-theme="dark"] .subscription-explanation { color: #c0cdc5; }
body[data-theme="dark"] .subscription-channel-card { border-color: #385747; background: #12291e; color: #e1ebe5; }
body[data-theme="dark"] .subscription-channel-card:hover:not(:disabled), body[data-theme="dark"] .subscription-channel-card[aria-pressed="true"] { border-color: #75a78e; background: #294638; }
body[data-theme="dark"] .subscription-method-panel { border-color: var(--line); background: var(--surface); }
body[data-theme="dark"] .subscription-card-fields label, body[data-theme="dark"] .subscription-payment-form label, body[data-theme="dark"] .subscription-phone-field { color: #e1ebe5; }
body[data-theme="dark"] .subscription-card-fields input, body[data-theme="dark"] .subscription-payment-form input, body[data-theme="dark"] .subscription-phone-field input { border-color: #45574c; background: #10251a; color: #e1ebe5; }
body[data-theme="dark"] .subscription-provider-notice { border-color: #806c3c; background: #38321f; color: #f2dfa0; }
body[data-theme="dark"] .subscription-bank-details dd { color: #e1ebe5; }
body[data-theme="dark"] .subscription-payment-notice { border-color: #4e7964; background: #20372d; color: #c8e6d7; }
body[data-theme="dark"] .subscription-payment-notice.is-error { border-color: #80534a; background: #402824; color: #ffb9ac; }
body[data-theme="dark"] .subscription-channel-icon { background: #243d30; color: #c8e6d7; }
body[data-theme="dark"] .subscription-channel-card p { color: #c0cdc5; }
body[data-theme="dark"] .subscription-screen-actions span { color: #c0cdc5; }
body[data-theme="dark"] .subscription-logout-link { color: #ff9d91; }
#drop-zone.is-disabled { cursor: not-allowed; opacity: .58; pointer-events: none; }
#drop-zone.is-disabled:hover, #drop-zone.is-disabled.drag-over { border-color: #a8c2b8; background: var(--green-pale); }
body[data-theme="dark"] #drop-zone.is-disabled:hover, body[data-theme="dark"] #drop-zone.is-disabled.drag-over { border-color: #47675a; background: #1a2b24; }
@media (max-width: 560px) {
  .subscription-channel-grid { grid-template-columns: 1fr; }
  .ai-quota-package-list { grid-template-columns: 1fr; }
  .subscription-content { margin-top: 18px; }
  .subscription-bank-details, .subscription-payment-form { grid-template-columns: 1fr; }
  .subscription-payment-form button { grid-column: auto; }
  .subscription-card-small-fields { grid-template-columns: 1fr; }
  .account-profile-grid, .account-password-grid { grid-template-columns: 1fr; }
}

.topbar-quota-label, body[data-theme="dark"] .topbar-quota-label { color: #3f7758 !important; }
.topbar .topbar-date .topbar-quota-label { font-size: inherit !important; font-weight: inherit !important; }
body[data-theme="dark"] .nav-icon { border-color: #3a4a40; }
body[data-theme="dark"] .active .nav-icon { border-color: var(--green); }

/* Keep account upload controls inside their cards, regardless of the available column width. */
.account-list-panel { container-type: inline-size; }
@container (max-width: 430px) {
  .account-list-form { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .account-list-form .list-file-field { min-width: 0; }
  .account-list-form button { width: 100%; min-width: 0; height: auto; min-height: 38px; padding: 8px 10px; white-space: normal; line-height: 1.25; overflow-wrap: anywhere; }
}

/* Wrap review assignment controls instead of shrinking them into each other. */
.review-toolbar-controls { flex-wrap: wrap; overflow: visible; }
.review-toolbar-controls > .temporary-cari-fill-control {
  display: grid;
  flex: 1 1 285px;
  grid-template-columns: minmax(100px, 1fr) auto;
  min-width: min(100%, 250px);
  align-items: center;
  gap: 7px;
}
.review-toolbar-controls > .temporary-cari-fill-control .code-input { width: 100%; min-width: 0; }
.review-toolbar-controls > .temporary-cari-fill-control .text-button {
  min-width: 0;
  max-width: 100%;
  min-height: 35px;
  height: auto;
  padding: 6px 9px;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}
.review-toolbar-controls > .cash-account-code-control { flex: 1 1 220px; min-width: min(100%, 220px); }
.review-toolbar-controls > .cash-account-code-control .code-input { width: 100%; min-width: 0; }
@media (max-width: 760px) {
  .review-toolbar-controls { width: 100%; flex-wrap: wrap; overflow: visible; }
  .review-toolbar-controls > .temporary-cari-fill-control { flex: 1 1 285px; min-width: min(100%, 250px); }
  .review-toolbar-controls > .temporary-cari-fill-control .text-button,
  .review-toolbar-controls > .secondary-button { width: auto; flex: 0 1 auto; white-space: normal; }
  .review-toolbar-controls > .cash-account-code-control { flex: 1 1 100%; min-width: min(100%, 220px); flex-wrap: wrap; padding: 0 10px; }
  .review-toolbar-controls > .cash-account-code-control .code-input { width: min(100%, 145px); min-width: 0; }
}
.review-search-row > .search-box { width: min(100%, 200px); }

.support-feedback-open { display: flex; width: 100%; min-width: 0; align-items: flex-start; gap: 8px; margin: 0; padding: 12px 11px 4px; border: 0 !important; background: transparent !important; color: #b7d7c7 !important; font: 500 11px/1.45 Roboto, Arial, sans-serif; font-weight: 700 !important; text-align: left; text-decoration: underline; text-decoration-color: #779c88; text-underline-offset: 3px; cursor: pointer; transition: color .16s ease; }
.support-feedback-open::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; margin-top: 4px; border-radius: 50%; background: #9ecfba; box-shadow: 0 0 0 3px rgb(158 207 186 / 12%); }
.support-feedback-open:hover { color: #e8f3ed !important; background: transparent !important; }
.support-feedback-open:focus-visible { outline: 2px solid #9ecfba; outline-offset: -2px; border-radius: 6px; }
body:not([data-theme="dark"]) .support-feedback-open,
body:not([data-theme="dark"]) .support-feedback-open:hover { color: #000 !important; }
body[data-theme="dark"] .support-feedback-open { color: #b7d7c7 !important; }
.support-feedback-dialog { width: min(560px, calc(100% - 28px)); max-width: none; max-height: min(90vh, 760px); overflow: auto; margin: auto; padding: 24px; border: 1px solid #d7e4dc; border-radius: 17px; background: #fff; color: #222925; box-shadow: 0 24px 80px rgb(10 27 20 / 30%); }
.support-feedback-dialog::backdrop { background: rgb(17 42 31 / 62%); backdrop-filter: blur(4px); }
.support-feedback-heading { display: flex; align-items: center; gap: 12px; }
.support-feedback-mark { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border: 1px solid #c8e0d3; border-radius: 13px; background: #e8f3ed; }
.support-feedback-mark svg { width: 22px; height: 22px; fill: none; stroke: #3f7758; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.support-feedback-title-group { flex: 1; min-width: 0; }
.support-feedback-kicker { margin: 0 0 3px; color: #3f7758; font: 700 10px/1.4 Roboto, Arial, sans-serif; font-weight: 700 !important; letter-spacing: .15em; }
.support-feedback-dialog h2 { margin: 0; color: #222925; font: 600 23px/1.2 Roboto, Arial, sans-serif; font-weight: 700 !important; letter-spacing: -.035em; }
.support-feedback-close { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid #c8d9cf !important; border-radius: 50%; background: #fff !important; color: #315e4b !important; cursor: pointer; font: 26px/1 Arial, sans-serif; transition: background .16s ease; }
.support-feedback-close:hover { background: #e8f3ed !important; }
.support-feedback-help { margin: 16px 0 18px; color: #626a65; font: 300 14px/1.55 Roboto, Arial, sans-serif; }
.support-feedback-form { display: grid; gap: 13px; margin: 0; }
.support-feedback-form label { display: grid; gap: 7px; color: #29332e; font: 500 13px/1.35 Roboto, Arial, sans-serif; font-weight: 500 !important; }
.support-feedback-form input, .support-feedback-form textarea { width: 100%; min-width: 0; min-height: 43px; padding: 10px 12px; border: 1px solid #d3ddd6; border-radius: 9px; outline: 0; background: #fff; color: #17191d; font: 400 14px/1.45 Roboto, Arial, sans-serif; transition: border-color .16s ease, box-shadow .16s ease; }
.support-feedback-form textarea { min-height: 142px; resize: vertical; }
.support-feedback-form input::placeholder, .support-feedback-form textarea::placeholder { color: #9a9f9b; }
.support-feedback-form input:focus, .support-feedback-form textarea:focus { border-color: #75b496; box-shadow: 0 0 0 3px rgb(117 200 167 / 18%); }
.support-feedback-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 1px; }
.support-feedback-privacy { max-width: 225px; margin: 0; color: #78817b; font: 300 11px/1.5 Roboto, Arial, sans-serif; }
.support-feedback-form .primary-button { min-height: 43px; justify-content: center; gap: 10px; padding: 0 16px !important; border: 1px solid #75b496 !important; border-radius: 999px; background: #9ecfba !important; color: #173326 !important; font: 600 13px Roboto, Arial, sans-serif; font-weight: 700 !important; transition: background .16s ease, transform .16s ease; }
.support-feedback-form .primary-button:hover:not(:disabled) { background: #75c8a7 !important; transform: translateY(-1px); }
.support-feedback-form .primary-button:disabled { cursor: wait; opacity: .65; transform: none; }
.support-feedback-form .primary-button span { font: inherit; }
.support-feedback-form .primary-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.support-feedback-notice { margin: 0; padding: 10px 12px; border: 1px solid #cfe4d7; border-radius: 9px; background: #f0f8f3; color: #356d51; font: 400 13px/1.45 Roboto, Arial, sans-serif; overflow-wrap: anywhere; }
.support-feedback-notice[hidden] { display: none; }
.support-feedback-notice.is-error { border-color: #f0d2ca; background: #fff5f2; color: #a33c32; }
body[data-theme="dark"] .support-feedback-dialog { border-color: #3b594a; background: #17261e; color: #e7eee9; }
body[data-theme="dark"] .support-feedback-dialog h2 { color: #eef5f0; }
body[data-theme="dark"] .support-feedback-mark { border-color: #365b48; background: #20382b; }
body[data-theme="dark"] .support-feedback-kicker { color: #a8d6bd; }
body[data-theme="dark"] .support-feedback-close { border-color: #466050 !important; background: #1e3327 !important; color: #d9eee1 !important; }
body[data-theme="dark"] .support-feedback-close:hover { background: #2a4736 !important; }
body[data-theme="dark"] .support-feedback-help, body[data-theme="dark"] .support-feedback-privacy { color: #b7c7bd; }
body[data-theme="dark"] .support-feedback-form label { color: #e1ebe5; }
body[data-theme="dark"] .support-feedback-form input, body[data-theme="dark"] .support-feedback-form textarea { border-color: #466050; background: #101b15; color: #e8f0eb; }
body[data-theme="dark"] .support-feedback-form .primary-button { border-color: #6eaa89 !important; background: #9ecfba !important; color: #173326 !important; }
body[data-theme="dark"] .support-feedback-form .primary-button:hover:not(:disabled) { background: #75c8a7 !important; }
body[data-theme="dark"] .support-feedback-notice { border-color: #3d644e; background: #20382b; color: #c4e6d1; }
body[data-theme="dark"] .support-feedback-notice.is-error { border-color: #7a4b42; background: #392521; color: #ffc1b4; }
@media (max-width: 560px) {
  .support-feedback-dialog { padding: 18px; border-radius: 15px; }
  .support-feedback-form-footer { align-items: stretch; flex-direction: column; }
  .support-feedback-privacy { max-width: none; }
  .support-feedback-form .primary-button { width: 100%; }
}

/* Payment providers that are not configured yet stay visibly muted. */
.subscription-channel-card[data-payment-method="card"],
.subscription-channel-card[data-payment-method="mobile"],
.ai-quota-method-grid .subscription-channel-card[data-ai-quota-method="card"],
.ai-quota-method-grid .subscription-channel-card[data-ai-quota-method="mobile"] {
  border-color: #d4d8d5 !important;
  background: #eceeeb !important;
  color: #737a75 !important;
}
.subscription-channel-card[data-payment-method="card"]:hover:not(:disabled),
.subscription-channel-card[data-payment-method="mobile"]:hover:not(:disabled),
.ai-quota-method-grid .subscription-channel-card[data-ai-quota-method="card"]:hover:not(:disabled),
.ai-quota-method-grid .subscription-channel-card[data-ai-quota-method="mobile"]:hover:not(:disabled) {
  border-color: #c8ceca !important;
  background: #e6e8e6 !important;
  box-shadow: none;
}
.subscription-channel-card[data-payment-method="card"] .subscription-channel-icon,
.subscription-channel-card[data-payment-method="mobile"] .subscription-channel-icon,
.ai-quota-method-grid .subscription-channel-card[data-ai-quota-method="card"] .subscription-channel-icon,
.ai-quota-method-grid .subscription-channel-card[data-ai-quota-method="mobile"] .subscription-channel-icon {
  background: #dfe2df;
  color: #747b76;
}
.subscription-channel-card[data-payment-method="card"] p,
.subscription-channel-card[data-payment-method="mobile"] p,
.ai-quota-method-grid .subscription-channel-card[data-ai-quota-method="card"] p,
.ai-quota-method-grid .subscription-channel-card[data-ai-quota-method="mobile"] p {
  color: #777e79;
}
body[data-theme="dark"] .subscription-channel-card[data-payment-method="card"],
body[data-theme="dark"] .subscription-channel-card[data-payment-method="mobile"],
body[data-theme="dark"] .ai-quota-method-grid .subscription-channel-card[data-ai-quota-method="card"],
body[data-theme="dark"] .ai-quota-method-grid .subscription-channel-card[data-ai-quota-method="mobile"] {
  border-color: #515a54 !important;
  background: #303833 !important;
  color: #b1bbb4 !important;
}
body[data-theme="dark"] .subscription-channel-card[data-payment-method="card"]:hover:not(:disabled),
body[data-theme="dark"] .subscription-channel-card[data-payment-method="mobile"]:hover:not(:disabled),
body[data-theme="dark"] .ai-quota-method-grid .subscription-channel-card[data-ai-quota-method="card"]:hover:not(:disabled),
body[data-theme="dark"] .ai-quota-method-grid .subscription-channel-card[data-ai-quota-method="mobile"]:hover:not(:disabled) {
  border-color: #59635c !important;
  background: #353e38 !important;
  box-shadow: none;
}
body[data-theme="dark"] .subscription-channel-card[data-payment-method="card"] .subscription-channel-icon,
body[data-theme="dark"] .subscription-channel-card[data-payment-method="mobile"] .subscription-channel-icon,
body[data-theme="dark"] .ai-quota-method-grid .subscription-channel-card[data-ai-quota-method="card"] .subscription-channel-icon,
body[data-theme="dark"] .ai-quota-method-grid .subscription-channel-card[data-ai-quota-method="mobile"] .subscription-channel-icon {
  background: #3b453e;
  color: #aab5ad;
}
body[data-theme="dark"] .subscription-channel-card[data-payment-method="card"] p,
body[data-theme="dark"] .subscription-channel-card[data-payment-method="mobile"] p,
body[data-theme="dark"] .ai-quota-method-grid .subscription-channel-card[data-ai-quota-method="card"] p,
body[data-theme="dark"] .ai-quota-method-grid .subscription-channel-card[data-ai-quota-method="mobile"] p {
  color: #aab4ad;
}
.ai-quota-method-grid .subscription-channel-card[data-ai-quota-method="card"],
.ai-quota-method-grid .subscription-channel-card[data-ai-quota-method="mobile"] { opacity: .78 !important; }

.getting-started-card { padding-bottom: 18px; }
.getting-started-heading { margin-bottom: 14px; }
.getting-started-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.getting-started-steps li { min-width: 0; }
.getting-started-step { display: flex; min-height: 100%; align-items: flex-start; gap: 11px; padding: 13px 12px; border: 1px solid #dce7e0; border-radius: 10px; background: #fff; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.getting-started-step:hover { border-color: #9ecfba; background: #f3f8f4; transform: translateY(-1px); }
.getting-started-number { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border: 1px solid #b7d9c7; border-radius: 8px; background: #e8f3ed; color: #3f7758; font: 600 12px/1 Roboto, Arial, sans-serif; }
.getting-started-step strong, .getting-started-step small { display: block; }
.getting-started-step strong { margin: 1px 0 5px; color: #263a34; font: 600 13px/1.3 Roboto, Arial, sans-serif; }
.getting-started-step small { color: #64736c; font: 300 11px/1.5 Roboto, Arial, sans-serif; }
body[data-theme="dark"] .getting-started-step { border-color: #344740; background: #202f29; }
body[data-theme="dark"] .getting-started-step:hover { border-color: #75b496; background: #263c32; }
body[data-theme="dark"] .getting-started-number { border-color: #477c5e; background: #173b2a; color: #b9e2c7; }
body[data-theme="dark"] .getting-started-step strong { color: #e7eee9; }
body[data-theme="dark"] .getting-started-step small { color: #b5c2bb; }
@media (max-width: 980px) { .getting-started-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .getting-started-steps { grid-template-columns: 1fr; } .getting-started-step { min-height: 0; } }

/* 2026-11-20: reCAPTCHA kutucuğu — anahtar yokken boş kalır ve gizlenir. */
.recaptcha-slot { margin: 12px 0; }
