@charset "UTF-8";

/* Atelier: local architectural typography, warm paper, restrained structure.
   Existing panel/field/table/KPI classes remain compatible. New shell classes:
   app-header, brand-mark/wordmark, sidebar, company-switcher, nav-primary,
   nav-group/children, nav-create and the keyboard-accessible mobile nav-toggle. */
:root {
  color-scheme: light;
  --ink: #292f2a;
  --muted: #646b63;
  --green: #40564a;
  --pale: #eaf0e9;
  --line: #dcded5;
  --paper: #f5f3ed;
  --white: #fffefa;
  --stone: #edeae2;
  --gold: #866c43;
  --danger: #943c32;
  --font: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  --display-font: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 110px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 350 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: var(--green); text-decoration: none; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
strong, b { font-weight: 600; }
::selection { background: #dce4d8; color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }

/* Brand and workspace shell */
.app-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 19px 36px; background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 16px; color: var(--ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; width: 52px; height: 52px; flex-shrink: 0; }
.brand-wordmark { font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: .23em; }
.brand-wordmark small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 350; line-height: 1.3; letter-spacing: .035em; }
.header-right, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.header-right { flex-wrap: nowrap; gap: 22px; font-size: 14px; }
.header-right form { margin: 0; flex-shrink: 0; }
.session-user { max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.layout { display: flex; align-items: flex-start; min-height: calc(100vh - 142px); }
.sidebar { width: 278px; flex: 0 0 278px; padding: 30px 22px 24px; background: var(--white); border-right: 1px solid var(--line); position: sticky; top: 92px; max-height: calc(100vh - 92px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c9cec3 transparent; }
.company-switcher { padding: 0 12px 25px; }
.company-switcher strong { display: block; margin-top: 8px; font-size: 19px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.switch { display: inline-block; margin-top: 9px; color: var(--muted); font-size: 13px; }
.switch span { padding-left: 3px; }
.company-navigation { display: grid; gap: 20px; }
.company-navigation a { display: block; padding: 10px 12px; min-height: 44px; border-radius: 5px; color: #4d574d; line-height: 1.5; font-size: 14px; font-weight: 400; transition: background-color .15s, color .15s; }
.company-navigation a:hover { color: var(--ink); background: var(--stone); text-decoration: none; }
.company-navigation a[aria-current="page"] { background: var(--pale); color: #293f32; font-weight: 600; box-shadow: inset 2px 0 var(--green); }
.company-navigation .nav-create { display: flex; align-items: center; gap: 10px; padding: 13px 12px; border: 1px solid #bbc7b9; background: #f0f3ec; color: #304a3a; font-weight: 500; font-size: 14px; line-height: 1.4; }
.nav-create .nav-plus { font-size: 23px; font-weight: 300; line-height: 1; }
.nav-primary { display: grid; gap: 3px; }
.nav-section { padding-top: 18px; border-top: 1px solid var(--line); }
.nav-caption { margin: 0 12px 12px; font-size: 12px; font-weight: 400; color: var(--muted); }
.nav-group { min-width: 0; }
.nav-group summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 5px; color: #465046; font-size: 14px; font-weight: 450; line-height: 1.5; cursor: pointer; list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: "+"; color: #75806f; font-size: 18px; font-weight: 300; flex-shrink: 0; }
.nav-group[open] > summary::after { content: "−"; }
.nav-group summary:hover { background: var(--stone); }
.nav-group[open] > summary { color: var(--ink); }
.nav-children { margin: 0 0 10px 13px; padding: 0 0 0 8px; border-left: 1px solid var(--line); }
.nav-children a { font-size: 13px; padding: 9px 11px; min-height: 40px; }
.nav-settings { padding-top: 14px; border-top: 1px solid var(--line); }
.side-foot { margin: 30px 12px 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.side-foot span { display: block; margin-top: 5px; color: #697261; font-size: 11px; }
.nav-toggle, .nav-toggle-label { display: none; }
main { width: 100%; min-width: 0; max-width: 1600px; padding: 34px clamp(26px, 3.3vw, 64px) 72px; margin-inline: auto; }
main.wide { max-width: 1220px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px 10px; align-items: baseline; color: var(--muted); margin-bottom: 28px; font-size: 12px; line-height: 1.6; }
.breadcrumb a { color: var(--muted); }
.breadcrumb > span[aria-hidden] { color: #a0a598; }
footer { padding: 15px 36px; text-align: right; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
footer span { display: inline-block; margin-inline: 10px; color: #a0a598; }
.skip { position: fixed; left: -9999px; top: 12px; z-index: 100; padding: 12px 20px; background: var(--white); border: 1px solid var(--green); border-radius: 4px; }
.skip:focus { left: 18px; }

/* Type and generous, quiet surfaces */
h1 { font-size: clamp(30px, 2.65vw, 43px); line-height: 1.18; letter-spacing: -.045em; font-weight: 400; margin: 13px 0 20px; overflow-wrap: anywhere; }
h2 { font-size: 22px; line-height: 1.4; letter-spacing: -.023em; font-weight: 450; margin: 12px 0 15px; }
h3 { font-size: 18px; font-weight: 500; line-height: 1.4; }
p { margin: 10px 0 20px; }
.eyebrow { color: var(--muted); font-size: 12px; letter-spacing: .1em; line-height: 1.5; font-weight: 450; margin: 0; }
.lead { max-width: 760px; color: var(--muted); font-size: 18px; line-height: 1.7; margin-bottom: 26px; }
small, .muted { color: var(--muted); font-size: 13px; line-height: 1.6; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 25px; }
.heading h1 { margin-bottom: 0; }
.heading > div { min-width: 0; }
.heading > .actions, .heading > form, .heading > .button { flex-shrink: 0; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; margin-bottom: 22px; }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.panel h2:first-child { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 32px; }
.card { min-height: 195px; display: flex; flex-direction: column; align-items: flex-start; color: var(--ink); }
.card > span:last-child { margin-top: auto; font-size: 14px; }
a.panel { transition: border-color .16s, background-color .16s; }
a.panel:hover { border-color: #a6b39f; background: #fafbf6; text-decoration: none; }
.two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: start; }
.two-col > * { min-width: 0; }
.tag { display: inline-block; background: var(--pale); color: #415344; border-radius: 4px; padding: 4px 9px; font-size: 12px; font-weight: 400; line-height: 1.5; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.metric { display: flex; flex-direction: column; padding: 23px 24px; min-width: 0; }
.metric > span { color: var(--muted); font-size: 14px; }
.metric strong { font-size: 40px; line-height: 1.4; font-weight: 350; letter-spacing: -.055em; margin: 10px 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric small { margin-top: auto; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 18px; margin: 28px 0; }
.kpi-grid .panel { margin: 0; }
.kpi-grid .metric strong { font-size: 32px; }
.steps { padding-left: 24px; color: var(--muted); line-height: 1.7; }
.steps li { padding: 7px 0 7px 7px; }
.steps li::marker { color: var(--green); font-variant-numeric: tabular-nums; }
.steps li[aria-current] { color: var(--ink); }

/* Commands and readable forms */
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; padding: 11px 19px; background: var(--green); color: #fffefa; border: 1px solid var(--green); border-radius: 5px; font: 450 14px/1.45 var(--font); letter-spacing: .005em; text-align: center; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
button:hover, .button:hover { background: #2d4235; border-color: #2d4235; color: #fffefa; text-decoration: none; }
button:active, .button:active { background: #24382b; }
.secondary, .quiet { background: transparent; color: var(--green); border-color: #bac5b7; }
.secondary:hover, .quiet:hover { background: var(--pale); border-color: #81937c; color: #283e2e; }
.quiet { min-height: 40px; padding: 8px 13px; font-size: 13px; border-color: var(--line); }
button:disabled, .button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.actions { row-gap: 12px; }
.actions > a:not(.button) { font-size: 14px; padding-block: 8px; }
input, select, textarea { width: 100%; min-height: 46px; padding: 11px 13px; background: #fffefa; color: var(--ink); border: 1px solid #87977e; border-radius: 5px; font-weight: 350; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: #617557; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
input::placeholder, textarea::placeholder { color: #6f776b; opacity: 1; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0 7px 0 0; vertical-align: -.18em; accent-color: var(--green); }
input[type="file"] { font-size: 14px; padding: 8px; }
input:disabled, select:disabled, textarea:disabled { background: var(--stone); color: var(--muted); cursor: not-allowed; }
textarea { min-height: 115px; resize: vertical; }
label { display: block; font-size: 14px; font-weight: 450; line-height: 1.6; margin-bottom: 8px; }
label small { font-weight: 350; }
.field { margin-bottom: 26px; }
.field > small { display: block; margin-top: 8px; }
.field label small { display: inline; margin: 0; }
.form-panel { max-width: 850px; }
.form-panel > p:first-child { color: var(--muted); font-size: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 25px; }
.form-panel .actions { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 26px; }
.search { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 20px 24px; }
.search input[name="q"] { max-width: 340px; flex: 1 1 190px; }
.search label { margin: 0; }
.check { font-size: 14px; font-weight: 350; }
.scenario-fields { margin-top: 28px; min-width: 0; }
.scenario-fields legend { font-size: 21px; font-weight: 450; padding: 0 10px; }
.scenario-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }

/* Dense financial tables retain their data; small screens scroll the table. */
.table-wrap { padding: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; font-variant-numeric: tabular-nums; }
th { background: #eeeee6; color: #586151; font-size: 13px; font-weight: 500; line-height: 1.5; }
th, td { padding: 17px 21px; border-bottom: 1px solid var(--line); vertical-align: top; }
td { line-height: 1.7; }
tbody tr { transition: background-color .12s; }
tbody tr:hover { background: #f8f9f2; }
tr:last-child td { border-bottom: 0; }
table td a { text-decoration: underline; text-decoration-color: #c2ccba; }
table td a:hover { text-decoration-color: var(--green); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px; margin-top: 25px; font-size: 14px; }
.pagination a { padding: 8px; }
.details { margin-top: 12px; }
.details > div { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 14px 28px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.details > div:last-child { border-bottom: 0; }
dt { font-size: 14px; color: var(--muted); font-weight: 400; }
dd { margin: 0; overflow-wrap: anywhere; }
summary { cursor: pointer; font-weight: 450; }
details.panel > summary { padding: 1px 0; }
details.panel[open] > summary { margin-bottom: 20px; }

/* Feedback and documents */
.demo { font-size: 13px; line-height: 1.6; background: #f1eada; border: 1px solid #dfd4b8; padding: 11px 16px; border-radius: 5px; margin-bottom: 28px; color: #665637; }
.message { background: var(--pale); color: #374c3b; padding: 17px 20px; border-left: 3px solid #75896b; border-radius: 0 5px 5px 0; margin-bottom: 22px; }
.errorlist { color: var(--danger); background: #fbede7; border-radius: 5px; padding: 12px 18px 12px 33px; font-size: 14px; line-height: 1.65; }
.errorlist li + li { margin-top: 7px; }
.loss { color: #8a382b; background: #faece5; font-weight: 500; }
.archive { margin-top: 32px; color: var(--muted); }
.event { padding: 19px 0; border-bottom: 1px solid var(--line); }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.7; }
/* Entry pages and portfolio overview */
.page-intro { padding-block: 6px 26px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.page-intro h1 { font-family: var(--display-font); font-size: clamp(35px, 3.5vw, 52px); letter-spacing: -.035em; font-weight: 400; }
.page-intro .lead { margin-bottom: 0; }
.page-intro .actions { margin-top: 18px; }
.portfolio-card { min-height: 230px; padding: 28px; margin-bottom: 0; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.portfolio-card h2 { font-family: var(--display-font); font-size: 30px; font-weight: 400; line-height: 1.25; margin-block: 28px; overflow-wrap: anywhere; }
.card-footer { display: flex; justify-content: space-between; align-items: center; width: 100%; border-top: 1px solid var(--line); padding-top: 18px; margin-top: auto; font-size: 14px; color: var(--green); }
.overview-shortcuts { display: grid; grid-template-columns: 1fr; margin: 22px 0 0; }
.shortcut { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink); }
.shortcut::after { content: "↗"; margin-left: auto; color: var(--green); }
.shortcut:hover { color: var(--green); text-decoration: none; }
.shortcut:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.shortcut-index { flex: 0 0 24px; padding-top: 3px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.shortcut strong { display: block; font-size: 17px; font-weight: 500; }
.shortcut small { display: block; margin-top: 5px; }
.data-status { margin: 20px 0; }
.data-status > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.data-status dd { font-size: 14px; }
.overview-page .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.overview-page .metric { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 12px; padding: 18px 22px; margin: 0; border: 0; border-radius: 0; border-right: 1px solid var(--line); }
.overview-page .metric:nth-child(3n) { border-right: 0; }
.overview-page .metric:nth-child(n+4) { border-top: 1px solid var(--line); }
.overview-page .metric strong { font-size: 32px; line-height: 1.25; margin: 0; }
.overview-page .metric small { grid-column: 1 / -1; font-size: 12px; }

/* A quiet arrival; the form stays first on narrow screens. */
.auth-page .layout { align-items: center; }
.auth-page main { padding-block: 42px; }
.login-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; align-items: stretch; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.login-intro { display: flex; flex-direction: column; padding: clamp(34px, 4vw, 62px); background: #304b40; color: #fffefa; min-height: 550px; }
.login-intro .eyebrow { color: #dae1d5; font-size: 11px; letter-spacing: .16em; }
.login-intro h2 { font-family: var(--display-font); font-size: clamp(36px, 3.8vw, 52px); line-height: 1.18; font-weight: 400; letter-spacing: -.035em; margin: 46px 0 26px; }
.login-intro em { font-weight: 400; }
.login-intro .lead { color: #e0e5dc; font-size: 16px; line-height: 1.8; }
.login-signature { display: flex; align-items: center; gap: 22px; margin-top: auto; padding-top: 40px; }
.login-signature img { width: 80px; height: 80px; filter: brightness(0) invert(1); opacity: .85; }
.login-signature span { color: #dae1d5; font-size: 12px; letter-spacing: .035em; }
.login-panel { align-self: center; padding: clamp(30px, 4vw, 58px); margin: 0; border: 0; background: transparent; }
.login-panel h1 { font-family: var(--display-font); font-size: clamp(29px, 2.7vw, 36px); line-height: 1.2; font-weight: 400; letter-spacing: -.025em; margin: 18px 0 14px; }
.login-panel > .eyebrow { font-size: 10px; letter-spacing: .12em; }
.login-description { color: var(--muted); font-size: 15px; margin-bottom: 30px; }
.login-panel input { border-color: #a3afa0; }
.login-panel input:focus { border-color: var(--green); }
.login-panel .field { margin-bottom: 22px; }
.password-field { position: relative; }
.password-field input { padding-right: 92px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 6px 9px; min-height: 34px; border-color: transparent; background: transparent; color: var(--green); font-size: 12px; }
.password-toggle:hover { border-color: transparent; background: var(--pale); color: var(--ink); }
.password-toggle[hidden] { display: none; }
.login-submit { width: 100%; justify-content: space-between; padding: 13px 18px; margin-top: 4px; }
.login-help { padding-top: 24px; margin-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }

@media (min-width: 1800px) { .sidebar { width: 294px; flex-basis: 294px; } main { padding-top: 42px; } }
@media (max-width: 1180px) {
  .sidebar { width: 250px; flex-basis: 250px; padding-inline: 16px; }
  main { padding-inline: 28px; }
  .heading { align-items: flex-start; flex-direction: column; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; gap: 0; }
  .login-intro { padding: 34px; }
}
@media (max-width: 800px) {
  html { scroll-padding-top: 24px; }
  .app-header { position: relative; padding: 18px 22px; min-height: 84px; }
  .brand { gap: 12px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-wordmark { font-size: 17px; }
  .session-user { display: none; }
  .layout { display: block; }
  .sidebar { width: 100%; max-height: none; position: static; padding: 20px 22px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .company-switcher { padding: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 18px; align-items: baseline; }
  .company-switcher .eyebrow { grid-column: 1 / -1; }
  .company-switcher strong { font-size: 18px; }
  .switch { margin-top: 6px; }
  .nav-toggle { display: block; position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .nav-toggle-label { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin: 18px 0 0; padding: 10px 13px; border: 1px solid var(--line); border-radius: 5px; color: var(--green); cursor: pointer; font-size: 14px; }
  .nav-toggle-label::after { content: "+"; font-size: 20px; font-weight: 300; }
  .nav-hide { display: none; }
  .nav-toggle:checked + .nav-toggle-label .nav-hide { display: inline; }
  .nav-toggle:checked + .nav-toggle-label .nav-show { display: none; }
  .nav-toggle:checked + .nav-toggle-label::after { content: "−"; }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--gold); outline-offset: 4px; }
  .company-navigation { display: none; margin-top: 18px; }
  .nav-toggle:checked ~ .company-navigation { display: grid; }
  .nav-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-section { padding-top: 12px; }
  .side-foot { display: none; }
  main { padding: 28px 24px 54px; }
  .breadcrumb { margin-bottom: 23px; }
  .panel { padding: 25px; }
  .table-wrap { padding: 0; }
  .auth-page main { max-width: 540px; padding-block: 28px; }
  .login-grid { grid-template-columns: 1fr; }
  .login-intro { display: none; }
  .login-panel { padding: 32px; }
  .login-panel h1 { font-size: 32px; }
  .overview-shortcuts { grid-template-columns: 1fr; }
  .overview-page .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-page .metric { padding: 16px 18px; }
  .overview-page .metric:nth-child(3n) { border-right: 1px solid var(--line); }
  .overview-page .metric:nth-child(2n) { border-right: 0; }
  .overview-page .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .scenario-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .app-header { padding: 16px; gap: 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-wordmark { font-size: 15px; letter-spacing: .17em; }
  .brand-wordmark small { font-size: 11px; letter-spacing: 0; }
  .header-right .quiet { padding: 8px 10px; font-size: 12px; }
  .sidebar { padding: 17px 18px; }
  .company-switcher { grid-template-columns: 1fr; }
  .switch { font-size: 13px; }
  main { padding: 24px 18px 45px; }
  h1 { font-size: 31px; }
  h2 { font-size: 21px; }
  .lead { font-size: 17px; }
  .panel { padding: 23px 21px; }
  .auth-page main { padding: 22px 16px 35px; }
  .login-panel { padding: 30px 24px; }
  .login-panel h1 { font-size: 30px; }
  .page-intro h1 { font-size: 36px; }
  .portfolio-card h2 { font-size: 28px; }
  .shortcut { gap: 12px; }
  .table-wrap { padding: 0; }
  .metrics { gap: 12px; }
  .metric { padding: 18px; }
  .metric strong { font-size: 34px; }
  .metric > span { font-size: 13px; }
  .kpi-grid { grid-template-columns: 1fr; gap: 12px; }
  .kpi-grid .metric strong { font-size: 34px; }
  .details > div { grid-template-columns: 1fr; gap: 5px; }
  .heading > .actions { flex-shrink: 1; }
  .form-panel .actions { align-items: stretch; }
  .form-panel .actions > button { flex: 1 1 100%; }
  .search { gap: 12px; }
  .search input[name="q"] { flex-basis: 100%; max-width: none; }
  th, td { padding: 15px 17px; }
  footer { padding: 14px 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  body { background: white; color: black; font-size: 11pt; }
  .app-header, .sidebar, footer, .breadcrumb, .skip, button, .actions, .search, .pagination { display: none !important; }
  .layout { display: block; }
  main, main.wide { max-width: none; padding: 0; }
  .panel { border-color: #ccc; background: white; padding: 16px; break-inside: avoid; }
  .table-wrap { overflow: visible; padding: 0; }
  table { font-size: 9pt; }
  th, td { padding: 8px; }
  h1 { font-size: 25pt; }
  a { color: black; }
}
