/* FOUR FLAMES LLC — STATION-FIRST / PLATEAU EMBER / UNIVERSAL VISUAL DONOR 001
 * Visual-only. Every in-app route inherits this shared presentation layer.
 * No routing, backend, form-field, authorization, persistence, or workflow changes.
 * Specifically preserve protected E-Logbook and Training Center geometry.
 * Agency-specific artwork is an illustrative concept; approval for official use pending.
 * Scoped to the user's Plateau Ember preview; Classic/Station Night/High Contrast unchanged.
 */

body[data-ff-mode="plateau_ember_preview"] {
  --ff-v-ink: #f9f5ed;
  --ff-v-muted: #b9c8c5;
  --ff-v-night: #0b1417;
  --ff-v-deep: #101c1f;
  --ff-v-surface: #18292b;
  --ff-v-raised: #213438;
  --ff-v-copper: #f3a05c;
  --ff-v-ember: #ad5121;
  --ff-v-teal: #5ee2d9;
  --ff-v-line: #4b6767;
  --ff-v-soft-line: #395356;
  --ff-v-radius: 15px;
  --ff-v-shadow: 0 9px 23px #020a0c5e, inset 0 1px #ffffff12;
  --ff-v-warm: linear-gradient(132deg,#a64c1c 0%,#673218 63%,#3a2520 100%);
  --ff-v-cool: linear-gradient(125deg,#176966 0%,#154745 53%,#183031 100%);
  --ff-v-card: linear-gradient(140deg,#233334 0%,#192728 80%);
  background: radial-gradient(ellipse 85vw 30vw at 85% -10%,#523a2733,transparent 70%),
              radial-gradient(ellipse 50vw 35vw at 5% 92%,#16595519,transparent 70%),
              var(--ff-v-night);
  color: var(--ff-v-ink);
}

/* Keep sign-in, first-login security and recovery screens within the same product identity. */
body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) {
  width: min(100% - 28px, 460px);
  max-width: 460px;
  margin: clamp(35px,8vh,100px) auto;
  padding: clamp(22px,3vw,38px);
  border: 1px solid var(--ff-v-line);
  border-top: 3px solid var(--ff-v-copper);
  border-radius: 22px;
  background: linear-gradient(155deg,#273535ed,#112022f5 78%);
  box-shadow: 0 22px 70px #02090980, inset 0 1px #ffffff15;
}
body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) h1 {
  margin-bottom: 9px;
  color: var(--ff-v-ink);
  font-size: clamp(1.45rem,2vw,2.05rem);
  line-height: 1.16;
  letter-spacing: -.027em;
}
body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) :is(button[type=submit], button:not([type])) {
  background: var(--ff-v-warm);
  border: 1px solid #e39a5a;
  box-shadow: 0 4px 13px #7a371b44;
  font-weight: 750;
}
body[data-ff-mode="plateau_ember_preview"] .brand-login-logo { filter: drop-shadow(0 6px 16px #e37b3e25); }

/* Every route: premium shell, station masthead and navigation. */
body[data-ff-mode="plateau_ember_preview"] #shell .side {
  background: linear-gradient(180deg,#10191b,#0d1618 85%);
  border-color: #564336;
  box-shadow: inset -1px 0 #b37a4527;
}
body[data-ff-mode="plateau_ember_preview"] #shell .brand-side {
  border-color: #98633f88;
}
body[data-ff-mode="plateau_ember_preview"] #shell .brand-side img {
  filter: drop-shadow(0 3px 14px #b4462b44);
}
body[data-ff-mode="plateau_ember_preview"] #shell .side #nav button {
  border-radius: 11px;
  color: #e6efeb;
  transition: background-color .14s ease,border-color .14s ease;
}
body[data-ff-mode="plateau_ember_preview"] #shell .side #nav button:is(:hover,:focus-visible) {
  border-color: #5e8e89;
  background: #204240;
}
body[data-ff-mode="plateau_ember_preview"] #shell .side #nav button.active {
  color: white;
  border-color: #60cec7;
  background: linear-gradient(115deg,#1d5855,#287f79);
  box-shadow: inset 0 1px #b3fff226,0 3px 12px #12393755;
}
body[data-ff-mode="plateau_ember_preview"] #ff-station-bar {
  background: linear-gradient(92deg,#101a1c,#202a27 72%,#121b1d);
  border-color: #6f4c32;
  box-shadow: inset 0 1px #e3b77f17;
}
body[data-ff-mode="plateau_ember_preview"] #ff-station-bar .ff-station-name {
  color: var(--ff-v-copper);
  letter-spacing: .027em;
}
body[data-ff-mode="plateau_ember_preview"] #ff-station-bar :is(.ff-avatar,.ff-account-trigger,.ff-station-bell) {
  border-color: var(--ff-v-line);
}
body[data-ff-mode="plateau_ember_preview"] #shell .foot {
  border-color: #af72415c;
  color: var(--ff-v-muted);
}
body[data-ff-mode="plateau_ember_preview"] #ff-test-mark {
  background: #74421f;
  color: #fff2df;
  letter-spacing: .08em;
}

/* The main canvas and page mastheads. E-Logbook and Training retain layout. */
body[data-ff-mode="plateau_ember_preview"] #content {
  color: var(--ff-v-ink);
  min-width: 0;
}
body[data-ff-mode="plateau_ember_preview"] #content > .ff-workspace-heading {
  border: 1px solid #70513d;
  border-inline-start: 4px solid var(--ff-v-copper);
  border-radius: 17px;
  color: var(--ff-v-ink);
  background: linear-gradient(120deg,#223230,#1a2c2d 66%,#2d2a23);
  box-shadow: var(--ff-v-shadow);
}
body[data-ff-mode="plateau_ember_preview"] #content > .ff-workspace-heading .ff-terrain {
  opacity: .64;
}
body[data-ff-mode="plateau_ember_preview"] #content > .ff-workspace-heading .ff-icon {
  color: #8ce8dc;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(h2,h3,h4) {
  color: #f4f2e8;
  letter-spacing: -.015em;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.muted,.small.muted) {
  color: var(--ff-v-muted);
}

/* Shared reusable cards, panels, data tiles. One grammar for ALL business modules. */
body[data-ff-mode="plateau_ember_preview"] #content :is(.panel,.card,.station-tile,.ff-admin-group,.ff-request-card,.ff-record-section,.ff-task-review) {
  background: var(--ff-v-card);
  border-color: var(--ff-v-line);
  border-radius: var(--ff-v-radius);
  color: var(--ff-v-ink);
  box-shadow: var(--ff-v-shadow);
}
body[data-ff-mode="plateau_ember_preview"] #content .station-tile {
  border-bottom: 3px solid #4ad4c7;
  min-width: 0;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.card.clickable,.station-tile,.ff-metric,.ff-quick) {
  transition: box-shadow .16s ease,border-color .16s ease,transform .16s ease;
}
@media (hover:hover) {
  body[data-ff-mode="plateau_ember_preview"] #content :is(.card.clickable,.station-tile,.ff-metric,.ff-quick):hover {
    border-color: #7fe9db;
    box-shadow: 0 12px 25px #02101070, 0 0 0 1px #55bcb651;
    transform: translateY(-1px);
  }
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-metric__title,.ff-card-title strong) {
  color: #f7f3ea;
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-metric__description {
  color: #d2dfd9;
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-metric__footer {
  border-color: #6b7f7166;
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-badge {
  color: #f5fff9;
  border: 1px solid #5a9690;
  background: #1d4d49;
  font-variant-numeric: tabular-nums;
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-badge--warning {
  border-color: #bd8048;
  background: #4f301e;
  color: #ffcf99;
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-badge--info {
  border-color: #66bfb6;
  background: #194847;
  color: #b1fff0;
}

/* Big, high-contrast actions and secondary operations without changing handlers. */
body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,#accountSecurityDialog,.tc-dialog) button:not(.secondary):not(.danger):not(.ff-workspace-more > summary):not([data-tone=teal]) {
  border-color: #b27040;
}
body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,#accountSecurityDialog) :is(button,.primary-link) {
  border-radius: 11px;
  line-height: 1.3;
}
body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog) button:not(.secondary):not(.danger):not(.ff-quick):not(.ff-metric):not(.ff-home-tile):not(.ff-mobile-board):not(.ff-sidebar-route):not(.ff-btn--secondary):not(.ff-stock-review .ff-btn):not(.ff-workspace-primary button):not(.ff-workspace-secondary button) {
  box-shadow: inset 0 1px #ffddac1a;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-workspace-primary,.ff-workspace-secondary) > button {
  border: 1px solid #5caba5;
  border-radius: 14px;
  box-shadow: 0 4px 15px #05201f44;
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-workspace-primary > button:first-child {
  background: var(--ff-v-warm);
  border-color: #d68a4d;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-quick,.ff-mobile-board) {
  border-radius: 16px;
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-quick[data-tone=ember] {
  background: var(--ff-v-warm);
  border: 1px solid #e59b59;
  box-shadow: 0 6px 17px #5d220b66;
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-quick[data-tone=teal] {
  background: var(--ff-v-cool);
  border: 1px solid #67d8cf;
  box-shadow: 0 6px 17px #064a4b55;
}

/* Edit dialogs and credential controls: appearance only, not required fields/validation. */
body[data-ff-mode="plateau_ember_preview"] :is(#dialog,#accountSecurityDialog,.tc-dialog,.po-print-preview) {
  background: linear-gradient(150deg,#223233,#132022 77%);
  color: var(--ff-v-ink);
  border: 1px solid #71928a;
  border-top: 3px solid var(--ff-v-copper);
  border-radius: 18px;
  box-shadow: 0 18px 70px #0009;
}
body[data-ff-mode="plateau_ember_preview"] :is(#dialog,#accountSecurityDialog,.tc-dialog,.po-print-preview)::backdrop {
  background: #031013d4;
}
body[data-ff-mode="plateau_ember_preview"] :is(#content,#login,#passwordChange,#dpsstEnrollment,#dialog,#accountSecurityDialog,.tc,.tc-dialog) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  background-color: #102327;
  color: #f7f5ee;
  border: 1px solid #66827e;
  border-radius: 9px;
  box-shadow: inset 0 1px 3px #0004;
}
body[data-ff-mode="plateau_ember_preview"] :is(#content,#login,#passwordChange,#dpsstEnrollment,#dialog,#accountSecurityDialog,.tc,.tc-dialog) :is(input,select,textarea):focus-visible {
  outline: 3px solid #74f0da;
  outline-offset: 2px;
}
body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,#accountSecurityDialog,.tc,.tc-dialog) :is(label,legend) {
  color: #d4e6df;
}
body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,#accountSecurityDialog,.tc,.tc-dialog) :is(input,select,textarea):disabled {
  opacity: .64;
}
body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,#accountSecurityDialog) :is(details,summary) {
  accent-color: var(--ff-v-teal);
}
body[data-ff-mode="plateau_ember_preview"] #content details:not(.ff-record-section):not(.ff-account) > summary {
  border-color: var(--ff-v-soft-line);
}
body[data-ff-mode="plateau_ember_preview"] #notice {
  background: #19413f;
  border: 1px solid #6ee1d5;
  color: white;
  box-shadow: 0 12px 36px #0008;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.warning,.error,.good) {
  border-radius: 9px;
}

/* Tables across crew, purchasing, finance, equipment, permissions and audits. */
body[data-ff-mode="plateau_ember_preview"] #content :is(.table-scroll,.ff-equipment-history) {
  border-radius: 12px;
  border-color: #455e5b;
}
body[data-ff-mode="plateau_ember_preview"] #content table {
  background: #142426;
  border-collapse: separate;
  border-spacing: 0;
  color: #f3f3ed;
}
body[data-ff-mode="plateau_ember_preview"] #content table th {
  color: #d9fcf4;
  background: #1e4643;
  font-weight: 760;
  border-bottom: 1px solid #729b8b;
}
body[data-ff-mode="plateau_ember_preview"] #content table td {
  border-bottom-color: #3d5856;
}
body[data-ff-mode="plateau_ember_preview"] #content table tbody tr:nth-child(even) td { background: #1b2b2c; }
body[data-ff-mode="plateau_ember_preview"] #content table tr.pick:hover td { background: #235452; }
body[data-ff-mode="plateau_ember_preview"] #content .pill {
  border: 1px solid #67958a;
  background: #214b45;
  color: #d8fff5;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.meter,.tc-meter) {
  border-color: #608f83;
  background: #0e211f;
}

/* Administration / personnel / duties / finance / procurement / equipment / PPE. */
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-admin-tools,.ff-duty-priorities,#equipment-overview,.ff-finance-balances,#crew-results) {
  min-width: 0;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-admin-group,#equipment-overview > section,.ff-duty-priorities > .panel,#crew-results .incident-item) {
  border: 1px solid #567870;
  border-radius: 14px;
  background: linear-gradient(145deg,#223734,#172626);
  box-shadow: var(--ff-v-shadow);
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-admin-group-heading .ff-icon {
  color: #89e9dc;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-record-section,.ff-request-history) > summary {
  color: #b3fff0;
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-stock-review,
body[data-ff-mode="plateau_ember_preview"] #content .ff-task-review {
  border-left: 4px solid var(--ff-v-teal);
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-stock-review :is([data-save],[data-finish]),
body[data-ff-mode="plateau_ember_preview"] #content .ff-task-review :is([data-save],[data-finish]) {
  background: var(--ff-v-warm);
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-duty-state { color: #8ce9d8; }
body[data-ff-mode="plateau_ember_preview"] #content .ff-duty-state.warning { color: #ffd09e; }
body[data-ff-mode="plateau_ember_preview"] #content .ff-report-topics,
body[data-ff-mode="plateau_ember_preview"] #content .profile-tabs { min-width: 0; }

/* Report Builder is a full separate workflow: style its UI, NEVER its printed paper. */
body[data-ff-mode="plateau_ember_preview"] #content .rb {
  --rb-shell: #111e20;
  --rb-card: #1c3030;
  --rb-soft: #243b3b;
  --rb-line: #55766e;
  --rb-teal: #78e1d3;
  --rb-muted: #c4d2cc;
  --rb-ink: #f4f5ed;
  background: #121f21;
  color: var(--rb-ink);
  border-radius: 18px;
  border: 1px solid #45605a;
}
body[data-ff-mode="plateau_ember_preview"] #content .rb :is(.rb-controls,.rb-saved,.rb-block,.rb-template,.rb-add,.rb-contents-toggle > summary) {
  background: var(--ff-v-card) !important;
  border-color: #63867d !important;
  border-radius: 13px !important;
  color: var(--ff-v-ink) !important;
}
body[data-ff-mode="plateau_ember_preview"] #content .rb .rb-featured {
  background: var(--ff-v-cool) !important;
  border-color: var(--ff-v-teal) !important;
}
body[data-ff-mode="plateau_ember_preview"] #content .rb :is(h2,h3,.rb-template strong,.rb-block-name) {
  color: var(--ff-v-ink);
}
/* Paper preview MUST remain dark-on-white and export/print-safe. */
body[data-ff-mode="plateau_ember_preview"] #content .rb .rb-paper {
  color: #253c4c;
  background: #fff;
  border-color: #d5dfe3;
  box-shadow: 0 8px 26px #0005;
}
body[data-ff-mode="plateau_ember_preview"] #content .rb .rb-paper :is(h2,h3,h4,.rb-report-title,.rb-metrics strong) { color: #183449; }
body[data-ff-mode="plateau_ember_preview"] #content .rb .rb-paper :is(table,table td,table th) { color: #253c4c; background: #fff; }
body[data-ff-mode="plateau_ember_preview"] #content .rb .rb-paper table th { color: #fff; background: #183449; }
body[data-ff-mode="plateau_ember_preview"] #content .rb .rb-paper .rb-report-contents,
body[data-ff-mode="plateau_ember_preview"] #content .rb .rb-paper .rb-metrics > div { background: #edf3f5; color: #253c4c; }

/* Reader Board within the member/admin shell. */
body[data-ff-mode="plateau_ember_preview"] #content :is(.reader-entry,.reader-grid > section,.reader-oos) {
  border: 1px solid #5c796f;
  border-radius: 13px;
  background: var(--ff-v-card);
  box-shadow: var(--ff-v-shadow);
}
body[data-ff-mode="plateau_ember_preview"] #content .reader-top {
  border-bottom: 1px solid #87614077;
}

/* Protected Training: COLOR/BORDERS ONLY, do not change tabs, fields, clocks, cards or layout. */
body[data-ff-mode="plateau_ember_preview"] #content .tc,
body[data-ff-mode="plateau_ember_preview"] .tc-dialog {
  --tc-panel: #1b2e30;
  --tc-panel-raised: #264144;
  --tc-border: #5f827b;
  --tc-muted: #c5d2d0;
  --tc-teal: #7ae6d7;
  --tc-amber: #f9b170;
  --tc-red: #ffaba3;
}
body[data-ff-mode="plateau_ember_preview"] #content .tc :is(.tc-panel,.tc-stat,.tc-clock,.tc-cycle) {
  background-color: var(--tc-panel);
  border-color: var(--tc-border);
  box-shadow: inset 0 1px #ffffff0d;
}
body[data-ff-mode="plateau_ember_preview"] #content .tc :is(.tc-tabs button[aria-current=page],.tc-tag.good) {
  background: #19544d;
  border-color: #75dac6;
  color: #e7fff7;
}
body[data-ff-mode="plateau_ember_preview"] #content .tc :is(.tc-tag.warn,.tc-clock.fire) {
  border-color: #b78b58;
}
/* Protected E-Logbook: COLOR/BORDERS ONLY. Native form sequence and roles remain locked. */
body[data-ff-mode="plateau_ember_preview"] #content[data-ff-work-page="E-Logbook"] :is(.ops-step,.incident-section,.advanced-incident,.form-extra-panel) {
  background-color: #1c3032;
  border-color: #64847e;
}
body[data-ff-mode="plateau_ember_preview"] #content[data-ff-work-page="E-Logbook"] fieldset {
  border-color: #6c9085;
}
body[data-ff-mode="plateau_ember_preview"] #content[data-ff-work-page="E-Logbook"] legend { color: #cef7ee; }

/* Responsiveness across modules. Preserve touch dimensions and navigation behavior. */
@media (max-width: 760px) {
  body[data-ff-mode="plateau_ember_preview"] #ff-station-bar {
    border-bottom: 1px solid #70513d;
    background: linear-gradient(120deg,#0f1d1f,#213231);
  }
  body[data-ff-mode="plateau_ember_preview"] #ff-handset {
    background: #101e20;
    border-top-color: #6a5542;
    box-shadow: 0 -6px 19px #0006;
  }
  body[data-ff-mode="plateau_ember_preview"] #ff-handset button {
    border-color: #476c67;
    border-radius: 11px;
    background: #203334;
    color: #f0f9f3;
    font-weight: 650;
  }
  body[data-ff-mode="plateau_ember_preview"] #ff-handset button[aria-current] {
    background: linear-gradient(140deg,#bd6027,#8d401b);
    color: #fff7ef;
    border-color: #e39451;
  }
  body[data-ff-mode="plateau_ember_preview"] #shell .side #nav[data-ff-open] {
    border-top-color: var(--ff-v-teal);
    background: #132124;
  }
  body[data-ff-mode="plateau_ember_preview"] #content > .ff-workspace-heading {
    border-radius: 13px;
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.panel,.card,.ff-admin-group,.ff-request-card) {
    border-radius: 12px;
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-workspace-primary,.ff-workspace-secondary) > button {
    min-height: 52px;
  }
  body[data-ff-mode="plateau_ember_preview"] #content .rb { padding: 12px 8px; }
  body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) {
    margin: 20px auto;
    padding: 22px 16px;
  }
}
@media (max-width: 430px) {
  body[data-ff-mode="plateau_ember_preview"] #content .ff-card-title strong { font-size: 1.01rem; }
  body[data-ff-mode="plateau_ember_preview"] #content .ff-dashboard-cards .ff-metric { padding-inline: 13px; }
  body[data-ff-mode="plateau_ember_preview"] #content .ff-ems-stock { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-ff-mode="plateau_ember_preview"] #content :is(.card.clickable,.station-tile,.ff-metric,.ff-quick) { transition: none; }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.card.clickable,.station-tile,.ff-metric,.ff-quick):hover { transform: none; }
}
@media print {
  /* Print/PDF must keep existing light readable document output. */
  body[data-ff-mode="plateau_ember_preview"] { background: white !important; color: black !important; }
  body[data-ff-mode="plateau_ember_preview"] #content .rb .rb-paper { box-shadow: none; }
}

/* 2026-11-20 visual-review proof: wide scenic hero and readable live labels. */
body[data-ff-mode="plateau_ember_preview"] .ff-hero { background:#111d1f; border-bottom:1px solid #946d4375; }
body[data-ff-mode="plateau_ember_preview"] .ff-celilo-art { inset:0; width:100%; opacity:1; -webkit-mask-image:none; mask-image:none; }
body[data-ff-mode="plateau_ember_preview"] .ff-celilo-art img {inset:0; width:100%; height:100%; object-fit:cover; object-position:center 49%; }
body[data-ff-mode="plateau_ember_preview"] .ff-celilo-art::after {background:linear-gradient(90deg,#0b191df2 0%,#0b191dd8 24%,#0b191d40 68%,transparent 100%), linear-gradient(0deg,#101a1eeb 0%,transparent 45%); }
body[data-ff-mode="plateau_ember_preview"] .ff-hero-copy {text-shadow:0 2px 12px #0009;}
@media(max-width:760px){
 body[data-ff-mode="plateau_ember_preview"] .ff-celilo-art {width:100%;opacity:.8;}
 body[data-ff-mode="plateau_ember_preview"] .ff-celilo-art img {object-position:center 45%;}
 body[data-ff-mode="plateau_ember_preview"] .ff-celilo-art::after {background:linear-gradient(90deg,#101b1de8 0%,#101b1da8 48%,#101b1d6b 100%),linear-gradient(0deg,#101b1df0,transparent 60%)}
}


/* --------------------------------------------------------------------------
 * FOUR FLAMES — FACETED EMBER 001 / OWNER BUTTON REFERENCE
 * The source's native actions and forms remain untouched.  This is visual CSS
 * scoped exclusively to Plateau Ember, not Station Night/Classic/Contrast.
 * Bevels are CSS treatments: no DOM changes, data binding, or fake percentages.
 * -------------------------------------------------------------------------- */
@media screen {
body[data-ff-mode="plateau_ember_preview"] {
  --ff-v-copper:#f2a45e;
  --ff-v-teal:#5fdfd6;
  --ff-v-edge:#b77c4b;
  --ff-v-rise: inset 0 1px 0 #ffecce50, inset 1px 0 0 #ffd5a329,
               inset 0 -3px 0 #080e114b, 0 8px 18px #0009;
  --ff-v-cut: 14px 6px 14px 6px;
}
/* True source interactive controls; exclude read-only metrics and tiny icon chrome. */
body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,#login,#passwordChange,#dpsstEnrollment,#accountSecurityDialog,.tc,.tc-dialog)
 :is(button,.primary-link):not(.ff-metric):not(.ff-home-tile):not(.ff-quick):not(.ff-mobile-board):not(.ff-recent-item):not([aria-label="Close"]) {
  border-width:1px;
  border-style:solid;
  border-radius:var(--ff-v-cut);
  font-weight:760;
  letter-spacing:.008em;
  text-shadow:0 1px 1px #0911128c;
  box-shadow:var(--ff-v-rise);
  transition:filter .15s ease,box-shadow .15s ease,transform .15s ease;
}
body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,#login,#passwordChange,#dpsstEnrollment,#accountSecurityDialog,.tc,.tc-dialog)
 button:not(.secondary):not(.danger):not(.ff-btn--secondary):not(.ff-btn--outline):not(.ff-btn--danger):not(.ff-metric):not(.ff-home-tile):not(.ff-quick):not(.ff-mobile-board):not(.ff-ems-tab):not(.ff-recent-item):not([data-tone="teal"]):not([data-camera-stop]) {
  background-image:linear-gradient(163deg,#c9652b 0%,#a34b22 41%,#6a3423 85%,#47251e 100%);
  border-color:#e2a067;
  color:#fff7ed;
}
body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,#accountSecurityDialog,.tc,.tc-dialog)
 :is(button.secondary,.ff-btn--secondary,.ff-btn--outline,[data-tone="teal"],.ff-restock-lookup) {
  background:linear-gradient(155deg,#227f7a 0%,#195552 46%,#153539 100%);
  border-color:#71ded1;
  color:#f3fffc;
}
body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,#accountSecurityDialog,.tc,.tc-dialog)
 :is(button.danger,.ff-btn--danger,[data-tone="danger"]) {
  background:linear-gradient(155deg,#9e3437,#5f2427 85%);
  border-color:#ee9291;
  color:white;
}
/* These are the three large faceted launch buttons in the user's reference. */
body[data-ff-mode="plateau_ember_preview"] #content .ff-quick,
body[data-ff-mode="plateau_ember_preview"] #content .ff-mobile-board {
  position:relative;
  border:1px solid #e1a46b;
  border-radius:17px 6px 17px 6px;
  background:linear-gradient(158deg,#d66d2b 0%,#a14d24 35%,#5b3024 100%);
  color:#fff9f0;
  text-shadow:0 1px 1px #1c0d08b8;
  box-shadow:inset 0 2px 0 #ffdfa366,inset 3px 0 0 #ffc88922,
             inset 0 -4px 0 #1c110b87,0 9px 18px #0008,0 0 0 1px #7f492555;
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-quick[data-tone="teal"] {
  border-color:#85f0df;
  background:linear-gradient(155deg,#288e86 0%,#1b645f 47%,#123a3d 100%);
  box-shadow:inset 0 2px 0 #ccfff083,inset 3px 0 #7fffff20,
             inset 0 -4px 0 #08262899,0 9px 18px #0008,0 0 0 1px #246e6766;
}
/* A visible angled facet with no clipped click area or clipped focus outline. */
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-quick,.ff-mobile-board)::before {
  content:"";
  position:absolute;
  pointer-events:none;
  inset:5px auto auto 5px;
  width:30px;
  height:15px;
  border-top:2px solid #ffe2b28a;
  border-left:2px solid #ffe2b28a;
  transform:skew(-29deg);
  border-top-left-radius:4px;
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-quick .ff-icon:first-child {
  filter:drop-shadow(0 2px 2px #080a0b99);
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-quick .ff-icon:last-child {
  color:#ffe8d0;
}
/* Smaller square-edged operational choices adopt the same subtle tapered profile. */
body[data-ff-mode="plateau_ember_preview"] #content .ff-home-tile {
  border-radius:15px 6px 15px 6px;
  border:1px solid #69d7cb;
  border-bottom-width:3px;
  box-shadow:inset 0 1px 0 #ddfff43d, inset 0 -2px 0 #07262a,
             0 6px 14px #0007;
  background:linear-gradient(154deg,#235b5a,#13363b 82%);
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-mobile-primary .ff-home-tile:first-child {
  background:linear-gradient(154deg,#c1622c,#75391f 85%);
  border-color:#e7aa70;
  border-bottom:3px solid #e69d59;
}
body[data-ff-mode="plateau_ember_preview"] #shell .side #nav button.active {
  border-radius:10px 4px 10px 4px;
  background:linear-gradient(115deg,#238580,#155553 82%);
  border:1px solid #75eadc;
  box-shadow:inset 0 1px 0 #d6fff66b,inset 0 -3px 0 #072e3180,0 4px 13px #071818aa;
}
body[data-ff-mode="plateau_ember_preview"] #ff-handset button {
  border-radius:9px 4px 9px 4px;
  background:linear-gradient(153deg,#233a3b,#102224);
  border:1px solid #547b78;
  box-shadow:inset 0 1px #d5fff424,inset 0 -2px #0005;
}
body[data-ff-mode="plateau_ember_preview"] #ff-handset button[aria-current] {
  background:linear-gradient(153deg,#cc672c,#7b3a1d 88%);
  border-color:#efaf75;
  box-shadow:inset 0 1px #ffe2b687,inset 0 -2px #33170a;
}
/* Stronger layered card borders that connect the rest of the application. */
body[data-ff-mode="plateau_ember_preview"] #content :is(.panel,.card,.ff-metric,.ff-request-card,.ff-admin-group,.ff-record-section) {
  border-color:#54726d;
  background-image:linear-gradient(152deg,#223a3a,#1a2c2e 53%,#152325);
  box-shadow:inset 0 1px 0 #d0fff014,0 6px 20px #0005;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.panel,.card,.ff-metric,.ff-request-card,.ff-admin-group) :is(h2,h3,strong) {
  color:#faf7ef;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-workspace-heading,.ff-metric,.ff-admin-group) {
  border-radius:15px 5px 15px 5px;
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-dashboard-cards .ff-metric {
  border-color:#6e8e81;
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-dashboard-cards .ff-metric:nth-child(3n + 1) {
  border-color:#a2774f;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(input,select,textarea) {
  border-radius:10px 4px 10px 4px;
  border-color:#658880;
}
body[data-ff-mode="plateau_ember_preview"] #content .ff-ems-tabs,
body[data-ff-mode="plateau_ember_preview"] #content .profile-tabs {
  border-radius:11px 5px 11px 5px;
}
/* The Celilo image is already provided by the verified source; keep it. */
body[data-ff-mode="plateau_ember_preview"] .ff-celilo-art {
  opacity:.98;
  filter:saturate(1.08) contrast(1.06);
}
body[data-ff-mode="plateau_ember_preview"] .ff-hero {
  background:linear-gradient(95deg,#101c1ef8 3%,#101b1ea0 41%,transparent 76%);
}
/* Inputs/buttons in overlay dialogs must work with touch and keyboard. */
body[data-ff-mode="plateau_ember_preview"] :is(button,.primary-link):focus-visible {
  outline:3px solid #b5fff1;
  outline-offset:3px;
}
body[data-ff-mode="plateau_ember_preview"] :is(button,.primary-link):disabled {
  box-shadow:inset 0 1px #ffffff10;
  filter:saturate(.5);
}
@media (hover:hover) {
  body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,.tc) button:not(:disabled):hover {
    filter:brightness(1.12);
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-quick,.ff-home-tile):not(:disabled):hover {
    transform:translateY(-2px);
    filter:brightness(1.1);
  }
}
@media (max-width:760px) {
  body[data-ff-mode="plateau_ember_preview"] #content .ff-quick { min-width:0; }
  body[data-ff-mode="plateau_ember_preview"] #content .ff-home-tile { min-height:108px; }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.panel,.ff-request-card) { box-shadow:inset 0 1px #ffffff0f,0 3px 9px #0005; }
  body[data-ff-mode="plateau_ember_preview"] #content .ff-mobile-primary .ff-home-tile { min-height:140px; }
}
@media (prefers-reduced-motion:reduce) {
  body[data-ff-mode="plateau_ember_preview"] :is(button,.primary-link) { transition:none; transform:none!important; }
}
@media (forced-colors:active) {
  body[data-ff-mode="plateau_ember_preview"] :is(button,.ff-home-tile,.ff-quick) { forced-color-adjust:auto; border:1px solid ButtonText; box-shadow:none; }
}
}

/* Keep the existing scenic asset, but crop out its embedded sample greeting. */
@media screen {
body[data-ff-mode="plateau_ember_preview"] .ff-celilo-art {
  inset:0 0 0 auto; width:min(76%,980px); opacity:1;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 24%);
  mask-image:linear-gradient(90deg,transparent,#000 24%);
}
body[data-ff-mode="plateau_ember_preview"] .ff-celilo-art img {
  inset:0; width:100%; height:100%; object-fit:cover; object-position:right center;
}
body[data-ff-mode="plateau_ember_preview"] .ff-celilo-art::after {
  background:linear-gradient(90deg,#10191b66,transparent 38%),
             linear-gradient(0deg,#101b1ee8,transparent 54%);
}
body[data-ff-mode="plateau_ember_preview"][data-ff-surface="ems"] .ff-ems-art {
  display:none;
}
@media(max-width:760px){
  body[data-ff-mode="plateau_ember_preview"] .ff-celilo-art {width:85%;opacity:.82;}
}
}

/* Keep forms and print output stable, no print-mode embellishment. */

/* =======================================================================
   FACETED EMBER 002 — OWNER APPROVED 3 A.M. OPERATIONAL ACTION HIERARCHY
   Universal style rules on actual Command Center controls, not demo-only.
   Screen readers, native click handlers, permission checks and saved records
   are unchanged. Do not move/resize the locked Training/E-Logbook forms.
   ======================================================================= */
body[data-ff-mode="plateau_ember_preview"] {
  --ff-v-target: 52px;
  --ff-v-face-highlight: inset 0 2px 0 #ffe6bd57, inset 2px 0 #ffd69c22,
      inset 0 -3px 0 #0714168a, 0 7px 18px #0009;
}

/* Universal priority actions — easy to locate and press with gloves/at night.
   In the E-Logbook and Training Center this selector does not change sizes. */
body[data-ff-mode="plateau_ember_preview"] #content:not([data-ff-work-page="E-Logbook"]):not(:has(> .tc))
 :is(.ff-workspace-primary, .ff-workspace-secondary, .ff-crew-toolbar,
     .ff-admin-tools, .ops-tools, .toolbar, .actions) > :is(button, .ff-btn, .primary-link) {
  min-height: var(--ff-v-target);
  padding: 11px 16px;
  border-radius: 14px 5px 14px 5px;
  font-weight: 790;
  letter-spacing: .012em;
  line-height: 1.3;
  box-shadow: var(--ff-v-face-highlight);
  touch-action: manipulation;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-workspace-primary,.ff-workspace-secondary,.ff-crew-toolbar) > button .ff-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-workspace-primary,.ff-workspace-secondary,.ff-crew-toolbar) > button:focus-visible {
  outline: 3px solid #befff0;
  outline-offset: 4px;
}

/* Intentional contrast: copper means ACT, teal means supporting option.
   These style existing buttons; they do not add or change any action. */
body[data-ff-mode="plateau_ember_preview"] #content .ff-workspace-primary > button:first-child,
body[data-ff-mode="plateau_ember_preview"] #content .actions > button[type="submit"]:not(.secondary):not(.danger),
body[data-ff-mode="plateau_ember_preview"] #content .ops-tools > button:first-child {
  background: linear-gradient(154deg,#d57334 0%,#aa5023 53%,#71341f 100%);
  border: 1px solid #f5af71;
  color: #fff9f3;
  box-shadow: inset 0 2px #ffe5b087,inset 0 -3px #3e170ea6,0 8px 20px #0008;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-workspace-secondary,.ff-crew-toolbar) > button:not(.danger),
body[data-ff-mode="plateau_ember_preview"] #content :is(.toolbar,.actions) > button.secondary {
  background: linear-gradient(155deg,#277d78,#185450 65%,#123538);
  border: 1px solid #7be9db;
  color: #f5fffb;
  box-shadow: inset 0 2px #bbfff152,inset 0 -3px #0628299c,0 5px 14px #0008;
}

/* Dialog confirmations are prominent; Cancel is differentiated and adjacent.
   Dialog geometry and required form sequence stay exactly as originally coded. */
body[data-ff-mode="plateau_ember_preview"] :is(#dialog,#accountSecurityDialog)
 :is(.formbuttons,.actions) > button,
body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment)
 button[type="submit"] {
  min-height: 52px;
  padding: 12px 18px;
  font-weight: 790;
  border-radius: 14px 5px 14px 5px;
}
body[data-ff-mode="plateau_ember_preview"] :is(#dialog,#accountSecurityDialog) button[type="submit"] {
  border: 1px solid #f8b877;
  background: linear-gradient(155deg,#d27737,#9b4921 70%,#6a2f20);
  box-shadow: var(--ff-v-face-highlight);
  color: white;
}

/* EMS workflow: one unmissable scan entry, clear lookup, clear review.
   Existing scanner/lot/cart handlers remain untouched. */
body[data-ff-mode="plateau_ember_preview"] #content :is([data-camera-start],.ff-review-cart,.ff-restock-submit,.ff-restock-selection [data-add]) {
  min-height: 58px;
  border: 1px solid #ffc080;
  border-radius: 16px 5px 16px 5px;
  background: linear-gradient(158deg,#d57235,#9d4824 58%,#633224);
  color:#fffaf3;
  font-weight: 800;
  box-shadow:inset 0 2px #ffe7c479,inset 0 -3px #341a16,0 8px 18px #0008;
  touch-action: manipulation;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-restock-lookup,.ff-ems-tab[aria-current="page"]) {
  min-height: 48px;
  border-radius: 12px 5px 12px 5px;
  border: 1px solid #7bf5e1;
  color: #f6fffd;
  background: linear-gradient(150deg,#2b8880,#1b514f);
  font-weight: 780;
  box-shadow:inset 0 1px #d3fff95e,inset 0 -2px #072d2c,0 4px 10px #0005;
}
body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-restock-quantity button,.ff-ems-tab):focus-visible {
  outline: 3px solid #bdfff4;
  outline-offset: 3px;
}

/* At night, selected controls and keyboard focus must not look like mere text.
   Never encode state by color alone; preserve existing status labels/icons. */
body[data-ff-mode="plateau_ember_preview"] #content :is(.station-tile,.ff-admin-group,.ff-request-card):focus-within {
  border-color: #a4fcf0;
  box-shadow: 0 0 0 2px #82eadc55,0 9px 18px #0007;
}
body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,.tc,.tc-dialog) button:disabled {
  cursor: not-allowed;
  opacity: .59;
  filter: saturate(.5);
  box-shadow: inset 0 1px #ffffff14;
}
body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,.tc,.tc-dialog) button:not(:disabled):active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 5px #0007,0 2px 5px #0005;
}

@media (max-width: 760px) {
  body[data-ff-mode="plateau_ember_preview"] #content:not([data-ff-work-page="E-Logbook"]):not(:has(> .tc))
    :is(.ff-workspace-primary, .ff-workspace-secondary, .ff-crew-toolbar,.ops-tools,.toolbar,.actions) > button {
    min-height: 54px;
    padding: 12px 15px;
  }
  body[data-ff-mode="plateau_ember_preview"] #content .ff-mobile-primary .ff-home-tile {
    min-height: 144px;
    font-size: 1rem;
  }
  body[data-ff-mode="plateau_ember_preview"] #content .ff-mobile-secondary .ff-home-tile {
    min-height: 109px;
  }
  body[data-ff-mode="plateau_ember_preview"] #ff-handset button {
    min-height: 48px;
    font-weight: 740;
  }
}
@media (max-width: 360px) {
  body[data-ff-mode="plateau_ember_preview"] #content:not([data-ff-work-page="E-Logbook"]):not(:has(> .tc))
    :is(.ff-workspace-primary,.ff-workspace-secondary,.toolbar,.actions) > button {
    padding: 11px 12px;
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,.tc,.tc-dialog) button {
    transition: none !important;
  }
}
@media (forced-colors: active) {
  body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,.tc,.tc-dialog) button {
    forced-color-adjust: auto;
    border: 1px solid ButtonText;
    box-shadow: none;
  }
}

/* ========================================================================
   FACETED EMBER 004 — READABILITY REFINEMENT AFTER OWNER APPROVAL
   Station-first, high-visibility action language on the REAL application.
   This is presentation only: original routes, fields, save/approval handlers,
   permissions, scanner, CAD, training and E-Logbook are NOT rewritten.
   Avoid fake health gauges; only backend-provided status may be displayed.
   Reversible: only the opt-in Plateau Ember theme receives these rules.
   ======================================================================== */
@media screen {
  body[data-ff-mode="plateau_ember_preview"] {
    --ff-night-003: #0b171a;
    --ff-card-003: #1b2d30;
    --ff-river-003: #5fe1d6;
    --ff-copper-003: #efa15a;
    --ff-text-003: #f6f5ef;
    --ff-dim-003: #c2d5d2;
    --ff-edge-003: 14px 5px 14px 5px;
    --ff-copper-face-003: linear-gradient(156deg,#ac5c2e 0%,#ae5628 38%,#8c4024 72%,#5e2b21 100%);
    --ff-river-face-003: linear-gradient(150deg,#287871 0%,#246f68 42%,#184943 78%,#123333 100%);
    --ff-press-depth-003: inset 0 2px 0 #ffe5bd77,inset 2px 0 0 #ffeacb29,inset 0 -4px 0 #21130b80,0 8px 16px #000a;
  }

  /* Baseline readability across ADMIN, CREW, PPE, MAINTENANCE,
     PURCHASING, FINANCE, REPORTS, SHIFT NOTES, MESSAGES, EMS, CAD. */
  body[data-ff-mode="plateau_ember_preview"] #content {
    color:var(--ff-text-003);
    overflow-wrap:break-word;
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-workspace-heading,h1,h2,h3,h4) { text-wrap:balance; }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.muted,.small.muted,.ff-workspace-caption,.ff-card-description) {color:var(--ff-dim-003);}
  body[data-ff-mode="plateau_ember_preview"] #content :is(.panel,.card,.ff-record-section,.ff-task-fields,.ff-cart-review,.ff-stock-review,.ff-admin-group,.ff-request-card) {
    border-color:#5b807a;
    box-shadow:inset 0 1px 0 #d6fff018,0 8px 19px #0006;
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-task-fields,.ff-record-section,.ff-cart-review,.ff-stock-review) {border-radius:15px 5px 15px 5px;}
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-task-fields,.ff-cart-review,.ff-stock-review) :is(legend,h2,h3) {color:#fff4e6;font-weight:780;}
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-workspace-heading,.ff-admin-group-heading) .ff-icon {color:#a2fff0;}

  /* The 3 a.m. rule: real task buttons are distinct, big and tactile.
     Locked Training and E-Logbook screens are deliberately excluded from
     this SIZE/layout pass; their existing order, fields and geometry remain. */
  body[data-ff-mode="plateau_ember_preview"] #content:not([data-ff-work-page="E-Logbook"]):not(:has(.tc))
  :is(.ff-workspace-primary,.ff-admin-tools,.ff-crew-toolbar,.ops-tools) > button:not([disabled]) {
    min-height:56px;
    padding:12px 17px;
    border-radius:var(--ff-edge-003);
    font-size:clamp(.99rem,1.5vw,1.09rem);
    font-weight:820;
    line-height:1.32;
    border:1px solid #f8b379;
    background:var(--ff-copper-face-003);
    color:#fffaf3;
    text-shadow:0 1px 1px #16100c9e;
    box-shadow:var(--ff-press-depth-003);
    touch-action:manipulation;
  }
  body[data-ff-mode="plateau_ember_preview"] #content:not([data-ff-work-page="E-Logbook"]):not(:has(.tc))
  :is(.ff-workspace-primary,.ff-admin-tools,.ff-crew-toolbar,.ops-tools) > button.secondary:not([disabled]) {
    border-color:#8cefe2;
    background:var(--ff-river-face-003);
    box-shadow:inset 0 2px #d1fff080,inset 0 -4px #061c1c9c,0 7px 14px #0009;
  }
  body[data-ff-mode="plateau_ember_preview"] #content:not([data-ff-work-page="E-Logbook"]):not(:has(.tc))
  :is(.ff-workspace-secondary,.actions,.toolbar,.ff-report-actions) > button:not([disabled]):not([aria-label="Close"]):not(.ff-ems-tab) {
    min-height:50px;
    padding:10px 15px;
    border-radius:var(--ff-edge-003);
    font-size:clamp(.95rem,1.35vw,1.04rem);
    font-weight:770;
    touch-action:manipulation;
    box-shadow:inset 0 2px 0 #ffe9c955,inset 0 -3px 0 #1020239c,0 6px 13px #0008;
  }
  body[data-ff-mode="plateau_ember_preview"] #content:not([data-ff-work-page="E-Logbook"]):not(:has(.tc))
  :is(.ff-workspace-primary,.ff-workspace-secondary,.ff-crew-toolbar,.ff-admin-tools,.actions,.toolbar) > button.danger:not([disabled]),
  body[data-ff-mode="plateau_ember_preview"] #content button[data-tone="danger"]:not([disabled]) {
    background:linear-gradient(151deg,#b83c42,#762b2e 80%);
    border:1px solid #ffaaa6;
    color:white;
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-workspace-primary,.ff-workspace-secondary,.ff-crew-toolbar) > button .ff-icon {
    width:24px;height:24px;flex:0 0 24px;
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-workspace-primary,.ff-workspace-secondary,.ff-crew-toolbar) > button:disabled {
    background:#344343;color:#d0d5d2;border-color:#6e8280;
    box-shadow:none;
  }

  /* Readable selection, confirmation and direction changes in complex forms. */
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-task-review,.ff-stock-review,.ff-cart-review,.ff-requisition-review,.ff-request-history) {
    border-left:4px solid var(--ff-river-003);
    background:linear-gradient(155deg,#233c3a,#132426 85%);
    padding:clamp(12px,2vw,20px);
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-task-review,.ff-stock-review,.ff-cart-review) :is(button[type="submit"],[data-finish],[data-confirm],.ff-btn--primary) {
    min-height:54px;
    padding:12px 17px;
    background:var(--ff-copper-face-003);
    color:#fff;
    border:1px solid #ffc587;
    border-radius:var(--ff-edge-003);
    box-shadow:var(--ff-press-depth-003);
    font-weight:800;
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-task-review,.ff-stock-review,.ff-cart-review) :is(button.secondary,.ff-btn--secondary) {
    background:var(--ff-river-face-003);
    border-color:#91ebdd;
    color:#fff;
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-workspace-search,.ff-report-filters,.ff-report-filter-grid) {
    max-width:100%;min-width:0;
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-workspace-search,.ff-report-filters,.ff-report-filter-grid) :is(input,select) {
    min-height:46px;
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(input,select,textarea):not(:disabled) {
    border-color:#7ca8a1;
    background-color:#0c2325;
    color:#fbf9f3;
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(input,textarea)::placeholder {color:#b4cac7;opacity:1;}
  body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,#accountSecurityDialog) :is(input,select,textarea):is(:focus,:focus-visible) {
    outline:3px solid #a9fff0;outline-offset:2px;
    border-color:#bff8e6;
  }
  body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,#accountSecurityDialog) [aria-invalid="true"] {
    border-color:#ffaea3;outline-color:#ffaea3;
  }
  body[data-ff-mode="plateau_ember_preview"] #content .table-scroll {
    max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;
    scrollbar-color:#5ac5b8 #122728;
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.warning,.error,.good) {
    border-style:solid;border-width:1px;
    font-weight:600;
    padding:9px 12px;
  }
  body[data-ff-mode="plateau_ember_preview"] #content .error {color:#ffd5d0;border-color:#d98780;}
  body[data-ff-mode="plateau_ember_preview"] #content .warning {color:#ffe2b8;border-color:#c59454;}
  body[data-ff-mode="plateau_ember_preview"] #content .good {color:#d9ffef;border-color:#73cbb6;}
  body[data-ff-mode="plateau_ember_preview"] #content details > summary {
    cursor:pointer;scroll-margin-block:24px;
  }
  body[data-ff-mode="plateau_ember_preview"] #content details > summary:focus-visible,
  body[data-ff-mode="plateau_ember_preview"] #shell .side #nav button:focus-visible,
  body[data-ff-mode="plateau_ember_preview"] #ff-handset button:focus-visible {
    outline:3px solid #bafff0;outline-offset:3px;
  }

  /* Admin and protected settings: statuses remain textual, not decoratively invented. */
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-admin-group,.ff-role-permissions,.ff-admin-records) {
    border-color:#6e9689;
    box-shadow:inset 0 1px #d4fff017,0 9px 20px #0007;
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-admin-group,.ff-role-permissions,.ff-admin-records) > summary {
    color:#dbfff4;font-weight:780;
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.check-grid,.ff-role-permissions) input[type="checkbox"] {
    accent-color:#39c9bb;
  }
  body[data-ff-mode="plateau_ember_preview"] #content .ff-badge--warning {
    color:#ffe0b8;background:#52311e;border-color:#de9b58;
  }

  /* EMS scanner: prominent first action, supporting lookup and clear receipt. */
  body[data-ff-mode="plateau_ember_preview"] #content :is([data-camera-start],.ff-review-cart,.ff-restock-submit) {
    min-height:60px;
    padding:13px 17px;
    font-size:1.08rem;
    font-weight:830;
    color:#fff9f0;
    border:1px solid #ffb975;
    background:var(--ff-copper-face-003);
    border-radius:17px 5px 17px 5px;
    box-shadow:var(--ff-press-depth-003);
  }
  body[data-ff-mode="plateau_ember_preview"] #content .ff-restock-lookup {
    min-height:52px;font-weight:800;
    border:1px solid #a5f0e7;
    border-radius:14px 5px 14px 5px;
    background:var(--ff-river-face-003);
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-restock-selection,.ff-restock-cart,.ff-restock-capture) {
    border-color:#61948b;
    border-radius:16px 5px 16px 5px;
  }
  body[data-ff-mode="plateau_ember_preview"] #content .ff-ems-tab[aria-current="page"] {
    border-color:#9dfff1;
    color:#fff;
    box-shadow:inset 0 2px #e0fff67d,inset 0 -3px #052a2c,0 5px 12px #0008;
  }

  /* Station navigation: prominent selection; no obscured controls. */
  body[data-ff-mode="plateau_ember_preview"] #shell .side #nav button {
    border:1px solid transparent;
    min-height:43px;
    line-height:1.27;
  }
  body[data-ff-mode="plateau_ember_preview"] #shell .side #nav button.active {
    color:white;border:1px solid #99f3e6;
    box-shadow:inset 0 2px #e0fff661,inset 0 -3px #082426ab,0 5px 12px #0008;
  }
  body[data-ff-mode="plateau_ember_preview"] #ff-handset button[aria-current] {
    border-color:#ffc180;
    color:#fff;
  }
  body[data-ff-mode="plateau_ember_preview"] #ff-station-bar .ff-station-name {color:#ffc388;}
  body[data-ff-mode="plateau_ember_preview"] #content .ff-hero-copy {
    text-shadow:0 2px 12px #020707e8;
  }
  body[data-ff-mode="plateau_ember_preview"] #content .ff-quick {
    min-height:82px;
    font-weight:840;
    font-size:clamp(1rem,1.5vw,1.13rem);
  }
  body[data-ff-mode="plateau_ember_preview"] #content .ff-quick[data-tone="teal"] {border-color:#a4fff0;}

  /* Dialogs, sign-in and secure password entry: obvious Save/Cancel. */
  body[data-ff-mode="plateau_ember_preview"] #dialog :is(.formbuttons,.actions) > button {
    min-height:54px;
    padding:12px 18px;
    font-size:1.03rem;
    font-weight:800;
    border-radius:var(--ff-edge-003);
  }
  body[data-ff-mode="plateau_ember_preview"] #dialog :is(.formbuttons,.actions) > button[type="submit"] {
    background:var(--ff-copper-face-003);
    border:1px solid #ffb978;
    color:#fff;
    box-shadow:var(--ff-press-depth-003);
  }
  body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) button[type="submit"] {
    min-height:56px;min-width:min(100%,210px);
    font-size:1.05rem;font-weight:810;
    border:1px solid #ffd09b;
    border-radius:14px 5px 14px 5px;
    background:var(--ff-copper-face-003);
    box-shadow:var(--ff-press-depth-003);
  }
  body[data-ff-mode="plateau_ember_preview"] :is(#login,#passwordChange,#dpsstEnrollment) :is(input,select) {min-height:48px;}

  /* Status-selected, pressed and disabled states cannot be mistaken for actions. */
  body[data-ff-mode="plateau_ember_preview"] #content :is(button[aria-pressed="true"],button[aria-selected="true"]) {
    outline:2px solid #d1fff1;outline-offset:1px;
  }
  body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,#accountSecurityDialog) button:not(:disabled):active {
    transform:translateY(2px);
    box-shadow:inset 0 3px 8px #0009,0 2px 4px #0005;
  }
  body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,#accountSecurityDialog) button:disabled,
  body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,#accountSecurityDialog) button[aria-disabled="true"] {
    opacity:.55;cursor:not-allowed;filter:saturate(.35);box-shadow:none;
  }
}
@media (max-width:760px) and (hover:none) {
  body[data-ff-mode="plateau_ember_preview"] #content:not([data-ff-work-page="E-Logbook"]):not(:has(.tc))
    :is(.ff-workspace-primary,.ff-workspace-secondary,.ff-admin-tools,.actions,.toolbar) > button {
    min-height:54px;
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-workspace-primary,.ff-workspace-secondary,.ff-admin-tools,.toolbar,.actions) {
    gap:9px;max-width:100%;min-width:0;
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-workspace-primary,.ff-workspace-secondary,.ff-admin-tools,.toolbar,.actions) > button {
    white-space:normal;overflow-wrap:anywhere;
  }
  body[data-ff-mode="plateau_ember_preview"] #content .table-scroll,
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-admin-group,.ff-request-card) {min-width:0;max-width:100%;}
  body[data-ff-mode="plateau_ember_preview"] #ff-handset button {min-height:51px;}
}
@media (max-width:360px) {
  body[data-ff-mode="plateau_ember_preview"] #content:not([data-ff-work-page="E-Logbook"]):not(:has(.tc))
  :is(.ff-workspace-primary,.ff-workspace-secondary,.ff-admin-tools,.toolbar,.actions) > button {
    width:auto;max-width:100%;padding:12px 13px;
  }
  body[data-ff-mode="plateau_ember_preview"] #content :is(.ff-request-card,.ff-task-fields,.ff-admin-group) {overflow-wrap:anywhere;}
}
@media (prefers-reduced-motion:reduce) {
  body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,#login,#ff-handset) button {transition:none !important;}
}
@media (forced-colors:active) {
  body[data-ff-mode="plateau_ember_preview"] :is(#content,#dialog,#login,#ff-handset) button {
    forced-color-adjust:auto;border:1px solid ButtonText;box-shadow:none;text-shadow:none;
  }
}

