/* generated_at: 2026-07-09T02:37:00+08:00 */
:root {
  color-scheme: light;
  --ink: #121417;
  --muted: #65717e;
  --line: #dfe5ec;
  --panel: #ffffff;
  --canvas: #f5f7f9;
  --canvas-2: #eef2f6;
  --accent: #0071e3;
  --accent-soft: #eaf3ff;
  --warn: #8a5a00;
  --warn-soft: #fff3cf;
  --danger: #a23838;
  --danger-soft: #fae7e5;
  --ok: #17764b;
  --ok-soft: #e5f5eb;
  --shadow: 0 24px 70px rgba(18, 24, 32, .08);
}
* { box-sizing: border-box; }
html,
body { min-height: 100%; }
body {
  margin: 0;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background:
    linear-gradient(180deg, #fbfcfd 0%, var(--canvas) 42%, var(--canvas-2) 100%);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button,
input,
select { font: inherit; }
.sidebar {
  min-height: 100dvh;
  position: sticky;
  top: 0;
  padding: 18px 16px;
  background: rgba(255, 255, 255, .88);
  border-right: 1px solid rgba(18, 24, 32, .1);
  backdrop-filter: blur(18px);
}
.brand {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
}
.brand strong { display: block; font-size: 18px; }
.brand small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
}
.mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-weight: 850;
}
.tabs {
  display: grid;
  gap: 7px;
  margin-top: 22px;
}
.tab {
  width: 100%;
  min-height: 39px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #303842;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
}
.tab:hover {
  background: #f1f5f9;
}
.tab.is-active {
  color: var(--ink);
  background: var(--accent-soft);
  border-color: #cfe4ff;
}
.shell {
  min-width: 0;
  padding: 26px clamp(18px, 3vw, 40px);
}
.topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.topbar h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}
.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.safety-pill,
.status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 820;
  white-space: nowrap;
}
.safety-pill {
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid #efc2bd;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel {
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255,255,255,.9), var(--shadow);
  padding: 16px;
}
.metric { min-height: 118px; }
.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}
.metric strong {
  display: block;
  margin: 8px 0;
  font-size: 34px;
  line-height: 1;
}
.approval-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.4fr) minmax(280px, 2fr);
  gap: 14px;
  align-items: start;
}
.approval-panel h3 {
  margin: 0 0 7px;
  font-size: 19px;
}
.approval-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.approval-stats div,
.site-stats div {
  background: #f6f8fa;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  padding: 9px;
}
.approval-stats strong {
  display: block;
  font-size: 23px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 11px;
}
.section-title h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.15;
}
.note-panel {
  margin-top: 14px;
  margin-bottom: 4px;
}
.sku-code,
.file-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
}
.file-path {
  word-break: break-word;
}
.sku-profile-cell {
  min-width: 300px;
  display: grid;
  gap: 5px;
}
.sku-profile-cell strong {
  display: block;
}
.sku-profile-cell details {
  margin-top: 4px;
}
.sku-profile-cell summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 760;
}
.sku-profile-grid {
  display: grid;
  gap: 7px;
  margin-top: 8px;
  min-width: 320px;
}
.sku-profile-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  border-top: 1px solid #edf1f5;
  padding-top: 6px;
}
.sku-profile-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}
.sku-profile-list {
  margin: 0;
  padding-left: 17px;
}
.sku-profile-list li + li {
  margin-top: 3px;
}
.toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 180px 180px;
  gap: 10px;
  margin-bottom: 11px;
}
.toolbar input,
.toolbar select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}
.toolbar input:focus,
.toolbar select:focus,
.tab:focus-visible,
.link-row a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}
th,
td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  background: #f8fafc;
}
td { font-size: 14px; }
tr:last-child td { border-bottom: 0; }
.status.ready,
.status.pass,
.status.allowed {
  color: var(--ok);
  background: var(--ok-soft);
}
.status.blocked,
.status.partial {
  color: var(--warn);
  background: var(--warn-soft);
}
.status.hard,
.status.no,
.status.false {
  color: var(--danger);
  background: var(--danger-soft);
}
.status.neutral {
  color: var(--accent);
  background: var(--accent-soft);
}
.muted { color: var(--muted); }
.stack {
  display: grid;
  gap: 10px;
}
.site-card {
  min-height: 224px;
  display: grid;
  gap: 11px;
}
.site-card h3 {
  margin: 0;
  font-size: 19px;
}
.site-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.site-stats strong {
  display: block;
  font-size: 21px;
}
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.link-row a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff;
}
.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.footer-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 1120px) {
  body { grid-template-columns: 1fr; }
  .sidebar {
    min-height: auto;
    position: static;
    border-right: 0;
    border-bottom: 1px solid rgba(18, 24, 32, .1);
  }
  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
    max-width: 420px;
  }
  .tab { text-align: center; }
  .grid,
  .grid.three,
  .action-grid,
  .approval-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .shell { padding: 17px; }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar h1 { font-size: 36px; }
  .grid,
  .grid.three,
  .toolbar,
  .action-grid,
  .approval-panel,
  .approval-stats { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { max-width: none; }
  .tab { min-height: 36px; }
  table { min-width: 720px; }
}
