/* BOTYA command-deck polish. Reversible external stylesheet, no DOM/content changes.
   Ten distinct interface systems, not ten new controls. Medical content is excluded. */

/* 01 — Readable editorial hierarchy; no font download, stable system metrics. */
.shell:has(> .ecosystem-hero) { --deck-edge: #645139; --deck-muted: #c2c9d0; --deck-cyan: #a6eef4; }
.shell > .ecosystem-hero h1 { max-width: 19ch; text-wrap: balance; letter-spacing: -.035em; line-height: 1.12; }
.shell > .ecosystem-hero .hero-copy { max-width: 58ch; color: var(--deck-muted); line-height: 1.6; text-wrap: pretty; }
.shell .section-heading h2 { line-height: 1.22; text-wrap: balance; }
.shell > :is(#consult,#documents,#contacts) > h2 { letter-spacing: -.025em; line-height: 1.25; }

/* 02 — Consistent page rhythm and safe reading widths, no full-width UI overlay. */
.shell > .journey { margin-block: 24px 28px; }
.shell > :is(#consult,#documents,#contacts,.ecosystem-guide,.install-help) { min-width: 0; }
.shell > :is(#consult,#documents,#contacts) > :is(p,.muted) { max-width: 69ch; }
.shell .section-heading { gap: 18px; }
.shell .section-heading .service-note { line-height: 1.6; }

/* 03 — Header as a shallow command deck; existing hall stays visible around it. */
.shell > .ecosystem-hero { border-radius: 20px; background: linear-gradient(110deg,rgba(12,18,23,.83),rgba(12,18,23,.25) 64%,transparent); box-shadow: inset 1px 0 rgba(226,190,126,.2); }
.shell > .ecosystem-hero .brand-plate { color: #ecd099; }
.shell > .ecosystem-hero .eyebrow { color: #c5af88; }
.shell > .ecosystem-hero::after { border-color: rgba(226,190,126,.42); box-shadow: 0 0 28px rgba(107,201,215,.08); }

/* 04 — Clear primary/secondary action hierarchy with tactile, nonmoving feedback. */
.shell .ecosystem-hero .hero-actions { align-items: stretch; }
.shell .ecosystem-hero .hero-actions a { min-height: 48px; border: 1px solid #86704b; box-shadow: inset 0 1px rgba(255,242,209,.11); }
.shell .ecosystem-hero .hero-actions .hero-start { color: #13100b; background: linear-gradient(125deg,#eed29b,#caa05b); border-color: #e1bf7c; box-shadow: 0 4px 16px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.22); }
.shell .ecosystem-hero .hero-actions .hero-docs { color: #edd19b; background: #111b22; }
.shell .ecosystem-hero .hero-actions a:active { box-shadow: inset 0 2px 5px rgba(0,0,0,.35); }

/* 05 — Journey cards read as routes: aligned folios, titles and separated exits. */
.shell .journey .journey-card { gap: 12px; border-color: #4b4437; background: linear-gradient(145deg,#1b252d,#10181f); box-shadow: inset 0 1px rgba(230,203,152,.12),0 8px 20px rgba(0,0,0,.15); }
.shell .journey .step-number { align-self: flex-start; min-width: 32px; padding: 2px 7px; border: 1px solid #665239; border-radius: 6px; font-variant-numeric: tabular-nums; line-height: 1.6; }
.shell .journey .journey-card strong { text-wrap: balance; }
.shell .journey .journey-card > span:not(.step-number):not(.card-action) { color: var(--deck-muted); }
.shell .journey .card-action { border-top: 1px solid #36434c; padding-top: 12px; color: #edd19b; }

/* 06 — Sticky navigation dock: selected tab has shape and contrast, not color alone. */
.shell > .tabs { gap: 6px; border-block: 1px solid #39434b; background: #0c1319; border-radius: 14px; padding: 7px; top: env(safe-area-inset-top,0px); backdrop-filter: none; }
.shell > .tabs .tab { min-width: 0; min-height: 48px; color: #cbd2d8; border-color: transparent; background: #151f27; overflow-wrap: anywhere; }
.shell > .tabs .tab.active { color: #f1d6a0; border-color: #b29158; background: #26261f; box-shadow: inset 0 -3px #d2aa60; }

/* 07 — Nonmedical workspaces gain a layered instrument-panel frame, opaque for text. */
.shell > :is(#consult,#documents,#contacts) { border-color: #4a5257; background: linear-gradient(160deg,#17222b,#10171d 52%); box-shadow: inset 0 1px rgba(200,222,228,.1),0 12px 32px rgba(0,0,0,.22); }
.shell > :is(#consult,#documents,#contacts) > h2 { padding-bottom: 12px; border-bottom: 1px solid #3b484f; margin-bottom: 16px; }
.shell > :is(#consult,#documents,#contacts) > .muted { color: var(--deck-muted); }

/* 08 — Writing controls resemble calm inset pads; do not restyle consent/checkboxes. */
.shell > :is(#consult,#documents) :is(textarea,select,input:not([type=checkbox]):not([type=radio]):not([type=hidden])) { background: #0a1117; border-color: #58666d; box-shadow: inset 0 2px 6px rgba(0,0,0,.2); }
.shell > :is(#consult,#documents) :is(textarea,select,input:not([type=checkbox]):not([type=radio]):not([type=hidden])):focus-visible { outline: 3px solid var(--deck-cyan); outline-offset: 3px; border-color: #a6eef4; }
.shell > :is(#consult,#documents) :is(textarea,input)::placeholder { color: #a6b1ba; opacity: 1; }
.shell > :is(#consult,#documents) .answer { border-color: #80704e; background: #1c241f; color: #f5f1e8; line-height: 1.7; }

/* 09 — Existing help disclosures have clear closed/open states without new content. */
.shell > .ecosystem-guide { background: #111b22; border-color: #49565c; box-shadow: inset 0 1px rgba(200,222,228,.1); }
.shell > .ecosystem-guide details { border-top-color: #425059; }
.shell > .ecosystem-guide summary { min-height: 44px; padding-block: 9px; color: #e5d8ba; line-height: 1.55; }
.shell > .ecosystem-guide details[open] { border-inline-start: 2px solid #d2aa60; padding-inline-start: 12px; }
.shell > .ecosystem-guide details p { color: #c2c9d0; line-height: 1.7; }

/* 10 — Contact directory and service footer: readable long identifiers and calm grouping. */
.shell > #contacts .contact-card { min-width: 0; padding: 16px; border-color: #41525b; background: #101b23; overflow-wrap: anywhere; }
.shell > #contacts .contact-card strong { color: #e8d4ad; line-height: 1.45; }
.shell > #contacts .contact-card span { margin-top: 5px; color: #c2c9d0; line-height: 1.6; }
.shell > footer { max-width: 760px; margin-inline: auto; margin-top: 24px; border-top: 1px solid #4c493c; padding-block: 24px max(24px,env(safe-area-inset-bottom,0px)); line-height: 1.8; overflow-wrap: anywhere; }
.shell > footer a { text-underline-offset: .2em; }

/* Interaction language shared by these existing route surfaces, not medical controls. */
@media (hover:hover) and (pointer:fine) {
 .shell .journey .journey-card:hover, .shell > #contacts a.contact-card:hover { border-color: #d2aa60; box-shadow: inset 0 1px rgba(230,203,152,.18),0 8px 20px rgba(0,0,0,.2); }
 .shell .ecosystem-hero .hero-actions .hero-docs:hover { background: #24323b; border-color: #e1bf7c; }
 .shell > .tabs .tab:not(.active):hover { background: #23313a; border-color: #697b84; }
}
.shell :is(.hero-actions a,.journey-card,.tab,.contact-card,.ecosystem-guide summary,footer a):focus-visible { outline: 3px solid #a6eef4; outline-offset: 3px; }

@media (max-width:800px) {
 .shell > .ecosystem-hero { padding: 16px 12px; background: #101920; border: 1px solid #3e4d55; box-shadow: inset 0 1px rgba(230,203,152,.13); }
 .shell > .ecosystem-hero h1 { max-width: none; }
 .shell > .ecosystem-hero .hero-copy { font-size: 15px; }
 .shell > .journey { margin-block: 20px; }
 .shell > .tabs { border-radius: 12px; gap: 4px; padding: 5px; }
 .shell > .tabs .tab { font-size: 11px; line-height: 1.4; padding: 9px 3px; }
 .shell > :is(#consult,#documents,#contacts) { box-shadow: inset 0 1px rgba(200,222,228,.1); }
 .shell > .ecosystem-guide { margin-top: 24px; }
}
@media (max-width:520px) {
 .shell .journey .journey-card { padding: 13px; gap: 10px; min-height: 208px; }
 .shell .journey .step-number { font-size: 10px; }
 .shell .journey .card-action { line-height: 1.5; }
 .shell .ecosystem-hero .hero-actions a { font-size: 13px; padding: 11px 8px; }
 .shell > :is(#consult,#documents) :is(textarea,select,input:not([type=checkbox]):not([type=radio]):not([type=hidden])) { font-size: 16px; }
 .shell > #contacts .contact-card { padding: 14px; }
}
@media (max-width:340px) {
 .shell .journey .journey-card { min-height: 168px; }
 .shell .ecosystem-hero .hero-actions { grid-template-columns: 1fr; }
 .shell .ecosystem-hero .hero-actions [data-open-panel=documents] { grid-column: auto; }
}
@media (prefers-reduced-motion:reduce) {
 .shell :is(.journey-card,.hero-actions a,.tab,.contact-card) { transition: none; scroll-behavior: auto; }
}
@media (forced-colors:active) {
 .shell > .ecosystem-hero, .shell .journey .journey-card, .shell > .tabs, .shell > :is(#consult,#documents,#contacts,.ecosystem-guide), .shell > #contacts .contact-card { background: Canvas; box-shadow: none; border-color: CanvasText; }
 .shell > .tabs .tab.active { outline: 2px solid Highlight; outline-offset: -4px; box-shadow: none; }
 .shell .ecosystem-hero .hero-actions a { background: ButtonFace; color: ButtonText; border-color: ButtonText; box-shadow: none; }
}
@media print {
 .shell > .ecosystem-hero, .shell .journey .journey-card, .shell > :is(#consult,#documents,#contacts,.ecosystem-guide) { background: transparent; box-shadow: none; }
}

/* Pass3: existing workspace privacy/help links, not medical actions or card buttons. */
.shell > :is(#consult,#documents) :is(.muted,.legal-service-note,.disclaimer) a,
.shell > :is(.ecosystem-guide,.install-help) a {
 color: #a6eef4;
 text-decoration: underline;
 text-decoration-thickness: 1px;
 text-underline-offset: .2em;
 overflow-wrap: anywhere;
}
.shell > :is(#consult,#documents) :is(.muted,.legal-service-note,.disclaimer) a:visited,
.shell > :is(.ecosystem-guide,.install-help) a:visited { color: #e9c784; }
.shell > :is(#consult,#documents) :is(.muted,.legal-service-note,.disclaimer) a:focus-visible,
.shell > :is(.ecosystem-guide,.install-help) a:focus-visible { outline: 3px solid #a6eef4; outline-offset: 3px; }
/* Safe fallback until the tiny dock measurement module runs, or when JS is unavailable. */
.shell > :is(#consult,#documents,#contacts,#first-aid) {
 scroll-margin-top: var(--botya-deck-clearance,104px);
 scroll-margin-block-start: var(--botya-deck-clearance,104px);
}
@media (max-width:800px) {
 .shell > :is(#consult,#documents,#contacts,#first-aid) {
  scroll-margin-top: var(--botya-deck-clearance,142px);
  scroll-margin-block-start: var(--botya-deck-clearance,142px);
 }
}
@media (forced-colors:active) {
 .shell > :is(#consult,#documents) :is(.muted,.legal-service-note,.disclaimer) a,
 .shell > :is(.ecosystem-guide,.install-help) a { color: LinkText; }
 .shell > :is(#consult,#documents) :is(.muted,.legal-service-note,.disclaimer) a:visited,
 .shell > :is(.ecosystem-guide,.install-help) a:visited { color: VisitedText; }
}
/* Pass3 actual-mobile legibility: same four controls, larger labels, measured dock height. */
@media (max-width:800px) {
 .shell > .tabs .tab { font-size: 12px; line-height: 1.45; }
}
