:root{color-scheme:light}
.appearance-control{display:inline-flex;align-items:center;flex:none;gap:2px;padding:3px;margin:0;background:#eaf0f2;border:1px solid #ccd9de;border-radius:99px;color:#526670;vertical-align:middle}
.appearance-control .theme-choice{position:relative;display:block;width:32px;height:32px;margin:0;padding:0;cursor:pointer}
.theme-choice input[type=radio]{position:absolute;inset:0;margin:0;width:100%;height:100%;opacity:0;cursor:pointer}
.theme-choice span{display:grid;place-items:center;width:100%;height:100%;border-radius:50%;pointer-events:none;transition:background-color .16s,color .16s}
.theme-choice svg{width:18px;height:18px}
.theme-choice:hover span{background:#d3e1e6}
.theme-choice input:checked+span{background:white;color:#006781;box-shadow:0 1px 4px #18394436}
.theme-choice input:focus-visible+span{outline:2px solid #007795;outline-offset:2px}
[data-theme=dark] .appearance-control{background:#101f29;border-color:#3b525e;color:#b9c9d0}
[data-theme=dark] .theme-choice:hover span{background:#243940}
[data-theme=dark] .theme-choice input:checked+span{background:#304b57;color:#a5efff;box-shadow:inset 0 0 0 1px #56737e}
[data-theme=dark] .theme-choice input:focus-visible+span{outline-color:#8deaff}
@media(prefers-reduced-motion:reduce){.theme-choice span{transition:none}}
.login-appearance{padding:.6rem 5%;text-align:end}
@media(max-width:1250px){.header-inner{gap:.55rem}}
@media(max-width:1060px){.header-inner .appearance-control{margin-inline-start:auto}.header-inner .menu-button{order:2}}
@media(max-width:540px){.adminbar .profile{display:none}.adminbar{gap:.35rem}}
:root[data-theme=dark]{color-scheme:dark;--paper:#10191e;--bg:#10191e;--wash:#1c282e;--white:#19262c;--ink:#edf3f5;--soft:#bcc9cf;--muted:#bac9d0;--line:#3c505a;--link:#82dcec;--sea:#edba98;--surface:#19262c;--raised:#23343d;--field:#111e25}
[data-theme=dark] body{background:var(--paper);color:var(--ink)}
[data-theme=dark] :is(.site-header,.adminbar,.sidebar,.loginform,.loginlayout,.panel,.metric,.inventory-strip,.section-directory,.account-panel,.contact-panel,.contact-directory section,.feature,.empty,.article-index>a,.directory a,.part-heading,.gallery figure,.dossier .specs,.folio-body>.filters,.ops-grid a,.drawer[open],details,.scroll,.filters,.editor>.actions,#quick-nav,.info-body,.import,.modal,.notice){background:var(--surface);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.desktop-nav a,.site-header .brand small,.profile,.sidebar nav a,.sidebar nav small,.sidebar .brand,.ops-grid small,.trail,.part-finder label,.contact-field label,.directory a,.part-code,.read-label,.module small,.account-row small,.account-link,.sku,.feature footer strong,.catalog-kicker,.quiet,.account-status){color:var(--muted)}
[data-theme=dark] :is(.desktop-nav a[aria-current],.account-link,.sku,.feature footer strong,.catalog-kicker,.read-label,.directory a,.article-index a:hover,.drawer nav a[aria-current]){color:var(--link)}
[data-theme=dark] :is(input:not([type=checkbox]):not([type=radio]),select,textarea,output,.jump-trigger,kbd){background-color:var(--field);color:var(--ink);border-color:var(--line)}
[data-theme=dark] :is(.secondary,.light,.outline,.mini,.menu-button,.jump-trigger:hover,.account-status,.section-directory a,.history-row i,.edit-index,.drawer-head button,.inventory-strip a:hover,.sidebar nav a.on,.sidebar nav a:hover,.metric .icon,.contact-receipt,.login-modes,.login-modes a,.module>.icon,.edit-index a,th,.plot,.account-actions select option){background-color:var(--raised);color:var(--ink);border-color:var(--line)}
[data-theme=dark] .workspace button:not(.danger):not(.jump-trigger),[data-theme=dark] .workspace .primary{background-color:#6c422f;color:#fff}
[data-theme=dark] :is(.studio-actions a,.footer a,.button.primary,.site-header .header-cta){color:white}
[data-theme=dark] :is(.feature h3,.ops-grid a,.contact-directory h2,.account-panel h1,.account-panel h2){color:var(--ink)}
[data-theme=dark] :is(.article-copy,.feature p,.story-links p,.info-body p,.specs dd,.folio-intro,.foot-column a){color:var(--muted)}
[data-theme=dark] :focus-visible{outline:3px solid #80d9ea;outline-offset:3px}


[data-theme=dark] .loginform>div{background:var(--surface);color:var(--ink)}
[data-theme=dark] .loginform input:-webkit-autofill{-webkit-text-fill-color:var(--ink);box-shadow:inset 0 0 0 1000px var(--field)}

.page-video{display:block;width:100%;max-height:75vh;background:#10191e;border-radius:6px;margin-block:1rem;object-fit:contain}

.city-count{display:flex;align-items:center;gap:.7rem;min-width:9rem}.city-count strong{min-width:2ch}.city-count span{flex:1;height:.7rem;border-radius:1rem;background:var(--wash);overflow:hidden}.city-count i{display:block;height:100%;background:#318884;border-radius:inherit}[data-theme=dark] .city-count i{background:#75c8bf}
.font-sample{margin-block:.45rem;padding:.65rem 1rem;border:1px solid var(--line);border-radius:6px;line-height:1.6;overflow-wrap:anywhere;color:var(--ink);background:var(--wash);font-synthesis:none}
[data-type-controls] [hidden]{display:none!important}
.font-roles{display:flex;gap:.4rem;flex-wrap:wrap;margin-block:.7rem}
.font-roles button,.font-options button{background:var(--surface,#fff);color:var(--ink);border:1px solid var(--line);padding:.35rem .7rem}
.font-roles button[aria-pressed=true],.font-options button[aria-pressed=true]{border-color:var(--link);color:var(--link)}
.font-menu{min-width:0;align-self:start;margin:0;padding:.5rem}
.font-options{display:grid;max-height:10rem;overflow-y:auto;margin-top:.4rem}
.font-options button{text-align:start;border:0;border-radius:0}
.font-options button:hover,.font-options button:focus-visible{background:var(--wash);outline:2px solid var(--link);outline-offset:-2px}
.font-menu summary{cursor:pointer}

.product-photo {
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:1.85;
  overflow:hidden;
  background:#fff;
}
.part-heading .product-photo { height:clamp(180px,30vw,300px); aspect-ratio:auto; }
body .product-photo > img:first-child, body .product-photo > img.hover-photo {
  position:absolute;
  inset:0;
  display:block;
  box-sizing:border-box;
  width:100%;
  height:100%;
  padding:.5rem;
  object-fit:contain;
  object-position:center;
  background:#fff;
}
.product-photo img.hover-photo { opacity:0; transition:opacity .28s ease; }
@media (hover:hover) { .product-photo:hover .hover-photo { opacity:1; } }
a:focus-visible .product-photo .hover-photo { opacity:1; }
@media (prefers-reduced-motion:reduce) { .product-photo img.hover-photo { transition:none; } }
.official-list li,.rep-frame { display:block; margin-block:1.2rem; padding:1rem 1.25rem; border:1px solid var(--line); border-inline-start:4px solid var(--link,#34576b); border-radius:6px; background:var(--surface,#fff); color:var(--ink); overflow-wrap:anywhere; }
.official-list li+li,.rep-frame+.rep-frame { position:relative; }
.official-list li+li::before,.rep-frame+.rep-frame::before { content:""; position:absolute; inset-inline:0; top:-.65rem; border-top:1px solid var(--line); }
.official-list dd a { display:inline-block; margin-inline-end:.8rem; }
.filter-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap:.8rem; margin-block:1rem; }
.filter-fields label { display:grid; gap:.3rem; }
.filter-fields :is(input,select) { width:100%; min-width:0; padding:.45rem; border:1px solid var(--line); border-radius:4px; background:var(--field,#fff); color:var(--ink); font:inherit; }
.parent-return,.photo-viewer button,input[type=file]::file-selector-button { display:inline-block; border-radius:5px; padding:.45rem .85rem; font:inherit; }
[data-theme=dark] ::placeholder { color:#b0c1c9; opacity:1; }
[data-theme=dark] :is(.attachments a,.editor .textlink,.official-list .account-link) { color:#96e4f2; }
[data-theme=dark] .danger { color:#ffe8e5; background:#683832; }

:root:not([data-theme=dark]) button.secondary { color:#23434e; background:#edf3f5; }
:root[data-theme=dark] .skip,:root[data-theme=dark] a.button.light { color:#edf3f5; background:#23343d; }

.workspace .editor :is(.font-roles,.font-options) button { background:var(--surface,#fff); color:var(--ink); }
.workspace .editor :is(.font-roles,.font-options) button[aria-pressed=true] { background:#315964; color:#fff; }

/* Pair the foreground with the control surface, including native upload controls. */
:root {
  --control-surface: #edf3f5;
  --control-hover: #d7e5ea;
  --control-text: #183a46;
  --control-edge: #536a74;
}
:root[data-theme=dark] {
  --control-surface: #304854;
  --control-hover: #405d69;
  --control-text: #f1f7fa;
  --control-edge: #8199a4;
}
:root :is(.dialog-top button, .photo-viewer button, .parent-return),
:root input[type=file]::file-selector-button {
  background: var(--control-surface);
  color: var(--control-text);
  border: 1px solid var(--control-edge);
}
:root :is(.dialog-top button, .photo-viewer button, .parent-return):is(:hover, :focus-visible),
:root input[type=file]:is(:hover, :focus-visible)::file-selector-button {
  background: var(--control-hover);
  color: var(--control-text);
}
:root[data-theme=dark] :is(#photo-view, .tile, .catalog-band, .public dd, .hero, .journal-item:not(:first-child)) {
  background: var(--surface);
  color: var(--ink);
}
:root[data-theme=dark] #jump-results a:is(:hover, :focus-visible),
:root[data-theme=dark] .account-row:hover {
  background: var(--raised);
  color: var(--link);
}
:root[data-theme=dark] :is(.gallery figcaption a:visited, .catalog-search label) { color: var(--link); }
:root[data-theme=dark] :is(.contact-panel, .account-form) .errorlist { color: #ffb8af; }
:root[data-theme=dark] .login-modes a[aria-current] { background: #315964; color: white; }
:root[data-theme=dark] .public button[type=submit] { background-color: #70452f; color: white; }
:root:not([data-theme=dark]) input::placeholder,
:root:not([data-theme=dark]) textarea::placeholder { color: #586770; opacity: 1; }
:root:not([data-theme=dark]) .part-finder input::placeholder { color: #c0d2db; }

.dossier > .parent-return { margin-block-end: 1rem; }

.report-tabs { display:flex; flex-wrap:wrap; gap:.4rem; margin-block:1rem; }
.report-tabs a[aria-current="page"] { box-shadow:inset 0 -3px currentColor; font-weight:700; }

.rep-frame [data-clear-rep] { margin-inline-start: 1.5rem; }

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
}
.page-title-row h1 { min-width: 0; overflow-wrap: anywhere; }
.page-title-row > :last-child:not(:first-child) {
  flex: 0 0 auto;
  max-width: 46%;
  margin-block: 0;
  text-align: center;
}

body.workspace main td .order-actions,
body[data-section] main td .order-actions {justify-content:center}
