:root {
    color-scheme: light;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    --bg: #f3f4f6;
    --surface: #ffffff;
    --surface-soft: #f8f9fb;
    --border: #d9dde3;
    --border-strong: #c8ced6;
    --text: #151922;
    --muted: #66707c;
    --muted-2: #87909b;
    --accent: #245a96;
    --accent-hover: #1d4b7f;
    --accent-soft: #eaf1f8;
    --green: #236744;
    --green-soft: #eaf5ef;
    --yellow: #805d10;
    --yellow-soft: #fff5d9;
    --red: #9c3434;
    --red-soft: #fff0f0;
    background: var(--bg);
    color: var(--text);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--text);
}

body,
button,
input,
select,
textarea {
    font-family: inherit;
}

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

.shell {
    position: relative;
    width: min(100% - 28px, 500px);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 42px 0;
}


.shell-error {
    width: min(100% - 28px, 360px);
}

.shell-error .card {
    padding: 0;
}

.error-page {
    min-height: 158px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 26px 28px;
    text-align: center;
}

.error-page .compact {
    display: contents;
}

.error-page .eyebrow,
.error-page h1,
.error-page p {
    margin: 0;
}

.error-page p {
    max-width: 30ch;
}

.error-page .button {
    margin-top: 4px;
}

.card {
    width: 100%;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(20, 25, 34, 0.06);
}

.shell-wide {
    width: min(100% - 36px, 1240px);
    min-height: 100vh;
    align-items: start;
    place-items: initial;
    padding: 20px 0 48px;
}

.shell-wide > .card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0 0 8px;
    font-size: clamp(27px, 4vw, 36px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

h2 {
    color: var(--text);
}

p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.55;
}

form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

label {
    display: grid;
    gap: 7px;
    color: #303743;
    font-size: 13px;
    font-weight: 650;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    outline: none;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    transition:
        border-color 120ms ease,
        box-shadow 120ms ease;
}

input,
select {
    min-height: 42px;
    padding: 9px 11px;
}

textarea {
    min-height: 112px;
    padding: 10px 11px;
    resize: vertical;
    line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #6f8eae;
    box-shadow: 0 0 0 2px rgba(36, 90, 150, 0.13);
}

input:disabled,
select:disabled,
textarea:disabled {
    background: #eef0f2;
    color: #8d949d;
}

button,
.button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid var(--accent);
    border-radius: 5px;
    background: var(--accent);
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

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

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.button-secondary {
    border-color: var(--border-strong);
    background: var(--surface);
    color: #344052;
}

.button-secondary:hover {
    border-color: #afb7c1;
    background: #f5f6f7;
}

.button-danger {
    min-height: 40px;
    width: fit-content;
    padding: 8px 14px;
    border: 1px solid #cb6c6c;
    border-radius: 5px;
    background: var(--surface);
    color: var(--red);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.button-danger:hover {
    background: var(--red-soft);
}

.compact-button {
    min-height: 36px;
    padding: 7px 12px;
    white-space: nowrap;
}

.button-link {
    width: fit-content;
    margin-top: 6px;
}

.text-action {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.text-action:hover {
    text-decoration: underline;
}

.alert,
.success-box {
    margin: 18px 0;
    padding: 12px 14px;
    border-radius: 5px;
    line-height: 1.5;
}

.alert {
    border: 1px solid #e5bbbb;
    background: var(--red-soft);
    color: #873838;
}

.alert p {
    margin: 6px 0 0;
    color: inherit;
}

.success-box {
    border: 1px solid #bcd9c8;
    background: var(--green-soft);
    color: #315f47;
}

.compact-box {
    margin: 0 0 18px;
}

.hint,
.muted,
.field-hint,
.small-note {
    color: var(--muted-2);
    font-size: 12px;
    font-weight: 450;
    line-height: 1.45;
}

.hint,
.muted {
    margin-top: 18px;
    margin-bottom: 0;
}

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

code {
    padding: 2px 5px;
    border-radius: 3px;
    background: #eef0f3;
    color: #35404d;
}

.compact {
    text-align: center;
}

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

.topline h1 {
    margin-bottom: 0;
}

.topline form,
.secondary-form {
    margin: 0;
}

.checks {
    display: grid;
    gap: 0;
    margin: 22px 0 0;
    padding: 0;
    border-top: 1px solid var(--border);
    list-style: none;
}

.checks li {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.checks li strong {
    text-align: right;
}

.checks .ok strong {
    color: var(--green);
}

.checks .bad strong {
    color: var(--red);
}

.qr-wrap {
    display: grid;
    place-items: center;
    margin: 22px 0;
}

.qr {
    display: block;
    width: min(260px, 100%);
    height: auto;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #ffffff;
}

.secret-label {
    margin: 0 0 7px;
    text-align: center;
    font-size: 12px;
}

.totp-secret {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 24px;
    padding: 7px 9px;
    overflow-wrap: anywhere;
    font-size: 14px;
    letter-spacing: 0.06em;
}

.recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.recovery-codes li {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface-soft);
    text-align: center;
}

.recovery-codes code {
    background: transparent;
    padding: 0;
    font-size: 13px;
}

.block-time {
    width: fit-content;
    margin: 20px 0;
    padding: 8px 11px;
    border-left: 3px solid #9b7727;
    background: #fff8e7;
    font-size: 18px;
    font-weight: 750;
}

/* Application shell */

.app-header {
    min-height: 58px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    margin-bottom: 22px;
    padding: 0 16px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.app-brand {
    color: #171c24;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -0.035em;
    text-decoration: none;
}

.app-nav {
    display: flex;
    align-self: stretch;
    gap: 2px;
}

.app-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.app-nav-link:hover {
    color: var(--text);
}

.app-nav-active {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

.app-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.app-user form {
    margin: 0;
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.page-heading h1 {
    margin-bottom: 5px;
}

.page-heading p {
    margin-bottom: 0;
    font-size: 14px;
}

.heading-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 15px;
    color: var(--muted-2);
    font-size: 12px;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 7px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.1;
    white-space: nowrap;
}

.status-ok {
    border-color: #b9dac7;
    background: var(--green-soft);
    color: var(--green);
}

.status-complete {
    border-color: #b7d6c3;
    background: #e7f3ec;
    color: #215d3e;
}

.status-warn {
    border-color: #ead69b;
    background: var(--yellow-soft);
    color: var(--yellow);
}

.status-bad {
    border-color: #e3b6b6;
    background: var(--red-soft);
    color: var(--red);
}

.status-muted {
    border-color: #d9dde2;
    background: #f0f2f4;
    color: #69727d;
}

.provider-label {
    color: var(--muted-2);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

/* Dashboard */

.reminder-list {
    border: 1px solid var(--border);
    background: var(--surface);
}

.reminder-list-head,
.reminder-list-row {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.55fr)
        minmax(190px, 1fr)
        minmax(165px, 0.9fr)
        118px
        118px;
    gap: 18px;
    align-items: center;
}

.reminder-list-head {
    min-height: 36px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    background: #f6f7f8;
    color: var(--muted-2);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.reminder-list-row {
    min-height: 80px;
    padding: 13px 16px;
    border-bottom: 1px solid #e6e9ed;
}

.reminder-list-row:last-child {
    border-bottom: 0;
}

.reminder-list-row:hover {
    background: #fbfcfd;
}

.reminder-primary,
.reminder-cell {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.reminder-title {
    width: fit-content;
    max-width: 100%;
    color: #17202b;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
}

.reminder-title:hover {
    color: var(--accent);
    text-decoration: underline;
}

.reminder-excerpt,
.reminder-cell span {
    min-width: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.reminder-cell strong {
    color: #36404c;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.reminder-state-cell {
    display: flex;
    align-items: center;
}

.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.empty-state {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border: 1px dashed #bac2cb;
    border-radius: 5px;
    background: var(--surface);
}

.empty-state-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.empty-state > div:not(.empty-state-mark) {
    display: grid;
    gap: 4px;
}

.empty-state strong {
    font-size: 14px;
}

.empty-state span {
    color: var(--muted);
    font-size: 12px;
}

.compact-empty {
    grid-template-columns: auto 1fr;
}

/* Settings / channels */

.settings-list {
    border: 1px solid var(--border);
    background: var(--surface);
}

.settings-row {
    min-height: 72px;
    display: grid;
    grid-template-columns: 42px minmax(230px, 1.2fr) minmax(180px, 1fr) 110px 90px;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #e6e9ed;
}

.settings-row:last-child {
    border-bottom: 0;
}

.settings-row-disabled {
    background: #fafafa;
    opacity: 0.72;
}

.provider-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    background: #f4f6f8;
    color: #4e5d6e;
    font-size: 10px;
    font-weight: 850;
}

.settings-primary,
.settings-detail {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.settings-primary strong,
.settings-detail strong {
    color: #303a46;
    font-size: 13px;
}

.settings-primary span,
.settings-detail span {
    color: var(--muted);
    font-size: 11px;
    overflow-wrap: anywhere;
}

/* Forms */

.app-form {
    gap: 0;
    margin-top: 0;
    padding: 22px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field-full {
    grid-column: 1 / -1;
}

.form-section,
.test-panel {
    margin-top: 22px;
    padding: 20px 0 0;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
}

.form-section h2,
.test-panel h2,
.danger-zone h2 {
    margin: 0 0 5px;
    font-size: 16px;
    letter-spacing: -0.015em;
}

.form-section p,
.test-panel p,
.danger-zone p {
    margin: 0;
    font-size: 12px;
}

.form-section > label {
    margin-top: 15px;
}

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

.check-row,
.switch-row {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 8px;
}

.check-row input,
.switch-row input,
.weekday-option input,
.endpoint-option input {
    width: 16px;
    min-height: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
}

.schedule-section[hidden],
.proxy-fields[hidden] {
    display: none;
}

.weekday-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    margin: 14px 0;
}

.weekday-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface-soft);
    cursor: pointer;
}

.weekday-option:hover {
    border-color: #aeb8c3;
    background: #f2f4f6;
}

.weekday-option span {
    font-size: 11px;
    font-weight: 700;
}

.endpoint-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.endpoint-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 11px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface-soft);
    cursor: pointer;
}

.endpoint-option:hover {
    border-color: #abb6c1;
}

.endpoint-option input {
    margin-top: 2px;
}

.endpoint-option span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.endpoint-option strong {
    overflow-wrap: anywhere;
    color: #303a46;
    font-size: 12px;
}

.endpoint-option small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.endpoint-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.behavior-grid {
    grid-template-columns: minmax(0, 420px);
}

.reminder-enabled-row {
    min-height: 0;
    margin-top: 2px;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.test-result {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 650;
}

.test-ok {
    border: 1px solid #bcdac8;
    background: var(--green-soft);
    color: var(--green);
}

.test-bad {
    border: 1px solid #e3b8b8;
    background: var(--red-soft);
    color: var(--red);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.form-errors {
    margin: 8px 0 0;
    padding-left: 18px;
}

.danger-zone {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e5bebe;
    border-radius: 5px;
    background: #fffafa;
}

.danger-zone form {
    margin-top: 14px;
}

.danger-confirm {
    font-weight: 550;
}

/* History */

.message-preview {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-left: 3px solid #9aa9b8;
    background: var(--surface);
    color: #38424e;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.message-preview-empty {
    color: var(--muted-2);
    font-style: italic;
}

.history-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 24px;
    border: 1px solid var(--border);
    background: var(--surface);
}

.history-summary div {
    min-width: 0;
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-right: 1px solid var(--border);
}

.history-summary div:last-child {
    border-right: 0;
}

.history-summary dt {
    color: var(--muted-2);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.history-summary dd {
    margin: 0;
    color: #323c48;
    font-size: 12px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}

.section-title h2 {
    margin: 0 0 2px;
    font-size: 17px;
}

.section-title p {
    margin: 0;
    font-size: 11px;
}

.history-list {
    display: grid;
    gap: 10px;
}

.history-occurrence {
    border: 1px solid var(--border);
    background: var(--surface);
}

.history-occurrence-head {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: #f8f9fa;
}

.history-occurrence-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.history-index {
    min-width: 32px;
    color: var(--muted-2);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 11px;
}

.history-occurrence-title > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.history-occurrence-title strong {
    font-size: 13px;
}

.history-occurrence-title span {
    color: var(--muted);
    font-size: 11px;
}

.history-no-delivery {
    padding: 13px 14px;
    color: var(--muted);
    font-size: 12px;
}

.delivery-table {
    padding: 0 14px 12px;
}

.delivery-table-head,
.delivery-table-row {
    display: grid;
    grid-template-columns:
        minmax(150px, 1.2fr)
        105px
        70px
        minmax(95px, 0.7fr)
        minmax(150px, 1fr);
    gap: 12px;
    align-items: center;
}

.delivery-table-head {
    min-height: 34px;
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.delivery-table-row {
    min-height: 46px;
    border-top: 1px solid #e7eaed;
    color: #4b5662;
    font-size: 11px;
}

.delivery-table-row strong {
    color: #303a46;
    font-size: 12px;
}

.history-tech {
    margin: 0 14px 12px;
    padding: 8px 0 0;
    border-top: 1px dashed #d4d9df;
}

.history-tech summary {
    width: fit-content;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.history-tech-body {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.attempt-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
    padding: 8px 10px;
    background: #f5f6f8;
    color: #5e6873;
    font-size: 11px;
}

.attempt-row strong {
    color: #35404d;
}

.attempt-message {
    width: 100%;
    overflow-wrap: anywhere;
}

.history-error {
    padding: 8px 10px;
    border-left: 3px solid #c65e5e;
    background: var(--red-soft);
    color: #833737;
    font-size: 11px;
    overflow-wrap: anywhere;
}

@media (max-width: 960px) {
    .reminder-list-head {
        display: none;
    }

    .reminder-list-row {
        grid-template-columns: minmax(0, 1fr) 120px;
        gap: 10px 16px;
    }

    .reminder-primary {
        grid-column: 1;
    }

    .reminder-cell {
        grid-column: 1;
        grid-template-columns: 150px 1fr;
        align-items: baseline;
    }

    .reminder-state-cell {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
    }

    .row-actions {
        grid-column: 2;
        grid-row: 2 / span 2;
        align-self: end;
        flex-direction: column;
        align-items: flex-end;
    }

    .settings-row {
        grid-template-columns: 42px minmax(0, 1fr) 110px 80px;
    }

    .settings-detail {
        display: none;
    }

    .history-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .history-summary div:nth-child(2) {
        border-right: 0;
    }

    .history-summary div:nth-child(-n+2) {
        border-bottom: 1px solid var(--border);
    }

    .delivery-table-head,
    .delivery-table-row {
        grid-template-columns: minmax(140px, 1fr) 105px 65px minmax(130px, 1fr);
    }

    .delivery-table-head span:nth-child(4),
    .delivery-table-row span:nth-child(4) {
        display: none;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 16px, 500px);
        padding: 10px 0;
    }

    .card {
        padding: 22px 18px;
        border-radius: 5px;
    }

    .shell-wide {
        width: 100%;
        padding: 0 0 32px;
    }

    .app-header {
        grid-template-columns: 1fr auto;
        gap: 10px;
        margin-bottom: 18px;
        border-width: 0 0 1px;
    }

    .app-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        min-height: 40px;
        overflow-x: auto;
    }

    .app-nav-link {
        padding: 0 10px;
    }

    .app-user > span {
        display: none;
    }

    .page-heading,
    .history-page-heading {
        display: grid;
        padding: 0 14px;
    }

    .page-heading > .button {
        width: fit-content;
    }

    .breadcrumb,
    .compact-box,
    .reminder-list,
    .settings-list,
    .app-form,
    .danger-zone,
    .message-preview,
    .history-summary,
    .section-title,
    .history-list {
        margin-left: 14px;
        margin-right: 14px;
    }

    .reminder-list-row {
        grid-template-columns: 1fr;
        padding: 13px;
    }

    .reminder-state-cell,
    .row-actions,
    .reminder-cell,
    .reminder-primary {
        grid-column: 1;
        grid-row: auto;
    }

    .reminder-cell {
        grid-template-columns: 1fr;
    }

    .reminder-state-cell {
        justify-content: flex-start;
    }

    .row-actions {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .settings-row {
        grid-template-columns: 38px 1fr auto;
        gap: 10px;
        padding: 11px 12px;
    }

    .settings-row > .status-badge {
        grid-column: 3;
        grid-row: 1;
    }

    .settings-row > .text-action {
        grid-column: 2 / -1;
    }

    .settings-detail {
        display: none;
    }

    .form-grid,
    .endpoint-grid,
    .channel-grid,
    .recovery-codes {
        grid-template-columns: 1fr;
    }

    .field-full {
        grid-column: auto;
    }

    .app-form {
        padding: 16px 14px;
    }

    .section-heading {
        display: grid;
    }

    .form-actions,
    .action-row {
        display: grid;
    }

    .form-actions .button,
    .form-actions button,
    .action-row button {
        width: 100%;
    }

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

    .history-summary {
        grid-template-columns: 1fr;
    }

    .history-summary div {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .history-summary div:last-child {
        border-bottom: 0;
    }

    .history-occurrence-head {
        align-items: flex-start;
    }

    .delivery-table {
        padding: 0 12px 10px;
    }

    .delivery-table-head {
        display: none;
    }

    .delivery-table-row {
        grid-template-columns: 1fr auto;
        gap: 6px 10px;
        padding: 10px 0;
    }

    .delivery-table-row > *:nth-child(n+3) {
        grid-column: 1 / -1;
    }

    .history-tech {
        margin-left: 12px;
        margin-right: 12px;
    }

    .empty-state {
        grid-template-columns: auto 1fr;
    }

    .empty-state > .button {
        grid-column: 1 / -1;
        width: fit-content;
    }

    .topline {
        display: grid;
    }

    .checks li {
        display: grid;
        gap: 3px;
    }

    .checks li strong {
        text-align: left;
    }
}

/* Application UI */

:root {
    --app-width: 920px;
    --panel-radius: 8px;
    --table-head: #f6f7f9;
    --table-hover: #fafbfd;
    --table-border: #dce1e6;
}

html,
body {
    min-height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

h1,
h2,
h3,
.app-brand,
.reminder-title {
    font-family: inherit;
}

h1 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.025em;
}

h2 {
    font-weight: 650;
}

.shell-wide {
    display: block;
    width: min(calc(100% - 32px), var(--app-width));
    min-height: 0;
    margin: 26px auto;
    padding: 0;
}

.shell-wide > .card {
    width: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0 20px 20px;
    border: 1px solid #d7dce2;
    border-radius: var(--panel-radius);
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(24, 31, 42, 0.065);
}

.shell-wide .eyebrow {
    display: none;
}

.app-header {
    min-height: 46px;
    margin: 0 -20px 16px;
    padding: 0 14px;
    border: 0;
    border-bottom: 1px solid var(--table-border);
    background: #fbfcfd;
}

.app-brand {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.app-nav-link {
    padding: 0 10px;
    font-size: 11px;
    font-weight: 600;
}

.app-user {
    margin-left: auto;
    gap: 7px;
    font-size: 10px;
}

.app-user .compact-button {
    min-height: 30px;
    padding: 5px 9px;
}

.page-heading {
    align-items: center;
    gap: 14px;
    margin-bottom: 13px;
}

.page-heading h1 {
    margin-bottom: 2px;
}

.page-heading p {
    font-size: 11px;
    line-height: 1.4;
}

.page-heading .compact-button {
    min-height: 32px;
    padding: 6px 10px;
}

.breadcrumb {
    margin-bottom: 10px;
    font-size: 11px;
}

.reminder-list,
.settings-list,
.delivery-table {
    overflow: hidden;
    border: 1px solid var(--table-border);
    border-radius: 6px;
    background: var(--surface);
}

.reminder-list-head,
.settings-list-head,
.delivery-table-head {
    min-height: 30px;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border-bottom: 1px solid var(--table-border);
    background: var(--table-head);
    color: #7b8490;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.reminder-list-row,
.settings-row,
.delivery-table-row {
    border-bottom: 1px solid #e7eaee;
    background: #fff;
    transition: background-color 100ms ease;
}

.reminder-list-row:last-child,
.settings-row:last-child,
.delivery-table-row:last-child {
    border-bottom: 0;
}

.reminder-list-row:hover,
.settings-row:not(.settings-row-disabled):hover,
.delivery-table-row:hover {
    background: var(--table-hover);
}

.reminder-list-head,
.reminder-list-row {
    grid-template-columns:
        minmax(210px, 1.5fr)
        minmax(145px, 0.95fr)
        minmax(125px, 0.8fr)
        84px
        96px;
    gap: 10px;
}

.reminder-list-row {
    min-height: 54px;
    padding: 7px 10px;
}

.reminder-primary,
.reminder-cell {
    gap: 1px;
}

.reminder-primary-wrap {
    min-width: 0;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
}

.reminder-mark,
.empty-state-mark {
    display: grid;
    place-items: center;
    border: 1px solid var(--table-border);
    border-radius: 6px;
    background: #f8fafc;
}

.reminder-mark {
    width: 28px;
    height: 28px;
    padding: 4px;
}

.empty-state {
    border-radius: 6px;
}

.empty-state-mark {
    border-radius: 6px;
}

.reminder-title {
    color: #202833;
    font-size: 12px;
    font-weight: 650;
}

.reminder-excerpt,
.reminder-cell span {
    color: #77818c;
    font-size: 10px;
    line-height: 1.35;
}

.reminder-cell strong {
    color: #343f4b;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
}

.reminder-delivery-cell {
    gap: 5px;
}

.delivery-group-line {
    display: grid;
    gap: 1px;
}

.delivery-group-line + .delivery-group-line {
    padding-top: 5px;
    border-top: 1px solid #eceff2;
}

.delivery-group-line strong,
.delivery-group-line span {
    font-size: 10px;
    line-height: 1.35;
}

.delivery-group-line strong {
    color: #343f4b;
    font-weight: 600;
}

.delivery-group-line span {
    color: #77818c;
}

.delivery-group-line .delivery-group-error {
    color: #9a4c4c;
    font-size: 9px;
}

.row-actions {
    gap: 8px;
}

.text-action {
    font-size: 10px;
    font-weight: 600;
}

.settings-list-head,
.settings-row {
    display: grid;
    grid-template-columns:
        30px
        minmax(170px, 1.15fr)
        minmax(160px, 1fr)
        82px
        68px;
    gap: 10px;
}

.settings-list-head {
    padding-left: 10px;
    padding-right: 10px;
}

.settings-row {
    min-height: 54px;
    align-items: center;
    padding: 7px 10px;
}

.settings-row-disabled,
.settings-row-empty {
    background: #fafbfc;
}

.settings-row-disabled {
    opacity: 0.62;
}

.provider-mark {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 3px;
    border: 1px solid #d3d9df;
    border-radius: 5px;
    background: #f7f9fb;
    color: #657180;
    line-height: 0;
}

.ui-icon-image {
    display: block;
    width: 20px;
    height: 20px;
    margin: auto;
    object-fit: contain;
    object-position: 50% 50%;
}

.reminder-mark .ui-icon-image,
.empty-state-mark .ui-icon-image {
    width: 20px;
    height: 20px;
}

.settings-primary,
.settings-detail {
    gap: 1px;
}

.settings-primary strong,
.settings-detail strong {
    color: #303a45;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
}

.settings-primary span,
.settings-detail span {
    color: #7a8490;
    font-size: 10px;
    line-height: 1.35;
}

.settings-row > .status-badge {
    width: max-content;
    min-width: 0;
    justify-self: start;
}

.settings-action-placeholder {
    min-width: 1px;
}

.delivery-table-head,
.delivery-table-row {
    grid-template-columns:
        minmax(130px, 1.2fr)
        100px
        62px
        92px
        126px;
    gap: 10px;
}

.delivery-table-row {
    min-height: 46px;
    align-items: center;
    padding: 7px 10px;
    font-size: 10px;
}

.delivery-table-row strong,
.delivery-table-row .mono {
    font-size: 10px;
}

.delivery-table-row strong {
    font-weight: 650;
}

.status-badge {
    min-height: 20px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 650;
}

.history-summary {
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--table-border);
    border-radius: 6px;
}

.history-summary div {
    min-height: 45px;
    padding: 8px 10px;
}

.history-summary dt {
    font-size: 9px;
}

.history-summary dd {
    font-size: 11px;
}

.history-list {
    gap: 10px;
}

.history-occurrence {
    padding: 12px;
    border: 1px solid var(--table-border);
    border-radius: 6px;
    box-shadow: none;
}

.history-occurrence h2,
.history-occurrence-title strong {
    font-size: 12px;
}

.history-occurrence-title span,
.history-finished,
.history-no-delivery {
    font-size: 10px;
}

.history-index {
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
}

.history-tech {
    margin-top: 8px;
    padding-top: 8px;
}

.history-tech summary,
.attempt-row,
.history-error {
    font-size: 10px;
}

.app-form {
    padding: 16px;
    border: 1px solid var(--table-border);
    border-radius: 6px;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.form-section,
.test-panel {
    margin-top: 16px;
    padding-top: 14px;
}

.form-section h2,
.test-panel h2,
.danger-zone h2 {
    font-size: 13px;
    font-weight: 650;
}

.section-heading {
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

label {
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
}

input,
select {
    min-height: 34px;
    height: 34px;
    padding: 6px 8px;
    border-radius: 4px;
}

textarea {
    min-height: 88px;
    padding: 7px 8px;
    border-radius: 4px;
}

.field-hint {
    min-height: 0;
    margin-top: 1px;
    font-size: 10px;
    line-height: 1.4;
}

button,
.button,
.button-danger {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 650;
}

.compact-button {
    min-height: 30px;
    padding: 5px 9px;
}

.proxy-fields {
    margin-top: 0;
}

.proxy-grid {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 100px;
    gap: 10px;
    align-items: start;
}

.proxy-type-field { grid-column: 1; }
.proxy-host-field { grid-column: 2; }
.proxy-port-field { grid-column: 3; }
.proxy-user-field { grid-column: 1 / 2; }
.proxy-password-field { grid-column: 2 / 4; }
.proxy-grid > .field-full,
.proxy-grid > .check-row.field-full { grid-column: 1 / -1; }

.secret-input-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.secret-input-wrap input {
    width: 100%;
    padding-right: 72px;
}

.secret-toggle {
    position: absolute;
    top: 50%;
    right: 5px;
    min-height: 26px;
    height: 26px;
    padding: 3px 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 3px;
    background: #eef2f6;
    color: #4f5d6b;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.secret-toggle:hover,
.secret-toggle:focus-visible {
    border: 0;
    background: #e3e9ef;
    color: #263747;
    outline: none;
    box-shadow: none;
}

.inline-note {
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px solid var(--table-border);
    border-radius: 4px;
    background: #f8f9fa;
    font-size: 11px;
}

.test-result {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 5px 8px;
    border: 1px solid var(--table-border);
    border-radius: 4px;
    background: #f8f9fa;
    color: #46515d;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
}

.test-result-mark {
    width: 16px;
    height: 16px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
}

.test-ok {
    border-color: #b9d8c6;
    background: #f2faf5;
    color: #35684d;
}

.test-ok .test-result-mark {
    background: #dcefe4;
    color: #2e6d4b;
}

.test-bad {
    border-color: #e3c2c2;
    background: #fff7f7;
    color: #8e4747;
}

.test-bad .test-result-mark {
    background: #f5dede;
    color: #963f3f;
}

.danger-zone {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 12px 14px;
}

.danger-zone-copy {
    min-width: 0;
}

.danger-zone-copy h2 {
    margin-bottom: 3px;
}

.danger-zone-copy p {
    line-height: 1.4;
}

.danger-zone .danger-zone-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0;
}

.danger-zone .danger-confirm,
.danger-zone .button-danger {
    white-space: nowrap;
}

.danger-zone .button-danger {
    flex: 0 0 auto;
}

.add-channel-menu {
    position: relative;
    flex: 0 0 auto;
}

.add-channel-menu > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.add-channel-menu > summary::-webkit-details-marker {
    display: none;
}

.add-channel-menu[open] > summary {
    background: #255c99;
}

.add-channel-menu-popover {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 30;
    width: 150px;
    padding: 4px;
    border: 1px solid #d5dbe1;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(24, 31, 41, 0.14);
}

.add-channel-menu-popover a {
    display: block;
    padding: 7px 9px;
    border-radius: 3px;
    color: #33404c;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.add-channel-menu-popover a:hover {
    background: #f1f4f7;
    color: #185b9d;
}

.shell-login {
    width: min(100% - 24px, 370px);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 24px 0;
}

.shell-login > .card {
    padding: 22px;
}

.shell-login h1 {
    margin-bottom: 5px;
    font-size: 22px;
}

.shell-login p {
    margin-bottom: 14px;
    font-size: 11px;
}

.shell-login form {
    gap: 11px;
    margin-top: 16px;
}

.shell-login label {
    font-size: 11px;
}

.shell-login input,
.shell-login button[type="submit"] {
    min-height: 34px;
}

.secondary-form {
    margin-top: 8px;
}

.ui-modal-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 18px;
    background: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 140ms ease, visibility 140ms ease;
}

.ui-modal-backdrop::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(25, 31, 39, 0.34);
}

.ui-modal-backdrop .ui-modal {
    z-index: 1;
}

.ui-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.ui-modal-backdrop.is-closing {
    opacity: 0;
}

.ui-modal {
    position: relative;
    width: min(calc(100% - 24px), 300px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 22px 24px 20px;
    border: 1px solid #d6dce2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(18, 24, 33, 0.2);
    text-align: center;
    transform: translateY(5px) scale(0.99);
    transition: transform 140ms ease;
}

.ui-modal:focus {
    outline: none;
}

.ui-modal-backdrop.is-open .ui-modal {
    transform: translateY(0) scale(1);
}

.ui-modal-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 2px;
    border: 1px solid #cbd2d9;
    border-radius: 50%;
    background: #f5f7f9;
    color: #4e5965;
    font-size: 15px;
    font-weight: 700;
}

.ui-modal-success .ui-modal-icon {
    border-color: #b8d4c4;
    color: #2f7550;
}

.ui-modal-error .ui-modal-icon {
    border-color: #dfbcbc;
    color: #a04646;
}

.ui-modal-content {
    width: 100%;
    min-width: 0;
    padding: 0;
}

.ui-modal-content h2 {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.25;
}

.ui-modal-message {
    color: #596470;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
    overflow-wrap: anywhere;
}

.ui-modal-message p {
    margin: 4px 0 0;
    color: inherit;
    font-size: inherit;
}

.ui-modal-message .form-errors {
    display: inline-block;
    margin: 4px auto 0;
    padding-left: 16px;
    text-align: left;
}

.modal-note {
    margin-top: 7px;
    color: #7b8490;
    font-size: 10px;
    text-align: center;
}

.ui-modal-actions {
    display: none;
}

.ui-modal-x {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    min-height: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #8a939d;
    font-size: 19px;
    font-weight: 400;
    line-height: 1;
}

.ui-modal-x:hover {
    border: 0;
    background: #f1f3f5;
    color: #39434e;
}

.ui-modal-x:focus,
.ui-modal-x:focus-visible {
    border: 0;
    outline: none;
    box-shadow: none;
    font-weight: 400;
}

@media (max-width: 960px) {
    .shell-wide {
        width: min(calc(100% - 20px), var(--app-width));
        margin: 10px auto;
    }

    .reminder-list-head,
    .settings-list-head {
        display: none;
    }

    .reminder-list-row {
        grid-template-columns: 1fr auto;
        gap: 6px 12px;
        min-height: 0;
        padding: 10px;
    }

    .reminder-primary { grid-column: 1; }

    .reminder-cell {
        grid-column: 1;
        grid-template-columns: 118px 1fr;
        align-items: baseline;
    }

    .reminder-state-cell {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
    }

    .row-actions {
        grid-column: 2;
        grid-row: 2 / span 2;
        align-self: end;
        flex-direction: column;
        align-items: flex-end;
    }

    .settings-row {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        gap: 6px 10px;
        padding: 9px 10px;
    }

    .settings-primary { grid-column: 2; }

    .settings-detail {
        grid-column: 2;
        grid-row: 2;
    }

    .settings-row > .status-badge {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .settings-row > .text-action,
    .settings-action-placeholder {
        grid-column: 3;
        grid-row: 2;
        justify-self: end;
    }

    .delivery-table-head,
    .delivery-table-row {
        grid-template-columns: minmax(120px, 1fr) 92px 58px 82px;
    }

    .delivery-table-head span:nth-child(5),
    .delivery-table-row > span:nth-child(5) {
        display: none;
    }
}

@media (max-width: 760px) {
    .danger-zone {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .danger-zone .danger-zone-form {
        display: grid;
        justify-content: stretch;
    }

    .danger-zone .danger-confirm {
        white-space: normal;
    }

    .danger-zone .button-danger {
        width: fit-content;
    }

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

    .proxy-type-field,
    .proxy-host-field,
    .proxy-port-field,
    .proxy-user-field,
    .proxy-password-field,
    .proxy-grid > .field-full,
    .proxy-grid > .check-row.field-full {
        grid-column: 1;
    }
}

@media (max-width: 720px) {
    .shell-wide {
        width: 100%;
        margin: 0;
    }

    .shell-wide > .card {
        min-height: 0;
        padding: 0 12px 16px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .app-header {
        margin: 0 -12px 14px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .page-heading,
    .history-page-heading,
    .breadcrumb,
    .reminder-list,
    .settings-list,
    .app-form,
    .danger-zone,
    .message-preview,
    .history-summary,
    .section-title,
    .history-list {
        margin-left: 0;
        margin-right: 0;
    }

    .page-heading,
    .history-page-heading {
        padding: 0;
    }

    .page-heading {
        align-items: flex-start;
    }

    .add-channel-menu {
        align-self: flex-start;
    }

    .delivery-table {
        overflow-x: auto;
    }

    .delivery-table-head,
    .delivery-table-row {
        min-width: 560px;
    }

    .shell-login {
        width: min(100% - 20px, 370px);
        padding: 12px 0;
    }

    .reminder-primary-wrap {
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 8px;
    }

    .reminder-mark {
        width: 26px;
        height: 26px;
    }
}

.endpoint-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.endpoint-option {
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
}

.endpoint-option input {
    flex: 0 0 auto;
    margin: 0;
}

.endpoint-option span {
    min-width: 0;
    gap: 1px;
}

.endpoint-option strong {
    overflow: hidden;
    color: #303a46;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.endpoint-option small {
    overflow: hidden;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 450;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.max-recipient-grid > label:not(.field-full) {
    grid-template-rows: 15px 34px auto;
    align-content: start;
}

.max-recipient-grid .field-label {
    display: block;
    min-height: 15px;
    line-height: 15px;
}

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

/* Security settings */
.security-observed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.security-observed > div {
    min-width: 0;
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border: 1px solid var(--table-border);
    border-radius: 5px;
    background: var(--surface-soft);
}

.security-observed span {
    color: var(--muted);
    font-size: 9.5px;
}

.security-observed strong {
    overflow-wrap: anywhere;
    color: #303a46;
    font-size: 11px;
    font-weight: 600;
}

.security-bypass-toggle {
    width: fit-content;
    margin-top: 2px;
}

.security-note {
    margin: 4px 0 14px;
}

.security-network-grid {
    align-items: start;
}

.security-network-grid textarea {
    min-height: 126px;
    resize: vertical;
}

@media (max-width: 720px) {
    .security-observed,
    .security-network-grid {
        grid-template-columns: 1fr;
    }
}

.app-nav {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.app-nav::-webkit-scrollbar {
    display: none;
}

.app-nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
}
