/*
 * Rapid Networks sign-off styles.
 *
 * Tokens follow the Rapid Networks design system (claude.ai artifact "Rapid Networks"):
 * brand blue, green and charcoal lead; secondary colours are never used as text on white.
 */

@font-face {
    font-family: "Nunito Variable";
    src: url("/fonts/Nunito-Variable-latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
}

:root {
    /* Brand */
    --brand-blue: #1b6192;
    --brand-green: #33cc33;
    --brand-charcoal: #333333;
    --brand-cyan: #00ccff;
    --brand-coral: #ff6666;
    --brand-yellow: #ffcc00;

    /* Semantic (light) */
    --page: #eef2f6; /* behind the cards, a cool grey that lets white cards stand out */
    --surface: #ffffff;
    --surface-alt: #f4f6f8;
    --ink: var(--brand-charcoal);
    --ink-muted: #5c5c5c;
    --accent: var(--brand-blue);
    --on-accent: #ffffff;
    --highlight: var(--brand-green);
    --on-highlight: var(--brand-charcoal);
    --border: #d9d9d9;
    --border-control: #8a8a8a;
    --focus-ring: var(--brand-blue);
    /* Warning: brand yellow as a fill with charcoal on it (8.4:1); never yellow text on white. */
    --warning: var(--brand-yellow);
    --warning-stroke: #c9a000;
    --on-warning: var(--brand-charcoal);
    --warning-bg: #fff8d6;
    --warning-border: #f0c400;
    --header-bg: var(--brand-blue);
    --on-header: #ffffff;
    --on-header-muted: #d4e3ef; /* 5.2:1 on brand blue */

    /* Type */
    --font-display:
        "Arial Rounded MT Std", "Arial Rounded MT Bold", "Nunito Variable", Nunito, system-ui, sans-serif;
    --font-text: "Arial Rounded MT Std", "Nunito Variable", Nunito, system-ui, sans-serif;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-pill: 999px;

    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --page: #262626;
        --warning-bg: #3b3420;
        --warning-border: #a68400;
        --warning-stroke: var(--brand-yellow);
        --surface: var(--brand-charcoal);
        --surface-alt: #3d3d3d;
        --ink: #ffffff;
        --ink-muted: #c7c7c7;
        --accent: var(--brand-cyan);
        --on-accent: var(--brand-charcoal);
        --border: #555555;
        --border-control: #949494;
        --focus-ring: var(--brand-cyan);
    }
}

/* --- Base ---------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 24px;
}

h1,
h2,
h3 {
    margin: 0 0 var(--space-2);
    font-family: var(--font-display);
    font-weight: 800;
}

/* h3 scale: page titles in this app are card-sized. */
h2 {
    font-size: 24px;
    line-height: 30px;
}

p {
    margin: 0 0 var(--space-4);
}

a {
    color: var(--accent);
}

:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* --- Layout -------------------------------------------------------------- */

/* Short, text-led pages (confirmations, errors, sign-in) keep a comfortable reading width. */
.page-narrow {
    max-width: 760px;
}

.login-card {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* The sign-off form with the live preview beside it, when preview.js shows it (wide screens).
   The page grows to give both columns room; the preview stays in view while scrolling. */
body:has(.live-preview:not([hidden])) .container {
    max-width: 1600px;
}

@media (min-width: 1200px) {
    .signoff-layout:has(> .live-preview:not([hidden])) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: var(--space-6);
        align-items: start;
    }
}

.live-preview {
    position: sticky;
    top: var(--space-4);
}

.live-preview-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
}

.live-preview-head .section-title {
    margin: 0;
}

.live-preview-status {
    color: var(--ink-muted);
    font-size: 12px;
}

.live-preview iframe {
    display: block;
    width: 100%;
    height: calc(100vh - 5rem);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #f4f4f4;
}

/* Full-width brand-blue band with the logo made for blue grounds. */
.site-header {
    background: var(--header-bg);
    color: var(--on-header);
    margin-bottom: var(--space-6);
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: var(--space-4) var(--space-6);
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
}

.site-logo img {
    display: block;
    width: 96px;
    height: auto;
}

.site-header h1 {
    color: var(--on-header);
    font-size: 22px;
    line-height: 28px;
    margin: 0;
}

.site-header p {
    color: var(--on-header-muted);
    font-size: 14px;
    line-height: 20px;
    margin: 0;
}

@media (max-width: 480px) {
    .site-logo img {
        width: 72px;
    }

    .site-header h1 {
        font-size: 19px;
        line-height: 24px;
    }
}

.site-footer {
    margin-top: var(--space-12);
    padding: var(--space-6) 0;
    border-top: 1px solid var(--border);
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 20px;
}

.site-footer p {
    margin: 0 0 var(--space-1);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    list-style: none;
    margin: 0 0 var(--space-4);
    padding: 0;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--ink-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-links svg {
    width: 18px;
    height: 18px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
    .card {
        padding: var(--space-6);
    }
}

/* --- Document form ------------------------------------------------------ */

.document-form .card,
.customer-summary {
    margin-bottom: var(--space-4);
}

/* Small capitals label, as in the design system's "label" style. */
.section-title,
.eyebrow {
    margin: 0 0 var(--space-4);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 12px;
    line-height: 16px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: var(--space-1);
    color: var(--ink-muted);
}

.section-help {
    margin: calc(-1 * var(--space-2)) 0 var(--space-4);
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 20px;
}

/* Rows of fields: two equal columns, or a wide field with a narrow one, stacking on phones. */
.form-row {
    display: grid;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.form-row > fieldset {
    margin: 0;
}

@media (min-width: 640px) {
    .form-row.cols-2 {
        grid-template-columns: 1fr 1fr;
    }

    .form-row.cols-wide {
        grid-template-columns: 2fr 1fr;
    }
}

.form-section > fieldset:last-child,
.form-section > .form-row:last-child {
    margin-bottom: 0;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: var(--space-2);
}

.customer-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
}

.customer-summary h2 {
    margin: 0 0 var(--space-2);
    overflow-wrap: anywhere;
}

.customer-meta {
    margin: 0 0 var(--space-1);
    color: var(--ink-muted);
}

.customer-summary-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* A pill for a short fact, e.g. the package; green with charcoal text (5.9:1). */
.tag {
    display: inline-block;
    margin-left: var(--space-1);
    padding: 2px var(--space-3);
    border-radius: var(--radius-pill);
    background: var(--highlight);
    color: var(--on-highlight);
    font-size: 13px;
    line-height: 20px;
    font-weight: 800;
    white-space: nowrap;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.page-title {
    margin-bottom: var(--space-4);
}

.page-title h2 a {
    color: var(--accent);
    text-decoration: none;
}

.page-title h2 a:hover {
    text-decoration: underline;
}

.page-title p {
    color: var(--ink-muted);
}

/* --- Breadcrumb ---------------------------------------------------------- */

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 var(--space-4);
    padding: 0;
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 20px;
}

.breadcrumb li + li::before {
    content: "›";
    padding: 0 var(--space-2);
}

/* --- Forms --------------------------------------------------------------- */

fieldset {
    border: 0;
    margin: 0 0 var(--space-4);
    padding: 0;
    min-width: 0;
}

label {
    display: block;
    font-weight: 700;
    margin-bottom: var(--space-1);
}

legend {
    font-weight: 700;
    margin-bottom: var(--space-1);
    padding: 0;
}

/* Checkbox lists, e.g. technicians and task comments. */
.choice-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.choice-group > label:not(.choice) {
    margin: var(--space-2) 0 0;
}

.choice {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin: 0;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-weight: 400;
    cursor: pointer;
}

.choice input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-height: 0;
    flex: none;
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.choice:has(input:not(:checked)) {
    color: var(--ink-muted);
}

.choice:has(input:not(:checked)) .comment-text {
    text-decoration: line-through;
}

.comment-text {
    display: block;
    white-space: pre-line;
}

.choice-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.choice-actions {
    display: flex;
    gap: var(--space-2);
}

.choice-help {
    margin: 0;
}

input,
select,
textarea {
    width: 100%;
    font: inherit;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--border-control);
    border-radius: var(--radius-sm);
    padding: 10px var(--space-3);
    min-height: 44px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 0;
    border-color: var(--focus-ring);
}

input[readonly] {
    background: var(--surface-alt);
    color: var(--ink-muted);
}

textarea {
    resize: vertical;
}

small {
    display: block;
    margin-top: var(--space-1);
    color: var(--ink-muted);
    font-size: 12px;
    line-height: 16px;
}

/* Input with an attached button, e.g. search or the password toggle. */
.input-group {
    display: flex;
    gap: var(--space-2);
}

.input-group > input {
    flex: 1;
    min-width: 0;
}

/* --- Buttons ------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 20px;
    font-weight: 800;
    color: var(--on-accent);
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: var(--radius-pill);
    padding: 10px var(--space-6);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    filter: brightness(1.1);
}

.btn-secondary {
    color: var(--accent);
    background: transparent;
}

.btn-secondary:hover {
    filter: none;
    background: var(--surface-alt);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: var(--space-2) var(--space-3);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.btn-small {
    font-size: 14px;
    padding: 6px var(--space-3);
}

/* --- Task list page ------------------------------------------------------ */

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2) var(--space-4);
    margin-bottom: var(--space-4);
}

.toolbar .breadcrumb ol {
    margin: 0;
}

.account {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--ink-muted);
    font-size: 14px;
}

/* Top-level page tabs, e.g. Tasks / Second reviews. */
.page-tabs {
    display: flex;
    gap: var(--space-1);
}

.page-tabs a {
    padding: 6px var(--space-3);
    border-radius: var(--radius-pill);
    color: var(--ink-muted);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
}

.page-tabs a:hover {
    color: var(--accent);
}

.page-tabs a[aria-current="page"] {
    background: var(--accent);
    color: var(--on-accent);
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.section-header h2 {
    margin: 0;
}

.day-picker {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.day-picker .btn:not(.today) {
    min-width: 2.25rem;
    font-size: 20px;
    line-height: 20px;
}

.day-picker input[type="date"] {
    width: auto;
    padding: 6px var(--space-3);
}

.range-label {
    font-weight: 700;
    white-space: nowrap;
}

.range-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
}

.presets {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.presets a[aria-current="page"] {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.range-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.range-form label {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin: 0;
    font-size: 14px;
}

.range-form input {
    width: auto;
}

.result-count,
.notice-inline {
    margin: 0 0 var(--space-3);
    color: var(--ink-muted);
    font-size: 14px;
}

/* The day above the time, for lists spanning several days. */
.task-date {
    display: block;
    color: var(--ink-muted);
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
}

.project-scope {
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 20px;
    margin: calc(-1 * var(--space-2)) 0 var(--space-4);
}

/* Team selector and filter box above the task list. */
.list-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
}

.list-control {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.list-control label {
    margin: 0;
}

.task-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.task-list li + li {
    border-top: 1px solid var(--border);
}

.task-list a {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    color: inherit;
    text-decoration: none;
}

.task-list a:hover {
    background: var(--surface-alt);
}

.task-time {
    flex: none;
    width: 4.5rem;
    font-weight: 800;
    color: var(--accent);
}

.task-main {
    flex: 1;
    min-width: 0;
}

.task-title {
    display: block;
    font-weight: 700;
}

.task-meta {
    display: block;
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 20px;
}

.task-chevron {
    flex: none;
    color: var(--ink-muted);
    font-size: 24px;
}

.empty {
    color: var(--ink-muted);
    margin: 0;
}

/* Preview and Create side by side, Create taking the remaining width. The bar stays at the
   bottom of the screen while the form is in view, so it is always within reach on a phone. */
.form-actions {
    position: sticky;
    bottom: 0;
    z-index: 1;
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3) 0;
    background: var(--page);
    border-top: 1px solid var(--border);
}

.form-actions .btn:last-child {
    flex: 1;
}

.document-preview {
    display: block;
    width: 100%;
    height: 75vh;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #f4f4f4;
    margin-bottom: var(--space-6);
}

/* --- Quality review ------------------------------------------------------ */

.review-section {
    border-color: var(--accent);
}

.internal-tag {
    display: inline-block;
    margin-left: var(--space-2);
    padding: 0 var(--space-2);
    border: 1px solid currentColor;
    border-radius: var(--radius-pill);
    font-size: 11px;
    letter-spacing: 0.04em;
    vertical-align: 1px;
}

.review-fields {
    margin: 0;
}

.score-group {
    margin-bottom: var(--space-4);
}

.score-group legend {
    font-weight: 700;
    margin-bottom: var(--space-2);
}

/* 0-10 as a row of round, tappable choices that wraps on narrow screens. */
.score-scale {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.score-scale label {
    position: relative;
    margin: 0;
}

.score-scale input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.score-scale span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-control);
    border-radius: var(--radius-pill);
    background: var(--surface);
    font-weight: 700;
}

.score-scale input:checked + span {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.score-scale input:focus-visible + span {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.review-total {
    margin: 0 0 var(--space-4);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
}

.review-total output {
    color: var(--accent);
}

.optional {
    color: var(--ink-muted);
    font-weight: 400;
    font-size: 14px;
}

/* Review history: one entry per review, newest first. */
.review-history {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-4);
}

.review-entry {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-4);
}

.review-entry-head {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
}

.review-score {
    flex: none;
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 32px;
    font-weight: 800;
    color: var(--accent);
}

.review-score small {
    display: inline;
    margin: 0;
    font-size: 16px;
    color: var(--ink-muted);
}

.review-meta {
    color: var(--ink-muted);
    font-size: 14px;
    line-height: 20px;
}

.review-scores {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 20px;
}

.review-scores th,
.review-scores td {
    padding: var(--space-1) 0;
    border-top: 1px solid var(--border);
    text-align: left;
    font-weight: 400;
}

.review-scores td {
    width: 4rem;
    text-align: right;
    font-weight: 700;
}

.review-notes {
    margin: var(--space-3) 0 0;
    white-space: pre-line;
}

.review-latest,
.review-link {
    margin: 0 0 var(--space-2);
}

.review-link {
    margin-bottom: 0;
}

/* Shown above a form whose unsaved changes were restored from this browser. */
.draft-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2) var(--space-4);
    margin-bottom: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--warning-border);
    border-radius: var(--radius-md);
    background: var(--warning-bg);
    font-size: 14px;
    font-weight: 700;
}

/* Vertical button stack, e.g. the 2FA step's actions. */
.stack {
    display: grid;
    gap: var(--space-2);
}

/* --- Alerts -------------------------------------------------------------- */

.form-error {
    border: 2px solid var(--brand-coral);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: var(--space-2) var(--space-3);
    font-weight: 700;
}

.form-error p {
    margin: 0;
}

.form-error ul {
    margin: var(--space-2) 0 0;
    padding-left: var(--space-6);
    font-weight: 400;
}

/* A collapsible heads-up, e.g. what a limited Splynx role cannot fill in. */
.notice {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    margin-bottom: var(--space-4);
    font-size: 14px;
    line-height: 20px;
}

.notice-warning {
    background: var(--warning-bg);
    border-color: var(--warning-border);
}

.notice summary {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    list-style: none;
}

.notice summary::-webkit-details-marker {
    display: none;
}

.notice-icon {
    flex: none;
    width: 22px;
    height: 22px;
}

.notice-title {
    flex: 1;
    font-weight: 700;
}

/* "Details" with a chevron that turns when the notice is open. */
.notice-toggle {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--accent);
    font-weight: 700;
}

.notice-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.15s;
}

.notice[open] .notice-toggle::after {
    transform: translateY(2px) rotate(-135deg);
}

.notice-body {
    padding: var(--space-3) var(--space-4) var(--space-4) calc(var(--space-4) + 22px + var(--space-3));
    border-top: 1px solid var(--warning-border);
}

.notice-body p {
    margin: 0 0 var(--space-2);
}

.notice-body ul {
    margin: 0;
    padding-left: var(--space-4);
}

.notice-body li + li {
    margin-top: var(--space-1);
}

@media (max-width: 480px) {
    .notice-body {
        padding-left: var(--space-4);
    }
}

.alert {
    border: 2px solid var(--brand-coral);
}

/* A warning that is not an error, e.g. a sign-off that already exists. */
.alert-warning {
    background: var(--warning-bg);
    border: 2px solid var(--warning-border);
}

.success {
    border: 2px solid var(--highlight);
}

.success h2 {
    font-size: 20px;
    line-height: 26px;
}

button:disabled {
    cursor: progress;
    opacity: 0.7;
}

.alert h2,
.alert-warning h2 {
    font-size: 20px;
    line-height: 26px;
}

.alert p:last-child,
.alert-warning p:last-child {
    margin-bottom: 0;
}

/* --- Utilities ----------------------------------------------------------- */

/* Hide item from document, but keep it accessible to screen-readers. */
.sr-only:not(:focus):not(:active) {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Hide element completely */
[hidden] {
    /* biome-ignore lint/complexity/noImportantStyles: hidden must win over component display rules, e.g. .task-list a { display: flex }. */
    display: none !important;
}
