:root {
    color-scheme: light;
    /* Telegram light: blue actions, green chat wallpaper and outgoing bubbles. */
    --ink: #222222;
    --muted: #707579;
    --paper: #88b884;
    --card: #ffffff;
    --sand: #efffde;
    --line: #c5ddb4;
    --accent: #3390ec;
    --accent-deep: #2481cc;
    --leaf: #5db050;
    --danger: #e53935;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(90% 70% at 8% 0%, #dbddbb 0%, transparent 58%),
        radial-gradient(80% 65% at 100% 8%, #d5d88d 0%, transparent 52%),
        radial-gradient(85% 75% at 92% 100%, #6ba587 0%, transparent 58%),
        radial-gradient(70% 60% at 0% 100%, #88b884 0%, transparent 50%);
    background-attachment: fixed;
}

main {
    width: min(30rem, calc(100% - 1.5rem));
    margin: 6vh auto 2.5rem;
    padding: 1.35rem 1.35rem 1.5rem;
    background: var(--card);
    border-radius: 28px;
    box-shadow: 0 1px 2px rgba(40, 72, 46, 0.08), 0 18px 40px rgba(40, 72, 46, 0.20);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.85rem;
}

.brand {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
}

.account {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 70%;
    margin: 0 0 0 auto;
    min-width: 0;
    color: var(--ink);
}

.account form {
    display: flex;
    margin: 0;
}

.account button.quiet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    padding: 0;
    border-radius: 8px;
}

.account button.quiet svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account button.quiet:hover { background: var(--sand); }

.account-name {
    overflow: hidden;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--avatar);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
}

h1 {
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 1rem;
}

p { line-height: 1.45; }

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

.back { margin: 0 0 0.35rem; font-size: 0.92rem; }

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

label, .error { display: block; }

.error { color: var(--danger); margin: 0 0 1rem; }

form { display: grid; gap: 0.75rem; margin-top: 1rem; }

input, textarea, select {
    font: inherit;
    width: 100%;
    padding: 0.85rem 0.95rem;
    border: 0;
    border-radius: 14px;
    background: var(--sand);
    color: var(--ink);
}

input::placeholder, textarea::placeholder { color: #7d8f78; }

input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

button, .button {
    font: inherit;
    display: inline-block;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 0;
    border-radius: 14px;
    background: var(--accent);
    color: white;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

button:hover, .button:hover { background: var(--accent-deep); }

.hint { color: var(--muted); font-size: 0.82rem; margin: 0; }

.hint.aside {
    color: #5f7a52;
    font-style: italic;
}

.quiet-form { margin-top: 0.35rem; }

button.quiet, .back a {
    width: auto;
    padding: 0;
    background: none;
    color: var(--muted);
    text-decoration: none;
}

button.quiet:hover, .back a:hover {
    background: none;
    color: var(--accent);
}

.back a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.back a::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-left: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg);
}

.compose { gap: 1.15rem; margin-top: 0; }

.nameplate { display: grid; gap: 0.35rem; margin-top: 1.15rem; }

.chip {
    display: inline-block;
    width: fit-content;
    justify-self: start;
    margin: 0;
    padding: 0.05rem 0.42rem;
    border-radius: 999px;
    background: #e7f3fd;
    color: var(--accent-deep);
    font-size: 0.62rem;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.chip.status {
    background: var(--sand);
    color: var(--muted);
}

.chip.draft {
    background: #ffcc4d;
    color: #8a5600;
}

.chip.deleted {
    background: #4b5156;
    color: #f2f4f5;
}

.title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.title-line .chip { flex: none; }

.title-line h1 { margin: 0; min-width: 0; }

.rename { min-width: 0; max-width: 100%; }

.rename[open] { flex: 1; }

.rename summary {
    display: block;
    cursor: pointer;
    list-style: none;
}

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

.rename summary::marker { content: ""; }

.rename summary h1 { border-bottom: 1px solid transparent; }

.rename summary:hover h1 { border-bottom-color: var(--line); }

.rename[open] > summary { display: none; }

.rename form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.rename .title-input {
    flex: 1;
    width: auto;
    min-width: 0;
    font-size: 2rem;
    line-height: 1.05;
    padding: 0 0 0.12rem;
}

.rename .error { flex: 1 0 100%; margin: 0; }

.rename button {
    width: auto;
    flex: none;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
}

.title-input {
    font-family: Georgia, "Palatino Linotype", serif;
    font-size: 1.65rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    padding: 0.15rem 0 0.35rem;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid var(--line);
}

.title-input::placeholder { color: #7d8f78; }

.group {
    border: 0;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.group legend, .kicker {
    padding: 0;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.group legend { margin-bottom: 0.35rem; }

.kicker { margin: 0.35rem 0 0; }

.audience { margin: 0; }

.audience .kicker { margin: 0 0 0.15rem; }

.audience-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.3;
}

.audience-line > span:first-child {
    color: var(--ink);
    font-weight: 600;
}

.audience-line > span + span::before {
    content: "·";
    margin: 0 0.35rem;
    color: #c5c9cc;
}

label.kicker { margin: 1.15rem 0 0.35rem; }

.share {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0.12rem 0.2rem 0.12rem 0.7rem;
    border-radius: 10px;
    background: #f4f6f4;
}

.share-link {
    flex: 1;
    width: auto;
    min-width: 0;
    padding: 0.28rem 0;
    border-radius: 0;
    background: transparent;
    color: #9aa0a6;
    font-size: 0.78rem;
}

.share .copy,
.share .copy:hover {
    display: inline-flex;
    width: auto;
    flex: none;
    margin: 0;
    padding: 0.32rem;
    border-radius: 8px;
    background: transparent;
    color: #9aa0a6;
}

.share .copy:hover { color: var(--accent); }

.share .copy svg { width: 1.05rem; height: 1.05rem; display: block; }

.share .copy .copied-mark { display: none; }

.share .copy.copied { color: var(--leaf); }

.share .copy.copied .copy-mark { display: none; }

.share .copy.copied .copied-mark { display: block; }

.retire { margin-top: 1.6rem; }

.retire button,
.retire button:hover {
    background: transparent;
    color: var(--danger);
    border: 1px solid #f3c7c5;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
}

.day {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    border-radius: 999px;
    background: var(--sand);
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}

.day input, .seg input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.day:has(input:checked) {
    background: var(--accent);
    color: white;
}

.day:focus-within, .seg label:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: 999px;
    background: var(--sand);
}

.seg label {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 2.4rem;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    text-align: center;
    font-size: 0.92rem;
    cursor: pointer;
}

.seg label:has(input:checked) {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.date-field { position: relative; cursor: pointer; }

.date-shown {
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: var(--sand);
}

.date-shown.is-empty { color: #7d8f78; }

.date-native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.date-native::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

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

.compose.is-range .time-row { grid-template-columns: 1fr 1fr; gap: 0.45rem; }

.compose:not(.is-range) .time-end { display: none; }

.zone { display: grid; gap: 0.35rem; }

.slot-bar {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.15rem 0 0.7rem;
}

.slot-bar form { margin: 0; flex: none; width: auto; }

.slot-bar .slot-nudge,
.slot-bar .slot-nudge:hover {
    width: 5.8rem;
    min-width: 0;
    padding: 0.4rem 0.45rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: normal;
}

.slot-bar .slot-nudge:hover {
    background: var(--sand);
    color: var(--ink);
}

.slot-bar .slot-open,
.slot-bar .slot-open:hover {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    flex: 1;
    width: auto;
    min-width: 0;
    padding: 0.35rem 0.7rem;
    border-radius: 10px;
    background: var(--sand);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 600;
}

.slot-clock {
    font-weight: 400;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.slots {
    width: min(22rem, calc(100% - 1.5rem));
    max-height: min(32rem, calc(100% - 2rem));
    margin: auto;
    padding: 1rem 1rem 0.9rem;
    border: 0;
    border-radius: 20px;
    color: var(--ink);
    box-shadow: 0 18px 40px rgba(40, 72, 46, 0.28);
}

.slots::backdrop { background: rgba(34, 52, 28, 0.35); }

.slots form { display: grid; gap: 0.45rem; margin: 0; }

.slots-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.slots h2 { margin: 0; font-size: 1rem; }

.slots-head .quiet,
.slots-head .quiet:hover {
    width: 1.7rem;
    height: 1.7rem;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.slot-list {
    list-style: none;
    max-height: 16rem;
    margin: 0.15rem 0 0.35rem;
    padding: 0;
    overflow: auto;
    display: grid;
    gap: 0.35rem;
}

.slot-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.85rem;
}

.clock {
    display: flex;
    gap: 0.3rem;
    min-width: 0;
}

.clock label { width: auto; margin: 0; }

.slot-line .clock select {
    width: 4.2rem;
    flex: none;
    padding: 0.35rem 0.3rem;
    font-variant-numeric: tabular-nums;
}

.slots form > .clock.is-labelled {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.slots form > .clock.is-labelled .kicker { margin: 0; }

.chain { list-style: none; padding: 0; display: grid; gap: 0.55rem; }

.chain.calendars li {
    display: block;
    padding: 0;
}

.chain.calendars a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    width: 100%;
    min-width: 0;
    padding: 0.85rem 1rem;
    border-radius: inherit;
    color: inherit;
    font-weight: 400;
}

.chain.calendars li.is-active { background: #d8f4b2; }

.chain.calendars a:hover { background: #e3f6d2; }

.chain.calendars li.is-active a:hover { background: #c8eda0; }

.chain.calendars li.deleted { background: #e6e8eb; }

.chain.calendars li.deleted a:hover { background: #d9dce0; }

.chain.calendars li.is-completed { background: #e7f3fd; }

.chain.calendars li.is-completed a:hover { background: #d4e8f8; }

.deleted-calendars { margin-top: 1.6rem; }

.deleted-calendars .kicker { margin: 0 0 0.55rem; }

.chain.calendars .calendar-title {
    font-weight: 600;
    color: var(--accent);
}

.chain.calendars .meta { flex: 1 0 100%; }

.chain.calendars .meta strong { font-weight: 700; color: var(--muted); }

.chain li {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: var(--sand);
}

.chain li.with-nudges {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.45rem;
    padding: 0.5rem 0.35rem 0.5rem 1rem;
}

.chain li:has(details:not([open])) { cursor: pointer; }

.post-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
}

.post-copy details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100%;
}

.post-copy summary {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    cursor: pointer;
    list-style: none;
}

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

.post-copy summary::marker { content: ""; }

.post-copy .when {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.4rem;
    font-weight: 600;
    color: var(--accent);
}

.post-copy .weekday,
.post-copy .post-state {
    font-weight: 400;
    font-size: 0.82em;
    color: var(--muted);
}

.post-copy .when-time,
.post-copy .when-time:hover {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.post-copy a.post-state {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
    cursor: pointer;
}

.post-copy a.post-state:hover { color: var(--accent-deep); }

#pay-email { scroll-margin: 5rem; }

.chain li.unconfigured .when { color: inherit; }

.post-copy .excerpt { overflow-wrap: anywhere; }

details[open] .excerpt { display: none; }

.editor {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.75rem;
    color: var(--ink);
}

.editor form { display: grid; gap: 0.65rem; margin: 0; }

.editor label.kicker { margin: 0.15rem 0 0; }

.editor label.kicker[hidden] { display: none !important; }

.editor .error { margin: 0; }

.chat {
    background: var(--paper);
    border-radius: 14px;
    padding: 0.65rem 0.6rem;
}

.bubble {
    width: fit-content;
    max-width: 92%;
    margin: 0;
    padding: 0.38rem 0.55rem 0.28rem 0.65rem;
    border-radius: 15px 15px 15px 4px;
    background: #fff;
    color: #222;
    box-shadow: 0 1px 1px rgba(20, 40, 24, 0.12);
}

.bubble.has-media {
    width: min(100%, 18rem);
    max-width: 100%;
    padding: 0.22rem 0.22rem 0.28rem;
}

.bubble-shot {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 16rem;
    margin: 0 auto 0.45rem;
    object-fit: contain;
    border-radius: 12px 12px 6px 6px;
    background: transparent;
}

.bubble-shot[hidden] { display: none; }

.card-error {
    margin: 0;
    color: var(--danger);
    font-size: 0.86rem;
}

.card-error[hidden] { display: none; }

.theme-menu { position: relative; }

.theme-menu.is-open { z-index: 6; }

.theme-current,
.theme-current:hover {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    margin: 0;
    padding: 0.45rem 0.75rem;
    border: 0;
    border-radius: 14px;
    background: var(--sand);
    color: var(--ink);
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.theme-current::after {
    content: "";
    flex: none;
    width: 0.42rem;
    height: 0.42rem;
    margin-left: auto;
    border-right: 1.6px solid var(--muted);
    border-bottom: 1.6px solid var(--muted);
    transform: rotate(45deg) translateY(-0.12rem);
}

.theme-menu.is-open .theme-current {
    box-shadow: inset 0 0 0 1.5px var(--accent);
}

.theme-menu.is-open .theme-current::after {
    transform: rotate(225deg) translate(-0.12rem, -0.05rem);
}

.theme-current:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.theme-current:has([data-theme-chip][hidden]) [data-theme-name] {
    color: var(--muted);
    font-weight: 500;
}

.theme-chip {
    flex: none;
    width: 2.6rem;
    aspect-ratio: 4 / 3;
    border-radius: 7px;
    box-shadow: inset 0 0 0 1px rgba(34, 34, 34, 0.12);
}

.theme-chip[hidden] { display: none; }

.theme-list {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    top: calc(100% + 0.3rem);
    display: grid;
    gap: 0.2rem;
    max-height: 16rem;
    margin: 0;
    padding: 0.35rem;
    overflow: auto;
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 24px rgba(34, 34, 34, 0.14);
}

.theme-list[hidden] { display: none; }

.theme-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    padding: 0.35rem 0.5rem;
    border-radius: 12px;
    cursor: pointer;
}

.theme-option input {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    opacity: 0;
    cursor: pointer;
}

.theme-option:hover { background: var(--sand); }

.theme-option:has(input:checked) {
    background: #f3f9ff;
    box-shadow: inset 0 0 0 1.5px var(--accent);
}

.theme-option:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.bubble.has-media .bubble-heading,
.bubble.has-media .bubble-text {
    padding: 0 0.4rem;
}

.bubble.has-media time { padding-right: 0.35rem; }

.bubble-heading {
    display: block;
    margin: 0 0 1.35em;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.bubble-text {
    margin: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: normal;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.bubble-media {
    display: block;
    width: min(100%, 16rem);
    border-radius: 12px;
}

.types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.types label {
    position: relative;
    display: grid;
    place-items: center;
    margin: 0;
    min-height: 2.6rem;
    padding: 0.4rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}

.types label:hover {
    border-color: var(--accent);
}

.types input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
}

.types label:has(input:checked),
.types label:has(input:checked):hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.types label:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.picker { display: grid; gap: 0.35rem; }

.picker[hidden] { display: none; }

.drop {
    position: relative;
    border-radius: 18px;
    background: #fff;
}

.drop.is-over {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.drop:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.drop .sr:focus { outline: none; }

.drop-face {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.6rem 0.85rem;
    border: 1.5px dashed #9ccc8e;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    text-align: left;
}

.drop-face:hover,
.drop.is-over .drop-face {
    border-color: var(--accent);
    background: #f3f9ff;
}

.drop-face[hidden] { display: none; }

.drop-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 999px;
    background: #e7f3fd;
    color: var(--accent);
}

.drop-icon { width: 1.3rem; height: 1.3rem; }

.drop-icon[hidden] { display: none; }

.drop-copy {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
}

.drop-title {
    font-weight: 650;
    line-height: 1.25;
}

.drop-hint {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.tariffs { display: grid; gap: 0.35rem; }

.tariff-menu { position: relative; }

.tariffs .tariff-current,
.tariffs .tariff-current:hover {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    margin: 0;
    padding: 0.72rem 0.9rem;
    border: 0;
    border-radius: 14px;
    background: var(--sand);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}

.tariffs .tariff-current::after {
    content: "";
    flex: none;
    width: 0.42rem;
    height: 0.42rem;
    margin-left: 0.2rem;
    border-right: 1.6px solid var(--muted);
    border-bottom: 1.6px solid var(--muted);
    transform: rotate(45deg) translateY(-0.12rem);
}

.tariff-menu.is-open .tariff-current {
    box-shadow: inset 0 0 0 1.5px var(--accent);
}

.tariff-menu.is-open .tariff-current::after {
    transform: rotate(225deg) translate(-0.12rem, -0.05rem);
}

.tariffs .tariff-current:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.tariff-list {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    top: calc(100% + 0.3rem);
    display: grid;
    gap: 0.3rem;
    margin: 0;
    padding: 0.35rem;
    border-radius: 16px;
    background: white;
    box-shadow: 0 8px 24px rgba(34, 34, 34, 0.14);
}

.tariff-list[hidden] { display: none; }

.tariffs label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    padding: 0.72rem 0.9rem;
    border-radius: 14px;
    background: var(--sand);
    cursor: pointer;
}

.tariffs input {
    position: absolute;
    width: 1.15rem;
    height: 1.15rem;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    opacity: 0;
    cursor: pointer;
}

.tariffs label::before {
    content: "";
    flex: none;
    width: 1.05rem;
    height: 1.05rem;
    border: 1.6px solid #b7c9ae;
    border-radius: 50%;
    background: white;
    box-sizing: border-box;
}

.tariffs label:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--accent); }

.tariffs label:has(input:checked)::before {
    border-color: var(--accent);
    background: radial-gradient(circle, var(--accent) 0 0.28rem, white 0.32rem);
}

.tariffs label:focus-within {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.tariff-copy {
    display: grid;
    flex: 1;
    gap: 0.08rem;
    min-width: 0;
}

.tariff-blurb {
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
}

.tariffs .price {
    margin-left: auto;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.day-picks[hidden] { display: none; }

.count-field { display: grid; gap: 0.35rem; }

.count-field[hidden] { display: none; }

.count-field .kicker { margin: 0; }

.stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
}

.stepper .step,
.stepper .step:hover {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    background: var(--sand);
    color: var(--ink);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
}

.stepper .step:hover { background: #e2f6c8; }

.stepper .step:disabled,
.stepper .step:disabled:hover {
    color: #b7c4b0;
    background: var(--sand);
    cursor: default;
}

.stepper input {
    width: 50%;
    flex: 0 1 50%;
    height: 3rem;
    padding: 0 0.5rem;
    text-align: center;
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
    appearance: textfield;
}

.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pay, .tariff-change { display: grid; gap: 0.5rem; margin: 0.8rem 0; }
.readers { list-style: none; margin: 0.35rem 0 0; padding: 0; }
.readers li { display: flex; gap: 0.55rem; }
.memo { display: grid; gap: 0.45rem; margin-top: 0.4rem; }
.memo textarea { min-height: 5rem; }
.admin-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.admin-list li { margin: 0 0 0.7rem; }
.admin-list a { font-weight: 600; }
.admin-card { margin: 0.8rem 0; }
.admin-body {
    white-space: pre-wrap;
    margin: 0.35rem 0;
    font: inherit;
    font-size: 0.92rem;
}
.admin-actions { display: flex; gap: 0.8rem; align-items: center; }
.admin-actions form { margin: 0; }
label.nick-label {
    display: grid;
    gap: 0.15rem;
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
label.nick-label .hint {
    letter-spacing: 0;
    text-transform: none;
}

.tariff-change > button.quiet,
.tariff-change > button.quiet:hover {
    width: 100%;
    padding: 0.55rem 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
}

.tariff-change > button.quiet:hover {
    background: var(--sand);
    color: var(--ink);
}

.bubble time {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    line-height: 1;
    text-align: right;
    color: #8d969c;
}

.chain li.unconfigured {
    background: #e5f0dc;
    color: #6a7f64;
}

.chain li.sent { background: #d6f2ae; }

.chain li.unconfigured a { color: inherit; }

.chain a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    font-weight: 600;
}

.seal {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
    color: var(--leaf);
}

.nudges {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    height: 100%;
}

.nudges.only-later { justify-content: flex-end; }

.nudges.only-earlier { justify-content: flex-start; }

.nudges button,
.nudges button:hover {
    display: inline-flex;
    width: auto;
    padding: 0.15rem;
    background: none;
    color: var(--leaf);
}

.nudge {
    width: 0.95rem;
    height: 0.95rem;
    display: block;
}


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

.check input {
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    accent-color: var(--accent);
}
