﻿:root {
    --bg-1: #f4fdff;
    --bg-2: #e8f5fb;
    --panel: rgba(255, 255, 255, 0.92);
    --panel-strong: #ffffff;
    --line: #cce5ed;
    --text: #23313a;
    --muted: #5f7481;
    --brand: #14b8b2;
    --brand-deep: #0d8f95;
    --accent: #6ac4f1;
    --danger: #b03747;
    --ok: #137a63;
    --shadow: 0 14px 34px rgba(22, 88, 112, 0.14);
    --radius-xl: 20px;
    --radius-md: 14px;
    --tile-cols-portrait: 2;
    --tile-cols-landscape: 4;
    --tile-cols-current: var(--tile-cols-landscape);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "Space Grotesk", "Exo 2", "Trebuchet MS", sans-serif;
    background:
        radial-gradient(circle at 8% 5%, rgba(20, 184, 178, 0.18), transparent 30%),
        radial-gradient(circle at 92% 0%, rgba(106, 196, 241, 0.2), transparent 32%),
        linear-gradient(180deg, var(--bg-1), var(--bg-2));
}

code {
    background: #ecf7fb;
    border: 1px solid #c7e1ea;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.84rem;
    word-break: break-all;
}

button,
.btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
}

button[type="submit"],
.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    box-shadow: 0 10px 24px rgba(20, 184, 178, 0.22);
}

.btn-danger {
    background: linear-gradient(135deg, #cb5d6c, #a8424f);
    color: #fff;
    box-shadow: 0 10px 24px rgba(176, 55, 71, 0.25);
}

.btn-ghost,
.action-btn {
    background: rgba(255, 255, 255, 0.82);
    border-color: var(--line);
    color: #365465;
}

.pill {
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 5px 11px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #eef7fb;
    color: var(--muted);
}

.pill-ok {
    background: rgba(19, 122, 99, 0.12);
    color: var(--ok);
    border-color: rgba(19, 122, 99, 0.25);
}

.pill-muted {
    background: rgba(95, 116, 129, 0.14);
    color: #526773;
    border-color: rgba(95, 116, 129, 0.24);
}

.pill-danger {
    background: rgba(246, 82, 82, 0.14);
    color: var(--danger-ink);
    border-color: rgba(246, 82, 82, 0.25);
}

.pill-info {
    background: rgba(20, 184, 178, 0.14);
    color: var(--brand-deep);
    border-color: rgba(20, 184, 178, 0.25);
}

.pill-state {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.46);
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 11px;
    border-radius: 10px;
    border: 1px solid #bcd8e2;
    background: var(--panel-strong);
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(20, 184, 178, 0.16);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.field {
    display: grid;
    gap: 5px;
}

.field label {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

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

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

.empty {
    margin: 0;
    color: var(--muted);
    font-style: italic;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.actions form {
    margin: 0;
}

/* Login */
body.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 16px;
}

.auth-shell {
    width: min(620px, 100%);
    display: grid;
    gap: 14px;
}

.auth-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: 0 18px 36px rgba(22, 88, 112, 0.16);
    padding: 18px;
    display: grid;
    gap: 14px;
}

.auth-card h1,
.auth-card h2 {
    margin: 0;
    letter-spacing: 0.02em;
}

.auth-card h1 {
    font-size: 1.55rem;
}

.auth-card h2 {
    font-size: 1.15rem;
}

.auth-card form {
    display: grid;
    gap: 10px;
}

.flash {
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 11px 12px;
    background: rgba(255, 255, 255, 0.84);
}

.flash.ok {
    border-left: 6px solid var(--ok);
}

.flash.err {
    border-left: 6px solid var(--danger);
}

/* Admin */
body.admin-page {
    min-height: 100vh;
    --tile-cols-portrait: 2;
    --tile-cols-landscape: 4;
    --tile-cols-current: var(--tile-cols-landscape);
}

.shell {
    width: min(1240px, calc(100% - 36px));
    margin: 22px auto 34px;
    display: grid;
    gap: 18px;
}

.topbar {
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(236, 248, 253, 0.92));
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 16px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.brand h1 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.05;
    letter-spacing: 0.02em;
}

.brand small {
    color: var(--muted);
    font-size: 0.84rem;
}

.admin-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tile-density-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
}

.tile-density-group {
    display: none;
    align-items: center;
    gap: 6px;
}

.tile-density-group label {
    font-size: 0.74rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.tile-density-group select {
    width: auto;
    min-width: 72px;
    padding: 8px 10px;
}

.banner {
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 14px 16px;
}

.banner.ok {
    border-left: 6px solid var(--ok);
}

.banner.err {
    border-left: 6px solid var(--danger);
}

.probe-steps {
    margin: 10px 0 0;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.probe-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.secret-box {
    border: 1px solid rgba(20, 184, 178, 0.35);
    background: linear-gradient(130deg, rgba(20, 184, 178, 0.1), rgba(106, 196, 241, 0.12));
    border-radius: 12px;
    padding: 10px;
    display: grid;
    gap: 6px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 16px;
    display: grid;
    gap: 12px;
}

.panel h2 {
    margin: 0;
    font-size: 1.32rem;
    letter-spacing: 0.02em;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.panel-info-toggle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 2px solid #147e97;
    background: transparent;
    color: #147e97;
    display: inline-grid;
    place-items: center;
    padding: 0;
    margin: 0;
    box-shadow: none;
    line-height: 1;
}

.panel-info-toggle span {
    font-size: 1.05rem;
    font-weight: 700;
    font-style: normal;
}

.panel-info-toggle:hover {
    transform: none;
}

.panel-info {
    display: grid;
    gap: 4px;
    margin-top: -4px;
}

.panel-info[hidden] {
    display: none;
}

.panel-info .subtle {
    margin: 0;
}

.nav-panel {
    padding: 16px;
}

.nav-shell {
    display: grid;
    gap: 10px;
}

.nav-path,
.nav-next {
    display: grid;
    gap: 10px;
}

.nav-toggle {
    justify-self: start;
}

.nav-toggle-icon {
    font-size: 1rem;
    line-height: 1;
}

.nav-drawer,
.entry-grid {
    grid-template-columns: repeat(var(--tile-cols-current), minmax(0, 1fr));
    gap: 10px;
}

.nav-drawer {
    display: none;
}

.entry-grid {
    display: grid;
}

.nav-drawer.is-open {
    display: grid;
}

.nav-tile,
.entry {
    text-decoration: none;
    color: #ffffff;
    background: #147e97;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(13, 71, 85, 0.2);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    min-height: 0;
    container-type: inline-size;
}

.nav-tile {
    padding: 14px;
    display: grid;
    gap: 6px;
    align-content: end;
}

.nav-tile-wrap {
    position: relative;
    min-width: 0;
}

.nav-tile.has-peek {
    padding-right: 44px;
}

.nav-peek-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
    border: 2.2px solid #ffffff;
    background: transparent;
    color: #ffffff;
    z-index: 4;
    display: inline-grid;
    place-items: center;
    line-height: 1;
    box-shadow: none;
}

.nav-peek-toggle-icon {
    position: relative;
    width: 15px;
    height: 15px;
    display: inline-block;
}

.nav-peek-toggle-icon::before,
.nav-peek-toggle-icon::after {
    content: "";
    position: absolute;
}

.nav-peek-toggle-icon::before {
    width: 15px;
    height: 0;
    top: 7px;
    left: 0;
    border-top: 2.2px solid #ffffff;
}

.nav-peek-toggle-icon::after {
    width: 0;
    height: 15px;
    top: 0;
    left: 7px;
    border-left: 2.2px solid #ffffff;
}

.nav-peek-cell {
    position: relative;
    min-width: 0;
}

.nav-peek-expand {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 999px;
    border: 2.2px solid #ffffff;
    background: transparent;
    color: #ffffff;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    line-height: 1;
    box-shadow: none;
}

.nav-peek-plus-icon,
.nav-peek-minus-icon {
    position: relative;
    width: 15px;
    height: 15px;
    display: inline-block;
}

.nav-peek-plus-icon::before,
.nav-peek-plus-icon::after,
.nav-peek-minus-icon::before {
    content: "";
    position: absolute;
    background: #ffffff;
}

.nav-peek-plus-icon::before,
.nav-peek-minus-icon::before {
    width: 15px;
    height: 2.2px;
    top: 7px;
    left: 0;
    border-radius: 2px;
}

.nav-peek-plus-icon::after {
    width: 2.2px;
    left: 7px;
    top: 0;
    height: 15px;
    border-radius: 2px;
}

.nav-peek-panel {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: #147e97;
    box-shadow: 0 10px 20px rgba(13, 71, 85, 0.2);
    z-index: 5;
    padding: 8px;
    display: grid;
}

.nav-peek-panel[hidden] {
    display: none;
}

.nav-peek-grid {
    width: 100%;
    height: 100%;
    display: grid;
    gap: 6px;
}

.nav-peek-grid.is-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.nav-peek-grid.is-16 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
}

.nav-peek-item {
    display: grid;
    place-items: center;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    padding: 14px 8px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15;
    overflow: hidden;
    container-type: inline-size;
}

.nav-peek-item span {
    display: block;
    font-size: 16cqi;
    overflow-wrap: anywhere;
    line-height: 1.1;
}

.nav-peek-item,
.nav-peek-empty {
    aspect-ratio: 1 / 1;
}

.nav-peek-empty {
    border-radius: 5px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.nav-peek-preview {
    position: absolute;
    inset: 8px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(12, 56, 71, 0.96);
    color: #ffffff;
    padding: 10px;
    display: grid;
    align-content: stretch;
    overflow: hidden;
    container-type: inline-size;
}

.nav-peek-preview[hidden] {
    display: none;
}

.nav-peek-preview-link {
    text-decoration: none;
    color: #ffffff;
    width: 100%;
    height: 100%;
    display: grid;
    align-content: center;
    gap: 8px;
    text-align: center;
    padding: 10px 12px 44px;
}

.nav-peek-preview strong {
    font-size: 1rem;
    font-size: 8.4cqi;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.nav-peek-preview small {
    font-size: 0.8rem;
    font-size: 6.2cqi;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.nav-peek-panel-close {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 999px;
    border: 2.2px solid #ffffff;
    background: transparent;
    color: #ffffff;
    display: inline-grid;
    place-items: center;
    line-height: 1;
    box-shadow: none;
    z-index: 8;
}

.nav-peek-toggle:hover,
.nav-peek-expand:hover,
.nav-peek-panel-close:hover {
    transform: none;
}

.nav-peek-panel.is-preview .nav-peek-grid {
    opacity: 0;
    pointer-events: none;
}

.nav-tile h3 {
    margin: 0;
    font-size: 1.02rem;
    font-size: 7.1cqi;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
    line-height: 1.1;
}

.nav-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.84rem;
    font-size: 5.4cqi;
    overflow-wrap: anywhere;
    line-height: 1.18;
}

.nav-tile.is-active {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55), 0 12px 24px rgba(13, 71, 85, 0.28);
}

.nav-tile.is-dim {
    filter: grayscale(0.6) brightness(0.86);
    opacity: 0.85;
}

.nav-path .nav-tile,
.nav-path .nav-tile {
    background: #7c8c96;
    border-color: rgba(255, 255, 255, 0.25);
}

.nav-path .nav-tile.is-past {
    filter: grayscale(0.55) brightness(0.88);
    opacity: 0.86;
}

.nav-path .nav-tile.is-current,
.nav-path .nav-tile.is-current {
    background: #147e97;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55), 0 12px 24px rgba(13, 71, 85, 0.28);
    filter: none;
    opacity: 1;
}

.nav-next .nav-tile.is-next {
    filter: none;
    opacity: 1;
}

.nav-next-action-tile {
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 0;
    align-content: stretch;
}

.nav-next-action-body {
    display: grid;
    align-content: end;
    gap: 0.9cqi;
    padding: 4.8cqi;
}

.nav-next-action-body h3 {
    margin: 0;
    font-size: 7.1cqi;
    line-height: 1.1;
    overflow-wrap: anywhere;
    text-align: center;
}

.nav-next-action-body p {
    margin: 0;
    font-size: 5.4cqi;
    line-height: 1.18;
    color: rgba(255, 255, 255, 0.9);
    overflow-wrap: anywhere;
    text-align: center;
}

.nav-next-action-tile .tile-actions-strip {
    border-top: 0.22cqi solid rgba(255, 255, 255, 0.3);
}

.nav-next-action-tile .tile-actions-strip .btn-ghost {
    background: transparent;
    color: #ffffff;
    border-right: 0.22cqi solid rgba(255, 255, 255, 0.3);
    font-size: 6.6cqi;
    font-weight: 700;
    line-height: 1.1;
}

.nav-next-action-tile .tile-actions-strip > :last-child .btn,
.nav-next-action-tile .tile-actions-strip > :last-child button,
.nav-next-action-tile .tile-actions-strip > :last-child a,
.nav-next-action-tile .tile-actions-strip > button:last-child,
.nav-next-action-tile .tile-actions-strip > a:last-child {
    border-right: none;
}

.nav-next-create-tile {
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 0;
    align-content: stretch;
}

.nav-next-create-body {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 0.9cqi;
    padding: 4.8cqi;
    text-align: center;
}

.nav-next-create-icon {
    width: 20cqi;
    height: 20cqi;
    border-radius: 999em;
    border: 0.24cqi solid rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: inline-grid;
    place-items: center;
    font-size: 10.5cqi;
    line-height: 1;
    font-weight: 600;
}

.nav-next-create-body h3 {
    margin: 0;
    font-size: 7.1cqi;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.nav-next-create-body p {
    margin: 0;
    font-size: 5.4cqi;
    line-height: 1.18;
    color: rgba(255, 255, 255, 0.9);
    overflow-wrap: anywhere;
}

.nav-slot-menu {
    position: relative;
    width: 100%;
}

.nav-slot-menu .js-nav-slot-toggle {
    width: 100%;
}

.nav-slot-menu-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    background: rgba(12, 56, 71, 0.98);
    border: 0.22cqi solid rgba(255, 255, 255, 0.28);
    border-radius: 0.7cqi 0.7cqi 0 0;
    z-index: 12;
    display: grid;
}

.nav-slot-item {
    width: 100%;
    border-radius: 0;
    border-right: none !important;
    border-bottom: 0.18cqi solid rgba(255, 255, 255, 0.22);
}

.nav-slot-menu-panel > :last-child .nav-slot-item,
.nav-slot-menu-panel > :last-child.nav-slot-item {
    border-bottom: none;
}

.tenant-section-grid {
    margin-top: 4px;
}

.tenant-path-head {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    align-items: stretch;
}

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

.tile-path {
    background: #7c8c96;
    border-color: rgba(255, 255, 255, 0.25);
}

.tile-path.is-active {
    background: #147e97;
}

.tenant-inline-edit {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(243, 251, 255, 0.92));
    border: 1px solid #c6dfe8;
    border-radius: 14px;
    padding: 12px;
    display: grid;
    align-content: start;
    gap: 8px;
}

.tenant-inline-edit h3 {
    margin: 0;
    font-size: 0.95rem;
}

.tenant-inline-edit-form {
    display: grid;
    gap: 8px;
}

.tenant-inline-action {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(243, 251, 255, 0.92));
    border: 1px solid #c6dfe8;
    border-radius: 14px;
    padding: 12px;
    display: grid;
    align-content: start;
    gap: 8px;
}

.tenant-inline-action h3 {
    margin: 0;
    font-size: 0.95rem;
}

.js-tile-link {
    cursor: pointer;
}

.tile-actions-strip {
    border-top: 1px solid #c6dfe8;
    margin-top: auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 0;
}

.tile-actions-strip > form,
.tile-actions-strip > button {
    margin: 0;
}

.tile-actions-strip .btn-ghost,
.tile-actions-strip .btn-primary,
.tile-actions-strip .btn-danger {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    border: none;
    padding: 0.7em 1em;
}

.tile-actions-strip .btn-ghost {
    background: rgba(255, 255, 255, 0.92);
    color: #0f5468;
}

.tile-actions-strip .btn-primary {
    background: rgba(255, 255, 255, 0.82);
    color: #0f5468;
}

.tile-actions-strip .btn-danger {
    background: rgba(132, 29, 45, 0.9);
    color: #fff;
}

.tile-path-edit {
    cursor: pointer;
}

.tile-inline-form {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

.tenant-name-display {
    margin-top: 2px;
}

.tenant-name-trigger {
    width: 100%;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.92);
    color: #0f5468;
    font-size: 1.15rem;
    font-weight: 700;
}

.tile-inline-form input[type="text"] {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #184556;
}

.tile-path-edit .tile-actions-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.tile-path-edit .tile-actions-strip .btn-primary {
    background: transparent;
    color: #ffffff;
}

.js-add-tile {
    cursor: default;
}

.add-tile-form {
    display: grid;
    margin-top: auto;
}

.entry-create-multi {
    position: relative;
    grid-template-rows: 1fr;
    align-items: center;
}

.entry-create-multi-head {
    position: relative;
    display: block;
    height: 100%;
    padding: 0.8cqi;
}

.entry-create-head-left {
    position: absolute;
    top: 2.8cqi;
    left: 2.8cqi;
    z-index: 2;
}

.entry-create-head-center {
    height: 100%;
    display: grid;
    place-items: center;
    padding: 0 14cqi;
    text-align: center;
    min-width: 0;
}

.entry-create-head-right {
    display: none;
}

.entry-create-multi-head h3 {
    margin: 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.entry-create-open {
    width: 13.3cqi;
    height: 13.3cqi;
    padding: 0;
    border-radius: 999em;
    border: 0.78cqi solid #ffffff;
    background: transparent;
    color: #ffffff;
    display: inline-grid;
    place-items: center;
    line-height: 1;
    box-shadow: none;
}

.entry-create-open .nav-peek-plus-icon {
    width: 5.2cqi;
    height: 5.2cqi;
}

.entry-create-open .nav-peek-plus-icon::before {
    width: 5.2cqi;
    height: 0.78cqi;
    top: 2.21cqi;
    left: 0;
    border-radius: 0.52cqi;
}

.entry-create-open .nav-peek-plus-icon::after {
    width: 0.78cqi;
    left: 2.21cqi;
    top: 0;
    height: 5.2cqi;
    border-radius: 0.52cqi;
}

.entry-create-head-spacer {
    display: none;
}

.entry-create-open:hover {
    transform: none;
}

.entry-create-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 33, 44, 0.56);
    padding: 1rem;
    display: grid;
    place-items: center;
}

.entry-create-overlay[hidden] {
    display: none;
}

.entry-create-overlay-panel {
    width: min(61.25rem, 100%);
    max-height: min(86vh, 53.75rem);
    border-radius: 0.375rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.26);
    background: #147e97;
    color: #ffffff;
    box-shadow: 0 1.125rem 2.125rem rgba(13, 71, 85, 0.34);
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 0;
    overflow: hidden;
    container-type: inline-size;
}

.entry-create-overlay-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 4.5rem;
    padding: 0.75rem 0.875rem;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.24);
}

.entry-create-overlay-head h4 {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
    font-size: 2.4cqi;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.entry-create-close {
    width: 2.125rem;
    height: 2.125rem;
    padding: 0;
    border-radius: 999em;
    border: 0.125rem solid #ffffff;
    background: transparent;
    color: #ffffff;
    display: inline-grid;
    place-items: center;
    line-height: 1;
    box-shadow: none;
    justify-self: end;
}

.entry-create-close:hover {
    transform: none;
}

.entry-create-close-icon {
    position: relative;
    width: 0.875rem;
    height: 0.875rem;
    display: inline-block;
}

.entry-create-close-icon::before,
.entry-create-close-icon::after {
    content: "";
    position: absolute;
    top: 0.375rem;
    left: 0;
    width: 0.875rem;
    height: 0.125rem;
    background: #ffffff;
    border-radius: 0.125rem;
}

.entry-create-close-icon::before {
    transform: rotate(45deg);
}

.entry-create-close-icon::after {
    transform: rotate(-45deg);
}

.entry-create-overlay .add-tile-form {
    width: 100%;
    max-height: none;
    margin: 0;
    padding: 0.75rem 0.875rem 0.875rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.625rem;
    align-content: start;
    overflow: auto;
    min-height: 0;
}

.entry-create-overlay .mask-form,
.modal-card .mask-form {
    width: 100%;
}

.entry-create-overlay .add-tile-form .field {
    gap: 0.375rem;
}

.entry .entry-create-overlay .field label {
    color: rgba(255, 255, 255, 0.82);
}

.entry .entry-create-overlay input,
.entry .entry-create-overlay select,
.entry .entry-create-overlay textarea {
    background: rgba(9, 52, 62, 0.32);
    border-color: rgba(255, 255, 255, 0.42);
    color: #ffffff;
}

/*
 * STANDARD: Bearbeitungsmaske (Overlay)
 * Zweck:
 * - Einheitliches, reproduzierbares Layout fuer Bearbeitungs-/Anlage-Masken.
 * Anwendung:
 * - Formular in Overlay: .mask-form
 * - Untere Aktionszone: .mask-footer
 * - Aktionsraster: .mask-actions (+ optional .mask-actions-1 / .mask-actions-2)
 * Regel:
 * - Trennlinie oben ueber volle Panelbreite
 * - 1 oder 2 gleichgewichtete Aktionen ohne Sonderlayout
 * - >2 Aktionen spaeter ueber separates Interaktionsmenue
 */
.entry-create-overlay .mask-footer,
.modal-card .mask-footer {
    grid-column: 1 / -1;
    margin: 0 -0.875rem -0.875rem;
    border-top: 0.0625rem solid rgba(255, 255, 255, 0.32);
}

.entry-create-overlay .mask-actions,
.modal-card .mask-actions {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 0;
}

.entry-create-overlay .mask-actions-1,
.modal-card .mask-actions-1 {
    grid-template-columns: 1fr;
}

.entry-create-overlay .mask-actions-2,
.modal-card .mask-actions-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-create-overlay .mask-actions > form,
.entry-create-overlay .mask-actions > button,
.modal-card .mask-actions > form,
.modal-card .mask-actions > button {
    margin: 0;
}

.entry-create-overlay .mask-actions .btn-ghost,
.entry-create-overlay .mask-actions .btn-primary,
.entry-create-overlay .mask-actions .btn-danger,
.modal-card .mask-actions .btn-ghost,
.modal-card .mask-actions .btn-primary,
.modal-card .mask-actions .btn-danger {
    width: 100%;
    border-radius: 0;
    border: none;
    padding: 0.7em 1em;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
    font-size: 0.95rem;
    font-size: 2cqi;
    font-weight: 700;
    line-height: 1.1;
}

.entry-create-overlay .mask-actions .btn-ghost,
.entry-create-overlay .mask-actions .btn-primary,
.modal-card .mask-actions .btn-ghost,
.modal-card .mask-actions .btn-primary {
    border-right: 0.0625rem solid rgba(255, 255, 255, 0.22);
}

.entry-create-overlay .mask-actions > :last-child .btn,
.entry-create-overlay .mask-actions > :last-child button,
.entry-create-overlay .mask-actions > button:last-child,
.modal-card .mask-actions > :last-child .btn,
.modal-card .mask-actions > :last-child button,
.modal-card .mask-actions > button:last-child {
    border-right: none;
}

.entry-create-overlay .mask-actions .btn-danger,
.modal-card .mask-actions .btn-danger {
    background: rgba(132, 29, 45, 0.6);
}

.entry-create-overlay .mask-actions .btn-ghost:hover,
.entry-create-overlay .mask-actions .btn-primary:hover,
.entry-create-overlay .mask-actions .btn-danger:hover,
.modal-card .mask-actions .btn-ghost:hover,
.modal-card .mask-actions .btn-primary:hover,
.modal-card .mask-actions .btn-danger:hover {
    transform: none;
}

body.has-create-overlay-open {
    overflow: hidden;
}

@media (orientation: portrait) {
    body.admin-page {
        --tile-cols-current: var(--tile-cols-portrait);
    }

    .entry-create-overlay-head h4,
    .modal-card.mask-card .modal-head h3 {
        font-size: 1.12rem;
        font-size: 2.9cqi;
    }

    .entry-create-overlay .mask-actions .btn-ghost,
    .entry-create-overlay .mask-actions .btn-primary,
    .entry-create-overlay .mask-actions .btn-danger,
    .modal-card .mask-actions .btn-ghost,
    .modal-card .mask-actions .btn-primary,
    .modal-card .mask-actions .btn-danger {
        font-size: 1rem;
        font-size: 2.6cqi;
    }

    .tile-density-group.is-portrait {
        display: inline-flex;
    }

    .tenant-path-head {
        grid-template-columns: 1fr;
    }
}

@media (orientation: landscape) {
    body.admin-page {
        --tile-cols-current: var(--tile-cols-landscape);
    }

    .tile-density-group.is-landscape {
        display: inline-flex;
    }
}

.settings-cards {
    display: grid;
    gap: 11px;
}

.settings-card {
    background: #147e97;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(13, 71, 85, 0.2);
    color: #ffffff;
    padding: 12px;
    display: grid;
    gap: 12px;
}

.settings-card-head {
    display: grid;
    gap: 4px;
}

.settings-card-head h3 {
    margin: 0;
    font-size: 1rem;
    color: #ffffff;
}

.settings-block {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    padding-top: 10px;
    display: grid;
    gap: 10px;
}

.settings-block h4 {
    margin: 0;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.settings-card .subtle,
.settings-card .empty {
    color: rgba(255, 255, 255, 0.86);
}

.settings-card .field label {
    color: rgba(255, 255, 255, 0.82);
}

.settings-card input,
.settings-card select,
.settings-card textarea {
    background: rgba(9, 52, 62, 0.32);
    border-color: rgba(255, 255, 255, 0.42);
    color: #ffffff;
}

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

.entry-grid .entry {
    height: 100%;
}

.entry {
    padding: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
    min-width: 0;
}

.entry-create {
    border-color: rgba(255, 255, 255, 0.22);
    background: #147e97;
}

.entry-create:not(.entry-create-multi) {
    justify-items: center;
    text-align: center;
}

.entry-create-tenant {
    grid-template-rows: 1fr auto;
}

.entry.is-open {
    aspect-ratio: 1 / 1;
    min-height: 0;
}

.entry-create-icon {
    width: 42px;
    height: 42px;
    width: 24cqi;
    height: 24cqi;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    color: #ffffff;
    display: inline-grid;
    place-items: center;
    font-size: 1.8rem;
    font-size: 10.5cqi;
    line-height: 1;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.14);
}

.entry-create h3 {
    margin: 0;
    font-size: 0.98rem;
    font-size: 7cqi;
    line-height: 1.1;
    overflow-wrap: anywhere;
    text-align: center;
    justify-self: center;
    width: 100%;
}

.entry-create-domain {
    grid-template-rows: 1fr auto;
}

.entry-create-tenant .tenant-create-title,
.entry-create-domain .domain-create-title {
    grid-row: 1;
    align-self: center;
    justify-self: center;
    text-align: center;
    font-size: 1.2rem;
    font-size: 7.2cqi;
    line-height: 1.2;
    padding: 0 12px 4px;
    overflow-wrap: anywhere;
}

/*
 * STANDARD: Einzeilige "Neuer Wert"-Kachel
 * Zweck:
 * - Einheitliches Muster fuer Add-Kacheln mit genau einem Eingabefeld + Speichern.
 * Anwendung:
 * - Auf Kachel: .entry-create-single
 * - Auf Formular: .entry-create-single-form
 * - Auf Speichern-Button: .entry-create-single-save
 * Verbindliches Verhalten:
 * - Trennlinie vor der Aktion ueber volle Kachelbreite
 * - Aktionsbutton gleiches Grundraster wie Edit/Disable (hoehe/typografie)
 */
.entry.entry-create-single {
    grid-template-rows: 1fr auto;
    justify-items: stretch;
}

.entry-create-single .entry-create-single-form {
    grid-row: 2;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: auto;
    padding: 0;
}

.entry-create-single .entry-create-single-form .field {
    gap: 6px;
    padding: 0 12px;
}

.entry-create-single .entry-create-single-form input[type="text"],
.entry-create-single .entry-create-single-form input[type="email"] {
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
}

.entry-create-single .entry-create-single-save {
    width: 100%;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #ffffff;
    box-shadow: none;
    margin: 0;
    padding: 0.7em 1em;
    font-size: 1.16rem;
    font-size: 6.6cqi;
    font-weight: 700;
}

.entry-create-single .entry-create-single-save:hover {
    transform: none;
}

.tenant-create-form {
    grid-template-columns: 1fr;
    margin-top: auto;
    max-height: 100%;
    overflow: auto;
}

.entry-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px 12px 0;
}

.entry-id {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.kv {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0 11px 11px;
}

.entry > .actions {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    margin-top: auto;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 0;
}

.entry > .actions > form {
    display: contents;
}

.entry > .actions .btn,
.entry > .actions button {
    width: 100%;
    min-height: 40px;
    border-radius: 0;
    border: none;
    box-shadow: none;
    margin: 0;
    font-size: 6.6cqi;
    font-weight: 700;
    line-height: 1.1;
}

.entry > .actions .btn-ghost,
.entry > .actions .action-btn {
    background: transparent;
    color: #ffffff;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.entry > .actions .btn-primary,
.entry > .actions button[type="submit"] {
    background: transparent;
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.entry > .actions .btn-danger {
    background: rgba(132, 29, 45, 0.9);
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.entry > .actions > :last-child .btn,
.entry > .actions > :last-child button,
.entry > .actions > button:last-child {
    border-right: none;
}

.kv-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 8px;
    font-size: 0.88rem;
    font-size: 6.1cqi;
    min-width: 0;
}

.kv-row dt {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.kv-row dd {
    margin: 0;
    color: #ffffff;
    word-break: break-word;
}

.entry .subtle,
.entry .empty {
    color: rgba(255, 255, 255, 0.86);
}

.entry .field label {
    color: rgba(255, 255, 255, 0.82);
}

.entry input,
.entry select,
.entry textarea {
    background: rgba(9, 52, 62, 0.32);
    border-color: rgba(255, 255, 255, 0.42);
    color: #ffffff;
}

.add-tile-form {
    max-height: 100%;
    overflow: auto;
}

/* Tile-first density: show only key facts on cards, details stay in edit modal */
.entry-card .kv .kv-row:nth-child(n+4) {
    display: none;
}

.entry-card .kv .kv-row:first-child dd {
    font-weight: 700;
    font-size: 0.95rem;
    font-size: 6.7cqi;
}

.entry-card .card-kv {
    align-self: center;
    padding: 0 14px 14px;
    grid-row: 1;
}

.entry-card {
    grid-template-rows: 1fr auto;
}

.entry-card .card-kv-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 6px;
}

.entry-card .card-kv-row dt {
    font-size: 1.26rem;
    font-size: 7.2cqi;
    color: rgba(255, 255, 255, 0.74);
    font-weight: 600;
    line-height: 1.1;
}

.entry-card .card-kv-row dd {
    font-size: 1.26rem;
    font-size: 7.2cqi;
    line-height: 1.2;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.entry-card .card-status-row dd {
    margin-top: 2px;
}

.entry-card .card-status-pill,
.entry-card .card-status-pill.pill-ok,
.entry-card .card-status-pill.pill-muted,
.entry-card .card-status-pill.pill-danger,
.entry-card .card-status-pill.pill-info,
.entry-card .card-status-pill.pill-state {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.46);
    color: #ffffff;
}

.entry-card .card-actions .btn,
.entry-card .card-actions button {
    min-height: auto;
    padding: 0.7em 1em;
    font-size: 1.16rem;
    font-size: 6.6cqi;
}

.entry-card .card-actions {
    grid-row: 2;
}

.api-key-modal-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.2);
}

.api-key-modal-tab {
    margin: 0;
    padding: 0.82rem 0.9rem;
    border: none;
    border-right: 0.0625rem solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
    font-size: 2cqi;
    font-weight: 700;
    box-shadow: none;
}

.api-key-modal-tab:last-child {
    border-right: none;
}

.api-key-modal-tab.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.api-key-modal-panels {
    min-height: 0;
}

.modal-card.mask-card.has-tabs {
    grid-template-rows: auto auto minmax(0, 1fr);
}

.modal-card.mask-card.has-tabs .api-key-modal-panels {
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.modal-card.mask-card.has-tabs .api-key-modal-panel {
    min-height: 0;
}

.modal-card.mask-card.has-tabs .modal-form {
    overflow: visible;
}

.api-key-modal-panel[hidden] {
    display: none;
}

.api-key-secret-display {
    display: grid;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 0.0625rem solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    align-content: center;
}

.api-key-secret-display code {
    color: #ffffff;
    white-space: pre-wrap;
    word-break: break-word;
}

.log-day-entry .log-day-kv {
    align-self: center;
    padding: 0 14px 14px;
    grid-row: 1;
}

.log-day-entry {
    grid-template-rows: 1fr auto;
}

.log-day-entry .log-day-kv-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 6px;
}

.log-day-entry .log-day-kv-row dt {
    display: none;
}

.log-day-entry .log-day-kv-row dd {
    font-size: 1.26rem;
    font-size: 7.2cqi;
    line-height: 1.2;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.log-day-entry .log-day-actions {
    grid-row: 2;
}

.log-day-entry .log-day-actions .btn,
.log-day-entry .log-day-actions button {
    min-height: auto;
    padding: 0.7em 1em;
    font-size: 1.16rem;
    font-size: 6.6cqi;
}

.log-day-modal-card {
    width: min(90rem, 100%);
}

.log-day-modal-body {
    overflow: auto;
}

.log-day-table-wrap {
    width: 100%;
    overflow: auto;
}

.log-day-table {
    width: 100%;
    min-width: 96rem;
    border-collapse: collapse;
    color: #ffffff;
    table-layout: fixed;
}

.log-day-table th,
.log-day-table td {
    padding: 0.75rem 0.7rem;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.18);
    text-align: left;
    vertical-align: top;
}

.log-day-table th {
    position: sticky;
    top: 0;
    background: #147e97;
    z-index: 1;
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.88);
}

.log-day-table th:nth-child(1),
.log-day-table td:nth-child(1) {
    width: 6.5rem;
}

.log-day-table th:nth-child(2),
.log-day-table td:nth-child(2) {
    width: 11rem;
}

.log-day-table th:nth-child(3),
.log-day-table td:nth-child(3) {
    width: 4.5rem;
}

.log-day-table th:nth-child(4),
.log-day-table td:nth-child(4) {
    width: 10rem;
}

.log-day-table th:nth-child(5),
.log-day-table td:nth-child(5) {
    width: 8rem;
}

.log-day-table th:nth-child(6),
.log-day-table td:nth-child(6) {
    width: 8rem;
}

.log-day-table th:nth-child(7),
.log-day-table td:nth-child(7) {
    width: 14rem;
}

.log-day-table th:nth-child(8),
.log-day-table td:nth-child(8) {
    width: 34rem;
}

.log-day-table td code {
    color: #ffffff;
}

.log-day-status-text {
    color: #ffffff;
    font-weight: 700;
}

.log-day-detail-cell {
    overflow: hidden;
}

.log-day-detail-text {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    overflow: hidden;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.85rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.smtp-last-test-field {
    gap: 6px;
}

.smtp-last-test-value {
    min-height: 2.75rem;
    padding: 0.72rem 0.88rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.14);
    border: 0.0625rem solid rgba(255, 255, 255, 0.26);
    color: #ffffff;
    display: flex;
    align-items: center;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 33, 44, 0.5);
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 16px;
}

.modal-card {
    width: min(760px, 100%);
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 42px rgba(22, 88, 112, 0.28);
    padding: 14px;
    display: grid;
    gap: 12px;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.modal-head h3 {
    margin: 0;
    font-size: 1rem;
}

.modal-card.mask-card {
    width: min(61.25rem, 100%);
    max-height: min(86vh, 53.75rem);
    border-radius: 0.375rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.26);
    background: #147e97;
    color: #ffffff;
    box-shadow: 0 1.125rem 2.125rem rgba(13, 71, 85, 0.34);
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    gap: 0;
    container-type: inline-size;
}

.modal-card.mask-card .modal-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 4.5rem;
    padding: 0.75rem 0.875rem;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.24);
}

.modal-card.mask-card .modal-head h3 {
    color: #ffffff;
    font-size: 1.05rem;
    font-size: 2.4cqi;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.modal-card.mask-card .modal-form {
    width: 100%;
    margin: 0;
    padding: 0.75rem 0.875rem 0.875rem;
    align-content: start;
    overflow: auto;
    min-height: 0;
}

.modal-card.mask-card .field label {
    color: rgba(255, 255, 255, 0.82);
}

.entry .entry-create-overlay .subtle,
.modal-card.mask-card .subtle {
    color: rgba(255, 255, 255, 0.82);
}

.entry .entry-create-overlay code,
.modal-card.mask-card code {
    background: rgba(9, 52, 62, 0.36);
    border-color: rgba(255, 255, 255, 0.32);
    color: #ffffff;
}

.modal-card.mask-card input,
.modal-card.mask-card select,
.modal-card.mask-card textarea {
    background: rgba(9, 52, 62, 0.32);
    border-color: rgba(255, 255, 255, 0.42);
    color: #ffffff;
}

.entry input::placeholder,
.entry textarea::placeholder,
.entry .entry-create-overlay input::placeholder,
.entry .entry-create-overlay textarea::placeholder,
.settings-card input::placeholder,
.settings-card textarea::placeholder,
.modal-card.mask-card input::placeholder,
.modal-card.mask-card textarea::placeholder {
    color: rgba(255, 255, 255, 0.68);
}

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

.inline-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
    gap: 0.5rem 0.75rem;
    padding: 0.35rem 0;
}

.inline-check-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1.2;
    color: #f0f8fb;
    font-size: 0.95rem;
}

.inline-check-item input[type="checkbox"] {
    inline-size: 1rem;
    block-size: 1rem;
}

@media (max-width: 1080px) {
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .shell {
        width: calc(100% - 20px);
        margin-top: 10px;
        gap: 12px;
    }

    .topbar,
    .panel,
    .banner,
    .auth-card {
        border-radius: 14px;
        padding: 12px;
    }

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

    .kv-row {
        grid-template-columns: 72px 1fr;
    }

    .modal-form {
        grid-template-columns: 1fr;
    }

    .entry-create-overlay {
        padding: 10px;
    }

    .entry-create-overlay-panel {
        max-height: 92vh;
    }

    .entry-create-overlay-head {
        min-height: 64px;
        padding: 10px 12px;
    }

    .entry-create-close {
        width: 2.7rem;
        height: 2.7rem;
        border-width: 0.14rem;
    }

    .entry-create-close-icon {
        width: 1.1rem;
        height: 1.1rem;
    }

    .entry-create-close-icon::before,
    .entry-create-close-icon::after {
        top: 0.48rem;
        width: 1.1rem;
        height: 0.14rem;
    }

    .entry-create-overlay .add-tile-form {
        grid-template-columns: 1fr;
        padding: 10px 12px 12px;
    }
}


.route-recipient-control {
    align-self: end;
}
.route-recipient-toolbar {
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.45rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.42);
    border-radius: 0.35rem;
    background: rgba(9, 52, 62, 0.32);
}
.route-recipient-count {
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.35rem;
    border-radius: 999rem;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-weight: 700;
    line-height: 1;
}
.route-recipient-icon {
    width: 1.9rem;
    height: 1.9rem;
    min-width: 1.9rem;
    padding: 0;
    border: 0.0625rem solid rgba(255, 255, 255, 0.58);
    border-radius: 999rem;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: inline-grid;
    place-items: center;
    font-weight: 800;
    line-height: 1;
}
.route-recipient-icon:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.24);
    transform: none;
}
.route-recipient-icon:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}
.route-recipient-icon .nav-peek-plus-icon,
.route-recipient-icon .nav-peek-minus-icon {
    transform: scale(0.72);
}
.recipient-control-modal {
    z-index: 1100;
}
.modal-card.mask-card.recipient-control-modal-card {
    width: min(31rem, 100%);
}
.recipient-control-modal-body {
    padding: 0.9rem;
    display: grid;
    gap: 0.9rem;
    overflow: auto;
}
.recipient-control-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}
.recipient-control-list li,
.recipient-control-choice {
    padding: 0.65rem 0.7rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.28);
    border-radius: 0.3rem;
    background: rgba(9, 52, 62, 0.22);
}
.recipient-control-choice {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #ffffff;
    text-transform: none;
    letter-spacing: normal;
}