@import url("fonts/index.css");
/* 홈페이지의 남색·청록을 공유한다. 확정 보상이 첫 시선, 상태와 장부가 다음이다. */
:root {
  color-scheme: dark;
  font-family: "Noto Sans KR Variable", "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  --bg: #0a1420;
  --panel: #101e2c;
  --panel-raised: #142534;
  --ink: #e6edf3;
  --muted: #b6c2cf;
  --subtle: #95a5b5;
  --line: #293a49;
  --accent: #5fd3c4;
  --warning: #f3bf76;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 1rem; line-height: 1.7; }
a { color: var(--accent); text-decoration: none; text-underline-offset: .3em; }
a:hover { text-decoration: underline; }
button, input, summary { font: inherit; }
button, summary { cursor: pointer; }
button, input { min-height: 48px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; word-break: keep-all; }
h1 { font-size: 2rem; font-weight: 650; letter-spacing: -.04em; }
h2 { font-size: 1.125rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
p, dd { overflow-wrap: anywhere; word-break: keep-all; }
code, .amount, .metric-value, table { font-variant-numeric: tabular-nums; }
code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .875rem; overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: .875rem; }
.eyebrow { color: var(--subtle); font-size: .75rem; font-weight: 600; letter-spacing: .13em; margin-bottom: 7px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--accent); color: var(--bg); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sidebar { width: 228px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: 34px 22px 25px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); padding: 0 13px; font-size: 1.7rem; font-weight: 650; line-height: 1.2; }
.brand:hover { text-decoration: none; }
.brand svg { color: var(--accent); flex: 0 0 auto; }
.brand small { display: block; margin-top: 9px; font-size: .75rem; color: var(--subtle); font-weight: 500; letter-spacing: .09em; }
.sidebar nav { display: flex; flex-direction: column; gap: 8px; margin-top: 57px; }
.sidebar nav a { display: flex; gap: 16px; align-items: center; min-height: 52px; padding: 12px 15px; border-radius: 5px; color: var(--muted); font-size: .9375rem; }
.nav-mark { font-size: .75rem; color: var(--subtle); font-variant-numeric: tabular-nums; }
.sidebar nav a:hover { background: var(--panel); text-decoration: none; }
.sidebar nav a[aria-current] { color: var(--accent); background: #15322f; border-left: 2px solid var(--accent); padding-left: 13px; }
.sidebar nav a[aria-current] .nav-mark { color: var(--accent); }
.sidebar-foot { margin-top: auto; padding: 30px 13px 0; }
.sidebar-foot p { font-size: .875rem; color: var(--subtle); line-height: 1.9; margin-bottom: 25px; }
.sidebar-foot a { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .875rem; padding-block: 8px; }
.workspace { margin-left: 228px; }
.topbar { min-height: 76px; padding: 16px 44px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .875rem; }
.separator { color: var(--subtle); margin-inline: 13px; }
.network-tag, .subtle-tag { border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: .75rem; padding: 4px 10px; white-space: nowrap; }
main { max-width: 1510px; padding: 34px 44px 0; margin-inline: auto; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.update-note { text-align: right; color: var(--subtle); font-size: .75rem; }
.update-note span, .update-note a { display: block; }
.update-note a { padding-block: 4px; }
.wallet-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 5px; margin-bottom: 28px; background: #0d1b28; }
.wallet-strip > div { min-width: 0; display: flex; gap: 20px; align-items: center; }
.field-label { font-size: .875rem; color: var(--subtle); flex-shrink: 0; }
.wallet-strip code { color: var(--muted); }
.wallet-change { position: relative; flex-shrink: 0; }
.wallet-change summary { color: var(--accent); font-size: .875rem; padding: 5px; }
.wallet-change .wallet-form { position: absolute; right: 0; top: 44px; width: min(600px, calc(100vw - 44px)); padding: 25px; background: var(--panel-raised); border: 1px solid var(--line); z-index: 10; border-radius: 5px; box-shadow: 0 12px 35px #0005; }
.wallet-form label { display: block; margin-bottom: 11px; font-size: .875rem; }
.input-row { display: flex; gap: 10px; }
.input-row input { min-width: 0; flex: 1; background: var(--bg); color: var(--ink); border: 1px solid #536776; border-radius: 4px; padding: 13px 15px; font-family: ui-monospace, monospace; font-size: .9375rem; }
.input-row input::placeholder { color: var(--subtle); font-family: inherit; }
.button { border: 1px solid transparent; border-radius: 4px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .9375rem; font-weight: 650; }
.primary { background: var(--accent); color: var(--bg); }
.primary:hover { background: #8ce2d7; }
.wallet-form p { font-size: .8125rem; margin-top: 13px; line-height: 1.8; }
.metrics { display: grid; grid-template-columns: 1.6fr 1fr 1fr; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 26px; }
.metrics article { min-width: 0; }
.reward-hero { padding: 25px 27px 0; background: #132b35; }
.metric-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.metric-heading h2, .metric h2 { font-size: .875rem; font-weight: 500; color: var(--muted); }
.hero-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-top: 24px; font-size: clamp(2.1rem, 3.4vw, 3.75rem); line-height: 1.15; color: var(--accent); font-weight: 550; letter-spacing: -.025em; overflow-wrap: anywhere; }
.hero-value .amount { min-width: 0; max-width: 100%; }
.hero-value > span:last-child:not(.amount) { font-size: 1rem; font-weight: 450; color: var(--muted); letter-spacing: 0; }
.metric-context { margin-top: 13px; font-size: .8125rem; color: var(--muted); }
.hero-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; margin-top: 22px; padding-block: 15px; border-top: 1px solid #304650; font-size: .75rem; color: var(--muted); }
.hero-foot a { font-size: .875rem; }
.metric { padding: 25px 24px 21px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.metric-value { font-size: clamp(1.35rem, 2vw, 2rem); line-height: 1.4; font-weight: 550; margin-top: 31px; letter-spacing: -.035em; overflow-wrap: anywhere; }
.metric > p:not(.metric-value) { font-size: .8125rem; color: var(--muted); margin-top: 10px; }
.metric-bottom { font-size: .75rem; color: var(--subtle); padding-top: 26px; margin-top: auto; }
.panel { margin-bottom: 26px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); overflow: hidden; }
.section-heading { padding: 25px 27px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.section-heading a { font-size: .875rem; }
.section-heading p:not(.eyebrow) { margin-top: 8px; }
.section-heading .eyebrow { font-size: .75rem; }
.segmented { display: flex; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; gap: 3px; }
.segmented a { padding: 7px 15px; border-radius: 3px; font-size: .875rem; color: var(--subtle); }
.segmented a[aria-current] { background: #223a42; color: var(--accent); }
.chart-topline, .chart-caption { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; padding-inline: 27px; font-size: .8125rem; color: var(--subtle); }
.chart-topline .muted { font-size: .8125rem; }
.legend { display: inline-flex; gap: 9px; align-items: center; color: var(--muted); }
.legend-square { width: 8px; height: 8px; border-radius: 1px; background: var(--accent); }
.chart-wrap { margin: 23px 27px 14px; }
.chart-wrap svg { width: 100%; display: block; height: auto; min-height: 150px; }
.grid-line { stroke: #2c3d4c; stroke-dasharray: 3 5; }
.axis { fill: #b6c2cf; font-size: 13px; font-family: ui-monospace, monospace; }
.chart-bar { fill: #5fd3c4; }
.chart-bar:hover { fill: #b0f3e9; }
.missing-bar { stroke: #74828e; stroke-width: 2; }
.chart-caption { padding-bottom: 18px; }
.chart-data { border-top: 1px solid var(--line); }
.chart-data summary { color: var(--muted); font-size: .875rem; padding: 13px 27px; }
.chart-data table { max-width: 760px; }
.table-scroll { width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .875rem; text-align: left; }
th { font-weight: 500; color: var(--subtle); background: #0d1b28; white-space: nowrap; }
th, td { padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th:first-child, td:first-child { padding-left: 27px; }
th:last-child, td:last-child { padding-right: 27px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #132432; }
th small { font-size: .75rem; margin-left: 4px; }
.num { text-align: right; white-space: nowrap; }
.date-link { color: var(--ink); white-space: nowrap; }
.date-link span { color: var(--accent); font-size: .875rem; margin-left: 5px; }
.status { display: inline-flex; padding: 3px 9px; border: 1px solid; border-radius: 4px; font-size: .875rem; white-space: nowrap; }
.status.good { color: #83e0ce; background: #13342f; border-color: #2e655a; }
.status.waiting { color: #a8c8f3; background: #192c42; border-color: #3b5370; }
.status.warning { color: var(--warning); background: #352c20; border-color: #706040; }
.status.quiet { color: #b6c2cf; background: #1c2937; border-color: #495c6b; }
.forfeit-note { display: block; color: var(--warning); font-size: .8125rem; margin-top: 5px; }
.section-note { color: var(--subtle); font-size: .8125rem; padding: 0 27px 19px; }
.node-row { display: grid; grid-template-columns: minmax(155px, 1fr) minmax(200px, 2fr) minmax(145px, 1fr); gap: 24px; padding: 20px 27px; border-top: 1px solid var(--line); align-items: center; }
.node-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.node-identity .muted, .node-identity code { font-size: .8125rem; }
.node-symbol { width: 38px; height: 40px; display: grid; place-items: center; background: #213341; border: 1px solid #3c5060; color: #b7d1d6; border-radius: 5px; flex-shrink: 0; }
.node-condition p { font-size: .875rem; color: var(--muted); line-height: 1.7; margin-top: 8px; }
.node-seen { display: flex; flex-direction: column; align-items: end; gap: 5px; color: var(--subtle); font-size: .75rem; }
.node-seen time { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.node-list + .section-note { padding-top: 17px; border-top: 1px solid var(--line); margin-top: 0; }
.notice { padding: 20px 24px; margin-bottom: 26px; border: 1px solid #355064; border-left: 3px solid #6eacc5; border-radius: 4px; background: #112432; font-size: .875rem; display: flex; flex-direction: column; gap: 7px; color: var(--muted); }
.notice strong { color: var(--ink); font-weight: 600; }
.notice.error { border-color: #896552; background: #292522; }
.notice.preview-note { border-color: #776341; background: #28261e; }
.empty-state { padding: 22px 27px 33px; }
.empty-state h3 { color: var(--muted); margin-bottom: 8px; }
.empty-state p { font-size: .875rem; color: var(--subtle); max-width: 670px; }
.pagination { display: flex; justify-content: end; align-items: center; flex-wrap: wrap; gap: 25px; padding: 18px 27px; border-top: 1px solid var(--line); font-size: .875rem; }
.pagination span { color: var(--subtle); }
.pagination a { padding: 4px; }
.proof-info { margin: 0; padding: 0 27px 24px; font-size: .875rem; }
.proof-info > div { display: grid; grid-template-columns: 115px minmax(0, 1fr); gap: 15px; padding-block: 11px; border-bottom: 1px solid var(--line); }
.proof-info dt { color: var(--subtle); }
.proof-info dd { margin: 0; min-width: 0; }
.proof-info code { word-break: break-all; }
.detail-panel .section-note { padding-top: 20px; }
.page-footer { margin-top: 35px; border-top: 1px solid var(--line); padding: 23px 0 30px; display: flex; gap: 12px 24px; justify-content: space-between; flex-wrap: wrap; font-size: .75rem; color: var(--subtle); }
.page-footer a { color: var(--muted); }
.entry { max-width: 790px; padding: clamp(20px, 5vw, 65px) 0 25px; }
.entry .eyebrow { color: var(--accent); margin-bottom: 17px; }
.entry h1 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.entry-lead { color: var(--muted); margin-block: 18px 34px; line-height: 1.9; }
.entry .wallet-form { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 26px; }
.entry-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 45px; }
.entry-guide > div { border-top: 1px solid var(--line); padding-top: 23px; }
.entry-guide span { color: var(--accent); font-size: .8125rem; }
.entry-guide h2 { font-size: 1rem; margin-block: 15px 8px; }
.entry-guide p { font-size: .875rem; color: var(--subtle); }
.entry-bottom { margin-top: 30px; font-size: .875rem; color: var(--muted); }
.entry-bottom a { margin-left: 8px; }
@media (min-width: 1600px) { main { padding-top: 42px; } .chart-wrap { margin-block: 28px 18px; } }
@media (max-width: 1200px) {
  .sidebar { width: 192px; padding-inline: 14px; }
  .workspace { margin-left: 192px; }
  main { padding-inline: 27px; }
  .topbar { padding-inline: 27px; }
  .metrics { grid-template-columns: 1.3fr 1fr; }
  .reward-hero { grid-row: span 2; display: flex; flex-direction: column; }
  .hero-value { margin-top: 30px; }
  .hero-foot { margin-top: auto; }
  .metric { padding: 20px; }
  .metric + .metric { border-top: 1px solid var(--line); }
  .metric-value { margin-top: 10px; }
  .metric-bottom { padding-top: 12px; }
  .wallet-strip > div { flex-direction: column; align-items: start; gap: 3px; }
  .node-row { grid-template-columns: minmax(140px, 1fr) minmax(180px, 2fr); }
  .node-seen { grid-column: 2; align-items: start; flex-direction: row; gap: 12px; }
}
@media (max-width: 800px) {
  .sidebar { position: static; width: 100%; padding: 18px 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; font-size: 1.5rem; }
  .brand > span { display: flex; align-items: baseline; gap: 14px; }
  .brand small { margin: 0; }
  .sidebar nav { flex-direction: row; margin-top: 20px; gap: 6px; }
  .sidebar nav a { flex: 1; justify-content: center; border-radius: 4px 4px 0 0; min-height: 48px; gap: 9px; padding: 10px 7px; }
  .sidebar nav a[aria-current] { border-left: 0; border-bottom: 2px solid var(--accent); padding-left: 7px; }
  .sidebar-foot { display: none; }
  .workspace { margin-left: 0; }
  .topbar { padding: 13px 22px; min-height: 62px; }
  main { padding: 25px 22px 0; }
  .page-heading { align-items: start; }
  .page-heading h1 { font-size: 1.75rem; }
  .section-heading { padding: 22px; }
  .entry { padding-top: 20px; }
  .hero-value { font-size: 2.8rem; }
}
@media (max-width: 520px) {
  .sidebar { padding-inline: 16px; }
  .topbar { padding-inline: 16px; gap: 9px; }
  .topbar > span:first-child { font-size: .8125rem; }
  .separator { margin-inline: 5px; }
  main { padding: 23px 16px 0; }
  .nav-mark { display: none; }
  .page-heading { gap: 10px; }
  .update-note { max-width: 145px; }
  .wallet-strip { align-items: start; flex-direction: column; padding: 15px; gap: 12px; }
  .wallet-strip code { font-size: .8125rem; word-break: break-all; }
  .wallet-change { width: 100%; }
  .wallet-change .wallet-form { position: static; width: 100%; padding: 20px 0 0; background: transparent; border: 0; box-shadow: none; }
  .input-row { flex-direction: column; }
  .input-row input { flex-basis: auto; width: 100%; }
  .button { justify-content: center; }
  .metrics { grid-template-columns: 1fr; }
  .reward-hero { grid-row: auto; padding: 22px 21px 0; }
  .hero-value { margin-top: 25px; font-size: 3rem; }
  .hero-foot { margin-top: 23px; }
  .metric { border-left: 0; border-top: 1px solid var(--line); padding: 21px; }
  .metric-value { font-size: 1.75rem; margin-top: 12px; }
  .metric-bottom { padding-top: 13px; }
  .panel { margin-bottom: 20px; }
  .section-heading { padding: 21px; gap: 15px; }
  .chart-topline, .chart-caption { padding-inline: 21px; }
  .chart-wrap { margin: 20px 10px 12px; overflow-x: auto; }
  .chart-wrap svg { min-width: 680px; }
  .chart-data summary { padding-inline: 21px; }
  .node-row { grid-template-columns: 1fr; gap: 15px; padding: 21px; }
  .node-seen { grid-column: 1; flex-wrap: wrap; }
  .section-note { padding-inline: 21px; }
  .empty-state { padding-inline: 21px; }
  .notice { padding: 18px; }
  th, td { padding-inline: 17px; }
  th:first-child, td:first-child { padding-left: 21px; }
  .proof-info { padding-inline: 21px; }
  .proof-info > div { grid-template-columns: 1fr; gap: 6px; }
  .entry .wallet-form { padding: 20px; }
  .entry-guide { grid-template-columns: 1fr; gap: 25px; margin-top: 30px; }
  .page-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
