/* Copyright (c) 2026 Bc. Jan Krejčí. All rights reserved.
   Proprietary and confidential. See LICENSE in the project root. */

/* ═══════════════════════════════════════════════════════════════════════════
   rg-one.css — RG ONE's two apps: the installer's (CrewLayout, Pages/Crew)
   and the customer's (PortalLayout, Pages/Portal). Their own chrome and
   screens; the primitives they share with the office (cards, avatars, the
   gallery, badges) are in rg-app.css, which both layouts link as well.

   Linked in the body by CrewLayout and PortalLayout, preloaded by App.razor
   (CLAUDE.md §2 "Layout", rule 2). Every value is a Forge token (re-tuned by
   forge-tokens.css) or one of the --one-* below. Mobile first: the installer
   holds a phone in one hand, so every target is at least 48 px and the one
   button that matters is at the thumb's reach.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --one-col: 720px;
    --one-gutter: 16px;
    --one-bar-h: 60px;
    --one-gap: 16px;
    --one-gap-l: 24px;
    --one-radius: 22px;
    --one-radius-l: 28px;

    /* The "now" card is dark in both themes: it is the one thing on the
       screen, and a dark card on paper reads as exactly that. */
    --one-ink: oklch(0.19 0.006 55);
    --one-ink-2: oklch(0.145 0.005 55);
    --one-on-ink: oklch(0.975 0.004 80);
    --one-on-ink-2: oklch(0.975 0.004 80 / 0.72);
    --one-on-ink-3: oklch(0.975 0.004 80 / 0.52);
    --one-glass: oklch(1 0 0 / 0.075);
    --one-glass-line: oklch(1 0 0 / 0.11);
}

@media (min-width: 768px) {
    :root {
        --one-gutter: 24px;
        --one-gap: 18px;
        --one-gap-l: 28px;
    }
}

.one--portal { --one-col: 1080px; }

/* ── The page ──────────────────────────────────────────────────────────── */

.one {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    background:
        radial-gradient(900px 420px at 85% -12%, oklch(var(--accent-l) var(--accent-c) var(--accent-h) / 0.07), transparent 65%),
        var(--bg-0);
    color: var(--fg-1);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.one-col {
    width: 100%;
    max-width: calc(var(--one-col) + 2 * var(--one-gutter));
    margin-inline: auto;
    padding-inline: var(--one-gutter);
    box-sizing: border-box;
}

/* ── The bar ───────────────────────────────────────────────────────────── */

.one-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in oklab, var(--bg-0) 80%, transparent);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--line);
}

.one-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--one-bar-h);
}

.one-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--fg-1);
    text-decoration: none;
}

.one-brand img {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.one-brand__name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: var(--rg-tracking-tight);
    white-space: nowrap;
}

.one-brand__name b { color: var(--rg-brand); }

.one-brand__role {
    padding: 2px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-3);
    color: var(--fg-2);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── The one menu ──────────────────────────────────────────────────────── */

.one-menu { position: relative; }

.one-menu__trigger {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.one-menu__trigger .rga-avatar { width: 38px; height: 38px; }
.one-menu__trigger:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

.one-menu__backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
}

.one-menu__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 31;
    display: grid;
    gap: 6px;
    width: min(300px, calc(100vw - 2 * var(--one-gutter)));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--one-radius);
    background: var(--surface-elevated);
    box-shadow: var(--shadow-xl);
    animation: one-pop var(--t-med) var(--ease-out);
}

@keyframes one-pop {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
}

.one-menu__who {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 12px;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.one-menu__name {
    font-weight: 600;
    font-size: 0.9375rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.one-menu__theme {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin: 6px 0 2px;
    padding: 4px;
    border-radius: 14px;
    background: var(--bg-3);
}

.one-menu__theme button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--fg-2);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

[data-theme="light"] .one-menu__theme [data-theme-target="light"],
[data-theme="dark"] .one-menu__theme [data-theme-target="dark"] {
    background: var(--surface-elevated);
    color: var(--fg-1);
    box-shadow: var(--shadow-sm);
}

.one-menu__list { display: grid; margin: 0; padding: 0; list-style: none; }

.one-menu__list a,
.one-menu__out button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 0 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--fg-1);
    font: inherit;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
}

.one-menu__list a:hover,
.one-menu__out button:hover { background: var(--bg-3); }

.one-menu__out { margin: 0; padding-top: 6px; border-top: 1px solid var(--line); }
.one-menu__out button { color: var(--bad); }

/* ── Main ──────────────────────────────────────────────────────────────── */

.one-main {
    flex: 1 0 auto;
    padding-block: 20px 56px;
}

.one-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--one-gap-l);
}

.one-hello { display: grid; gap: 4px; }

.one-hello__date {
    margin: 0;
    color: var(--fg-3);
    font-size: 0.875rem;
    font-weight: 500;
}

.one-hello__title {
    margin: 0;
    font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.one-hello__lead {
    margin: 6px 0 0;
    max-width: 60ch;
    color: var(--fg-2);
    font-size: 1.0625rem;
}

/* ── The job in focus: dark, in both themes ────────────────────────────── */

.one-focus {
    position: relative;
    display: grid;
    gap: 14px;
    padding: 22px 18px 18px;
    border-radius: var(--one-radius-l);
    background:
        radial-gradient(420px 260px at 100% 0%, oklch(0.58 0.2 28 / 0.32), transparent 70%),
        linear-gradient(165deg, var(--one-ink), var(--one-ink-2));
    color: var(--one-on-ink);
    box-shadow: var(--shadow-xl), inset 0 1px 0 oklch(1 0 0 / 0.06);
    overflow: hidden;
    isolation: isolate;
}

[data-theme="dark"] .one-focus { box-shadow: var(--shadow-xl), inset 0 0 0 1px var(--one-glass-line); }

.one-focus.is-here {
    background:
        radial-gradient(420px 260px at 100% 0%, oklch(0.62 0.13 155 / 0.34), transparent 70%),
        linear-gradient(165deg, var(--one-ink), var(--one-ink-2));
}

@media (min-width: 768px) {
    .one-focus { padding: 28px 26px 24px; gap: 16px; }
}

.one-focus__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--one-on-ink-2);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.one-focus__number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.one-focus__title {
    margin: 0;
    font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.one-focus__title a { color: inherit; text-decoration: none; }
.one-focus__title a:hover { text-decoration: underline; text-underline-offset: 4px; }

.one-focus__meta {
    margin: -6px 0 0;
    color: var(--one-on-ink-2);
    font-size: 0.9375rem;
    overflow-wrap: anywhere;
}

.one-focus__clock {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin: 2px 0 0;
}

.one-focus__clock > span:first-child {
    font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.one-focus__clock > span + span { color: var(--one-on-ink-2); font-size: 0.9375rem; }

.one-focus__note {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--one-glass);
    color: var(--one-on-ink-2);
    font-size: 0.875rem;
}

.one-focus__privacy {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: -2px 0 0;
    color: var(--one-on-ink-3);
    font-size: 0.8125rem;
}

.one-focus .rga-dot.is-live { box-shadow: 0 0 0 4px oklch(0.7 0.14 155 / 0.25); }

/* Pills on the dark card: glass, so they do not punch a light hole in it. */
.one-focus .forge-badge {
    background: var(--one-glass);
    border-color: var(--one-glass-line);
    color: var(--one-on-ink);
}

.one-focus .forge-badge--warning { color: oklch(0.86 0.12 75); }
.one-focus .forge-badge--success { color: oklch(0.82 0.12 155); }
.one-focus .forge-badge--danger { color: oklch(0.78 0.14 27); }

/* The big button at the thumb. */
.one-big.forge-button,
.forge-button.one-big {
    min-height: 56px;
    border-radius: 16px;
    font-size: 1.0625rem;
    font-weight: 650;
    gap: 10px;
}

/* ── Action tiles ──────────────────────────────────────────────────────── */

/* Up to four tiles in one row on the narrowest phone: photo, note, drive, call. */
.one-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 8px;
}

.one-action,
.one-capture-wrap .forge-file-upload.one-capture {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 84px;
    margin: 0;
    padding: 12px 4px;
    border: 1px solid var(--one-glass-line);
    border-radius: 18px;
    background: var(--one-glass);
    color: var(--one-on-ink);
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}

.one-action:hover,
.one-capture-wrap .forge-file-upload.one-capture:hover { background: oklch(1 0 0 / 0.12); }

.one-action:active,
.one-capture-wrap .forge-file-upload.one-capture:active { transform: scale(0.97); }

.one-action:focus-visible,
.one-capture-wrap .forge-file-upload.one-capture:focus-within { outline: none; box-shadow: 0 0 0 3px oklch(1 0 0 / 0.35); }

.one-action__icon { display: inline-grid; place-items: center; }

/* The photo tile is the action a site uses most, so it is the lit one. Its
   insides are ForgeFileUpload's: the upload arrow gives way to a camera and
   the hint to the label alone. The input stays a real file control laid over
   the whole tile, so a tap anywhere opens the camera. */
.one-capture-wrap { display: grid; min-width: 0; }

.one-capture-wrap .forge-file-upload.one-capture {
    position: relative;
    background: var(--rg-brand);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px -10px oklch(0.55 0.22 28 / 0.75);
}

.one-capture-wrap .forge-file-upload.one-capture:hover { background: color-mix(in oklab, var(--rg-brand) 88%, white); }

.one-capture-wrap .forge-file-upload.one-capture .forge-file-upload__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.one-capture-wrap .forge-file-upload.one-capture .forge-file-upload__icon {
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z'/%3E%3Ccircle cx='12' cy='13' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.one-capture-wrap .forge-file-upload.one-capture .forge-file-upload__icon svg { display: none; }

.one-capture-wrap .forge-file-upload.one-capture .forge-file-upload__body { display: grid; gap: 0; }

.one-capture-wrap .forge-file-upload.one-capture .forge-file-upload__title {
    color: inherit;
    font-size: 0.875rem;
    font-weight: 650;
}

.one-capture-wrap .forge-file-upload.one-capture .forge-file-upload__hint { display: none; }

.one-capture-wrap { position: relative; }

.one-capture-wrap.is-busy .forge-file-upload.one-capture { cursor: progress; }

/* While the pictures go, the tile says how far — over the tile, in its colour. */
.one-capture__busy {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 8px;
    border-radius: 18px;
    background: var(--rg-brand);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 650;
    text-align: center;
    pointer-events: none;
}

/* ── Sections and cards ────────────────────────────────────────────────── */

.one-section { display: grid; gap: 12px; }

.one-section__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.one-empty {
    margin: 0;
    padding: 28px 18px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--one-radius);
    color: var(--fg-3);
    text-align: center;
}

.one-card {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--one-radius);
    background: var(--surface-elevated);
    box-shadow: var(--shadow-md);
    min-width: 0;
}

@media (min-width: 768px) {
    .one-card { padding: 24px; }
}

.one-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.one-card__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.one-card__text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--fg-2);
}

.one-card__text.rga-pre { display: block; }
.one-card__text--lg { font-size: 1.0625rem; line-height: 1.6; color: var(--fg-1); }

.one-card__count {
    min-width: 28px;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--bg-3);
    color: var(--fg-2);
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
}

.one-card--hint {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    background: color-mix(in oklab, var(--warn) 7%, var(--surface-elevated));
    border-color: color-mix(in oklab, var(--warn) 25%, var(--line));
}

.one-card--hint > div { display: grid; gap: 8px; justify-items: start; }

.one-card__icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: color-mix(in oklab, var(--warn) 18%, transparent);
    color: color-mix(in oklab, var(--warn) 75%, var(--fg-1));
}

.one-card--update {
    border-left: 4px solid var(--accent);
}

.one-crew {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.one-crew li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.one-crew .rga-avatar { width: 34px; height: 34px; font-size: 12px; }

/* ── The installer's list of jobs ──────────────────────────────────────── */

.one-jobs { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.one-job {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface-elevated);
    box-shadow: var(--shadow-sm);
    color: var(--fg-1);
    text-decoration: none;
    min-width: 0;
    transition: box-shadow var(--t-med) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}

.one-job:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.one-job:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

.one-job__date {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    align-content: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: var(--bg-3);
    line-height: 1;
}

.one-job__date b { font-size: 1.25rem; font-weight: 700; }
.one-job__date span { margin-top: 3px; color: var(--fg-3); font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

.one-job__main { display: grid; gap: 2px; flex: 1 1 auto; min-width: 0; }
.one-job__title { font-weight: 600; overflow-wrap: anywhere; }
.one-job__meta { color: var(--fg-3); font-size: 0.875rem; overflow-wrap: anywhere; }
.one-job__go { flex: 0 0 auto; color: var(--fg-4); }

/* ── The customer's projects ───────────────────────────────────────────── */

.one-projects {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--one-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 860px) {
    .one-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.one-project {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--one-radius-l);
    background: var(--surface-elevated);
    box-shadow: var(--shadow-md);
    color: var(--fg-1);
    text-decoration: none;
    min-width: 0;
    transition: box-shadow var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}

.one-project:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.one-project:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

.one-project__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--fg-3); }
.one-project__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.one-project__phase { margin-top: -6px; color: var(--fg-2); }

.one-project__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    color: var(--fg-3);
    font-size: 0.875rem;
}

.one-project__foot span { display: inline-flex; align-items: center; gap: 6px; }

.one-project-hero {
    position: relative;
    display: grid;
    gap: 14px;
    padding: clamp(22px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--one-radius-l);
    background:
        radial-gradient(700px 300px at 100% 0%, oklch(var(--accent-l) var(--accent-c) var(--accent-h) / 0.09), transparent 70%),
        var(--surface-elevated);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.one-project-hero .one-focus__eyebrow { color: var(--fg-3); }

.one-project-hero__title {
    margin: 0;
    font-size: clamp(1.75rem, 1.35rem + 2vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.one-project-hero__phase {
    margin: -4px 0 6px;
    color: var(--fg-2);
    font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
}

.one-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--one-gap);
}

@media (min-width: 960px) {
    .one-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; gap: var(--one-gap-l); }
}

.one-grid__main,
.one-grid__side {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--one-gap);
    align-content: start;
    min-width: 0;
}

.one-facts { display: grid; gap: 14px; margin: 0; }
.one-facts > div { display: grid; gap: 4px; }

.one-facts dt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fg-3);
    font-size: 0.8125rem;
    font-weight: 500;
}

.one-facts dd { margin: 0; color: var(--fg-1); font-weight: 500; overflow-wrap: anywhere; }

/* The customer's news from the site: a dated line, newest on top. */
.one-news {
    display: grid;
    gap: 14px;
    margin: 6px 0 0;
    padding: 0 0 0 16px;
    border-left: 2px solid var(--line-strong);
    list-style: none;
}

.one-news__item { position: relative; display: grid; gap: 2px; }

.one-news__item::before {
    content: "";
    position: absolute;
    top: 6px;
    left: -22px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--surface-elevated);
    box-shadow: inset 0 0 0 2px var(--accent);
}

.one-news__item:first-child::before { background: var(--accent); }
.one-news__when { color: var(--fg-3); font-size: 0.8125rem; font-weight: 500; }
.one-news__text { margin: 0; color: var(--fg-1); line-height: 1.55; }

/* ── The customer's service request ────────────────────────────────────── */

.one-topics { display: flex; flex-wrap: wrap; gap: 8px; }

.one-topic {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface-elevated);
    color: var(--fg-1);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 550;
    cursor: pointer;
    transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}

.one-topic:hover { border-color: color-mix(in oklab, var(--fg-1) 25%, transparent); }
.one-topic.is-on { border-color: var(--accent); background: var(--accent-soft); color: var(--fg-1); }
.one-topic:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

.one-service__mine { margin: 6px 0 0; font-size: 0.9375rem; font-weight: 650; }
.one-requests { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.one-request {
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bg-1);
}

.one-request__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.one-request__text { color: var(--fg-2); overflow-wrap: anywhere; }
.one-request__when { color: var(--fg-3); font-size: 0.8125rem; }

.one-facts__hint { color: var(--fg-3); font-weight: 400; }

/* ── Help ──────────────────────────────────────────────────────────────── */

.one-help {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 22px;
    border-radius: var(--one-radius);
    background:
        radial-gradient(420px 200px at 0% 0%, oklch(var(--accent-l) var(--accent-c) var(--accent-h) / 0.1), transparent 70%),
        var(--surface-elevated);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
}

.one-help__icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
}

.one-help__text { display: grid; gap: 4px; }
.one-help__title { margin: 0; font-size: 1.0625rem; font-weight: 650; }
.one-help__text p { margin: 0; color: var(--fg-2); }

.one-help__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.one-help__actions .forge-button { flex: 1 1 160px; min-height: 48px; justify-content: center; }

/* ── Footer ────────────────────────────────────────────────────────────── */

.one-foot {
    padding: 20px 0 28px;
    color: var(--fg-4);
    font-size: 0.8125rem;
    text-align: center;
}

/* ── Motion ────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    :root:not([data-motion="full"]) :is(.one-menu__panel) { animation: none; }
    :root:not([data-motion="full"]) :is(.one-action, .one-job, .one-project, .one-capture-wrap .forge-file-upload.one-capture) { transition: none; }
}

:root[data-motion="reduced"] .one-menu__panel { animation: none; }
:root[data-motion="reduced"] :is(.one-action, .one-job, .one-project, .one-capture-wrap .forge-file-upload.one-capture) { transition: none; }
