:root {
    --oc-primary: #1d4ed8;
    --oc-primary-dark: #1e40af;
    --oc-page: #f3f4f6;
    --oc-surface: #ffffff;
    --oc-text: #111827;
    --oc-muted: #6b7280;
    --oc-border: #e5e7eb;
    --oc-success: #16a34a;
    --oc-warning: #d97706;
    --oc-danger: #dc2626;
    --oc-font: "Segoe UI", Arial, sans-serif;
    --oc-font-size: 14px;
    --oc-heading-scale: 1.25;
    --oc-radius: 10px;
    --oc-control-height: 40px;
    --oc-sidebar-width: 264px;
    --oc-spacing: 24px;
    --oc-shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
    --oc-focus: 0 0 0 3px color-mix(in srgb, var(--oc-primary) 18%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; font-size: var(--oc-font-size); }
body { min-height: 100vh; margin: 0; color: var(--oc-text); font-family: var(--oc-font); background: var(--oc-page); }
a { color: var(--oc-primary); text-decoration: none; }
a:hover { color: var(--oc-primary-dark); }
button, input, select, textarea { font: inherit; }
.onecore-icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--oc-sidebar-width) minmax(0, 1fr); }
.app-sidebar { position: sticky; top: 0; width: var(--oc-sidebar-width); height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; background: #0f2744; color: #fff; z-index: 40; transition: width .2s ease, transform .2s ease, box-shadow .2s ease; }
.brand { min-height: 76px; display: flex; align-items: center; gap: 12px; padding: 0 22px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand:hover { color: #fff; background: rgba(255,255,255,.035); }
.brand-mark { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--oc-primary); color: #fff; font-size: 21px; font-weight: 800; box-shadow: 0 5px 16px rgba(0,0,0,.18); }
.brand-has-logo { overflow: hidden; }
.brand-logo-frame { width: 100%; max-width: 205px; min-height: 52px; display: flex; align-items: center; padding: 4px 7px; border-radius: 8px; overflow: hidden; }
.brand-logo-frame-light { background: rgba(255,255,255,.96); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.brand-logo { width: 100%; height: auto; max-height: 44px; flex: 0 0 auto; object-fit: contain; object-position: left center; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-size: 15px; letter-spacing: .13em; }
.brand-copy small { margin-top: 4px; color: #b8c8da; font-size: 12px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 18px 14px; }
.nav-group { min-width: 0; }
.nav-group-toggle { margin: 16px 10px 8px; color: #8fa6bf; font-size: 10px; font-weight: 700; letter-spacing: .12em; list-style: none; text-transform: uppercase; }
.nav-group-toggle::-webkit-details-marker { display: none; }
.nav-group:first-child .nav-group-toggle { margin-top: 0; }
.navigation-left .nav-group-toggle { pointer-events: none; }
.nav-link-onecore { min-height: 42px; display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin-bottom: 4px; border-radius: 8px; color: #dce7f2; font-weight: 600; white-space: nowrap; }
.nav-link-onecore:hover, .nav-link-onecore:focus-visible { color: #fff; background: rgba(255,255,255,.09); outline: none; }
.sidebar-footer { padding: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-user { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 9px; background: rgba(255,255,255,.065); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); }
.sidebar-user-copy { min-width: 0; display: flex; flex-direction: column; }
.sidebar-user-copy strong, .sidebar-user-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy strong { font-size: 12px; }
.sidebar-user-copy small { color: #9fb1c5; font-size: 10px; }

.app-main { min-width: 0; min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.app-header { position: sticky; top: 0; z-index: 30; min-height: 68px; display: flex; align-items: center; gap: 14px; padding: 10px var(--oc-spacing); background: color-mix(in srgb, var(--oc-surface) 94%, transparent); border-bottom: 1px solid var(--oc-border); backdrop-filter: blur(12px); }
.header-title { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.header-title span { color: var(--oc-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.header-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions form { margin: 0; }
.icon-button { width: var(--oc-control-height); height: var(--oc-control-height); display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--oc-border); border-radius: 8px; color: var(--oc-muted); background: var(--oc-surface); cursor: pointer; }
.icon-button:hover { color: var(--oc-primary); border-color: color-mix(in srgb, var(--oc-primary) 45%, var(--oc-border)); }
.icon-button:disabled { opacity: .38; cursor: not-allowed; color: var(--oc-muted); border-color: var(--oc-border); }
.icon-button:focus-visible, .header-logout:focus-visible, .button:focus-visible { outline: none; box-shadow: var(--oc-focus); }
.mobile-menu-button { display: none; }
.navigation-preferences { position: relative; }
.navigation-preferences > summary { list-style: none; }
.navigation-preferences > summary::-webkit-details-marker { display: none; }
.navigation-preferences[open] > summary { color: var(--oc-primary); border-color: color-mix(in srgb, var(--oc-primary) 45%, var(--oc-border)); }
.navigation-preferences-menu { position: absolute; top: calc(100% + 9px); right: 0; z-index: 60; width: 310px; padding: 10px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: var(--oc-surface); box-shadow: 0 16px 38px rgba(15, 23, 42, .18); }
.navigation-preferences-menu > strong, .left-navigation-options > strong { display: block; padding: 7px 9px 6px; color: var(--oc-muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.navigation-preferences-menu button { width: 100%; display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: center; gap: 8px; padding: 9px; border: 0; border-radius: 7px; color: var(--oc-text); background: transparent; text-align: left; cursor: pointer; }
.navigation-preferences-menu button:hover, .navigation-preferences-menu button:focus-visible { outline: none; background: color-mix(in srgb, var(--oc-primary) 7%, var(--oc-surface)); }
.navigation-preferences-menu button.is-selected { color: var(--oc-primary); background: color-mix(in srgb, var(--oc-primary) 10%, var(--oc-surface)); }
.navigation-preferences-menu button > .onecore-icon { justify-self: center; }
.navigation-preferences-menu button span { min-width: 0; display: flex; flex-direction: column; }
.navigation-preferences-menu button b { font-size: 12px; }
.navigation-preferences-menu button small { margin-top: 2px; color: var(--oc-muted); font-size: 10px; }
.left-navigation-options { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--oc-border); }
.header-logout { min-height: var(--oc-control-height); display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid var(--oc-border); border-radius: 8px; color: var(--oc-muted); background: var(--oc-surface); cursor: pointer; }
.header-logout:hover { color: var(--oc-danger); border-color: color-mix(in srgb, var(--oc-danger) 38%, var(--oc-border)); }
.app-content { min-width: 0; padding: var(--oc-spacing); }
.app-footer { display: flex; justify-content: space-between; gap: 18px; padding: 15px var(--oc-spacing); color: var(--oc-muted); background: var(--oc-surface); border-top: 1px solid var(--oc-border); font-size: 12px; }
.sidebar-backdrop { display: none; }

/* Per-user desktop navigation modes. Collapsed navigation expands over content on hover. */
.navigation-collapsed .app-shell { grid-template-columns: 72px minmax(0, 1fr); }
.navigation-collapsed .app-sidebar { width: 72px; box-shadow: 5px 0 15px rgba(15,23,42,.06); }
.navigation-collapsed .app-sidebar:hover, .navigation-collapsed .app-sidebar:focus-within { width: var(--oc-sidebar-width); box-shadow: 12px 0 28px rgba(15,23,42,.22); }
.navigation-collapsed .brand { padding-inline: 17px; }
.navigation-collapsed .brand-has-logo { justify-content: flex-start; padding-inline: 11px; }
.navigation-collapsed .brand-has-logo .brand-logo-frame { width: 205px; min-width: 205px; }
.navigation-collapsed .brand-copy, .navigation-collapsed .nav-link-onecore span, .navigation-collapsed .sidebar-user-copy { width: 0; opacity: 0; pointer-events: none; transition: opacity .12s ease; }
.navigation-collapsed .nav-group-toggle { visibility: hidden; }
.navigation-collapsed .app-sidebar:hover .brand-copy,
.navigation-collapsed .app-sidebar:focus-within .brand-copy,
.navigation-collapsed .app-sidebar:hover .nav-link-onecore span,
.navigation-collapsed .app-sidebar:focus-within .nav-link-onecore span,
.navigation-collapsed .app-sidebar:hover .sidebar-user-copy,
.navigation-collapsed .app-sidebar:focus-within .sidebar-user-copy { width: auto; opacity: 1; pointer-events: auto; }
.navigation-collapsed .app-sidebar:hover .nav-group-toggle,
.navigation-collapsed .app-sidebar:focus-within .nav-group-toggle { visibility: visible; }

.navigation-top .app-shell { display: block; }
.navigation-top .app-sidebar { position: sticky; width: 100%; height: 64px; flex-direction: row; align-items: stretch; overflow: visible; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.navigation-top .brand { min-width: 225px; min-height: 64px; padding-inline: 20px; border-right: 1px solid rgba(255,255,255,.1); border-bottom: 0; }
.navigation-top .brand-logo-frame { width: 195px; min-height: 48px; }
.navigation-top .brand-logo { max-height: 40px; }
.navigation-top .sidebar-nav { display: flex; align-items: center; gap: 5px; padding: 9px 14px; overflow: visible; }
.navigation-top .nav-group { position: relative; }
.navigation-top .nav-group-toggle { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 9px 13px; margin: 0; border-radius: 8px; color: #dce7f2; cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.navigation-top .nav-group-toggle::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
.navigation-top .nav-group[open] .nav-group-toggle { color: #fff; background: rgba(255,255,255,.1); }
.navigation-top .nav-group[open] .nav-group-toggle::after { transform: rotate(225deg) translate(-2px,-1px); }
.navigation-top .nav-group-menu { position: absolute; top: calc(100% + 7px); left: 0; z-index: 70; width: max-content; min-width: 245px; max-width: 320px; padding: 8px; border: 1px solid var(--oc-border); border-radius: 10px; background: var(--oc-surface); box-shadow: 0 18px 38px rgba(15,39,68,.22); }
.navigation-top .nav-group-menu::before { content: ""; position: absolute; top: -8px; left: 22px; width: 14px; height: 14px; border-top: 1px solid var(--oc-border); border-left: 1px solid var(--oc-border); background: var(--oc-surface); transform: rotate(45deg); }
.navigation-top .nav-group:not([open]) .nav-group-menu { display: none; }
.navigation-top .nav-link-onecore { position: relative; margin: 0; padding: 10px 11px; color: var(--oc-text); white-space: normal; }
.navigation-top .nav-link-onecore + .nav-link-onecore { margin-top: 2px; }
.navigation-top .nav-link-onecore .onecore-icon { color: var(--oc-primary); }
.navigation-top .nav-link-onecore:hover, .navigation-top .nav-link-onecore:focus-visible { color: var(--oc-primary); background: color-mix(in srgb, var(--oc-primary) 7%, var(--oc-surface)); }
.navigation-top .sidebar-footer { display: none; }
.navigation-top .app-header { top: 64px; }
.navigation-top .left-navigation-options { display: none; }

.page-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-heading-actions { align-items: flex-end; }
.eyebrow { display: block; margin-bottom: 5px; color: var(--oc-primary); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; color: var(--oc-text); line-height: 1.2; }
h1 { font-size: calc(var(--oc-font-size) * var(--oc-heading-scale) * 1.45); letter-spacing: -.025em; }
h2 { font-size: calc(var(--oc-font-size) * var(--oc-heading-scale)); }
.page-heading p, .content-card-header p, .form-section-heading p { margin: 6px 0 0; color: var(--oc-muted); }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
.metric-grid-four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.metric-card { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: var(--oc-surface); box-shadow: var(--oc-shadow); }
.metric-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; }
.metric-icon-blue { color: var(--oc-primary); background: color-mix(in srgb, var(--oc-primary) 11%, white); }
.metric-icon-green { color: var(--oc-success); background: color-mix(in srgb, var(--oc-success) 11%, white); }
.metric-icon-amber { color: var(--oc-warning); background: color-mix(in srgb, var(--oc-warning) 13%, white); }
.metric-icon-violet { color: #7c3aed; background: color-mix(in srgb, #7c3aed 10%, white); }
.metric-card > div { min-width: 0; display: flex; flex-direction: column; }
.metric-card span:not(.metric-icon) { color: var(--oc-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.metric-card strong { margin: 2px 0; font-size: 19px; }
.metric-card small { overflow: hidden; color: var(--oc-muted); text-overflow: ellipsis; white-space: nowrap; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 16px; }
.compact-dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.compact-dashboard-grid .metric-card { display: flex; align-items: flex-start; flex-direction: column; gap: 2px; }
.compact-dashboard-grid .metric-card strong { font-size: 24px; }
.status-pending { color: color-mix(in srgb, var(--oc-warning) 80%, black); border-color: color-mix(in srgb, var(--oc-warning) 35%, white); background: color-mix(in srgb, var(--oc-warning) 10%, white); }
.dashboard-area-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 20px; }
.dashboard-area-item { min-width: 0; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 64px; padding: 9px 8px; border-bottom: 1px solid var(--oc-border); }
.dashboard-area-item:nth-last-child(-n+2) { border-bottom: 0; }
.dashboard-area-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: var(--oc-primary); background: color-mix(in srgb, var(--oc-primary) 9%, white); }
.dashboard-area-item > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dashboard-area-item small { color: var(--oc-muted); font-size: 10px; }
.dashboard-area-item a { font-size: 11px; font-weight: 700; }
.dashboard-quick-links { display: grid; gap: 1px; background: var(--oc-border); }
.dashboard-quick-links > a { min-height: 68px; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px 18px; color: var(--oc-text); background: var(--oc-surface); }
.dashboard-quick-links > a:hover { color: var(--oc-primary); background: color-mix(in srgb, var(--oc-primary) 4%, var(--oc-surface)); }
.dashboard-quick-links .onecore-icon { color: var(--oc-primary); }
.dashboard-quick-links span { display: flex; flex-direction: column; gap: 3px; }
.dashboard-quick-links small { color: var(--oc-muted); font-size: 10px; }

.content-card { border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: var(--oc-surface); box-shadow: var(--oc-shadow); }
.content-card-header { padding: 18px 20px; border-bottom: 1px solid var(--oc-border); }
.status-list { padding: 4px 20px; }
.status-item { min-height: 52px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--oc-border); }
.status-item:last-child { border-bottom: 0; }
.status-item .onecore-icon { color: var(--oc-success); }
.status-item strong { color: var(--oc-success); font-size: 12px; }

.notice { display: flex; align-items: center; gap: 10px; padding: 11px 13px; margin-bottom: 16px; border: 1px solid; border-radius: 8px; }
.notice-success { color: color-mix(in srgb, var(--oc-success) 80%, black); border-color: color-mix(in srgb, var(--oc-success) 35%, white); background: color-mix(in srgb, var(--oc-success) 9%, white); }
.notice-error { color: color-mix(in srgb, var(--oc-danger) 82%, black); border-color: color-mix(in srgb, var(--oc-danger) 35%, white); background: color-mix(in srgb, var(--oc-danger) 8%, white); }

.onecore-form input:not([type="checkbox"]):not([type="color"]), .onecore-form select, .onecore-form textarea { width: 100%; min-height: var(--oc-control-height); padding: 8px 11px; border: 1px solid var(--oc-border); border-radius: 7px; color: var(--oc-text); background: var(--oc-surface); transition: border-color .15s ease, box-shadow .15s ease; }
.onecore-form input:focus, .onecore-form select:focus, .onecore-form textarea:focus { outline: none; border-color: var(--oc-primary); box-shadow: var(--oc-focus); }
.form-section { padding: 20px; border-bottom: 1px solid var(--oc-border); }
.form-section:last-of-type { border-bottom: 0; }
.form-section-heading { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.form-section-heading > .onecore-icon { margin-top: 1px; color: var(--oc-primary); }
.form-grid { display: grid; gap: 16px; }
.form-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-field { min-width: 0; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { display: block; margin: 0 0 6px; color: var(--oc-text); font-size: 12px; font-weight: 650; }
.field-validation { display: block; min-height: 18px; margin-top: 4px; color: var(--oc-danger); font-size: 11px; }
.validation-summary { margin-bottom: 16px; color: var(--oc-danger); }
.validation-summary:empty, .validation-summary-valid { display: none; }
.validation-summary ul { margin: 0; padding: 11px 12px 11px 30px; border: 1px solid color-mix(in srgb, var(--oc-danger) 35%, white); border-radius: 7px; background: color-mix(in srgb, var(--oc-danger) 8%, white); }
.input-with-icon { position: relative; }
.input-with-icon > .onecore-icon { position: absolute; left: 12px; top: 50%; z-index: 1; color: var(--oc-muted); transform: translateY(-50%); pointer-events: none; }
.input-with-icon > input { padding-left: 40px !important; }
.color-field > div { display: grid; grid-template-columns: var(--oc-control-height) minmax(0,1fr); }
.color-field input[type="color"] { width: var(--oc-control-height); height: var(--oc-control-height); padding: 4px; border: 1px solid var(--oc-border); border-right: 0; border-radius: 7px 0 0 7px; background: var(--oc-surface); cursor: pointer; }
.color-field input[type="text"] { border-radius: 0 7px 7px 0 !important; text-transform: uppercase; }
.field-help { display: block; margin-top: 5px; color: var(--oc-muted); font-size: 10px; }
.input-with-suffix { display: grid; grid-template-columns: minmax(0,1fr) 78px; gap: 6px; }
.notice-info { border-color: color-mix(in srgb, var(--oc-primary) 35%, var(--oc-border)); background: color-mix(in srgb, var(--oc-primary) 7%, var(--oc-surface)); color: var(--oc-text); }
.subsection-title { margin: 18px 0 8px; color: var(--oc-text); font-size: 14px; }
.table-secondary { display: block; margin-top: 2px; color: var(--oc-muted); font-size: 10px; }
.branding-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.logo-preset-section { margin-bottom: 20px; }
.logo-preset-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.logo-preset { min-width: 0; min-height: 96px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 15px; border: 2px solid transparent; border-radius: var(--oc-radius); color: var(--oc-muted); background: var(--oc-surface); cursor: pointer; text-align: left; }
.logo-preset img { width: 100%; max-width: 230px; max-height: 58px; object-fit: contain; object-position: left center; }
.logo-preset span { font-size: 11px; font-weight: 700; }
.logo-preset-dark { background: #12344f; }
.logo-preset-dark span { color: #fff; }
.logo-preset-light { border-color: var(--oc-border); }
.logo-preset:hover, .logo-preset:focus-visible { border-color: color-mix(in srgb,var(--oc-primary) 55%,var(--oc-border)); outline: none; }
.logo-preset.is-selected { border-color: var(--oc-primary); box-shadow: 0 0 0 3px color-mix(in srgb,var(--oc-primary) 15%,transparent); }
.brand-asset-field { min-width: 0; display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 16px; padding: 16px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: color-mix(in srgb, var(--oc-page) 55%, var(--oc-surface)); }
.brand-preview { min-height: 104px; display: grid; place-items: center; padding: 12px; border: 1px dashed color-mix(in srgb, var(--oc-muted) 45%, var(--oc-border)); border-radius: 8px; background: var(--oc-surface); }
.brand-preview img { max-width: 100%; max-height: 80px; object-fit: contain; }
.brand-preview-favicon img { width: 48px; height: 48px; image-rendering: auto; }
.compact-check { margin: 1px 0 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 20px; background: color-mix(in srgb, var(--oc-page) 55%, white); border-radius: 0 0 var(--oc-radius) var(--oc-radius); }
.button { min-height: var(--oc-control-height); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 15px; border: 1px solid transparent; border-radius: 7px; font-weight: 650; cursor: pointer; }
.button-primary { color: #fff; border-color: var(--oc-primary); background: var(--oc-primary); }
.button-primary:hover { color: #fff; border-color: var(--oc-primary-dark); background: var(--oc-primary-dark); }
.button-secondary { color: var(--oc-text); border-color: var(--oc-border); background: var(--oc-surface); }
.button-secondary:hover { color: var(--oc-primary); border-color: var(--oc-primary); }
.button-danger { color: #fff; border-color: var(--oc-danger); background: var(--oc-danger); }
.button-danger:hover { color: #fff; filter: brightness(.92); }
.button-block { width: 100%; }
.button.is-disabled { color: var(--oc-muted); border-color: var(--oc-border); background: var(--oc-page); pointer-events: none; opacity: .65; }

.scope-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px; border: 1px solid var(--oc-border); border-radius: 9px; background: var(--oc-surface); }
.scope-tabs a { padding: 9px 14px; border-radius: 6px; color: var(--oc-muted); font-weight: 700; }
.scope-tabs a:hover { color: var(--oc-primary); }
.scope-tabs a.is-active { color: #fff; background: var(--oc-primary); }
.tier-section { margin-bottom: 20px; }
.tier-editor-table input:not([type="checkbox"]), .tier-section .data-table input:not([type="checkbox"]):not([type="hidden"]), .tier-section .data-table select { width: 100%; min-width: 110px; min-height: 38px; padding: 7px 10px; border: 1px solid var(--oc-border); border-radius: 7px; color: var(--oc-text); background: var(--oc-surface); }
.tier-editor-table input:focus, .tier-section .data-table input:focus, .tier-section .data-table select:focus { outline: none; border-color: var(--oc-primary); box-shadow: var(--oc-focus); }
.factor-value-table th:first-child { width: 25%; }
.factor-value-table th:nth-child(2) { width: 13%; }
.factor-value-table th:nth-child(3), .factor-value-table th:nth-child(4) { width: 16%; }
.factor-value-table th:nth-child(5) { width: 13%; }
.factor-value-table th:last-child { width: 90px; }
.multiplier-input { display: grid; grid-template-columns: 34px minmax(90px,1fr); align-items: stretch; }
.multiplier-input > span { display: grid; place-items: center; border: 1px solid var(--oc-border); border-right: 0; border-radius: 7px 0 0 7px; color: var(--oc-primary); background: color-mix(in srgb, var(--oc-primary) 7%, var(--oc-surface)); font-size: 16px; font-weight: 700; }
.tier-section .multiplier-input > input { min-width: 90px; border-radius: 0 7px 7px 0; }
.configured-count { display: inline-flex; align-items: baseline; gap: 5px; min-width: 72px; padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--oc-primary) 22%, var(--oc-border)); border-radius: 999px; color: var(--oc-muted); background: color-mix(in srgb, var(--oc-primary) 5%, var(--oc-surface)); font-size: 11px; white-space: nowrap; }
.configured-count strong { color: var(--oc-primary); font-size: 13px; }
.module-explanation { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.module-explanation article { padding: 17px 18px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: var(--oc-surface); box-shadow: var(--oc-shadow); }
.module-explanation h2 { margin-bottom: 7px; font-size: 15px; }
.module-explanation p { margin: 0; color: var(--oc-muted); font-size: 12px; line-height: 1.55; }
.module-explanation .is-current { border-color: color-mix(in srgb, var(--oc-primary) 35%, var(--oc-border)); background: color-mix(in srgb, var(--oc-primary) 4%, var(--oc-surface)); }
.section-heading-block { padding: 18px 20px 12px; }
.section-heading-block h3 { font-size: 15px; }
.section-heading-block p { max-width: 780px; margin: 5px 0 0; color: var(--oc-muted); font-size: 11px; line-height: 1.5; }
.tier-order { width: 64px; text-align: center; font-weight: 800; }
.tier-arrange { display: flex; gap: 5px; }
.tier-arrange .icon-button { width: 34px; height: 34px; }
.tier-arrow-up { transform: rotate(90deg); }
.tier-arrow-down { transform: rotate(-90deg); }
.form-actions-between { justify-content: space-between; }
.tier-factor-actions { display: flex; align-items: center; gap: 8px; }
.tier-factor-actions form { margin: 0; }
.tier-factor-actions button { padding: 2px 5px; border: 0; color: var(--oc-primary); background: transparent; font-weight: 800; cursor: pointer; }
.tier-factor-actions .icon-button { width: 34px; height: 34px; padding: 0; border: 1px solid var(--oc-border); background: var(--oc-surface); }
.form-help { display: block; max-width: 520px; margin-top: 7px; color: var(--oc-muted); font-size: .8rem; line-height: 1.45; }
.impact-guide { margin: 0 0 20px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: var(--oc-surface); box-shadow: var(--oc-shadow); overflow: hidden; }
.impact-guide summary { padding: 15px 18px; color: var(--oc-text); font-weight: 800; cursor: pointer; background: color-mix(in srgb, var(--oc-primary) 5%, var(--oc-surface)); }
.impact-guide-body { padding: 18px; border-top: 1px solid var(--oc-border); }
.impact-flow { display: grid; grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr) auto minmax(130px, 1fr) auto minmax(130px, 1fr) auto minmax(130px, 1fr); align-items: stretch; gap: 10px; }
.impact-flow article { position: relative; min-height: 128px; padding: 15px; border: 1px solid color-mix(in srgb, var(--oc-primary) 22%, var(--oc-border)); border-radius: 12px; background: color-mix(in srgb, var(--oc-primary) 3%, var(--oc-surface)); }
.impact-flow article > span { display: grid; width: 26px; height: 26px; margin-bottom: 10px; place-items: center; border-radius: 50%; color: #fff; background: var(--oc-primary); font-size: .76rem; font-weight: 900; }
.impact-flow article strong, .impact-flow article small { display: block; }
.impact-flow article strong { color: var(--oc-text); font-size: .9rem; }
.impact-flow article small { margin-top: 6px; color: var(--oc-muted); font-size: .77rem; line-height: 1.45; }
.impact-flow > i { align-self: center; color: var(--oc-primary); font-size: 1.25rem; font-style: normal; font-weight: 900; }
.impact-example { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 15px; padding: 12px 14px; border-radius: 10px; color: var(--oc-muted); background: var(--oc-page); font-size: .84rem; }
.impact-example strong { margin-right: 5px; color: var(--oc-text); }
.impact-example b { color: var(--oc-primary); }
.impact-example-result { color: var(--oc-primary); font-weight: 900; }
@media (max-width: 1180px) { .impact-flow { grid-template-columns: 1fr; } .impact-flow > i { justify-self: center; transform: rotate(90deg); } .impact-flow article { min-height: 0; } }

.list-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 220px auto auto; align-items: end; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--oc-border); }
.toolbar-button { margin-bottom: 0; }
.toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.responsive-table { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 13px 16px; border-bottom: 1px solid var(--oc-border); text-align: left; vertical-align: middle; }
.data-table th { color: var(--oc-muted); background: color-mix(in srgb, var(--oc-page) 55%, white); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--oc-primary) 3%, var(--oc-surface)); }
.table-primary { display: flex; flex-direction: column; gap: 3px; }
.table-primary small { color: var(--oc-muted); }
.table-actions { width: 90px; text-align: right !important; }
.table-actions a { font-weight: 650; }
.empty-table { padding: 34px !important; color: var(--oc-muted); text-align: center !important; }
.status-badge { display: inline-flex; padding: 4px 8px; border: 1px solid; border-radius: 999px; font-size: 10px; font-weight: 700; }
.status-active { color: color-mix(in srgb, var(--oc-success) 85%, black); border-color: color-mix(in srgb, var(--oc-success) 30%, white); background: color-mix(in srgb, var(--oc-success) 9%, white); }
.status-inactive { color: var(--oc-muted); border-color: var(--oc-border); background: var(--oc-page); }
.status-protected { color: color-mix(in srgb, var(--oc-primary) 85%, black); border-color: color-mix(in srgb, var(--oc-primary) 30%, white); background: color-mix(in srgb, var(--oc-primary) 8%, white); }

.master-group { margin-bottom: 20px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: var(--oc-surface); box-shadow: var(--oc-shadow); }
.master-group-heading { display: flex; justify-content: space-between; align-items: center; }
.master-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--oc-border); }
.master-card { min-width: 0; min-height: 76px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 14px 16px; color: var(--oc-text); background: var(--oc-surface); }
.master-card:hover { color: var(--oc-primary); background: color-mix(in srgb, var(--oc-primary) 4%, var(--oc-surface)); }
.master-card-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; color: var(--oc-primary); background: color-mix(in srgb, var(--oc-primary) 9%, white); }
.master-card > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.master-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.master-card small { color: var(--oc-muted); font-size: 10px; }
.master-card em { padding: 3px 6px; border-radius: 999px; color: var(--oc-primary); background: color-mix(in srgb, var(--oc-primary) 9%, white); font-size: 9px; font-style: normal; font-weight: 700; }
.master-toolbar { grid-template-columns: minmax(260px,1fr) 140px minmax(160px,auto) auto; }
.master-active-filter { min-height: var(--oc-control-height); align-self: end; align-items: center; margin: 0; white-space: nowrap; }
.master-active-filter input { margin-top: 0; }
.master-fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.searchable-select { display: grid; grid-template-columns: minmax(120px,.7fr) minmax(180px,1.3fr); gap: 6px; }
.searchable-multi { grid-template-columns: minmax(180px,.45fr) minmax(280px,1.55fr); align-items: start; }
.searchable-multi select { min-height: 190px; }
.form-field-span { grid-column: 1 / -1; }
.dividend-flow { margin-bottom: 18px; }
.lookup-filter { background: color-mix(in srgb, var(--oc-page) 45%, var(--oc-surface)) !important; }
.field-type { display: block; margin-top: 4px; color: color-mix(in srgb, var(--oc-muted) 82%, var(--oc-primary)); font-size: 9px; font-weight: 600; letter-spacing: .02em; }
.conditional-required .field-type::after { content: " · conditionally required"; color: var(--oc-warning); }
.toggle-control { min-height: var(--oc-control-height); display: flex !important; align-items: center; gap: 9px; padding: 8px 11px; margin: 0 !important; border: 1px solid var(--oc-border); border-radius: 7px; background: var(--oc-surface); cursor: pointer; }
.toggle-control input { accent-color: var(--oc-primary); }
.audit-strip { display: flex; justify-content: space-between; gap: 16px; padding: 11px 20px; color: var(--oc-muted); border-top: 1px solid var(--oc-border); font-size: 10px; }
.field-dictionary-card { margin-bottom: 16px; }
.compact-data-table th, .compact-data-table td { padding-block: 10px; }
.dictionary-code { display: block; margin-top: 3px; color: var(--oc-muted); font-family: Consolas, monospace; font-size: 9px; }
.dictionary-external { padding: 18px 20px; color: var(--oc-muted); }
.pagination-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; color: var(--oc-muted); font-size: 11px; }
.pagination-bar nav { display: flex; align-items: center; gap: 5px; }
.pagination-bar .button { min-height: 34px; padding: 5px 11px; }
.pagination-page, .pagination-direction { min-width: 34px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 5px 10px; border: 1px solid var(--oc-border); border-radius: 7px; color: var(--oc-text); background: var(--oc-surface); font-weight: 650; }
.pagination-page:hover, .pagination-direction:hover { color: var(--oc-primary); border-color: var(--oc-primary); }
.pagination-page.is-current { color: #fff; border-color: var(--oc-primary); background: var(--oc-primary); }
.pagination-direction.is-disabled { color: var(--oc-muted); background: var(--oc-page); opacity: .65; cursor: default; }
.audit-toolbar { display: flex; flex-wrap: wrap; align-items: end; }
.audit-toolbar .form-field { flex: 1 1 135px; }
.audit-toolbar .audit-search { flex: 2 1 260px; }
.audit-toolbar .audit-entity-filter { flex: 1.4 1 190px; }
.audit-toolbar .audit-page-size { flex: 0 1 90px; }
.audit-toolbar .toolbar-actions { flex: 0 1 auto; min-height: var(--oc-control-height); }
.audit-record-id { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-action-created { color: color-mix(in srgb, var(--oc-success) 85%, black); border-color: color-mix(in srgb, var(--oc-success) 30%, white); background: color-mix(in srgb, var(--oc-success) 9%, white); }
.audit-action-updated { color: color-mix(in srgb, var(--oc-primary) 85%, black); border-color: color-mix(in srgb, var(--oc-primary) 30%, white); background: color-mix(in srgb, var(--oc-primary) 8%, white); }
.audit-action-deleted { color: color-mix(in srgb, var(--oc-danger) 85%, black); border-color: color-mix(in srgb, var(--oc-danger) 30%, white); background: color-mix(in srgb, var(--oc-danger) 8%, white); }
.audit-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.audit-summary-grid > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 16px 20px; border-right: 1px solid var(--oc-border); border-bottom: 1px solid var(--oc-border); }
.audit-summary-grid > div:nth-child(even) { border-right: 0; }
.audit-summary-grid > div:nth-last-child(1) { border-bottom: 0; }
.audit-summary-grid span { color: var(--oc-muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.audit-summary-wide { grid-column: 1 / -1; border-right: 0 !important; }
.audit-success-text { color: var(--oc-success); }
.audit-break-value, .audit-change-value { overflow-wrap: anywhere; }
.audit-changes-card { margin-top: 16px; }
.audit-change-table th:first-child { width: 22%; }
.audit-change-table th:nth-child(2), .audit-change-table th:nth-child(3) { width: 39%; }
.permission-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.permission-group { padding: 14px; border: 1px solid var(--oc-border); border-radius: var(--oc-radius); background: color-mix(in srgb, var(--oc-page) 40%, var(--oc-surface)); }
.permission-group h3 { margin-bottom: 9px; color: var(--oc-muted); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.permission-option { min-height: 52px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px; margin-bottom: 6px; border: 1px solid var(--oc-border); border-radius: 7px; background: var(--oc-surface); cursor: pointer; }
.permission-option:last-child { margin-bottom: 0; }
.permission-option input { accent-color: var(--oc-primary); }
.permission-option span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.permission-option small { overflow: hidden; color: var(--oc-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.permission-option em { color: var(--oc-warning); font-size: 9px; font-style: normal; font-weight: 700; }
.permission-locked { cursor: default; opacity: .72; }

.auth-body { background: #eaf0f5; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: clamp(20px,4vw,56px); background: radial-gradient(circle at 12% 15%, color-mix(in srgb,var(--oc-primary) 16%,transparent),transparent 30%), radial-gradient(circle at 88% 85%, rgba(15,39,68,.12),transparent 30%); }
.login-experience { width: min(100%,1020px); min-height: 620px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(390px,.95fr); overflow: hidden; border: 1px solid rgba(255,255,255,.5); border-radius: 22px; background: var(--oc-surface); box-shadow: 0 30px 80px rgba(15,39,68,.2); }
.login-showcase { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(40px,6vw,72px); overflow: hidden; color: #fff; background: linear-gradient(145deg,#0f2744 0%,#123d58 55%,color-mix(in srgb,var(--oc-primary) 68%,#0f2744) 100%); }
.login-showcase::before { content:""; position:absolute; width:360px; height:360px; top:-150px; right:-130px; border:1px solid rgba(255,255,255,.15); border-radius:50%; box-shadow:0 0 0 55px rgba(255,255,255,.035),0 0 0 110px rgba(255,255,255,.025); }
.login-showcase > * { position:relative; z-index:1; }
.login-showcase-eyebrow { margin-bottom:16px; color:#73d4e4; font-size:11px; font-weight:800; letter-spacing:.16em; }
.login-showcase h2 { max-width:520px; margin:0 0 18px; color:#fff; font-size:clamp(30px,4vw,46px); line-height:1.08; }
.login-showcase p { max-width:520px; margin:0 0 34px; color:#c8d8e8; font-size:15px; line-height:1.7; }
.login-assurance { display:flex; flex-wrap:wrap; gap:12px 18px; }
.login-assurance span { display:inline-flex; align-items:center; gap:7px; color:#e9f3fa; font-size:11px; font-weight:700; }
.login-card { width:100%; display:flex; flex-direction:column; justify-content:center; padding:clamp(34px,5vw,64px); background:var(--oc-surface); }
.login-brand { min-height:88px; display:flex; align-items:center; justify-content:center; gap:11px; margin-bottom:36px; padding:8px 14px; border:1px solid var(--oc-border); border-radius:12px; background:#fff; }
.login-brand-dark { border-color:#1d3c55; background:#0f2744; }
.login-brand-logo { width: min(100%,290px); max-width: 290px; height: auto; max-height: 74px; object-fit: contain; }
.brand-mark-large { width: 45px; height: 45px; }
.login-brand > div { display: flex; flex-direction: column; line-height: 1.1; }
.login-brand strong { letter-spacing: .13em; }
.login-brand span:not(.brand-mark) { margin-top: 4px; color: var(--oc-muted); font-size: 12px; }
.login-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.login-heading h1, .login-card > h1 { margin:0; font-size:28px; }
.login-heading p, .login-card > p { margin: 5px 0 0; color: var(--oc-muted); }
.login-lock { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--oc-primary); background: color-mix(in srgb, var(--oc-primary) 10%, white); }
.login-lock.danger { margin: 0 auto 15px; color: var(--oc-danger); background: color-mix(in srgb, var(--oc-danger) 9%, white); }
.check-control { display: flex; align-items: flex-start; gap: 9px; margin: 2px 0 18px; color: var(--oc-muted); font-size: 12px; cursor: pointer; }
.check-control input { margin-top: 2px; accent-color: var(--oc-primary); }
.login-security { display:flex; align-items:center; justify-content:center; gap:5px; margin:22px 0 0 !important; padding-top:18px; border-top:1px solid var(--oc-border); text-align:center; font-size:11px; }

@media (max-width: 980px) {
    .login-experience { width:min(100%,520px); min-height:0; grid-template-columns:1fr; }
    .login-showcase { min-height:230px; padding:34px; }
    .login-showcase h2 { font-size:30px; }
    .login-showcase p { margin-bottom:20px; }
    .app-shell { display: block; }
    .navigation-top .app-sidebar, .navigation-left .app-sidebar { position: fixed; left: 0; width: var(--oc-sidebar-width); height: 100vh; flex-direction: column; align-items: stretch; overflow-x: hidden; transform: translateX(-105%); box-shadow: 12px 0 32px rgba(15,23,42,.25); transition: transform .2s ease; }
    .navigation-open .app-sidebar { transform: translateX(0); }
    .navigation-top .brand, .navigation-left .brand { min-width: 0; min-height: 76px; padding-inline: 22px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
    .navigation-top .sidebar-nav, .navigation-left .sidebar-nav { display: block; padding: 18px 14px; overflow-y: auto; }
    .navigation-top .nav-group-toggle, .navigation-left .nav-group-toggle { display: block; visibility: visible; pointer-events: none; }
    .navigation-top .nav-group-menu, .navigation-left .nav-group-menu { position: static; display: block; width: auto; min-width: 0; max-width: none; padding: 0; border: 0; background: transparent; box-shadow: none; }
    .navigation-top .nav-group-menu::before { display: none; }
    .navigation-top .nav-group-toggle::after { display: none; }
    .navigation-top .nav-link-onecore, .navigation-left .nav-link-onecore { margin-bottom: 4px; padding: 9px 12px; color: #dce7f2; }
    .navigation-top .nav-link-onecore .onecore-icon { color: inherit; }
    .navigation-top .nav-link-onecore:hover, .navigation-top .nav-link-onecore:focus-visible { color: #fff; background: rgba(255,255,255,.1); }
    .navigation-top .sidebar-footer, .navigation-left .sidebar-footer { display: block; }
    .navigation-collapsed .brand-copy, .navigation-collapsed .nav-link-onecore span, .navigation-collapsed .sidebar-user-copy { width: auto; opacity: 1; pointer-events: auto; }
    .navigation-top .app-header { top: 0; }
    .sidebar-backdrop { position: fixed; inset: 0; z-index: 35; border: 0; background: rgba(15,23,42,.48); }
    .navigation-open .sidebar-backdrop { display: block; }
    .mobile-menu-button { display: inline-grid; }
    .metric-grid { grid-template-columns: 1fr; }
    .metric-grid-four { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .compact-dashboard-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .form-grid-three { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .list-toolbar { grid-template-columns: 1fr 190px; }
    .toolbar-button { margin-bottom: 0; }
    .branding-grid { grid-template-columns: 1fr; }
    .logo-preset-grid { grid-template-columns: 1fr; }
    .permission-groups { grid-template-columns: 1fr; }
    .master-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .master-toolbar { grid-template-columns: 1fr 160px; }
    .module-explanation { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .app-header { padding-inline: 14px; }
    .app-content { padding: 16px 14px; }
    .app-footer { padding-inline: 14px; flex-direction: column; gap: 3px; }
    .header-logout span { display: none; }
    .header-logout { width: var(--oc-control-height); justify-content: center; padding: 0; }
    .form-grid-three { grid-template-columns: 1fr; }
    .metric-grid-four, .dashboard-area-list { grid-template-columns: 1fr; }
    .compact-dashboard-grid { grid-template-columns: 1fr; }
    .audit-toolbar .form-field, .audit-toolbar .toolbar-actions { flex-basis: 100%; }
    .audit-toolbar .toolbar-actions { justify-content: stretch; }
    .audit-toolbar .toolbar-actions .button { flex: 1; }
    .audit-summary-grid { grid-template-columns: 1fr; }
    .audit-summary-grid > div, .audit-summary-grid > div:nth-child(even) { border-right: 0; border-bottom: 1px solid var(--oc-border); }
    .audit-summary-wide { grid-column: auto; }
    .dashboard-area-item:nth-last-child(2) { border-bottom: 1px solid var(--oc-border); }
    .form-grid-two, .list-toolbar { grid-template-columns: 1fr; }
    .master-card-grid, .searchable-select { grid-template-columns: 1fr; }
    .pagination-bar { align-items: stretch; flex-direction: column; }
    .pagination-bar nav { justify-content: space-between; }
    .form-section, .content-card-header, .status-list { padding-inline: 15px; }
    .form-actions { flex-direction: column-reverse; padding: 15px; }
    .form-actions .button { width: 100%; }
    .login-card { padding: 24px 20px; }
    .brand-asset-field { grid-template-columns: 90px minmax(0,1fr); padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
