: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(5,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; }
.hidden { display: none !important; }
.clickable-row, tr[data-open-device] { cursor: pointer; }
input[type="checkbox"] { accent-color: var(--brand); }

.filter-panel {
  margin-bottom: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 6px 20px rgba(45,51,84,.035);
}
.filter-panel > input, .filter-panel > select, .filter-panel > label,
.bulk-bar input, .bulk-bar select {
  min-height: 35px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 10px;
  outline: 0;
  color: #4f596c;
  background: #fafbfc;
  font-size: 9px;
}
.filter-panel > input:focus, .filter-panel > select:focus,
.bulk-bar input:focus, .bulk-bar select:focus { border-color: #aaa1ef; box-shadow: 0 0 0 3px #efedff; background: white; }
.filter-panel > label { display: inline-flex; align-items: center; gap: 6px; color: #8a93a4; }
.filter-panel > label input { border: 0; color: #4f596c; background: transparent; font-size: 9px; }
.fleet-toolbar .search-box { width: min(310px,100%); flex: 1 1 230px; }
.fleet-toolbar select { flex: 0 1 145px; }
.session-filters > input { flex: 1 1 210px; }
.session-filters select { flex: 0 1 145px; }
.bulk-bar {
  min-height: 50px;
  margin-bottom: 14px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  border: 1px solid #d9d4ff;
  border-radius: 13px;
  color: #6258a1;
  background: #f5f3ff;
  font-size: 10px;
}
.bulk-bar > b { min-width: 20px; color: var(--brand); font-size: 15px; }
.bulk-bar label { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; }
.bulk-bar .accept-button, .bulk-bar .rework-button, .bulk-bar .reject-button { min-height: 34px; padding: 0 11px; border-radius: 9px; font-size: 9px; font-weight: 800; }
.row-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.tag-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.mini-tag { display: inline-flex; max-width: 110px; padding: 3px 6px; border-radius: 8px; color: #6256b4; background: #f0edff; font-size: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.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-select { display: flex; align-items: center; gap: 6px; margin: -4px 0 11px; color: #929aaa; font-size: 8px; }
.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); }
.review-card.attention { border-color: #f1d4d7; box-shadow: 0 9px 28px rgba(170,62,76,.07); }
.review-card.sampling { border-color: #d7ece5; }
.review-priority { margin-left: auto; padding: 4px 7px; border-radius: 9px; color: var(--red); background: var(--red-soft); font-size: 7px; }
.review-card.sampling .review-priority { color: var(--green); background: var(--green-soft); }
.review-issue-summary { min-height: 58px; margin-top: 14px; padding: 11px; display: flex; align-items: center; gap: 10px; border-radius: 12px; color: #39735e; background: #f0faf6; border: 1px solid #d8eee6; }
.review-issue-summary > span { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--green); font-weight: 900; }
.review-issue-summary b,.review-issue-summary small { display: block; }.review-issue-summary b { font-size: 9px; }.review-issue-summary small { margin-top: 4px; color: #749184; font-size: 7px; }
.review-issue-summary.has-issue { color: #8f4149; background: var(--red-soft); border-color: #f2d4d7; }
.review-issue-summary.has-issue > span { background: var(--red); }.review-issue-summary.has-issue small { color: #a8787d; }
.attention-row { box-shadow: inset 3px 0 var(--red); }

.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; }
#device-drawer { width: min(820px, 94vw); }
.session-review-drawer { width: min(960px, 96vw); }
.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-head p { margin: 5px 0 0; color: #929aaa; font-size: 9px; }
.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-tabs button b { display: inline-grid; min-width: 17px; height: 17px; margin-left: 4px; padding: 0 4px; place-items: center; border-radius: 9px; color: #8b82c8; background: rgba(98,84,232,.08); font-size: 7px; }
.drawer-tabs button b:empty { display: none; }
.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-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.detail-card-heading h3 { margin: 0; }
.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); }
.qa-finding .status-badge { margin-left: 5px; }
.finding-code { float: right; margin-left: 8px; padding: 2px 5px; border-radius: 5px; color: #8b7180; background: rgba(255,255,255,.55); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 7px; }
.qa-finding em { font-style: normal; font-weight: 700; }
.compact-empty { padding: 24px; }
.dual-track-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.track-card { min-width: 0; padding: 13px; border: 1px solid #e8e7f4; border-radius: 12px; background: linear-gradient(145deg,#fbfaff,#f6f7fb); }
.track-card > div:first-child { display: flex; flex-direction: column; min-height: 36px; }
.track-card b { color: #343d51; font-size: 10px; }
.track-card small { margin-top: 4px; color: #939cac; font-size: 8px; }
.track-card > button { margin-top: 8px; }
.dialogue-list { display: grid; gap: 13px; }
.dialogue-turn { padding: 11px; border: 1px solid #eceef3; border-radius: 12px; background: #fbfbfd; }
.turn-label { margin-bottom: 8px; color: #9189c3; font-size: 8px; font-weight: 800; }
.dialogue-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.dialogue-side { min-width: 0; padding: 12px; border-radius: 10px; }
.dialogue-side.query { background: #edf8f6; border: 1px solid #d9efea; }
.dialogue-side.answer { background: #f1efff; border: 1px solid #e2defb; }
.dialogue-side label { color: #728092; font-size: 8px; font-weight: 800; }
.dialogue-side p { min-height: 40px; margin: 7px 0 8px; color: #394357; font-size: 10px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.wide-button { width: 100%; min-height: 42px; }
.device-detail-hero { min-height: 82px; margin-bottom: 12px; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; color: white; border-radius: 15px; background: linear-gradient(125deg,#342d79,#5f53be); box-shadow: 0 11px 28px rgba(53,44,127,.14); }
.device-detail-hero h3 { margin: 0; font-size: 16px; }.device-detail-hero p { margin: 5px 0 0; color: #c6c2eb; font-size: 9px; }
.device-hero-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: #73e3da; background: rgba(255,255,255,.1); font-size: 22px; }
.detail-stat-grid { margin-bottom: 12px; display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.detail-stat-grid > div { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: center; }
.detail-stat-grid b, .detail-stat-grid span { display: block; }.detail-stat-grid b { font-size: 17px; }.detail-stat-grid span { margin-top: 3px; color: #969eae; font-size: 8px; }
.detail-tags { margin-top: 14px; padding-top: 10px; border-top: 1px solid #eff1f5; }
.operator-note { margin: 11px 0 0; padding: 10px; border-radius: 9px; color: #667084; background: #f7f8fb; font-size: 9px; line-height: 1.6; white-space: pre-wrap; }
.json-preview { max-height: 250px; margin: 12px 0 0; padding: 11px; overflow: auto; border-radius: 9px; color: #566075; background: #f5f6f9; font: 8px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-all; }
details.detail-card summary { cursor: pointer; color: #3c4559; font-size: 11px; font-weight: 750; }
.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; }
.conversation-ops-hero { min-height: 112px; margin-bottom: 12px; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: white; border-radius: 17px; background: radial-gradient(circle at 83% 15%,rgba(103,225,216,.18),transparent 30%),linear-gradient(125deg,#30296e,#5147aa); box-shadow: 0 12px 30px rgba(48,41,110,.15); }
.conversation-ops-hero h3 { margin: 5px 0 6px; font-size: 22px; }.conversation-ops-hero p { margin: 0; color: #c2bee5; font-size: 9px; }
.conversation-ops-metrics { display: grid; grid-template-columns: repeat(3,minmax(84px,1fr)); gap: 8px; }
.conversation-ops-metrics > div { min-height: 63px; padding: 10px 12px; display: grid; place-items: center; align-content: center; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; background: rgba(255,255,255,.06); text-align: center; }
.conversation-ops-metrics b { font-size: 17px; }.conversation-ops-metrics span:not(.status-badge) { margin-top: 4px; color: #bcb8df; font-size: 7px; }.conversation-ops-metrics .status-badge { color: #95efcc; background: rgba(22,167,120,.17); }
.conversation-alert { margin-bottom: 12px; padding: 13px 15px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border: 1px solid #f0d1d4; border-radius: 13px; color: #88404a; background: linear-gradient(90deg,#fff0f1,#fff7f7); }
.conversation-alert.clear { border-color: #ceeadd; color: #286c53; background: linear-gradient(90deg,#eaf8f2,#f6fcf9); }
.conversation-alert-icon { width: 31px; height: 31px; border-radius: 10px; display: grid; place-items: center; color: white; background: var(--red); font-weight: 900; }
.conversation-alert.clear .conversation-alert-icon { background: var(--green); }.conversation-alert b { font-size: 10px; }.conversation-alert p { margin: 4px 0 0; color: #a6767c; font-size: 8px; }.conversation-alert.clear p { color: #729385; }
.turn-review-list { display: grid; gap: 12px; }
.turn-review-card { overflow: hidden; border: 1px solid #e4e7ef; border-radius: 15px; background: white; box-shadow: 0 6px 18px rgba(45,51,84,.035); }
.turn-review-card.attention { border-color: #efcdd1; box-shadow: 0 7px 22px rgba(176,69,82,.06); }
.turn-review-card > header { min-height: 61px; padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #eff1f5; background: #fbfbfd; }
.turn-review-card > header > div { display: flex; align-items: center; gap: 10px; }.turn-review-card h3 { margin: 0; font-size: 12px; }.turn-review-card header p { margin: 4px 0 0; color: #949cab; font-size: 8px; }
.turn-index { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; color: var(--brand); background: var(--brand-soft); font-size: 11px; font-weight: 900; }
.turn-state { min-width: 57px; padding: 5px 8px; border-radius: 10px; text-align: center; font-size: 8px; font-weight: 800; }.turn-state.pass { color: var(--green); background: var(--green-soft); }.turn-state.warn { color: var(--red); background: var(--red-soft); }
.turn-review-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.turn-side { min-width: 0; padding: 17px; }.turn-side + .turn-side { border-left: 1px solid #eceef3; }.turn-side.human { background: linear-gradient(145deg,#fbfffd,#f3fbf8); }.turn-side.doubao { background: linear-gradient(145deg,#fdfcff,#f7f5ff); }
.turn-side-label { display: flex; align-items: center; gap: 7px; }.turn-side-label span { padding: 4px 7px; border-radius: 8px; color: #2c7158; background: #dbf2e9; font-size: 8px; font-weight: 800; }.turn-side.doubao .turn-side-label span { color: #5b4ab2; background: #e7e2ff; }.turn-side-label b { color: #8c95a5; font-size: 8px; letter-spacing: .8px; }
.turn-side > p { min-height: 54px; margin: 12px 0; color: #303a4f; font-size: 12px; line-height: 1.72; white-space: pre-wrap; word-break: break-word; }
.turn-audio { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; }.turn-audio > button { min-width: 76px; height: 32px; border: 1px solid #dcd8fa; border-radius: 9px; color: var(--brand); background: white; font-size: 9px; font-weight: 800; }.turn-audio > button:hover { background: var(--brand-soft); }.turn-audio > small { color: #9aa2b1; font-size: 8px; }.turn-audio > div { grid-column: 1/-1; }
.turn-missing { display: inline-flex; padding: 7px 9px; border-radius: 8px; color: var(--red); background: var(--red-soft); font-size: 8px; }
.conversation-empty { padding: 38px; }.conversation-empty b { color: #5c6577; font-size: 12px; }.conversation-empty p { margin: 8px auto 0; max-width: 500px; font-size: 9px; line-height: 1.7; }
.raw-track-fold { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: white; }.raw-track-fold summary { cursor: pointer; color: #4b5568; font-size: 10px; font-weight: 800; }.raw-track-fold summary span { margin-left: 6px; color: #9da4b2; font-size: 8px; font-weight: 500; }.raw-track-fold[open] summary { margin-bottom: 13px; }
.review-decision-card { margin-top: 12px; padding: 17px; border: 1px solid #dcd8fa; border-radius: 15px; background: linear-gradient(145deg,#fff,#faf9ff); box-shadow: 0 7px 22px rgba(73,62,151,.045); }
.review-decision-card.completed { border-color: #d2eadf; background: linear-gradient(145deg,#fff,#f3fbf7); }.review-decision-card.waiting { border-color: #e4e7ed; background: #fafbfc; }
.decision-heading { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; }.decision-heading > span { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--brand); font-weight: 900; }.review-decision-card.completed .decision-heading > span { background: var(--green); }.review-decision-card.waiting .decision-heading > span { color: #7d8696; background: #e8eaf0; }.decision-heading h3 { margin: 0; font-size: 12px; }.decision-heading p { margin: 4px 0 0; color: #8f97a7; font-size: 8px; }
.review-form.compact { margin-top: 15px; }.review-input-grid { display: grid; grid-template-columns: minmax(170px,.7fr) minmax(280px,1.3fr); gap: 11px; }.review-form.compact textarea { min-height: 65px; }.review-override { padding: 10px 11px; display: flex; align-items: flex-start; gap: 7px; border-radius: 10px; color: #8b5e20 !important; background: var(--amber-soft); }.review-override input { width: auto; margin: 1px 0 0; }.review-history { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }.review-history summary { cursor: pointer; color: #70798b; font-size: 9px; font-weight: 800; }
.conversation-footer-actions { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }.conversation-footer-actions .secondary-button { flex: 1; }
.technical-file-intro { margin-bottom: 12px; padding: 16px 17px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid #ddd9fa; border-radius: 14px; background: linear-gradient(145deg,#fff,#f8f7ff); }.technical-file-intro > div { display: flex; align-items: center; gap: 11px; }.technical-file-intro > div > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: var(--brand); background: var(--brand-soft); font-size: 16px; }.technical-file-intro h3 { margin: 0; font-size: 11px; }.technical-file-intro p { margin: 5px 0 0; color: #8c95a5; font-size: 8px; }
.artifact-groups { display: grid; gap: 10px; }.artifact-group { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: white; }.artifact-group > summary { padding: 14px 15px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }.artifact-group > summary::-webkit-details-marker { display: none; }.artifact-group > summary > div { display: flex; align-items: center; gap: 10px; }.artifact-group > summary > span { color: #929aaa; font-size: 8px; }.artifact-group b,.artifact-group small { display: block; }.artifact-group b { color: #3e475a; font-size: 10px; }.artifact-group small { margin-top: 4px; color: #9ca4b2; font-size: 8px; }.artifact-group-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--brand); background: var(--brand-soft); font-size: 11px; font-weight: 900; }.artifact-group[open] > summary { border-bottom: 1px solid #eff1f5; }.artifact-group .file-list { padding: 11px; }
.overview-stat-grid { margin-bottom: 12px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }.overview-stat-grid > div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: center; }.overview-stat-grid b,.overview-stat-grid span { display: block; }.overview-stat-grid b { color: #354054; font-size: 16px; }.overview-stat-grid span { margin-top: 4px; color: #969eae; font-size: 8px; }.details-inner { margin-top: 14px; }
.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; }.dual-track-grid,.dialogue-pair,.detail-stat-grid,.turn-review-pair,.review-input-grid { grid-template-columns:1fr; }.filter-panel > *, .fleet-toolbar .search-box { flex:1 1 100%;width:100%; }.bulk-bar { align-items:stretch; }.bulk-bar > button,.bulk-bar > input,.bulk-bar > select { width:100%; }.detail-grid { grid-template-columns:1fr; }
  .session-review-drawer { width:100vw;max-width:none; }.drawer-tabs { overflow-x:auto; }.drawer-tabs button { flex:0 0 auto; }.conversation-ops-hero { align-items:stretch;flex-direction:column; }.conversation-ops-metrics { grid-template-columns:repeat(3,1fr); }.conversation-alert { grid-template-columns:auto 1fr; }.conversation-alert .text-button { grid-column:2;justify-self:start;padding:0; }.turn-side + .turn-side { border-left:0;border-top:1px solid #eceef3; }.decision-row { grid-template-columns:1fr; }.technical-file-intro { align-items:stretch;flex-direction:column; }.technical-file-intro .secondary-button { width:100%; }.overview-stat-grid { grid-template-columns:repeat(2,1fr); }.conversation-footer-actions { align-items:stretch;flex-direction:column; }.conversation-footer-actions > * { width:100%; }.artifact-group > summary { align-items:flex-start; }.artifact-group > summary > span { padding-top:8px;white-space:nowrap; }
}
