@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    color-scheme: light;
    --ink: #192b40;
    --muted: #66798d;
    --paper: #f1f5fa;
    --white: #fff;
    --line: #d9e3ef;
    --forest: #12365b;
    --forest-light: #2466a6;
    --leaf: #a9d9f5;
    --citrus: #55bfd0;
    --red: #a33d37;
    --red-pale: #fff0ed;
    --green: #28704d;
    --green-pale: #eaf5eb;
    --shadow: 0 20px 55px rgba(24, 57, 92, .13);
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font-family: 'DM Sans', 'Segoe UI', sans-serif; font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(76, 151, 216, .55); outline-offset: 2px; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(ellipse at 9% 85%, rgba(85, 191, 208, .18), transparent 35%), linear-gradient(135deg, #e8f0fa 0%, #f7f9fc 48%, #e5eef8 100%); }
.login-shell { width: min(950px, 100%); min-height: 550px; display: grid; grid-template-columns: .92fr 1.08fr; overflow: hidden; border: 1px solid rgba(255,255,255,.86); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); animation: arrive .45s ease-out both; }
.login-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 58px 54px; color: #f6f7ec; background: var(--forest); }
.login-brand::after { content: ''; position: absolute; width: 280px; height: 280px; right: -130px; bottom: -118px; border: 1px solid rgba(201,226,122,.3); border-radius: 50%; box-shadow: 0 0 0 27px rgba(201,226,122,.045), 0 0 0 56px rgba(201,226,122,.035); }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 35px; border: 1px solid rgba(169,217,245,.75); border-radius: 12px; color: var(--leaf); font-family: 'Manrope', sans-serif; font-size: 24px; font-weight: 800; }
.brand-mark.small { width: 36px; height: 36px; margin: 0; flex: 0 0 36px; font-size: 19px; }
.eyebrow { margin: 0 0 9px; color: #7a8982; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.25px; }
.login-brand .eyebrow { color: var(--leaf); }
.login-brand h1 { margin: 0; font-family: 'Manrope', sans-serif; font-size: 48px; line-height: 1.05; font-weight: 800; }
.login-brand h1 span { display: inline-block; margin-left: 10px; color: var(--leaf); font-size: 16px; vertical-align: top; }
.brand-note { max-width: 280px; margin: 19px 0 28px; color: #d5ded8; font-size: 16px; line-height: 1.6; }
.brand-rule { width: 44px; height: 3px; background: var(--citrus); }
.brand-foot { margin: 15px 0 0; color: #aabbb1; font-size: 12px; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 62px clamp(32px, 7vw, 72px); }
.login-panel h2 { margin: 0; font-family: 'Manrope', sans-serif; font-size: 29px; line-height: 1.2; }
.muted { color: var(--muted); }
.login-panel > .muted { margin: 9px 0 27px; }
.stack-form { display: grid; gap: 10px; }
.stack-form label, .field label { margin-top: 7px; color: #344440; font-size: 12px; font-weight: 700; }
.stack-form input, .field input, .field textarea, .field select, .search-form input { width: 100%; min-width: 0; min-height: 43px; padding: 10px 12px; border: 1px solid #cfdae8; border-radius: 10px; color: var(--ink); background: #fff; }
.stack-form input { margin-bottom: 6px; }
.stack-form input:focus, .field input:focus, .field textarea:focus, .field select:focus, .search-form input:focus { border-color: var(--forest-light); outline: 3px solid rgba(40, 87, 75, .13); }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button:hover:not(.disabled) { transform: translateY(-1px); }
.button.primary { color: #f8f9f2; background: var(--forest); }
.button.primary:hover { background: var(--forest-light); }
.button.secondary { color: #31423d; border-color: var(--line); background: #fff; }
.button.secondary:hover { border-color: #a6b8ac; background: #f8faf7; }
.button.ghost { color: #43534d; border-color: var(--line); background: transparent; }
.button.ghost:hover { background: #f4f6f3; }
.button.full-width { width: 100%; min-height: 46px; margin-top: 8px; }
.button.disabled { pointer-events: none; opacity: .4; }
.login-foot { margin: 30px 0 0; color: #89958f; font-size: 11px; }
.login-foot code { color: var(--forest); }

.app-page { min-height: 100vh; background: var(--paper); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 2; width: 238px; display: flex; flex-direction: column; overflow-y: auto; padding: 25px 17px 18px; color: #eff4e9; background: var(--forest); }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 7px 33px; font-family: 'Manrope', sans-serif; font-size: 19px; font-weight: 800; }
.brand small { display: block; margin-top: 3px; color: #a8c59f; font: 700 9px 'DM Sans', sans-serif; letter-spacing: 1.2px; }
.nav-label { margin: 0 9px 10px; color: #a1b7ab; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.1px; }
.nav-section { margin-bottom: 4px; }
.nav-section summary { min-height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 0 9px; color: #a1b7ab; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; list-style: none; }
.nav-section summary::-webkit-details-marker { display: none; }
.nav-section summary span { color: #82998c; font-size: 10px; font-variant-numeric: tabular-nums; }
.nav-section nav { display: grid; gap: 3px; }
.sidebar nav { display: grid; gap: 4px; }
.nav-link { min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 11px; border-radius: 9px; color: #d7e6f5; font-weight: 600; }
.nav-link:hover { background: rgba(255,255,255,.08); }
.nav-link.active { color: #fbfdf6; background: var(--forest-light); box-shadow: inset 3px 0 var(--leaf); }
.nav-dot { width: 7px; height: 7px; border: 1px solid #9bb8c9; border-radius: 50%; }
.nav-link.active .nav-dot { border-color: var(--leaf); background: var(--leaf); }
.sidebar-bottom { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 16px 8px 0; border-top: 1px solid rgba(255,255,255,.13); color: #b6c7bd; font-size: 11px; }
.online-dot, .status span { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #97cc76; }
.main-area { min-height: 100vh; margin-left: 238px; }
.topbar { min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 17px clamp(22px, 4vw, 55px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.83); }
.mobile-menu-toggle { display: none; }
.breadcrumb { display: block; margin-bottom: 4px; color: #7b8983; font-size: 11px; }
.topbar h1 { margin: 0; font-family: 'Manrope', sans-serif; font-size: 23px; font-weight: 800; }
.logout-form { margin: 0; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.pwa-install[hidden] { display: none; }
.content-wrap { max-width: 1320px; margin: 0 auto; padding: 30px clamp(22px, 4vw, 55px) 52px; }
.section-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-intro .eyebrow { margin-bottom: 4px; }
.section-intro .muted { margin: 0; font-size: 13px; }
.section-intro .button { white-space: nowrap; }
.data-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 7px 25px rgba(24,57,92,.055); }
.table-toolbar { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 17px; border-bottom: 1px solid var(--line); }
.search-form { display: flex; align-items: center; gap: 8px; width: min(560px, 100%); }
.search-form input { max-width: 330px; min-height: 37px; background: #fbfcfe; }
.search-form .button { min-height: 37px; }
.clear-search { color: var(--forest-light); font-size: 12px; font-weight: 700; }
.result-count { color: #75827c; font-size: 12px; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 13px 16px; border-bottom: 1px solid #edf0ed; }
th { color: #77879a; background: #f5f8fc; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .45px; white-space: nowrap; }
td { color: #33423d; font-size: 13px; }
tbody tr:hover { background: #fbfcf9; }
tbody tr:last-child td { border-bottom: 0; }
.actions-heading { width: 96px; text-align: right; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; white-space: nowrap; }
.row-actions form { display: inline-flex; margin: 0; }
.icon-action { width: 31px; height: 31px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 9px; color: var(--forest-light); background: transparent; font-size: 18px; cursor: pointer; }
.icon-action:hover { border-color: var(--line); background: #f3f7f2; }
.icon-action.danger-action { color: var(--red); font-size: 22px; }
.icon-action.danger-action:hover { border-color: #f2d1cb; background: var(--red-pale); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 999px; color: var(--green); background: var(--green-pale); font-size: 11px; font-weight: 700; }
.status.disabled { color: #747d78; background: #eef0ee; }
.status.disabled span { background: #aab2ad; }
.date-value { color: #64716b; font-variant-numeric: tabular-nums; font-size: 12px; }
.empty-state { height: 150px; text-align: center; }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { margin-bottom: 6px; color: #42514b; }
.empty-state span { color: #849089; font-size: 12px; }
.table-footer { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 17px; border-top: 1px solid var(--line); color: #77837d; font-size: 12px; }
.pagination { display: flex; gap: 6px; }
.pagination .button { width: 35px; min-height: 33px; padding: 0; }
.schema-note { margin: 14px 0 0; color: #87928c; font-size: 11px; }
.reports-wrap { max-width: 1480px; }
.invoice-wrap { max-width: 1420px; }
.purchase-wrap { max-width: 1420px; }
.purchase-start-form { padding: 0 22px 22px; }
.purchase-checkout .checkout-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.purchase-checkout .checkout-fields .field.wide { grid-column: 1 / -1; }
.invoice-dashboard { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.4fr); gap: 18px; align-items: start; }
.invoice-start, .invoice-drafts, .invoice-customer, .invoice-products, .invoice-lines, .invoice-checkout { margin-bottom: 18px; }
.invoice-panel-heading { padding: 20px 22px 16px; }
.invoice-panel-heading .eyebrow { margin-bottom: 5px; }
.invoice-panel-heading h2, .invoice-panel-heading h3 { margin: 0; color: var(--ink); font-family: 'Manrope', sans-serif; font-size: 17px; }
.invoice-panel-heading h3 { font-size: 15px; }
.invoice-panel-heading > .muted { margin: 8px 0 0; font-size: 12px; line-height: 1.5; }
.invoice-panel-heading.compact { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; }
.invoice-start-form { padding: 0 22px 22px; }
.opening-status { display: flex; align-items: center; gap: 8px; margin: 0 22px 15px; padding: 10px 12px; border-radius: 9px; color: #245c88; background: #eaf3fb; font-size: 12px; font-weight: 700; }
.invoice-empty { padding: 22px; color: var(--muted); font-size: 12px; }
.invoice-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 18px; }
.invoice-titlebar h2 { margin: 0 0 5px; font: 800 21px 'Manrope', sans-serif; }
.invoice-titlebar .eyebrow { margin-bottom: 4px; }
.invoice-titlebar form { margin: 0; }
.invoice-meta { color: var(--muted); font-size: 11px; }
.danger-button { color: #963c38; border-color: #f0cbc6; background: #fff7f5; }
.danger-button:hover { background: #ffefeb; }
.invoice-badge { padding: 5px 10px; border-radius: 999px; color: #9a6720; background: #fff4dc; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.inline-invoice-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; padding: 0 22px 20px; }
.inline-invoice-form select, .add-product-form input { min-height: 38px; padding: 8px 10px; border: 1px solid #cfdae8; border-radius: 9px; background: #fff; color: var(--ink); }
.invoice-product-search { padding: 0 20px 16px; }
.invoice-product-search input { max-width: 500px; }
.product-results { max-height: 360px; border-top: 1px solid var(--line); }
.product-results table { min-width: 780px; }
.add-product-form { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 260px; }
.add-product-form input { width: 75px; }
.invoice-lines .table-toolbar { border-bottom: 0; }
.invoice-lines table { min-width: 720px; }
.invoice-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); background: #f8fafd; }
.invoice-totals > div { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 11px; }
.invoice-totals strong { color: var(--ink); font-size: 13px; }
.invoice-totals .grand-total { text-align: right; }
.invoice-totals .grand-total strong { color: var(--forest-light); font: 800 20px 'Manrope', sans-serif; }
.checkout-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0 22px 20px; }
.checkout-fields .field { gap: 6px; }
.checkout-fields .field label { font-size: 11px; }
.checkout-fields .field input, .checkout-fields .field select { min-height: 39px; padding: 8px 10px; border: 1px solid #cfdae8; border-radius: 9px; }
.checkout-fields .field.wide { grid-column: 1 / -1; }
.checkout-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 22px; border-top: 1px solid var(--line); background: #f7f9fc; }
.checkout-footer p { max-width: 580px; margin: 0; font-size: 11px; line-height: 1.5; }
.checkout-footer button:disabled { cursor: not-allowed; opacity: .5; }
.invoice-complete { max-width: 760px; margin: 7vh auto; padding: clamp(26px, 5vw, 52px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.invoice-complete-mark { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 18px; color: #185a94; background: #e2f1ff; font-size: 26px; }
.invoice-complete h2 { margin: 0; font: 800 25px 'Manrope', sans-serif; }
.invoice-complete p:not(.eyebrow) { color: var(--muted); }
.invoice-complete-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 22px; }
.report-exports { display: flex; flex-wrap: wrap; gap: 8px; }
.report-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 0 0 20px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 7px 25px rgba(24,57,92,.045); }
.report-filters .field { gap: 7px; }
.report-filter-actions { display: flex; align-items: flex-end; gap: 8px; grid-column: 1 / -1; }
.report-results .table-toolbar > div { display: flex; align-items: baseline; gap: 12px; }
.report-generated { font-size: 11px; }
.report-results table { min-width: 780px; }
.report-results td { white-space: nowrap; }
.report-summary { display: flex; justify-content: space-between; gap: 15px; padding: 14px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.report-summary strong { color: var(--forest); font-size: 15px; }
.report-empty { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px dashed #c8d6e6; border-radius: 14px; color: #63788f; background: rgba(255,255,255,.65); text-align: center; }
.report-empty strong { color: var(--ink); }
.report-empty span:last-child { max-width: 410px; padding: 0 20px; font-size: 12px; }
.report-empty-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 5px; border-radius: 13px; color: var(--forest-light); background: #e4f0fb; font-size: 22px; }
.login-install { margin: 0 0 14px; align-self: flex-start; }
.offline-shell { min-height: 380px; }
.form-wrap { max-width: 1000px; }
.back-link { display: inline-block; margin: 0 0 19px; color: var(--forest-light); font-size: 12px; font-weight: 700; }
.edit-form { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 7px 25px rgba(24,57,92,.055); }
.form-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 22px 25px 19px; border-bottom: 1px solid var(--line); }
.form-heading .eyebrow { margin-bottom: 5px; }
.form-heading h2 { margin: 0; font-family: 'Manrope', sans-serif; font-size: 18px; }
.required-note { color: #78847e; font-size: 11px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 23px; padding: 24px 25px 28px; }
.field { min-width: 0; display: grid; align-content: start; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
.field label { margin: 0; }
.field small { color: #7a8781; font-size: 11px; line-height: 1.5; }
.field textarea { resize: vertical; min-height: 90px; }
.field select { cursor: pointer; }
.product-extra-section { margin: 0 25px 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.product-extra-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 19px; border-bottom: 1px solid var(--line); background: #f7f9fc; }
.product-extra-heading h3 { margin: 0; color: var(--ink); font: 700 15px 'Manrope', sans-serif; }
.product-extra-heading .eyebrow { margin: 0 0 3px; }
.product-extra-heading .muted { margin: 5px 0 0; font-size: 11px; }
.product-extra-table th, .product-extra-table td { padding: 9px 11px; }
.product-extra-table input:not([type="checkbox"]), .product-extra-table select { width: 100%; min-width: 100px; min-height: 43px; padding: 10px 12px; border: 1px solid #cfdae8; border-radius: 10px; color: var(--ink); background: #fff; }
.product-extra-table input:not([type="checkbox"]):focus, .product-extra-table select:focus, .product-image-field input:focus { border-color: var(--forest-light); outline: 3px solid rgba(40, 87, 75, .13); }
.product-extra-table input[type="checkbox"] { width: auto; min-height: 0; }
.remove-row { display: inline-flex; align-items: center; gap: 6px; color: #8b3733; font-size: 12px; white-space: nowrap; }
.product-extra-table .button { min-height: 34px; padding: 0 10px; font-size: 11px; }
.product-image-section .product-extra-heading { align-items: center; }
.product-image-preview { width: 84px; height: 84px; flex: 0 0 84px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.product-image-field { display: grid; gap: 8px; padding: 16px 19px; }
.product-image-field label { color: #344440; font-size: 12px; font-weight: 700; }
.product-image-field input { width: 100%; min-height: 43px; padding: 8px 10px; border: 1px solid #cfdae8; border-radius: 10px; color: var(--ink); background: #fff; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 25px; border-top: 1px solid var(--line); background: #f7f9fc; }
.notice { margin-bottom: 18px; padding: 12px 14px; border: 1px solid; border-radius: 10px; font-size: 12px; line-height: 1.5; }
.notice.error { border-color: #f0c8c2; color: #7e302c; background: var(--red-pale); }
.notice.success { border-color: #c9e2cd; color: #24583d; background: var(--green-pale); }
.notice ul { margin: 0; padding-left: 19px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@keyframes arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 780px) {
    .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1001; width: min(320px, 86vw); min-height: 100vh; padding: 24px 17px 18px; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 12px 0 35px rgba(0,0,0,.2); }
    .sidebar.is-open { transform: translateX(0); }
    body.menu-open { overflow: hidden; }
    body.menu-open::before { position: fixed; inset: 0; z-index: 1000; background: rgba(13, 28, 44, .48); content: ''; }
    .brand { padding: 2px 7px 33px; }
    .sidebar .nav-label, .sidebar-bottom { display: none; }
    .sidebar nav { display: grid; overflow: visible; gap: 4px; padding: 0; }
    .nav-section { min-width: 0; margin: 0 0 4px; }
    .nav-section summary { min-height: 38px; padding: 0 9px; }
    .nav-section nav { max-height: none; overflow: visible; padding: 0; border: 0; background: transparent; }
    .nav-link { min-height: 42px; padding: 0 11px; font-size: 14px; }
    .main-area { margin-left: 0; }
    .topbar { min-height: 77px; gap: 12px; padding: 13px 18px; }
    .topbar > div:first-of-type { min-width: 0; flex: 1; }
    .mobile-menu-toggle { width: 40px; height: 40px; flex: 0 0 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; cursor: pointer; }
    .mobile-menu-toggle span { width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
    .content-wrap { padding: 23px 16px 34px; }
    .report-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .invoice-dashboard { grid-template-columns: minmax(0, 1fr); }
    .checkout-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .purchase-checkout .checkout-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .login-shell { max-width: 500px; grid-template-columns: 1fr; }
    .login-brand { min-height: 215px; padding: 26px 30px; }
    .brand-mark { width: 36px; height: 36px; margin-bottom: 17px; font-size: 20px; }
    .login-brand h1 { font-size: 38px; }
    .brand-note { margin: 10px 0 14px; font-size: 13px; }
    .brand-rule, .brand-foot { display: none; }
    .login-panel { padding: 30px; }
}
@media (max-width: 520px) {
    .login-page { padding: 14px; }
    .topbar h1 { font-size: 20px; }
    .topbar .button { min-height: 34px; padding: 0 10px; }
    .section-intro { align-items: flex-start; flex-direction: column; }
    .topbar-actions { gap: 5px; }
    .topbar-actions .button { padding: 0 9px; font-size: 11px; }
    .report-filters { grid-template-columns: minmax(0, 1fr); padding: 16px; }
    .report-filter-actions { align-items: stretch; flex-direction: column; }
    .invoice-titlebar { align-items: flex-start; flex-direction: column; }
    .invoice-titlebar form, .invoice-titlebar .button { align-self: stretch; }
    .invoice-totals { grid-template-columns: minmax(0, 1fr); }
    .invoice-totals .grand-total { text-align: left; }
    .checkout-fields { grid-template-columns: minmax(0, 1fr); padding-right: 16px; padding-left: 16px; }
    .purchase-checkout .checkout-fields { grid-template-columns: minmax(0, 1fr); }
    .checkout-fields .field.wide { grid-column: auto; }
    .checkout-footer { align-items: stretch; flex-direction: column; padding-right: 16px; padding-left: 16px; }
    .inline-invoice-form { grid-template-columns: minmax(0, 1fr); padding-right: 16px; padding-left: 16px; }
    .section-intro .button { align-self: stretch; }
    .table-toolbar { align-items: flex-start; flex-direction: column; }
    .search-form { flex-wrap: wrap; }
    .search-form input { max-width: none; flex: 1 1 100%; }
    .field-grid { grid-template-columns: minmax(0, 1fr); padding: 19px 17px 23px; }
    .field.wide { grid-column: auto; }
    .form-heading { align-items: flex-start; flex-direction: column; padding: 19px 17px 15px; }
    .product-extra-section { margin: 0 17px 16px; }
    .product-extra-heading { align-items: flex-start; flex-direction: column; padding: 15px; }
    .product-image-section .product-extra-heading { align-items: flex-start; }
    .product-image-preview { align-self: flex-start; }
    .product-image-field { padding: 14px 15px; }
    .form-actions { padding: 13px 17px; }
    th, td { padding: 11px 12px; }
}
