:root {
  --bg: #0b0d12; --panel: #12151c; --panel2: #171b24; --line: #232836; --line2: #2e3445;
  --fg: #e7e9ee; --dim: #8a92a6; --dim2: #5d6478;
  --acc: #6d8bff; --acc2: #8b6dff; --ok: #3ecf8e; --warn: #f0b429; --err: #ff6b6b;
  --r: 10px;
  /* 图表系列色：已用 dataviz 校验器对深色背景 #12151c 校验（对比度均 >=3:1，全组 CVD ΔE >=9.4） */
  --s1: #3987e5; --s2: #d95926; --s3: #199e70;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 13.5px/1.55 system-ui, "Segoe UI", "Microsoft YaHei", sans-serif; overflow: hidden; }
[hidden] { display: none !important; }
a { color: var(--acc); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #262b38; border-radius: 6px; border: 2px solid var(--bg); }

input, select, textarea {
  width: 100%; background: #0d1016; color: var(--fg); border: 1px solid var(--line); border-radius: 7px;
  padding: 7px 9px; font: inherit; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(109,139,255,.15); }
textarea { resize: vertical; min-height: 60px; }
textarea.code { font: 12px/1.5 Consolas, "Cascadia Mono", monospace; }
input[type=checkbox] { width: auto; accent-color: var(--acc); }

.btn { border: 1px solid transparent; border-radius: 7px; padding: 7px 14px; font: inherit; cursor: pointer; color: var(--fg); background: var(--panel2); white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { background: #1e2330; }
.btn.ghost { background: transparent; border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--dim2); background: rgba(255,255,255,.03); }
.btn.primary { background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #fff; font-weight: 600; width: 100%; padding: 10px; display: flex; justify-content: center; align-items: center; gap: 10px; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
kbd { font: 11px Consolas, monospace; background: rgba(255,255,255,.18); border-radius: 4px; padding: 1px 5px; font-weight: 400; }
.icon { background: transparent; border: 1px solid var(--line2); color: var(--dim); border-radius: 7px; width: 30px; height: 32px; cursor: pointer; flex: none; font-size: 14px; }
.icon:hover { color: var(--fg); border-color: var(--dim2); }

/* ---------- 顶栏 ---------- */
.topbar { height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(18,21,28,.85); backdrop-filter: blur(8px); }
.brand { font-weight: 700; font-size: 15px; letter-spacing: .3px; display: flex; align-items: center; gap: 8px; flex: none; }
.logo { background: linear-gradient(135deg, var(--acc), var(--acc2)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 18px; }
.live { font-size: 12px; color: var(--dim2); flex: none; }
.live.on { color: var(--ok); }

/* ---------- 布局 ---------- */
.layout { display: grid; grid-template-columns: 380px 1fr; height: calc(100% - 56px); }
.composer { border-right: 1px solid var(--line); background: var(--panel); overflow-y: auto; padding: 16px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.feed { overflow-y: auto; padding: 0 20px 40px; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: #0d1016; border: 1px solid var(--line); border-radius: 9px; padding: 3px; }
.seg button { background: transparent; border: 0; color: var(--dim); padding: 7px 0; border-radius: 6px; font: inherit; cursor: pointer; }
.seg button.on { background: var(--panel2); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.field label, .field > .lbl { display: flex; align-items: baseline; gap: 6px; color: var(--dim); font-size: 12px; margin-bottom: 5px; }
.hint { color: var(--dim2); font-size: 11.5px; }
.count { margin-left: auto; color: var(--dim2); font-size: 11px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.mt { margin-top: 6px; }
.inline { display: flex; gap: 6px; }
.check { display: flex; gap: 7px; align-items: center; color: var(--dim); font-size: 12px; cursor: pointer; }

.adv { border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; }
.adv summary { cursor: pointer; color: var(--dim); padding: 9px 0; font-size: 12.5px; user-select: none; }
.adv[open] { padding-bottom: 12px; }
.adv[open] > :not(summary) { margin-top: 10px; }
.submit-bar { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--panel) 30%); padding: 14px 0 16px; margin-top: auto; }

/* ---------- 文件拖放 ---------- */
.drop { border: 1px dashed var(--line2); border-radius: 8px; padding: 10px; min-height: 56px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; cursor: pointer; color: var(--dim2); font-size: 12px; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--acc); background: rgba(109,139,255,.05); }
.drop .ph { flex: 1; text-align: center; }
.thumb { position: relative; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; background: #000; flex: none; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; line-height: 18px; padding: 0; cursor: pointer; }
.thumb.add { display: grid; place-items: center; border: 1px dashed var(--line2); background: transparent; font-size: 20px; }

/* ---------- 结果区 ---------- */
.toolbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 0; background: linear-gradient(var(--bg) 80%, transparent); }
.chips { display: flex; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.chips button { background: transparent; border: 0; color: var(--dim); border-radius: 6px; padding: 4px 10px; font: inherit; font-size: 12px; cursor: pointer; }
.chips button.on { background: var(--panel2); color: var(--fg); }
#search { width: 220px; padding: 5px 9px; }
.spacer { flex: 1; }
.stat { color: var(--dim2); font-size: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.card:hover { border-color: var(--line2); }
.card .stage, .modal .stage { position: relative; background: #07080b; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
.card .stage.multi { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; place-items: stretch; }
.card .stage img, .card .stage video { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; display: block; }
.card .stage.multi img { object-fit: cover; }
.card .stage .more { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.7); border-radius: 10px; padding: 1px 8px; font-size: 11px; }
.card .placeholder, .modal .placeholder { color: var(--dim2); text-align: center; padding: 16px; font-size: 12px; width: 100%; }
.card .placeholder.err, .modal .placeholder.err { color: var(--err); word-break: break-word; max-height: 100%; overflow: auto; }
.shimmer { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(109,139,255,.08) 50%, transparent 70%); background-size: 200% 100%; animation: sh 1.6s linear infinite; }
@keyframes sh { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.spinner { width: 26px; height: 26px; border: 2.5px solid var(--line2); border-top-color: var(--acc); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.pbar { position: absolute; left: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--acc), var(--acc2)); transition: width .5s; }

.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .row1 { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); }
.badge { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: var(--panel2); color: var(--dim); white-space: nowrap; }
.badge.running { color: var(--acc); background: rgba(109,139,255,.12); }
.badge.succeeded { color: var(--ok); background: rgba(62,207,142,.12); }
.badge.failed { color: var(--err); background: rgba(255,107,107,.12); }
.badge.interrupted, .badge.cancelled { color: var(--warn); background: rgba(240,180,41,.12); }
.card .model { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.card .time { margin-left: auto; white-space: nowrap; color: var(--dim2); }
.card .prompt { font-size: 13px; color: var(--fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; min-height: 1.55em; }
.card .prompt.none { color: var(--dim2); font-style: italic; }
.card .params { display: flex; flex-wrap: wrap; gap: 4px; }
.card .params span { font-size: 11px; color: var(--dim); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; }
.card .actions { display: flex; gap: 4px; margin-top: auto; padding-top: 4px; }
.card .actions button { background: transparent; border: 1px solid transparent; color: var(--dim); border-radius: 6px; padding: 3px 8px; font: inherit; font-size: 12px; cursor: pointer; }
.card .actions button:hover { color: var(--fg); background: var(--panel2); }
.card .actions button.danger:hover { color: var(--err); }
.card .actions .sp { flex: 1; }

.empty { text-align: center; color: var(--dim2); padding: 100px 0; }
.empty .big { font-size: 48px; margin-bottom: 8px; opacity: .4; }

/* ---------- 详情弹窗 ---------- */
.modal { position: fixed; inset: 0; background: rgba(4,5,8,.8); backdrop-filter: blur(4px); z-index: 20; display: grid; place-items: center; padding: 24px; }
.modal-box { background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; width: min(1200px, 100%); max-height: 100%; display: grid; grid-template-columns: 1fr 420px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.modal .viewer { background: #050608; display: flex; flex-direction: column; min-height: 300px; max-height: calc(100vh - 48px); }
.modal .viewer .main { flex: 1; display: grid; place-items: center; min-height: 0; padding: 12px; }
.modal .viewer .main img, .modal .viewer .main video { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 6px; }
.modal .viewer .strip { display: flex; gap: 6px; padding: 8px; overflow-x: auto; border-top: 1px solid var(--line); }
.modal .viewer .strip img { width: 56px; height: 56px; object-fit: cover; border-radius: 5px; cursor: pointer; opacity: .5; border: 2px solid transparent; }
.modal .viewer .strip img.on { opacity: 1; border-color: var(--acc); }
.modal .info { padding: 16px; overflow-y: auto; max-height: calc(100vh - 48px); display: flex; flex-direction: column; gap: 12px; border-left: 1px solid var(--line); }
.modal .info h3 { margin: 0; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.modal .info .x { margin-left: auto; }
.modal .kv { display: grid; grid-template-columns: 80px 1fr; gap: 4px 10px; font-size: 12px; }
.modal .kv dt { color: var(--dim2); } .modal .kv dd { margin: 0; word-break: break-all; }
.modal .sec-title { color: var(--dim); font-size: 12px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.modal .ptext { white-space: pre-wrap; word-break: break-word; background: #0d1016; border-radius: 7px; padding: 8px 10px; font-size: 13px; }
.modal pre { margin: 0; white-space: pre-wrap; word-break: break-all; background: #0d1016; border-radius: 7px; padding: 8px 10px; font: 11.5px/1.5 Consolas, monospace; max-height: 280px; overflow: auto; }
.modal .errbox { color: var(--err); background: rgba(255,107,107,.08); border: 1px solid rgba(255,107,107,.25); border-radius: 7px; padding: 8px 10px; word-break: break-word; }
.modal .btns { display: flex; flex-wrap: wrap; gap: 6px; }
.modal .inputs { display: flex; gap: 6px; flex-wrap: wrap; }
.modal .inputs img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }

/* ---------- toast ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 30; }
.toast { background: var(--panel2); border: 1px solid var(--line2); border-left: 3px solid var(--acc); border-radius: 8px; padding: 9px 14px; max-width: 420px; box-shadow: 0 8px 24px rgba(0,0,0,.4); animation: tin .2s ease-out; word-break: break-word; white-space: pre-wrap; }
.toast.ok { border-left-color: var(--ok); } .toast.err { border-left-color: var(--err); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1000px) {
  body { overflow: auto; }
  .topbar { height: auto; flex-wrap: wrap; padding: 10px 16px; }
  .layout { grid-template-columns: 1fr; height: auto; }
  .composer, .feed { overflow: visible; }
  .modal-box { grid-template-columns: 1fr; overflow-y: auto; }
  .modal .info { max-height: none; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- 通用补充 ---------- */
.spacer { flex: 1; }
.btn.xs { padding: 2px 8px; font-size: 11.5px; border-radius: 5px; }
.btn.primary-sm { background: var(--acc); color: #fff; font-weight: 600; }
.btn.primary-sm:hover { background: #7d97ff; }
.btn.danger:hover { color: var(--err); border-color: rgba(255,107,107,.4); }
a.btn { text-decoration: none; display: inline-block; }
code { font: 12px Consolas, "Cascadia Mono", monospace; color: #c9d1e6; background: #0d1016; border-radius: 4px; padding: 1px 5px; word-break: break-all; }
.ok-text { color: var(--ok); font-size: 12px; } .err-text { color: var(--err); font-size: 12px; }
.notice { border: 1px dashed var(--line2); border-radius: 9px; padding: 18px; color: var(--dim); text-align: center; }
.params-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
#formBody { display: flex; flex-direction: column; }
#uploads { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.seg button:disabled { opacity: .35; cursor: not-allowed; }
.tag { font-size: 11px; font-weight: 500; color: var(--dim); border: 1px solid var(--line2); border-radius: 5px; padding: 0 6px; margin-left: 4px; }
.card .owner { font-size: 12px; color: var(--dim); }
.card .stage .play { position: absolute; left: 10px; bottom: 8px; font-size: 11px; background: rgba(0,0,0,.6); border-radius: 10px; padding: 1px 8px; pointer-events: none; }
.card .placeholder .ico, .modal .placeholder .ico { font-size: 20px; margin-bottom: 4px; }
.empty.small { padding: 28px 0; font-size: 12.5px; }

/* 用户菜单 */
.usermenu { position: relative; flex: none; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--panel2); border: 1px solid var(--line2); border-radius: 9px; padding: 4px; min-width: 140px; z-index: 15; box-shadow: 0 10px 30px rgba(0,0,0,.4); display: flex; flex-direction: column; }
.menu a, .menu button { background: transparent; border: 0; color: var(--fg); text-align: left; padding: 7px 10px; border-radius: 6px; font: inherit; cursor: pointer; text-decoration: none; }
.menu a:hover, .menu button:hover { background: rgba(255,255,255,.06); }

/* 登录页 */
.login-page { display: grid; place-items: center; overflow: auto; background: radial-gradient(ellipse at top, #161b2b, var(--bg) 60%); }
.login-box { width: min(360px, calc(100% - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.login-box .brand.big { font-size: 20px; justify-content: center; }
.login-box > .hint { margin: -8px 0 4px; text-align: center; }
.login-err { color: var(--err); font-size: 12.5px; min-height: 1em; }
.center { text-align: center; margin: 0; }

/* 对话框 */
.dialog-wrap { position: fixed; inset: 0; background: rgba(4,5,8,.75); backdrop-filter: blur(3px); z-index: 25; display: grid; place-items: center; padding: 20px; }
.dialog { background: var(--panel); border: 1px solid var(--line2); border-radius: 14px; width: min(460px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.dialog.wide { width: min(760px, 100%); }
.dialog-head { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dialog-head h3 { margin: 0; font-size: 15px; flex: 1; }
.dialog-body { padding: 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.dialog-body h4 { margin: 4px 0 -2px; font-size: 12.5px; color: var(--acc); font-weight: 600; }
.dialog-body .grid2 > .check { align-self: end; padding-bottom: 8px; }
.dialog-body .adv > .field, .dialog-body .adv > .grid2 { margin-top: 10px; }
.dialog-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.dialog-err { flex: 1; color: var(--err); font-size: 12.5px; }
.probe { display: flex; align-items: center; gap: 10px; }

/* ---------- 管理后台 ---------- */
body.admin { overflow: auto; }
body.admin .topbar { position: sticky; top: 0; z-index: 10; }
.nav { display: flex; gap: 2px; margin-left: 12px; }
.nav a { color: var(--dim); text-decoration: none; padding: 6px 12px; border-radius: 7px; }
.nav a:hover { color: var(--fg); background: rgba(255,255,255,.04); }
.nav a.on { color: var(--fg); background: var(--panel2); }
.admin-main { max-width: 1400px; margin: 0 auto; padding: 20px 24px 60px; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h2 { margin: 0; font-size: 18px; }
.toolbar.static { position: static; background: none; padding: 0 0 14px; }
.toolbar select { width: auto; min-width: 120px; padding: 5px 8px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.panel.flush { padding: 0; overflow-x: auto; }
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.panel-head h3 { margin: 0; font-size: 13.5px; font-weight: 600; }
.panel-head .legend { flex: 1; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* KPI 卡片 */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.kpi-label { color: var(--dim); font-size: 12px; }
.kpi-value { font-size: 28px; font-weight: 650; letter-spacing: -.5px; margin: 2px 0; }
.kpi-sub { color: var(--dim2); font-size: 12px; font-variant-numeric: tabular-nums; }

/* 图表 */
.chart { position: relative; width: 100%; }
.chart svg { display: block; }
.chart .grid-line { stroke: #222837; stroke-width: 1; }
.chart .axis { fill: var(--dim2); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .hit { fill: transparent; }
.chart .hit.on { fill: rgba(255,255,255,.04); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--dim); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i, .tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tip { position: fixed; z-index: 40; pointer-events: none; background: var(--panel2); border: 1px solid var(--line2); border-radius: 8px; padding: 8px 10px; font-size: 12px; min-width: 150px; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.tip b { display: block; margin-bottom: 4px; }
.tip-row { display: flex; align-items: center; gap: 6px; color: var(--dim); }
.tip-row span { margin-left: auto; color: var(--fg); font-variant-numeric: tabular-nums; padding-left: 14px; }
.tip-row.total { border-top: 1px solid var(--line2); margin-top: 4px; padding-top: 4px; color: var(--fg); }

/* 表格 */
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; color: var(--dim2); font-weight: 500; font-size: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(255,255,255,.02); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .ops { text-align: right; white-space: nowrap; }
.tbl .clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl tr.clickable { cursor: pointer; }
.tbl a { color: var(--fg); }
.panel:not(.flush) .tbl th:first-child, .panel:not(.flush) .tbl td:first-child { padding-left: 0; }
.panel:not(.flush) .tbl th:last-child, .panel:not(.flush) .tbl td:last-child { padding-right: 0; }
.bar-cell { position: relative; width: 34%; }
.bar-cell .hbar { position: absolute; left: 12px; top: 50%; height: 14px; transform: translateY(-50%); max-width: calc(100% - 52px); background: var(--s1); opacity: .35; border-radius: 0 4px 4px 0; }
.bar-cell span:last-child { position: relative; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.on { background: var(--ok); } .dot.off { background: var(--dim2); }
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 18px; }

@media (max-width: 1000px) {
  .cols2 { grid-template-columns: 1fr; }
  .nav { order: 3; flex-basis: 100%; margin: 0; overflow-x: auto; }
  .admin-main { padding: 16px; }
}
.card .params span.warn { color: var(--warn); border-color: rgba(240,180,41,.35); }
.modal .warnbox { color: var(--warn); background: rgba(240,180,41,.08); border: 1px solid rgba(240,180,41,.25); border-radius: 7px; padding: 8px 10px; word-break: break-word; }
.req { font-size: 11px; color: var(--warn); border: 1px solid rgba(240,180,41,.35); border-radius: 4px; padding: 0 5px; }
.drop.need { border-color: rgba(240,180,41,.45); }
.btn.primary.blocked { background: var(--panel2); color: var(--dim); border: 1px dashed var(--line2); }
.btn.primary.blocked kbd { display: none; }
