/* MMA Admin — logo colours (blue #2084cc / #1b60ac, orange #f49801), Cairo / Manrope */

@font-face { font-family: 'Cairo'; font-weight: 200 900; font-display: swap; src: url('/fonts/cairo/Cairo-arabic.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: 'Cairo'; font-weight: 200 900; font-display: swap; src: url('/fonts/cairo/Cairo-latin.woff2') format('woff2'); unicode-range: U+0000-00FF; }
@font-face { font-family: 'Manrope'; font-weight: 200 800; font-display: swap; src: url('/fonts/manrope/Manrope-latin.woff2') format('woff2'); unicode-range: U+0000-00FF; }

:root {
    --blue: #2084cc;
    --blue-dark: #1b60ac;
    --blue-tint: #eaf3fb;
    --orange: #f49801;
    --orange-text: #a85a00;
    --orange-tint: #fff4e3;
    --navy: #0c2c49;
    --text: #102b44;
    --muted: #5a6f82;
    --edge: #d9e4ec;
    --bg: #f4f7fa;
    --danger: #a3361f;
    --danger-tint: #fdf0ee;
    --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 15px; }

body {
    margin: 0;
    font-family: 'Manrope', 'Cairo', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

[dir=rtl] body { font-family: 'Cairo', 'Manrope', system-ui, sans-serif; }

a { color: var(--blue-dark); }
h1 { font-size: 1.6rem; margin: 0 0 1rem; }
code { font-family: ui-monospace, Consolas, monospace; }

/* ---------- shell ---------- */

.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }

.admin-sidebar {
    background: var(--navy);
    color: #fff;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.admin-brand, .account-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.admin-brand img { background: #fff; border-radius: 10px; padding: 3px; }
.admin-brand span, .account-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.admin-brand strong, .account-brand strong { font-size: 1.25rem; letter-spacing: .06em; }
.admin-brand small { color: #b9cad8; font-size: .78rem; }

.admin-nav { display: flex; flex-direction: column; gap: 4px; }

.admin-nav a {
    color: #d5e2ec;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 9px;
    font-weight: 700;
    border-inline-start: 3px solid transparent;
    transition: background-color .2s, color .2s;
}

.admin-nav a:hover { background: #ffffff14; color: #fff; }
.admin-nav a.active { background: #ffffff1a; color: #fff; border-inline-start-color: var(--orange); }

.admin-main { display: flex; flex-direction: column; min-width: 0; }

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 28px;
    background: #fff;
    border-bottom: 1px solid var(--edge);
}

.admin-content { padding: 28px; max-width: 1280px; width: 100%; }
.admin-lead { color: var(--muted); }

.admin-user { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.admin-user form { margin: 0; }

.admin-lang { display: inline-flex; gap: 4px; background: var(--blue-tint); border-radius: 10px; padding: 3px; }
.admin-lang a { padding: 5px 12px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .85rem; color: var(--blue-dark); }
.admin-lang a.active { background: var(--blue-dark); color: #fff; }

.admin-link-button { background: none; border: 0; color: var(--blue-dark); font: inherit; font-weight: 700; cursor: pointer; padding: 0; }

.admin-button {
    display: inline-block;
    background: var(--orange);
    color: #10202c;
    border: 0;
    border-radius: 10px;
    padding: 11px 18px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.admin-button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px #e57c2d40; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* ---------- account pages ---------- */

.account-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: linear-gradient(160deg, var(--navy), #123c66);
}

.account-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 30px 60px #0007;
}

.account-brand { margin-bottom: 22px; }
.account-brand small { color: var(--muted); font-size: .8rem; }

.account-form { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.account-form label { font-weight: 800; font-size: .9rem; }

.account-form input {
    border: 1px solid var(--edge);
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
}

.account-form input:focus { border-color: var(--blue); }
.account-form .admin-button { margin-top: 10px; }
.account-form .validation-message { color: var(--danger); font-size: .85rem; }

.account-error {
    background: var(--danger-tint);
    color: var(--danger);
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
}

.account-alt { font-size: .9rem; }
.account-lang { margin-top: 18px; }

.mfa-key code {
    display: block;
    background: var(--blue-tint);
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 1.05rem;
    letter-spacing: .06em;
    word-break: break-all;
}

.recovery-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0; list-style: none; }
.recovery-codes code { background: var(--bg); padding: 4px 8px; border-radius: 6px; }

/* ---------- screens ---------- */

h2 { font-size: 1.1rem; margin: 0 0 .75rem; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1 { margin-bottom: .25rem; }
.breadcrumb { margin: 0 0 .5rem; font-weight: 700; font-size: .9rem; }
.ref-title { font-family: ui-monospace, Consolas, monospace; letter-spacing: .02em; }

.admin-button-secondary { background: #fff; color: var(--blue-dark); box-shadow: inset 0 0 0 1px var(--edge); }
.admin-button-secondary:hover { box-shadow: inset 0 0 0 1px var(--blue), 0 6px 14px #1b60ac1f; }
.admin-button-danger { background: var(--danger); color: #fff; }
.admin-button-danger:hover { box-shadow: 0 8px 18px #a3361f40; }
.admin-button:disabled { opacity: .55; cursor: wait; transform: none; }

.admin-panel { background: #fff; border: 1px solid var(--edge); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.admin-empty { color: var(--muted); }
.admin-count { color: var(--muted); font-weight: 700; margin: 0 0 8px; }

.admin-alert { border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.admin-alert-ok { background: #e8f6ee; color: #1d6b3f; }
.admin-alert-error { background: var(--danger-tint); color: var(--danger); }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin: 18px 0 22px; }
.stat-card { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--edge); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.stat-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.stat-accent { border-top: 3px solid var(--orange); }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat-label { color: var(--muted); font-weight: 700; font-size: .88rem; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--edge); border-radius: var(--radius); }
.admin-panel .table-wrap { border: 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.admin-table th { text-align: start; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--bg); padding: 10px 12px; white-space: nowrap; }
.admin-table td { padding: 10px 12px; border-top: 1px solid var(--edge); vertical-align: top; }
.admin-table tbody tr:hover { background: #f8fbfd; }
.row-muted td { color: var(--muted); }
.admin-table time, .admin-table td[dir=ltr] a { white-space: nowrap; }
.cell-sub { display: block; color: var(--muted); font-size: .82rem; }
.ref-link { font-family: ui-monospace, Consolas, monospace; font-weight: 700; white-space: nowrap; }

.status-badge, .tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.status-new { background: var(--orange-tint); color: var(--orange-text); }
.status-inreview { background: var(--blue-tint); color: var(--blue-dark); }
.status-waitingforcustomer { background: #f3ecfb; color: #5b3a8c; }
.status-quoted { background: #e6f5f6; color: #11636b; }
.status-completed { background: #e8f6ee; color: #1d6b3f; }
.status-cancelled { background: #eef1f4; color: #4d5d6c; }
.tag-ok { background: #e8f6ee; color: #1d6b3f; }
.tag-warn { background: var(--orange-tint); color: var(--orange-text); }
.tag-muted { background: #eef1f4; color: #4d5d6c; }
.tag-danger { background: var(--danger-tint); color: var(--danger); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: #fff; border: 1px solid var(--edge); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.filter-bar label { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 800; color: var(--muted); }
.filter-bar input, .filter-bar select, .stack-form input, .stack-form select, .stack-form textarea, .copy-field {
    border: 1px solid var(--edge); border-radius: 9px; padding: 8px 10px; font: inherit; font-size: .93rem; color: var(--text); background: #fff; min-width: 0;
}
.filter-bar input[type=search] { min-width: 220px; }
.filter-actions { display: flex; align-items: center; gap: 14px; }
.filter-actions .admin-button { padding: 8px 16px; }

.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 16px 0; font-weight: 700; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.field-list { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 8px 16px; margin: 0; }
.field-list dt { color: var(--muted); font-weight: 700; font-size: .88rem; }
.field-list dd { margin: 0; overflow-wrap: anywhere; }
[dir=rtl] .field-list dd, [dir=rtl] .note-list p, [dir=rtl] .history p { text-align: right; }
.field-list.compact { grid-template-columns: auto 1fr; margin-bottom: 14px; }
.pre-line { white-space: pre-line; margin: 0; }
.item-card { border: 1px solid var(--edge); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.item-number { display: block; color: var(--muted); font-weight: 800; font-size: .85rem; margin-bottom: 6px; }

.stack-form { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.stack-form label, .stack-form legend { font-weight: 800; font-size: .88rem; }
.stack-form .admin-button { align-self: flex-start; margin-top: 6px; }
.stack-form .validation-message { color: var(--danger); font-size: .85rem; }
.field-help { color: var(--muted); font-size: .85rem; }

.note-list, .history { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.note-list li { border-inline-start: 3px solid var(--blue-tint); padding-inline-start: 12px; }
.history li { border-inline-start: 2px solid var(--edge); padding-inline-start: 12px; }
.note-meta { color: var(--muted); font-size: .82rem; margin: 2px 0; }

.role-list { border: 1px solid var(--edge); border-radius: 10px; padding: 10px 14px; display: grid; gap: 8px; margin: 6px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { margin-top: 5px; }
.check small { display: block; color: var(--muted); }
.action-list { display: flex; flex-direction: column; gap: 8px; }
.action-list .admin-button { text-align: center; }
.link-panel .copy-field { width: 100%; }
.audit-details { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.manage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.manage-grid .admin-panel { margin: 0; }

/* ---------- content editing (Level 5) ---------- */

.lang-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 12px; }
.lang-field { display: flex; flex-direction: column; gap: 6px; }
.lang-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lang-head label { font-weight: 800; font-size: .88rem; }
.lang-field textarea, .lang-field input { width: 100%; border: 1px solid var(--edge); border-radius: 9px; padding: 8px 10px; font: inherit; font-size: .95rem; color: var(--text); background: #fff; resize: vertical; }
.lang-field.has-error textarea, .lang-field.has-error input, .settings-form [aria-invalid=true] { border-color: var(--danger); }
.status-select { border: 1px solid var(--edge); border-radius: 999px; padding: 2px 8px; font: inherit; font-size: .78rem; font-weight: 800; }
.status-select.status-approved { background: #e8f6ee; color: #1d6b3f; }
.status-select.status-needstranslation { background: var(--orange-tint); color: var(--orange-text); }
.field-error { color: var(--danger); font-size: .82rem; font-weight: 700; margin: 0; }
.issue-list { background: var(--danger-tint); color: var(--danger); border-radius: 10px; padding: 10px 14px 10px 30px; font-weight: 700; margin: 0 0 14px; }
[dir=rtl] .issue-list { padding: 10px 30px 10px 14px; }
.view-links { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; }
.view-links a { padding: 4px 10px; border-radius: 8px; background: var(--blue-tint); text-decoration: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.bullet-row { border: 1px solid var(--edge); border-radius: 10px; padding: 8px 12px 10px; margin: 0 0 10px; }
.bullet-row legend { font-weight: 800; color: var(--muted); padding: 0 6px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.danger-link { color: var(--danger); }
.inline-check { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; flex-direction: row !important; }
.inline-check input { margin: 0; }
.edit-card { padding: 0; }
.edit-card > summary { cursor: pointer; padding: 14px 18px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.edit-card > form { padding: 0 18px 16px; }
.section-title { margin: 22px 0 10px; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
.status-dot.status-approved { background: #2e9b5c; }
.status-dot.status-needstranslation { background: var(--orange); }
.text-cell { max-width: 280px; overflow-wrap: anywhere; }
.diff { display: flex; flex-direction: column; gap: 2px; margin: 4px 0; }
.diff del { color: var(--danger); text-decoration: line-through; white-space: pre-line; }
.diff ins { color: #1d6b3f; text-decoration: none; white-space: pre-line; }
.brand-form textarea, .settings-form input { width: 100%; }

/* ---------- Blazor error bar ---------- */

#blazor-error-ui {
    display: none;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    padding: 10px 20px;
    background: #fff4e3;
    box-shadow: 0 -2px 8px #0002;
    z-index: 1000;
}

#blazor-error-ui .reload { margin-inline-start: 12px; }

@media (max-width: 860px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { flex-direction: row; align-items: center; flex-wrap: wrap; padding: 12px; gap: 12px; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .admin-topbar, .admin-content { padding-inline: 16px; }
    .detail-grid { grid-template-columns: 1fr; }
    .field-list { grid-template-columns: 1fr; gap: 2px; }
    .field-list dd { margin-bottom: 8px; }
    .lang-grid { grid-template-columns: 1fr; }
    .page-head .view-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* Level 6: customer messages and the customer email log */
.customer-panel h3 { margin: 18px 0 8px; font-size: 1rem; }
.customer-panel .panel-head h3 { margin: 18px 0 8px; }
.email-log { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.email-log li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.history .to-customer { background: var(--blue-tint); border-radius: 6px; padding: 6px 8px; }
.history .to-customer > span:first-child { font-weight: 700; }

/* Level 7: Operations Center editor */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.admin-alert-warn { background: var(--orange-tint); color: var(--orange-text); }
.stat-value-text { font-size: 1.3rem; }
.mode-choices { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mode-choices legend { font-weight: 700; margin-bottom: 8px; }
.mode-choice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--edge); border-radius: 10px; padding: 12px; cursor: pointer; }
.mode-choice.selected { border-color: var(--blue-dark); background: var(--blue-tint); }
.mode-choice.disabled { opacity: .7; cursor: not-allowed; }
.mode-choice > span { display: flex; flex-direction: column; gap: 4px; }
.mode-choice small { color: var(--muted); font-weight: 400; }
.mode-choice input { margin-top: 4px; }
.input-date { max-width: 200px; }
.table-scroll { overflow-x: auto; }
.fleet-table select { min-width: 170px; }
.fleet-table .input-number { width: 90px; }
.fleet-table td.num, .fleet-table tfoot td { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.fleet-table tfoot th { text-align: start; }

/* Level 7: Reports */
.report-filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; }
.report-filters > div { display: flex; flex-direction: column; gap: 4px; }
.report-filters .form-actions { margin: 0; }
.report-section h3 { font-size: 1rem; margin: 14px 0 8px; }
.report-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.report-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.report-bars li { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: 10px; align-items: center; }
.report-bar-label { overflow-wrap: anywhere; font-size: .9rem; }
.report-bar-track { height: 12px; border-radius: 6px; background: var(--bg); overflow: hidden; }
.report-bar-fill { display: block; height: 100%; background: var(--blue-dark); border-radius: 6px; }
.report-bar-value { min-width: 2.5ch; text-align: end; font-variant-numeric: tabular-nums; }
.admin-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.admin-table .row-total { font-weight: 700; background: var(--bg); }
.report-definitions dt { font-weight: 700; margin-top: 10px; }
.report-definitions dd { margin: 4px 0 0; color: var(--muted); }
.report-section details { margin-top: 12px; }
.table-scroll:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 2px; }

/* Level 8: attachments on the request page */
.attachment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.attachment-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.attachment-list a { font-weight: 700; overflow-wrap: anywhere; }

/* The request as a PDF: the buttons, then a preview that loads when opened (request-pdf.js) */
.page-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.request-pdf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: .25rem 0 .75rem; }
.request-pdf-preview summary { cursor: pointer; font-weight: 700; color: var(--blue-dark); padding: 4px 0; }
.request-pdf-preview iframe { display: block; width: 100%; height: 78vh; min-height: 520px; margin-top: 10px; border: 1px solid var(--edge); border-radius: 8px; background: var(--bg); }
.pdf-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .82rem; white-space: nowrap; color: var(--danger); text-decoration: none; padding: 3px 8px; border: 1px solid var(--edge); border-radius: 6px; }
.pdf-link:hover, .pdf-link:focus-visible { background: var(--danger-tint); border-color: var(--danger); }
.pdf-link svg { flex: none; }
/* Phones open the PDF in their own viewer: no frame there */
@media (max-width: 760px) { .request-pdf-preview { display: none; } }

/* Service pictures (2026-11-18): the cards' crop and the whole picture, upload, framing, restore */
.picture-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.picture-preview { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.picture-preview figcaption { font-size: .85rem; font-weight: 700; color: var(--muted); }
.picture-card { aspect-ratio: 400 / 235; border-radius: 10px; border: 1px solid var(--edge); background-color: var(--bg); background-size: cover; background-repeat: no-repeat; }
.picture-whole { display: block; max-width: 100%; max-height: 340px; width: auto; height: auto; border-radius: 10px; border: 1px solid var(--edge); background: var(--bg); }
.picture-source { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 14px 0 0; color: var(--muted); }
.picture-source strong { color: var(--text); }
.picture-warning { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--orange-tint); color: var(--orange-text); }
.picture-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.picture-upload { position: relative; overflow: hidden; cursor: pointer; }
.picture-upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.picture-upload:focus-within { outline: 2px solid var(--blue-dark); outline-offset: 2px; }
.picture-upload.is-busy { opacity: .55; cursor: wait; }
.picture-framing { border: 0; margin: 16px 0 0; padding: 0; }
.picture-framing legend { font-weight: 700; margin-bottom: 8px; }
.segmented { display: inline-flex; border: 1px solid var(--edge); border-radius: 10px; overflow: hidden; }
.segmented button { border: 0; background: #fff; color: var(--text); font: inherit; font-weight: 700; padding: 8px 16px; cursor: pointer; }
.segmented button + button { border-inline-start: 1px solid var(--edge); }
.segmented button.is-selected { background: var(--blue-dark); color: #fff; }
.segmented button:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: -3px; }
@media (max-width: 760px) { .picture-grid { grid-template-columns: 1fr; } }
