/* =========================================================================
   机加工智能工厂 · 移动端 App 原型
   iPhone 15 Pro / 393 × 852 logical · mobile-first, no framework
   ========================================================================= */

/* ------------------------------ 1. Tokens ------------------------------ */
:root {
  --navy-950: #041322;
  --navy-900: #071b2f;
  --navy-800: #0a2440;
  --navy-700: #103454;
  --ink: #0b2438;
  --text: #263445;
  --sub: #6b7a8c;
  --muted: #98a5b4;

  --primary: #1677ff;
  --primary-2: #45a0ff;
  --primary-deep: #0b4fb0;
  --primary-soft: #eaf2fe;
  --primary-rgb: 22, 119, 255;

  --green: #12a06b;
  --green-soft: #e7f7f0;
  --amber: #e89724;
  --amber-soft: #fff4df;
  --red: #e0524b;
  --red-soft: #fdecea;
  --teal: #0fa89a;
  --teal-soft: #e6f7f5;
  --purple: #6a5cff;
  --purple-soft: #efedff;
  --slate-soft: #eef2f7;

  --bg: #f2f5fa;
  --card: #ffffff;
  --card-2: #fbfcfe;
  --line: #e7ecf3;
  --line-2: #eff3f8;
  --glass: rgba(255, 255, 255, .86);

  --r-xs: 8px;
  --r-sm: 11px;
  --r-md: 15px;
  --r-lg: 19px;
  --r-xl: 25px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(9, 31, 53, .04);
  --shadow-sm: 0 3px 10px rgba(9, 31, 53, .05);
  --shadow-md: 0 10px 28px rgba(9, 31, 53, .08);
  --shadow-lg: 0 22px 60px rgba(3, 16, 30, .3);

  --statusbar-h: 50px;
  --tabbar-h: 76px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-num: "SF Pro Display", "DIN Alternate", "Bahnschrift", "Segoe UI", var(--font);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
html { background: #07121f; }
body {
  min-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(900px 620px at 22% -12%, #1a3b5d 0%, transparent 60%),
    radial-gradient(720px 560px at 96% 106%, #0d3048 0%, transparent 62%),
    #07121f;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  user-select: none;
}
button, input, textarea, select { font-family: inherit; }
button { border: 0; background: none; color: inherit; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
input, textarea { user-select: text; }
::selection { background: rgba(22, 119, 255, .2); }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
svg[aria-hidden="true"] {
  width: 1em; height: 1em; flex: 0 0 auto; display: inline-block;
  vertical-align: -.14em; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.chart-svg { width: 100%; height: auto; display: block; }
.spark-svg { width: 100%; height: 100%; display: block; }
.ring-svg, .donut-svg { width: 100%; height: 100%; display: block; }

@supports (padding: max(0px)) {
  :root { --safe-bottom: max(10px, env(safe-area-inset-bottom)); }
}

/* --------------------------- 2. Device stage --------------------------- */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 18px 0 70px;
}
.device {
  position: relative;
  width: 417px;
  height: 876px;
  padding: 12px;
  border-radius: 58px;
  background: linear-gradient(150deg, #2b3644 0%, #05080d 26%, #111922 74%, #3b4655 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .16),
    0 0 0 7px #0b1017,
    0 0 0 8px #333d49,
    0 42px 100px rgba(0, 0, 0, .62);
  transform-origin: center center;
  transition: transform .25s var(--ease);
}
.screen {
  position: relative;
  width: 393px;
  height: 852px;
  overflow: hidden;
  border-radius: 46px;
  background: var(--bg);
  isolation: isolate;
}
.screen::after {
  content: "";
  position: absolute; inset: 0; z-index: 500; pointer-events: none;
  border-radius: 46px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}

.statusbar {
  position: absolute; inset: 0 0 auto 0; z-index: 90;
  height: var(--statusbar-h);
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 24px 8px;
  color: var(--ink);
  pointer-events: none;
  transition: color .2s;
}
.screen[data-status="dark"] .statusbar { color: #fff; }
.statusbar__time { font-family: var(--font-num); font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.statusbar__right { display: flex; align-items: center; gap: 6px; font-family: var(--font-num); font-size: 11px; font-weight: 600; }
.statusbar__right svg { width: 16px; height: 12px; }
.statusbar__right .bat { width: 23px; height: 12px; }
.island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 33px; border-radius: 20px; background: #05080d; z-index: 95;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.island::after {
  content: ""; position: absolute; top: 11px; right: 15px; width: 8px; height: 8px;
  border-radius: 50%; background: radial-gradient(circle at 36% 34%, #26354a 0%, #080c12 65%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06);
}
.home-indicator {
  position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px; border-radius: 99px; background: rgba(11, 36, 56, .26);
  z-index: 120; pointer-events: none;
}
.screen[data-status="dark"] .home-indicator { background: rgba(255, 255, 255, .55); }

/* caption + preview tools */
.stage__caption {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px 7px 14px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .11);
  background: rgba(8, 20, 34, .74);
  color: #b9c9da; font-size: 11.5px; letter-spacing: .2px;
  backdrop-filter: blur(14px); z-index: 400;
  white-space: nowrap;
}
.stage__caption b { color: #fff; font-size: 11.5px; }
.stage__caption .dot { width: 3px; height: 3px; border-radius: 50%; background: #4f657c; }
.stage__caption button {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); color: #dbe7f3;
  font-size: 11px; transition: background .15s;
}
.stage__caption button:hover { background: rgba(255, 255, 255, .15); }
.stage__caption button svg { width: 12px; height: 12px; }

/* ------------------------------- 3. App -------------------------------- */
.app-main { position: absolute; inset: 0; overflow: hidden; }
.page {
  position: absolute; inset: 0;
  overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  scrollbar-width: none;
}
.page::-webkit-scrollbar { display: none; }
.page__inner { min-height: 100%; padding-bottom: calc(var(--tabbar-h) + 30px); }
.page--detail .page__inner { padding-bottom: calc(24px + max(8px, env(safe-area-inset-bottom))); }
.page--home { background: var(--navy-900); }
.page--home .page__inner { background: var(--bg); padding-bottom: calc(var(--tabbar-h) + 28px); }

.page-head {
  position: relative;
  padding: calc(var(--statusbar-h) + 8px) var(--gutter) 14px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-2);
}
.page-head--plain { border-bottom: 0; background: transparent; }
.page-head__row { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.page-head h1 { margin: 0; font-size: 25px; line-height: 1.15; letter-spacing: -.5px; font-weight: 800; color: var(--ink); }
.page-head .sub { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.page-head__actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.page-head__scroll { margin: 12px -16px -14px; padding: 0 16px 14px; overflow-x: auto; scrollbar-width: none; }
.page-head__scroll::-webkit-scrollbar { display: none; }

/* nav bar for detail pages */
.navbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 8px;
  height: calc(var(--statusbar-h) + 52px);
  padding: var(--statusbar-h) 12px 0;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-2);
}
.navbar__back, .navbar__btn {
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center; flex: 0 0 auto;
  color: var(--ink); background: transparent; transition: background .15s;
}
.navbar__back:active, .navbar__btn:active { background: var(--slate-soft); }
.navbar__back svg, .navbar__btn svg { width: 21px; height: 21px; }
.navbar__title { min-width: 0; flex: 1; }
.navbar__title b { display: block; font-size: 15.5px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navbar__title span { display: block; margin-top: 1px; font-size: 10px; color: var(--muted); font-family: var(--font-num); }
.navbar__actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }

/* --------------------------- 4. Primitives ---------------------------- */
.gut { padding-left: var(--gutter); padding-right: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack--sm { gap: 8px; }
.stack--lg { gap: 18px; }
.row { display: flex; align-items: center; gap: 8px; }
.row--between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.spacer { flex: 1; }
.mono { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.tiny { font-size: 10px; color: var(--muted); }
.small { font-size: 11.5px; color: var(--sub); }
.muted { color: var(--muted); }
.blue { color: var(--primary); }
.green { color: var(--green); }
.red { color: var(--red); }
.amber { color: var(--amber); }
.purple { color: var(--purple); }
.strong { font-weight: 700; color: var(--ink); }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid rgba(231, 236, 243, .9);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.card__pad { padding: 14px; }
.card__head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 14px 0;
}
.card__head h3 { margin: 0; font-size: 14px; font-weight: 750; color: var(--ink); letter-spacing: .1px; }
.card__head .sub { font-size: 10px; color: var(--muted); }
.card__head .spacer { flex: 1; }
.card__body { padding: 14px; }
.card--flat { box-shadow: none; }
.card--navy { background: linear-gradient(145deg, #0b2947, #071c31); border-color: rgba(255,255,255,.06); color: #fff; }

.section { padding: 18px var(--gutter) 0; }
.section--tight { padding-top: 13px; }
.section__head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.section__head h2 { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; }
.section__head .sub { font-size: 10.5px; color: var(--muted); margin-left: 2px; }
.section__head .spacer { flex: 1; }
.section__link {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 11.5px; color: var(--sub); padding: 6px 0;
}
.section__link svg { width: 13px; height: 13px; }
.section__link:active { opacity: .6; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; position: relative;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:active { transform: scale(.96); background: var(--slate-soft); }
.icon-btn--plain { background: transparent; border-color: transparent; box-shadow: none; }
.icon-btn--light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.icon-btn .dot-badge {
  position: absolute; top: 6px; right: 6px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 99px; background: var(--red); color: #fff;
  font-family: var(--font-num); font-size: 8.5px; font-weight: 800;
  display: grid; place-items: center; border: 1.5px solid #fff;
}
.icon-btn--light .dot-badge { border-color: var(--navy-900); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 46px; padding: 0 18px; border-radius: 14px;
  font-size: 14px; font-weight: 700; letter-spacing: .2px;
  background: var(--slate-soft); color: var(--ink);
  transition: transform .12s var(--ease), opacity .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .42; pointer-events: none; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #2f8cff, #1268ee 58%, #0c55cb);
  box-shadow: 0 8px 20px rgba(22, 119, 255, .28);
}
.btn--dark { color: #fff; background: linear-gradient(145deg, #123b61, #071e34); }
.btn--ghost { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.btn--danger { color: #fff; background: linear-gradient(135deg, #ef6a63, #cf443e); box-shadow: 0 8px 20px rgba(224,82,75,.22); }
.btn--success { color: #fff; background: linear-gradient(135deg, #1bb77e, #0c8f5e); box-shadow: 0 8px 20px rgba(18,160,107,.22); }
.btn--sm { min-height: 36px; padding: 0 13px; border-radius: 11px; font-size: 12px; }
.btn--sm svg { width: 15px; height: 15px; }
.btn--block { width: 100%; }
.btn--pill { border-radius: 99px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 23px; padding: 0 8px; border-radius: 7px;
  font-size: 10px; font-weight: 650; line-height: 1; white-space: nowrap;
  color: var(--sub); background: var(--slate-soft);
}
.chip svg { width: 11px; height: 11px; }
.chip--blue { color: #0b5bc4; background: var(--primary-soft); }
.chip--green { color: #0a7a51; background: var(--green-soft); }
.chip--amber { color: #9a5b05; background: var(--amber-soft); }
.chip--red { color: #b13b35; background: var(--red-soft); }
.chip--purple { color: #5144d8; background: var(--purple-soft); }
.chip--teal { color: #087a70; background: var(--teal-soft); }
.chip--line { color: var(--sub); background: #fff; border: 1px solid var(--line); }
.chip--solid-red { color: #fff; background: var(--red); }
.chip--solid-blue { color: #fff; background: var(--primary); }
.chip--dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.status {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 7px; border-radius: 6px;
  font-size: 9.5px; font-weight: 700; white-space: nowrap;
}
.status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status--run { color: #0a7a51; background: var(--green-soft); }
.status--wait { color: #9a5b05; background: var(--amber-soft); }
.status--info { color: #0b5bc4; background: var(--primary-soft); }
.status--idle { color: var(--sub); background: var(--slate-soft); }
.status--err { color: #b13b35; background: var(--red-soft); }
.status--purple { color: #5144d8; background: var(--purple-soft); }

.bar { position: relative; height: 7px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, #3b9bff, #1677ff); }
.bar--green > i { background: linear-gradient(90deg, #28c48c, #0e9865); }
.bar--amber > i { background: linear-gradient(90deg, #ffc15a, #e89724); }
.bar--red > i { background: linear-gradient(90deg, #f08079, #d7433c); }
.bar--purple > i { background: linear-gradient(90deg, #9b8fff, #6a5cff); }
.bar--thin { height: 5px; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  font-size: 12px; font-weight: 750; color: #fff;
  background: linear-gradient(145deg, #2d8cff, #0b4fb0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.avatar--lg { width: 54px; height: 54px; font-size: 19px; }
.avatar--sm { width: 26px; height: 26px; font-size: 9.5px; }
.avatar--green { background: linear-gradient(145deg, #28c48c, #0a7a51); }
.avatar--amber { background: linear-gradient(145deg, #ffc15a, #c47a16); }
.avatar--purple { background: linear-gradient(145deg, #9b8fff, #5144d8); }
.avatar--red { background: linear-gradient(145deg, #f08079, #b13b35); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; }
.dot--green { background: #16b87e; box-shadow: 0 0 0 3px rgba(22,184,126,.13); }
.dot--amber { background: #f0a22e; box-shadow: 0 0 0 3px rgba(240,162,46,.13); }
.dot--red { background: #e0524b; box-shadow: 0 0 0 3px rgba(224,82,75,.13); }
.dot--blue { background: var(--primary); box-shadow: 0 0 0 3px rgba(22,119,255,.13); }
.pulse { animation: pulse 1.8s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 82, 75, .32); }
  55% { box-shadow: 0 0 0 7px rgba(224, 82, 75, 0); }
}

.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.kv:last-child { border-bottom: 0; }
.kv .k { font-size: 11.5px; color: var(--muted); flex: 0 0 auto; }
.kv .v { font-size: 12px; font-weight: 650; color: var(--ink); text-align: right; }
.kv .v.mono { font-family: var(--font-num); }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }

.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 34px; height: 34px; margin: 0 auto 8px; opacity: .5; }
.empty b { display: block; font-size: 13px; color: var(--sub); }
.empty span { display: block; margin-top: 3px; font-size: 10.5px; }

/* --------------------------- 5. Tab bar ------------------------------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 80;
  height: var(--tabbar-h);
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 7px 8px calc(7px + max(0px, env(safe-area-inset-bottom)));
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(24px) saturate(1.6);
  border-top: 1px solid rgba(226, 233, 242, .9);
}
.tabbar__item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #8d9aab; font-size: 9.5px; font-weight: 600;
  transition: color .15s;
}
.tabbar__item svg { width: 22px; height: 22px; stroke-width: 1.65; }
.tabbar__item.active { color: var(--primary); }
.tabbar__item.active svg { stroke-width: 2.05; }
.tabbar__item.active::after {
  content: ""; position: absolute; top: 1px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--primary);
}
.tabbar__item .tab-badge {
  position: absolute; top: -1px; left: calc(50% + 6px); min-width: 15px; height: 15px;
  padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff;
  font-family: var(--font-num); font-size: 8px; font-weight: 800;
  display: grid; place-items: center; border: 1.5px solid #fff;
}
.tabbar__scan {
  position: relative;
  align-self: flex-start; margin-top: -18px;
  width: 54px; height: 54px; border-radius: 19px;
  display: grid; place-items: center; margin-left: auto; margin-right: auto;
  color: #fff;
  background: linear-gradient(145deg, #3d98ff 0%, #1268ee 52%, #0949b8 100%);
  box-shadow: 0 9px 22px rgba(16, 95, 220, .4), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .16s var(--ease);
}
.tabbar__scan svg { width: 25px; height: 25px; stroke-width: 1.9; }
.tabbar__scan:active { transform: scale(.93); }
.tabbar__scan::after {
  content: ""; position: absolute; width: 62px; height: 62px; border-radius: 23px;
  border: 1px solid rgba(22, 119, 255, .18);
  pointer-events: none;
}

/* ----------------------------- 6. Home -------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--statusbar-h) + 4px) 18px 30px;
  color: #fff;
  background:
    radial-gradient(360px 260px at 84% -6%, rgba(53, 151, 255, .34), transparent 65%),
    radial-gradient(300px 240px at 4% 98%, rgba(18, 130, 180, .16), transparent 72%),
    linear-gradient(160deg, #0b2947 0%, #071b2f 52%, #061727 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 185, 255, .25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 185, 255, .25) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 82%);
}
.hero::after { display: none; }
.hero__top { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.hero__hi { font-size: 11.5px; color: #9dc0e0; letter-spacing: .3px; }
.hero__name { margin-top: 2px; display: flex; align-items: center; gap: 7px; font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.hero__name .role-tag {
  height: 20px; padding: 0 7px; border-radius: 6px; display: inline-flex; align-items: center;
  background: rgba(95, 172, 255, .16); border: 1px solid rgba(125, 191, 255, .22);
  color: #a9d2ff; font-size: 9.5px; font-weight: 650; letter-spacing: .2px;
}
.hero__actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.hero__actions .icon-btn { border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .07); color: #fff; box-shadow: none; backdrop-filter: blur(10px); }
.hero__actions .icon-btn .dot-badge { border-color: #0a2440; }
.hero__avatar {
  width: 39px; height: 39px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 800;
  background: linear-gradient(145deg, #3d98ff, #0b4fb0);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .16);
}
.hero__meta { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; row-gap: 4px; gap: 7px; margin-top: 13px; font-size: 10.5px; color: #9dc0e0; }
.hero__meta b { color: #e8f4ff; font-weight: 650; }
.hero__meta .sep { width: 1px; height: 9px; background: rgba(255,255,255,.17); }
.hero__meta .live { display: inline-flex; align-items: center; gap: 5px; color: #8fe1c4; }
.hero__meta .live i { width: 5px; height: 5px; border-radius: 50%; background: #35d49c; box-shadow: 0 0 0 3px rgba(53,212,156,.14); }

.hero__board {
  position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 14px;
  margin-top: 19px;
}
.hero__board-main { flex: 1; min-width: 0; }
.hero__label { font-size: 10px; color: #8fb4d6; letter-spacing: .5px; display: flex; align-items: center; gap: 5px; }
.hero__value { display: flex; align-items: baseline; gap: 5px; margin-top: 4px; }
.hero__value b { font-family: var(--font-num); font-size: 38px; line-height: 1; font-weight: 800; letter-spacing: -1.6px; }
.hero__value span { font-size: 12px; color: #a9c8e6; font-family: var(--font-num); }
.hero__delta { margin-top: 7px; display: flex; align-items: center; gap: 6px; font-size: 10px; color: #8fb4d6; }
.hero__delta em { font-style: normal; color: #73e2b6; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.hero__delta em svg { width: 11px; height: 11px; }
.hero__ring { position: relative; width: 88px; height: 88px; flex: 0 0 auto; }
.hero__ring svg { width: 88px; height: 88px; }
.hero__ring .lbl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.hero__ring .lbl b { font-family: var(--font-num); font-size: 22px; font-weight: 800; letter-spacing: -.8px; line-height: 1; }
.hero__ring .lbl span { font-size: 8px; color: #8fb4d6; margin-top: 2px; }
.hero__progress { margin-top: 15px; display: flex; align-items: center; gap: 8px; font-size: 9.5px; color: #8fb4d6; white-space: nowrap; }
.hero__progress > span:first-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hero__progress b { flex: 0 0 auto; }
.hero__progress .bar { flex: 1; height: 5px; background: rgba(255, 255, 255, .12); }
.hero__progress .bar > i { background: linear-gradient(90deg, #57b0ff, #2f8cff); }
.hero__progress b { color: #dceeff; font-family: var(--font-num); font-weight: 700; }

.quick-wrap { position: relative; z-index: 2; margin: -15px 16px 0; }
.quick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 12px 30px rgba(9, 31, 53, .1);
  padding: 13px 4px 12px;
}
.quick {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 10.5px; font-weight: 650; color: var(--text);
  min-height: 66px; justify-content: center; position: relative;
}
.quick:active { opacity: .65; }
.quick__ico {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  color: var(--primary); background: var(--primary-soft);
}
.quick__ico svg { width: 21px; height: 21px; }
.quick:nth-child(2) .quick__ico { color: #0a7a51; background: var(--green-soft); }
.quick:nth-child(3) .quick__ico { color: #9a5b05; background: var(--amber-soft); }
.quick:nth-child(4) .quick__ico { color: #b13b35; background: var(--red-soft); }
.quick .n {
  position: absolute; top: -1px; right: 12px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: var(--red); color: #fff; font-family: var(--font-num);
  font-size: 8px; font-weight: 800; display: grid; place-items: center; border: 1.5px solid #fff;
}

.home-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.kpi {
  position: relative; padding: 12px 12px 11px; border-radius: 15px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs);
}
.kpi__label { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.kpi__label svg { width: 12px; height: 12px; }
.kpi__value { display: flex; align-items: baseline; gap: 3px; margin-top: 6px; font-family: var(--font-num); }
.kpi__value b { font-size: 24px; line-height: 1; font-weight: 800; letter-spacing: -.8px; color: var(--ink); }
.kpi__value small { font-size: 10px; color: var(--muted); font-weight: 600; }
.kpi__foot { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 9px; color: var(--muted); }
.kpi__foot em { font-style: normal; font-weight: 700; }
.kpi__foot .up { color: var(--green); }
.kpi__foot .down { color: var(--red); }
.kpi::after {
  content: ""; position: absolute; right: -16px; top: -20px; width: 58px; height: 58px;
  border-radius: 50%; background: rgba(22, 119, 255, .05);
}
.kpi--green::after { background: rgba(18, 160, 107, .06); }
.kpi--amber::after { background: rgba(232, 151, 36, .07); }
.kpi--purple::after { background: rgba(106, 92, 255, .06); }

.alert-strip {
  display: flex; align-items: center; gap: 9px; padding: 11px 12px;
  border-radius: 14px; background: linear-gradient(100deg, #fff4f3, #fff9f8);
  border: 1px solid #f9d9d6;
}
.alert-strip__ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #f9dedb; color: var(--red); flex: 0 0 auto; }
.alert-strip__ico svg { width: 17px; height: 17px; }
.alert-strip b { display: block; font-size: 11.5px; color: #8c2f29; line-height: 1.35; }
.alert-strip span { display: block; margin-top: 2px; font-size: 9.5px; color: #b06a65; }
.alert-strip .spacer { flex: 1; }
.alert-strip .go { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #b13b35; background: #fde7e5; }
.alert-strip .go svg { width: 14px; height: 14px; }

.mini-order {
  position: relative; display: block; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 13px; box-shadow: var(--shadow-xs); overflow: hidden;
}
.mini-order:active { transform: scale(.992); background: var(--card-2); }
.mini-order::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); }
.mini-order.is-urgent::before { background: var(--red); }
.mini-order.is-done::before { background: var(--green); }
.mini-order__top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.mini-order__no { font-family: var(--font-num); font-size: 9.5px; font-weight: 650; color: var(--muted); letter-spacing: .1px; }
.mini-order__name { margin-top: 3px; font-size: 14.5px; font-weight: 750; color: var(--ink); letter-spacing: -.1px; }
.mini-order__specs { display: flex; align-items: center; gap: 10px; margin-top: 5px; font-size: 10px; color: var(--muted); }
.mini-order__specs b { color: var(--sub); font-weight: 650; }
.mini-order__bar { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.mini-order__bar .bar { flex: 1; height: 5px; }
.mini-order__bar .pct { flex: 0 0 auto; font-family: var(--font-num); font-size: 10.5px; font-weight: 800; color: var(--ink); width: 31px; text-align: right; }
.mini-order__foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 9.5px; color: var(--muted); }
.mini-order__foot .due { color: var(--amber); font-weight: 650; }
.mini-order__foot .due.is-urgent { color: var(--red); }
.mini-order__foot .avatar { margin-left: auto; }

.machine-scroll { display: flex; gap: 9px; overflow-x: auto; padding: 1px 16px 4px; margin: 0 -16px; scrollbar-width: none; }
.machine-scroll::-webkit-scrollbar { display: none; }
.machine-mini {
  flex: 0 0 132px; width: 132px; text-align: left; padding: 11px;
  border-radius: 15px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.machine-mini:active { transform: scale(.98); }
.machine-mini__top { display: flex; align-items: center; gap: 6px; }
.machine-mini__name { font-family: var(--font-num); font-size: 11.5px; font-weight: 800; color: var(--ink); }
.machine-mini__part { margin-top: 6px; font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.machine-mini__load { display: flex; align-items: baseline; gap: 2px; margin-top: 5px; font-family: var(--font-num); }
.machine-mini__load b { font-size: 17px; font-weight: 800; color: var(--ink); }
.machine-mini__load span { font-size: 8.5px; color: var(--muted); }
.machine-mini .bar { height: 3px; margin-top: 4px; }
.machine-mini__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 8px; color: var(--muted); }

.ai-card {
  position: relative; overflow: hidden; border-radius: 18px; padding: 14px;
  color: #fff; background: linear-gradient(135deg, #5a4bdb 0%, #4937b7 52%, #302579 100%);
  box-shadow: 0 12px 26px rgba(74, 58, 190, .24);
}
.ai-card::before {
  content: ""; position: absolute; right: -22px; top: -30px; width: 124px; height: 124px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.2), transparent 62%);
}
.ai-card__head { display: flex; align-items: center; gap: 7px; position: relative; }
.ai-card__head .badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; background: rgba(255,255,255,.16); font-size: 9px; font-weight: 700; letter-spacing: .3px; }
.ai-card__head .badge svg { width: 11px; height: 11px; }
.ai-card__head span { margin-left: auto; font-size: 9px; color: #cfc9ff; }
.ai-card b { position: relative; display: block; margin-top: 10px; font-size: 13.5px; line-height: 1.42; font-weight: 700; }
.ai-card p { position: relative; margin: 5px 0 0; font-size: 10.5px; line-height: 1.55; color: #d7d2ff; }
.ai-card__foot { position: relative; display: flex; align-items: center; margin-top: 11px; gap: 8px; }
.ai-card__impact { font-size: 9.5px; color: #b9f0dd; display: inline-flex; align-items: center; gap: 4px; }
.ai-card__impact svg { width: 11px; height: 11px; }
.ai-card__go { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 9px; border-radius: 8px; background: rgba(255,255,255,.18); font-size: 9.5px; font-weight: 650; color: #fff; }
.ai-card__go svg { width: 12px; height: 12px; }

.crew-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.crew-row:last-child { border-bottom: 0; }
.crew-row__meta { min-width: 0; flex: 1; }
.crew-row__meta b { display: block; font-size: 11.5px; color: var(--ink); }
.crew-row__meta span { display: block; font-size: 9.5px; color: var(--muted); }
.crew-row__load { width: 86px; flex: 0 0 auto; text-align: right; }
.crew-row__load b { font-family: var(--font-num); font-size: 10.5px; color: var(--ink); }

/* ---------------------------- 7. Orders ------------------------------- */
.searchbar {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  border-radius: 13px; background: var(--bg); border: 1px solid var(--line-2);
  color: var(--muted);
}
.searchbar svg { width: 16px; height: 16px; }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 12px; color: var(--ink); }
.searchbar input::placeholder { color: var(--muted); }
.searchbar .filter-tag { height: 24px; padding: 0 8px; border-radius: 7px; background: #fff; border: 1px solid var(--line); font-size: 9.5px; color: var(--sub); }

.filter-chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.filter-chips::-webkit-scrollbar { display: none; }
.fchip {
  flex: 0 0 auto; height: 31px; padding: 0 12px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  background: #fff; border: 1px solid var(--line); color: var(--sub);
  font-size: 11px; font-weight: 600;
}
.fchip span { font-family: var(--font-num); font-size: 9.5px; color: var(--muted); }
.fchip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.fchip.active span { color: #a9c1d9; }
.fchip:active { transform: scale(.97); }

.list-summary { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.list-summary b { color: var(--ink); font-family: var(--font-num); font-size: 10.5px; }

.order-card {
  position: relative; display: block; width: 100%; text-align: left;
  padding: 14px 14px 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 17px; box-shadow: var(--shadow-xs); overflow: hidden;
}
.order-card:active { transform: scale(.993); }
.order-card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3.5px; border-radius: 0 4px 4px 0; background: var(--primary); }
.order-card.is-wait::before { background: var(--amber); }
.order-card.is-run::before { background: var(--primary); }
.order-card.is-inspect::before { background: var(--purple); }
.order-card.is-done::before { background: var(--green); }
.order-card__head { display: flex; align-items: flex-start; gap: 8px; }
.order-card__head .no { font-family: var(--font-num); font-size: 9.5px; font-weight: 600; color: var(--muted); letter-spacing: .1px; }
.order-card__head .name { margin-top: 2px; font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; }
.order-card__badges { margin-left: auto; display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.order-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 10px; color: var(--muted); }
.order-card__meta b { color: var(--sub); font-weight: 650; }
.order-card__meta .sep { width: 1px; height: 8px; background: var(--line); }
.order-card__progress { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.order-card__progress .bar { flex: 1; height: 6px; }
.order-card__progress .pct { font-family: var(--font-num); font-size: 11px; font-weight: 800; color: var(--ink); width: 32px; text-align: right; }
.order-card__foot { display: flex; align-items: center; gap: 6px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line-2); font-size: 9.5px; color: var(--muted); }
.order-card__foot .due { color: var(--amber); font-weight: 700; }
.order-card__foot .due.is-urgent { color: var(--red); }
.order-card__foot .go { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--primary); font-weight: 650; }
.order-card__foot .go svg { width: 12px; height: 12px; }

.detail-hero {
  position: relative; padding: 14px 16px 18px; color: #fff;
  background: radial-gradient(320px 220px at 90% -20%, rgba(61,152,255,.3), transparent 65%), linear-gradient(155deg, #0b2947, #071b2f);
  overflow: hidden;
}
.detail-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(140,195,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(140,195,255,.3) 1px, transparent 1px);
  background-size: 30px 30px; mask-image: linear-gradient(to bottom, #000, transparent);
}
.detail-hero__eyebrow { position: relative; display: flex; align-items: center; gap: 6px; font-family: var(--font-num); font-size: 9.5px; color: #8fb4d6; letter-spacing: .5px; }
.detail-hero__name { position: relative; margin-top: 5px; font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.detail-hero__meta { position: relative; display: flex; align-items: center; gap: 9px; margin-top: 7px; font-size: 10px; color: #9dc0e0; flex-wrap: wrap; }
.detail-hero__meta b { color: #e7f2fd; }
.detail-hero__board { position: relative; display: flex; align-items: flex-end; gap: 14px; margin-top: 16px; }
.detail-hero__board .big { font-family: var(--font-num); font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -1.2px; }
.detail-hero__board .big small { font-size: 11px; color: #9dc0e0; font-weight: 600; }
.detail-hero__board .bar { background: rgba(255,255,255,.14); height: 5px; margin-top: 8px; }
.detail-hero__board .bar > i { background: linear-gradient(90deg, #62b4ff, #2f8cff); }
.detail-hero__ring { margin-left: auto; width: 74px; height: 74px; position: relative; }
.detail-hero__ring svg { width: 74px; height: 74px; }
.detail-hero__ring .lbl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.detail-hero__ring .lbl b { font-family: var(--font-num); font-size: 17px; font-weight: 800; }
.detail-hero__ring .lbl span { font-size: 7.5px; color: #9dc0e0; }

.process-flow { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.process-flow::-webkit-scrollbar { display: none; }
.pstep { flex: 0 0 auto; width: 68px; text-align: center; position: relative; }
.pstep::before { content: ""; position: absolute; top: 13px; left: 0; right: 0; height: 2px; background: var(--line); }
.pstep:first-child::before { left: 50%; }
.pstep:last-child::before { right: 50%; }
.pstep__dot { position: relative; z-index: 1; width: 27px; height: 27px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: var(--muted); font-family: var(--font-num); font-size: 8.5px; font-weight: 800; }
.pstep__dot svg { width: 13px; height: 13px; }
.pstep.is-done .pstep__dot { background: var(--green); border-color: var(--green); color: #fff; }
.pstep.is-done::before { background: var(--green); }
.pstep.is-active .pstep__dot { background: #fff; border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px rgba(22,119,255,.1); }
.pstep.is-active::before { background: linear-gradient(90deg, var(--green), var(--primary)); }
.pstep span { display: block; margin-top: 5px; font-size: 8.5px; color: var(--muted); white-space: nowrap; }
.pstep.is-done span, .pstep.is-active span { color: var(--ink); font-weight: 650; }

.timeline { padding-left: 2px; }
.tl { position: relative; display: flex; gap: 10px; padding: 0 0 16px 0; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 7px; top: 17px; bottom: 0; width: 1.5px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl__dot { position: relative; z-index: 1; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 2.5px solid #c9d5e3; flex: 0 0 auto; margin-top: 2px; }
.tl.is-done .tl__dot { border-color: var(--green); background: var(--green); box-shadow: inset 0 0 0 2px #fff; }
.tl.is-active .tl__dot { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,119,255,.1); }
.tl.is-warn .tl__dot { border-color: var(--amber); }
.tl.is-err .tl__dot { border-color: var(--red); }
.tl__body { flex: 1; min-width: 0; }
.tl__time { font-family: var(--font-num); font-size: 8.5px; color: var(--muted); }
.tl__title { font-size: 11.5px; font-weight: 650; color: var(--ink); line-height: 1.4; margin-top: 1px; }
.tl__desc { font-size: 10px; color: var(--sub); line-height: 1.5; margin-top: 1px; }

.detail-actions {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; gap: 9px; padding: 11px 16px calc(11px + max(0px, env(safe-area-inset-bottom)));
  background: rgba(255,255,255,.95); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.detail-actions .btn { flex: 1; min-height: 45px; }
.detail-actions .icon-btn { flex: 0 0 45px; width: 45px; height: 45px; border-radius: 13px; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.info-grid .kv { padding: 7px 0; }
.info-grid .kv:nth-last-child(2) { border-bottom: 0; }

/* --------------------------- 8. Dispatch / report ---------------------- */
.step-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.step-no { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--font-num); font-size: 10px; font-weight: 800; flex: 0 0 auto; }
.step-head b { font-size: 13px; color: var(--ink); }
.step-head span { font-size: 9.5px; color: var(--muted); }

.select-card {
  display: block; width: 100%; text-align: left; position: relative;
  padding: 11px 12px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line);
  transition: border-color .15s, box-shadow .15s;
}
.select-card.is-on { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,119,255,.08); }
.select-card.is-on::after { content: "✓"; position: absolute; top: 9px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 10px; display: grid; place-items: center; }
.select-card__title { font-size: 12.5px; font-weight: 700; color: var(--ink); padding-right: 22px; }
.select-card__meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 9.5px; color: var(--muted); }
.select-card__meta b { color: var(--sub); }
.select-card__bar { margin-top: 7px; }

.machine-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.machine-pick .select-card { padding: 9px 10px; }
.machine-pick .select-card__title { font-size: 11.5px; }
.machine-pick .select-card__meta { font-size: 8.5px; }

.report-order {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  border-radius: 16px; background: linear-gradient(145deg, #0d2c4b, #071b2f); color: #fff;
  box-shadow: var(--shadow-md);
}
.report-order .avatar { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.1); font-size: 13px; }
.report-order__meta { min-width: 0; flex: 1; }
.report-order__meta b { display: block; font-size: 13.5px; font-weight: 700; }
.report-order__meta span { display: block; margin-top: 2px; font-size: 9.5px; color: #9dc0e0; font-family: var(--font-num); }
.report-order .chip { background: rgba(255,255,255,.12); color: #d9ecff; }

.qty-display {
  position: relative; padding: 16px 16px 12px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  text-align: center;
}
.qty-display__label { font-size: 10px; color: var(--muted); letter-spacing: .4px; }
.qty-display__num { display: flex; align-items: baseline; justify-content: center; gap: 5px; margin-top: 3px; font-family: var(--font-num); }
.qty-display__num b { font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -2px; color: var(--ink); }
.qty-display__num span { font-size: 12px; color: var(--muted); font-weight: 600; }
.qty-display__meta { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; font-size: 9.5px; color: var(--muted); }
.qty-display__meta b { color: var(--blue); }

.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.key {
  height: 48px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  font-family: var(--font-num); font-size: 20px; font-weight: 650; color: var(--ink);
  display: grid; place-items: center; box-shadow: var(--shadow-xs);
  transition: background .1s, transform .1s;
}
.key:active { background: var(--slate-soft); transform: scale(.97); }
.key svg { width: 20px; height: 20px; }
.key--fn { font-size: 12px; color: var(--sub); }
.key--ok { grid-column: span 1; background: var(--primary); border-color: var(--primary); color: #fff; font-size: 13px; font-family: var(--font); font-weight: 700; }

.defect-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.defect-chip { height: 29px; padding: 0 10px; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-size: 10.5px; color: var(--sub); }
.defect-chip.is-on { background: var(--red-soft); border-color: #f4c4c1; color: #b13b35; font-weight: 650; }

.upload-row { display: flex; gap: 8px; }
.upload-box {
  width: 68px; height: 68px; border-radius: 12px; border: 1.5px dashed #cfd9e6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 8.5px; background: #fbfcfe;
}
.upload-box svg { width: 18px; height: 18px; }
.upload-thumb { position: relative; width: 68px; height: 68px; border-radius: 12px; background: linear-gradient(145deg, #d7e4f2, #a9c2d9); overflow: hidden; }
.upload-thumb::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.24) 0 6px, transparent 6px 12px); }
.upload-thumb span { position: absolute; bottom: 4px; left: 4px; padding: 1px 4px; border-radius: 3px; background: rgba(4,19,34,.55); color: #fff; font-size: 7px; }
.upload-thumb .rm { position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: rgba(7,27,47,.65); color: #fff; display: grid; place-items: center; }
.upload-thumb .rm svg { width: 9px; height: 9px; }

.stepper { display: flex; align-items: center; gap: 9px; }
.stepper button { width: 32px; height: 32px; border-radius: 9px; background: var(--slate-soft); display: grid; place-items: center; color: var(--ink); }
.stepper button svg { width: 15px; height: 15px; }
.stepper b { min-width: 30px; text-align: center; font-family: var(--font-num); font-size: 15px; }
.stepper span { font-size: 10px; color: var(--muted); }

/* --------------------------- 9. Inspection ---------------------------- */
.inspect-item {
  padding: 11px 12px; border-radius: 13px; border: 1px solid var(--line); background: #fff;
}
.inspect-item.is-fail { border-color: #f3c0bc; background: #fffafa; }
.inspect-item__top { display: flex; align-items: center; gap: 7px; }
.inspect-item__name { font-size: 11.5px; font-weight: 650; color: var(--ink); }
.inspect-item__type { margin-left: auto; }
.inspect-item__std { margin-top: 3px; font-size: 9.5px; color: var(--muted); font-family: var(--font-num); }
.inspect-item__entry { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.inspect-item__entry input {
  flex: 1; min-width: 0; height: 34px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg); padding: 0 10px; font-family: var(--font-num); font-size: 13px;
  color: var(--ink); outline: 0;
}
.inspect-item__entry input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(22,119,255,.08); }
.inspect-item__entry .unit { font-size: 9px; color: var(--muted); width: 24px; }
.judge { display: flex; gap: 5px; flex: 0 0 auto; }
.judge button { height: 30px; padding: 0 9px; border-radius: 8px; background: var(--slate-soft); color: var(--muted); font-size: 9.5px; font-weight: 650; }
.judge button.on-ok { background: var(--green-soft); color: #0a7a51; }
.judge button.on-ng { background: var(--red-soft); color: #b13b35; }

.quality-ring-card { display: flex; align-items: center; gap: 14px; }
.quality-ring { width: 92px; height: 92px; position: relative; flex: 0 0 auto; }
.quality-ring svg { width: 92px; height: 92px; }
.quality-ring .lbl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.quality-ring .lbl b { font-family: var(--font-num); font-size: 23px; font-weight: 800; letter-spacing: -.8px; }
.quality-ring .lbl span { font-size: 8px; color: var(--muted); }
.quality-ring--dark .lbl b { color: #fff; }
.quality-ring--dark .lbl span { color: #9dc0e0; }

.spc-chart { position: relative; }
.legend { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 9px; color: var(--muted); }
.legend i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; margin-right: 4px; }

/* ---------------------------- 10. Equipment --------------------------- */
.equip-hero { padding: 2px 16px 14px; }
.equip-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.equip-stat { padding: 10px 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-align: center; }
.equip-stat b { display: block; font-family: var(--font-num); font-size: 18px; font-weight: 800; color: var(--ink); }
.equip-stat span { display: block; margin-top: 2px; font-size: 8.5px; color: var(--muted); }

.machine-card {
  display: block; width: 100%; text-align: left; padding: 12px;
  border-radius: 15px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.machine-card:active { transform: scale(.993); }
.machine-card__top { display: flex; align-items: center; gap: 7px; }
.machine-card__id { font-family: var(--font-num); font-size: 11px; font-weight: 800; color: var(--ink); }
.machine-card__name { font-size: 10.5px; color: var(--sub); }
.machine-card__status { margin-left: auto; }
.machine-card__body { display: flex; align-items: center; gap: 12px; margin-top: 9px; }
.machine-card__info { flex: 1; min-width: 0; }
.machine-card__job { font-size: 10px; color: var(--muted); }
.machine-card__job b { color: var(--ink); font-family: var(--font-num); font-size: 10px; }
.machine-card__bar { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.machine-card__bar .bar { flex: 1; height: 4px; }
.machine-card__bar span { font-family: var(--font-num); font-size: 9px; color: var(--sub); }
.machine-card__oee { width: 45px; height: 45px; position: relative; flex: 0 0 auto; }
.machine-card__oee svg { width: 45px; height: 45px; }
.machine-card__oee .lbl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.machine-card__oee .lbl b { font-family: var(--font-num); font-size: 11px; font-weight: 800; color: var(--ink); }
.machine-card__oee .lbl span { font-size: 5.5px; color: var(--muted); }
.machine-card__foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 8.5px; color: var(--muted); }
.machine-card__foot .warn { color: var(--amber); }
.machine-card__spark { width: 62px; height: 22px; margin-left: auto; }
.machine-card__spark svg { width: 62px; height: 22px; }

.machine-live {
  padding: 18px 16px 16px; color: #fff;
  background: radial-gradient(320px 240px at 88% 0%, rgba(69,160,255,.28), transparent 65%), linear-gradient(155deg, #0b2947, #061727);
  position: relative; overflow: hidden;
}
.machine-live::before {
  content: ""; position: absolute; inset: 0; opacity: .13;
  background-image: linear-gradient(rgba(140,195,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(140,195,255,.3) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.machine-live__top { position: relative; display: flex; align-items: flex-start; gap: 10px; }
.machine-live__id { font-family: var(--font-num); font-size: 10px; color: #8fb4d6; letter-spacing: .8px; }
.machine-live__name { margin-top: 3px; font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.machine-live__meta { margin-top: 5px; display: flex; align-items: center; gap: 7px; font-size: 9.5px; color: #9dc0e0; }
.machine-live__meta b { color: #e9f4ff; }
.machine-live__oee { margin-left: auto; position: relative; width: 82px; height: 82px; flex: 0 0 auto; }
.machine-live__oee svg { width: 82px; height: 82px; }
.machine-live__oee .lbl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.machine-live__oee .lbl b { font-family: var(--font-num); font-size: 21px; font-weight: 800; }
.machine-live__oee .lbl span { font-size: 7.5px; color: #9dc0e0; }
.telemetry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 17px; position: relative; }
.telemetry__item { padding: 9px 8px; border-radius: 11px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); text-align: center; }
.telemetry__item span { display: block; font-size: 8px; color: #8fb4d6; }
.telemetry__item b { display: block; margin-top: 4px; font-family: var(--font-num); font-size: 14px; font-weight: 800; }
.telemetry__item b small { font-size: 8px; color: #9dc0e0; font-weight: 500; }
.machine-live__alarm { position: relative; margin-top: 12px; display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 10px; background: rgba(224,82,75,.16); border: 1px solid rgba(240,126,119,.22); color: #ffd5d2; font-size: 9.5px; }
.machine-live__alarm svg { width: 14px; height: 14px; color: #ff9b94; }

.machine-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.metric-row { padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.metric-row .top { display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--muted); }
.metric-row .top b { font-family: var(--font-num); font-size: 10.5px; color: var(--ink); }
.metric-row .bar { height: 4px; margin-top: 5px; }

/* ----------------------------- 11. Andon ------------------------------ */
.andon-hero { padding: 0 16px 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.andon-stat { padding: 11px 10px; border-radius: 13px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.andon-stat b { display: block; font-family: var(--font-num); font-size: 20px; font-weight: 800; color: var(--ink); }
.andon-stat span { display: block; margin-top: 2px; font-size: 8.5px; color: var(--muted); }
.andon-stat.is-red b { color: var(--red); }

.andon-card {
  position: relative; display: block; width: 100%; text-align: left; padding: 13px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-xs); overflow: hidden;
}
.andon-card:active { transform: scale(.993); }
.andon-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.andon-card.lv-high::before { background: var(--amber); }
.andon-card.lv-mid::before { background: var(--primary); }
.andon-card.lv-low::before { background: var(--muted); }
.andon-card__top { display: flex; align-items: center; gap: 6px; }
.andon-card__time { margin-left: auto; font-family: var(--font-num); font-size: 9.5px; color: var(--red); font-weight: 700; }
.andon-card__title { margin-top: 6px; font-size: 14px; font-weight: 750; color: var(--ink); line-height: 1.35; }
.andon-card__desc { margin-top: 4px; font-size: 10px; line-height: 1.5; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.andon-card__foot { display: flex; align-items: center; gap: 7px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line-2); font-size: 9px; color: var(--muted); }
.andon-card__foot .owner { display: flex; align-items: center; gap: 4px; }
.andon-card__foot .owner svg { width: 11px; height: 11px; }
.andon-card__foot .spacer { flex: 1; }
.andon-card__foot .go { color: var(--red); font-weight: 650; }

/* --------------------------- 12. Materials ---------------------------- */
.material-overview { display: grid; grid-template-columns: 1.3fr 1fr; gap: 9px; }
.mat-gauge { padding: 14px; border-radius: 17px; background: linear-gradient(150deg, #0e3152, #071b2f); color: #fff; position: relative; overflow: hidden; }
.mat-gauge::before { content: ""; position: absolute; right: -30px; bottom: -38px; width: 120px; height: 120px; border-radius: 50%; border: 16px solid rgba(74,160,255,.12); }
.mat-gauge__label { font-size: 9.5px; color: #9dc0e0; }
.mat-gauge__value { margin-top: 5px; font-family: var(--font-num); font-size: 34px; font-weight: 800; letter-spacing: -1.4px; }
.mat-gauge__value span { font-size: 12px; color: #9dc0e0; }
.mat-gauge__foot { display: flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 9px; color: #8fe1c4; }

.mat-low { padding: 12px; border-radius: 15px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.mat-low__row { display: flex; align-items: center; gap: 7px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.mat-low__row:last-child { border-bottom: 0; }
.mat-low__row .dot { margin-top: 1px; }
.mat-low__row .name { flex: 1; min-width: 0; font-size: 9.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mat-low__row b { font-family: var(--font-num); font-size: 10px; color: var(--red); }

.material-card {
  display: block; width: 100%; text-align: left; padding: 12px;
  border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs);
}
.material-card__top { display: flex; align-items: center; gap: 7px; }
.material-card__code { font-family: var(--font-num); font-size: 9px; color: var(--muted); font-weight: 600; }
.material-card__name { margin-top: 3px; font-size: 13px; font-weight: 700; color: var(--ink); }
.material-card__stock { display: flex; align-items: baseline; gap: 4px; margin-top: 8px; font-family: var(--font-num); }
.material-card__stock b { font-size: 20px; font-weight: 800; color: var(--ink); }
.material-card__stock span { font-size: 9px; color: var(--muted); }
.material-card__stock .need { margin-left: auto; font-family: var(--font); font-size: 9px; color: var(--muted); }
.material-card .bar { height: 5px; margin-top: 6px; }
.material-card__foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 8.5px; color: var(--muted); }
.material-card__foot .loc { font-family: var(--font-num); color: var(--sub); }
.material-card__foot .spacer { flex: 1; }
.material-card__foot .eta { color: var(--amber); }

/* --------------------------- 13. Approvals ---------------------------- */
.approval-card {
  display: block; width: 100%; text-align: left; padding: 13px;
  border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs);
  position: relative; overflow: hidden;
}
.approval-card::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; background: var(--amber); border-radius: 0 3px 3px 0; }
.approval-card.is-done::before { background: var(--green); }
.approval-card__top { display: flex; align-items: center; gap: 6px; }
.approval-card__type { font-size: 9px; font-weight: 700; color: var(--amber); background: var(--amber-soft); height: 20px; padding: 0 6px; border-radius: 5px; display: inline-flex; align-items: center; }
.approval-card__time { margin-left: auto; font-family: var(--font-num); font-size: 9px; color: var(--muted); }
.approval-card__title { margin-top: 6px; font-size: 13.5px; font-weight: 750; color: var(--ink); line-height: 1.35; }
.approval-card__meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 9px; color: var(--muted); }
.approval-card__meta b { color: var(--sub); font-weight: 650; }
.approval-card__foot { display: flex; align-items: center; gap: 6px; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.approval-card__foot .amount { font-family: var(--font-num); font-size: 12px; font-weight: 800; color: var(--ink); }
.approval-card__foot .go { margin-left: auto; font-size: 9.5px; color: var(--primary); font-weight: 650; display: inline-flex; align-items: center; gap: 2px; }
.approval-card__foot .go svg { width: 12px; height: 12px; }

.flow { display: flex; flex-direction: column; }
.flow-node { position: relative; display: flex; gap: 10px; padding-bottom: 18px; }
.flow-node:last-child { padding-bottom: 0; }
.flow-node::before { content: ""; position: absolute; left: 11px; top: 23px; bottom: 0; width: 1.5px; background: var(--line); }
.flow-node:last-child::before { display: none; }
.flow-node__dot { width: 23px; height: 23px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; flex: 0 0 auto; color: var(--muted); }
.flow-node__dot svg { width: 11px; height: 11px; }
.flow-node.is-done .flow-node__dot { background: var(--green); border-color: var(--green); color: #fff; }
.flow-node.is-active .flow-node__dot { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 0 4px rgba(22,119,255,.1); }
.flow-node__body { flex: 1; padding-top: 1px; }
.flow-node__body b { display: block; font-size: 11.5px; color: var(--ink); }
.flow-node__body span { display: block; margin-top: 2px; font-size: 9.5px; color: var(--muted); }
.flow-node__body .who { color: var(--sub); }

/* ---------------------------- 14. Schedule ---------------------------- */
.schedule-wrap { overflow-x: auto; scrollbar-width: none; }
.schedule-wrap::-webkit-scrollbar { display: none; }
.schedule { min-width: 620px; }
.schedule__head { display: grid; grid-template-columns: 92px repeat(6, 1fr); align-items: center; padding: 0 0 7px; border-bottom: 1px solid var(--line); }
.schedule__head span { text-align: center; font-family: var(--font-num); font-size: 8.5px; color: var(--muted); }
.schedule__head span:first-child { text-align: left; padding-left: 4px; }
.schedule__row { display: grid; grid-template-columns: 92px 1fr; align-items: center; border-bottom: 1px solid var(--line-2); min-height: 48px; }
.schedule__row:last-child { border-bottom: 0; }
.schedule__machine { padding-left: 4px; }
.schedule__machine b { display: block; font-family: var(--font-num); font-size: 10px; color: var(--ink); }
.schedule__machine span { display: block; font-size: 8px; color: var(--muted); }
.schedule__track { position: relative; height: 32px; background-image: linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: calc(100% / 6) 100%; }
.gbar { position: absolute; top: 5px; height: 22px; border-radius: 6px; padding: 0 6px; display: flex; align-items: center; overflow: hidden; color: #fff; font-size: 7.5px; font-weight: 600; white-space: nowrap; }
.gbar--blue { background: linear-gradient(100deg, #2f8cff, #1677ff); }
.gbar--green { background: linear-gradient(100deg, #24bb84, #0f8f5c); }
.gbar--amber { background: linear-gradient(100deg, #ffc15a, #e89724); color: #573500; }
.gbar--red { background: linear-gradient(100deg, #ef7a73, #d7433c); }
.gbar--grey { background: #d6dee8; color: #5a6a7c; }
.gantt-legend { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 2px 0; font-size: 8.5px; color: var(--muted); }
.gantt-legend i { width: 14px; height: 6px; border-radius: 2px; display: inline-block; margin-right: 4px; }

/* ------------------------------ 15. BI -------------------------------- */
.bi-hero { padding: 0 16px 14px; }
.bi-revenue { position: relative; padding: 16px; border-radius: 19px; color: #fff; overflow: hidden; background: radial-gradient(320px 200px at 92% 0%, rgba(70,160,255,.3), transparent 65%), linear-gradient(150deg, #0c2d4e, #071b2f); box-shadow: var(--shadow-md); }
.bi-revenue::before { content: "REVENUE / 2026"; position: absolute; right: 14px; top: 15px; font-family: var(--font-num); font-size: 8px; letter-spacing: 2px; color: rgba(174,211,244,.22); }
.bi-revenue__label { font-size: 10px; color: #9dc0e0; display: flex; align-items: center; gap: 5px; }
.bi-revenue__value { display: flex; align-items: baseline; gap: 4px; margin-top: 5px; font-family: var(--font-num); }
.bi-revenue__value b { font-size: 37px; line-height: 1; font-weight: 800; letter-spacing: -1.5px; }
.bi-revenue__value span { font-size: 11px; color: #9dc0e0; }
.bi-revenue__foot { display: flex; align-items: center; gap: 10px; margin-top: 9px; font-size: 9.5px; color: #9dc0e0; }
.bi-revenue__foot em { font-style: normal; color: #73e2b6; font-weight: 700; }
.bi-revenue__target { display: flex; align-items: center; gap: 6px; margin-top: 11px; }
.bi-revenue__target .bar { flex: 1; height: 5px; background: rgba(255,255,255,.14); }
.bi-revenue__target .bar > i { background: linear-gradient(90deg, #6cbcff, #2f8cff); }
.bi-revenue__target span { font-size: 8.5px; color: #9dc0e0; }

.bi-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bi-stat { padding: 11px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.bi-stat__label { font-size: 9.5px; color: var(--muted); }
.bi-stat__value { display: flex; align-items: baseline; gap: 3px; margin-top: 5px; font-family: var(--font-num); }
.bi-stat__value b { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.bi-stat__value span { font-size: 8.5px; color: var(--muted); }
.bi-stat__delta { display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; font-size: 8.5px; font-weight: 650; }
.bi-stat__delta.up { color: var(--green); }
.bi-stat__delta.down { color: var(--red); }
.bi-stat__delta svg { width: 9px; height: 9px; }

.donut-card { display: flex; align-items: center; gap: 14px; }
.donut-wrap { position: relative; width: 126px; height: 126px; flex: 0 0 auto; }
.donut-wrap svg { width: 126px; height: 126px; }
.donut-wrap .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-wrap .center b { font-family: var(--font-num); font-size: 21px; font-weight: 800; color: var(--ink); letter-spacing: -.6px; }
.donut-wrap .center span { font-size: 7.5px; color: var(--muted); }
.donut-legend { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; }
.donut-legend div { display: flex; align-items: center; gap: 5px; font-size: 9px; color: var(--sub); }
.donut-legend i { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto; }
.donut-legend b { margin-left: auto; font-family: var(--font-num); font-size: 9.5px; color: var(--ink); }

.risk-item { display: flex; align-items: flex-start; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.risk-item:last-child { border-bottom: 0; }
.risk-item__ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); flex: 0 0 auto; }
.risk-item__ico svg { width: 14px; height: 14px; }
.risk-item__body { flex: 1; min-width: 0; }
.risk-item__body b { display: block; font-size: 11px; color: var(--ink); line-height: 1.4; }
.risk-item__body span { display: block; margin-top: 2px; font-size: 9px; color: var(--muted); }
.risk-item__val { font-family: var(--font-num); font-size: 10px; font-weight: 700; color: var(--red); }

/* ---------------------------- 16. Quality ----------------------------- */
.quality-hero { padding: 0 16px 14px; }
.quality-main { position: relative; padding: 15px; border-radius: 19px; color: #fff; background: radial-gradient(300px 200px at 88% 0%, rgba(24,190,174,.26), transparent 66%), linear-gradient(150deg, #0a3540, #071d2d); box-shadow: var(--shadow-md); overflow: hidden; }
.quality-main::before { content: ""; position: absolute; right: -34px; bottom: -52px; width: 150px; height: 150px; border-radius: 50%; border: 18px solid rgba(39,214,195,.1); }
.quality-main__label { font-size: 10px; color: #9dc0e0; }
.quality-main__row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.quality-main__value { display: flex; align-items: baseline; gap: 3px; font-family: var(--font-num); }
.quality-main__value b { font-size: 36px; line-height: 1; font-weight: 800; letter-spacing: -1.4px; }
.quality-main__value span { font-size: 12px; color: #9dc0e0; }
.quality-main__sub { margin-top: 5px; font-size: 9.5px; color: #9dc0e0; }
.quality-main__ring { margin-left: auto; width: 78px; height: 78px; position: relative; }
.quality-main__ring svg { width: 78px; height: 78px; }
.quality-main__ring .lbl { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.quality-main__ring .lbl b { font-family: var(--font-num); font-size: 16px; font-weight: 800; }
.quality-main__ring .lbl span { font-size: 7px; color: #9dc0e0; }

.defect-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; }
.defect-row .name { width: 70px; flex: 0 0 auto; font-size: 10px; color: var(--sub); }
.defect-row .bar { flex: 1; height: 6px; }
.defect-row .n { width: 22px; text-align: right; font-family: var(--font-num); font-size: 9.5px; font-weight: 700; color: var(--ink); }
.spc-legend { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 8px; color: var(--muted); flex-wrap: wrap; }

.trace-strip { display: flex; flex-direction: column; gap: 0; }
.trace-step { display: flex; gap: 10px; position: relative; padding-bottom: 15px; }
.trace-step:last-child { padding-bottom: 0; }
.trace-step::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 0; width: 1.5px; background: var(--line); }
.trace-step:last-child::before { display: none; }
.trace-step__ico { width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: 0 0 auto; }
.trace-step__ico svg { width: 11px; height: 11px; }
.trace-step.is-done .trace-step__ico { background: var(--green-soft); color: var(--green); }
.trace-step.is-warn .trace-step__ico { background: var(--amber-soft); color: var(--amber); }
.trace-step__body b { display: block; font-size: 11px; color: var(--ink); }
.trace-step__body span { display: block; margin-top: 2px; font-size: 9px; color: var(--muted); font-family: var(--font-num); }

/* --------------------------- 17. Warehouse ---------------------------- */
.wh-hero { padding: 0 16px 14px; }
.wh-main { position: relative; padding: 15px; border-radius: 19px; color: #fff; background: radial-gradient(300px 200px at 90% 0%, rgba(255,188,84,.26), transparent 66%), linear-gradient(150deg, #3b2a12, #1c160d); box-shadow: var(--shadow-md); overflow: hidden; }
.wh-main__label { font-size: 10px; color: #e0c9a3; }
.wh-main__row { display: flex; align-items: flex-end; gap: 14px; margin-top: 5px; }
.wh-main__value { font-family: var(--font-num); font-size: 36px; font-weight: 800; letter-spacing: -1.4px; line-height: 1; }
.wh-main__value span { font-size: 11px; color: #e0c9a3; font-weight: 500; }
.wh-main__sub { margin-top: 7px; font-size: 9.5px; color: #e0c9a3; }
.wh-main__side { margin-left: auto; display: flex; gap: 12px; }
.wh-main__side div { text-align: right; }
.wh-main__side b { display: block; font-family: var(--font-num); font-size: 17px; font-weight: 800; }
.wh-main__side span { display: block; font-size: 8px; color: #e0c9a3; }

.task-card {
  display: block; width: 100%; text-align: left; padding: 12px;
  border-radius: 15px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-xs);
  position: relative;
}
.task-card__top { display: flex; align-items: center; gap: 6px; }
.task-card__id { font-family: var(--font-num); font-size: 9px; color: var(--muted); }
.task-card__title { margin-top: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.task-card__route { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 9px; color: var(--muted); }
.task-card__route svg { width: 10px; height: 10px; }
.task-card__route b { color: var(--sub); font-weight: 600; }
.task-card__foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.task-card__foot .btn { margin-left: auto; }
.agv-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.agv-row:last-child { border-bottom: 0; }
.agv-row__ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.agv-row__ico svg { width: 16px; height: 16px; }
.agv-row__body { flex: 1; min-width: 0; }
.agv-row__body b { display: block; font-family: var(--font-num); font-size: 11px; color: var(--ink); }
.agv-row__body span { display: block; margin-top: 1px; font-size: 8.5px; color: var(--muted); }
.agv-row__bat { width: 46px; }
.agv-row__bat .bar { height: 4px; margin-top: 3px; }
.agv-row__bat span { font-family: var(--font-num); font-size: 8px; color: var(--muted); }

/* ---------------------------- 18. Messages ----------------------------- */
.msg-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.msg-filter::-webkit-scrollbar { display: none; }
.msg-card {
  display: flex; gap: 10px; width: 100%; text-align: left; padding: 12px;
  border-radius: 14px; background: #fff; border: 1px solid var(--line);
}
.msg-card.is-unread { background: linear-gradient(100deg, #f7fbff, #fff); border-color: #d9e8fb; }
.msg-card__ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; background: var(--primary-soft); color: var(--primary); }
.msg-card__ico svg { width: 16px; height: 16px; }
.msg-card__ico.red { background: var(--red-soft); color: var(--red); }
.msg-card__ico.amber { background: var(--amber-soft); color: var(--amber); }
.msg-card__ico.gray { background: var(--slate-soft); color: var(--sub); }
.msg-card__body { flex: 1; min-width: 0; }
.msg-card__top { display: flex; align-items: center; gap: 5px; }
.msg-card__top b { font-size: 11.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-card__time { margin-left: auto; flex: 0 0 auto; font-family: var(--font-num); font-size: 8px; color: var(--muted); }
.msg-card__text { margin-top: 3px; font-size: 9.5px; line-height: 1.45; color: var(--sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.msg-card__tag { display: inline-flex; margin-top: 5px; height: 17px; padding: 0 5px; align-items: center; border-radius: 4px; background: var(--slate-soft); color: var(--muted); font-size: 7.5px; }
.unread-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); flex: 0 0 auto; }

/* ----------------------------- 19. Profile ----------------------------- */
.profile-hero {
  position: relative; padding: calc(var(--statusbar-h) + 8px) 18px 50px; color: #fff;
  background: radial-gradient(340px 240px at 88% -10%, rgba(61,152,255,.32), transparent 64%), linear-gradient(155deg, #0b2947, #071b2f);
  overflow: hidden;
}
.profile-hero::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(140,195,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(140,195,255,.3) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(to bottom, #000, transparent); }
.profile-hero__top { position: relative; display: flex; align-items: center; gap: 12px; }
.profile-hero__avatar { width: 58px; height: 58px; border-radius: 19px; display: grid; place-items: center; font-size: 21px; font-weight: 800; background: linear-gradient(145deg, #3d98ff, #0b4fb0); box-shadow: 0 0 0 3px rgba(255,255,255,.13); }
.profile-hero__meta { min-width: 0; flex: 1; }
.profile-hero__meta b { display: flex; align-items: center; gap: 6px; font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
.profile-hero__meta b span { height: 19px; padding: 0 6px; border-radius: 5px; background: rgba(95,172,255,.18); color: #a9d2ff; font-size: 8.5px; display: inline-flex; align-items: center; }
.profile-hero__meta p { margin: 4px 0 0; font-size: 10px; color: #9dc0e0; }
.profile-hero__stats { position: relative; display: flex; gap: 0; margin-top: 18px; padding: 12px 0; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09); }
.profile-stat { flex: 1; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.profile-stat:last-child { border-right: 0; }
.profile-stat b { display: block; font-family: var(--font-num); font-size: 17px; font-weight: 800; }
.profile-stat span { display: block; margin-top: 2px; font-size: 8px; color: #9dc0e0; }
.profile-card { margin: -32px 16px 0; position: relative; z-index: 2; }

.menu-list { background: #fff; border-radius: 17px; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-xs); }
.menu-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.menu-row:last-child { border-bottom: 0; }
.menu-row:active { background: var(--card-2); }
.menu-row__ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: 0 0 auto; }
.menu-row__ico svg { width: 16px; height: 16px; }
.menu-row__ico.green { background: var(--green-soft); color: var(--green); }
.menu-row__ico.amber { background: var(--amber-soft); color: var(--amber); }
.menu-row__ico.purple { background: var(--purple-soft); color: var(--purple); }
.menu-row__ico.gray { background: var(--slate-soft); color: var(--sub); }
.menu-row__body { flex: 1; min-width: 0; }
.menu-row__body b { display: block; font-size: 12px; color: var(--ink); }
.menu-row__body span { display: block; margin-top: 1px; font-size: 9px; color: var(--muted); }
.menu-row__right { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--muted); }
.menu-row__right svg { width: 14px; height: 14px; }
.switch { position: relative; width: 40px; height: 24px; border-radius: 99px; background: #dfe6ef; transition: background .2s; flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform .2s var(--ease); }
.switch.is-on { background: var(--primary); }
.switch.is-on::after { transform: translateX(16px); }

/* ------------------------------ 20. Menu ------------------------------- */
.menu-search { margin-top: 4px; }
.menu-group { margin-top: 16px; }
.menu-group__title { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; font-weight: 750; color: var(--ink); }
.menu-group__title i { width: 3px; height: 12px; border-radius: 2px; background: var(--primary); }
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.menu-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 13px; background: #fff; border: 1px solid var(--line); font-size: 9px; color: var(--text); text-align: center; box-shadow: var(--shadow-xs); }
.menu-item svg { width: 21px; height: 21px; color: var(--primary); }
.menu-item:active { background: var(--card-2); transform: scale(.97); }
.menu-item span { line-height: 1.25; }

/* ---------------------------- 21. Sheets ------------------------------- */
.layer { position: absolute; inset: 0; z-index: 300; display: none; }
.layer.is-open { display: block; }
.layer__backdrop { position: absolute; inset: 0; background: rgba(4, 15, 27, .46); backdrop-filter: blur(3px); opacity: 0; transition: opacity .22s; }
.layer.is-open .layer__backdrop { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%;
  display: flex; flex-direction: column;
  padding: 8px 16px calc(16px + max(8px, env(safe-area-inset-bottom)));
  background: #fff; border-radius: 24px 24px 0 0;
  box-shadow: 0 -18px 50px rgba(4, 15, 27, .22);
  transform: translateY(102%); transition: transform .3s var(--ease);
}
.layer.is-open .sheet { transform: translateY(0); }
.sheet__grab { width: 38px; height: 4px; border-radius: 99px; background: #dce3ec; margin: 2px auto 12px; flex: 0 0 auto; }
.sheet__head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; flex: 0 0 auto; }
.sheet__head h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; }
.sheet__head h3:empty { display: none; }
.sheet__head p { margin: 3px 0 0; font-size: 10.5px; color: var(--muted); }
.sheet__head .icon-btn { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; box-shadow: none; background: var(--slate-soft); border: 0; }
.sheet__head .icon-btn svg { width: 16px; height: 16px; }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; }
.sheet__foot { padding-top: 12px; display: flex; gap: 9px; flex: 0 0 auto; }
.sheet__foot .btn { flex: 1; }

.role-option { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 11px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; margin-bottom: 8px; }
.role-option.is-on { border-color: var(--primary); background: #f8fbff; }
.role-option__avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; background: linear-gradient(145deg, #3d98ff, #0b4fb0); }
.role-option__meta { flex: 1; min-width: 0; }
.role-option__meta b { display: block; font-size: 12.5px; color: var(--ink); }
.role-option__meta span { display: block; margin-top: 2px; font-size: 9.5px; color: var(--muted); }
.role-option__check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; }
.role-option__check svg { width: 11px; height: 11px; }
.role-option.is-on .role-option__check { background: var(--primary); border-color: var(--primary); color: #fff; }

.toast {
  position: absolute; left: 50%; bottom: calc(var(--tabbar-h) + 24px); transform: translate(-50%, 10px);
  display: flex; align-items: center; gap: 7px; max-width: 320px;
  padding: 10px 14px; border-radius: 12px; background: rgba(7, 27, 47, .93); color: #fff;
  font-size: 11.5px; box-shadow: 0 12px 30px rgba(4, 15, 27, .3);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 600;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; color: #5fe0b0; }
.toast.warn svg { color: #ffc15a; }
.toast.error svg { color: #ff9b94; }

/* --------------------------- 22. Scan / search ------------------------- */
.overlay {
  position: absolute; inset: 0; z-index: 320; display: none;
  background: #051321; color: #fff;
}
.overlay.is-open { display: flex; flex-direction: column; }
.scan__head { display: flex; align-items: center; gap: 8px; padding: calc(var(--statusbar-h) + 8px) 16px 0; }
.scan__head b { font-size: 17px; font-weight: 750; }
.scan__head .icon-btn { margin-left: auto; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.1); color: #fff; box-shadow: none; }
.scan__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 24px; }
.scan__frame {
  position: relative; width: 236px; height: 236px; border-radius: 26px;
  background: linear-gradient(145deg, rgba(75,140,200,.12), rgba(4,19,34,.3));
  box-shadow: 0 0 0 1px rgba(120,190,255,.18), inset 0 0 60px rgba(30,120,220,.08);
  overflow: hidden;
}
.scan__frame::before {
  content: ""; position: absolute; inset: 0; opacity: .28;
  background-image: linear-gradient(rgba(120,185,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(120,185,255,.2) 1px, transparent 1px);
  background-size: 26px 26px;
}
.scan__corner { position: absolute; width: 34px; height: 34px; border: 2.5px solid #58b0ff; }
.scan__corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.scan__corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.scan__corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.scan__corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.scan__line { position: absolute; left: 12px; right: 12px; height: 2px; background: linear-gradient(90deg, transparent, #62b6ff, transparent); box-shadow: 0 0 16px rgba(98,182,255,.8); animation: scanline 2.2s ease-in-out infinite; }
@keyframes scanline { 0%,100% { top: 16px; opacity: .4; } 50% { top: 218px; opacity: 1; } }
.scan__qr { position: absolute; inset: 0; margin: auto; width: 108px; height: 108px; opacity: .28; }
.scan__qr svg { width: 108px; height: 108px; stroke-width: 1.5; }
.scan__hint { margin-top: 22px; text-align: center; }
.scan__hint b { display: block; font-size: 14px; font-weight: 650; }
.scan__hint span { display: block; margin-top: 5px; font-size: 10.5px; color: #7f9db9; }
.scan__foot { padding: 0 22px calc(22px + max(8px, env(safe-area-inset-bottom))); display: flex; flex-direction: column; gap: 9px; }
.scan__foot .btn { min-height: 48px; }
.scan__foot .btn--ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #fff; }
.scan__torch { margin: 0 auto 2px; display: inline-flex; align-items: center; gap: 5px; color: #9db7cf; font-size: 10px; }
.scan__torch svg { width: 13px; height: 13px; }

.search-overlay { background: rgba(4, 15, 27, .45); backdrop-filter: blur(3px); }
.search-panel {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: var(--bg);
  display: flex; flex-direction: column; animation: slideDown .22s var(--ease);
}
@keyframes slideDown { from { transform: translateY(-18px); opacity: .6; } to { transform: none; opacity: 1; } }
.search-panel__head { display: flex; align-items: center; gap: 8px; padding: calc(var(--statusbar-h) + 6px) 14px 10px; background: #fff; border-bottom: 1px solid var(--line-2); }
.search-panel__input { flex: 1; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 11px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); }
.search-panel__input svg { width: 17px; height: 17px; color: var(--muted); }
.search-panel__input input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 12.5px; color: var(--ink); }
.search-panel__cancel { font-size: 12px; color: var(--primary); padding: 8px 2px; }
.search-panel__body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.search-section { margin-bottom: 18px; }
.search-section h4 { margin: 0 0 8px; font-size: 10px; color: var(--muted); font-weight: 650; letter-spacing: .4px; }
.search-tag { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; margin: 0 6px 7px 0; border-radius: 9px; background: #fff; border: 1px solid var(--line); font-size: 10.5px; color: var(--sub); }
.search-result { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.search-result__ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.search-result__ico svg { width: 15px; height: 15px; }
.search-result__body { flex: 1; min-width: 0; }
.search-result__body b { display: block; font-size: 11.5px; color: var(--ink); }
.search-result__body span { display: block; margin-top: 1px; font-size: 9px; color: var(--muted); }
.search-result > svg { width: 14px; height: 14px; color: var(--muted); }

/* ---------------------------- 23. Animations --------------------------- */
.page-enter { animation: pageIn .24s var(--ease); }
@keyframes pageIn { from { opacity: .5; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.page-back { animation: pageBack .22s var(--ease); }
@keyframes pageBack { from { opacity: .6; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.toast-enter { animation: toastIn .22s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.shimmer { background: linear-gradient(100deg, #eef2f7 30%, #f8fafc 50%, #eef2f7 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { from { background-position: 180% 0; } to { background-position: -40% 0; } }

/* --------------------------- 24. Responsive ---------------------------- */
@media (max-width: 620px) {
  html, body { background: var(--bg); display: block; overflow: hidden; }
  .stage { display: block; padding: 0; height: 100dvh; }
  .device {
    width: 100%; height: 100vh; height: 100dvh; padding: 0; border-radius: 0;
    background: var(--bg); box-shadow: none;
  }
  .screen { width: 100%; height: 100vh; height: 100dvh; border-radius: 0; }
  .screen::after { border-radius: 0; }
  .island { display: none; }
  .stage__caption { display: none; }
  :root { --statusbar-h: max(46px, calc(env(safe-area-inset-top, 0px) + 24px)); }
  .statusbar { padding-top: env(safe-area-inset-top, 0px); height: var(--statusbar-h); }
  .home-indicator { display: none; }
  .toast { bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); }
  .layer, .overlay { position: fixed; }
  .tabbar { padding-bottom: calc(8px + env(safe-area-inset-bottom)); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .page--home .page__inner { padding-bottom: calc(var(--tabbar-h) + 30px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .hero__name { font-size: 21px; }
  .hero__name .role-tag { display: none; }
  .hero__progress { font-size: 9px; gap: 6px; }
  .donut-card { flex-wrap: wrap; }
  .donut-legend { flex: 1 1 100%; }
  .hero__value b { font-size: 34px; }
  .hero__ring { width: 78px; height: 78px; }
  .hero__ring svg { width: 78px; height: 78px; }
  .quick { font-size: 9.5px; }
  .tabbar__item { font-size: 9px; }
}
@media (max-height: 760px) {
  .hero__value b { font-size: 33px; }
  .hero__ring { width: 76px; height: 76px; }
  .hero__ring svg { width: 76px; height: 76px; }
  .quick { min-height: 60px; }
  .quick__ico { width: 38px; height: 38px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
