/* ==========================================================================
   StreamSence 后台 · 样式（浅色主题，主色与站点一致的溪水青）
   ========================================================================== */
:root {
    --accent: #146e5c;
    --accent-2: #0f5748;
    --accent-soft: #e7f2ef;
    --bg: #f4f6f6;
    --panel: #ffffff;
    --line: #e3e8e7;
    --line-strong: #cfd8d6;
    --text: #1b2523;
    --muted: #6c7b78;
    --ok: #1e8e5a;
    --warn: #c07d13;
    --err: #c0392b;
    --sidebar: #12211d;
    --sidebar-2: #0d1a17;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(18, 34, 30, .06), 0 6px 18px rgba(18, 34, 30, .05);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
code { background: #eef2f1; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.muted { color: var(--muted); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 14px; }
.mt-lg { margin-top: 26px; }
.strong { font-weight: 600; }
.inline { display: inline; }
.hidden-form { display: none; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 236px;
    flex: 0 0 236px;
    background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-2) 100%);
    color: #cfd9d6;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand { padding: 20px 20px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.brand-cn { display: block; font-size: 22px; letter-spacing: 6px; color: #fff; }
.brand-en { display: block; font-size: 11px; letter-spacing: 2px; color: #7f9990; }
.brand-sub { display: block; margin-top: 8px; font-size: 12px; color: #8faea5; }

.nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.nav-group { padding: 14px 12px 6px; font-size: 11px; letter-spacing: 2px; color: #6d857d; }
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; margin-bottom: 2px;
    border-radius: 8px; color: #cfd9d6; font-size: 14px;
}
.nav-item .ico { width: 18px; text-align: center; opacity: .8; }
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.active { background: var(--accent); color: #fff; }

.sidebar-foot { padding: 14px 18px 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.db-chip {
    display: inline-block; padding: 2px 8px; border-radius: 20px;
    background: rgba(255, 255, 255, .12); color: #b7d6cd; font-size: 11px; letter-spacing: 1px;
}
.site-path { margin-top: 8px; font-size: 11px; color: #6d857d; word-break: break-all; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 26px; background: #fff; border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 20;
}
.page-title { font-size: 19px; flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.burger { display: none; background: none; border: 0; font-size: 20px; cursor: pointer; }

.userbox { display: flex; align-items: center; gap: 10px; padding-left: 14px; border-left: 1px solid var(--line); }
.avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent);
    display: grid; place-items: center; font-weight: 700;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.2; }
.user-meta small { color: var(--muted); font-size: 11px; }

.content { padding: 22px 26px 60px; }

/* ---------- 卡片 / 面板 ---------- */
.panel {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
    margin-bottom: 20px; overflow: hidden;
}
.panel-head {
    display: flex; align-items: baseline; gap: 10px;
    padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fbfcfc;
}
.panel-head h2 { font-size: 15px; }
.panel-head .hint { color: var(--muted); font-size: 12px; }

/* ---------- 面板内容内边距（表格 / 图片网格 / 工具条等通栏内容除外） ---------- */
.panel > form:not(.inline-form),
.panel > .kv,
.panel > .field,
.panel > .i18n-grid,
.panel > .check-grid,
.panel > .bk-list,
.panel > .btn-block,
.panel > p:not(.empty) {
    margin-left: 18px;
    margin-right: 18px;
}
.panel > form:not(.inline-form) { margin-top: 16px; margin-bottom: 18px; }
.panel > .kv,
.panel > .bk-list { margin-top: 14px; }

.stat-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px; margin-bottom: 20px;
}
.stat-grid-sm { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 18px; box-shadow: var(--shadow);
}
.stat-num { font-size: 30px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.stat-of { font-size: 14px; color: var(--muted); font-weight: 400; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 2px; }
.stat-sub { font-size: 12px; color: var(--muted); margin-top: 8px; }
.stat-link { display: inline-block; margin-top: 10px; font-size: 12px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.two-col-side { grid-template-columns: 1.6fr 1fr; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; }
.table th { background: #fbfcfc; font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.table tbody tr:hover { background: #fafcfb; }
.table tbody tr:last-child td { border-bottom: 0; }
.table-compact th, .table-compact td { padding: 8px 14px; }
.row-editing { background: #f3f8f6; }
.w-check { width: 34px; }
.w-img { width: 62px; }
.w-code { width: 130px; }
.w-status { width: 92px; }
.w-time { width: 96px; }
.w-act { width: 150px; }
.w-key { width: 230px; }

.thumb {
    width: 46px; height: 46px; object-fit: cover; border-radius: 6px;
    border: 1px solid var(--line); display: block; background: #f2f4f4;
}
.thumb-empty { display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.cover-preview { width: 100%; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 10px; }

/* ---------- 标签 / 徽标 ---------- */
.tag {
    display: inline-block; padding: 1px 7px; border-radius: 4px;
    background: #eef2f1; color: #55605e; font-size: 11px;
}
.chip {
    display: inline-block; padding: 2px 9px; margin: 1px 2px 1px 0;
    border-radius: 20px; font-size: 11px; background: var(--accent-soft); color: var(--accent-2);
}
.chip-sub { background: #eef1f6; color: #4a5670; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.badge-ok { background: #e3f5ea; color: var(--ok); }
.badge-warn { background: #fbf1dd; color: var(--warn); }
.badge-mute { background: #eef0f0; color: var(--muted); }
.loc-dot {
    display: inline-block; margin: 1px 2px 1px 0; padding: 1px 5px;
    border-radius: 3px; font-size: 10px; background: #e3f5ea; color: var(--ok);
}
.loc-dot.miss { background: #f6e4e2; color: var(--err); }

.bar { height: 6px; border-radius: 4px; background: #eef1f1; overflow: hidden; margin-bottom: 4px; }
.bar span { display: block; height: 100%; background: var(--accent); }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 6px; justify-content: center;
    padding: 8px 15px; border: 1px solid var(--line-strong); border-radius: 8px;
    background: #fff; color: var(--text); font-size: 13px; cursor: pointer; transition: .15s;
    font-family: inherit;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-ghost { background: #fff; }
.btn-ghost.danger { color: var(--err); }
.btn-ghost.danger:hover { border-color: var(--err); color: var(--err); }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-xs { padding: 2px 8px; font-size: 11px; border-radius: 6px; }
.btn-lg { padding: 12px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn.disabled, .btn:disabled { opacity: .5; pointer-events: none; }

/* ---------- 表单 ---------- */
.field { display: block; margin-bottom: 14px; }
.field-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.field-label em { font-style: normal; color: #9aa8a5; font-size: 11px; margin-left: 4px; }
input[type=text], input[type=search], input[type=password], input[type=number], input[type=date],
select, textarea {
    width: 100%; padding: 8px 11px; border: 1px solid var(--line-strong);
    border-radius: 8px; background: #fff; font: inherit; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 110, 92, .1); }
input:disabled { background: #f4f6f6; color: var(--muted); }
input.tiny, .tiny-input { width: 62px; }
textarea { resize: vertical; min-height: 60px; font-family: inherit; }
.is-empty { background: #fdf7f6; border-color: #e8cfcb; }

.checkline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.checkline input { width: auto; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.check-card {
    display: flex; align-items: center; gap: 8px; padding: 8px 11px;
    border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff;
}
.check-card input { width: auto; }
.check-card em { font-style: normal; color: #9aa8a5; font-size: 11px; margin-left: auto; }
.check-card:hover { border-color: var(--accent); }

.i18n-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-layout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.form-main { min-width: 0; }
.form-side { position: sticky; top: 78px; }
.form-side .panel { padding-bottom: 4px; }
.form-side .panel > *:not(.panel-head) { margin-left: 18px; margin-right: 18px; }
.form-side .panel > .btn-block { width: calc(100% - 36px); margin-bottom: 18px; }
.form-side .panel > .inline { margin-left: 0; margin-right: 0; }

.filter-bar {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px 14px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.filter-bar input[type=search] { flex: 1 1 220px; min-width: 180px; }
.filter-bar select { width: auto; min-width: 130px; }

.bulk-bar {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    padding: 0 2px 12px;
}
.bulk-bar select { width: auto; min-width: 150px; }
.bulk-sep { width: 1px; height: 20px; background: var(--line-strong); }
.js-bulk-field { display: none; }
.js-bulk-field.show { display: block; }

.inline-form { display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.inline-form input[type=file], .inline-form input[type=text] { width: auto; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 18px 0; }
.tabs-loose { padding: 0 0 16px; }
.tab {
    padding: 6px 13px; border: 1px solid var(--line); border-radius: 20px;
    background: #fff; font-size: 12px; cursor: pointer; color: var(--muted);
    font-family: inherit; display: inline-flex; align-items: center; gap: 6px;
}
.tab:hover { border-color: var(--accent); color: var(--accent); }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab .cnt { font-size: 10px; opacity: .7; }
.tab .dot { width: 6px; height: 6px; border-radius: 50%; background: #d6dcda; display: inline-block; }
.tab .dot.ok { background: #6fd3a4; }
.tab-panes { padding: 14px 18px 18px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---------- 区块编辑器 ---------- */
.bk-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.bk { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.bk:hover { border-color: var(--line-strong); }
.bk-head {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px;
    background: #fbfcfc; border-bottom: 1px solid var(--line);
}
.bk-no { font-size: 11px; color: var(--muted); width: 22px; }
.bk-head select { width: auto; min-width: 132px; padding: 4px 8px; font-size: 12px; }
.bk-tools { margin-left: auto; display: flex; gap: 4px; }
.bk-body { padding: 12px; }
.bk-field { display: none; margin-bottom: 8px; }
.bk-field.show { display: block; }
.bk-field textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.bk[data-tag="hr"] .bk-body { display: none; }
.bk[data-tag="hr"] { background: #fbfcfc; }

/* ---------- 图片网格 ---------- */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 14px 18px 0; }
.img-item { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.img-item img { width: 100%; height: 120px; object-fit: cover; display: block; background: #f2f4f4; }
.img-item figcaption { padding: 8px; font-size: 11px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.img-idx { font-weight: 700; color: var(--accent); }
.mini { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.danger-check { color: var(--err); }
.img-item figcaption .muted { flex-basis: 100%; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; padding: 16px 18px; }
.media-item { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.media-item img { width: 100%; height: 130px; object-fit: cover; display: block; background: #f2f4f4; }
.media-item figcaption { padding: 8px 10px; }
.media-name { font-size: 12px; word-break: break-all; }
.media-actions { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; padding: 16px 18px 0; }
.dir-card {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #fff;
}
.dir-card:hover { border-color: var(--accent); }
.dir-ico { color: var(--accent); }
.dir-name { font-weight: 600; }
.dir-count { margin-left: auto; font-size: 11px; color: var(--muted); }

.crumbs { padding: 12px 18px 0; font-size: 12px; color: var(--muted); }
.crumbs span { margin: 0 4px; }

/* ---------- 词条表 ---------- */
.table-locales td { vertical-align: top; }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.loc-cell { display: block; }
.loc-code { display: block; font-size: 10px; color: var(--muted); margin-bottom: 2px; }
.loc-cell input { padding: 5px 8px; font-size: 12px; }

/* ---------- 其他 ---------- */
.kv { list-style: none; margin: 0 0 12px; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.kv li:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv strong { font-weight: 500; text-align: right; word-break: break-all; }

.empty { padding: 26px 18px; text-align: center; color: var(--muted); font-size: 13px; }

.flashes { margin-bottom: 16px; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; border: 1px solid transparent; }
.flash-ok { background: #e8f6ee; color: #14603f; border-color: #c5e6d3; }
.flash-error { background: #fdecea; color: #8f2a20; border-color: #f3cdc7; }
.flash-warn { background: #fdf5e3; color: #7a5510; border-color: #f0e0bd; }
.flash-info { background: #f1f4f4; color: #40514e; border-color: #dfe5e4; }

/* ---------- 同步发布 ---------- */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 16px 18px 4px; }
.flow-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfc; }
.flow-no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.sync-btns { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 18px 18px; }
.build-log { margin: 0 18px 14px; padding: 10px 12px; background: #101b18; color: #cfe4dd; border-radius: 8px; font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.panel-text { padding: 14px 18px 18px; font-size: 13px; }
.panel-text p { margin: 0 0 10px; }
.panel-text p:last-child { margin-bottom: 0; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 2px 0; }
.pager-info { color: var(--muted); font-size: 12px; }
.pager-btns { display: flex; align-items: center; gap: 6px; }
.page-no {
    display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px;
    border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; color: var(--text);
}
.page-no.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.error-panel { padding: 50px 20px; text-align: center; }
.error-code { font-size: 54px; font-weight: 700; color: var(--accent); }
.error-msg { color: var(--muted); margin: 8px 0 20px; }

/* ---------- 登录页 ---------- */
.login-body { background: linear-gradient(135deg, #12211d 0%, #1d3a33 60%, #146e5c 100%); min-height: 100vh; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
    width: 100%; max-width: 380px; background: #fff; border-radius: 14px;
    padding: 32px 30px 26px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.login-brand { text-align: center; }
.login-brand .brand-cn { color: var(--accent); font-size: 24px; letter-spacing: 8px; }
.login-brand .brand-en { color: var(--muted); letter-spacing: 3px; font-size: 11px; }
.login-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 22px; }
.login-form label { display: block; margin-bottom: 14px; }
.login-form label span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.login-form .checkline span { display: inline; font-size: 13px; color: var(--text); }
.login-hint { text-align: center; color: var(--muted); font-size: 11px; margin: 18px 0 0; }

/* 登录验证码 */
.captcha-row { display: flex; align-items: center; gap: 8px; }
.captcha-img {
    flex: none; width: 118px; height: 38px; border: 1px solid var(--line-strong);
    border-radius: 8px; background: #fff; cursor: pointer; display: block;
}
.captcha-row input[type=text] { flex: 1 1 auto; min-width: 0; }
.captcha-question {
    flex: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px;
    background: var(--accent-soft); color: var(--accent-2); font-size: 15px; letter-spacing: 2px;
}
.captcha-refresh { flex: none; }
.captcha-tip { display: block; margin-top: 6px; font-size: 11px; font-style: normal; color: var(--muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .two-col, .two-col-side, .form-layout { grid-template-columns: 1fr; }
    .form-side { position: static; }
    .i18n-grid, .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .sidebar {
        position: fixed; z-index: 40; left: -240px; transition: left .2s;
    }
    .sidebar.open { left: 0; }
    .burger { display: block; }
    .content { padding: 16px 12px 50px; }
    .topbar { padding: 12px 14px; }
    .user-meta { display: none; }
    .table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ===================== 访问统计 ===================== */
.stat-scope { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.scope-meta { display: flex; align-items: center; gap: 10px; }

.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg-item { padding: 7px 15px; font-size: 13px; color: var(--muted); text-decoration: none; border-right: 1px solid var(--line); }
.seg-item:last-child { border-right: 0; }
.seg-item:hover { color: var(--accent); background: #f6faf8; }
.seg-item.active { background: var(--accent); color: #fff; }

.chart { width: 100%; height: auto; display: block; margin: 8px 0 6px; }
.chart-tick { font-size: 11px; fill: #9aa8a5; }
.chart-empty { padding: 46px 0; text-align: center; color: var(--muted); font-size: 13px; }
.legend { display: flex; gap: 16px; }
.lg-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.lg-item i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.panel > .split-list, .panel > .subhead, .panel > .two-col.mini { margin-left: 18px; margin-right: 18px; }
.panel > .split-list { margin-top: 6px; }
.panel > .two-col.mini { margin-bottom: 16px; }

.split-list { display: grid; gap: 13px; }
.split-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; margin-bottom: 5px; }
.split-val { color: var(--accent); font-weight: 600; white-space: nowrap; }
.split-val em { font-style: normal; color: var(--muted); font-weight: 400; font-size: 11px; margin-left: 5px; }
.subhead { font-size: 12px; color: var(--muted); }

.two-col.mini { grid-template-columns: 1fr 1fr; gap: 14px; }
.w-share { width: 118px; }
.page-title-cell { font-size: 13px; max-width: 420px; }
.ellipsis { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1100px) {
    .two-col, .two-col-side { grid-template-columns: 1fr; }
    .page-title-cell { max-width: 240px; }
}

/* ==== SKU 规格管理 ==== */
.sku-admin-row { border: 1px solid var(--line); border-radius: var(--radius, 8px); padding: 14px 16px; margin: 0 18px 12px; background: #fff; }
.panel-head + .sku-admin-row, #skuRows .sku-admin-row:first-child { margin-top: 14px; }
.sku-admin-main { display: grid; grid-template-columns: 2fr 1fr auto; gap: 12px; align-items: end; }
.sku-admin-row .field { margin-bottom: 10px; }
.sku-pool { display: flex; flex-wrap: wrap; gap: 8px; }
.sku-pool-item { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; border: 1px solid var(--line); border-radius: 6px; padding: 4px; background: #fff; }
.sku-pool-item:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.sku-pool-item img { width: 54px; height: 54px; object-fit: cover; border-radius: 4px; display: block; }
@media (max-width: 900px) { .sku-admin-main { grid-template-columns: 1fr; align-items: stretch; } }
