:root {
  --ink: #262626;
  --muted: #5e5e5e;
  --line: #e0e0e0;
  --surface: #ffffff;
  --canvas: #f8f8f8;
  --ink-action: #242424;
  --rail: #fefefe;
  --pencil-rule: repeating-linear-gradient(
    104deg,
    #777 0px,
    #777 2px,
    #999 2.4px,
    #444 4px,
    #777 5px
  );
  --pencil-fill: repeating-linear-gradient(
    -26deg,
    #333 0px,
    #333 1px,
    #414141 1px,
    #353535 2.5px,
    #3a3a3a 3px
  );
  accent-color: #272727;
  color-scheme: light;
}
.pencil-defs {
  position: absolute;
  pointer-events: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-color: var(--canvas);
  background-image:
    radial-gradient(ellipse at 27% 35%, #00000006 0.5px, transparent 0.8px),
    radial-gradient(ellipse at 68% 76%, #00000005 0.4px, transparent 0.8px);
  background-size:
    7px 9px,
    11px 13px;
  color: var(--ink);
  font:
    15px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.3;
  letter-spacing: -0.045em;
}
#sectionTitle:focus {
  outline: none;
}
h1 {
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 740;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 16px;
}
p {
  color: var(--muted);
}
a {
  color: var(--ink-action);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 40px;
  padding: 8px 14px;
  line-height: 1.4;
  transition:
    background 0.14s,
    color 0.14s,
    border-color 0.14s;
}
button:hover {
  background: #f6f6f6;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button:active:enabled {
  transform: translateY(1px);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #afafaf;
  outline-offset: 3px;
}
input,
select,
textarea {
  max-width: 100%;
  color: var(--ink);
  border: 1px solid #d4d4d4;
  border-radius: 9px;
  background: white;
  padding: 10px 12px;
}
input,
textarea {
  width: 100%;
}
input:disabled {
  background: #f1f1f1;
  color: #6c6c6c;
}
textarea {
  resize: vertical;
}
label {
  color: #474747;
}
button.primary {
  color: white;
  background: var(--ink-action);
  border-color: var(--ink-action);
  font-weight: 630;
}
button.primary:hover {
  background: #4d4d4d;
}
.danger {
  color: #505050;
}
.skip-link {
  position: fixed;
  z-index: 30;
  inset: 4px auto auto 4px;
  transform: translateY(-160%);
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip-link:focus {
  transform: none;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--rail);
  border-right: 1px solid var(--line);
  color: var(--ink);
  padding: 31px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.sidebar > .brand {
  margin: 0 9px 49px;
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
}
.brand-lockup img {
  display: block;
  object-fit: contain;
}
.brand-mark {
  width: 28px;
  height: 28px;
}
.brand-wordmark {
  width: 76px;
  height: auto;
}
.login-brand .brand-mark {
  width: 34px;
  height: 34px;
}
.login-brand .brand-wordmark {
  width: 94px;
}
.brand-product {
  color: #5f5f5f;
  border-left: 1px solid #d9d9d9;
  padding-left: 10px;
  margin-left: 3px;
  font-size: 12px;
  white-space: nowrap;
}
#opsNav {
  display: grid;
  gap: 5px;
}
#opsNav button {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  background: transparent;
  color: #585858;
  border: 0;
  font-weight: 570;
  border-radius: 9px;
  min-height: 45px;
  padding: 11px 14px;
}
#opsNav button:hover {
  background: #f0f0f0;
  color: var(--ink);
}
#opsNav button[aria-current="page"] {
  background: var(--pencil-fill);
  color: #fff;
  border-radius: 6px 8px 7px 4px / 7px 5px 8px 5px;
}
#opsNav button[aria-current="page"] svg {
  color: #fff;
}
button.primary,
.login-card button.primary {
  background: var(--pencil-fill);
  border-color: #303030;
}
button.primary:hover {
  background: #151515;
}
.staff {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding: 18px 3px 0;
}
.staff-avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #4b4b4b;
  background: #ebebeb;
  font-weight: 600;
}
.staff-info {
  display: grid;
  min-width: 0;
  line-height: 1.4;
  flex: 1;
}
.staff-info strong {
  font-size: 13px;
  font-weight: 610;
  text-overflow: ellipsis;
  overflow: hidden;
}
.staff-info span {
  font-size: 11px;
  color: #5f5f5f;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  border: none;
  padding: 8px;
  color: #505050;
  background: transparent;
}
.icon-btn:hover {
  background: #e8e8e8;
}
#main {
  min-width: 0;
  width: 100%;
  max-width: 1550px;
  margin: 0 auto;
  padding: 34px clamp(22px, 3.4vw, 60px) 56px;
  outline: none;
}
.workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 23px;
  gap: 16px;
}
.environment {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #5f5f5f;
  margin: auto 5px 12px;
  white-space: nowrap;
}
.environment:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #808080;
}
.environment + .staff {
  margin-top: 0;
}
#refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #4f4f4f;
  border-color: transparent;
  font-size: 13px;
  font-weight: 550;
}
#refresh:hover {
  background: #ececec;
}
#refresh svg {
  height: 16px;
  width: 16px;
}
.panel,
.ops-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  min-width: 0;
}
.ops-panel + .ops-panel {
  margin-top: 18px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(255px, 0.85fr) minmax(0, 1.35fr);
  gap: 16px;
  align-items: start;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.actions button {
  min-width: 64px;
}
#status:not(:empty) {
  position: fixed;
  z-index: 15;
  bottom: 22px;
  left: calc(50% + 90px);
  transform: translateX(-50%);
  width: max-content;
  max-width: min(540px, calc(100% - 32px));
  border-radius: 12px;
  padding: 12px 18px;
  background: #282828;
  color: #ffffff;
  box-shadow: 0 8px 32px #1f1f1f28;
}
#status[data-tone="error"]:not(:empty) {
  background: #3b3b3b;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--canvas);
}
.login-card {
  width: min(100%, 410px);
  padding: 35px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 26px #30303008;
}
.login-brand {
  color: var(--ink);
  margin-bottom: 30px;
}
.login-card h1 {
  font-size: 26px;
  margin-bottom: 24px;
}
.login-card label {
  display: grid;
  gap: 6px;
  margin: 15px 0;
  font-size: 14px;
  font-weight: 550;
}
.login-card button {
  width: 100%;
  margin-top: 8px;
  min-height: 46px;
}

.workspace-head {
  position: relative;
}
#metricContext {
  display: none;
}
[data-section="metrics"] #metricContext {
  display: block;
}
.workspace-head {
  min-height: 57px;
  padding-bottom: 16px;
  isolation: isolate;
}
.workspace-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--pencil-rule);
  pointer-events: none;
  clip-path: polygon(
    0 20%,
    24% 0,
    52% 30%,
    78% 15%,
    100% 40%,
    100% 66%,
    78% 74%,
    52% 94%,
    24% 75%,
    0 100%
  );
}
#metricContext .dash-period-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 3px 0 0;
}
#metricContext .dash-period-name {
  font-size: 13px;
  font-weight: 540;
  color: #555555;
}
#metricContext .dash-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #292929;
  background: transparent;
  border: 0;
  padding: 4px 2px;
  min-height: 32px;
}
#metricContext .dash-live:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#refresh {
  white-space: nowrap;
  min-height: 44px;
}
.dash-kpis .dash-kpi {
  text-align: left;
}
@media (max-width: 1100px) and (min-width: 761px) {
  .app-shell {
    grid-template-columns: 167px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 12px;
  }
  .sidebar > .brand {
    margin-left: 6px;
  }
  #main {
    padding: 26px 23px 40px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: relative;
    padding: 12px 14px 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
  }
  .sidebar > .brand {
    margin: 0;
  }
  .brand-product {
    font-size: 11px;
    padding-left: 8px;
  }
  .staff {
    grid-area: 1/2;
    justify-self: end;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .staff-info,
  .staff-avatar {
    display: none;
  }
  .icon-btn {
    min-width: 40px;
    min-height: 40px;
  }
  #opsNav {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
  }
  #opsNav button {
    justify-content: center;
    font-size: 13px;
    gap: 5px;
    min-height: 44px;
    white-space: nowrap;
    padding: 7px 2px;
    border-radius: 7px 7px 0 0;
  }
  #opsNav svg {
    width: 16px;
    height: 16px;
  }
  #main {
    padding: 21px 15px 36px;
  }
  .workspace-head {
    margin-bottom: 16px;
  }
  .panel,
  .ops-panel {
    padding: 17px;
  }
  .layout {
    display: block;
  }
  #status:not(:empty) {
    left: 50%;
    bottom: 12px;
  }
  button {
    min-height: 44px;
  }
  .login-card {
    padding: 26px;
  }
  .staff-info strong {
    max-width: 100px;
  }
}
@media (max-width: 360px) {
  #opsNav button {
    font-size: 12px;
  }
  #opsNav svg {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .sidebar > .brand {
    margin-right: 0;
  }
  .brand-product {
    margin-left: 0;
    padding-left: 7px;
  }
}
@media (max-width: 1100px) {
  .sidebar .brand-lockup {
    gap: 5px;
  }
  .sidebar .brand-mark {
    width: 24px;
    height: 24px;
  }
  .sidebar .brand-wordmark {
    width: 64px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: var(--rail);
  }
  .sidebar .environment {
    display: none;
  }
  .sidebar .environment + .staff {
    margin-top: 0;
  }
  .app-shell:has(.environment) .head-copy::before {
    content: "테스트 환경 · 합성 데이터";
    display: block;
    font-size: 11px;
    color: #5e5e5e;
    margin-bottom: 5px;
  }
  .workspace-head {
    padding-bottom: 12px;
  }
  #metricContext .dash-period-line {
    margin: 2px 0 0;
    gap: 2px 10px;
  }
  #metricContext .dash-period-name {
    font-size: 12px;
  }
}
@media (min-width: 761px) and (max-height: 580px) {
  .sidebar {
    position: relative;
    height: auto;
    min-height: 100vh;
  }
}

dialog{border:0;border-radius:19px;width:min(440px,calc(100vw - 32px));color:var(--ink);padding:27px;box-shadow:0 18px 80px #23232335}dialog::backdrop{background:rgba(22,22,22,.42)}dialog h2{font-size:22px;margin-bottom:12px}dialog p{white-space:pre-line;line-height:1.7}dialog label{display:grid;gap:6px;margin-top:20px}dialog textarea{min-height:86px}dialog .actions{justify-content:flex-end;margin-top:22px}
button[aria-busy=true]{opacity:.65;cursor:progress}

.dash-view {
  --dash-text:#232323;
  --dash-mute:#646464;
  --dash-line:#dedede;
  --metric-tone:#242424;
  display:grid;
  gap:20px;
  color:var(--dash-text);
  font-variant-numeric:tabular-nums;
}
.dash-view *, .dash-period-line * {box-sizing:border-box;min-width:0}
.dash-view p,.dash-view h2,.dash-view h3,.dash-view dl {margin:0}
.dash-toolbar,.dash-controls,.dash-segment,.dash-period-line,.dash-row,.dash-data-row,
.dash-footnote,.dash-readout,.dash-live {display:flex;align-items:center}
.dash-toolbar,.dash-period-line,.dash-row,.dash-footnote {justify-content:space-between;gap:10px}
.dash-toolbar,.dash-period-line,.dash-footnote {flex-wrap:wrap}
.dash-segment {gap:1px;padding:3px;background:#eeeeec;border:1px solid #e6e6e4;border-radius:7px}
.dash-segment button {
  font:inherit;font-size:14px;font-weight:600;line-height:22px;
  padding:6px 15px;border:1px solid transparent;border-radius:4px;color:#575757;background:transparent;
}
.dash-segment button[aria-pressed="true"] {border-color:#d6d6d4;background:#fff;color:#171717;box-shadow:0 1px 2px #0000000d}
.dash-controls {gap:8px}
.dash-controls input,.dash-controls select {
  font:inherit;font-size:14px;line-height:normal;color:#303030;background:#fff;
  width:auto;height:38px;margin:0;border:1px solid #d4d4d2;border-radius:5px;padding:0 10px;
}
.dash-period-name {font-size:14px;font-weight:620}
button.dash-live {border:0;background:transparent;gap:6px;padding:5px 0;color:#4b4b4b;font:inherit;font-size:13px}
.dash-live strong {color:#252525}
.dash-live-dot {height:7px;width:7px;background:#444;border-radius:50%}
.dash-live:hover span {text-decoration:underline}
.dash-kpis {
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;border:1px solid #cececc;background:#d8d8d5;border-radius:8px;
}
.dash-view button.dash-kpi {
  appearance:none;position:relative;container-type:inline-size;
  display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;
  min-height:122px;height:auto;margin:0;padding:18px clamp(12px,1.7vw,26px);
  border:0;border-radius:0;background:#fff;color:#232323;box-shadow:none;
  text-align:left;font:inherit;cursor:pointer;
}
.dash-view button.dash-kpi:first-child {border-radius:7px 0 0 7px}
.dash-view button.dash-kpi:last-child {border-radius:0 7px 7px 0}
.dash-view button.dash-kpi[aria-pressed="true"] {background:#f4f4f1;box-shadow:inset 0 -3px #282828}
.dash-kpi-label {display:flex;align-items:center;gap:7px;font-size:15px;font-weight:630;line-height:1.4;color:#414141;letter-spacing:-.025em;word-break:keep-all}
.dash-kpi-icon {width:19px;height:19px;flex:0 0 19px;fill:none;stroke:#535353;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.dash-figure {display:flex;align-items:baseline;flex-wrap:wrap;gap:0 4px;margin:8px 0 10px;line-height:1.08}
.dash-figure strong {font-size:clamp(25px,21cqi,42px);font-weight:660;letter-spacing:-.055em;color:#1f1f1f}
.dash-figure[data-length="medium"] strong {font-size:clamp(16px,15cqi,40px)}
.dash-figure[data-length="long"] strong {font-size:clamp(13px,10.4cqi,33px)}
.dash-figure small {font-size:14px;font-weight:550;color:#555}
.dash-kpi-note,.dash-subtitle,.dash-footnote,.dash-maturity-note {font-size:12px;color:var(--dash-mute);line-height:1.55}
.dash-kpi-note {margin-top:auto}
.dash-kpi-note b {font-weight:650;color:#333}
.dash-billing-jump .dash-kpi-label::after {content:"↓";font-size:.9em;color:#6a6a6a}
.dash-panel,.dash-view>.dash-secondary {
  background:#fff;border:1px solid var(--dash-line);border-radius:8px;
}
.dash-panel {padding:22px clamp(16px,2vw,28px)}
.dash-main {display:grid;align-items:start;grid-template-columns:minmax(0,1.54fr) minmax(260px,1fr);gap:16px}
.dash-panel .dash-title {font-size:19px;font-weight:650;line-height:1.45;letter-spacing:-.04em;color:#242424}
.dash-view .dash-subtitle {margin-top:4px}
.dash-readout {justify-content:flex-end;gap:8px;padding:12px 0 4px;min-height:38px;font-size:12px;color:#646464}
.dash-readout strong {font-size:15px;color:#252525}
.dash-plot {position:relative;height:clamp(155px,15vw,204px);touch-action:pan-y}
.dash-plot svg {display:block;width:100%;height:100%;overflow:visible}
.dash-y-axis {
  position:absolute;left:0;top:7%;bottom:13%;display:flex;flex-direction:column;justify-content:space-between;
  pointer-events:none;font-size:11px;color:#707070;
}
.dash-gridline,.dash-line,.dash-guide,.dash-dot {vector-effect:non-scaling-stroke}
.dash-gridline {stroke:#dbdbd9;stroke-width:1;stroke-dasharray:2 4}
.dash-line {stroke:#343434;stroke-width:2.35;stroke-linejoin:round;stroke-linecap:round;fill:none}
.dash-guide {stroke:#747474;stroke-width:1;stroke-dasharray:3 4}
.dash-dot {fill:#303030;stroke:white;stroke-width:1.5}
.dash-axis {display:flex;justify-content:space-between;margin:-7px 1.5% 10px 5.5%;font-size:11px;color:#686868}
.dash-chart-empty,.dash-regions .dash-region-empty {display:grid;min-height:175px;place-items:center;font-size:14px;color:#606060}
.dash-values,.dash-definitions,.dash-panel>.dash-secondary {border-top:1px solid var(--dash-line);margin-top:12px}
.dash-values summary,.dash-definitions summary,.dash-secondary summary {
  color:#494949;font-size:13px;font-weight:600;padding:10px 0;line-height:1.5;min-height:40px;cursor:pointer;
}
.dash-values summary {padding-bottom:0}
.dash-regions-table {width:100%;border-collapse:collapse;table-layout:fixed;margin-top:16px;font-size:13px}
.dash-regions-table th,.dash-regions-table td {border:0;text-align:right;line-height:1.5;color:#373737}
.dash-regions-table thead th {border-bottom:1px solid #c9c9c7;color:#636363;font-weight:500;font-size:12px;padding:0 0 8px}
.dash-regions-table th:first-child {width:48%;text-align:left}
.dash-regions-table tbody th {font-weight:600;padding:8px 10px 8px 0}
.dash-regions-table tbody td {padding:8px 0;font-weight:610}
.dash-regions-table tbody td:last-child {font-weight:450;color:#626262}
.dash-regions-table tbody tr+tr {border-top:1px solid #efefed}
.dash-regions-table progress {
  display:block;appearance:none;width:100%;height:3px;border:0;background:#efefed;color:#636363;
  border-radius:1px;overflow:hidden;margin-top:4px;
}
.dash-regions-table progress::-webkit-progress-bar {background:#efefed}
.dash-regions-table progress::-webkit-progress-value {background:repeating-linear-gradient(123deg,#535353 0 2px,#999 2px 3px)}
.dash-regions-table progress::-moz-progress-bar {background:repeating-linear-gradient(123deg,#535353 0 2px,#999 2px 3px)}
.dash-breakdown {display:grid;align-items:start;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.dash-breakdown .dash-title {font-size:17px}
.dash-breakdown .dash-title+.dash-row {margin-top:14px}
.dash-row {padding:8px 0;font-size:14px;line-height:1.45}
.dash-row-label,.dash-retention-label {color:#575757}
.dash-row-value {font-weight:600;color:#262626;white-space:nowrap}
.dash-retention-label {display:grid}
.dash-retention-label small {margin-top:2px;color:#626262;font-size:12px}
.dash-definitions dl {font-size:13px;line-height:1.6}
.dash-definitions dt {font-weight:630}
.dash-definitions dd {color:#646464;margin:2px 0 8px}
.dash-conversion {display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:18px 0 6px}
.dash-conversion span {font-size:13px;color:#575757}
.dash-ratio {font-size:25px;line-height:1.2;font-weight:640;color:#282828;letter-spacing:-.035em}
.dash-outcomes progress {display:block;appearance:none;border:0;border-radius:4px;overflow:hidden;width:100%;height:5px;margin:8px 0 10px;background:#eee;color:#535353}
.dash-outcomes progress::-webkit-progress-bar {background:#eee}
.dash-outcomes progress::-webkit-progress-value {background:#535353}
.dash-outcomes progress::-moz-progress-bar {background:#535353}
.dash-maturity-note {padding-top:6px}
.dash-billing {scroll-margin-block:20px}
.dash-billing-sections {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:18px}
.dash-billing-group {padding:0 20px}
.dash-billing-group:first-child {padding-left:0}
.dash-billing-group:last-child {padding-right:0}
.dash-billing-group+.dash-billing-group {border-left:1px solid var(--dash-line)}
.dash-billing-label {font-size:14px;font-weight:650;padding-bottom:6px;color:#2e2e2e}
.dash-billing-group .dash-row {font-size:13px}
.dash-view>.dash-secondary {padding:0 22px}
.dash-view>.dash-secondary>summary {padding:14px 0}
.dash-data-row {
  width:100%;border:0;border-top:1px solid var(--dash-line);border-radius:0;padding:11px 0;
  background:transparent;text-align:left;color:#303030;font-size:13px;gap:10px;
}
.dash-data-row span:first-child {flex:1;overflow-wrap:anywhere}
.dash-arrow,.dash-data-row time {color:#666}
.dash-values .dash-data-row:disabled {background:transparent;color:#686868;cursor:default}
.dash-list-body,.dash-members {padding-bottom:5px}
.dash-footnote {margin:0 0 4px;align-items:flex-start}
.dash-view :is(button,input,select,summary,.dash-plot):focus-visible,.dash-billing h2:focus-visible {
  outline:2px solid #313131;outline-offset:3px;z-index:1;
}
@media (hover:hover) {
  .dash-view button.dash-kpi:hover,.dash-data-row:not(:disabled):hover,.dash-segment button:not([aria-pressed="true"]):hover {background:#f3f3f0}
  .dash-view button.dash-kpi[aria-pressed="true"]:hover {background:#eeeeea}
}
@media(prefers-reduced-motion:no-preference) {
  .dash-view button.dash-kpi,.dash-data-row {transition:background-color .13s ease}
}
@media(max-width:1100px) {
  .dash-figure strong {font-size:clamp(24px,22cqi,38px)}
  .dash-view button.dash-kpi {padding:16px 14px;min-height:115px}
  .dash-billing-group {padding:0 13px}
}
@media(max-width:865px) {
  .dash-main {grid-template-columns:minmax(0,1fr)}
  .dash-regions-table th:first-child {width:58%}
  .dash-kpis {grid-template-columns:repeat(2,minmax(0,1fr))}
  .dash-view button.dash-kpi:first-child {border-radius:7px 0 0 0}
  .dash-view button.dash-kpi:nth-child(2) {border-radius:0 7px 0 0}
  .dash-view button.dash-kpi:nth-child(3) {border-radius:0 0 0 7px}
  .dash-view button.dash-kpi:last-child {border-radius:0 0 7px 0}
}
@media(max-width:690px) {
  .dash-view {gap:14px}
  .dash-breakdown,.dash-billing-sections {grid-template-columns:minmax(0,1fr)}
  .dash-view button.dash-kpi {min-height:99px;padding:14px 13px}
  .dash-figure {margin:5px 0 7px}
  .dash-kpi-note {font-size:11px}
  .dash-main,.dash-breakdown {gap:12px}
  .dash-panel {padding:16px}
  .dash-billing-sections {gap:14px}
  .dash-billing-group,.dash-billing-group+.dash-billing-group {padding:0;border-left:0}
  .dash-billing-group+.dash-billing-group {border-top:1px solid var(--dash-line);padding-top:14px}
  .dash-plot {height:151px}
  .dash-footnote {display:grid;gap:4px}
}
@media(max-width:440px) {
  .dash-controls,.dash-segment {width:100%}
  .dash-segment button {flex:1;padding:6px 8px}
  .dash-controls select,.dash-controls input {flex:1;width:0}
  .dash-kpi-label {font-size:14px}
  .dash-figure small {font-size:12px}
  .dash-kpi-note {line-height:1.45}
}

.mp-panel{
  min-width:0;background:#fff;border:1px solid #dcdcdc;border-radius:12px;
  padding:clamp(20px,2.5vw,30px);color:#252525;
}
.mp-panel h2,.mp-panel h3{color:#252525;letter-spacing:-.035em;margin:0}
.mp-panel h2{font-size:18px;line-height:1.45;font-weight:700}
.mp-panel h3{font-size:15px;line-height:1.5;font-weight:650}
.mp-panel p,.mp-panel dl,.mp-panel dt,.mp-panel dd,.mp-panel ol,.mp-panel ul{margin:0}
.mp-section-head,.mp-identity,.mp-actions,.mp-search{display:flex;align-items:center;gap:12px}
.mp-section-head{justify-content:space-between}
.mp-lookup{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(245px,.85fr);gap:16px;align-items:start}
.mp-lookup>.mp-panel{min-height:154px}
.mp-search-panel,.mp-recent{padding:24px}
.mp-search-panel h2{margin-bottom:15px}
.mp-search .mp-search-field{position:relative}
.mp-search .mp-search-field input{padding-left:36px}
.mp-search-field:before,.mp-search-field:after{content:"";position:absolute;pointer-events:none;box-sizing:border-box;color:#666666}
.mp-search-field:before{width:12px;height:12px;border:1.65px solid currentColor;border-radius:100%;left:14px;top:14px}
.mp-search-field:after{height:1.65px;width:6px;background:currentColor;transform:rotate(48deg);left:23px;top:26px}
.mp-panel .mp-search-hint,.mp-panel .mp-recent-empty{color:#626262;font-size:13px;line-height:1.5;margin-top:12px}
.mp-recent .mp-section-head{min-height:26px}
.mp-recent .mp-text-button{min-height:32px}
.mp-recent .mp-recent-empty{margin-top:18px}
.mp-panel .mp-recent-list{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin-top:12px}
.mp-recent-list li{min-width:0;max-width:100%}
.mp-panel button.mp-recent-open{display:flex;align-items:center;gap:8px;max-width:100%;min-height:44px;border:1px solid #dddddd;background:#fff;color:#252525;padding:5px 11px 5px 6px}
.mp-panel button.mp-recent-open:hover{background:#f3f3f3;border-color:#b9b9b9}
.mp-initial{flex:none;display:grid;place-items:center;width:27px;height:27px;background:#e8e8e8;border-radius:50%;color:#535353;font-size:12px}
.mp-recent-label{display:grid;min-width:0;line-height:1.25;text-align:left}
.mp-recent-label strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-recent-label small{font-size:10px;font-weight:500;color:#626262;letter-spacing:.035em}
.mp-search{align-items:flex-end;max-width:680px;gap:10px}
.mp-search .mp-field{flex:1}
.mp-panel .mp-field,.mp-plan-fields .mp-field{display:flex;flex-direction:column;gap:8px;min-width:0;color:#484848;font-size:13px;font-weight:600}
.mp-panel input,.mp-panel select,.mp-panel textarea{
  display:block;width:100%;min-width:0;margin:0;padding:10px 12px;border-radius:10px;border:1px solid #c9c9c9;
  background:#fff;color:#252525;font:inherit;font-size:15px;line-height:1.45;
}
.mp-panel input,.mp-panel select{height:44px}
.mp-panel input::placeholder,.mp-panel textarea::placeholder{color:#666666;font-weight:400}
.mp-panel textarea{resize:vertical;min-height:72px}
.mp-panel button{border-radius:7px;min-height:40px;padding:8px 14px;font:inherit;font-weight:600;font-size:14px;line-height:1.4}
.mp-panel .mp-primary{background:#282828;color:#fff;border:1px solid #282828}
.mp-panel .mp-primary:hover{background:#080808}
.mp-panel .mp-secondary{background:#f1f1f1;color:#353535;border:1px solid transparent}
.mp-panel .mp-secondary:hover{background:#e6e6e6}
.mp-panel .mp-text-button{background:transparent;color:#282828;border:none;padding:6px 8px}
.mp-panel .mp-text-button:hover{background:#eeeeee}
.mp-search .mp-primary{height:44px;min-width:74px}
.mp-search .mp-field{font-size:16px;letter-spacing:-.035em;color:#252525}
.mp-result:not(:empty),.mp-price-notes,.mp-price-editor{margin-top:18px}
.mp-member-grid{display:grid;grid-template-columns:minmax(250px,.82fr) minmax(320px,1.18fr);align-items:start;gap:18px}
.mp-identity{padding-bottom:20px}
.mp-identity>div{min-width:0}
.mp-identity h2,.mp-meta,.mp-reason,.mp-row dd,.mp-note,.mp-deltas li{overflow-wrap:anywhere}
.mp-avatar{display:grid;place-items:center;flex:0 0 44px;height:44px;color:#353535;background:#eaeaea;border-radius:8px;font-size:19px;font-weight:650}
.mp-panel .mp-data{display:grid;gap:0;margin-top:10px}
.mp-row{display:grid;grid-template-columns:minmax(84px,.7fr) minmax(90px,1.3fr);gap:12px;align-items:baseline;padding:10px 0;border-top:1px solid #e9e9e9;font-size:14px}
.mp-row dt{color:#606060;font-weight:450}
.mp-row dd{text-align:right;color:#333333;font-weight:580;font-variant-numeric:tabular-nums}
.mp-pill{display:inline-flex;align-items:center;border-radius:6px;padding:3px 7px;font-size:12px;font-weight:650}
.mp-ok{color:#3d3d3d;background:#f5f5f5}
.mp-warn{color:#454545;background:#f6f6f6;border:1px dashed #888}
.mp-danger{color:#fff;background:#333}
.mp-panel .mp-note{margin:14px 0 0;color:#575757;background:#f4f4f4;border-radius:10px;padding:11px 13px;font-size:13px;line-height:1.6}
.mp-panel .mp-muted,.mp-meta{font-size:13px;color:#626262;line-height:1.55}
.mp-panel h2+.mp-muted{margin-top:6px}
.mp-panel .mp-history{display:grid;gap:0;list-style:none;padding:0;margin-top:18px}
.mp-history>li{padding:14px 0;border-top:1px solid #e9e9e9}
.mp-history>li:last-child{padding-bottom:0}
.mp-history .mp-section-head{gap:6px}
.mp-history .mp-status-text{margin-left:8px;color:#626262;font-size:12px}
.mp-panel .mp-reason{margin:3px 0;color:#383838;font-size:14px}
.mp-item .mp-meta{display:block}
.mp-editor,.mp-price-editor{display:grid;gap:16px}
.mp-editor{margin-top:15px;padding-top:18px;border-top:1px solid #dddddd}
.mp-panel .mp-editor .mp-note{margin:0}
.mp-actions{justify-content:flex-end;flex-wrap:wrap}
.mp-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.mp-plan-free{--tone:#5b5b5b;--tint:#f2f2f2}
.mp-plan-plus{--tone:#282828;--tint:#eaeaea}
.mp-plan-pro{--tone:#242424;--tint:#e5e5e5}.mp-plan-pro .mp-route-mark{background:repeating-linear-gradient(-32deg,#f2f2f2 0 3px,#e1e1e1 3px 4px)}
.mp-route-mark{display:block;position:relative;flex:none;width:50px;height:36px;background:var(--tint);color:var(--tone);border-radius:50% 42% 49% 39%/46% 52% 41% 49%;isolation:isolate}
.mp-route-mark i{position:absolute;display:block;border:2px solid currentColor;border-radius:50%;height:8px;width:8px;box-sizing:border-box;background:var(--tint)}
.mp-plan-free .mp-route-mark i:first-child{width:18px;height:18px;left:16px;top:9px;border-width:1px}
.mp-plan-free .mp-route-mark i:nth-child(2){left:21px;top:14px;background:currentColor}
.mp-plan-free .mp-route-mark i:nth-child(3),.mp-plan-plus .mp-route-mark i:nth-child(3){display:none}
.mp-plan-plus .mp-route-mark:before,.mp-plan-pro .mp-route-mark:before,.mp-plan-pro .mp-route-mark:after{content:"";position:absolute;background:currentColor;height:2px;transform-origin:left center;z-index:-1}
.mp-plan-plus .mp-route-mark:before{left:15px;top:22px;width:22px;transform:rotate(-25deg)}
.mp-plan-plus .mp-route-mark i:first-child{left:11px;top:19px}
.mp-plan-plus .mp-route-mark i:nth-child(2){left:31px;top:10px;background:currentColor}
.mp-plan-pro .mp-route-mark:before{left:10px;top:24px;width:20px;transform:rotate(-45deg)}
.mp-plan-pro .mp-route-mark:after{left:24px;top:10px;width:18px;transform:rotate(31deg)}
.mp-plan-pro .mp-route-mark i:first-child{left:6px;top:21px}
.mp-plan-pro .mp-route-mark i:nth-child(2){left:20px;top:7px}
.mp-plan-pro .mp-route-mark i:nth-child(3){left:36px;top:16px;background:currentColor}
.mp-plan{padding:clamp(18px,2vw,25px);display:flex;flex-direction:column;gap:18px}
.mp-plan .mp-plan-name{font-size:22px;color:var(--tone);line-height:1.35;letter-spacing:-.045em}
.mp-plan .mp-price{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.mp-price strong{font-size:clamp(28px,3vw,40px);line-height:1.1;font-weight:700;letter-spacing:-.055em;font-variant-numeric:tabular-nums}
.mp-price span{color:#626262;font-size:13px}
.mp-plan .mp-data{margin:0}
.mp-plan .mp-row{grid-template-columns:auto 1fr;padding:9px 0}
.mp-plan .mp-secondary{width:100%;margin-top:auto}
.mp-plan .mp-secondary[aria-expanded=true]{background:#333;color:white}
.mp-price-editor h2:focus:not(:focus-visible){outline:0}
.mp-plan-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:14px;margin:0;padding:0;border:0;min-width:0}
.mp-field .mp-readonly{display:flex;align-items:center;min-height:44px;font-size:16px;color:#545454}
.mp-field small{font-weight:400}
.mp-panel .mp-deltas{list-style:none;padding:0;display:grid;gap:7px;color:#282828;font-size:14px}
.mp-price-notes .mp-section-head{margin-bottom:14px}.mp-price-notes .mp-warn{color:#3e3e3e;background:#eeeeee}
.mp-price-notes .mp-deltas{margin-top:12px}
.mp-price-notes .mp-data{max-width:640px}
.mp-panel [hidden],.mp-panel[hidden]{display:none!important}
@media(max-width:1000px){
 .mp-member-grid{grid-template-columns:minmax(225px,.85fr) minmax(260px,1.15fr)}
 .mp-plans{gap:9px}.mp-plan{padding:16px}
}
@media(max-width:780px){
 .mp-member-grid,.mp-lookup{grid-template-columns:1fr}.mp-lookup{gap:12px}.mp-lookup>.mp-panel{min-height:0}.mp-search-panel,.mp-recent{padding:18px}
 .mp-plans{grid-template-columns:1fr}.mp-plan{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:18px}
 .mp-plan .mp-section-head{justify-content:flex-start;gap:10px}.mp-plan .mp-route-mark{order:-1}.mp-plan .mp-price{justify-content:flex-end}.mp-plan .mp-data{grid-column:1/-1}
 .mp-plan .mp-secondary{grid-column:1/-1}.mp-plan .mp-row{padding:6px 0}
}
@media(max-width:570px){
 .mp-panel{border-radius:9px}.mp-panel input,.mp-panel select,.mp-panel textarea{font-size:16px}
 .mp-search .mp-primary{min-width:52px;padding:8px 12px}.mp-plan-fields{grid-template-columns:1fr}
 .mp-panel button{min-height:44px}.mp-result:not(:empty),.mp-price-notes,.mp-price-editor{margin-top:12px}
}
@media(max-width:370px){
 .mp-plan .mp-route-mark{display:none}
}

#workspace .case-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.83fr) minmax(0, 1.35fr);
  gap: 0;
  align-items: start;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  overflow: clip;
  background: #ffffff;
}
#workspace .case-layout[hidden] {
  display: none;
}
.case-layout > .panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  min-width: 0;
  padding: 0;
}
.case-layout > .panel:first-child {
  align-self: stretch;
  background: #fcfcfc;
  border-right: 1px solid #e9e9e9;
}
.case-layout #reports {
  padding: 23px 14px 12px;
}
.case-layout .case-inbox-heading {
  margin: 0 8px 16px;
  font-size: 17px;
  color: #282828;
  letter-spacing: -0.45px;
  font-weight: 680;
}
.case-filters {
  display: flex;
  gap: 2px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 0 4px;
}
.case-filters button {
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 8px;
  background: transparent;
  color: #5f5f5f;
  border: 0;
  white-space: nowrap;
}
.case-filters button:hover {
  background: #ededed;
}
.case-filters button[aria-pressed="true"] {
  background: #303030;
  color: #ffffff;
  font-weight: 650;
}
.case-list {
  display: grid;
  gap: 4px;
}
.case-entry {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: start;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #2a2a2a;
  padding: 13px 12px;
  transition: background 0.12s;
}
.case-entry:hover {
  background: #f3f3f3;
}
.case-entry[aria-current="true"] {
  background: #f1f1f1;
  border-color: #e3e3e3;
}
.case-line,
.case-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.case-line {
  justify-content: space-between;
}
.case-reason {
  font-weight: 650;
  font-size: 15px;
  color: #303030;
  letter-spacing: -0.3px;
}
.case-meta {
  font-size: 12px;
  color: #626262;
  margin-top: 5px;
  flex-wrap: wrap;
  overflow-wrap: anywhere;
}
.case-short-id {
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}
.case-owner {
  margin-inline-start: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 56%;
}
.case-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
}
 .case-badge.new {background:white;border:1px dashed #858585;color:#444}
.case-badge.working {background:repeating-linear-gradient(-45deg,#eee 0 2px,#f4f4f4 2px 4px);border:1px solid #c4c4c4;color:#272727}
.case-badge.done {background:#363636;color:white;border:1px solid #363636}
.case-layout #more {
  display: block;
  margin: 0 auto 16px;
  padding: 7px 12px;
  font-size: 13px;
  background: #ffffff;
  color: #454545;
  border: 1px solid #dcdcdc;
}
.case-layout .case-empty-list {
  color: #666666;
  font-size: 14px;
  text-align: center;
  margin: 20px 6px;
}
.case-layout #detail {
  padding: 27px clamp(18px, 3vw, 34px) 30px;
}
.case-placeholder {
  min-height: 210px;
  display: grid;
  place-items: center;
  color: #6e6e6e;
  font-size: 14px;
}
.case-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.case-layout .case-detail-title {
  margin: 0;
  color: #272727;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.75px;
  font-weight: 680;
}
.case-facts {
  margin: 18px 0 22px;
  display: grid;
  gap: 7px;
}
.case-facts > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  line-height: 1.55;
}
.case-facts dt {
  color: #707070;
}
.case-facts dd {
  margin: 0;
  color: #434343;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.case-layout .case-claim,
.case-layout .case-submit {
  min-height: 42px;
  padding: 8px 17px;
  font-size: 14px;
  width: auto;
  border-radius: 11px;
}
.case-evidence,
.case-decision,
.case-form {
  border-top: 1px solid #ebebeb;
  padding-top: 18px;
  margin-top: 18px;
}
.case-layout .case-evidence-button {
  background: #f5f5f5;
  color: #474747;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
}
.case-layout .case-evidence-body {
  background: #f6f6f6;
  border-radius: 10px;
  padding: 14px;
  margin-top: 12px;
  color: #373737;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.case-layout .case-section-title {
  font-size: 15px;
  margin: 0;
  font-weight: 650;
  color: #313131;
}
.case-decision-reason {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.case-layout .case-form label {
  display: block;
  font-size: 13px;
  color: #4f4f4f;
  margin: 0 0 6px;
  font-weight: 600;
}
.case-layout .case-form select,
.case-layout .case-form textarea {
  font: inherit;
  font-size: 14px;
  color: #313131;
  border-radius: 10px;
  border: 1px solid #d6d6d6;
  background: #ffffff;
}
.case-layout .case-form select {
  min-height: 42px;
  width: 100%;
  padding: 7px 11px;
  margin: 0 0 14px;
}
.case-layout .case-form textarea {
  width: 100%;
  padding: 10px 12px;
  resize: vertical;
  min-height: 84px;
  margin: 0 0 10px;
}
.case-layout .case-hint {
  margin: -6px 0 15px;
  color: #636363;
  font-size: 13px;
}
.case-layout .case-next,
.case-layout .case-back {
  background: transparent;
  color: #555555;
  font-size: 13px;
  border: 0;
  padding: 8px 0;
}
.case-layout .case-next {
  margin-top: 14px;
  display: block;
}
.case-layout .case-back {
  display: none;
}
@media (min-width: 761px) {
  .case-list {
    max-height: max(250px, calc(100dvh - 270px));
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
  }
  .case-list button:focus-visible {
    outline-offset: -3px;
  }
}
@media (max-width: 760px) {
  #workspace .case-layout {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 16px;
  }
  .case-layout > .panel:first-child {
    border: 0;
  }
  .case-layout #reports {
    padding: 17px 10px 12px;
  }
  .case-filters button {
    min-height: 42px;
  }
  .case-layout #detail {
    display: none;
    padding: 10px 18px 20px;
  }
  .case-layout[data-case-open="true"] > .panel:first-child {
    display: none;
  }
  .case-layout[data-case-open="true"] #detail {
    display: block;
  }
  .case-layout .case-back {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    margin: 0 0 4px;
  }
  .case-layout .case-detail-title {
    font-size: 21px;
  }
  .case-layout .case-form select,
  .case-layout .case-form textarea {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .case-entry {
    transition: none;
  }
}
