/* ============================================================
   小金工作台 · 莫奈蓝白磨砂玻璃管理台
   ============================================================ */
:root {
  --ink: #20262F;
  --ink2: #3E4756;
  --muted: #6E7889;
  --w60: rgba(255, 255, 255, .92);
  --w40: rgba(255, 255, 255, .70);
  --dark-pill: rgba(255, 255, 255, .72);
  --gcard: rgba(255, 255, 255, .70);
  --lcard: rgba(255, 255, 255, .62);
  --blue: #4C78B8;
  --blue-deep: #24406B;
  --teal: #5BA3B0;
  --purple: #6E8FCF;
  --green: #3FA978;
  --orange: #D08A44;
  --red: #C46262;
  --rail-w: 76px;
  --rail-w-expanded: 224px;
  --ease-spring: cubic-bezier(0.34, 1.42, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-micro: 180ms;
  --dur-fast: 250ms;
  --dur-view: 380ms;
  /* 玻璃分层：统一的高光描边与浮起阴影，让面板浮在背景之上 */
  --glass-rim: rgba(255, 255, 255, .78);
  --glass-highlight: rgba(255, 255, 255, .92);
  --glass-tint: linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.52) 42%, rgba(255,255,255,.44) 100%);
  --glass-spec: radial-gradient(260px 200px at 50% 18%, rgba(255,255,255,.55), rgba(255,255,255,0) 72%);
  --glass-shadow: 0 14px 34px rgba(20, 28, 45, .10), 0 3px 10px rgba(20, 28, 45, .06), inset 0 1px 0 rgba(255, 255, 255, .85);
  --glass-shadow-hover: 0 20px 44px rgba(20, 28, 45, .15), 0 5px 14px rgba(20, 28, 45, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
  --glass-shadow-lg: 0 30px 64px rgba(20, 28, 45, .16), 0 8px 20px rgba(20, 28, 45, .08), inset 0 1px 0 rgba(255, 255, 255, .8);
}

[hidden] { display: none !important; }

/* ---------------- 背景层（固定在所有内容之下） ---------------- */
body { background: transparent; }

.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: radial-gradient(ellipse at 13% 22%, rgba(255,255,255,.82), transparent 40%), radial-gradient(ellipse at 83% 18%, rgba(255,255,255,.74), transparent 39%), radial-gradient(ellipse at 54% 54%, rgba(166,172,184,.28), transparent 58%), radial-gradient(ellipse at 26% 94%, rgba(255,255,255,.72), transparent 44%), #eceef2; }
.bg-shape { display: none; }
.bg-shape.s1 { width: 520px; height: 360px; left: -90px; top: -70px; border-radius: 40px;
  background: radial-gradient(circle, rgba(120,155,210,.20), rgba(120,155,210,.03)); }
.bg-shape.s2 { width: 380px; height: 380px; right: -60px; top: 120px;
  background: radial-gradient(circle, rgba(110,145,200,.16), rgba(110,145,200,.03)); }
.bg-shape.s3 { width: 760px; height: 300px; left: 240px; bottom: -120px; border-radius: 120px;
  background: radial-gradient(circle, rgba(100,135,190,.14), rgba(100,135,190,.03)); }
.bg-shape.s4 { width: 240px; height: 240px; left: 42%; top: 8%;
  background: radial-gradient(circle, rgba(150,175,220,.14), rgba(150,175,220,.03)); }
.bg-shape.s5 { width: 200px; height: 200px; right: 22%; bottom: 14%;
  background: radial-gradient(circle, rgba(130,160,205,.13), rgba(130,160,205,.03)); }
.bg-noise { position: absolute; inset: 0; opacity: .16; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* 登录页 K logo */
.brand-logo { width: 46px; height: 46px; flex: none; display: block; }
.brand-logo svg { width: 100%; height: 100%; display: block; }

/* ---------------- 登录视图 ---------------- */
.login-view {
  position: relative; z-index: 1;
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.login-card {
  width: min(100%, 460px); padding: 36px; border-radius: 30px; position: relative; overflow: hidden;
}
.login-card::after {
  content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%;
  right: -115px; top: -105px;
  background: radial-gradient(circle, rgba(255,255,255,.92), rgba(120,150,190,.18) 62%, transparent 68%);
  pointer-events: none;
}
.login-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 15px; margin-bottom: 30px; }
.login-head-copy h1 { margin: 0 0 5px; font-size: 26px; letter-spacing: -.035em; }
.login-head-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.login-form { position: relative; z-index: 1; display: grid; gap: 17px; }

/* ---------------- 通用玻璃面板（雾白） ---------------- */
.glass-panel {
  border: 1px solid var(--glass-rim);
  background:
    var(--glass-spec),
    var(--glass-tint),
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(255,255,255,.88));
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
}

/* ---------------- 表单字段 ---------------- */
.field { display: grid; gap: 8px; }
.field > span { color: var(--ink2); font-size: 13px; font-weight: 600; }
input, select, textarea {
  width: 100%; min-height: 48px; border-radius: 14px;
  border: 1px solid rgba(109,129,156,.22); padding: 0 15px;
  background: rgba(255,255,255,.72); color: var(--ink); outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
  transition: border-color var(--dur-micro) var(--ease-smooth), box-shadow var(--dur-micro) var(--ease-smooth);
}
textarea { min-height: 190px; padding: 13px 15px; resize: vertical;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(91,132,196,.6);
  box-shadow: 0 0 0 4px rgba(91,132,196,.14), inset 0 1px 0 #fff;
}
.password-input { position: relative; }
.password-input input { padding-right: 52px; }
.password-toggle {
  position: absolute; right: 7px; top: 7px; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; border: 1px solid rgba(109,129,156,.2);
  background: rgba(255,255,255,.62); color: var(--ink2); cursor: pointer;
  transition: background var(--dur-micro) var(--ease-smooth), transform var(--dur-micro) var(--ease-smooth);
}
.password-toggle:hover { background: #fff; transform: translateY(-1px); }
.password-toggle svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.form-error { margin: 0; color: #b14b4b; font-size: 13px; line-height: 1.5; }

.icon-button {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid rgba(109,129,156,.2); background: rgba(255,255,255,.62);
  color: var(--ink2); cursor: pointer;
  transition: background var(--dur-micro) var(--ease-smooth), transform var(--dur-micro) var(--ease-smooth);
}
.icon-button:hover { background: #fff; transform: translateY(-1px); }
.icon-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }

.primary-button {
  min-height: 48px; padding: 0 20px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,.22);
  background: linear-gradient(145deg, #34507C, #203553);
  color: #fff; font-weight: 650; cursor: pointer;
  box-shadow: 0 12px 26px rgba(32,53,83,.25), inset 0 1px 0 rgba(255,255,255,.28);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform var(--dur-micro) var(--ease-smooth), opacity var(--dur-micro) var(--ease-smooth);
}
.primary-button:hover { transform: translateY(-2px); }
.primary-button:active { transform: scale(.97); }
.primary-button:disabled { cursor: wait; opacity: .6; transform: none; }
.primary-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round; }
.secondary-button {
  min-height: 44px; padding: 0 17px; border-radius: 13px;
  border: 1px solid rgba(109,129,156,.26); background: rgba(255,255,255,.72);
  color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background var(--dur-micro) var(--ease-smooth), transform var(--dur-micro) var(--ease-smooth);
}
.secondary-button:hover { background: #fff; transform: translateY(-1px); }
.secondary-button:active { transform: scale(.97); }

/* ============================================================
   外壳：app 大玻璃容器
   ============================================================ */
#dashboard-view { position: relative; z-index: 1; }

.app {
  position: fixed; inset: 18px; z-index: 1;
  display: flex; flex-direction: column; overflow: hidden; border-radius: 26px;
  background:
    var(--glass-spec),
    linear-gradient(160deg, rgba(255,255,255,.88), rgba(255,255,255,.82));
  border: 1px solid var(--glass-rim);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: var(--glass-shadow-lg);
  animation: app-in var(--dur-view) var(--ease-smooth) both;
}
@keyframes app-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

/* ---------------- 中部水平区 ---------------- */
.middle { flex: 1 1 auto; min-height: 0; display: flex; margin: 14px 18px; }

/* ---------------- 左侧深色 rail ---------------- */
.rail {
  flex: 0 0 auto; width: var(--rail-w); display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden; background: var(--dark-pill);
  border: 1px solid rgba(120,135,158,.18);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transition: width .3s cubic-bezier(.22, 1, .36, 1);
  will-change: width;
}
.rail.is-expanded { width: var(--rail-w-expanded); }
.rail-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 13px 9px 9px; scrollbar-width: none; }
.rail-scroll::-webkit-scrollbar { width: 0; height: 0; }
.rail-divider { height: 1px; margin: 7px 5px; background: rgba(120,135,158,.16); }
.rail-link {
  width: 100%; min-height: 35px; padding: 0 9px; margin-bottom: 1px;
  border: 0; border-radius: 10px; background: transparent; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 0; color: var(--ink2);
  font-size: 13px; font-weight: 650; text-align: left; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-smooth), color var(--dur-fast) var(--ease-smooth), gap .3s var(--ease-smooth), padding .3s var(--ease-smooth);
}
.rail.is-expanded .rail-link { justify-content: flex-start; gap: 10px; padding: 0 11px; }
.rail-link > span {
  max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  transform: translateX(-4px);
  transition: max-width .28s var(--ease-smooth), opacity .18s var(--ease-smooth), transform .28s var(--ease-smooth);
}
.rail.is-expanded .rail-link > span { max-width: 154px; opacity: 1; transform: none; }
.rail-link > svg, .rail-link > img {
  width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; object-fit: cover;
}
.rail-link:hover { background: rgba(120,135,158,.12); color: var(--ink); }
.rail-link.is-active { background: var(--ink); color: #fff; }
.rail-tools { display: flex; flex-direction: column; gap: 1px; }
.rail-user {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 0;
  margin: 8px 9px 14px; padding: 8px; border-radius: 14px;
  background: rgba(120,135,158,.10); border: 1px solid rgba(120,135,158,.16);
}
.rail.is-expanded .rail-user { justify-content: flex-start; gap: 10px; margin: 8px 10px 16px; padding: 9px 10px; }
.rail-avatar {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; overflow: hidden;
  background: linear-gradient(140deg, #C9D9F5, #9DBDEE);
  display: grid; place-items: center; font-weight: 700; color: #2B4266;
}
.rail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rail-avatar > span { display: none; }
.rail-avatar.is-fallback img { display: none; }
.rail-avatar.is-fallback > span { display: grid; place-items: center; }
.rail-user-copy { min-width: 0; flex: 0 1 auto; max-width: 0; opacity: 0; overflow: hidden;
  transition: max-width .28s var(--ease-smooth), opacity .18s var(--ease-smooth); }
.rail.is-expanded .rail-user-copy { max-width: 118px; flex: 1 1 auto; opacity: 1; }
.rail-user-copy b { display: block; font-size: 12.5px; color: var(--ink); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.rail-user-copy small { display: block; color: var(--muted); font-size: 10px; }
.rail-logout {
  width: 32px; height: 32px; flex: 0 0 32px; border: 0; border-radius: 10px;
  background: transparent; color: var(--muted); cursor: pointer; display: none; place-items: center;
  transition: background var(--dur-micro) var(--ease-smooth), color var(--dur-micro) var(--ease-smooth);
}
.rail.is-expanded .rail-logout { display: grid; }
.rail-logout:hover { background: rgba(196,98,98,.14); color: var(--red); }
.rail-logout svg { width: 16px; height: 16px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- 内容区 ---------------- */
.content {
  flex: 1 1 auto; min-width: 0; min-height: 0; overflow-y: auto;
  margin-left: 14px; padding: 4px 6px 104px;
}
/* 概览没有 dock，不再为悬浮 dock 预留底部空白 */
.content:has(#home-section:not([hidden])),
.content:has(#settings-section:not([hidden])) { padding-bottom: 0; }
.content:has(#home-section:not([hidden])) { overflow-y: hidden; }
.view-panel { position: relative; }
/* 装修模板库的卡片高度由宽度（aspect-ratio）推导，内容区滚动条出现/消失会反过来
   改变可用宽度，在部分分辨率下形成“高度↔滚动条”的持续震荡；固定预留滚动条槽位。 */
.content:has(#section-template-library:not([hidden])) { scrollbar-gutter: stable; }
/* 内嵌工具底部留出悬浮 dock 的高度，避免编辑区控件被 dock 遮挡 */
.tool-embed-section { padding-bottom: 96px; }
/* 满屏工具页：面板已撑满内容区，去掉外层与区段的底部预留，禁止外层纵向滚动，
   避免出现“能向下滑但下方没有内容”的空白滚动区与滚动条 */
.content:has(#ai-ruitu-section:not([hidden])),
.content:has(#section-license-generator:not([hidden])),
.content:has(#section-product-scraper:not([hidden])) {
  padding-bottom: 0;
  overflow-y: hidden;
}
.content:has(#section-license-generator:not([hidden])) #section-license-generator,
.content:has(#section-product-scraper:not([hidden])) #section-product-scraper {
  padding-bottom: 0;
}
.view-panel:not([hidden]) { animation: view-in var(--dur-view) var(--ease-smooth) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
#ai-ruitu-section { animation: none; }

.view-head { padding: 4px 4px 18px; }
.view-head h1 { margin: 0 0 8px; font-size: 30px; font-weight: 780; letter-spacing: -.04em; }
.view-head p { margin: 0; color: var(--muted); font-size: 13.5px; letter-spacing: .06em; }

/* ---------------- 入场 / 悬浮动画 ---------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.anim { opacity: 0; animation: fadeUp .55s cubic-bezier(.22,.8,.3,1) forwards; }
.lift { transition: transform .2s var(--ease-smooth), box-shadow .2s var(--ease-smooth); }
.lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(40,66,104,.18); }

/* ============================================================

.storage-alert {
  margin-bottom: 16px; padding: 16px 18px; border-radius: 18px;
  display: flex; align-items: flex-start; gap: 13px;
  color: #7A5A20; background: rgba(255,244,213,.72);
  border: 1px solid rgba(187,143,60,.22); box-shadow: 0 14px 35px rgba(96,77,39,.08);
}
#blob-alert { color: #4A557E; background: rgba(237,242,255,.76); border-color: rgba(121,150,225,.22); }
#blob-alert p { color: #6A759E; }
.storage-alert svg { flex: 0 0 auto; width: 22px; margin-top: 2px; fill: none;
  stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.storage-alert strong { font-size: 14px; }
.storage-alert p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; }

.admin-empty { padding: 55px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* ============================================================
   系统设置
   ============================================================ */
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
  gap: 18px; align-items: start; }
.settings-card, .settings-note { border-radius: 26px; padding: 28px; }
.settings-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; }
.settings-icon { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(145deg, #3A5C8E, #22395A);
  box-shadow: 0 13px 26px rgba(34,57,90,.28); }
.settings-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }
.settings-card h2, .settings-note h3 { margin: 7px 0 8px; letter-spacing: -.025em; }
.settings-card p, .settings-note p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.settings-form { grid-column: 2; max-width: 520px; margin-top: 13px; }
.settings-note { height: fit-content; }
.settings-note strong { display: block; margin: 20px 0 15px; font-size: 22px; letter-spacing: -.025em; }
.status-list { display: grid; gap: 12px; margin-top: 18px; }
.status-list span { display: flex; align-items: center; gap: 9px; color: var(--ink2); font-size: 13px; }
.status-list i { width: 10px; height: 10px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 4px rgba(224,138,138,.14); }
.status-list i.is-ready { background: var(--green); box-shadow: 0 0 0 4px rgba(127,200,169,.16); }

.brand-settings-card { grid-column: 1 / -1; border-radius: 26px; padding: 28px; }
.settings-heading { display: flex; align-items: center; justify-content: space-between;
  gap: 28px; margin-bottom: 24px; }
.settings-heading h2 { margin: 7px 0 8px; font-size: 25px; letter-spacing: -.03em; }
.settings-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.brand-live-preview { min-width: 280px; padding: 12px 15px; border-radius: 19px;
  display: flex; align-items: center; gap: 11px;
  background: rgba(255,255,255,.6); border: 1px solid rgba(117,137,159,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9); }
.brand-live-preview .brand-mark { width: 44px; height: 44px; }
.brand-live-preview strong { display: block; font-size: 14px; }
.brand-live-preview small { display: block; margin-top: 3px; color: var(--muted);
  font-size: 10px; letter-spacing: .12em; }
.full-width-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.full-width-form .wide-field { grid-column: 1 / -1; }
.settings-actions { display: flex; justify-content: flex-end; }

.tool-manager-card { grid-column: 1 / -1; padding: 28px; border-radius: 26px; }
.tool-manager-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.tool-manager-heading h2 { margin: 7px 0 8px; font-size: 24px; letter-spacing: -.03em; }
.tool-manager-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.workspace-tool-list { margin-top: 20px; display: grid; gap: 9px; }
.workspace-tool-row { min-width: 0; padding: 12px; border: 1px solid rgba(109,129,156,.16);
  border-radius: 16px; display: grid; grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center; gap: 12px; background: rgba(255,255,255,.56); }
.workspace-tool-row-icon { width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; overflow: hidden;
  color: #fff; background: linear-gradient(145deg,#3A5C8E,#22395A); }
.workspace-tool-row-icon img { width: 100%; height: 100%; object-fit: cover; }
.workspace-tool-row-icon svg { width: 23px; height: 23px; display: block; fill: none;
  stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.workspace-tool-row-copy { min-width: 0; }
.workspace-tool-row-copy b { display: block; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 14px; }
.workspace-tool-row-copy small { display: block; margin-top: 4px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
.workspace-tool-row-actions { display: flex; gap: 7px; }
.workspace-tool-row-actions button { min-height: 34px; padding: 0 10px; border-radius: 10px;
  border: 1px solid rgba(109,129,156,.2); background: rgba(255,255,255,.74);
  color: var(--ink2); cursor: pointer; font-size: 11px; }
.workspace-tool-row-actions .tool-delete { color: #b14b4b; background: rgba(255,238,238,.74);
  border-color: rgba(174,76,76,.18); }

/* ============================================================
   弹窗
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  background: rgba(32,44,64,.34); -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px); cursor: default; }
.modal-card { position: relative; width: min(100%, 860px);
  max-height: min(840px, calc(100vh - 40px)); overflow: auto;
  border-radius: 28px; padding: 28px;
  animation: modal-pop var(--dur-view) var(--ease-spring) both; }
@keyframes modal-pop { from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; } }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; margin-bottom: 25px; }
.modal-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.035em; }
.icon-close { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #68737d; background: rgba(237,240,242,.9); cursor: pointer; }
.icon-close .icon-close-glyph { display: block; width: 16px; height: 16px; pointer-events: none; }
.site-form { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 14px; }
.site-form .modal-actions { grid-column: 1 / -1; }
.featured-option { min-height: 68px; padding: 13px 15px; border-radius: 15px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.56); border: 1px solid rgba(109,129,156,.18); cursor: pointer; }
.featured-option input { appearance: none; width: 38px; height: 22px; min-height: 22px;
  flex: 0 0 38px; padding: 0; border: 0; border-radius: 999px;
  background: #B9C6D6; position: relative; cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(39,52,72,.16);
  transition: background var(--dur-micro) var(--ease-smooth); }
.featured-option input::after { content: ""; position: absolute; width: 16px; height: 16px;
  top: 3px; left: 3px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 5px rgba(35,48,66,.25);
  transition: transform var(--dur-micro) var(--ease-spring); }
.featured-option input:checked { background: var(--blue-deep); }
.featured-option input:checked::after { transform: translateX(16px); }
.file-picker { display: inline-flex; position: relative; }
.file-picker input { position: absolute; width: 1px; height: 1px; min-height: 1px;
  opacity: 0; overflow: hidden; }
.file-picker span { min-height: 38px; padding: 0 14px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink2); background: rgba(255,255,255,.72);
  border: 1px solid rgba(109,129,156,.2); font-size: 12px; cursor: pointer; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 5px; }
.modal-actions .primary-button { min-width: 120px; }
.danger-button { background: linear-gradient(145deg, #C97070, #8E3A3A); }
.tool-avatar-picker { display: flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 8px; border-radius: 14px; border: 1px solid rgba(109,129,156,.18);
  background: rgba(255,255,255,.52); }
.tool-avatar-picker input { min-height: 0; box-shadow: none; flex: 1; }
.tool-avatar-picker small { color: var(--muted); font-size: 11px; }
.tool-code-editor { padding: 16px; border-radius: 18px;
  background: rgba(238,244,250,.7); border: 1px solid rgba(110,130,156,.16); }
.tool-code-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tool-code-heading strong { font-size: 14px; }
.tool-code-heading small { color: var(--muted); font-size: 11px; }
.tool-code-picker { width: fit-content; margin-bottom: 12px; }
.tool-code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------------- Toast ---------------- */
#toast { position: fixed; right: 22px; bottom: 22px; z-index: 120;
  display: block; box-sizing: border-box;
  width: fit-content; min-width: 210px; max-width: min(400px, calc(100vw - 44px));
  padding: 13px 18px; border-radius: 16px;
  color: #fff; background: rgba(34,57,90,.94); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 42px rgba(25,40,70,.28); font-size: 13px; font-weight: 600;
  line-height: 1.65; letter-spacing: .01em; text-align: left; white-space: normal;
  overflow-wrap: anywhere; text-wrap: pretty;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  animation: toast-in var(--dur-fast) var(--ease-spring) both; }
#toast.is-error { background: rgba(126,52,52,.95); border-color: rgba(255,255,255,.16); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: none; } }

/* ============================================================
   悬浮子导航 dock（浮在内容上方，不占文档流）
   ============================================================ */
.dock {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 30; pointer-events: none; display: flex; justify-content: center;
  animation: dock-in var(--dur-view) var(--ease-spring) both;
}
@keyframes dock-in { from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); } }
.dock-inner {
  position: relative;
  pointer-events: auto; display: flex; align-items: center; gap: 4px; padding: 7px;
  border-radius: 18px; background: var(--dark-pill);
  border: 1px solid rgba(120,135,158,.18);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 16px 34px rgba(28,46,74,.16);
}
.dock-item {
  position: relative; z-index: 2; padding: 9px 16px; border: 1px solid transparent; border-radius: 13px; background: transparent;
  color: var(--ink2); font-size: 12.5px; font-weight: 700; white-space: nowrap;
  cursor: pointer; transition: color .2s, background .2s, border-color .2s, box-shadow .3s,
    -webkit-backdrop-filter .2s, backdrop-filter .2s, transform .4s var(--ease-spring);
}
.dock-item:hover { color: var(--ink); transform: translateY(-1px); }
/* 选中项仅文字变白，玻璃由独立选择器提供（样式见 sliding-glass.css） */
.dock-item.is-active {
  color: var(--blue-deep); border-color: transparent; background: transparent;
  box-shadow: none; text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
.dock-item.is-active::before { display: none; }

/* dock 内联搜索框：点“搜索模板”后该项变成输入框，材质沿用 dock 本身 */
.dock-search { display: flex; align-items: center; gap: 4px; }
.dock-search-input {
  width: 200px; height: 32px; padding: 0 12px; border-radius: 12px;
  border: 1px solid rgba(120,135,158,.18); background: rgba(255,255,255,.42);
  color: var(--ink); font-size: 12.5px; outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.dock-search-input::placeholder { color: rgba(104,120,145,.55); }
.dock-search-input:focus { border-color: rgba(83,124,205,.4); background: rgba(255,255,255,.7); box-shadow: 0 0 0 3px rgba(83,124,205,.1); }
.dock-search-go {
  height: 32px; padding: 0 11px; border-radius: 11px; cursor: pointer;
  border: 1px solid rgba(120,135,158,.18); background: rgba(255,255,255,.28);
  color: var(--ink2); font-size: 12px; font-weight: 700;
}
.dock-search-go:hover { color: var(--ink); background: rgba(255,255,255,.62); }

/* dock 下拉：新增组件按钮展开分类面板 */
.dock-dropdown-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.dock-dropdown-caret {
  flex: 0 0 auto; width: 14px; height: 14px; color: currentColor;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  opacity: .52; transition: transform .24s var(--ease-smooth), opacity .18s ease;
}
.dock-dropdown-trigger.is-open .dock-dropdown-caret { transform: rotate(180deg); opacity: .82; }
.dock-dropdown-panel {
  position: fixed; z-index: 90; left: 0; top: 0;
  width: 248px; max-width: min(300px, calc(100vw - 24px)); max-height: 344px;
  display: flex; flex-direction: column; padding: 8px; border-radius: 18px; pointer-events: auto;
  border: 1px solid rgba(255,255,255,.94);
  background: linear-gradient(180deg, rgba(255,255,255,.985), rgba(247,249,251,.965));
  -webkit-backdrop-filter: blur(24px) saturate(1.2); backdrop-filter: blur(24px) saturate(1.2);
  box-shadow: 0 24px 52px rgba(22,32,46,.19), 0 2px 8px rgba(22,32,46,.07);
  transform: translate(-50%, -100%) translateY(8px) scale(.98); transform-origin: bottom center;
  opacity: 1; transition: transform .24s var(--ease-spring);
}
.dock-dropdown-panel.is-open { transform: translate(-50%, -100%) translateY(0) scale(1); }
.dock-dropdown-head { padding: 5px 10px 9px; }
.dock-dropdown-head strong { display: block; color: #20252b; font-size: 13px; letter-spacing: -.01em; }
.dock-dropdown-head small { display: block; margin-top: 3px; color: #8b949d; font-size: 10px; }
.dock-dropdown-list { min-height: 0; display: grid; gap: 2px; padding: 2px; overflow-y: auto; scrollbar-width: thin; }
.dock-dropdown-option {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 36px; padding: 0 10px;
  border: 0; border-radius: 10px; background: transparent; color: #3c454e; cursor: pointer; text-align: left;
  font-size: 12.5px; font-weight: 600; transition: background .15s ease, color .15s ease;
}
.dock-dropdown-option:hover, .dock-dropdown-option:focus-visible { background: rgba(53,60,67,.07); color: #16191e; outline: none; }
.dock-dropdown-option.is-selected { background: rgba(53,60,67,.08); color: #16191e; }
.dock-dropdown-option.is-selected .dock-dropdown-option-dot { background: #353c43; box-shadow: 0 0 0 3px rgba(53,60,67,.08); }
.dock-dropdown-option-dot { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: rgba(53,60,67,.24); transition: background .15s ease, box-shadow .15s ease; }
.dock-dropdown-option:hover .dock-dropdown-option-dot { background: #353c43; }
.dock-dropdown-option-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-dropdown-list::-webkit-scrollbar { width: 6px; }
.dock-dropdown-list::-webkit-scrollbar-thumb { border-radius: 3px; background: rgba(53,60,67,.16); }

/* dock 代码输入：只露一行预览，眼睛按钮打开完整代码；回车/点空白自动识别 */
body #dock-inner > .dock-item.dock-code-field {
  width: 122px; min-width: 108px; max-width: 132px; height: 36px;
  display: flex; align-items: center; gap: 6px;
  padding: 4px 5px 4px 7px;
  border: 1px solid rgba(120,135,158,.2); border-radius: 13px;
  background: rgba(255,255,255,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
  cursor: text; transform: none;
}
body #dock-inner > .dock-item.dock-code-field:hover { transform: none; }
body #dock-inner > .dock-item.dock-code-field:focus-within {
  border-color: rgba(17,17,17,.22);
  background: rgba(255,255,255,.54);
}
body #dock-inner > .dock-item.dock-code-field.has-code { border-color: rgba(17,17,17,.16); }
.dock-code-mark {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 17px; height: 17px; color: rgba(104,120,145,.62);
}
.dock-code-mark svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dock-code-input {
  flex: 1 1 auto; min-width: 0; height: 24px; min-height: 0; max-height: 24px; padding: 2px 0;
  resize: none; overflow: hidden; border: 0; outline: 0;
  background: transparent; color: var(--ink);
  font: 11px/20px "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  white-space: pre; scrollbar-width: none;
}
.dock-code-input::-webkit-scrollbar { display: none; }
.dock-code-input::placeholder { color: rgba(104,120,145,.58); font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 500; }
.dock-code-eye {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 26px; height: 26px; padding: 0; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--ink2); cursor: pointer;
}
.dock-code-eye svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dock-code-eye:hover { color: var(--ink); background: rgba(255,255,255,.58); border-color: rgba(120,135,158,.18); }
.dock-code-eye:focus-visible { outline: 2px solid rgba(17,17,17,.22); outline-offset: 1px; }
@media (max-width: 720px) {
  body #dock-inner > .dock-item.dock-code-field { width: 116px; min-width: 106px; max-width: 124px; }
  .dock-code-mark { display: none; }
}

/* 拖出 dock 的浮标与投放目标高亮 */
.dock-drag-chip {
  position: fixed; z-index: 70; pointer-events: none;
  padding: 8px 14px; border-radius: 12px;
  background: rgba(255,255,255,.94); border: 1px solid rgba(83,124,205,.34);
  color: var(--ink); font-size: 12.5px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 14px 30px rgba(40,66,104,.22);
  transform: translate(-50%, -140%);
}
.is-drop-target { outline: 1px dashed rgba(83,124,205,.45); outline-offset: 3px; }
.is-drop-hot {
  outline: 2px solid rgba(83,124,205,.8); outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(83,124,205,.12);
}

/* ============================================================
   执照生成器（内嵌）：无抬头、动作全部在 dock
   ============================================================ */
/* 工具脚本需要的隐藏触发点，不参与布局也不显示 */
.dock-proxies { display: none !important; }

#section-license-generator .license-workspace {
  grid-template-columns: minmax(300px, 356px) minmax(0, 1fr);
  gap: 16px; align-items: stretch; justify-content: stretch;
  min-height: 0;
}
#section-license-generator .license-editor,
#section-license-generator .license-preview {
  position: static;
  height: calc(100vh - 132px); min-height: 460px; max-height: 900px;
  overflow: hidden;
}
/* 预览面板跟随内容区铺满，去掉 920px 上限，避免右侧留出大片空白 */
#section-license-generator .license-preview { max-width: none; width: 100%; }

/* 预览头部：标题 + 元信息 + 缩放组，一行排布 */
#section-license-generator .license-preview .panel-head {
  padding: 14px 18px 13px; gap: 14px;
  border-bottom: 1px solid rgba(113,123,135,.11);
  background: rgba(255,255,255,.45);
}
#section-license-generator .license-preview .panel-title { font-size: 14px; }
#section-license-generator .license-preview .panel-sub { font-size: 10px; margin-top: 2px; }
#section-license-generator .preview-zoom {
  display: flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 12px;
  border: 1px solid rgba(113,123,135,.14);
  background: rgba(255,255,255,.62);
}
#section-license-generator .preview-zoom button {
  width: 27px; height: 27px; border: 0; border-radius: 9px;
  background: transparent; color: #555e69; font-size: 15px; cursor: pointer;
}
#section-license-generator .preview-zoom button:hover { background: rgba(255,255,255,.9); color: #222; }
#section-license-generator .preview-zoom span { min-width: 40px; font-size: 10px; }

/* 预览舞台：干净浅底 + 居中画布（ai-ruitu.css 同名 .preview-stage 是 grid，这里改回 flex） */
#section-license-generator .preview-stage {
  display: flex; grid-template-columns: none;
  padding: 26px; justify-content: center; align-items: center;
  overflow: auto;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,.9), rgba(255,255,255,0) 62%),
    linear-gradient(180deg, #f4f7fb, #eef2f8);
}
#section-license-generator #previewCanvas {
  margin: auto; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 20px 46px rgba(31,45,66,.16), 0 2px 6px rgba(31,45,66,.06);
}
#section-license-generator .preview-placeholder { color: #9aa6b4; }

/* 预览底部的 PSD 状态改为元信息行尾的弱化小字，不再单独占一条 */
#section-license-generator .preview-meta-stack .psd-engine-status {
  display: block; margin: 3px 0 0; padding: 0;
  background: none; border: 0; font-size: 9.5px; line-height: 1.4;
  color: #98a2ae;
  max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

#section-license-generator .editor-block { padding: 16px 0; }
#section-license-generator .editor-block:first-child { padding-top: 10px; }
/* 搜索结果为空时只收起结果列表，搜索行常驻 */
#section-license-generator .search-results-block #searchResults:empty { display: none; }
/* 状态条挂在编辑面板底部，避免被悬浮 dock 压住 */
#section-license-generator .editor-status {
  margin: 0; border-radius: 0 0 24px 24px;
  border: 0; border-top: 1px solid rgba(113,123,135,.13);
  background: rgba(255,255,255,.52);
  padding: 11px 15px; font-size: 11px;
}
#section-license-generator .editor-status .status-dot { margin-top: 3px; }
/* 国家选择压紧，给字段区腾出高度 */
#section-license-generator .country-grid { gap: 7px; }
#section-license-generator .country-chip { padding: 8px 10px; font-size: 11.5px; border-radius: 11px; }
#section-license-generator .country-chip .flag { font-size: 15px; }
#section-license-generator .variant-switch { margin-top: 7px; }
#section-license-generator .tool-note { margin-top: 10px; }

@media (max-width: 1240px) {
  #section-license-generator .license-workspace { grid-template-columns: minmax(0, 1fr); }
  #section-license-generator .license-editor,
  #section-license-generator .license-preview { height: auto; max-height: none; min-height: 460px; }
  #section-license-generator .license-preview { min-height: 560px; }
}

/* 余额卡片 dock 筛选高亮 / 弱化 */
.balance-card { transition: opacity .25s var(--ease-smooth), filter .25s var(--ease-smooth),
  box-shadow .25s var(--ease-smooth); }
.balance-card.dock-dim { opacity: .32; filter: saturate(.5); }
.balance-card.dock-hot { box-shadow: inset 0 1px 0 rgba(255,255,255,.85); }

/* ============================================================
   响应式
   ============================================================ */
/* 本月进度：右栏收尾卡片 */
.month-panel { display: flex; flex-direction: column; padding: 10px 15px 11px; }
.month-figure { display: flex; align-items: baseline; gap: 8px; margin-top: 7px; }
.month-figure em { margin-left: auto; font-style: normal; font-size: 9px; color: var(--muted); }
.month-figure em b { font-size: 9px; font-weight: 650; color: var(--ink2); }
.month-figure b { font-size: 22px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.month-figure span { font-size: 9.5px; color: var(--muted); }
.month-bar { position: relative; height: 5px; margin-top: 8px; border-radius: 99px; background: rgba(20,24,28,.08); overflow: hidden; }
.month-bar i { position: absolute; inset: 0 0 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, #45b98a, #15805a); transition: width .5s ease; }
/* 下一个法定节假日：独立小卡，填在月进度下方空位 */
.holiday-panel { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 9px 14px 9px 11px; flex: 1 1 auto; }
.holiday-badge { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: rgba(20,24,28,.055); border: 1px solid rgba(20,24,28,.08); font-size: 11px; font-weight: 650; color: var(--ink2); }
.holiday-info { flex: 1 1 auto; min-width: 0; }
.holiday-kicker { margin: 0 0 1px; font-size: 8.5px; letter-spacing: .1em; color: var(--muted); }
.holiday-name { display: flex; align-items: baseline; gap: 6px; margin: 0; white-space: nowrap; overflow: hidden; }
.holiday-name b { font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.holiday-name span { font-size: 8.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.holiday-count { flex: 0 0 auto; display: flex; align-items: baseline; gap: 3px; }
.holiday-count b { font-size: 24px; line-height: 1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.holiday-count span { font-size: 9px; color: var(--muted); }

/* 本月每日收入：条状数据分析 */
.dash-daily { display: flex; flex-direction: column; flex: 1 1 auto; padding: 10px 16px; }
.dash-daily .dash-panel-head { align-items: center; }
.daily-figure { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.daily-figure b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.daily-figure span { font-size: 9.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.daily-chart { margin-top: 6px; }
.daily-chart svg { display: block; width: 100%; height: auto; }
.daily-grid line { stroke: rgba(20,24,28,.07); }
.daily-grid text, .daily-x text { fill: #98a1a9; font-size: 9px; font-variant-numeric: tabular-nums; }
.daily-bar-past { fill: #2b323a; }
.daily-bar-plan { fill: rgba(20,24,28,.055); stroke: rgba(20,24,28,.16); stroke-dasharray: 2 3; }
.daily-bar-today { fill: #15805a; }
.daily-bar-rest { fill: rgba(20,24,28,.22); }
.daily-today-band { fill: rgba(21,128,90,.055); }
.daily-today-label { fill: #15805a; font-size: 9px; font-weight: 700; font-variant-numeric: tabular-nums; }
.daily-legend { display: flex; align-items: center; gap: 16px; margin: 6px 0 0; font-size: 9.5px; color: var(--muted); }
.daily-legend span { display: inline-flex; align-items: center; gap: 5px; }
.daily-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; padding-top: 9px; border-top: 1px solid rgba(20,24,28,.07); }
.daily-foot > div { display: flex; flex-direction: column; gap: 3px; }
.daily-foot span { font-size: 9px; color: var(--muted); }
.daily-foot b { font-size: 13px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--ink2); }
.daily-dot { width: 8px; height: 8px; border-radius: 2px; background: #2b323a; }
.daily-dot.is-today { background: #15805a; }
.daily-dot.is-plan { background: rgba(20,24,28,.07); border: 1px dashed rgba(20,24,28,.22); }
.daily-dot.is-rest { background: rgba(20,24,28,.22); width: 6px; height: 2px; border-radius: 2px; }

/* ---------------- 概览：个人数据面板（金融看板布局） ---------------- */
.dash { display: flex; flex-direction: column; gap: 10px; padding-bottom: 0; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 0 2px; }
.dash-date { margin: 0; font-size: 10.5px; font-weight: 650; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.dash-greeting { margin: 5px 0 0; font-size: 27px; font-weight: 700; letter-spacing: -.025em; color: var(--ink); line-height: 1.12; }
.dash-head-side { display: flex; align-items: center; gap: 8px; padding-bottom: 2px; }
.dash-live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: rgba(20,24,28,.06); border: 1px solid rgba(20,24,28,.08); font-size: 10.5px; color: var(--ink2); }
.dash-live i { width: 6px; height: 6px; border-radius: 50%; background: #2f7d5c; box-shadow: 0 0 0 3px rgba(47,125,92,.14); }
.dash-live b { font-weight: 650; letter-spacing: .02em; }
.dash-live.is-off i { background: #98a1a9; box-shadow: 0 0 0 3px rgba(152,161,169,.14); }
.dash-clock { padding: 4px 9px; border-radius: 9px; background: rgba(255,255,255,.6); border: 1px solid rgba(20,24,28,.08); font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--ink2); }

.dash-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 12px; align-items: stretch; }
.dash-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; height: 100%; }
.dash-rail { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.dash-panel {
  background: rgba(255,255,255,.74); border: 1px solid rgba(20,24,28,.08); border-radius: 18px;
  padding: 15px 17px; box-shadow: 0 16px 38px -28px rgba(20,24,28,.28);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.dash-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dash-panel h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .01em; color: var(--ink); }
.dash-panel-note { margin: 4px 0 0; font-size: 10px; line-height: 1.5; color: var(--muted); }
.dash-tag { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(20,24,28,.1); font-size: 9.5px; letter-spacing: .05em; color: var(--muted); }

/* 主区头卡：本月收入 + 走势 + 右侧三格实时数字 */
.dash-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 214px; overflow: hidden;
  background: rgba(255,255,255,.76); border: 1px solid rgba(20,24,28,.08); border-radius: 20px;
  box-shadow: 0 22px 46px -30px rgba(20,24,28,.3);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.dash-hero-main { padding: 14px 18px 11px; min-width: 0; }
.dash-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dash-kicker { margin: 0; font-size: 9.5px; font-weight: 650; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.dash-hero-value { margin: 0 0 2px; font-size: 40px; line-height: 1.06; font-weight: 700; letter-spacing: -.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.dash-hero-sub { margin: 0; font-size: 10.5px; color: var(--muted); }
.dash-hero-chart { margin-top: 8px; }
.dash-hero-chart svg { display: block; width: 100%; height: auto; }
.dash-legend { display: flex; align-items: center; gap: 18px; margin-top: 2px; font-size: 9.5px; color: var(--muted); }
.dash-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dash-legend b { color: var(--ink2); font-weight: 650; font-variant-numeric: tabular-nums; }
.dash-legend i { width: 15px; height: 2px; border-radius: 99px; background: #22282e; }
.dash-legend i.is-dash { background: repeating-linear-gradient(90deg, rgba(34,40,46,.45) 0 3px, transparent 3px 6px); }

.dash-hero-side { display: flex; flex-direction: column; border-left: 1px solid rgba(20,24,28,.08); background: rgba(255,255,255,.34); }
.trend-grid line { stroke: rgba(20,24,28,.07); }
.trend-grid text, .trend-ticks text { fill: #98a1a9; font-size: 9px; font-variant-numeric: tabular-nums; }
.trend-line { fill: none; stroke: #22282e; stroke-width: 2; stroke-linecap: round; }
.trend-area { fill: url(#dashArea); }
.trend-dot circle { fill: #22282e; }
.trend-forecast { fill: none; stroke: rgba(34,40,46,.42); stroke-width: 1.5; stroke-dasharray: 4 5; stroke-linecap: round; }

.dash-stat { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; padding: 12px 16px; border-bottom: 1px solid rgba(20,24,28,.07); }
.dash-stat:last-child { border-bottom: none; }
.dash-stat-label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 9.5px; font-weight: 650; letter-spacing: .09em; color: var(--muted); text-transform: uppercase; }
.dash-stat-value { margin-top: 4px; font-size: 22px; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.dash-stat-live .dash-stat-value { font-size: 26px; }
.dash-stat-delta { margin: 3px 0 0; font-size: 9.5px; color: var(--muted); }
.dash-tick { color: #2f7d5c; font-weight: 650; font-variant-numeric: tabular-nums; }
.dash-tick.is-tick { animation: dashTick .55s ease; }
@keyframes dashTick { 0% { opacity: .25; transform: translateY(2px); } 55% { opacity: 1; } 100% { opacity: .9; transform: none; } }
.dash-pulse { width: 6px; height: 6px; border-radius: 50%; background: #22282e; animation: dashPulse 1s ease-out infinite; }
@keyframes dashPulse { 0% { box-shadow: 0 0 0 0 rgba(34,40,46,.28); } 70% { box-shadow: 0 0 0 7px rgba(34,40,46,0); } 100% { box-shadow: 0 0 0 0 rgba(34,40,46,0); } }
.dash-value.is-ticking { animation: valueTick .5s ease; }
.is-money { color: #15805a !important; }
.dash-stat-value.is-bump, .dash-hero-value.is-bump, #daily-total.is-bump { animation: moneyBump .5s cubic-bezier(.2,1.35,.36,1); }
@keyframes moneyBump {
  0% { transform: translateY(0) scale(1); }
  38% { transform: translateY(-4px) scale(1.055); }
  72% { transform: translateY(1px) scale(.995); }
  100% { transform: translateY(0) scale(1); }
}
.dash-pulse { background: #15805a; animation: dashPulseGreen 1s ease-out infinite; }
@keyframes dashPulseGreen { 0% { box-shadow: 0 0 0 0 rgba(21,128,90,.32); } 70% { box-shadow: 0 0 0 7px rgba(21,128,90,0); } 100% { box-shadow: 0 0 0 0 rgba(21,128,90,0); } }
.trend-dot circle { fill: #15805a; }
.hours-day.is-today .hours-fill { background: linear-gradient(180deg, #45b98a, #15805a); }
.bal-card .bal-total { color: #8fe3b6 !important; }
@keyframes valueTick { 0% { opacity: .55; } 100% { opacity: 1; } }

/* 主区第二排：工时柱 / 工时仪表 / 入职与出勤 */
.dash-row { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr) minmax(0, 1fr); gap: 13px; align-items: stretch; }
.hours-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; margin-top: 14px; }
.hours-day { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.hours-val { height: 11px; font-size: 8.5px; line-height: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours-track { position: relative; width: 100%; max-width: 28px; height: 84px; border-radius: 999px; background: rgba(20,24,28,.055); overflow: hidden; }
.hours-fill { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 999px; background-color: #23292f; background-image: linear-gradient(180deg, #4a535c, #22282e); transition: height .45s ease; }
.hours-bar { display: block; width: 100%; height: 100%; }
.hours-day.is-rest .hours-track { border: 1px dashed rgba(20,24,28,.16); background: transparent; }
.hours-day.is-today .hours-track { box-shadow: inset 0 0 0 1px rgba(34,40,46,.28); }
.hours-day.is-today .hours-val { color: var(--ink); font-weight: 700; }
.hours-label { font-size: 9px; color: var(--muted); }
.hours-day.is-today .hours-label { color: var(--ink); font-weight: 650; }
.hours-legend { display: flex; align-items: center; gap: 14px; margin: 10px 0 0; font-size: 9px; color: var(--muted); }
.hours-legend span { display: inline-flex; align-items: center; gap: 5px; }
.hours-legend i { width: 12px; height: 2px; border-radius: 99px; background: #22282e; }
.hours-legend i.is-plan { background: rgba(20,24,28,.18); }

.gauge-wrap { margin-top: 4px; }
.gauge-wrap svg { display: block; width: 100%; height: auto; }
.gauge-seg { fill: none; stroke: rgba(20,24,28,.1); stroke-width: 9; }
.gauge-seg.is-on { stroke: #22282e; }
.gauge-value { fill: var(--ink); font-size: 25px; font-weight: 700; letter-spacing: -.02em; }
.gauge-unit { fill: var(--muted); font-size: 9.5px; font-weight: 600; letter-spacing: .04em; }
.gauge-note { margin-top: 2px; text-align: center; }

.tracker-list { display: flex; flex-direction: column; gap: 11px; margin-top: 13px; }
.tracker-row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--muted); }
.tracker-row-top b { font-size: 10.5px; color: var(--ink2); font-weight: 650; font-variant-numeric: tabular-nums; }
.tracker-bar { height: 5px; margin-top: 5px; border-radius: 99px; background: rgba(20,24,28,.07); overflow: hidden; }
.tracker-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #22282e, #5d666f); transition: width .4s ease; }
.tracker-tenure { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 11px; border-top: 1px solid rgba(20,24,28,.08); font-size: 9.5px; color: var(--muted); }
.tracker-tenure b { font-size: 13px; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.dash-meter { height: 4px; margin-top: 8px; border-radius: 99px; background: rgba(20,24,28,.08); overflow: hidden; }
.dash-meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #22282e, #6a737b); transition: width .45s ease; }

/* 右栏：平台余额卡（实体银行卡风格） */
.bal-panel { padding: 11px 15px 7px; }
.dash-icon-btn {
  flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; padding: 0;
  border-radius: 9px; border: 1px solid rgba(20,24,28,.1); background: rgba(255,255,255,.65); color: var(--ink2); cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.dash-icon-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dash-icon-btn:hover { background: #fff; transform: translateY(-1px); }
.dash-icon-btn.is-busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.bal-card {
  position: relative; display: flex; flex-direction: column; min-height: 126px; margin-top: 8px; padding: 10px 15px 8px;
  border-radius: 18px; color: #f4f6f8; overflow: hidden;
  background:
    radial-gradient(130% 150% at 88% -18%, rgba(255,255,255,.2), transparent 58%),
    linear-gradient(145deg, #343b43 0%, #1c2127 52%, #101418 100%);
  box-shadow: 0 20px 36px -20px rgba(12,16,20,.6), inset 0 1px 0 rgba(255,255,255,.12);
}
.bal-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.02) 34%, transparent 55%);
}
.bal-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.bal-brand { font-size: 9.5px; font-weight: 650; letter-spacing: .18em; color: rgba(244,246,248,.6); }
.bal-mask { font-size: 9.5px; letter-spacing: .12em; color: rgba(244,246,248,.62); font-variant-numeric: tabular-nums; }
.bal-label { position: relative; z-index: 1; margin: 17px 0 0; font-size: 9px; letter-spacing: .16em; color: rgba(244,246,248,.56); }
.bal-total { position: relative; z-index: 1; margin-top: 4px; font-size: 29px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bal-meta { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; font-size: 9.5px; color: rgba(244,246,248,.58); letter-spacing: .04em; }

.bal-list { display: flex; flex-direction: column; margin-top: 2px; }
.bal-row { display: flex; align-items: center; gap: 9px; padding: 4px 2px; border-bottom: 1px solid rgba(20,24,28,.07); }
.bal-row:last-child { border-bottom: none; }
.bal-row-icon { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: rgba(20,24,28,.06); font-size: 9.5px; font-weight: 700; color: var(--ink2); letter-spacing: .02em; }
.bal-row-main { flex: 1 1 auto; min-width: 0; }
.bal-row-name { font-size: 10.5px; font-weight: 650; color: var(--ink); }
.bal-row-sub { margin-top: 2px; font-size: 8.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bal-row-amount { flex: 0 0 auto; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.bal-row-amount small { display: block; margin-top: 1px; font-size: 8.5px; font-weight: 500; color: var(--muted); letter-spacing: .03em; }
.bal-skeleton { display: grid; place-items: center; min-height: 116px; font-size: 10.5px; color: var(--muted); }
.bal-foot { margin: 6px 0 0; font-size: 8.5px; line-height: 1.5; color: var(--muted); }

/* 右栏：下班倒计时 */
.offwork-panel { padding: 12px 17px 11px; }
.offwork-value { margin-top: 8px; font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.offwork-note { margin: 4px 0 0; font-size: 9.5px; color: var(--muted); }
.shift-track { position: relative; height: 6px; margin-top: 9px; border-radius: 99px; background: rgba(20,24,28,.08); }
.shift-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, #22282e, #5d666f); transition: width .4s ease; }
.shift-now { position: absolute; top: 50%; left: 0; width: 3px; height: 12px; margin-top: -6px; border-radius: 2px; background: #22282e; transform: translateX(-1px); transition: left .4s ease; }
.shift-scale { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 8.5px; color: var(--muted); letter-spacing: .04em; }

/* 右栏：本周班次 */
.week-panel { padding: 12px 17px; }
.week-tag { flex: 0 0 auto; padding: 4px 11px; border-radius: 999px; background: #22282e; color: #fff; font-size: 10px; font-weight: 650; letter-spacing: .04em; }
.week-dots { display: flex; gap: 5px; margin-top: 12px; }
.week-dot { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.week-dot i { width: 100%; height: 24px; border-radius: 7px; background: rgba(20,24,28,.07); }
.week-dot.is-work i { background: linear-gradient(180deg, #454e57, #22282e); }
.week-dot.is-rest i { background: transparent; border: 1px dashed rgba(20,24,28,.18); }
.week-dot.is-today i { box-shadow: 0 0 0 2px rgba(34,40,46,.22); }
.week-dot span { font-size: 8.5px; color: var(--muted); }
.week-dot.is-today span { color: var(--ink); font-weight: 650; }

@media (max-width: 1080px) {
  .dash-layout { grid-template-columns: minmax(0, 1fr); }
  .dash-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .dash-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dash-panel-tracker { grid-column: 1 / -1; }
  .settings-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --rail-w: 76px; }
  .dash-hero { grid-template-columns: minmax(0, 1fr); }
  .dash-hero-side { flex-direction: row; border-left: none; border-top: 1px solid rgba(20,24,28,.08); }
  .dash-stat { border-bottom: none; border-right: 1px solid rgba(20,24,28,.07); }
  .dash-stat:last-child { border-right: none; }
  .dash-row, .dash-rail { grid-template-columns: minmax(0, 1fr); }
  .dash-panel-tracker { grid-column: auto; }
  .dash-hero-value { font-size: 31px; }
  .dash-greeting { font-size: 23px; }
  .dash-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .rail.is-expanded { width: var(--rail-w); }
  .rail-link { justify-content: center; padding: 0 9px; gap: 0; }
  .rail-link > span { display: none; }
  .rail-user-copy { display: none; }
  .rail-user { justify-content: center; padding: 6px; }
  .rail-logout { display: none; }
  .site-form, .tool-code-grid, .full-width-form { grid-template-columns: 1fr; }
  .full-width-form .wide-field { grid-column: auto; }
  .settings-heading { flex-direction: column; align-items: flex-start; }
  .dock-item { padding: 9px 11px; }
}

/* ============================================================
   浅灰磨砂玻璃覆盖块（第九版）
   背景为浅灰，卡片模仿玻璃文件夹的浅色玻璃：半透磨砂 + 顶部亮边
   + 柔和黑色投影，卡片浮于浅灰背景之上、边界清晰
   ============================================================ */
/* 外壳大容器：浅色玻璃，保留更大投影 */
.app {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--glass-rim);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 18px 44px -28px rgba(37,43,53,.22);
}
/* 内容玻璃面板统一浅色磨砂 */
.glass-panel,
.settings-card, .settings-note, .brand-settings-card, .tool-manager-card,
.modal-card {
  background:
    var(--glass-spec),
    linear-gradient(160deg, rgba(255,255,255,.72), rgba(255,255,255,.50));
  border: 1px solid rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.90),
    0 14px 32px rgba(20,28,45,.10),
    0 3px 10px rgba(20,28,45,.05);
}
/* 输入字段：浅色半透 + 细亮边 + 深色文字 */
input, select, textarea {
  background: rgba(255,255,255,.78);
  border-color: rgba(109,129,156,.22);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(76,120,184,.6);
  box-shadow: 0 0 0 4px rgba(76,120,184,.14), inset 0 1px 0 #fff;
}
/* 次级按钮 / 图标 / 工具小容器统一浅色玻璃 */
.password-toggle, .icon-button, .secondary-button,
.brand-live-preview, .workspace-tool-row, .file-picker span,
.tool-avatar-picker, .featured-option,
.workspace-tool-row-actions button {
  background: rgba(255,255,255,.66);
  border-color: rgba(109,129,156,.18);
  color: var(--ink2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.password-toggle:hover, .icon-button:hover, .secondary-button:hover,
.file-picker span:hover, .workspace-tool-row-actions button:hover {
  background: #fff; color: var(--ink);
}
/* 卡片内部子块：更透一层的内嵌浅色玻璃 */
.tool-code-editor {
  background: rgba(255,255,255,.5);
  border-color: rgba(109,129,156,.14);
  color: var(--ink2);
}
/* 侧边栏导航选中项：深色胶囊（近黑底白字）；底部 dock 选中项见上方液态玻璃 */
.rail-link.is-active { background: var(--ink); color: #fff; }
/* 开关轨道：浅灰半透，白色 knob 保留 */
.featured-option input {
  background: #B9C6D6;
  box-shadow: inset 0 1px 3px rgba(39,52,72,.16);
}
/* 主按钮蓝色渐变，浅底上更立体 */
.primary-button { background: linear-gradient(145deg, #34507C, #203553); }
.lift:hover { box-shadow: 0 18px 40px rgba(40,66,104,.18); }
/* 告警条：浅色玻璃 + 语义色 */
.storage-alert {
  background: rgba(255,244,213,.72);
  border-color: rgba(187,143,60,.22); color: #7A5A20;
}
.storage-alert p, .storage-alert strong { color: #7A5A20; }
#blob-alert {
  background: rgba(237,242,255,.76);
  border-color: rgba(121,150,225,.22); color: #4A557E;
}
#blob-alert p { color: #6A759E; }
/* 正向/危险状态：浅色玻璃 + 语义色 */
.workspace-tool-row-actions .tool-delete {
  background: rgba(255,237,237,.78); color: #b14b4b;
  border-color: rgba(176,74,74,.16);
}
.form-error { color: #b14b4b; }



/* ============================================================
   数据拆分（xlsx-splitter）内嵌工作区：双栏骨架与执照面板一致
   ============================================================ */
.split-workspace{display:grid;grid-template-columns:minmax(380px,470px) minmax(0,1fr);gap:14px;align-items:stretch}
.split-editor,.split-results{
  display:flex;flex-direction:column;position:sticky;top:104px;
  min-height:calc(100vh - 220px);max-height:calc(100vh - 168px);
}
.split-scroll{flex:1 1 auto;overflow-y:auto;padding:0 0 12px}
.split-editor .sheet-list{max-height:none}
.split-editor .drop-zone{margin:14px}
.split-editor .xlsx-file-card{margin:0 14px 12px}
.split-editor .split-settings{margin:0 14px 12px}
.split-editor .switch-row{margin:0 14px 12px}
.split-editor .sheet-select-title{margin:2px 14px 8px}
.split-editor .editor-status{padding:10px 16px 14px;border-top:1px solid rgba(113,123,135,.11)}
.split-results .results-list-inline{flex:1 1 auto;min-height:0;max-height:none;padding:0 16px;align-content:start}
.split-results .split-explain{padding:12px 16px 4px}
.split-results .progress-wrap{margin-top:auto;border-top:1px solid rgba(113,123,135,.11)}
.split-scroll::-webkit-scrollbar,.results-list-inline::-webkit-scrollbar{width:9px;height:9px}
.split-scroll::-webkit-scrollbar-thumb,.results-list-inline::-webkit-scrollbar-thumb{background:rgba(110,120,131,.25);border-radius:99px;border:2px solid transparent;background-clip:content-box}
@media(max-width:1100px){
  .split-workspace{grid-template-columns:1fr}
  .split-editor,.split-results{position:static;max-height:none;min-height:0}
  .split-editor .sheet-list{max-height:320px}
}

/* 数据拆分内嵌工作区：紧凑化修正（左栏首屏要能看到工作表列表） */
.split-editor,.split-results{min-height:calc(100vh - 196px);max-height:calc(100vh - 150px)}
.split-editor .drop-zone{min-height:108px;padding:16px;margin:12px 14px}
.split-editor .drop-zone b{font-size:13px}
.split-editor .drop-zone span{font-size:11px;margin-top:4px}
.split-editor .xlsx-file-card{margin:0 14px 10px;padding:12px 14px}
.split-editor .split-settings{margin:0 14px 10px;gap:8px}
.split-editor .setting-field{padding:10px 12px}
.split-editor .setting-field strong{font-size:12px}
.split-editor .setting-field small{font-size:10.5px;line-height:1.45}
.split-editor .switch-row{margin:0 14px 10px;padding:11px 13px}
.split-editor .sheet-select-title{margin:2px 14px 6px}
.split-editor .sheet-list{min-height:132px}
.split-editor .queue-empty{padding:18px 12px;font-size:11.5px}

/* 数据拆分左栏：压缩到首屏可见工作表列表 */
.split-editor,.split-results{min-height:calc(100vh - 176px);max-height:calc(100vh - 140px)}
.split-editor .drop-zone{min-height:100px;padding:14px;margin:12px 14px}
.split-editor .drop-icon{width:38px;height:38px;margin-bottom:6px}
.split-editor .drop-icon svg{width:19px;height:19px}
.split-editor .drop-zone b{font-size:12.5px}
.split-editor .drop-zone span{margin-top:3px;font-size:10.5px}
.split-editor .xlsx-file-card{padding:11px 13px;margin:0 14px 10px}
.split-editor .xlsx-file-name{font-size:12.5px}
.split-editor .xlsx-file-meta{font-size:10.5px;margin-top:3px}
.split-editor .split-settings{gap:8px;margin:0 14px 10px}
.split-editor .setting-field{padding:9px 11px;gap:8px;border-radius:15px}
.split-editor .setting-field strong{font-size:10.5px}
.split-editor .setting-field small{margin-top:2px;font-size:9.5px}
.split-editor .setting-input-wrap input{width:58px;height:32px;font-size:12px}
.split-editor .switch-row{padding:10px 12px;margin:0 14px 10px;border-radius:15px}
.split-editor .switch{width:40px;height:23px}
.split-editor .switch-ui::after{width:17px;height:17px}
.split-editor .switch input:checked + .switch-ui::after{transform:translateX(17px)}
.split-editor .sheet-select-title{padding:2px 16px 6px}
.split-editor .sheet-list{min-height:112px}
.split-editor .queue-empty{padding:16px 12px;font-size:11px}

/* 数据拆分：单行设置栏（上限 / 表头 / 自动拆分） */
.split-editor .split-config-bar{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  margin:0 14px 10px;padding:9px 12px;border-radius:15px;
  border:1px solid rgba(109,119,131,.13);background:rgba(255,255,255,.46);
}
.split-editor .config-item{display:flex;align-items:center;gap:6px;font-size:10.5px;color:#5a636d;font-weight:620}
.split-editor .config-input{display:inline-flex;align-items:center;gap:4px}
.split-editor .config-input input{
  width:52px;height:30px;border:1px solid rgba(105,115,127,.17);border-radius:10px;
  background:rgba(255,255,255,.82);padding:0 7px;text-align:right;
  color:#343b43;font-weight:720;font-size:12px;outline:none;
}
.split-editor .config-input input:focus{border-color:#565f69;box-shadow:0 0 0 3px rgba(70,79,89,.07)}
.split-editor .config-input em{font-style:normal;color:#8d96a0;font-size:9px}
.split-editor .config-auto{display:flex;align-items:center;gap:7px;margin-left:auto;font-size:10.5px;color:#5a636d;font-weight:620}
.split-editor .config-auto .switch{width:38px;height:22px}
.split-editor .config-auto .switch-ui::after{width:16px;height:16px}
.split-editor .config-auto .switch input:checked + .switch-ui::after{transform:translateX(16px)}

/* 有拆分结果时收起说明卡，把空间让给结果列表 */
.split-results:has(.result-card) .split-explain{display:none}

/* 恢复：结果面板底部保留三张说明卡，避免大片空白 */
.split-results:has(.result-card) .split-explain{display:grid}

/* 面板高度收在悬浮 dock 上方，避免底部被遮挡 */
.split-editor,.split-results{min-height:calc(100vh - 262px);max-height:calc(100vh - 212px)}

/* 导入后收起拖拽大区，把高度让给工作表列表 */
.split-scroll{display:flex;flex-direction:column}
.split-editor:has(#fileCard:not([hidden])) .drop-zone{display:none}
.split-editor .sheet-list{flex:1 1 auto;min-height:108px}
/* 面板底边贴到 dock 上方留 30px */
.split-editor,.split-results{min-height:calc(100vh - 153px);max-height:calc(100vh - 143px)}
.daily-zero-label { fill: #7d8790; font-size: 9.5px; font-variant-numeric: tabular-nums; }
