/* Readability pass: Korean operational UI should remain legible at meeting distance. */
:root {
  --sidebar: 282px;
}

html {
  font-size: 16px;
}

body,
button,
input,
select,
textarea {
  font-size: 15px;
  line-height: 1.55;
}

.prototype-bar {
  display: none;
}

.prototype-bar span {
  padding: 4px 10px;
  font-size: 13px;
  flex: 0 0 auto;
}

.shell {
  min-height: 100vh;
}

.sidebar {
  height: 100vh;
  padding: 24px 17px 20px;
}

.brand-logo {
  width: 136px;
}

.brand > small {
  margin-top: 9px;
  font-size: 13px;
}

.nav-group {
  margin-bottom: 17px;
}

.nav-label {
  padding: 0 11px 7px;
  font-size: 12px;
}

.nav-item {
  min-height: 45px;
  padding: 10px 11px;
  gap: 11px;
  font-size: 15px;
  line-height: 1.25;
}

.nav-icon {
  width: 29px;
  height: 29px;
  font-size: 12px;
}

.nav-count {
  min-width: 24px;
  height: 24px;
  font-size: 12px;
}

.sidebar-footer > a {
  font-size: 15px;
}

.operator strong {
  font-size: 14px;
}

.operator small {
  font-size: 12px;
}

.topbar {
  height: 74px;
  padding: 0 30px;
}

.crumb {
  font-size: 15px;
}

.sim-clock,
.live-pill,
.search-box input {
  font-size: 13px;
}

.search-box {
  height: 42px;
  width: 285px;
}

.live-pill {
  min-height: 38px;
}

.live-pill.planned {
  background: var(--yellow-soft);
  color: #735600;
}

.live-pill.planned i {
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(239, 182, 37, .17);
}

.icon-button {
  width: 42px;
  height: 42px;
}

.content {
  padding: 36px 38px 80px;
}

.page-head {
  margin-bottom: 20px;
  gap: 22px;
}

.page-head .eyebrow {
  margin-bottom: 8px;
  font-size: 13px;
}

.page-head h1 {
  max-width: 1120px;
  font-size: clamp(34px, 2.7vw, 44px);
  line-height: 1.18;
}

.page-head p:not(.eyebrow) {
  max-width: 1080px;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.65;
}

.grounding-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid #cadbd1;
  border-radius: 14px;
  background: #cadbd1;
}

.grounding-bar > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 66px;
  padding: 15px 17px;
  background: #f4f8f5;
}

.grounding-bar span {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.grounding-bar strong {
  font-size: 14px;
  line-height: 1.55;
}

.button {
  min-height: 44px;
  padding: 0 17px;
  font-size: 14px;
}

.button.small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.hero-panel {
  padding: 34px;
}

.hero-copy .status,
.executive-kicker {
  font-size: 13px;
}

.hero-copy h2 {
  margin-top: 18px;
  font-size: clamp(34px, 3vw, 46px);
}

.hero-copy p,
.hero-note p {
  font-size: 15px;
  line-height: 1.65;
}

.hero-note strong {
  font-size: 14px;
}

.hero-note b {
  font-size: 28px;
}

.metric-grid {
  gap: 14px;
}

.metric-card {
  padding: 20px 19px 18px;
}

.metric-top {
  font-size: 13px;
}

.metric-badge {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.metric-card strong {
  margin-top: 12px;
  font-size: clamp(26px, 2.2vw, 33px);
}

.metric-card small {
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.45;
}

.card {
  padding: 24px;
}

.card-head {
  margin-bottom: 20px;
}

.card-head h2,
.table-toolbar h2 {
  font-size: 20px;
  line-height: 1.35;
}

.card-head h3,
.facility-card h3,
.device-card h3,
.insight-card h3 {
  font-size: 17px;
  line-height: 1.4;
}

.card-head p,
.facility-card > p,
.device-card > p,
.integration-brand p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
}

.card-link {
  min-height: 34px;
  padding: 0 6px;
  font-size: 13px;
}

.status-pill,
.source-tag {
  padding: 5px 9px;
  font-size: 12px;
}

.stat-strip span,
.facility-metrics span,
.device-values span,
.recon-item span,
.cell-sub,
.activity time {
  font-size: 12px;
}

.stat-strip strong {
  font-size: 23px;
}

.facility-card,
.device-card,
.insight-card {
  padding: 20px;
}

.facility-metrics b {
  font-size: 17px;
}

.money-value,
.grounded-value {
  display: block;
  font-size: 21px;
  line-height: 1.45;
}

.data-table {
  font-size: 14px;
}

.data-table th {
  padding: 14px 15px;
  font-size: 13px;
}

.data-table td {
  padding: 15px;
  line-height: 1.5;
}

.select,
.input,
.field input,
.field select,
.field textarea {
  min-height: 42px;
  font-size: 14px;
}

.field label {
  font-size: 13px;
}

.issue {
  grid-template-columns: 42px 1fr auto;
  gap: 13px;
  padding: 15px;
}

.issue-code {
  width: 42px;
  height: 42px;
  font-size: 12px;
}

.issue strong,
.activity strong,
.timeline-copy strong {
  font-size: 14px;
}

.issue p,
.activity p,
.timeline-copy p,
.next-action,
.evidence,
.confirm-box,
.modal .modal-desc {
  font-size: 13px;
  line-height: 1.55;
}

.activity {
  padding: 11px 0;
}

.process-step {
  min-height: 94px;
  padding: 17px 9px;
}

.process-step i {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.process-step b {
  font-size: 13px;
}

.process-step small {
  margin-top: 4px;
  font-size: 12px;
}

.chart-axis,
.finance-chart text {
  font-size: 12px;
}

.legend-row,
.aging-row,
.sync-row,
.mapping {
  font-size: 13px;
}

.finding {
  font-size: 23px !important;
}

.confidence {
  font-size: 12px;
}

.executive-summary h2 {
  font-size: clamp(38px, 4vw, 58px);
}

.executive-summary p,
.executive-signal p {
  font-size: 14px;
  line-height: 1.55;
}

.executive-signal strong {
  font-size: 27px;
}

.executive-brief {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
}

.inquiry-item p,
.chat-message,
.classification-grid span {
  font-size: 14px;
  line-height: 1.55;
}

.classification-grid b {
  font-size: 15px;
}

.automation-step b {
  font-size: 14px;
}

.automation-step span {
  font-size: 12px;
}

.modal h2 {
  font-size: 25px;
}

.toast strong {
  font-size: 14px;
}

.toast span {
  font-size: 13px;
}

@media (max-width: 1180px) {
  .grounding-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar: 280px;
  }

  .sidebar {
    top: 0;
    width: 280px;
    height: 100vh;
  }

  .sidebar-scrim {
    inset: 0;
  }

  .content {
    padding: 30px 22px 70px;
  }
}

@media (max-width: 640px) {
  body,
  button,
  input,
  select,
  textarea {
    font-size: 15px;
  }

  .topbar {
    height: 64px;
    padding: 0 13px;
  }

  .topbar-actions {
    min-width: 0;
  }

  .sim-clock {
    display: none;
  }

  .search-box {
    width: 42px;
    flex: 0 0 42px;
    padding: 0;
    justify-content: center;
  }

  .sidebar {
    top: 0;
    height: 100vh;
  }

  .sidebar-scrim {
    inset: 0;
  }

  .content {
    padding: 22px 13px 60px;
  }

  .split-grid,
  .inquiry-layout {
    width: 100%;
    min-width: 0;
  }

  .split-grid > *,
  .inquiry-layout > * {
    min-width: 0;
  }

  .inquiry-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .inquiry-item,
  .inquiry-item-head {
    min-width: 0;
  }

  .inquiry-item .cell-sub {
    overflow-wrap: anywhere;
  }

  .table-card {
    overflow: hidden;
  }

  .table-scroll {
    width: 100%;
    max-width: 100%;
  }

  .page-head h1 {
    font-size: 29px;
    line-height: 1.22;
  }

  .page-head p:not(.eyebrow) {
    font-size: 15px;
  }

  .grounding-bar > div {
    grid-template-columns: 1fr;
    gap: 5px;
    min-height: 0;
    padding: 14px;
  }

  .grounding-bar span {
    font-size: 12px;
  }

  .grounding-bar strong {
    font-size: 14px;
  }

  .hero-panel {
    padding: 24px 20px;
  }

  .hero-copy h2 {
    font-size: 30px;
  }

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

  .metric-card strong {
    font-size: 25px;
  }

  .card {
    padding: 18px;
  }

  .card-head h2,
  .table-toolbar h2 {
    font-size: 19px;
  }

  .data-table {
    min-width: 880px;
    font-size: 14px;
  }

  .issue {
    grid-template-columns: 40px 1fr;
  }

  .issue > :last-child:is(.button, .status-pill) {
    grid-column: 2;
    justify-self: start;
  }

  .money-value,
  .grounded-value {
    font-size: 19px;
  }
}

@media (max-width: 390px) {
  .metric-grid {
    grid-template-columns: 1fr;
  }
}
