/* Frenko 2.0 «Пастель»: tokens from design/brand/tokens.css, components from design/brand/components/bundle.css, fonts are local OFL copies. */
@font-face {
    font-family: "Nunito";
    font-weight: 400 800;
    font-display: swap;
    src: url(/fonts/nunito-cyrillic.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Nunito";
    font-weight: 400 800;
    font-display: swap;
    src: url(/fonts/nunito-latin.woff2) format("woff2");
    unicode-range:
        U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
    font-family: "Neucha";
    font-display: swap;
    src: url(/fonts/neucha-cyrillic.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Neucha";
    font-display: swap;
    src: url(/fonts/neucha-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F;
}
@font-face {
    font-family: "Caveat";
    font-weight: 700;
    font-display: swap;
    src: url(/fonts/caveat-700-cyrillic.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: "Caveat";
    font-weight: 700;
    font-display: swap;
    src: url(/fonts/caveat-700-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F;
}

:root {
    --paper: #fbf7f2;
    --card: #ffffff;
    --soft: #f4efff;
    --ink: #34302d;
    --muted: #625b54;
    --line: var(--ink);
    --lilac: #c9b6ff;
    --peach: #ffc3a3;
    --aqua: #9fe4d8;
    --butter: #ffe9a6;
    --highlight: #fff0a3;
    --blush: #ffab9c;
    --danger-bg: #fde4e0;
    --danger-ink: #a8322a;
    --shadow-offset: 3px 4px 0 #34302d;
    --shadow-voice: 4px 5px 0 #ffc3a3;
    --space-7: 16px;
    --space-8: 18px;
    --radius-tail: 6px;
    --radius-field: 12px;
    --radius-bubble: 22px;
    --radius-sheet: 24px;
    --size-tap: 44px;
    --size-button: 50px;
    --size-button-hero: 58px;
    --size-voice: 100px;
    --size-avatar: 50px;
    --size-avatar-hero: 80px;
    --size-stroke: 2.5px;
    --font-display: Neucha, "Comic Sans MS", cursive;
    --font-sans: Nunito, system-ui, sans-serif;
    --font-hand: Caveat, "Comic Sans MS", cursive;
    --fr-shape-box: 255px 18px 225px 18px / 18px 225px 18px 255px;
    --fr-shape-pill: 30px 10px 28px 12px / 12px 30px 10px 28px;
    --fr-shape-blob: 52% 48% 50% 50% / 48% 52% 48% 52%;
    --shell: 480px;
    color-scheme: light;
}

* {
    box-sizing: border-box;
}
[hidden] {
    display: none !important;
}
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    overflow-x: hidden;
}
button,
input,
select,
textarea {
    font: inherit;
    color: var(--ink);
}
button {
    cursor: pointer;
}
p {
    margin: 0;
}
:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}
img {
    max-width: 100%;
}

/* ---------- layout ---------- */
.shell {
    max-width: var(--shell);
    margin: 0 auto;
    min-height: 100dvh;
    position: relative;
}
.page {
    padding: 0 20px 24px;
}
.page--dock {
    padding-bottom: 180px;
}
.page--bottom {
    padding-bottom: 200px;
}
.topbar {
    min-height: 64px;
    padding: 0 20px;
    display: flex;
    align-items: center;
}
.stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.stack--tight {
    gap: 12px;
}
.stack--s {
    gap: 8px;
}
.stack--0 {
    gap: 0;
}
.row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.row--top {
    align-items: flex-start;
}
.row--s {
    gap: 8px;
}
.grow {
    flex: 1;
    min-width: 0;
}
.w-full {
    width: 100%;
}
.center {
    text-align: center;
}
.bottom {
    position: fixed;
    z-index: 5;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, var(--shell));
    padding: 26px 20px calc(18px + env(safe-area-inset-bottom));
    background: linear-gradient(transparent, var(--paper) 26%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

/* ---------- type ---------- */
.fr-wordmark {
    font-family: var(--font-display);
    font-size: 1.625rem;
    line-height: 1;
    color: var(--ink);
}
.fr-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 2.3125rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}
.fr-heading {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.4375rem;
    line-height: 1.25;
}
.fr-heading--s {
    font-size: 1.25rem;
}
.fr-muted {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.45;
}
.fr-note {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 1.375rem;
    line-height: 1.1;
    color: var(--muted);
    display: inline-block;
    transform: rotate(-2deg);
    align-self: flex-start;
}
.fr-note--s {
    font-size: 1.1875rem;
}
.fr-hl {
    background: linear-gradient(
        100deg,
        transparent 1%,
        var(--highlight) 3%,
        var(--highlight) 95%,
        transparent 98%
    );
    padding: 0 6px;
    margin: 0 -2px;
    border-radius: 6px 14px 8px 12px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.fr-lead {
    margin: 0;
    font-size: 1.1875rem;
    line-height: 1.35;
    font-weight: 800;
}
.fr-transcript {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.4375rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.fr-transcript--s {
    font-size: 1.25rem;
}
.fr-transcript--quote {
    font-size: 1.1875rem;
    color: var(--muted);
}
.fr-transcript__pending {
    color: var(--muted);
}
.fr-timer {
    font-family: var(--font-display);
    font-size: 2.75rem;
    line-height: 1;
}
.fr-timer__max {
    font-size: 1.375rem;
}
.danger-text {
    color: var(--danger-ink);
}

/* ---------- header and dock ---------- */
.fr-header {
    min-height: 64px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fr-lockup {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--ink);
    min-height: var(--size-tap);
}
.profile {
    font-weight: 800;
    text-decoration: none;
    color: var(--ink);
}
.fr-back {
    min-height: var(--size-tap);
    padding: 0 6px 0 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 0.9375rem;
    text-decoration: none;
    color: var(--ink);
}
.fr-dock {
    position: fixed;
    z-index: 5;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, var(--shell));
    padding: 24px 20px calc(14px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: linear-gradient(transparent, var(--paper) 34%);
}
.fr-voice {
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.fr-voice__disc {
    width: var(--size-voice);
    height: var(--size-voice);
    border-radius: 50%;
    background: var(--lilac);
    border: 3px solid var(--line);
    box-shadow: var(--shadow-voice);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.fr-voice__disc img {
    width: 86%;
    height: 86%;
}
.fr-voice__disc--big {
    width: 170px;
    height: 170px;
}
.fr-voice__label {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 1.375rem;
    line-height: 1.1;
    color: var(--ink);
    text-align: center;
}
.fr-voice--listening .fr-voice__disc {
    background: var(--aqua);
}
.fr-voice--off .fr-voice__disc {
    background: var(--soft);
    border-style: dashed;
    box-shadow: none;
}
.fr-voice--off .fr-voice__label {
    font-size: 1.125rem;
    max-width: 150px;
}
@keyframes fr-wobble {
    0%,
    100% {
        transform: rotate(-2deg) scale(1);
    }
    50% {
        transform: rotate(2deg) scale(1.04);
    }
}
.fr-wobble {
    animation: fr-wobble 2.8s ease-in-out infinite;
}

/* ---------- buttons ---------- */
.fr-btn {
    min-height: var(--size-button);
    padding: 0 20px;
    border-radius: var(--fr-shape-pill);
    border: var(--size-stroke) solid var(--line);
    background: var(--lilac);
    color: var(--ink);
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 0.9375rem;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-offset);
    text-decoration: none;
    text-align: center;
}
.fr-btn:active {
    transform: translate(2px, 3px);
    box-shadow: 1px 1px 0 var(--ink);
}
.fr-btn--hero {
    min-height: var(--size-button-hero);
    font-size: 1.0625rem;
    width: 100%;
    padding: 8px 20px;
}
.fr-btn--secondary {
    background: var(--aqua);
    box-shadow: none;
}
.fr-btn--plain {
    background: var(--card);
    box-shadow: none;
}
.fr-btn--ghost {
    background: transparent;
    border: 2px dashed var(--line);
    box-shadow: none;
    font-weight: 700;
    font-size: 0.875rem;
    min-height: 48px;
    padding: 0 18px;
}
.fr-btn--danger {
    background: var(--danger-bg);
    color: var(--danger-ink);
    border-color: var(--danger-ink);
    box-shadow: none;
}
.fr-btn--small {
    min-height: var(--size-tap);
    padding: 0 12px;
    font-size: 0.8125rem;
    box-shadow: none;
    flex-shrink: 0;
}
.fr-btn:disabled {
    background: var(--soft);
    border-style: dashed;
    box-shadow: none;
    cursor: not-allowed;
    color: var(--muted);
    transform: none;
}
.fr-iconbtn {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    border-radius: var(--fr-shape-blob);
    border: 2px solid var(--line);
    background: var(--card);
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--ink);
    text-decoration: none;
}
.fr-iconbtn--s {
    width: var(--size-tap);
    height: var(--size-tap);
}
.fr-iconbtn--m {
    width: 50px;
    height: 50px;
}
.fr-iconbtn--xs {
    width: var(--size-tap);
    height: var(--size-tap);
    border-color: transparent;
    background: transparent;
}
.fr-iconbtn--aqua {
    background: var(--aqua);
}
.link-btn {
    align-self: flex-start;
    min-height: var(--size-tap);
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 0.8125rem;
    text-decoration: underline;
    text-align: left;
}
.link-btn--inline {
    min-height: 0;
    color: var(--ink);
    font-size: inherit;
    font-weight: 800;
}

/* ---------- avatars, tags, cards ---------- */
.fr-frank {
    display: block;
    flex-shrink: 0;
}
.fr-avatar {
    position: relative;
    width: var(--size-avatar);
    height: var(--size-avatar);
    border-radius: var(--fr-shape-blob);
    background: var(--peach);
    border: 2px solid var(--line);
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 1.3125rem;
    flex-shrink: 0;
}
.fr-avatar--peach {
    background: var(--peach);
}
.fr-avatar--aqua {
    background: var(--aqua);
}
.fr-avatar--highlight {
    background: var(--highlight);
}
.fr-avatar--soft {
    background: var(--soft);
}
.fr-avatar--s {
    width: 34px;
    height: 34px;
    font-size: 0.875rem;
}
.fr-avatar--m {
    width: 40px;
    height: 40px;
    font-size: 1.0625rem;
}
.fr-avatar--hero {
    width: var(--size-avatar-hero);
    height: var(--size-avatar-hero);
    font-size: 2.125rem;
}
.fr-avatar--due::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 3px solid var(--lilac);
    border-radius: 48% 52% 45% 55% / 55% 45% 52% 48%;
    transform: rotate(-8deg);
}
.fr-avatar--add {
    background: transparent;
    border-style: dashed;
    font-family: var(--font-sans);
}
.fr-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: var(--fr-shape-pill);
    border: 1.5px solid var(--line);
    background: var(--peach);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}
.fr-tag--plan,
.fr-tag--promise,
.fr-tag--event {
    background: var(--aqua);
}
.fr-tag--nudge {
    background: var(--lilac);
}
.fr-tag--main,
.fr-tag--fact {
    background: var(--peach);
}
.fr-tag--contact,
.fr-tag--today {
    background: var(--highlight);
}
.fr-tag--quiet {
    background: var(--soft);
}
.fr-tag--check {
    background: var(--card);
    border-style: dashed;
}
.fr-tag--danger {
    background: var(--danger-bg);
    color: var(--danger-ink);
    border-color: var(--danger-ink);
}
.fr-card {
    border-radius: var(--fr-shape-box);
    border: var(--size-stroke) solid var(--line);
    background: var(--card);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.fr-card--tilt {
    transform: rotate(-0.6deg);
}
.fr-list {
    margin: 0;
    padding: 0 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9375rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
.section {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 6px;
}
.section__title {
    flex: 1;
    font-size: 1.25rem;
}
.group-label {
    margin: 6px 0 -2px 4px;
}
.who__name {
    font-weight: 800;
}
.who__rename {
    align-self: center;
    overflow-wrap: anywhere;
}

/* ---------- rows ---------- */
.fr-rows {
    width: 100%;
    border-radius: var(--fr-shape-box);
    border: 2px solid var(--line);
    background: var(--card);
    padding: 0 16px;
    display: flex;
    flex-direction: column;
}
.rows--gap {
    margin-top: 10px;
}
.fr-row {
    min-height: 56px;
    padding: 10px 0;
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    border: 0;
    border-top: 2px dashed var(--line);
    background: transparent;
    text-align: left;
    text-decoration: none;
    color: var(--ink);
    font-size: 1rem;
    flex-wrap: wrap;
}
.fr-row:first-child {
    border-top: 0;
}
.fr-row__link {
    flex: 1 1 170px;
    min-width: 0;
    display: flex;
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
    min-height: var(--size-tap);
}
.fr-row__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow-wrap: break-word;
}
.fr-row__label {
    font-weight: 800;
    font-size: 0.9375rem;
    line-height: 1.3;
}
.fr-row__value {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.4;
}
.fr-row__value b {
    color: var(--ink);
}
.fr-row--danger .fr-row__label {
    color: var(--danger-ink);
}
.fr-row svg {
    flex-shrink: 0;
}

/* ---------- decisions ---------- */
.fr-decision {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.fr-decision__item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 2px dashed var(--line);
}
.fr-decision__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
.decision-edit {
    background: none;
    border: 0;
    padding: 2px 0;
    text-align: left;
    color: inherit;
    min-height: var(--size-tap);
}
.fr-decision__text {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.fr-check {
    width: var(--size-tap);
    height: var(--size-tap);
    border-radius: var(--fr-shape-blob);
    border: var(--size-stroke) solid var(--line);
    background: var(--aqua);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    padding: 0;
}
.fr-check[aria-pressed="false"] {
    background: transparent;
    border-style: dashed;
}
.decide-head {
    padding-top: 18px;
    gap: 12px;
}
.chooser {
    padding: 14px;
    gap: 10px;
}
.choice__q {
    font-size: 0.9375rem;
    font-weight: 800;
}
.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.fr-choice {
    flex: 1 1 140px;
    min-height: 56px;
    border-radius: var(--fr-shape-box);
    border: 2px dashed var(--line);
    background: transparent;
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    text-align: left;
    min-width: 0;
}
.fr-choice[aria-pressed="true"] {
    border-style: solid;
    border-width: var(--size-stroke);
    background: var(--peach);
    box-shadow: var(--shadow-offset);
}
.choice__name {
    font-weight: 800;
    font-size: 0.875rem;
    line-height: 1.3;
}

/* ---------- fields ---------- */
.fr-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    min-width: 0;
}
.fr-field label {
    font-size: 0.8125rem;
    color: var(--muted);
}
.fr-field input,
.fr-field textarea,
.fr-field select {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    border: 2px solid var(--line);
    border-radius: var(--radius-field);
    background: var(--card);
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
}
.fr-field textarea {
    resize: vertical;
    line-height: 1.45;
}
.fr-field__hint {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.4;
}
.search {
    position: relative;
}
.search input {
    padding-left: 44px;
}
.search__icon {
    position: absolute;
    left: 12px;
    bottom: 12px;
    pointer-events: none;
}
.search-bar {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 2px solid var(--line);
    border-radius: var(--radius-field);
    background: var(--card);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9375rem;
    text-decoration: none;
}
.fr-checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.875rem;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
    position: relative;
    min-height: var(--size-tap);
}
.fr-checkbox input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.fr-checkbox__box {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border: var(--size-stroke) dashed var(--line);
    border-radius: var(--fr-shape-blob);
    background: var(--card);
    display: grid;
    place-items: center;
}
.fr-checkbox__box svg {
    visibility: hidden;
}
.fr-checkbox input:checked + .fr-checkbox__box {
    border-style: solid;
    background: var(--aqua);
}
.fr-checkbox input:checked + .fr-checkbox__box svg {
    visibility: visible;
}
.fr-checkbox input:focus-visible + .fr-checkbox__box {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}
.consent-text {
    font-size: 0.875rem;
    line-height: 1.45;
    padding: 12px 14px;
    border: 2px dashed var(--line);
    border-radius: var(--radius-field);
    background: var(--card);
}
.fr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.fr-chip {
    min-height: var(--size-tap);
    padding: 0 16px;
    border: 2px dashed var(--line);
    border-radius: var(--fr-shape-pill);
    background: transparent;
    font-weight: 800;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.fr-chip[aria-pressed="true"] {
    border-style: solid;
    background: var(--peach);
    box-shadow: var(--shadow-offset);
}

/* ---------- facts, journal ---------- */
.fr-facts {
    display: flex;
    flex-direction: column;
}
.fr-fact {
    padding: 8px 0;
    border-top: 2px dashed var(--line);
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}
.fr-fact:first-child {
    border-top: 0;
    padding-top: 0;
}
.fact-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.fr-fact__label {
    font-size: 0.75rem;
    color: var(--muted);
}
.fr-fact__value {
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.fr-fact__empty {
    font-size: 0.875rem;
    color: var(--muted);
}
.facts-card {
    padding: 14px 16px;
    gap: 6px;
}
.fr-journal {
    border-left: 3px solid var(--lilac);
    padding-left: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.note__text {
    margin: 0;
    font-size: 0.9375rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.note summary {
    min-height: var(--size-tap);
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* ---------- feedback ---------- */
.fr-notice {
    display: flex;
    gap: 12px;
    align-items: center;
    border-radius: var(--fr-shape-box);
    border: 2px solid var(--line);
    background: var(--soft);
    padding: 12px 14px;
    font-size: 0.875rem;
    line-height: 1.45;
}
.fr-notice__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    min-width: 0;
}
.fr-notice--quiet {
    background: transparent;
    border-style: dashed;
}
.fr-error {
    display: flex;
    gap: 12px;
    align-items: center;
    border-radius: var(--fr-shape-box);
    border: 2px solid var(--danger-ink);
    background: var(--danger-bg);
    color: var(--danger-ink);
    padding: 12px 14px;
    font-size: 0.875rem;
    line-height: 1.45;
}
.fr-error__action {
    display: block;
    margin-top: 8px;
}
.toast {
    position: fixed;
    z-index: 20;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(160px + env(safe-area-inset-bottom));
    width: min(100% - 24px, calc(var(--shell) - 24px));
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.fr-toast {
    pointer-events: auto;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    border-radius: var(--fr-shape-pill);
    border: 2px solid var(--line);
    background: var(--aqua);
    padding: 8px 12px 8px 8px;
    font-weight: 800;
    font-size: 0.9375rem;
    line-height: 1.3;
    box-shadow: var(--shadow-offset);
}
.fr-toast__undo {
    margin-left: 4px;
    white-space: nowrap;
    min-height: var(--size-tap);
    padding: 0 12px;
    border: 2px dashed var(--line);
    border-radius: var(--fr-shape-pill);
    background: var(--card);
    font-weight: 800;
    font-size: 0.875rem;
}
.fr-empty {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    border-radius: var(--fr-shape-box);
    border: 2px dashed var(--line);
}
.fr-skel {
    display: block;
    width: 100%;
    height: 24px;
    border: 2px dashed var(--line);
    border-radius: var(--fr-shape-pill);
    background: var(--soft);
    opacity: 0.7;
}
.fr-skel--card {
    border-radius: var(--fr-shape-box);
}
.skel-w92 {
    width: 92%;
}
.skel-w86 {
    width: 86%;
}
.skel-w78 {
    width: 78%;
}
.skel-w74 {
    width: 74%;
}
.skel-w64 {
    width: 64%;
}
.skel-w54 {
    width: 54%;
}
.skel-w40 {
    width: 40%;
}
.skel-h24 {
    height: 24px;
}
.skel-h48 {
    height: 48px;
}
.skel-h120 {
    height: 120px;
}
.skel-h250 {
    height: 250px;
}

/* ---------- sheets and overlay ---------- */
dialog {
    color: var(--ink);
}
.sheet {
    width: 100%;
    max-width: var(--shell);
    max-height: 92dvh;
    margin: auto auto 0;
    border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
    border: var(--size-stroke) solid var(--line);
    border-bottom: 0;
    background: var(--paper);
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.sheet[open] {
    display: flex;
}
.sheet::backdrop {
    background: rgba(52, 48, 45, 0.38);
}
.fr-sheet__grab {
    align-self: center;
    width: 44px;
    height: 5px;
    flex-shrink: 0;
    border-radius: 3px;
    background: var(--line);
    opacity: 0.5;
    margin: -8px 0 -4px;
}
.sheet__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.sheet p {
    line-height: 1.5;
}
.overlay {
    width: 100%;
    max-width: var(--shell);
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: var(--paper);
}
.overlay::backdrop {
    background: var(--paper);
}
.listen {
    min-height: 100%;
    padding: 24px 20px calc(22px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.listen__center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}
.listen__bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.listen__foot {
    margin-top: auto;
}
.fr-meter {
    width: 100%;
    height: 12px;
    border: 2px solid var(--line);
    border-radius: var(--fr-shape-pill);
    background: var(--card);
    overflow: hidden;
}
.fr-meter span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--aqua);
    border-right: 2px solid var(--line);
    transition: width 0.9s linear;
}
.fr-meter--end span {
    background: var(--peach);
}
.fr-bars {
    display: flex;
    gap: 7px;
    align-items: center;
    height: 70px;
}
.bar {
    width: 9px;
    height: 64px;
    border-radius: 6px 3px 7px 4px;
    border: 2px solid var(--line);
    transform: scaleY(0.4);
    transform-origin: center;
    transition: transform 0.08s linear;
}
.bar:nth-child(odd) {
    height: 48px;
}
.bar--0 {
    background: var(--lilac);
}
.bar--1 {
    background: var(--peach);
}
.bar--2 {
    background: var(--aqua);
}
.bar--3 {
    background: var(--highlight);
}
.busy {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}
.busy__title {
    font-size: 1.875rem;
}

/* ---------- full screens ---------- */
.full {
    min-height: calc(100dvh - 64px);
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
}
.full__title {
    font-size: 1.875rem;
}
.full__text {
    font-size: 1rem;
    line-height: 1.5;
}
.full__actions {
    width: 100%;
    margin-top: 10px;
}
.login {
    min-height: 100dvh;
    padding: 26px 24px calc(22px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.login__hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}
.login__hero .fr-title {
    margin-top: 10px;
}
.login__hero p:last-child {
    font-size: 0.9375rem;
}
.login__wordmark {
    font-size: 1.875rem;
}
.first-time {
    min-height: 100dvh;
    padding-top: 40px;
}
.step {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--line);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.9375rem;
    flex-shrink: 0;
}
.person-head {
    gap: 14px;
}
.saved__frank {
    display: flex;
    justify-content: center;
    padding-top: 48px;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.tags .fr-tag {
    white-space: normal;
}
.row__tag {
    flex-shrink: 0;
}

/* ---------- circle map (I4/I5) ---------- */
.orbit {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    overflow: visible;
}
.orbit__band {
    fill: none;
    stroke: transparent;
    pointer-events: stroke;
    cursor: pointer;
}
.orbit__ring {
    pointer-events: none;
    fill: none;
    stroke: var(--line);
    stroke-width: 2;
    stroke-dasharray: 6 6;
    opacity: 0.45;
}
.orbit__me {
    fill: var(--aqua);
    stroke: var(--line);
    stroke-width: 2;
}
.orbit__me-text {
    font-family: var(--font-display);
    font-size: 16px;
    fill: var(--ink);
}
.orbit__hit {
    fill: transparent;
}
.orbit__dot {
    stroke: var(--line);
    stroke-width: 1.5;
    transition: opacity 0.2s;
}
.orbit__dot--peach {
    fill: var(--peach);
}
.orbit__dot--aqua {
    fill: var(--aqua);
}
.orbit__dot--highlight {
    fill: var(--highlight);
}
.orbit__dot--soft {
    fill: var(--soft);
}
.orbit__dot--due {
    fill: var(--lilac);
    stroke-width: 3;
}
.orbit__dot--dim {
    opacity: 0.25;
}
.orbit__person:focus {
    outline: none;
}
.orbit__person:focus-visible .orbit__hit {
    stroke: var(--ink);
    stroke-width: 3;
}

@media (prefers-reduced-motion: reduce) {
    .fr-wobble {
        animation: none;
    }
    .orbit__dot {
        transition: none;
    }
    .bar,
    .fr-meter span {
        transition: none;
    }
    .fr-btn:active {
        transform: none;
    }
}
.person-link {
    color: inherit;
    text-decoration: none;
    min-height: var(--size-tap);
}
.fr-dock,
.bottom {
    pointer-events: none;
}
.fr-dock > *,
.bottom > * {
    pointer-events: auto;
}
.fr-btn.danger-text {
    color: var(--danger-ink);
}
.decide-head .fr-note {
    margin-bottom: 4px;
}
.fr-switch {
    width: 56px;
    height: 34px;
    flex-shrink: 0;
    padding: 0;
    border: 2px solid var(--line);
    border-radius: var(--fr-shape-pill);
    background: var(--card);
    position: relative;
    cursor: pointer;
}
.fr-switch::before {
    content: "";
    position: absolute;
    inset: -7px -2px;
}
.fr-switch::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: var(--fr-shape-blob);
    border: 2px solid var(--line);
    background: var(--soft);
}
.fr-switch[aria-checked="true"] {
    background: var(--aqua);
}
.fr-switch[aria-checked="true"]::after {
    left: 26px;
    background: var(--card);
}
