.flamelens-page {
  margin: 0;
  background: #070c18;
  color-scheme: dark;
}
.flamelens-page .flamelens-app { min-height: 100vh; }
.flamelens-app {
  --fl-ink: #f5f7ff;
  --fl-muted: #b6c1d5;
  --fl-line: #2d3d56;
  --fl-orange: #ffad75;
  --fl-paper: #111c30;
  --fl-cyan: #7ddde9;
  --fl-gravity: #b6a7ff;
  color: var(--fl-ink);
  color-scheme: dark;
  background-color: #070c18;
  background-image: linear-gradient(90deg, #070c18b8, #070c1870), url("space-background.jpg");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  width: 100%;
  max-width: none;
  text-align: left;
}
.flamelens-app h1, .flamelens-app h2, .flamelens-app h3 {
  color: var(--fl-ink);
  font-family: inherit;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: -.025em;
  margin: 0 0 16px;
}
.flamelens-app h1 { font-size: clamp(30px, 4.2vw, 49px); max-width: 900px; }
.flamelens-app h2 { font-size: 26px; }
.flamelens-app h3 { font-size: 21px; }
.flamelens-app h4 { color: var(--fl-ink); font-family: inherit; font-size: 17px; line-height: 1.4; margin: 0 0 10px; text-transform: none; }
.flamelens-app p { margin: 0 0 14px; font-size: inherit; }
.flamelens-app a {
  color: var(--fl-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.flamelens-app button, .flamelens-app input, .flamelens-app select, .flamelens-app textarea {
  font-family: inherit;
  font-size: 14px;
  box-sizing: border-box;
}
.flamelens-app button { cursor: pointer; }
.flamelens-app button:disabled { cursor: not-allowed; opacity: .6; }
.flamelens-app button:focus-visible, .flamelens-app input:focus-visible,
.flamelens-app select:focus-visible, .flamelens-app textarea:focus-visible,
.flamelens-app a:focus-visible, .flamelens-app summary:focus-visible {
  outline: 3px solid var(--fl-cyan);
  outline-offset: 3px;
}
.fl-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.fl-sidebar {
  padding: 34px 22px;
  background: radial-gradient(ellipse at 20% 100%, #ff98600c, transparent 65%), #0c1425;
  border-right: 1px solid var(--fl-line);
}
.fl-wordmark { font-size: 23px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 4px; }
.fl-wordmark:before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 23px;
  margin-right: 9px;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(15deg, #ff7a50, #ffd17d);
  box-shadow: 0 0 22px #ff986044;
  vertical-align: -3px;
  transform: rotate(-9deg);
}
.fl-sidebar > p, .fl-sidebar .fl-note { font-size: 12px; color: var(--fl-muted); }
.fl-sidebar hr { border: 0; border-top: 1px solid var(--fl-line); margin: 26px 0; }
.fl-main { min-width: 0; padding: 46px clamp(20px, 4vw, 66px) 32px; max-width: 1440px; }
.fl-eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--fl-gravity); margin-bottom: 25px; }
.fl-hero { margin-bottom: 24px; position: relative; isolation: isolate; }
.fl-hero:after {
  content: "";
  position: absolute;
  top: -5px;
  right: 5%;
  width: 180px;
  height: 74px;
  border: 1px solid #b6a7ff30;
  border-radius: 50%;
  transform: rotate(-22deg);
  box-shadow: 0 0 0 19px #b6a7ff08, 0 0 0 39px #7ddde908;
  pointer-events: none;
  z-index: -1;
}
.fl-hero > p { color: #c7d1e3; max-width: 830px; }
.fl-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 23px 0 18px; }
.fl-metric {
  padding: 17px 18px;
  background: linear-gradient(135deg, #17223a, #101a2d);
  border: 1px solid var(--fl-line);
  border-top-color: #796351;
  border-radius: 10px;
}
.fl-metric strong, .fl-metric b { display: block; font-size: 33px; line-height: 1.3; font-weight: 500; color: #ffd19b; }
.fl-metric span { color: var(--fl-muted); font-size: 12px; }
.fl-nav { display: flex; flex-wrap: wrap; align-items: stretch; gap: 4px; border-bottom: 1px solid var(--fl-line); margin: 29px 0 28px; }
.fl-tab { color: #c0ccdf; border: 1px solid transparent; background: transparent; padding: 11px 12px; border-radius: 7px; font-size: 13px; }
.fl-tab:hover { color: #ffd0ac; background: #19243a; }
.fl-tab.fl-active { color: #ffd0ac; background: #35241f; border-color: #92593d; font-weight: 600; }
.fl-card {
  border: 1px solid var(--fl-line);
  border-radius: 11px;
  background: var(--fl-paper);
  padding: 23px;
  margin: 0 0 17px;
  min-width: 0;
  overflow-wrap: anywhere;
  box-shadow: 0 10px 25px #02050b22;
}
.fl-card > .fl-inline { justify-content: space-between; align-items: flex-start; }
.fl-card h3 { margin-bottom: 6px; }
.fl-card small { display: block; color: var(--fl-muted); }
.fl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.fl-grid.fl-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fl-grid > .fl-card { margin-bottom: 0; }
.fl-warning { border: 1px solid #826a37; border-left: 4px solid #ffd17d; border-radius: 7px; background: #292417; color: #ffe2a6; padding: 13px 17px; margin: 17px 0; font-size: 13px; }
.fl-note { color: var(--fl-muted); font-size: 13px; }
.fl-status { font-size: 13px; padding: 9px 12px; background: #102933; color: #9fe4ed; border: 1px solid #2d5260; border-radius: 6px; }
.fl-field { display: block; margin: 0 0 17px; }
.fl-field label, label.fl-field { font-size: 13px; font-weight: 500; color: #d7dfef; }
.fl-field input, .fl-field select, .fl-field textarea, .flamelens-app input[type="search"], .flamelens-app select, .flamelens-app textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 6px 0 0;
  padding: 10px 11px;
  border: 1px solid #536782;
  border-radius: 7px;
  background: #080f1e;
  color: var(--fl-ink);
  line-height: 1.5;
}
.flamelens-app input::placeholder, .flamelens-app textarea::placeholder { color: #b0bcd1; opacity: 1; }
.flamelens-app option { background: #101a2d; color: #f5f7ff; }
.flamelens-app input[type="checkbox"] { width: auto; margin-right: 7px; accent-color: var(--fl-orange); }
.flamelens-app textarea { min-height: 110px; resize: vertical; }
.flamelens-app .fl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid #ffbc82;
  border-radius: 7px;
  background: linear-gradient(120deg, #ff9860, #ffd17d);
  color: #141321;
  line-height: 1.45;
  font-weight: 700;
  text-decoration: none;
}
.flamelens-app .fl-button:hover { background: #ffd17d; color: #141321; }
.flamelens-app .fl-button-secondary { background: #17243a; color: #ffcdab; border-color: #68728a; }
.flamelens-app .fl-button-secondary:hover { background: #24314a; color: #ffe0c7; }
.fl-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; }
.fl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fl-tags span { background: #223049; color: #d2dcf0; border: 1px solid #40506b; border-radius: 30px; font-size: 12px; padding: 4px 10px; }
.fl-source { padding: 13px 0; border-top: 1px solid var(--fl-line); margin-top: 12px; }
.fl-source p, .fl-source blockquote { font-size: 13px; color: #d0daed; margin: 9px 0 0; line-height: 1.75; white-space: pre-wrap; border-left: 2px solid var(--fl-cyan); padding-left: 12px; }
.fl-source a { font-size: 13px; }
.flamelens-app blockquote { background: #0b1425; color: #dce5f5; border-left: 3px solid var(--fl-cyan); margin: 14px 0; padding: 14px 17px; font-size: 14px; line-height: 1.75; white-space: pre-wrap; }
.fl-details { border-top: 1px solid var(--fl-line); padding: 12px 0 0; margin: 12px 0; }
.fl-details summary { cursor: pointer; font-weight: 500; color: #cfdae9; font-size: 13px; }
.fl-details[open] summary { margin-bottom: 13px; }
.fl-table-wrap { width: 100%; overflow-x: auto; margin: 16px 0; border: 1px solid var(--fl-line); border-radius: 8px; background: #0e182a; }
.fl-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 0; color: #dce5f5; }
.fl-table th { background: #1b2a42; text-align: left; font-weight: 600; color: #e6ecf7; }
.fl-table th, .fl-table td { padding: 10px 12px; border-bottom: 1px solid var(--fl-line); vertical-align: top; max-width: 310px; overflow-wrap: anywhere; }
.fl-table tbody tr:nth-child(even) { background: #141f33; }
.fl-empty { padding: 30px; text-align: center; color: var(--fl-muted); background: #101a2d; border: 1px dashed #647590; border-radius: 10px; }
.fl-error { color: #ffd0c3; background: #321d26; border: 1px solid #a86155; padding: 14px 17px; border-radius: 7px; }
.fl-footer { border-top: 1px solid var(--fl-line); margin: 24px 25px 0; padding: 20px 0; color: var(--fl-muted); font-size: 12px; }
.fl-sidebar .fl-button { width: 100%; }
.flamelens-app svg { display: block; width: 100%; max-height: 340px; }
.flamelens-app svg text { fill: #d0daed; }
.flamelens-app .fl-bar { display: block; height: 8px; border-radius: 6px; background: #4f6080; }
@media (max-width: 1000px) {
  .fl-shell { grid-template-columns: 215px minmax(0, 1fr); }
  .fl-main { padding: 32px 25px; }
  .fl-grid.fl-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .fl-shell { display: block; }
  .fl-sidebar { border-right: 0; border-bottom: 1px solid var(--fl-line); padding: 23px; }
  .fl-sidebar .fl-field { display: inline-block; width: 100%; vertical-align: top; }
  .fl-sidebar hr { margin: 15px 0; }
  .fl-main { padding: 28px 20px; }
  .fl-grid, .fl-grid.fl-three { grid-template-columns: minmax(0, 1fr); }
  .fl-nav { gap: 4px; }
  .fl-tab { padding: 10px 9px; font-size: 13px; }
  .fl-card { padding: 19px; }
  .fl-hero:after { opacity: .4; }
}
@media (prefers-reduced-motion: no-preference) {
  .fl-tab, .fl-button { transition: background .15s ease, color .15s ease; }
}
@media (prefers-contrast: more) {
  .fl-card, .fl-table-wrap, .fl-metric { border-color: #7788a4; }
  .fl-note, .fl-footer { color: #d4dff1; }
}

.fl-sidebar { background: #0c1425f2; }
.fl-hero {
  padding: 22px;
  border: 1px solid var(--fl-line);
  border-radius: 12px;
  background: #070c18e8;
}
.fl-main > p, .fl-main > .fl-note {
  padding: 12px;
  border-radius: 7px;
  background: #070c18e8;
}
.fl-footer {
  padding: 20px;
  background: #070c18eb;
  border-radius: 8px;
}
.fl-footer:after {
  content: "Space background photograph: NASA / ISS064E005209";
  display: block;
  margin-top: 12px;
  color: #b6c1d5;
}
@media (max-width: 720px) {
  .flamelens-app {
    background-attachment: scroll;
    background-size: 100% 900px, auto 900px;
    background-color: #070c18;
  }
  .fl-hero { padding: 17px; }
}
