/* Dropli アップロード配線チェック — blueprint スタイル
   このファイルが適用されていれば「CSS リンク」計器が点灯します。 */

:root {
  --ink-bg: #0e1a2b;
  --panel: #13273e;
  --line: #2e4e72;
  --text: #d7e3f2;
  --muted: #6e86a3;
  --signal: #57c7b8;
  --pending: #e8a13c;
  --grid: rgba(88, 130, 178, 0.12);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  background-color: var(--ink-bg);
  /* blueprint のハーフトーン方眼 */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
}

.mono {
  font-family: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas,
    "Liberation Mono", monospace;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) clamp(18px, 5vw, 40px) 64px;
}

/* ── ヘッダー（図面のタイトルブロック） ── */
.titleblock {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(19, 39, 62, 0.72);
  backdrop-filter: blur(2px);
}
.titleblock__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.titleblock__body { padding: 22px clamp(16px, 4vw, 28px) 26px; }

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--signal);
}
h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.lede { margin: 0; max-width: 54ch; color: var(--muted); }

.variant-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
}
.variant-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pending);
}

/* ── 計器パネル（signature） ── */
.gauges {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.gauge {
  position: relative;
  padding: 16px 16px 16px 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  transition: border-color 0.4s ease, background 0.4s ease;
}
.gauge__led {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pending);
  box-shadow: 0 0 0 0 rgba(232, 161, 60, 0.5);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.gauge__name {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.gauge__state {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 600;
}
.gauge[data-ok="true"] {
  border-color: var(--signal);
  background: linear-gradient(180deg, rgba(87, 199, 184, 0.08), var(--panel));
}
.gauge[data-ok="true"] .gauge__led {
  background: var(--signal);
  box-shadow: 0 0 12px 1px rgba(87, 199, 184, 0.6);
}
.gauge[data-ok="true"] .gauge__state { color: var(--signal); }

/* ── ライブクロック（JS 継続実行の証明） ── */
.readout {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
}
.readout strong {
  color: var(--text);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* ── マニフェスト（配線経路の一覧） ── */
.manifest {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.manifest__head {
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(19, 39, 62, 0.72);
}
.tree {
  margin: 0;
  padding: 16px;
  font-size: 13px;
  color: var(--text);
  white-space: pre;
  overflow-x: auto;
}
.tree .dir { color: var(--pending); }
.tree .entry { color: var(--signal); }
.tree .note { color: var(--muted); }

footer {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
}
footer a { color: var(--signal); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

:where(a, .gauge):focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}
