:root {
  color-scheme: light;
  --canvas: #f5f6f2;
  --surface: #ffffff;
  --surface-soft: #f8faf8;
  --line: #e6e9e5;
  --line-strong: #d6dcd6;
  --ink: #14231f;
  --muted: #72807b;
  --muted-strong: #52625c;
  --teal: #0f766e;
  --teal-dark: #0c5c56;
  --teal-soft: #e4f3ef;
  --orange: #e4933e;
  --orange-soft: #fff1df;
  --violet: #7666bd;
  --violet-soft: #eeeafd;
  --blue: #4777b5;
  --blue-soft: #eaf2fb;
  --red: #bd6057;
  --red-soft: #f9e9e8;
  --shadow: 0 16px 44px rgba(20, 35, 31, 0.07);
  --radius: 10px;
  --radius-small: 7px;
}

* {
  box-sizing: border-box;
}

/* 各组件自带 display 样式会压过 hidden 属性的浏览器默认规则，
   这里用最高优先级统一兜底：带 hidden 的元素一律不显示。 */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 1180px;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body:has(.login-gate:not([hidden])) {
  min-width: 0;
  background: #eef5f2;
}

.login-gate {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-gate[hidden] {
  display: none;
}

.login-gate__card {
  display: flex;
  width: min(420px, 100%);
  flex-direction: column;
  align-items: center;
  padding: 34px 36px 30px;
  border: 1px solid #d5e7df;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(19, 67, 60, 0.12);
  text-align: center;
}

.login-gate__brand {
  align-self: flex-start;
  margin-bottom: 34px;
}

.login-gate__icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 17px;
  border-radius: 16px;
  background: #dff2eb;
  color: var(--teal-dark);
  font-size: 24px;
  font-weight: 800;
}

.login-gate h1 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
}

.login-gate p {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.login-gate__button {
  width: 100%;
  justify-content: center;
  min-height: 44px;
}

.login-gate small {
  margin-top: 14px;
  color: #8a9c95;
  font-size: 11px;
  line-height: 1.6;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.2);
  outline-offset: 2px;
}

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

.app-shell[hidden] {
  display: none;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: 248px;
  flex-direction: column;
  padding: 26px 16px 18px;
  border-right: 1px solid var(--line);
  background: #f8faf7;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 28px;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.brand span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.nav-group {
  display: grid;
  gap: 4px;
}

.nav-group--secondary {
  margin-top: 28px;
}

.nav-label {
  margin: 0 10px 8px;
  color: #9aa39f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-strong);
  text-align: left;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

/* .nav-item 自带 display:flex，会压过 hidden 属性的浏览器默认规则，
   必须显式声明，否则被隐藏的导航项仍然可见。 */
.nav-item[hidden] {
  display: none;
}

.nav-item:hover {
  background: #edf1ee;
  color: var(--ink);
  transform: translateX(1px);
}

.nav-item.is-active {
  background: #e1efeb;
  color: var(--teal-dark);
  font-weight: 700;
}

.nav-icon {
  display: grid;
  width: 20px;
  place-items: center;
  color: currentColor;
  font-size: 16px;
  line-height: 1;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-foot {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  color: #a3aba7;
  font-size: 10px;
}

.acceptance-list {
  display: grid;
  gap: 7px;
}

.acceptance-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f0;
  cursor: pointer;
}

.acceptance-item:last-child {
  border-bottom: 0;
}

.acceptance-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.acceptance-box {
  display: grid;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #cbd7d1;
  border-radius: 4px;
  color: transparent;
  font-size: 10px;
  font-weight: 800;
}

.acceptance-item input:checked + .acceptance-box {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.acceptance-copy {
  color: var(--muted-strong);
  font-size: 10px;
  line-height: 1.45;
}

.acceptance-item.is-complete .acceptance-copy {
  color: #98a49f;
  text-decoration: line-through;
}

.brand-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.nav-item--active {
  background: #e1efeb;
  color: var(--teal-dark);
  font-weight: 700;
}

.sidebar-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 0 10px;
}

.sidebar-auth-actions {
  display: flex;
  gap: 6px;
}

.sidebar-auth-actions .button {
  width: 100%;
  justify-content: center;
}

.workspace-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-user strong,
.workspace-user span {
  display: block;
}

.workspace-user strong {
  color: var(--muted-strong);
  font-size: 11px;
}

.workspace-user span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.check-card input,
.acceptance-item input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--teal);
}

.acceptance-panel {
  margin-top: 17px;
}

.acceptance-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}

.acceptance-item {
  position: relative;
  display: grid;
  grid-template-columns: 15px 20px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  min-height: 76px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  cursor: pointer;
}

.acceptance-item.is-checked {
  border-color: #a9d4c7;
  background: #f0f8f4;
}

.acceptance-check {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
}

.acceptance-item.is-checked .acceptance-check {
  border-color: var(--teal);
  background: var(--teal);
}

.acceptance-item strong,
.acceptance-item small {
  display: block;
}

.acceptance-item strong {
  color: var(--muted-strong);
  font-size: 10px;
}

.acceptance-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.status-dot {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: #52a884;
  box-shadow: 0 0 0 3px rgba(82, 168, 132, 0.13);
}

.main-content {
  width: calc(100% - 248px);
  min-height: 100vh;
  margin-left: 248px;
}

.topbar {
  display: flex;
  height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 247, 0.84);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 600;
}

.breadcrumb-separator {
  color: #b5beb9;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.auth-status {
  position: relative;
  display: flex;
  min-width: 42px;
  align-items: center;
  gap: 7px;
  padding: 4px 5px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.auth-status[data-authenticated="true"] {
  border-color: #c7e3d7;
  background: #f4fbf7;
}

.auth-status__avatar {
  flex: 0 0 auto;
  overflow: hidden;
  background: #d9eee8;
  color: var(--teal-dark);
}

.auth-status__avatar img,
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-status__copy {
  min-width: 0;
  flex: 0 1 auto;
}

.auth-status__copy strong,
.auth-status__copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-status__copy strong {
  color: var(--muted-strong);
  font-size: 11px;
}

.auth-status__copy span {
  display: none;
}

.auth-status__trigger {
  display: block;
  max-width: 122px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.auth-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 128px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(20, 54, 49, 0.15);
}

.auth-menu[hidden] {
  display: none;
}

.auth-menu button {
  padding: 9px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-strong);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.auth-menu button:hover {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.icon-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 17px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.icon-button:hover {
  border-color: #c3d1ca;
  background: #f8fbf9;
  color: var(--teal-dark);
}

.icon-button--small {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.profile-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding: 4px 9px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.avatar {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #f7d6ad;
  color: #875a2e;
  font-size: 11px;
  font-weight: 700;
}

.profile-name {
  color: var(--muted-strong);
  font-size: 11px;
}

.profile-chevron {
  color: #9ca6a2;
  font-size: 13px;
}

.page-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 35px 40px 52px;
}

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(228, 147, 62, 0.12);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 660px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.13;
}

.intro-copy {
  max-width: 685px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 1px;
}

.button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 7px 15px rgba(15, 118, 110, 0.17);
}

.button--primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 9px 20px rgba(15, 118, 110, 0.2);
}

.button--secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted-strong);
}

.button--secondary:hover {
  border-color: #c3d1ca;
  color: var(--teal-dark);
}

.button--quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted-strong);
}

.button--quiet:hover {
  background: #e9eeeb;
}

.button--large {
  min-height: 43px;
  padding: 0 17px;
}

.button--full {
  width: 100%;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
}

.text-button:hover {
  color: var(--teal-dark);
}

.text-button--full {
  width: 100%;
  justify-content: center;
  margin-top: 15px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(360px, 0.78fr);
  gap: 17px;
  margin-bottom: 17px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(275px, 0.65fr) minmax(275px, 0.65fr);
  gap: 17px;
}

.panel {
  min-width: 0;
  padding: 21px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.panel-kicker {
  margin: 0 0 5px;
  color: #93a19b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.panel-status {
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 700;
}

.panel-description {
  max-width: 600px;
  margin: 11px 0 21px;
  color: var(--muted);
  font-size: 12px;
}

.panel-description.compact {
  margin: 12px 0 14px;
  font-size: 11px;
}

.task-form {
  display: grid;
  gap: 15px;
}

.form-row {
  display: grid;
  gap: 11px;
}

.form-row--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
}

.field small {
  color: #9aa6a1;
  font-size: 10px;
  font-weight: 400;
}

.field input,
.field select {
  width: 100%;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: #fbfcfb;
  color: var(--ink);
  font-size: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:hover,
.field select:hover {
  border-color: #c9d3ce;
}

.field input:focus,
.field select:focus {
  border-color: #76b7ab;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

.dropzone {
  position: relative;
  display: flex;
  min-height: 65px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px dashed #c6d3cc;
  border-radius: 7px;
  background: #fbfdfc;
  transition: border-color 160ms ease, background 160ms ease;
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: var(--teal);
  background: #f0faf7;
}

.dropzone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.dropzone-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 17px;
  font-weight: 700;
}

.dropzone-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.dropzone-copy strong,
.dropzone-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone-copy strong {
  color: var(--muted-strong);
  font-size: 11px;
}

.dropzone-copy span {
  color: #99a6a0;
  font-size: 10px;
}

.dropzone-action {
  margin-left: auto;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
}

.form-options {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  padding-top: 1px;
}

.check-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 10px;
  cursor: pointer;
}

.check-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fake-checkbox {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid #c4d2cb;
  border-radius: 4px;
  background: #fff;
  color: transparent;
  font-size: 10px;
  font-weight: 700;
}

.check-option input:checked + .fake-checkbox {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.form-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #98a49f;
  font-size: 10px;
}

.hint-icon {
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1px solid #b5c1bb;
  border-radius: 50%;
  color: #7e8c86;
  font-size: 9px;
  font-weight: 700;
}

.chart-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 17px;
}

.chart-summary span,
.chart-summary strong {
  display: block;
}

.chart-summary span {
  color: var(--muted);
  font-size: 10px;
}

.chart-summary strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.mini-chart {
  position: relative;
  height: 132px;
  margin: 5px -4px 4px;
  padding-bottom: 22px;
}

.mini-chart svg {
  position: absolute;
  inset: 3px 2px 20px;
  width: calc(100% - 4px);
  height: calc(100% - 23px);
  overflow: visible;
}

.chart-gridline {
  position: absolute;
  right: 4px;
  left: 4px;
  border-top: 1px solid #eef1ee;
}

.chart-gridline--one {
  top: 25px;
}

.chart-gridline--two {
  top: 57px;
}

.chart-gridline--three {
  top: 89px;
}

.chart-area {
  fill: url(#chartFill);
}

.chart-line {
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-width: 2.5;
}

.chart-point {
  fill: #fff;
  stroke: var(--orange);
  stroke-width: 3;
}

.chart-axis {
  position: absolute;
  right: 2px;
  bottom: 0;
  left: 2px;
  display: flex;
  justify-content: space-between;
  color: #a4aeaa;
  font-size: 9px;
}

.window-list {
  display: grid;
  gap: 8px;
  margin: 2px 0 15px;
}

.window-row {
  display: grid;
  grid-template-columns: 73px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid #eef1ee;
  border-radius: 6px;
  background: #fbfcfb;
}

.window-row.is-selected {
  border-color: #b8ded4;
  background: #f3fbf8;
}

.window-time {
  color: var(--muted-strong);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.window-details {
  min-width: 0;
}

.window-product,
.window-data {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-product {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.window-data {
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
}

.window-score {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.score-value {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
}

.score-bar {
  width: 41px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: #f0e5d7;
}

.score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
}

.window-use {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
}

.window-use:hover {
  color: var(--teal-dark);
}

.panel-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.last-updated {
  color: #9ba6a1;
  font-size: 10px;
}

.tasks-panel {
  min-height: 330px;
}

.task-table-wrap {
  margin-top: 17px;
  overflow-x: auto;
}

.task-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.task-table th {
  padding: 0 10px 9px;
  border-bottom: 1px solid var(--line);
  color: #9ba7a2;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
}

.task-table th:first-child,
.task-table td:first-child {
  padding-left: 0;
  width: 38%;
}

.task-table th:last-child,
.task-table td:last-child {
  width: 35px;
  padding-right: 0;
  text-align: right;
}

.task-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #f0f2f0;
  color: var(--muted-strong);
  font-size: 11px;
  vertical-align: middle;
}

.task-table tbody tr {
  cursor: pointer;
  transition: background 140ms ease;
}

.task-table tbody tr:hover {
  background: #fbfcfb;
}

.task-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.task-thumbnail {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 5px;
  background: #e8f2ef;
  color: var(--teal);
  font-size: 14px;
}

.task-name-copy {
  min-width: 0;
}

.task-name-copy strong,
.task-name-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-name-copy strong {
  color: var(--ink);
  font-size: 11px;
}

.task-name-copy span {
  margin-top: 2px;
  color: #9aa6a1;
  font-size: 9px;
}

.task-window {
  font-variant-numeric: tabular-nums;
}

.duration {
  color: var(--muted-strong);
  font-variant-numeric: tabular-nums;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-pill--pending {
  background: var(--orange-soft);
  color: #c27827;
}

.status-pill--processing {
  background: var(--violet-soft);
  color: var(--violet);
}

.status-pill--passed {
  background: var(--teal-soft);
  color: var(--teal);
}

.status-pill--mounted {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-pill--muted {
  background: #f0f2f0;
  color: #77847e;
}

.row-action {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9ca7a2;
  font-size: 16px;
}

.row-action:hover {
  background: #edf5f2;
  color: var(--teal);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 48px 20px;
  color: var(--muted);
  text-align: center;
}

.empty-state--hidden {
  display: none;
}

.empty-state strong {
  color: var(--muted-strong);
  font-size: 12px;
}

.empty-state span:last-child {
  font-size: 10px;
}

.empty-icon {
  display: grid;
  width: 33px;
  height: 33px;
  margin-bottom: 2px;
  place-items: center;
  border-radius: 9px;
  background: var(--violet-soft);
  color: var(--violet);
}

.progress-label {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 6px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 6px;
  background: #e7efec;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 250ms ease;
}

.materials-list {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}

.material-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #f0f2f0;
}

.material-row:last-child {
  border-bottom: 0;
}

.material-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: #f1f4f2;
  color: #7f9188;
  font-size: 14px;
}

.material-copy {
  min-width: 0;
}

.material-copy strong,
.material-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.material-copy strong {
  color: var(--muted-strong);
  font-size: 10px;
}

.material-copy span {
  margin-top: 2px;
  color: #a0aba6;
  font-size: 9px;
}

.material-status {
  color: var(--teal);
  font-size: 9px;
  font-weight: 700;
}

.material-tip {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 13px;
  padding: 9px;
  border-radius: 6px;
  background: #fbf7ed;
  color: #987545;
  font-size: 10px;
  line-height: 1.45;
}

.tip-icon {
  color: var(--orange);
  font-size: 13px;
}

.toast-stack {
  position: fixed;
  right: 27px;
  bottom: 25px;
  z-index: 80;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 54px));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--muted-strong);
  font-size: 11px;
  animation: toast-in 200ms ease-out;
}

.toast.is-success {
  border-color: #c9e4da;
}

.toast.is-warning {
  border-color: #f0d9b7;
}

.toast-icon {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.toast.is-warning .toast-icon {
  background: var(--orange-soft);
  color: var(--orange);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.task-dialog {
  width: min(980px, calc(100vw - 50px));
  max-width: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 25px 90px rgba(20, 35, 31, 0.2);
}

.task-dialog::backdrop {
  background: rgba(21, 34, 30, 0.44);
  backdrop-filter: blur(2px);
}

.dialog-shell {
  display: grid;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 21px 24px 17px;
  border-bottom: 1px solid var(--line);
}

.dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  min-height: 490px;
}

.video-preview {
  position: relative;
  display: grid;
  min-height: 490px;
  place-items: center;
  overflow: hidden;
  background: #16221f;
}

.video-preview video {
  width: 100%;
  height: 100%;
  max-height: 490px;
  object-fit: contain;
}

.video-placeholder {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #a9c0b8;
  text-align: center;
}

.video-placeholder strong {
  color: #d7e6df;
  font-size: 13px;
}

.video-placeholder span:last-child {
  color: #7e9990;
  font-size: 10px;
}

.video-placeholder-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #3b5b52;
  border-radius: 50%;
  color: #e9b469;
  font-size: 18px;
}

.preview-meta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  justify-content: space-between;
  color: #d2e2dc;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.dialog-details {
  display: flex;
  flex-direction: column;
  padding: 25px 25px 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-item span,
.detail-item strong {
  display: block;
}

.detail-item span {
  color: var(--muted);
  font-size: 10px;
}

.detail-item strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.detail-item strong small {
  color: #a1aca7;
  font-size: 9px;
  font-weight: 400;
}

.dialog-section {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.dialog-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
}

.ai-badge {
  padding: 4px 6px;
  border-radius: 4px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 9px;
}

.summary-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 10px;
}

.summary-list li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.summary-check {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 4px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
}

.dialog-next-step {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.dialog-actions .button {
  flex: 1 1 auto;
}

@media (max-width: 1320px) {
  body {
    min-width: 1020px;
  }

  .page-content {
    padding-right: 28px;
    padding-left: 28px;
  }

  .topbar {
    padding-right: 28px;
    padding-left: 28px;
  }

  .workspace-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(335px, 0.75fr);
  }

  .bottom-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.75fr) minmax(260px, 0.75fr);
  }

}

@media (max-width: 1080px) {
  body {
    min-width: 0;
  }

  .main-content {
    width: calc(100% - 210px);
    margin-left: 210px;
  }

  .page-content {
    padding: 28px 22px 44px;
  }

  .topbar {
    padding: 0 22px;
  }

  .workspace-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tasks-panel {
    grid-column: 1 / -1;
  }

  .sidebar {
      width: 210px;
    }
}

@media (max-width: 760px) {
  body {
    min-width: 0;
  }

  .main-content {
    width: calc(100% - 68px);
    margin-left: 0;
  }

  .topbar {
    padding: 0 16px;
  }

  .profile-name,
  .profile-chevron {
    display: none;
  }

  .profile-chip {
    padding-right: 4px;
  }

  .page-content {
    padding: 24px 16px 36px;
  }

  .page-intro {
    display: block;
  }

  .intro-actions {
    margin-top: 17px;
  }

  .form-row--three {
    grid-template-columns: 1fr;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .tasks-panel {
    grid-column: auto;
  }

  .dialog-body {
    grid-template-columns: 1fr;
  }

  .video-preview {
    min-height: 280px;
  }

  .dialog-details {
    padding: 20px;
  }

  .sidebar {
      position: static;
      width: 68px;
      padding: 20px 9px 14px;
    }

  .brand {
      justify-content: center;
      padding: 0 0 24px;
    }

  .brand > div:last-child,
    .nav-label,
    .nav-item > span:not(.nav-icon),
    .sidebar-foot {
      display: none;
    }

  .nav-item {
      justify-content: center;
      padding: 0;
    }

  .nav-group--secondary {
      margin-top: 20px;
    }

  .recording-option-grid,
    .field-row,
    .acceptance-grid {
      grid-template-columns: 1fr;
    }

  .workspace-user > div:last-child {
      display: none;
    }

  .sidebar-footer {
      justify-items: center;
      padding: 0;
    }
}

/* Real capture workspace */
body {
  min-width: 0;
}

.status-dot--live {
  margin-left: 0;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(228, 147, 62, 0.14);
}

.main-content {
  padding: 0 40px 44px;
}

.topbar {
  min-height: 96px;
  height: auto;
  margin: 0 -40px 22px;
  padding: 20px 40px;
  align-items: flex-start;
}

.topbar h1 {
  margin: 0 0 5px;
  font-size: clamp(26px, 3vw, 34px);
}

.topbar-subtitle {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.eyebrow {
  margin-bottom: 5px;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.date-chip__icon {
  color: var(--teal);
  font-size: 15px;
}

.button--ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted-strong);
}

.button--ghost:hover {
  border-color: #c3d1ca;
  color: var(--teal-dark);
}

.button--small {
  min-height: 32px;
  padding: 0 11px;
  font-size: 11px;
}

.button--danger {
  border-color: #ecc7c4;
  background: var(--red-soft);
  color: #9f4d46;
}

.button--danger:hover {
  border-color: #dca19c;
  background: #f5dedd;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.panel-count {
  min-width: 48px;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.section-kicker {
  margin-bottom: 5px;
  color: #93a19b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.panel-heading p {
  max-width: 620px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.recording-panel {
  margin-bottom: 17px;
  padding: 22px;
}

.compass-panel {
  overflow: hidden;
  border-color: rgba(52, 89, 173, 0.22);
  background:
    radial-gradient(circle at 86% 6%, rgba(74, 109, 255, 0.13), transparent 30%),
    var(--surface);
}

.compass-heading {
  align-items: flex-start;
}

.source-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(52, 89, 173, 0.2);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--blue);
  background: rgba(238, 243, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
}

.compass-source-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 0 24px 20px;
}

.compass-url-field {
  margin: 0;
}

.compass-source-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-bottom: 1px;
}

.compass-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 249, 255, 0.68);
}

.compass-steps > div {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 10px;
  align-items: center;
}

.compass-steps span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.compass-steps strong {
  color: var(--ink);
  font-size: 13px;
}

.compass-steps small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.compass-warning {
  margin: 16px 24px 22px;
  padding: 12px 14px;
  border: 1px solid rgba(214, 143, 31, 0.24);
  border-radius: 12px;
  color: #7b5818;
  background: #fff9ec;
  font-size: 12px;
  line-height: 1.55;
}

.compass-warning strong {
  color: #65440a;
}

.compass-data-connection {
  margin: 0 24px 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(249, 251, 255, 0.82);
}

.compass-data-connection__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compass-data-connection__heading > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.compass-data-connection__eyebrow {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.compass-data-connection__heading strong {
  color: var(--ink);
  font-size: 14px;
}

.compass-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.compass-metric-card {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.compass-metric-card span,
.compass-metric-card strong {
  display: block;
}

.compass-metric-card span {
  color: var(--muted);
  font-size: 10px;
}

.compass-metric-card strong {
  overflow: hidden;
  margin-top: 5px;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compass-live-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 9px;
}

.compass-live-kpi {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--blue) 20%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--blue) 5%, var(--surface));
}

.compass-live-kpi span,
.compass-live-kpi label {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.compass-live-kpi strong {
  display: block;
  margin-top: 5px;
  color: var(--blue);
  font-size: 17px;
}

.compass-live-kpi--account strong {
  font-size: 12px;
  line-height: 1.35;
}

.compass-live-kpi select {
  width: 100%;
  min-width: 0;
  margin-top: 5px;
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 11px;
}

.compass-data-connection__note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.live-trend-card { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--surface-soft); }

.live-trend-card__heading { display: flex; justify-content: space-between; color: var(--muted-strong); }

.live-trend-card__heading span { color: var(--muted); font-size: 12px; }

.live-trend-chart { width: 100%; height: 260px; margin-top: 8px; }

.module-page {
  min-height: 420px;
  padding: 22px;
}

.module-card-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.module-card,
.settings-card {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.module-card__icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--teal-soft);
  font-weight: 800;
}

.module-card strong,
.settings-card strong {
  color: var(--ink);
  font-size: 14px;
}

.module-card p,
.module-empty-layout p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.module-card .button {
  margin-top: auto;
}

.module-card__status,
.settings-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.module-callout {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted-strong);
  background: var(--blue-soft);
  font-size: 12px;
  line-height: 1.55;
}

.module-callout--compact {
  margin-top: 14px;
}

.module-empty-layout {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  margin-top: 20px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
}

.module-empty-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 22px;
}

.module-empty-layout strong {
  color: var(--ink);
  font-size: 15px;
}

.module-actions {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.settings-card {
  min-height: 132px;
}

.settings-card--auth {
  border-color: #c7e3d7;
  background: #f4fbf7;
}

.settings-card--auth[data-authenticated="true"] {
  border-color: #a9d7c2;
}

.settings-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.settings-nickname-field {
  display: grid;
  width: 100%;
  gap: 5px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.settings-nickname-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.settings-card--auth {
  border-color: #c7e3d7;
  background: #f4fbf7;
}

.settings-card--auth[data-authenticated="true"] {
  border-color: #a9d7c2;
}

.settings-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.settings-card__label {
  color: var(--muted);
  font-size: 11px;
}

.settings-pending {
  color: #a96b25 !important;
}

.window-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.window-rules span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: var(--surface-soft);
  font-size: 11px;
}

.workspace-grid[data-active-page="data"],
.workspace-grid[data-active-page="tasks"] {
  grid-template-columns: 1fr;
}

.recording-heading {
  align-items: center;
  margin-bottom: 18px;
}

.recording-limit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid #f0d6b3;
  border-radius: 6px;
  background: var(--orange-soft);
  color: #96612c;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.recording-limit__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.recording-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(390px, 0.95fr);
  gap: 20px;
  align-items: stretch;
}

.recording-preview-wrap {
  position: relative;
  min-height: 286px;
  overflow: hidden;
  border: 1px solid #203d3b;
  border-radius: 8px;
  background: #122421;
}

.recording-preview {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 286px;
  object-fit: contain;
  background: #122421;
}

.recording-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 7px;
  padding: 20px;
  color: #d6e4df;
  text-align: center;
}

.recording-placeholder[hidden],
.recording-preview[hidden] {
  display: none;
}

.recording-placeholder__icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto 4px;
  place-items: center;
  border: 1px solid rgba(214, 228, 223, 0.24);
  border-radius: 10px;
  color: #87c9b9;
  font-size: 21px;
}

.recording-placeholder strong {
  font-size: 13px;
}

.recording-placeholder span {
  color: #91aaa3;
  font-size: 10px;
}

.recording-preview-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 5px;
  background: rgba(18, 36, 33, 0.76);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.capture-region-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: crosshair;
  background: rgba(8, 18, 17, 0.44);
  touch-action: none;
}

.capture-region-overlay[hidden] {
  display: none;
}

.capture-region-box {
  position: absolute;
  min-width: 2px;
  min-height: 2px;
  border: 2px solid #fff;
  border-radius: 4px;
  background: rgba(77, 160, 143, 0.16);
  box-shadow: 0 0 0 9999px rgba(8, 18, 17, 0.34);
}

.capture-region-label {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 8px;
  border-radius: 5px;
  color: #fff;
  background: rgba(8, 18, 17, 0.72);
  font-size: 10px;
  pointer-events: none;
}

.recording-controls {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
}

.recording-controls .field > label,
.task-form .field > label {
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
}

.recording-controls input,
.recording-controls select,
.task-form input,
.task-form select {
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fcfdfc;
  color: var(--ink);
  font-size: 12px;
}

.recording-controls input::placeholder,
.task-form input::placeholder {
  color: #a4afaa;
}

.recording-controls small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.recording-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 15px;
}

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 60px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  cursor: pointer;
}

.check-card:has(input:checked) {
  border-color: #a9d4c7;
  background: #f0f8f4;
}

.check-card strong,
.check-card small {
  display: block;
}

.check-card strong {
  color: var(--ink);
  font-size: 11px;
}

.check-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.recording-controls .field-row {
  align-items: end;
  margin-top: 15px;
}

.capture-capacity {
  display: grid;
  align-content: center;
  min-height: 62px;
  padding: 8px 10px;
  border-left: 2px solid var(--teal);
  background: var(--surface-soft);
}

.capture-capacity__label,
.capture-capacity small {
  color: var(--muted);
  font-size: 9px;
}

.capture-capacity strong {
  margin: 1px 0;
  color: var(--teal-dark);
  font-size: 12px;
}

.recording-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 17px;
}

.support-note {
  margin-top: 13px;
  padding: 9px 10px;
  border-radius: 6px;
  background: #f7f8f6;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.support-note.is-warning {
  background: var(--orange-soft);
  color: #8e5e2d;
}

.recording-status-panel {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.recording-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recording-status-main {
  display: flex;
  align-items: center;
  gap: 9px;
}

.recording-status-main strong {
  color: var(--muted-strong);
  font-size: 12px;
}

.recording-timer {
  color: var(--ink);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.recording-progress-track {
  height: 6px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 8px;
  background: #edf0ed;
}

.recording-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 400ms ease;
}

.recording-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.recording-stat-grid > div {
  min-width: 0;
}

.recording-stat-grid span,
.recording-stat-grid strong {
  display: block;
}

.recording-stat-grid span {
  color: var(--muted);
  font-size: 9px;
}

.recording-stat-grid strong {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted-strong);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recording-file-link,
.table-link {
  display: inline-flex;
  margin-top: 13px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.recording-file-link:hover,
.table-link:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.table-wrap {
  position: relative;
  min-height: 115px;
  margin-top: 17px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.data-table th,
.data-table td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: #94a19c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-table td {
  color: var(--muted-strong);
  font-size: 11px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.table-primary,
.table-secondary {
  display: block;
}

.table-primary {
  max-width: 280px;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-secondary {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-pill--idle {
  background: #f0f2f0;
  color: #7c8983;
}

.status-pill--recording {
  background: var(--orange-soft);
  color: #a96b25;
}

.status-pill--pending {
  background: var(--blue-soft);
  color: #527cae;
}

.status-pill--success {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.status-pill--danger {
  background: var(--red-soft);
  color: #a9554e;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 27px 18px;
  color: var(--muted);
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-state__icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 2px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: #9aa8a2;
  font-size: 15px;
}

.empty-state strong {
  color: var(--muted-strong);
  font-size: 12px;
}

.empty-state span {
  max-width: 340px;
  font-size: 10px;
}

.window-list,
.task-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.window-item,
.task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.window-item strong,
.window-item span,
.task-item strong,
.task-item span {
  display: block;
}

.window-item strong,
.task-item strong {
  color: var(--ink);
  font-size: 11px;
}

.window-item span,
.task-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.window-item__metrics,
.task-item__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.window-item__metrics span {
  margin: 0;
  color: var(--muted-strong);
  font-variant-numeric: tabular-nums;
}

.task-item__right {
  flex-direction: column;
  align-items: flex-end;
}

.task-item__right small {
  color: var(--muted);
  font-size: 9px;
}

.task-form {
  gap: 11px;
  margin-top: 15px;
}

.task-form .field-row {
  margin-top: 0;
}

.clip-studio { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }

.clip-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.clip-file-name { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.clip-video-wrap { position: relative; margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; background: #0d1512; overflow: hidden; }

.clip-video { display: block; width: 100%; max-height: 340px; background: #0d1512; }

.clip-placeholder { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; text-align: center; color: #cfe3d9; }

.clip-placeholder[hidden] { display: none; }

.clip-placeholder__icon { font-size: 30px; }

.clip-placeholder strong { font-size: 14px; }

.clip-placeholder span { font-size: 11px; opacity: 0.8; }

.clip-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.clip-progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; height: 8px; }

.clip-progress[hidden] { display: none; }

.clip-progress__bar { height: 8px; min-width: 8px; border-radius: 99px; background: var(--teal); transition: width 0.2s; }

.clip-progress span { font-size: 11px; color: var(--muted); }

.clip-output { margin-top: 12px; padding: 12px; border: 1px solid #a9d4c7; border-radius: 10px; background: #f4fbf7; }

.clip-output[hidden] { display: none; }

.clip-output__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

.clip-output__heading strong { font-size: 12px; color: var(--ink); }

.clip-output__heading span { font-size: 10px; color: var(--muted); }

.clip-output-grid { display: grid; gap: 12px; margin-top: 10px; }

.clip-output-card { padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

.clip-output-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.clip-output-card__heading strong { display: block; color: var(--ink); font-size: 12px; }

.clip-output-card__heading small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.clip-output-card__meta { flex: 0 0 auto; color: var(--muted-strong); font-size: 10px; text-align: right; }

.clip-output__video { display: block; width: 100%; max-height: 360px; margin-top: 10px; border-radius: 8px; background: #0d1512; }

.clip-output .clip-actions { margin-top: 10px; }

.clip-output__confirm { display: flex; align-items: center; gap: 10px; margin-top: 10px; }

.clip-output__confirm span { font-size: 10px; color: var(--muted); }

.clip-output-card .clip-output__confirm { flex-wrap: wrap; }

.clip-publish-list { display: grid; gap: 10px; margin-top: 14px; }

.publish-clip { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

.publish-clip__video { width: 100%; border-radius: 8px; background: #0d1512; max-height: 150px; }

.publish-clip__body { display: grid; gap: 6px; align-content: start; }

.publish-clip__body strong { font-size: 12px; color: var(--ink); }

.publish-clip__body small { font-size: 10px; color: var(--muted); line-height: 1.6; }

.publish-clip__actions { display: flex; gap: 8px; margin-top: 4px; }

@media (max-width: 1100px) { .publish-clip { grid-template-columns: minmax(0, 1fr); }

 

  .acceptance-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.clip-studio__right { min-width: 0; }

.clip-meta { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--muted-strong); font-size: 11px; line-height: 1.6; }

.clip-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }

.clip-check { display: flex; gap: 8px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

.clip-check[data-state="pass"] { border-color: #a9d4c7; background: #f0f8f4; }

.clip-check[data-state="warn"] { border-color: #f0c36d; background: #fff8e8; }

.clip-check strong { display: block; font-size: 11px; color: var(--ink); }

.clip-check small { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); line-height: 1.5; }

.clip-segments { display: grid; gap: 8px; margin-top: 10px; max-height: 320px; overflow: auto; }

.clip-segment { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

.clip-segment.is-hands { border-color: #f0c36d; background: #fff8e8; }

.clip-segment.is-fragment { border-color: #f3a8a8; background: #fff1f1; }

.clip-segment.is-dropped { opacity: 0.62; background: var(--surface-soft); }

.clip-segment__jump { border: 0; background: none; text-align: left; cursor: pointer; padding: 0; }

.clip-segment__jump strong { display: block; font-size: 11px; color: var(--ink); font-variant-numeric: tabular-nums; }

.clip-segment__jump small { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }

.clip-segment__actions { display: flex; gap: 6px; }

.clip-segment__actions button { border: 1px solid var(--line-strong); background: #fff; border-radius: 99px; padding: 4px 10px; font-size: 11px; cursor: pointer; color: var(--muted-strong); }

.clip-segment__actions button.is-on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; }

.clip-hint { margin-top: 10px; color: var(--muted); font-size: 10px; line-height: 1.6; }

@media (max-width: 1100px) { .clip-studio { grid-template-columns: minmax(0, 1fr); }

 }

/* 保存到挂车的自绘命名弹窗 */
.clip-name-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; }
.clip-name-modal[hidden] { display: none; }
.clip-name-modal__mask { position: absolute; inset: 0; background: rgba(13, 21, 18, 0.45); }
.clip-name-modal__card { position: relative; width: min(420px, calc(100vw - 48px)); display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 50px rgba(13, 21, 18, 0.18); }
.clip-name-modal__card strong { color: var(--ink); font-size: 15px; }
.clip-name-modal__card > span { color: var(--muted); font-size: 11px; }
.clip-name-modal__card input { width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: 13px; color: var(--ink); }
.clip-name-modal__card input:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.clip-name-modal__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: 360px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--muted-strong);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(7px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.toast[data-tone="success"] {
  border-color: #a9d4c7;
  background: #f0f8f4;
  color: var(--teal-dark);
}

.toast[data-tone="error"] {
  border-color: #ecc7c4;
  background: var(--red-soft);
  color: #9f4d46;
}

.is-warning {
  color: #a96b25 !important;
}

@media (max-width: 1100px) {
  .recording-layout {
    grid-template-columns: 1fr;
  }

  .module-card-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 900px) {
  .main-content {
    padding: 0 22px 34px;
  }

  .topbar {
    margin: 0 -22px 18px;
    padding: 18px 22px;
  }

  .topbar-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .compass-source-grid {
    grid-template-columns: 1fr;
  }

  .compass-source-actions {
    padding-bottom: 0;
  }

  .compass-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compass-live-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recording-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .main-content {
    width: calc(100% - 68px);
    margin-left: 68px;
    padding: 0 16px 28px;
  }

  .topbar {
    margin: 0 -16px 17px;
    padding: 16px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .topbar-subtitle {
    max-width: 460px;
  }

  .module-empty-layout {
    grid-template-columns: 1fr;
  }

  .compass-steps {
    grid-template-columns: 1fr;
  }

  .compass-source-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .compass-source-actions .button {
    width: 100%;
    justify-content: center;
  }

  .compass-data-connection__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .compass-data-connection__heading .button {
    width: 100%;
  }

  .compass-metric-grid {
    grid-template-columns: 1fr;
  }

  .compass-live-kpis {
    grid-template-columns: 1fr;
  }

  .recording-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .recording-actions .button {
    width: 100%;
  }

}

:root .compass-metric-note {
  display: block;
  margin-top: 8px;
  color: #617470;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Standalone Compass screen replica. Kept under its own namespace so the
   existing #compass page remains unchanged. */
.screen-compass-panel { padding: 0; overflow: hidden; background: #18213c; border: 0; }

.screen-compass-shell { min-height: 900px; color: #f4f7ff; background: #18213c; }

.screen-compass-topbar { height: 72px; display:flex; align-items:center; justify-content:space-between; padding: 0 28px; background:#242d4a; border-bottom:1px solid #354365; }

.screen-compass-brand { display:flex; align-items:center; gap:12px; font-size:20px; letter-spacing:.02em; }

.screen-compass-brand__mark { width:35px; height:35px; display:grid; place-items:center; border-radius:8px; background:#1a203a; color:#23b9ed; font-weight:700; }

.screen-compass-brand i { width:1px; height:25px; background:#536083; }

.screen-compass-brand b { font-size:24px; }

.screen-compass-version { padding:7px 12px; border-radius:5px; background:#3a496c; color:#dce6ff; font-size:14px; }

.screen-compass-topmeta { display:flex; gap:10px; align-items:center; color:#b5c2df; font-size:13px; }

.screen-status-dot { width:10px; height:10px; border-radius:50%; background:#2dcc8b; box-shadow:0 0 10px #2dcc8b; }

.screen-compass-avatar { margin-left:18px; width:32px; height:32px; border-radius:50%; display:grid; place-items:center; background:#e4a4b7; color:#fff; }

.screen-compass-body { display:flex; min-height:828px; background:linear-gradient(135deg,#202a48,#171e38 65%); }

.screen-compass-rail { width:86px; padding:24px 12px; background:#1c2542; border-right:1px solid #303c60; }

.screen-rail-item { display:flex; flex-direction:column; align-items:center; gap:6px; padding:14px 4px; margin-bottom:12px; color:#91a0c9; border-radius:8px; }

.screen-rail-item span { font-size:24px; }

.screen-rail-item small { font-size:12px; }

.screen-rail-item.is-active { color:#4eb4ff; background:#29365a; }

.screen-compass-content { flex:1; padding:24px 28px 42px; max-width:1500px; margin:auto; width:100%; }

.screen-compass-sourcebar { display:grid; grid-template-columns:auto minmax(250px,1fr) auto auto auto; gap:12px; align-items:center; margin-bottom:8px; }

.screen-compass-sourcebar label { color:#b9c7e4; font-size:13px; }

.screen-compass-sourcebar input, .screen-history-controls input, .screen-history-controls select { min-height:40px; border:1px solid #50618b; border-radius:5px; background:#202b4a; color:#edf2ff; padding:0 12px; }

.screen-compass-sourcehint { color:#8d9abd; font-size:12px; margin-bottom:18px; }

.screen-button { border:1px solid #6173a0; border-radius:5px; background:#293658; color:#edf2ff; min-height:40px; padding:0 16px; cursor:pointer; font-weight:600; }

.screen-button:hover { background:#34466f; }

.screen-button--primary { background:#4e63f4; border-color:#6074ff; }

.screen-button--small { min-height:32px; padding:0 11px; font-size:12px; }

.screen-button:disabled { opacity:.5; cursor:not-allowed; }

.screen-core-card { display:grid; grid-template-columns:1.55fr repeat(5,minmax(0,1fr)); gap:18px 0; padding:25px 30px; border-radius:14px; background:linear-gradient(110deg,#5368ff,#3c59f7 60%,#4d56db); box-shadow:0 18px 45px rgba(29,54,180,.26); }

.screen-core-main { grid-row:span 2; border-right:1px solid rgba(255,255,255,.25); padding-right:22px; }

.screen-core-label, .screen-core-stat span { display:block; color:#e2e7ff; font-size:13px; margin-bottom:13px; }

.screen-core-label span { float:right; font-size:12px; }

.screen-core-main strong { display:block; font-size:34px; line-height:1.1; }

.screen-core-main small { color:#dce2ff; display:block; margin-top:10px; font-size:12px; }

.screen-core-subvalue { margin-top:22px; }

.screen-core-subvalue span { display:block; color:#e2e7ff; font-size:13px; margin-bottom:10px; }

.screen-core-subvalue strong { font-size:24px; }

.screen-core-stat { min-height:58px; padding:0 15px; border-right:1px solid rgba(255,255,255,.14); }

.screen-core-stat:last-child { border-right:0; }

.screen-core-stat strong { display:block; color:#fff; font-size:21px; line-height:1.2; }

.screen-trend-panel, .screen-history-panel { margin-top:20px; border-radius:12px; background:#222b48; border:1px solid #354366; padding:20px 24px; }

.screen-trend-tabs { display:flex; align-items:center; gap:28px; color:#94a4ce; font-size:14px; border-bottom:1px solid #344363; padding-bottom:15px; }

.screen-trend-tabs strong { color:#fff; font-size:18px; position:relative; }

.screen-trend-tabs strong:after { content:""; position:absolute; left:0; right:0; bottom:-16px; height:3px; background:#4f78ff; }

.screen-trend-range { margin-left:auto; color:#aebbdc; }

.screen-trend-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; padding-top:16px; }

.screen-trend-metrics, .screen-trend-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }

.screen-trend-actions { margin-left:auto; }

.trend-toggle, .trend-range { display:inline-flex; align-items:center; gap:7px; border:1px solid #c7ded7; border-radius:999px; background:#fff; color:#52756e; min-height:30px; padding:0 13px; font-size:13px; cursor:pointer; }

.trend-toggle:hover, .trend-range:hover { border-color:#168277; color:#147a70; }

.trend-toggle.is-selected { background:#e2f4ef; border-color:#168277; color:#0f5f57; font-weight:600; }

.trend-range.is-selected { background:#147a70; border-color:#147a70; color:#fff; font-weight:600; }

.legend-online, .legend-gmv, .legend-buyers, .legend-items, .legend-rate { width:9px; height:9px; border-radius:50%; display:inline-block; background:#168277; }

.legend-gmv { background:#e8a23c; }

.legend-buyers { background:#5b8ff9; }

.legend-items { background:#9a6df2; }

.legend-rate { background:#5fd0a5; }

.screen-compass-chart { height:430px; width:100%; margin-top:18px; }

.screen-trend-empty { color:#78948d; text-align:center; margin-top:-245px; height:210px; pointer-events:none; }

.screen-history-heading { display:flex; justify-content:space-between; align-items:center; }

.screen-history-heading strong { display:block; font-size:18px; }

.screen-history-heading small { display:block; color:#8e9cc1; margin-top:5px; }

.screen-history-controls { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }

.screen-history-controls select { min-width:280px; }

.screen-history-error { margin-top:14px; padding:10px 12px; border-radius:5px; background:#293454; color:#aebbdc; font-size:12px; }

.screen-history-error.is-error { background:#4b2e42; color:#ffb7c2; }

@media (max-width: 1050px) { .screen-core-card { grid-template-columns:repeat(3,1fr); gap:18px; }

 .screen-core-main { grid-column:1/-1; grid-row:auto; border-right:0; padding-bottom:14px; border-bottom:1px solid rgba(255,255,255,.2); }

 .screen-compass-sourcebar { grid-template-columns:1fr 1fr; }

 .screen-compass-sourcebar label { grid-column:1/-1; }

 }

@media (max-width: 700px) { .screen-compass-rail { width:62px; }

 .screen-compass-content { padding:14px; }

 .screen-compass-topbar { padding:0 12px; }

 .screen-compass-brand b { font-size:18px; }

 .screen-compass-topmeta { display:none; }

 .screen-core-card { grid-template-columns:1fr 1fr; padding:18px; }

 .screen-trend-tabs { gap:12px; overflow:auto; }

 }

/* Green studio palette for the standalone Compass page. */
.screen-compass-panel { background:#eef6f3; }

.screen-compass-shell { color:#173b38; background:#eef6f3; }

.screen-compass-topbar { background:#ffffff; border-bottom-color:#d7e9e3; }

.screen-compass-brand { color:#173b38; }

.screen-compass-brand__mark { background:#102d29; color:#b7eadc; }

.screen-compass-brand i { background:#b5d4cc; }

.screen-compass-version { background:#dff1eb; color:#16766d; }

.screen-compass-topmeta { color:#5f7c77; }

.screen-status-dot { background:#efaa45; box-shadow:0 0 10px rgba(239,170,69,.5); }

.screen-compass-avatar { background:#dcefe9; color:#147b70; }

.screen-compass-body { background:linear-gradient(135deg,#f5faf8,#e8f3ef); }

.screen-compass-rail { background:#f9fcfb; border-right-color:#d6e8e2; }

.screen-rail-item { color:#6f8984; }

.screen-rail-item.is-active { color:#147a70; background:#dff1eb; }

.screen-compass-sourcebar label, .screen-compass-sourcehint { color:#5d7974; }

.screen-compass-sourcebar input, .screen-history-controls input, .screen-history-controls select { border-color:#c7ded7; background:#fff; color:#214640; }

.screen-button { border-color:#b4d2c9; background:#fff; color:#21665e; }

.screen-button:hover { background:#e6f4ef; }

.screen-button--primary { background:#168277; border-color:#168277; color:#fff; }

.screen-core-card { background:linear-gradient(110deg,#2a9a88,#14786f 62%,#106b64); box-shadow:0 18px 45px rgba(35,112,97,.2); }

.screen-trend-panel, .screen-history-panel { background:#fff; border-color:#d0e5de; }

.screen-trend-tabs { color:#75908b; border-bottom-color:#d7e8e2; }

.screen-trend-tabs strong { color:#173b38; }

.screen-trend-tabs strong:after { background:#159080; }

.screen-trend-range, .screen-trend-legend { color:#68837e; }

.screen-history-heading small { color:#77918b; }

.screen-history-error { background:#eaf5f1; color:#52756e; }

.screen-history-error.is-error { background:#fff0ed; color:#b45b4c; }

/* Match the official card geometry, retaining the workbench green palette. */
.screen-core-card { grid-template-columns:1.85fr repeat(5,minmax(0,1fr)); gap:24px 0; padding:24px 20px; }

.screen-core-card .screen-core-main { padding-right:24px; }

.screen-core-card .screen-core-label { display:flex; align-items:center; justify-content:space-between; gap:8px; }

.screen-core-card .screen-core-label, .screen-core-card .screen-core-stat span, .screen-core-card .screen-core-subvalue span { color:#fff; font-weight:600; font-size:clamp(10px,1.02vw,14px); line-height:1.4; margin-bottom:10px; white-space:nowrap; }

.screen-core-card .screen-core-main strong { color:#fff; font-size:32px; font-weight:750; }

.screen-core-card .screen-core-subvalue { margin-top:24px; }

.screen-core-card .screen-core-subvalue strong { color:#fff; font-size:24px; }

.screen-core-card .screen-core-stat { padding:0 16px; border:0; min-height:54px; }

.screen-core-card .screen-core-stat strong { color:#fff; font-size:25px; }

.screen-core-goal { border:0; background:none; color:#fff; padding:0; font-size:12px; white-space:nowrap; cursor:pointer; }

@media (max-width:1200px) { .screen-core-card .screen-core-stat { padding:0 9px; }

 .screen-core-goal { font-size:10px; }

 }

@media (max-width:1050px) { .screen-core-card { grid-template-columns:repeat(3,minmax(0,1fr)); }

 .screen-core-card .screen-core-main { grid-column:1/-1; }

 .screen-core-card .screen-core-stat span { font-size:12px; }

 }

@media (max-width:650px) { .screen-core-card { grid-template-columns:repeat(2,minmax(0,1fr)); }

 }

.material-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:18px 0; }

.material-toolbar input[type="search"] { min-width:220px; flex:1; }

.material-toolbar input, .material-toolbar select, .material-dialog input, .material-dialog textarea { padding:10px 12px; border:1px solid #c7ded7; border-radius:8px; background:#fff; color:#173d36; }

.material-row-actions { display:flex; gap:12px; }

.material-row-actions button { border:0; padding:4px 0; background:transparent; color:#14786f; cursor:pointer; white-space:nowrap; }

.material-row-actions button[data-material-action="delete"] { color:#ba5145; }

.material-dialog { color:#173d36; border:1px solid #c7ded7; border-radius:18px; padding:26px; width:min(520px,92vw); max-height:90vh; overflow:auto; background:#fff; }

.material-dialog::backdrop { background:rgba(15,42,37,.48); }

.material-dialog label { display:grid; gap:8px; margin:18px 0; }

.material-dialog--wide { width:min(1100px,94vw); }

#materialVideo { width:100%; max-height:65vh; background:#102d29; }

#materialReplayChart { height:320px; width:100%; }

#materialReplayPosition { flex:1; min-width:150px; accent-color:#14786f; }

.material-point-table { max-height:260px; overflow:auto; }

@media (min-width:1051px) and (max-width:1450px) { .screen-core-card .screen-core-stat { padding:0 9px; }

 .screen-core-card .screen-core-stat span, .screen-core-card .screen-core-label, .screen-core-card .screen-core-subvalue span { font-size:11px; }

 }

/* Talent compass: offline Excel import + multi-series trend. Same green studio palette. */
.talent-panel { padding: 22px; }

.talent-heading { align-items: flex-start; margin-bottom: 16px; }

.talent-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.talent-file-label { cursor: pointer; }

.talent-file-name { color: var(--muted); font-size: 11px; }

.talent-sheet-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--surface); }

.talent-sheet-btn { border: 0; background: transparent; color: var(--muted-strong); font-size: 12px; font-weight: 700; min-height: 32px; padding: 0 14px; cursor: pointer; }

.talent-sheet-btn.is-selected { background: var(--teal); color: #fff; }

.talent-hint { margin: 10px 0 0; color: var(--muted); font-size: 11px; }

.talent-kpi-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }

.talent-kpi { padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }

.talent-kpi span { display: block; color: var(--muted); font-size: 10px; }

.talent-kpi strong { display: block; margin-top: 5px; color: var(--ink); font-size: 20px; font-variant-numeric: tabular-nums; }

.talent-kpi small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }

.talent-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.talent-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted-strong); min-height: 30px; padding: 0 13px; font-size: 12px; cursor: pointer; }

.talent-chip.is-selected { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); font-weight: 700; }

.talent-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.talent-chart-wrap { position: relative; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }

.talent-chart { height: 460px; width: 100%; }

.talent-chart-empty[hidden] { display: none; }

.talent-table-wrap { margin-top: 14px; max-height: 360px; overflow: auto; }

@media (max-width: 1100px) { .talent-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

 }

