/* ============================================================
   AI 数字人分身 · 独立版样式
   设计：圆角现代风 / 蓝·青·紫·琥珀
   ============================================================ */

:root {
    --blue: #2e5aa5;
    --blue-600: #13449a;
    --blue-soft: #eaf0fb;
    --cyan: #12a4a4;
    --cyan-soft: #e3f6f6;
    --purple: #6d4bd8;
    --purple-soft: #efeafc;
    --amber: #d98a12;
    --amber-soft: #fdf3e2;
    --red: #dc3938;
    --red-soft: #fdeceb;
    --green: #1a9c6a;
    --green-soft: #e6f7f0;

    --ink: #17203a;
    --ink-2: #46506b;
    --ink-3: #7b869e;
    --line: #e6eaf2;
    --line-2: #f1f4f9;
    --bg: #f5f7fb;
    --card: #ffffff;

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 22px;
    --shadow: 0 10px 30px rgba(23, 32, 58, .06);
    --shadow-lg: 0 18px 50px rgba(23, 32, 58, .10);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }

img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: .2px; }
small { font-size: 12px; }
.muted { color: var(--ink-3); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }
.nowrap { white-space: nowrap; }
.small { font-size: 12px; }
.err-text { color: var(--red); }
.t-right { text-align: right; }

/* ---------- 骨架 ---------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 236px;
    flex: 0 0 236px;
    background: var(--card);
    border-right: 1px solid var(--line);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.brand-mark {
    width: 38px; height: 38px; flex: 0 0 38px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    color: #fff; font-weight: 800; letter-spacing: .5px;
    box-shadow: 0 6px 18px rgba(46, 90, 165, .32);
}
.brand-mark-lg { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 18px; font-size: 18px; margin: 0 auto 12px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 15px; }
.brand-text small { color: var(--ink-3); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    color: var(--ink-2);
    font-weight: 500;
    transition: all .18s ease;
}
.nav-item:hover { background: var(--line-2); color: var(--ink); }
.nav-item.is-active {
    background: linear-gradient(135deg, rgba(46,90,165,.10), rgba(109,75,216,.10));
    color: var(--blue-600);
    font-weight: 600;
}
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.nav-item.is-active .nav-dot { background: linear-gradient(135deg, var(--blue), var(--purple)); }
.nav-sep { margin: 12px 12px 4px; font-size: 11px; color: var(--ink-3); letter-spacing: 1px; }

.sidebar-foot { display: flex; flex-direction: column; gap: 10px; }
.me-card {
    background: linear-gradient(135deg, var(--blue-soft), var(--purple-soft));
    border-radius: var(--r);
    padding: 12px;
}
.me-name { font-weight: 700; margin-bottom: 6px; }
.me-meta { display: flex; gap: 6px; flex-wrap: wrap; }

.main {
    flex: 1;
    min-width: 0;
    padding: 22px 28px 48px;
}

.topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.page-title { font-size: 21px; }
.topbar-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- 访客页 ---------- */
.guest-wrap {
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 32px 20px;
    background:
        radial-gradient(1000px 500px at 12% -10%, rgba(46,90,165,.10), transparent 60%),
        radial-gradient(900px 460px at 88% 8%, rgba(109,75,216,.10), transparent 58%),
        var(--bg);
    gap: 14px;
}
.auth-card {
    width: 100%; max-width: 420px;
    background: var(--card);
    border-radius: var(--r-lg);
    padding: 34px 30px 26px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--line);
    text-align: center;
}
.auth-brand h1 { font-size: 22px; margin-top: 4px; }
.auth-brand p { color: var(--ink-3); margin: 6px 0 22px; font-size: 13px; }
.auth-foot { margin-top: 16px; color: var(--ink-3); font-size: 13px; }
.auth-foot a { font-weight: 600; }

/* ---------- 卡片与栅格 ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid { display: grid; gap: 16px; }
.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)); }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px 20px;
    box-shadow: var(--shadow);
}
.card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.card-head h2 { font-size: 15px; }
.sub-head {
    margin: 16px 0 8px; font-size: 12px; font-weight: 700;
    color: var(--ink-3); letter-spacing: .5px; text-transform: uppercase;
}

/* ---------- 统计卡 ---------- */
.stat-card {
    position: relative; overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 16px 18px 20px;
    box-shadow: var(--shadow);
}
.stat-label { color: var(--ink-3); font-size: 12px; }
.stat-value { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin-top: 4px; }
.stat-value small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.stat-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; }
.tone-blue .stat-bar { background: linear-gradient(90deg, var(--blue), var(--purple)); }
.tone-teal .stat-bar { background: linear-gradient(90deg, var(--cyan), var(--blue)); }
.tone-purple .stat-bar { background: linear-gradient(90deg, var(--purple), #a07be8); }
.tone-amber .stat-bar { background: linear-gradient(90deg, var(--amber), #f0b455); }
.tone-blue .stat-value { color: var(--blue-600); }
.tone-teal .stat-value { color: #0d8a8a; }
.tone-purple .stat-value { color: var(--purple); }
.tone-amber .stat-value { color: var(--amber); }

/* ---------- 快捷入口 ---------- */
.quick { display: flex; flex-direction: column; gap: 10px; }
.quick-item {
    display: flex; flex-direction: column; gap: 2px;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    background: var(--line-2);
    transition: all .18s ease;
}
.quick-item:hover { background: var(--blue-soft); transform: translateX(3px); }
.quick-title { font-weight: 600; color: var(--ink); }
.quick-desc { font-size: 12px; color: var(--ink-3); }

/* ---------- 表单 ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-inline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: center; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-inline { flex-direction: row; align-items: center; gap: 8px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; gap: 8px; align-items: baseline; }
.field-label .hint { font-style: normal; font-weight: 400; font-size: 11px; color: var(--ink-3); }

.input {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: #fbfcfe;
    font-size: 14px;
    font-family: inherit;
    color: var(--ink);
    transition: border-color .18s, box-shadow .18s;
}
.input:focus {
    outline: none;
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(46, 90, 165, .12);
}
.textarea { resize: vertical; line-height: 1.7; }
.input-file { padding: 9px 12px; background: #fff; }
.input-sm { max-width: 120px; }
.input-xs { padding: 6px 9px; font-size: 12px; width: 96px; border-radius: 8px; }
select.input { appearance: none; background-image: none; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    font-size: 14px; font-weight: 600; font-family: inherit;
    cursor: pointer;
    transition: all .18s ease;
    white-space: nowrap;
}
.btn-block { width: 100%; }
.btn-lg { padding: 13px 20px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    color: #fff;
    box-shadow: 0 8px 22px rgba(46, 90, 165, .26);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgba(46, 90, 165, .32); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-danger { background: var(--red-soft); color: var(--red); border-color: #f7d3d2; }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.inline { display: inline-flex; }
.link { font-weight: 600; font-size: 13px; }

/* ---------- 提示 ---------- */
.alert {
    border-radius: var(--r-sm);
    padding: 11px 14px;
    font-size: 13px;
    margin-bottom: 14px;
    border: 1px solid transparent;
}
.alert-ok { background: var(--green-soft); color: #12704f; border-color: #c9ecdd; }
.alert-err { background: var(--red-soft); color: #a72a29; border-color: #f6d1d0; }

.notice {
    display: flex; flex-direction: column; gap: 3px;
    background: linear-gradient(135deg, var(--blue-soft), var(--purple-soft));
    border: 1px solid #dfe5f6;
    border-radius: var(--r);
    padding: 13px 16px;
}
.notice strong { color: var(--blue-600); font-size: 13px; }
.notice span { color: var(--ink-2); font-size: 13px; }
.notice-warn { background: linear-gradient(135deg, var(--amber-soft), #fdeee6); border-color: #f6e0c4; }
.notice-warn strong { color: #a5650a; }

.chip {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 600; line-height: 1.7;
}
.chip-amber { background: var(--amber-soft); color: #96600a; }
.chip-blue { background: var(--blue-soft); color: var(--blue-600); }
.chip-teal { background: var(--cyan-soft); color: #0c7d7d; }
.chip-purple { background: var(--purple-soft); color: #5636bd; }
.chip-muted { background: var(--line-2); color: var(--ink-3); }

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.is-success { background: var(--green-soft); color: #12704f; }
.is-failed { background: var(--red-soft); color: #a72a29; }
.is-running { background: var(--blue-soft); color: var(--blue-600); }
.is-pending { background: var(--line-2); color: var(--ink-3); }
.is-muted { background: var(--line-2); color: var(--ink-3); }

/* ---------- 任务列表 ---------- */
.task-list { display: flex; flex-direction: column; }
.task-row {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line-2);
    transition: background .16s;
}
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: var(--line-2); border-radius: var(--r-sm); }
.task-thumb {
    width: 46px; height: 46px; flex: 0 0 46px;
    border-radius: 12px; overflow: hidden;
    background: linear-gradient(135deg, var(--blue-soft), var(--purple-soft));
    display: grid; place-items: center;
}
.task-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback { font-size: 12px; font-weight: 800; color: var(--blue); }
.task-main { flex: 1; min-width: 0; }
.task-title { font-weight: 600; }
.task-sub { font-size: 12px; color: var(--ink-3); }
.task-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 90px; }

.task-card { padding: 0; overflow: hidden; }
.task-card-cover { background: var(--ink); aspect-ratio: 9 / 12; max-height: 320px; }
.task-card-cover video { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.cover-placeholder img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; filter: blur(1px) brightness(.72);
}
.cover-mask { position: relative; color: #fff; font-weight: 700; letter-spacing: 1px; }
.task-card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 7px; }
.task-card-title { font-weight: 600; }
.task-card-meta { font-size: 12px; color: var(--ink-3); }
.task-card-foot { display: flex; align-items: center; justify-content: space-between; }
.task-error { font-size: 12px; color: var(--red); background: var(--red-soft); border-radius: 8px; padding: 6px 9px; }

.progress { height: 5px; border-radius: 999px; background: var(--line-2); overflow: hidden; width: 100%; }
.progress-lg { height: 7px; max-width: 320px; margin: 0 auto; }
.progress i {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    border-radius: 999px;
    transition: width .5s ease;
}

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 6px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.tab {
    padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff;
    font-size: 13px; font-weight: 600; color: var(--ink-2);
    cursor: pointer; font-family: inherit;
}
.tab:hover { color: var(--ink); border-color: #d6dcea; }
.tab.is-active { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; border-color: transparent; }
.tabs-link { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tab-spacer { flex: 1; }
.tab-panel { display: flex; flex-direction: column; gap: 14px; }
.is-hidden { display: none !important; }

/* ---------- 形象选择 ---------- */
.avatar-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.avatar-option input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-box {
    display: block; border-radius: 12px; overflow: hidden;
    border: 2px solid var(--line); background: #fff;
    cursor: pointer; transition: all .18s;
}
.avatar-option input:checked + .avatar-box { border-color: var(--blue); box-shadow: 0 6px 18px rgba(46,90,165,.22); }
.avatar-box img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.avatar-name { display: block; padding: 5px 7px; font-size: 11px; text-align: center; color: var(--ink-2); }

.avatar-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.avatar-card-img { aspect-ratio: 1 / 1; background: var(--line-2); }
.avatar-card-img img { width: 100%; height: 100%; object-fit: cover; }
.avatar-card-body { padding: 11px 12px 13px; display: flex; flex-direction: column; gap: 7px; }
.avatar-card-name { font-weight: 600; }
.avatar-card-meta { font-size: 11px; color: var(--ink-3); }
.avatar-card-actions { display: flex; gap: 6px; }

/* ---------- 计费框 ---------- */
.cost-box {
    background: linear-gradient(135deg, var(--amber-soft), #fff8ec);
    border: 1px solid #f6e3c6;
    border-radius: var(--r-sm);
    padding: 12px 14px;
    margin: 4px 0 12px;
    display: flex; flex-direction: column; gap: 6px;
}
.cost-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); }
.cost-row strong { color: var(--ink); }
.cost-total { padding-top: 8px; border-top: 1px dashed #eccf9f; }
.cost-total strong { color: #a5650a; font-size: 17px; font-weight: 800; }

/* ---------- 详情 ---------- */
.preview-box {
    border-radius: var(--r); overflow: hidden;
    background: #0e1526;
    min-height: 300px;
    display: grid; place-items: center;
}
.preview-video { width: 100%; max-height: 520px; display: block; background: #000; }
.preview-loading { text-align: center; color: #c9d4ea; padding: 34px 20px; width: 100%; }
.preview-failed { color: #ffb4b3; }
.spinner {
    width: 34px; height: 34px; margin: 0 auto 12px;
    border: 3px solid rgba(201,212,234,.25);
    border-top-color: #7aa2ff;
    border-radius: 50%;
    animation: dh-spin .9s linear infinite;
}
@keyframes dh-spin { to { transform: rotate(360deg); } }

.kv { margin: 0; display: flex; flex-direction: column; }
.kv > div {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 8px 0; border-bottom: 1px dashed var(--line-2);
}
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-3); font-size: 13px; margin: 0; }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

.quote {
    background: var(--line-2);
    border-left: 3px solid var(--blue);
    border-radius: 0 10px 10px 0;
    padding: 11px 14px;
    color: var(--ink-2);
    font-size: 13px;
}

.log-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 340px; overflow-y: auto; }
.log-item {
    display: flex; gap: 10px; align-items: baseline;
    padding: 7px 0; border-bottom: 1px dashed var(--line-2);
    font-size: 12px;
}
.log-time { color: var(--ink-3); flex: 0 0 132px; font-family: ui-monospace, monospace; }
.log-level { flex: 0 0 52px; font-weight: 800; color: var(--blue); }
.log-msg { flex: 1; word-break: break-all; color: var(--ink-2); }
.log-error .log-level { color: var(--red); }
.log-warn .log-level { color: var(--amber); }
.log-debug .log-level { color: var(--ink-3); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 10px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line-2); }
.table th { font-size: 12px; color: var(--ink-3); font-weight: 700; background: var(--line-2); white-space: nowrap; }
.table tbody tr:hover { background: #fafbfe; }
.cell-title { max-width: 260px; }
.op-group { display: flex; flex-direction: column; gap: 6px; }
.op-form { display: flex; gap: 5px; align-items: center; }

/* ---------- 分页 / 空态 / 其他 ---------- */
.pager { display: flex; gap: 6px; justify-content: center; padding-top: 16px; flex-wrap: wrap; }
.page {
    min-width: 34px; height: 34px; border-radius: 10px;
    display: grid; place-items: center;
    border: 1px solid var(--line); background: #fff;
    font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.page.is-active { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; border-color: transparent; }

.empty { text-align: center; padding: 34px 20px; display: flex; flex-direction: column; gap: 12px; align-items: center; color: var(--ink-3); }
.empty p { margin: 0; }

.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.row-top { margin-top: 0; }

.tips { margin: 0; padding-left: 18px; color: var(--ink-2); display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.foot-note { font-size: 12px; color: var(--ink-3); margin: 0; }

.engine-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-box {
    display: flex; flex-direction: column; gap: 4px;
    border: 2px solid var(--line); border-radius: var(--r);
    padding: 14px 16px; cursor: pointer; background: #fff;
    transition: all .18s;
}
.radio-box strong { font-size: 14px; }
.radio-box small { color: var(--ink-3); line-height: 1.6; }
.radio-card input:checked + .radio-box { border-color: var(--blue); background: var(--blue-soft); }
.radio-card input:checked + .radio-box strong { color: var(--blue-600); }

.code-block {
    background: #0e1526; color: #c7d6f5;
    border-radius: var(--r-sm);
    padding: 12px 14px;
    font-size: 12px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    overflow-x: auto;
    margin: 8px 0 0;
}

/* ---------- 错误页 ---------- */
.error-card { max-width: 620px; margin: 60px auto; text-align: center; }
.error-code { font-size: 48px; font-weight: 800; color: var(--blue); letter-spacing: -1px; }
.error-title { font-size: 17px; margin: 6px 0 12px; color: var(--ink-2); }
.error-detail {
    text-align: left; background: #0e1526; color: #c7d6f5;
    border-radius: 10px; padding: 12px; font-size: 12px;
    overflow-x: auto; max-height: 260px;
}
.error-card .row-actions { justify-content: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .shell { flex-direction: column; }
    .sidebar {
        width: 100%; flex: none; height: auto; position: static;
        border-right: 0; border-bottom: 1px solid var(--line);
        padding: 14px 16px;
    }
    .nav { flex-direction: row; flex-wrap: wrap; }
    .nav-item { padding: 8px 12px; }
    .nav-sep { display: none; }
    .sidebar-foot { flex-direction: row; align-items: center; }
    .me-card { flex: 1; }
    .main { padding: 16px 16px 40px; }
    .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .avatar-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .engine-mode { grid-template-columns: minmax(0, 1fr); }
}
