/* ---------------------------------------------------------------------------
   Ordoli — site styles (project_ordoli.md §11 "classic productivity" look)

   Layered on Bootstrap 5.3 and the tokens in tokens.css. Every colour comes
   from an --ol-* custom property so light and dark modes are one rule set.
   991.98px (Bootstrap lg) is the single responsive pivot: the header collapses
   and the left nav turns into the fixed bottom nav there (§14.1).
   --------------------------------------------------------------------------- */

html {
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--ol-text-body);
    background-color: var(--ol-background);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--ol-text-heading);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

h2, .h2, h3, .h3 {
    font-weight: 650;
}

.page-title {
    font-size: clamp(1.875rem, 1.5rem + 1vw, 2.125rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: var(--ol-text-secondary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(1.5rem, 1.25rem + 0.75vw, 1.75rem);
    font-weight: 650;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

a {
    color: var(--ol-link);
    text-decoration: none;
}

a:hover {
    color: var(--ol-link-hover);
    text-decoration: underline;
}

.text-secondary {
    color: var(--ol-text-secondary) !important;
}

/* Eyebrow = a tinted chip (style book): deep-blue bold caps on the primary tint. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: var(--ol-radius-chip);
    background: var(--ol-primary-tint);
    color: var(--ol-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Keyboard focus: one consistent ring everywhere. */
:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ol-primary) 55%, transparent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    inset-inline-start: -9999px;
    top: 0;
    z-index: 1080;
    padding: 0.65rem 1.1rem;
    background: var(--ol-surface);
    color: var(--ol-text-heading);
    border-radius: 0 0 var(--ol-radius-input) 0;
    font-weight: 600;
}

.skip-link:focus {
    inset-inline-start: 0;
}

/* ------------------------------------------------------------------ header -- */

.app-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--ol-header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ol-border);
}

.app-header--minimal {
    padding: 0.85rem 0;
}

/* Recipient pages: a slightly larger mark with "tasklist maker" under the name. */
.app-header--minimal .logo-mark {
    width: 2.75rem;
    height: 2.75rem;
}

.brand-wordmark__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-tagline {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ol-text-secondary);
}

.app-navbar {
    min-height: 76px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.brand-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    color: var(--ol-primary-deep);
    white-space: nowrap;
}

.logo-mark {
    width: 2.25rem;
    height: 2.25rem;
    flex: none;
    border-radius: 0.6rem;
}

/* The bitmap logo in the top nav has its own transparent shape, so no tile corners. */
.logo-mark--img {
    border-radius: 0;
    object-fit: contain;
}

/* Header logo pair: the blue mark on light, the white/flat mark on dark (the footer always uses the flat one). */
.logo-mark--dark,
[data-bs-theme="dark"] .logo-mark--light {
    display: none;
}

[data-bs-theme="dark"] .logo-mark--dark {
    display: block;
}

.brand-wordmark:hover {
    color: var(--ol-primary);
    text-decoration: none;
}

.app-nav {
    gap: 0.25rem;
}

.app-nav .nav-link {
    position: relative;
    padding: 0.5rem 0.9rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ol-text-secondary);
    border-radius: var(--ol-radius-input);
    white-space: nowrap;
}

.app-nav .nav-link:hover {
    color: var(--ol-text-heading);
    background: var(--ol-primary-tint);
    text-decoration: none;
}

.app-nav .nav-link.active {
    color: var(--ol-primary-deep);
    background: var(--ol-primary-tint);
    font-weight: 600;
}

.navbar-toggler {
    border: none;
    padding: 0.35rem 0.5rem;
    color: var(--ol-text-heading);
    line-height: 0;
}

.app-header__end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 992px) {
    /* Source order is brand, identity, collapse — the spec wants the links next to the logo
       and the identity hard right, so reorder rather than duplicate markup. */
    .app-navbar .navbar-collapse {
        order: 2;
        flex: 1 1 auto;
    }

    .app-header__end {
        order: 3;
        margin-inline-start: 1rem;
    }
}

.app-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 991.98px) {
    .app-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 0.75rem;
        margin-top: 0.5rem;
        border-top: 1px solid var(--ol-border);
    }

    .app-nav .nav-link.active {
        background: var(--ol-primary-tint);
    }
}

.identity {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem;
    padding-inline-end: 0.6rem;
    border-radius: var(--ol-radius-chip);
    color: var(--ol-text-body);
    font-size: 0.9rem;
    font-weight: 500;
}

.identity:hover {
    background: var(--ol-primary-tint);
    text-decoration: none;
}

.identity__avatar {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    border-radius: 50%;
    background: var(--ol-primary);
    color: var(--ol-on-primary);
    font-size: 0.78rem;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .identity__name {
        display: none;
    }

    .identity {
        padding-inline-end: 0.2rem;
    }
}

.select-quiet,
.select-quiet:hover {
    width: auto;
    min-height: 40px;
    border-color: transparent;
    background-color: transparent;
    color: var(--ol-text-heading);
    font-weight: 600;
    border-radius: var(--ol-radius-input);
}

.select-quiet:hover {
    background-color: var(--ol-primary-tint);
}

/* ------------------------------------------------------------- surfaces -- */

.page-shell {
    flex: 1 0 auto;
    width: 100%;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.container {
    max-width: var(--ol-content-width);
}

.surface-card {
    background: var(--ol-surface);
    border: 1px solid var(--ol-border);
    border-radius: var(--ol-radius-card);
    box-shadow: var(--ol-shadow-soft);
    padding: 2rem;
}

@media (max-width: 575.98px) {
    .surface-card {
        padding: 1.25rem 1rem;
    }
}

.card {
    --bs-card-bg: var(--ol-surface);
    --bs-card-border-color: var(--ol-border);
    --bs-card-border-radius: var(--ol-radius-card);
    --bs-card-cap-bg: transparent;
}

.flash {
    border-radius: var(--ol-radius-input);
}

/* -------------------------------------------------------------- buttons -- */

/* Buttons: 48 px tall, 10 px corners, 16/600. One solid primary per screen; secondary is
   white with a blue edge; tertiary is a tinted text button (guide §3). */
.btn {
    --bs-btn-border-width: 1.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: var(--ol-radius-button);
    font-weight: 600;
    font-size: 1rem;
    min-height: var(--ol-control-height);
    padding-inline: 1.25rem;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-sm {
    min-height: 40px;
    padding-inline: 1rem;
    font-size: 0.9375rem;
}

.btn-lg {
    min-height: 52px;
    padding-inline: 1.5rem;
    font-size: 1.0625rem;
}

.btn-tertiary {
    --bs-btn-color: var(--ol-link);
    --bs-btn-bg: var(--ol-primary-tint);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: var(--ol-primary-soft);
    --bs-btn-hover-color: var(--ol-primary-deep);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: var(--ol-primary-soft);
    --bs-btn-active-color: var(--ol-primary-deep);
    --bs-btn-active-border-color: transparent;
}

.btn-primary {
    --bs-btn-bg: var(--ol-primary);
    --bs-btn-border-color: var(--ol-primary);
    --bs-btn-color: var(--ol-on-primary);
    --bs-btn-hover-bg: var(--ol-primary-pressed);
    --bs-btn-hover-border-color: var(--ol-primary-pressed);
    --bs-btn-hover-color: var(--ol-on-primary);
    --bs-btn-active-bg: var(--ol-primary-pressed);
    --bs-btn-active-border-color: var(--ol-primary-pressed);
    --bs-btn-active-color: var(--ol-on-primary);
    --bs-btn-disabled-bg: var(--ol-primary);
    --bs-btn-disabled-border-color: var(--ol-primary);
    --bs-btn-disabled-color: var(--ol-on-primary);
}

/* Segmented radios (Type, Theme): the picked one fills in. */
.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary {
    background: var(--ol-primary);
    border-color: var(--ol-primary);
    color: var(--ol-on-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--ol-link);
    --bs-btn-bg: var(--ol-surface);
    --bs-btn-border-color: var(--ol-link);
    --bs-btn-hover-bg: var(--ol-primary-tint);
    --bs-btn-hover-color: var(--ol-link-hover);
    --bs-btn-hover-border-color: var(--ol-link);
    --bs-btn-active-bg: var(--ol-primary-tint);
    --bs-btn-active-color: var(--ol-link-hover);
    --bs-btn-active-border-color: var(--ol-link);
}

.btn-outline-secondary {
    --bs-btn-color: var(--ol-text-heading);
    --bs-btn-border-color: var(--ol-border-strong);
    --bs-btn-hover-bg: var(--ol-primary-tint);
    --bs-btn-hover-color: var(--ol-primary-deep);
    --bs-btn-hover-border-color: var(--ol-primary);
    --bs-btn-active-bg: var(--ol-primary-tint);
    --bs-btn-active-color: var(--ol-primary-deep);
    --bs-btn-active-border-color: var(--ol-primary);
    --bs-btn-disabled-color: var(--ol-text-secondary);
    --bs-btn-disabled-border-color: var(--ol-border);
}

.btn-outline-danger {
    --bs-btn-color: var(--ol-error);
    --bs-btn-border-color: var(--ol-error);
    --bs-btn-hover-bg: var(--ol-error-tint);
    --bs-btn-hover-color: var(--ol-error);
    --bs-btn-hover-border-color: var(--ol-error);
    --bs-btn-active-bg: var(--ol-error-tint);
    --bs-btn-active-color: var(--ol-error);
    --bs-btn-active-border-color: var(--ol-error);
}

.btn-link {
    color: var(--ol-primary);
    min-height: 0;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    padding: 0;
}

.btn svg,
.btn-icon svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------------------------------------------------------------- forms -- */

/* Fields (guide §3): white, 1px #75859B edge, 48px tall, 10px corners. Focus = 2px blue edge
   (the inner shadow adds the second pixel without moving the layout) plus a soft ring. */
.form-control,
.form-select {
    border-radius: var(--ol-radius-input);
    border: 1px solid var(--ol-border-strong);
    background-color: var(--ol-surface);
    color: var(--ol-text-heading);
    min-height: var(--ol-control-height);
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: var(--ol-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ol-primary);
    box-shadow: inset 0 0 0 1px var(--ol-primary), 0 0 0 4px color-mix(in srgb, var(--ol-primary) 20%, transparent);
    background-color: var(--ol-surface);
    color: var(--ol-text-heading);
}

textarea.form-control {
    min-height: 110px;
}

.form-control-sm,
.form-select-sm {
    min-height: 40px;
    padding: 0.35rem 0.75rem;
    font-size: 0.9375rem;
}

.form-control::placeholder {
    color: var(--ol-text-secondary);
    opacity: 1;
}

.form-control[readonly] {
    background-color: var(--ol-surface-muted);
    color: var(--ol-text-secondary);
}

.form-select {
    --bs-form-select-bg-img: var(--ol-select-chevron);
    padding-inline-end: 2.75rem;
    font-weight: 500;
}

[data-bs-theme="dark"] .form-select {
    --bs-form-select-bg-img: var(--ol-select-chevron);
}

/* A leading icon inside a select (style book dropdowns): wrap the <select> and put the
   icon first; the select pads itself out of the way. */
.select-icon {
    position: relative;
}

.select-icon > svg {
    position: absolute;
    inset-inline-start: 0.95rem;
    top: 50%;
    width: 1.3rem;
    height: 1.3rem;
    transform: translateY(-50%);
    color: var(--ol-primary);
    pointer-events: none;
}

.select-icon .form-select {
    padding-inline-start: 2.9rem;
}

.form-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ol-text-heading);
    margin-bottom: 0.5rem;
}

.form-text {
    color: var(--ol-text-secondary);
    font-size: var(--ol-type-secondary);
}

/* 20–24 px between fields (guide): widen Bootstrap's row gutter inside forms. */
form .row.g-3,
.editor-section .row {
    --bs-gutter-y: 1.375rem;
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.15em;
    border: 1px solid var(--ol-border-strong);
    background-color: var(--ol-surface);
}

.form-check-input:focus {
    border-color: var(--ol-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ol-primary) 22%, transparent);
}

.form-check-input:checked {
    background-color: var(--ol-primary);
    border-color: var(--ol-primary);
}

.form-check-label {
    font-weight: 600;
    color: var(--ol-text-heading);
}

.form-check-hint {
    display: block;
    margin-top: 0.1rem;
    font-size: var(--ol-type-secondary);
    font-weight: 400;
    color: var(--ol-text-secondary);
}

.form-switch {
    padding-inline-start: 3.4em;
    min-height: 1.7em;
}

.form-switch .form-check-input {
    --bs-form-switch-bg: var(--ol-switch-knob);
    width: 2.9em;
    height: 1.6em;
    margin-inline-start: -3.4em;
    margin-top: 0.05em;
    background-color: var(--ol-surface-muted);
    border: 1px solid var(--ol-border-strong);
}

[data-bs-theme="dark"] .form-switch .form-check-input {
    --bs-form-switch-bg: var(--ol-switch-knob);
}

.form-switch .form-check-input:checked {
    background-color: var(--ol-primary);
    border-color: var(--ol-primary);
}

/* The completion-rule switches sit under a divider, each with a one-line hint (guide §3). */
.option-panel {
    display: grid;
    gap: 1rem;
    padding-top: 1.25rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--ol-border);
}

.option-panel .form-check {
    margin: 0;
}

/* Page header with an icon medallion beside the title. */
.page-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

@media (max-width: 575.98px) {
    .page-head {
        gap: 0.75rem;
    }
}

.field-validation-error,
.validation-summary-errors {
    color: var(--ol-error);
    font-size: var(--ol-type-secondary);
    font-weight: 500;
}

/* Error state (guide §3): red edge plus a glyph before the explanatory message. */
.field-validation-error:not(:empty) {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.field-validation-error:not(:empty)::before {
    content: "";
    flex: none;
    width: 1rem;
    height: 1rem;
    background: var(--ol-error-glyph) center / contain no-repeat;
}

.input-validation-error,
.input-validation-error:hover {
    border-color: var(--ol-error);
}

.input-validation-error:focus {
    border-color: var(--ol-error);
    box-shadow: inset 0 0 0 1px var(--ol-error), 0 0 0 4px color-mix(in srgb, var(--ol-error) 20%, transparent);
}

/* Contact form: the "240 / 1000" counter under the message box, shown late (site.js). */
.char-counter {
    margin-top: 0.25rem;
    font-size: var(--ol-type-caption);
    color: var(--ol-text-secondary);
    text-align: end;
}

.char-counter--near {
    color: var(--ol-text-heading);
    font-weight: 600;
}

.recaptcha-note {
    font-size: var(--ol-type-caption);
    color: var(--ol-text-secondary);
}

/* The v3 badge would sit on top of the bottom nav on phones; Google permits hiding it when the
   attribution text (.recaptcha-note on the contact page) is shown instead. */
.grecaptcha-badge {
    visibility: hidden;
}

.weekday-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.weekday-chips input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.weekday-chips label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 44px;
    padding: 0 0.85rem;
    border: 1px solid var(--ol-border-strong);
    border-radius: var(--ol-radius-chip);
    background: var(--ol-surface);
    color: var(--ol-text-heading);
    font-weight: 600;
    cursor: pointer;
}

.weekday-chips input:checked + label {
    background: var(--ol-primary);
    border-color: var(--ol-primary);
    color: var(--ol-on-primary);
}

.weekday-chips input:focus-visible + label {
    outline: 3px solid color-mix(in srgb, var(--ol-primary) 55%, transparent);
    outline-offset: 2px;
}

/* ---------------------------------------------------- chips and badges -- */

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--ol-radius-chip);
    border: 1px solid transparent;
    background: var(--ol-primary-tint);
    color: var(--ol-primary-deep);
    font-size: var(--ol-type-caption);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-pill--primary {
    background: var(--ol-primary);
    border-color: var(--ol-primary);
    color: var(--ol-on-primary);
}

.badge-pill--soft {
    background: var(--ol-primary-tint);
    border-color: transparent;
    color: var(--ol-primary-deep);
    text-transform: none;
    letter-spacing: 0;
}

/* Status chips (§11.2): icon + label, always. */
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--ol-radius-chip);
    background: var(--ol-surface-muted);
    border: 1px solid transparent;
    color: var(--ol-text-heading);
    font-size: var(--ol-type-caption);
    font-weight: 700;
    white-space: nowrap;
}

.status-chip svg {
    width: 0.95rem;
    height: 0.95rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.status-chip--success {
    color: var(--ol-success);
    background: var(--ol-success-tint);
    border-color: transparent;
}

.status-chip--warning {
    color: var(--ol-warning);
    background: var(--ol-warning-tint);
    border-color: transparent;
}

.status-chip--primary {
    color: var(--ol-primary);
    background: var(--ol-primary-tint);
    border-color: transparent;
}

.status-chip--error {
    color: var(--ol-error);
    background: var(--ol-error-tint);
    border-color: transparent;
}

/* The plan banner (Overview, Upgrade, Settings): larger text, and the plan name as a solid
   chip so the status reads at a glance against the tinted background. */
.account-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--ol-border);
    border-radius: var(--ol-radius-card);
    background: var(--ol-primary-tint);
    color: var(--ol-text-heading);
    font-size: 1.125rem;
    font-weight: 600;
}

.account-badge .badge-pill {
    padding: 0.35rem 0.9rem;
    background: var(--ol-primary-deep);
    color: var(--ol-on-primary);
    font-size: 0.875rem;
    font-weight: 700;
}

.account-badge .badge-pill--primary {
    background: var(--ol-primary);
}

[data-bs-theme="dark"] .account-badge .badge-pill {
    background: var(--ol-primary-deep);
    color: var(--ol-navy);
}

[data-bs-theme="dark"] .account-badge .badge-pill--primary {
    background: var(--ol-primary);
    color: var(--ol-on-primary);
}

.account-badge .text-secondary {
    font-weight: 500;
}

.account-badge .btn-sm {
    font-size: 1rem;
}

/* -------------------------------------------------------- progress bar -- */

.progress-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ol-progress {
    flex: 1 1 auto;
    height: 0.5rem;
    border-radius: var(--ol-radius-chip);
    background: var(--ol-primary-tint);
}

.ol-progress .progress-bar {
    background: var(--ol-primary);
    border-radius: var(--ol-radius-chip);
    transition: width 0.3s ease;
}

.progress-row__counter {
    flex: none;
    font-size: var(--ol-type-secondary);
    font-weight: 600;
    color: var(--ol-text-heading);
    white-space: nowrap;
}

.counter-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border-radius: var(--ol-radius-chip);
    background: var(--ol-primary-tint);
    color: var(--ol-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ------------------------------------------------------ task list card -- */
/* The reference card pattern (§11.2): a surface card with 16-px radius holding the task
   rows — check-circle in success for done items, filled neutral circle for pending ones —
   and a full-width primary button below it. Reused on Overview, detail and recipient screens. */

.task-card {
    background: var(--ol-surface);
    border: 1px solid var(--ol-border);
    border-radius: var(--ol-radius-card);
    overflow: hidden;
}

.task-row {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--ol-border);
    color: inherit;
}

.task-row:last-child {
    border-bottom: none;
}

a.task-row:hover,
button.task-row:hover {
    background: var(--ol-primary-tint);
    text-decoration: none;
    color: inherit;
}

button.task-row {
    width: 100%;
    text-align: start;
    background: none;
    border-inline: none;
    border-top: none;
    font: inherit;
}

.task-row--done .task-row__title {
    color: var(--ol-text-secondary);
    text-decoration: line-through;
    text-decoration-color: color-mix(in srgb, var(--ol-text-secondary) 50%, transparent);
}

.task-row__check {
    flex: 0 0 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.1rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--ol-border);
    color: transparent;
}

.task-row__check svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.task-row--done .task-row__check {
    background: var(--ol-success);
    color: var(--ol-surface);
}

.task-row--locked .task-row__check {
    background: transparent;
    border: 2px dashed var(--ol-border);
}

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

.task-row__title {
    font-weight: 700;
    color: var(--ol-text-heading);
    margin: 0;
}

.task-row__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    margin-top: 0.25rem;
    color: var(--ol-text-secondary);
    font-size: var(--ol-type-secondary);
}

.task-row__instructions {
    margin: 0.25rem 0 0;
    color: var(--ol-text-body);
    font-size: var(--ol-type-secondary);
    white-space: pre-line;
}

.task-row__end {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.task-card__footer {
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--ol-border);
    background: var(--ol-surface-elevated);
}

.photo-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--ol-radius-input);
    object-fit: cover;
    border: 1px solid var(--ol-border);
}

.photo-large {
    max-width: 100%;
    max-height: 60vh;
    border-radius: var(--ol-radius-card);
    border: 1px solid var(--ol-border);
}

/* ------------------------------------------------------- attachments -- */
/* Creator-supplied images/videos on a task: full size on the recipient's task detail,
   thumbnails on the creator's detail page and in the editor. */

.attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.5rem 0;
}

.attachment {
    position: relative;
    display: block;
    max-width: 100%;
    border-radius: var(--ol-radius-input);
    overflow: hidden;
    background: var(--ol-surface-elevated);
    border: 1px solid var(--ol-border);
}

.attachment img,
.attachment video {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    background: #000;
}

.attachment--image img {
    background: var(--ol-surface-elevated);
}

.attachments--thumb .attachment {
    width: 112px;
    height: 112px;
}

.attachments--thumb .attachment img,
.attachments--thumb .attachment video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attachment__badge {
    position: absolute;
    inset-inline-start: 0.4rem;
    bottom: 0.4rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--ol-radius-chip);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: var(--ol-type-caption);
    font-weight: 600;
    pointer-events: none;
}

.attachment--pending {
    display: grid;
    place-items: center;
    min-width: 112px;
    min-height: 112px;
    border-style: dashed;
}

.attachment--pending .attachment__badge {
    position: static;
    background: var(--ol-primary-tint);
    color: var(--ol-primary);
}

.attachment--error {
    border-color: var(--ol-error);
}

.attachment--error .attachment__badge {
    background: var(--ol-error-tint);
    color: var(--ol-error);
}

.attachment__remove {
    position: absolute;
    inset-inline-end: 0.3rem;
    top: 0.3rem;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
}

.attachment__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--ol-primary);
    transition: width 0.2s ease;
}

/* ------------------------------------------------------- list summary -- */

.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.list-tile {
    display: block;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--ol-border);
    border-radius: var(--ol-radius-card);
    background: var(--ol-surface);
    color: inherit;
    font-weight: 400;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.list-tile:hover {
    border-color: var(--ol-primary);
    box-shadow: var(--ol-shadow-soft);
    text-decoration: none;
    color: inherit;
}

.list-tile__title {
    font-weight: 600;
    font-size: var(--ol-type-card);
    color: var(--ol-text-heading);
    margin-bottom: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-tile__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    margin-top: 0.5rem;
    color: var(--ol-text-secondary);
    font-size: var(--ol-type-caption);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin: 1.75rem 0 0.75rem;
}

.section-head h2 {
    font-size: var(--ol-type-heading);
    font-weight: 650;
    margin: 0;
}

.filter-tabs {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tabs a {
    flex: none;
    padding: 0.45rem 0.95rem;
    border-radius: var(--ol-radius-chip);
    border: 1px solid var(--ol-border-strong);
    color: var(--ol-text-heading);
    font-size: var(--ol-type-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.filter-tabs a.active {
    background: var(--ol-primary);
    border-color: var(--ol-primary);
    color: var(--ol-on-primary);
}

.filter-tabs a:hover {
    text-decoration: none;
    border-color: var(--ol-primary);
}

.empty-state {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--ol-text-secondary);
    border: 1px dashed var(--ol-border-strong);
    border-radius: var(--ol-radius-card);
    background: var(--ol-surface-elevated);
}

/* ------------------------------------------------- editor (create page) -- */

.editor-section {
    padding: 1.5rem 0;
    border-top: 1px solid var(--ol-border);
}

.editor-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.editor-section h2 {
    font-size: var(--ol-type-heading);
    font-weight: 650;
    margin-bottom: 1rem;
}

.task-editor {
    position: relative;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid var(--ol-border);
    border-radius: var(--ol-radius-card);
    background: var(--ol-surface-elevated);
}

.task-editor__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.task-editor__index {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--ol-primary);
    color: var(--ol-on-primary);
    font-weight: 700;
    font-size: var(--ol-type-secondary);
}

.task-editor__tools {
    display: flex;
    gap: 0.25rem;
}

.recipient-editor {
    display: grid;
    grid-template-columns: 1.3fr 1.3fr 1fr auto;
    gap: 0.5rem;
    align-items: start;
    margin-bottom: 0.5rem;
}

@media (max-width: 767.98px) {
    .recipient-editor {
        grid-template-columns: 1fr 1fr;
    }
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 0 0;
    margin-top: 1rem;
    border-top: 1px solid var(--ol-border);
    background: var(--ol-surface);
}

@media (max-width: 991.98px) {
    .sticky-actions {
        bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }
}

/* ------------------------------------------------------------ share step -- */

.share-row {
    padding: 1rem;
    border: 1px solid var(--ol-border);
    border-radius: var(--ol-radius-card);
    margin-bottom: 0.75rem;
    background: var(--ol-surface-elevated);
}

.share-row__link {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.share-row__link input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
}

.share-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.access-code {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--ol-radius-input);
    background: var(--ol-warning-tint);
    color: var(--ol-warning);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

/* -------------------------------------------------------- plan cards -- */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.plan-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    border: 1px solid var(--ol-border);
    border-radius: var(--ol-radius-card);
    background: var(--ol-surface);
}

.plan-card--current {
    border-color: var(--ol-primary);
    box-shadow: 0 0 0 1px var(--ol-primary);
}

.plan-card__price {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ol-text-heading);
}

.plan-card__price small {
    font-size: var(--ol-type-secondary);
    font-weight: 500;
    color: var(--ol-text-secondary);
}

.plan-card ul {
    padding-inline-start: 1.1rem;
    margin: 0;
    color: var(--ol-text-body);
    font-size: var(--ol-type-secondary);
}

.plan-card .btn {
    margin-top: auto;
}

/* --------------------------------------------------------------- landing -- */

/* Tinted panels (guide §6): the hero on a subtle blue tint and a dedicated call-to-action
   section before the footer. Flat fills — no glows, no heavy shadows. */
.hero,
.cta-band {
    border: 1px solid var(--ol-border);
    border-radius: var(--ol-radius-panel);
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    /* The soft wave artwork (wwwroot/img/hero-wave.png) over the tint; dark mode drops the image. */
    background: var(--ol-hero-image) center / cover no-repeat, var(--ol-gradient-hero);
}

@media (max-width: 991.98px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 1.75rem 1.25rem;
    }
}

.hero h1 {
    font-size: clamp(2.25rem, 1.75rem + 1.6vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero p.lead {
    color: var(--ol-text-secondary);
    font-size: 1.125rem;
    font-weight: 400;
    max-width: 36rem;
}

.home-section {
    margin-bottom: 2.5rem;
}

.cta-band {
    padding: 2.5rem 1.5rem;
    text-align: center;
    /* The gradient-wave artwork (wwwroot/img/cta-wave.png) over the tint; dark mode drops the image. */
    background: var(--ol-band-image) center / cover no-repeat, var(--ol-gradient-band);
}

.cta-band h2 {
    font-size: clamp(1.5rem, 1.25rem + 0.75vw, 1.75rem);
    font-weight: 650;
    letter-spacing: -0.01em;
}

.cta-band p {
    max-width: 40rem;
    margin: 0 auto 1.25rem;
    color: var(--ol-text-secondary);
    font-size: 1.0625rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* Hero photo with the sample list laid over the white panel in its lower-left quadrant.
   The panel sits at 5.4% / 41.7% and spans 38.8% x 54.4% of the (square) image; the overlay
   keeps a small inset inside it. Everything in the mini card is sized in em from a
   container-relative font size, so it scales with the image. */
.hero__visual {
    position: relative;
    max-width: 600px;
    justify-self: end;
    border-radius: var(--ol-radius-card);
    overflow: hidden;
    box-shadow: var(--ol-shadow);
}

.hero__image {
    display: block;
    width: 100%;
    height: auto;
}

.hero__overlay {
    position: absolute;
    left: 7.5%;
    top: 44%;
    width: 34.5%;
    height: 50%;
    container-type: inline-size;
}

.task-card--mini {
    font-size: clamp(0.5rem, 6.2cqw, 0.95rem);
    box-shadow: var(--ol-shadow);
}

.task-card--mini .task-row {
    gap: 0.55em;
    padding: 0.65em 0.75em;
}

.task-card--mini .task-row__check {
    flex-basis: 1.4em;
    width: 1.4em;
    height: 1.4em;
    margin-top: 0.05em;
}

.task-card--mini .task-row__check svg {
    width: 0.9em;
    height: 0.9em;
}

.task-card--mini .task-row__title {
    font-size: 1em;
    line-height: 1.3;
    margin: 0;
}

.task-card--mini .task-row__meta {
    font-size: 0.82em;
    margin-top: 0.15em;
}

.task-card--mini .task-card__footer {
    padding: 0.65em 0.75em;
}

.task-card--mini .progress-row {
    gap: 0.5em;
}

.task-card--mini .progress-row__counter {
    font-size: 0.85em;
}

.task-card--mini .ol-progress {
    height: 0.45em;
}

@media (max-width: 991.98px) {
    .hero__visual {
        max-width: 480px;
        justify-self: center;
        width: 100%;
    }
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 991.98px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--ol-border);
    border-radius: var(--ol-radius-card);
    background: var(--ol-surface);
    transition: border-color 0.15s ease;
}

.feature:hover {
    border-color: var(--ol-primary);
}

/* Small blue icon on each feature card (guide §6). */
.feature__icon {
    display: inline-flex;
    color: var(--ol-primary);
}

.feature__icon svg {
    width: 28px;
    height: 28px;
}

/* Page-header icon: a 48px tinted square beside the title (Create mockup). */
.page-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: var(--ol-radius-nav);
    background: var(--ol-primary-tint);
    color: var(--ol-primary);
}

.page-icon svg {
    width: 24px;
    height: 24px;
}

.feature-icon {
    fill: currentColor;
}

.feature h3 {
    font-size: var(--ol-type-card);
    font-weight: 600;
    margin: 0;
}

.feature p {
    margin: 0;
    color: var(--ol-text-secondary);
    font-size: 1rem;
}

.steps {
    counter-reset: step;
    display: grid;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.steps li {
    position: relative;
    padding: 0.85rem 1rem 0.85rem 3.25rem;
    border: 1px solid var(--ol-border);
    border-radius: var(--ol-radius-card);
    background: var(--ol-surface);
}

[dir="rtl"] .steps li {
    padding: 0.85rem 3.25rem 0.85rem 1rem;
}

.steps li strong {
    display: block;
    font-size: var(--ol-type-card);
    font-weight: 600;
    color: var(--ol-text-heading);
    margin-bottom: 0.2rem;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    inset-inline-start: 1rem;
    top: 0.85rem;
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--ol-primary);
    color: var(--ol-on-primary);
    font-weight: 700;
    font-size: var(--ol-type-secondary);
}

.accordion {
    --bs-accordion-bg: var(--ol-surface);
    --bs-accordion-border-color: var(--ol-border);
    --bs-accordion-border-radius: var(--ol-radius-card);
    --bs-accordion-btn-color: var(--ol-text-heading);
    --bs-accordion-active-bg: var(--ol-primary-tint);
    --bs-accordion-active-color: var(--ol-primary);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--ol-primary) 25%, transparent);
}

.accordion-button {
    font-weight: 600;
}

/* ---------------------------------------------------------------- footer -- */

/* Navy footer band, full width: brand · Product · Company · contact, then the legal line. */
.app-footer {
    flex-shrink: 0;
    margin-top: 2.5rem;
    padding: 2.5rem 0 1.5rem;
    background: var(--ol-navy);
    color: var(--ol-on-navy);
}

.footer-panel {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 1.5rem 2rem;
}

@media (max-width: 767.98px) {
    .footer-panel {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand,
    .footer-social {
        grid-column: 1 / -1;
    }
}

.footer-brand .brand-wordmark,
.footer-brand .brand-wordmark:hover {
    color: var(--ol-on-navy);
}

.footer-tagline {
    margin: 0.6rem 0 0;
    color: var(--ol-on-navy-muted);
    font-size: var(--ol-type-secondary);
}

.footer-links {
    display: contents;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: flex-start;
    padding-inline-start: 1.5rem;
    border-inline-start: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 767.98px) {
    .footer-col {
        padding-inline-start: 0;
        border-inline-start: none;
    }
}

.footer-col__title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ol-on-navy);
}

.footer-col a {
    color: var(--ol-on-navy-muted);
    font-weight: 500;
    font-size: var(--ol-type-secondary);
}

.footer-col a:hover {
    color: var(--ol-on-navy);
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.footer-social__link {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--ol-on-navy);
}

.footer-social__link:hover {
    background: var(--ol-primary);
    color: var(--ol-on-primary);
    text-decoration: none;
}

.footer-social__link svg {
    width: 20px;
    height: 20px;
}

.footer-meta {
    grid-column: 1 / -1;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--ol-on-navy-muted);
    font-size: var(--ol-type-caption);
}

/* =====================================================================
   Responsive navigation (§14.1): left nav rail ≥ 992px, fixed bottom nav
   ≤ 991.98px with the first 4 links + More (offcanvas with all links).
   ===================================================================== */

.layout-with-nav__content {
    min-width: 0;
}

@media (min-width: 992px) {
    .layout-with-nav {
        display: grid;
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 1.5rem;
        align-items: start;
    }
}

/* Clearance for the fixed bottom bar so it never covers the end of the page. */
@media (max-width: 991.98px) {
    .has-left-nav {
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }
}

.left-nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.left-nav__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 48px;
    padding: 0.625rem 0.875rem;
    border: none;
    background: none;
    color: var(--ol-text-secondary);
    font-size: 1rem;
    font-weight: 500;
    text-align: start;
    border-radius: var(--ol-radius-nav);
}

.left-nav__link:hover {
    color: var(--ol-primary-deep);
    background: var(--ol-primary-tint);
    text-decoration: none;
}

.left-nav__link.active {
    color: var(--ol-primary-deep);
    background: var(--ol-primary-tint);
    font-weight: 600;
}

.left-nav__link.active .nav-icon {
    color: var(--ol-primary);
}

.nav-icon,
.icon-burger {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.left-nav__label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (min-width: 992px) {
    .left-nav {
        position: sticky;
        top: 6rem;
        padding: 0.75rem;
        border: 1px solid var(--ol-border);
        border-radius: var(--ol-radius-card);
        background: var(--ol-surface);
    }

    .left-nav__list {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }

    /* Every link is already on screen; nothing left to reveal. */
    .left-nav__item--more {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .left-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        background: var(--ol-surface);
        border-top: 1px solid var(--ol-border);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    /* Five even slots: the first four links and More. */
    .left-nav__list {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }

    /* Links past the fourth live in the More sheet. */
    .left-nav__item:nth-child(n+5):not(.left-nav__item--more) {
        display: none;
    }

    .left-nav__item--more {
        grid-column: 5;
    }

    .left-nav__link {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        min-height: 56px;
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
        line-height: 1.2;
        text-align: center;
        border-radius: 0;
    }

    .left-nav__link.active,
    .left-nav__link:hover {
        background: none;
    }

    .left-nav__link.active {
        color: var(--ol-link);
        box-shadow: inset 0 3px 0 var(--ol-primary);
    }
}

.left-nav-sheet {
    --bs-offcanvas-bg: var(--ol-surface);
    --bs-offcanvas-color: var(--ol-text-body);
    --bs-offcanvas-border-color: var(--ol-border);
    height: auto;
    max-height: 80vh;
    border-radius: var(--ol-radius-card) var(--ol-radius-card) 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 992px) {
    .left-nav-sheet {
        display: none;
    }
}

.left-nav-sheet__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.left-nav-sheet__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 0.25rem;
    border-bottom: 1px solid var(--ol-border);
    color: var(--ol-text-body);
    font-size: 1.05rem;
    font-weight: 500;
}

.left-nav-sheet__link:hover {
    color: var(--ol-text-heading);
    text-decoration: none;
}

.left-nav-sheet__link.active {
    color: var(--ol-primary);
    font-weight: 600;
}

/* ---------------------------------------------------- recipient pages -- */

.chrome-minimal .page-shell {
    padding-top: 1rem;
}

.recipient-main {
    max-width: 720px;
    margin: 0 auto;
}

.recipient-landing {
    padding: 2rem 1.75rem;
    border: 1px solid var(--ol-border);
    border-radius: var(--ol-radius-card);
    background: var(--ol-surface);
    box-shadow: var(--ol-shadow-soft);
    text-align: center;
}

.recipient-landing__creator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0.75rem 0 1.25rem;
    color: var(--ol-text-secondary);
}

.creator-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--ol-border);
}

.creator-avatar--initials {
    display: grid;
    place-items: center;
    background: var(--ol-primary);
    color: var(--ol-on-primary);
    font-weight: 700;
}

.recipient-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.task-detail {
    padding: 1.25rem;
    border: 1px solid var(--ol-border);
    border-radius: var(--ol-radius-card);
    background: var(--ol-surface);
    margin-bottom: 1rem;
}

.translated-note {
    font-size: var(--ol-type-caption);
    color: var(--ol-text-secondary);
}

.congrats {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px solid var(--ol-border);
    border-radius: var(--ol-radius-card);
    background: var(--ol-surface);
}

.congrats__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--ol-success-tint);
    color: var(--ol-success);
}

.congrats__icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
}

.open-in-app {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid var(--ol-border);
    border-radius: var(--ol-radius-input);
    background: var(--ol-primary-tint);
    font-size: var(--ol-type-secondary);
}

/* ---------------------------------------------------------- utilities -- */

.modal-content {
    background: var(--ol-surface);
    border-color: var(--ol-border);
    border-radius: var(--ol-radius-card);
    box-shadow: var(--ol-shadow);
    color: var(--ol-text-body);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ol-text-body);
    --bs-table-border-color: var(--ol-border);
}

.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}
