* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue:#0a84ff; --green:#34c759; --orange:#ff9f0a; --purple:#bf5af2; --red:#ff3b30;
  --ink:#111318; --ink2:#4b5563; --ink3:#8a94a6;
  --glass: rgba(255,255,255,.46); --line: rgba(255,255,255,.7);
  --shadow: 0 24px 60px -18px rgba(41,65,120,.35), 0 6px 18px -8px rgba(41,65,120,.18);
}
html { -webkit-font-smoothing: antialiased; }
body { min-height:100vh; font-family:"SF Pro Display","SF Pro Text",-apple-system,"Segoe UI","Microsoft YaHei",sans-serif; color:var(--ink);
  background:
    radial-gradient(900px 520px at 8% -6%, #b9d4ff 0%, rgba(185,212,255,0) 62%),
    radial-gradient(820px 620px at 96% 4%, #ffd3ec 0%, rgba(255,211,236,0) 60%),
    radial-gradient(900px 700px at 62% 108%, #ffe1bd 0%, rgba(255,225,189,0) 62%),
    radial-gradient(700px 500px at 20% 95%, #c9f2ff 0%, rgba(201,242,255,0) 65%),
    linear-gradient(135deg,#f2f6ff 0%,#fbf0ff 46%,#eef8ff 100%);
  background-attachment: fixed; }
.glass { background: var(--glass); backdrop-filter: blur(42px) saturate(190%); -webkit-backdrop-filter: blur(42px) saturate(190%);
  border:1px solid var(--line); box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(255,255,255,.28); }
.hidden { display:none !important; }
button { font-family: inherit; }
a { color: inherit; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(41,65,120,.2); border-radius: 999px; }
::-webkit-scrollbar-track { background: transparent; }

/* 登录 */
.login-wrap { min-height:100vh; display:grid; place-items:center; padding:24px; }
.login { width:100%; max-width:390px; border-radius:30px; padding:30px 28px; }
.login .mark { width:52px; height:52px; border-radius:16px; display:grid; place-items:center; font-weight:800; font-size:21px; color:#fff; margin-bottom:18px;
  background: linear-gradient(160deg,#7cc4ff,#0a84ff 55%,#5b5bff); box-shadow: 0 14px 30px -10px rgba(10,132,255,.7), inset 0 1px 0 rgba(255,255,255,.7); }
.login h1 { font-size:24px; letter-spacing:-.6px; }
.login p { color:var(--ink3); font-size:12.5px; margin:6px 0 20px; }
.login input { width:100%; height:48px; border-radius:16px; border:1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95); padding:0 15px; font-size:14px; color:var(--ink); outline:none; }
.login input:focus { border-color: rgba(10,132,255,.5); }
.login button { width:100%; height:48px; margin-top:12px; border:none; border-radius:16px; color:#fff; font-size:14px; font-weight:600; cursor:pointer;
  background: linear-gradient(160deg,#3ea0ff,#0a84ff); box-shadow: 0 12px 26px -10px rgba(10,132,255,.9), inset 0 1px 0 rgba(255,255,255,.45); }
.login button:disabled { opacity:.6; cursor: default; }
.login .err { color:#d92c3f; font-size:12px; margin-top:10px; min-height:16px; }
.login .tip { color:var(--ink3); font-size:11px; margin-top:16px; text-align:center; }

/* 应用框架 */
.app { display:flex; min-height:100vh; padding:16px; gap:16px; }
aside { width:228px; border-radius:32px; display:flex; flex-direction:column; padding:16px 12px; flex:0 0 auto; position:sticky; top:16px; max-height:calc(100vh - 32px); }
.logo { display:flex; align-items:center; gap:11px; padding:8px 10px 16px; }
.logo .mark { width:38px; height:38px; border-radius:12px; display:grid; place-items:center; font-weight:800; font-size:16px; color:#fff;
  background: linear-gradient(160deg,#7cc4ff,#0a84ff 55%,#5b5bff); box-shadow: 0 10px 22px -8px rgba(10,132,255,.7), inset 0 1px 0 rgba(255,255,255,.7); }
.logo b { font-size:15.5px; } .logo span { display:block; font-size:9px; color:var(--ink3); letter-spacing:2px; margin-top:2px; }
nav { padding:4px 2px; flex:1; overflow-y:auto; }
nav p { font-size:10px; color:var(--ink3); letter-spacing:1.4px; padding:12px 12px 6px; font-weight:600; }
a.item { display:flex; align-items:center; gap:10px; height:40px; padding:0 12px; border-radius:14px; color:var(--ink2); text-decoration:none; font-size:13.5px; font-weight:500; margin-bottom:2px; cursor:pointer; }
a.item .ic { width:19px; text-align:center; font-size:13px; color:var(--ink3); }
a.item:hover { background: rgba(255,255,255,.5); }
a.item.on { color:#fff; background: linear-gradient(160deg,#3ea0ff,#0a84ff); box-shadow: 0 10px 22px -10px rgba(10,132,255,.85), inset 0 1px 0 rgba(255,255,255,.5); }
a.item.on .ic { color:#fff; }
.side-foot { padding:8px 2px 2px; }
.user { display:flex; align-items:center; gap:10px; padding:10px; border-radius:20px; background: rgba(255,255,255,.5); border:1px solid rgba(255,255,255,.85); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.ava { width:32px; height:32px; border-radius:50%; background: linear-gradient(150deg,#ffd3ec,#bf5af2 60%,#5b5bff); color:#fff; font-weight:700; display:grid; place-items:center; font-size:12.5px; }
.user b { font-size:12.5px; display:block; } .user span { font-size:10px; color:var(--ink3); }
.legacy-link { display:block; text-align:center; font-size:10.5px; color:var(--ink3); text-decoration:none; padding:9px 0 0; }
.legacy-link:hover { color:var(--blue); }
.main { flex:1; display:flex; flex-direction:column; min-width:0; gap:14px; }
header { height:72px; border-radius:24px; display:flex; align-items:center; gap:14px; padding:0 18px; position:sticky; top:16px; z-index:10; }
.search { flex:1; max-width:400px; height:42px; border-radius:16px; background: rgba(255,255,255,.55); border:1px solid rgba(255,255,255,.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9); display:flex; align-items:center; gap:9px; padding:0 14px; color:var(--ink3); font-size:12.5px; }
.search input { border:none; background:transparent; outline:none; width:100%; font-size:12.5px; color:var(--ink); }
.status { margin-left:auto; display:inline-flex; align-items:center; gap:7px; font-size:11.5px; color:#147a37; font-weight:600; padding:8px 14px; border-radius:999px;
  background: rgba(52,199,89,.16); border:1px solid rgba(52,199,89,.32); white-space:nowrap; }
.status.off { color:#8a5a00; background: rgba(255,159,10,.16); border-color: rgba(255,159,10,.32); }
.dot { width:7px; height:7px; border-radius:50%; background:#34c759; box-shadow: 0 0 0 4px rgba(52,199,89,.18); }
.status.off .dot { background:#ff9f0a; box-shadow: 0 0 0 4px rgba(255,159,10,.18); }
.icon-btn { width:42px; height:42px; border-radius:16px; display:grid; place-items:center; color:var(--ink2); font-size:15px; background: rgba(255,255,255,.55); border:1px solid rgba(255,255,255,.85); box-shadow: inset 0 1px 0 rgba(255,255,255,.9); cursor:pointer; }
.content { flex:1; overflow:auto; padding: 0 2px 10px; }
h1 { font-size:27px; letter-spacing:-.7px; font-weight:700; }
h1 em { font-style:normal; background: linear-gradient(90deg,#0a84ff,#bf5af2); -webkit-background-clip:text; background-clip:text; color:transparent; }
.sub { color:var(--ink3); font-size:12.5px; margin-top:5px; font-weight:500; }
.kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:16px; }
.kpi { border-radius:24px; padding:16px 18px; }
.kpi .top { display:flex; align-items:center; justify-content:space-between; }
.kpi .lab { font-size:11.5px; color:var(--ink3); font-weight:600; }
.kpi .ci { width:34px; height:34px; border-radius:12px; display:grid; place-items:center; font-size:14px; color:#fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.ci.b { background: linear-gradient(160deg,#7cc4ff,#0a84ff); } .ci.g { background: linear-gradient(160deg,#8af0a8,#34c759); }
.ci.o { background: linear-gradient(160deg,#ffd28a,#ff9f0a); } .ci.p { background: linear-gradient(160deg,#e2b0ff,#bf5af2); }
.kpi .val { font-size:30px; font-weight:700; letter-spacing:-1px; margin-top:10px; font-variant-numeric: tabular-nums; }
.kpi .val small { font-size:12.5px; color:var(--ink3); font-weight:500; margin-left:3px; letter-spacing:0; }
.kpi .tag { font-size:10.5px; color:var(--ink3); margin-top:7px; white-space:nowrap; font-weight:500; } .kpi .tag i { font-style:normal; color:#0a84ff; font-weight:600; }
.row { display:grid; grid-template-columns: 1.58fr 1fr; gap:14px; margin-top:14px; align-items:start; }
.row.single { grid-template-columns: 1fr; }
.card { border-radius:26px; overflow:hidden; }
.card h3 { font-size:13.5px; font-weight:600; padding:16px 20px; display:flex; align-items:center; gap:8px; border-bottom:1px solid rgba(255,255,255,.5); }
.card h3 span { margin-left:auto; font-size:10.5px; color:var(--ink3); font-weight:500; }
.card-body { padding:16px 20px; }
.slots { display:grid; grid-template-columns:repeat(9,1fr); gap:8px; padding:16px 20px 4px; }
.slot { aspect-ratio:1; border-radius:14px; background: rgba(255,255,255,.5); border:1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 6px 14px -8px rgba(41,65,120,.3); display:grid; place-items:center; position:relative; font-size:11px; font-weight:600; color:var(--ink2); text-align:center; padding:2px; }
.slot small { position:absolute; right:3px; bottom:1px; font-size:9.5px; color:var(--ink); font-weight:700; }
.slot.gold { box-shadow: inset 0 0 0 2px #ffd166, 0 8px 18px -8px rgba(255,159,10,.55), inset 0 1px 0 rgba(255,255,255,.95); }
.slot.empty { background: rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.slot-hit { padding: 0 20px 14px; display:flex; gap:16px; font-size:10.5px; color:var(--ink3); font-weight:500; flex-wrap:wrap; }
.quick { padding:14px 16px; display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.btn { border-radius:15px; padding:12px 10px; text-align:center; font-size:12px; font-weight:600; color:var(--ink2); background: rgba(255,255,255,.55); border:1px solid rgba(255,255,255,.9); box-shadow: inset 0 1px 0 rgba(255,255,255,.95); text-decoration:none; cursor:pointer; }
.btn:hover { background: rgba(255,255,255,.75); }
.btn.primary { color:#fff; background: linear-gradient(160deg,#3ea0ff,#0a84ff); border:none; box-shadow: 0 10px 22px -10px rgba(10,132,255,.9), inset 0 1px 0 rgba(255,255,255,.45); }
.btn.primary:hover { filter: brightness(1.05); }
.bots { padding: 4px 16px 14px; border-top:1px solid rgba(255,255,255,.5); }
.bot { display:flex; align-items:center; gap:9px; padding:10px 0; font-size:12.5px; color:var(--ink2); border-bottom:1px solid rgba(255,255,255,.45); font-weight:500; }
.bot:last-child { border:none; } .bot span { margin-left:auto; font-size:10.5px; color:var(--ink3); font-weight:500; }
.bot .dot { background:#34c759; } .bot.off .dot { background:#c8cfda; box-shadow:none; }
.tx { padding: 4px 20px 12px; }
.tx-row { display:flex; align-items:center; gap:10px; padding:10px 0; font-size:12px; color:var(--ink2); border-bottom:1px solid rgba(255,255,255,.45); font-weight:500; }
.tx-row:last-child { border:none; }
.tx-row .tag { width:24px; height:24px; border-radius:8px; display:grid; place-items:center; font-size:10.5px; font-weight:800; flex:0 0 auto; }
.in { background: rgba(52,199,89,.16); color:#1c8a3c; } .out { background: rgba(255,159,10,.16); color:#b96a00; }
.tx-row b { color:var(--ink); font-weight:600; }
.tx-row span { margin-left:auto; font-size:10.5px; color:var(--ink3); font-weight:500; }
.empty { padding:26px 20px; text-align:center; color:var(--ink3); font-size:12px; }
.empty b { display:block; font-size:13px; color:var(--ink2); margin-bottom:4px; }
.loading { padding:26px 20px; text-align:center; color:var(--ink3); font-size:12px; }
.error-box { margin:14px 0; padding:14px 18px; border-radius:18px; background: rgba(255,59,48,.12); border:1px solid rgba(255,59,48,.28); color:#b3261e; font-size:12.5px; }
.toast { position:fixed; left:50%; bottom:28px; transform:translateX(-50%); padding:10px 18px; border-radius:999px; font-size:12.5px; color:#fff; background:rgba(17,19,24,.85); box-shadow:0 12px 30px rgba(0,0,0,.25); z-index:50; }
/* 表格 */
.table-wrap { overflow-x:auto; }
table.data { width:100%; border-collapse:collapse; }
table.data th { text-align:left; font-size:10.5px; color:var(--ink3); font-weight:600; padding:12px 20px; border-bottom:1px solid rgba(255,255,255,.5); white-space:nowrap; }
table.data td { padding:12px 20px; font-size:12.5px; border-bottom:1px solid rgba(255,255,255,.42); color:var(--ink2); font-weight:500; }
table.data tr:last-child td { border-bottom:none; }
table.data tr:hover td { background: rgba(255,255,255,.32); }
table.data .mono { font-variant-numeric: tabular-nums; font-weight:600; color:var(--ink); }
.pager { display:flex; align-items:center; justify-content:flex-end; gap:8px; padding:12px 20px; font-size:11.5px; color:var(--ink3); }
.pager button { height:30px; padding:0 12px; border-radius:10px; border:1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.55); color:var(--ink2); font-size:11.5px; cursor:pointer; }
.pager button:disabled { opacity:.45; cursor:default; }
/* tabs */
.tabs { display:inline-flex; gap:3px; padding:4px; border-radius:14px; background: rgba(255,255,255,.45); border:1px solid rgba(255,255,255,.85); flex-wrap:wrap; }
.tabs button { border:none; background:transparent; border-radius:10px; padding:8px 13px; font-size:12px; font-weight:600; color:var(--ink3); cursor:pointer; }
.tabs button.on { background:#fff; color:var(--ink); box-shadow: 0 2px 8px rgba(41,65,120,.16); }
.page-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:4px; flex-wrap:wrap; }
.toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:14px 0; }
.toolbar .search { max-width:280px; }
.chip { display:inline-flex; align-items:center; gap:6px; padding:7px 12px; border-radius:999px; background: rgba(255,255,255,.5); border:1px solid rgba(255,255,255,.85); font-size:11.5px; color:var(--ink2); font-weight:500; }
.log { font-family: "Cascadia Code","SF Mono",Consolas,monospace; font-size:11.5px; }
.log-line { display:flex; gap:10px; padding:6px 20px; border-bottom:1px solid rgba(255,255,255,.35); color:var(--ink2); }
.log-line:last-child { border:none; }
.log-line .time { color:var(--ink3); flex:0 0 auto; }
.log-line .lv { flex:0 0 44px; font-weight:700; }
.log-line .lv.warn { color:#b96a00; } .log-line .lv.error { color:#b3261e; } .log-line .lv.info { color:#1c8a3c; }
.log-line .msg { white-space:pre-wrap; word-break:break-all; }
.stat-strip { display:flex; gap:22px; flex-wrap:wrap; padding:14px 20px; border-bottom:1px solid rgba(255,255,255,.45); font-size:12px; color:var(--ink3); }
.stat-strip b { color:var(--ink); font-size:15px; margin-left:6px; font-variant-numeric: tabular-nums; }
@media (max-width: 1180px) { .row { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(2,1fr); } aside { display:none; } header { top:8px; } .app { padding:10px; } }

/* 弹窗 / 表单 */
.modal-mask { position:fixed; inset:0; z-index:40; display:grid; place-items:center; padding:24px; background: rgba(24,32,54,.28); backdrop-filter: blur(8px); }
.modal { width:100%; max-width:460px; border-radius:28px; padding:22px 24px; }
.modal h3 { display:flex; align-items:center; font-size:16px; margin-bottom:14px; }
.modal h3 .modal-x { margin-left:auto; width:30px; height:30px; border-radius:10px; border:1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.55); color:var(--ink3); cursor:pointer; font-size:13px; }
.field { margin-bottom:12px; }
.field label { display:block; font-size:11.5px; color:var(--ink3); font-weight:600; margin-bottom:6px; }
.field input, .field select, .field textarea { width:100%; height:44px; border-radius:14px; border:1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95); padding:0 13px; font-size:13px; color:var(--ink); outline:none; font-family:inherit; }
.field input:focus, .field select:focus { border-color: rgba(10,132,255,.55); }
.field .hint { font-size:10.5px; color:var(--ink3); margin-top:5px; }
.notice { padding:11px 14px; border-radius:14px; font-size:11.5px; line-height:1.7; color:#6b5a2a; background: rgba(255,159,10,.13); border:1px solid rgba(255,159,10,.26); margin:10px 0; }
.notice.blue { color:#174a7a; background: rgba(10,132,255,.1); border-color: rgba(10,132,255,.22); }
.form-msg { min-height:18px; font-size:11.5px; color:#b3261e; margin:6px 0; }
.form-msg.ok { color:#1c8a3c; }
.modal-actions { display:flex; gap:9px; margin-top:14px; }
.modal-actions .btn { flex:1; }
.btn.danger { color:#fff; background: linear-gradient(160deg,#ff6b5e,#ff3b30); border:none; box-shadow: 0 10px 22px -10px rgba(255,59,48,.7); }
.btn.warn { color:#fff; background: linear-gradient(160deg,#ffc85e,#ff9f0a); border:none; }
.btn.small { padding:8px 13px; font-size:11.5px; border-radius:11px; }
.btn.block { display:block; width:100%; }
.btn:disabled { opacity:.55; cursor:default; }
.device-box { margin:12px 0; padding:14px 16px; border-radius:18px; background: rgba(10,132,255,.1); border:1px solid rgba(10,132,255,.25); }
.device-box .code { font-family: "Cascadia Code",Consolas,monospace; font-size:22px; font-weight:700; letter-spacing:3px; color:#0a5bbb; margin:6px 0; }
.device-box a { color:var(--blue); font-size:12px; font-weight:600; }
.table-actions { display:flex; gap:6px; flex-wrap:wrap; }
.row-actions { display:flex; gap:6px; }
.inline-form { display:flex; gap:8px; flex-wrap:wrap; padding:14px 20px; border-bottom:1px solid rgba(255,255,255,.45); }
.inline-form input { height:40px; border-radius:13px; border:1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.95); padding:0 12px; font-size:12.5px; color:var(--ink); outline:none; }
.inline-form input:focus { border-color: rgba(10,132,255,.55); }
.plan-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:14px; align-items:stretch; }
.plan-buy { display:block; width:100%; margin-top:14px; }
.plan-card .price { font-size:26px; font-weight:700; letter-spacing:-.5px; }
.plan-card .price small { font-size:11px; color:var(--ink3); font-weight:500; }
.plan-card .features { font-size:12px; color:var(--ink2); line-height:1.9; margin-top:8px; }
.owner-select { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:14px; }
.owner-select select { height:42px; border-radius:14px; border:1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.95); padding:0 13px; font-size:12.5px; color:var(--ink); outline:none; }
.small-note { font-size:11.5px; color:var(--ink3); }
@media (max-width: 1180px) { .plan-grid { grid-template-columns: 1fr; } }

span.item { display:flex; align-items:center; gap:10px; height:40px; padding:0 12px; border-radius:14px;
  color:var(--ink3); font-size:13.5px; font-weight:500; margin-bottom:2px; opacity:.55; cursor:default; }
span.item .ic { width:19px; text-align:center; font-size:13px; }

.ver { text-align:center; font-size:10px; color:var(--ink3); opacity:.7; margin-top:8px; letter-spacing:.4px; }

.login-tabs { display:flex; gap:4px; padding:4px; border-radius:14px; background: rgba(255,255,255,.55); border:1px solid rgba(255,255,255,.9); margin-bottom:16px; }
.login-tabs button { flex:1; border:none; background:transparent; border-radius:11px; padding:9px 0; font-size:12.5px; font-weight:600; color:var(--ink3); cursor:pointer; }
.login-tabs button.on { background:#fff; color:var(--ink); box-shadow: 0 2px 8px rgba(41,65,120,.15); }
.code-hint { font-size:12px; color:var(--ink3); line-height:1.8; margin-bottom:14px; }
.code-big { font-family:"Cascadia Code",Consolas,monospace; font-size:34px; font-weight:700; letter-spacing:7px; text-align:center; color:#0a84ff; margin:4px 0 12px; }
.code-command { font-family:"Cascadia Code",Consolas,monospace; font-size:12.5px; background: rgba(10,132,255,.1); border:1px solid rgba(10,132,255,.22); border-radius:12px; padding:10px 12px; color:#174a7a; word-break:break-all; margin-bottom:10px; }
.code-status { font-size:11.5px; color:var(--ink3); text-align:center; margin-bottom:10px; }
.code-status.pending::before { content:'● '; color:#ff9f0a; }
.code-status.ok { color:#1c8a3c; }

.codebox { font-family:"Cascadia Code",Consolas,monospace; font-size:18px; letter-spacing:0; text-align:left; word-break:break-all;
  background: rgba(10,132,255,.1); border:1px solid rgba(10,132,255,.25); border-radius:14px; padding:11px 13px; color:#174a7a; margin:8px 0 10px; }
.muted { color:var(--ink3); font-size:12px; line-height:1.7; margin:0 0 8px; }
.tip code { background: rgba(255,255,255,.65); padding:1px 5px; border-radius:5px; font-size:11px; }
code { font-family:"Cascadia Code",Consolas,monospace; }

/* zzko 余额展示 */
.zzko-chip { display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:700; color:#0a5bd6; padding:8px 13px; border-radius:999px; background:rgba(10,132,255,.12); border:1px solid rgba(10,132,255,.25); white-space:nowrap; }
.wallet-line { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; padding:9px 12px; border-radius:16px; background:rgba(255,255,255,.5); border:1px solid rgba(255,255,255,.85); font-size:11px; color:var(--ink3); }
.wallet-line b { font-size:12.5px; color:#0a5bd6; }

/* 物品图标（库存列表，点击图标选择） */
.item-cell { display: inline-flex; align-items: center; gap: 9px; }
.item-icon-box {
  width: 32px; height: 32px; flex: 0 0 auto;
  display: inline-grid; place-items: center; position: relative;
  border-radius: 9px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.9);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  overflow: hidden;
}
.item-icon-box:hover { transform: scale(1.08); box-shadow: 0 5px 14px rgba(10,132,255,.20); background: rgba(255,255,255,.8); }
.item-icon-box img { width: 26px; height: 26px; object-fit: contain; image-rendering: pixelated; display: block; }
.item-icon-fallback { display: none; place-items: center; width: 100%; height: 100%; font-size: 12px; font-weight: 700; color: #5b6472; }
tr.selected-row td { background: rgba(10,132,255,.10) !important; }
tr.selected-row td:first-child { border-radius: 12px 0 0 12px; }
tr.selected-row td:last-child { border-radius: 0 12px 12px 0; }

/* ===== 库存图标网格（点击选择，右下角数量） ===== */
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.inv-tile { position: relative; aspect-ratio: 1; border-radius: 15px;
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 8px 18px -12px rgba(41,65,120,.35);
  display: grid; place-items: center; cursor: pointer; overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.inv-tile:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 22px -12px rgba(10,132,255,.35); background: rgba(255,255,255,.78); }
.inv-tile.selected { border: 2px solid #0a84ff; background: rgba(228,241,255,.9);
  box-shadow: 0 0 0 3px rgba(10,132,255,.16), 0 12px 22px -12px rgba(10,132,255,.5); }
.inv-tile img { width: 64%; height: 64%; object-fit: contain; image-rendering: pixelated; pointer-events: none; }
.inv-tile-fallback { display: none; place-items: center; font-size: 12px; font-weight: 800; color: #5b6472; }
.inv-tile-count { position: absolute; right: 4px; bottom: 4px; padding: 1px 6px; border-radius: 8px;
  font-size: 10px; line-height: 14px; font-weight: 800; color: #fff; background: rgba(15,23,42,.82);
  box-shadow: 0 2px 6px rgba(0,0,0,.18); pointer-events: none; }

/* ===== 概览物品栏：可交互 ===== */
.slot.filled { cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.slot.filled:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 20px -12px rgba(10,132,255,.45); }
.slot .slot-icon { width: 58%; height: 58%; object-fit: contain; image-rendering: pixelated; pointer-events: none; }
.slot .slot-fallback { display: none; font-size: 11px; font-weight: 700; }
.slot .slot-count { position: absolute; right: 3px; bottom: 2px; padding: 1px 5px; border-radius: 7px; font-size: 9px; font-weight: 800; color: #fff; background: rgba(15,23,42,.82); text-shadow: none; }

/* ===== 概览：默认仓库卡片 ===== */
.default-owner-box { padding: 14px 16px; }
.default-owner-now { font-size: 13px; color: var(--ink2); }
.default-owner-now b { color: var(--ink); }

/* ===== 下拉框统一圆角玻璃风（默认仓库 / 表单内） ===== */
.inline-form select,
.default-owner-box select {
  height: 40px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.9);
  background-color: rgba(255,255,255,.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
  padding: 0 34px 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%236b7583' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
.inline-form select:focus,
.default-owner-box select:focus { border-color: rgba(10,132,255,.55); }
.default-owner-box .inline-form { padding: 0; border-bottom: none; align-items: center; }
.default-owner-box .inline-form select { flex: 1; height: 42px; border-radius: 14px; padding-right: 36px; }
.default-owner-box .inline-form .btn { height: 42px; display: inline-grid; place-items: center; border-radius: 14px; }

/* ===== 自定义玻璃下拉（默认仓库） ===== */
.dd { position: relative; flex: 1; min-width: 0; }
.dd-toggle { width: 100%; height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.9);
  background: rgba(255,255,255,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.dd-toggle:hover { background: rgba(255,255,255,.8); }
.dd.open .dd-toggle { border-color: rgba(10,132,255,.55); background: rgba(255,255,255,.88); }
.dd-caret { flex: 0 0 auto; font-size: 13px; color: #6b7583; transition: transform .15s ease; }
.dd.open .dd-caret { transform: rotate(180deg); }
.dd-menu { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70;
  padding: 6px; border-radius: 14px; background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.95); box-shadow: 0 18px 40px -18px rgba(28,48,92,.4);
  max-height: 260px; overflow: auto; backdrop-filter: blur(18px); }
.dd.open .dd-menu { display: block; }
.dd-option { display: block; width: 100%; padding: 9px 12px; border: none; border-radius: 10px;
  background: transparent; font-family: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--ink2); text-align: left; cursor: pointer; }
.dd-option:hover { background: rgba(10,132,255,.08); color: var(--ink); }
.dd-option.selected { background: rgba(10,132,255,.14); color: #0a63c9; }
.dd-empty { padding: 10px 12px; font-size: 12px; color: var(--ink3); }
.card.dropdown-open { overflow: visible; position: relative; z-index: 40; }
.card.dropdown-open::after { content: ''; }
.field .dd-toggle { height: 44px; }

/* ===== 库存格：Shift+左右键选择数量 ===== */
.inv-tile { user-select: none; -webkit-user-select: none; }
.inv-tile-selected {
  position: absolute; left: 4px; top: 3px; z-index: 2;
  min-width: 20px; padding: 1px 5px; border-radius: 7px;
  background: rgba(10,132,255,.92); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 1.5; text-align: center;
  display: none; pointer-events: none;
  box-shadow: 0 2px 8px rgba(10,132,255,.38);
}
