@charset "UTF-8";
:root {
  font-family: "Segoe UI", "Malgun Gothic", sans-serif;
  color: #233246;
  background: #f4f6f9;
  font-synthesis: none;
  --navy: #152638;
  --blue: #2363d1;
  --line: #e1e6ed;
  --muted: #647388;
  --ink: #233246;
  --surface: #fff;
  --amber: #9c6407;
  --pale: #f7f9fc;
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #699cfa;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
h1 {
  font-size: 27px;
  letter-spacing: -1.1px;
  font-weight: 700;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.65;
}
small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  background: var(--blue);
  color: #fff;
  z-index: 100;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.sidebar {
  width: 224px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--navy);
  color: #c4d0dd;
  padding: 31px 18px;
  z-index: 20;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: #f4f8ff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.5px;
  padding: 0 6px;
}
.brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 1.1px;
  color: #8fabc6;
  font-weight: 400;
  margin-top: 7px;
}
.brand-mark {
  width: 34px;
  height: 38px;
  color: #98bfff;
}
.brand-mark svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  width: 100%;
  height: 100%;
}
.project-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #22364a;
  border: 1px solid #34495f;
  border-radius: 7px;
  padding: 13px 10px;
  margin-top: 39px;
}
.project-icon {
  font-size: 13px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 30px;
  color: #cfdeee;
  background: #354e69;
  border-radius: 4px;
}
.project-tag strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
  color: #e2eaf3;
}
.project-tag small {
  color: #8da4bc;
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.tiny-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7ebfac;
  margin-left: auto;
}
.nav-label {
  font-size: 10px;
  color: #7f98b0;
  margin: 28px 15px 9px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  padding: 13px 14px;
  border-radius: 6px;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-link:hover {
  background: #243a51;
  color: #fff;
}
.nav-link.active {
  background: #315985;
  color: #fff;
  box-shadow: inset 3px 0 #8ab6f3;
}
.nav-count {
  margin-left: auto;
  color: #b6cae4;
  font-size: 11px;
}
.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 12px 0;
}
.local-status {
  font-size: 11px;
  color: #b2c5d7;
  display: flex;
  align-items: center;
  gap: 7px;
}
.local-status > span {
  width: 6px;
  height: 6px;
  background: #80c2ac;
  border-radius: 50%;
}
.sidebar-bottom p {
  font-size: 10px;
  color: #8299b1;
  margin-top: 9px;
  line-height: 1.8;
}
.sidebar-help {
  border: 0;
  background: transparent;
  color: #b5c7d9;
  font-size: 11px;
  padding: 17px 0 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.sidebar-help span {
  border: 1px solid #607891;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  line-height: 13px;
}
.app-shell {
  margin-left: 224px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 70px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  gap: 15px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  color: #77869a;
}
.breadcrumb b {
  color: #c2cbd5;
  font-weight: 400;
}
.breadcrumb span:last-child {
  color: #34475e;
  font-weight: 600;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.demo-badge {
  font-size: 10px;
  color: #8c630f;
  background: #fff6dc;
  border: 1px solid #f2e1b4;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.today {
  font-size: 11px;
  color: #78869a;
}
.user-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}
.avatar {
  font-size: 11px;
  background: #edf1f7;
  border: 1px solid #dae2ed;
  color: #48627e;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.user-switch select {
  border: 0;
  background: white;
  font-size: 11px;
  color: #495e74;
  max-width: 120px;
}
.mobile-menu {
  display: none;
}
main {
  padding: 31px 34px 32px;
  flex: 1;
  max-width: 1760px;
  width: 100%;
  margin: 0 auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-head p {
  font-size: 12px;
  color: #758399;
  margin-top: 9px;
}
.head-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.btn {
  border: 1px solid #d9e0e9;
  background: #fff;
  border-radius: 5px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  line-height: 1.45;
  min-height: 38px;
  white-space: nowrap;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  background: #eef3fa;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 2px 3px #1655bb14;
}
.btn.primary:hover {
  background: #1754be;
}
.btn.dark {
  background: #253e5b;
  color: white;
  border-color: #253e5b;
}
.btn.subtle {
  background: transparent;
  border-color: transparent;
  padding-left: 8px;
  padding-right: 8px;
  color: #49617b;
}
.btn.small {
  font-size: 11px;
  padding: 6px 10px;
  min-height: 31px;
}
.btn.danger {
  color: #b74141;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e5eb;
  background: #fff;
  border-radius: 5px;
  width: 32px;
  height: 32px;
}
.icon-button:hover {
  background: #edf3fa;
}
.workspace-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 23px;
}
.scene-preview {
  height: 282px;
  position: relative;
  background: #edf2f7;
}
.scene-preview .scene-flag {
  position: absolute;
  left: 20px;
  top: 16px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.2px;
  color: #496075;
  pointer-events: none;
}
.scene-open {
  position: absolute;
  right: 16px;
  top: 13px;
  z-index: 4;
  background: #ffffffdb;
}
.scene-info {
  padding: 25px 24px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.scene-info .eyebrow {
  font-size: 10px;
  color: #7d8c9e;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.scene-info h2 {
  font-size: 19px;
  margin-top: 9px;
  line-height: 1.55;
}
.scene-info p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.inline-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin-top: 20px;
}
.metric {
  border-left: 1px solid var(--line);
  padding-left: 15px;
}
.metric:first-child {
  border: 0;
  padding-left: 0;
}
.metric strong {
  font-size: 24px;
  font-weight: 600;
  color: #2b4563;
  letter-spacing: -0.7px;
}
.metric span {
  font-size: 10px;
  color: #7a889a;
  display: block;
  margin-top: 6px;
}
.metric i {
  font-style: normal;
  font-size: 11px;
  color: #8794a4;
  margin-left: 4px;
}
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.section-bar h2 {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pill-count {
  background: #e8edf4;
  color: #6b809a;
  font-size: 11px;
  border-radius: 12px;
  min-width: 23px;
  text-align: center;
  padding: 3px 6px;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.search-field {
  position: relative;
}
.search-field .icon {
  position: absolute;
  left: 10px;
  top: 9px;
  color: #94a1b2;
  width: 16px;
  height: 16px;
}
.search-field input {
  padding: 9px 11px 9px 33px;
  width: 215px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
}
.filter-row select,
.field-control {
  border: 1px solid #dce3eb;
  border-radius: 5px;
  background: white;
  color: #50647c;
  padding: 8px 10px;
  font-size: 11px;
  min-height: 34px;
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  overflow: auto;
}
.experiments-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  white-space: nowrap;
}
.experiments-table th {
  background: #f7f9fc;
  text-align: left;
  font-size: 10px;
  color: #758498;
  font-weight: 500;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
}
.experiments-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #edf0f5;
  color: #4a5b70;
}
.experiments-table tr:last-child td {
  border: 0;
}
.experiments-table tbody tr:hover {
  background: #f6f9fe;
}
.experiments-table tbody tr.selected {
  background: #f0f5ff;
}
.experiments-table th:first-child,
.experiments-table td:first-child {
  padding-left: 19px;
  width: 38px;
}
.experiments-table input[type="checkbox"] {
  accent-color: var(--blue);
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.record-link {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  max-width: 220px;
  white-space: normal;
  color: #2b4564;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  display: block;
  line-height: 1.5;
}
.record-link:hover {
  color: var(--blue);
  text-decoration: underline;
}
.record-meta {
  font-size: 10px;
  color: #8a97a8;
  margin-top: 4px;
}
.numeric {
  text-align: right !important;
}
.table-foot {
  display: flex;
  justify-content: space-between;
  padding: 12px 17px;
  font-size: 10px;
  color: #8491a3;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 6px 6px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #eef1f6;
  color: #77879b;
  white-space: nowrap;
}
.status:before {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.status.approved {
  background: #eaf5ef;
  color: #2d8165;
}
.status.review {
  background: #fff5df;
  color: #a67a1a;
}
.selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  background: #e9f1ff;
  border: 1px solid #cfdff8;
  border-radius: 6px;
  padding: 10px 15px;
  font-size: 12px;
  color: #3f6190;
}
.empty {
  padding: 45px 20px;
  text-align: center;
  color: #75869b;
  font-size: 13px;
  line-height: 1.8;
}
.empty .icon {
  width: 30px;
  height: 30px;
  display: block;
  margin: 0 auto 15px;
  color: #a7b5c6;
}
.app-footer {
  padding: 13px 34px 20px;
  font-size: 10px;
  color: #8b98a9;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.panel {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  overflow: hidden;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e8edf3;
  gap: 12px;
}
.panel-title h2 {
  font-size: 14px;
}
.panel-body {
  padding: 22px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.note {
  font-size: 11px;
  color: #718198;
  line-height: 1.8;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 15px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.8;
  background: #eef4ff;
  color: #4d6b93;
  border: 1px solid #dfe9f8;
}
.notice.warn {
  background: #fff8e9;
  color: #8b681f;
  border-color: #f2e4bf;
}
.notice.error {
  background: #fff0ee;
  color: #a5483e;
  border-color: #f5d9d5;
}
.notice.good {
  background: #edf8f1;
  color: #2b7e60;
  border-color: #d7ebdf;
}
.notice .icon {
  margin-top: 2px;
  width: 16px;
  height: 16px;
}
.notice strong {
  font-weight: 600;
}
.section-gap {
  margin-top: 20px;
}
.chart {
  display: block;
  width: 100%;
  height: 200px;
}
.chart text {
  fill: #7c8da2;
  font-size: 10px;
  font-family: inherit;
}
.chart .gridline {
  stroke: #e8edf5;
  stroke-width: 1;
}
.chart-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 10px;
  color: #6b7c90;
  margin-top: 8px;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: #3b75d5;
}
.legend-dot.amber {
  background: #cc9b48;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}
.comparison-table th {
  color: #77869a;
  font-weight: 400;
  font-size: 11px;
  background: #f9fbfd;
  min-width: 130px;
}
.comparison-table td.changed {
  background: #f1f6ff;
  color: #245fb2;
  font-weight: 600;
}
.comparison-table thead td {
  min-width: 190px;
}
.comparison-table .compare-title {
  font-size: 13px;
  font-weight: 600;
  color: #2f4765;
}
.compare-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 17px;
}
.compare-tools label {
  font-size: 11px;
  color: #74859b;
}
.scene-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.scene-stage {
  height: 482px;
  position: relative;
  background: #edf2f7;
}
.scene-toolbar {
  position: absolute;
  left: 17px;
  top: 16px;
  display: flex;
  gap: 6px;
  z-index: 4;
}
.scene-toolbar .btn {
  background: #ffffffec;
}
.scene-bottom {
  padding: 15px 20px;
  background: white;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #7b8a9d;
}
.scene-stage canvas {
  display: block;
}
.scenario-panel .panel-body {
  padding: 18px;
}
.range-field {
  margin-bottom: 20px;
}
.range-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #697d94;
  margin-bottom: 10px;
}
.range-top input {
  width: 72px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid #dce3ed;
  padding: 5px 6px;
  border-radius: 4px;
  color: #294e7f;
}
.range-field input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
  height: 5px;
  cursor: pointer;
}
.range-limits {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #9ba6b6;
  margin-top: 6px;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.calc-box {
  padding: 14px;
  border: 1px solid #dce8fa;
  background: #f3f7fe;
  border-radius: 5px;
}
.calc-box strong {
  font-size: 22px;
  color: #315d98;
  font-weight: 600;
}
.calc-box small {
  font-size: 10px;
  color: #8197b4;
}
.calc-box span {
  display: block;
  font-size: 10px;
  color: #627f9f;
  margin-bottom: 6px;
}
.question-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.question-row input {
  width: 100%;
  border: 1px solid #d9e2ee;
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 12px;
}
.analysis-result {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.analysis-result h3 {
  font-size: 14px;
  margin-bottom: 9px;
}
.analysis-result p,
.analysis-result li {
  font-size: 12px;
  line-height: 1.85;
  color: #647891;
}
.analysis-result ul {
  padding-left: 18px;
}
.evidence-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.evidence-chip {
  border: 1px solid #dce5f2;
  background: #f8faff;
  font-size: 10px;
  border-radius: 4px;
  padding: 6px 8px;
  color: #517199;
}
.report-controls {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: #63748c;
  min-width: 0;
}
.form-field > label {
  font-weight: 500;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #d7e0eb;
  background: #fff;
  border-radius: 5px;
  font-size: 12px;
  min-height: 38px;
  color: #30465f;
}
.form-field textarea {
  resize: vertical;
  min-height: 76px;
  line-height: 1.7;
}
.form-field input[readonly] {
  background: #f4f7fb;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.required {
  color: #b56547;
}
.unit-label {
  font-size: 10px;
  color: #8395ac;
  font-weight: 400;
  margin-left: 4px;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.7;
  color: #5f748e;
}
.check-label input {
  margin-top: 3px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.report-preview {
  margin-top: 18px;
  background: #fafbfd;
  border: 1px dashed #d4dfea;
  padding: 20px;
  border-radius: 5px;
}
.report-preview h3 {
  font-size: 13px;
  margin-bottom: 10px;
}
.report-preview p {
  font-size: 11px;
  color: #7c8ca1;
}
.report-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0;
  gap: 12px;
}
.report-type {
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
}
.report-type .icon {
  color: #5f7d9d;
  margin-bottom: 15px;
}
.report-type strong {
  font-size: 13px;
  display: block;
}
.report-type p {
  font-size: 11px;
  color: #7b8da2;
  margin-top: 8px;
}
.report-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.report-row:last-child {
  border: 0;
}
.report-row h3 {
  font-size: 12px;
  margin-bottom: 5px;
}
.report-row p {
  font-size: 10px;
  color: #7d8ea4;
}
.report-actions {
  display: flex;
  gap: 6px;
}
.report-version {
  font-size: 10px;
  color: #6d86a7;
  background: #edf3fb;
  border-radius: 3px;
  padding: 3px 6px;
  margin-left: 7px;
}
.audit-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.audit-list li {
  position: relative;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid #edf1f6;
  font-size: 11px;
  color: #667e98;
  line-height: 1.7;
}
.audit-list li:last-child {
  border: 0;
}
.audit-list time {
  color: #8b9caf;
  font-size: 10px;
}
.role-table {
  border-collapse: collapse;
  font-size: 11px;
  width: 100%;
  margin-top: 16px;
}
.role-table th,
.role-table td {
  text-align: left;
  padding: 12px 9px;
  border-bottom: 1px solid var(--line);
}
.role-table th {
  font-weight: 400;
  color: #7b8b9e;
  background: #f7f9fc;
}
.feature-tag {
  color: #478368;
}
.retention-box {
  margin-top: 18px;
  border: 1px solid #e3e8ef;
  background: #f7f9fc;
  padding: 15px;
  font-size: 11px;
  color: #6e8199;
  line-height: 1.8;
  border-radius: 5px;
}
.initial-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 400px;
  color: #71849c;
  font-size: 13px;
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #d7e2f1;
  border-top-color: #386bc1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
dialog {
  border: 1px solid #dce3ec;
  box-shadow: 0 24px 80px #10243d30;
  border-radius: 10px;
  padding: 0;
  color: var(--ink);
  max-height: 92vh;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #12223872;
  backdrop-filter: blur(3px);
}
.record-dialog {
  width: min(1050px, calc(100vw - 40px));
}
.detail-dialog {
  width: min(760px, calc(100vw - 36px));
}
.help-dialog {
  width: min(620px, calc(100vw - 36px));
}
.dialog-head {
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 6;
}
.dialog-head h2 {
  font-size: 19px;
}
.dialog-head p {
  font-size: 11px;
  color: #7e8da2;
  margin-top: 7px;
}
.dialog-body {
  padding: 23px 26px;
}
.record-body {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  padding: 0;
}
.capture-pane {
  padding: 24px;
  background: #f6f8fc;
  border-right: 1px solid var(--line);
}
.capture-pane h3 {
  font-size: 14px;
  margin-bottom: 10px;
}
.capture-pane p {
  font-size: 11px;
  color: #75879e;
  line-height: 1.8;
}
.capture-pane textarea {
  width: 100%;
  margin: 18px 0 10px;
  border: 1px solid #d3ddeb;
  padding: 13px;
  font-size: 12px;
  line-height: 1.85;
  border-radius: 6px;
  min-height: 170px;
  resize: vertical;
  color: #34516f;
}
.voice-controls {
  display: flex;
  gap: 7px;
  margin: 16px 0 10px;
}
.voice-controls .btn {
  font-size: 11px;
}
.audio-status {
  min-height: 35px;
  line-height: 1.6;
  color: #7d8fa5;
  font-size: 10px;
}
.recording {
  color: #bf4d42 !important;
  background: #fff0ed !important;
  border-color: #e9bdb7 !important;
}
.sample-button {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #4671aa;
  background: transparent;
  border: 0;
  padding: 6px 0;
  margin-bottom: 12px;
  text-align: left;
}
.capture-notes {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e1e7ef;
  font-size: 10px;
  color: #8090a5;
  line-height: 1.9;
}
.record-fields {
  padding: 24px 26px;
}
.record-fields h3 {
  font-size: 14px;
  margin-bottom: 18px;
}
.dialog-foot {
  padding: 17px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: white;
  position: sticky;
  bottom: 0;
  z-index: 5;
}
.dialog-foot .actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.form-error {
  font-size: 11px;
  color: #b5463c;
  line-height: 1.7;
  white-space: pre-line;
}
.parse-warnings {
  font-size: 10px;
  color: #987325;
  line-height: 1.7;
  background: #fff8e8;
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
}
.detail-tags {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin: 20px 0;
}
.detail-grid > div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.detail-grid dt {
  font-size: 10px;
  color: #8393a7;
  margin-bottom: 9px;
}
.detail-grid dd {
  font-size: 16px;
  color: #35516f;
  margin: 0;
  font-weight: 600;
}
.detail-grid dd small {
  font-size: 10px;
  font-weight: 400;
  color: #8697ab;
}
.detail-section {
  margin: 20px 0;
}
.detail-section h3 {
  font-size: 12px;
  margin-bottom: 9px;
}
.detail-section p {
  font-size: 12px;
  color: #6c8099;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.detail-source {
  background: #f5f8fc;
  border: 1px solid #e0e7f0;
  border-radius: 5px;
  padding: 12px;
  font-size: 11px;
  line-height: 1.8;
  color: #70849e;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: calc(50% + 112px);
  transform: translate(-50%, 16px);
  background: #253d57;
  color: white;
  border: 1px solid #46617f;
  border-radius: 7px;
  box-shadow: 0 8px 24px #19344c30;
  padding: 13px 22px;
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  max-width: 90vw;
  line-height: 1.6;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.error {
  background: #8c3f39;
  border-color: #ad6963;
}
.help-steps {
  margin: 17px 0;
  padding-left: 20px;
  font-size: 12px;
  line-height: 2;
  color: #61768f;
}
.helper-link {
  color: #3269b7;
  text-decoration: underline;
}
.small-heading {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.render-error {
  padding: 50px 25px;
  text-align: center;
  color: #8a6742;
  line-height: 1.8;
  font-size: 12px;
}
.scene-accessible-fallback {
  padding: 24px;
  line-height: 1.8;
}
.field-help {
  font-size: 10px;
  color: #8a99ac;
}
.full-width {
  width: 100%;
}
input[type="number"] {
  font-variant-numeric: tabular-nums;
}
input::placeholder,
textarea::placeholder {
  color: #a1adbd;
}
button svg {
  pointer-events: none;
}
.subtitle-action {
  font-size: 11px;
  color: #6580a0;
  display: flex;
  align-items: center;
  gap: 7px;
}
@media (min-width: 1550px) {
  main {
    padding: 37px 45px;
  }
  .topbar {
    padding: 0 45px;
  }
  .scene-preview {
    height: 310px;
  }
  .scene-info {
    padding: 30px;
  }
  .experiments-table td {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
@media (max-width: 1190px) {
  .sidebar {
    width: 195px;
    padding: 27px 12px;
  }
  .brand {
    font-size: 15px;
  }
  .app-shell {
    margin-left: 195px;
  }
  .topbar {
    padding: 0 24px;
  }
  main {
    padding: 25px 24px;
  }
  .scene-info {
    padding: 19px;
  }
  .workspace-overview {
    grid-template-columns: 1.25fr 1fr;
  }
  .scene-preview {
    height: 260px;
  }
  .filter-row {
    gap: 6px;
  }
  .search-field input {
    width: 160px;
  }
  .scene-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 15px;
  }
  .scene-stage {
    height: 450px;
  }
  .toast {
    left: calc(50% + 97px);
  }
  .today {
    display: none;
  }
  .topbar-right {
    gap: 13px;
  }
  .report-controls {
    gap: 10px;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 172px;
    padding: 25px 10px;
  }
  .brand {
    font-size: 13px;
    gap: 7px;
  }
  .brand-mark {
    width: 27px;
  }
  .brand small {
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  .project-tag {
    padding: 10px 8px;
    gap: 6px;
  }
  .project-icon {
    display: none;
  }
  .app-shell {
    margin-left: 172px;
  }
  .nav-link {
    padding: 12px 10px;
    gap: 9px;
    font-size: 12px;
  }
  .page-head {
    align-items: flex-start;
  }
  .head-actions .btn {
    padding: 9px 10px;
    font-size: 11px;
  }
  .workspace-overview {
    grid-template-columns: 1fr;
  }
  .scene-info {
    border-left: 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .inline-metrics {
    margin-top: 4px;
    align-self: center;
  }
  .scene-info .eyebrow {
    font-size: 9px;
  }
  .scene-info h2 {
    font-size: 16px;
    margin-top: 5px;
  }
  .scene-info p {
    display: none;
  }
  .section-bar {
    align-items: flex-start;
  }
  .filter-row {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .scene-layout {
    grid-template-columns: 1fr;
  }
  .scenario-panel .panel-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .scenario-panel .notice,
  .scenario-panel .full-width {
    grid-column: 1/-1;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .record-body {
    grid-template-columns: 290px minmax(0, 1fr);
  }
  .capture-pane {
    padding: 20px;
  }
  .record-fields {
    padding: 20px;
  }
  .toast {
    left: calc(50% + 86px);
  }
  .report-types {
    gap: 8px;
  }
  .report-type {
    padding: 15px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    transform: translateX(-100%);
    width: 224px;
    transition: transform 0.2s;
    box-shadow: 0 0 60px #15263840;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .app-shell {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
    margin-right: 3px;
  }
  .topbar {
    height: 61px;
    padding: 0 16px;
  }
  .breadcrumb {
    font-size: 11px;
    gap: 8px;
  }
  .breadcrumb > span:first-of-type {
    display: none;
  }
  .breadcrumb b {
    display: none;
  }
  .topbar-right {
    gap: 8px;
  }
  .avatar {
    display: none;
  }
  .user-switch select {
    max-width: 102px;
    font-size: 10px;
  }
  .demo-badge {
    font-size: 9px;
    padding: 4px 6px;
  }
  main {
    padding: 23px 16px;
  }
  .page-head {
    flex-direction: column;
    gap: 17px;
    margin-bottom: 19px;
  }
  h1 {
    font-size: 24px;
  }
  .page-head p {
    font-size: 11px;
    line-height: 1.7;
  }
  .head-actions {
    width: 100%;
  }
  .head-actions .btn {
    flex: 1;
  }
  .scene-preview {
    height: 230px;
  }
  .scene-info {
    display: block;
    padding: 18px;
  }
  .scene-info h2 {
    font-size: 16px;
  }
  .scene-info .inline-metrics {
    margin-top: 18px;
  }
  .metric strong {
    font-size: 23px;
  }
  .section-bar {
    flex-direction: column;
    gap: 14px;
  }
  .filter-row {
    width: 100%;
    justify-content: start;
    flex-wrap: nowrap;
  }
  .search-field {
    flex: 1;
    min-width: 0;
  }
  .search-field input {
    width: 100%;
  }
  .filter-row select {
    max-width: 120px;
  }
  .experiments-table {
    font-size: 10px;
  }
  .experiments-table td,
  .experiments-table th {
    padding: 12px 10px;
  }
  .table-foot {
    font-size: 9px;
  }
  .table-foot span:last-child {
    display: none;
  }
  .app-footer {
    padding: 12px 16px 20px;
    font-size: 9px;
    flex-direction: column;
    gap: 6px;
  }
  .record-dialog {
    width: calc(100vw - 16px);
    max-height: 96vh;
  }
  .record-body {
    grid-template-columns: 1fr;
  }
  .capture-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px;
  }
  .capture-pane textarea {
    min-height: 110px;
    margin-top: 10px;
  }
  .record-fields {
    padding: 20px 18px;
  }
  .dialog-head {
    padding: 19px 18px;
  }
  .dialog-head h2 {
    font-size: 17px;
  }
  .dialog-foot {
    padding: 15px 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .dialog-foot .actions {
    justify-content: flex-end;
  }
  .form-grid {
    gap: 13px 10px;
  }
  .voice-controls {
    margin: 12px 0 6px;
  }
  .capture-notes {
    margin-top: 10px;
    padding-top: 10px;
  }
  .dialog-body {
    padding: 19px 18px;
  }
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .detail-grid > div {
    padding: 12px;
  }
  .scene-stage {
    height: 330px;
  }
  .scene-toolbar {
    top: 10px;
    left: 10px;
  }
  .scene-toolbar .btn {
    font-size: 10px;
    padding: 5px 8px;
  }
  .scene-bottom {
    font-size: 9px;
    padding: 12px;
    flex-direction: column;
    gap: 5px;
  }
  .scenario-panel .panel-body {
    gap: 0 16px;
    padding: 16px;
  }
  .range-top {
    font-size: 10px;
  }
  .range-top input {
    width: 66px;
  }
  .question-row {
    flex-direction: column;
  }
  .panel-body {
    padding: 17px;
  }
  .panel-title {
    padding: 16px 17px;
  }
  .report-types {
    grid-template-columns: 1fr;
  }
  .report-type {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 0 10px;
    padding: 14px;
  }
  .report-type .icon {
    grid-row: span 2;
    margin: 0;
  }
  .report-type p {
    margin-top: 4px;
    font-size: 10px;
  }
  .report-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .report-controls > .check-label,
  .report-controls > .btn {
    grid-column: 1/-1;
  }
  .report-row {
    align-items: flex-start;
    padding: 16px;
    flex-direction: column;
    gap: 11px;
  }
  .audit-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .toast {
    left: 50%;
    bottom: 18px;
    min-width: 220px;
  }
  .record-link {
    max-width: 180px;
  }
  .detail-dialog {
    width: calc(100vw - 20px);
  }
  .comparison-table th,
  .comparison-table td {
    padding: 12px;
  }
  .help-dialog {
    width: calc(100vw - 22px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 701px) {
  .mobile-menu {
    display: none;
  }
}
.scene-preview .scene-flag {
  display: none;
}
.discard-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:11px;color:#9a6930;margin-top:9px}.record-dialog input,.record-dialog textarea{scroll-margin-top:125px;scroll-margin-bottom:120px}
