/* Station-inspired website presentation. No visibility/authority/data decisions. */
:root {
  --station-font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --station-bg: #f4f6f7;
  --station-panel: #fff;
  --station-soft: #edf3f2;
  --station-ink: #182c33;
  --station-muted: #5d7079;
  --station-border: #dce5e7;
  --station-accent: #217e79;
  --station-rail: #112a31;
  --station-radius: 22px;
}

/* Existing public React pages: preserve markup, links and form behavior. */
#root { font-family: var(--station-font); background: var(--station-bg); color: var(--station-ink); }
#root > header, #root > footer { background: var(--station-rail); color: #e8f2ef; border-color: #28434b; }
#root .nav { padding-block: 20px; }
#root .brand { gap: 13px; }
#root .nav .brand, #root footer .brand { display: inline-flex; align-items: center; width: auto; height: auto; min-width: 0; padding: 0; background: transparent; border: 0; line-height: 1.1; overflow: visible; }
#root .nav .brand::after, #root footer .brand::after { content: "TAVRIS"; font-size: 20px; font-weight: 650; letter-spacing: 2.7px; }
#root .nav .brand img, #root footer .brand img { position: static; inset: auto; display: block; width: 43px; height: 43px; max-width: none; max-height: none; flex: 0 0 43px; border-radius: 11px; object-fit: contain; background: #fff; }
#root .hero { background: var(--station-bg); color: var(--station-ink); padding-block: 78px; }
#root h1, #root h2, #root h3 { font-weight: 600; }
#root h1 { letter-spacing: -2px; line-height: 1.13; }
#root h1 em { color: var(--station-accent); }
#root .hero .eyebrow, #root .eyebrow { color: #386f70; }
#root .hero-description, #root .development-note { color: var(--station-muted); }
#root .hero-actions .text-link { color: var(--station-accent); border-color: #a8c8c3; }
#root .hero-visual { background: radial-gradient(ellipse at 50% 45%, #21464c, #112a31 75%); border: 1px solid #34575c; border-radius: 25px; box-shadow: 0 18px 48px #142e3517; }
#root .hero-visual .node { border-radius: 10px; color: #c5dadd; }
#root .concept { border-radius: 5px; }
#root .principle-bar { background: #eaf0ef; border-color: var(--station-border); }
#root .button, #root .nav .nav-login { min-height: 44px; border-radius: 11px; font-weight: 600; }
#root .primary, #root .nav .nav-login { background: var(--station-accent); border-color: var(--station-accent); color: #fff; }
#root .primary:hover, #root .nav .nav-login:hover { background: #176763; border-color: #176763; }
#root .secondary { background: var(--station-panel); border-color: #bbcdd1; color: var(--station-ink); }
#root .cards { gap: 18px; border: 0; }
#root .cards article { background: var(--station-panel); border: 1px solid var(--station-border); border-radius: var(--station-radius); box-shadow: 0 8px 28px #183b4205; }
#root .cards article:last-child { border: 1px solid var(--station-border); }
#root .approach-list article { border-color: var(--station-border); }
#root .access-banner { border-radius: 24px; background: var(--station-rail); color: #eaf3f0; }
#root .access-banner .eyebrow { color: #a3cfca; }
#root .auth-main { background: var(--station-bg); }
#root .form-panel, #root .single-panel, #root .portal-card { background: var(--station-panel); border: 1px solid var(--station-border); border-radius: var(--station-radius); box-shadow: 0 12px 35px #17323b06; }
#root input:not([type=checkbox]):not([type=radio]), #root select, #root textarea { background: #fff; color: var(--station-ink); border: 1px solid #bacbd0; border-radius: 10px; min-height: 44px; }
#root .gateway-workspace { margin-block: 28px; border: 1px solid var(--station-border); border-radius: 24px; overflow: clip; background: var(--station-panel); }
#root .gateway-sidebar { background: var(--station-rail); border: 0; padding: 28px 19px; }
#root .gateway-workspace .gateway-sidebar nav a { color: #d1e0e2; padding: 12px 14px; border-radius: 10px; }
#root .gateway-sidebar nav a:hover, #root .gateway-sidebar nav a[aria-current] { background: #2c494b; color: #e4f1ea; text-decoration: none; }
#root .gateway-sidebar nav { gap: 7px; }
#root .gateway-content { padding: 32px; }
#root .gateway-content .portal-card { box-shadow: none; }
#root .gateway-drawer { background: var(--station-rail); color: #e4efed; }
#root .gateway-workspace .gateway-drawer nav a { color: #e4efed; }
#root a:focus-visible, #root button:focus-visible, #root input:focus-visible, #root select:focus-visible, #root textarea:focus-visible { outline: 3px solid #38a69d; outline-offset: 4px; }

/* Protected canonical cloud dashboard: same behavior, Station visual vocabulary. */
.station-cloud {
  --tavris-bg: var(--station-bg); --tavris-surface: var(--station-panel); --tavris-raised: var(--station-soft);
  --tavris-text: var(--station-ink); --tavris-muted: var(--station-muted); --tavris-border: var(--station-border);
  --tavris-accent: var(--station-accent); --tavris-on-accent: #fff; --tavris-sidebar: var(--station-rail);
  --tavris-success-bg: #e1f2eb; --tavris-fault: #a43636; --tavris-warning: #805c18; --tavris-warning-bg: #fff3d7;
  --tavris-temp: #ad7648; --tavris-humidity: #367c96; --tavris-level: #217e79;
  --ink: var(--station-ink); --muted: var(--station-muted); --line: var(--station-border); --bg: var(--station-bg); --accent: var(--station-accent);
  font-family: var(--station-font); background: var(--station-bg); color: var(--station-ink); font-size: 14px;
}
html[data-theme=dark] .station-cloud {
  --station-bg: #10252d; --station-panel: #18343b; --station-soft: #203e43;
  --station-ink: #e4efeb; --station-muted: #a2bbc1; --station-border: #345059; --station-accent: #83cfb9;
  --tavris-on-accent: #102b28; --tavris-success-bg: #254d43; --tavris-fault: #ffb4a8; --tavris-warning: #efd59a; --tavris-warning-bg: #483d24;
  --tavris-temp: #e5b783; --tavris-humidity: #8ec9df; --tavris-level: #83cfb9;
}
.station-cloud aside { width: 244px; padding: 30px 20px 24px; background: var(--station-rail); color: #b8cdd1; border: 0; }
.station-cloud aside .brand { display: flex; align-items: center; gap: 12px; font-size: 20px; letter-spacing: 2.6px; color: #fff; padding: 0 7px; }
.station-cloud aside .brand::before { content: ""; width: 36px; height: 39px; flex: 0 0 36px; border-radius: 11px 3px 11px 3px; background: #fff url('/tavris-logo.png') center / contain no-repeat; }
.station-cloud aside #environment { margin: 16px 8px 34px; color: #a3bdc2; font-size: 9px; letter-spacing: 1.8px; }
.station-cloud #instrument-nav { gap: 7px; }
.station-cloud #instrument-nav a { color: #c8d9dc; border-radius: 11px; padding: 13px 14px; margin: 0; font-size: 13px; min-height: 46px; }
.station-cloud #instrument-nav a:hover { background: #ffffff0a; color: #fff; }
.station-cloud #instrument-nav a.selected, .station-cloud #instrument-nav a[aria-current=page] { background: #2c494b; color: #def0e7; }
.station-cloud aside small { color: #9bb7bf; font-size: 11px; line-height: 1.8; border-top: 1px solid #ffffff15; padding-top: 21px; }
.station-cloud main { margin-left: 244px; padding: 30px 36px 44px; max-width: 1640px; }
.station-cloud main > header { position: relative; padding: 24px 0; border-bottom: 1px solid var(--station-border); margin-bottom: 27px; }
.station-cloud h1 { font-family: var(--station-font); font-size: 40px; line-height: 1.15; letter-spacing: -1.4px; font-weight: 600; }
.station-cloud h2 { font-family: var(--station-font); font-weight: 600; letter-spacing: -.45px; }
.station-cloud .eyebrow { font-size: 9px; letter-spacing: 1.7px; line-height: 1.7; }
.station-cloud button, .station-cloud input, .station-cloud select, .station-cloud textarea { font-family: var(--station-font); border-radius: 10px; }
.station-cloud button { min-height: 42px; padding: 10px 14px; }
.station-cloud .panel, .station-cloud article { border: 1px solid var(--station-border); border-radius: var(--station-radius); box-shadow: 0 9px 30px #17323b05; padding: 27px; }
.station-cloud .cards { gap: 18px; }
.station-cloud .cards .value, .station-cloud #temperature, .station-cloud #humidity, .station-cloud #level-value { color: var(--station-ink); font-size: 45px; font-weight: 600; letter-spacing: -1.4px; font-variant-numeric: tabular-nums; }
.station-cloud .sensor-badge { display: inline-block; border-radius: 7px; padding: 5px 9px; font-size: 10px; line-height: 1.5; }
.station-cloud .sensor-badge.live { background: var(--tavris-success-bg); color: var(--station-accent); }
.station-cloud .equipment-status { font-size: 11px; line-height: 1.7; margin-block: 10px 14px; }
.station-cloud .equipment-status.error { color: var(--tavris-fault); }
.station-cloud .spark { margin-top: 16px; }
.station-cloud .chart-options { gap: 16px; margin-block: 23px; }
.station-cloud #status { border: 1px solid var(--station-border); border-radius: 9px; background: var(--station-panel); }
.station-cloud .home-process {
  --tavris-text: #e5f1ec; --tavris-muted: #a6bfc2; --tavris-accent: #9dd5c3; --tavris-border: #47666d;
  --ink: #e5f1ec; --muted: #a6bfc2;
  color: #e5f1ec; background: radial-gradient(ellipse at 78% 45%, #183d43, #102a32 65%); border-color: #294b52;
  padding: 34px; grid-template-columns: minmax(0,1fr) 340px; gap: 30px;
}
.station-cloud .home-process h2 { font-size: 29px; color: #e5f1ec; }
.station-cloud .home-process .muted, .station-cloud .home-process .eyebrow { color: #b1c8cb; }
.station-cloud .tank-process { width: 100%; max-width: 330px; padding: 20px 0 0; }
.station-cloud .tank-shell { position: relative; height: 290px; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.station-cloud .station-tank-artwork { position: absolute; inset: 0; pointer-events: none; }
.station-cloud .station-tank-artwork svg { width: 100%; height: 100%; display: block; overflow: visible; }
.station-cloud .tank-side-label { fill: #b1c8cb; font-family: var(--station-font); font-size: 11px; }
.station-cloud .station-tank-ready > .tank-water, .station-cloud .station-tank-ready > .tank-grid { opacity: 0; overflow: hidden; }
.station-cloud .station-tank-ready .water-surface { animation: none; }
.station-cloud .tank-unavailable { position: absolute; inset: 38% 10% auto; z-index: 2; background: #102a32ed; border-radius: 9px; padding: 10px; color: #d1e2e2; font-size: 12px; }
.station-cloud .tank-top-mark { top: 12px; right: 50px; color: #bfd7d5; font-size: 11px; }
.station-cloud .tank-bottom-mark { display: none; }
.station-cloud .tank-caption { margin-top: -2px; color: #a6bfc2; }
.station-cloud .tank-caption strong { font-size: 34px; color: #e5f1ec; letter-spacing: -.7px; }
.station-cloud .tank-caption span { color: #a6bfc2; }
.station-cloud a:focus-visible, .station-cloud button:focus-visible, .station-cloud input:focus-visible, .station-cloud select:focus-visible, .station-cloud summary:focus-visible { outline: 3px solid #38a69d; outline-offset: 4px; }

@media (max-width: 1050px) and (min-width: 701px) {
  .station-cloud aside { width: 210px; padding-inline: 15px; }
  .station-cloud main { margin-left: 210px; padding-inline: 24px; }
  .station-cloud .cards { grid-template-columns: 1fr; }
  .station-cloud .home-process { grid-template-columns: minmax(0,1fr) 280px; padding: 24px; }
}
@media (max-width: 760px) {
  #root .gateway-workspace { margin: 14px; border-radius: 20px; }
  #root .gateway-content { padding: 22px; }
  #root .hero { padding-block: 45px; }
  #root .access-banner { border-radius: 0; }
}
@media (max-width: 700px) {
  .station-cloud aside { position: sticky; display: grid; grid-template-columns: 1fr auto; inset: 0 auto auto; width: 100%; padding: 12px 16px; background: var(--station-rail); }
  .station-cloud aside .brand { font-size: 18px; }
  .station-cloud aside .brand::before { width: 29px; height: 31px; flex-basis: 29px; }
  .station-cloud #mobile-menu { background: #29464c; border-color: #47646a; color: #e8f2ef; }
  .station-cloud #instrument-nav { grid-column: 1 / -1; }
  .station-cloud main { margin-left: 0; padding: 17px 18px 32px; }
  .station-cloud main > header { padding-block: 12px 21px; margin-bottom: 20px; }
  .station-cloud h1 { font-size: 32px; }
  .station-cloud .cards { grid-template-columns: 1fr; gap: 0; }
  .station-cloud .experience-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .station-cloud .experience-shortcuts a { padding: 13px; min-height: 105px; }
  .station-cloud .experience-shortcuts strong { font-size: 12px; margin-top: 0; }
  .station-cloud .experience-shortcuts span { font-size: 11px; line-height: 1.55; }
  .station-cloud .panel, .station-cloud article { padding: 22px; border-radius: 19px; }
  .station-cloud .cards .value { font-size: 41px; }
  .station-cloud .home-process { grid-template-columns: 1fr; gap: 10px; padding: 24px; }
  .station-cloud .home-process h2 { font-size: 25px; }
  .station-cloud .tank-process { max-width: 310px; }
  .station-cloud .tank-shell { height: 270px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
