/* =============================================================================
   Prompttracker – Gestaltung wie im GMB-Tracker (GSH)
   Die Farben stecken in CSS-Variablen; hell/dunkel tauscht nur diese aus.
   ============================================================================= */

/* ---------- Farbwerte ---------- */
:root {
    --radius: 14px;
    --radius-sm: 9px;
    --sidebar-w: 244px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

    --blue: #2563eb;
    --blue-soft: rgba(37, 99, 235, .12);
    --green: #16a34a;
    --amber: #d97706;
    --red: #dc2626;
}

[data-theme="dark"] {
    --bg: #0b1120;
    --bg-side: #0f172a;
    --surface: #131c2e;
    --surface-2: #0b1220;
    --line: #1f2a3d;
    --line-soft: #172136;
    --text: #e6edf7;
    --text-dim: #94a3b8;
    --text-faint: #64748b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .28);
}

[data-theme="light"] {
    --bg: #f1f5f9;
    --bg-side: #ffffff;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --line: #e2e8f0;
    --line-soft: #eef2f7;
    --text: #0f172a;
    --text-dim: #55637a;
    --text-faint: #8593a8;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .08);
}

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.skip { position: absolute; left: -9999px; }
.skip:focus {
    left: 12px; top: 12px; z-index: 100;
    background: var(--surface); padding: 10px 14px; border-radius: var(--radius-sm);
}

/* ---------- Geruest ---------- */
.shell { display: flex; min-height: 100%; }

.sidebar {
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    background: var(--bg-side);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ---------- Marke ---------- */
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid var(--line-soft);
}

.brand-mit-logo { flex-direction: column; align-items: flex-start; gap: 9px; }
.brand-logo { display: block; max-width: 100%; max-height: 48px; width: auto; height: auto; }

.brand-mark {
    width: 36px; height: 36px; flex: 0 0 36px;
    border-radius: 10px;
    background: var(--blue); color: #fff;
    display: grid; place-items: center;
    font-weight: 800; font-size: 12px; letter-spacing: .02em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.brand-text strong { font-size: 14px; }
.brand-text small { color: var(--text-faint); font-size: 11.5px; }

/* Ein dunkles Logo bleibt auf dunklem Grund lesbar */
[data-theme="dark"] .brand-logo { filter: invert(1) hue-rotate(180deg); }

/* ---------- Navigation ---------- */
.nav { padding: 14px 10px; flex: 1 1 auto; overflow-y: auto; }

.nav-group {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-faint);
    font-weight: 700;
    padding: 14px 10px 6px;
}

.nav-group:first-child { padding-top: 2px; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.nav-item:hover { background: var(--line-soft); color: var(--text); }
.nav-item.is-active { background: var(--blue-soft); color: var(--blue); }

.nav-icon { display: grid; place-items: center; }
.nav-icon svg { width: 18px; height: 18px; }

/* ---------- Fuss der Seitenleiste ---------- */
.sidebar-foot {
    border-top: 1px solid var(--line-soft);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.who { display: flex; align-items: center; gap: 9px; min-width: 0; }
a.who { text-decoration: none; color: inherit; }
a.who:hover .who-text strong { color: var(--blue); }

.who-avatar {
    width: 30px; height: 30px; flex: 0 0 30px;
    border-radius: 50%;
    background: var(--blue-soft); color: var(--blue);
    display: grid; place-items: center;
    font-weight: 800; font-size: 13px;
}

.who-avatar svg { width: 15px; height: 15px; }

.who-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.who-text strong { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-text small { color: var(--text-faint); font-size: 11px; }

.sidebar-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.sidebar-actions form { display: inline; margin: 0; }

.icon-btn {
    width: 32px; height: 32px;
    padding: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text-dim);
    display: grid;
    place-items: center;
    cursor: pointer;
    text-decoration: none;
    flex: 0 0 auto;
}

.icon-btn:hover { background: var(--line-soft); color: var(--text); filter: none; }
.icon-btn svg { width: 16px; height: 16px; }
/* Symbol-Knopf zum Loeschen: grau wie die anderen, rot erst beim Ueberfahren.
   Spezifischer als "button.danger", sonst erbt er dessen rote Flaeche. */
button.icon-btn.danger, a.icon-btn.danger { background: transparent; }
button.icon-btn.danger:hover, a.icon-btn.danger:hover {
    color: var(--red); border-color: rgba(220, 38, 38, .35); background: rgba(220, 38, 38, .08); filter: none;
}

[data-theme="dark"] .icon-sun { display: grid; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: grid; }

/* ---------- Kopfleiste ---------- */
.topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-side);
    position: sticky;
    top: 0;
    z-index: 20;
    flex-wrap: wrap;
}

.topbar-title { flex: 1 1 auto; min-width: 0; }
.topbar-title h1 { margin: 0; font-size: 20px; line-height: 1.3; }
.topbar-title p { margin: 2px 0 0; color: var(--text-dim); font-size: 13.5px; }
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.only-mobile { display: none; }

/* ---------- Inhalt ---------- */
.content {
    padding: 24px 28px 8px;
    max-width: 1180px;
    width: 100%;
    flex: 1 1 auto;
}

.content.is-wide { max-width: none; }

.backlink { margin: 0 0 14px; }
.backlink a { color: var(--text-dim); text-decoration: none; font-size: 14px; }
.backlink a:hover { color: var(--text); }

/* ---------- Karten ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}

.card > h2:first-child,
.card > h3:first-child { margin-top: 0; }

.card h2 { font-size: 16px; margin: 0 0 4px; }
.card h3 { font-size: 14px; margin: 22px 0 4px; }

.card-sub { color: var(--text-dim); font-size: 13.5px; margin: 0 0 16px; }

.cards { display: grid; gap: 18px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Kennzahlen ---------- */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-label { color: var(--text-dim); font-size: 12.5px; font-weight: 600; }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.stat-hint { color: var(--text-faint); font-size: 12px; }

/* ---------- Formulare ---------- */
label {
    display: block;
    margin: 0 0 6px;
    font-weight: 600;
    font-size: 13.5px;
}

.field { margin-bottom: 16px; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: 14.5px;
}

input[type="color"] {
    width: 96px; height: 42px; padding: 4px; cursor: pointer;
    border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2);
}

input[type="file"] { font-family: inherit; font-size: 13.5px; color: var(--text-dim); max-width: 100%; }
input[type="file"]::file-selector-button {
    font: inherit; font-weight: 600; color: var(--text);
    margin-right: 10px; padding: 7px 12px; cursor: pointer;
    border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface);
}
input[type="file"]::file-selector-button:hover { background: var(--surface-2); }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-soft);
}

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

.hint { color: var(--text-faint); font-size: 12.5px; margin: 6px 0 0; }

button:disabled { opacity: .65; cursor: progress; }

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

.check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 6px;
    cursor: pointer;
}

.check input { width: auto; margin-top: 4px; }

/* ---------- Schaltflaechen ---------- */
.btn, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: var(--blue);
    color: #fff;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 9px 15px;
    font-weight: 600;
    font-size: 14px;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.4;
}

.btn:hover, button:hover { filter: brightness(1.08); }
.btn:active, button:active { transform: translateY(1px); }

.btn.alt, button.alt {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.btn.alt:hover, button.alt:hover { background: var(--line-soft); filter: none; }

.btn.ghost, button.ghost {
    background: transparent;
    color: var(--text-dim);
    border-color: transparent;
    padding: 6px 9px;
}

.btn.ghost:hover, button.ghost:hover { background: var(--line-soft); color: var(--text); filter: none; }

.btn.danger, button.danger { background: var(--red); }
.btn.small, button.small { padding: 6px 11px; font-size: 13px; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row.end { justify-content: flex-end; }

/* Symbole in Schaltflaechen: grau wie im GMB-Tracker, in Hauptschaltflaechen weiss */
svg.i { width: 16px; height: 16px; flex: 0 0 auto; }
.btn.alt svg.i, button.alt svg.i, .btn.ghost svg.i, button.ghost svg.i { color: var(--text-dim); }
.btn.alt:hover svg.i, button.alt:hover svg.i { color: var(--text); }
.btn.ghost.danger-text, button.ghost.danger-text,
.btn.ghost.danger-text svg.i, button.ghost.danger-text svg.i { color: var(--red); }

form.inline { display: inline; margin: 0; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; }
.card > .table-wrap { margin: 0 -22px -20px; padding: 0 22px 20px; }
.card > h2 + .table-wrap, .card > .card-sub + .table-wrap { margin-top: 8px; }

table { width: 100%; border-collapse: collapse; }

th, td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: middle;
    font-size: 14px;
}

th {
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom-color: var(--line);
    white-space: nowrap;
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--line-soft); }

td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.actions { text-align: right; white-space: nowrap; }
td.mitte, th.mitte { text-align: center; }
td.ja { color: var(--green); }
td.nein { color: var(--text-faint); }
td.ja svg.i { width: 18px; height: 18px; }
td .sub { display: block; font-size: 11.5px; color: var(--text-faint); font-weight: 400; }
tr.is-highlight > td { background: var(--blue-soft); }
/* Verweise in Tabellen: dunkel wie die Namen im GMB-Tracker, blau beim Ueberfahren */
td > a:not(.btn):not(.icon-btn) { color: var(--text); text-decoration: none; }
td > a:not(.btn):not(.icon-btn):hover { color: var(--blue); text-decoration: underline; }
.right { text-align: right; }

/* ---------- Meldungen und Marken ---------- */
.flash {
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    line-height: 1.6;
}

.flash.ok { background: rgba(22, 163, 74, .13); border-color: rgba(22, 163, 74, .35); color: var(--green); }
.flash.err { background: rgba(220, 38, 38, .13); border-color: rgba(220, 38, 38, .35); color: var(--red); }
.flash.warn { background: rgba(217, 119, 6, .13); border-color: rgba(217, 119, 6, .35); color: var(--amber); }

[data-theme="dark"] .flash.ok { color: #4ade80; }
[data-theme="dark"] .flash.err { color: #f87171; }
[data-theme="dark"] .flash.warn { color: #fbbf24; }

.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
}

.badge.ok { background: rgba(22, 163, 74, .14); color: var(--green); border-color: rgba(22, 163, 74, .3); }
.badge.off { background: var(--line-soft); color: var(--text-faint); border-color: var(--line); }
.badge.err { background: rgba(220, 38, 38, .14); color: var(--red); border-color: rgba(220, 38, 38, .3); }
.badge.info { background: var(--blue-soft); color: var(--blue); border-color: rgba(37, 99, 235, .3); }
.badge.warn { background: rgba(217, 119, 6, .14); color: var(--amber); border-color: rgba(217, 119, 6, .3); }

[data-theme="dark"] .badge.ok { color: #4ade80; }
[data-theme="dark"] .badge.err { color: #f87171; }

.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); font-size: 13px; }

.empty {
    text-align: center;
    padding: 34px 20px;
    color: var(--text-dim);
}

pre {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 13px 15px;
    overflow-x: auto;
    font-size: 12.5px;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

code {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 1px 5px;
    font-size: 13px;
}

details summary { cursor: pointer; color: var(--blue); font-size: 13.5px; }

/* ---------- Oeffentliche Seiten ohne Seitenleiste (Anmeldung) ---------- */
.public { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.public.is-narrow { max-width: 460px; }
.public.is-narrow .public-title { text-align: center; }

.public-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0 20px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
}

.public-head .brand { padding: 0; border: 0; }
.public .content { padding: 0; max-width: none; }

.public-title { margin-bottom: 22px; }
.public-title h1 { margin: 0; font-size: 26px; line-height: 1.25; }
.public-title p { margin: 6px 0 0; color: var(--text-dim); font-size: 14px; }

/* ---------- Fusszeile ---------- */
.footer { color: var(--text-faint); font-size: 12.5px; padding: 16px 28px 22px; }
.public .footer { padding-left: 0; padding-right: 0; text-align: center; }

/* =============================================================================
   Bausteine des Prompttrackers
   ============================================================================= */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.card-head h2, .card-head h3 { margin: 0; }

/* Kacheln innerhalb einer Karte - wie im Kampagnen-Dashboard des GMB-Trackers */
.cards.kacheln { gap: 14px; }
.box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.box .stat-value { font-size: 22px; line-height: 1.3; }

.panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px; }
.panel h3 { margin: 0 0 8px; font-size: 14px; }
.panel tbody tr:hover td { background: var(--line-soft); }

.progress { height: 8px; background: var(--line-soft); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: 0 0 auto; }
.progress > span { display: block; height: 100%; background: var(--blue); }
.bar-cell { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }

.response-box {
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 12px 14px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.6;
    max-height: 360px; overflow: auto;
}

details.antwort { border-top: 1px solid var(--line-soft); padding: 12px 0; }
details.antwort:first-of-type { border-top: 0; padding-top: 4px; }
details.antwort summary { color: var(--text); font-size: 14px; font-weight: 600; }
details.antwort .response-box, details.antwort .flash { margin: 10px 0 0; }

.model-list { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 14px; background: var(--surface-2); }
.model-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.model-row:first-child { border-top: 0; }
.model-row input[type="checkbox"] { width: auto; margin: 0; }
.model-row label { margin: 0; flex: 0 0 170px; }
.model-row select { max-width: 360px; }

select.compact, input.compact { width: auto; padding: 5px 9px; font-size: 13px; }

.suggest-cluster { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 12px; background: var(--surface-2); }
.suggest-cluster h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.suggest-prompt { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); font-weight: 400; margin: 0; cursor: pointer; }
.suggest-prompt:first-of-type { border-top: 0; }
.suggest-prompt input { width: auto; margin-top: 4px; }
.inline { display: inline; }
label.inline { display: inline-flex; align-items: center; gap: 8px; }

.spinner {
    display: inline-block; width: 15px; height: 15px;
    border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
    animation: spin .7s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.mt0 { margin-top: 0; }

/* MCP-Server und Freigabe */
ol.schritte, ul.fragen { margin: 4px 0 0; padding-left: 20px; }
ol.schritte li { margin-bottom: 8px; line-height: 1.55; }
ul.fragen li { margin-bottom: 6px; line-height: 1.5; }
.freigabe-liste { list-style: none; padding: 0; margin: 18px 0 20px; }
.freigabe-liste li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; line-height: 1.5; }
.freigabe-liste svg.i { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; }
.freigabe-liste li.ja svg.i { color: var(--green); }
.freigabe-liste li.nein svg.i { color: var(--red); }
.freigabe-knoepfe button { flex: 1 1 0; justify-content: center; }
input[readonly] { cursor: text; }

/* Info-Kreis mit Erklaerung beim Ueberfahren. Heisst bewusst .tip -
   .info ist im GMB-Stil schon das blaue Badge. */
.tip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 15px; height: 15px; border-radius: 50%;
    background: var(--text-faint); color: var(--surface);
    font-size: 10px; font-weight: 700; font-style: normal;
    cursor: help; position: relative; margin-left: 5px; vertical-align: middle;
    text-transform: none; letter-spacing: 0;
}
.tip::after {
    content: attr(data-tip);
    position: absolute; bottom: 145%; left: 50%; transform: translateX(-50%);
    background: #0f172a; color: #fff; padding: 9px 11px; border-radius: 8px;
    font-size: 12px; font-weight: 400; line-height: 1.45; text-align: left; text-transform: none;
    width: 250px; white-space: normal; z-index: 30;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .25);
    opacity: 0; visibility: hidden; transition: opacity .12s;
}
.tip::before {
    content: ""; position: absolute; bottom: 145%; left: 50%;
    transform: translateX(-50%) translateY(50%) rotate(45deg);
    width: 8px; height: 8px; background: #0f172a; z-index: 30;
    opacity: 0; visibility: hidden; transition: opacity .12s;
}
.tip:hover::after, .tip:hover::before { opacity: 1; visibility: visible; }

/* Rueckfragen im Mitbewerber-Deep-Dive */
.chat { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.bubble { max-width: 80%; align-self: flex-start; }
.bubble.me { align-self: flex-end; }
.bubble .msg { padding: 10px 14px; border-radius: 12px; white-space: pre-wrap; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.bubble.me .msg { background: var(--blue); border-color: transparent; color: #fff; }
.bubble .meta { font-size: 12px; color: var(--text-faint); margin-top: 3px; }
.bubble.me .meta { text-align: right; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; }
.chat-form textarea { min-height: 64px; }

canvas { max-width: 100%; }

/* ---------- Schmale Bildschirme ---------- */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .55);
    z-index: 40;
}

@media (max-width: 960px) {
    .cards.three, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .only-mobile { display: grid; }

    .sidebar {
        position: fixed;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform .18s ease;
        box-shadow: var(--shadow);
    }

    .sidebar.is-open { transform: none; }

    .topbar { padding: 14px 16px; }
    .content { padding: 18px 16px 8px; }
    .footer { padding-left: 16px; padding-right: 16px; }

    .cards.two, .cards.three, .cards.four, .grid, .grid3 { grid-template-columns: 1fr; }

    .card > .table-wrap { margin: 0 -16px -20px; padding: 0 16px 20px; }
    .model-row label { flex-basis: 100%; }
}
