:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-accent: #eef6ff;
    --text: #10233a;
    --muted: #587089;
    --line: #d7e2ee;
    --line-strong: #bfd1e4;

    --brand: #1266b3;
    --brand-strong: #0f4f8b;
    --brand-soft: #d8ecff;

    --ok-soft: #ddf7ea;
    --ok-ink: #136f45;
    --warn-soft: #fff4d6;
    --warn-ink: #8a5a00;
    --danger-soft: #fee6e7;
    --danger-ink: #a82b32;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(16, 35, 58, 0.06);
    --shadow-md: 0 10px 24px rgba(16, 35, 58, 0.1);
    --shadow-lg: 0 24px 60px rgba(16, 35, 58, 0.24);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, #e9f4ff 0%, transparent 36%),
        radial-gradient(circle at 90% 20%, #eef9ff 0%, transparent 30%),
        var(--bg);
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover { color: var(--brand-strong); }

h1 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0a1b2f;
}

h2 {
    margin: 30px 0 10px;
    font-size: 20px;
    line-height: 1.25;
    color: #143251;
}

.muted {
    color: var(--muted);
    margin: 0;
}

.muted.mt-8 { margin-top: 8px; }
.muted.mt-24 { margin-top: 24px; }
.muted.tight { margin-top: -6px; }

.text-sm { font-size: 13px; }

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 258px;
    flex-shrink: 0;
    padding: 22px 14px;
    color: #d9e6f3;
    background:
        linear-gradient(180deg, #0c1d31 0%, #102943 100%);
    border-right: 1px solid #1e3d5f;
}

.brand {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1f3f61;
}

/* Logo beyaz zeminli olduğundan koyu sidebar'da beyaz "kart" üzerinde durur. */
.brand-logo {
    display: block;
    width: 100%;
    max-width: 196px;
    height: auto;
    padding: 9px 12px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: #d3deea;
    transition: background .12s ease, color .12s ease;
}

.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, .09);
    text-decoration: none;
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(90deg, var(--brand) 0%, #2d8fe2 100%);
}

.nav-item .nav-badge {
    display: inline-block;
    min-width: 18px;
    margin-left: 7px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    color: #fff;
    background: #d12f3a;
    border-radius: 999px;
}

.nav-user {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #1f3f61;
}

.nav-email {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #9cb1c6;
    word-break: break-all;
}

.nav-logout {
    width: 100%;
    color: #e4edf6;
    background: #1d3b5a;
}

.nav-logout:hover {
    background: #274a6f;
}

.content {
    flex: 1;
    width: 100%;
    padding: 30px 34px 44px;
    max-width: 1280px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 8px;
}

.card {
    flex: 1;
    min-width: 180px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.card .label {
    font-size: 13px;
    color: var(--muted);
}

.card .value {
    margin-top: 4px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

th,
td {
    padding: 12px 14px;
    font-size: 14px;
    text-align: left;
    border-bottom: 1px solid #eaf1f8;
}

th {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #5f7690;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--line);
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #f7fbff; }

input,
select,
textarea {
    width: 100%;
    padding: 10px 11px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .12s ease, box-shadow .12s ease;
}

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

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #79afe0;
    box-shadow: 0 0 0 4px rgba(18, 102, 179, 0.12);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.filters.compact {
    margin-top: 12px;
    padding: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 140px;
}

.field.mt-8 { margin-top: 8px; }

.bar-actions {
    margin-bottom: 16px;
}

.field label {
    font-size: 12px;
    font-weight: 600;
    color: #62809d;
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: linear-gradient(90deg, var(--brand) 0%, #2c89da 100%);
    box-shadow: 0 8px 16px rgba(18, 102, 179, 0.24);
    transition: transform .08s ease, filter .12s ease;
}

button:hover,
.btn:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
    text-decoration: none;
}

button.secondary,
.btn.secondary {
    color: #1f3d5b;
    background: #eff5fb;
    border: 1px solid var(--line-strong);
    box-shadow: none;
}

button.secondary:hover,
.btn.secondary:hover {
    background: #e6eff8;
}

button:disabled,
.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.badge {
    display: inline-block;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
}

.badge.Yeni { color: #0b568f; background: #d7ecff; }
.badge.Inceleniyor { color: var(--warn-ink); background: var(--warn-soft); }
.badge.Cozuldu { color: var(--ok-ink); background: var(--ok-soft); }
.badge.Kapatildi { color: #5a6981; background: #e9eef5; }
.badge.Sikayet { color: var(--danger-ink); background: var(--danger-soft); }
.badge.Oneri { color: #3d43a3; background: #e7e9ff; }
.badge.Dusuk { color: #35516d; background: #e8eef5; }
.badge.Normal { color: #0b568f; background: #d7ecff; }
.badge.Yuksek { color: var(--warn-ink); background: var(--warn-soft); }
.badge.Kritik { color: var(--danger-ink); background: var(--danger-soft); }
.badge.pasif { color: var(--danger-ink); background: var(--danger-soft); }
.badge.aktif { color: var(--ok-ink); background: var(--ok-soft); }

.row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.bar .bar-label {
    width: 160px;
    font-size: 13px;
    color: #315170;
}

.bar .bar-fill {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #4ca2e9 0%, var(--brand) 100%);
}

.bar .bar-count {
    font-size: 13px;
    font-weight: 600;
    color: #36516f;
}

.bar.clickable {
    margin: 3px -5px;
    padding: 3px 5px;
    border-radius: 8px;
    cursor: pointer;
}

.bar.clickable:hover { background: #edf5ff; }
.bar.clickable:hover .bar-label { color: var(--brand-strong); }

.chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 600;
    color: #355573;
    user-select: none;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}

.chip:hover {
    background: #f3f8fd;
    border-color: var(--line-strong);
}

.chip.active,
.chip:has(input:checked) {
    color: var(--brand-strong);
    background: var(--brand-soft);
    border-color: #88bbe8;
}

.chip input,
.chip-check {
    accent-color: var(--brand);
}

.chip-check {
    width: 1px;
    height: 1px;
    margin: 0;
    border: 0;
    padding: 0;
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.chip-group {
    margin-top: 6px;
}

.chip-divider {
    width: 1px;
    height: 20px;
    margin: 0 3px;
    background: var(--line);
}

.chip-label {
    margin-right: 2px;
    font-size: 13px;
    font-weight: 600;
    color: #5c7692;
}

tr.row-unread td {
    background: #f2f9ff;
    font-weight: 600;
}

.dot-new {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(18, 102, 179, 0.17);
}

.asset-code {
    font-size: 12px;
    color: #6f859c;
}

dialog {
    border: none;
    padding: 0;
    background: transparent;
}

dialog[open] {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(94vw, 560px);
    max-height: 90vh;
    overflow: hidden;
    z-index: 1200;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    animation: modal-enter .18s cubic-bezier(.16, 1, .3, 1);
}

dialog::backdrop {
    background: rgba(8, 23, 41, 0.52);
    backdrop-filter: blur(3px);
    animation: backdrop-fade .18s ease;
}

@keyframes modal-enter {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes backdrop-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-body {
    max-height: 90vh;
    padding: 24px;
    background: #ffffff;
    overflow-y: auto;
}

.modal-body > h2:first-child {
    margin: -24px -24px 20px;
    padding: 16px 24px;
    font-size: 17px;
    color: #0f2a46;
    background: linear-gradient(180deg, #f7fbff 0%, #f2f8ff 100%);
    border-bottom: 1px solid var(--line);
}

.modal-body p {
    margin: 0 0 7px;
    line-height: 1.55;
    color: #36526e;
}

.modal-text {
    padding: 12px;
    white-space: pre-wrap;
    border: 1px solid #dce8f3;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.modal-gap {
    margin-top: 12px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 22px -24px -24px;
    padding: 16px 24px;
    background: #f8fbff;
    border-top: 1px solid var(--line);
}

.detail-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.detail-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.detail-plate {
    font-size: 24px;
    line-height: 1.1;
    color: #0d2743;
}

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

.detail-card {
    padding: 12px 14px;
    background: #f8fbff;
    border: 1px solid #dbe7f3;
    border-radius: 12px;
}

.detail-label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #65819c;
}

.error {
    margin-top: 8px;
    padding: 9px 11px;
    font-size: 13px;
    font-weight: 600;
    color: var(--danger-ink);
    background: var(--danger-soft);
    border: 1px solid #f6c6cb;
    border-radius: var(--radius-sm);
}

.public-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 22px 14px 42px;
    background:
        radial-gradient(circle at 15% 0%, #dceeff 0%, transparent 32%),
        radial-gradient(circle at 85% 10%, #eaf9ff 0%, transparent 26%),
        #eef5fb;
}

.public-brand {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 520px;
    margin-bottom: 18px;
}

.public-logo {
    width: 230px;
    max-width: 72%;
    height: auto;
}

.public-card {
    width: 100%;
    max-width: 520px;
    padding: 24px 22px;
    background: var(--surface);
    border: 1px solid #cfe0f1;
    border-top: 6px solid var(--brand);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 46px rgba(16, 35, 58, 0.12);
}

.public-foot {
    margin-top: 15px;
    max-width: 520px;
    font-size: 12px;
    color: #7489a0;
    text-align: center;
}

.public-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.public-hero {
    margin: -24px -22px 18px;
    padding: 20px 22px 16px;
    background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
    border-bottom: 1px solid #d9e7f5;
}

.public-plate {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: .02em;
    color: #0d2743;
}

.public-plate.public-plate-sm {
    font-size: 24px;
}

.public-route {
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-strong);
    background: var(--brand-soft);
    border-radius: 999px;
}

.public-lead {
    margin-top: 4px;
}

.public-form-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.public-form-block {
    padding: 14px;
    border: 1px solid #dbe7f3;
    border-radius: 14px;
    background: #fbfdff;
}

.public-form-block-soft {
    background: #f6f9fc;
}

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

.public-choice-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 180px));
}

.public-choice {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    color: #355573;
    background: #fff;
    border: 1px solid #d4e2f0;
    border-radius: 999px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
    cursor: pointer;
    transition: border-color .12s ease, background .12s ease, box-shadow .12s ease, transform .08s ease;
}

.public-choice:hover {
    border-color: #aac9e6;
    background: #f9fcff;
}

.public-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.public-choice span {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.2;
}

.public-choice span::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 1.5px solid #9bb5cf;
    border-radius: 999px;
    flex: 0 0 auto;
    transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

.public-choice:has(input:checked) {
    color: var(--brand-strong);
    background: linear-gradient(180deg, #e9f4ff 0%, #dcebff 100%);
    border-color: #79afe0;
    box-shadow: 0 0 0 3px rgba(18, 102, 179, 0.1);
}

.public-choice:has(input:checked) span::before {
    border-color: var(--brand);
    background: radial-gradient(circle at center, var(--brand) 0 45%, transparent 48% 100%);
}

.public-choice-wide {
    min-height: 56px;
    border-radius: 20px;
}

.public-state {
    padding: 12px 6px;
    text-align: center;
}

.public-state .emoji {
    font-size: 54px;
}

.public-state h1 {
    margin: 10px 0 8px;
    font-size: 33px;
}

.form-section { margin-top: 16px; }

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #31506f;
}

.form-input { width: 100%; }

.btn-block {
    width: 100%;
    margin-top: 22px;
    padding: 14px;
    font-size: 16px;
}

.kvkk {
    font-size: 14px;
    line-height: 1.65;
    color: #284562;
}

.kvkk h3 {
    margin: 18px 0 7px;
    font-size: 16px;
    color: #143251;
}

.kvkk ul {
    margin: 7px 0;
    padding-left: 20px;
}

.kvkk li { margin: 4px 0; }

.kvkk-note {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.55;
    color: #647e96;
}

/* SuperAdmin harita sayfası */
.map-canvas {
    height: 70vh;
    min-height: 420px;
    margin-top: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #e8eef4;
}

.map-empty {
    margin-top: 12px;
    padding: 14px 16px;
    color: var(--muted);
    background: var(--surface-soft);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-md);
}

.map-detay-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    color: var(--brand-strong);
}

/* Honeypot: ekran dışına alınır; gerçek kullanıcı görmez, botlar doldurur. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.landing-how {
    margin-top: 24px;
}

.landing-how h2 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #143251;
}

.landing-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.landing-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #2c4a68;
}

.landing-step .num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-strong);
    background: var(--brand-soft);
    border-radius: 50%;
}

.landing-foot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.security-banner {
    margin-bottom: 16px;
    padding: 12px 14px;
    font-size: 14px;
    color: #7f1024;
    background: #fff0f2;
    border: 1px solid #ffc8d2;
    border-radius: var(--radius-sm);
}

.security-banner code {
    padding: 1px 6px;
    color: #7f1024;
    background: #ffdbe1;
    border-radius: 5px;
}

.unread-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.unread-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    color: inherit;
    text-decoration: none;
    background: #eef6ff;
    border: 1px solid #d3e6fa;
    border-radius: var(--radius-sm);
}

.unread-row:hover { border-color: #91bde4; }

.unread-row .ur-plate {
    min-width: 80px;
    font-weight: 700;
}

.unread-row .ur-msg {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #4d6882;
}

.unread-row .ur-date {
    white-space: nowrap;
    font-size: 12px;
    color: #7b91a6;
}

.qr-preview { text-align: center; }

.qr-preview img {
    width: 210px;
    height: 210px;
    margin-top: 4px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    image-rendering: pixelated;
}

.qr-link {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.qr-link input {
    flex: 1;
    font-size: 12px;
    color: #516a83;
    background: #f4f8fc;
}

.qr-dl {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.color-input {
    width: 62px;
    height: 40px;
    padding: 2px;
}

#toast-host {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    min-width: 220px;
    max-width: 390px;
    padding: 13px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #16314c;
    background: #fff;
    border-left: 4px solid #95abc0;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(16, 35, 58, 0.26);
    opacity: 0;
    transform: translateX(16px);
    transition: opacity .22s ease, transform .22s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success { border-left-color: #16935a; }
.toast-error { border-left-color: #cf3040; }
.toast-info { border-left-color: var(--brand); }

.app-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(8, 23, 41, 0.52);
    backdrop-filter: blur(3px);
}

.app-confirm-box {
    width: min(94vw, 460px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modal-enter .18s cubic-bezier(.16, 1, .3, 1);
}

.app-confirm-head {
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    color: #0f2a46;
    background: linear-gradient(180deg, #f7fbff 0%, #f2f8ff 100%);
    border-bottom: 1px solid var(--line);
}

.app-confirm-body {
    padding: 16px 18px 8px;
    color: #36526e;
    line-height: 1.55;
}

.app-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px;
    background: #f8fbff;
    border-top: 1px solid var(--line);
}

.app-confirm-actions button {
    min-width: 96px;
}

@media (max-width: 1024px) {
    .content {
        max-width: none;
        padding: 24px 20px 36px;
    }

    .bar .bar-label { width: 136px; }
}

@media (max-width: 760px) {
    .layout { flex-direction: column; }

    .sidebar {
        width: 100%;
        padding: 16px 12px;
    }

    .content { padding: 16px 14px 30px; }

    h1 { font-size: 26px; }

    .cards { gap: 10px; }
    .card { min-width: 140px; }

    table.cards-mobile thead { display: none; }

    table.cards-mobile,
    table.cards-mobile tbody,
    table.cards-mobile tr,
    table.cards-mobile td {
        display: block;
        width: 100%;
    }

    table.cards-mobile tr {
        margin-bottom: 12px;
        padding: 10px 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
    }

    table.cards-mobile td {
        display: flex;
        gap: 10px;
        justify-content: space-between;
        padding: 6px 0;
        text-align: right;
        border: none;
    }

    table.cards-mobile td::before {
        content: attr(data-label);
        text-align: left;
        font-weight: 700;
        color: #6b839b;
    }

    table.cards-mobile td.row-actions {
        justify-content: flex-end;
        padding-top: 10px;
        border-top: 1px dashed #dce8f3;
    }

    table.cards-mobile td.row-actions::before { content: ""; }

    .public-shell {
        padding-top: 16px;
        padding-bottom: 28px;
    }

    .public-card {
        max-width: 100%;
        padding: 20px 16px;
        border-radius: 16px;
    }

    .public-hero {
        margin: -20px -16px 16px;
        padding: 18px 16px 14px;
    }

    .public-plate { font-size: 24px; }

    .public-choice-grid,
    .public-choice-grid-compact {
        grid-template-columns: 1fr 1fr;
    }

    .public-choice {
        min-height: 46px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .public-form-block {
        padding: 12px;
    }

    dialog[open] {
        width: min(96vw, 560px);
        border-radius: 14px;
    }

    .modal-body {
        padding: 18px 16px;
    }

    .modal-body > h2:first-child {
        margin: -18px -16px 16px;
        padding: 13px 16px;
    }

    .detail-summary {
        flex-direction: column;
        align-items: stretch;
    }

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

    .modal-actions {
        margin: 18px -16px -18px;
        padding: 12px 16px;
    }
}
