/* ==========================================================
   MyTV 控制台样式
   ========================================================== */
:root {
    --primary: #3b6ef6;
    --primary-dark: #2b57d6;
    --primary-soft: #eaf0ff;
    --success: #12b76a;
    --success-soft: #e6f8ef;
    --danger: #e5484d;
    --danger-soft: #fdecec;
    --warn: #f79009;
    --warn-soft: #fdf3e2;
    --info: #4f7cff;
    --info-soft: #eef2ff;
    --ink: #1a2233;
    --ink-2: #46506a;
    --muted: #7b869c;
    --line: #e7ebf3;
    --bg: #f4f6fb;
    --card: #ffffff;
    --sidebar: #101728;
    --sidebar-2: #0b1120;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px -20px rgba(16, 24, 40, .35);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--ink);
    font: 14px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
code, .mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
    font-size: 12.5px;
}
.muted { color: var(--muted); }
.ta-r { text-align: right; }
.inline { display: inline-block; margin: 0; }
svg.i { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------------- 布局 ---------------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: 236px;
    flex: 0 0 236px;
    background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
    color: #c7d1e3;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 40;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 18px 18px;
}
.brand-mark {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #4d7cff, #7a5cff);
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(77, 124, 255, .9);
}
.brand-mark svg.i { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { color: #fff; font-size: 15px; letter-spacing: .2px; }
.brand-text small { color: #6f7d96; font-size: 11.5px; }

.nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.nav-group {
    padding: 14px 10px 6px;
    font-size: 11px;
    letter-spacing: .08em;
    color: #5c6980;
    text-transform: uppercase;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #b9c4d8;
    font-size: 13.5px;
    transition: background .15s, color .15s;
    position: relative;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.is-active {
    background: linear-gradient(90deg, rgba(77, 124, 255, .28), rgba(77, 124, 255, .08));
    color: #fff;
    font-weight: 600;
}
.nav-item.is-active::before {
    content: "";
    position: absolute; left: -10px; top: 9px; bottom: 9px;
    width: 3px; border-radius: 0 3px 3px 0;
    background: #6f9bff;
}
.sidebar-foot { padding: 10px; border-top: 1px solid rgba(255, 255, 255, .07); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 26px;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 30;
}
.topbar-title h1 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: .2px; }
.topbar-title p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.domain-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 12.5px;
    max-width: 320px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.domain-chip svg.i { width: 14px; height: 14px; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #3b6ef6, #7a5cff);
    color: #fff; font-weight: 700; font-size: 14px;
}
.menu-btn { display: none; }

.content { padding: 22px 26px 40px; flex: 1; }
.footer {
    display: flex; justify-content: space-between;
    padding: 14px 26px 22px;
    color: var(--muted); font-size: 12px;
}

/* ---------------- 卡片 / 栅格 ---------------- */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    overflow: hidden;
}
.card-pad { padding: 18px; }
.card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.card-head h2 { margin: 0; font-size: 14.5px; font-weight: 650; }
.card-sub { color: var(--muted); font-size: 12px; }
.form-card { border-color: #cfdbfa; box-shadow: 0 0 0 3px rgba(59, 110, 246, .06), var(--shadow); }

.grid { display: grid; gap: 18px; margin-bottom: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.grid > .card { margin-bottom: 18px; }
.grid.compact { gap: 12px; margin-bottom: 18px; }

/* ---------------- 统计卡 ---------------- */
.stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
}
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { color: var(--muted); font-size: 12.5px; }
.stat-icon {
    width: 32px; height: 32px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--primary-soft); color: var(--primary);
}
.stat-icon.is-danger { background: var(--danger-soft); color: var(--danger); }
.stat-value { font-size: 28px; font-weight: 700; letter-spacing: -.5px; margin: 6px 0 4px; }
.stat-unit { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.stat-foot { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.stat-foot .up { color: var(--success); font-weight: 600; }

.mini-stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    font-size: 12.5px; color: var(--muted);
}
.mini-stat strong { font-size: 20px; color: var(--ink); }
.mini-stat strong.is-danger { color: var(--danger); }

/* ---------------- 图表 ---------------- */
.chart {
    display: flex; align-items: flex-end; gap: 10px;
    height: 210px; padding: 22px 20px 14px;
}
.chart-col {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    height: 100%; gap: 6px;
}
.chart-bar {
    width: 100%; max-width: 46px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #6f9bff, #3b6ef6);
    transition: filter .15s;
}
.chart-col:hover .chart-bar { filter: brightness(1.08); }
.chart-value { font-size: 11.5px; color: var(--muted); }
.chart-label { font-size: 11.5px; color: var(--muted); }

/* ---------------- 快捷操作 ---------------- */
.quick-actions {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 10px; padding: 16px 18px 8px;
}
.quick {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    padding: 14px 8px;
    border: 1px dashed var(--line);
    border-radius: var(--radius-sm);
    color: var(--ink-2); font-size: 12.5px;
    transition: .15s;
}
.quick:hover { border-color: #b9cdfb; background: var(--primary-soft); color: var(--primary-dark); }
.quick svg.i { width: 20px; height: 20px; color: var(--primary); }

.link { font-size: 12.5px; font-weight: 600; color: var(--primary); }
.link:hover { text-decoration: underline; }

.card-list { padding: 8px 18px 16px; }
.kv {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 9px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 12.5px; color: var(--muted);
}
.kv:last-child { border-bottom: 0; }
.kv code { color: var(--ink-2); word-break: break-all; text-align: right; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
    text-align: left; font-size: 12px; font-weight: 600; color: var(--muted);
    padding: 11px 18px; background: #fafbfe;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.table td {
    padding: 13px 18px; border-bottom: 1px solid #f1f4fa; vertical-align: middle;
}
.table tbody tr:hover { background: #fbfcff; }
.table tbody tr:last-child td { border-bottom: 0; }
.cell-main { font-size: 13.5px; font-weight: 550; color: var(--ink); }
.cell-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.row-actions { display: inline-flex; align-items: center; gap: 4px; }
.ad-cell { display: flex; align-items: center; gap: 10px; }
.thumb-sm { width: 54px; height: 34px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); }
.thumb { margin-top: 8px; max-width: 220px; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; }

/* ---------------- 徽章 ---------------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 9px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600; line-height: 1.7;
    background: #f2f4f9; color: var(--ink-2);
    white-space: nowrap;
}
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; }
.badge-success { background: var(--success-soft); color: #0b8a51; }
.badge-danger { background: var(--danger-soft); color: #c0353a; }
.badge-warn { background: var(--warn-soft); color: #b96a05; }
.badge-info { background: var(--info-soft); color: #3a5fd0; }
.badge-muted { background: #f2f4f9; color: #6a7488; }
.dot-live {
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--success); margin-left: 6px;
    box-shadow: 0 0 0 3px rgba(18, 183, 106, .18);
}

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; padding: 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: #eef1f7; color: var(--ink);
    font-size: 13px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { background: #e5e9f2; }
.btn svg.i { width: 16px; height: 16px; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 18px -12px rgba(59, 110, 246, .9); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #cf3b40; color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: #c9d6f7; background: #f7f9ff; color: var(--primary-dark); }

.icon-btn {
    width: 32px; height: 32px; border-radius: 9px;
    display: inline-grid; place-items: center;
    border: 1px solid transparent; background: transparent;
    color: var(--muted); cursor: pointer; transition: .15s; padding: 0;
}
.icon-btn:hover { background: #eef1f7; color: var(--ink); }
.icon-btn.is-danger:hover { background: var(--danger-soft); color: var(--danger); }
.icon-btn.mini { width: 22px; height: 22px; vertical-align: middle; }
.icon-btn.mini svg.i { width: 13px; height: 13px; }
.icon-btn svg.i { width: 17px; height: 17px; }

/* ---------------- 工具栏 / 过滤 ---------------- */
.toolbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 14px 18px; flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
}
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search {
    display: flex; align-items: center; gap: 6px;
    height: 32px; padding: 0 10px;
    border: 1px solid var(--line); border-radius: 9px; background: #fff;
}
.search svg.i { width: 15px; height: 15px; color: var(--muted); }
.search input { border: 0; outline: 0; font-size: 12.5px; width: 180px; background: transparent; font-family: inherit; }
select, input[type="text"], input[type="url"], input[type="number"], input[type="search"],
input[type="password"], input[type="datetime-local"], input[type="file"], textarea {
    font-family: inherit; font-size: 13px; color: var(--ink);
    border: 1px solid var(--line); border-radius: 9px;
    background: #fff; padding: 8px 11px; outline: none;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.filter select { width: auto; height: 32px; padding: 0 10px; font-size: 12.5px; }
select:focus, input:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 110, 246, .12);
}
textarea { resize: vertical; line-height: 1.7; }

/* ---------------- 表单 ---------------- */
.form { padding: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field > span em { color: var(--danger); font-style: normal; }
.field small { display: block; margin-top: 5px; font-size: 11.5px; color: var(--muted); }
.form-actions { display: flex; gap: 10px; padding-top: 6px; }
.checks { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.checks-wrap { max-height: 120px; overflow-y: auto; }
.checks-col { flex-direction: column; align-items: flex-start; gap: 10px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }

.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-ui {
    width: 38px; height: 22px; border-radius: 999px; background: #d8dee9;
    position: relative; transition: .18s; flex: 0 0 auto;
}
.switch-ui::after {
    content: ""; position: absolute; top: 3px; left: 3px;
    width: 16px; height: 16px; border-radius: 50%; background: #fff;
    transition: .18s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.switch input:checked + .switch-ui { background: var(--primary); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }

.panel { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px 4px; margin-bottom: 16px; background: #fbfcff; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-head strong { font-size: 13px; }

/* ---------------- 提示 ---------------- */
.alert { padding: 11px 15px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; }
.alert-success { background: var(--success-soft); color: #0b7a49; }
.alert-danger { background: var(--danger-soft); color: #b8282d; }
.alert-warn { background: var(--warn-soft); color: #a25f05; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; align-items: center; gap: 6px; padding: 14px 18px; flex-wrap: wrap; }
.pager-item {
    min-width: 32px; height: 32px; padding: 0 10px;
    display: inline-grid; place-items: center;
    border: 1px solid var(--line); border-radius: 9px;
    font-size: 12.5px; color: var(--ink-2); background: #fff;
}
.pager-item:hover { border-color: #b9cdfb; color: var(--primary); }
.pager-item.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager-item.is-disabled { color: #c3c9d6; background: #f7f8fc; }
.pager-info { margin-left: auto; font-size: 12px; color: var(--muted); }

/* ---------------- 空状态 ---------------- */
.empty { padding: 46px 20px; text-align: center; color: var(--muted); }
.empty-icon {
    width: 46px; height: 46px; margin: 0 auto 10px;
    display: grid; place-items: center;
    border-radius: 14px; background: #f2f5fb; color: #b3bdd1;
}
.empty-icon svg.i { width: 22px; height: 22px; }
.empty p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.empty small { display: block; margin-top: 5px; font-size: 12px; }

/* ---------------- 时间线 ---------------- */
.timeline { list-style: none; margin: 0; padding: 16px 18px 18px; }
.timeline li { display: flex; gap: 12px; padding: 8px 0; position: relative; }
.timeline .dot {
    width: 8px; height: 8px; border-radius: 50%; background: #c7d6f9;
    margin-top: 7px; flex: 0 0 auto;
}
.timeline strong { font-size: 13px; font-weight: 600; }
.timeline .muted { font-size: 12px; }
.timeline small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }

/* ---------------- 弹窗 ---------------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(12, 18, 32, .55); backdrop-filter: blur(2px); }
.modal-card {
    position: relative; width: 100%; max-width: 460px;
    background: #fff; border-radius: var(--radius);
    box-shadow: 0 24px 60px -20px rgba(9, 15, 30, .45);
    animation: pop .16s ease-out;
}
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 15px; }
.modal-body { padding: 18px; }
.modal-text { margin: 0 0 14px; font-size: 13px; color: var(--ink-2); }

/* ---------------- Toast ---------------- */
.toast-wrap { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast {
    padding: 11px 16px; border-radius: var(--radius-sm);
    background: #1a2233; color: #fff; font-size: 13px;
    box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .6);
    animation: slideIn .18s ease-out;
}
@keyframes slideIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------- 文档页 ---------------- */
.doc-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.page-actions {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px; flex-wrap: wrap;
    font-size: 12.5px;
}
.page-actions .muted { font-size: 12px; }
.doc-value { font-size: 14px; font-weight: 600; color: var(--ink); word-break: break-all; margin-bottom: 10px; }
.doc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.doc-body { padding: 18px; font-size: 13px; color: var(--ink-2); }
.doc-body p { margin: 0 0 12px; line-height: 1.8; }
.doc-body b { color: var(--ink); }
.code {
    background: #0f1626; color: #d5e0f5;
    padding: 14px 16px; border-radius: var(--radius-sm);
    overflow-x: auto; font-size: 12.5px; line-height: 1.75;
    margin: 0 0 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre;
}
.doc-body .code { margin-top: 6px; }
.tabs { padding: 0; }
.tab-bar { display: flex; gap: 4px; padding: 12px 18px 0; border-bottom: 1px solid var(--line); }
.tab {
    padding: 8px 14px; border: 0; background: transparent; cursor: pointer;
    font-size: 13px; color: var(--muted); font-family: inherit;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.is-active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.tab-panel { display: none; padding: 16px 18px; }
.tab-panel.is-active { display: block; }
.tab-panel .code { margin: 0; }
.debug-out { display: grid; gap: 12px; margin-top: 16px; }
.debug-title { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }

/* ---------------- 登录页 ---------------- */
.auth-page {
    min-height: 100vh; display: grid; place-items: center;
    background: radial-gradient(1200px 600px at 20% -10%, #1d2a4d 0%, #0b1120 55%, #070b14 100%);
    padding: 24px;
}
.auth-card {
    width: 100%; max-width: 384px;
    background: #fff; border-radius: 18px; padding: 26px;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.auth-brand strong { display: block; font-size: 16px; }
.auth-brand small { color: var(--muted); font-size: 12px; }
.auth-form .field input { height: 42px; }
.auth-form .btn { margin-top: 6px; height: 42px; }
.auth-foot {
    display: flex; justify-content: space-between;
    margin-top: 18px; padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 11.5px; color: var(--muted);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1180px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-2-1, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .sidebar {
        position: fixed; left: 0; top: 0; bottom: 0;
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: 0 0 60px rgba(0, 0, 0, .4);
    }
    .sidebar.is-open { transform: none; }
    .menu-btn { display: inline-grid; }
    .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
    .content { padding: 16px 14px 32px; }
    .topbar { padding: 14px 16px; }
    .domain-chip { display: none; }
    .form-grid, .form-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .footer { padding: 12px 16px 20px; }
}
