/* Editorial page shell (templates/layouts/editorial.html).
   An ivory page, a quiet top bar, serif headings and hairline rules, on the pcso-ui
   Forest tokens. The shared components below keep the classic layout's sizes and
   structure so every page template works unchanged under either shell; only the
   look differs. The classic shell's styles live in layouts/classic.html. */

:root {
    /* pcso-ui house tokens (Forest) */
    --button-bg: #0b3f1f;
    --button-bg-rgb: 11, 63, 31;
    --button-color: #ffffff;
    --link-color: #15803d;
    --center-channel-bg: #ffffff;
    --center-channel-bg-rgb: 255, 255, 255;
    --center-channel-color: #3f4350;
    --center-channel-color-rgb: 63, 67, 80;
    --title-color-indigo-500: #0b3f1f;
    --elevation-1: 0 2px 3px 0 rgba(0, 0, 0, 0.08);
    --elevation-2: 0 4px 6px 0 rgba(0, 0, 0, 0.12);
    --elevation-4: 0 8px 24px 0 rgba(0, 0, 0, 0.12);
    --elevation-5: 0 12px 32px 0 rgba(0, 0, 0, 0.12);

    /* Editorial additions */
    --canvas-bg: #faf9f5;
    --canvas-bg-rgb: 250, 249, 245;
    --status-danger: #b42318;
    --status-danger-rgb: 180, 35, 24;
    --status-warn: #b45309;
    --status-warn-rgb: 180, 83, 9;
    --status-ok: #15803d;
    --status-ok-rgb: 21, 128, 61;
    --ink-muted: rgba(var(--center-channel-color-rgb), 0.78);
    --hairline: rgba(var(--center-channel-color-rgb), 0.14);
    --hairline-strong: rgba(var(--center-channel-color-rgb), 0.26);
    --fill-subtle: rgba(var(--center-channel-color-rgb), 0.05);
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-label: 'Inter', 'Open Sans', system-ui, sans-serif;
    --font-wordmark: 'Space Grotesk', 'Inter', sans-serif;
    --app-header-height: 68px;

    /* The names page and module stylesheets already use, mapped onto the tokens above. */
    --font-ui: var(--font-body);
    --font-mono: Consolas, 'Cascadia Mono', 'Courier New', monospace;
    --brand-green: #0b3f1f;
    --brand-green-dark: #082e16;
    --brand-green-light: #1f5c37;
    --brand-gold: #d9ad45;
    --brand-gold-light: #f0d48a;
    --brand-gold-focus: #8a651a;
    --shadow-panel: 0 1px 2px rgba(20, 20, 19, 0.05);
    --shadow-raised: 0 8px 24px rgba(20, 20, 19, 0.08);
    --shadow-dialog: 0 24px 64px rgba(20, 20, 19, 0.18), 0 6px 18px rgba(20, 20, 19, 0.10);
    --gold-glow: 0 0 0 transparent;
    --surface: #ffffff;
    --surface-alt: #f3f2ec;
    --border: #d9d7cf;
    --border-light: #e9e7e0;
    --text-primary: #2f323a;
    --text-secondary: #4f525b;
    --text-muted: #63666e;
    --success: #15803d;
    --error: #b42318;
    --info: #1d4ed8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-primary);
    background: var(--canvas-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
button, input, select, textarea, dialog { font-family: inherit; line-height: 1.5; }
input::file-selector-button { font-family: inherit; }
code, pre, kbd, samp { font-family: var(--font-mono); }
.ui-icon {
    display: inline-block; width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -0.18em;
    fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 600; }
h3 { font-size: 1rem; }
h4, h5, h6 { font-size: 0.9rem; }
a { color: var(--link-color); text-underline-offset: 3px; }
a:hover { color: var(--brand-green); }
:focus-visible { outline: 2px solid var(--link-color); outline-offset: 3px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; top: 8px; left: 8px; z-index: 300; padding: 10px 16px; border-radius: 8px;
    background: var(--surface); color: var(--brand-green); font-weight: 600; box-shadow: var(--elevation-4);
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* ===== Top bar ===== */
.ed-top { position: sticky; top: 0; z-index: 120; background: var(--canvas-bg); border-bottom: 1px solid var(--hairline); }
.ed-top-inner { display: flex; align-items: center; gap: 24px; min-height: var(--app-header-height); padding: 0 32px; }
.ed-brand {
    display: flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; text-decoration: none;
    color: var(--title-color-indigo-500); font: 600 1.125rem/1 var(--font-wordmark); letter-spacing: -0.01em;
}
.ed-brand:hover { color: var(--title-color-indigo-500); }
.ed-brand img { width: 30px; height: auto; }
.ed-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.ed-nav-link {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 8px;
    color: var(--center-channel-color); font-size: 0.94rem; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.ed-nav-link:hover { color: var(--center-channel-color); background: var(--fill-subtle); }
.ed-nav-link.is-active { color: var(--title-color-indigo-500); font-weight: 600; }
.ed-chevron { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.ed-menu-wrap { position: relative; }
.ed-menu-wrap > summary { list-style: none; }
.ed-menu-wrap > summary::-webkit-details-marker { display: none; }
.ed-menu-wrap[open] > summary .ed-chevron { transform: rotate(180deg); }
.ed-menu {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 130; display: flex; flex-direction: column;
    min-width: 260px; padding: 6px; background: var(--surface); border: 1px solid var(--hairline);
    border-radius: 12px; box-shadow: var(--elevation-4);
}
.ed-menu--end { left: auto; right: 0; }
.ed-menu-link {
    display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 8px;
    color: var(--center-channel-color); font-size: 0.92rem; text-decoration: none;
}
.ed-menu-link:hover { color: var(--center-channel-color); background: var(--fill-subtle); }
.ed-menu-link.is-active { color: var(--title-color-indigo-500); font-weight: 600; }
.ed-menu-link .ui-icon { color: var(--ink-muted); }
.ed-menu-rule { height: 1px; margin: 6px 8px; background: var(--hairline); }
.ed-menu-who { display: flex; flex-direction: column; padding: 8px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--hairline); font-size: 0.9rem; }
.ed-menu-who span { color: var(--ink-muted); font-size: 0.82rem; }
.ed-count {
    display: inline-flex; align-items: center; justify-content: center; min-width: 22px; padding: 1px 7px; margin-left: auto;
    border-radius: 999px; background: rgba(var(--status-warn-rgb), 0.16); color: var(--text-primary);
    font: 600 0.75rem/1.4 var(--font-label);
}
.ed-nav-link .ed-count { margin-left: 2px; }
.ed-account { display: flex; align-items: center; gap: 14px; flex-shrink: 0; margin-left: auto; }
.ed-avatar {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; cursor: pointer;
    background: var(--button-bg); color: var(--button-color); font: 600 0.8rem/1 var(--font-label);
}
.ed-logout { color: var(--center-channel-color); font-size: 0.92rem; white-space: nowrap; }
.ed-logout:hover { color: var(--brand-green); }

/* ===== Page ===== */
.ed-main { width: 100%; max-width: 1200px; min-height: 60vh; margin: 0 auto; padding: 40px 32px 64px; }
.ed-main:focus { outline: none; }
.ed-main h1 {
    margin-bottom: 20px; color: var(--title-color-indigo-500);
    font-family: var(--font-display); font-size: 2.25rem; font-weight: 400; line-height: 1.15; letter-spacing: -0.02em;
}
.ed-main h2 {
    margin: 32px 0 16px; padding: 0 0 8px; border-bottom: 1px solid var(--hairline);
    color: var(--text-primary); font-family: var(--font-display); font-size: 1.375rem; font-weight: 400; letter-spacing: -0.01em;
}
.ed-footer {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; max-width: 1200px; margin: 0 auto;
    padding: 28px 32px 40px; border-top: 1px solid var(--hairline); color: var(--text-muted); font-size: 0.82rem;
}
.app-page-navigation { margin: 0 0 24px; }
.app-page-back { min-height: 44px; gap: 8px; max-width: 100%; white-space: normal; text-align: left; }

/* ===== Buttons & action bars ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 8px 18px;
    border: 1px solid transparent; border-radius: 999px; font-family: var(--font-label); font-size: 0.85rem;
    font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--button-bg); border-color: var(--button-bg); color: var(--button-color); box-shadow: none; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--brand-green-light); border-color: var(--brand-green-light); color: #ffffff; box-shadow: none; }
.btn-secondary { background: var(--surface); border-color: var(--hairline-strong); color: var(--text-primary); }
.btn-secondary:hover { background: var(--surface-alt); color: var(--text-primary); }
.btn-success { background: #edf7f0; border-color: #b9e0c5; color: #14532d; }
.btn-success:hover { background: #dcefe2; color: #14532d; }
.btn-danger { background: #fdf1f0; border-color: #f3c6c2; color: #8f1d14; }
.btn-danger:hover { background: #fbe3e1; color: #8f1d14; }
.btn-danger-solid { background: #b42318; border-color: #b42318; color: #ffffff; }
.btn-danger-solid:hover { background: #8f1d14; border-color: #8f1d14; color: #ffffff; }
.btn-link { background: none; border-color: transparent; color: var(--link-color); padding: 8px 10px; font-weight: 600; }
.btn-link:hover { color: var(--brand-green); text-decoration: underline; }
.btn-sm { padding: 5px 13px; font-size: 0.78rem; min-height: 32px; }
.btn-lg { padding: 11px 24px; font-size: 0.95rem; min-height: 46px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.action-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.action-bar-end { justify-content: flex-end; }

button, input[type=submit] {
    background: var(--button-bg); color: var(--button-color); border: none; padding: 9px 20px; border-radius: 999px;
    font-family: var(--font-label); font-size: 0.875rem; font-weight: 600; cursor: pointer;
    transition: background 0.15s;
}
button:hover, input[type=submit]:hover { background: var(--brand-green-light); }
button:focus-visible, input[type=submit]:focus-visible { outline: 2px solid var(--link-color); outline-offset: 3px; }
summary.ed-nav-link, summary.ed-avatar { font-family: inherit; }

/* ===== Tables =====
   Same rules as the classic shell (full grid on bare tables, quiet rows inside panels)
   so printed forms keep their cell borders. */
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th, td { border: 1px solid var(--border); padding: 9px 12px; text-align: left; color: var(--text-primary); }
thead th, tr th { background: var(--surface-alt); font-family: var(--font-label); font-weight: 600; font-size: 0.8rem; color: var(--text-secondary); }
tbody tr:nth-child(even) { background: #fcfbf8; }
tbody tr:hover { background: #f6f5f0; }
.panel > table > thead > tr > th,
.panel > table > tbody > tr > td { border-left: 0; border-right: 0; }
.panel > table > thead > tr > th { background: var(--surface); color: var(--text-secondary); border-top: 0; }
.panel > table > tbody > tr:last-child > td { border-bottom: 0; }
.panel > table > tbody > tr:focus-within { background: var(--surface-alt); }

/* ===== Forms ===== */
input:not([type=submit]):not([type=checkbox]):not([type=radio]), select, textarea {
    border: 1px solid #85878e; border-radius: 8px; padding: 8px 12px; outline: none; background: var(--surface);
    font-size: 0.9rem; font-family: inherit; color: var(--text-primary);
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:not([type=submit]):not([type=checkbox]):not([type=radio]):hover, select:hover, textarea:hover { border-color: #5f626a; }
input:not([type=submit]):not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus {
    border-color: var(--brand-green); box-shadow: 0 0 0 3px rgba(var(--button-bg-rgb), 0.16); background: #ffffff;
}
label { color: var(--text-primary); font-size: 0.9rem; font-weight: 600; }
input[type=checkbox], input[type=radio] { accent-color: var(--brand-green); }

/* ===== Panels & cards ===== */
.panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; box-shadow: var(--shadow-panel); overflow: hidden; }
.panel-scroll { overflow-x: auto; overflow-y: auto; }
.report-card {
    display: block; position: relative; padding: 22px; background: var(--surface); border: 1px solid var(--hairline);
    border-radius: 12px; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.report-card:hover, .report-card:focus-visible { border-color: var(--hairline-strong); box-shadow: var(--shadow-raised); }
.training-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 28px; }
.training-summary-card {
    display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border-radius: 12px; text-decoration: none;
    background: var(--surface); border: 1px solid var(--hairline); color: var(--text-primary); overflow-wrap: anywhere;
}
.training-summary-card:hover { color: var(--text-primary); border-color: var(--hairline-strong); }
.training-summary-card--mandatory { border-color: rgba(var(--status-danger-rgb), 0.35); }
.training-summary-card--forms { border-color: rgba(var(--button-bg-rgb), 0.3); }

/* ===== Text utilities ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.field-label { display: block; margin-bottom: 4px; font-size: 0.85rem; font-weight: 600; }

/* ===== Alerts ===== */
.alert { padding: 14px 16px; margin-bottom: 20px; border-radius: 10px; border: 1px solid; }
.alert-success { background-color: #edf7f0; border-color: #b9e0c5; color: #14532d; }
.alert-error { background-color: #fdf1f0; border-color: #f3c6c2; color: #8f1d14; }
.alert-warning { background-color: #fdf6e7; border-color: #f0d9a6; color: #6b4605; }
.alert-info { background-color: #eef3fd; border-color: #c9d8f6; color: #1e3a8a; }

/* ===== Signed-out screens: pcso-ui auth composition ===== */
.ed-auth {
    min-height: 100vh; color: #eaf3ee;
    background:
        radial-gradient(ellipse at 28% 0%, rgba(110, 231, 183, 0.16), transparent 55%),
        linear-gradient(165deg, #0f4a26, #0b3f1f 50%, #072c15);
    background-attachment: fixed;
}
.ed-auth-surface { display: flex; flex-direction: column; min-height: 100vh; }
.ed-auth-header { padding: 24px 40px; }
.ed-auth-mark { display: inline-flex; align-items: center; gap: 10px; font: 600 1rem/1 var(--font-wordmark); letter-spacing: -0.01em; }
.ed-auth-mark img { width: 28px; height: auto; }
.ed-auth-body {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); align-items: center; gap: 64px;
    flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 16px 40px 48px;
}
.ed-auth-star { display: block; width: 240px; height: auto; filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.22)); }
.ed-auth-wordmark {
    margin-top: 24px; color: #ffffff; font: 700 3.375rem/1.05 var(--font-wordmark); letter-spacing: -0.02em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}
.ed-auth-notice { max-width: 440px; margin-top: 20px; color: rgba(234, 243, 238, 0.72); font-size: 0.85rem; line-height: 1.6; }
.ed-auth-notice strong { color: rgba(255, 255, 255, 0.9); font-weight: 600; }
.ed-auth-main:focus { outline: none; }
.ed-auth-main .login-shell { min-height: 0 !important; padding: 0 !important; }
.ed-auth-footer { padding: 20px 40px 28px; color: rgba(234, 243, 238, 0.72); font-size: 0.8rem; text-align: center; }
.login-card {
    width: 100%; max-width: 540px; padding: 48px 56px; color: var(--text-primary);
    background: var(--surface); border: 0; border-radius: 12px; box-shadow: var(--elevation-5);
}
.ed-auth .login-brand {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.login-card h2 {
    margin: 0 0 20px; padding: 0; border: 0; color: var(--text-primary); text-align: left;
    font-family: var(--font-display); font-size: 1.875rem; font-weight: 400; letter-spacing: -0.01em;
}
.login-card p { color: var(--text-secondary); }
.login-card input:not([type=submit]):not([type=checkbox]):not([type=radio]) { min-height: 48px; font-size: 1rem; }
.login-card .btn { min-height: 48px; font-size: 1rem; }
.login-card ol, .login-card ul { margin: 8px 0 8px 20px; color: var(--text-secondary); }
.ed-auth-main > .alert { max-width: 540px; }

/* ===== Dashboard (employee/dashboard_editorial.html) ===== */
.ed-hero { max-width: 840px; padding: 40px 0 48px; }
.ed-eyebrow { margin-bottom: 18px; color: var(--ink-muted); font: 600 0.78rem/1 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; }
.ed-main h1.ed-display { margin: 0; font-size: clamp(2.6rem, 6vw, 4.25rem); line-height: 1.04; letter-spacing: -0.025em; }
.ed-lead { max-width: 660px; margin-top: 24px; color: var(--center-channel-color); font-family: var(--font-display); font-size: 1.375rem; line-height: 1.5; }
.ed-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 34px; }
.ed-cta .btn { min-height: 48px; padding: 0 24px; font-size: 0.95rem; }
.ed-textlink { color: var(--text-primary); font-weight: 600; text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 6px; }
.ed-textlink:hover { color: var(--text-primary); text-decoration-color: currentColor; }
.ed-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0;
    border-top: 1px solid var(--hairline-strong); border-bottom: 1px solid var(--hairline);
}
.ed-stats > div { display: flex; flex-direction: column-reverse; gap: 6px; padding: 26px 24px; border-left: 1px solid var(--hairline); }
.ed-stats > div:first-child { padding-left: 0; border-left: 0; }
.ed-stats dt { color: var(--ink-muted); font-size: 0.9rem; }
.ed-stats dd { color: var(--center-channel-color); font: 400 3.25rem/1 var(--font-display); letter-spacing: -0.02em; }
.ed-stats .is-danger dd { color: var(--status-danger); }
.ed-section {
    display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px;
    padding: 48px 0; border-top: 1px solid var(--hairline);
}
.ed-stats + .ed-section { border-top: 0; }
.ed-main .ed-section h2 { margin: 0; padding: 0; border: 0; font-size: 1.875rem; line-height: 1.15; color: var(--center-channel-color); }
.ed-section-note { margin-top: 10px; color: var(--ink-muted); font-size: 0.94rem; }
.ed-rows { list-style: none; }
.ed-row {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 24px;
    padding: 18px 0; border-bottom: 1px solid var(--hairline);
}
.ed-row:first-child { padding-top: 2px; }
.ed-row:last-child { padding-bottom: 0; border-bottom: 0; }
.ed-row--dated { grid-template-columns: 150px minmax(0, 1fr) auto; }
.ed-row h3 { font-size: 1.06rem; font-weight: 600; line-height: 1.4; }
.ed-row h3 a { color: var(--center-channel-color); text-decoration: none; }
.ed-row h3 a:hover { text-decoration: underline; }
.ed-meta { margin-top: 4px; color: var(--ink-muted); font-size: 0.94rem; }
.ed-meta.is-danger { color: var(--status-danger); }
.ed-date { color: var(--center-channel-color); font: 400 1.3rem/1.2 var(--font-display); }
.ed-date small { display: block; margin-top: 4px; color: var(--ink-muted); font: 400 0.875rem/1.4 var(--font-body); }
.ed-go { color: var(--link-color); font-size: 0.94rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ed-go:hover { text-decoration: underline; }
.ed-empty { color: var(--ink-muted); }

/* ===== Responsive ===== */
@media (max-width: 1240px) {
    :root { --app-header-height: 0px; }
    .ed-top { position: static; }
    .ed-top-inner { flex-wrap: wrap; gap: 8px 16px; padding: 12px 24px; }
    .ed-nav { order: 3; flex-basis: 100%; flex-wrap: wrap; position: relative; margin: 0 -12px; }
    .ed-nav .ed-menu-wrap { position: static; }
    .ed-nav .ed-menu { left: 12px; }
}
@media (max-width: 900px) {
    .ed-main { padding: 28px 16px 48px; }
    .ed-footer { padding: 24px 16px 32px; }
    .ed-top-inner { padding: 12px 16px; }
    .ed-nav .ed-menu { left: 12px; right: 12px; min-width: 0; }
    .ed-hero { padding: 16px 0 32px; }
    .ed-lead { font-size: 1.2rem; }
    .ed-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ed-stats > div { padding: 20px 16px; }
    .ed-stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
    .ed-stats > div:nth-child(n+3) { border-top: 1px solid var(--hairline); }
    .ed-stats dd { font-size: 2.75rem; }
    .ed-section { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 36px 0; }
    .ed-row, .ed-row--dated { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .ed-auth-body { grid-template-columns: minmax(0, 1fr); gap: 32px; justify-items: center; text-align: center; }
    .ed-auth-star { width: 150px; margin: 0 auto; }
    .ed-auth-wordmark { font-size: 2.5rem; }
    .ed-auth-notice { margin-left: auto; margin-right: auto; }
    .ed-auth-main { width: 100%; max-width: 540px; text-align: left; }
    input:not([type=submit]):not([type=checkbox]):not([type=radio]), select, textarea { max-width: 100%; font-size: 1rem; }
}
@media (max-width: 699px) {
    .ed-auth-header { padding: 16px 24px; }
    .ed-auth-body { padding: 8px 16px 32px; }
    .login-card { padding: 32px 24px; }
    .ed-account .ed-logout { font-size: 0.88rem; }
}
@media (max-width: 540px) {
    .training-summary { grid-template-columns: 1fr; gap: 12px; }
}
@media print {
    body { background: #ffffff; }
    .ed-top, .ed-footer, .app-page-navigation, .skip-link { display: none !important; }
    .ed-main { max-width: none; padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
