:root {
  color-scheme: dark;
  --bg: #08120f;
  --panel: #101c1a;
  --panel-2: #142523;
  --text: #eef7f0;
  --muted: #a9bbb2;
  --line: #28403a;
  --accent: #48d597;
  --amber: #f2b84b;
  --red: #ff6b6b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(72, 213, 151, 0.08), transparent 36%),
    radial-gradient(circle at 82% 8%, rgba(242, 184, 75, 0.12), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.news-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid rgba(72, 213, 151, 0.32);
  background:
    linear-gradient(90deg, rgba(72, 213, 151, 0.09), transparent 42%),
    rgba(16, 28, 26, 0.88);
  box-shadow: inset 3px 0 0 var(--accent);
}

.top-nav div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.top-nav a {
  position: relative;
  color: #c2d4cb;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.top-nav div a {
  min-width: 92px;
  padding: 10px 13px;
  border: 1px solid transparent;
  text-align: center;
}

.top-nav div a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  vertical-align: 1px;
}

.top-nav div a:hover {
  border-color: rgba(72, 213, 151, 0.38);
  background: rgba(72, 213, 151, 0.07);
  color: var(--accent);
}

.top-nav a[aria-current="page"] {
  border-color: rgba(72, 213, 151, 0.55);
  background: rgba(72, 213, 151, 0.13);
  color: #7ce8b8;
}

.top-nav a[aria-current="page"]::before {
  background: var(--accent);
  box-shadow: 0 0 9px rgba(72, 213, 151, 0.7);
}

.top-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.top-nav .brand::before {
  content: "";
  display: inline-block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(72, 213, 151, 0.55);
  border-radius: 8px;
  background:
    url("/favicon.svg") center / 28px 28px no-repeat,
    #06100d;
  box-shadow:
    0 0 0 3px rgba(72, 213, 151, 0.05),
    0 0 22px rgba(72, 213, 151, 0.18);
}

.dev-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.tool-shell {
  width: min(1180px, calc(100% - 32px));
}

.tool-shell > .top-nav {
  width: 100%;
}

.dev-card {
  width: 100%;
  margin: 7vh auto 0;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  background: rgba(16, 28, 26, 0.9);
}

.dev-card h1 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
}

.dev-card form {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.dev-card label {
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.dev-card input {
  width: 100%;
  border: 1px solid var(--line);
  background: #08120f;
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
}

.dev-card input[type="file"] {
  color: var(--muted);
}

.dev-card button {
  margin-top: 8px;
  border: 0;
  background: var(--accent);
  color: #07110d;
  padding: 13px 18px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.fine-print {
  margin-top: 18px;
  font-size: 0.82rem;
}

.contact-list {
  display: grid;
  gap: 0;
  margin-top: 30px;
}

.contact-list div {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.contact-list a,
.text-link {
  color: var(--accent);
}

.contact-list dd {
  margin-top: 7px;
}

.login-card {
  max-width: 570px;
}

.login-error {
  margin: 4px 0 0;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 800;
}

.error-card code {
  color: var(--amber);
  font-size: 1rem;
}

.denial-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
}

.login-action {
  min-width: 150px;
  padding: 12px 24px;
  border: 1px solid var(--accent);
  background: rgba(72, 213, 151, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.login-action:hover {
  background: var(--accent);
  color: #07110d;
}

.masthead {
  display: block;
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.masthead::after {
  content: "";
  display: block;
  clear: both;
}

.masthead-title {
  display: grid;
  grid-template-columns: clamp(58px, 9vw, 92px) minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 24px);
  align-items: center;
}

.masthead-logo {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(72, 213, 151, 0.46);
  border-radius: 22%;
  background: #06100d;
  box-shadow:
    0 0 0 4px rgba(72, 213, 151, 0.05),
    0 0 32px rgba(72, 213, 151, 0.2);
}

.kicker,
.story-meta {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(2.1rem, 6vw, 4.9rem);
  line-height: 0.95;
}

h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  line-height: 1.12;
}

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

.status-stack {
  float: right;
  display: grid;
  gap: 8px;
  min-width: 0;
  width: min(240px, 30%);
  margin: 0 0 16px 24px;
}

.status-stack span {
  border: 1px solid var(--line);
  background: rgba(16, 28, 26, 0.78);
  color: var(--text);
  padding: 10px 12px;
  font-size: 0.9rem;
}

.lead-grid,
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  margin-top: 20px;
}

.news-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.news-main-column {
  min-width: 0;
}

.news-main-column .lead-grid,
.news-main-column .content-grid {
  margin-top: 0;
}

.news-main-column .content-grid {
  margin-top: 20px;
}

.content-grid-left-rail {
  grid-template-columns: 330px minmax(0, 1fr);
}

.lead-story,
.intel-panel,
.news-card,
.side-rail section,
.insider section,
.plain {
  border: 1px solid var(--line);
  background: rgba(16, 28, 26, 0.84);
}

.lead-story {
  min-height: 340px;
  display: block;
  padding: 28px;
  background:
    linear-gradient(160deg, rgba(8, 18, 15, 0.2), rgba(8, 18, 15, 0.86)),
    repeating-linear-gradient(90deg, rgba(72, 213, 151, 0.08) 0 1px, transparent 1px 32px),
    var(--panel);
}

.lead-story h2 {
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.lead-image,
.article-image {
  display: block;
  float: right;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(72, 213, 151, 0.22);
  border-radius: 2px;
  background: rgba(8, 18, 15, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(8, 18, 15, 0.82),
    0 10px 26px rgba(0, 0, 0, 0.18);
}

.lead-image {
  position: relative;
  float: right;
  width: min(180px, 28%);
  min-width: 150px;
  height: 118px;
  margin: 0 0 16px 26px;
}

.article-image {
  width: min(160px, 34%);
  height: 104px;
  margin: 0 0 12px 18px;
}

.lead-image::after,
.article-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(72, 213, 151, 0.08), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(8, 18, 15, 0.28), transparent 52%),
    rgba(8, 18, 15, 0.08);
  mix-blend-mode: screen;
}

.lead-image img,
.article-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  filter: saturate(0.72) contrast(0.94) brightness(0.92);
  transform: scale(1.015);
}

.lead-image:hover img,
.article-image:hover img {
  opacity: 0.96;
  filter: saturate(0.9) contrast(1.02) brightness(0.98);
}

.lead-story::after,
.news-card::after {
  content: "";
  display: block;
  clear: both;
}

.lead-story h2 a,
.news-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.lead-story h2 a:hover,
.news-card h2 a:hover,
.intel-panel a:hover {
  color: var(--accent);
}

.intel-panel a {
  color: #d6e7de;
  text-decoration-color: rgba(72, 213, 151, 0.45);
  text-underline-offset: 3px;
}

.article-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.article-link:hover {
  color: #8aefc2;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.story-tags span {
  border: 1px solid rgba(72, 213, 151, 0.35);
  color: var(--text);
  padding: 7px 10px;
  font-size: 0.82rem;
}

.intel-panel,
.side-rail section {
  padding: 22px;
}

.intel-panel ul,
.news-card ol {
  padding-left: 20px;
}

.article-stack {
  display: grid;
  gap: 20px;
}

.news-card {
  padding: 24px;
}

.article-byline {
  margin: -2px 0 12px;
  color: #8fb0a1;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-card:nth-child(2) {
  border-left: 4px solid var(--amber);
}

.news-card:nth-child(3) {
  border-left: 4px solid var(--red);
}

.feed-loader {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(16, 28, 26, 0.72);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.side-rail {
  display: grid;
  align-content: start;
  gap: 20px;
}

.legacy-side-rail {
  display: none;
}

.tool-links,
.handy-links {
  display: grid;
  gap: 0;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.tool-links li,
.handy-links li {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.tool-links a,
.handy-links a {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.tool-links a:hover,
.handy-links a:hover {
  color: #8aefc2;
}

.tool-links span,
.handy-links span {
  color: var(--muted);
  font-size: 0.75rem;
}

dt {
  margin-top: 14px;
  color: var(--text);
  font-weight: 800;
}

dd {
  margin: 4px 0 0;
}

.insider,
.plain {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.insider section,
.plain {
  width: min(760px, 100%);
  padding: 34px;
}

.insider h1 {
  font-size: clamp(2rem, 6vw, 4rem);
}

.fallback {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: #f7f8f6;
  color: #17211d;
}

.fallback section {
  width: min(720px, 100%);
}

.fallback h1 {
  color: #17211d;
  font-size: clamp(2rem, 7vw, 4.25rem);
}

.fallback p {
  color: #4b5b55;
  font-size: 1.05rem;
}

@media (max-width: 880px) {
  .top-nav {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .top-nav div {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .top-nav div a {
    min-width: 0;
    padding-inline: 7px;
  }

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

  .masthead,
  .lead-grid,
  .content-grid,
  .news-content-layout {
    grid-template-columns: 1fr;
  }

  .status-stack {
    float: none;
    width: 100%;
    margin: 0 0 16px;
  }

  .news-right-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-stack {
    min-width: 0;
  }

  .lead-story {
    min-height: 440px;
  }
}

@media (max-width: 560px) {
  .news-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .top-nav .brand {
    font-size: 0.74rem;
  }

  .top-nav .brand::before {
    width: 30px;
    height: 30px;
    background-size: 25px 25px;
  }

  .top-nav div,
  .news-right-rail {
    grid-template-columns: 1fr;
  }

  .tool-layout {
    grid-template-columns: 1fr;
  }

  .tool-side-rail {
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
  }

  .lead-story {
    min-height: 0;
    padding: 22px;
  }

  .lead-image {
    width: 108px;
    min-width: 108px;
    height: 74px;
    margin: 0 0 12px 14px;
  }

  .article-image {
    width: 108px;
    height: 74px;
    margin-left: 14px;
  }
}

.tool-card {
  width: 100%;
  margin: 0;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  background: rgba(16, 28, 26, 0.9);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  margin: 4vh 0 0;
}

.compact-toolbox {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(72, 213, 151, 0.08), transparent 58%),
    rgba(8, 18, 15, 0.42);
}

.compact-toolbox h2 {
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-toolbox ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-toolbox li {
  flex: 0 1 auto;
  min-width: 0;
  border: 1px solid rgba(72, 213, 151, 0.22);
  background: rgba(16, 28, 26, 0.72);
}

.compact-toolbox a {
  display: block;
  padding: 7px 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.compact-toolbox a:hover {
  background: rgba(72, 213, 151, 0.12);
  color: #8aefc2;
}

.lookup-form {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
}

.lookup-form label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.lookup-row input {
  min-width: 0;
  border: 1px solid var(--line);
  background: #08120f;
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
}

.lookup-row button {
  border: 1px solid var(--accent);
  background: rgba(72, 213, 151, 0.12);
  color: var(--accent);
  padding: 13px 18px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.lookup-row button:hover {
  background: var(--accent);
  color: #07110d;
}

.target-detected {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.target-detected code {
  color: var(--amber);
  overflow-wrap: anywhere;
}

.source-picker {
  margin: 8px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
}

.source-picker legend {
  padding: 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.source-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(72, 213, 151, 0.22);
  background: rgba(8, 18, 15, 0.54);
  color: var(--text);
}

.source-option input {
  grid-row: span 2;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.source-option span {
  font-weight: 850;
}

.source-option small {
  color: var(--muted);
  font-size: 0.76rem;
}

.source-option.is-disabled,
.source-option:has(input:disabled) {
  opacity: 0.42;
  filter: grayscale(0.85);
}

.access-note {
  margin: 14px 0 0;
  color: var(--amber);
  font-size: 0.9rem;
  font-weight: 850;
}

.access-note.privileged {
  color: var(--accent);
}

.premium-gated-form input:disabled,
.premium-gated-form button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  filter: grayscale(0.85);
}

.lookup-source-block {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(72, 213, 151, 0.22);
  background:
    linear-gradient(90deg, rgba(72, 213, 151, 0.055), transparent 62%),
    rgba(8, 18, 15, 0.34);
}

.live-results {
  margin-top: 18px;
}

.lookup-source-block.is-loading {
  border-color: rgba(242, 184, 75, 0.38);
}

.lookup-source-block.is-error {
  border-color: rgba(255, 107, 107, 0.38);
}

.lookup-status {
  color: var(--amber);
  font-weight: 850;
}

.lookup-warning {
  margin: 0;
  color: var(--amber);
  font-size: 0.92rem;
  font-weight: 850;
}

.lookup-source-block > h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.2rem;
}

.lookup-source-block > h2 a {
  color: inherit;
  text-decoration-color: rgba(72, 213, 151, 0.55);
  text-underline-offset: 4px;
}

.lookup-source-block > h2 a:hover {
  color: var(--accent);
}

.lookup-source-block .lookup-results {
  margin-top: 12px;
}

.lookup-results {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 15, 0.55);
}

.lookup-results table {
  width: 100%;
  border-collapse: collapse;
}

.lookup-results th,
.lookup-results td {
  border-top: 1px solid var(--line);
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
}

.lookup-results th {
  width: 150px;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-list {
  margin: 0;
  padding-left: 20px;
  max-height: 420px;
  overflow: auto;
}

.result-list li {
  padding: 4px 0;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .tool-layout {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .tool-side-rail {
    position: static;
    width: 100%;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 560px) {
  .lookup-row {
    grid-template-columns: 1fr;
  }

  .source-grid {
    grid-template-columns: 1fr;
  }
}

.tool-intro {
  max-width: 820px;
}

.rain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  gap: 22px;
  align-items: start;
  margin-top: 28px;
}

.rain-inputs,
.rain-results,
.rain-explain,
.weather-panel {
  border: 1px solid rgba(72, 213, 151, 0.22);
  background: rgba(8, 18, 15, 0.62);
  padding: 18px;
}

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

.input-field {
  display: grid;
  gap: 6px;
}

.input-field label {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 850;
}

.input-field input {
  width: 100%;
  border: 1px solid var(--line);
  background: #08120f;
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}

.input-field small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.weather-panel {
  margin-top: 14px;
}

.weather-panel-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(280px, 0.9fr);
  gap: 8px 18px;
  align-items: center;
  margin-top: 18px;
}

.weather-panel-top h2,
.weather-panel-top p {
  margin: 0;
}

.weather-panel-top .privacy-note,
.weather-panel-top .weather-message,
.weather-panel-top .weather-readout,
.weather-panel-top .manual-weather-edit {
  grid-column: 1 / -1;
}

.weather-panel button {
  border: 1px solid var(--accent);
  background: rgba(72, 213, 151, 0.1);
  color: var(--accent);
  padding: 11px 14px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.city-weather-search {
  display: grid;
  gap: 8px;
}

.city-weather-search label {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 850;
}

.city-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.city-weather-search input,
.city-weather-search select {
  width: 100%;
  border: 1px solid var(--line);
  background: #08120f;
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}

.city-weather-search select[hidden] {
  display: none;
}

.weather-readout {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(72, 213, 151, 0.24);
  background: rgba(72, 213, 151, 0.07);
}

.weather-readout strong {
  color: var(--accent);
}

.weather-readout ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.manual-weather-edit[hidden] {
  display: none;
}

.input-field input:disabled {
  border-color: rgba(169, 187, 178, 0.22);
  background: rgba(169, 187, 178, 0.08);
  color: #8c9c94;
  cursor: not-allowed;
}

.input-field input.weather-locked {
  box-shadow: inset 3px 0 0 rgba(169, 187, 178, 0.35);
}

.weather-panel button:hover {
  background: var(--accent);
  color: #07110d;
}

.privacy-note,
.weather-message {
  color: var(--muted);
  font-size: 0.82rem;
}

.result-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.result-pill {
  border: 1px solid var(--line);
  background: rgba(72, 213, 151, 0.08);
  padding: 14px;
}

.result-pill span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-pill strong {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 1.35rem;
}

.scenario-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 0.9rem;
}

.scenario-table th,
.scenario-table td {
  border-top: 1px solid var(--line);
  padding: 9px 6px;
  text-align: left;
}

.scenario-table th {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.highlight-row td {
  color: var(--accent);
  font-weight: 850;
}

.chart-wrap {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: rgba(8, 18, 15, 0.72);
  padding: 12px;
}

#rainChart {
  display: block;
  width: 100%;
  height: 280px;
}

.equation-box {
  margin-top: 14px;
  padding: 14px;
  border-left: 3px solid var(--accent);
  background: rgba(72, 213, 151, 0.07);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  overflow-x: auto;
}

.rain-explain {
  margin-top: 22px;
}

.rain-explain li {
  margin: 8px 0;
}

@media (max-width: 900px) {
  .rain-grid {
    grid-template-columns: 1fr;
  }

  .input-grid,
  .result-stack {
    grid-template-columns: 1fr;
  }

  .weather-panel-top {
    grid-template-columns: 1fr;
  }

  .city-search-row {
    grid-template-columns: 1fr;
  }
}
