:root {
  color-scheme: dark;
  --bg: #101310;
  --surface: #171a17;
  --surface-2: #20251f;
  --surface-3: #2b302b;
  --text: #f2f4ef;
  --muted: #aeb6aa;
  --border: #3d453b;
  --accent: #9fb86f;
  --accent-2: #d2b45b;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(159, 184, 111, 0.14), transparent 320px),
    radial-gradient(circle at 82% 8%, rgba(210, 180, 91, 0.09), transparent 230px),
    var(--bg);
  color: var(--text);
}

button,
select,
input {
  font: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--border);
  background: rgba(16, 19, 16, 0.88);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  font-size: 0.86rem;
  font-weight: 780;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
}

.topnav a:hover {
  color: var(--text);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f5f3ed;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 1.08rem;
}

.brand-text span,
.footer,
label,
.field-help {
  color: var(--muted);
}

.version {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}

main {
  width: min(1040px, calc(100% - 32px));
  margin: 26px auto;
}

.anchor-target {
  scroll-margin-top: 96px;
}

.view {
  display: none;
}

.active-view {
  display: block;
}

.entry-shell,
.report-shell,
.wait-card,
.home-hero,
.tool-overview,
.history-shell {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.entry-shell,
.report-shell,
.home-hero,
.tool-overview,
.history-shell {
  padding: clamp(18px, 2.4vw, 30px);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
}

.home-hero h1 {
  max-width: 18ch;
  margin-bottom: 14px;
  font-size: 3.25rem;
}

.home-hero p {
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.58;
}

.hero-actions,
.teaser-actions,
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-badges {
  margin: 14px 0 18px;
}

.hero-badges span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.hero-actions a,
.teaser-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.example-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.example-card > span,
.example-card dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.example-card > strong {
  font-size: 1.6rem;
}

.example-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.example-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.example-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 850;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 4.7rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
}

.controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 780;
}

select,
input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 11px;
  background: var(--surface-2);
  color: var(--text);
}

select:disabled,
input:disabled {
  opacity: 0.58;
}

.blank-state {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.blank-state span {
  color: var(--muted);
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(190px, 1.1fr) minmax(190px, 0.9fr) minmax(180px, 0.8fr) minmax(136px, 0.52fr);
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.event-name {
  display: grid;
  gap: 5px;
  align-self: center;
}

.event-name strong {
  font-size: 1.02rem;
}

.event-name span,
.field-help,
.points-preview {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.points-preview {
  min-height: 46px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-3);
}

.points-preview strong {
  color: var(--text);
  font-size: 1.15rem;
}

.points-preview small {
  color: var(--muted);
  font-size: 0.72rem;
}

.result-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.result-input-wrap:has(input + input) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-actions,
.report-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.report-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.draft-score {
  display: grid;
  gap: 4px;
  min-width: 170px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.draft-score span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.draft-score strong {
  font-size: 1.3rem;
}

.primary-button,
.ghost-button {
  min-height: 46px;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 850;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #12150f;
}

.primary-button:disabled {
  border-color: var(--border);
  background: var(--surface-3);
  color: var(--muted);
  cursor: not-allowed;
}

.ghost-button {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
}

.wait-view {
  min-height: 62vh;
  place-items: center;
}

.wait-view.active-view {
  display: grid;
}

.wait-card {
  width: min(620px, 100%);
  padding: clamp(22px, 4vw, 40px);
  text-align: center;
}

.countdown {
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  margin: 24px auto;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--accent-2);
  font-size: 3rem;
  font-weight: 900;
}

.guide-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.business-network {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 16px;
  margin-top: 18px;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(159, 184, 111, 0.1), rgba(210, 180, 91, 0.06)), var(--surface);
  box-shadow: var(--shadow);
}

.network-copy {
  display: grid;
  align-content: center;
  gap: 8px;
}

.network-copy h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
}

.network-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.network-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.network-card {
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(16, 19, 16, 0.45);
  color: inherit;
  text-decoration: none;
}

.network-card:hover {
  border-color: var(--accent);
}

.network-card strong {
  color: var(--text);
  font-size: 1rem;
}

.network-card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.tool-overview,
.history-shell {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.tool-overview h2,
.history-shell h2,
.score-plan h2 {
  margin-bottom: 8px;
  font-size: 1.75rem;
}

.tool-overview p,
.history-shell p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.coverage-grid span {
  min-height: 54px;
  display: grid;
  align-content: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
}

.compact-heading {
  margin-bottom: 0;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(82px, auto) minmax(130px, auto) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.history-row div {
  display: grid;
  gap: 4px;
}

.history-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.history-load {
  min-height: 38px;
  padding: 8px 12px;
}

.guide-teaser h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.guide-teaser p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.network-tools {
  display: grid;
  grid-template-columns: minmax(230px, 0.62fr) minmax(0, 1.38fr);
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.network-tools h2,
.network-tools p {
  margin: 0;
}

.network-tools h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.network-tools p {
  color: var(--muted);
  line-height: 1.55;
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.network-grid a {
  min-height: 126px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: inherit;
  text-decoration: none;
}

.network-grid a:hover,
.network-grid a:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--border));
}

.network-grid strong {
  color: var(--text);
  line-height: 1.25;
}

.network-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.result-card {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-3);
}

.result-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.result-card strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.pass-text {
  color: var(--text);
}

.fail-text {
  color: var(--text);
}

.report-details {
  display: grid;
  gap: 10px;
}

.score-plan {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
}

.planner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.planner-grid div {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.planner-grid span,
.action-status {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.planner-grid strong {
  color: var(--text);
  line-height: 1.45;
}

.action-status {
  min-height: 1.2em;
  margin: 10px 0 0;
  text-align: right;
}

.detail-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(130px, 0.65fr) minmax(110px, 0.5fr);
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.detail-row-meta {
  background: var(--surface-3);
}

.detail-row span {
  color: var(--muted);
  font-size: 0.84rem;
}

.source-note {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.source-note span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto 28px;
  font-size: 0.84rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
}

.footer a {
  color: var(--muted);
  text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent);
  text-underline-offset: 3px;
}

.legal-shell {
  width: min(840px, calc(100% - 32px));
  margin: 26px auto;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}

.legal-shell h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin-bottom: 18px;
}

.legal-shell h2 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
  line-height: 1.62;
}

.legal-shell a {
  color: var(--accent);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.guide-card {
  display: grid;
  gap: 8px;
  min-height: 164px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: inherit;
  text-decoration: none;
}

.guide-card:hover {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
}

.guide-card strong {
  font-size: 1.12rem;
}

.guide-card span,
.article-meta,
.source-list {
  color: var(--muted);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 20px;
  font-size: 0.84rem;
}

.guide-article {
  max-width: 74ch;
  overflow-x: hidden;
}

.guide-article h1 {
  margin-bottom: 12px;
}

.guide-article h2 {
  margin-top: 30px;
}

.guide-article h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 1rem;
}

.guide-article p,
.guide-article li {
  color: var(--muted);
  line-height: 1.68;
}

.guide-article table {
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.92rem;
}

.guide-article th,
.guide-article td {
  padding: 10px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.guide-article th {
  background: var(--surface-3);
  color: var(--text);
}

.guide-note {
  display: grid;
  gap: 6px;
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 11%, var(--surface));
}

#scopeNotice[hidden] {
  display: none;
}

.guide-note strong {
  color: var(--text);
}

.guide-note span {
  color: var(--muted);
  line-height: 1.6;
}

.source-list {
  padding-left: 20px;
}

.source-list a {
  color: var(--accent);
}

.legal-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 850;
  text-decoration: none;
}

/* MyPTScore field-card visual system, introduced in v0.6.11. */
:root {
  color-scheme: light;
  --bg: #f2f0e8;
  --surface: #fbfaf5;
  --surface-2: #e9e7dd;
  --surface-3: #dedfd5;
  --text: #202923;
  --muted: #58645c;
  --border: #c4c9bd;
  --accent: #315847;
  --accent-2: #a54835;
  --shadow: none;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
}

.topbar {
  padding-top: 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--text);
  background: var(--bg);
  backdrop-filter: none;
}

.topnav {
  gap: 8px 17px;
  font-weight: 700;
}

.topnav a {
  color: var(--text);
  text-underline-offset: 4px;
}

.topnav a:hover,
.footer a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.brand-logo {
  border-radius: 2px;
  background: var(--surface);
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: 0.015em;
}

.version {
  min-height: 28px;
  border-radius: 2px;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

main {
  width: min(1080px, calc(100% - 36px));
  margin-top: 38px;
  margin-bottom: 42px;
}

.entry-shell,
.report-shell,
.wait-card,
.home-hero,
.tool-overview,
.history-shell,
.guide-teaser,
.business-network,
.legal-shell {
  border-radius: 2px;
  box-shadow: none;
}

.home-hero {
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
  margin-bottom: 34px;
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.home-hero h1,
.legal-shell h1,
.guide-article h1,
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.home-hero h1 {
  max-width: 16ch;
  margin-bottom: 18px;
  font-size: clamp(2.65rem, 5.4vw, 4.65rem);
  line-height: 1.02;
}

.home-hero p {
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.66;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.105em;
}

.hero-badges {
  gap: 8px 0;
  margin: 17px 0 20px;
}

.hero-badges span {
  min-height: 0;
  padding: 2px 13px 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-badges span + span {
  padding-left: 13px;
  border-left: 1px solid var(--border);
}

.example-card {
  gap: 14px;
  padding: 19px 20px;
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 0;
  background: var(--surface-2);
}

.example-card > span,
.example-card dt,
.result-card span,
.draft-score span,
.planner-grid span {
  letter-spacing: 0.07em;
}

.example-card > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
}

.entry-shell,
.report-shell,
.legal-shell {
  border-color: var(--border);
  border-top: 2px solid var(--accent);
  background: var(--surface);
}

.entry-shell,
.report-shell,
.legal-shell {
  padding: clamp(18px, 2.8vw, 32px);
}

.panel-heading {
  align-items: end;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--border);
}

.panel-heading h2,
.tool-overview h2,
.history-shell h2,
.score-plan h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

label {
  color: var(--text);
  font-weight: 700;
}

select,
input {
  border-color: #9da99f;
  border-radius: 2px;
  background: #fff;
  color: var(--text);
}

select:focus-visible,
input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

.blank-state {
  border: 0;
  border-left: 3px solid var(--accent-2);
  border-radius: 0;
  background: var(--surface-2);
}

.event-card {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.points-preview,
.draft-score {
  border-radius: 2px;
  background: var(--surface-2);
}

.primary-button,
.ghost-button {
  border-radius: 2px;
  font-weight: 750;
}

.primary-button {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.primary-button:hover:not(:disabled) {
  border-color: #203e31;
  background: #203e31;
}

.ghost-button {
  border-color: #9da99f;
  background: transparent;
  color: var(--text);
}

.ghost-button:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.wait-card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  background: var(--surface);
}

.countdown {
  border-radius: 2px;
  background: var(--surface-2);
  color: var(--accent-2);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.tool-overview,
.history-shell {
  border: 0;
  border-top: 2px solid var(--text);
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.coverage-grid {
  gap: 0 20px;
}

.coverage-grid span {
  min-height: 49px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 700;
}

.guide-teaser,
.business-network {
  border: 0;
  border-top: 1px solid var(--text);
  border-radius: 0;
  background: transparent;
}

.guide-teaser {
  padding-right: 0;
  padding-left: 0;
}

.business-network {
  padding-right: 0;
  padding-left: 16px;
  border-left: 3px solid var(--accent-2);
}

.network-card,
.network-grid a,
.guide-card {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.network-card:hover,
.network-grid a:hover,
.guide-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}

.result-card,
.planner-grid div {
  border-radius: 2px;
  background: var(--surface-2);
}

.result-card {
  border: 0;
  border-top: 3px solid var(--accent);
}

.score-plan {
  border: 0;
  border-left: 3px solid var(--accent-2);
  border-radius: 0;
  background: var(--surface-2);
}

.history-row,
.detail-row {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.detail-row-meta {
  background: var(--surface-2);
}

.source-note,
.guide-note {
  border-radius: 0;
  background: var(--surface-2);
}

.footer {
  padding-top: 18px;
  border-top: 1px solid var(--text);
  color: var(--muted);
}

.footer a,
.legal-shell a,
.guide-note a,
.source-list a,
.legal-back {
  color: var(--accent);
}

.legal-shell h2,
.guide-article h2,
.guide-article h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.guide-card {
  padding-right: 8px;
  padding-left: 8px;
}

.guide-article th {
  background: var(--surface-2);
}

.guide-note {
  border: 0;
  border-left: 3px solid var(--accent-2);
}

@media (max-width: 880px) {
  .topbar,
  .home-hero,
  .controls,
  .event-card,
  .result-grid,
  .coverage-grid,
  .business-network,
  .network-tools,
  .planner-grid,
  .history-row,
  .guide-grid,
  .detail-row {
    grid-template-columns: 1fr;
  }

  .network-links,
  .network-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topnav {
    justify-content: flex-start;
  }

  .entry-actions,
  .report-actions,
  .guide-teaser,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .footer nav {
    justify-content: flex-start;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }

  .action-status {
    text-align: left;
  }
}

@media (max-width: 560px) {
  main {
    width: min(calc(100% - 20px), 1040px);
    margin: 16px auto;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-text span {
    display: none;
  }

  .home-hero h1 {
    font-size: 2rem;
    overflow-wrap: normal;
    word-break: normal;
  }

  .legal-shell {
    width: min(calc(100% - 20px), 840px);
    margin: 16px auto;
    padding: 16px;
  }

  .article-meta {
    display: grid;
    gap: 5px;
  }

  .guide-article table {
    display: block;
    font-size: 0.82rem;
  }

  .guide-article thead {
    display: none;
  }

  .guide-article tbody,
  .guide-article tr,
  .guide-article th,
  .guide-article td {
    display: block;
    width: 100%;
  }

  .guide-article tbody {
    display: grid;
    gap: 10px;
  }

  .guide-article tr {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
  }

  .guide-article td {
    display: grid;
    grid-template-columns: minmax(98px, 0.62fr) minmax(0, 1fr);
    gap: 10px;
    padding: 9px 10px;
    border: 0;
    border-bottom: 1px solid var(--border);
  }

  .guide-article td:last-child {
    border-bottom: 0;
  }

  .guide-article td::before {
    content: attr(data-label);
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 850;
    line-height: 1.3;
    text-transform: uppercase;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .topbar,
  .home-hero,
  #entryView,
  #waitView,
  .guide-teaser,
  .business-network,
  .network-tools,
  .tool-overview,
  .history-shell,
  .report-actions,
  .footer,
  .action-status {
    display: none !important;
  }

  main {
    width: 100%;
    margin: 0;
  }

  #reportView,
  #reportView.active-view {
    display: block;
  }

  .report-shell,
  .result-card,
  .detail-row,
  .score-plan,
  .planner-grid div,
  .source-note {
    border-color: #999;
    box-shadow: none;
    background: #fff;
    color: #111;
  }

  .result-card span,
  .detail-row span,
  .source-note span,
  .planner-grid span {
    color: #333;
  }
}

@media screen and (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #101310;
    --surface: #171a17;
    --surface-2: #20251f;
    --surface-3: #2b302b;
    --text: #f2f4ef;
    --muted: #aeb6aa;
    --border: #3d453b;
    --accent: #9fb86f;
    --accent-2: #d2b45b;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  }
  body { background: var(--bg); color: var(--text); }
  select, input, textarea { border-color: var(--border); background: var(--surface); color: var(--text); }
  .ghost-button { border-color: var(--border); }
}
