:root { color: #1f2937; font-family: Arial, sans-serif; background: #f7f7f5; }
* { box-sizing: border-box; }
body { margin: 0; }
.topbar { align-items: center; background: #182619; display: flex; justify-content: space-between; min-height: 66px; padding: 0 5%; }
.brand { color: #d0a84d; font-size: 1.3rem; font-weight: 700; text-decoration: none; }
nav, .actions, .form-actions { align-items: center; display: flex; gap: 1rem; }
nav a, nav button { background: none; border: 0; color: white; cursor: pointer; font: inherit; text-decoration: none; }
.page { margin: 2.5rem auto; max-width: 1100px; padding: 0 1.25rem; }
h1 { margin-bottom: .4rem; }.muted { color: #6b7280; }.page-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 1.5rem; }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 2rem; }.stats article, .form-card, table { background: white; border: 1px solid #e5e7eb; border-radius: 8px; }.stats article { padding: 1.25rem; }.stats span { color: #6b7280; display: block; }.stats strong { display: block; font-size: 1.4rem; margin-top: .4rem; }
table { border-collapse: collapse; overflow: hidden; width: 100%; }th, td { border-bottom: 1px solid #e5e7eb; padding: .85rem; text-align: left; }th { background: #fafaf9; }td form { margin: 0; }
.button, button { background: #8b6b24; border: 0; border-radius: 5px; color: white; cursor: pointer; display: inline-block; padding: .7rem 1rem; text-decoration: none; }.link { background: transparent; color: #8b6b24; padding: 0; }.danger { color: #b91c1c; }
.form-card { margin-top: 1.5rem; max-width: 560px; padding: 1.5rem; }label { display: block; font-weight: 600; margin-bottom: 1rem; }input { border: 1px solid #cbd5e1; border-radius: 5px; display: block; font: inherit; margin-top: .35rem; padding: .65rem; width: 100%; }.checkbox { font-weight: 400; }.checkbox input { display: inline; margin-right: .35rem; width: auto; }fieldset { border: 1px solid #e5e7eb; margin: 1rem 0; padding: .75rem; }.error { color: #b91c1c; margin-top: -.7rem; }.notice { background: #dcfce7; border-radius: 5px; color: #166534; padding: .8rem; }
.login-page { align-items: center; display: flex; justify-content: center; min-height: 100vh; padding: 1rem; }.login-card { background: white; border: 1px solid #e5e7eb; border-radius: 10px; max-width: 410px; padding: 2rem; width: 100%; }.logo { display: block; height: auto; margin: 0 auto 1rem; max-width: 170px; }
@media (max-width: 640px) { .topbar, .page-heading { align-items: flex-start; flex-direction: column; gap: 1rem; padding: 1rem; }.actions { align-items: flex-start; flex-direction: column; gap: .4rem; } }

select, textarea { border: 1px solid #cbd5e1; border-radius: 5px; display: block; font: inherit; margin-top: .35rem; padding: .65rem; width: 100%; }
textarea { resize: vertical; }

/* Zea Spirits application shell */
:root { --forest: #103325; --forest-light: #214d3a; --gold: #c09a42; --paper: #f6f6f1; --ink: #1e2722; --line: #e5e8e2; }
.app-shell { background: var(--paper); min-height: 100vh; }
.sidebar { background: var(--forest); color: #dce9e1; display: flex; flex-direction: column; height: 100vh; left: 0; padding: 12px; position: fixed; top: 0; width: 248px; }
.sidebar .brand { align-items: center; color: #fff; display: flex; font-size: 16px; gap: 9px; margin: 0; }.sidebar .brand img { height: 34px; object-fit: contain; width: 34px; }
.sidebar-nav { align-items: stretch; display: flex; flex: 1; flex-direction: column; gap: 2px; margin-top: 24px; overflow-y: auto; width: 100%; }.sidebar-nav a { border-radius: 7px; color: #d5e1da; font-size: 14px; padding: 10px 12px; }.sidebar-nav a:hover { background: var(--forest-light); color: #fff; }.nav-label { color: #8cad9e; font-size: 10px; font-weight: 700; letter-spacing: .12em; margin: 22px 12px 5px; text-transform: uppercase; }
.sidebar-footer { border-top: 1px solid #315747; color: #c7d8cf; font-size: 13px; margin-top: 12px; padding: 16px 11px 0; }.sidebar-footer form { display: inline; }.sidebar-footer button { color: #f3c865; padding: 5px 0; }
.sidebar-head { align-items: center; display: flex; justify-content: space-between; min-height: 42px; }.sidebar-head .brand { flex: 1; }.sidebar-toggle { background: transparent; border: 0; color: #d5e1da; font-size: 20px; padding: 5px; }.sidebar-nav > a, .sidebar-nav summary { align-items: center; border-radius: 7px; color: #d5e1da; cursor: pointer; display: flex; font-size: 14px; gap: 11px; justify-content: flex-start; list-style: none; margin: 0; padding: 10px 12px; text-align: left; width: 100%; }.sidebar-nav summary::-webkit-details-marker { display: none; }.sidebar-nav summary:hover, .sidebar-nav > a:hover { background: var(--forest-light); color: #fff; }.sidebar-nav b { display: inline-block; font-size: 17px; font-weight: 500; line-height: 18px; text-align: center; width: 19px; }.sidebar-nav summary::after { color: #9bb9a9; content: '›'; font-size: 18px; margin-left: auto; }.sidebar-nav details[open] > summary::after { content: '⌄'; }.submenu { border-left: 1px solid #315747; margin: 2px 0 6px 21px; padding: 2px 0 2px 10px; }.sidebar-nav .submenu a { border-radius: 6px; color: #bcd0c4; display: block; font-size: 13px; padding: 8px 10px; text-align: left; }.sidebar-nav .submenu a:hover { background: var(--forest-light); color: #fff; }
.sidebar-collapsed .sidebar { width: 64px; }.sidebar-collapsed .page { margin-left: 64px; }.sidebar-collapsed .brand span, .sidebar-collapsed .sidebar-toggle, .sidebar-collapsed .sidebar-nav span, .sidebar-collapsed .sidebar-nav summary::after { display: none; }.sidebar-collapsed .sidebar-head .brand { justify-content: center; margin: 0; }.sidebar-collapsed .sidebar-nav > a, .sidebar-collapsed .sidebar-nav summary { justify-content: center; padding: 12px; }.sidebar-collapsed .sidebar-nav details { position: relative; }.sidebar-collapsed .submenu { background: var(--forest); border: 1px solid #315747; border-radius: 8px; display: none; left: 52px; margin: 0; min-width: 190px; padding: 6px; position: absolute; top: 0; z-index: 10; }.sidebar-collapsed details[open] .submenu { display: block; }.sidebar-collapsed .submenu a { padding: 9px 10px; }
.page { margin-left: 248px; max-width: none; min-height: 100vh; padding: 20px 48px; }.content-wrap { margin: 0 auto; max-width: 1320px; }.page-heading { margin-bottom: 28px; } h1 { font-size: 28px; letter-spacing: -.04em; }.eyebrow { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.app-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; margin: -42px -48px 24px; min-height: 58px; padding: 9px 48px; }.header-kicker { color: #7a8b80; font-size: 9px; font-weight: 750; letter-spacing: .12em; margin: 0 0 2px; }.header-title { color: var(--forest); font-size: 14px; }.user-menu { position: relative; }.user-menu summary { align-items: center; cursor: pointer; display: flex; gap: 10px; list-style: none; }.user-menu summary::-webkit-details-marker { display: none; }.avatar { align-items: center; background: #e6f0ea; border: 2px solid #cbdcd1; border-radius: 50%; color: var(--forest); display: inline-flex; font-size: 14px; font-weight: 800; height: 34px; justify-content: center; width: 34px; }.user-summary { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }.user-summary strong { font-size: 13px; }.user-summary small { color: #78877e; font-size: 11px; margin-top: 3px; }.chevron { color: #77857c; }.user-dropdown { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 28px rgb(18 51 37 / 13%); min-width: 175px; padding: 6px; position: absolute; right: 0; top: 45px; z-index: 20; }.user-dropdown a, .user-dropdown button { background: transparent; border: 0; border-radius: 6px; color: var(--ink); display: block; font: inherit; padding: 10px; text-align: left; text-decoration: none; width: 100%; }.user-dropdown a:hover, .user-dropdown button:hover { background: #eff5f0; color: var(--forest); }
.stats article, .card, .form-card, table { border-color: var(--line); border-radius: 12px; box-shadow: 0 2px 5px rgb(12 31 22 / 3%); }.card { padding: 20px; }.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } th { color: #617168; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }.button, button { background: var(--forest); border-color: var(--forest); border-radius: 8px; }.button:hover, button:hover { background: var(--forest-light); }.notice { border: 1px solid #b6dfc1; border-radius: 9px; }
.settings-form { display: grid; gap: 18px; max-width: 980px; }.settings-section { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin: 0; padding: 22px; }.settings-section legend { color: var(--forest); font-size: 17px; font-weight: 750; padding: 0 8px; }.settings-section > .muted { margin: 0 0 20px; }.settings-section:disabled { background: #f8faf8; }.settings-section:disabled input, .settings-section:disabled select, .settings-section:disabled textarea { background: #f1f3f1; color: #59665f; }.error-summary { background: #fef2f2; border: 1px solid #fecaca; border-radius: 9px; color: #991b1b; margin-bottom: 18px; padding: 14px 18px; }.error-summary ul { margin-bottom: 0; }.notice-neutral { background: #eff5f0; border-color: #ceddd3; color: #355445; }
.report-filter { align-items: end; display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; padding: 16px 20px; }.report-filter label { margin: 0; min-width: 170px; }.report-filter button { min-height: 41px; }.report-filter .link { margin: 0 6px 12px 0; }.report-stats { margin: 0 0 24px; }.report-stats article small { color: #809087; display: block; margin-top: 9px; }.section-heading { align-items: center; display: flex; justify-content: space-between; margin: 28px 0 12px; }.section-heading h2 { color: var(--forest); font-size: 19px; margin: 0 0 5px; }.section-heading p { margin: 0; }.report-chart { margin-bottom: 26px; }.report-chart .section-heading { margin-top: 0; }.chart-legend { display: flex; gap: 17px; }.chart-legend span { color: #65766c; font-size: 12px; }.chart-legend span::before { border-radius: 2px; content: ''; display: inline-block; height: 9px; margin-right: 5px; width: 9px; }.legend-sales::before,.bar-sales { background: var(--forest); }.legend-purchases::before,.bar-purchases { background: var(--gold); }.legend-invoiced::before,.bar-invoiced { background: #6e8f9b; }.trend-grid { align-items: end; display: grid; gap: 12px; grid-auto-columns: minmax(70px,1fr); grid-auto-flow: column; min-height: 230px; overflow-x: auto; }.trend-grid article { min-width: 70px; text-align: center; }.trend-grid article > strong { color: #6b7a71; font-size: 11px; }.trend-bars { align-items: end; border-bottom: 1px solid var(--line); display: flex; gap: 4px; height: 180px; justify-content: center; margin-bottom: 8px; }.trend-bars i { border-radius: 4px 4px 0 0; display: block; max-width: 18px; min-height: 2px; width: 24%; }.report-columns { display: grid; gap: 22px; grid-template-columns: repeat(2,minmax(0,1fr)); }.table-wrap { overflow-x: auto; }.table-wrap small { color: #7c8981; }.report-columns table { height: fit-content; }
.button-secondary { background: #e6ede8; color: var(--forest); }.button-secondary:hover { background: #d5e2da; }.catalogue-product-form { max-width: 980px; }.catalogue-section { margin-top: 34px; }.inline-catalogue-form { margin-top: 14px; }.inline-catalogue-form label { margin-bottom: 0; }.field-help { color: #738178; display: block; font-size: 11px; font-weight: 400; margin-top: 6px; }.barcode-search { align-items: end; display: flex; gap: 12px; max-width: 720px; }.barcode-search label { flex: 1; margin: 0; }.barcode-search input { font-size: 18px; letter-spacing: .05em; }.barcode-search button { min-height: 43px; }.barcode-result,.empty-result { margin-top: 20px; }.barcode-result .section-heading { margin-top: 0; }.detail-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); margin: 0; }.detail-grid div { background: #f7f9f7; border-radius: 8px; padding: 14px; }.detail-grid dt { color: #738178; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }.detail-grid dd { color: var(--forest); font-weight: 700; margin: 7px 0 0; }
.audit-filter { align-items: end; display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }.audit-filter label { margin: 0; min-width: 145px; }.audit-filter button { min-height: 41px; }.audit-filter .link { margin: 0 6px 12px 0; }.change-details summary { color: var(--forest); cursor: pointer; font-weight: 700; }.change-details pre { background: #f4f6f4; border-radius: 6px; font-size: 11px; max-height: 210px; max-width: 390px; overflow: auto; padding: 10px; white-space: pre-wrap; }.status-pill { border-radius: 20px; display: inline-block; font-size: 11px; font-weight: 700; padding: 5px 9px; }.status-created { background: #dcfce7; color: #166534; }.status-updated { background: #fef3c7; color: #92400e; }.status-deleted { background: #fee2e2; color: #991b1b; }
.transaction-form { max-width: 980px; }.order-line { align-items: end; background: #f7f9f7; border: 1px solid var(--line); border-radius: 9px; display: grid; gap: 12px; grid-template-columns: minmax(220px,2fr) minmax(120px,1fr) minmax(140px,1fr) auto; margin-bottom: 10px; padding: 12px; }.order-line label { margin: 0; }.order-line .remove-line { margin-bottom: 11px; }.row-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }.row-actions form { margin: 0; }.button-small { font-size: 12px; padding: 7px 10px; }
.calendar-list { display: grid; gap: 12px; }.calendar-day { align-items: stretch; display: grid; grid-template-columns: 65px 1fr; padding: 0; }.calendar-date { align-items: center; background: #eff5f0; border-radius: 11px 0 0 11px; display: flex; flex-direction: column; justify-content: center; }.calendar-date strong { color: var(--forest); font-size: 24px; }.calendar-date span { color: #6f8076; font-size: 11px; text-transform: uppercase; }.calendar-events { padding: 8px 18px; }.calendar-events article { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 10px 0; }.calendar-events article:last-child { border-bottom: 0; }.calendar-events p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }.message { border-bottom: 1px solid var(--line); padding: 12px 0; }.message:last-child { border-bottom: 0; }
.public-site { background: #f7f4ec; color: #1c2b23; min-height: 100vh; }.public-header { align-items: center; background: #0d3425; display: flex; justify-content: space-between; padding: 16px max(24px, 6vw); }.public-brand { align-items: center; color: #fff; display: flex; font-size: 18px; font-weight: 750; gap: 10px; text-decoration: none; }.public-brand img { height: 48px; object-fit: contain; width: 48px; }.public-header nav { gap: 24px; }.public-header nav a { color: #e7efe9; font-size: 14px; }.public-hero { background: linear-gradient(125deg,#0d3425,#1c513a); color: #fff; min-height: 480px; padding: 110px max(24px, 10vw); }.public-hero h1 { font-family: Georgia,serif; font-size: clamp(42px,7vw,82px); font-weight: 500; line-height: 1.02; max-width: 900px; }.public-hero > p:not(.eyebrow) { color: #cbdcd2; font-size: 18px; line-height: 1.7; max-width: 650px; }.public-hero .button { background: #c7a34c; border-color: #c7a34c; color: #10261c; margin-top: 18px; }.public-section,.public-content,.public-page { margin: 0 auto; max-width: 1180px; padding: 75px 28px; }.public-page { max-width: 900px; }.public-page > h1,.section-title h2 { font-family: Georgia,serif; font-size: clamp(36px,5vw,58px); font-weight: 500; }.lead { color: #647269; font-size: 20px; line-height: 1.6; }.post-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); margin-top: 30px; }.post-card { background: #fff; border: 1px solid #e2dfd4; border-radius: 12px; padding: 26px; }.post-card > span { color: #a27a28; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.post-card h2,.post-card h3 { font-family: Georgia,serif; font-size: 25px; line-height: 1.25; }.post-card a { color: #173d2b; text-decoration: none; }.post-card p,.post-card small { color: #6c776f; line-height: 1.6; }.category-links { display: flex; flex-wrap: wrap; gap: 9px; margin: 25px 0; }.category-links a { background: #e7ede7; border-radius: 20px; color: #254333; padding: 8px 13px; text-decoration: none; }.prose { font-family: Georgia,serif; font-size: 18px; line-height: 1.85; margin-top: 35px; }.prose img { height: auto; max-width: 100%; }.public-footer { background: #09281d; color: #b8c9c0; display: flex; justify-content: space-between; padding: 28px max(24px,6vw); }
@media (max-width: 800px) { .sidebar { height: auto; min-height: 0; position: static; width: 100%; }.sidebar-nav { align-items: stretch; flex-direction: column; flex-wrap: nowrap; }.page, .sidebar-collapsed .page { margin-left: 0; padding: 28px 20px; }.app-header { margin: -28px -20px 20px; min-height: 52px; padding: 8px 20px; }.header-kicker, .header-title { display: none; }.sidebar-collapsed .sidebar { width: 100%; }.sidebar-collapsed .brand span, .sidebar-collapsed .sidebar-toggle, .sidebar-collapsed .sidebar-nav span { display: initial; }.sidebar-collapsed .sidebar-nav > a, .sidebar-collapsed .sidebar-nav summary { justify-content: flex-start; }.sidebar-collapsed .submenu { display: block; position: static; }.report-columns { grid-template-columns: 1fr; }.report-filter { align-items: stretch; flex-direction: column; }.report-filter .link { margin: 0; }.chart-legend { flex-wrap: wrap; }.barcode-search { align-items: stretch; flex-direction: column; }.order-line { grid-template-columns: 1fr; }.order-line .remove-line { margin: 0; } }

/* Bootstrap 5 + Aureus-inspired blue theme */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --sidebar: #0f172a;
    --sidebar-hover: #1e3a8a;
    --forest: var(--primary);
    --forest-light: var(--primary-dark);
    --gold: var(--primary);
    --paper: #f1f5f9;
    --ink: #0f172a;
    --line: #dbe3ee;
    --bs-primary: var(--primary);
    --bs-primary-rgb: 37, 99, 235;
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--primary-dark);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--paper);
    --bs-body-font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-border-radius: .625rem;
}
body { background: var(--paper); color: var(--ink); font-family: var(--bs-body-font-family); }
.app-shell { background: var(--paper); }
.sidebar { background: var(--sidebar); box-shadow: 8px 0 28px rgb(15 23 42 / 12%); }
.sidebar-head { justify-content: flex-start; position: relative; }
.sidebar-head .brand { flex: 0 0 auto; justify-content: center; margin-left: 20px; }
.sidebar-head .sidebar-toggle { position: absolute; right: 0; }
.sidebar-collapsed .sidebar-head { justify-content: center; }
.sidebar-nav a:hover,.sidebar-nav summary:hover,.sidebar-nav > a:hover { background: var(--sidebar-hover); }
.sidebar-nav { -ms-overflow-style: none; scrollbar-width: none; }
.sidebar-nav::-webkit-scrollbar { display: none; height: 0; width: 0; }
.sidebar-nav > a,.sidebar-nav summary { color: #cbd5e1; }
.sidebar-nav .submenu a { color: #aebbd0; }
.sidebar-nav summary::after { color: #7ea6ec; }
.submenu { border-left-color: #334155; }
.sidebar-collapsed .submenu { background: var(--sidebar); border-color: #334155; }
.sidebar-toggle,.sidebar-toggle:hover { background: transparent; border-color: transparent; color: #cbd5e1; }
.app-header { background: #fff; border-color: var(--line); }
.header-kicker { color: #64748b; }
.header-title { color: var(--ink); }
.avatar { background: #dbeafe; border-color: #bfdbfe; color: var(--primary-dark); }
.user-dropdown { border-color: var(--line); box-shadow: 0 18px 40px rgb(15 23 42 / 15%); }
.user-dropdown a:hover,.user-dropdown button:hover { background: var(--primary-soft); color: var(--primary-dark); }
h1,.section-heading h2,.settings-section legend,.detail-grid dd { color: var(--ink); }
.muted { color: #64748b; }
.eyebrow { color: var(--primary); }
.stats article,.card,.form-card,table { border-color: var(--line); box-shadow: 0 5px 18px rgb(15 23 42 / 5%); }
table,.table { --bs-table-bg: #fff; --bs-table-hover-bg: #f8fafc; border-color: var(--line); margin-bottom: 0; }
th,.table > thead { background: #f8fafc; color: #526174; }
.button,.btn-primary,button:not(.link):not(.sidebar-toggle):not(.navbar-toggler) { background: var(--primary); border-color: var(--primary); color: #fff; }
.button:hover,.btn-primary:hover,button:not(.link):not(.sidebar-toggle):not(.navbar-toggler):hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-primary { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary-dark); --bs-btn-hover-border-color: var(--primary-dark); --bs-btn-active-bg: var(--primary-dark); --bs-btn-active-border-color: var(--primary-dark); }
.button-secondary { background: #e2e8f0; border-color: #e2e8f0; color: #1e293b; }
.button-secondary:hover { background: #cbd5e1; border-color: #cbd5e1; color: #0f172a; }
.link,button.link { background: transparent; border-color: transparent; color: var(--primary); padding: 0; }
.link:hover,button.link:hover { background: transparent; border-color: transparent; color: var(--primary-dark); }
.danger,button.danger,.danger:hover,button.danger:hover { color: #dc2626; }
input,select,textarea,.form-control,.form-select { border-color: #cbd5e1; }
input:focus,select:focus,textarea:focus,.form-control:focus,.form-select:focus { border-color: #60a5fa; box-shadow: 0 0 0 .2rem rgb(37 99 235 / 14%); outline: 0; }
.notice { border-color: #bbf7d0; }
.notice-neutral { background: var(--primary-soft); border-color: #bfdbfe; color: #1e40af; }
.calendar-date,.detail-grid div,.order-line { background: #f8fafc; }
.login-page { background: radial-gradient(circle at 20% 15%,#1d4ed8 0,#0f172a 48%,#020617 100%); }
.login-card { border-radius: 16px; padding: 34px; }
.login-card .logo { max-width: 145px; }
.login-card h1 { font-size: 28px; }
.public-site { background: #f8fafc; color: var(--ink); }
.public-header { background: var(--sidebar); box-shadow: 0 4px 18px rgb(15 23 42 / 18%); padding: 9px max(18px,4vw); }
.public-nav-wrap { margin: 0 auto; max-width: 1240px; }
.public-brand { color: #fff; }
.public-brand:hover { color: #fff; }
.public-header nav a,.public-header .nav-link { color: #cbd5e1; }
.public-header nav a:hover,.public-header .nav-link:hover { color: #fff; }
.public-header .navbar-toggler { background: transparent; border-color: #64748b; padding: 6px 9px; }
.public-hero { background: radial-gradient(circle at 80% 20%,#2563eb 0,#172554 44%,#0f172a 100%); }
.public-hero > p:not(.eyebrow) { color: #dbeafe; }
.public-hero .eyebrow { color: #93c5fd; }
.public-hero .button { background: var(--primary); border-color: #60a5fa; color: #fff; }
.public-hero .button:hover { background: #1d4ed8; border-color: #93c5fd; color: #fff; }
.post-card { border-color: var(--line); box-shadow: 0 8px 24px rgb(15 23 42 / 6%); }
.post-card > span { color: var(--primary); }
.post-card a { color: #1e3a8a; }
.category-links a { background: #dbeafe; color: #1e40af; }
.public-footer { background: #020617; color: #94a3b8; }
.report-filter { flex-direction: row; }
.audit-filter { align-items: end; display: grid; grid-template-columns: repeat(5,minmax(135px,1fr)) auto auto; }
.audit-filter label { min-width: 0; }
.audit-filter button,.audit-filter .link { margin: 0; }
.audit-filter .link { align-self: center; }
@media (max-width: 1200px) { .audit-filter { grid-template-columns: repeat(3,minmax(0,1fr)); }.audit-filter button { width: 100%; } }
@media (max-width: 800px) { .report-filter { flex-direction: column; }.audit-filter { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) { .audit-filter { grid-template-columns: 1fr; } }

/* In-app platform documentation */
.docs-hero { align-items: end; background: linear-gradient(135deg,#172554,#2563eb); border-radius: 16px; color: #fff; display: flex; gap: 28px; justify-content: space-between; margin-bottom: 18px; overflow: hidden; padding: 32px; position: relative; }
.docs-hero::after { border: 1px solid rgb(255 255 255 / 14%); border-radius: 50%; content: ''; height: 220px; position: absolute; right: -65px; top: -100px; width: 220px; }
.docs-hero .eyebrow { color: #bfdbfe; }
.docs-hero h1 { color: #fff; margin: 5px 0 10px; }
.docs-hero p:not(.eyebrow) { color: #dbeafe; margin: 0; max-width: 780px; }
.docs-hero-actions { align-items: flex-end; display: flex; flex-direction: column; gap: 12px; min-width: 190px; position: relative; z-index: 1; }
.docs-hero-actions span { color: #bfdbfe; font-size: 12px; }
.docs-hero-actions .button-secondary { background: #fff; border-color: #fff; color: #1d4ed8; }
.docs-search { display: grid; gap: 6px; grid-template-columns: minmax(180px,220px) minmax(280px,1fr); margin-bottom: 20px; padding: 16px 20px; }
.docs-search label { align-self: center; margin: 0; }
.docs-search input { margin: 0; }
.docs-search small { color: #64748b; grid-column: 2; }
.docs-layout { align-items: start; display: grid; gap: 22px; grid-template-columns: 230px minmax(0,1fr); }
.docs-toc { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 5px 18px rgb(15 23 42 / 5%); max-height: calc(100vh - 95px); overflow: auto; padding: 18px 12px; position: sticky; top: 76px; }
.docs-toc > strong { display: block; font-size: 12px; letter-spacing: .1em; padding: 0 9px 10px; text-transform: uppercase; }
.docs-toc nav { align-items: stretch; display: flex; flex-direction: column; gap: 2px; }
.docs-toc a { border-radius: 7px; color: #475569; font-size: 12px; line-height: 1.35; padding: 8px 9px; text-decoration: none; }
.docs-toc a:hover { background: var(--primary-soft); color: var(--primary-dark); }
.docs-content { display: grid; gap: 18px; min-width: 0; }
.docs-section { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 5px 18px rgb(15 23 42 / 4%); padding: 28px; scroll-margin-top: 82px; }
.docs-section-number { color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .14em; margin: 0 0 5px; }
.docs-section h2 { color: var(--ink); font-size: 24px; letter-spacing: -.025em; margin: 0 0 14px; }
.docs-section h3 { color: #1e3a8a; font-size: 16px; margin: 24px 0 9px; }
.docs-section > h3:first-of-type { margin-top: 18px; }
.docs-section p,.docs-section li { color: #475569; line-height: 1.65; }
.docs-section ul { margin-bottom: 0; padding-left: 20px; }
.docs-section code { background: #eff6ff; border-radius: 4px; color: #1e40af; font-size: .88em; padding: 2px 5px; }
.docs-grid { display: grid; gap: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 14px; }
.docs-grid > div { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; }
.docs-grid h3 { margin: 0 0 6px; }
.docs-grid p { margin: 0; }
.docs-flow { counter-reset: docs-flow; display: grid; gap: 10px; list-style: none; margin: 14px 0 0; padding: 0; }
.docs-flow li { align-items: start; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; display: grid; gap: 4px 12px; grid-template-columns: 31px minmax(130px,180px) 1fr; padding: 13px; }
.docs-flow li::before { align-items: center; background: #dbeafe; border-radius: 50%; color: #1d4ed8; content: counter(docs-flow); counter-increment: docs-flow; display: flex; font-size: 11px; font-weight: 800; height: 27px; justify-content: center; width: 27px; }
.docs-flow li strong { color: #0f172a; line-height: 1.55; }
.docs-flow li span { color: #526174; line-height: 1.55; }
.docs-flow.compact li { grid-template-columns: 31px minmax(130px,165px) 1fr; }
.docs-status-flow { align-items: center; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; padding: 13px; }
.docs-status-flow span { background: #fff; border: 1px solid #bfdbfe; border-radius: 20px; color: #1e40af; font-size: 12px; font-weight: 750; padding: 6px 10px; }
.docs-status-flow b { color: #64748b; font-size: 11px; }
.docs-callout { background: #eff6ff; border-left: 4px solid #3b82f6; border-radius: 8px; color: #1e3a8a; line-height: 1.6; margin-top: 18px; padding: 14px 16px; }
.docs-callout.warning { background: #fffbeb; border-left-color: #f59e0b; color: #854d0e; }
.docs-section .table-wrap { margin-top: 12px; }
.docs-section table { border-radius: 10px; box-shadow: none; }
.docs-section th { white-space: nowrap; }
.docs-section td { color: #475569; font-size: 13px; line-height: 1.5; vertical-align: top; }
.docs-empty { background: #fff; border: 1px dashed #94a3b8; border-radius: 12px; color: #64748b; padding: 35px; text-align: center; }
@media (max-width: 1050px) { .docs-layout { grid-template-columns: 1fr; }.docs-toc { max-height: none; position: static; }.docs-toc nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 800px) { .docs-hero { align-items: flex-start; flex-direction: column; padding: 24px; }.docs-hero-actions { align-items: flex-start; }.docs-search { grid-template-columns: 1fr; }.docs-search small { grid-column: 1; }.docs-toc nav { grid-template-columns: repeat(2,minmax(0,1fr)); }.docs-grid { grid-template-columns: 1fr; }.docs-flow li,.docs-flow.compact li { grid-template-columns: 31px 1fr; }.docs-flow li span { grid-column: 2; }.docs-section { padding: 21px; } }
@media (max-width: 520px) { .docs-toc nav { grid-template-columns: 1fr; }.docs-status-flow { align-items: flex-start; flex-direction: column; }.docs-status-flow b { margin-left: 11px; }.docs-hero-actions { min-width: 0; } }
@media print { .sidebar,.app-header,.docs-search,.docs-toc,.docs-hero-actions { display: none !important; }.page { margin: 0 !important; padding: 0 !important; }.content-wrap { max-width: none; }.docs-hero { background: #fff; border: 1px solid #cbd5e1; color: #0f172a; padding: 20px; }.docs-hero h1,.docs-hero p:not(.eyebrow) { color: #0f172a; }.docs-layout { display: block; }.docs-section { break-inside: avoid; box-shadow: none; margin-bottom: 14px; }.docs-content { display: block; } }
