:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #748097;
  --line: #e7eaf1;
  --brand: #6254e8;
  --brand-dark: #342d7d;
  --brand-soft: #efedff;
  --cyan: #30c7c0;
  --green: #16a778;
  --green-soft: #eaf8f2;
  --amber: #e99a2f;
  --amber-soft: #fff5e6;
  --red: #df5c67;
  --red-soft: #fff0f1;
  --blue: #4b82e8;
  --shadow: 0 14px 40px rgba(45, 51, 84, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: 236px;
  padding: 28px 18px 18px;
  color: #dfe1ff;
  background:
    radial-gradient(circle at 18% 8%, rgba(128, 110, 255, .28), transparent 29%),
    linear-gradient(180deg, #2f286e 0%, #24205a 56%, #1d194d 100%);
  box-shadow: 8px 0 30px rgba(31, 26, 79, .13);
  display: flex;
  flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 2px 8px 28px; }
.brand strong { display: block; color: white; font-size: 18px; letter-spacing: .5px; }
.brand small { display: block; color: #aaa7d4; font-size: 8px; letter-spacing: 1.9px; margin-top: 3px; }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: end; justify-content: center; gap: 3px; padding: 9px 8px; background: linear-gradient(145deg, #8174ff, #5b4bdf); box-shadow: inset 0 1px rgba(255,255,255,.28), 0 8px 20px rgba(15, 11, 57, .25); }
.brand-mark span { width: 4px; border-radius: 4px; background: white; animation: wave 2.2s ease-in-out infinite; }
.brand-mark span:nth-child(1) { height: 10px; }
.brand-mark span:nth-child(2) { height: 18px; animation-delay: -.7s; }
.brand-mark span:nth-child(3) { height: 13px; animation-delay: -1.2s; }
@keyframes wave { 0%,100% { transform: scaleY(.8); opacity: .75; } 50% { transform: scaleY(1.12); opacity: 1; } }

.nav { display: grid; gap: 5px; }
.nav-item { position: relative; height: 46px; border: 0; border-radius: 12px; background: transparent; color: #aaa9cf; display: flex; align-items: center; gap: 13px; padding: 0 13px; text-align: left; transition: .2s ease; }
.nav-item i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: #c7c6e6; font-size: 16px; font-style: normal; }
.nav-item span { flex: 1; font-weight: 600; }
.nav-item b { min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; display: none; place-items: center; background: rgba(255,255,255,.13); color: white; font-size: 10px; }
.nav-item b:not(:empty) { display: grid; }
.nav-item:hover { color: white; background: rgba(255,255,255,.055); }
.nav-item.active { color: white; background: linear-gradient(90deg, rgba(126,110,255,.42), rgba(103,87,230,.22)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.nav-item.active::before { content: ""; position: absolute; left: -18px; width: 4px; height: 25px; border-radius: 0 4px 4px 0; background: #8c80ff; box-shadow: 0 0 14px #8c80ff; }
.nav-item.active i { color: white; background: rgba(255,255,255,.08); }
.sidebar-note { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); border-radius: 13px; }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { font-size: 11px; color: #e6e6fa; }
.sidebar-note small { font-size: 9px; color: #8d8bb8; margin-top: 3px; }
.live-dot { width: 9px; height: 9px; background: #3ed3a1; border-radius: 50%; box-shadow: 0 0 0 5px rgba(62,211,161,.11), 0 0 12px rgba(62,211,161,.8); }
.profile { margin-top: 13px; padding: 14px 8px 2px; display: grid; grid-template-columns: 34px 1fr 26px; gap: 10px; align-items: center; border-top: 1px solid rgba(255,255,255,.07); }
.avatar { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(145deg,#f6b96f,#dd7e59); color: white; font-weight: 800; }
.profile strong, .profile small { display: block; }
.profile strong { color: white; font-size: 11px; }
.profile small { color: #8f8db5; font-size: 9px; margin-top: 2px; }
.profile button { border: 0; color: #9795bc; background: transparent; font-size: 16px; }

.main { width: calc(100% - 236px); min-width: 0; margin-left: 236px; padding: 0 34px 46px; }
.topbar { height: 132px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.eyebrow, .section-kicker { margin: 0 0 7px; color: #9a91d7; font-size: 9px; font-weight: 800; letter-spacing: 1.8px; }
.topbar h1 { font-size: 27px; margin: 0; letter-spacing: -.6px; }
.topbar > div > p:last-child { color: var(--muted); margin: 7px 0 0; font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.sync-state { display: flex; align-items: center; gap: 8px; margin-right: 4px; padding-right: 15px; border-right: 1px solid var(--line); }
.sync-state > span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.sync-state b, .sync-state small { display: block; font-size: 9px; }
.sync-state b { color: #586276; }
.sync-state small { color: #adb4c2; margin-top: 2px; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; background: white; color: #6b7385; display: grid; place-items: center; font-size: 18px; transition: .2s; }
.icon-button:hover { color: var(--brand); border-color: #cbc5ff; transform: translateY(-1px); }
.primary-button, .secondary-button { min-height: 40px; padding: 0 16px; border-radius: 11px; border: 0; font-weight: 700; font-size: 12px; transition: .2s; }
.primary-button { background: linear-gradient(135deg, #6c5dea, #5546d4); color: white; box-shadow: 0 7px 18px rgba(91,76,218,.23); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(91,76,218,.3); }
.primary-button span { margin-right: 5px; }
.secondary-button { background: white; color: #565f72; border: 1px solid var(--line); }
.secondary-button:hover { color: var(--brand); border-color: #c9c3fc; background: #fbfaff; }
.text-button { border: 0; background: transparent; color: var(--brand); font-size: 11px; font-weight: 700; }

.view { display: none; animation: enter .25s ease; }
.view.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.hero-strip { min-height: 226px; border-radius: 24px; overflow: hidden; padding: 35px 39px; color: white; position: relative; display: grid; grid-template-columns: 1.1fr .9fr; background:
  radial-gradient(circle at 80% 15%, rgba(111,226,223,.18), transparent 24%),
  radial-gradient(circle at 53% 96%, rgba(143,122,255,.32), transparent 36%),
  linear-gradient(125deg, #30286e 0%, #3e3589 52%, #5147a5 100%);
  box-shadow: 0 19px 44px rgba(43,35,106,.18);
}
.hero-strip::after { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.1) 1px,transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent 20%, black); }
.hero-label { display: inline-flex; padding: 6px 10px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); color: #c9c6f3; font-size: 9px; font-weight: 800; letter-spacing: 1.3px; }
.hero-strip h2 { margin: 18px 0 10px; font-size: 28px; line-height: 1.37; letter-spacing: -.6px; }
.hero-strip h2 em { font-style: normal; color: #76e0dc; }
.hero-strip p { max-width: 520px; margin: 0; color: #bbb9df; font-size: 12px; line-height: 1.8; }
.hero-strip > div:first-child { z-index: 2; }
.hero-orbit { position: relative; min-height: 155px; z-index: 2; }
.orbit { position: absolute; border: 1px solid rgba(169,159,255,.2); border-radius: 50%; transform: rotate(-18deg); }
.orbit-one { width: 320px; height: 120px; right: 20px; top: 18px; }
.orbit-two { width: 260px; height: 210px; right: 55px; top: -28px; }
.phone-shape { position: absolute; right: 115px; top: -8px; width: 103px; height: 178px; border-radius: 24px; border: 5px solid rgba(255,255,255,.78); background: linear-gradient(180deg,#7970d4,#453a9d); box-shadow: 0 20px 38px rgba(17,12,60,.35), inset 0 0 30px rgba(255,255,255,.08); display: grid; place-items: center; }
.phone-shape > span { position: absolute; top: 7px; width: 31px; height: 5px; border-radius: 5px; background: rgba(24,19,75,.5); }
.phone-shape i { font-style: normal; font-size: 42px; color: #73ded8; text-shadow: 0 0 22px rgba(80,227,217,.55); }
.phone-shape small { position: absolute; bottom: 20px; padding: 4px 8px; border-radius: 10px; background: rgba(49,42,123,.7); color: #9af1e8; font-size: 7px; letter-spacing: 1.4px; }
.signal-card { position: absolute; min-width: 105px; padding: 11px 13px; border-radius: 12px; background: rgba(34,28,92,.74); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); box-shadow: 0 12px 24px rgba(20,15,67,.18); }
.signal-card i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; background: #5fe1d8; box-shadow: 0 0 8px #5fe1d8; }
.signal-card b { color: white; font-size: 10px; }
.signal-card small { display: block; color: #aaa6d4; font-size: 8px; margin-top: 5px; }
.signal-a { right: 235px; top: 28px; }
.signal-b { right: 4px; bottom: 3px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 17px 0; }
.metric-card { padding: 19px 18px; min-height: 112px; border-radius: var(--radius); background: white; border: 1px solid rgba(225,229,239,.85); box-shadow: 0 7px 24px rgba(45,51,84,.045); display: grid; grid-template-columns: 1fr auto; align-items: start; }
.metric-card .metric-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; }
.metric-card label { display: block; color: #828b9e; font-size: 10px; font-weight: 700; }
.metric-card strong { display: inline-block; margin-top: 8px; font-size: 25px; letter-spacing: -.7px; }
.metric-card small { grid-column: 1 / -1; align-self: end; color: #a0a7b5; font-size: 9px; }
.metric-card small b { color: var(--green); }
.tone-purple .metric-icon { color: var(--brand); background: var(--brand-soft); }
.tone-green .metric-icon { color: var(--green); background: var(--green-soft); }
.tone-blue .metric-icon { color: var(--blue); background: #edf4ff; }
.tone-amber .metric-icon { color: var(--amber); background: var(--amber-soft); }

.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 14px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: 1 / -1; }
.panel { background: white; border: 1px solid rgba(225,229,239,.9); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(45,51,84,.045); overflow: hidden; }
.panel-header { min-height: 67px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #eff1f5; }
.panel-header h3 { margin: 0; font-size: 15px; }
.panel-header .section-kicker { margin-bottom: 4px; }
.flow-chart { min-height: 212px; padding: 25px 25px 22px; display: flex; align-items: flex-end; gap: 14px; }
.flow-column { flex: 1; min-width: 34px; height: 168px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; }
.flow-column .bar-wrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px dashed #e7e9f0; }
.flow-column .bar { width: min(34px, 68%); min-height: 5px; border-radius: 9px 9px 3px 3px; background: linear-gradient(180deg,#8174f2,#5c50dd); box-shadow: 0 7px 14px rgba(94,79,222,.16); }
.flow-column b { position: absolute; margin-bottom: 8px; color: white; font-size: 9px; }
.flow-column span { font-size: 9px; color: #7f8799; text-align: center; white-space: nowrap; }
.quality-panel { min-height: 280px; }
.quality-wrap { height: 212px; display: grid; place-items: center; position: relative; }
.quality-ring { width: 146px; height: 146px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.quality-ring::after { content: ""; width: 108px; height: 108px; background: white; border-radius: 50%; box-shadow: inset 0 0 0 1px #f0f1f5; }
.quality-ring .quality-value { position: absolute; z-index: 2; text-align: center; }
.quality-ring strong { display: block; font-size: 26px; }
.quality-ring small { color: var(--muted); font-size: 9px; }
.quality-caption { position: absolute; bottom: 12px; color: #9da4b2; font-size: 9px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 17px; color: #9ba3b2; background: #fafbfc; font-size: 9px; font-weight: 800; text-align: left; white-space: nowrap; border-bottom: 1px solid #eff1f5; }
td { padding: 14px 17px; color: #515b6e; font-size: 10px; border-bottom: 1px solid #f0f2f6; vertical-align: middle; }
tbody tr { transition: .16s; }
tbody tr:hover { background: #fbfaff; }
tbody tr:last-child td { border-bottom: 0; }
.cell-title { color: #30394c; font-weight: 750; font-size: 10px; }
.cell-sub { display: block; color: #9ca4b2; margin-top: 4px; font-size: 8px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 0 8px; border-radius: 12px; font-size: 8px; font-weight: 800; white-space: nowrap; }
.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-green { color: var(--green); background: var(--green-soft); }
.badge-purple { color: var(--brand); background: var(--brand-soft); }
.badge-amber { color: var(--amber); background: var(--amber-soft); }
.badge-red { color: var(--red); background: var(--red-soft); }
.badge-blue { color: var(--blue); background: #edf4ff; }
.badge-gray { color: #7b8494; background: #f0f2f5; }
.score { font-weight: 800; }
.score.good { color: var(--green); }.score.bad { color: var(--red); }.score.pending { color: #9ca4b2; }
.row-action { border: 0; background: #f3f1ff; color: var(--brand); border-radius: 8px; padding: 7px 9px; font-size: 9px; font-weight: 750; }
.row-action:hover { background: #e9e5ff; }
.row-action.danger { background: #fff0f1; color: var(--red); }
.row-action.danger:hover { background: #ffe4e6; }
.empty-row { text-align: center; color: #a4abb9; padding: 36px; }

.view-toolbar { min-height: 58px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.toolbar-actions, .filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.segmented { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #eceef4; }
.segmented button { border: 0; padding: 8px 13px; border-radius: 8px; background: transparent; color: #7a8394; font-size: 10px; font-weight: 700; }
.segmented button.active { background: white; color: var(--ink); box-shadow: 0 3px 9px rgba(44,50,80,.1); }
.filter-chip { border: 1px solid var(--line); border-radius: 16px; background: white; color: #737d90; padding: 7px 12px; font-size: 9px; font-weight: 700; }
.filter-chip.active { color: var(--brand); border-color: #c7c0fa; background: var(--brand-soft); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.project-card { min-height: 170px; padding: 20px; border-radius: var(--radius); background: white; border: 1px solid var(--line); box-shadow: 0 8px 25px rgba(45,51,84,.045); position: relative; overflow: hidden; }
.project-card::after { content: ""; position: absolute; width: 110px; height: 110px; right: -50px; top: -53px; border-radius: 50%; background: var(--brand-soft); }
.project-card .project-icon { width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; color: var(--brand); background: var(--brand-soft); font-size: 17px; }
.project-card h3 { margin: 15px 0 5px; font-size: 15px; }
.project-card p { height: 31px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; overflow: hidden; }
.project-stats { display: flex; gap: 20px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #eff1f5; }
.project-stats b, .project-stats span { display: block; }
.project-stats b { font-size: 14px; }.project-stats span { color: #9da4b2; font-size: 8px; margin-top: 2px; }
.top-gap { margin-top: 14px; }
.mini-legend { display: flex; gap: 13px; color: #8e97a7; font-size: 8px; }
.mini-legend i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; }
.mini-legend .green { background: var(--green); }.mini-legend .amber { background: var(--amber); }

.device-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 14px; }
.summary-tile { padding: 17px 18px; background: white; border: 1px solid var(--line); border-radius: 15px; display: flex; align-items: center; gap: 12px; }
.summary-tile i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-style: normal; color: var(--brand); background: var(--brand-soft); }
.summary-tile b, .summary-tile small { display: block; }.summary-tile b { font-size: 18px; }.summary-tile small { color: var(--muted); font-size: 8px; margin-top: 2px; }
.search-box { width: 260px; height: 34px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; display: flex; align-items: center; gap: 6px; padding: 0 10px; color: #9da5b5; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 9px; }
.device-cell { display: flex; align-items: center; gap: 9px; }
.device-icon { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: #f0efff; color: var(--brand); }
.muted { color: var(--muted); font-size: 9px; }

.review-intro { min-height: 125px; border-radius: 19px; padding: 24px 28px; margin-bottom: 15px; color: white; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(125deg,#342d79,#5549ae); box-shadow: 0 14px 32px rgba(53,44,127,.16); }
.review-intro h2 { margin: 4px 0 7px; font-size: 22px; }.review-intro p { margin: 0; color: #c3c0e7; font-size: 10px; }
.review-stat { text-align: center; min-width: 130px; padding: 12px 18px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); border-radius: 15px; }
.review-stat strong, .review-stat span { display: block; }.review-stat strong { font-size: 30px; }.review-stat span { color: #c1bee2; font-size: 9px; margin-top: 3px; }
.review-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.review-card { padding: 19px; border-radius: var(--radius); background: white; border: 1px solid var(--line); box-shadow: 0 8px 25px rgba(45,51,84,.045); }
.review-card-head { display: flex; justify-content: space-between; gap: 10px; }
.review-card h3 { margin: 0; font-size: 12px; }.review-card .meta { color: #9da5b4; font-size: 8px; margin-top: 5px; }
.review-card-body { margin: 16px 0; padding: 13px; border-radius: 12px; background: #f8f8fc; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; text-align: center; }
.review-card-body b, .review-card-body span { display: block; }.review-card-body b { font-size: 13px; }.review-card-body span { color: #9da4b2; font-size: 7px; margin-top: 3px; }
.review-card button { width: 100%; }
.review-empty { grid-column: 1/-1; padding: 60px; border: 1px dashed #dfe2eb; border-radius: var(--radius); color: #98a0af; text-align: center; background: rgba(255,255,255,.55); }

.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(23,25,46,.24); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: .24s; }
.drawer-backdrop.open, .modal-backdrop.open { opacity: 1; pointer-events: auto; }
.detail-drawer { position: fixed; z-index: 60; top: 0; right: 0; width: min(620px, 92vw); height: 100vh; background: #f7f8fb; box-shadow: -20px 0 50px rgba(25,29,55,.18); transform: translateX(102%); transition: transform .28s ease; display: flex; flex-direction: column; }
.detail-drawer.open { transform: none; }
.drawer-head { min-height: 90px; padding: 21px 24px; background: white; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 20px; }
.drawer-tabs { height: 48px; display: flex; gap: 5px; padding: 7px 20px; background: white; border-bottom: 1px solid var(--line); }
.drawer-tabs button { border: 0; border-radius: 8px; background: transparent; color: #818a9b; padding: 0 14px; font-size: 10px; font-weight: 700; }
.drawer-tabs button.active { background: var(--brand-soft); color: var(--brand); }
.drawer-body { flex: 1; overflow: auto; padding: 19px; }
.detail-card { padding: 17px; margin-bottom: 12px; border-radius: 14px; background: white; border: 1px solid var(--line); }
.detail-card h3 { margin: 0 0 13px; font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px 18px; }
.detail-field label, .detail-field span { display: block; }.detail-field label { color: #9ca4b3; font-size: 8px; }.detail-field span { margin-top: 4px; color: #3e4759; font-size: 10px; word-break: break-all; }
.file-list { display: grid; gap: 8px; }
.file-row { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 9px; align-items: center; padding: 10px 11px; border: 1px solid #eceef3; border-radius: 10px; }
.file-type { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #f1efff; color: var(--brand); font-size: 8px; font-weight: 800; }
.file-row strong, .file-row small { display: block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.file-row strong { font-size: 9px; }.file-row small { color: #9da4b2; font-size: 7px; margin-top: 3px; }
.file-row button { border: 0; background: transparent; color: var(--brand); font-size: 9px; }
.qa-hero { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.qa-score { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) var(--score), #edf0f4 0); position: relative; }
.qa-score.failed { background: conic-gradient(var(--red) var(--score), #edf0f4 0); }
.qa-score::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: white; }.qa-score b { z-index: 1; font-size: 21px; }
.qa-finding { margin-top: 8px; padding: 11px; border-radius: 10px; background: var(--red-soft); color: #8f4149; border-left: 3px solid var(--red); font-size: 9px; line-height: 1.6; }
.qa-finding.warn { background: var(--amber-soft); color: #8d6425; border-color: var(--amber); }
.qa-finding.success { background: var(--green-soft); color: #247352; border-color: var(--green); }
.qa-finding.info { background: var(--brand-soft); color: #5944a8; border-color: var(--brand); }
.review-form { display: grid; gap: 13px; }.review-form label { color: #697386; font-size: 9px; font-weight: 700; }
.review-form textarea, .review-form select, .review-form input { width: 100%; margin-top: 6px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: white; font-size: 10px; }
.review-form textarea { min-height: 82px; resize: vertical; }
.decision-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.decision-row button { min-height: 38px; border-radius: 10px; font-size: 9px; font-weight: 800; }
.accept-button { color: var(--green); background: var(--green-soft); border: 1px solid #cbeee1; }.rework-button { color: var(--amber); background: var(--amber-soft); border: 1px solid #f3dfbd; }.reject-button { color: var(--red); background: var(--red-soft); border: 1px solid #f3cfd2; }
.audio-player { width: 100%; height: 36px; margin-top: 8px; }
.loading-block { height: 180px; border-radius: 15px; background: linear-gradient(90deg,#eceef3 25%,#f7f8fa 37%,#eceef3 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.modal { position: fixed; z-index: 70; left: 50%; top: 50%; width: min(520px, 92vw); max-height: 90vh; overflow: auto; border-radius: 20px; background: white; box-shadow: 0 24px 70px rgba(26,29,55,.25); transform: translate(-50%,-46%) scale(.97); opacity: 0; pointer-events: none; transition: .22s; }
.modal.open { transform: translate(-50%,-50%) scale(1); opacity: 1; pointer-events: auto; }
.modal-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }.modal-head h2 { margin: 0; font-size: 18px; }
#modal-form { padding: 20px 22px 22px; }.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }.form-field { display: grid; gap: 6px; }.form-field.full { grid-column: 1/-1; }.form-field label { color: #697386; font-size: 9px; font-weight: 750; }.form-field input,.form-field textarea,.form-field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; outline: 0; font-size: 10px; color: var(--ink); background: #fbfbfd; }.form-field textarea { min-height: 76px; resize: vertical; }.form-field input:focus,.form-field textarea:focus,.form-field select:focus { border-color: #a99ff3; box-shadow: 0 0 0 3px #f0edff; background: white; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

body.login-open { overflow: hidden; }
.login-screen { position: fixed; z-index: 100; inset: 0; display: grid; grid-template-columns: 1.15fr .85fr; background: white; transition: opacity .25s, visibility .25s; }
.login-screen.hidden { opacity: 0; visibility: hidden; }
.login-visual { padding: 9vh 7vw; color: white; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; background:
  radial-gradient(circle at 24% 22%,rgba(105,222,215,.18),transparent 25%),
  radial-gradient(circle at 80% 76%,rgba(142,124,255,.25),transparent 35%),
  linear-gradient(135deg,#282263,#3e348d 58%,#5145a6); }
.login-visual::after { content:""; position:absolute; inset:0; opacity:.15; background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px);background-size:42px 42px; }
.login-visual > * { position: relative; z-index: 2; }.login-visual h1 { margin: 19px 0 15px; font-size: clamp(28px,3.2vw,48px); line-height: 1.34; letter-spacing: -1.7px; }.login-visual p { max-width: 560px; color: #bbb8df; line-height: 1.9; font-size: 12px; }
.login-rings { width: 360px; height: 360px; align-self: center; position: relative; display: grid; place-items: center; }.login-rings i { position: absolute; border-radius: 50%; border: 1px solid rgba(159,148,245,.23); }.login-rings i:nth-child(1) { width: 340px;height:340px; }.login-rings i:nth-child(2) { width:240px;height:240px;border-style:dashed;animation:spin 22s linear infinite; }.login-rings i:nth-child(3) { width:140px;height:140px;background:rgba(111,97,222,.22);box-shadow:inset 0 0 45px rgba(255,255,255,.08),0 0 80px rgba(77,224,215,.13); }.login-rings span { z-index:1;color:#6ce0d7;font-size:68px;text-shadow:0 0 35px rgba(95,225,216,.55); }
@keyframes spin { to { transform: rotate(360deg); } }
.login-card { width: min(410px,80%); align-self: center; justify-self: center; }.brand.dark { padding: 0 0 48px; }.brand.dark strong { color: var(--ink); }.brand.dark small { color: #999fb0; }
.login-copy h2 { margin: 0; font-size: 25px; }.login-copy p { margin: 8px 0 26px; color: var(--muted); font-size: 11px; }
#login-form { display: grid; gap: 16px; }#login-form label { color: #586174; font-size: 10px; font-weight: 750; }#login-form input { width: 100%; height: 44px; margin-top: 7px; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; outline: 0; color: var(--ink); background: #fafbfc; }#login-form input:focus { background:white;border-color:#aaa1ef;box-shadow:0 0 0 3px #efedff; }.password-field { position:relative; }.password-field button { position:absolute;right:8px;top:14px;border:0;background:transparent;color:#969eae; }.wide { width:100%;height:46px;margin-top:6px;display:flex;align-items:center;justify-content:space-between;padding:0 18px; }.login-hint { margin-top:18px;padding:11px;border-radius:10px;background:#f7f6fc;color:#8a92a3;font-size:9px;text-align:center; }.login-hint code { color:var(--brand); }

.toast-stack { position: fixed; z-index: 120; right: 22px; bottom: 22px; display: grid; gap: 9px; }.toast { min-width: 260px; max-width: 390px; padding: 13px 15px; border-radius: 12px; color: white; background: #282f40; box-shadow: 0 13px 32px rgba(24,28,48,.22); font-size: 10px; animation: toast-in .24s ease; }.toast.success { background:#167e62; }.toast.error { background:#b84752; }@keyframes toast-in { from { opacity:0;transform:translateY(10px); } }

@media (max-width: 1120px) {
  .sidebar { width: 82px; padding: 25px 13px; }.brand > div:last-child,.nav-item span,.nav-item b,.sidebar-note,.profile > div:nth-child(2),.profile button { display:none; }.brand { justify-content:center;padding-inline:0; }.nav-item { justify-content:center;padding:0; }.nav-item.active::before { left:-13px; }.profile { display:flex;justify-content:center;padding-inline:0; }.main { margin-left:82px;width:calc(100% - 82px); }.metric-grid { grid-template-columns:repeat(2,1fr); }.project-grid,.review-grid { grid-template-columns:repeat(2,1fr); }
}
@media (max-width: 820px) {
  .main { padding:0 18px 35px; }.topbar { height:auto;padding:24px 0;align-items:flex-start; }.top-actions .sync-state,.global-create-button { display:none; }.hero-strip { grid-template-columns:1fr;padding:28px; }.hero-orbit { display:none; }.dashboard-grid { grid-template-columns:1fr; }.span-2,.span-3 { grid-column:auto; }.metric-grid,.device-summary,.project-grid,.review-grid { grid-template-columns:1fr; }.login-screen { grid-template-columns:1fr; }.login-visual { display:none; }.login-card { width:min(410px,86%); }.view-toolbar { align-items:flex-start;flex-direction:column; }.search-box { width:190px; }
}
