/* Atlas Ridge shared green theme. Screen-only: exports and print keep their original styling.
   Presentation only. Never reveal hidden content or override disabled, account, or privacy state. */
@media screen {
  html.atlas-green [hidden] { display: none !important; }
  html.atlas-green {
    color-scheme: dark;
    min-height: 100%;
    --bg: #092a20; --surface: #10382b; --panel: #10382b; --paper: #092a20;
    --ink: #f0f7f2; --text: #f0f7f2; --muted: #b7d0c3; --line: #335b4a;
    --forest: #29df85; --forest-deep: #08271c; --green: #29df85; --accent: #29df85;
    --leaf: #224c38; --mint: #153f2e; --lime: #224c38; --cream: #092a20;
    --charcoal: #10382b; --red: #ffb4a8; --red-bg: #412620;
    --gold: #ffe3a3; --gold-bg: #38351c; --blue: #b1dcf4; --blue-bg: #203b47;
    --atlas-bg: #092a20; --atlas-surface: #10382b; --atlas-ink: #f0f7f2;
    --atlas-muted: #b7d0c3; --atlas-line: #335b4a;
    --ar-deep: #092a20; --ar-green: #29df85; --ar-muted: #b7d0c3;
  }
  html.atlas-green body {
    background: linear-gradient(115deg, #05251c, #123e31); color: var(--ink);
    min-height: 100svh; background-attachment: fixed;
    -webkit-font-smoothing: antialiased; accent-color: var(--green);
  }
  html.atlas-green body :is(h1,h2,h3,h4,strong,.price,.metric,.money,.big-progress,.brand) { color: var(--ink); }
  html.atlas-green body :is(p,li,dt,label,small,.muted,.fine,.sub,.subtitle,.lead,.meta,.eyebrow,.entry-type,.back,.job-ref,.review-label,.review-context,.composer-caption) { color: var(--muted); }
  html.atlas-green body :is(a,.text-button,.text-link,.check-records) { color: #8af0b7; }
  html.atlas-green body :is(header,.topbar,.chat-header,.sidebar,.mobile-top,.bottom-nav,.auth-story) {
    background: #08291f; border-color: var(--line); color: var(--ink);
  }
  html.atlas-green body :is(.brand,.chat-contact h1) { color: var(--ink); }
  html.atlas-green body .brand { white-space: nowrap; }
  html.atlas-green body .brand small { color: #bdd3c7; }
  html.atlas-green body .brand img { border-radius: 11px; }
  html.atlas-green body :is(.nav,.section,footer,.privacy-note,.record,.dialog-footer,.save-row,.card-actions,.log,.steps>li,.pro-benefits li) { border-color: var(--line); }
  html.atlas-green body :is(.panel,.card,.order-card,.project-card,.work-card,.simple-panel,.simple-metrics,.simple-metric,.stat,.review-panel,.search-row,.workspace-entry,.faq details,.code-help,.email-review,.account-links a,.empty,.unavailable,.notice.neutral) {
    background: var(--panel); border-color: var(--line); color: var(--ink); box-shadow: 0 4px 16px #00170e18;
  }
  html.atlas-green body :is(.field-shift,.simple-primary .simple-action) { background: var(--panel) !important; border-color: var(--line); }
  html.atlas-green body :is(.simple-action strong,.simple-metric strong,.stat strong,.pro-benefits strong) { color: var(--ink); }
  html.atlas-green body :is(.simple-action small,.simple-action span,.simple-metric span,.simple-panel p,.card p,.card li,.faq summary,.faq details p,.faq details li,.steps h3,.steps p,.review-panel ul,.draft-entry ul) { color: var(--muted); }
  html.atlas-green body :is(button,.btn,.button-link,.icon-button,.select-lite) {
    background: #174632; border-color: #426d56; color: var(--ink);
  }
  html.atlas-green body :is(.btn.primary,button.primary,a.primary,.primary,.capture-nav,#send) {
    background: #29df85 !important; border-color: #29df85 !important; color: #062015 !important;
    box-shadow: none;
  }
  html.atlas-green body :is(.primary,.capture-nav) :is(span,strong,small,svg) { color: #062015; }
  html.atlas-green body :is(button,.btn,.button-link):hover:not(:disabled) { filter: brightness(1.08); }
  html.atlas-green body :is(.text-button,.account-signout) { background: transparent; color: #8af0b7; }
  html.atlas-green body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select,textarea) {
    background: #08291f; color: #f0f7f2; border-color: #60856f; color-scheme: dark;
  }
  html.atlas-green body :is(input,textarea)::placeholder { color: #a3c0af; }
  html.atlas-green body :is(input,select,textarea):focus { border-color: #29df85; box-shadow: 0 0 0 3px #29df8529; }
  html.atlas-green body :is(a,button,summary,input,select,textarea):focus-visible { outline: 3px solid #83efb3; outline-offset: 3px; }
  html.atlas-green body :is(input,select,textarea):disabled { color: #a3c0af; background: #15382b; }
  html.atlas-green body input:is([type=checkbox],[type=radio],[type=range]),html.atlas-green body progress { accent-color: #29df85; }
  html.atlas-green body :is(.segments,.chat-job,.composer-row,.draft-entry,.preview-totals,.consent-details,.getting-started,.story-card,.line-item,.account-links a:hover) {
    background: #123d2c; border-color: var(--line); color: var(--ink);
  }
  html.atlas-green body :is(.segments button.selected,.tabs button[aria-current=page],#tabs button[aria-current=page],.bottom-nav button.active,.sidebar button.active,.nav-item.active) { background: #1b5138; color: #8af0b7; border-color: #29df85; }
  html.atlas-green body .bottom-nav button.active .ico { color: #8af0b7; }
  html.atlas-green body :is(.pill,.label,.tag,.badge,.quiet-tag) { background: #16422f; color: #a1efc2; border-color: #426d56; }
  html.atlas-green body :is(.status,.notice,#subscription-status) { background: #173f2d; color: #c5ead5; border-color: #466e56; }
  html.atlas-green body :is(.status.error,.notice.error,.error,.form-error,#form-error,.toast.error) { background: #412620; color: #ffb4a8; border-color: #a96351; }
  html.atlas-green body :is(.danger,.danger p,.danger strong,.red) { color: #ffb4a8; }
  html.atlas-green body :is(.warning,.clarification,.review-warnings,.setup-card,.simple-field-tip,.private-shared-notice,#allowance-status) { background: #38351c; color: #ffe3a3; border-color: #a28c52; }
  html.atlas-green body :is(.warning,.clarification,.review-warnings,.setup-card,.simple-field-tip,.private-shared-notice) :is(p,strong,small,li) { color: #ffe3a3; }
  html.atlas-green body :is(.warning,.setup-card,.private-shared-notice) a { color: #fff0c9; }
  html.atlas-green body dialog { background: #10382b; color: var(--ink); border-color: #557c64; }
  html.atlas-green body dialog::backdrop { background: #001a12c4; }
  html.atlas-green body :is(.dialog-head,.dialog-body,.dialog-footer,dialog .actions) { background: #10382b; border-color: var(--line); }
  html.atlas-green body .hero .eyebrow { background: #16422f; border-color: #426d56; color: #a1efc2; }
  /* Account entry keeps the existing steps and fields; the form matches the homepage. */
  html.atlas-green body :is(.auth-panel,.assistant-shell,#ask,.chat-sheet,.chat-sheet form) { background: #092a20; color: var(--ink); border-color: var(--line); }
  html.atlas-green body :is(.auth-form-wrap h2,.chat-welcome h2,.prompt-copy strong,.chat-message.assistant) { color: var(--ink); }
  html.atlas-green body :is(.auth-form-wrap label,.chat-job label,.welcome-kicker,.prompt-arrow,.auth-panel .back) { color: var(--muted); }
  html.atlas-green body .auth-steps .current { color: #8af0b7; border-color: #29df85; }
  html.atlas-green body .auth-steps .current>span { background: #29df85; color: #062015; }
  html.atlas-green body .welcome-prompts button { background: #10382b; border-color: var(--line); }
  html.atlas-green body .prompt-icon { background: #1b5138; color: #8af0b7; }
  html.atlas-green body .chat-message.user { background: #1b5138; color: #f0f7f2; }
  html.atlas-green body .chat-message.user p { color: #f0f7f2; }
  html.atlas-green body #message { background: transparent; color: var(--ink); box-shadow: none; }
  html.atlas-green body #request-status:not(:empty) { background: #173f2d; color: #c5ead5; border-color: var(--line); }
  html.atlas-green body>section[aria-labelledby="business-release-title"] {
    max-width: 1124px; width: calc(100% - 44px); margin: 24px auto; padding: 24px;
    background: #10382b; border: 1px solid #335b4a; border-radius: 16px;
  }
  /* Light documents are deliberate: quotes and reports remain suitable for customers. */
  html.atlas-green body :is(.document,.report) { background: #fff; color: #17352a; }
  html.atlas-green body :is(.document,.report) :is(p,li,h1,h2,h3,h4,strong,small,dt,dd,td,th) { color: #17352a; }
  html.atlas-green body .document a { color: #195d3b; }
  html.atlas-green body .plans-page { background: transparent; }
  html.atlas-green.plans-page,html.atlas-green body.plans-page { color: var(--ink); }
  html.atlas-green body :is(.card.featured,#subscription-live) { background: #10382b; border-color: #29df85; }
  /* The legacy featured Pro selector contains an ID; match it explicitly. */
  html.atlas-green body .cards .card:has(#pro-title) { background: #10382b; color: var(--ink); border-color: #29df85; }
  html.atlas-green body .card.coming { background: #163e30; border-color: #557c64; }
  html.atlas-green body :is(.business-details,.modern-jobs section,.modern-jobs article.card) { background: #10382b; border-color: var(--line); }
  html.atlas-green body :is(.plan-intro h1,.plan-intro p,.price,.business-details h2,.business-details li) { color: var(--ink); }
  html.atlas-green body .steps>li:before { background: #29df85; color: #062015; }
  html.atlas-green body .toast:not(.error) { background: #16422f; color: #f0f7f2; }
  @media (max-width: 700px) {
    html.atlas-green body :is(.topbar,.nav) { flex-wrap: wrap; gap: 12px; }
    html.atlas-green body .header-actions { flex-wrap: wrap; gap: 12px; }
    html.atlas-green body :is(.topbar,.nav) a { white-space: nowrap; }
  }
}

/* First-shift readability and clean mobile navigation.
   Presentation only: visibility, disabled state, safe-area height and actions are unchanged. */
@media screen {
  html.atlas-green body .simple-start {
    background: #10382b;
    border-color: var(--line);
    color: var(--ink);
    box-shadow: 0 4px 16px #00170e18;
  }
  html.atlas-green body .simple-start :is(h2,strong) { color: var(--ink); }
  html.atlas-green body .simple-start :is(p,span,.simple-start-note) { color: var(--muted); }
  html.atlas-green body .simple-start-steps li {
    background: #123d2c;
    border-color: var(--line);
  }
  html.atlas-green body .simple-start-steps li::before {
    background: #29df85;
    color: #062015;
  }
  html.atlas-green body .simple-next-step {
    background: #123d2c;
    border-color: var(--line);
    color: var(--ink);
  }
  html.atlas-green body .simple-next-step strong { color: var(--ink); }
  html.atlas-green body .simple-next-step span { color: var(--muted); }

  @media (max-width: 700px) {
    html.atlas-green body .bottom-nav {
      background: #08291ff5;
      border-top-color: var(--line);
    }
    html.atlas-green body .bottom-nav button {
      position: relative;
      background: transparent !important;
      border-color: transparent !important;
      border-radius: 12px;
      box-shadow: none;
      color: #9cb8aa;
    }
    html.atlas-green body .bottom-nav button.active {
      background: transparent !important;
      border-color: transparent !important;
      color: #8af0b7;
    }
    html.atlas-green body .bottom-nav button.active::before {
      content: "";
      position: absolute;
      top: 1px;
      width: 18px;
      height: 3px;
      border-radius: 999px;
      background: #29df85;
    }
    html.atlas-green body .bottom-nav .capture-nav {
      width: 48px;
      height: 48px;
      min-width: 48px;
      min-height: 48px;
      background: #29df85 !important;
      border-color: #29df85 !important;
      color: #062015 !important;
      border-radius: 16px;
      box-shadow: 0 4px 12px #00170e40;
    }
    html.atlas-green body .bottom-nav .capture-nav::before { content: none; }
  }
}
