/* ============================================================
   杨小姐手工坊 · 经营管理　亮蓝色主题
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --blue-700:#0b56c9;
  --blue-600:#1677ff;
  --blue-500:#3b8cff;
  --blue-300:#8fc0ff;
  --blue-100:#dbeaff;
  --blue-50:#eff6ff;

  --bg:#f2f7fe;
  --panel:#ffffff;
  --line:#e4edfb;
  --line-soft:#eff4fc;
  --text:#0f1e35;
  --text-2:#334865;
  --muted:#78899f;

  --green:#0f9d58;
  --green-soft:#e7f6ee;
  --red:#e5484d;
  --red-soft:#fdeced;
  --amber:#c47b00;
  --amber-soft:#fff5e5;
  --violet:#6b5bd2;
  --violet-soft:#eeebfe;

  --radius:16px;
  --radius-sm:10px;
  --shadow-sm:0 1px 2px rgba(15,30,53,.04), 0 2px 8px rgba(15,30,53,.03);
  --shadow-md:0 6px 22px rgba(22,86,201,.08);
  --shadow-blue:0 8px 20px rgba(22,119,255,.22);
}

html{ -webkit-text-size-adjust:100%; }

body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;
  background:
    radial-gradient(900px 420px at 88% -8%, #e4f0ff 0%, rgba(228,240,255,0) 62%),
    radial-gradient(700px 380px at 0% 0%, #eef6ff 0%, rgba(238,246,255,0) 55%),
    var(--bg);
  color:var(--text);
  font-size:14px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

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

.ico-svg{ width:18px; height:18px; flex:0 0 auto; display:inline-block; vertical-align:-3px; }

/* ---------------- 布局 ---------------- */

.app{ display:flex; min-height:100vh; }

.sidebar{
  width:246px; flex:0 0 246px;
  background:#fff;
  border-right:1px solid var(--line);
  position:sticky; top:0; height:100vh;
  display:flex; flex-direction:column;
  padding:22px 14px 16px;
  z-index:30;
}

.brand{ display:flex; align-items:center; gap:11px; padding:0 8px 22px; }
.brand-icon{
  width:42px; height:42px; flex:0 0 42px; border-radius:13px;
  background:linear-gradient(140deg,#4b97ff,#1677ff 55%,#0b56c9);
  color:#fff; display:grid; place-items:center;
  font-size:18px; font-weight:700; letter-spacing:.5px;
  box-shadow:var(--shadow-blue);
}
.brand-text{ min-width:0; }
.brand-name{ font-size:15px; font-weight:650; letter-spacing:.2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.brand-sub{
  font-size:10.5px; color:var(--muted); letter-spacing:1.4px;
  text-transform:uppercase; margin-top:2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.nav{ display:flex; flex-direction:column; gap:3px; flex:1; }
.nav-label{
  font-size:10.5px; letter-spacing:1.3px; color:#9aabc0;
  text-transform:uppercase; padding:6px 12px 8px;
}
.nav-item{
  display:flex; align-items:center; gap:11px;
  padding:10px 12px; border-radius:11px;
  font-size:14px; color:var(--text-2); cursor:pointer;
  transition:background .16s, color .16s; position:relative;
}
.nav-item:hover{ background:var(--blue-50); color:var(--blue-700); }
.nav-item.active{
  background:linear-gradient(100deg,#e9f2ff,#f5faff);
  color:var(--blue-700); font-weight:600;
}
.nav-item.active::before{
  content:''; position:absolute; left:0; top:9px; bottom:9px;
  width:3px; border-radius:3px; background:var(--blue-600);
}
.nav-item .ico-svg{ width:18px; height:18px; opacity:.92; }

.sidebar-foot{
  border-top:1px solid var(--line-soft);
  margin-top:12px; padding:12px 8px 0;
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  font-size:11.5px; color:var(--muted);
}
.sidebar-foot .who{ display:flex; align-items:center; gap:7px; min-width:0; }
.sidebar-foot .who b{ font-weight:600; color:var(--text-2); font-size:12px; }
.btn-logout{
  display:inline-flex; align-items:center; gap:5px;
  background:none; border:1px solid var(--line); color:var(--muted);
  font-size:12px; font-family:inherit; cursor:pointer;
  padding:5px 9px; border-radius:8px; transition:.16s;
}
.btn-logout:hover{ color:var(--red); border-color:#f3c9cb; background:#fff8f8; }
.btn-logout .ico-svg{ width:14px; height:14px; }

.main{ flex:1; min-width:0; display:flex; flex-direction:column; }

.topbar{
  display:flex; align-items:center; gap:16px;
  padding:26px 34px 16px;
}
.topbar-info{ flex:1; min-width:0; }
.topbar h1{ font-size:23px; font-weight:680; letter-spacing:-.4px; }
.topbar-sub{ font-size:12.5px; color:var(--muted); margin-top:3px; }
.topbar-actions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }

.menu-btn{
  display:none; background:#fff; border:1px solid var(--line);
  border-radius:10px; padding:8px; cursor:pointer; color:var(--text-2);
}

.content{ padding:0 34px 40px; width:100%; max-width:1500px; }

.app-footer{
  margin-top:auto; padding:18px 34px 26px;
  color:#9aabc0; font-size:11.5px;
  display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;
}

/* ---------------- 提示条 ---------------- */

.flash{
  display:flex; align-items:center; gap:9px;
  border-radius:12px; padding:11px 15px; margin-bottom:16px;
  font-size:13.5px; border:1px solid transparent;
}
.flash .ico-svg{ width:17px; height:17px; }
.flash-success{ background:var(--green-soft); color:#0a7a43; border-color:#c8ecd9; }
.flash-error{ background:var(--red-soft); color:#b22a2f; border-color:#f8d3d4; }
.flash-warn{ background:var(--amber-soft); color:#94600a; border-color:#ffe2b8; }
.flash-info{ background:var(--blue-50); color:var(--blue-700); border-color:#cfe3ff; }
.flash.hide{ opacity:0; transform:translateY(-6px); transition:.35s; }

/* ---------------- 卡片 ---------------- */

.cards{
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px; margin-bottom:20px;
}
@media (max-width:1280px){
  .cards{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:1080px){
  .cards{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.card{
  background:var(--panel); border:1px solid var(--line);
  border-radius:var(--radius); padding:16px 18px;
  box-shadow:var(--shadow-sm);
  transition:transform .18s, box-shadow .18s;
  position:relative; overflow:hidden;
}
.card:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); }
.card .label{ font-size:12.5px; color:var(--muted); display:flex; align-items:center; gap:6px; }
.card .value{ font-size:25px; font-weight:680; margin-top:8px; letter-spacing:-.6px; color:var(--text); }
.card .value.accent{ color:var(--blue-600); }
.card .value.green{ color:var(--green); }
.card .value.red{ color:var(--red); }
.card .sub{ font-size:11.5px; color:var(--muted); margin-top:6px; }
.card .bubble{
  position:absolute; right:14px; top:14px;
  width:32px; height:32px; border-radius:10px;
  display:grid; place-items:center;
  background:var(--blue-50); color:var(--blue-600);
}
.card .bubble .ico-svg{ width:16px; height:16px; }
.card .bubble.green{ background:var(--green-soft); color:var(--green); }
.card .bubble.red{ background:var(--red-soft); color:var(--red); }
.card .bubble.violet{ background:var(--violet-soft); color:var(--violet); }
.card .bubble.amber{ background:var(--amber-soft); color:var(--amber); }

/* ---------------- 面板 ---------------- */

.panel{
  background:var(--panel); border:1px solid var(--line);
  border-radius:var(--radius); overflow:hidden;
  margin-bottom:20px; box-shadow:var(--shadow-sm);
  min-width:0;
}
.panel-head{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  padding:15px 20px; border-bottom:1px solid var(--line-soft);
  flex-wrap:wrap;
}
.panel-head h2{ font-size:15px; font-weight:650; display:flex; align-items:center; gap:8px; }
.panel-head h2 .ico-svg{ width:17px; height:17px; color:var(--blue-600); }
.panel-head .hint{ font-size:12.5px; color:var(--muted); }
.pad{ padding:20px; }
.pad-sm{ padding:14px 20px; }

.muted{ color:var(--muted); font-size:13px; }

/* ---------------- 表格 ---------------- */

.table-wrap{ overflow-x:auto; }
table{ width:100%; border-collapse:collapse; font-size:13.5px; }
th{
  text-align:left; font-weight:560; color:var(--muted); font-size:12px;
  padding:11px 16px; background:#f8fbff; border-bottom:1px solid var(--line);
  white-space:nowrap; letter-spacing:.2px;
}
td{ padding:12px 16px; border-bottom:1px solid var(--line-soft); vertical-align:middle; color:var(--text-2); }
td strong{ color:var(--text); font-weight:620; }
tbody tr:last-child td{ border-bottom:none; }
tbody tr:hover td{ background:#fafcff; }
.num-cell{ font-variant-numeric:tabular-nums; }
td .ops{ display:flex; gap:6px; align-items:center; }
.amount{ font-weight:640; color:var(--blue-700); }
.table-empty{ padding:44px 20px; text-align:center; color:var(--muted); font-size:13.5px; }
.table-empty .ico-svg{ width:26px; height:26px; color:#c3d3e8; margin-bottom:8px; }

/* ---------------- 徽章 ---------------- */

.badge{
  display:inline-flex; align-items:center; gap:4px;
  padding:2px 9px; border-radius:20px; font-size:11.5px; font-weight:560;
  white-space:nowrap;
}
.badge.raw{ background:var(--blue-50); color:var(--blue-700); }
.badge.pack{ background:var(--violet-soft); color:#5344b8; }
.badge.ok{ background:var(--green-soft); color:#0a7a43; }
.badge.warn{ background:var(--red-soft); color:#b22a2f; }
.badge.gray{ background:#f1f5fb; color:#6b7f96; }

/* ---------------- 按钮 ---------------- */

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  border:1px solid transparent; border-radius:10px;
  padding:9px 16px; font-size:13.5px; font-family:inherit;
  cursor:pointer; transition:.16s; white-space:nowrap; font-weight:560;
}
.btn .ico-svg{ width:16px; height:16px; }
.btn-primary{
  background:linear-gradient(135deg,#3b8cff,#1677ff 60%,#0b62e0);
  color:#fff; box-shadow:var(--shadow-blue);
}
.btn-primary:hover{ filter:brightness(1.04); transform:translateY(-1px); color:#fff; }
.btn-ghost{ background:#fff; border-color:var(--line); color:var(--text-2); }
.btn-ghost:hover{ background:var(--blue-50); border-color:#cfe3ff; color:var(--blue-700); }
.btn-danger{ background:#fff; border-color:#f6cfd0; color:var(--red); }
.btn-danger:hover{ background:#fff6f6; }
.btn-sm{ padding:6px 11px; font-size:12.5px; border-radius:9px; }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.6; cursor:not-allowed; }

.icon-btn{
  display:inline-flex; align-items:center; gap:5px;
  background:none; border:none; cursor:pointer; font-family:inherit;
  font-size:12.5px; color:var(--blue-600); padding:5px 7px; border-radius:7px;
}
.icon-btn:hover{ background:var(--blue-50); }
.icon-btn.danger{ color:var(--red); }
.icon-btn.danger:hover{ background:#fff4f4; }

/* ---------------- 标签页 ---------------- */

.tabs{ display:flex; gap:8px; margin-bottom:18px; flex-wrap:wrap; }
.tab{
  display:inline-flex; align-items:center; gap:7px;
  background:#fff; border:1px solid var(--line); border-radius:10px;
  padding:8px 16px; font-size:13.5px; color:var(--text-2); transition:.16s;
}
.tab:hover{ background:var(--blue-50); border-color:#cfe3ff; color:var(--blue-700); }
.tab.active{
  background:linear-gradient(135deg,#3b8cff,#1677ff);
  border-color:transparent; color:#fff; font-weight:560;
  box-shadow:var(--shadow-blue);
}
.tab .count{
  font-size:11px; background:rgba(22,119,255,.1); color:var(--blue-700);
  border-radius:20px; padding:1px 7px;
}
.tab.active .count{ background:rgba(255,255,255,.24); color:#fff; }

/* ---------------- 表单 ---------------- */

.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
.form-grid .full{ grid-column:1 / -1; }
.field{ margin-bottom:15px; }
.field > label{
  display:block; font-size:12.5px; color:#5a6f8a; margin-bottom:6px; font-weight:520;
}
.field .tip{ font-size:11.5px; color:var(--muted); margin-top:5px; }
.inp{
  width:100%; padding:9px 12px; border:1px solid var(--line);
  border-radius:10px; font-size:14px; font-family:inherit;
  background:#fff; color:var(--text); outline:none; transition:.15s;
}
.inp:hover{ border-color:#cddff8; }
.inp:focus{ border-color:var(--blue-500); box-shadow:0 0 0 3px rgba(22,119,255,.12); }
.inp::placeholder{ color:#a9b8ca; }
select.inp{ appearance:none; background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2378899f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; background-size:16px; padding-right:34px; }
textarea.inp{ min-height:74px; resize:vertical; }

.form-card{ background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow-sm); }
.form-cols{ display:grid; grid-template-columns:minmax(0,1fr) 306px; gap:20px; align-items:start; }

.form-foot{
  display:flex; gap:10px; align-items:center; justify-content:flex-end;
  padding-top:18px; margin-top:6px; border-top:1px dashed var(--line);
}

.rows-block{ display:flex; flex-direction:column; gap:8px; }
.row-line{
  display:grid; grid-template-columns:minmax(0,1fr) 128px 34px; gap:8px; align-items:center;
  animation:rowIn .18s ease;
}
.row-line .inp{ padding:8px 11px; font-size:13.5px; }
.row-head{ font-size:11.5px; color:var(--muted); display:grid; grid-template-columns:minmax(0,1fr) 128px 34px; gap:8px; padding:0 2px; }
.row-head span:nth-child(2){ text-align:center; }
.row-del{
  background:#fff; border:1px solid var(--line); color:var(--muted);
  border-radius:9px; height:36px; cursor:pointer; display:grid; place-items:center;
}
.row-del:hover{ color:var(--red); border-color:#f6cfd0; background:#fff7f7; }
.row-del .ico-svg{ width:14px; height:14px; }
@keyframes rowIn{ from{ opacity:0; transform:translateY(-4px); } to{ opacity:1; transform:none; } }

/* ---------------- 参考库存侧栏 ---------------- */

.side-card{ background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); overflow:hidden; }
.side-card-head{ padding:13px 16px; border-bottom:1px solid var(--line-soft); font-size:13px; font-weight:620; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.side-list{ max-height:392px; overflow-y:auto; padding:8px 10px; }
.side-item{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:8px 8px; border-radius:8px; font-size:12.5px; color:var(--text-2);
}
.side-item:hover{ background:#f7faff; }
.side-item .nm{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.side-item .st{ font-variant-numeric:tabular-nums; font-weight:600; color:var(--blue-700); white-space:nowrap; }
.side-item .st.low{ color:var(--red); }
.side-empty{ padding:18px 10px; text-align:center; color:var(--muted); font-size:12.5px; }

/* ---------------- 进度条 / 排行 ---------------- */

.rank-item{ margin-bottom:15px; }
.rank-item:last-child{ margin-bottom:0; }
.rank-top{ display:flex; justify-content:space-between; gap:10px; font-size:13px; margin-bottom:6px; }
.rank-top span:last-child{ color:var(--muted); white-space:nowrap; font-variant-numeric:tabular-nums; }
.rank-bar{ height:7px; background:#eef4fd; border-radius:5px; overflow:hidden; }
.rank-bar i{ display:block; height:100%; border-radius:5px; background:linear-gradient(90deg,#7db6ff,#1677ff); }
.rank-bar i.danger{ background:linear-gradient(90deg,#f7a9a4,#e5484d); }

/* ---------------- 趋势图 ---------------- */

.chart{ display:flex; align-items:flex-end; gap:8px; height:150px; padding:6px 2px 0; }
.chart .col{ flex:1; min-width:0; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:6px; height:100%; }
.chart .bar-wrap{ width:100%; flex:1; display:flex; align-items:flex-end; }
.chart i{
  display:block; width:100%; min-height:3px; border-radius:7px 7px 3px 3px;
  background:linear-gradient(180deg,#69a9ff,#1677ff);
  transition:height .4s cubic-bezier(.2,.8,.3,1);
}
.chart .col.today i{ background:linear-gradient(180deg,#2b7ef0,#0b56c9); }
.chart .lbl{ font-size:10.5px; color:var(--muted); white-space:nowrap; }
.chart .val{ font-size:10px; color:#a3b2c6; }

/* ---------------- 空状态 ---------------- */

.empty{ padding:48px 20px; text-align:center; color:var(--muted); font-size:13.5px; }
.empty .ico-svg{ width:28px; height:28px; color:#c3d3e8; margin-bottom:10px; }
.empty p{ margin-top:4px; font-size:12.5px; color:#a3b2c6; }

/* ---------------- 设置页 ---------------- */

.chip-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; }
.chip-card{ background:#fbfdff; border:1px solid var(--line); border-radius:12px; padding:14px; }
.chip-card h3{ font-size:13px; font-weight:620; margin-bottom:10px; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.chip-card h3 .cnt{ font-size:11.5px; color:var(--muted); font-weight:500; }
.chip-add{ display:flex; gap:7px; margin-bottom:10px; }
.chip-add .inp{ padding:7px 10px; font-size:13px; }
.chip-list{ display:flex; flex-wrap:wrap; gap:6px; min-height:28px; }
.chip{
  display:inline-flex; align-items:center; gap:5px;
  background:#fff; border:1px solid var(--line); border-radius:20px;
  padding:3px 6px 3px 10px; font-size:12.5px; color:#4a5f79;
}
.chip .chip-edit{ cursor:pointer; }
.chip .chip-edit:hover{ color:var(--blue-700); }
.chip form{ display:inline-flex; }
.chip button{
  background:none; border:none; cursor:pointer; color:#aab8ca;
  width:18px; height:18px; border-radius:50%; display:grid; place-items:center; padding:0;
}
.chip button:hover{ background:var(--red-soft); color:var(--red); }
.chip button .ico-svg{ width:11px; height:11px; }

.stat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(132px,1fr)); gap:12px; }
.stat-item{ background:#fbfdff; border:1px solid var(--line); border-radius:11px; padding:12px 14px; }
.stat-item .lbl{ font-size:12px; color:var(--muted); }
.stat-item .num{ font-size:18px; font-weight:660; margin-top:5px; font-variant-numeric:tabular-nums; }

.actions-row{ display:flex; gap:10px; flex-wrap:wrap; margin:16px 0 10px; }

.alert-box{
  display:flex; gap:10px; align-items:flex-start;
  background:var(--amber-soft); border:1px solid #ffe2b8; color:#8a5a08;
  border-radius:12px; padding:12px 14px; font-size:13px; margin-bottom:16px;
}
.alert-box.danger{ background:var(--red-soft); border-color:#f6cfd0; color:#a8272c; }
.alert-box .ico-svg{ width:18px; height:18px; margin-top:1px; }
.alert-box ul{ margin:6px 0 0 16px; }
.alert-box li{ margin-bottom:3px; }

/* ---------------- 登录页 ---------------- */

.auth-wrap{
  min-height:100vh; display:grid; place-items:center; padding:24px;
  background:
    radial-gradient(720px 420px at 12% 8%, #e2efff 0%, rgba(226,239,255,0) 60%),
    radial-gradient(660px 420px at 92% 92%, #e9f4ff 0%, rgba(233,244,255,0) 58%),
    linear-gradient(160deg,#f6faff,#eef5ff 55%,#f7fbff);
}
.auth-card{
  display:grid; grid-template-columns:1.06fr .94fr;
  width:100%; max-width:940px; background:#fff;
  border:1px solid var(--line); border-radius:24px; overflow:hidden;
  box-shadow:0 26px 70px rgba(15,60,130,.14);
}
.auth-side{
  padding:42px 38px; color:#fff; position:relative; overflow:hidden;
  background:linear-gradient(155deg,#3f8cff 0%,#1677ff 45%,#0a51c0 100%);
  display:flex; flex-direction:column; justify-content:space-between; min-height:470px;
}
.auth-side::after{
  content:''; position:absolute; width:320px; height:320px; border-radius:50%;
  right:-110px; bottom:-120px; background:rgba(255,255,255,.12);
}
.auth-side::before{
  content:''; position:absolute; width:180px; height:180px; border-radius:50%;
  right:30px; top:-70px; background:rgba(255,255,255,.1);
}
.auth-brand{ display:flex; align-items:center; gap:12px; position:relative; z-index:1; }
.auth-brand .mark{
  width:46px; height:46px; border-radius:14px; display:grid; place-items:center;
  background:rgba(255,255,255,.22); font-size:19px; font-weight:700;
  border:1px solid rgba(255,255,255,.3); backdrop-filter:blur(4px);
}
.auth-brand .nm{ font-size:16px; font-weight:650; }
.auth-brand .sb{ font-size:10.5px; letter-spacing:1.5px; opacity:.8; text-transform:uppercase; margin-top:2px; }
.auth-side h2{ font-size:24px; line-height:1.45; letter-spacing:-.3px; margin:26px 0 6px; position:relative; z-index:1; font-weight:650; }
.auth-side p.lead{ font-size:13px; opacity:.88; line-height:1.75; position:relative; z-index:1; max-width:330px; }
.auth-points{ list-style:none; margin:24px 0 0; position:relative; z-index:1; display:flex; flex-direction:column; gap:12px; }
.auth-points li{ display:flex; align-items:flex-start; gap:10px; font-size:13px; opacity:.95; line-height:1.6; }
.auth-points .dot{
  width:20px; height:20px; border-radius:50%; flex:0 0 20px;
  background:rgba(255,255,255,.2); display:grid; place-items:center; margin-top:1px;
}
.auth-points .dot .ico-svg{ width:12px; height:12px; }
.auth-chip{
  position:relative; z-index:1; display:inline-flex; align-items:center; gap:7px;
  font-size:11.5px; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.24);
  padding:6px 12px; border-radius:20px; width:max-content; margin-top:26px;
}
.auth-form{ padding:44px 40px 34px; display:flex; flex-direction:column; justify-content:center; }
.auth-form h1{ font-size:22px; font-weight:680; letter-spacing:-.3px; }
.auth-form .sub{ font-size:13px; color:var(--muted); margin-top:6px; margin-bottom:22px; }
.auth-form .field{ margin-bottom:14px; }
.auth-hint{
  font-size:11.5px; color:var(--muted); margin-top:20px; padding-top:14px;
  border-top:1px dashed var(--line); line-height:1.8;
}
.auth-hint b{ color:var(--text-2); }

/* ---------------- 安装页 ---------------- */

.install-wrap{ max-width:860px; margin:0 auto; padding:40px 20px 60px; }
.install-head{ display:flex; align-items:center; gap:14px; margin-bottom:22px; }
.install-head .mark{
  width:52px; height:52px; border-radius:15px; display:grid; place-items:center;
  background:linear-gradient(140deg,#4b97ff,#1677ff 55%,#0b56c9); color:#fff;
  font-size:20px; font-weight:700; box-shadow:var(--shadow-blue);
}
.install-head h1{ font-size:22px; font-weight:680; }
.install-head p{ font-size:12.5px; color:var(--muted); margin-top:3px; }
.env-list{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:10px; margin-bottom:20px; }
.env-item{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  background:#fff; border:1px solid var(--line); border-radius:10px;
  padding:10px 13px; font-size:12.5px; color:var(--text-2);
}
.env-item .ok{ color:var(--green); font-weight:600; display:flex; align-items:center; gap:4px; }
.env-item .bad{ color:var(--red); font-weight:600; display:flex; align-items:center; gap:4px; }
.env-item .ok .ico-svg,.env-item .bad .ico-svg{ width:13px; height:13px; }

/* ---------------- 看板布局 ---------------- */

.dash-row{ display:grid; grid-template-columns:1.4fr 1fr; gap:20px; align-items:start; }
.dash-row > .panel{ margin-bottom:0; min-width:0; }
.dash-row > *{ min-width:0; }

/* ---------------- 响应式 ---------------- */

@media (max-width:1180px){
  .form-cols{ grid-template-columns:1fr; }
  .side-list{ max-height:260px; }
  .dash-row{ grid-template-columns:1fr; }
}

@media (max-width:1024px){
  .auth-card{ grid-template-columns:1fr; max-width:460px; }
  .auth-side{ display:none; }
  .auth-form{ padding:34px 26px 28px; }
}

@media (max-width:900px){
  .menu-btn{ display:inline-flex; }
  .sidebar{
    position:fixed; left:0; top:0; bottom:0; height:100vh; width:250px;
    transform:translateX(-102%); transition:transform .24s ease;
    box-shadow:0 10px 40px rgba(15,40,90,.18);
  }
  .sidebar.open{ transform:none; }
  .topbar{ padding:16px 18px 12px; align-items:flex-start; }
  .topbar h1{ font-size:19px; }
  .content{ padding:0 18px 34px; }
  .app-footer{ padding:16px 18px 24px; }
  .cards{ grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:11px; }
  .card .value{ font-size:21px; }
  .form-grid{ grid-template-columns:1fr; }
  .row-line, .row-head{ grid-template-columns:minmax(0,1fr) 96px 34px; }
}

@media (max-width:600px){
  .topbar{
    display:grid; grid-template-columns:auto minmax(0,1fr);
    gap:10px 12px; align-items:center; padding:14px 16px 10px;
  }
  .topbar-actions{ grid-column:1 / -1; justify-content:flex-start; gap:8px; }
  .topbar-actions .btn{ padding:8px 13px; font-size:12.5px; }
  .menu-btn{ align-self:start; margin-top:2px; }
}

@media (max-width:560px){
  .cards{ grid-template-columns:1fr 1fr; }
  .card{ padding:13px 14px; }
  .card .value{ font-size:19px; }
  .panel-head{ padding:13px 15px; }
  .pad{ padding:15px; }
  .form-card{ padding:16px; }
  .chart{ height:120px; gap:4px; }
  .chart .val{ display:none; }
  .chart .lbl{ display:none; font-size:9.5px; }
  .chart .col:nth-child(odd) .lbl{ display:block; }
}
