:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #17211b;
  background: #f3f5f4;
  --bg: #f3f5f4;
  --surface: #fff;
  --surface-raised: #f8faf8;
  --border: #d4ddd6;
  --text: #17211b;
  --muted: #59675f;
  --accent: #36804b;
  --accent-soft: #dff3e3;
  --accent-dark: #1b5330;
  --warning: #a85c07;
  --failure: #b42f37;
  --idle: #69756e;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(900px 500px at 85% -12%, #1b3824 0, transparent 64%), var(--bg); color: var(--text); }
body.wg-shell { padding: 0 1.5rem 2rem; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: #b5fac4; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #b5fac4; outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.025em; }
h1 { font-size: clamp(1.7rem, 2.5vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2vw, 1.9rem); }
p, li, dd { color: var(--muted); }
strong, b, th, dt { color: var(--text); }
small, .wg-muted { color: var(--muted); }
code, pre { color: #bdebc8; background: #0c1510; border-radius: .3rem; }
code { padding: .1rem .25rem; overflow-wrap: anywhere; }
pre { padding: .9rem; overflow: auto; }

.wg-app-header { max-width: 1600px; margin: 0 auto 1.5rem; padding: 1.25rem 0 0; border-bottom: 1px solid var(--border); }
.wg-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-bottom: 1.2rem; }
.wg-brand { display: inline-flex; align-items: center; gap: .85rem; min-width: 0; }
.wg-brand-mark { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid #5acc79; border-radius: .8rem; background: linear-gradient(145deg, #1d5830, #0b2114); box-shadow: 0 0 22px #46e47825; font-weight: 900; letter-spacing: -.1em; color: #f2fff3; }
.wg-brand-mark span { color: var(--accent); }
.wg-brand-name, .wg-brand-subtitle { display: block; line-height: 1.15; }
.wg-brand-name { font-size: 1rem; font-weight: 850; letter-spacing: .13em; }
.wg-brand-subtitle { margin-top: .3rem; color: var(--muted); font-size: .8rem; letter-spacing: .045em; }
.wg-header-tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; }
.wg-utility-link { display: inline-flex; align-items: center; min-height: 2.35rem; padding: .45rem .75rem; border: 1px solid var(--border); border-radius: .55rem; background: var(--surface); color: var(--text); font-size: .82rem; font-weight: 650; text-decoration: none; }
.wg-utility-link:hover { border-color: #5acc79; background: var(--surface-raised); color: var(--accent); }
.wg-signout { margin: 0; }
.wg-top-nav { display: flex; gap: .2rem; overflow-x: auto; scrollbar-color: #476b4e transparent; padding: 0 .2rem .6rem; white-space: nowrap; }
.wg-top-nav a { display: inline-flex; align-items: center; padding: .7rem .78rem; border-radius: .5rem; color: #c5d3c8; font-size: .86rem; font-weight: 680; text-decoration: none; }
.wg-top-nav a:hover { color: #fff; background: #1a2a20; }
.wg-top-nav a[aria-current="page"] { color: #d4ffdf; background: #1b3b26; box-shadow: inset 0 -2px var(--accent), 0 0 13px #47e27619; }
.wg-main { width: min(100%, 1600px); min-height: 55vh; margin: 0 auto; overflow-x: auto; }
.wg-main > h1, .wg-main > h2 { margin: .2rem 0 1rem; }
.wg-main > section, .wg-main > article, .wg-main > main, .wg-main > form:not(.wg-store-switcher), .wg-main > table { margin-bottom: 1rem; }
.wg-main section, .wg-main article, .wg-main fieldset, .wg-login-card { border: 1px solid var(--border); border-radius: .8rem; background: linear-gradient(155deg, #142019, #101814 80%); padding: 1.1rem 1.2rem; }
.wg-main section section, .wg-main article article { background: #111c16; }
.wg-footer { max-width: 1600px; margin: 1.5rem auto 0; border-top: 1px solid var(--border); padding: 1rem 0; color: #899b8c; font-size: .78rem; }

form { margin: .8rem 0; }
label { display: inline-flex; flex-direction: column; gap: .25rem; margin: .25rem .5rem .45rem 0; color: #d8e9dc; font-size: .88rem; font-weight: 650; }
label:has(input[type="checkbox"]), label:has(input[type="radio"]) { flex-direction: row; align-items: center; }
input, select, textarea, button { max-width: 100%; font: inherit; }
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea { min-height: 2.45rem; padding: .5rem .65rem; border: 1px solid #39523f; border-radius: .48rem; background: #09120c; color: var(--text); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
input::placeholder, textarea::placeholder { color: #809485; }
textarea { width: min(100%, 55rem); min-height: 8rem; resize: vertical; }
select { text-overflow: ellipsis; }
button, a.button, .button { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.45rem; margin: .15rem .3rem .15rem 0; padding: .52rem .85rem; border: 1px solid #77e595; border-radius: .5rem; background: linear-gradient(180deg, #89f3a3, #64d983); color: #07180c; font-weight: 750; text-decoration: none; cursor: pointer; box-shadow: 0 3px 12px #5ee58412; }
button:hover:not(:disabled), a.button:hover { filter: brightness(1.08); }
button.button-secondary, button.secondary, a.button.secondary, .button-secondary { border-color: #45644d; background: #1b2d21; color: #d9f7e0; box-shadow: none; }
button.danger, .danger-button, button[type="submit"][formaction*="remove"], button[type="submit"][formaction*="delete"] { border-color: #935656; background: #442424; color: #ffe9e9; box-shadow: none; }
button:disabled, fieldset:disabled { opacity: .5; cursor: not-allowed; }
fieldset { min-width: 0; margin: 1rem 0; }
legend { padding: 0 .4rem; color: var(--accent); font-weight: 750; }
.wg-store-switcher { display: flex; align-items: end; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.25rem; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: .7rem; background: #122017; }
.wg-store-switcher label { margin: 0; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.wg-store-switcher select { min-width: min(22rem, 100%); }
.wg-store-switcher button { margin: 0; }

.notice { padding: .8rem 1rem; border-left: .2rem solid var(--warning); border-radius: .35rem; background: #382916; color: #ffe2b0; }
table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: .88rem; }
caption { padding: .7rem .6rem; color: var(--text); text-align: left; font-size: 1rem; font-weight: 750; }
th, td { padding: .7rem .65rem; border-bottom: 1px solid #2a3d30; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
thead th { background: #1a2b20; color: #daf4e0; }
tbody tr:nth-child(even) { background: #14201866; }
tbody tr:hover { background: #1a2b20; }
dl { display: grid; grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr); gap: .55rem 1rem; }
dt, dd { margin: 0; padding: .3rem 0; border-bottom: 1px solid #293c2e; }

.wg-login-page { display: grid; place-items: center; padding: 1.2rem; }
.wg-login-card { width: min(100%, 27rem); padding: 2rem; box-shadow: 0 24px 70px #0009, 0 0 45px #42d97416; }
.wg-login-card h1 { margin: 2.3rem 0 .2rem; }
.wg-login-card p { margin: 0 0 1.6rem; }
.wg-login-card form, .wg-login-card form label, .wg-login-card input, .wg-login-card button { width: 100%; }
.wg-login-card button { margin: .6rem 0 0; }

@media (max-width: 760px) {
  body.wg-shell { padding: 0 .7rem 1.5rem; }
  .wg-app-header { margin-bottom: 1rem; }
  .wg-header-row { align-items: flex-start; padding-top: .2rem; }
  .wg-header-tools { justify-content: flex-start; }
  .wg-top-nav a { padding: .65rem .6rem; }
  .wg-main section, .wg-main article { padding: .9rem; }
  .wg-store-switcher select { min-width: 0; width: 100%; }
  dl { grid-template-columns: 1fr; }
  dd { margin-bottom: .5rem; }
}

/* Shared page components. Status classes style observations; callers decide evidence and wording. */
.wg-page-header, .page-heading, .section-heading, .wg-card-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .65rem 1rem; }
.wg-page-header, .page-heading { margin: .25rem 0 1.25rem; }
.wg-page-header h1, .page-heading h2, .wg-card-heading h2, .section-heading h3 { margin: .1rem 0 .35rem; }
.wg-page-header p, .page-heading p, .wg-card-heading p, .section-heading p { margin: .2rem 0; }
.wg-eyebrow, .eyebrow { color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.muted { color: var(--muted); }
.wg-grid, .provider-grid, .connection-profile-grid, .summary-grid, .action-grid { display: grid; gap: 1rem; }
.wg-grid-stats, .summary-grid { grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); }
.wg-grid-two, .connection-profile-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.wg-grid-three, .provider-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.action-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.wg-grid > *, .provider-grid > *, .connection-profile-grid > *, .summary-grid > *, .action-grid > * { min-width: 0; }
.wg-card, .panel { margin: 0 0 1rem; border: 1px solid var(--border); border-radius: .8rem; background: linear-gradient(155deg, #142019, #101814 80%); padding: 1.15rem 1.25rem; }
.wg-card-heading { align-items: center; margin-bottom: .8rem; }
.wg-card-heading a, .section-heading a { flex: none; }
.wg-stat, .stat-card { display: flex; flex-direction: column; gap: .35rem; min-height: 7rem; }
.wg-stat-label, .stat-card > span:first-child { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.wg-stat-value, .stat-card > strong { color: var(--text); font-size: clamp(1.7rem, 2.3vw, 2.25rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.wg-stat .wg-muted { font-size: .78rem; }
.wg-status-list { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.wg-status-list p { margin: .2rem 0; }
.wg-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: .75rem; margin: .9rem 0; }
.wg-slot { display: flex; align-items: flex-start; flex-wrap: wrap; gap: .7rem; min-width: 0; padding: .9rem; border: 1px solid var(--border); border-radius: .7rem; background: #101b14; }
.wg-slot-real { border-color: #4b7656; background: #15251a; }
.wg-slot-empty { border-style: dashed; color: var(--muted); }
.wg-slot-number { display: inline-grid; place-items: center; flex: 0 0 2rem; width: 2rem; height: 2rem; border-radius: .45rem; background: #264431; color: #ddffe4; font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.wg-slot-empty .wg-slot-number { background: #28332b; color: #b1c0b3; }
.wg-slot h3 { margin: 0 0 .25rem; font-size: .95rem; overflow-wrap: anywhere; }
.wg-slot p { margin: .2rem 0; font-size: .78rem; overflow-wrap: anywhere; }
.wg-slot > .wg-status { margin-left: auto; flex: 0 1 auto; }
.wg-device-card { grid-column: span 2; }
.wg-device-main { flex: 1; min-width: 0; }
.wg-detail-grid, .detail-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .55rem .9rem; margin: .8rem 0; }
.wg-detail-grid > div, .detail-list > div { min-width: 0; padding: .55rem .65rem; border: 1px solid #2b4132; border-radius: .4rem; background: #0d1911; }
.wg-detail-grid dt, .detail-list dt { border: 0; color: var(--muted); font-size: .72rem; font-weight: 650; }
.wg-detail-grid dd, .detail-list dd { border: 0; margin: 0; color: var(--text); overflow-wrap: anywhere; font-size: .86rem; }
.wg-actions, .form-actions { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem; }
.wg-actions form { margin: .2rem 0; }
.wg-table-wrap, .table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: .65rem; }
.wg-table-wrap table, .table-scroll table { margin: 0; }
.wg-chart { display: grid; gap: .8rem; padding: .3rem 0; }
.wg-chart-row { display: grid; grid-template-columns: minmax(8rem, 11rem) minmax(3rem, 1fr) minmax(2rem, 4rem); align-items: center; gap: .65rem; }
.wg-chart-label { min-width: 0; color: #d3e2d6; font-size: .82rem; overflow-wrap: anywhere; }
.wg-chart-track { height: .7rem; overflow: hidden; border-radius: 999px; background: #27372c; }
.wg-chart-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3fae62, #8ef2a6); }
.wg-chart-progress { display: block; width: 100%; height: .7rem; border: 0; border-radius: 999px; background: #27372c; color: #70e68c; appearance: none; }
.wg-chart-progress::-webkit-progress-bar { border-radius: 999px; background: #27372c; }
.wg-chart-progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #3fae62, #8ef2a6); }
.wg-chart-progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, #3fae62, #8ef2a6); }
.wg-media-preview { display: block; max-width: 100%; max-height: 160px; margin: .75rem auto; border: 1px solid var(--border); border-radius: .5rem; background: #0b150e; object-fit: contain; }
.wg-chart-row strong { font-size: .86rem; font-variant-numeric: tabular-nums; text-align: right; }
.wg-empty, .wg-notice, .inline-note, .footnote { padding: .75rem .9rem; border: 1px solid #3b4f3e; border-radius: .55rem; background: #16231a; color: #bcd0c1; font-size: .84rem; }
.wg-notice, .inline-note { border-color: #735735; background: #2d2417; color: #ffdb9c; }
.wg-filter-form, .inline-form, .form-grid { display: flex; align-items: end; flex-wrap: wrap; gap: .6rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); align-items: end; }
.field-wide, .form-actions { grid-column: 1 / -1; }
.wg-filter-form label, .inline-form label, .form-grid label { margin: 0; }
.wg-filter-form button, .inline-form button { margin: 0 0 .05rem; }
.wg-command-panel { margin-top: .8rem; padding: .65rem .8rem; border: 1px solid #36523e; border-radius: .55rem; background: #0d1811; }
.wg-command-panel summary { color: #c9f7d3; font-weight: 750; cursor: pointer; }
.store-context { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; padding: .8rem 1rem; border: 1px solid var(--border); border-radius: .65rem; background: #132018; }
.store-context > div > strong, .store-context > div > small { display: block; }
.store-context > div > small { margin-top: .25rem; }
.table-scroll td small, .table-scroll th small { display: block; margin-top: .2rem; }
.provider-card { display: flex; flex-direction: column; gap: .4rem; }
.provider-card h3 { margin: 0; }
.provider-card .btn { align-self: flex-start; margin-top: auto; }
.provider-card-head { display: flex; align-items: center; gap: .75rem; }
.provider-icon { display: inline-grid; place-items: center; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; border: 1px solid #5aa96b; border-radius: .65rem; background: #1d3f27; color: #c8fbd3; font-size: .94rem; font-weight: 850; }
.inset-card { border: 1px solid #36513d; border-radius: .65rem; background: #0d1a12; padding: .9rem 1rem; }
.inset-card h4 { margin: .1rem 0; }
.btn, a.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.45rem; padding: .52rem .85rem; border: 1px solid #77e595; border-radius: .5rem; background: linear-gradient(180deg, #89f3a3, #64d983); color: #07180c; font-weight: 750; text-decoration: none; cursor: pointer; }
.btn-primary { border-color: #77e595; background: linear-gradient(180deg, #89f3a3, #64d983); color: #07180c; }
a.btn-secondary, button.btn-secondary, .btn.btn-secondary { border-color: #45644d; background: #1b2d21; color: #d9f7e0; box-shadow: none; }
a.btn-danger, button.btn-danger, .btn.btn-danger { border-color: #935656; background: #442424; color: #ffe9e9; box-shadow: none; }
@media (max-width: 760px) {
  .wg-device-card { grid-column: span 1; }
  .wg-slot { flex-wrap: wrap; }
  .wg-slot > .wg-status { margin-left: 0; }
  .wg-chart-row { grid-template-columns: minmax(6rem, 8rem) minmax(2rem, 1fr) minmax(2rem, 3rem); gap: .4rem; }
  .wg-grid-two, .connection-profile-grid { grid-template-columns: 1fr; }
}

/* NR14 parity palette: neutral surfaces, charcoal navigation, restrained green accents. */
body { background: var(--bg); }
body.wg-shell { color: var(--text); }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline-color: var(--accent); }
p, li, dd, small, .wg-muted, .muted { color: var(--muted); }
strong, b, th, dt { color: var(--text); }
code, pre { color: var(--accent-dark); background: #edf4ee; }
.wg-app-header { background: #1d2721; border-bottom-color: #283b2e; padding: 1rem 1.2rem 0; border-radius: 0 0 .85rem .85rem; }
.wg-brand-mark { background: #e3f3e6; color: #1d4027; border-color: #8dc79b; box-shadow: none; }
.wg-brand-mark span { color: var(--accent); }
.wg-brand-name { color: #fff; }
.wg-brand-subtitle { color: #b9c9be; }
.wg-header-tools .wg-utility-link, .wg-header-tools .button-secondary { background: #2e3a32; color: #f4f7f4; border-color: #526456; }
.wg-header-tools .wg-utility-link:hover { color: #fff; background: #38513e; }
.wg-top-nav { flex-wrap: wrap; overflow-x: visible; white-space: normal; scrollbar-color: #8bb699 transparent; }
.wg-top-nav a { color: #d5ded7; }
.wg-top-nav a:hover { background: #34483a; color: #fff; }
.wg-top-nav a[aria-current="page"] { color: #172d1d; background: #c8edcf; box-shadow: inset 0 -2px var(--accent); }
@media (max-width: 760px) {
  .wg-top-nav { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
}
.wg-footer { color: var(--muted); }
.wg-main section, .wg-main article, .wg-main fieldset, .wg-login-card, .wg-card, .panel { background: var(--surface); border-color: var(--border); box-shadow: 0 2px 14px #18261c0a; }
.wg-main section section, .wg-main article article, .inset-card, .wg-detail-grid > div, .detail-list > div { background: var(--surface-raised); border-color: var(--border); }
.wg-slot, .wg-slot-real, .wg-command-panel, .wg-store-switcher, .store-context { background: var(--surface-raised); border-color: var(--border); }
.wg-slot-empty { color: var(--muted); }
.wg-slot-number { color: #24432c; background: #e3f3e6; }
.wg-slot-empty .wg-slot-number { color: var(--muted); background: #e9edeb; }
label { color: var(--text); }
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea { background: #fff; border-color: #b9c9bd; color: var(--text); }
input::placeholder, textarea::placeholder { color: #75837a; }
button, a.button, .button, .btn, a.btn, button.btn, .btn-primary { color: #17341f; background: #d8f0dd; border-color: #a7d3b1; box-shadow: none; }
button.button-secondary, button.secondary, a.button.secondary, .button-secondary, a.btn-secondary, button.btn-secondary, .btn.btn-secondary { color: #233b29; background: #f2f6f3; border-color: #b9c9bd; }
button.danger, .danger-button, button[type="submit"][formaction*="remove"], button[type="submit"][formaction*="delete"] { color: #84272d; background: #fff0f0; border-color: #e2aaaa; }
legend, .wg-eyebrow, .eyebrow { color: var(--accent-dark); }
.wg-command-panel summary, .wg-chart-label { color: var(--text); }
.notice, .wg-notice, .inline-note { color: #734405; background: #fff7e8; border-color: #e6c896; }
.wg-empty, .footnote { color: var(--muted); background: #f7faf7; border-color: var(--border); }
thead th { color: #edf5ef; background: #29392f; }
th, td, dt, dd { border-bottom-color: var(--border); }
tbody tr:nth-child(even) { background: #f8faf8; }
tbody tr:hover { background: #eef5ef; }
/* One V3 status-light component. Legacy template class names share these same
   tokens until their markup can be converted; color reflects evidence, not mere
   presence of a saved value. The dot is decorative; the wording carries state. */
:is(.status-pill, .status-badge, .status-light, .wg-status) {
  display: inline-flex; align-items: center; gap: .48rem; max-width: 100%;
  padding: .32rem .72rem; border: 0; border-radius: 999px;
  font-size: .78rem; font-weight: 760; line-height: 1.3;
  background: #edf0ed; color: #55655b; box-shadow: none;
}
:is(.status-pill__dot, .status-dot, .wg-status-dot),
:is(.status-badge, .status-light):not(:has(:is(.status-dot, .wg-status-dot)))::before {
  content: ""; display: inline-block; width: .58rem; height: .58rem;
  flex: 0 0 .58rem; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 .2rem color-mix(in srgb, currentColor 14%, transparent);
}
/* Green requires actual relevant successful verification for the named dimension. */
:is(.status-pill--good, .status--verified, .wg-status-good, .status-badge.is-success) { color: #17683b; background: #e6f6eb; }
:is(.status-pill--warning, .status--warning, .wg-status-warning, .status-badge.is-warning) { color: #915000; background: #fff1d9; }
:is(.status-pill--bad, .status--failed, .wg-status-danger, .status-badge.is-danger) { color: #a92534; background: #ffeaed; }
:is(.status-pill--neutral, .status--idle, .wg-status-muted, .status-badge.is-idle) { color: #56645b; background: #edf0ed; }
.wg-chart-track, .wg-chart-progress, .wg-chart-progress::-webkit-progress-bar { background: #e4ebe5; }
.wg-chart-fill, .wg-chart-progress::-webkit-progress-value, .wg-chart-progress::-moz-progress-bar { background: #8ec79a; }
.wg-media-preview { background: #f0f3f1; }
.wg-tablet-icon { position: relative; display: inline-block; flex: 0 0 3rem; width: 3rem; height: 4rem; border: .22rem solid #435a49; border-radius: .45rem; background: #e8efea; box-shadow: inset 0 0 0 .18rem #fff; }
.wg-tablet-icon::after { content: ""; position: absolute; bottom: .13rem; left: calc(50% - .13rem); width: .26rem; height: .26rem; border-radius: 50%; background: #6b8571; }
.wg-tablet-icon span { position: absolute; inset: .3rem .25rem .7rem; background: linear-gradient(145deg, #fff, #d7e8d9); }
.wg-ad-preview { width: min(100%, 42rem); aspect-ratio: 3 / 2; display: grid; place-items: center; background: #edf2ee; border: 1px solid var(--border); border-radius: .7rem; overflow: hidden; }
.wg-ad-preview img, .wg-ad-preview video { display: block; width: 100%; height: 100%; object-fit: contain; }
.wg-colour-row, .wg-media-field { display: flex; align-items: center; gap: .6rem; }
.wg-colour-swatch { width: 2rem; height: 2rem; flex: 0 0 2rem; border: 1px solid #9ead9f; border-radius: .4rem; }
.wg-media-field input { flex: 1; min-width: 0; }
.wg-service-card { margin: .7rem 0; border: 1px solid var(--border); border-radius: .65rem; background: var(--surface-raised); overflow: hidden; }
.wg-service-card summary { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1rem; padding: .9rem 1rem; cursor: pointer; }
.wg-service-card summary > span:first-child { flex: 1; min-width: 12rem; }
.wg-service-card summary small { display: block; }
.wg-service-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .75rem; padding: .8rem 1rem; }
.wg-service-price { display: flex; flex-direction: column; gap: .35rem; min-width: 0; padding: .8rem; border: 1px solid var(--border); border-radius: .55rem; background: var(--surface); }
.wg-service-price .wg-price { font-size: 1.45rem; font-weight: 800; color: var(--text); }
.wg-service-card > p { margin: 0 1rem 1rem; }
@media (max-width: 760px) { .wg-app-header { padding: .8rem .7rem 0; } .wg-media-field { flex-wrap: wrap; } }
.wg-action-feedback{margin:0 0 1rem;padding:.8rem 1rem;border:1px solid #c9d8cc;border-radius:12px;background:#f0f8f1;color:#173d25;font-weight:650}
.wg-action-feedback-warning{border-color:#efd5a3;background:#fff7e6;color:#714700}
.wg-action-feedback-error{border-color:#e8b3b3;background:#fff0f0;color:#7b1f1f}
.wg-submit-feedback{display:block;margin:.5rem 0;color:#625f55;font-size:.86rem}

/* WHITE GLOVE 3.0.84 PRESENTATION ONLY — appended after the preserved stylesheet.
 * Existing grids, breakpoints, form dimensions, state logic and kiosk artwork remain authoritative.
 * Selector specificity also covers the preserved feature sheets loaded after this asset.
 */
:root {
  color-scheme: light;
  --bg: #edf1f6;
  --surface: #ffffff;
  --surface-raised: #f5f7fb;
  --border: #aeb9c8;
  --text: #202938;
  --muted: #566477;
  --accent: #0866ce;
  --accent-soft: #eaf3ff;
  --accent-dark: #064eaa;
  --warning: #e96510;
  --failure: #be2944;
  --idle: #6b7788;
  --wg-border: #aeb9c8;
  --wg-muted: #566477;
  --wg84-line-soft: #d4dce7;
  --wg84-blue: #0866ce;
  --wg84-cyan: #12a5d2;
  --wg84-good: #147947;
  --wg84-warning: #ed711b;
  --wg84-bad: #be2944;
  --wg84-shadow: 0 2px 8px rgb(26 43 70 / 5%), 0 12px 28px rgb(26 43 70 / 3%);
}
body.wg-shell {
  color: var(--text);
  background: linear-gradient(180deg, #f8faff 0, #edf1f6 36rem, #edf1f6 100%);
}
body.wg-shell .wg-app-header {
  color: var(--text);
  background: linear-gradient(145deg, #ffffff, #f2f5fa);
  border-color: #a4b1c4;
  box-shadow: inset 0 0 0 1px #bdc8d7, 0 7px 22px rgb(35 54 82 / 7%);
}
body.wg-shell .wg-header-row { border-color: var(--wg84-line-soft); }
body.wg-shell .wg-brand { position: relative; color: #263345; }
body.wg-shell .wg-brand-mark {
  color: #fff;
  background: linear-gradient(145deg, #32465e, #192434);
  border-color: #5b6d84;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 24%);
}
body.wg-shell .wg-brand-mark span { color: #b7e9ff; }
body.wg-shell :is(.wg-brand-name, .wg-brand-subtitle) { color: var(--text); }
body.wg-shell .wg-brand-subtitle { color: var(--muted); }
body.wg-shell .wg-utility-link { color: #39516d; }
body.wg-shell .wg-utility-link:hover { color: var(--accent-dark); background: #e5edf9; }
body.wg-shell .wg-top-nav { border-color: var(--wg84-line-soft); scrollbar-color: #9caec7 transparent; }
body.wg-shell .wg-top-nav a {
  color: #4b5a70;
  padding-left: .27rem;
  padding-right: .27rem;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
}
body.wg-shell .wg-top-nav a:hover { color: #074da5; background: #e6eefb; }
body.wg-shell .wg-top-nav a[aria-current="page"] {
  color: #064eaa;
  background: #e7f1ff;
  box-shadow: inset 0 0 0 1px #95b7e9, inset 0 -2px 0 #0866ce;
}
body.wg-shell .wg84-icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
body.wg-shell .wg84-nav-icon {
  flex-shrink: 0;
  width: .8rem;
  height: .8rem;
  margin-right: .22rem;
  vertical-align: -.08rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
@media (max-width: 760px) {
  body.wg-shell .wg-top-nav a { padding-left: .09rem; padding-right: .09rem; }
}
body.wg-shell .wg84-brand-lockup {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: .65rem;
  pointer-events: none;
  visibility: visible;
}
body.wg-shell .wg84-brand-lockup canvas {
  width: 64%;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}
body.wg-shell .wg84-brand-lockup :is(span, small) {
  color: #566477;
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: 0;
}
body.wg-shell .wg84-has-logo > .wg-brand-mark,
body.wg-shell .wg84-has-logo > div:not(.wg84-brand-lockup) { visibility: hidden; }
body.wg-shell .wg84-has-logo > .wg84-brand-lockup,
body.wg-shell .wg84-has-logo > .wg84-brand-lockup * { visibility: visible; }
body.wg-shell .wg-slot-real { position: relative; }
body.wg-shell .wg84-store-logo {
  position: absolute;
  top: .9rem;
  right: .9rem;
  width: 26px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
}
body.wg-shell .wg-slot-real:has(.wg84-store-logo) h3 { padding-right: 2rem; }
body.wg-shell .wg-footer { color: var(--muted); border-color: var(--wg84-line-soft); }
body.wg-shell .wg84-sound-toggle {
  color: #40526d;
  background: #f8faff;
  border-color: #aab9cc;
  box-shadow: none;
}
body.wg-shell .wg84-sound-toggle[aria-pressed="true"] { color: #0756b8; background: #eaf3ff; border-color: #7ea8e1; }

/* The existing content hierarchy and card footprints are retained. */
body.wg-shell .wg-main :is(section, article, fieldset),
body.wg-shell :is(.wg-login-card, .wg-card, .panel, .wg-slot, .wg-table-wrap, .table-scroll) {
  color: var(--text);
  border-color: var(--border);
  border-style: solid;
  background: var(--surface);
  box-shadow: var(--wg84-shadow);
}
body.wg-shell :is(.wg-main h1, .wg-main h2, .wg-main h3, .wg-main h4, .page-heading h2, legend) { color: #202d40; }
body.wg-shell :is(.inset-card, .wg-detail-grid > div, .detail-list > div) {
  background: #f6f8fc;
  border-color: #bbc6d5;
  border-style: solid;
  box-shadow: none;
}
body.wg-shell :is(.wg-slot-empty, .wg-empty-slot) { background: #f2f5fa; border-color: #aab7c9; border-style: solid; }
body.wg-shell :is(.wg-store-switcher, .wg-header-tools .wg-store-switcher) {
  color: #34465f;
  background: #f8faff;
  border-color: #b1bed0;
}
body.wg-shell :is(.wg-stat, .stat-card, .wg-main .wg-analytics-stat, .square-metric) {
  background: linear-gradient(150deg, #ffffff 45%, #eef5ff);
  border-color: #a3b3ca;
  box-shadow: inset 0 2px 0 #c9ddf8, var(--wg84-shadow);
}
body.wg-shell :is(.wg-stat-label, .stat-label, .wg-analytics-stat > span) { color: #52637c; }
body.wg-shell :is(.wg-stat-value, .stat-value, .wg-analytics-stat > strong, .wg-cost-values strong) {
  color: #183a66;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 #fff;
}
body.wg-shell .wg-stat-label:has(.wg84-kpi-icon) { position: relative; padding-right: 1.25rem; }
body.wg-shell .wg84-kpi-icon {
  position: absolute;
  top: 0;
  right: 0;
  width: .9rem;
  height: .9rem;
  fill: none;
  stroke: #6a8bb7;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
body.wg-shell :is(p, small, label, dt, dd) { text-shadow: none; }
body.wg-shell :is(.muted, .help, .hint, .wg-muted, .wg-stat-note, .wg-submit-feedback) { color: var(--muted); }
body.wg-shell a { color: #075bb9; }
body.wg-shell a:hover { color: #03428c; }
body.wg-shell :is(hr, .section-heading, .wg-card-divider) { border-color: var(--wg84-line-soft); }

/* Native controls retain their original dimensions and submission behavior. */
body.wg-shell :is(button, a.button, .button, .btn, a.btn, button.btn, .btn-primary):not(.sd-preview-card) {
  color: #fff;
  background: linear-gradient(180deg, #106fd8, #075dcc);
  border-color: #0758b9;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 1px 2px rgb(22 58 111 / 12%);
  text-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
body.wg-shell :is(button, a.button, .button, .btn, a.btn, button.btn, .btn-primary):not(.sd-preview-card):hover {
  color: #fff;
  background: linear-gradient(180deg, #086bd6, #064fae);
  border-color: #064fae;
}
body.wg-shell :is(button, a.button, .button, .btn):not(.sd-preview-card):active { box-shadow: inset 0 1px 3px rgb(0 22 69 / 22%); }
body.wg-shell :is(.button-secondary, .btn-secondary, .secondary, a.btn-secondary, button.btn-secondary, button.secondary, a.secondary, .wg84-sound-toggle) {
  color: #344b6a;
  background: linear-gradient(180deg, #fff, #eef3fa);
  border-color: #a4b4ca;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgb(26 43 70 / 5%);
}
body.wg-shell :is(.button-secondary, .btn-secondary, .secondary, a.btn-secondary, button.btn-secondary, button.secondary, a.secondary, .wg84-sound-toggle):hover {
  color: #154f96;
  background: #e8f0fc;
  border-color: #809ec6;
}
body.wg-shell :is(button.danger, .danger-button, .btn-danger, a.btn-danger, button.btn-danger, .btn.btn-danger, button[type="submit"][formaction*="remove"], button[type="submit"][formaction*="delete"]) {
  color: #fff;
  background: linear-gradient(180deg, #ca3652, #ad213f);
  border-color: #a61d3a;
}
body.wg-shell :is(button.danger, .danger-button, .btn-danger, a.btn-danger, button.btn-danger, .btn.btn-danger):hover {
  color: #fff;
  background: #a11e3a;
  border-color: #8e1731;
}
body.wg-shell :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]), select, textarea) {
  color: var(--text);
  background: #fff;
  border-color: #9eafc6;
  box-shadow: inset 0 1px 2px rgb(26 43 70 / 3%);
}
body.wg-shell :is(input, textarea)::placeholder { color: #6c7b90; opacity: 1; }
body.wg-shell :is(input[type="checkbox"], input[type="radio"], input[type="range"], .wg-volume-row input[type="range"]) { accent-color: #0866ce; }
body.wg-shell :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #0866ce;
  outline-offset: 3px;
}
body.wg-shell :is(button:disabled, input:disabled, select:disabled, textarea:disabled, .button[aria-disabled="true"], .btn[aria-disabled="true"]) {
  color: #637188 !important;
  background: #e9eef5 !important;
  border-color: #bdc7d5 !important;
  box-shadow: none !important;
  opacity: 1;
}
body.wg-shell :is(input[readonly], textarea[readonly]) { color: #4a5c76; background: #f4f7fb; }
body.wg-shell :is(code, pre) { color: #244665; background: #edf2f8; border-color: #bcc9da; text-shadow: none; }
body.wg-shell :is(th, .booking-table th) { color: #34455f; background: #e7edf6; border-color: #b3c0d2; }
body.wg-shell td { border-color: #cfd8e4; }
body.wg-shell tbody tr:nth-child(even) { background: #f6f8fc; }
body.wg-shell tbody tr:hover { background: #edf4fe; }

/* Existing semantics determine the tone; visual rules never infer readiness. */
body.wg-shell :is(.status-pill, .status-badge, .status-light, .wg-status) {
  color: #526174;
  background: #e9eef5;
}
body.wg-shell :is(.status-pill--good, .status--verified, .wg-status-good, .status-badge.is-success, .wg-status-bookable, .wg-status-verified) {
  color: #147947;
  background: #e6f5ed;
}
body.wg-shell :is(.status-pill--warning, .status--warning, .wg-status-warning, .status-badge.is-warning, .wg-status-attention) {
  color: #39475b;
  background: #f1f4f9;
}
body.wg-shell :is(.status-pill--bad, .status--failed, .wg-status-danger, .status-badge.is-danger) {
  color: #b62342;
  background: #fcebf0;
}
body.wg-shell :is(.status-pill--neutral, .status--idle, .wg-status-muted, .status-badge.is-idle, .wg-status-disabled) {
  color: #5c697c;
  background: #e9eef5;
}
body.wg-shell .wg-status-modifier { color: #0d5eac; background: #eaf3ff; }
body.wg-shell :is(.status-pill--warning, .status--warning, .wg-status-warning, .status-badge.is-warning, .wg-status-attention) :is(.status-pill__dot, .status-dot, .wg-status-dot),
body.wg-shell :is(.status-badge.is-warning, .status-light.status--warning)::before { color: #ed711b; background: #ed711b; }
body.wg-shell .wg-auto-services .wg-compact-price > .wg-status { background: transparent; }
body.wg-shell :is(.wg-notice, .notice, .inline-note, .wg-source-warning, .wg-size-caveat) {
  color: #39475b;
  background: #f8faff;
  border-color: #ed711b;
}
body.wg-shell :is(.wg-empty, .footnote) { color: #566477; background: #f2f5fa; border-color: #b4c1d2; }
body.wg-shell :is(.wg-action-feedback, .wg-action-feedback-success) { color: #146f43; background: #edf8f1; border-color: #73a58b; }
body.wg-shell :is(.wg-action-feedback-warning, .wg-result-toast-warning) { color: #3e4b5e; background: #f8faff; border-color: #ed711b; }
body.wg-shell :is(.wg-action-feedback-error, .wg-result-toast-error) { color: #ac203e; background: #fff2f5; border-color: #cf7184; }

/* Tablet instrumentation: same cards, controls, counts and grid. */
body.wg-shell .wg-main .wg-tablet-card {
  background: linear-gradient(155deg, #fff 45%, #eef3fa);
  border-color: #98aac3;
  box-shadow: inset 0 2px 0 #d6e5f8, 0 3px 10px rgb(36 56 86 / 6%);
}
body.wg-shell .wg-tablet-outline {
  position: relative;
  color: #2b4c74;
  background: linear-gradient(145deg, #fff, #dfe9f6);
  border-color: #53647a;
  box-shadow: inset 0 0 0 2px #f5f8fd, 0 1px 2px rgb(28 44 67 / 15%);
}
body.wg-shell .wg-tablet-outline::before {
  content: "";
  position: absolute;
  top: .14rem;
  left: calc(50% - .08rem);
  width: .16rem;
  height: .16rem;
  border-radius: 50%;
  background: #6d819a;
}
body.wg-shell .wg-tablet-outline::after {
  content: "";
  position: absolute;
  bottom: .17rem;
  left: 35%;
  width: 30%;
  height: .1rem;
  border-radius: 1px;
  background: #8297b2;
}
body.wg-shell .wg-tablet-flags span { color: #475c78; background: #e6edf7; box-shadow: inset 0 0 0 1px #c4d0e0; }
body.wg-shell .wg-tablet-meta { color: #5a6d86; border-color: #c3cedd; }
body.wg-shell .wg-tablet-corner { background: #7c8a9d; box-shadow: 0 0 0 3px #e7edf5; }
body.wg-shell :is(.wg-tablet-corner-good, .square-dot-good) { background: #19824e; box-shadow: 0 0 0 3px #e5f2eb; }
body.wg-shell :is(.wg-tablet-corner-warning, .square-dot-warn) { background: #ed711b; box-shadow: 0 0 0 3px #f0f3f7; }
body.wg-shell .wg-tablet-corner-danger { background: #c32d49; box-shadow: 0 0 0 3px #f9e8ed; }
body.wg-shell .square-dot-idle { background: #7c8a9d; }

/* Existing progress values, chart axes and metric meanings are unchanged. */
body.wg-shell .wg-analytics-bars {
  border-color: #a8b9ce;
  background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #e2e9f3 calc(25% - 1px), #e2e9f3 25%);
}
body.wg-shell .wg-analytics-bar { color: #52647d; }
body.wg-shell .wg-analytics-bar > strong { color: #25456e; }
body.wg-shell :is(.wg-analytics-bar > progress, .wg-chart-progress) { color: #1389dc; background: #e2eaf6; }
body.wg-shell :is(.wg-analytics-bar > progress, .wg-chart-progress)::-webkit-progress-bar { background: #e2eaf6; box-shadow: inset 0 0 0 1px #d3dfef; }
body.wg-shell :is(.wg-analytics-bar > progress, .wg-chart-progress)::-webkit-progress-value { background: linear-gradient(135deg, #0b65d2, #18b5d4); box-shadow: inset 1px 0 0 rgb(255 255 255 / 28%); }
body.wg-shell :is(.wg-analytics-bar > progress, .wg-chart-progress)::-moz-progress-bar { background: linear-gradient(135deg, #0b65d2, #18b5d4); }
body.wg-shell .wg-chart-track { background: #e2eaf6; }
body.wg-shell .wg-chart-fill { background: linear-gradient(90deg, #0b65d2, #18b5d4); }
body.wg-shell :is(.wg-cost-table tfoot th, .wg-cost-table tfoot td) { color: #273f60; background: #edf3fc; border-color: #a3b6d1; }
body.wg-shell .wg-cost-credential { border-color: #a7b8ce; background: #f8faff; }

/* Native disclosures keep their saved/default open state and keyboard behavior. */
body.wg-shell :is(.wg-collapsible, .square-action-help, .square-owner-impact) { color: var(--text); border-color: #aab9cc; background: #fff; }
body.wg-shell .wg-collapsible > summary { color: #2d4564; background: linear-gradient(100deg, #edf3fc, #f8faff); border-color: #bdcadd; }
body.wg-shell .wg-collapsible > summary:hover { background: #e8f0fc; }
body.wg-shell .wg-collapsible[open] > summary { border-color: #b3c3d9; }
body.wg-shell :is(.wg-collapse-body, .wg-collapsible .wg-collapse-body) { background: #fff; }
body.wg-shell summary::marker { color: #557ba9; }
body.wg-shell :is(.wg-pull-command, .square-view-selector, .square-mode-card, .square-readiness-cell, .square-location-tile, .square-location-form, .square-location-facts, .square-location-facts > div) {
  color: var(--text);
  background: #f8faff;
  border-color: #aebed2;
}
body.wg-shell .wg-pull-command { background: linear-gradient(130deg, #f8fbff, #edf4fe); }
body.wg-shell .wg-service-grid-head { color: #324b6d; background: #e4edf9; border-color: #b1c2d8; }
body.wg-shell .wg-service-grid-row { border-color: #d1dce9; }
body.wg-shell .wg-service-grid-row > div + div { border-color: #d1dce9; }
body.wg-shell :is(.wg-service-name small, .wg-mobile-size) { color: #566477; }
body.wg-shell .wg-service-grid-row:nth-child(odd) { background: #f5f8fd; }
body.wg-shell :is(.wg-money, .wg-option-proof summary, .wg-service-options > summary) { color: #2b537e; }
body.wg-shell .wg-issues { border-color: #ed711b; background: #f8faff; }
body.wg-shell .wg-issues > summary { color: #39475b; background: #f1f5fb; }
body.wg-shell .wg-main .square-control-center { background: #edf3fb; border-color: #a1b4cf; }
body.wg-shell :is(.square-mode-card > span, .square-metric > span, .square-readiness-cell span, .square-location-top, .square-location-status span, .square-location-facts span) { color: #586d88; }
body.wg-shell .square-location-status b { color: #354f71; }
body.wg-shell :is(.square-global-actions, .square-location-status) { border-color: #c0cfe2; }
body.wg-shell .square-merchant-mark { color: #fff; background: linear-gradient(140deg, #415974, #26364b); }
body.wg-shell .square-location-tile:hover { color: #173f71; background: #edf4ff; border-color: #7da5d9; }
body.wg-shell .square-location-tile.is-selected { border-color: #407dce; box-shadow: 0 0 0 2px #d9e9ff; }
body.wg-shell .wg-main .square-workflows article { background: #f8faff; border-color: #b2c0d3; }
body.wg-shell .square-step { color: #245a9c; background: #dfeeff; }

/* Feature-local chromes, including the unchanged historic donor templates. */
body.wg-shell .v3-services { --svc-line: #afbdd0; --svc-soft: #f3f7fc; --svc-green: #0866ce; }
body.wg-shell :is(.svc-attention, .mapping-alert) { color: #39475b; background: #f8faff; border-color: #ed711b; }
body.wg-shell :is(.svc-source-rule:nth-of-type(3), .svc-price-box[data-mode="manual"]) { border-color: #ed711b; background: #f8faff; }
body.wg-shell .mapping-row:has(input:checked) { background: #eaf3ff; border-color: #7da5d9; }
body.wg-shell .mapping-json { color: #294663; background: #edf2f8; border-color: #b4c5dc; }
body.wg-shell :is(.booking-guide, .booking-store-panel, .booking-review) { color: var(--text); background: #f5f8fd; border-color: #afc0d6; }
body.wg-shell :is(.booking-block > .section-heading, .booking-row td) { border-color: #ccd7e6; }
body.wg-shell .booking-row.is-highlighted td { background: #edf5ff; }
body.wg-shell .booking-row.is-highlighted .booking-identity { box-shadow: inset 3px 0 #4994e5; }
body.wg-shell :is(.booking-store-panel > small, .booking-identity code, .booking-size small, .booking-mapping-status > small, .booking-clear summary, .booking-review summary, .booking-empty) { color: #566b85; }
body.wg-shell .booking-clear form { color: #8f2740; background: #fff7f9; border-color: #cc8192; }
body.wg-shell .booking-review { border-color: #ed711b; background: #f8faff; }
body.wg-shell .booking-row.is-dirty [data-booking-input] { border-color: #ed711b; background: #fff; }
body.wg-shell #api-live-testing :is(.live-confirm, .live-attempts, .live-acceptance) { color: #39475b; background: #f8faff; border-color: #ed711b; }
body.wg-shell #api-live-testing :is(.live-production, .live-result.is-error) { color: #b12643; }
body.wg-shell #api-live-testing :is(button, input, select, summary):focus-visible { outline-color: #0866ce; }
body.wg-shell #api-live-testing button:disabled { color: #637188; background: #e9eef5; border-color: #bdc7d5; opacity: 1; }
body.wg-shell .sd-tablet { background: #36465d; border-color: #36465d; box-shadow: 0 10px 24px rgb(26 43 70 / 12%); }
body.wg-shell .sd-screen-heading h2 { color: inherit; }
body.wg-shell .sd-card-list li.is-selected { border-color: #4b86d2; background: #edf4ff; }
body.wg-shell :is(.sd-selected, .sd-preview-card.is-selected) { outline-color: #0866ce; }
body.wg-shell .sd-mapping-list li { color: #3b506f; background: #f4f7fc; border-color: #aebdd1; }
body.wg-shell :is(.sd-mapping-list.is-blocked, .sd-mapping-list .is-blocked) { border-color: #ed711b; }
body.wg-shell .sd-is-dirty { color: #39475b; text-decoration: underline; text-decoration-color: #ed711b; text-underline-offset: .15em; }
body.wg-shell .sd-empty-preview { border-color: #9eafc6; border-style: solid; }
body.wg-shell .wg-audio-default { background: #eef3fa; border-color: #afbdd1; }

/* Existing simulator stages and explicit write-confirmation flow keep all states. */
body.wg-shell #simulator-test { --sim-surface: #fff; --sim-soft: #f4f7fc; --sim-border: #aebdd0; color: var(--text); }
body.wg-shell #simulator-test :is(.panel, label, strong, h2, h3, h4, dt, dd) { color: var(--text); border-color: #aebdd0; }
body.wg-shell #simulator-test :is(p, small) { color: #52657f; }
body.wg-shell #simulator-test .button-secondary { color: #344b6a; background: #f1f5fc; border-color: #9cafca; }
body.wg-shell #simulator-test :is(.sim-pill-idle, .sim-pill-locked) { color: #586a83 !important; background: #e9eef5 !important; border-color: #bac7d8 !important; }
body.wg-shell #simulator-test .sim-pill-working { color: #075bb9 !important; background: #e9f3ff !important; border-color: #9bbce6 !important; }
body.wg-shell #simulator-test :is(.sim-pill-armed, .sim-pill-warning) { color: #39475b !important; background: #f1f5fa !important; border-color: #ed711b !important; }
body.wg-shell #simulator-test .sim-pill-pass { color: #167545 !important; background: #e7f5ed !important; border-color: #89b59c !important; }
body.wg-shell #simulator-test .sim-pill-fail { color: #b02541 !important; background: #fff0f4 !important; border-color: #d28898 !important; }
body.wg-shell #simulator-test .sim-stage[data-tone="idle"] .sim-stage-status { color: #5b6d86; }
body.wg-shell #simulator-test :is(.sim-stage[data-tone="stale"], .sim-stage[data-tone="changing"], .sim-stage[data-tone="warning"]) .sim-stage-status { color: #39475b; }
body.wg-shell #simulator-test .simulator-empty { color: #536780; background: #f7f9fd; border-color: #a9bad2; border-style: solid; }
body.wg-shell #simulator-test .sim-customer-message { color: #294e7c; background: #eaf3ff; border-color: #a8c3e7; }
body.wg-shell #simulator-test .sim-customer-message > strong { color: #2b5b99; }
body.wg-shell #simulator-test .sim-answer-luna { border-color: #5a97d6; background: #f8fbff; }
body.wg-shell #simulator-test .sim-answer-text { color: var(--text) !important; }
body.wg-shell #simulator-test :is(.sim-evidence pre, .sim-stage-body pre) { color: #294663; background: #edf2f8; border-color: #b4c5dc; }
body.wg-shell #simulator-test :is(.sim-discrepancy, .sim-alert) { color: #39475b; background: #f8faff; border-color: #ed711b; }
body.wg-shell #simulator-test .sim-write-dialog { color: var(--text); background: #fff; border-color: #90a5c2; box-shadow: 0 20px 80px rgb(20 38 66 / 25%); }
body.wg-shell #simulator-test .sim-write-dialog::backdrop { background: rgb(27 42 65 / 50%); }
body.wg-shell #simulator-test .sim-write-target { color: #3d5271; background: #edf3fb; border-color: #b0c1d8; }

/* Explicit presentation annotations may neutralize inaccurate legacy coloring.
 * The unchanged text and backend result remain the source of truth. */
body.wg-shell [data-wg-visual-tone="neutral"] { color: #5c697c !important; background-color: #e9eef5 !important; }
body.wg-shell [data-wg-visual-tone="neutral"] :is(.status-pill__dot, .status-dot, .wg-status-dot),
body.wg-shell .wg-tablet-corner[data-wg-visual-tone="neutral"] { color: #79879b !important; background: #79879b !important; box-shadow: 0 0 0 3px #e9eef5; animation: none !important; }
body.wg-shell :is(.status-badge, .status-light)[data-wg-visual-tone="neutral"]::before { color: #79879b !important; background: #79879b !important; animation: none !important; }
body.wg-shell :is(.status-pill--bad, .status--failed, .wg-status-danger, .status-badge.is-danger) :is(.status-pill__dot, .status-dot, .wg-status-dot) { color: #be2944; background: #be2944; }
@keyframes wg84-attention {
  0%, 100% { box-shadow: 0 0 0 2px rgb(109 127 150 / 12%); }
  50% { box-shadow: 0 0 0 4px rgb(109 127 150 / 24%); }
}
body.wg-shell :is(.status-pill--warning, .status-pill--bad, .status--warning, .status--failed, .wg-status-warning, .wg-status-danger) :is(.status-pill__dot, .status-dot, .wg-status-dot) {
  animation: wg84-attention 3s ease-in-out 2;
}
@media (prefers-reduced-motion: reduce) {
  body.wg-shell *, body.wg-shell *::before, body.wg-shell *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Sign-in uses a separate existing body class; retain its original card/form geometry. */
body.wg-login-page { color: var(--text); background: linear-gradient(145deg, #f8faff, #edf1f6); }
body.wg-login-page .wg-login-card { color: var(--text); border-color: #a4b5cc; background: #fff; box-shadow: 0 16px 50px rgb(26 43 70 / 10%); }
body.wg-login-page .wg-brand-mark { color: #fff; background: linear-gradient(145deg, #32465e, #192434); border-color: #5b6d84; }
body.wg-login-page .wg-brand-mark span { color: #b7e9ff; }
body.wg-login-page :is(.wg-brand-name, h1, label) { color: #263345; }
body.wg-login-page :is(.wg-brand-subtitle, .wg-muted) { color: #566477; }
body.wg-login-page input { color: #202938; background: #fff; border-color: #9eafc6; }
body.wg-login-page button { color: #fff; background: linear-gradient(180deg, #106fd8, #075dcc); border-color: #0758b9; }
body.wg-login-page button:hover { background: #0758b9; }
body.wg-login-page :is(input, button):focus-visible { outline: 3px solid #0866ce; outline-offset: 3px; }
/* END WHITE GLOVE 3.0.84 PRESENTATION ONLY */

/* Standalone private customer page: its existing unique form scopes this palette.
 * No visibility, customer-link storage, assent or form behavior is changed. */
body:has(#link-form) { color: var(--text); background: linear-gradient(145deg, #f8faff, #edf1f6); }
body:has(#link-form) > .panel { color: #263345; background: #fff; border-color: #a4b5cc; border-style: solid; box-shadow: var(--wg84-shadow); }
body:has(#link-form) :is(h1, h2, label, dt, dd) { color: #263345; }
body:has(#link-form) :is(p, small) { color: #52647e; }
body:has(#link-form) :is(input:not([type="checkbox"]), select) { color: #202938; background: #fff; border-color: #9eafc6; }
body:has(#link-form) input[type="checkbox"] { accent-color: #0866ce; }
body:has(#link-form) button { color: #fff; background: linear-gradient(180deg, #106fd8, #075dcc); border-color: #0758b9; }
body:has(#link-form) button:hover { background: #0758b9; }
body:has(#link-form) #decline { color: #344b6a; background: #eef3fa; border-color: #a4b4ca; }
body:has(#link-form) :is(button, input, select):focus-visible { outline: 3px solid #0866ce; outline-offset: 3px; }
body:has(#link-form) :is(button, input, select):disabled { color: #637188 !important; background: #e9eef5 !important; border-color: #bdc7d5 !important; box-shadow: none !important; opacity: 1; }
body:has(#link-form) :is(#state, #outcome) { color: #435670; }

/* V85 narrow Owner-requested presentation. No readiness is inferred from color. */
body.wg-shell .wg85-brand-stack { flex: 0 1 245px; max-width: 100%; min-width: 0; }
body.wg-shell .wg85-brand-stack .wg-brand { width: 100%; min-height: 52px; }
body.wg-shell .wg85-brand-version {
  display: block; border-top: 1px solid #68736d; margin-top: .3rem;
  padding-top: .3rem; color: #44534a; font-size: .8rem; line-height: 1.3;
  text-align: center; overflow-wrap: anywhere;
}
body.wg-shell .wg85-brand-stack .wg84-brand-lockup canvas { width: 100%; height: 52px; }
body.wg-shell .wg-top-nav a {
  flex-direction: column; justify-content: center; align-items: center;
  gap: .35rem; padding: .65rem .5rem; text-align: center;
}
body.wg-shell .wg-top-nav .wg84-nav-icon { width: 1.45rem; height: 1.45rem; margin: 0; }
body.wg-shell .wg85-nav-label { line-height: 1.25; }
/* Important palette declarations deliberately outrank later feature-local styles.
 * Preview artwork and explicitly destructive/warning controls retain their palette. */
body:is(.wg-shell, .wg-login-page) :is(button, input[type="submit"], input[type="button"], a.button, a.button-primary, a.button-secondary, .btn, .btn-primary):not(:is(.sd-preview-card, .sd-tablet *, .danger, .danger-button, .button-danger, .btn-danger, .warning, .button-warning, .btn-warning, [formaction*="remove"], [formaction*="delete"])):not(:disabled):not([aria-disabled="true"]),
body:has(#link-form) button:not(:disabled) {
  color: #193d25 !important; background: #e8f5e9 !important; border-color: #8bb797 !important;
  text-shadow: none;
}
body:is(.wg-shell, .wg-login-page) :is(button, input[type="submit"], input[type="button"], a.button, a.button-primary, a.button-secondary, .btn, .btn-primary):not(:is(.sd-preview-card, .sd-tablet *, .danger, .danger-button, .button-danger, .btn-danger, .warning, .button-warning, .btn-warning, [formaction*="remove"], [formaction*="delete"])):not(:disabled):not([aria-disabled="true"]):is(:hover, :active),
body:has(#link-form) button:not(:disabled):is(:hover, :active) { background: #d8eedb !important; color: #193d25 !important; }
body.wg-shell .wg-utility-link { background: #fff; color: #171717; border: 1px solid #000; }
body.wg-shell .wg-utility-link:is(:hover, :active) { background: #f3f5f3; color: #171717; border-color: #000; }
body.wg-shell :is(.button-primary, .button-secondary, .wg-utility-link)[aria-disabled="true"],
body.wg-login-page button:disabled { color: #637188 !important; background: #e9eef5 !important; border-color: #bdc7d5 !important; box-shadow: none !important; }
/* Unclassified feedback is neutral. Only explicit server success classes are green. */
body.wg-shell :is(.wg-action-feedback, .wg-result-toast) { color: #526174; background: #e9eef5; border-color: #aab9cc; }
body.wg-shell :is(.status-pill--good, .status--verified, .wg-status-good, .status-badge.is-success, .wg-status-bookable, .wg-status-verified, .wg-action-feedback-success, .wg-result-toast-success) {
  color: #194f2d; background: #e8f5e9; border-color: #8bb797;
}
body.wg-shell :is(.status-pill--warning, .status--warning, .wg-status-warning, .status-badge.is-warning, .wg-status-attention, .wg-action-feedback-warning, .wg-result-toast-warning) {
  color: #783c08; background: #fff1df; border-color: #cf791f;
}
body.wg-shell :is(.status-pill--bad, .status--failed, .wg-status-danger, .status-badge.is-danger, .wg-action-feedback-error, .wg-result-toast-error) {
  color: #9d213a; background: #fff0f3; border-color: #cf7184;
}
body.wg-shell #simulator-test :is(.sim-pill-armed, .sim-pill-warning) { color: #783c08 !important; background: #fff1df !important; }
/* Neutral annotation is last so stale/unknown text cannot inherit a green pill. */
body.wg-shell [data-wg-visual-tone="neutral"] { color: #526174 !important; background-color: #e9eef5 !important; border-color: #aab9cc !important; }
