/* Notific 1.0.0 — base styles and consolidated responsive breakpoints. */

: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);
    --app-width: 920px;
    --panel-radius: 8px;
    --table-head: #f6f7f9;
    --table-hover: #fafbfd;
    --table-border: #dce1e6;
}

* {
    box-sizing: border-box;
}

body,html {
    min-width: 320px;
    background: var(--bg);
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    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;
}

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

.shell {
    position: relative;
    width: min(100% - 28px,500px);
    min-height: auto;
    margin: 0 auto;
    display: grid;
    place-items: start 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,input,select,textarea {
    width: 100%;
    background: var(--surface);
}

.card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(20,25,34,.06);
}

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

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

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

form,label {
    display: grid;
}

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

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

input,select,textarea {
    border: 1px solid var(--border-strong);
    outline: 0;
    color: var(--text);
    font: inherit;
    transition: border-color 120ms ease,box-shadow 120ms ease;
}

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

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

.button,button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font: inherit;
    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: .55;
}

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

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

.button-danger {
    width: fit-content;
    border: 1px solid #cb6c6c;
    background: var(--surface);
    color: var(--red);
    font: inherit;
    cursor: pointer;
}

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

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

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

.alert {
    margin: 18px 0;
    padding: 12px 14px;
    border: 1px solid #e5bbbb;
    border-radius: 5px;
    background: var(--red-soft);
    color: #873838;
    line-height: 1.5;
}

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

.field-hint,.hint,.muted {
    color: var(--muted-2);
    font-weight: 450;
}

.hint,.muted {
    font-size: 12px;
    line-height: 1.45;
    margin-top: 18px;
    margin-bottom: 0;
}

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

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

.compact {
    text-align: center;
}

.app-user 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,.recovery-codes li {
    padding: 10px;
    border: 1px solid var(--border);
}

.qr {
    display: block;
    width: min(260px,100%);
    height: auto;
    border-radius: 5px;
    background: #fff;
}

.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: .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 {
    border-radius: 4px;
    background: var(--surface-soft);
    text-align: center;
}

.recovery-codes code {
    background: 0 0;
    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;
}

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

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

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

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

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

.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;
}

.notification-list-head {
    display: grid;
    background: #f6f7f8;
    color: var(--muted-2);
}

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

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

.notification-state-cell,.row-actions {
    display: flex;
    align-items: center;
}

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

.empty-state-mark {
    width: 38px;
    height: 38px;
    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-detail,.settings-primary {
    min-width: 0;
    display: grid;
    gap: 1px;
}

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

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

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

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

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

.proxy-fields[hidden],.schedule-section[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-option:hover {
    border-color: #abb6c1;
}

.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;
}

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

.behavior-grid {
    grid-template-columns: minmax(0,420px) minmax(0,1fr);
    align-items: end;
}

.notification-enabled-row {
    min-height: 34px;
    margin: 0;
    justify-self: end;
    align-self: end;
    align-items: center;
}

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

.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 form {
    margin-top: 14px;
}

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

.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;
}

.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;
}

.activity-list {
    display: grid;
    gap: 12px;
}

.activity-card {
    overflow: hidden;
    border: 1px solid var(--table-border);
    border-radius: 7px;
    background: var(--surface);
}

.activity-head {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 13px;
    border-bottom: 1px solid var(--border);
    background: var(--table-head);
}

.activity-head > strong {
    font-size: 12px;
    font-weight: 650;
}

.activity-deliveries {
    display: grid;
}

.activity-delivery {
    padding: 0 13px;
}

.activity-delivery + .activity-delivery {
    border-top: 1px solid #e7eaee;
}

.activity-delivery-main {
    min-height: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 126px;
    align-items: center;
    gap: 14px;
}

.activity-channel {
    min-width: 0;
    color: #303a46;
    font-size: 11px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.activity-time {
    color: var(--muted);
    font-size: 10px;
    text-align: right;
    white-space: nowrap;
}

.activity-empty {
    padding: 14px;
    color: var(--muted);
    font-size: 11px;
}

.activity-tech {
    margin: -2px 0 10px;
    padding: 0;
}

.activity-tech summary {
    width: fit-content;
    padding: 3px 0;
    color: var(--accent);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.activity-tech-body {
    display: grid;
    gap: 8px;
    margin: 6px 0 2px;
    padding: 10px 12px;
    border-radius: 5px;
    background: #f6f7f9;
}

.activity-tech-line {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 0;
    color: var(--muted);
    font-size: 10px;
}

.activity-tech-line strong {
    flex: 0 0 auto;
    color: #485462;
    font-weight: 650;
}

.activity-tech-line code {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4f5b67;
    font-size: 10px;
    overflow-wrap: anywhere;
    word-break: break-all;
}

.history-context {
    margin: -3px 0 20px;
    color: var(--muted);
    font-size: 11px;
}

.page-login {
    min-height: 100dvh;
    display: grid;
    place-items: center;
}

.page-login .shell-login {
    width: min(calc(100% - 24px), 370px);
    min-height: auto;
    margin: 0;
    padding: 24px 0;
}


.attempt-row {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 0;
    padding: 8px 0 0;
    border: 0;
    border-top: 1px solid #dde2e7;
    border-radius: 0;
    background: transparent;
    color: #68737e;
}

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

.activity-tech .attempt-row > span {
    display: inline-flex;
    align-items: center;
}

.activity-tech .attempt-row > span::before {
    content: "·";
    margin: 0 7px;
    color: #a0a8b1;
}

.attempt-message {
    width: 100%;
    padding-top: 2px;
    color: #68737e;
    overflow-wrap: anywhere;
}

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

.app-brand,.notification-title,button,h1,h2,h3,input,select,textarea {
    font-family: inherit;
}

h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.025em;
}

h2 {
    color: var(--text);
    font-weight: 650;
}

.shell-wide {
    align-items: start;
    place-items: initial;
    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,.065);
}

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

.app-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 46px;
    margin: 0 -20px 16px;
    padding: 0 14px;
    border: 0;
    border-bottom: 1px solid var(--table-border);
    background: #fbfcfd;
}

.app-brand {
    color: #171c24;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.015em;
}

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

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

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 13px;
}

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

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

.history-page-heading > div:first-child {
    min-width: 0;
}

.history-page-heading h1 {
    overflow-wrap: anywhere;
}

.history-page-heading .heading-actions {
    flex: 0 0 auto;
}

.breadcrumb {
    gap: 7px;
    color: var(--muted-2);
    margin-bottom: 10px;
    font-size: 11px;
}

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

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

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

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

.notification-list-row:hover,.settings-row:hover {
    background: var(--table-hover);
}

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

.notification-list-row {
    display: grid;
    align-items: center;
    min-height: 54px;
    padding: 7px 10px;
}

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

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

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

.notification-mark {
    border-radius: 6px;
    width: 28px;
    height: 28px;
    padding: 4px;
}

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

.notification-title {
    width: fit-content;
    max-width: 100%;
    line-height: 1.35;
    text-decoration: none;
    color: #202833;
    font-size: 12px;
    font-weight: 650;
}

.notification-cell span,.notification-excerpt {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #77818c;
    font-size: 10px;
    line-height: 1.35;
}

.notification-cell strong {
    overflow-wrap: anywhere;
    color: #343f4b;
    font-weight: 600;
}

.notification-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 span,.delivery-group-line strong,.notification-cell strong {
    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 {
    justify-content: flex-end;
    gap: 8px;
}

.text-action {
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
    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-empty {
    background: #fafbfc;
}

.provider-mark {
    font-size: 10px;
    font-weight: 850;
    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;
    margin: auto;
    object-fit: contain;
    object-position: 50% 50%;
}

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


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

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

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



.status-badge {
    display: inline-flex;
    font-weight: 650;
    align-items: center;
    border: 1px solid transparent;
    line-height: 1.1;
    white-space: nowrap;
    min-height: 20px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
}

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

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

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

.danger-zone h2,.form-section h2,.test-panel h2 {
    margin: 0 0 5px;
    letter-spacing: -.015em;
    font-size: 13px;
    font-weight: 650;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

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

textarea {
    resize: vertical;
    line-height: 1.5;
    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-danger,button {
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 650;
}

.compact-button {
    white-space: nowrap;
    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>.check-row.field-full,.proxy-grid>.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:focus-visible,.secret-toggle:hover {
    border: 0;
    background: #e3e9ef;
    color: #263747;
    outline: 0;
    box-shadow: none;
}

.inline-note,.test-result {
    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;
    padding: 5px 8px;
    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: 1px solid #bcdac8;
    border-color: #b9d8c6;
    background: #f2faf5;
    color: #35684d;
}

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

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

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

.danger-zone {
    margin-top: 18px;
    border: 1px solid #e5bebe;
    border-radius: 5px;
    background: snow;
    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 .button-danger,.danger-zone .danger-confirm {
    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,.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;

    box-sizing: border-box;
}

.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 button[type=submit],.shell-login input {
    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,.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,.2);
    text-align: center;
    transform: translateY(5px) scale(.99);
    transition: transform 140ms ease;
}

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

.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-x {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    min-height: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background: 0 0;
    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: 0;
    box-shadow: none;
    font-weight: 400;
}

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

.endpoint-option {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface-soft);
    cursor: pointer;
    min-width: 0;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
}

.endpoint-option input {
    width: 16px;
    min-height: 16px;
    height: 16px;
    padding: 0;
    flex: 0 0 auto;
    margin: 0;
}

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

.endpoint-option strong {
    overflow-wrap: anywhere;
    overflow: hidden;
    color: #303a46;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    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;
}

.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;
}


.security-account-form {
    margin-top: 18px;
}


.security-account-form .form-grid > label {
    align-self: start;
    align-content: start;
}

.security-new-recovery .recovery-codes {
    margin: 0;
}


.account-2fa-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.account-2fa-state {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.account-2fa-state > strong {
    color: var(--text);
    font-size: 11px;
    font-weight: 650;
}

.account-2fa-meta {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.account-2fa-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.account-2fa-actions .compact-button {
    min-height: 30px;
    padding: 5px 9px;
    font-size: 10px;
}

.account-2fa-note {
    margin-top: 6px;
    font-size: 9.5px;
}

.account-form-actions {
    margin-top: 11px;
    padding-top: 11px;
}

.security-new-recovery {
    margin: 10px 0 0;
    padding: 10px 12px;
    border: 1px solid #c9ddd2;
    border-radius: 5px;
    background: #f3faf6;
}

.security-new-recovery > strong {
    display: block;
    margin-bottom: 3px;
    color: #2f6648;
}

.security-new-recovery > p {
    margin: 0 0 8px;
    color: #587064;
    font-size: 10px;
}

.security-account-head {
    margin-bottom: 14px;
}

.security-account-head h2 {
    margin: 0 0 4px;
    font-size: 16px;
}

.security-account-head p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.app-nav {
    display: flex;
    align-self: stretch;
    gap: 2px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.app-nav-link {
    display: inline-flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    text-decoration: none;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 600;
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 960px) {


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

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

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

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

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

    .notification-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 {
        display: none;
    }

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

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

@media (max-width: 760px) {

    .danger-zone {
        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;
    }

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

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

@media (max-width: 720px) {

    .account-2fa-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-2fa-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-2fa-actions button {
        width: 100%;
    }


    .activity-delivery-main {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 5px 10px;
        padding: 8px 0;
    }

    .activity-time {
        grid-column: 1 / -1;
        text-align: left;
    }


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

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

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

    .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>.button {
        width: fit-content;
    }

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

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

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

    .notification-state-cell,.row-actions {
        justify-content: flex-start;
    }

    .row-actions {
        flex-direction: row;
        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;
    }

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

    .behavior-grid {
        grid-template-columns: minmax(0,1fr) auto;
        align-items: end;
    }

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

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

    .section-heading {
        display: grid;
    }

    .action-row {
        display: grid;
    }

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

    .form-actions {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
    }

    .form-actions>* {
        width: auto;
    }

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

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

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

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

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

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

    .app-header {
        grid-template-columns: 1fr auto;
        gap: 10px;
        border-width: 0 0 1px;
        margin: 0 -12px 14px;
        padding-left: 12px;
        padding-right: 12px;
    }

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

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

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

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

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

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

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

    .security-network-grid,.security-observed {
        grid-template-columns: 1fr;
    }
}
