.ai-shell {
  --ai-bg: #061425;
  --ai-panel: #0e2339;
  --ai-line: #284661;
  --ai-text: #edf8ff;
  --ai-muted: #abc2d8;
  --ai-accent: #79e4ff;
  background: var(--ai-bg);
  color: var(--ai-text);
  color-scheme: dark;
  scrollbar-color: #416580 var(--ai-bg);
}
.ai-shell .site-header, .ai-shell .site-footer {
  background: #081829;
  border-color: var(--ai-line);
}
.ai-shell .site-header { border-bottom: 1px solid var(--ai-line); }
.ai-shell .nav, .ai-shell .footer-inner p { color: var(--ai-muted); }
.ai-shell .wordmark { color: var(--ai-text); }
.ai-shell .brand-mark, .ai-shell .nav a:hover, .ai-shell .nav a[aria-current], .ai-shell .back-top { color: var(--ai-accent); }
.ai-shell .brand-mark::before { background-color: #153c56; }
.ai-shell :focus-visible { outline-color: var(--ai-accent); }
.ai-shell ::selection { color: #061425; background-color: var(--ai-accent); }

.ai-account {
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 4px 14px;
  border: 1px solid var(--ai-line);
  border-radius: 22px;
  color: var(--ai-text);
  font-size: 14px;
  white-space: nowrap;
}
.ai-account:hover { border-color: var(--ai-accent); color: var(--ai-accent); }
.ai-hero {
  border-bottom: 1px solid var(--ai-line);
  background: #061425;
}
.ai-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  min-height: 435px;
  gap: clamp(8px, 2vw, 32px);
  padding-block: 25px;
}
.ai-hero-copy { padding-left: 1px; }
.ai-hero h1 {
  color: var(--ai-text);
  font-family: var(--serif);
  font-size: clamp(52px, 7vw, 94px);
  font-weight: 780;
  letter-spacing: -.032em;
  line-height: 1.08;
}
.ai-hero h1 span { color: var(--ai-accent); }
.ai-hero-intro {
  max-width: 25em;
  margin-top: 24px;
  color: var(--ai-muted);
  font-size: clamp(16px, 1.75vw, 21px);
  line-height: 1.8;
}
.ai-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  margin-top: 28px;
}
.ai-primary, .ai-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 10px;
  font-size: 14px;
  font-weight: 690;
}
.ai-primary {
  padding: 7px 15px 7px 17px;
  border-radius: 8px;
  background: var(--ai-accent);
  color: #082334;
}
.ai-primary:hover { background: #a7eeff; }
.ai-secondary { color: var(--ai-accent); }
.ai-secondary:hover, .ai-source:hover { text-decoration: underline; text-underline-offset: 4px; }
.ai-down-arrow {
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.ai-hero-art {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 18px;
}

.ai-news { padding-block: 54px 58px; scroll-margin-top: 18px; }
.ai-section-heading { margin-bottom: 24px; }
.ai-section-heading h2, .ai-notes h2 {
  font-family: var(--serif);
  color: var(--ai-text);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.23;
  font-weight: 780;
}
.ai-section-heading p, .ai-notes-heading p, .ai-feed-status {
  color: var(--ai-muted);
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.65;
}
.ai-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ai-news-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--ai-line);
  border-radius: 14px;
  padding: 22px;
  background: var(--ai-panel);
}
.ai-news-card:nth-child(3n + 1) { background-color: #132d46; }
.ai-news-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ai-accent);
  font-size: 13px;
  line-height: 1.35;
}
.ai-news-meta time { color: var(--ai-muted); font-variant-numeric: tabular-nums; }
.ai-news-card h3 {
  color: var(--ai-text);
  font-size: clamp(20px, 2.14vw, 26px);
  line-height: 1.35;
  font-weight: 760;
  overflow-wrap: anywhere;
}
.ai-news-summary, .ai-news-body {
  color: var(--ai-muted);
  font-size: 15px;
  line-height: 1.68;
  overflow-wrap: anywhere;
}
.ai-news-summary { margin-top: 10px; margin-bottom: 15px; }
.ai-source {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  gap: 4px;
  margin-top: auto;
  color: var(--ai-accent);
  font-size: 14px;
  font-weight: 680;
}
.ai-news-body { white-space: pre-wrap; margin-bottom: 12px; }
.ai-news-body summary { width: fit-content; color: var(--ai-accent); cursor: pointer; }
.ai-news-body p { margin-top: 8px; }

.ai-notes {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
  align-items: start;
  padding-block: 40px 68px;
  column-gap: 52px;
  border-top: 1px solid var(--ai-line);
  scroll-margin-top: 18px;
}
.ai-notes-heading p { max-width: 19em; }
.ai-entries { border-top: 1px solid var(--ai-line); }
.ai-entry { border-bottom: 1px solid var(--ai-line); scroll-margin-top: 20px; }
.ai-entry summary {
  display: grid;
  justify-items: start;
  position: relative;
  padding: 18px 30px 18px 0;
  cursor: pointer;
  list-style: none;
}
.ai-entry summary::-webkit-details-marker { display: none; }
.ai-entry summary::after {
  content: "";
  position: absolute;
  top: 27px;
  right: 6px;
  width: 9px;
  height: 9px;
  border: solid var(--ai-accent);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.ai-entry[open] summary::after { transform: rotate(225deg); }
.ai-entry h3 { color: var(--ai-text); font-size: clamp(18px, 2.5vw, 26px); line-height: 1.4; }
.ai-entry-excerpt { color: var(--ai-muted); margin-top: 7px; font-size: 15px; line-height: 1.6; }
.ai-entry-body { max-width: 44rem; padding-bottom: 20px; color: var(--ai-text); font-size: 15px; line-height: 1.75; }
.ai-added-guide { white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-entry-body ol { margin: 0 0 15px; padding-inline-start: 1.4em; }
.ai-entry-body li + li { margin-top: 6px; }
.ai-entry-body li::marker { color: var(--ai-accent); }
.ai-prompt { padding: 13px 17px; border: 1px solid var(--ai-line); border-radius: 12px; background: var(--ai-panel); }
.ai-prompt-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.ai-prompt p { margin-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-copy {
  min-height: 44px;
  padding: 6px 11px;
  border: 1px solid var(--ai-line);
  border-radius: 8px;
  color: var(--ai-accent);
  background: #092033;
  font-size: 13px;
  cursor: pointer;
}
.ai-copy:hover { border-color: var(--ai-accent); }
.ai-copy-status { display: block; color: var(--ai-accent); font-size: 13px; min-height: 1.1em; }

@media (max-width: 920px) {
  .ai-hero-inner { min-height: 350px; }
  .ai-news-card { padding: 17px; }
}
@media (max-width: 740px) {
  .ai-hero-inner { grid-template-columns: 1fr; min-height: 0; padding-block: 33px 20px; }
  .ai-hero-intro { margin-top: 14px; }
  .ai-hero-actions { margin-top: 16px; }
  .ai-hero-art { max-width: 38rem; }
  .ai-news { padding-block: 36px 42px; }
  .ai-news-grid { grid-template-columns: 1fr; }
  .ai-notes { grid-template-columns: 1fr; row-gap: 19px; padding-block: 32px 45px; }
}
@media (max-width: 450px) {
  .ai-shell .header-inner { gap: 12px; }
  .ai-shell .nav { gap: 16px; }
  .ai-account { padding-inline: 9px; font-size: 13px; }
}
@media (max-width: 340px) {
  .ai-shell .header-inner { gap: 8px; }
  .ai-shell .nav { gap: 13px; }
}
