:root {
  color-scheme: light;
  --surface: #f5f7fa;
  --paper: #ffffff;
  --ink: #303133;
  --muted: #606266;
  --quiet: #909399;
  --line: #e4e7ed;
  --accent: #c24132;
  --accent-hover: #a93226;
  --accent-soft: #fef0f0;
  --success: #67c23a;
  --success-soft: #f0f9eb;
  --danger: #f56c6c;
  --danger-soft: #fef0f0;
  --sidebar: #1f2d3d;
  --sidebar-active: #172432;
  --sidebar-text: #c8d0da;
  --font: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

/* 2026-08 business dashboard and quote workflow */
.dashboard-scope-bar,
.overview-owner-banner,
.custom-route-library,
.fixed-attraction-preview,
.reception-rule-band {
  margin-bottom: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.dashboard-scope-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border-top: 3px solid var(--accent);
}

.dashboard-scope-bar span,
.dashboard-scope-bar p,
.overview-owner-banner span,
.overview-owner-banner small {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-scope-bar h2,
.dashboard-scope-bar p {
  margin: 3px 0 0;
}

.dashboard-scope-bar h2 { font-size: 20px; }
.dashboard-scope-bar label { min-width: 200px; }

.dashboard-metrics-eight {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-metrics-eight .dashboard-metric {
  min-height: 118px;
  border-radius: 3px;
  box-shadow: none;
}

.lead-cost-panel {
  margin-bottom: 16px;
  box-shadow: none;
}

.dashboard-chart-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compact-segmented { min-width: 132px; }
.compact-segmented button { min-height: 34px; padding: 7px 12px; }

.lead-cost-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  align-items: end;
  gap: 7px;
  min-height: 260px;
  padding: 28px 22px 18px;
  overflow-x: auto;
}

.lead-cost-column {
  display: grid;
  grid-template-rows: 24px 150px 18px 16px;
  gap: 4px;
  min-width: 40px;
  text-align: center;
}

.lead-cost-value,
.lead-cost-column small { color: var(--muted); font-size: 10px; }
.lead-cost-column strong { font-size: 11px; font-variant-numeric: tabular-nums; }
.lead-cost-bar-track { position: relative; border-bottom: 1px solid var(--line-strong); background: repeating-linear-gradient(to top, transparent 0 36px, var(--line) 37px); }
.lead-cost-bar-track i { position: absolute; right: 18%; bottom: 0; left: 18%; display: block; min-height: 3px; background: var(--accent); }

.overview-owner-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
}

.overview-owner-banner strong { font-size: 16px; }
.table-inline-select { width: calc(100% - 18px); margin: 8px 9px; min-height: 32px; padding: 5px 7px; }

.fixed-attraction-preview { margin: 20px 0 0; overflow: hidden; }
.product-description { margin-top: 14px; border: 1px solid var(--line); background: var(--paper); }
.product-description summary { display: flex; justify-content: space-between; gap: 18px; padding: 14px 16px; cursor: pointer; background: var(--soft); border-left: 4px solid var(--accent); }
.product-description summary span { color: var(--muted); font-size: 12px; }
.product-description-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-description-grid > div { padding: 16px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-description-grid strong { font-size: 13px; }
.product-description-grid ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.product-description footer { padding: 12px 16px; color: var(--muted); font-size: 12px; }
.hotel-search-entry { display: grid; grid-template-columns: minmax(260px, 1fr) 1fr; gap: 18px; align-items: end; margin-bottom: 14px; padding: 14px 16px; background: var(--soft); border-left: 4px solid var(--accent); }
.hotel-search-entry > span { padding-bottom: 10px; color: var(--muted); font-size: 12px; }
.fixed-attraction-preview header,
.fixed-attraction-preview > div { display: grid; grid-template-columns: 68px 1fr; align-items: center; min-height: 46px; border-bottom: 1px solid var(--line); }
.fixed-attraction-preview header { padding: 0 14px; grid-template-columns: 1fr auto; background: var(--soft); }
.fixed-attraction-preview > div:last-child { border-bottom: 0; }
.fixed-attraction-preview b { align-self: stretch; display: grid; place-items: center; color: var(--accent); border-right: 1px solid var(--line); }
.fixed-attraction-preview > div > span { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 14px; }
.fixed-attraction-preview em { padding: 4px 8px; color: var(--ink); font-size: 12px; font-style: normal; background: #fff; border: 1px solid var(--line); }

.reception-rule-band { padding: 0; overflow: hidden; border-top: 4px solid var(--accent); }
.reception-rule-band.is-cleared { border-top-color: #2e7d32; }
.reception-rule-band header { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.reception-rule-band header span { color: var(--accent); font-size: 11px; font-weight: 700; }
.reception-rule-band header h2 { margin: 5px 0 0; font-size: 18px; }
.reception-rule-band header > strong { color: var(--accent); }
.reception-rule-band.is-cleared header > strong { color: #2e7d32; }
.reception-rule-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px 22px 8px; }
.reception-ack { margin: 6px 22px 12px; }
.reception-rule-band > p { margin: 0; padding: 12px 22px; color: var(--accent); font-size: 12px; background: #fff7f5; border-top: 1px solid #f0c7c1; }
.reception-rule-band.is-cleared > p { color: #2e7d32; background: #f4faf4; border-top-color: #cfe3cf; }

.itinerary-summary-line { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-bottom: 0; }
.itinerary-summary-line span { display: grid; gap: 5px; min-width: 150px; padding: 12px 16px; color: var(--muted); font-size: 11px; border-right: 1px solid var(--line); }
.itinerary-summary-line strong { color: var(--ink); font-size: 14px; }

.custom-route-library { padding: 0; overflow: hidden; }
.custom-route-name-row { display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 18px; align-items: end; margin-bottom: 16px; padding: 14px 16px; background: var(--soft); border-left: 4px solid var(--accent); }
.custom-route-name-row > span { display: grid; gap: 4px; min-width: 180px; padding-bottom: 9px; color: var(--muted); font-size: 11px; }
.custom-route-name-row > span strong { color: var(--ink); font-size: 13px; }
.custom-route-library > header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.custom-route-library h2,
.custom-route-library p { margin: 3px 0 0; }
.custom-route-library p,
.custom-route-library header span { color: var(--muted); font-size: 12px; }
.custom-route-library-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.custom-route-library-list article { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 94px; padding: 16px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.custom-route-library-list article.is-current { box-shadow: inset 4px 0 0 var(--accent); }
.custom-route-library-list article div { display: grid; gap: 4px; min-width: 0; }
.custom-route-library-list article span,
.custom-route-library-list article small { color: var(--muted); font-size: 11px; }

@media (max-width: 1200px) {
  .dashboard-metrics-eight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .dashboard-scope-bar,
  .dashboard-chart-actions,
  .reception-rule-band header { align-items: stretch; flex-direction: column; }
  .dashboard-metrics-eight,
  .reception-rule-fields,
  .custom-route-library-list { grid-template-columns: 1fr; }
  .overview-owner-banner { grid-template-columns: 1fr; }
  .lead-cost-chart { min-width: 680px; }
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--paper);
  border-right: 1px solid var(--line);
}

.brand-block {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 84px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: block;
  width: 10px;
  height: 40px;
  background: var(--accent);
}

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

.brand-block strong {
  font-size: 18px;
  letter-spacing: -0.04em;
}

.brand-block div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.primary-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 12px;
  overflow-y: auto;
  scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar {
  display: none;
}

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

.nav-group-label {
  padding: 0 12px 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.nav-item span {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.nav-item strong {
  font-size: 13px;
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}

.sidebar-foot {
  margin-top: auto;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.sidebar-foot p {
  margin: 10px 0 16px;
  font-size: 13px;
  line-height: 1.5;
}

.demo-label,
.status-tag {
  display: inline-block;
  padding: 5px 8px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid var(--accent);
}

.text-button {
  padding: 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
}

.danger-text-button {
  min-height: 34px;
  padding: 6px 0;
  color: var(--danger);
  font-weight: 700;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
}

.danger-text-button:disabled {
  color: var(--muted);
  border-bottom-style: dashed;
}

.main-stage {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 108px;
  padding: 20px 32px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar p,
.topbar h1 {
  margin: 0;
}

.topbar p {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.topbar p span + span {
  padding-left: 12px;
  color: var(--muted);
  border-left: 1px solid var(--line);
}

.topbar h1 {
  margin-top: 8px;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.shift-state {
  display: grid;
  gap: 4px;
  min-width: 172px;
  padding: 10px 0 10px 16px;
  border-left: 3px solid var(--accent);
}

.shift-state span,
.shift-state small {
  color: var(--muted);
  font-size: 11px;
}

.shift-state strong {
  font-size: 15px;
}

.view-root {
  padding: 24px 32px 48px;
}

.view-root > * {
  animation: view-in 180ms ease both;
}

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

.number-axis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
}

.axis-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: end;
  min-height: 126px;
  padding: 22px 24px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.axis-item > strong {
  color: var(--accent);
  font-size: clamp(52px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.82;
}

.axis-item span,
.axis-item small {
  display: block;
}

.axis-item span {
  font-weight: 700;
}

.axis-item small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr);
  border-left: 1px solid var(--line);
}

.lead-focus,
.order-focus {
  min-height: 310px;
  padding: 24px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading,
.profit-ledger header,
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.section-heading span,
.section-heading h2 {
  display: block;
  margin: 0;
}

.section-heading > div > span,
.quote-summary > span,
.profit-ledger header > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.section-heading h2,
.quote-summary h2 {
  margin-top: 8px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.lead-line {
  display: grid;
  gap: 16px;
  margin-top: 38px;
}

.lead-line strong {
  font-size: 36px;
  letter-spacing: -0.06em;
}

.lead-line span,
.lead-line em {
  padding-top: 10px;
  font-style: normal;
  border-top: 1px solid var(--line);
}

.lead-line em {
  color: var(--accent);
  font-weight: 700;
}

.order-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.order-flow li {
  min-height: 76px;
  padding: 12px;
  color: var(--muted);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.order-flow li span,
.order-flow li strong {
  display: block;
}

.order-flow li span {
  margin-bottom: 14px;
  font-size: 10px;
}

.order-flow li strong {
  font-size: 12px;
}

.order-flow li.is-done,
.order-flow li.is-current {
  color: var(--ink);
}

.order-flow li.is-current {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.primary-button,
.secondary-button {
  min-height: 40px;
  padding: 10px 16px;
  font-weight: 700;
  border: 1px solid var(--accent);
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

.primary-button {
  color: var(--paper);
  background: var(--accent);
}

.primary-button:hover {
  color: var(--accent);
  background: var(--paper);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.secondary-button {
  color: var(--accent);
  background: var(--paper);
}

.secondary-button:hover {
  color: var(--paper);
  background: var(--accent);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent);
  outline-offset: 2px;
}

.nav-item.is-active:focus-visible {
  outline: 1px solid rgb(255 255 255 / 45%);
  outline-offset: -3px;
}

.profit-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border-left: 1px solid var(--line);
}

.profit-strip div {
  min-height: 96px;
  padding: 20px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profit-strip span,
.profit-strip strong {
  display: block;
}

.profit-strip span {
  color: var(--muted);
  font-size: 12px;
}

.profit-strip strong {
  margin-top: 14px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.profit-strip .profit-emphasis {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}

.profit-strip .profit-emphasis span {
  color: var(--paper);
}

.section-intro {
  max-width: none;
  margin: 0;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
}

.data-table {
  margin-top: 20px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.table-row {
  display: grid;
  grid-template-columns: 0.65fr 0.75fr 1.25fr 0.65fr 0.7fr 0.85fr 0.75fr 0.75fr 0.85fr;
}

.prospect-row,
.order-search-row {
  display: grid;
  align-items: center;
  min-width: 980px;
}

.prospect-row {
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.85fr 1.25fr 0.75fr 0.8fr 0.65fr;
}

.order-search-row {
  grid-template-columns: 1.2fr 0.8fr 0.9fr 1.35fr 0.8fr 0.75fr 0.7fr;
}

.prospect-row > *,
.order-search-row > * {
  min-width: 0;
  padding: 13px 14px;
  overflow-wrap: anywhere;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.prospect-table,
.order-search-table {
  overflow-x: auto;
}

.order-search-row.is-current {
  background: var(--accent-soft);
}

.record-number-button {
  min-height: 42px;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  text-align: left;
  background: transparent;
  border-top: 0;
  border-bottom-color: var(--line);
  border-left: 0;
  border-radius: 0;
  cursor: pointer;
}

.record-number-button:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  background: var(--accent-soft);
}

.interaction-hint {
  margin-top: 12px;
}

.table-row > * {
  min-width: 0;
  padding: 16px;
  overflow-wrap: anywhere;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.rule-note {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  margin-top: 24px;
  padding: 24px;
  background: var(--paper);
  border-left: 6px solid var(--accent);
}

.rule-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  margin-top: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.editor-main,
.quote-summary {
  padding: 24px;
}

.editor-main {
  border-right: 1px solid var(--line);
}

label,
fieldset {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
}

textarea {
  resize: vertical;
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

fieldset {
  padding: 0;
  border: 0;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.segmented button {
  min-height: 44px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-right: 0;
}

.segmented button:last-child {
  border-right: 1px solid var(--line);
}

.segmented button.is-selected {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}

.breakfast-segmented {
  grid-template-columns: repeat(2, 1fr);
}

.check-line {
  display: flex;
  align-items: center;
}

.check-line input {
  width: 16px;
  min-height: auto;
}

.quote-summary h2 {
  margin: 14px 0 38px;
  color: var(--accent);
  font-size: 46px;
}

dl {
  margin: 0;
}

.quote-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  text-align: right;
}

.profit-ledger {
  margin-top: 20px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.profit-ledger header strong {
  color: var(--accent);
  font-size: 42px;
  letter-spacing: -0.05em;
}

.empty-state {
  display: grid;
  justify-items: start;
  min-height: 480px;
  align-content: center;
  padding: 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 0;
}

.empty-state > span {
  color: var(--accent);
  font-size: 120px;
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.8;
}

.empty-state h2 {
  margin: 32px 0 8px;
  font-size: 32px;
}

.empty-state p {
  margin: 0 0 28px;
  color: var(--muted);
}

.group-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  margin-top: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.group-identity,
.group-status-control {
  padding: 32px;
}

.group-identity {
  border-right: 1px solid var(--line);
}

.group-identity > span,
.group-status-control,
.group-facts dt,
.group-facts label,
.group-section-heading > span,
.group-section-heading p,
.group-summary-axis span,
.group-resource-grid span,
.group-cost-strip span {
  color: var(--muted);
  font-size: 11px;
}

.group-identity > div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
}

.group-identity h2 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -0.06em;
}

.group-identity p {
  margin: 28px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.group-status-control {
  align-content: center;
  margin: 0;
}

.group-status-control select {
  margin-top: 12px;
  color: var(--accent);
  font-weight: 700;
  border-color: var(--accent);
}

.compact-button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12px;
}

.group-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--paper);
  border-left: 1px solid var(--line);
}

.group-facts dl,
.group-facts label {
  min-width: 0;
  min-height: 104px;
  padding: 20px;
  margin: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.group-facts dd {
  margin-top: 18px;
  overflow-wrap: anywhere;
  text-align: left;
  font-weight: 700;
}

.group-facts input {
  margin-top: 10px;
}

.group-section-heading {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 18px;
  align-items: baseline;
  margin-top: 42px;
  padding-bottom: 12px;
  border-bottom: 4px solid var(--accent);
}

.group-section-heading > span {
  color: var(--accent);
  font-weight: 700;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--sidebar);
  border-radius: 4px;
}

.section-icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.group-section-heading h2,
.group-section-heading p {
  margin: 0;
}

.group-section-heading h2 {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.group-table,
.itinerary-list,
.group-resource-grid,
.document-list {
  background: var(--paper);
  border-left: 1px solid var(--line);
}

.group-table-row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr 0.8fr 0.8fr;
}

.group-table-row > * {
  min-width: 0;
  padding: 18px;
  overflow-wrap: anywhere;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.group-table-head {
  color: var(--muted);
  font-size: 11px;
}

.group-summary-axis,
.group-cost-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--paper);
  border-left: 1px solid var(--line);
}

.group-summary-axis > div,
.group-cost-strip > div {
  min-height: 112px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.group-summary-axis span,
.group-summary-axis strong,
.group-cost-strip span,
.group-cost-strip strong {
  display: block;
}

.group-summary-axis strong,
.group-cost-strip strong {
  margin-top: 18px;
  font-size: 24px;
}

.itinerary-row {
  display: grid;
  grid-template-columns: 80px 130px 1.3fr 1fr;
}

.itinerary-row.is-editable {
  grid-template-columns: 80px 130px 1.3fr 1fr 72px;
}

.itinerary-row > * {
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.itinerary-row strong {
  color: var(--accent);
}

.itinerary-row span {
  color: var(--muted);
}

.itinerary-edit-toolbar {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  color: var(--muted);
  background: var(--accent-soft);
  border: 1px solid #f4c7c3;
  border-bottom: 0;
}

.itinerary-edit-toolbar > div {
  display: flex;
  gap: 10px;
}

.group-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.group-resource-grid > div {
  display: grid;
  grid-template-columns: 0.55fr 1.2fr 0.75fr;
}

.group-resource-grid > div > * {
  min-width: 0;
  padding: 18px;
  overflow-wrap: anywhere;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.group-resource-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.document-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.document-list > div {
  min-height: 104px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.document-list strong,
.document-list span {
  display: block;
}

.document-list span {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.group-cost-strip {
  grid-template-columns: repeat(3, 1fr);
}

.profit-ledger header {
  padding-bottom: 32px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 0.7fr 1.6fr 0.65fr 0.7fr 0.8fr;
  border-top: 1px solid var(--line);
}

.ledger-row > * {
  padding: 16px 0;
}

.ledger-row > *:last-child {
  text-align: right;
}

.ledger-head {
  color: var(--muted);
  font-size: 11px;
}

.ledger-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 28px;
  border-top: 4px solid var(--accent);
}

.ledger-total strong {
  color: var(--accent);
  font-size: 42px;
}

.page-toolbar,
.order-filter-panel,
.resource-picker,
.cooperation-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-top: 20px;
}

.integration-state {
  display: grid;
  gap: 5px;
  padding-left: 18px;
  border-left: 4px solid var(--accent);
}

.integration-state span,
.integration-state strong {
  display: block;
}

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

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  max-width: 520px;
  margin-top: 20px;
}

.mode-switch button,
.binary-choice button {
  min-height: 44px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
}

.mode-switch button + button,
.binary-choice button + button {
  border-left: 0;
}

.mode-switch button.is-selected,
.binary-choice button.is-selected {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}

.quote-workspace .section-heading,
.custom-route-board .section-heading {
  margin-bottom: 32px;
}

.price-table,
.ai-service-strip,
.order-detail-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.price-table > div,
.ai-service-strip > div,
.order-detail-strip > span {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.price-table span,
.price-table strong,
.ai-service-strip span,
.ai-service-strip strong,
.order-detail-strip span,
.order-detail-strip strong {
  display: block;
}

.price-table span,
.ai-service-strip span,
.order-detail-strip > span {
  color: var(--muted);
  font-size: 11px;
}

.price-table strong,
.ai-service-strip strong,
.order-detail-strip strong {
  margin-top: 12px;
  color: var(--ink);
  font-size: 16px;
}

.form-note,
.action-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.custom-route-board,
.order-record,
.resource-workspace {
  margin-top: 20px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.attraction-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.attraction-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-content: start;
  min-height: 112px;
  padding: 18px;
  margin: 0;
  color: var(--ink);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.attraction-check-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 0;
  color: inherit;
}

.attraction-action {
  grid-column: 2;
  margin-top: auto;
}

.attraction-option input {
  width: 16px;
  min-height: auto;
}

.attraction-option span,
.attraction-option em {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.attraction-option.has-issue {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}

.attraction-option.has-issue span,
.attraction-option.has-issue em {
  color: var(--paper);
}

.inline-empty {
  min-height: 110px;
  padding: 32px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
}

.attraction-checklist .inline-empty {
  grid-column: 1 / -1;
  border-top: 0;
  border-left: 0;
}

.ai-result {
  margin-top: 28px;
  padding: 24px;
  border-left: 6px solid var(--accent);
  background: var(--surface);
}

.ai-result > p {
  color: var(--muted);
  line-height: 1.6;
}

.ai-result.has-error,
.ai-result.is-reasonable {
  color: var(--paper);
  background: var(--accent);
}

.ai-result.has-error p,
.ai-result.is-reasonable p {
  color: var(--paper);
}

.ai-issue-list,
.generated-itinerary {
  display: grid;
  margin-top: 22px;
  border-top: 1px solid currentColor;
}

.ai-issue-list > div,
.generated-itinerary > div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1.2fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid currentColor;
}

.ai-issue-list em {
  font-style: normal;
}

.generated-itinerary h3 {
  margin-bottom: 0;
}

.generated-itinerary > div {
  grid-template-columns: 120px 1fr;
}

.meal-note {
  margin-top: 18px;
  padding: 20px;
  background: var(--paper);
  border-left: 4px solid var(--accent);
}

.order-filter-panel {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.order-filter-panel label {
  flex: 1 1 260px;
  margin: 0;
}

.order-record-head {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.order-record-head span {
  color: var(--muted);
  font-size: 11px;
}

.order-record-head h2,
.order-record-head strong {
  margin: 10px 0 0;
  color: var(--accent);
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.05em;
}

.copy-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.order-meta-grid,
.order-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.order-meta-grid dl,
.order-status-grid label {
  min-width: 0;
  padding: 14px;
  margin: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.order-meta-grid dd {
  margin-top: 14px;
  text-align: left;
  font-weight: 700;
}

.order-status-grid {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 0;
}

.order-status-grid select {
  margin-top: 10px;
}

.order-detail-strip {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
}

.record-action-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 20px;
  padding: 14px 0;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}

.resource-section-heading {
  display: grid;
  grid-template-columns: 54px 1fr 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--accent);
}

.booking-stage-control {
  min-width: 150px;
  margin: 0;
  color: var(--muted);
}

.booking-stage-control select {
  min-height: 38px;
  margin-top: 5px;
  color: var(--accent);
  font-weight: 700;
}

.resource-section-heading > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.resource-section-heading h2,
.resource-section-heading p {
  margin: 0;
}

.resource-section-heading p {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.resource-workspace {
  margin-top: 0;
}

.resource-picker {
  margin-top: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.resource-picker label {
  flex: 1 1 320px;
  margin: 0;
}

.resource-detail {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  margin-top: 24px;
  border: 1px solid var(--line);
}

.resource-photo,
.resource-photo-placeholder {
  display: grid;
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  align-content: center;
  justify-items: center;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.resource-photo-placeholder span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.resource-detail dl {
  padding: 10px 24px;
}

.resource-detail dl > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.resource-detail dd {
  text-align: left;
}

.cooperation-editor {
  justify-content: flex-start;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.cooperation-editor label {
  width: min(280px, 100%);
  margin: 0;
}

.cooperation-editor span {
  color: var(--muted);
  font-size: 12px;
}

.hotel-price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.guide-price-grid {
  grid-template-columns: repeat(2, 1fr);
}

.binary-choice {
  display: grid;
  grid-template-columns: 1fr 100px 100px;
  align-items: center;
  margin-bottom: 24px;
}

.binary-choice > span {
  font-weight: 700;
}

.meal-booking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.meal-booking-grid .binary-choice {
  margin: 0;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.transfer-service-card,
.meal-resource-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.transfer-service-card .binary-choice {
  padding: 0;
  border: 0;
}

.transfer-service-card .field-pair,
.meal-resource-card .field-pair {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.meal-resource-card > span {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 700;
}

.meal-requirement-card fieldset + fieldset {
  margin-top: 20px;
}

.meal-resource-card label:last-child {
  margin-bottom: 0;
}

.linked-quote-summary,
.itinerary-quote-board {
  margin-top: 28px;
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.linked-quote-summary header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  padding-bottom: 22px;
  border-bottom: 4px solid var(--accent);
}

.linked-quote-summary header span {
  color: var(--muted);
}

.linked-quote-summary header strong {
  color: var(--accent);
  font-size: 38px;
}

.linked-quote-lines {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
}

.linked-quote-lines > div {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.linked-quote-lines span {
  color: var(--muted);
  font-size: 11px;
}

.itinerary-quote-board .section-heading {
  align-items: center;
}

.itinerary-quote-board .section-heading .action-row {
  margin-top: 0;
}

.quote-itinerary-list {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.quote-itinerary-list > div {
  display: grid;
  grid-template-columns: 80px minmax(260px, 1.5fr) minmax(200px, 0.8fr) 150px;
}

.quote-itinerary-list > div > * {
  padding: 18px;
  font-style: normal;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-itinerary-list strong {
  color: var(--accent);
}

.quote-itinerary-list em {
  color: var(--muted);
}

.itinerary-delete,
.ticket-delete {
  display: grid;
  align-content: center;
}

.itinerary-row-actions {
  display: grid;
  gap: 7px;
}

.deal-conversion {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 4px solid var(--accent);
}

.deal-conversion span,
.deal-conversion strong,
.deal-conversion p {
  display: block;
  margin: 0;
}

.deal-conversion span,
.deal-conversion p {
  color: var(--muted);
  font-size: 12px;
}

.deal-conversion strong {
  margin: 8px 0;
  color: var(--accent);
  font-size: 34px;
}

.profit-order-selector {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  margin-top: 20px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.profit-order-selector > * {
  min-width: 0;
  min-height: 78px;
  padding: 16px;
  margin: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profit-order-selector > div {
  display: grid;
  gap: 14px;
  align-content: center;
}

.profit-order-selector span {
  color: var(--muted);
  font-size: 11px;
}

.profit-order-selector strong {
  font-size: 18px;
}

.order-context-bar {
  position: sticky;
  top: 108px;
  z-index: 18;
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) auto minmax(150px, 0.8fr) minmax(210px, 1fr);
  align-items: stretch;
  margin-top: 16px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-bottom: 3px solid var(--accent);
}

.order-context-bar > div,
.order-context-bar > button {
  min-width: 0;
  min-height: 68px;
  padding: 14px 16px;
  border-top: 0;
  border-left: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.order-context-bar > div {
  display: grid;
  align-content: center;
  gap: 10px;
}

.order-context-bar span,
.custom-ticket-source span,
.ticket-ai-state span {
  color: var(--muted);
  font-size: 11px;
}

.order-context-bar strong {
  overflow-wrap: anywhere;
}

.order-context-bar > div:first-child strong {
  color: var(--accent);
  font-size: 16px;
}

.order-context-bar > button {
  align-self: stretch;
  color: var(--accent);
  background: var(--paper);
  border-color: var(--line);
}

.ticket-route-lock {
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) minmax(260px, 1.45fr) auto;
  align-items: stretch;
  margin-top: 42px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.ticket-route-lock > div {
  display: grid;
  align-content: center;
  gap: 7px;
  min-height: 66px;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
}

.ticket-route-lock span {
  color: var(--muted);
  font-size: 11px;
}

.ticket-route-lock button {
  align-self: center;
  margin: 10px 14px;
}

.ticket-control-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(200px, 0.7fr) auto;
  gap: 24px;
  align-items: end;
  margin-top: 0;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.ticket-control-panel label {
  margin: 0;
}

.custom-ticket-source,
.ticket-ai-state {
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 68px;
  padding-left: 18px;
  border-left: 4px solid var(--accent);
}

.ticket-control-panel .action-row {
  margin-top: 0;
}

.ticket-validation {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  margin-top: 30px;
  padding: 18px 22px;
  border: 1px solid currentColor;
}

.ticket-validation.is-valid {
  color: var(--success);
  background: var(--success-soft);
}

.ticket-validation.is-invalid {
  color: var(--danger);
  background: var(--danger-soft);
}

.ticket-validation span {
  font-size: 12px;
  font-weight: 700;
}

.ticket-list {
  margin-top: 0;
  overflow-x: auto;
  background: var(--paper);
  border-left: 1px solid var(--line);
}

.ticket-row {
  display: grid;
  grid-template-columns: 90px minmax(180px, 1.1fr) minmax(120px, 0.7fr) minmax(205px, 1fr) 120px minmax(190px, 0.9fr) minmax(130px, 0.7fr) minmax(120px, 0.65fr) 120px;
  min-width: 1450px;
}

@media (max-width: 1440px) {
  .ticket-row {
    grid-template-columns: 70px minmax(150px, 1fr) 105px 170px 110px 175px 118px 108px 105px;
    min-width: 1180px;
  }

}

@media (max-width: 720px) {
  .ticket-route-lock {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .ticket-route-lock > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ticket-route-lock button {
    justify-self: stretch;
  }
}

.ticket-row > * {
  min-width: 0;
  min-height: 66px;
  padding: 14px 16px;
  overflow-wrap: anywhere;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticket-row > select {
  margin: 10px;
  min-height: 44px;
  padding: 8px 10px;
}

.ticket-row-head {
  color: var(--muted);
  font-size: 11px;
}

.ticket-row-head > * {
  min-height: 46px;
}

.ticket-row.is-missing {
  color: var(--danger);
  background: var(--danger-soft);
}

.ticket-check {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.ticket-check input {
  width: 17px;
  min-height: 17px;
}

.ticket-unit-prices,
.ticket-group-price {
  display: grid;
  align-content: center;
  gap: 7px;
}

.ticket-party-count {
  display: grid;
  align-content: center;
  gap: 5px;
}

.ticket-party-count strong {
  font-size: 14px;
  white-space: nowrap;
}

.ticket-party-count span {
  color: var(--muted);
  font-size: 10px;
}

.ticket-price-rule {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 13px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.ticket-price-rule strong {
  color: var(--accent);
  font-size: 12px;
}

.ticket-price-rule span {
  font-size: 12px;
  font-weight: 700;
}

.ticket-price-rule small {
  color: var(--muted);
  font-size: 11px;
}

.ticket-unit-prices label {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.ticket-unit-prices input,
.ticket-group-price input {
  min-height: 38px;
  padding: 7px 9px;
}

.ticket-group-price > span {
  color: var(--muted);
  font-size: 11px;
}

.ticket-group-price button {
  justify-self: start;
  padding: 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.ticket-group-price button:disabled {
  color: var(--quiet);
  cursor: not-allowed;
}

.ticket-list > .inline-empty {
  border-top: 0;
  border-left: 0;
}

.ticket-removed-panel {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.ticket-removed-panel > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.ticket-removed-panel > header div {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.ticket-removed-panel > header span,
.ticket-removed-panel > header small {
  color: var(--muted);
  font-size: 11px;
}

.ticket-removed-panel article {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.ticket-removed-panel article:last-child {
  border-bottom: 0;
}

@media (max-width: 1440px) {
  .ticket-row > * {
    padding-right: 10px;
    padding-left: 10px;
  }
}

dialog small {
  color: var(--muted);
  line-height: 1.5;
}

dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 28px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
}

dialog::backdrop {
  background: rgb(0 0 0 / 45%);
}

.dialog-head {
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
  margin: 0;
}

.full-width {
  width: 100%;
}

/* Element-style desktop workbench theme, matched to the selected reference. */
body {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.app-shell {
  grid-template-columns: 220px minmax(0, 1fr);
  transition: grid-template-columns 180ms ease;
}

.sidebar {
  color: var(--sidebar-text);
  background: var(--sidebar);
  border-right: 0;
  transition: width 180ms ease;
}

.brand-block {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 56px;
  padding: 0 24px;
  text-align: center;
  border-bottom-color: rgb(255 255 255 / 10%);
}

.brand-block .brand-compact {
  display: none;
}

.brand-block .brand-mark {
  display: none;
}

.brand-block strong {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-block div > span {
  display: none;
}

.primary-nav {
  gap: 12px;
  padding: 12px 0;
}

.nav-group {
  gap: 0;
}

.nav-group-label {
  padding: 10px 24px 6px;
  color: #8190a3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.nav-item {
  grid-template-columns: 22px 1fr;
  gap: 8px;
  min-height: 44px;
  padding: 10px 24px;
  color: var(--sidebar-text);
  border: 0;
  border-left: 3px solid transparent;
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.nav-icon img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.nav-item span {
  color: #8190a3;
  font-size: 10px;
}

.nav-item strong {
  font-size: 14px;
  font-weight: 400;
}

.nav-item:hover,
.nav-item.is-active {
  color: #fff;
  background: var(--sidebar-active);
  border-color: var(--accent);
}

.nav-item:hover span,
.nav-item.is-active span {
  color: #fff;
}

.sidebar-foot {
  padding: 14px 24px 18px;
  border-top-color: rgb(255 255 255 / 10%);
}

.sidebar-foot p {
  margin: 8px 0 10px;
  color: var(--sidebar-text);
  font-size: 12px;
}

.demo-label {
  color: #f7b4ad;
  border-color: rgb(247 180 173 / 45%);
}

.sidebar-foot .text-button {
  color: #fff;
}

.topbar {
  min-height: 56px;
  padding: 0 20px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(0 0 0 / 4%);
}

.topbar-leading {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.sidebar-toggle {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
  background: var(--surface);
}

.sidebar-toggle img {
  display: block;
  width: 22px;
  height: 22px;
}

.app-shell.is-sidebar-collapsed {
  grid-template-columns: 64px minmax(0, 1fr);
}

.app-shell.is-sidebar-collapsed .brand-block {
  display: grid;
  place-items: center;
  padding: 0;
}

.app-shell.is-sidebar-collapsed .brand-block > div {
  display: none;
}

.app-shell.is-sidebar-collapsed .brand-compact {
  display: block;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.app-shell.is-sidebar-collapsed .primary-nav {
  gap: 0;
  padding-top: 12px;
}

.app-shell.is-sidebar-collapsed .nav-group {
  display: contents;
}

.app-shell.is-sidebar-collapsed .nav-group-label,
.app-shell.is-sidebar-collapsed .nav-item strong,
.app-shell.is-sidebar-collapsed .sidebar-foot {
  display: none;
}

.app-shell.is-sidebar-collapsed .nav-item {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 48px;
  padding: 12px 0;
}

.topbar-title {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.topbar p {
  gap: 6px;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 400;
}

.topbar p span + span {
  padding-left: 6px;
  color: var(--quiet);
  border-left-color: var(--line);
}

.topbar h1 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.shift-state {
  min-width: 184px;
  padding-left: 14px;
  border-left: 0;
  text-align: right;
}

.shift-state span,
.shift-state small {
  color: var(--quiet);
  font-size: 11px;
}

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

.view-root {
  padding: 16px 16px 40px;
}

.view-root > * {
  animation-duration: 120ms;
}

.section-intro {
  min-height: auto;
  margin: 0 0 14px;
  padding: 13px 16px;
  color: var(--muted);
  font-size: 13px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}

.number-axis,
.split-grid,
.profit-strip,
.data-table,
.editor-grid,
.custom-route-board,
.linked-quote-summary,
.itinerary-quote-board,
.order-record,
.order-filter-panel,
.group-hero,
.group-facts,
.group-table,
.group-summary-axis,
.itinerary-list,
.group-resource-grid,
.document-list,
.group-cost-strip,
.resource-workspace,
.meal-booking-grid,
.ticket-control-panel,
.ticket-validation,
.ticket-list,
.profit-order-selector,
.profit-ledger,
.order-context-bar,
.page-toolbar,
.rule-note {
  border-color: var(--line);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 3%);
}

.number-axis {
  margin-bottom: 14px;
  background: var(--paper);
}

.number-axis > div {
  min-height: 104px;
  padding: 18px 22px;
}

.number-axis strong {
  color: var(--accent);
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 600;
}

.number-axis b,
.section-heading h2,
.resource-section-heading h2 {
  font-weight: 600;
}

.split-grid {
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--paper);
}

.lead-focus,
.order-focus {
  min-height: 300px;
  padding: 22px 24px;
}

.lead-line strong {
  font-size: 30px;
  font-weight: 600;
}

.section-heading h2 {
  font-size: 22px;
  letter-spacing: 0;
}

.profit-strip div {
  min-height: 80px;
  padding: 16px 20px;
}

.profit-strip strong {
  font-size: 24px;
  font-weight: 600;
}

.profit-emphasis {
  color: var(--paper);
  background: var(--accent);
}

button,
input,
select,
textarea {
  font-size: 14px;
}

input,
select,
textarea {
  min-height: 36px;
  padding: 7px 10px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid #dcdfe6;
  border-radius: 4px;
}

textarea {
  min-height: 88px;
}

.primary-button,
.secondary-button {
  min-height: 34px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
}

.primary-button {
  background: var(--accent);
  border-color: var(--accent);
}

.primary-button:hover,
.secondary-button:hover {
  color: #fff;
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.secondary-button {
  color: var(--accent);
  background: #fff;
  border-color: #d8dce3;
}

.status-tag {
  padding: 2px 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  background: var(--accent-soft);
  border: 1px solid #f4c7c3;
  border-radius: 4px;
}

.data-table,
.editor-grid,
.order-record,
.profit-ledger,
.resource-workspace,
.ticket-list {
  background: var(--paper);
}

.table-row,
.ticket-row,
.ledger-row {
  min-height: 42px;
  color: var(--muted);
  font-size: 14px;
}

.table-head,
.ticket-row-head,
.ledger-head {
  color: var(--quiet);
  font-size: 13px;
  font-weight: 600;
  background: #fafafa;
}

.quote-workspace {
  margin-top: 14px;
}

.editor-main,
.quote-summary {
  padding: 22px 24px;
}

.quote-summary h2 {
  color: var(--accent);
  font-size: 36px;
  font-weight: 600;
}

.mode-switch {
  width: min(540px, 100%);
  margin: 0;
  border-color: #dcdfe6;
  border-radius: 4px;
  overflow: hidden;
}

.mode-switch button,
.segmented button,
.binary-choice button {
  min-height: 36px;
  color: var(--muted);
  background: #fff;
  border-color: #dcdfe6;
}

.mode-switch button.is-selected,
.segmented button.is-selected,
.binary-choice button.is-selected {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.order-context-bar {
  position: sticky;
  top: 56px;
  z-index: 18;
  grid-template-columns: minmax(180px, 1.15fr) auto minmax(160px, 1fr) minmax(150px, 1fr) minmax(180px, 1.25fr);
  min-height: 68px;
  margin: 0 0 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--accent);
}

.order-context-bar > div,
.order-context-bar > button {
  min-height: 66px;
}

.order-context-bar > div {
  padding: 12px 16px;
}

.order-context-bar > button {
  align-self: center;
  min-height: 32px;
  margin: 0 10px;
}

.order-context-bar span {
  color: var(--quiet);
  font-size: 11px;
}

.order-context-bar strong,
.order-context-bar > div:first-child strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.order-context-bar > div:first-child strong {
  color: var(--accent);
}

.resource-section-heading {
  margin-top: 22px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--accent);
}

.resource-section-heading > span {
  color: var(--accent);
}

.resource-workspace {
  padding: 18px 20px;
}

.order-record-head h2,
.order-record-head strong,
.profit-ledger header strong {
  color: var(--accent);
  font-size: 30px;
  font-weight: 600;
}

.order-meta-grid > *,
.order-status-grid > *,
.order-detail-strip > * {
  min-height: 74px;
  padding: 14px 16px;
}

.order-detail-strip {
  grid-template-columns: repeat(5, 1fr);
}

.profit-ledger header {
  min-height: 92px;
  padding: 20px 24px;
}

dialog {
  padding: 22px;
  border-color: var(--line);
  border-radius: 6px;
  box-shadow: 0 12px 36px rgb(0 0 0 / 18%);
}

.dialog-head {
  margin-bottom: 20px;
  padding-bottom: 14px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-metric {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 20px 22px;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 3%);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.dashboard-metric::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: currentColor;
}

.dashboard-metric:hover,
.dashboard-metric:focus-visible {
  border-color: currentColor;
  box-shadow: 0 8px 22px rgb(31 45 61 / 9%);
  transform: translateY(-2px);
}

.dashboard-metric > span,
.dashboard-metric > small {
  color: var(--muted);
}

.dashboard-metric > span {
  font-size: 13px;
}

.dashboard-metric > strong {
  color: currentColor;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.dashboard-metric > small {
  padding-right: 76px;
  font-size: 12px;
}

.dashboard-metric > em {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: currentColor;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.dashboard-metric.is-red { color: #c24132; }
.dashboard-metric.is-blue { color: #409eff; }
.dashboard-metric.is-orange { color: #e6a23c; }
.dashboard-metric.is-purple { color: #8b5cf6; }
.dashboard-metric.is-green { color: #67c23a; }

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.75fr);
  gap: 16px;
  align-items: start;
}

.dashboard-panel {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 3%);
}

.dashboard-panel > header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  min-height: 76px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.dashboard-panel > header span,
.dashboard-panel > header h2 {
  display: block;
  margin: 0;
}

.dashboard-panel > header span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.dashboard-panel > header h2 {
  font-size: 19px;
  font-weight: 600;
}

.dashboard-order-table {
  overflow-x: auto;
}

.dashboard-order-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.1fr) minmax(90px, 0.8fr) minmax(130px, 1.2fr) minmax(82px, 0.7fr) 68px 62px;
  align-items: center;
  min-width: 620px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}

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

.dashboard-order-row > * {
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-order-head {
  min-height: 46px;
  color: var(--muted);
  background: #fafbfc;
}

.dashboard-order-row .record-number-button {
  align-self: stretch;
  padding-left: 14px;
}

.dashboard-order-row .status-tag {
  justify-self: start;
  padding: 4px 7px;
  overflow: visible;
  font-size: 10px;
}

.dashboard-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 20px;
}

.dashboard-quick-grid button {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 2px 8px;
  align-items: center;
  min-height: 68px;
  padding: 11px 12px;
  color: var(--ink);
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.dashboard-quick-grid button:hover,
.dashboard-quick-grid button:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.dashboard-quick-grid button > span {
  grid-row: 1 / 3;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.dashboard-quick-icon {
  grid-row: 1 / 3;
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.dashboard-quick-grid button > strong {
  font-size: 13px;
}

.dashboard-quick-grid button > small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.dashboard-todo-list {
  padding: 0 20px 18px;
}

.dashboard-todo-list > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.dashboard-todo-list dt {
  color: var(--muted);
}

.dashboard-todo-list dd {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.admin-library-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  min-height: 102px;
  margin-bottom: 16px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 3%);
}

.admin-library-toolbar span,
.admin-library-toolbar h2,
.admin-library-toolbar p {
  display: block;
  margin: 0;
}

.admin-library-toolbar span {
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.admin-library-toolbar h2 {
  font-size: 22px;
  font-weight: 600;
}

.admin-library-toolbar p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.admin-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: 16px;
}

.admin-library-card {
  display: grid;
  grid-template-rows: 176px 1fr auto;
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 3%);
}

.admin-library-cover {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--quiet);
  background: #eef1f5;
}

.admin-library-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-library-cover em {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  background: rgb(31 45 61 / 78%);
  border-radius: 3px;
}

.admin-library-body {
  padding: 17px 18px 14px;
}

.admin-library-name {
  display: block;
  max-width: 100%;
  margin: 0 0 13px;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  border: 0;
}

.admin-library-name:hover,
.admin-library-name:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.admin-library-meta {
  display: grid;
  gap: 6px;
}

.admin-library-meta span,
.admin-library-body p {
  color: var(--muted);
  font-size: 12px;
}

.admin-library-body p {
  margin: 13px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-library-card footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
}

.admin-library-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 240px;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed #cfd4dc;
  border-radius: 6px;
}

.catalog-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}

.catalog-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.catalog-form-grid label,
.catalog-photo-input {
  display: grid;
  gap: 7px;
}

.catalog-form-grid > .field-pair,
.catalog-form-grid > label,
.catalog-photo-input {
  grid-column: 1 / -1;
}

.catalog-photo-input {
  margin: 18px 0 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px dashed #c7ccd4;
  border-radius: 4px;
}

.catalog-photo-input small {
  color: var(--muted);
}

.catalog-photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.catalog-photo-preview > figure {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #eef1f5;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.catalog-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-photo-preview button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #fff;
  background: rgb(31 45 61 / 82%);
  border: 0;
  border-radius: 50%;
}

.resource-photo-gallery {
  display: grid;
  grid-auto-columns: minmax(180px, 1fr);
  grid-auto-flow: column;
  min-width: 0;
  overflow-x: auto;
  background: #eef1f5;
  border-right: 1px solid var(--line);
}

.resource-photo-gallery .resource-photo {
  width: 100%;
  min-width: 180px;
  height: 100%;
  object-fit: cover;
  border-right: 1px solid var(--line);
}

.ticket-library-picker {
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.ticket-library-control {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

.ticket-library-control label {
  display: grid;
  gap: 7px;
}

.ticket-library-detail {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(0, 1.15fr);
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.ticket-library-detail dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.ticket-library-detail dl > div {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticket-library-detail dt {
  color: var(--quiet);
  font-size: 11px;
}

.ticket-library-detail dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 196px minmax(0, 1fr);
  }

  .brand-block,
  .sidebar-foot {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav-item {
    padding-left: 10px;
    padding-right: 10px;
  }

  .topbar,
  .view-root {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section-intro {
    margin-left: 0;
    margin-right: 0;
    padding-left: 18px;
    padding-right: 18px;
  }

  .number-axis,
  .profit-strip {
    grid-template-columns: 1fr;
  }

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

  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .admin-library-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .axis-item {
    min-height: 130px;
  }

  .split-grid,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .editor-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .table-row {
    grid-template-columns: repeat(9, minmax(120px, 1fr));
  }

  .data-table {
    overflow-x: auto;
  }

  .order-status-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hotel-price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-context-bar,
  .ticket-control-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .linked-quote-lines {
    grid-template-columns: repeat(2, 1fr);
  }

  .ticket-control-panel .action-row {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
  }

  .brand-block {
    min-height: 74px;
  }

  .primary-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 12px;
  }

  .nav-group {
    display: contents;
  }

  .nav-group-label {
    grid-column: 1 / -1;
    padding: 10px 4px 4px;
  }

  .nav-item {
    grid-template-columns: 24px 1fr;
    border-color: var(--line);
  }

  .sidebar-foot {
    display: none;
  }

  .topbar {
    position: static;
    min-height: 104px;
    padding: 20px 18px;
  }

  .topbar-leading {
    align-items: flex-start;
  }

  .shift-state {
    min-width: 0;
  }

  .view-root {
    padding: 0 18px 40px;
  }

  .axis-item {
    padding: 22px;
  }

  .order-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-pair,
  .group-hero,
  .rule-note {
    grid-template-columns: 1fr;
  }

  .group-identity {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .group-facts,
  .group-summary-axis,
  .group-cost-strip,
  .document-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .group-section-heading {
    grid-template-columns: 42px 1fr;
  }

  .group-section-heading p {
    grid-column: 2;
  }

  .group-table,
  .itinerary-list,
  .group-resource-grid {
    overflow-x: auto;
  }

  .group-table-row {
    min-width: 720px;
  }

  .itinerary-row {
    min-width: 700px;
  }

  .group-resource-grid {
    display: block;
  }

  .group-resource-grid > div {
    min-width: 560px;
  }

  .ledger-row {
    min-width: 760px;
  }

  .profit-ledger {
    overflow-x: auto;
  }

  .price-table,
  .ai-service-strip,
  .order-meta-grid,
  .order-status-grid,
  .order-detail-strip,
  .hotel-price-grid,
  .meal-booking-grid,
  .order-context-bar,
  .ticket-control-panel,
  .linked-quote-lines,
  .profit-order-selector,
  .attraction-checklist {
    grid-template-columns: 1fr;
  }

  .order-context-bar {
    position: static;
  }

  .ticket-control-panel .action-row {
    grid-column: auto;
  }

  .ticket-validation {
    display: grid;
  }

  .quote-itinerary-list {
    overflow-x: auto;
  }

  .quote-itinerary-list > div {
    min-width: 700px;
  }

  .deal-conversion {
    display: grid;
  }

  .order-record-head,
  .resource-detail {
    display: grid;
    grid-template-columns: 1fr;
  }

  .resource-photo,
  .resource-photo-placeholder {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .resource-section-heading {
    grid-template-columns: 42px 1fr auto;
  }

  .resource-section-heading p {
    grid-column: 2 / -1;
    text-align: left;
  }

  .binary-choice {
    grid-template-columns: 1fr 72px 72px;
  }

  .ai-issue-list > div,
  .generated-itinerary > div {
    grid-template-columns: 1fr;
  }

  .dashboard-metrics,
  .dashboard-quick-grid,
  .admin-library-grid,
  .catalog-form-grid,
  .ticket-library-control,
  .ticket-library-detail,
  .ticket-library-detail dl {
    grid-template-columns: 1fr;
  }

  .admin-library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .resource-photo-gallery {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .itinerary-edit-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .itinerary-edit-toolbar > div {
    flex-wrap: wrap;
  }
}

.nav-item[hidden],
.nav-group[hidden] {
  display: none !important;
}

.shift-state {
  display: flex;
  gap: 14px;
  align-items: center;
}

.shift-state > div {
  display: grid;
  gap: 2px;
}

.permission-preview {
  display: grid;
  gap: 3px;
  color: var(--quiet);
  font-size: 10px;
  text-align: left;
}

.permission-preview select {
  min-width: 114px;
  min-height: 30px;
  padding: 4px 28px 4px 8px;
  font-size: 12px;
}

.system-toolbar,
.integration-card,
.system-note,
.system-alert {
  margin-bottom: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.system-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  min-height: 98px;
  padding: 18px 20px;
}

.system-toolbar span,
.system-toolbar h2,
.system-toolbar p {
  display: block;
  margin: 0;
}

.system-toolbar span {
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.system-toolbar h2 {
  font-size: 22px;
  font-weight: 600;
}

.system-toolbar p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.system-toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: end;
}

.system-toolbar label,
.system-toolbar-actions label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.slim-system-toolbar {
  min-height: 78px;
}

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

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

.system-metric {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px 18px 16px 22px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.system-metric::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: currentColor;
}

.system-metric > span,
.system-metric > small {
  color: var(--muted);
  font-size: 12px;
}

.system-metric > strong {
  color: currentColor;
  font-size: clamp(23px, 2.5vw, 32px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.system-metric.is-income { color: #67c23a; }
.system-metric.is-expense { color: #f56c6c; }
.system-metric.is-pending { color: #e6a23c; }

.system-alert,
.system-note {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 15px 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.system-alert {
  color: #a93226;
  background: var(--danger-soft);
  border-color: #f4c7c2;
}

.system-alert strong,
.system-note strong {
  color: var(--ink);
}

.system-table {
  margin-bottom: 14px;
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.system-table-row {
  display: grid;
  align-items: center;
  min-width: 900px;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
}

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

.system-table-row > * {
  min-width: 0;
  margin: 0;
  padding: 12px 14px;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.system-table-row span > b,
.system-table-row span > small,
.system-table-row span > strong {
  display: block;
}

.system-table-row small {
  margin-top: 4px;
  color: var(--quiet);
  font-size: 10px;
  line-height: 1.4;
}

.system-table-head {
  min-height: 44px;
  color: var(--muted);
  background: #fafbfc;
}

.finance-row { grid-template-columns: 94px 130px minmax(180px, 1.3fr) 110px 110px 88px 128px; }
.reimbursement-row { grid-template-columns: 94px 100px minmax(190px, 1.4fr) 150px 100px 90px 150px; }
.payroll-row { grid-template-columns: 130px 150px 105px 150px 130px 110px minmax(150px, 1fr); }
.attendance-row { grid-template-columns: 130px minmax(170px, 1fr) 130px repeat(4, 90px); }
.employee-row {
  min-width: 980px;
  grid-template-columns: minmax(150px, 1.3fr) 80px 96px minmax(130px, 1fr) 120px 90px minmax(180px, 1fr);
}

.employee-action {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dialog-context {
  margin: 0;
  padding: 12px;
  color: var(--muted);
  background: var(--surface-soft, #f5f7fa);
  border: 1px solid var(--line);
}

.employee-table {
  scrollbar-gutter: stable;
}

.employee-table .inline-money-input {
  align-self: center;
}

.money-income { color: #529b2e; }
.money-expense { color: var(--danger); }

.table-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.integration-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
}

.integration-identity,
.integration-state {
  padding: 22px;
}

.integration-identity {
  display: flex;
  gap: 18px;
  align-items: center;
  border-right: 1px solid var(--line);
}

.integration-identity img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.integration-identity span,
.integration-identity h2,
.integration-identity p,
.integration-state span,
.integration-state strong,
.integration-state small {
  display: block;
  margin: 0;
}

.integration-identity span,
.integration-state span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.integration-identity h2 {
  margin-top: 4px;
  font-size: 23px;
}

.integration-identity p,
.integration-state small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.integration-state {
  display: grid;
  gap: 7px;
  align-content: center;
}

.integration-state .secondary-button {
  justify-self: start;
  margin-top: 5px;
}

.permission-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.ai-config-panel {
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}

.ai-config-panel > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .42fr);
  border-bottom: 1px solid var(--line);
}

.ai-config-panel > header > div {
  padding: 22px 24px;
}

.ai-config-panel > header span,
.ai-config-state small {
  color: var(--muted);
  font-size: 12px;
}

.ai-config-panel h2 {
  margin: 5px 0 6px;
  font-size: 26px;
}

.ai-config-panel p {
  margin: 0;
  color: var(--muted);
}

.ai-config-state {
  display: grid;
  align-content: center;
  gap: 5px;
  border-left: 1px solid var(--line);
}

.ai-config-state strong {
  font-size: 20px;
}

.ai-config-state.is-connected strong { color: #18794e; }
.ai-config-state.is-disconnected strong { color: var(--accent); }

.ai-config-form {
  display: grid;
  grid-template-columns: minmax(320px, 1.25fr) minmax(260px, .8fr) auto;
  gap: 16px;
  align-items: end;
  padding: 22px 24px;
}

.ai-config-form > label,
.secret-input-line {
  display: grid;
  gap: 7px;
}

.secret-input-line {
  grid-template-columns: minmax(0, 1fr) auto;
}

.ai-config-actions {
  display: flex;
  gap: 8px;
}

.ai-config-feedback {
  display: flex;
  gap: 10px;
  padding: 14px 24px;
  color: var(--muted);
  background: #f7f7f8;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.ai-config-feedback.is-loading { color: #725b00; background: #fff8d8; }
.ai-config-feedback.is-error { color: #9f2d20; background: #fff0ed; }

@media (max-width: 900px) {
  .ai-config-panel > header,
  .ai-config-form { grid-template-columns: 1fr; }
  .ai-config-state { border-top: 1px solid var(--line); border-left: 0; }
}

.permission-matrix article {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 17px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 4px;
}

.permission-matrix span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.inline-money-input {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto;
  gap: 5px;
  align-items: center;
}

.inline-money-input input {
  width: 100%;
  min-height: 34px;
}

@media (max-width: 900px) {
  .system-metrics,
  .compact-system-metrics,
  .permission-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .integration-card {
    grid-template-columns: 1fr;
  }

  .integration-identity {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .permission-preview {
    display: none;
  }

  .system-toolbar,
  .system-toolbar-actions,
  .system-alert,
  .system-note {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .system-toolbar,
  .system-toolbar-actions {
    display: grid;
  }

  .system-metrics,
  .compact-system-metrics,
  .permission-matrix {
    grid-template-columns: 1fr;
  }
}

.business-record-switcher {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 260px;
  min-height: 66px;
  margin: 0;
  padding: 10px 14px;
  border-right: 1px solid var(--line);
}

.order-context-bar {
  grid-template-columns: minmax(260px, 1.5fr) minmax(170px, 1fr) auto minmax(150px, 0.8fr) minmax(150px, 0.9fr) minmax(180px, 1.1fr);
}

.business-record-switcher select {
  min-width: 0;
  height: 34px;
  padding: 4px 30px 4px 9px;
  font-size: 12px;
  font-weight: 600;
}

.readonly-library-note {
  color: var(--muted);
  font-size: 12px;
}

.admin-library-name.is-readonly {
  display: block;
  color: var(--ink);
}

.mobile-task-nav {
  display: none;
}

@media (max-width: 720px) {
  body[data-view="attendance"] .sidebar {
    display: none;
  }

  body[data-view="attendance"] .topbar {
    min-height: 78px;
    padding: 14px 18px;
  }

  body[data-view="attendance"] .shift-state,
  body[data-view="attendance"] #sidebar-toggle {
    display: none;
  }

  body[data-view="attendance"] .view-root {
    padding-top: 12px;
  }

  .mobile-task-nav {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 8px;
    align-items: center;
    margin: 0 -18px 12px;
    padding: 10px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .mobile-task-nav button,
  .mobile-task-nav strong {
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 12px;
  }

  .mobile-task-nav strong {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
  }

  .business-record-switcher {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

.global-search-shell {
  position: relative;
  width: min(420px, 34vw);
}

.global-search-shell > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.global-search-shell input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 38px;
  background: #f7f8fa url("/assets/nav-icons/report.png") no-repeat 12px center / 16px;
  border-color: #dfe3e8;
}

.global-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 80;
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgb(20 30 45 / 16%);
}

.global-search-results button {
  display: grid;
  width: 100%;
  gap: 4px;
  justify-items: start;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-bottom: 1px solid #edf0f3;
}

.global-search-results button:hover {
  background: #f5f7fa;
}

.global-search-results span,
.global-search-results p {
  color: var(--muted);
  font-size: 12px;
}

.quote-command-bar,
.quote-customer-editor,
.group-switcher,
.group-order-adder,
.resource-console,
.resource-console-summary,
.resource-date-row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.quote-command-bar {
  justify-content: space-between;
  margin: 0 0 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.quote-command-bar span,
.quote-customer-editor span {
  color: var(--muted);
  font-size: 12px;
}

.quote-customer-editor {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(160px, 1fr));
  margin: 12px 0 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.quote-customer-editor > div {
  display: grid;
  gap: 6px;
}

.quote-customer-editor label,
.resource-date-row label,
.group-order-adder label,
.group-switcher label {
  margin: 0;
}

.order-amount-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.order-amount-card {
  display: grid;
  gap: 7px;
  padding: 16px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.order-amount-card span,
.order-amount-card small {
  color: var(--muted);
  font-size: 11px;
}

.order-amount-card strong {
  font-size: 22px;
}

.order-amount-card.is-selling { border-top: 3px solid #1769aa; }
.order-amount-card.is-cost { border-top: 3px solid #c63f32; }
.order-amount-card.is-payable { border-top: 3px solid #d9822b; }
.order-amount-card.is-paid { border-top: 3px solid #238636; }

.group-directory,
.operation-log-panel {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.payable-panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.payable-panel > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.payable-panel > header span,
.payable-panel > header strong {
  color: var(--muted);
  font-size: 12px;
}

.payable-panel > header h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.payable-picker {
  display: grid;
  gap: 6px;
  min-width: min(360px, 46vw);
  color: var(--muted);
  font-size: 12px;
}

.payable-row {
  grid-template-columns: minmax(150px, 1.35fr) minmax(100px, .8fr) minmax(100px, .8fr) minmax(100px, .8fr) minmax(88px, .7fr) minmax(160px, 1.1fr);
}

.group-directory header,
.operation-log-panel header {
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.group-directory > button {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  width: 100%;
  padding: 14px 18px;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.group-switcher,
.group-order-adder {
  justify-content: space-between;
  margin: 14px 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.resource-console {
  display: grid;
  grid-template-columns: minmax(480px, 1.2fr) 1fr;
  margin: 12px 0 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.resource-tab-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-right: 1px solid var(--line);
}

.resource-tab-nav button {
  display: grid;
  gap: 7px;
  justify-items: center;
  padding: 12px 8px;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--line);
}

.resource-tab-nav button.is-active {
  color: #fff;
  background: var(--accent);
}

.resource-tab-nav img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.resource-tab-nav button.is-active img {
  filter: brightness(0) invert(1);
}

.resource-console-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 10px 16px;
}

.resource-console-summary span {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
}

.resource-console-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.resource-date-row {
  margin-bottom: 14px;
}

.resource-validation {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-left: 3px solid;
}

.resource-validation.is-valid { color: #166534; background: #f0fdf4; border-color: #22c55e; }
.resource-validation.is-invalid { color: #9f2f26; background: #fff4f2; border-color: #d3483b; }

.room-type-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.room-type-list > div {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(260px, 1.5fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #f7f8fa;
  border: 1px solid #e7eaee;
}

.room-type-list span,
.room-type-list em {
  display: grid;
  gap: 3px;
  font-size: 12px;
  font-style: normal;
}

.operation-log-panel > div {
  display: grid;
  grid-template-columns: 110px 110px 1fr 100px;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid #edf0f3;
  font-size: 12px;
}

.operation-log-panel time,
.operation-log-panel em {
  color: var(--muted);
  font-style: normal;
}

.status-tag.is-success { color: #166534; background: #dcfce7; border-color: #86efac; }
.status-tag.is-warning { color: #92400e; background: #fef3c7; border-color: #fcd34d; }
.status-tag.is-danger { color: #991b1b; background: #fee2e2; border-color: #fca5a5; }
.status-tag.is-info { color: #1e40af; background: #dbeafe; border-color: #93c5fd; }

.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  padding: 12px 16px;
  color: #fff;
  background: #263443;
  border-left: 4px solid #22c55e;
  box-shadow: 0 12px 36px rgb(20 30 45 / 20%);
}

.toast.is-error { border-color: #ef4444; }

.table-head,
.system-table-head,
.group-table-head,
.ticket-row-head,
.dashboard-order-head {
  position: static;
  top: auto;
  z-index: auto;
  background: #f7f8fa;
}

.employee-table .system-table-head {
  position: static;
  top: auto;
  z-index: auto;
}

.ticket-list .ticket-row-head {
  position: static;
  top: auto;
  z-index: auto;
}

.table-row,
.system-table-row,
.group-table-row,
.ticket-row {
  min-height: 44px;
  padding-top: 8px;
  padding-bottom: 8px;
}

@media (max-width: 980px) {
  .global-search-shell { width: min(340px, 38vw); }
  .resource-console { grid-template-columns: 1fr; }
  .resource-tab-nav { border-right: 0; border-bottom: 1px solid var(--line); }
  .quote-customer-editor,
  .order-amount-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1280px) {
  .employee-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .employee-table .system-table-head {
    display: none;
  }

  .employee-table .employee-row:not(.system-table-head) {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    background: #fff;
    border: 1px solid var(--line);
  }

  .employee-table .employee-row:not(.system-table-head) > * {
    display: grid;
    align-content: start;
    gap: 5px;
    min-height: 62px;
    padding: 12px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .employee-table .employee-row:not(.system-table-head) > *:nth-child(odd):not(:first-child) {
    border-right: 0;
  }

  .employee-table .employee-row:not(.system-table-head) > *:first-child {
    grid-column: 1 / -1;
    min-height: 70px;
    border-right: 0;
  }

  .employee-table .employee-row:not(.system-table-head) > *:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .employee-table .employee-row:not(.system-table-head) > *::before {
    content: attr(data-label);
    color: var(--quiet);
    font-size: 10px;
    font-weight: 500;
  }

  .employee-table .inline-money-input {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .employee-table .inline-money-input::before {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .global-search-shell { order: 3; width: 100%; }
  .topbar { flex-wrap: wrap; }
  .resource-tab-nav { grid-template-columns: repeat(3, 1fr); }
  .resource-console-summary,
  .quote-customer-editor,
  .order-amount-grid,
  .room-type-list > div { grid-template-columns: 1fr; }
  .quote-command-bar,
  .group-switcher,
  .group-order-adder,
  .resource-date-row { align-items: stretch; flex-direction: column; }
  .operation-log-panel > div { grid-template-columns: 84px 1fr; }
  .operation-log-panel > div span { grid-column: 1 / -1; }
  .table-head,
  .system-table-head,
  .group-table-head,
  .ticket-row-head,
  .dashboard-order-head { position: static; }
  .employee-table { grid-template-columns: 1fr; }
  .employee-table .employee-row:not(.system-table-head) > * {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .employee-table .employee-row:not(.system-table-head) > *:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }
  .employee-table .employee-row:not(.system-table-head) > *:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .view-root > *,
  .nav-item,
  button,
  .button {
    animation: none !important;
    transition: none !important;
  }
}

.dashboard-metrics.dashboard-metrics-eight {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .dashboard-metrics.dashboard-metrics-eight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .dashboard-metrics.dashboard-metrics-eight { grid-template-columns: 1fr; }
}

/* Phase 1: role-separated AI workspaces */
.assistant-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}

.assistant-status-strip.is-admin { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.assistant-status-strip > div {
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.assistant-status-strip > div:last-child { border-right: 0; }
.assistant-status-strip span,
.assistant-status-strip small { color: var(--muted); font-size: 11px; }
.assistant-status-strip strong { font-size: 15px; }

.assistant-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.assistant-mode-tabs button {
  display: grid;
  gap: 5px;
  min-height: 68px;
  padding: 13px 16px;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
}

.assistant-mode-tabs button:last-child { border-right: 0; }
.assistant-mode-tabs button small { color: var(--muted); font-size: 11px; }
.assistant-mode-tabs button.is-active { color: #fff; background: var(--accent); }
.assistant-mode-tabs button.is-active small { color: rgb(255 255 255 / 78%); }

.assistant-layout {
  display: grid;
  grid-template-columns: 220px minmax(420px, 1fr) 280px;
  min-height: 660px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.assistant-layout.is-admin-layout { grid-template-columns: 210px minmax(420px, 1fr) minmax(340px, 390px); }

.assistant-session-panel,
.assistant-context-panel {
  padding: 16px;
  background: #f7f8fa;
}

.assistant-session-panel { border-right: 1px solid var(--line); }
.assistant-context-panel { border-left: 1px solid var(--line); }
.assistant-session-list { display: grid; gap: 8px; margin-top: 14px; }
.assistant-session-list button {
  display: grid;
  gap: 4px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
}
.assistant-session-list button.is-active { border-left: 4px solid var(--accent); }
.assistant-session-list small { color: var(--muted); font-size: 11px; }

.assistant-conversation { display: grid; grid-template-rows: auto minmax(380px, 1fr) auto; min-width: 0; }
.assistant-prompt-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.assistant-prompt-row button { padding: 7px 10px; color: var(--muted); font-size: 11px; background: #fff; border: 1px solid var(--line); }
.assistant-prompt-row button:hover { color: var(--accent); border-color: var(--accent); }
.assistant-message-list { display: grid; align-content: start; gap: 14px; min-height: 420px; max-height: 58vh; padding: 22px; overflow-y: auto; }
.assistant-message { max-width: 82%; border: 1px solid var(--line); background: #fff; }
.assistant-message.is-user { justify-self: end; border-color: #e4b2ab; background: #fff8f7; }
.assistant-message.has-error { border-color: var(--danger); background: var(--danger-soft); }
.assistant-message header { display: flex; justify-content: space-between; gap: 18px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.assistant-message header span { color: var(--quiet); font-size: 10px; }
.assistant-message > div { padding: 12px 14px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.assistant-empty { display: grid; justify-items: center; align-self: center; gap: 8px; padding: 48px; color: var(--muted); text-align: center; }
.assistant-empty img { width: 32px; height: 32px; opacity: .45; }
.assistant-empty span { max-width: 380px; font-size: 12px; }

.assistant-composer { padding: 14px 16px; border-top: 1px solid var(--line); background: #f7f8fa; }
.assistant-composer textarea { width: 100%; resize: vertical; background: #fff; }
.assistant-composer footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 10px; }
.assistant-composer footer span { color: var(--muted); font-size: 11px; }
.assistant-context-panel header { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.assistant-context-panel header span { color: var(--accent); font-size: 11px; font-weight: 700; }
.assistant-context-panel h2 { margin: 5px 0 0; font-size: 18px; }
.assistant-context-panel dl { margin: 0; }
.assistant-context-panel dl div { display: grid; gap: 5px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.assistant-context-panel dt { color: var(--muted); font-size: 10px; }
.assistant-context-panel dd { margin: 0; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.assistant-context-panel > p,
.assistant-draft-list > p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.assistant-draft-list { display: grid; gap: 9px; margin-top: 14px; }
.assistant-draft-list article { display: grid; gap: 7px; padding: 11px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.assistant-draft-list span,
.assistant-draft-list small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.assistant-draft-card.is-applied { border-left-color: #278449; }
.assistant-draft-card.is-rejected { opacity: .7; border-left-color: var(--quiet); }
.assistant-draft-card > header,
.assistant-draft-card > footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.assistant-draft-card > header { padding: 0 0 7px; border-bottom: 1px solid var(--line); }
.assistant-draft-card > header span { color: var(--accent); font-weight: 700; }
.assistant-draft-card > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.assistant-draft-card summary { padding: 7px 0; color: var(--ink); font-size: 11px; font-weight: 700; cursor: pointer; }
.assistant-diff-list { display: grid; gap: 10px; }
.assistant-diff-list > div { min-width: 0; padding: 8px; background: #f7f8fa; border: 1px solid var(--line); }
.assistant-diff-list b,
.assistant-diff-list small { display: block; margin-bottom: 5px; }
.assistant-diff-list pre { max-height: 130px; margin: 0 0 7px; padding: 7px; overflow: auto; color: #3d4652; font: 10px/1.5 Consolas, monospace; white-space: pre-wrap; background: #fff; border: 1px solid var(--line); }
.assistant-draft-card footer span { display: flex; gap: 6px; }
.assistant-draft-card footer button { min-height: 28px; padding: 4px 8px; font-size: 10px; }
.assistant-admin-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.assistant-admin-toolbar button { flex: 1 1 100px; min-height: 30px; padding: 5px 8px; font-size: 10px; }
.assistant-inspection-summary,
.assistant-test-result { display: grid; gap: 6px; margin-top: 10px; padding: 10px; background: #fff; border: 1px solid var(--line); }
.assistant-inspection-summary small,
.assistant-test-result small { color: var(--muted); font-size: 10px; line-height: 1.55; white-space: pre-line; }
.assistant-inspection-summary span { padding-left: 7px; color: var(--muted); font-size: 10px; border-left: 2px solid #d7a21d; }
.assistant-inspection-summary span.is-high { color: var(--danger); border-left-color: var(--danger); }
.assistant-test-result.is-ok { border-left: 3px solid #278449; }
.assistant-test-result.is-error { border-left: 3px solid var(--danger); }
.assistant-test-result button { justify-self: start; }
.assistant-log-list { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.assistant-log-list div { display: grid; gap: 3px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.assistant-log-list strong { font-size: 11px; }
.assistant-log-list small { color: var(--quiet); font-size: 10px; }

@media (max-width: 1180px) {
  .assistant-layout { grid-template-columns: 180px minmax(360px, 1fr); }
  .assistant-layout.is-admin-layout { grid-template-columns: 180px minmax(360px, 1fr); }
  .assistant-context-panel { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .assistant-context-panel dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 720px) {
  .assistant-status-strip,
  .assistant-mode-tabs,
  .assistant-layout { grid-template-columns: 1fr; }
  .assistant-status-strip.is-admin,
  .assistant-layout.is-admin-layout { grid-template-columns: 1fr; }
  .assistant-status-strip > div,
  .assistant-mode-tabs button { border-right: 0; border-bottom: 1px solid var(--line); }
  .assistant-session-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .assistant-session-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assistant-message { max-width: 94%; }
  .assistant-composer footer { align-items: stretch; flex-direction: column; }
  .assistant-context-panel { grid-column: auto; }
  .assistant-context-panel dl { grid-template-columns: 1fr 1fr; }
}

/* Codex (Windows) × DSH (Ubuntu) collaboration console */
.collaboration-console {
  --console-surface: #000000;
  --console-panel: #0b0c0a;
  --console-line: #30332d;
  --console-text: #e8ebe5;
  --console-muted: #969d91;
  --console-signal: #00e676;
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(460px, 1fr) minmax(280px, 340px);
  min-height: 690px;
  margin-bottom: 18px;
  color: var(--console-text);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--console-surface);
  border: 1px solid var(--console-line);
}

.collaboration-console *,
.collaboration-console button,
.collaboration-console input,
.collaboration-console select,
.collaboration-console textarea {
  box-sizing: border-box;
  border-radius: 0;
  font-family: inherit;
  box-shadow: none;
}

.assistant-mode-field > header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  background: #000;
  border: 1px solid #30332d;
  border-bottom: 0;
}
.assistant-mode-field > header strong { color: #00e676; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 11px; }
.assistant-mode-field > header span { color: #969d91; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 9px; }

.collaboration-task-panel,
.collaboration-inbox { min-width: 0; background: var(--console-panel); }
.collaboration-task-panel { border-right: 1px solid var(--console-line); }
.collaboration-inbox { border-left: 1px solid var(--console-line); }
.collaboration-thread { display: grid; grid-template-rows: auto auto minmax(410px, 1fr); min-width: 0; }

.collaboration-task-panel > header,
.collaboration-thread > header,
.collaboration-inbox > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--console-line);
}

.collaboration-task-panel > header div,
.collaboration-thread > header div,
.collaboration-inbox > header div { display: grid; gap: 5px; min-width: 0; }
.collaboration-task-panel > header > span { display: flex; gap: 5px; }
.collaboration-console header span,
.collaboration-inbox > p,
.collaboration-empty span { color: var(--console-muted); font-size: 10px; line-height: 1.55; }
.collaboration-console header strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.collaboration-console button {
  min-height: 30px;
  padding: 6px 9px;
  color: var(--console-text);
  background: transparent;
  border: 1px solid var(--console-line);
}
.collaboration-console button:hover,
.collaboration-console button:focus-visible { color: var(--console-signal); border-color: var(--console-signal); }
.collaboration-task-panel > header button.is-active { color: #000; font-weight: 700; background: var(--console-signal); border-color: var(--console-signal); }
.collaboration-console button:disabled { color: #62675e; border-color: #242622; cursor: not-allowed; }

.collaboration-task-list { max-height: 620px; overflow-y: auto; }
.collaboration-task {
  display: grid;
  gap: 7px;
  width: 100%;
  min-height: 90px;
  padding: 12px 14px !important;
  text-align: left;
  border: 0 !important;
  border-bottom: 1px solid var(--console-line) !important;
}
.collaboration-task:hover { background: #10120f; }
.collaboration-task.is-active { padding-left: 10px !important; background: #10120f; border-left: 4px solid var(--console-signal) !important; }
.collaboration-task > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--console-muted); font-size: 10px; }
.collaboration-task strong { color: var(--console-text); font-size: 11px; }
.collaboration-task small { color: var(--console-muted); font-size: 9px; }

.collaboration-state {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 7px;
  color: var(--console-muted);
  font-size: 9px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--console-line);
}
.collaboration-state.is-running,
.collaboration-state.is-completed { color: var(--console-signal); border-color: var(--console-signal); }
.collaboration-state.is-failed,
.collaboration-state.is-cancelled { color: #ff3b30; border-color: #ff3b30; }

.collaboration-message-list { display: grid; align-content: start; gap: 0; max-height: 58vh; overflow-y: auto; }
.collaboration-message { border-bottom: 1px solid var(--console-line); background: var(--console-surface); }
.collaboration-message.is-dsh { background: #0b0c0a; }
.collaboration-message.is-system { color: #ffb800; }
.collaboration-message > header,
.collaboration-inbox-message > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid #1c1e1a; }
.collaboration-message > header span { display: flex; align-items: center; gap: 8px; }
.collaboration-message header em { padding: 2px 5px; color: var(--console-signal); font-size: 9px; font-style: normal; border: 1px solid var(--console-line); }
.collaboration-message time,
.collaboration-inbox-message time { color: var(--console-muted); font-size: 9px; font-variant-numeric: tabular-nums; }
.collaboration-message > div { padding: 14px 16px 18px; color: var(--console-text); font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }

.collaboration-composer {
  margin: 12px 14px;
  padding: 0 14px 14px;
  background: var(--console-panel);
  border: 2px solid var(--console-signal);
}
.collaboration-composer-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -14px 12px;
  padding: 10px 14px;
  background: #10140f;
  border-bottom: 1px solid var(--console-signal);
}
.collaboration-composer-heading > div { display: grid; gap: 3px; }
.collaboration-composer-heading span { color: var(--console-signal); font-size: 9px; }
.collaboration-composer-heading strong { color: var(--console-text); font-size: 12px; }
.collaboration-composer-heading em { color: #000; padding: 4px 7px; font-size: 9px; font-style: normal; font-weight: 700; background: var(--console-signal); }
.collaboration-composer > div { display: grid; grid-template-columns: minmax(140px, .55fr) minmax(180px, 1fr); gap: 8px; margin-bottom: 8px; }
.collaboration-composer > div.is-single-field { grid-template-columns: 1fr; }
.collaboration-composer [hidden] { display: none !important; }
.collaboration-composer label { display: grid; gap: 4px; color: var(--console-muted); font-size: 9px; }
.collaboration-message-input > span { color: var(--console-signal); font-size: 10px; font-weight: 700; }
.collaboration-composer input,
.collaboration-composer select,
.collaboration-composer textarea {
  width: 100%;
  color: var(--console-text);
  background: #000;
  border: 1px solid var(--console-line);
}
.collaboration-composer input,
.collaboration-composer select { min-height: 32px; padding: 6px 8px; }
.collaboration-composer textarea { min-height: 112px; padding: 10px 11px; resize: vertical; border-color: #596057; }
.collaboration-composer input:focus,
.collaboration-composer select:focus,
.collaboration-composer textarea:focus { outline: 1px solid var(--console-signal); border-color: var(--console-signal); }
.collaboration-composer footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
.collaboration-composer footer > span { display: flex; align-items: center; gap: 7px; color: var(--console-muted); font-size: 9px; }
.collaboration-composer button[type="submit"] { color: #000; font-weight: 700; background: var(--console-signal); border-color: var(--console-signal); }

.collaboration-inbox > p { margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--console-line); }
.collaboration-inbox-list { max-height: 550px; overflow-y: auto; }
.collaboration-inbox-message { border-bottom: 1px solid var(--console-line); }
.collaboration-inbox-message p { margin: 0; padding: 12px 14px 16px; color: var(--console-text); font-size: 10px; line-height: 1.65; overflow-wrap: anywhere; }
.collaboration-inbox-message header strong { color: var(--console-signal); font-size: 9px; }
.collaboration-empty { display: grid; gap: 7px; padding: 20px 14px; }
.collaboration-empty-main { align-self: center; justify-items: center; max-width: 460px; margin: auto; text-align: center; }
.collaboration-review { margin-bottom: 18px; border: 1px solid var(--line); }

@media (max-width: 1280px) {
  .collaboration-console { grid-template-columns: 230px minmax(420px, 1fr); }
  .collaboration-inbox { grid-column: 1 / -1; border-top: 1px solid var(--console-line); border-left: 0; }
  .collaboration-inbox-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 320px; }
  .collaboration-inbox-message { border-right: 1px solid var(--console-line); }
}

@media (max-width: 760px) {
  .collaboration-console { grid-template-columns: 1fr; }
  .collaboration-task-panel { border-right: 0; border-bottom: 1px solid var(--console-line); }
  .collaboration-task-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 300px; }
  .collaboration-thread { grid-template-rows: auto auto minmax(340px, 1fr); }
  .collaboration-inbox { grid-column: auto; }
  .collaboration-inbox-list,
  .collaboration-composer > div { grid-template-columns: 1fr; }
  .collaboration-composer footer { align-items: stretch; flex-direction: column; }
}
/* Page-scoped DSH handoff: keeps the current business module isolated from other conversations. */
.page-dsh-action {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #b9c4d2;
  border-radius: 6px;
  background: #fff;
  color: #1d344c;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.page-dsh-action:hover,
.page-dsh-action:focus-visible {
  border-color: #c83f32;
  color: #c83f32;
  outline: none;
}

@media (max-width: 1180px) {
  .page-dsh-action { display: none; }
}
.finance-document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  border: 1px solid #d8dee7;
  background: #d8dee7;
}

.finance-document-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 112px;
  padding: 12px;
  background: #fff;
}

.finance-document-card > a {
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 1px solid #d8dee7;
  background: #f7f7f8;
}

.finance-document-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.finance-document-card div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.finance-document-card div span,
.finance-document-card div small {
  color: #687386;
  font-size: 12px;
}

.finance-document-card div strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .finance-document-grid { grid-template-columns: 1fr; }
  .finance-document-card { grid-template-columns: 72px minmax(0, 1fr); }
  .finance-document-card > a { width: 72px; height: 72px; }
  .finance-document-card > em { grid-column: 2; justify-self: start; }
}
.app-shell[hidden] {
  display: none !important;
}

#password-form > label {
  display: grid;
  gap: 8px;
  color: #425166;
  font-size: 13px;
  font-weight: 700;
}

#password-form input {
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #ccd4df;
  background: #fff;
  color: #1f2d3d;
  font: inherit;
}

.auth-feedback {
  min-height: 20px;
  color: #c94134;
  font-size: 13px;
}

.permission-preview {
  align-items: center;
  gap: 8px;
}

.permission-preview > strong,
.permission-preview > em {
  font-style: normal;
  white-space: nowrap;
}

.permission-preview > em {
  color: #c94134;
  font-size: 12px;
}
