/* Native layout owns the admin palette from its first rendered frame.
   No route attributes or JavaScript-written inline colors are required. */
:root:has(.app-shell, [data-ram-hub-shell]) {
  --paper: #08080a;
  --card: #0e0e14;
  --panel: #0e0e14;
  --ink: #f8fafc;
  --ink-2: #e2e8f0;
  --muted: #94a3b8;
  --line: rgba(255, 255, 255, .08);
  --gold: #d4af37;
  --warm: #161622;
  color-scheme: dark;
  background: var(--paper);
}
html:has(.app-shell, [data-ram-hub-shell]) body,
.app-shell, .app-shell > .main,
[data-ram-hub-shell], .ram-standalone-hub-content {
  background: #08080a;
  color: #f8fafc;
}
.app-shell .topbar { background: #0c0c10; color: #f8fafc; }
.app-shell .panel { background: #0e0e14; }

/* Content-only repairs: the sidebar's white active item remains native. */
.app-shell main[data-ram-hub-view="home"] .content :is(.stat,.data-trust-strip,.quick-panel > button,.task-card > button),
.app-shell main[data-ram-hub-view="analytics"] .content :is(.stat,.data-trust-strip,.safe-note),
.app-shell main[data-ram-hub-view="capture"] .content :is(.wizard-progress,.wizard-tip,.optional-note),
.app-shell main[data-ram-hub-view="support"] .content .ram-support-triage {
  background: #181818;
  background-image: none;
  color: #f1f5f9;
  border-color: #414141;
}
.app-shell main[data-ram-hub-view="home"] .content :is(.stat,.data-trust-strip,.quick-panel > button,.task-card > button) :is(p,small,strong,b,em),
.app-shell main[data-ram-hub-view="capture"] .content :is(.wizard-tip,.optional-note) :is(p,small,strong),
.app-shell main[data-ram-hub-view="support"] .content .ram-support-triage :is(p,small,em) {
  color: #cbd0d5;
}
.app-shell main[data-ram-hub-view="home"] .content :is(.quick-panel,.task-card) > button > span,
.app-shell main[data-ram-hub-view="capture"] .content .photo-mode button.selected {
  background: var(--warm);
  color: #f1f5f9;
  border-color: #666;
}
.app-shell main[data-ram-hub-view="support"] .content .ram-support-triage select {
  background: #111;
  color: #f1f5f9;
  border-color: #414141;
}
.app-shell main[data-ram-hub-view="home"] .content .stat div,
.app-shell main[data-ram-hub-view="analytics"] .content .ram-analytics-status {
  color: #cbd0d5;
}
.app-shell main[data-ram-hub-view="support"] .content :is(.ram-support-statuses > span,.ram-support-ticket-list article) {
  background: #202020;
  color: #f1f5f9;
  border-color: #414141;
}

/* Existing Settings rules are !important; these equally narrow rules replace
   only their palette, without changing field or layout declarations. */
.app-shell main[data-ram-hub-view="settings"] .content :is(.panel.settings-card,.panel.integration-card,.ram-settings-card) {
  background: var(--panel) !important;
  color: var(--ink);
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-color: var(--line) !important;
}
.app-shell main[data-ram-hub-view="settings"] .content :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {
  background: var(--paper) !important;
  color: var(--ink) !important;
  border-color: #454850 !important;
}
.app-shell main[data-ram-hub-view="settings"] .content :is(button.primary,button.ram-save-btn) {
  background: var(--gold) !important;
  box-shadow: none !important;
  color: #151515 !important;
}
.app-shell main[data-ram-hub-view="settings"] .content button:not(.primary):not(.ram-save-btn) {
  background: var(--warm);
  color: #f1f5f9;
  border-color: #414141;
}
.app-shell main[data-ram-hub-view="settings"] .content :is(input,select,textarea,button):focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 3px;
}

.app-shell main[data-ram-hub-view="settings"] .content :is(.panel.integration-card,.ram-settings-card)::before {
  background: none !important;
}
.app-shell main[data-ram-hub-view="settings"] .content :is(.integration-card,.ram-settings-card) label:has(input[type="checkbox"]) {
  background: var(--warm) !important;
  border-color: var(--line) !important;
  color: var(--ink-2) !important;
}
.app-shell main[data-ram-hub-view="settings"] .content :is(input,select,textarea):focus {
  border-color: var(--gold) !important;
  box-shadow: none !important;
}

/* Settings: compact hierarchy and aligned actions within the existing cards. */
.app-shell main[data-ram-hub-view="settings"] .content > .welcome-row.compact {
  min-height: 0;
  padding-block: 24px;
  margin-bottom: 8px;
  gap: 16px;
}
.app-shell main[data-ram-hub-view="settings"] .welcome-row.compact h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.5;
  margin-block: 8px 12px;
}
.app-shell main[data-ram-hub-view="settings"] .welcome-row.compact p {
  max-width: 72ch;
  color: var(--muted);
  line-height: 1.9;
}
.app-shell main[data-ram-hub-view="settings"] .content :is(.panel.integration-card,.ram-settings-card) {
  gap: 14px !important;
}
.app-shell main[data-ram-hub-view="settings"] .content :is(.integration-card,.ram-settings-card) > p {
  min-height: 2lh;
}
.app-shell main[data-ram-hub-view="settings"] .content :is(.integration-card,.ram-settings-card) :is(input:not([type="checkbox"]),select,textarea) {
  min-height: 44px;
}
.app-shell main[data-ram-hub-view="settings"] .content :is(.integration-card,.ram-settings-card) > :is(button.primary,button.ram-save-btn) {
  margin-top: auto !important;
  min-height: 44px;
  border-radius: 10px !important;
}
.app-shell main[data-ram-hub-view="settings"] .content :is(button.primary,button.ram-save-btn):hover:not(:disabled) {
  background: #e1bf52 !important;
  transform: none !important;
}
@media (max-width:600px) {
  .app-shell main[data-ram-hub-view="settings"] .content > .welcome-row.compact {
    padding-block: 16px;
    gap: 12px;
  }
  .app-shell main[data-ram-hub-view="settings"] .content :is(.panel.integration-card,.ram-settings-card) {
    padding: 20px 18px !important;
  }
}

/* Complete the existing view palette at its actual component boundaries.
   The native sidebar, active item and all financial styles remain unchanged. */
.app-shell main[data-ram-hub-view="analytics"] .content .welcome-row[data-ram-analytics-hero="1"],
.app-shell main[data-ram-hub-view="analytics"] .content :is(.ram-analytics-kpi,.ram-analytics-panel) {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}
.app-shell main[data-ram-hub-view="analytics"] .ram-analytics-actions .ram-analytics-refresh {
  background: var(--warm);
  color: var(--ink);
  border-color: #59616f;
}
.app-shell main[data-ram-hub-view="analytics"] .ram-analytics-actions .ram-analytics-status {
  color: var(--ink-2);
}
.app-shell main[data-ram-hub-view="capture"] .capture-form .camera-zone {
  background: var(--warm);
  color: var(--ink-2);
  border-color: #59616f;
}
.app-shell main[data-ram-hub-view="capture"] .camera-zone > :is(span,b) {
  color: var(--ink);
}
.app-shell main[data-ram-hub-view="capture"] .camera-zone > small {
  color: var(--ink-2);
}
.app-shell .topbar .site-preview-link {
  background: var(--warm);
  color: var(--ink);
  border: 1px solid #59616f;
}
.app-shell main[data-ram-hub-view="home"] .panel-head > .text-button:not(:disabled) {
  background: transparent;
  color: var(--ink-2);
}
.app-shell main[data-ram-hub-view="home"] .panel-head > .text-button:not(:disabled):hover,
.app-shell main[data-ram-hub-view="analytics"] .ram-analytics-actions .ram-analytics-refresh:not(:disabled):hover,
.app-shell .topbar .site-preview-link:hover {
  background: var(--warm);
  color: var(--ink);
  border-color: var(--gold);
}
.app-shell main[data-ram-hub-view="home"] .panel-head > .text-button:focus-visible,
.app-shell main[data-ram-hub-view="analytics"] .ram-analytics-actions .ram-analytics-refresh:focus-visible,
.app-shell main[data-ram-hub-view="capture"] .camera-zone:focus-within,
.app-shell .topbar .site-preview-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.app-shell main[data-ram-hub-view="home"] .content :is(.stat,.data-trust-strip,.quick-panel > button,.task-card > button),
.app-shell main[data-ram-hub-view="analytics"] .content :is(.stat,.data-trust-strip,.safe-note),
.app-shell main[data-ram-hub-view="capture"] .content :is(.wizard-progress,.wizard-tip,.optional-note) {
  background: var(--panel);
}

.app-shell main[data-ram-hub-view="analytics"] .content .welcome-row[data-ram-analytics-hero="1"] .eyebrow {
  background: var(--warm);
  color: var(--ink-2);
  border-color: var(--line);
}
.app-shell main[data-ram-hub-view="analytics"] .content .welcome-row[data-ram-analytics-hero="1"] p {
  color: var(--ink-2);
}

/* Native warehouse picker: keep its value readable in the dark hub. */
.app-shell main .inventory-warehouse-select > select {
  background: var(--panel, #0e0e14);
  color: var(--ink, #f8fafc);
  border: 1px solid #59616f;
  color-scheme: dark;
}
.app-shell main .inventory-warehouse-select > select option {
  background: #0e0e14;
  color: #f8fafc;
}
.app-shell main .inventory-warehouse-select > select:focus-visible {
  outline: 2px solid var(--gold, #d4af37);
  outline-offset: 3px;
}

/* Replace only the legacy analytics reports with the current accessible view. */
.app-shell main .growth-grid[data-ram-analytics-original="1"],
.app-shell main .stats-grid[data-ram-analytics-original="1"] {
  display: none !important;
}

/* Approved content editor: real controls, grouped form and live preview. */
.ram-editor-redesign .ram-telegram-dialog {
  width: min(1240px, calc(100vw - 32px)) !important;
  max-width:1240px !important;
  height:min(94dvh,1040px) !important;
  border-color:#44464d !important;
  background:#101116 !important;
}
.ram-editor-redesign .ram-tg-modal-header { padding:22px 26px !important; flex-shrink:0; background:#121318 !important; }
.ram-editor-redesign .ram-tg-modal-header h2 { font-size:24px !important; margin:10px 0 6px !important; }
.ram-editor-redesign .ram-tg-modal-header small { font-size:13px !important; color:#b8bec8 !important; }
.ram-editor-redesign .ram-tg-modal-close { width:44px !important; height:44px !important; min-width:44px; display:grid !important; place-items:center; padding:0 !important; }
.ram-editor-redesign .ram-tg-modal-body { grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); gap:18px; padding:20px 24px; align-items:start; }
.ram-editor-redesign .ram-tg-modal-body > .ram-editor-form-column { grid-column:1; }
.ram-editor-redesign .ram-tg-modal-body > .ram-editor-preview-column { grid-column:2; }
.ram-editor-form-column,.ram-editor-preview-column { display:grid; gap:16px; min-width:0; align-content:start; }
.ram-editor-redesign .ram-editor-panel,.ram-editor-redesign .ram-tg-editor-summary { background:#131419; border:1px solid #34363e; border-radius:14px; padding:18px; min-width:0; margin:0; }
.ram-editor-redesign .ram-editor-panel > h3 { margin:0 0 18px; color:#f1f5f9; font-size:16px; }
.ram-editor-redesign .ram-editor-content-panel { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.ram-editor-redesign .ram-editor-content-panel > h3,.ram-editor-redesign [data-editor-section="1"] { grid-column:1/-1; }
.ram-editor-redesign .ram-tg-form-group { margin:0; min-width:0; gap:8px; }
.ram-editor-redesign .ram-tg-label { margin:0 0 6px !important; color:#c6ccd5 !important; font-size:13px !important; font-weight:500 !important; }
.ram-editor-redesign :is(.ram-tg-title-input,.ram-tg-product-select,.ram-tg-channel-select,.ram-tg-caption-area,.ram-persian-datetime input) { background:#191a21 !important; color:#f1f5f9 !important; border:1px solid #444750 !important; border-radius:9px !important; padding:11px 12px !important; font-size:13px !important; min-height:44px; width:100%; box-sizing:border-box; }
.ram-editor-redesign .ram-tg-caption-area { min-height:110px !important; resize:vertical; line-height:1.9; }
.ram-editor-redesign .ram-editor-schedule-panel { display:grid; gap:18px; }
.ram-editor-redesign .ram-editor-schedule-panel > h3 { margin:0; }
.ram-editor-redesign .ram-persian-date-row { gap:12px; }
.ram-editor-redesign .ram-tg-time-presets { display:flex; flex-wrap:wrap; gap:8px; margin:8px 0 0; }
.ram-editor-redesign .ram-tg-time-presets button { min-height:36px; padding:6px 10px !important; font-size:11px !important; background:#1a1b22 !important; border-color:#444750 !important; color:#cbd0da !important; }
.ram-editor-redesign .ram-tg-timezone-note { display:none; }
.ram-editor-redesign .ram-tg-caption-head { margin:0 0 8px; }
.ram-editor-redesign .ram-tg-media-box { display:grid; background:none; border:0; padding:0; gap:12px; }
.ram-editor-redesign .ram-tg-media-preview { width:100%; height:300px; border:0; border-radius:10px; background:#202126; }
.ram-editor-redesign .ram-tg-thumb { object-fit:contain; }
.ram-editor-redesign .ram-editor-preview-title { font-size:15px; margin:0; line-height:1.8; overflow-wrap:anywhere; }
.ram-editor-redesign .ram-editor-preview-caption { white-space:pre-wrap; overflow-wrap:anywhere; margin:0; font-size:13px; line-height:1.9; color:#c6ccd5; max-height:180px; overflow:auto; }
.ram-editor-redesign .ram-editor-image-options { border-top:1px solid #34363e; padding-top:10px; }
.ram-editor-redesign summary { cursor:pointer; color:#d9dde4; font-size:13px; min-height:36px; display:list-item; padding:6px 0; }
.ram-editor-redesign .ram-editor-advanced > :not(summary),.ram-editor-redesign .ram-editor-image-options > :not(summary) { margin-top:12px; }
.ram-editor-redesign .ram-tg-caption-tools { display:flex; flex-wrap:wrap; gap:8px; }
.ram-editor-redesign .ram-tg-summary-copy { grid-template-columns:1fr; gap:10px; margin:0; }
.ram-editor-redesign .ram-tg-summary-copy > div { display:flex; justify-content:space-between; align-items:baseline; gap:14px; border-bottom:1px solid #2b2d34; padding-bottom:8px; }
.ram-editor-redesign .ram-tg-summary-copy dt { flex-shrink:0; color:#aeb6c4; font-size:12px; }
.ram-editor-redesign .ram-tg-summary-copy dd { text-align:end; font-size:12px; }
.ram-editor-redesign .ram-tg-editor-summary > small { display:block; margin-top:12px; color:#aeb6c4; font-size:11px; }
.ram-editor-redesign .ram-tg-modal-footer { padding:14px 24px !important; background:#131419 !important; }
.ram-editor-redesign .ram-tg-footer-actions { gap:12px; }
.ram-editor-redesign .ram-tg-footer-actions button { min-height:44px; border-radius:9px; font-size:13px; }
.ram-editor-redesign .ram-tg-schedule-btn { background:#d4af37 !important; color:#17140a !important; box-shadow:none !important; }
.ram-editor-redesign .ram-tg-publish-now-btn { background:transparent !important; color:#b9c1cf !important; border-color:#444750 !important; box-shadow:none !important; margin-inline-start:auto; }
.ram-editor-redesign .ram-tg-cancel-btn { background:transparent !important; color:#cbd0da !important; }
.ram-editor-redesign :is(button,input,select,textarea,summary):focus-visible { outline:2px solid #d4af37 !important; outline-offset:3px; }
@media(max-width:760px) {
 .ram-editor-redesign .ram-telegram-dialog { width:calc(100vw - 16px) !important; height:96dvh !important; }
 .ram-editor-redesign .ram-tg-modal-header { padding:14px !important; }
 .ram-editor-redesign .ram-tg-modal-header h2 { font-size:19px !important; }
 .ram-editor-redesign .ram-tg-modal-body { grid-template-columns:minmax(0,1fr); padding:12px; gap:12px; }
 .ram-editor-redesign .ram-tg-modal-body > .ram-editor-preview-column { grid-column:1; }
 .ram-editor-redesign .ram-editor-content-panel { grid-template-columns:minmax(0,1fr); }
 .ram-editor-redesign .ram-editor-content-panel > * { grid-column:1; }
 .ram-editor-redesign .ram-editor-panel,.ram-editor-redesign .ram-tg-editor-summary { padding:14px; }
 .ram-editor-redesign .ram-tg-media-preview { height:230px; }
 .ram-editor-redesign .ram-tg-modal-footer { padding:10px 12px !important; }
 .ram-editor-redesign .ram-tg-footer-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
 .ram-editor-redesign .ram-tg-schedule-btn { grid-column:1/-1; }
 .ram-editor-redesign .ram-tg-publish-now-btn { margin:0; font-size:11px; }
}

.ram-editor-redesign :is(.ram-editor-advanced,.ram-editor-image-options,.ram-editor-product-search):not([open]) > :not(summary) { display:none !important; }
.ram-editor-redesign .ram-editor-product-search { order:2; }
.ram-editor-redesign .ram-product-picker-tools { margin:8px 0 0; }
.ram-editor-redesign .ram-tg-modal-badge { font-size:11px !important; padding:5px 10px !important; }
.ram-editor-redesign .ram-tg-modal-title-box { gap:0 !important; }

.ram-editor-redesign .ram-tg-editor-summary .ram-tg-summary-copy { grid-template-columns:minmax(0,1fr); }
.ram-editor-redesign .ram-editor-content-panel { gap:12px; }
.ram-editor-redesign .ram-editor-content-panel > h3 { margin:0; }
.ram-editor-redesign .ram-tg-form-group .ram-tg-label { margin:0 !important; }
.ram-editor-redesign .ram-tg-form-group > :is(input,select) { margin-top:0 !important; }
.ram-editor-redesign .ram-editor-panel .ram-tg-form-group { gap:6px; }
.ram-editor-redesign .ram-tg-modal-header .ram-tg-modal-title-box h2 { font-size:22px !important; line-height:1.4 !important; margin:6px 0 !important; }
.ram-editor-redesign .ram-tg-modal-header .ram-tg-modal-title-box small { line-height:1.6 !important; }
.ram-editor-redesign .ram-tg-modal-header .ram-tg-modal-badge { line-height:1.4 !important; }
.ram-editor-redesign .ram-editor-schedule-panel { gap:12px; }
.ram-editor-redesign .ram-persian-datetime > small { font-size:11px; }
.ram-editor-redesign .ram-tg-media-preview { height:260px; }
@media(max-width:760px) { .ram-editor-redesign .ram-tg-media-preview { height:220px; } }

/* Accounting-only polish; business values and native controls remain unchanged. */
.app-shell main[data-ram-hub-view="accounting"] .ram-acc-surface {
  --acc-panel:#17191f; --acc-border:#373d47; --acc-muted:#b8c0cd;
  padding-top:24px; gap:16px;
}
.app-shell main[data-ram-hub-view="accounting"] .accounting-welcome {
  background:#121419; border:1px solid #303640; padding:20px 24px; border-radius:16px;
}
.app-shell main[data-ram-hub-view="accounting"] .accounting-welcome h2 { font-size:clamp(22px,2vw,30px) !important; line-height:1.5 !important; margin:0 0 8px !important; }
.app-shell main[data-ram-hub-view="accounting"] .accounting-welcome p { color:#b8c0cd; }
.app-shell main[data-ram-hub-view="accounting"] .period-control { background:#1b1e25; color:#cbd5e1; border:1px solid #414957; border-radius:12px; }
.app-shell main[data-ram-hub-view="accounting"] .ram-acc-surface :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  background:#12151b; color:#f1f5f9; border-color:#4b5565; color-scheme:dark;
}
.app-shell main[data-ram-hub-view="accounting"] .ram-acc-surface :is(input,textarea)::placeholder { color:#a1acbc; opacity:1; }
.app-shell main[data-ram-hub-view="accounting"] .accounting-stats .stat { background:#17191f; border:1px solid #373d47; border-radius:14px; min-height:142px; }
.app-shell main[data-ram-hub-view="accounting"] .accounting-stats .stat :is(span,small) { color:#bdc6d4; }
.app-shell main[data-ram-hub-view="accounting"] .accounting-stats .ram-acc-kpi-value { color:#f1f5f9; }
.app-shell main[data-ram-hub-view="accounting"] .ram-acc-primary-actions { padding:4px 0; gap:10px; align-items:center; }
.app-shell main[data-ram-hub-view="accounting"] .ram-acc-primary-actions .ram-acc-primary { background:#d4af37 !important; color:#17140a !important; border-color:#d4af37 !important; font-weight:700; }
.app-shell main[data-ram-hub-view="accounting"] .ram-acc-surface :is(.ram-acc-button,.ledger-filters button,.ledger-server-export a,.report-export-actions a,.report-export-actions button,.entry-actions button,.accounting-settings-manager button) { background:#1c2028; color:#e2e8f0; border-color:#46505e; }
.app-shell main[data-ram-hub-view="accounting"] .ledger-filters button.selected { background:#332e1e; color:#f1d57c; border-color:#86723e; }
.app-shell main[data-ram-hub-view="accounting"] .ram-acc-surface :is(.manual-entry,.accounting-editor,.accounting-report-builder,.table-panel,.accounting-settings-manager) { background:#17191f; color:#f1f5f9; border-color:#373d47; }
.app-shell main[data-ram-hub-view="accounting"] .ram-acc-surface .accounting-source-actions label { background:#1c2028; color:#e2e8f0; border-color:#46505e; }
.app-shell main[data-ram-hub-view="accounting"] .accounting-source-actions label :is(span,small,b) { color:inherit; }
.app-shell main[data-ram-hub-view="accounting"] .ram-acc-secondary-actions { border-top:1px solid #303640; padding-top:16px; }
.app-shell main[data-ram-hub-view="accounting"] .ram-acc-surface .ram-acc-editor-close { background:#242a33; color:#f1f5f9; border:1px solid #4b5565; display:grid; place-items:center; }
.app-shell main[data-ram-hub-view="accounting"] .ram-acc-surface .manual-entry > .primary { background:#d4af37; color:#17140a; border:1px solid #d4af37; }
.app-shell main[data-ram-hub-view="accounting"] .ram-acc-surface .manual-entry .ram-accounting-optional-toggle { background:#20252d; color:#e2e8f0; }
.app-shell main[data-ram-hub-view="accounting"] .ram-acc-surface .accounting-entry-table .table-row.head { color:#cbd5e1; background:#232832; }
.app-shell main[data-ram-hub-view="accounting"] .ram-acc-surface :is(button,a,input,select,textarea,summary):focus-visible { outline:2px solid #d4af37; outline-offset:3px; }
@media(max-width:700px) {
 .app-shell main[data-ram-hub-view="accounting"] .ram-acc-surface { padding-top:12px; gap:12px; }
 .app-shell main[data-ram-hub-view="accounting"] .accounting-welcome { padding:16px; }
 .app-shell main[data-ram-hub-view="accounting"] .accounting-welcome h2 { font-size:23px !important; }
 .app-shell main[data-ram-hub-view="accounting"] .ram-acc-primary-actions .ram-acc-primary { grid-column:1 / -1; }
 .app-shell main[data-ram-hub-view="accounting"] .ram-acc-surface .accounting-stats .stat { min-height:150px; }
 .app-shell main[data-ram-hub-view="accounting"] .ram-acc-surface .period-control { min-width:0; width:100%; box-sizing:border-box; }
}

.app-shell main[data-ram-hub-view="accounting"] .ram-acc-surface .manual-entry .category-selector button {
 background:#232933 !important; color:#e2e8f0 !important; border:1px solid #4b5565 !important; font-size:12px; min-height:44px;
}
.app-shell main[data-ram-hub-view="accounting"] .ram-acc-surface .manual-entry .category-selector button.selected {
 background:#39311d !important; color:#f3d979 !important; border-color:#b99c49 !important;
}
.app-shell main[data-ram-hub-view="accounting"] .ram-acc-surface .ram-acc-primary-actions .ram-acc-button.ram-acc-primary {
 background:#d4af37 !important; color:#17140a !important; border-color:#d4af37 !important;
}

.app-shell main[data-ram-hub-view="accounting"] .ram-acc-surface :is(.manual-entry,.accounting-editor) { background:#17191f !important; }

/* Retired accounting controls stay outside focus and accessibility navigation. */
[data-ram-accounting-retired] { display: none !important; }
