:root {
  color-scheme: light;
  --surface-1: #ffffff;
  --surface-2: #eaf3fb;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #898781;
  --gridline: #d7e6f3;
  --baseline: #c3c2b7;
  --border: rgba(11, 60, 110, 0.12);
  --success-text: #006300;

  --series-1: #2a78d6; /* blue: 受注/確度が高い */
  --series-2: #eb6834; /* orange: 予算・目標系のアクセント */

  /* 確度の順序尺度(ordinal)ランプ: 低い順に薄い→濃い */
  --tier-c: #86b6ef;
  --tier-b: #5598e7;
  --tier-a: #256abf;
  --tier-won: #104281;

  --status-good: #0ca30c;
  --status-warning: #fab219;
  --status-serious: #ec835a;
  --status-critical: #d03b3b;

  --sidebar-bg: #3d5ec4; /* enisheブランドカラー。ライト/ダークどちらのテーマでも固定 */
  --page-bg: #ffffff; /* メインエリア(サイドバーの右側)の背景。カード背景(--surface-1)とは独立 */
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme='light'])) {
    color-scheme: dark;
    --surface-1: #16212e;
    --surface-2: #0c1622;
    --text-primary: #ffffff;
    --text-secondary: #c3c2b7;
    --text-muted: #898781;
    --gridline: #223244;
    --baseline: #383835;
    --border: rgba(255, 255, 255, 0.1);
    --success-text: #0ca30c;

    --series-1: #3987e5;
    --series-2: #d95926;

    --tier-c: #5598e7;
    --tier-b: #3987e5;
    --tier-a: #184f95;
    --tier-won: #104281;

    --page-bg: #0c1622;
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --surface-1: #16212e;
  --surface-2: #0c1622;
  --text-primary: #ffffff;
  --text-secondary: #c3c2b7;
  --text-muted: #898781;
  --gridline: #223244;
  --baseline: #383835;
  --border: rgba(255, 255, 255, 0.1);
  --success-text: #0ca30c;

  --series-1: #3987e5;
  --series-2: #d95926;

  --tier-c: #5598e7;
  --tier-b: #3987e5;
  --tier-a: #184f95;
  --tier-won: #104281;

  --page-bg: #0c1622;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

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

.sidebar {
  width: 208px;
  flex: 0 0 208px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  align-self: flex-start;
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 10px 20px;
}

.sidebar-logo-img {
  height: 22px;
  width: auto;
}

.sidebar-brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav-heading {
  padding: 0 12px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.sidebar-nav-item.active {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.nav-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--status-critical);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-footer {
  padding: 14px 10px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.sidebar-user {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.app {
  flex: 1;
  min-width: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}

@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex: 0 0 auto;
    min-height: auto;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .sidebar-nav-group {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-nav-heading {
    display: none;
  }
  .sidebar-bottom {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .sidebar-footer {
    margin-top: 0;
    margin-left: auto;
    border-top: none;
    flex-direction: row;
    align-items: center;
  }
}

.view {
  display: none;
}
.view.active {
  display: block;
}

.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--gridline);
  margin-bottom: 20px;
}

.month-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.month-switch-label {
  font-size: 15px;
  min-width: 160px;
  text-align: center;
}

.month-switch button {
  width: 28px;
  height: 28px;
}

.filter-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 10px 0 18px;
}
.filter-indicator a {
  color: var(--series-1);
  cursor: pointer;
  text-decoration: underline;
}

.annual-main-grid {
  grid-template-columns: 1.6fr 1fr;
  margin-bottom: 16px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .annual-main-grid { grid-template-columns: 1fr; }
}
.annual-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-item {
  font-size: 12px;
  line-height: 1.6;
  padding: 6px 0;
  border-bottom: 1px dashed var(--gridline);
}
.insight-item:last-child {
  border-bottom: none;
}

.breakdown-row {
  padding: 8px 0;
  border-bottom: 1px dashed var(--gridline);
}
.breakdown-row:last-child {
  border-bottom: none;
}
.breakdown-row .breakdown-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.breakdown-row .breakdown-value {
  font-size: 18px;
  font-weight: 700;
}
.breakdown-row .breakdown-percent {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 6px;
  font-weight: 400;
}
.breakdown-row .breakdown-value.positive,
.breakdown-row .breakdown-value.negative {
  font-weight: 700;
}

.breakdown-hero {
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px dashed var(--gridline);
}
.breakdown-hero-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.breakdown-hero-value {
  font-size: 30px;
  font-weight: 700;
}

.breakdown-subheading {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin: 12px 0 2px;
}
.breakdown-row-small .breakdown-label {
  font-size: 11px;
}
.breakdown-row-small .breakdown-value {
  font-size: 14px;
}

.breakdown-pipeline-need {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--gridline);
}
.breakdown-pipeline-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--series-1);
  cursor: pointer;
  text-decoration: none;
}
.breakdown-pipeline-link:hover {
  text-decoration: underline;
}

#annualChart {
  width: 100%;
}
#annualChart svg {
  display: block;
}
.chart-bar {
  cursor: pointer;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.legend-swatch-dashed {
  border: 2px dashed var(--series-1);
  background: none;
}
.legend-swatch-line {
  height: 2px;
  border-top: 2px dashed var(--baseline);
  background: none;
  border-radius: 0;
}

select, button, input[type='number'], input[type='date'] {
  font-family: inherit;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
}

button {
  cursor: pointer;
}
button:hover {
  background: var(--surface-2);
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}

.card h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 12px;
  text-transform: none;
}

.grid {
  display: grid;
  gap: 16px;
}

.kpi-row {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 16px;
}

.kpi-row-primary {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.kpi-row-primary .stat-tile {
  border-width: 1px;
  background: var(--surface-1);
}
.kpi-row-primary .stat-tile .value {
  font-size: 30px;
}
.kpi-row-primary .stat-tile .label {
  font-size: 13px;
  font-weight: 600;
}

.kpi-row-secondary {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: 8px;
}
.kpi-row-secondary .stat-tile {
  padding: 12px 14px;
}
.kpi-row-secondary .stat-tile .value {
  font-size: 18px;
}

.stat-tile .label {
  font-size: 12px;
  color: var(--text-secondary);
}

.stat-tile .value {
  font-size: 24px;
  font-weight: 600;
  margin-top: 4px;
}

.stat-tile .subnote {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-tile .delta {
  font-size: 12px;
  margin-top: 4px;
}
.delta.positive { color: var(--success-text); }
.delta.negative { color: var(--status-critical); }
.subnote.positive { color: var(--success-text); font-weight: 600; }
.subnote.negative { color: var(--status-critical); font-weight: 600; }
td.positive { color: var(--success-text); }
td.negative { color: var(--status-critical); }

/* 達成見込率の色分け: 100%以上=緑 / 70〜99%=黄 / 70%未満=赤 */
.rate-good { color: var(--status-good); }
.rate-warning { color: var(--status-warning); }
.rate-critical { color: var(--status-critical); }
td.rate-good, td.rate-warning, td.rate-critical { font-weight: 600; }
.meter-fill.rate-good { background: var(--status-good); }
.meter-fill.rate-warning { background: var(--status-warning); }
.meter-fill.rate-critical { background: var(--status-critical); }

/* 円形ゲージ(経営KPIの達成率カード) */
.stat-tile-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.gauge-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 4px 0 2px;
}
.gauge {
  transform: rotate(-90deg);
}
.gauge-track {
  fill: none;
  stroke: var(--gridline);
  stroke-width: 8;
}
.gauge-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.4s ease;
}
.gauge-fill.rate-good { stroke: var(--status-good); }
.gauge-fill.rate-warning { stroke: var(--status-warning); }
.gauge-fill.rate-critical { stroke: var(--status-critical); }
.gauge-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

/* 「達成状況」タイル(年間ダッシュボード): 達成率ゲージ + 残額・ペース比較 */
.achievement-tile {
  width: 100%;
}
.achievement-remaining {
  font-size: 20px;
  font-weight: 700;
  margin-top: 2px;
}
.achievement-remaining.positive,
.achievement-pace-diff.positive,
.achievement-status.positive .achievement-status-title { color: var(--success-text); }
.achievement-remaining.negative,
.achievement-pace-diff.negative,
.achievement-status.negative .achievement-status-title { color: var(--status-critical); }
.achievement-months {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.achievement-pace-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--gridline);
}
.achievement-pace-item {
  flex: 1;
  text-align: center;
}
.achievement-pace-label {
  font-size: 10px;
  color: var(--text-muted);
}
.achievement-pace-value {
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}
.achievement-pace-diff {
  font-size: 15px;
  font-weight: 700;
  margin-top: 8px;
}
.achievement-status {
  margin-top: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  width: 100%;
}
.achievement-status.positive { background: color-mix(in srgb, var(--success-text) 12%, transparent); }
.achievement-status.negative { background: color-mix(in srgb, var(--status-critical) 12%, transparent); }
.achievement-status-title {
  font-size: 13px;
  font-weight: 700;
}
.achievement-status-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 1px;
}

/* 担当者別テーブルのミニバー(達成率を一目で比較) */
.rate-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.mini-bar-track {
  width: 64px;
  height: 5px;
  border-radius: 3px;
  background: var(--gridline);
  overflow: hidden;
}
.mini-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--series-1);
}
.mini-bar-fill.rate-good { background: var(--status-good); }
.mini-bar-fill.rate-warning { background: var(--status-warning); }
.mini-bar-fill.rate-critical { background: var(--status-critical); }

.two-col {
  grid-template-columns: 1.3fr 1fr;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}

.bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 130px;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.bar-row .row-label {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  position: relative;
  height: 20px;
  background: var(--gridline);
  border-radius: 4px;
  overflow: visible;
}

.bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  border-radius: 4px 4px 4px 4px;
  min-width: 2px;
  cursor: pointer;
}

.bar-row .row-value {
  font-size: 12px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  white-space: nowrap;
}
.bar-row .row-value .subnote {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.meter-track {
  height: 10px;
  border-radius: 5px;
  background: var(--tier-c);
  opacity: 0.35;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}
.meter-fill {
  height: 100%;
  border-radius: 5px;
  background: var(--series-1);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid var(--gridline);
  white-space: nowrap;
}

th:first-child, td:first-child,
th:nth-child(2), td:nth-child(2),
th:nth-child(3), td:nth-child(3) {
  text-align: left;
}

th {
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  position: sticky;
  top: 0;
  background: var(--surface-1);
}
th.sorted::after {
  content: ' \25BE';
}

tbody tr:hover {
  background: var(--surface-2);
  cursor: pointer;
}

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

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.tag-c { background: var(--tier-c); color: #04213f; }
.tag-b { background: var(--tier-b); color: #fff; }
.tag-a { background: var(--tier-a); color: #fff; }
.tag-won { background: var(--tier-won); color: #fff; }
.tag-unset { background: var(--gridline); color: var(--text-secondary); }

.section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.alert-group {
  margin-bottom: 14px;
}
.alert-group h3 {
  font-size: 13px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.status-dot.warning { background: var(--status-warning); }
.status-dot.serious { background: var(--status-serious); }
.status-dot.critical { background: var(--status-critical); }

.alert-item {
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--gridline);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.alert-item .muted { color: var(--text-muted); }
.empty-note {
  color: var(--text-muted);
  font-size: 12px;
  padding: 8px 0;
}

.kpi-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-muted);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.kpi-note strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.tabs button {
  border-radius: 6px 6px 0 0;
  border-bottom: none;
  background: var(--surface-2);
  color: var(--text-secondary);
}
.tabs button.active {
  background: var(--surface-1);
  color: var(--text-primary);
  font-weight: 600;
  border-color: var(--border);
}

.tooltip {
  position: fixed;
  pointer-events: none;
  background: var(--text-primary);
  color: var(--surface-1);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  z-index: 50;
  max-width: 260px;
  display: none;
}
.tooltip strong { font-variant-numeric: tabular-nums; }

.banner {
  background: color-mix(in srgb, var(--status-warning) 18%, var(--surface-1));
  border: 1px solid var(--status-warning);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.action-card {
  padding: 10px 0;
  border-bottom: 1px solid var(--gridline);
}
.action-card:last-child {
  border-bottom: none;
}
.action-card h3 {
  font-size: 13px;
  margin: 0 0 8px;
}
.action-card .alert-item {
  border-bottom: none;
  padding: 4px 0;
}

.form-inline {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.budget-grid {
  font-size: 12px;
}
.budget-grid th,
.budget-grid td {
  padding: 4px 4px;
}
.budget-grid input[type='number'] {
  width: 78px;
  padding: 4px 6px;
  font-size: 12px;
}
.budget-employee-name {
  font-weight: 600;
  white-space: nowrap;
  vertical-align: top;
  padding-top: 8px !important;
}
.budget-annual-total {
  font-weight: 700;
  white-space: nowrap;
}
.budget-row-bulk td {
  border-bottom: 1px solid var(--gridline);
  padding: 6px 4px 10px !important;
  background: var(--surface-2);
  font-size: 11px;
  color: var(--text-secondary);
}
.budget-row-bulk input[type='number'] {
  width: 110px;
}
.budget-row-bulk button {
  font-size: 11px;
  padding: 4px 8px;
}

.mapping-row {
  display: grid;
  grid-template-columns: 1fr 60px 90px;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
  font-size: 12px;
}

/* KPIカード: 案件詳細への入口としてクリック可能にする */
.stat-tile.clickable {
  cursor: pointer;
  transition: border-color 0.15s;
}
.stat-tile.clickable:hover {
  border-color: var(--series-1);
}
.stat-tile.clickable .label::after {
  content: ' →';
  color: var(--text-muted);
}

/* ドロワー(右サイドパネル): KPIカードの内訳表示 */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 11, 0.3);
  z-index: 90;
  display: none;
}
.drawer-overlay.open {
  display: block;
}

.drawer {
  position: fixed;
  top: 0;
  right: -1100px;
  width: 1100px;
  max-width: 92vw;
  height: 100vh;
  background: var(--surface-1);
  box-shadow: -4px 0 24px rgba(11, 11, 11, 0.15);
  z-index: 91;
  display: flex;
  flex-direction: column;
  transition: right 0.2s ease;
}
.drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gridline);
}
.drawer-title {
  font-size: 16px;
  font-weight: 600;
}
.drawer-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px 24px;
}

.drawer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.drawer-table th {
  position: sticky;
  top: 0;
  background: var(--surface-1);
  color: var(--text-muted);
  font-weight: 600;
  text-align: right;
  padding: 6px 8px;
  border-bottom: 1px solid var(--gridline);
  white-space: nowrap;
}
.drawer-table th:first-child { text-align: left; }
.drawer-table td {
  padding: 6px 8px;
  text-align: right;
  border-bottom: 1px solid var(--gridline);
  white-space: nowrap;
}
.drawer-row td:first-child {
  text-align: left;
  color: var(--series-1);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
}
.drawer-row td:first-child:hover {
  text-decoration-color: var(--series-1);
}

.drawer-detail-row td {
  background: var(--surface-2);
  text-align: left;
  white-space: normal;
  padding: 12px 16px;
}
.drawer-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 16px;
  font-size: 12px;
}
.drawer-detail-grid .k {
  color: var(--text-muted);
}
.drawer-detail-grid .v {
  font-variant-numeric: tabular-nums;
}
.drawer-freee-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
}
