:root {
  color-scheme: dark;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: #090909;
  color: #f2f2ee;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: #090909;
}

body { min-height: 100vh; }

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

button { appearance: none; }

a { color: inherit; }

[hidden] { display: none !important; }

.shell {
  min-height: 100vh;
  width: min(100% - 48px, 760px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 18px;
  border-bottom: 1px solid #262624;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.brand { color: #f2f2ee; }
.version { color: #777772; }

.panel { padding: 72px 0; }

.gate { margin: auto 0; }

.inside { width: 100%; }

.session-panel {
  min-height: calc(100vh - 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.session-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}

.bank {
  min-width: 150px;
  text-align: right;
}

.eyebrow,
.micro-label {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #777772;
}

.micro-label {
  margin-bottom: 8px;
  font-size: 9px;
}

.timer {
  margin: 0 0 40px;
  font-size: clamp(2rem, 7vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  color: #f2f2ee;
}

.bank-value {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  color: #aaa9a2;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(3.4rem, 10vw, 7.4rem);
  line-height: 0.9;
}

h2 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 0.96;
}

.copy,
.section-copy {
  max-width: 580px;
  font-size: 14px;
  line-height: 1.75;
  color: #aaa9a2;
}

.copy {
  margin: 32px 0 0;
  padding-top: 18px;
  border-top: 1px solid #262624;
}

.section-copy { margin: 26px 0 32px; }

.button {
  border: 1px solid #e8e8e2;
  border-radius: 0;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.button.primary {
  margin-top: 36px;
  min-width: 138px;
  padding: 14px 18px;
  background: #e8e8e2;
  color: #090909;
}

.button.ghost {
  padding: 12px 14px;
  background: transparent;
  color: #d7d7d1;
  border-color: #393936;
}

.button.small {
  padding: 8px 10px;
  font-size: 10px;
}

.button:hover:not(:disabled) {
  background: transparent;
  color: #f2f2ee;
}

.button.ghost:hover:not(:disabled) {
  background: #e8e8e2;
  color: #090909;
  border-color: #e8e8e2;
}

.button:focus-visible,
.drop-zone:focus-within {
  outline: 2px solid #f2f2ee;
  outline-offset: 4px;
}

.button:disabled {
  border-color: #30302d;
  background: transparent;
  color: #5f5f5a;
  cursor: not-allowed;
}

.note {
  margin: 22px 0 0;
  max-width: 590px;
  font-size: 11px;
  line-height: 1.7;
  color: #696964;
}

.rule-list {
  max-width: 580px;
  margin-top: 36px;
}

.rule-list.compact { margin-top: 34px; }

.rule {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #262624;
}

.rule span {
  padding-top: 2px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #666661;
}

.rule p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #aaa9a2;
}

.section-block {
  padding: 96px 0;
  border-top: 1px solid #262624;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.local-badge {
  flex: none;
  padding: 7px 8px 6px;
  border: 1px solid #363633;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #8f8f89;
}

.drop-zone {
  min-height: 190px;
  border: 1px dashed #4b4b46;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 120ms ease, background 120ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: #d2d2cc;
  background: #0f0f0e;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.drop-title {
  font-size: 13px;
  letter-spacing: 0.14em;
}

.drop-subtitle {
  font-size: 11px;
  color: #686863;
}

.file-panel {
  margin-top: 22px;
  border-top: 1px solid #2d2d2a;
}

.file-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 0;
}

.file-name {
  margin: 0;
  max-width: 560px;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: #d8d8d2;
}

.metadata-list {
  margin: 0;
  border-top: 1px solid #262624;
}

.metadata-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.7fr);
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #20201e;
}

.metadata-row dt,
.metadata-row dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.metadata-row dt { color: #70706b; }

.metadata-row dd {
  color: #c5c5bf;
  overflow-wrap: anywhere;
}

.tool-note {
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 2px solid #4a4a45;
  font-size: 11px;
  line-height: 1.65;
  color: #85857f;
}

.tool-actions { margin-top: 24px; }

.tool-actions .button { margin-top: 0; }

.why-line {
  margin: 18px 0 0;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.55;
  color: #aaa9a2;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 22px 0 30px;
  border-top: 1px solid #262624;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #696964;
}

.footer span { margin-right: auto; }

.footer a { text-decoration: none; }

.footer a:hover { color: #f2f2ee; }

@media (max-width: 600px) {
  .shell { width: min(100% - 32px, 760px); }
  .masthead { padding-top: 20px; }
  .panel { padding: 48px 0; }
  .session-panel { min-height: calc(100vh - 50px); }
  .version { display: none; }
  .timer { margin-bottom: 30px; }

  .session-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bank {
    text-align: left;
    margin-bottom: 24px;
  }

  .section-block { padding: 68px 0; }

  .section-heading { display: block; }

  .local-badge {
    display: inline-block;
    margin-top: 18px;
  }

  .metadata-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}