.reminderBody {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 0%, rgba(9, 102, 210, 0.08), transparent 34rem),
        linear-gradient(180deg, #f7fbff 0%, #eef8f4 48%, #eef6f8 100%);
}

.reminderShell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 40px;
}

.reminderHeader,
.reminderPanel,
.reminderWorkspace,
.reminderPrivacy {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.reminderHeader {
    overflow: hidden;
    border-color: #b7d8f1;
    box-shadow: var(--shadow-soft);
}

.reminderNav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #d9e7f3;
    padding: 16px 20px;
}

.reminderBrand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.reminderBrand img {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 12px;
    box-shadow: 0 9px 20px rgba(20, 62, 105, 0.16);
}

.reminderBrand > span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.reminderBrand strong {
    color: var(--text);
    font-size: 16px;
    line-height: 1.25;
}

.reminderHero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: clamp(28px, 5vw, 64px);
    padding: clamp(28px, 5vw, 64px);
}

.reminderHeroCopy {
    display: grid;
    gap: 12px;
}

.reminderHeroCopy > * {
    margin: 0;
}

.reminderHero h1 {
    max-width: 640px;
    color: var(--text);
    font-size: clamp(40px, 5.5vw, 66px);
    line-height: 1.01;
    letter-spacing: -0.035em;
}

.reminderLead {
    max-width: 650px;
    color: #30485f;
    font-size: clamp(18px, 2vw, 21px);
    line-height: 1.5;
}

.reminderBenefits {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.reminderBenefits li {
    display: grid;
    gap: 3px;
    border: 1px solid #cfe1ef;
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    background: #f7fbff;
    padding: 13px 15px;
}

.reminderBenefits li:nth-child(2) {
    border-left-color: var(--fresh);
}

.reminderBenefits li:nth-child(3) {
    border-left-color: #8b68c8;
}

.reminderBenefits strong {
    color: var(--text);
    font-size: 15px;
}

.reminderBenefits span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
}

.reminderPageStatus {
    min-height: 24px;
    margin: 12px 4px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.reminderPageStatus:empty {
    min-height: 0;
    margin: 0;
}

.reminderPageStatus[data-tone="error"] {
    color: var(--bad);
}

.reminderPanel,
.reminderWorkspace {
    margin-top: 12px;
    box-shadow: 0 12px 30px rgba(20, 62, 105, 0.07);
}

.reminderSignIn {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
    gap: clamp(24px, 5vw, 64px);
    padding: clamp(24px, 4vw, 44px);
}

.reminderPanelIntro {
    align-self: center;
}

.reminderPanelIntro h2,
.reminderWorkspaceHeader h2,
.reminderPrivacy h2 {
    margin: 4px 0 10px;
    color: var(--text);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.15;
}

.reminderPanelIntro p:last-child {
    max-width: 600px;
    margin-top: 0;
    font-size: 16px;
    line-height: 1.6;
}

.reminderAuthCard {
    min-width: 0;
    border: 1px solid #bcd5e8;
    border-radius: 12px;
    background: #f8fbfe;
    padding: 20px;
}

.reminderAuthCard form,
.reminderEditor form {
    display: grid;
    gap: 11px;
}

.reminderAuthCard label,
.reminderFormGrid label {
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.reminderAuthCard input,
.reminderFormGrid input,
.reminderFormGrid select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: var(--panel);
    color: var(--text);
    padding: 10px 12px;
}

.reminderAuthCard input::placeholder,
.reminderFormGrid input::placeholder {
    color: #738497;
}

.reminderBotTrap {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.reminderPrimaryButton {
    min-height: 46px;
    border-radius: 9px;
    padding: 0 18px;
    font-weight: 850;
}

.reminderAuthCard .reminderPrimaryButton {
    width: 100%;
    margin-top: 3px;
}

.reminderCodeForm {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.reminderCodeHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.reminderCodeHeader div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.reminderCodeHeader strong {
    color: var(--text);
}

.reminderCodeHeader span {
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.reminderCodeHeader .textButton,
.reminderResendButton {
    min-height: 36px;
    color: var(--accent);
    font-weight: 800;
}

.reminderStatus {
    min-height: 20px;
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.reminderStatus:empty {
    min-height: 0;
    margin: 0;
}

.reminderStatus[data-tone="success"] {
    color: var(--good);
}

.reminderStatus[data-tone="error"] {
    color: var(--bad);
    font-weight: 700;
}

.reminderWorkspace {
    overflow: hidden;
}

.reminderWorkspaceHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, #ffffff, #f1f8fd);
    padding: clamp(20px, 3vw, 30px);
}

.reminderWorkspaceHeader h2 {
    margin-bottom: 6px;
}

.reminderProfileEmail,
.reminderChannelSummary {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

.reminderProfileEmail {
    color: var(--text);
    font-weight: 800;
}

.reminderChannelSummary {
    color: var(--muted);
    font-size: 14px;
}

.reminderHeaderActions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.reminderHeaderActions button {
    min-height: 44px;
}

#profileStatus {
    margin: 14px clamp(20px, 3vw, 30px) 0;
}

.reminderEditor {
    margin: 18px clamp(20px, 3vw, 30px);
    border: 1px solid #9dc5e7;
    border-radius: 12px;
    background: #f7fbff;
    padding: clamp(18px, 3vw, 26px);
    scroll-margin-top: 18px;
}

.reminderEditorHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.reminderEditorHeader h3 {
    margin: 3px 0 0;
    color: var(--text);
    font-size: 23px;
}

.reminderIconButton {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 50%;
    padding: 0;
    font-size: 25px;
    line-height: 1;
}

.reminderFormGrid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.15fr);
    gap: 14px;
}

.reminderFormGrid label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.reminderFormGrid label small {
    color: var(--muted);
    font-weight: 500;
}

.reminderSchedulePreview {
    border-left: 3px solid var(--fresh);
    background: #effaf7;
    color: #315b54;
    padding: 11px 13px;
    font-size: 14px;
    line-height: 1.5;
}

.reminderSchedulePreview strong {
    color: var(--text);
}

.reminderSchedulePreview ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 5px 0 0;
    padding-left: 20px;
}

.reminderFormActions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.reminderFormActions button {
    min-height: 44px;
}

.reminderLimitNotice {
    margin: 18px clamp(20px, 3vw, 30px) 0;
    border: 1px solid #e4c68f;
    border-radius: 9px;
    background: #fff9ed;
    color: #765015;
    padding: 11px 13px;
    font-size: 14px;
    font-weight: 700;
}

.reminderDocumentList {
    display: grid;
    gap: 12px;
    padding: 18px clamp(20px, 3vw, 30px) 26px;
}

.reminderDocumentCard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    padding: 18px;
}

.reminderDocumentCard:focus {
    outline: 3px solid color-mix(in srgb, var(--accent) 34%, transparent);
    outline-offset: 3px;
}

.reminderDocumentMain {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.reminderDocumentHeading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.reminderDocumentHeading h3 {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.reminderDocumentHeading span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.reminderDocumentFacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.reminderDocumentFacts div {
    display: grid;
    gap: 2px;
    min-width: 150px;
    border-radius: 8px;
    background: #f2f7fb;
    padding: 9px 11px;
}

.reminderDocumentFacts dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.reminderDocumentFacts dd {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.reminderSnoozedNotice {
    width: fit-content;
    margin: 0;
    border-radius: 999px;
    background: #fff4dd;
    color: #80520b;
    padding: 5px 9px;
    font-size: 13px;
    font-weight: 800;
}

.reminderDocumentActions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 380px);
}

.reminderDocumentActions button {
    min-width: 0;
    min-height: 42px;
    line-height: 1.25;
    white-space: normal;
}

.reminderDocumentActions button:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.reminderDocumentActions .reminderDeleteDocument {
    color: var(--bad);
}

.reminderEmptyState {
    display: grid;
    justify-items: center;
    max-width: 560px;
    margin: 0 auto;
    padding: clamp(30px, 7vw, 64px) 24px;
    text-align: center;
}

.reminderEmptyIcon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: var(--fresh-soft);
    color: var(--good);
    font-size: 28px;
    font-weight: 900;
}

.reminderEmptyState h3 {
    margin: 16px 0 4px;
    color: var(--text);
    font-size: 22px;
}

.reminderEmptyState p {
    max-width: 490px;
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.55;
}

.reminderNextStep {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 clamp(20px, 3vw, 30px) 22px;
    border: 1px solid #bcd7eb;
    border-radius: 12px;
    background: #f3f9fd;
    padding: 18px;
}

.reminderNextStep h3 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 18px;
}

.reminderNextStep p {
    margin: 0;
}

.reminderNextStep .primaryLink {
    flex: 0 0 auto;
    box-shadow: none;
}

.reminderProfileOptions {
    margin: 0 clamp(20px, 3vw, 30px) 26px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.reminderProfileOptions summary {
    width: fit-content;
    color: var(--muted);
    font-weight: 800;
    cursor: pointer;
}

.reminderProfileOptions > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 12px;
    border: 1px solid #e6c6c2;
    border-radius: 10px;
    background: #fff8f7;
    padding: 14px;
}

.reminderProfileOptions p {
    margin: 0;
}

.reminderDangerButton {
    min-height: 42px;
    border-color: #d3938c;
    background: #fff;
    color: var(--bad);
    font-weight: 800;
}

.reminderDangerButton:hover {
    border-color: var(--bad);
    background: #fff1ef;
}

.reminderPrivacy {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    margin-top: 12px;
    padding: clamp(20px, 4vw, 34px);
}

.reminderPrivacy h2 {
    margin-bottom: 0;
    font-size: clamp(22px, 2.5vw, 29px);
}

.reminderPrivacy > p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.reminderFooter {
    margin-top: 18px;
    border-top: 1px solid var(--line);
    padding: 18px 2px 0;
}

.reminderFooter p {
    font-size: 13px;
}

.reminderFooter nav {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 18px;
    margin-top: 12px;
}

.reminderFooter a {
    color: var(--accent);
    font-size: 14px;
    font-weight: 750;
}

.reminderDialog {
    width: min(500px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--panel);
    color: var(--text);
    box-shadow: 0 24px 70px rgba(15, 34, 54, 0.25);
    padding: 0;
}

.reminderDialog::backdrop {
    background: rgba(10, 24, 40, 0.58);
}

.reminderDialog form {
    padding: 24px;
}

.reminderDialog h2 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 24px;
}

.reminderDialog p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
}

.reminderDialogActions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 22px;
}

.reminderDialogActions button {
    min-height: 44px;
}

.reminderShell button:disabled,
.reminderShell input:disabled,
.reminderShell select:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

:root[data-theme="dark"] .reminderBody {
    background:
        radial-gradient(circle at 12% 0%, rgba(48, 134, 229, 0.13), transparent 34rem),
        linear-gradient(180deg, #0e1823 0%, #101d29 100%);
}

:root[data-theme="dark"] .reminderHeader,
:root[data-theme="dark"] .reminderPanel,
:root[data-theme="dark"] .reminderWorkspace,
:root[data-theme="dark"] .reminderPrivacy,
:root[data-theme="dark"] .reminderDocumentCard,
:root[data-theme="dark"] .reminderDialog {
    border-color: #31475c;
    background: #142433;
}

:root[data-theme="dark"] .reminderNav,
:root[data-theme="dark"] .reminderWorkspaceHeader {
    border-color: #31475c;
    background: #142433;
}

:root[data-theme="dark"] .reminderLead {
    color: #c0d0df;
}

:root[data-theme="dark"] .reminderBenefits li,
:root[data-theme="dark"] .reminderAuthCard,
:root[data-theme="dark"] .reminderEditor,
:root[data-theme="dark"] .reminderNextStep {
    border-color: #35526b;
    background: #192d3f;
}

:root[data-theme="dark"] .reminderAuthCard input,
:root[data-theme="dark"] .reminderFormGrid input,
:root[data-theme="dark"] .reminderFormGrid select {
    border-color: #4d667c;
    background: #0f1d29;
    color: #eaf2f8;
}

:root[data-theme="dark"] .reminderSchedulePreview {
    background: #15342f;
    color: #b8dbd3;
}

:root[data-theme="dark"] .reminderDocumentFacts div {
    background: #1a3042;
}

:root[data-theme="dark"] .reminderLimitNotice,
:root[data-theme="dark"] .reminderSnoozedNotice {
    border-color: #735d32;
    background: #382d19;
    color: #f0ce8a;
}

:root[data-theme="dark"] .reminderProfileOptions > div {
    border-color: #6d3e3b;
    background: #311d1d;
}

:root[data-theme="dark"] .reminderDangerButton {
    border-color: #87524d;
    background: #24191a;
    color: #ffb7af;
}

@media (max-width: 840px) {
    .reminderHero,
    .reminderSignIn,
    .reminderPrivacy {
        grid-template-columns: 1fr;
    }

    .reminderHero {
        gap: 24px;
    }

    .reminderBenefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .reminderBenefits li {
        align-content: start;
        border-top: 4px solid var(--accent);
        border-left-width: 1px;
    }

    .reminderBenefits li:nth-child(2) {
        border-top-color: var(--fresh);
        border-left-color: #cfe1ef;
    }

    .reminderBenefits li:nth-child(3) {
        border-top-color: #8b68c8;
        border-left-color: #cfe1ef;
    }

    .reminderDocumentCard {
        grid-template-columns: 1fr;
    }

    .reminderDocumentActions {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .reminderShell {
        width: min(100% - 20px, 1120px);
        padding-top: max(10px, env(safe-area-inset-top));
        padding-bottom: max(40px, env(safe-area-inset-bottom));
    }

    .reminderNav {
        padding: 12px;
    }

    .reminderBrand img {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .reminderBrand strong {
        font-size: 14px;
    }

    .reminderHero {
        padding: 24px 18px;
    }

    .reminderHero h1 {
        font-size: clamp(34px, 11vw, 46px);
    }

    .reminderBenefits {
        grid-template-columns: 1fr;
    }

    .reminderBenefits li {
        border-top-width: 1px;
        border-left-width: 4px;
    }

    .reminderBenefits li:nth-child(2) {
        border-top-color: #cfe1ef;
        border-left-color: var(--fresh);
    }

    .reminderBenefits li:nth-child(3) {
        border-top-color: #cfe1ef;
        border-left-color: #8b68c8;
    }

    .reminderSignIn {
        padding: 20px 14px;
    }

    .reminderAuthCard {
        padding: 16px;
    }

    .reminderWorkspaceHeader {
        align-items: flex-start;
        flex-direction: column;
    }

    .reminderHeaderActions {
        width: 100%;
        justify-content: stretch;
    }

    .reminderHeaderActions button {
        flex: 1 1 150px;
    }

    .reminderFormGrid {
        grid-template-columns: 1fr;
    }

    .reminderEditor,
    .reminderDocumentList,
    .reminderNextStep,
    .reminderProfileOptions {
        margin-right: 14px;
        margin-left: 14px;
    }

    .reminderDocumentList {
        padding-right: 0;
        padding-left: 0;
    }

    .reminderDocumentCard {
        padding: 14px;
    }

    .reminderDocumentFacts {
        display: grid;
        grid-template-columns: 1fr;
    }

    .reminderDocumentFacts div {
        min-width: 0;
    }

    .reminderDocumentActions {
        grid-template-columns: 1fr;
    }

    .reminderNextStep,
    .reminderProfileOptions > div {
        align-items: stretch;
        flex-direction: column;
    }

    .reminderNextStep .primaryLink {
        width: 100%;
        text-align: center;
    }

    .reminderDialogActions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reminderShell *,
    .reminderShell *::before,
    .reminderShell *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
