:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --ink: #203b34;
  --muted: #65746e;
  --line: #dfe4da;
  --green: #1b5142;
  --red: #ae372d;
  --rise: #b23c30;
  --fall: #23805b;
}
.interval-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 12px 0;
}
.preset-button {
  min-height: 46px;
  border: 1px solid #cbd5c9;
  border-radius: 9px;
  padding: 7px 15px;
  background: #f7f9f3;
  color: var(--ink);
}
.preset-button.selected {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
.interval-input {
  display: flex;
  align-items: center;
  gap: 12px;
}
.interval-input input {
  width: 110px;
  border: 1px solid #cbd5c9;
  border-radius: 9px;
  padding: 8px 13px;
  font-size: 22px;
}
.estimate {
  background: #f0f4e9;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 15px;
  margin-bottom: 7px;
}
.estimate.warning {
  background: #fff0da;
  color: #795418;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
button,
input,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.58;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #c48a36;
  outline-offset: 4px;
}
.shell {
  max-width: 1160px;
  margin: auto;
  padding: 38px 36px 26px;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 17px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-size: 28px;
  width: 58px;
  height: 58px;
  border-radius: 18px;
}
.brand h1 {
  font-size: 29px;
  margin: 0;
  font-weight: 750;
  letter-spacing: 2px;
}
.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.day {
  text-align: right;
  font-size: 16px;
}
.day span {
  display: block;
}
.account-name {
  max-width: 240px;
  overflow-wrap: anywhere;
  margin: 4px 0;
  font-weight: 650;
}
.edition {
  color: var(--muted);
  font-size: 13px;
}
.radio-panel {
  background: #183f36;
  color: #fff;
  border-radius: 28px;
  padding: 32px 38px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.radio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 2px;
  color: var(--muted);
}
.radio-panel .eyebrow {
  color: #bed0c3;
}
.market-pill {
  font-size: 16px;
  border: 1px solid #577168;
  padding: 5px 13px;
  border-radius: 30px;
  color: #e4eddb;
}
.radio-panel h2 {
  font-size: 43px;
  line-height: 1.35;
  letter-spacing: 1px;
  font-weight: 600;
  margin: 23px 0 13px;
}
.radio-description {
  color: #d0ddce;
  margin: 0 0 24px;
  font-size: 18px;
}
.player-row {
  display: flex;
  gap: 15px;
  align-items: center;
}
.play-button {
  border: 0;
  background: #e6efbf;
  color: #183f36;
  font-size: 25px;
  font-weight: 700;
  min-height: 68px;
  padding: 12px 34px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 17px;
}
.play-button.playing {
  background: #fff2d5;
}
.sample-button {
  min-height: 54px;
  background: transparent;
  border: 1px solid #6c867b;
  border-radius: 12px;
  color: #fff;
  padding: 9px 20px;
}
.on-air {
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid #476258;
  margin-top: 25px;
  padding-top: 20px;
}
.on-air strong {
  font-size: 18px;
  font-weight: 500;
}
.on-air p {
  margin: 1px 0 0;
  font-size: 15px;
  color: #c5d3c9;
}
.activity-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #91a99c;
  flex-shrink: 0;
}
.activity-dot.active {
  background: #d9ef9c;
  box-shadow: 0 0 0 5px #d9ef9c16;
}
.foreground-note {
  font-size: 13px;
  color: #bdcec2;
  margin: 16px 0 0;
}
.round-warning {
  border: 1px solid #a79465;
  background: #3f4935;
  color: #fff2cf;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 16px;
  margin: 18px 0 0;
}
.content-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: start;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 27px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
}
h2 {
  font-size: 26px;
  line-height: 1.4;
  margin: 3px 0 0;
  font-weight: 650;
}
.count {
  background: #edf1e8;
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 15px;
  white-space: nowrap;
}
.demo-note {
  background: #f5eedf;
  color: #76571d;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 15px;
  margin-bottom: 8px;
}
.stock-row {
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}
.stock-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.stock-name {
  font-size: 22px;
  font-weight: 650;
}
.stock-code {
  color: var(--muted);
  font-size: 14px;
  margin-left: 9px;
}
.remove-button {
  background: none;
  border: none;
  color: #6c7a73;
  min-width: 44px;
  min-height: 44px;
  font-size: 14px;
  padding: 5px;
}
.stock-numbers {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.price {
  font-size: 35px;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.price small {
  font-size: 15px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 5px;
}
.change {
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}
.rise {
  color: var(--rise);
}
.fall {
  color: var(--fall);
}
.stock-time,
.stock-state {
  font-size: 13px;
  color: var(--muted);
  margin: 3px 0;
}
.stock-state.stale,
.stock-state.unavailable,
.stock-state.invalid {
  color: #a26316;
}
.add-form {
  margin-top: 23px;
}
.add-form label {
  display: block;
  font-size: 16px;
  margin-bottom: 9px;
}
.input-row {
  display: flex;
  gap: 10px;
}
.input-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5c9;
  background: #fcfcfa;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 20px;
  letter-spacing: 1px;
}
.secondary-button {
  background: var(--green);
  border: 0;
  border-radius: 10px;
  color: #fff;
  min-height: 50px;
  padding: 10px 21px;
  white-space: nowrap;
  font-size: 17px;
}
.hint,
.data-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}
.data-note {
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin: 20px 0 0;
}
.news-mark {
  font-size: 35px;
  color: #839580;
}
.section-description {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 18px;
}
.news-item {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}
.news-item:first-child {
  padding-top: 2px;
}
.news-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.news-title {
  display: block;
  font-size: 19px;
  font-weight: 550;
  line-height: 1.65;
  color: var(--ink);
  text-decoration: none;
  margin: 7px 0;
}
.news-title:hover {
  text-decoration: underline;
}
.news-reasons {
  font-size: 12px;
  color: #75816b;
  margin: 5px 0;
}
.badge {
  display: inline-block;
  background: #edf3e6;
  color: #496b37;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 12px;
}
.badge.old {
  background: #f1f1eb;
  color: #737b71;
}
.rules {
  font-size: 14px;
  margin-top: 21px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  min-height: 38px;
  line-height: 2;
}
.rules p {
  margin: 10px 0;
}
.settings-card {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}
.setting-row {
  margin-bottom: 25px;
}
.setting-row label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 18px;
}
.setting-row output {
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--green);
  height: 35px;
  margin: 7px 0 0;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.check-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 23px;
  font-size: 17px;
}
.check-row input {
  width: 23px;
  height: 23px;
  accent-color: var(--green);
}
#save-status {
  display: block;
  font-size: 15px;
  color: var(--green);
  padding-top: 10px;
}
.source-details {
  color: var(--muted);
  font-size: 14px;
  margin: 25px 7px 0;
}
.source-details p {
  margin: 10px 0;
}
.source-status-line {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.alert {
  background: #fff0da;
  border: 1px solid #e7cea0;
  border-radius: 11px;
  color: #6d4b1b;
  padding: 13px 18px;
  margin-bottom: 20px;
  font-size: 16px;
}
.muted {
  color: var(--muted);
  font-size: 16px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #7c897f;
  font-size: 12px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
[hidden] {
  display: none !important;
}
@media (min-width: 900px) {
  .radio-panel h2 br {
    display: none;
  }
  .radio-panel {
    padding-right: 38px;
  }
  .radio-panel h2 {
    font-size: 44px;
  }
  .player-row {
    position: absolute;
    right: 38px;
    top: 100px;
    flex-direction: column;
    align-items: stretch;
  }
  .radio-description {
    max-width: 60%;
  }
  .radio-panel h2 {
    max-width: 68%;
    font-size: 39px;
  }
  .sample-button {
    min-height: 42px;
    padding: 5px 18px;
  }
}
@media (max-width: 720px) {
  .shell {
    padding: 22px 17px;
  }
  .masthead {
    margin-bottom: 22px;
    flex-wrap: wrap;
  }
  .brand {
    gap: 11px;
  }
  .brand-mark {
    width: 47px;
    height: 47px;
    font-size: 25px;
    border-radius: 14px;
  }
  .brand h1 {
    font-size: 25px;
  }
  .brand p {
    font-size: 13px;
  }
  .day {
    font-size: 13px;
  }
  .edition {
    font-size: 11px;
  }
  .radio-panel {
    border-radius: 23px;
    padding: 25px 23px;
    margin-bottom: 19px;
  }
  .market-pill {
    font-size: 13px;
    padding: 4px 10px;
  }
  .radio-panel h2 {
    font-size: 36px;
    margin-top: 23px;
  }
  .radio-description {
    font-size: 17px;
  }
  .play-button {
    font-size: 22px;
    min-height: 64px;
    padding: 10px 21px;
    gap: 12px;
    flex: 1;
    justify-content: center;
  }
  .sample-button {
    padding: 10px 13px;
    font-size: 16px;
  }
  .player-row {
    gap: 10px;
  }
  .content-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .card {
    padding: 23px 21px;
    border-radius: 19px;
  }
  .settings-card {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 19px;
  }
  .stock-name {
    font-size: 22px;
  }
  .stock-numbers {
    margin-top: 4px;
  }
  .price {
    font-size: 36px;
  }
  .news-title {
    font-size: 20px;
  }
  .on-air strong {
    font-size: 17px;
  }
  .on-air p {
    font-size: 14px;
  }
  .foreground-note {
    font-size: 12px;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .source-details {
    margin-top: 21px;
  }
  footer {
    flex-direction: column;
    gap: 4px;
  }
  .stock-code {
    font-size: 13px;
  }
  .remove-button {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.briefing-card { margin: 25px 0; }
.briefing-window { font-size: 16px; color: #4c625b; line-height: 1.8; }
.briefing-summary p { margin: 10px 0; line-height: 1.7; }
.coverage-note { border-left: 3px solid #b78a45; padding: 10px 15px; background: #faf4e8; color: #73572e; font-size: 15px; line-height: 1.8; }
.briefing-title-row { padding: 15px 0; border-top: 1px solid #e0e6dd; }
.source-links { display: grid; gap: 7px; margin-top: 12px; font-size: 14px; }
.source-links a { color: #315e4d; text-underline-offset: 3px; }
.briefing-inputs { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.briefing-inputs label { flex: 1; min-width: 150px; display: block; font-size: 16px; }
.briefing-inputs input { display: block; width: 100%; margin-top: 10px; padding: 12px; border: 1px solid #c5d1c7; border-radius: 10px; font: inherit; background: #fff; }
.briefing-settings { border-top: 1px solid #dce3db; margin: 22px 0; padding-top: 12px; }
.login-shell { width: min(520px, calc(100% - 36px)); margin: 9vh auto; }
.login-card { margin-top: 34px; }
.login-card h2 { margin: 13px 0; font-size: 28px; }
.login-card form { display: grid; gap: 12px; margin-top: 22px; }
.login-card input:not([type=hidden]) { width: 100%; padding: 14px; font: inherit; border: 1px solid #b9c7bf; border-radius: 9px; background: white; }
.login-card label { font-size: 17px; margin-top: 6px; }
.login-card .play-button { margin-top: 14px; justify-content: center; }
.setup-note { padding: 20px; background: #f0f4eb; border-radius: 12px; line-height: 1.9; margin-top: 24px; }
.setup-note p { margin: 8px 0 0; color: #516056; }
.login-footer { text-align: center; font-size: 14px; color: #6d786f; margin-top: 24px; }
@media (max-width: 600px) {
  .briefing-card .section-heading { flex-wrap: wrap; gap: 15px; }
  .briefing-window { font-size: 14px; }
  .briefing-summary { font-size: 17px; }
  .briefing-card { margin: 19px 0; }
  .login-shell { margin-top: 6vh; }
}

.assistant-card {
  margin-bottom: 24px;
  border-top: 4px solid #afbd9d;
}
.assistant-form label { display: block; font-weight: 650; }
.assistant-form textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 92px;
  margin: 9px 0 12px;
  padding: 12px 14px;
  border: 1px solid #cbd5c9;
  border-radius: 10px;
  color: var(--ink);
  background: #fffefa;
  line-height: 1.6;
}
.assistant-form textarea:disabled { background: #f1f2ed; }
.assistant-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 15px; }
#assistant-mic { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
#assistant-mic[aria-pressed="true"] { color: #fff; background: var(--green); border-color: var(--green); }
.assistant-form .assistant-speak-toggle { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 400; }
.assistant-speak-toggle input { width: 19px; height: 19px; accent-color: var(--green); }
.assistant-conversation { display: grid; gap: 13px; }
.assistant-message { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-wrap: anywhere; }
.assistant-user { background: #f2f5ed; }
.assistant-role { font-size: 14px; color: var(--muted); }
.assistant-text { margin: 5px 0 0; white-space: pre-wrap; }
.assistant-source { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 6px; }
.assistant-source .hint { margin: 4px 0; }
.assistant-source .news-title { font-size: 16px; }
.assistant-supplement { margin-top: 15px; border-top: 2px solid #b3c1a6; padding-top: 14px; }
.assistant-supplement-label { display: inline-block; padding: 3px 9px; border-radius: 6px; color: #254a35; background: #e4eddd; font-size: 15px; }
.assistant-supplement-note { margin: 8px 0; font-size: 15px; color: var(--muted); }
.assistant-supplement-text { margin: 12px 0; white-space: pre-wrap; }
.assistant-citation { display: inline-block; margin-left: 5px; padding: 0 3px; font-weight: 700; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.assistant-web-sources { list-style: none; padding: 0; margin: 14px 0 0; }
.assistant-choices { display: flex; gap: 9px; flex-wrap: wrap; margin: 14px 0 8px; }
.assistant-choice { text-align: left; max-width: 100%; white-space: normal; }
@media (max-width: 600px) {
  .assistant-actions { gap: 10px; }
  .assistant-actions .secondary-button { flex: 1; }
  .assistant-choices { flex-direction: column; }
  .assistant-message { padding: 12px; }
}
