@font-face {
  font-family: "Source Code Pro";
  src: url("/fonts/source-code-pro/source-code-pro-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

html[data-wm-desktop] {
  --wm-paper: #f4f3ef;
  --wm-surface: #f8f7f4;
  --wm-ink: #0a0a0a;
  --wm-ink-rgb: 10,10,10;
  --wm-muted: #64625d;
  --wm-line: rgba(10,10,10,.16);
  --wm-soft-line: rgba(10,10,10,.08);
  --wm-primary: #0a0a0a;
  --wm-primary-rgb: 10,10,10;
  --wm-primary-text: #0a0a0a;
  --wm-primary-text-rgb: 10,10,10;
  --wm-primary-contrast: #f4f3ef;
  --wm-accent: #0a0a0a;
  --wm-accent-rgb: 10,10,10;
  --wm-accent-text: #0a0a0a;
  --wm-success: #036b4e;
  --wm-warning: #9a3412;
  --wm-warning-text: #9a3412;
  --wm-warning-rgb: 154,52,18;
  --wm-danger: #be123c;
  --wm-danger-text: #be123c;
  --wm-sell: #ad1457;
  --wm-sell-text: #ad1457;
  --wm-buy: #036b4e;
  --wm-buy-text: #036b4e;
  --wm-shadow: 0 2px 8px -4px rgba(10,10,10,.15);
  --wm-font: "Source Code Pro", Consolas, "Microsoft YaHei", sans-serif;
  color-scheme: light;
  font-family: var(--wm-font);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--wm-paper) !important;
  color: var(--wm-ink) !important;
  scrollbar-color: rgba(10,10,10,.28) transparent;
  scrollbar-width: thin;
}

html[data-wm-desktop][data-wm-font-preferences="true"] {
  --wm-font: var(--f-main);
}

/* Legacy business UI adapter: keep one authoritative Reference palette while
   existing WM components continue consuming their established --c/--g slots. */
html[data-wm-desktop] {
  --c-bg:var(--wm-paper);
  --c-bg2:var(--wm-surface);
  --c-card:var(--wm-surface);
  --c-text:var(--wm-ink);
  --c-text2:var(--wm-muted);
  --c-white:var(--wm-ink);
  --g-primary:var(--wm-primary-rgb);
  --g-mid:var(--wm-primary-rgb);
  --g-deep:var(--wm-primary-rgb);
  --g-hi:var(--wm-primary-text-rgb);
  --c-ink-bright:var(--wm-primary-text);
  --c-ink-mid:rgba(var(--wm-primary-rgb),.9);
  --c-ink-dim:rgba(var(--wm-primary-rgb),.55);
  --c-ink-faint:rgba(var(--wm-primary-rgb),.16);
  --c-border:var(--wm-line);
  --c-border-s:rgba(var(--wm-primary-rgb),.38);
  --c-sell:var(--wm-sell);
  --c-buy:var(--wm-buy);
  --c-warn:var(--wm-warning);
  --c-warn-rgb:var(--wm-warning-rgb);
  --c-header-grad:var(--wm-surface);
  --c-panel-grad:var(--wm-surface);
  --c-card-grad:var(--wm-surface);
  --c-input-bg:var(--wm-paper);
  --c-input-focus-bg:var(--wm-surface);
  --c-input-text:var(--wm-ink);
  --c-input-placeholder:var(--wm-muted);
  --c-btn-ghost-bg:transparent;
  --c-btn-ghost-border:var(--wm-line);
  --c-btn-ghost-hover:color-mix(in srgb,var(--wm-primary) 6%,var(--wm-surface));
  --c-float-grad:var(--wm-surface);
  --c-float-bg:var(--wm-surface);
  --c-sell-text:var(--wm-sell-text);
  --c-buy-text:var(--wm-buy-text);
  --c-warn-text:var(--wm-warning-text);
  --c-err-text:var(--wm-danger-text);
  --c-special-text:var(--wm-accent-text);
  --c-special:var(--wm-accent-rgb);
  --c-info:var(--wm-primary-rgb);
  --c-alert-bg:color-mix(in srgb,var(--wm-danger) 10%,var(--wm-surface));
  --c-alert-border:color-mix(in srgb,var(--wm-danger) 40%,var(--wm-line));
  --c-alert-text:var(--wm-danger-text);
  --c-nebula-tint:var(--wm-primary-rgb);
  --c-mask:rgba(10,10,10,.58);
  --c-shadow-rgb:var(--wm-ink-rgb);
  --r-sm:2px;
  --r-md:2px;
  --r-lg:2px;
  --shadow-bg:var(--wm-shadow);
  --shadow-panel:var(--wm-shadow);
  --shadow-card:var(--wm-shadow);
  --shadow-hover:0 6px 18px -8px color-mix(in srgb,var(--wm-primary) 28%,transparent);
}

html[data-wm-desktop] body {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--wm-paper) !important;
  color: var(--wm-ink) !important;
  font: 16px/1.5 system-ui, Avenir, Helvetica, Arial, sans-serif !important;
  opacity: 1 !important;
  user-select: text;
}
html[data-wm-desktop] [hidden] { display:none!important; }
html[data-wm-desktop] *, html[data-wm-desktop] *::before, html[data-wm-desktop] *::after {
  box-sizing: border-box;
}
html[data-wm-desktop] button,
html[data-wm-desktop] input,
html[data-wm-desktop] select,
html[data-wm-desktop] textarea {
  font: inherit;
}
html[data-wm-desktop] button { color: inherit; }
html[data-wm-desktop] :focus-visible {
  outline: 2px solid var(--wm-accent) !important;
  outline-offset: 2px;
  z-index: 2;
}
html[data-wm-desktop] ::selection { background: color-mix(in srgb,var(--wm-accent) 30%,transparent); }

.wm-os-shell {
  position: fixed;
  z-index: 2;
  inset: 10px;
  display: grid;
  grid-template-columns: 190px minmax(0,1fr);
  grid-template-rows: minmax(0,1fr) 5vh;
  grid-template-areas: "rail work" "task task";
  gap: 8px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: var(--wm-ink);
  background: transparent;
  isolation: isolate;
}
.wm-pointer-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.wm-background-blur {
  position:absolute;
  z-index:1;
  inset:0;
  pointer-events:none;
  backdrop-filter:blur(1px);
}
.wm-orbit {
  position: absolute;
  z-index: 2;
  right: 24px;
  top: 50%;
  translate: 0 -50%;
  width: min(40%,520px);
  aspect-ratio: 1;
  opacity: .46;
  pointer-events: none;
  filter: blur(.15px);
}
.wm-orbit svg { width:100%;height:100%;overflow:visible; }
.wm-orbit svg circle,.wm-orbit svg line,.wm-orbit svg ellipse,.wm-orbit svg path { fill:none;stroke:var(--wm-primary);stroke-width:.8;opacity:.58; }
.wm-orbit svg .wm-orbit-arc { stroke-width:1.1;opacity:.54; }
.wm-orbit svg .wm-orbit-arc-light { stroke-width:.6;opacity:.24; }
.wm-orbit svg .wm-orbit-ellipses ellipse { stroke-width:.65;opacity:.34; }
.wm-orbit svg .wm-orbit-points circle,.wm-orbit svg .wm-orbit-core circle,
.wm-orbit svg .wm-orbit-glow circle { fill:var(--wm-primary);stroke:none; }
.wm-orbit svg .wm-orbit-axis { opacity:.12; }
.wm-orbit svg .wm-orbit-direction { fill:var(--wm-primary-text);font-size:7px;opacity:.65; }
.wm-orbit svg .wm-orbit-dashed { stroke-dasharray:3 6; }
.wm-orbit svg .wm-orbit-glow { opacity:.35; }
.wm-no-webgl .wm-pointer-canvas { display:none; }

.wm-os-rail,.wm-os-topbar,.wm-os-taskbar,.wm-main-window,.wm-window {
  border: 1px solid var(--wm-line);
  background: color-mix(in srgb,var(--wm-paper) 92%,transparent);
  backdrop-filter: blur(1px);
}
.wm-os-rail {
  --wm-rail-label-font: 500 17px/1.4 var(--wm-font);
  grid-area: rail;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 15px 12px 12px;
  overflow: auto;
}
.wm-os-brand {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 9px;
  min-height: 42px;
  margin: 0 0 22px;
  color: var(--wm-ink);
  text-decoration: none;
  letter-spacing: .08em;
  font-size: 12px;
  font-weight: 600;
}
.wm-os-brand img { grid-row:1/3;object-fit:contain;filter:grayscale(1); }
.wm-os-brand span,.wm-os-brand small { min-width:0;overflow-wrap:anywhere;line-height:1.25; }
.wm-os-brand span,.wm-os-brand small { font-family:"Source Code Pro",Consolas,"Microsoft YaHei",sans-serif;white-space:nowrap;overflow-wrap:normal; }
.wm-os-brand small { color:var(--wm-muted);font-size:10px;font-weight:400;letter-spacing:.12em; }
.wm-os-nav { display:flex;flex-direction:column;gap:4px; }
.wm-os-nav-link,.wm-os-nav-button {
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:44px;
  padding:9px 14px;
  border:1px solid transparent;
  border-radius:2px;
  color:var(--wm-ink);
  background:transparent;
  opacity:.9;
  text-align:left;
  text-decoration:none;
  font:500 17px/1.4 var(--wm-font);
  letter-spacing:normal;
  cursor:pointer;
  transition:opacity .18s ease,background-color .18s ease,border-color .18s ease,transform .16s ease;
}
html[data-wm-desktop] .wm-os-nav-link,html[data-wm-desktop] .wm-os-nav-button { font:500 17px/1.4 var(--wm-font);letter-spacing:normal; }
.wm-os-nav-button { white-space:nowrap; }
.wm-os-nav-link:hover,.wm-os-nav-button:hover { opacity:1;background:color-mix(in srgb,var(--wm-primary) 5%,transparent); }
.wm-os-nav-link:active,.wm-os-nav-button:active { transform:scale(.985); }
.wm-os-nav-link.is-current { opacity:1;border-color:var(--wm-line);background:color-mix(in srgb,var(--wm-primary) 5%,transparent); }
.wm-os-nav-button[aria-expanded="true"] { opacity:1;border-color:var(--wm-line);background:color-mix(in srgb,var(--wm-primary) 5%,transparent); }
.wm-os-nav-link.is-current .wm-active-dot { width:5px;height:5px;border-radius:50%;background:var(--wm-primary); }
.wm-os-nav-link > span:not(.wm-active-dot),.wm-os-nav-button > span:not(.wm-active-dot) { flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.wm-active-dot { position:absolute;right:14px;width:5px;height:5px;border-radius:50%; }
.wm-icon { width:15px;height:15px;flex:0 0 15px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round; }
.wm-os-rail-spacer { flex:1 1 auto;min-height:14px; }
.wm-logout-button { margin-top:4px;border-top:1px solid var(--wm-line);border-radius:0;padding-top:12px; }
.wm-logout-button .wm-icon { color:var(--wm-danger-text); }
.wm-external-nav { display:grid;gap:3px;margin:12px 0 2px;padding-top:10px;border-top:1px solid var(--wm-soft-line); }
.wm-external-nav a { min-height:44px;font:500 17px/1.4 var(--wm-font); }
.wm-os-rail button,.wm-os-rail a { -webkit-tap-highlight-color:transparent; }

.wm-os-workbench { grid-column:2;grid-row:1;display:grid;grid-template-rows:4vh minmax(0,1fr);gap:8px;min-width:0;min-height:0; }
.wm-os-topbar { position:relative;z-index:40;display:flex;align-items:center;justify-content:space-between;min-width:0;padding:0 12px; }
.wm-topbar-left,.wm-topbar-tools { display:flex;align-items:center;gap:10px;min-width:0; }
.wm-topbar-tools { gap:16px; }
.wm-topbar-popover-anchor { position:relative;display:flex;align-items:center;min-width:0; }
.wm-breadcrumb { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;line-height:24px;opacity:.7; }
.wm-mobile-menu { display:none; }
html[data-wm-desktop] .wm-clock-button { display:flex;align-items:center;gap:10px;min-height:24px;padding:0;border:0;background:transparent;color:var(--wm-ink);font:500 16px/24px var(--wm-font);cursor:pointer;transition:transform .16s ease,background-color .16s ease; }
html[data-wm-desktop] .wm-calendar-button { display:flex;align-items:center;justify-content:center;gap:7px;min-width:30px;min-height:24px;padding:0;border:0;border-left:1px solid var(--wm-soft-line);background:transparent;color:var(--wm-ink);font:500 16px/24px var(--wm-font);cursor:pointer;transition:transform .16s ease,background-color .16s ease; }
.wm-clock-button:hover,.wm-calendar-button:hover { background:transparent;color:var(--wm-primary-text); }
.wm-clock-button:active,.wm-calendar-button:active,.wm-mobile-menu:active { transform:scale(.96); }
.wm-calendar-button .wm-icon { width:14px;height:14px; }
.wm-clock-live { font-size:16px;line-height:24px;font-variant-numeric:tabular-nums;letter-spacing:normal; }
.wm-clock-date { color:var(--wm-ink);font-size:16px;line-height:24px; }
.wm-os-workspace { position:relative;min-width:0;min-height:0;overflow:hidden;overflow:clip;border:1px solid var(--wm-line); }
.wm-main-window {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:0;
  overflow:hidden;
  overflow:clip;
  box-shadow:var(--wm-shadow);
  transition:box-shadow .2s cubic-bezier(0,0,.2,1);
  background:transparent;
}
.wm-main-window.is-focused,.wm-window.is-focused { border-color:var(--wm-primary);box-shadow:0 12px 32px -8px color-mix(in srgb,var(--wm-primary) 35%,transparent); }
.wm-window-titlebar {
  position:relative;
  z-index:4;
  display:grid;
  grid-template-columns:minmax(92px,max-content) minmax(0,1fr) 76px;
  align-items:center;
  flex:0 0 30px;
  height:30px;
  padding:0 7px;
  border-bottom:1px solid var(--wm-line);
  background:color-mix(in srgb,var(--wm-paper) 97%,transparent);
  cursor:grab;
  touch-action:none;
  user-select:none;
}
.wm-window.is-wm-dragging .wm-window-titlebar { cursor:grabbing; }
.wm-window-caption { overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;font-size:12px;letter-spacing:.08em; }
.wm-window-mark { overflow:hidden;color:var(--wm-muted);text-align:right;text-overflow:ellipsis;white-space:nowrap;font-size:10px; }
.wm-window-controls { display:flex;align-items:center;gap:0;flex:0 0 auto; }
.wm-window-control {
  position:relative;
  display:grid;
  place-items:center;
  flex:0 0 24px;
  width:24px;
  height:26px;
  min-width:24px;
  min-height:26px;
  aspect-ratio:1;
  box-sizing:border-box;
  padding:0;
  border:0;
  border-radius:0;
  color:transparent;
  background:transparent!important;
  cursor:pointer;
  transition:filter .15s ease,transform .15s ease;
}
.wm-window-control::before { content:"";position:absolute;inset:0;width:16px;height:16px;min-width:16px;min-height:16px;margin:auto;aspect-ratio:1/1;box-sizing:border-box;border-radius:50%;clip-path:circle(50% at 50% 50%);background:var(--wm-control-color);transform:none; }
.wm-window-control:hover { filter:brightness(.9);transform:none; }
.wm-window-control .wm-icon { position:relative;z-index:1;width:9px;height:9px;opacity:0;stroke:#101010;stroke-width:2.4; }
.wm-window-control:hover .wm-icon,.wm-window-control:focus-visible .wm-icon { opacity:1; }
.wm-window-control:active { transform:scale(.94); }
.wm-window-close { --wm-control-color:#ff5f57; }
.wm-window-minimize { --wm-control-color:#febc2e; }
.wm-window-maximize { --wm-control-color:#28c840; }
.wm-main-content { position:relative;z-index:3;flex:1 1 auto;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;isolation:isolate; }
.wm-main-content > .bw-wrap { position:relative;z-index:1;width:100%!important;max-width:none!important;min-height:100%;margin:0!important;padding:14px!important;opacity:1!important; }
.wm-existing-app { display:block; }
.wm-existing-app > * { max-width:100%; }
.wm-os-taskbar { grid-area:task;position:relative;z-index:80;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;min-height:0;padding:4px 8px; }
.wm-task-list { display:flex;align-items:center;gap:5px;flex:1 0 96px;min-width:0;overflow:auto; }
.wm-task-chip { display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:28px;padding:4px 8px;border:1px solid var(--wm-line);background:transparent;color:var(--wm-ink);font-size:13px;text-align:center;cursor:pointer;transition:background-color .16s ease,color .16s ease,transform .16s ease; }
.wm-task-chip:hover { background:var(--wm-primary);color:var(--wm-primary-contrast); }
.wm-task-chip:active { transform:scale(.985); }
.wm-command-form { position:relative;display:flex;align-items:center;flex:0 1 360px;min-width:160px; }
.wm-command { width:100%;height:30px;padding:5px 8px;border:1px solid var(--wm-line);border-radius:0;background:transparent;color:var(--wm-ink);font:13px var(--wm-font); }
.wm-command::placeholder { color:var(--wm-muted);opacity:.75; }
.wm-command-status { position:absolute;z-index:81;right:5px;bottom:calc(100% + 6px);width:min(420px,calc(100vw - 24px));max-width:calc(100vw - 24px);padding:7px 10px;border:1px solid var(--wm-line);background:var(--wm-paper);box-shadow:0 8px 20px -8px rgba(10,10,10,.2);color:var(--wm-ink);font-size:12px;line-height:1.45;pointer-events:none; }
.wm-command-status:empty { display:none; }
.wm-command-suggestions { position:absolute;z-index:80;right:0;bottom:calc(100% + 4px);display:grid;width:min(360px,calc(100vw - 24px));max-height:50vh;overflow:auto;border:1px solid var(--wm-line);background:var(--wm-paper);box-shadow:0 8px 20px -8px rgba(10,10,10,.2); }
.wm-command-suggestions[hidden] { display:none; }
.wm-command-option { display:flex;justify-content:space-between;gap:12px;min-height:36px;padding:8px 10px;border:0;border-bottom:1px solid var(--wm-soft-line);background:transparent;color:var(--wm-ink);text-align:left;cursor:pointer;transition:background-color .16s ease,transform .16s ease; }
.wm-command-option--search { align-items:flex-start;flex-direction:column;justify-content:center;gap:2px;min-height:50px; }
.wm-command-option--search > span,.wm-command-option--search > small { max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.wm-command-option--search > span { font-size:13px;font-weight:600; }
.wm-command-option--search > small { align-self:flex-start; }
.wm-command-option:last-child { border-bottom:0; }
.wm-command-option:hover,.wm-command-option[aria-selected="true"] { background:color-mix(in srgb,var(--wm-primary) 8%,transparent); }
.wm-command-option:active { transform:scale(.985); }
.wm-command-option small { color:var(--wm-muted); }
.wm-clear-button { color:var(--wm-muted); }
.wm-clear-button:hover { color:var(--wm-ink); }
.wm-legal-strip { display:flex;align-items:center;gap:14px;min-width:0;max-width:55%;overflow:hidden;color:var(--wm-muted);font-size:10px;white-space:nowrap; }
.wm-legal-strip .bw-footer-sep { display:none; }
.wm-legal-strip a { color:inherit;text-decoration:none;text-underline-offset:2px;transition:color .16s ease,text-decoration-color .16s ease; }
.wm-legal-strip a:hover,.wm-legal-strip a:focus-visible { color:var(--wm-primary-text);text-decoration:underline;text-decoration-color:currentColor; }
.wm-legal-strip a:focus-visible { border-radius:2px;outline:2px solid var(--wm-primary);outline-offset:2px; }
.wm-legal-strip > p {
  flex:0 1 auto;min-width:0;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:10px;line-height:1.3;letter-spacing:0;
}
.wm-legal-strip > p + p { display:none; }
.wm-legal-strip > .bw-beian-row {
  display:flex;flex:0 0 auto;align-items:center;justify-content:flex-start;flex-wrap:nowrap;gap:6px;min-width:0;margin:0;
}
.wm-legal-strip .bw-beian-row a {
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:10px;line-height:1.3;letter-spacing:0;
}
.wm-legal-strip .bw-beian-row a:first-child { flex:0 0 auto; }
.wm-legal-strip .bw-beian-row a:last-child { flex:0 1 auto; }
.wm-legal-strip .bw-beian-icon { width:14px;height:14px;object-fit:contain; }
.wm-legacy-hidden { display:none!important; }
.wm-resize-handle { position:absolute;right:1px;bottom:1px;z-index:4;width:18px;height:18px;padding:0;border:0;background:transparent;cursor:nwse-resize;touch-action:none; }
.wm-resize-handle::after { content:"";position:absolute;right:4px;bottom:4px;width:7px;height:7px;border-right:1px solid var(--wm-muted);border-bottom:1px solid var(--wm-muted);opacity:.65; }
.wm-main-window > .wm-resize-handle { display:none; }
.wm-is-maximized { max-height:none!important; }
.wm-window.wm-is-dragging,.wm-window.wm-is-resizing { transition:none!important; }
.wm-window.wm-is-keyboard-moving,.wm-window.wm-is-keyboard-resizing { outline:2px dashed var(--wm-accent);outline-offset:3px;transition:none!important; }
.wm-window.wm-is-keyboard-moving .wm-window-titlebar { cursor:move; }
.wm-window.wm-is-keyboard-resizing .wm-resize-handle::after { width:9px;height:9px;opacity:1; }
.wm-window.wm-is-resizing { cursor:nwse-resize; }
.wm-visually-hidden { position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important; }
.wm-window:not(.wm-main-window) { position:fixed;z-index:30;display:flex;flex-direction:column;width:min(520px,calc(100vw - 24px));max-height:min(76vh,760px);overflow:auto;resize:none;border:1px solid var(--wm-line);background:var(--wm-paper);box-shadow:var(--wm-shadow);transition:left .2s cubic-bezier(0,0,.2,1),top .2s cubic-bezier(0,0,.2,1),width .2s cubic-bezier(0,0,.2,1),height .2s cubic-bezier(0,0,.2,1),box-shadow .2s cubic-bezier(0,0,.2,1); }
.wm-window:not(.wm-main-window).is-focused { border-color:var(--wm-primary);box-shadow:0 12px 32px -8px color-mix(in srgb,var(--wm-primary) 35%,transparent); }
.wm-dialog-window { top:18vh;left:calc(50% - 250px); }
#wm-launcher-window.wm-dialog-window { left:50%;width:min(660px,calc(100vw - 24px));translate:-50% 0; }
.wm-dialog-enter { opacity:0;transform:scale(.85);transform-origin:50% 100%; }
.wm-window[hidden] { display:none!important; }
.wm-is-minimized { visibility:hidden!important;pointer-events:none!important; }
.wm-window:not(.wm-main-window) .wm-window-titlebar { position:sticky;top:0;flex:0 0 30px; }
.wm-main-window .bw-profile-card[data-wm-overview="true"] { position:relative; }
.wm-mobile-veil { display:none; }
.wm-login-rail .wm-os-brand { margin-bottom:26px; }
.wm-login-rail .wm-os-nav { padding-top:12px;border-top:1px solid var(--wm-soft-line); }
.wm-login-outer { position:relative;z-index:1;width:min(1120px,100%);min-height:clamp(460px,68vh,610px);margin:auto;display:grid;grid-template-columns:minmax(270px,.88fr) minmax(0,1.12fr);grid-template-rows:minmax(0,1fr);justify-items:stretch;align-items:stretch;gap:0;padding:0;overflow:hidden;border:1px solid var(--wm-line);border-radius:2px;background:var(--wm-surface);box-shadow:var(--wm-shadow); }
.wm-login-intro { grid-column:1;align-self:stretch;display:flex;flex-direction:column;justify-content:center;width:auto;padding:clamp(32px,4vw,56px);border-right:1px solid var(--wm-line);background:var(--wm-paper);color:var(--wm-ink);text-align:left; }
.wm-login-eyebrow { color:var(--wm-muted);font-size:10px;letter-spacing:.16em;line-height:1.5; }
.wm-login-intro h1 { max-width:14ch;margin:12px 0 14px;font-size:clamp(29px,3.1vw,42px);font-weight:500;line-height:1.16;letter-spacing:-.035em; }
.wm-login-intro p { max-width:34ch;margin:0;color:var(--wm-muted);font-size:13px;line-height:1.8; }
.wm-type-cursor { margin-left:.06em;color:var(--wm-primary-text);animation:wm-cursor-blink 1s steps(2,start) infinite; }
@keyframes wm-cursor-blink { to { visibility:hidden; } }
.wm-login-tags { display:flex;flex-wrap:wrap;gap:8px;margin-top:26px; }
.wm-login-tags a { box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px 14px;border:1px solid var(--wm-line);color:var(--wm-muted);font-size:13px;line-height:1.35;letter-spacing:.02em;text-align:center;text-decoration:none;transition:background-color .18s ease,border-color .18s ease,color .18s ease; }
@media (pointer:coarse) { .wm-login-tags a { min-height:48px; } }
.wm-login-tags a:hover { border-color:var(--wm-primary);background:var(--wm-primary);color:var(--wm-primary-contrast); }
.wm-login-tags a:focus-visible { outline:2px solid var(--wm-accent);outline-offset:2px; }
.wm-login-outer .bw-login-page { position:relative!important;inset:auto!important;z-index:auto!important;display:flex!important;align-items:stretch;justify-content:stretch;grid-column:2;width:100%;height:100%;min-height:100%;margin:0!important;padding:0!important;overflow:visible!important;background:transparent!important; }
.wm-login-outer .bw-login-card { position:relative;display:flex;flex-direction:column;width:100%;min-height:100%;margin:0!important;padding:0!important;background:var(--wm-surface)!important;border:0!important;border-radius:0!important;box-shadow:none!important;animation:none!important;opacity:1!important;transform:none!important; }
.wm-login-outer .bw-login-card::before,.wm-login-outer .bw-login-card::after,.wm-login-outer .bw-login-card .bw-c,
.wm-login-outer .bw-login-card > canvas { display:none!important; }
.wm-login-outer .bw-login-title,.wm-login-outer .bw-login-sub,.wm-login-outer label,.wm-login-outer p,
.wm-login-outer .bw-login-alt,.wm-login-outer .bw-login-footer { color:var(--wm-ink)!important;text-shadow:none!important; }
.wm-login-outer .bw-login-hero { display:flex;align-items:center;justify-content:flex-start;gap:16px;padding:28px clamp(24px,3vw,38px)!important;background:var(--wm-surface)!important;border-bottom:1px solid var(--wm-soft-line)!important;text-align:left; }
.wm-login-outer .bw-login-body { display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;width:100%;padding:clamp(24px,3vw,40px)!important;background:var(--wm-surface)!important; }
.wm-login-outer .bw-login-title { font-family:var(--wm-font)!important;font-size:17px!important;font-weight:600!important;letter-spacing:.1em!important; }
.wm-login-outer .bw-login-sub { margin-top:4px;color:var(--wm-muted)!important;font-size:10px!important;letter-spacing:.06em!important; }
.wm-login-outer .bw-login-logo-img { flex:0 0 auto;width:48px;height:48px;margin:0!important;filter:grayscale(1); }
.wm-login-outer .bw-field { width:100%;margin-bottom:16px; }
.wm-login-outer .bw-field label { display:block;margin:0 0 7px;color:var(--wm-muted)!important;font-size:11px;font-weight:600;letter-spacing:.02em;text-transform:none; }
.wm-login-outer .bw-field input { box-sizing:border-box;width:100%;min-height:52px;padding:12px 14px;border:1px solid var(--wm-line);border-radius:2px;background:var(--wm-paper);color:var(--wm-ink);font:13px/1.45 var(--wm-font); }
.wm-login-outer .bw-field input::placeholder { color:var(--wm-muted);opacity:.78; }
.wm-login-outer .bw-field input:focus-visible { outline:2px solid var(--wm-accent);outline-offset:2px;border-color:var(--wm-primary); }
.wm-login-outer .bw-field input[aria-invalid="true"],.wm-login-outer .bw-field input.bw-field-invalid,.wm-login-outer .bw-login-card.bw-validation-attempted .bw-field input:invalid { border-color:var(--wm-danger-text)!important;box-shadow:inset 3px 0 0 var(--wm-danger-text)!important; }
.wm-login-outer .bw-field input[aria-invalid="true"]:focus,.wm-login-outer .bw-field input.bw-field-invalid:focus,.wm-login-outer .bw-login-card.bw-validation-attempted .bw-field input:invalid:focus { outline:2px solid var(--wm-danger-text)!important;outline-offset:2px; }
.wm-login-outer .bw-login-body>.bw-login-err { grid-column:1/-1;margin:0 0 12px; }
.wm-login-outer .bw-field>.bw-login-err { margin:0 0 10px; }
.wm-login-outer .bw-password-control { position:relative;width:100%; }
.wm-login-outer .bw-password-control input { padding-right:max(78px,calc(2.4em + 20px)); }
.wm-login-outer .bw-password-toggle { position:absolute;top:50%;right:4px;display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:48px;padding:8px;border:0;background:transparent;color:var(--wm-muted);font:11px/1.2 var(--wm-font);cursor:pointer;transform:translateY(-50%); }
.wm-login-outer .bw-password-toggle:hover { color:var(--wm-ink);background:var(--wm-paper); }
.wm-login-outer .bw-password-toggle:focus-visible { outline:2px solid var(--wm-accent);outline-offset:1px; }
html[data-wm-desktop] .wm-login-outer .bw-password-toggle { box-sizing:border-box;width:max-content;height:44px;min-width:48px!important;min-height:44px!important;padding:0 12px!important; }
@media (pointer:coarse) { html[data-wm-desktop] .wm-login-outer .bw-password-toggle { height:48px;min-height:48px!important; } }
.wm-login-outer .bw-login-btn { display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:52px;margin-top:6px;padding:12px 16px;text-align:center; }
.wm-login-outer .bw-login-btn::before { display:none; }
.wm-login-outer .bw-login-btn:focus-visible { outline:2px solid var(--wm-accent);outline-offset:3px; }
.wm-login-outer .bw-login-alt-link,.wm-login-outer .bw-ext-link { color:var(--wm-primary-text)!important;text-decoration:underline;text-underline-offset:2px; }
.wm-login-outer .bw-jwt-panel,.wm-login-outer .bw-jwt-details,.wm-login-outer .bw-jwt-hint { background:var(--wm-surface)!important;color:var(--wm-ink)!important;border-color:var(--wm-line)!important; }
.wm-login-outer .bw-login-footer { margin-top:20px!important;padding-top:16px!important;border-top:1px solid var(--wm-soft-line)!important;color:var(--wm-muted)!important;font-size:11px!important;line-height:1.7;text-align:left!important; }
.wm-login-outer .bw-login-footer b { color:var(--wm-muted)!important; }
.wm-login-outer .bw-jwt-panel { margin-top:18px;padding-top:18px;border-top:1px solid var(--wm-soft-line); }
.wm-login-outer .bw-jwt-quick { color:var(--wm-muted)!important;font-size:12px;line-height:1.75; }
.wm-login-outer .bw-jwt-details summary { min-height:44px;padding:12px 0; }
.wm-login-outer .bw-login-err { box-sizing:border-box;width:100%;padding:12px 14px;border-color:var(--wm-danger-text);background:color-mix(in srgb,var(--wm-danger) 7%,var(--wm-surface));color:var(--wm-danger-text);font-size:12px;line-height:1.6; }
.wm-login-outer .bw-login-btn { min-height:44px;background:var(--wm-primary)!important;color:var(--wm-primary-contrast)!important;border:1px solid var(--wm-primary)!important;border-radius:0!important;box-shadow:none!important; }
.wm-login-outer .bw-login-btn:hover { border-color:var(--wm-primary)!important;background:var(--wm-surface)!important;color:var(--wm-ink)!important;filter:none; }

html[data-wm-desktop] .wm-existing-app,
html[data-wm-desktop] .wm-existing-app .bw-tr-panel,
html[data-wm-desktop] .wm-existing-app .bw-panel,
html[data-wm-desktop] .wm-existing-app .bw-auc-panel,
html[data-wm-desktop] .wm-existing-app .bw-quant-panel,
html[data-wm-desktop] .wm-existing-app .bw-profile-card,
html[data-wm-desktop] .wm-existing-app .bw-order-card,
html[data-wm-desktop] .wm-existing-app .bw-auction-card,
html[data-wm-desktop] .wm-existing-app .bw-inv-card {
  border-radius:2px!important;
  background:color-mix(in srgb,var(--wm-surface) 28%,transparent)!important;
  color:var(--wm-ink)!important;
  box-shadow:none!important;
}
html[data-wm-desktop] .wm-existing-app .bw-tr-panel,
html[data-wm-desktop] .wm-existing-app .bw-profile-card { border:1px solid var(--wm-line)!important; }
html[data-wm-desktop] .wm-existing-app .bw-batch-controls { align-items:start; }
html[data-wm-desktop] .wm-existing-app .bw-batch-rounding { align-self:start; }
@media (max-width:700px), (pointer:coarse) {
  html[data-wm-desktop] .wm-existing-app .bw-batch-panel button,
  html[data-wm-desktop] .wm-existing-app .bw-batch-panel input:not([type="checkbox"]):not([type="radio"]),
  html[data-wm-desktop] .wm-existing-app .bw-batch-panel select { min-height:48px!important;font-size:16px!important; }
  html[data-wm-desktop] .wm-existing-app .bw-batch-segment,
  html[data-wm-desktop] .wm-existing-app .bw-batch-rounding .bw-round-pills { gap:.5rem; }
}
@media (max-width:400px) {
  html[data-wm-desktop] .wm-existing-app .bw-batch-rounding .bw-round-pill { padding-inline:12px!important;white-space:nowrap; }
}
@media (max-width:560px) {
  html[data-wm-desktop] .wm-existing-app .bw-batch-segment { display:grid;width:100%;grid-template-columns:repeat(3,minmax(0,1fr));margin-left:0; }
  html[data-wm-desktop] .wm-existing-app .bw-batch-segment-label { grid-column:1/-1;margin-right:0; }
  html[data-wm-desktop] .wm-existing-app .bw-batch-segment :is(.bw-batch-scope-pill,.bw-batch-type-pill) { width:100%;min-width:0;padding-inline:12px;white-space:nowrap; }
}
html[data-wm-desktop] .wm-existing-app input:not([type="checkbox"]):not([type="radio"]),
html[data-wm-desktop] .wm-existing-app select,
html[data-wm-desktop] .wm-window input:not([type="checkbox"]):not([type="radio"]),
html[data-wm-desktop] .wm-window select,
html[data-wm-desktop] .wm-window textarea {
  color:var(--wm-ink)!important;background:var(--wm-paper)!important;border:1px solid var(--wm-line)!important;border-radius:0!important;box-shadow:none!important;
}
html[data-wm-desktop] .wm-existing-app input::placeholder,
html[data-wm-desktop] .wm-window input::placeholder,
html[data-wm-desktop] .wm-window textarea::placeholder { color:var(--wm-muted)!important;opacity:.8; }
/* r700: keep business-app button labels centered inside the desktop touch geometry. */
html[data-wm-desktop] .wm-existing-app button:not(.bw-order-detail-toggle) {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
html[data-wm-desktop] .wm-existing-app button:not(:where(.bw-order-detail-toggle)),
html[data-wm-desktop] .wm-window :where(button:not(.wm-window-control):not(.wm-resize-handle):not(.wm-launcher-card):not(.wm-calendar-day):not(.wm-calendar-step):not(.bw-order-detail-toggle)) {
  min-height:36px;
  border:1px solid var(--wm-line)!important;
  border-radius:2px!important;
  background:transparent!important;
  color:var(--wm-ink)!important;
  box-shadow:none!important;
  text-shadow:none!important;
  font-family:var(--wm-font)!important;
  transition:color .16s ease,background-color .16s ease,border-color .16s ease,opacity .16s ease,transform .16s ease;
}
/* Keep order editing and status recovery actions at a usable desktop target size. */
html[data-wm-desktop] .wm-existing-app :is(.bw-drawer-btn,.bw-edit-orderbook-refresh,.bw-status-read-retry) {
  min-height:44px;
}
html[data-wm-desktop] .wm-existing-app :is(.bw-edit-orderbook-refresh,.bw-status-read-retry) {
  min-width:44px;
  padding:8px 12px;
  line-height:1.2;
  text-align:center;
}
/* r700: the desktop shell uses a 12px rem base; keep legacy action labels readable. */
html[data-wm-desktop] .wm-existing-app :is(
  .bw-confirm-btn,
  .bw-status-btn,
  .bw-dur-btn,
  .bw-maintain-toggle,
  .bw-type-pill,
  .bw-vis-f-btn,
  .bw-special-f-btn,
  .bw-alert-f-btn,
  .bw-extra-f-btn,
  .bw-vis-all-btn,
  .bw-create-btn,
  .bw-batch-scope-pill,
  .bw-batch-type-pill,
  .bw-batch-quiet-btn,
  .bw-batch-btn,
  .bw-round-pill,
  .bw-batch-abort-btn,
  .bw-batch-fail-btn,
  .bw-act-btn,
  .bw-vis-pill,
  .bw-drawer-btn,
  .bw-tr-go-btn,
  .bw-inv-action-btn,
  .bw-order-load-retry,
  .bw-alert-fab,
  .bw-edit-orderbook-refresh,
  .bw-auc-search-btn,
  .bw-auc-sort-btn,
  .bw-auc-online-pill,
  .bw-auc-mode-btn,
  .bw-auc-mgmt-btn,
  .bw-auc-bid-btn,
  .bw-modal-ocr-toggle,
  .bw-drawer-logout-btn,
  .bw-quant-mode-btn,
  .bw-quant-toggle,
  .bw-quant-exec-btn,
  .bw-type-dd-btn,
  .bw-nav-link,
  .bw-filter-btn
) { font-size:13px!important; }
html[data-wm-desktop] .wm-existing-app #bw-logout-btn { font-size:13px!important; }
html[data-wm-desktop] .wm-existing-app button:hover,
html[data-wm-desktop] .wm-window button:not(.wm-window-control):hover { filter:brightness(.96); }
html[data-wm-desktop] .wm-existing-app button:disabled,
html[data-wm-desktop] .wm-window button:disabled { opacity:.46!important;cursor:not-allowed!important; }
html[data-wm-desktop] .wm-existing-app button:active:not(:disabled),
html[data-wm-desktop] .wm-window button:not(.wm-window-control):not(.wm-resize-handle):active:not(:disabled) { transform:scale(.985); }
/* Keep the overlaid password control centered during the shared press-scale feedback. */
html[data-wm-desktop] .wm-window button.bw-password-toggle:not(.wm-window-control):not(.wm-resize-handle):active:not(:disabled) { transform:translateY(-50%) scale(.985); }
html[data-wm-desktop] .wm-existing-app button[aria-pressed="true"],
html[data-wm-desktop] .wm-existing-app button.is-active,
html[data-wm-desktop] .wm-existing-app button.active,
html[data-wm-desktop] .wm-window :where(button[aria-pressed="true"]:not(.wm-calendar-day)) {
  border-color:var(--wm-primary)!important;background:var(--wm-primary)!important;color:var(--wm-primary-contrast)!important;
}
html[data-wm-desktop] .wm-existing-app .bw-batch-btn,
html[data-wm-desktop] .wm-existing-app .bw-batch-btn-accent,
html[data-wm-desktop] .wm-existing-app .bw-create-btn,
html[data-wm-desktop] .wm-existing-app .bw-auc-search-btn,
html[data-wm-desktop] .wm-existing-app .bw-auc-create-primary,
html[data-wm-desktop] .wm-existing-app .bw-drawer-btn-update,
html[data-wm-desktop] .wm-existing-app .bw-quant-exec-btn:not(.is-danger),
html[data-wm-desktop] .wm-existing-app .bw-inv-action-btn,
html[data-wm-desktop] .wm-window .bw-auc-create-primary,
html[data-wm-desktop] .wm-window .bw-drawer-btn-update {
  border-color:var(--wm-primary)!important;background:var(--wm-primary)!important;color:var(--wm-primary-contrast)!important;
}
html[data-wm-desktop] .wm-existing-app .bw-act-del,
html[data-wm-desktop] .wm-existing-app .bw-drawer-btn-delete,
html[data-wm-desktop] .wm-existing-app .bw-quant-exec-btn.is-danger,
html[data-wm-desktop] .wm-existing-app .bw-batch-abort-btn,
html[data-wm-desktop] .wm-window .bw-drawer-btn-delete,
html[data-wm-desktop] .wm-window .bw-drawer-confirm-del {
  border-color:var(--wm-danger)!important;background:var(--wm-danger)!important;color:#fff!important;
}
html[data-wm-desktop] .wm-existing-app .bw-status-btn.active-online { border-color:var(--wm-buy)!important;background:color-mix(in srgb,var(--wm-buy) 9%,var(--wm-surface))!important;color:var(--wm-buy-text)!important; }
html[data-wm-desktop] .wm-existing-app .bw-status-btn.active-ingame { border-color:var(--wm-warning)!important;background:color-mix(in srgb,var(--wm-warning) 9%,var(--wm-surface))!important;color:var(--wm-warning-text)!important; }
html[data-wm-desktop] .wm-existing-app .bw-status-btn.active-invisible { border-color:var(--wm-muted)!important;background:color-mix(in srgb,var(--wm-muted) 8%,var(--wm-surface))!important;color:var(--wm-muted)!important; }
html[data-wm-desktop] .wm-existing-app .bw-f-dot-warn { background:var(--wm-warning)!important; }
html[data-wm-desktop] .wm-existing-app .bw-f-dot-extra { background:var(--wm-accent)!important; }
html[data-wm-desktop] .wm-existing-app .bw-special-f-btn[data-active="1"],
html[data-wm-desktop] .wm-existing-app .bw-special-f-btn.active { border-color:var(--wm-accent)!important;background:color-mix(in srgb,var(--wm-accent) 9%,var(--wm-surface))!important;color:var(--wm-accent-text)!important; }
html[data-wm-desktop] .wm-existing-app .bw-special-f-btn:hover { color:var(--wm-accent-text)!important; }
html[data-wm-desktop] .wm-existing-app .bw-auctions-entry-title,
html[data-wm-desktop] .wm-existing-app .bw-avg-badge.special,
html[data-wm-desktop] .wm-existing-app .bw-avg-rare,
html[data-wm-desktop] .wm-existing-app .bw-riven-avg-badge.special,
html[data-wm-desktop] .wm-existing-app .bw-auc-wtb:not(.is-copied) { color:var(--wm-accent-text)!important; }
html[data-wm-desktop] .wm-existing-app .bw-auctions-entry-title { text-shadow:none!important; }
html[data-wm-desktop] .wm-existing-app .bw-auc-wtb:not(.is-copied):hover { color:var(--wm-accent-text)!important; }
html[data-wm-desktop] .wm-existing-app .bw-nav-link,
html[data-wm-desktop] .wm-existing-app .bw-hamburger,
html[data-wm-desktop] .wm-existing-app .bw-drawer-link { color:var(--wm-primary-text)!important; }
html[data-wm-desktop] .wm-existing-app .bw-batch-unit,
html[data-wm-desktop] .wm-existing-app .bw-drawer-input-unit,
html[data-wm-desktop] .wm-existing-app .bw-auc-price span,
html[data-wm-desktop] .wm-existing-app .bw-csel-wrap.is-open .bw-csel-arrow { color:var(--wm-muted)!important; }
html[data-wm-desktop] .wm-existing-app .bw-batch-fail-name em { color:var(--wm-danger-text)!important; }
html[data-wm-desktop] .wm-existing-app .bw-modal-ocr-toggle { color:var(--wm-primary-text)!important; }
html[data-wm-desktop] .wm-existing-app .bw-empty-state-title { color:var(--wm-ink)!important; }
html[data-wm-desktop] .wm-existing-app .bw-alert-f-btn[data-active="1"] { border-color:var(--wm-warning)!important;background:color-mix(in srgb,var(--wm-warning) 9%,var(--wm-surface))!important;color:var(--wm-warning-text)!important; }
html[data-wm-desktop] .wm-existing-app button[aria-busy="true"] { cursor:progress!important; }
html[data-wm-desktop] .wm-existing-app #bw-create-submit[aria-busy="true"] {
  position:relative;
  opacity:.72!important;
  cursor:progress!important;
}
html[data-wm-desktop] .wm-existing-app #bw-create-submit[aria-busy="true"]::after {
  content:"";
  position:absolute;
  top:50%;right:16px;
  width:13px;height:13px;margin-top:-6.5px;
  border:1.5px solid currentColor;border-right-color:transparent;
  border-radius:50%;
  animation:wm-create-busy-spin .72s linear infinite;
  pointer-events:none;
}
@keyframes wm-create-busy-spin { to { transform:rotate(360deg); } }
html[data-wm-desktop] .wm-existing-app [aria-invalid="true"],
html[data-wm-desktop] .wm-window [aria-invalid="true"] { border-color:var(--wm-danger-text)!important; }
html[data-wm-desktop] .wm-existing-app :is(input,select,textarea)[aria-invalid="true"],
html[data-wm-desktop] .wm-window :is(input,select,textarea)[aria-invalid="true"] { box-shadow:inset 3px 0 0 var(--wm-danger-text)!important; }
html[data-wm-desktop] .wm-existing-app :is(input,select,textarea)[aria-invalid="true"]:focus,
html[data-wm-desktop] .wm-window :is(input,select,textarea)[aria-invalid="true"]:focus { outline:2px solid var(--wm-danger-text)!important;outline-offset:2px; }
html[data-wm-desktop] .wm-window .bw-drawer-msg[data-wm-inline-error="true"] { box-sizing:border-box;width:100%;min-height:0;margin:0;padding:.42rem .58rem;border-left:3px solid var(--wm-danger-text);background:color-mix(in srgb,var(--wm-danger) 7%,var(--wm-surface));color:var(--wm-danger-text)!important;text-align:left;font-size:12px;line-height:1.5; }
html[data-wm-desktop] .bw-auc-form-field > .bw-auc-modal-err[data-wm-inline-error="true"],
html[data-wm-desktop] .bw-auc-modal-field > .bw-auc-modal-err[data-wm-inline-error="true"] { box-sizing:border-box;width:100%;min-height:0;margin:.15rem 0 0;padding:.42rem .58rem;border-left:3px solid var(--wm-danger-text);background:color-mix(in srgb,var(--wm-danger) 7%,var(--wm-surface));color:var(--wm-danger-text)!important;text-align:left;font-size:12px;line-height:1.5; }
html[data-wm-desktop] .wm-existing-app .bw-lang-btn { width:104px!important;min-width:104px!important; }
html[data-wm-desktop] .wm-existing-app .bw-status-btn,
html[data-wm-desktop] .wm-existing-app .bw-maintain-toggle { max-width:100%;overflow-wrap:anywhere;white-space:normal!important;line-height:1.25; }
html[data-wm-desktop] .wm-window .wm-launcher-card { background:var(--wm-surface)!important;color:var(--wm-ink)!important; }
html[data-wm-desktop] .wm-window .wm-launcher-card:hover,
html[data-wm-desktop] .wm-window .wm-launcher-card:focus-visible { border-color:var(--wm-primary)!important;background:var(--wm-surface)!important;color:var(--wm-ink)!important;filter:none!important; }
html[data-wm-desktop] .wm-window .wm-calendar-day.is-today { background:var(--wm-primary)!important;color:var(--wm-primary-contrast)!important; }
html[data-wm-desktop] .wm-window .wm-calendar-day.is-selected { outline:2px solid var(--wm-accent)!important;outline-offset:1px; }
html[data-wm-desktop] .wm-main-window .wm-login-outer .bw-login-btn { min-height:52px;padding:12px 16px;border-color:var(--wm-primary)!important;background:var(--wm-primary)!important;color:var(--wm-primary-contrast)!important;font:600 13px/1.35 var(--wm-font);letter-spacing:.03em; }
html[data-wm-desktop] .wm-main-window .wm-login-outer .bw-login-btn:hover { border-color:var(--wm-primary)!important;background:var(--wm-surface)!important;color:var(--wm-ink)!important;filter:none; }
html[data-wm-desktop] .wm-existing-app a { color:var(--wm-primary-text); }
html[data-wm-desktop] .wm-existing-app .bw-col-sell,
html[data-wm-desktop] .wm-existing-app .bw-order-sell { --wm-order-side:var(--wm-sell); }
html[data-wm-desktop] .wm-existing-app .bw-col-buy,
html[data-wm-desktop] .wm-existing-app .bw-order-buy { --wm-order-side:var(--wm-buy); }
html[data-wm-desktop] .wm-existing-app .bw-order-card { border-left:3px solid var(--wm-order-side,var(--wm-line))!important; }
html[data-wm-desktop] .wm-existing-app .bw-col-title { color:var(--wm-ink)!important;border-color:var(--wm-line)!important;text-shadow:none!important; }
html[data-wm-desktop] .wm-existing-app .bw-batch-progress,
html[data-wm-desktop] .wm-existing-app .bw-batch-fail,
html[data-wm-desktop] .wm-existing-app .bw-batch-refresh-status,
html[data-wm-desktop] .wm-existing-app .bw-alert-banner { border-radius:2px!important;box-shadow:none!important; }
html[data-wm-desktop] .bw-edit-drawer.wm-window .bw-edit-orderbook-list { max-height:min(220px,40vh);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin; }
html[data-wm-desktop] .bw-edit-drawer.wm-window .bw-edit-orderbook-list:focus-visible { outline:2px solid var(--wm-primary);outline-offset:-2px; }
html[data-wm-desktop] .wm-existing-app .bw-price,
html[data-wm-desktop] .wm-existing-app .bw-order-price,
html[data-wm-desktop] .wm-existing-app [data-price] { font-variant-numeric:tabular-nums; }
/* WM numeric typography start */
html[data-wm-desktop] .wm-existing-app .bw-price,
html[data-wm-desktop] .wm-existing-app .bw-order-price,
html[data-wm-desktop] .wm-existing-app .bw-price-val,
html[data-wm-desktop] .wm-existing-app .bw-order-price-value,
html[data-wm-desktop] .wm-existing-app .bw-order-price-total,
html[data-wm-desktop] .wm-existing-app .bw-auc-price,
html[data-wm-desktop] .wm-existing-app .bw-quant-row-price,
html[data-wm-desktop] .wm-existing-app .bw-edit-order-price,
html[data-wm-desktop] .wm-existing-app .bw-inv-item-price,

html[data-wm-desktop] .wm-existing-app [data-price],
html[data-wm-desktop] .wm-existing-app input[type="number"] {
  font-family:"Source Code Pro",Consolas,var(--f-cjk-name,"Microsoft YaHei"),"PingFang SC","Microsoft YaHei",monospace;
  font-variant-numeric:tabular-nums;
}
/* WM numeric typography end */
html[data-wm-desktop] .wm-existing-app .bw-batch-btn::before,
html[data-wm-desktop] .wm-existing-app .bw-drawer-btn-update::before,
html[data-wm-desktop] .wm-existing-app .bw-quant-exec-sweep { display:none!important; }
html[data-wm-desktop] .wm-existing-app .bw-status-btn.active-online,
html[data-wm-desktop] .wm-existing-app .bw-status-btn.active-ingame { animation:none!important; }
html[data-wm-desktop] .wm-existing-app .bw-detail-inner { background:color-mix(in srgb,var(--wm-primary) 4%,var(--wm-surface))!important; }
html[data-wm-desktop] .wm-existing-app .bw-avatar,
html[data-wm-desktop] .wm-existing-app .bw-radial-fab-logo { filter:grayscale(1); }
html[data-wm-desktop] .wm-existing-app *,
html[data-wm-desktop] .wm-existing-app *::before,
html[data-wm-desktop] .wm-existing-app *::after { text-shadow:none!important;box-shadow:none!important; }
html[data-wm-desktop] .wm-main-window > #bw-scrollnav { position:absolute!important;left:auto!important;right:12px!important;bottom:12px!important;z-index:8!important;gap:8px; }
html[data-wm-desktop] .wm-existing-app #bw-alert-fab { display:none!important; }
html[data-wm-desktop] #bw-scrollnav .bw-scrollnav-btn { width:44px;height:44px;min-width:44px;min-height:44px;border:1px solid var(--wm-line)!important;border-radius:50%!important;background:var(--wm-surface)!important;color:var(--wm-ink)!important;box-shadow:none!important; }
html[data-wm-desktop] .bw-confirm-btn { min-height:44px;border:1px solid var(--wm-line)!important;border-radius:2px!important;box-shadow:none!important;font-family:var(--wm-font)!important; }
html[data-wm-desktop] .bw-confirm-ok { border-color:var(--wm-primary)!important;background:var(--wm-primary)!important;color:var(--wm-primary-contrast)!important; }
html[data-wm-desktop] .bw-confirm-cancel { background:transparent!important;color:var(--wm-ink)!important; }

.wm-settings-content,.wm-help-content { padding:16px; }
.wm-setting-block { padding:12px 0;border-bottom:1px solid var(--wm-soft-line); }
.wm-setting-block:first-child { padding-top:0; }
.wm-setting-block h3 { margin:0 0 7px;font-size:12px;font-weight:500; }
.wm-setting-block p { margin:0 0 8px;color:var(--wm-muted);font-size:11px; }
.wm-font-preferences { padding:12px 0;color:var(--wm-muted); }
.wm-font-preferences summary { cursor:pointer;font-size:11px; }
.wm-font-preferences-note { max-width:56ch;margin:8px 0 0;color:var(--wm-muted);font:400 10px/1.45 var(--wm-font); }
.wm-font-preferences .bw-fui-settings-row { display:grid;gap:8px;margin-top:10px; }
.wm-font-preferences .bw-fui-select-wrap { display:grid;grid-template-columns:100px 1fr;align-items:center;gap:8px; }
.wm-font-preferences .bw-fui-select-label { color:var(--wm-muted);font-size:11px; }
.wm-font-preferences .bw-fui-select { width:100%;min-height:36px;background:var(--wm-paper)!important;color:var(--wm-ink)!important;border:1px solid var(--wm-line)!important; }
.wm-help-content p { margin:0 0 12px; }
.wm-help-content ul { display:grid;gap:8px;padding:0;list-style:none; }
.wm-help-content li { display:grid;grid-template-columns:100px 1fr;gap:10px;align-items:center; }
.wm-help-content code { padding:3px 5px;border:1px solid var(--wm-line); }
.wm-help-note { margin-top:16px;padding-top:12px;border-top:1px solid var(--wm-line);color:var(--wm-muted); }
.wm-launcher-content,.wm-history-content { padding:16px; }
.wm-launcher-intro { margin:0 0 14px;color:var(--wm-muted);font-size:11px; }
.wm-history-content>p { margin:0 0 14px;color:var(--wm-muted);font-size:13px;line-height:1.55; }
.wm-launcher-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
.wm-launcher-card { position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;align-items:stretch;gap:0;min-width:0;min-height:132px;padding:0;overflow:hidden;border:1px solid var(--wm-line)!important;background:var(--wm-surface)!important;color:var(--wm-ink)!important;text-align:left;text-decoration:none;cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease; }
.wm-launcher-card::after { position:absolute;z-index:3;inset:0 0 25px;display:grid;place-items:center;padding:14px;border:0;background:rgb(22 23 22 / .88);color:#fff;box-shadow:none;font:12px/1.5 var(--wm-font);text-align:center;white-space:normal;content:attr(data-wm-tooltip);opacity:0;visibility:hidden;pointer-events:none;translate:none;transition:opacity .16s ease,visibility .16s ease; }
.wm-launcher-card:hover::after,.wm-launcher-card:focus-visible::after { opacity:1;visibility:visible;translate:none; }
.wm-launcher-card:hover,.wm-launcher-card:focus-visible { border-color:var(--wm-primary)!important;background:var(--wm-surface)!important;color:var(--wm-ink)!important;transform:translateY(-2px); }
.wm-launcher-card:focus-visible { outline:2px solid var(--wm-primary);outline-offset:2px; }
html[data-wm-desktop] .wm-window .wm-launcher-card:active { transform:scale(.99)!important; }
.wm-launcher-preview { position:relative;display:block;aspect-ratio:16/9;min-width:0;overflow:hidden;border-bottom:1px solid var(--wm-soft-line);background:linear-gradient(145deg,color-mix(in srgb,var(--wm-primary) 5%,var(--wm-paper)),var(--wm-surface)); }
.wm-preview-screen { position:absolute;inset:8px 9px;border:1px solid color-mix(in srgb,var(--wm-ink) 17%,transparent);background:var(--wm-paper);box-shadow:0 2px 5px rgb(20 20 20 / .08); }
.wm-preview-chrome { position:absolute;inset:0 0 auto;height:10px;display:flex;align-items:center;gap:3px;padding:0 4px;border-bottom:1px solid var(--wm-soft-line);background:var(--wm-surface); }
.wm-preview-light { width:3px;height:3px;border-radius:50%;background:var(--wm-muted);opacity:.7; }
.wm-preview-light-red { background:#ff5f57; }
.wm-preview-light-amber { background:#febc2e; }
.wm-preview-light-green { background:#28c840; }
.wm-preview-rail { position:absolute;top:10px;bottom:0;left:0;width:19%;border-right:1px solid var(--wm-soft-line);background:repeating-linear-gradient(to bottom,transparent 0 5px,color-mix(in srgb,var(--wm-muted) 32%,transparent) 5px 6px,transparent 6px 11px); }
.wm-preview-content { position:absolute;top:13px;right:5px;bottom:4px;left:23%;display:grid;grid-template-rows:5px 17px minmax(0,1fr);gap:3px; }
.wm-preview-heading { width:52%;height:3px;margin-top:1px;background:color-mix(in srgb,var(--wm-ink) 65%,transparent); }
.wm-preview-summary { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px; }
.wm-preview-summary i { border:1px solid var(--wm-soft-line);background:linear-gradient(to bottom,color-mix(in srgb,var(--wm-muted) 18%,var(--wm-surface)) 0 2px,transparent 2px); }
.wm-preview-summary-second { border-bottom:2px solid color-mix(in srgb,var(--wm-primary) 68%,transparent)!important; }
.wm-preview-rows { display:grid;grid-template-rows:repeat(3,minmax(0,1fr));gap:2px; }
.wm-preview-row { display:grid;grid-template-columns:4px minmax(0,1fr) 17%;align-items:center;gap:4px;min-height:0;border-bottom:1px solid color-mix(in srgb,var(--wm-line) 75%,transparent); }
.wm-preview-row i { display:block;height:2px;background:color-mix(in srgb,var(--wm-muted) 40%,transparent); }
.wm-preview-row .wm-preview-row-mark { width:3px;height:3px;border-radius:50%;background:color-mix(in srgb,var(--wm-primary) 68%,transparent); }
.wm-preview-row .wm-preview-row-value { height:3px;background:color-mix(in srgb,var(--wm-primary) 54%,transparent); }
.wm-preview-auctions .wm-preview-rows { grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:1fr;gap:3px; }
.wm-preview-auctions .wm-preview-row { grid-template-columns:1fr;grid-template-rows:4px 1fr 4px;gap:2px;padding:2px;border:1px solid var(--wm-soft-line); }
.wm-preview-auctions .wm-preview-row .wm-preview-row-mark { width:4px;height:4px; }
.wm-preview-quant .wm-preview-row .wm-preview-row-mark { border:1px solid var(--wm-muted);border-radius:0;background:transparent; }
.wm-preview-settings .wm-preview-row { grid-template-columns:minmax(0,1fr) 8px; }
.wm-preview-settings .wm-preview-row .wm-preview-row-name { grid-column:1; }
.wm-preview-settings .wm-preview-row .wm-preview-row-value { grid-column:2;grid-row:1;border-radius:4px; }
.wm-preview-help .wm-preview-summary { display:none; }
.wm-preview-help .wm-preview-content { grid-template-rows:5px minmax(0,1fr); }
.wm-preview-help .wm-preview-rows { grid-template-rows:repeat(4,minmax(0,1fr)); }
.wm-preview-history .wm-preview-row .wm-preview-row-mark { border:1px solid var(--wm-primary);background:var(--wm-paper); }
.wm-launcher-card-title { position:absolute;z-index:2;inset:auto 0 25px;display:grid;place-items:center start;min-height:28px;padding:5px 10px 6px;background:linear-gradient(to top,color-mix(in srgb,var(--wm-paper) 94%,transparent),color-mix(in srgb,var(--wm-paper) 72%,transparent) 66%,transparent);font-size:12px;line-height:1.3;font-weight:600;text-align:left; }
.wm-launcher-card-subtitle { align-self:start;padding:2px 10px 7px;color:var(--wm-muted);font-size:11px;letter-spacing:.08em;line-height:1.3;text-align:center; }
@media (max-width:520px) { .wm-launcher-grid { grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); } }
.wm-history-list { display:grid;gap:0;margin:0;padding:0;list-style:none; }
.wm-history-list li { display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;padding:9px 2px;border-bottom:1px solid var(--wm-soft-line);font-size:13px;line-height:1.5; }
.wm-history-list .wm-history-empty { grid-template-columns:minmax(0,1fr); }
.wm-history-list time { color:var(--wm-muted);font-size:12px;line-height:1.4;font-variant-numeric:tabular-nums;white-space:nowrap; }
.wm-clock-popover,.wm-calendar-popover { position:absolute;z-index:70;display:block;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .16s ease,transform .16s ease; }
.wm-clock-popover[hidden],.wm-calendar-popover[hidden] { display:none!important; }
.wm-clock-popover.is-open,.wm-calendar-popover.is-open { opacity:1;visibility:visible;pointer-events:auto; }
.wm-clock-popover { top:40px;right:0;width:224px;height:224px;overflow:hidden;border:1px solid var(--wm-line);border-radius:50%;background:var(--wm-paper);box-shadow:0 10px 24px -6px rgba(var(--wm-ink-rgb),.2);transform:scale(.98); }
.wm-clock-popover.is-open { transform:scale(1); }
.wm-clock-hand { position:absolute;top:50%;left:50%;border-radius:2px;transform-origin:50% 100%; }
.wm-analog-hour { width:3px;height:48px;background:var(--wm-primary); }
.wm-analog-minute { width:2px;height:70px;background:var(--wm-primary); }
.wm-analog-second { width:1px;height:82px;background:var(--wm-accent);border-radius:0; }
.wm-clock-pin { position:absolute;top:50%;left:50%;width:10px;height:10px;border-radius:50%;background:var(--wm-primary);transform:translate(-50%,-50%); }
.wm-date-anchor .wm-calendar-popover { top:32px;right:0;width:300px;max-width:min(300px,calc(100vw - 20px));max-height:calc(100dvh - 16px);overflow:auto;padding:16px;border:1px solid var(--wm-line);background:var(--wm-paper);box-shadow:0 10px 24px -6px rgba(var(--wm-ink-rgb),.2);color:var(--wm-ink);font:400 12px/1.35 var(--wm-font);transform:translateY(-3px); }
.wm-date-anchor .wm-calendar-popover.is-open { transform:translateY(0); }
.wm-calendar-popover-titlebar { display:flex;align-items:center;justify-content:space-between;min-height:30px;margin-bottom:16px;padding-bottom:8px;border-bottom:1px solid color-mix(in srgb,var(--wm-ink) 15%,transparent); }
.wm-calendar-label { opacity:.7;letter-spacing:.04em; }
.wm-calendar-today,.wm-calendar-step { display:grid;place-items:center;min-width:28px;width:28px;height:28px;min-height:28px;padding:0;border:1px solid var(--wm-soft-line)!important;border-radius:0!important;background:transparent!important;color:var(--wm-ink)!important;font:400 12px/1 var(--wm-font);cursor:pointer;transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .14s ease; }
.wm-calendar-today { width:auto;min-width:0;height:24px;min-height:24px;padding:2px 8px;font-size:12px;opacity:.78; }
.wm-calendar-today:hover,.wm-calendar-step:hover { border-color:var(--wm-primary)!important;background:var(--wm-primary)!important;color:var(--wm-primary-contrast)!important;opacity:1; }
.wm-calendar-today:active,.wm-calendar-step:active { transform:scale(.92); }
.wm-calendar-head { display:grid;grid-template-columns:28px 28px minmax(0,1fr) 28px 28px;align-items:center;gap:4px;margin-bottom:16px; }
.wm-calendar-month { min-width:0;text-align:center;text-transform:uppercase;letter-spacing:.06em;font-size:11px;opacity:.82;white-space:nowrap; }
.wm-calendar-grid { display:grid;gap:4px;text-align:center; }
.wm-calendar-weekdays,.wm-calendar-week { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center; }
.wm-calendar-weekdays { margin-bottom:8px;opacity:.52; }
.wm-calendar-day-name { display:grid;place-items:center;min-height:20px;font-size:9px; }
.wm-calendar-day,.wm-calendar-empty { display:grid;place-items:center;width:28px;height:28px;margin:0 auto; }
.wm-calendar-day { border:1px solid transparent;color:var(--wm-ink);transition:background-color .16s ease,color .16s ease; }
.wm-calendar-day:not(.is-today):hover { background:color-mix(in srgb,var(--wm-ink) 5%,transparent); }
.wm-calendar-day.is-today { border-color:var(--wm-primary);background:var(--wm-primary);color:var(--wm-primary-contrast); }
@media (prefers-reduced-motion: reduce) {
  .wm-clock-popover,.wm-calendar-popover { transition:none; }
}
@media (max-height:480px) {
  .wm-date-anchor .wm-calendar-popover { max-height:calc(100dvh - 52px); }
}

.bw-edit-drawer.wm-window,.bw-edit-drawer.wm-window.is-open {
  top:54px;right:12px;bottom:auto;left:auto;
  width:min(520px,calc(100vw - 24px));height:min(78vh,790px);max-height:calc(100vh - 70px);
  display:flex;flex-direction:column;transform:none!important;opacity:1;transition:border-color .2s ease,box-shadow .2s ease;
  border:1px solid var(--wm-line)!important;border-radius:2px!important;
  background:var(--wm-paper)!important;
}
.bw-edit-drawer.wm-window::before { display:none; }
.bw-edit-drawer.wm-window .bw-drawer-header { flex:0 0 30px;min-height:30px;padding:0 7px 0 83px;border-bottom:1px solid var(--wm-line);background:var(--wm-paper);cursor:grab;touch-action:none; }
.bw-edit-drawer.wm-window .bw-drawer-title { max-width:calc(100% - 75px);overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap;color:var(--wm-ink);font-size:11px; }
.bw-edit-drawer.wm-window .bw-drawer-close { width:26px;height:26px;border:0;background:transparent;color:var(--wm-ink); }
.bw-edit-drawer.wm-window .bw-drawer-body { flex:1 1 auto;min-height:0;overflow:auto;padding:14px; }
.bw-edit-drawer.wm-window > .bw-drawer-actions { flex:0 0 auto;max-height:45%;overflow:auto;margin:0;padding:10px 14px max(10px,env(safe-area-inset-bottom));border-top:1px solid var(--wm-line);background:var(--wm-paper); }
.bw-edit-drawer.wm-window .bw-drawer-confirm-del { background:var(--wm-paper); }
html[data-wm-desktop] .bw-panel-overlay { position:absolute;inset:0; }
.bw-panel-overlay.is-open { z-index:20;background:rgba(10,10,10,.12);backdrop-filter:none;opacity:1; }
.bw-auc-modal-overlay[style*="display:none"],.bw-auc-modal-overlay[style*="display: none"] { display:none!important; }
.bw-auc-modal-overlay:not([style*="display:none"]):not([style*="display: none"]) { position:absolute;inset:0;z-index:35;display:grid!important;place-items:center;padding:24px;background:rgba(10,10,10,.2);backdrop-filter:blur(1px); }
.bw-auc-modal-overlay:not([style*="display:none"]):not([style*="display: none"]) .bw-auc-modal {
  position:relative;inset:auto;width:min(520px,calc(100vw - 32px));max-height:min(82vh,820px);overflow:auto;
  padding:16px!important;border:1px solid var(--wm-line)!important;border-radius:2px!important;
  background:var(--wm-paper)!important;color:var(--wm-ink)!important;box-shadow:0 12px 32px -8px rgba(10,10,10,.3)!important;
}
html[data-wm-desktop] .bw-auc-modal-overlay[data-wm-window-minimized="true"] { display:none!important; }
.bw-auc-modal-title { color:var(--wm-ink)!important; }
html[data-wm-desktop] .bw-auc-modal .wm-floating-titlebar { position:sticky;top:-16px;margin:-16px -16px 14px; }
.bw-auc-modal .bw-auc-modal-close { z-index:4; }
html[data-wm-desktop] .bw-auc-modal-lg .bw-auc-modal-actions { position:sticky;bottom:-16px;z-index:2;margin-top:8px;padding:10px 0 max(8px,env(safe-area-inset-bottom));background:var(--wm-paper);box-shadow:0 -5px 8px color-mix(in srgb,var(--wm-paper) 88%,transparent); }
@media (max-height:480px) and (min-width:768px) {
  html[data-wm-desktop] .bw-auc-modal-overlay:not([style*="display:none"]):not([style*="display: none"]) { place-items:start center;padding:8px;overflow:hidden; }
  html[data-wm-desktop] .bw-auc-modal-overlay:not([style*="display:none"]):not([style*="display: none"]) .bw-auc-modal { box-sizing:border-box;inset:auto!important;width:100%!important;height:auto!important;max-width:100%;max-height:calc(100% - 16px);overflow:auto; }
  html[data-wm-desktop] .bw-auc-modal .bw-auc-modal-actions { position:sticky;bottom:-8px;z-index:2;margin-top:8px;padding:8px 0;background:var(--wm-paper);box-shadow:0 -5px 8px color-mix(in srgb,var(--wm-paper) 88%,transparent); }
  #bw-auc-edit-modal .bw-auc-modal:not(.bw-auc-modal-lg) { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;column-gap:12px;row-gap:6px;padding:8px 12px!important; }
  #bw-auc-edit-modal .bw-auc-modal:not(.bw-auc-modal-lg) > .wm-floating-titlebar,
  #bw-auc-edit-modal .bw-auc-modal:not(.bw-auc-modal-lg) > .bw-auc-modal-title,
  #bw-auc-edit-modal .bw-auc-modal:not(.bw-auc-modal-lg) > .bw-auc-modal-err,
  #bw-auc-edit-modal .bw-auc-modal:not(.bw-auc-modal-lg) > .bw-auc-modal-actions { grid-column:1/-1; }
  #bw-auc-edit-modal .bw-auc-modal .wm-floating-titlebar { top:-8px;margin:-8px -12px 0; }
  #bw-auc-edit-modal .bw-auc-modal-title { margin:0;font-size:14px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
  #bw-auc-edit-modal .bw-auc-modal-field { min-width:0;margin:0; }
  #bw-auc-edit-modal .bw-auc-modal-field > label { margin-bottom:2px; }
  #bw-auc-edit-modal .bw-auc-modal-radios { gap:2px;margin:0; }
  #bw-auc-edit-modal .bw-auc-modal-radios label { min-height:48px;padding-inline:4px; }
  #bw-auc-edit-modal .bw-auc-modal-err:empty { display:none; }
  #bw-auc-edit-modal .bw-auc-modal-actions { margin:0;padding:4px 0; }
  #bw-auc-edit-modal .bw-auc-modal-actions button { min-height:48px; }
}
.bw-confirm-overlay { backdrop-filter:none!important;background:rgba(10,10,10,.22)!important; }
.bw-confirm-box { border:1px solid var(--wm-line)!important;border-radius:2px!important;background:var(--wm-surface)!important;color:var(--wm-ink)!important;box-shadow:0 12px 32px -8px rgba(10,10,10,.22)!important; }
html[data-wm-desktop] .bw-notice-overlay { z-index:1001;padding:12px;background:rgba(var(--wm-ink-rgb),.26);backdrop-filter:blur(1px);-webkit-backdrop-filter:blur(1px); }
html[data-wm-desktop] .bw-notice-box { display:flex;flex-direction:column;gap:0;width:min(560px,calc(100vw - 24px));max-height:min(82dvh,760px);overflow:auto;padding:0;border:1px solid var(--wm-line);border-radius:0;background:var(--wm-paper);color:var(--wm-ink);box-shadow:0 12px 32px -8px color-mix(in srgb,var(--wm-primary) 28%,transparent);text-align:left;transform:scale(.96) translateY(6px);transition:transform .24s ease,opacity .2s ease; }
html[data-wm-desktop] .bw-notice-overlay.show .bw-notice-box { transform:scale(1) translateY(0); }
html[data-wm-desktop] .bw-notice-box::before,html[data-wm-desktop] .bw-notice-box .bw-c { display:none!important; }
html[data-wm-desktop] .wm-notice-titlebar { display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:0 7px 0 14px;border-bottom:1px solid var(--wm-line);background:var(--wm-surface);color:var(--wm-muted);font:400 10px var(--wm-font);letter-spacing:.1em; }
html[data-wm-desktop] .wm-notice-dismiss { display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--wm-muted);font:400 24px/1 var(--wm-font);cursor:pointer; }
html[data-wm-desktop] .wm-notice-dismiss:hover { background:color-mix(in srgb,var(--wm-primary) 7%,transparent);color:var(--wm-ink); }
html[data-wm-desktop] .wm-notice-content { display:flex;flex-direction:column;align-items:flex-start;padding:24px; }
html[data-wm-desktop] .bw-notice-icon { display:grid;place-items:center;width:34px;height:34px;margin:0 0 12px;border:1px solid color-mix(in srgb,var(--wm-warning) 45%,var(--wm-line));border-radius:0;background:transparent;color:var(--wm-warning);font-size:17px;line-height:1;box-shadow:none;animation:none; }
html[data-wm-desktop] .bw-notice-title { margin:0 0 10px;color:var(--wm-ink);font:600 16px/1.4 var(--wm-font);letter-spacing:.02em; }
html[data-wm-desktop] .bw-notice-msg { color:var(--wm-ink);font:400 13px/1.75 var(--wm-font); }
html[data-wm-desktop] .bw-notice-close { align-self:flex-end;display:inline-flex;align-items:center;justify-content:center;min-width:124px;min-height:48px;margin:20px 0 0;padding:8px 16px;border:1px solid var(--wm-primary);border-radius:0;background:var(--wm-primary);color:var(--wm-primary-contrast);font:500 12px/1.4 var(--wm-font);letter-spacing:0;clip-path:none;cursor:pointer;transition:filter .18s ease,background-color .18s ease,color .18s ease; }
html[data-wm-desktop] .bw-notice-close:hover { background:var(--wm-primary);color:var(--wm-primary-contrast);box-shadow:none;filter:brightness(.92); }
html[data-wm-desktop] .bw-notice-box :focus-visible { outline:2px solid var(--wm-accent);outline-offset:3px; }
.wm-help-legal { margin-top:16px;padding-top:12px;border-top:1px solid var(--wm-line); }
.wm-help-legal .wm-legal-strip { display:block;max-width:none;overflow:visible;font-size:10px; }
.wm-help-legal .bw-footer-inner { display:grid;gap:5px; }
.wm-important-notice { position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:12px;background:rgba(var(--wm-ink-rgb),.3);backdrop-filter:blur(1px);-webkit-backdrop-filter:blur(1px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .22s ease,visibility 0s linear .22s; }
.wm-important-notice.is-open { opacity:1;visibility:visible;pointer-events:auto;transition:opacity .22s ease; }
.wm-important-notice-window { display:flex;flex-direction:column;width:min(680px,calc(100vw - 24px));max-height:min(82dvh,760px);overflow:auto;border:1px solid var(--wm-line);background:var(--wm-paper);color:var(--wm-ink);box-shadow:0 12px 32px -8px color-mix(in srgb,var(--wm-primary) 35%,transparent); }
.wm-important-notice-titlebar { display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:0 7px 0 14px;border-bottom:1px solid var(--wm-line);background:var(--wm-surface); }
.wm-important-notice-kicker { color:var(--wm-muted);font-size:10px;letter-spacing:.1em; }
.wm-important-notice-icon-close { display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--wm-muted);font:400 24px/1 var(--wm-font);cursor:pointer; }
.wm-important-notice-icon-close:hover { background:color-mix(in srgb,var(--wm-primary) 7%,transparent);color:var(--wm-ink); }
.wm-important-notice-content { overflow:auto;padding:clamp(16px,4vw,28px); }
.wm-important-notice-mark { display:grid;place-items:center;width:34px;height:34px;margin-bottom:12px;border:1px solid var(--wm-line);color:var(--wm-primary-text);font-size:18px;font-weight:600; }
.wm-important-notice-title { margin:0 0 14px;color:var(--wm-ink);font-size:20px;font-weight:600;letter-spacing:.02em; }
.wm-important-notice-description { color:var(--wm-ink);font-size:14px;line-height:1.75; }
.wm-important-notice-description p { margin:0 0 12px; }
.wm-important-notice-description p:last-child { margin-bottom:0; }
.wm-important-notice-highlight { padding:0 .2em;border:1px solid color-mix(in srgb,var(--wm-primary) 22%,var(--wm-line));background:color-mix(in srgb,var(--wm-primary) 6%,transparent);color:var(--wm-primary-text);font-weight:600; }
html[data-wm-desktop] .wm-important-notice-ack { display:flex;align-items:center;justify-content:center;min-width:150px;min-height:48px;margin:20px 0 0 auto;padding:8px 16px;border:1px solid var(--wm-primary);background:var(--wm-primary);color:var(--wm-primary-contrast);font:500 13px var(--wm-font);cursor:pointer; }
html[data-wm-desktop] .wm-important-notice-ack:hover { filter:brightness(.92); }
.bw-toast { border-radius:2px!important; }

@media (max-width: 1023px) {
  .wm-os-shell { grid-template-columns:190px minmax(0,1fr); }
  .wm-os-rail { padding:12px 8px; }
  .wm-os-brand { grid-template-columns:30px minmax(0,1fr);column-gap:6px;font-size:12px;letter-spacing:.08em; }
  .wm-os-brand span,.wm-os-brand small { white-space:nowrap;overflow-wrap:normal; }
  .wm-os-brand small { font-size:10px;letter-spacing:.12em; }
  .wm-clock-date { display:none; }
  .wm-orbit { right:0;width:min(62%,440px);opacity:.17; }
  .wm-main-content > .bw-wrap { padding:10px!important; }
  .wm-legal-strip { display:none; }
}
@media (max-width: 767px) {
  .wm-os-shell { inset:6px;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;grid-template-areas:"work" "task";gap:6px; }
  .wm-os-workbench { grid-column:1;grid-row:1;grid-template-rows:40px minmax(0,1fr);gap:6px; }
  .wm-os-rail { position:absolute;z-index:50;top:0;bottom:50px;left:0;width:min(270px,84vw);padding:18px 14px;overflow-x:hidden;overflow-y:auto;background:var(--wm-paper);box-shadow:0 12px 32px -8px rgba(10,10,10,.25);transform:translateX(-110%);transition:transform .24s ease; }
  .wm-os-rail.is-mobile-open { transform:translateX(0); }
  .wm-mobile-menu { display:inline-flex;align-items:center;justify-content:center;gap:0;min-width:48px;min-height:36px;padding:0 6px;border:0;background:transparent;color:var(--wm-ink);font-size:0;cursor:pointer;transition:transform .16s ease,background-color .16s ease; }
  .wm-mobile-menu .wm-icon { width:18px;height:18px; }
  .wm-mobile-veil.is-open { position:absolute;z-index:49;inset:0;display:block;border:0;background:rgba(10,10,10,.22); }
  .wm-os-topbar { z-index:10;min-height:40px;padding:0 5px; }
  .wm-topbar-left,.wm-topbar-tools { gap:4px; }
  .wm-breadcrumb { flex:0 1 28vw;min-width:0; }
  html[data-wm-desktop] .wm-clock-button { flex:0 1 148px;width:148px;min-width:0;max-width:40vw;min-height:36px;gap:4px;overflow:hidden;padding:8px 12px;font:500 10px/normal var(--wm-font); }
  .wm-clock-live { font-size:12px;line-height:normal;letter-spacing:.04em; }
  .wm-clock-live { display:block;flex:1 1 auto;width:100%;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
  html[data-wm-desktop] .wm-calendar-button { min-height:36px;padding:8px 12px;font:500 10px/normal var(--wm-font); }
  .wm-clock-date { display:none; }
  .wm-os-taskbar { min-height:38px;padding:3px; }
  .wm-legal-strip { display:none; }
  .wm-command-form { flex:1 1 auto;min-width:0; }
  .wm-command { min-height:36px; }
  .wm-command-status { bottom:calc(100% + 4px);left:auto;right:0;width:min(320px,calc(100vw - 24px));max-width:calc(100vw - 24px);padding:7px 9px;font-size:12px;line-height:1.45; }
  .wm-command-suggestions { bottom:calc(100% + 22px);left:auto;right:0;max-height:48vh; }
  .wm-orbit { position:fixed;top:50%;left:auto;right:-90vw;width:min(225vw,880px);translate:0 -50%;opacity:.075; }
  .wm-main-window { border-color:var(--wm-line); }
  .wm-window-titlebar { grid-template-columns:146px minmax(0,1fr);flex-basis:46px;height:46px; }
  .wm-window-titlebar .wm-window-mark { display:none; }
  .wm-window-control { flex-basis:44px;width:44px;height:44px;min-width:44px;min-height:44px; }
    .wm-important-notice { padding:8px; }
  .wm-important-notice-window { width:min(100%,560px);max-height:86dvh; }
  .wm-important-notice-content { padding:16px; }
  .wm-important-notice-description { font-size:16px;line-height:1.65; }
  html[data-wm-desktop] .wm-notice-content { padding:18px; }
  html[data-wm-desktop] .bw-notice-msg { font-size:14px; }
  html[data-wm-desktop] .bw-notice-close { align-self:stretch;width:100%; }
  .wm-important-notice-ack { width:100%; }
  .wm-window-controls { gap:1px; }
  .wm-window-mark { font-size:8px; }
  .wm-main-content { scrollbar-width:thin; }
  .wm-main-content > .bw-wrap { padding:8px!important; }
  .wm-resize-handle { display:none; }
  .wm-window:not(.wm-main-window) { position:fixed;inset:6px!important;width:auto!important;height:auto!important;max-height:none;max-width:none; }
  .wm-dialog-window { top:10vh;left:5vw;right:5vw;bottom:auto;max-height:80vh!important; }
  html[data-wm-desktop] #wm-launcher-window.wm-dialog-window {
    top:50%!important;right:auto!important;bottom:auto!important;left:50%!important;
    width:min(660px,calc(100vw - 24px))!important;height:auto!important;max-height:calc(100dvh - 24px)!important;
    translate:-50% -50%;
  }
  .bw-edit-drawer.wm-window,.bw-edit-drawer.wm-window.is-open { top:6px;right:6px;bottom:6px;left:6px;width:auto;height:auto;max-height:none; }
  .bw-edit-drawer.wm-window .bw-drawer-body { gap:.65rem;padding:12px; }
  .bw-edit-drawer.wm-window > .bw-drawer-actions { padding:9px 12px max(9px,env(safe-area-inset-bottom)); }
  .bw-auc-modal-overlay:not([style*="display:none"]):not([style*="display: none"]) { grid-template-columns:minmax(0,1fr);padding:7px; }
  .bw-auc-modal-overlay:not([style*="display:none"]):not([style*="display: none"]) .bw-auc-modal.wm-window { box-sizing:border-box;inset:auto!important;width:100%!important;height:auto!important;max-width:100%;max-height:calc(100% - 14px); }
  .bw-auc-modal .wm-floating-titlebar { top:-16px; }
  .wm-login-outer { padding:8px; }
  .wm-login-outer .bw-login-hero { padding:16px 16px 12px!important; }
  .wm-login-outer .bw-login-body { padding:16px!important; }
}
@media (pointer: coarse) {
  .wm-os-shell { grid-template-rows:minmax(0,1fr) 56px; }
  .wm-os-rail { bottom:62px; }
  .wm-os-workbench { grid-template-rows:48px minmax(0,1fr); }
  .wm-os-topbar { min-height:48px; }
  .wm-mobile-menu,.wm-clock-button,.wm-calendar-button,.wm-command { min-height:48px; }
  .wm-external-nav a { min-height:48px; }
  .wm-command-option { min-height:48px; }
  .wm-calendar-button { min-width:48px; }
  .wm-window-controls { gap:1px; }
  html[data-wm-desktop] .wm-important-notice-icon-close { width:48px;height:48px;min-width:48px;min-height:48px; }
  html[data-wm-desktop] .wm-window:not(.wm-main-window) .wm-window-titlebar,
  html[data-wm-desktop] .wm-main-window .wm-window-titlebar { height:48px;flex-basis:48px; }
  .wm-window-control { flex-basis:44px;width:44px;height:44px;min-width:44px;min-height:44px; }
  .wm-os-nav-link,.wm-os-nav-button,.wm-task-chip { min-height:48px; }
  .wm-resize-handle { display:none; }
}
@media (max-height: 480px) and (min-width: 768px) {
  .wm-os-shell { inset:6px;grid-template-rows:minmax(0,1fr) 34px;grid-template-areas:"rail work" "task task";gap:5px; }
  .wm-os-workbench { grid-template-rows:30px minmax(0,1fr);gap:5px; }
  .wm-os-rail { padding:7px 8px;overflow-y:auto; }
  .wm-os-brand { margin-bottom:6px;min-height:34px; }
  .wm-os-nav { gap:0; }
  .wm-os-nav-link,.wm-os-nav-button { min-height:44px;padding:9px 14px; }
  .wm-os-rail-spacer { min-height:0; }
  .wm-legal-strip { max-width:40%; }
  .wm-os-taskbar { padding:2px 5px; }
  .wm-login-outer { grid-template-rows:minmax(0,1fr);gap:0;padding:8px 12px; }
  .wm-login-outer .bw-login-hero { padding:8px 14px 6px!important; }
  .wm-login-outer .bw-login-logo-img,.wm-login-outer .bw-login-sub { display:none!important; }
  .wm-login-outer .bw-login-title { font-size:13px!important;letter-spacing:.08em!important; }
  .wm-login-outer .bw-login-body { padding:10px 14px!important; }
  .wm-login-outer .bw-field { margin-bottom:6px; }
  .wm-login-outer .bw-field label { margin-bottom:2px; }
  .wm-login-outer .bw-login-alt { margin-top:4px; }
  .wm-login-outer .bw-login-footer { display:none!important; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-wm-desktop] *,html[data-wm-desktop] *::before,html[data-wm-desktop] *::after {
    scroll-behavior:auto!important;animation:none!important;transition:none!important;
  }
  .wm-pointer-canvas { display:none!important; }
  .wm-type-cursor { animation:none;visibility:visible; }
}
@media (pointer: coarse) {
  html[data-wm-desktop] :where(button:not(.wm-window-control):not(.wm-resize-handle)) { min-width:44px;min-height:48px; }
  html[data-wm-desktop] .wm-window button:not(.wm-window-control):not(.wm-resize-handle) { min-width:44px!important;min-height:48px!important; }
  html[data-wm-desktop] input:not([type="checkbox"]):not([type="radio"]),
  html[data-wm-desktop] select,
  html[data-wm-desktop] textarea { min-height:48px; }
  html[data-wm-desktop] .wm-existing-app button,
  html[data-wm-desktop] .wm-existing-app [role="button"] { min-width:44px;min-height:48px; }
  html[data-wm-desktop] .wm-existing-app input:not([type="checkbox"]):not([type="radio"]),
  html[data-wm-desktop] .wm-existing-app select,
  html[data-wm-desktop] .wm-existing-app textarea { min-height:48px; }
  html[data-wm-desktop] .wm-login-tags a { min-height:48px;padding:8px 14px; }
  html[data-wm-desktop] .wm-mobile-menu,
  html[data-wm-desktop] .wm-os-brand,
  html[data-wm-desktop] .wm-os-nav-link,
  html[data-wm-desktop] .wm-os-nav-button,
  html[data-wm-desktop] .wm-clock-button,
  html[data-wm-desktop] .wm-calendar-button,
  html[data-wm-desktop] .wm-task-chip,
  html[data-wm-desktop] .wm-command,
  html[data-wm-desktop] .wm-legal-strip a { min-height:48px; }
  html[data-wm-desktop] .wm-legal-strip a { display:inline-flex;align-items:center; }
  html[data-wm-desktop] .wm-window-control { flex-basis:48px;width:48px;height:48px;min-width:48px;min-height:48px; }
  html[data-wm-desktop] .wm-calendar-button { min-width:48px; }
  html[data-wm-desktop] .wm-window .bw-quant-selall,
  html[data-wm-desktop] .wm-window .bw-quant-toggle { min-height:48px;padding-block:6px; }
  html[data-wm-desktop] .wm-os-shell { grid-template-rows:minmax(0,1fr) 56px; }
  html[data-wm-desktop] .wm-os-workbench { grid-template-rows:48px minmax(0,1fr); }
  html[data-wm-desktop] .wm-os-topbar { min-height:48px; }
  html[data-wm-desktop] .wm-os-taskbar { min-height:56px;padding-top:4px;padding-bottom:4px; }
}
@media (pointer: coarse) and (min-width: 768px) {
  html[data-wm-desktop] .wm-main-window .wm-window-titlebar { grid-template-columns:minmax(146px,auto) minmax(0,1fr) 76px; }
}
@media (max-height: 480px) and (min-width: 768px) {
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip { display:none!important; }
}
@media (pointer: coarse) and (max-height: 480px) and (min-width: 768px) {
  html[data-wm-desktop] .wm-os-shell { grid-template-rows:minmax(0,1fr) 56px; }
  html[data-wm-desktop] .wm-os-workbench { grid-template-rows:48px minmax(0,1fr); }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip { display:none; }
  html[data-wm-desktop] .wm-command-form { flex:1 1 auto;min-width:0; }
  html[data-wm-desktop] .wm-dialog-window { max-height:calc(82dvh - 66px); }
}
/* Each sell/buy column is about 500px at a 1280px viewport. Put order metadata
   above the price/actions row there so item names and unit-price badges stay readable. */
@media (max-width: 1365px) {
  html[data-wm-desktop] .wm-existing-app .bw-order-main-row { flex-wrap:wrap; }
  html[data-wm-desktop] .wm-existing-app .bw-order-right {
    flex:1 1 100%;width:100%;min-width:0;box-sizing:border-box;
    grid-template-columns:minmax(0,1fr) auto auto;
  }
  html[data-wm-desktop] .wm-existing-app .bw-order-actions {
    min-width:0;flex-wrap:wrap;justify-content:flex-end;
  }
}
@media (max-width: 900px) {
  html[data-wm-desktop] .wm-existing-app .bw-orders { grid-template-columns:minmax(0,1fr); }
}
@media (max-width: 767px) {
  html[data-wm-desktop] .wm-existing-app .bw-auc-mode-tabs { min-width:0;max-width:100%;flex-wrap:wrap; }
  html[data-wm-desktop] .wm-existing-app .bw-auc-mode-btn {
    flex:1 1 9rem;min-width:0;justify-content:center;white-space:normal;text-align:center;line-height:1.35;
  }
  html[data-wm-desktop] .wm-window:not(.wm-main-window) .wm-window-titlebar { grid-template-columns:minmax(96px,auto) minmax(0,1fr); }
  html[data-wm-desktop] .wm-window:not(.wm-main-window) .wm-window-maximize { display:none; }
  html[data-wm-desktop] .wm-window:not(.wm-main-window) .wm-window-close { order:0; }
  html[data-wm-desktop] .wm-window:not(.wm-main-window) .wm-window-minimize { order:1; }
}

/* Keep the dense order controls readable at every supported width. */
html[data-wm-desktop] .wm-existing-app .bw-toolbar {
  margin-top:16px;
  padding:14px;
  border:1px solid var(--wm-line)!important;
  border-radius:2px!important;
  background:color-mix(in srgb,var(--wm-surface) 22%,transparent)!important;
  box-shadow:none!important;
  backdrop-filter:blur(1px);
}
html[data-wm-desktop] .wm-existing-app .bw-toolbar-top {
  align-items:flex-start;
  gap:12px;
}
html[data-wm-desktop] .wm-existing-app .bw-tb-group {
  flex:1 1 300px;
  min-width:0;
  padding:18px 12px 12px;
  border:1px solid var(--wm-soft-line);
  border-radius:2px;
  background:color-mix(in srgb,var(--wm-surface) 22%,transparent);
}
html[data-wm-desktop] .wm-existing-app .bw-tb-group-label {
  top:5px;
  left:12px;
  padding:0;
  border:0;
  border-radius:0;
  background:none;
  background-image:none;
  color:var(--wm-muted);
  -webkit-text-fill-color:var(--wm-muted);
  text-shadow:none!important;
  font:500 9px/1.25 var(--wm-font);
  letter-spacing:.12em;
  animation:none;
}
html[data-wm-desktop] .wm-existing-app .bw-tb-group-body {
  align-content:center;
  gap:8px;
  min-width:0;
}
html[data-wm-desktop] .wm-existing-app .bw-filter-group {
  flex-wrap:wrap;
  gap:6px;
}
html[data-wm-desktop] .wm-existing-app .bw-toolbar button {
  min-height:44px;
  padding:10px 14px;
  font-size:13px;
  line-height:1.35;
  white-space:normal;
  text-align:center;
  text-wrap:balance;
}
html[data-wm-desktop] .wm-existing-app .bw-toolbar button:hover:not(:disabled):not(.active):not([aria-pressed="true"]) {
  border-color:var(--wm-primary)!important;
  background:color-mix(in srgb,var(--wm-primary) 5%,var(--wm-surface))!important;
  color:var(--wm-primary-text)!important;
  filter:none;
}
html[data-wm-desktop] .wm-existing-app .bw-toolbar button:active:not(:disabled) { transform:translateY(1px) scale(.985); }
html[data-wm-desktop] .wm-existing-app .bw-search-wrap {
  flex:1 1 220px;
  min-width:min(100%,220px);
}
html[data-wm-desktop] .wm-existing-app .bw-search-input,
html[data-wm-desktop] .wm-existing-app .bw-search-input:focus {
  width:100%!important;
  min-width:0;
  min-height:44px;
  padding:10px 14px;
  border-radius:2px!important;
  font:13px/1.35 var(--wm-font)!important;
}
html[data-wm-desktop] .wm-existing-app .bw-price-range { flex-wrap:wrap;gap:6px; }
/* Keep price, quantity, and multiplier labels aligned even when rounding adds a second row. */
html[data-wm-desktop] .wm-existing-app .bw-batch-controls { align-items:flex-start; }
html[data-wm-desktop] .wm-existing-app .bw-range-input {
  width:78px;
  min-height:44px;
  padding:10px 12px;
  font-size:13px;
}
html[data-wm-desktop] .wm-existing-app .bw-batch-type-pills { flex-wrap:wrap;gap:6px; }
html[data-wm-desktop] .wm-existing-app .bw-batch-input-row { gap:8px; }
html[data-wm-desktop] .wm-existing-app .bw-batch-input-row input { min-width:72px; }
html[data-wm-desktop] .wm-existing-app .bw-profile-card :is(.bw-status-btn,.bw-dur-btn,.bw-maintain-toggle) {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  min-height:44px;
  padding:10px 14px;
  line-height:1.3;
}
html[data-wm-desktop] .wm-existing-app .bw-profile-card .bw-dur-btn { min-width:54px; }
html[data-wm-desktop] .wm-existing-app .bw-act-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  min-width:52px;
  min-height:36px;
  padding:8px 12px;
  line-height:1.3;
}
html[data-wm-desktop] .wm-existing-app .bw-batch-rounding .bw-round-pill {
  min-height:44px;
  padding:10px 9px;
  line-height:1.3;
  white-space:nowrap;
}
@media (max-width:560px) {
  html[data-wm-desktop] .wm-existing-app .bw-batch-rounding .bw-round-pill { padding-inline:12px; }
}
html[data-wm-desktop] .wm-command { padding-left:12px;padding-right:12px; }
html[data-wm-desktop] .wm-existing-app .bw-ac-input { padding-left:14px;padding-right:14px; }
html[data-wm-desktop] .wm-existing-app .bw-batch-input,
html[data-wm-desktop] .wm-existing-app .bw-mult-input {
  min-height:44px;
  padding:10px 12px;
}
html[data-wm-desktop] .wm-existing-app .bw-mult-input { width:68px; }
@media (min-width: 1200px) {
  /* Give the filter group enough room to read as a compact control panel,
     instead of letting every filter fall into a long, uneven vertical stack. */
  html[data-wm-desktop] .wm-existing-app .bw-toolbar-top > .bw-tb-group:first-child {
    flex:1.7 1 460px;
  }
  html[data-wm-desktop] .wm-existing-app .bw-toolbar-top > .bw-tb-group:nth-child(n+2) {
    flex:1 1 250px;
  }
  html[data-wm-desktop] .wm-existing-app .bw-tb-group:first-child .bw-tb-group-body {
    display:grid;
    grid-template-columns:max-content minmax(0,1fr);
    grid-template-areas:
      "type visibility"
      "price search"
      "signals special";
    align-items:center;
    justify-content:start;
    gap:8px;
  }
  html[data-wm-desktop] .wm-existing-app .bw-tb-group:first-child .bw-tb-group-body > :nth-child(1) { grid-area:type; }
  html[data-wm-desktop] .wm-existing-app .bw-tb-group:first-child .bw-tb-group-body > :nth-child(2) { grid-area:visibility; }
  html[data-wm-desktop] .wm-existing-app .bw-tb-group:first-child .bw-tb-group-body > :nth-child(3) { grid-area:price; }
  html[data-wm-desktop] .wm-existing-app .bw-tb-group:first-child .bw-tb-group-body > :nth-child(4) { grid-area:search; }
  html[data-wm-desktop] .wm-existing-app .bw-tb-group:first-child .bw-tb-group-body > :nth-child(5) { grid-area:signals; }
  html[data-wm-desktop] .wm-existing-app .bw-tb-group:first-child .bw-tb-group-body > :nth-child(6) { grid-area:special; }
  html[data-wm-desktop] .wm-existing-app .bw-tb-group:first-child .bw-filter-group { flex-wrap:nowrap; }
  html[data-wm-desktop] .wm-existing-app .bw-tb-group:first-child .bw-price-range { flex-wrap:nowrap; }
  html[data-wm-desktop] .wm-existing-app .bw-tb-group:first-child .bw-search-wrap { width:100%;min-width:0; }
}
@media (max-width: 767px) {
  html[data-wm-desktop] .wm-existing-app .bw-toolbar { padding:10px; }
  html[data-wm-desktop] .wm-existing-app .bw-toolbar-top { display:grid;grid-template-columns:minmax(0,1fr);gap:10px; }
  html[data-wm-desktop] .wm-existing-app .bw-tb-group { width:100%;padding:20px 10px 10px; }
  html[data-wm-desktop] .wm-existing-app .bw-tb-group-body { gap:8px; }
  html[data-wm-desktop] .wm-existing-app .bw-search-wrap { flex:1 1 100%;min-width:0; }
  html[data-wm-desktop] .wm-existing-app .bw-price-range { flex:1 1 100%; }
  html[data-wm-desktop] .wm-existing-app .bw-order-stats { max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.35; }
  html[data-wm-desktop] .wm-existing-app .bw-batch-header { display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:8px; }
  html[data-wm-desktop] .wm-existing-app .bw-batch-title,
  html[data-wm-desktop] .wm-existing-app .bw-batch-count-label { min-width:0;overflow-wrap:anywhere;line-height:1.35; }
  html[data-wm-desktop] .wm-existing-app .bw-batch-type-pills { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;margin-left:0; }
  html[data-wm-desktop] .wm-existing-app .bw-batch-type-pill { width:100%;min-width:0; }
}
@media (max-width: 720px) {
  html[data-wm-desktop] .wm-existing-app .bw-type-dd-trigger,
  html[data-wm-desktop] .wm-existing-app .bw-type-dd-trigger > span {
    flex:0 0 auto;
    min-width:max-content;
    white-space:nowrap;
  }
  html[data-wm-desktop] .wm-existing-app .bw-type-dd-trigger { gap:8px; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-wm-desktop] :is(button,a):active { transform:none!important; }
  html[data-wm-desktop] .wm-window .wm-launcher-card:active,
  html[data-wm-desktop] .wm-window :is(.wm-calendar-day,.wm-calendar-step,.wm-calendar-today):active { transform:none!important; }
  html[data-wm-desktop] .wm-launcher-card:hover,
  html[data-wm-desktop] .wm-launcher-card:focus-visible,
  html[data-wm-desktop] .wm-window-control:hover { transform:none!important; }
  html[data-wm-desktop] .wm-existing-app #bw-create-submit[aria-busy="true"]::after { animation:none; }
}
@media (pointer: coarse) {
  html[data-wm-desktop] .wm-existing-app .bw-toolbar button { min-height:48px; }
  html[data-wm-desktop] .wm-existing-app .bw-toolbar input:not([type="checkbox"]):not([type="radio"]) { min-height:48px; }
  html[data-wm-desktop] .wm-existing-app .bw-profile-card :is(.bw-status-btn,.bw-dur-btn,.bw-maintain-toggle) { min-height:48px; }
  html[data-wm-desktop] .wm-existing-app .bw-profile-card .bw-dur-btn { min-width:54px; }
  html[data-wm-desktop] .wm-existing-app .bw-round-pill { min-height:48px; }
  html[data-wm-desktop] .wm-existing-app :is(.bw-batch-input,.bw-mult-input) { min-height:48px; }
  html[data-wm-desktop] .wm-window .wm-existing-app button:not(.wm-window-control):not(.wm-resize-handle) { min-width:48px!important; }
  html[data-wm-desktop] .wm-mobile-menu { min-width:48px;min-height:48px; }
  html[data-wm-desktop] .wm-window .wm-existing-app button:not(.wm-window-control):not(.wm-resize-handle),
  html[data-wm-desktop] .wm-window .wm-existing-app input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  html[data-wm-desktop] .wm-window .wm-existing-app select,
  html[data-wm-desktop] .wm-window .wm-existing-app textarea,
  html[data-wm-desktop] .wm-os-nav-button { min-height:49px!important; }
  html[data-wm-desktop] .wm-window .wm-existing-app .bw-auc-modal-textarea { min-height:5.5rem!important; }
  html[data-wm-desktop] .wm-login-tags a { min-height:49px; }
  html[data-wm-desktop] .wm-main-window > #bw-scrollnav { display:none!important; }
}
/* Narrow or short layouts use native scrolling; keep floating shortcuts off form actions. */
@media (max-width:800px), (max-height:500px) {
  html[data-wm-desktop] .wm-main-window > #bw-scrollnav { display:none!important; }
}
html[data-wm-desktop] .wm-main-window { z-index:1;isolation:isolate; }
html[data-wm-desktop] .wm-os-workspace:has(.bw-auc-modal-overlay[aria-hidden="false"]) { z-index:60;overflow:visible; }
html[data-wm-desktop] .wm-main-window:has(.bw-auc-modal-overlay[aria-hidden="false"]) { overflow:visible; }
html[data-wm-desktop] .wm-main-content { z-index:3;isolation:isolate; }
html[data-wm-desktop] .wm-main-content:has(.bw-auc-modal-overlay[aria-hidden="false"]) { z-index:5;overflow:visible; }
html[data-wm-desktop] .wm-main-content > .bw-wrap,
html[data-wm-desktop] .wm-main-content .wm-existing-app { background:transparent!important; }
html[data-wm-desktop] .wm-existing-app .bw-profile-card { background:color-mix(in srgb,var(--wm-surface) 34%,transparent)!important;backdrop-filter:blur(1px); }
html[data-wm-desktop] .wm-existing-app .bw-toolbar { background:color-mix(in srgb,var(--wm-surface) 22%,transparent)!important; }
html[data-wm-desktop] .wm-existing-app .bw-tb-group { background:color-mix(in srgb,var(--wm-surface) 22%,transparent); }
html[data-wm-desktop] .wm-existing-app .bw-batch-panel,
html[data-wm-desktop] .wm-existing-app .bw-tr-panel { background:color-mix(in srgb,var(--wm-surface) 28%,transparent)!important;backdrop-filter:blur(1px); }

/* Keep reference motion visible in open space while giving dense business controls a quiet surface. */
html[data-wm-desktop] .wm-os-workspace[data-wm-business="true"] > .wm-orbit { opacity:.12; }
html[data-wm-desktop] .wm-main-window[data-wm-business="true"] .wm-existing-app :is(
  .bw-tr-panel,.bw-panel,.bw-auc-panel,.bw-quant-panel,.bw-profile-card,
  .bw-auction-card,.bw-inv-card,.bw-toolbar,.bw-tb-group,
  .bw-batch-panel
) {
  background:color-mix(in srgb,var(--wm-surface) 84%,transparent)!important;
  backdrop-filter:blur(1px);
}
html[data-wm-desktop] .wm-main-window[data-wm-business="true"] .wm-existing-app .bw-order-card {
  background:color-mix(in srgb,var(--wm-surface) 92%,transparent)!important;
  backdrop-filter:blur(1px);
}
@media (max-width: 1023px) {
  html[data-wm-desktop] .wm-os-workspace[data-wm-business="true"] > .wm-orbit { opacity:.1; }
}
@media (max-width: 767px) {
  html[data-wm-desktop] .wm-os-workspace[data-wm-business="true"] > .wm-orbit { opacity:.075; }
}

/* Tablet portrait leaves a sidebar beside a narrower workspace. Reflow the summary
   by the viewport so identity and status controls do not collapse into letter-width columns. */
@media (min-width: 721px) and (max-width: 959px) and (min-height: 481px) {
  html[data-wm-desktop] .wm-existing-app .bw-profile-card {
    display:grid!important;
    grid-template-columns:72px minmax(0,1fr);
    grid-template-areas:"avatar info" "panel panel";
    align-items:center;
    gap:12px 16px;
    padding:14px 16px;
  }
  html[data-wm-desktop] .wm-existing-app .bw-profile-card > .bw-avatar { grid-area:avatar;width:72px;height:72px; }
  html[data-wm-desktop] .wm-existing-app .bw-profile-info { grid-area:info;min-width:0;width:auto;flex:initial; }
  html[data-wm-desktop] .wm-existing-app .bw-profile-info > .bw-ign { display:block;min-width:0;overflow-wrap:anywhere;line-height:1.25; }
  html[data-wm-desktop] .wm-existing-app .bw-status-ctrl { min-width:0;width:100%;gap:8px; }
  html[data-wm-desktop] .wm-existing-app .bw-status-row { display:flex;min-width:0;gap:8px;flex-wrap:wrap;align-items:center; }
  html[data-wm-desktop] .wm-existing-app .bw-status-label { min-width:4em; }
  html[data-wm-desktop] .wm-existing-app .bw-profile-panel { grid-area:panel;box-sizing:border-box;width:100%;min-width:0;margin:0; }
}

/* Short landscape windows need the account summary and its controls in view together. */
@media (max-height: 480px) and (min-width: 768px) {
  html[data-wm-desktop] .wm-existing-app .bw-profile-card {
    display:grid!important;
    grid-template-columns:56px minmax(0,1fr) minmax(190px,230px);
    grid-template-areas:
      "avatar name panel"
      "avatar meta panel"
      "status status status";
    grid-template-rows:min-content min-content auto;
    align-items:center;
    gap:4px 10px;
    padding:8px 12px;
  }
  html[data-wm-desktop] .wm-existing-app .bw-profile-card > .bw-avatar { grid-area:avatar;width:56px;height:56px; }
  html[data-wm-desktop] .wm-existing-app .bw-profile-info { display:contents; }
  html[data-wm-desktop] .wm-existing-app .bw-profile-info > .bw-ign {
    grid-area:name;
    min-width:0;
    overflow-wrap:anywhere;
    font-size:14px;
    line-height:1.25;
  }
  html[data-wm-desktop] .wm-existing-app .bw-profile-info > .bw-meta {
    grid-area:meta;
    min-width:0;
    margin-top:0;
    gap:8px;
    font-size:10px;
    line-height:1.3;
  }
  html[data-wm-desktop] .wm-existing-app .bw-status-ctrl {
    grid-area:status;
    display:grid;
    gap:4px;
    min-width:0;
    margin-top:4px;
  }
  html[data-wm-desktop] .wm-existing-app .bw-status-row { min-width:0;gap:6px; }
  html[data-wm-desktop] .wm-existing-app .bw-status-label { min-width:44px;font-size:10px; }
  html[data-wm-desktop] .wm-existing-app .bw-profile-panel {
    grid-area:panel;
    width:100%;
    min-width:0;
    min-height:0;
    margin:0;
    padding:7px 8px;
  }
  html[data-wm-desktop] .wm-existing-app .bw-panel-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
    align-items:start;
    gap:3px;
  }
  html[data-wm-desktop] .wm-existing-app .bw-panel-stat { min-width:0;gap:2px; }
  html[data-wm-desktop] .wm-existing-app .bw-panel-label {
    overflow:hidden;
    font-size:10px;
    line-height:1.2;
    letter-spacing:.02em;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  html[data-wm-desktop] .wm-existing-app .bw-panel-val { font-size:13px;line-height:1.15; }
  html[data-wm-desktop] .wm-existing-app .bw-panel-ticker {
    margin-top:2px;
    padding-top:4px;
    gap:5px;
    font-size:9px;
    letter-spacing:.02em;
  }
}

/* Keep the JWT fallback control semantic, padded, and visible on both logins. */
html[data-wm-desktop] .wm-login-outer .bw-login-alt {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:4px 8px;
  margin:10px 0 0;
  color:var(--wm-muted);
  font-size:12px;
  line-height:1.5;
}
html[data-wm-desktop] .wm-login-outer .bw-login-alt-link {
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  min-height:44px;
  margin:0;
  padding:8px 12px;
  border:1px solid var(--wm-line);
  border-radius:2px;
  background:transparent;
  color:var(--wm-primary-text);
  font:600 12px/1.35 var(--wm-font);
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
  transition:color .16s ease,background-color .16s ease,border-color .16s ease,transform .16s ease;
}
html[data-wm-desktop] .wm-login-outer .bw-login-alt-link:hover {
  border-color:var(--wm-primary);
  background:var(--wm-primary);
  color:var(--wm-primary-contrast);
}
@media (pointer:coarse), (max-width:767px) {
  html[data-wm-desktop] .wm-login-outer .bw-login-alt-link {
    min-height:48px;
    padding:10px 12px;
  }
}

/* The sign-in screen is one workspace panel: editorial context on the left, account access on the right. */
html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content {
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:clamp(18px,3vw,42px)!important;
}

@media (max-width:900px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content {
    display:block;
    padding:12px!important;
  }
  html[data-wm-desktop] .wm-login-outer {
    width:min(720px,100%);
    min-height:0;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto;
    margin:0 auto;
    overflow:hidden;
  }
  html[data-wm-desktop] .wm-login-intro {
    grid-column:1;
    align-self:auto;
    padding:28px clamp(22px,5vw,40px);
    border-right:0;
    border-bottom:1px solid var(--wm-line);
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-page {
    grid-column:1;
    height:auto!important;
    min-height:0!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-card { min-height:0; }
  html[data-wm-desktop] .wm-login-outer .bw-login-body { padding:26px clamp(22px,5vw,40px)!important; }
}

@media (max-width:560px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content { padding:8px!important; }
  html[data-wm-desktop] .wm-login-outer { width:100%; }
  html[data-wm-desktop] .wm-login-intro { padding:22px 20px 20px; }
  html[data-wm-desktop] .wm-login-intro h1 { margin:8px 0 10px;font-size:clamp(27px,8vw,32px); }
  html[data-wm-desktop] .wm-login-intro p { font-size:12px;line-height:1.7; }
  html[data-wm-desktop] .wm-login-tags { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:18px; }
  html[data-wm-desktop] .wm-login-tags a { min-height:48px;padding:8px 6px;font-size:13px;text-align:center; }
  html[data-wm-desktop] .wm-login-outer .bw-login-hero { gap:12px;padding:18px 20px!important; }
  html[data-wm-desktop] .wm-login-outer .bw-login-logo-img { width:40px;height:40px; }
  html[data-wm-desktop] .wm-login-outer .bw-login-title { font-size:14px!important; }
  html[data-wm-desktop] .wm-login-outer .bw-login-body { padding:22px 20px!important; }
  html[data-wm-desktop] .wm-login-outer .bw-field { margin-bottom:13px; }
  html[data-wm-desktop] .wm-login-outer .bw-login-footer { margin-top:16px!important;padding-top:13px!important; }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt { justify-content:flex-start; }
}

@media (max-height:480px) and (min-width:768px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content {
    display:flex;
    justify-content:center;
    padding:6px 10px!important;
  }
  html[data-wm-desktop] .wm-login-outer {
    width:min(820px,100%);
    min-height:0;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto;
    margin:auto;
  }
  html[data-wm-desktop] .wm-login-intro { display:none!important; }
  html[data-wm-desktop] .wm-login-outer .bw-login-page { grid-column:1;height:auto!important;min-height:0!important; }
  html[data-wm-desktop] .wm-login-outer .bw-login-card { min-height:0; }
  html[data-wm-desktop] .wm-login-outer .bw-login-hero { min-height:0;padding:10px 18px!important; }
  html[data-wm-desktop] .wm-login-outer .bw-login-logo-img,
  html[data-wm-desktop] .wm-login-outer .bw-login-sub,
  html[data-wm-desktop] .wm-login-outer .bw-login-footer { display:none!important; }
  html[data-wm-desktop] .wm-login-outer .bw-login-body { padding:12px 18px!important; }
  html[data-wm-desktop] .wm-login-outer .bw-field { margin-bottom:8px; }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt { margin-top:4px; }
}

/* Give authentication its own wide, balanced composition instead of the legacy single-column strip. */
@media (min-width:768px) {
  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-content:flex-start;
    align-items:start;
    column-gap:20px;
    row-gap:0;
  }
  html[data-wm-desktop] .wm-login-outer .bw-field { min-width:0;margin-bottom:18px; }
  html[data-wm-desktop] .wm-login-outer .bw-login-btn,
  html[data-wm-desktop] .wm-login-outer .bw-login-alt,
  html[data-wm-desktop] .wm-login-outer .bw-login-mode,
  html[data-wm-desktop] .wm-login-outer .bw-login-err,
  html[data-wm-desktop] .wm-login-outer .bw-login-footer { grid-column:1 / -1; }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt {
    justify-content:space-between;
    gap:16px;
    margin:4px 0 0;
    padding-bottom:16px;
    border-bottom:1px solid var(--wm-soft-line);
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel {
    margin-top:18px;
    padding:18px;
    border:1px solid var(--wm-line);
    background:var(--wm-paper)!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-steps {
    column-count:2;
    column-gap:32px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-steps li {
    break-inside:avoid;
    padding:0 0 8px 2px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-footer {
    margin-top:18px!important;
    padding:14px 16px!important;
    border:1px solid var(--wm-soft-line);
    border-left:2px solid var(--wm-muted);
    background:color-mix(in srgb,var(--wm-paper) 72%,var(--wm-surface));
  }
}

@media (max-width:767px) {
  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    display:flex!important;
    flex-direction:column;
    align-items:stretch;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-footer {
    padding:13px 14px!important;
    border:1px solid var(--wm-soft-line);
    border-left:2px solid var(--wm-muted);
    background:color-mix(in srgb,var(--wm-paper) 72%,var(--wm-surface));
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-steps { column-count:1; }
}

/* Remove the old staged fade that briefly hid login controls during the workspace's first paint. */
html[data-wm-desktop] .wm-login-outer .bw-login-hero,
html[data-wm-desktop] .wm-login-outer .bw-login-logo-img,
html[data-wm-desktop] .wm-login-outer .bw-login-title,
html[data-wm-desktop] .wm-login-outer .bw-login-sub,
html[data-wm-desktop] .wm-login-outer .bw-login-body {
  opacity:1!important;
  animation:none!important;
  transform:none!important;
}
html[data-wm-desktop] .wm-login-outer .bw-login-hero {
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  grid-template-rows:auto auto;
  align-content:center;
  align-items:center;
  column-gap:16px;
  row-gap:4px;
}
html[data-wm-desktop] .wm-login-outer .bw-login-logo-img { grid-column:1;grid-row:1 / span 2; }
html[data-wm-desktop] .wm-login-outer .bw-login-title { grid-column:2;grid-row:1;white-space:nowrap; }
html[data-wm-desktop] .wm-login-outer .bw-login-sub { grid-column:2;grid-row:2;margin:0!important;white-space:nowrap; }

/* On short landscape screens, place the primary and fallback actions on one accessible row. */
@media (max-height:480px) and (min-width:768px) {
  html[data-wm-desktop] .wm-login-outer .bw-login-hero { display:flex; }
  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:14px;
    padding:8px 14px!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-field { margin-bottom:8px; }
  html[data-wm-desktop] .wm-login-outer .bw-field label { margin-bottom:2px; }
  html[data-wm-desktop] .wm-login-outer .bw-field input { min-height:42px;padding:8px 10px; }
  html[data-wm-desktop] .wm-login-outer .bw-login-btn {
    grid-column:1;
    align-self:start;
    min-height:48px!important;
    margin-top:0;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt {
    grid-column:2;
    min-height:48px;
    margin:0!important;
    padding:0!important;
    border:0!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt-link { min-height:48px;padding:10px 12px; }
}

@media (max-width:560px) {
  html[data-wm-desktop] .wm-login-outer .bw-login-hero {
    display:grid!important;
    grid-template-columns:40px minmax(0,1fr);
    grid-template-rows:auto auto;
    column-gap:12px;
    row-gap:3px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-title { grid-column:2;grid-row:1;white-space:nowrap; }
  html[data-wm-desktop] .wm-login-outer .bw-login-sub {
    grid-column:2;
    grid-row:2;
    margin:0!important;
    font-size:10px!important;
    letter-spacing:.03em!important;
    white-space:nowrap;
  }
}

@media (max-width:560px) and (max-height:700px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content { padding:8px!important; }
  html[data-wm-desktop] .wm-login-intro { padding:14px 16px 12px; }
  html[data-wm-desktop] .wm-login-intro h1 { margin:6px 0 7px;font-size:25px;line-height:1.1; }
  html[data-wm-desktop] .wm-login-intro p { font-size:11px;line-height:1.45; }
  html[data-wm-desktop] .wm-login-tags { gap:5px;margin-top:12px; }
  html[data-wm-desktop] .wm-login-tags a { min-height:44px;padding:6px 5px;font-size:13px; }
  html[data-wm-desktop] .wm-login-outer .bw-login-hero { padding:12px 16px!important; }
  html[data-wm-desktop] .wm-login-outer .bw-login-logo-img { width:36px;height:36px; }
  html[data-wm-desktop] .wm-login-outer .bw-login-body { padding:14px 16px!important; }
  html[data-wm-desktop] .wm-login-outer .bw-field { margin-bottom:8px; }
  html[data-wm-desktop] .wm-login-outer .bw-field label { margin-bottom:4px; }
  html[data-wm-desktop] .wm-login-outer .bw-field input { min-height:44px;padding:10px 12px; }
  html[data-wm-desktop] .wm-login-outer .bw-login-btn { min-height:48px!important; }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt { margin-top:2px; }
}

@media (max-height:480px) and (min-width:768px) {
  html[data-wm-desktop] .wm-login-outer,
  html[data-wm-desktop] .wm-login-outer .bw-login-card { overflow:visible!important; }
}

/* r70: Let the welcome title wrap inside its editorial column at all desktop widths. */
html[data-wm-desktop] .wm-login-intro h1 {
  max-width:14ch;
  font-size:clamp(24px,2.4vw,34px);
  line-height:1.2;
  letter-spacing:-.04em;
  text-wrap:balance;
  white-space:normal;
}
@media (max-width:560px) {
  html[data-wm-desktop] .wm-login-intro h1 { font-size:clamp(24px,7.2vw,30px); }
  html[data-wm-desktop] .wm-login-tags { display:none; }
}

/* r55: Give sign-in its own broad, intentional composition. Keep the JWT guide and
   token controls beside each other on desktop so opening help does not create a tall strip. */
@media (min-width:901px) {
  html[data-wm-desktop] .wm-login-outer {
    width:min(1380px,100%);
    min-height:clamp(520px,66vh,680px);
    grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);
    grid-template-rows:auto;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-page {
    height:auto!important;
    min-height:0!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-card {
    height:auto;
    min-height:0!important;
  }
  html[data-wm-desktop] .wm-login-intro {
    padding:clamp(30px,3.3vw,50px);
  }
  html[data-wm-desktop] .wm-login-intro h1 {
    font-size:clamp(25px,2.4vw,36px);
    letter-spacing:-.045em;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-hero {
    min-height:88px;
    padding:20px clamp(28px,2.8vw,42px)!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    padding:clamp(26px,2.6vw,40px)!important;
    row-gap:8px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-field { margin-bottom:12px; }
  html[data-wm-desktop] .wm-login-outer .bw-field input { min-height:54px; }
  html[data-wm-desktop] .wm-login-outer .bw-login-btn { min-height:54px!important; }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt {
    min-height:48px;
    margin:0!important;
    padding:0 0 12px!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-footer {
    margin-top:12px!important;
    padding:12px 14px!important;
    line-height:1.6;
  }
}

@media (min-width:1024px) {
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel {
    display:grid;
    grid-template-columns:minmax(0,1.16fr) minmax(0,.84fr);
    grid-template-rows:auto auto auto;
    align-items:start;
    column-gap:20px;
    row-gap:10px;
    margin-top:14px;
    padding:16px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-quick {
    grid-column:1 / -1;
    margin:0;
    padding:0 0 10px;
    border-bottom:1px solid var(--wm-soft-line);
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-quick code {
    padding:.12em .38em;
    border:1px solid var(--wm-line);
    background:var(--wm-paper)!important;
    color:var(--wm-ink)!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-details {
    grid-column:1;
    grid-row:2 / span 2;
    min-width:0;
    margin:0;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-details summary {
    padding:8px 0;
    color:var(--wm-muted)!important;
    font-size:12px;
    font-weight:600;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-details[open] summary {
    color:var(--wm-ink)!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-hint {
    margin-top:6px;
    padding:12px 14px;
    background:color-mix(in srgb,var(--wm-paper) 72%,var(--wm-surface))!important;
    font-size:12px;
    line-height:1.55;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-hint b { color:var(--wm-ink)!important; }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-hint code,
  html[data-wm-desktop] .wm-login-outer .bw-jwt-steps li::before,
  html[data-wm-desktop] .wm-login-outer .bw-jwt-steps kbd {
    color:var(--wm-accent-text)!important;
    border-color:var(--wm-line)!important;
    background:var(--wm-surface)!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-steps {
    column-count:1;
    column-gap:20px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-steps li {
    padding-bottom:6px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel > .bw-field {
    grid-column:2;
    grid-row:2;
    min-width:0;
    margin:0;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel > .bw-jwt-btn {
    grid-column:2;
    grid-row:3;
    align-self:start;
    min-height:50px!important;
    margin:0;
  }
}

@media (min-width:1180px) {
  html[data-wm-desktop] .wm-login-outer .bw-jwt-steps { column-count:2; }
}

@media (max-width:1023px) {
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel {
    display:flex;
    flex-direction:column;
    gap:10px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-quick { margin:0; }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-quick code {
    padding:.12em .38em;
    border:1px solid var(--wm-line);
    background:var(--wm-paper)!important;
    color:var(--wm-ink)!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-details { margin:0; }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-steps { column-count:1; }
}

@media (max-height:480px) and (min-width:768px) {
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel {
    display:grid;
    grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
    column-gap:14px;
    row-gap:6px;
    padding:12px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-quick { grid-column:1 / -1; }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-details { grid-column:1;grid-row:2 / span 2; }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel > .bw-field { grid-column:2;grid-row:2; }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel > .bw-jwt-btn { grid-column:2;grid-row:3; }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-details[open] .bw-jwt-hint {
    max-height:132px;
    overflow:auto;
    overscroll-behavior:contain;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-steps { column-count:1; }
}

@media (max-width:767px) {
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel {
    display:flex;
    flex-direction:column;
    gap:8px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-steps { column-count:1; }
}

/* When the fallback panel is expanded, anchor a growing login card to the scroll start. */
html[data-wm-desktop] .wm-main-window[data-wm-business="false"]:has(#bw-jwt-toggle[aria-expanded="true"]) > .wm-main-content {
  justify-content:flex-start;
}
html[data-wm-desktop] .wm-main-window[data-wm-business="false"]:has(#bw-jwt-toggle[aria-expanded="true"]) .wm-login-outer {
  flex-shrink:0;
  height:max-content!important;
  min-height:0!important;
  overflow:visible!important;
}
html[data-wm-desktop] .wm-main-window[data-wm-business="false"]:has(#bw-jwt-toggle[aria-expanded="true"]) .wm-login-outer .bw-login-page,
html[data-wm-desktop] .wm-main-window[data-wm-business="false"]:has(#bw-jwt-toggle[aria-expanded="true"]) .wm-login-outer .bw-login-card {
  height:max-content!important;
  min-height:0!important;
  overflow:visible!important;
}
html[data-wm-desktop] .wm-main-window[data-wm-business="false"]:has(#bw-jwt-toggle[aria-expanded="true"]) .wm-login-outer .bw-login-body {
  flex:0 0 auto;
}
@media (max-height:480px) and (min-width:768px) {
  html[data-wm-desktop] .wm-login-outer { grid-template-rows:auto; }
}

/* r60: Give account and JWT sign-in distinct, balanced panels inside one broad workspace. */
@media (min-width:901px) {
  html[data-wm-desktop] .wm-login-outer {
    grid-template-columns:minmax(300px,.55fr) minmax(0,1.45fr);
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    display:grid!important;
    grid-template-columns:minmax(0,1fr);
    gap:16px;
    align-items:stretch;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method {
    box-sizing:border-box;
    min-width:0;
    padding:clamp(20px,2.2vw,30px);
    border:1px solid var(--wm-line);
    background:var(--wm-surface);
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary {
    border-top:2px solid var(--wm-primary);
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt {
    background:var(--wm-paper);
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-heading {
    margin:0 0 22px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-step {
    display:block;
    color:var(--wm-muted);
    font-size:11px;
    font-weight:600;
    letter-spacing:.16em;
    line-height:1.5;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-heading h2 {
    margin:8px 0 6px;
    color:var(--wm-ink);
    font-family:var(--wm-font);
    font-size:clamp(18px,1.45vw,22px);
    font-weight:500;
    letter-spacing:-.025em;
    line-height:1.3;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-heading p {
    margin:0;
    color:var(--wm-muted)!important;
    font-size:12px;
    line-height:1.7;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-route {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    min-height:48px;
    margin:0 0 18px;
    padding:10px 12px;
    border:1px solid var(--wm-line);
    background:var(--wm-surface);
    color:var(--wm-muted);
    font-size:11px;
    font-weight:600;
    letter-spacing:.08em;
    line-height:1.5;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-route i {
    color:var(--wm-accent-text);
    font-style:normal;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:16px;
    align-content:start;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading,
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-login-btn {
    grid-column:1 / -1;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field {
    min-width:0;
    margin-bottom:14px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-login-btn {
    margin-top:2px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    margin:0!important;
    padding:0!important;
    color:var(--wm-muted)!important;
    font-size:11px;
    line-height:1.6;
    text-align:left;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt-link {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    min-width:168px;
    min-height:48px;
    padding:10px 14px;
    border:1px solid var(--wm-line);
    background:var(--wm-surface);
    color:var(--wm-ink)!important;
    font:600 11px/1.4 var(--wm-font);
    text-decoration:none;
    text-align:center;
    transition:background-color .18s ease,border-color .18s ease,color .18s ease;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt-link:hover {
    border-color:var(--wm-primary);
    background:var(--wm-primary);
    color:var(--wm-primary-contrast)!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-err,
  html[data-wm-desktop] .wm-login-outer .bw-login-footer {
    grid-column:1 / -1;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-err { margin:0; }
  html[data-wm-desktop] .wm-login-outer .bw-login-footer {
    margin:0!important;
    padding:12px 14px!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel {
    margin-top:16px;
    padding:16px;
    border:1px solid var(--wm-line);
    background:var(--wm-surface)!important;
  }
}

@media (min-width:1280px) {
  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    column-gap:20px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary {
    grid-column:1;
    align-content:center;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt {
    grid-column:2;
    display:flex;
    flex-direction:column;
    align-items:stretch;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-auth-heading { margin-bottom:18px; }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-auth-route {
    margin-top:auto;
    margin-bottom:16px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-login-alt {
    grid-template-columns:1fr;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt-link { width:100%; }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel {
    display:grid!important;
    grid-template-columns:minmax(0,1.18fr) minmax(132px,.82fr);
    grid-template-rows:auto auto auto;
    align-items:start;
    column-gap:12px;
    row-gap:10px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-quick { grid-column:1 / -1;margin:0; }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-details { grid-column:1;grid-row:2 / span 2;min-width:0;margin:0; }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-hint { max-height:72px;overflow:auto;overscroll-behavior:contain; }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel > .bw-field { grid-column:2;grid-row:2;min-width:0;width:100%;margin:0; }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel > .bw-jwt-btn { grid-column:2;grid-row:3;width:100%;margin:0; }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-steps { column-count:1; }
}

@media (max-width:900px) {
  html[data-wm-desktop] .wm-login-outer {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto;
  }
  html[data-wm-desktop] .wm-login-intro {
    grid-column:1;
    border-right:0;
    border-bottom:1px solid var(--wm-line);
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-page {
    grid-column:1;
    height:auto!important;
    min-height:0!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    grid-template-columns:minmax(0,1fr);
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method {
    box-sizing:border-box;
    min-width:0;
    padding:20px 18px;
    border:1px solid var(--wm-line);
    background:var(--wm-surface);
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary { border-top:2px solid var(--wm-primary); }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt { background:var(--wm-paper); }
  html[data-wm-desktop] .wm-login-outer .bw-auth-heading { margin:0 0 16px; }
  html[data-wm-desktop] .wm-login-outer .bw-auth-step {
    display:block;
    color:var(--wm-muted);
    font-size:9px;
    font-weight:600;
    letter-spacing:.16em;
    line-height:1.5;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-heading h2 {
    margin:8px 0 6px;
    color:var(--wm-ink);
    font-family:var(--wm-font);
    font-size:20px;
    font-weight:500;
    letter-spacing:-.025em;
    line-height:1.3;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-heading p {
    margin:0;
    color:var(--wm-muted)!important;
    font-size:12px;
    line-height:1.7;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-route {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:7px;
    min-height:44px;
    margin:0 0 14px;
    padding:9px 10px;
    border:1px solid var(--wm-line);
    background:var(--wm-surface);
    color:var(--wm-muted);
    font-size:11px;
    font-weight:600;
    letter-spacing:.06em;
    line-height:1.5;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-route i { color:var(--wm-accent-text);font-style:normal; }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary {
    grid-template-columns:minmax(0,1fr);
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading,
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-login-btn,
  html[data-wm-desktop] .wm-login-outer .bw-login-err,
  html[data-wm-desktop] .wm-login-outer .bw-login-footer {
    grid-column:1;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:8px;
    margin:0!important;
    padding:0!important;
    color:var(--wm-muted)!important;
    font-size:11px;
    line-height:1.6;
    text-align:left;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt-link { width:100%; }
}

@media (max-width:560px) {
  html[data-wm-desktop] .wm-login-outer .bw-auth-method { padding:18px 16px; }
  html[data-wm-desktop] .wm-login-outer .bw-auth-heading { margin-bottom:16px; }
  html[data-wm-desktop] .wm-login-outer .bw-auth-route { gap:6px;padding:9px 10px;font-size:8px; }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt-link { min-height:48px; }
}

html[data-wm-desktop] .wm-login-outer .bw-jwt-autofill-note {
  margin-top:0!important;
  padding:8px 10px;
  border-left:2px solid var(--wm-accent);
  background:color-mix(in srgb,var(--wm-accent) 7%,var(--wm-surface));
  color:var(--wm-ink)!important;
}
@media (min-width:1024px) {
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel:has(> .bw-jwt-autofill-note) { grid-template-rows:auto auto auto auto; }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel:has(> .bw-jwt-autofill-note) .bw-jwt-details { grid-row:3 / span 2; }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel:has(> .bw-jwt-autofill-note) > .bw-field { grid-row:3; }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel:has(> .bw-jwt-autofill-note) > .bw-jwt-btn { grid-row:4; }
}

/* r63: Preserve JWT actions in the visible work area on standard-height desktops. */
@media (min-width:1280px) and (max-height:940px) {
  html[data-wm-desktop] .wm-login-outer .bw-auth-method { padding-block:clamp(18px,1.8vw,26px); }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-auth-heading { margin-bottom:14px; }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-auth-route { min-height:44px;margin-bottom:12px;padding-block:8px; }
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel { margin-top:12px;padding-block:12px; }
}

/* r66: keep the welcome title, account fields, and footer in medium desktop windows. */
@media (min-width:1280px) and (max-width:1499px) {
  html[data-wm-desktop] .wm-login-intro h1 {
    max-width:10ch;
    font-size:clamp(28px,2.4vw,34px);
    white-space:normal!important;
    overflow-wrap:normal;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary {
    grid-template-columns:minmax(0,1fr);
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method {
    padding-block:16px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading,
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field,
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-login-btn {
    grid-column:1;
    min-width:0;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-footer {
    margin-top:12px!important;
    padding-block:8px!important;
  }
}

@media (min-width:1280px) and (max-width:1499px) and (min-height:600px) {
  html[data-wm-desktop] .wm-login-outer {
    min-height:clamp(588px,76vh,620px);
  }
}

/* r67: Give the account form a generous desktop column and keep JWT guidance contained. */
@media (min-width:1200px) {
  html[data-wm-desktop] .wm-login-outer {
    width:min(1280px,100%);
    min-height:clamp(520px,74vh,660px);
    grid-template-columns:minmax(280px,.58fr) minmax(0,1.42fr);
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    grid-template-columns:minmax(0,1.22fr) minmax(270px,.78fr);
    align-content:center;
    align-items:stretch;
    gap:clamp(14px,1.6vw,24px);
    padding:clamp(22px,2.4vw,36px)!important;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method {
    min-height:0;
    padding:clamp(22px,2.5vw,34px);
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary {
    grid-template-columns:minmax(0,1fr);
    align-content:center;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading,
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field,
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-login-btn {
    grid-column:1;
    min-width:0;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading {
    margin-bottom:clamp(18px,2vw,28px);
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field {
    margin-bottom:18px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-field input,
  html[data-wm-desktop] .wm-login-outer .bw-login-btn {
    min-height:56px!important;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-auth-heading {
    margin-bottom:16px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-auth-route {
    margin:0 0 14px;
    overflow-wrap:anywhere;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-login-alt {
    grid-template-columns:minmax(0,1fr);
    gap:12px;
    margin-top:auto!important;
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-alt-link {
    width:100%;
    min-width:0;
    min-height:52px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel {
    grid-template-columns:minmax(0,1fr);
    row-gap:12px;
    margin-top:16px;
    padding:16px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-jwt-quick {
    grid-column:1;
    overflow-wrap:anywhere;
  }

  html[data-wm-desktop] .wm-login-outer .bw-jwt-details,
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel>.bw-field,
  html[data-wm-desktop] .wm-login-outer .bw-jwt-panel>.bw-jwt-btn {
    grid-column:1;
    grid-row:auto;
    min-width:0;
    width:100%;
  }

  html[data-wm-desktop] .wm-login-outer .bw-jwt-details[open] .bw-jwt-hint {
    max-height:clamp(140px,24vh,220px);
    overflow:auto;
    overscroll-behavior:contain;
  }

  html[data-wm-desktop] .wm-login-outer .bw-jwt-steps {
    column-count:1;
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-footer {
    margin-top:0!important;
  }

  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-login-body {
    grid-template-columns:minmax(0,1fr);
    align-content:start;
  }

  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-auth-method-primary {
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-content:start;
  }

  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-auth-method-primary .bw-auth-heading,
  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-auth-method-primary .bw-login-btn {
    grid-column:1 / -1;
  }

  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-auth-method-primary .bw-field {
    grid-column:auto;
    margin-bottom:0;
  }

  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-auth-method-jwt {
    grid-column:1;
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr);
    grid-template-rows:auto auto auto;
    align-items:center;
    column-gap:clamp(16px,2vw,28px);
    row-gap:16px;
  }

  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-auth-method-jwt .bw-auth-heading {
    grid-column:1;
    grid-row:1;
    margin:0;
  }

  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-auth-method-jwt .bw-auth-route {
    grid-column:1;
    grid-row:2;
    margin:0;
  }

  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-auth-method-jwt .bw-login-alt {
    grid-column:2;
    grid-row:1 / span 2;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:center;
    margin:0!important;
  }

  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-login-mode {
    grid-column:1 / -1;
    grid-row:3;
    min-width:0;
  }

  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-jwt-panel {
    grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr);
    grid-template-rows:auto auto auto;
    align-items:start;
    column-gap:clamp(16px,2vw,28px);
    row-gap:12px;
  }

  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-jwt-quick,
  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-jwt-autofill-note {
    grid-column:1 / -1;
  }

  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-jwt-details {
    grid-column:1;
    grid-row:auto;
  }

  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-jwt-panel>.bw-field,
  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-jwt-panel>.bw-jwt-btn {
    grid-column:2;
    grid-row:auto;
  }

  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-jwt-details[open] .bw-jwt-hint {
    max-height:clamp(240px,40vh,360px);
  }

  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-login-footer {
    margin-top:0!important;
  }
}

@media (min-width:1200px) and (max-height:760px) {
  html[data-wm-desktop] .wm-login-outer {
    min-height:500px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method {
    padding-block:20px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading {
    margin-bottom:16px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field {
    margin-bottom:14px;
  }
}

/* r68: Keep pointer and keyboard geometry changes immediate despite window transitions. */
html[data-wm-desktop] .wm-window.wm-is-dragging,
html[data-wm-desktop] .wm-window.wm-is-resizing,
html[data-wm-desktop] .wm-window.wm-is-keyboard-moving,
html[data-wm-desktop] .wm-window.wm-is-keyboard-resizing {
  transition:none!important;
}

/* r69: Give the primary sign-in card more width while keeping the JWT fallback in view. */
@media (min-width:1200px) {
  html[data-wm-desktop] .wm-login-outer {
    grid-template-columns:minmax(250px,.44fr) minmax(0,1.56fr);
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    grid-template-columns:minmax(0,1.45fr) minmax(280px,.95fr);
    align-content:center;
    align-items:stretch;
    column-gap:clamp(14px,1.5vw,20px);
    padding:clamp(18px,2vw,30px)!important;
  }

  html[data-wm-desktop] .wm-login-intro {
    padding:clamp(26px,2.8vw,40px);
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary {
    grid-column:1;
    min-width:0;
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:clamp(20px,2vw,28px);
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading,
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-login-btn {
    grid-column:1 / -1;
    min-width:0;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field {
    grid-column:auto;
    min-width:0;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading {
    margin-bottom:clamp(16px,1.7vw,24px);
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field {
    margin-bottom:18px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-login-btn {
    margin-top:0;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt {
    grid-column:2;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    padding:clamp(18px,1.8vw,24px);
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-auth-heading {
    margin-bottom:14px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-auth-route {
    min-width:0;
    margin:0 0 14px;
    overflow-wrap:anywhere;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-login-alt {
    grid-template-columns:minmax(0,1fr);
    gap:10px;
    min-width:0;
    margin-top:auto!important;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-login-alt-link {
    width:100%;
    min-width:0;
    min-height:52px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-footer {
    padding:10px 12px!important;
    font-size:10px;
    line-height:1.5;
  }
}

@media (min-width:1200px) and (max-height:760px) {
  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    padding-block:14px!important;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method {
    padding-block:16px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading {
    margin-bottom:14px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field {
    margin-bottom:12px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-footer {
    padding-block:7px!important;
    line-height:1.4;
  }
}

/* r73: Give sign-in a complete, spacious workspace composition at wide desktop sizes. */
@media (min-width:1200px) {
  html[data-wm-desktop] .wm-login-outer {
    width:min(1280px,100%);
    min-height:clamp(520px,74vh,660px);
    grid-template-columns:minmax(250px,.44fr) minmax(0,1.56fr);
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-hero {
    min-height:88px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    grid-template-columns:minmax(0,1.45fr) minmax(280px,.95fr);
    align-content:center;
    align-items:stretch;
    gap:clamp(14px,1.5vw,20px);
    padding:clamp(18px,2vw,30px)!important;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method {
    padding:clamp(20px,2vw,28px);
    transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary {
    border-top-width:2px;
    background:color-mix(in srgb,var(--wm-surface) 94%,var(--wm-paper));
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary:hover {
    border-color:var(--wm-line);
    border-top-color:var(--wm-primary);
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt {
    background:color-mix(in srgb,var(--wm-paper) 74%,var(--wm-surface));
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-heading h2 {
    font-size:clamp(18px,1.45vw,22px);
    line-height:1.3;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-heading p {
    max-width:42ch;
    font-size:12px;
    line-height:1.75;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading {
    margin-bottom:clamp(16px,1.7vw,24px);
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field label {
    margin-bottom:7px;
    font-size:11px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field input {
    min-height:56px!important;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-login-btn {
    min-height:54px!important;
    margin-top:2px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-route {
    justify-content:space-between;
    gap:4px;
    min-height:44px;
    margin-bottom:14px;
    padding:8px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-route span {
    padding:3px 4px;
    border:1px solid var(--wm-soft-line);
    background:var(--wm-surface);
    font-size:8px;
    letter-spacing:.04em;
    white-space:nowrap;
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-alt-link {
    min-height:48px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-footer {
    margin-top:0!important;
    padding:10px 12px!important;
    font-size:10px;
    line-height:1.5;
  }

  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-login-body {
    grid-template-columns:minmax(0,1fr);
    align-content:start;
  }

}

@media (min-width:901px) and (max-width:1199px) {
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading h2,
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-auth-heading h2 {
    font-size:20px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field input {
    min-height:56px;
  }
}

@media (max-width:900px) {
  html[data-wm-desktop] .wm-login-outer {
    width:min(780px,100%);
    min-height:0;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    gap:16px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method {
    padding:clamp(20px,4vw,28px);
  }
}

@media (max-width:560px) {
  html[data-wm-desktop] .wm-login-outer .bw-login-hero {
    min-height:74px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field input {
    min-height:54px;
    padding:12px 14px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-route {
    justify-content:flex-start;
  }
}

@media (max-height:480px) and (min-width:561px) {
  html[data-wm-desktop] .wm-login-intro,
  html[data-wm-desktop] .wm-login-outer .bw-login-footer {
    display:none!important;
  }

  html[data-wm-desktop] .wm-login-outer {
    min-height:0;
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-hero {
    min-height:0;
    padding:2px 14px!important;
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    display:grid!important;
    grid-template-columns:minmax(0,1fr);
    gap:8px;
    padding:8px 12px!important;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    column-gap:12px;
    padding:10px 12px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading,
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-login-btn {
    grid-column:1 / -1;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading {
    margin:0 0 8px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading p {
    display:none;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field {
    min-width:0;
    margin:0;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field label {
    margin-bottom:3px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field input {
    min-height:44px!important;
    padding:9px 10px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-login-btn {
    min-height:46px!important;
    margin-top:8px;
  }
}

html[data-wm-desktop] .wm-main-window .wm-login-outer .bw-login-btn:disabled,
html[data-wm-desktop] .wm-main-window .wm-login-outer .bw-login-btn:disabled:hover,
html[data-wm-desktop] .wm-main-window .wm-login-outer .bw-login-btn:disabled:active {
  opacity:1!important;
  border-color:var(--wm-muted)!important;
  background:var(--wm-muted)!important;
  color:var(--wm-paper)!important;
  filter:none!important;
  cursor:not-allowed!important;
}
html[data-wm-desktop] .wm-main-window .wm-login-outer .bw-login-btn[aria-busy="true"] { cursor:progress!important; }
html[data-wm-desktop] .wm-main-window .wm-login-outer .bw-login-btn[aria-busy="true"]::after {
  content:"";
  position:absolute;
  top:50%;right:18px;
  width:13px;height:13px;margin-top:-6.5px;
  border:1.5px solid currentColor;border-right-color:transparent;
  border-radius:50%;
  animation:wm-login-busy-spin .72s linear infinite;
  pointer-events:none;
}
@keyframes wm-login-busy-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html[data-wm-desktop] .wm-main-window .wm-login-outer .bw-login-btn[aria-busy="true"]::after { animation:none; }
}

html[data-wm-desktop] .wm-os-rail :is(.wm-os-nav-link,.wm-os-nav-button) {
  font:var(--wm-rail-label-font);
  letter-spacing:normal;
}

/* r83: reserve an unobstructed orbit lane beside desktop login workspaces. */
@media (min-width:1200px) {
  html[data-wm-desktop] .wm-os-workspace[data-wm-business="false"] {
    --wm-login-orbit-space:clamp(320px,26vw,460px);
  }

  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content {
    align-items:flex-start;
  }

  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content > .wm-login-outer {
    align-self:flex-start;
    width:min(1280px,calc(100% - var(--wm-login-orbit-space)));
    margin-block:auto;
    margin-inline:0;
    grid-template-columns:minmax(230px,.44fr) minmax(0,1.56fr);
  }

  html[data-wm-desktop] .wm-os-workspace[data-wm-business="false"] > .wm-orbit {
    right:clamp(16px,1.6vw,24px);
    width:min(26vw,calc(var(--wm-login-orbit-space) - 32px));
  }
}

@media (min-width:1600px) {
  html[data-wm-desktop] .wm-os-workspace[data-wm-business="false"] {
    --wm-login-orbit-space:clamp(320px,26vw,460px);
  }
}

@media (min-width:1200px) and (max-width:1599px) {
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary {
    grid-template-columns:minmax(0,1fr);
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading,
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field,
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-login-btn {
    grid-column:1;
    min-width:0;
  }
}

@media (min-width:1200px) and (max-width:1365px) {
  html[data-wm-desktop] .wm-main-window .wm-login-intro {
    display:none!important;
  }

  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content > .wm-login-outer {
    grid-template-columns:minmax(0,1fr);
  }
}
html[data-wm-desktop] .wm-os-rail :is(.wm-os-nav-link,.wm-os-nav-button) > span:not(.wm-active-dot) {
  font:inherit;
  letter-spacing:inherit;
}
/* r98: make disabled rail entries read as unavailable without shifting the label scale. */
html[data-wm-desktop] .wm-os-rail :is(.wm-os-nav-link[aria-disabled="true"],.wm-os-nav-button:disabled,.wm-os-nav-button[aria-disabled="true"]) {
  opacity:.44;
  border-color:transparent!important;
  background:transparent!important;
  color:var(--wm-muted)!important;
  cursor:not-allowed!important;
  pointer-events:none;
  transform:none;
}
html[data-wm-desktop] .wm-window .wm-window-control::before {
  top:50%;
  right:auto;
  bottom:auto;
  left:50%;
  display:block;
  width:16px;
  height:16px;
  min-width:16px;
  max-width:16px;
  min-height:16px;
  max-height:16px;
  margin:0;
  aspect-ratio:1 / 1;
  border-radius:50%;
  clip-path:none;
  transform:translate(-50%,-50%);
}

/* r145: Keep the login orbital artwork at the reference scale beside the workbench. */
@media (min-width:1200px) and (max-width:1599px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] {
    --wm-login-orbit-space:clamp(320px,26vw,460px);
  }

  html[data-wm-desktop] .wm-os-workspace[data-wm-business="false"] > .wm-orbit {
    width:min(26vw,calc(var(--wm-login-orbit-space) - 32px));
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    grid-template-columns:minmax(0,1.55fr) minmax(228px,.8fr);
  }
}

@media (min-width:1400px) and (max-width:1599px) {
  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    grid-template-columns:minmax(0,1.55fr) minmax(280px,.8fr);
  }
}

@media (min-width:1200px) and (max-width:1499px) and (max-height:820px) {
  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    gap:12px;
    padding:14px clamp(18px,2vw,26px)!important;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method {
    padding-block:18px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading {
    margin-bottom:14px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field {
    margin-bottom:12px;
  }
}

/* r91: Session expiry uses the same reference desktop surfaces as other dialogs. */
.wm-session-expired-overlay {
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:grid;
  place-items:center;
  padding:clamp(16px,4vw,40px);
  background:rgba(10,10,10,.54);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
}
.wm-session-expired-dialog {
  width:min(100%,460px);
  display:grid;
  justify-items:start;
  gap:0;
  padding:clamp(24px,4.5vw,36px);
  border:1px solid var(--wm-line,rgba(10,10,10,.16));
  background:var(--wm-surface,#f8f7f4);
  color:var(--wm-ink,#0a0a0a);
  box-shadow:0 20px 60px rgba(0,0,0,.22);
  font:500 14px/1.55 var(--wm-font,"Source Code Pro",Consolas,sans-serif);
  animation:wm-session-expired-enter .22s ease-out both;
}
.wm-session-expired-mark {
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border:1px solid color-mix(in srgb,var(--wm-warning-text,#9a3412) 54%,var(--wm-line,transparent));
  border-radius:50%;
  color:var(--wm-warning-text,#9a3412);
  font-size:21px;
  font-weight:600;
}
.wm-session-expired-kicker {
  margin:22px 0 8px;
  color:var(--wm-muted,#64625d);
  font-size:10px;
  letter-spacing:.13em;
}
.wm-session-expired-heading {
  margin:0;
  color:var(--wm-ink,#0a0a0a);
  font-size:22px;
  font-weight:600;
  line-height:1.3;
}
.wm-session-expired-description {
  margin:12px 0 20px;
  color:var(--wm-muted,#64625d);
  font-size:14px;
  line-height:1.75;
}
.wm-session-expired-status {
  width:100%;
  margin:0 0 16px;
  padding-top:12px;
  border-top:1px solid var(--wm-soft-line,rgba(10,10,10,.08));
  color:var(--wm-muted,#64625d);
  font-size:12px;
}
html[data-wm-desktop] .wm-session-expired-dialog .wm-session-expired-action {
  width:100%;
  min-height:50px;
  padding:12px 16px;
  border:1px solid var(--wm-primary,#0a0a0a);
  background:var(--wm-primary,#0a0a0a);
  color:var(--wm-primary-contrast,#f4f3ef);
  font:600 13px/1.4 var(--wm-font,"Source Code Pro",Consolas,sans-serif);
  cursor:pointer;
  transition:transform .16s ease,opacity .16s ease,background-color .16s ease;
}
html[data-wm-desktop] .wm-session-expired-dialog .wm-session-expired-action:hover { opacity:.88;transform:translateY(-1px); }
html[data-wm-desktop] .wm-session-expired-dialog .wm-session-expired-action:active { transform:translateY(0) scale(.99); }
html[data-wm-desktop] .wm-session-expired-dialog .wm-session-expired-action:disabled { cursor:wait;opacity:.68; }
@keyframes wm-session-expired-enter {
  from { opacity:0;transform:translateY(8px) scale(.985); }
  to { opacity:1;transform:translateY(0) scale(1); }
}
@media (max-width:520px) {
  .wm-session-expired-dialog { padding:24px 22px; }
  .wm-session-expired-heading { font-size:20px; }
}
@media (prefers-reduced-motion:reduce) {
  .wm-session-expired-dialog { animation:none; }
  html[data-wm-desktop] .wm-session-expired-dialog .wm-session-expired-action { transition:none; }
}

/* r102: keep rail labels consistent, title lights circular, and calendar presses responsive. */
html[data-wm-desktop] .wm-os-rail :is(.wm-os-nav-link,.wm-os-nav-button),
html[data-wm-desktop] .wm-os-rail :is(.wm-os-nav-link,.wm-os-nav-button) > span:not(.wm-active-dot) {
  font-family:var(--wm-font,"Source Code Pro",Consolas,"Microsoft YaHei",sans-serif)!important;
  font-size:17px!important;
  font-weight:500!important;
  line-height:1.4!important;
  letter-spacing:normal!important;
}
html[data-wm-desktop] .wm-window .wm-window-control::before {
  display:block!important;
  position:absolute!important;
  top:50%!important;
  right:auto!important;
  bottom:auto!important;
  left:50%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  transform:translate(-50%,-50%)!important;
  transform-origin:50% 50%!important;
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  max-width:16px!important;
  min-height:16px!important;
  max-height:16px!important;
  aspect-ratio:1 / 1!important;
  border-radius:50%!important;
  clip-path:none!important;
}

/* r146: Keep desktop sign-in fields roomy while retaining the welcome entry points. */
@media (min-width:1200px) and (max-width:1799px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content > .wm-login-outer {
    width:min(900px,calc(100% - var(--wm-login-orbit-space)));
    min-height:0;
    flex:0 0 auto;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto;
    margin-inline:0;
    margin-block:auto;
  }

  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content {
    justify-content:flex-start;
  }

  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro {
    grid-column:1;
    grid-row:1;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto auto;
    align-content:center;
    align-items:center;
    column-gap:clamp(20px,3vw,40px);
    padding:clamp(18px,2vw,28px) clamp(22px,3vw,38px);
    border-right:0;
    border-bottom:1px solid var(--wm-line);
  }

  html[data-wm-desktop] .wm-login-intro .wm-login-eyebrow {
    grid-column:1;
    grid-row:1;
  }

  html[data-wm-desktop] .wm-login-intro h1 {
    grid-column:1;
    grid-row:2;
    max-width:none;
    margin:5px 0 7px;
    font-size:clamp(25px,2.1vw,34px);
  }

  html[data-wm-desktop] .wm-login-intro p {
    grid-column:1;
    grid-row:3;
    max-width:42ch;
    font-size:12px;
  }

  html[data-wm-desktop] .wm-login-tags {
    grid-column:2;
    grid-row:1 / 4;
    justify-content:flex-end;
    align-items:center;
    max-width:280px;
    margin:0;
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-page {
    grid-column:1;
    grid-row:2;
    height:auto;
    min-height:0;
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-card {
    min-height:0;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt {
    padding-inline:18px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-auth-route {
    flex-wrap:nowrap;
    gap:2px;
    padding:4px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-auth-route span {
    flex:0 0 auto;
    padding:3px 2px;
    letter-spacing:normal;
    white-space:nowrap;
  }
}

@media (min-width:1200px) and (max-width:1359px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content {
    justify-content:flex-start;
  }

  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content > .wm-login-outer {
    margin-block:0 24px;
  }

  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-outer .bw-login-page {
    display:block!important;
    align-self:start;
    width:100%;
  }

  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto auto auto;
    padding:16px clamp(22px,3vw,38px);
  }

  html[data-wm-desktop] .wm-login-tags {
    display:grid;
    grid-column:1;
    grid-row:4;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    width:auto;
    max-width:none;
    margin-top:12px;
  }

  html[data-wm-desktop] .wm-login-tags a {
    min-height:42px;
    padding-inline:6px;
    font-size:13px;
    letter-spacing:normal;
    text-align:center;
    white-space:nowrap;
  }

}

@media (min-width:1200px) and (max-width:1599px) and (max-height:900px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content {
    padding-block:16px 12px!important;
  }

  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro {
    padding-block:12px;
  }

  html[data-wm-desktop] .wm-login-intro h1 { margin-block:3px 5px; }
  html[data-wm-desktop] .wm-login-tags { margin-top:8px; }
  html[data-wm-desktop] .wm-login-tags a { min-height:38px; }

  html[data-wm-desktop] .wm-login-outer .bw-login-hero {
    min-height:72px;
    padding-block:10px!important;
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-logo-img { width:36px;height:36px; }
  html[data-wm-desktop] .wm-login-outer .bw-login-body { padding-block:8px!important; }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method { padding-block:12px; }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-auth-heading p { display:none; }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading { margin-bottom:10px; }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field { margin-bottom:8px; }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field input { min-height:50px!important; }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-login-btn { min-height:48px!important; }
}
/* r147: keep the complete sign-in workbench visible on short desktop viewports. */
@media (min-width:1200px) and (max-width:1359px) and (max-height:760px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content {
    padding-block:8px 4px!important;
  }

  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content > .wm-login-outer {
    margin-block:0!important;
  }

  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro {
    grid-template-columns:minmax(0,1fr) 230px;
    grid-template-rows:auto auto auto;
    column-gap:16px;
    padding:8px 22px;
  }

  html[data-wm-desktop] .wm-login-tags {
    display:grid;
    grid-column:2;
    grid-row:1 / 4;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-content:center;
    gap:6px;
    width:100%;
    max-width:230px;
    margin:0;
  }

  html[data-wm-desktop] .wm-login-tags a {
    min-height:38px;
    padding-inline:6px;
    font-size:13px;
    letter-spacing:normal;
    line-height:1.2;
    white-space:nowrap;
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-hero {
    min-height:64px;
    padding-block:8px!important;
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-logo-img {
    width:32px;
    height:32px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    padding-block:4px!important;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method {
    padding-block:10px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field {
    margin-bottom:6px;
  }

  html[data-wm-desktop] .wm-login-outer .bw-login-footer {
    padding:6px 10px!important;
    font-size:9px;
    line-height:1.3;
  }
}
/* r148: keep welcome shortcut labels legible across desktop widths. */
@media (min-width:1200px) and (max-width:1799px) {
  html[data-wm-desktop] .wm-login-tags a {
    font-size:13px;
    letter-spacing:normal;
  }
}

/* r172: map the reference skills/resume windows to a readable WM workspace guide. */
.wm-help-content { display:grid;gap:18px;min-width:0;padding:16px; }
.wm-help-content > :is(p,section) { min-width:0; }
.wm-help-content h2,.wm-help-content h3,.wm-help-content h4,.wm-help-content p { margin:0; }
.wm-help-hero { display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px;border:1px solid var(--wm-line);background:var(--wm-surface); }
.wm-help-hero-copy { min-width:0; }
.wm-help-eyebrow,.wm-help-group-kicker,.wm-help-source-kicker { color:var(--wm-muted);font-size:10px;letter-spacing:.09em;line-height:1.4; }
.wm-help-heading { margin-top:8px!important;font-size:22px;font-weight:500;line-height:1.2; }
.wm-help-intro { max-width:56ch;margin-top:7px!important;color:var(--wm-muted);font-size:12px;line-height:1.65; }
.wm-help-revision { display:grid;gap:5px;flex:0 0 auto;padding:8px;border:1px solid var(--wm-line);text-align:right; }
.wm-help-revision-label { color:var(--wm-muted);font-size:9px;letter-spacing:.08em; }
.wm-help-revision code { font-size:11px; }
.wm-help-section-heading { display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:10px; }
.wm-help-section-heading h3,.wm-help-commands h3 { margin-top:3px;font-size:14px;font-weight:500;line-height:1.35; }
.wm-help-filters { display:flex;flex-wrap:wrap;gap:6px;min-width:0;max-width:100%;overflow:visible;padding:2px; }
.wm-help-filter { flex:0 0 auto;min-height:34px;padding:6px 12px;border:1px solid var(--wm-line);border-radius:0;background:transparent;color:var(--wm-ink);font:500 11px/1.3 var(--wm-font);white-space:nowrap;cursor:pointer;transition:background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease; }
.wm-help-filter:hover { border-color:var(--wm-primary); }
.wm-help-filter:active { transform:scale(.98); }
.wm-help-filter[aria-pressed="true"] { border-color:var(--wm-primary);background:var(--wm-primary);color:var(--wm-primary-contrast); }
.wm-help-filter:focus-visible,.wm-help-source-link:focus-visible { outline:2px solid var(--wm-accent);outline-offset:3px; }
.wm-help-groups { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
.wm-help-skill-group { min-width:0;padding:12px;border:1px solid var(--wm-line);background:var(--wm-paper); }
.wm-help-skill-group[hidden] { display:none!important; }
.wm-help-group-kicker { margin-bottom:8px!important; }
.wm-help-group-title { font-size:13px;font-weight:500;line-height:1.4; }
.wm-help-group-description { margin-top:5px!important;color:var(--wm-muted);font-size:12px;line-height:1.55; }
.wm-help-skill-tags { display:flex;flex-wrap:wrap;gap:5px;margin-top:10px; }
.wm-help-skill-tag { display:inline-flex;align-items:center;min-height:29px;padding:4px 8px;border:1px solid var(--wm-line);font-size:11px;line-height:1.35; }
.wm-help-count { margin-top:8px!important;color:var(--wm-muted);font-size:10px;line-height:1.4; }
.wm-help-data,.wm-help-commands { padding-top:14px;border-top:1px solid var(--wm-line); }
.wm-help-data > .wm-help-section-heading { margin-bottom:9px; }
.wm-help-source-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
.wm-help-source-card { display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:12px;border:1px solid var(--wm-line); }
.wm-help-source-kicker { margin-bottom:7px!important; }
.wm-help-source-card h4 { font-size:12px;font-weight:500;line-height:1.4; }
.wm-help-source-card > p:not(.wm-help-source-kicker) { margin-top:6px!important;color:var(--wm-muted);font-size:12px;line-height:1.6;overflow-wrap:anywhere; }
.wm-help-links { display:flex;flex-wrap:wrap;gap:8px 12px;margin-top:auto;padding-top:12px; }
.wm-help-source-link { color:var(--wm-ink);font-size:11px;line-height:1.4;text-decoration:underline;text-decoration-color:var(--wm-accent);text-underline-offset:3px; }
.wm-help-source-link:hover { color:var(--wm-primary-text); }
.wm-help-boundary { margin-top:9px!important;padding:9px 10px;border-left:2px solid var(--wm-accent);background:var(--wm-surface);color:var(--wm-muted);font-size:11px;line-height:1.55; }
.wm-help-commands h3 { margin-top:3px; }
.wm-help-command-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;margin:10px 0 0;padding:0;list-style:none; }
.wm-help-command { display:grid;grid-template-columns:minmax(76px,auto) minmax(0,1fr);gap:8px;align-items:center;min-width:0; }
.wm-help-command code { width:max-content;max-width:100%;padding:4px 6px;border:1px solid var(--wm-line);font-size:10px;overflow-wrap:anywhere; }
.wm-help-command span { color:var(--wm-muted);font-size:11px;line-height:1.45; }
.wm-help-note { margin-top:12px!important;padding-top:10px;border-top:1px solid var(--wm-line);color:var(--wm-muted);font-size:11px;line-height:1.6; }
.wm-help-build-note { display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0!important;color:var(--wm-muted);font-size:10px;line-height:1.5; }
.wm-help-build-note code { padding:3px 5px;border:1px solid var(--wm-line);font-size:9px; }
.wm-help-legal { margin-top:0;padding-top:12px;border-top:1px solid var(--wm-line); }
.wm-help-legal .wm-legal-strip { display:block;max-width:none;overflow:visible;font-size:10px; }
.wm-help-legal .bw-footer-inner { display:grid;gap:5px; }
@media (max-width:620px) {
  .wm-help-content { gap:14px;padding:12px; }
  .wm-help-hero { display:grid;gap:10px;padding:12px; }
  .wm-help-revision { justify-self:start;text-align:left; }
  .wm-help-section-heading { display:grid;gap:8px; }
  .wm-help-groups,.wm-help-source-grid { grid-template-columns:minmax(0,1fr); }
  .wm-help-filters { gap:8px; }
  html[data-wm-desktop] .wm-window button.wm-help-filter { min-height:44px; }
  .wm-help-filter { padding-inline:11px; }
  .wm-help-command-list { grid-template-columns:minmax(0,1fr); }
}

/* R306: keep login step and flow labels readable at every viewport width. */
html[data-wm-desktop] .wm-login-outer .bw-auth-step {
  font-size:10px;
  letter-spacing:.12em;
}
html[data-wm-desktop] .wm-login-outer .bw-auth-route {
  font-size:10px;
  letter-spacing:normal;
}
html[data-wm-desktop] .wm-login-outer .bw-auth-route span {
  font-size:10px;
  letter-spacing:normal;
}

/* R307: keep login helpers readable and large enough to operate on phones. */
html[data-wm-desktop] .wm-login-outer .bw-password-toggle {
  font-size:13px;
}
html[data-wm-desktop] .wm-login-outer .bw-jwt-details summary {
  min-height:48px;
  color:var(--wm-ink)!important;
  font-size:13px;
  line-height:1.4;
}
html[data-wm-desktop] .wm-login-outer .bw-jwt-details .bw-jwt-details-collapse {
  display:none;
}
html[data-wm-desktop] .wm-login-outer .bw-jwt-details[open] .bw-jwt-details-expand {
  display:none;
}
html[data-wm-desktop] .wm-login-outer .bw-jwt-details[open] .bw-jwt-details-collapse {
  display:inline;
}
html[data-wm-desktop] .wm-login-outer .bw-jwt-hint b,
html[data-wm-desktop] .wm-login-outer .bw-jwt-hint code,
html[data-wm-desktop] .wm-login-outer .bw-jwt-steps li::before {
  color:var(--wm-ink)!important;
}
@media (max-width:560px) {
  html[data-wm-desktop] .wm-login-outer .bw-password-toggle {
    height:48px;
    min-height:48px!important;
  }
}

/* R314: Center the login as one compact, readable auth card across desktop and tablet. */
html[data-wm-desktop] .wm-login-outer .bw-login-card {
  box-sizing:border-box;
  width:min(390px,100%);
  max-width:100%;
  flex:0 1 390px;
  flex-direction:column;
}

html[data-wm-desktop] .wm-login-outer .bw-login-hero {
  display:flex;
  min-height:112px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:18px 22px 16px!important;
  text-align:center;
}
html[data-wm-desktop] .wm-login-outer .bw-login-logo-img {
  width:40px!important;
  height:40px!important;
  margin:0 0 2px!important;
}
html[data-wm-desktop] .wm-login-outer .bw-login-title {
  font-size:12px;
  letter-spacing:.16em;
  line-height:1.35;
}
html[data-wm-desktop] .wm-login-outer .bw-login-sub {
  margin-top:0;
  font-size:10px;
  letter-spacing:.1em;
  line-height:1.45;
}

html[data-wm-desktop] .wm-login-outer .bw-login-body {
  display:grid;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto;
  grid-auto-columns:minmax(0,1fr);
  grid-auto-flow:row;
  flex:0 0 auto;
  align-content:start;
  gap:0;
  padding:20px 24px 0!important;
}
html[data-wm-desktop] .wm-login-outer .bw-login-body > .bw-login-err {
  grid-column:1;
  margin:0 0 14px;
}
html[data-wm-desktop] .wm-login-outer .bw-auth-method {
  box-sizing:border-box;
  min-width:0;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
}
html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-content:start;
}
html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading,
html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field,
html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-login-btn {
  grid-column:1;
  min-width:0;
}
html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading {
  margin:0 0 16px;
}
html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading h2 {
  margin:6px 0 5px;
  font-size:20px;
  line-height:1.25;
}
html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading p {
  margin:0;
  font-size:12px;
  line-height:1.55;
}
html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field {
  margin:0 0 12px;
}
html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field label {
  margin-bottom:6px;
  font-size:12px;
  line-height:1.4;
}
html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field input {
  min-height:48px!important;
  padding:11px 13px;
  font-size:14px;
}
html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-password-control input {
  padding-right:72px;
}
html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-password-toggle {
  height:44px;
  min-height:44px!important;
  font-size:13px;
}
html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-login-btn {
  min-height:50px!important;
  margin-top:2px;
  padding:12px 16px;
  font-size:14px;
  letter-spacing:.06em;
}

html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt {
  display:block;
  grid-column:1;
  margin-top:18px;
  padding:14px 0 0;
  border:0;
  border-top:1px dashed var(--wm-line);
  background:transparent;
}
html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-auth-heading {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}
html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-auth-route {
  display:none;
}
html[data-wm-desktop] .wm-login-outer .bw-login-alt {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0;
  text-align:left;
  font-size:12px;
  line-height:1.4;
}
html[data-wm-desktop] .wm-login-outer .bw-login-alt > span {
  font-size:12px;
  line-height:1.4;
}
html[data-wm-desktop] .wm-login-outer .bw-login-alt-link {
  display:inline-flex;
  flex:0 1 auto;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  width:auto!important;
  min-width:0;
  min-height:44px;
  padding:9px 12px;
  border:1px solid var(--wm-line);
  border-bottom:1px solid var(--wm-line);
  background:transparent;
  color:var(--wm-ink);
  font:13px/1.35 var(--wm-font);
  letter-spacing:normal;
  text-align:center;
  text-decoration:none;
  white-space:nowrap;
}
html[data-wm-desktop] .wm-login-outer .bw-login-alt-link:hover,
html[data-wm-desktop] .wm-login-outer .bw-login-alt-link:focus-visible {
  border-color:var(--wm-primary);
  background:var(--wm-surface);
  color:var(--wm-ink);
}
html[data-wm-desktop] .wm-login-outer .bw-jwt-panel {
  display:block!important;
  margin-top:14px;
  padding:14px 0 0;
  border-top:1px solid var(--wm-line);
}
html[data-wm-desktop] .wm-login-outer .bw-jwt-panel > .bw-jwt-details {
  margin:0 0 12px;
}
html[data-wm-desktop] .wm-login-outer .bw-jwt-panel > .bw-field {
  margin:12px 0 10px;
}
html[data-wm-desktop] .wm-login-outer .bw-jwt-panel > .bw-jwt-btn {
  width:100%;
  min-height:50px!important;
}
html[data-wm-desktop] .wm-login-outer .bw-jwt-quick {
  font-size:12px;
  line-height:1.65;
}
html[data-wm-desktop] .wm-login-outer .bw-login-footer {
  grid-column:1 / -1;
  margin:18px -24px 0!important;
  padding:12px 18px!important;
  font-size:11px;
  line-height:1.55;
  text-align:center;
}

@media (min-width:1200px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content {
    align-items:center;
    justify-content:flex-start;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content > .wm-login-outer {
    width:min(1040px,100%);
    max-width:100%;
    flex:0 1 auto;
    height:auto;
    align-content:start;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto auto;
    gap:6px 0;
    margin:0 auto 8px;
    border:0;
    background:transparent;
    box-shadow:none;
    overflow:visible;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro {
    display:flex!important;
    grid-column:1;
    grid-row:1;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:0;
    padding:10px 24px 10px;
    border:0;
    background:transparent;
    text-align:center;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro .wm-login-eyebrow {
    margin:0;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro h1 {
    max-width:none;
    margin:3px 0 4px;
    font-size:clamp(25px,1.9vw,32px);
    line-height:1.15;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro p {
    max-width:42ch;
    margin:0 auto 6px;
    line-height:1.5;
    text-align:center;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-tags {
    display:flex;
    grid-column:1;
    grid-row:auto;
    align-items:center;
    justify-content:center;
    max-width:100%;
    margin:0;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-tags a {
    min-height:44px;
    padding:6px 12px;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-outer .bw-login-page {
    position:relative;
    inset:auto;
    grid-column:1;
    grid-row:2;
    width:100%;
    height:auto;
    min-height:0;
    flex:0 0 auto;
    align-self:start;
    margin:0;
    padding:0;
    overflow:visible;
    opacity:1;
    justify-content:center;
  }
}

@media (max-width:560px) {
  html[data-wm-desktop] .wm-login-outer .bw-login-card {
    width:min(390px,100%);
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    padding:18px 18px 0!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-footer {
    margin-right:-18px!important;
    margin-left:-18px!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt {
    align-items:flex-start;
    flex-direction:column;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt-link {
    width:100%;
    white-space:normal;
  }
}

/* The manual JWT route expands beneath the password form at every desktop width. */
html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-auth-method-jwt {
  display:block!important;
  grid-column:1!important;
}
html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-jwt-panel {
  display:block!important;
  grid-template-columns:minmax(0,1fr)!important;
}
html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-jwt-panel > .bw-jwt-quick,
html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-jwt-panel > .bw-jwt-details,
html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-jwt-panel > .bw-field,
html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-jwt-panel > .bw-jwt-btn {
  grid-column:1;
  width:100%;
}

/* R317: Keep the phone login lockup centered and make its fallback action a balanced row. */
@media (max-width:560px) {
  html[data-wm-desktop] .wm-login-outer .bw-login-hero {
    display:flex!important;
    grid-template-columns:none;
    grid-template-rows:none;
    min-height:112px;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    padding:18px 18px 16px!important;
    text-align:center;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-logo-img {
    grid-column:auto;
    grid-row:auto;
    margin:0 0 2px!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-title,
  html[data-wm-desktop] .wm-login-outer .bw-login-sub {
    grid-column:auto;
    grid-row:auto;
    white-space:normal!important;
    text-align:center;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt {
    align-items:center;
    flex-direction:row;
    justify-content:space-between;
    gap:10px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt > span {
    flex:1 1 auto;
    min-width:0;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt-link {
    flex:0 0 auto;
    width:auto!important;
    white-space:nowrap;
  }
  html[data-wm-desktop] .wm-main-window .wm-login-outer .bw-auth-method-jwt .bw-login-alt .bw-login-alt-link {
    min-width:140px!important;
  }
}

@media (max-width:359px) {
  html[data-wm-desktop] .wm-login-outer .bw-login-alt {
    align-items:stretch;
    flex-direction:column;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-alt-link {
    width:100%!important;
  }
}

/* R318: Keep the full login card above the taskbar on tall tablet viewports. */
@media (min-width:561px) and (max-width:1199px) and (min-height:900px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro {
    padding:14px clamp(22px,4vw,32px) 12px;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro h1 {
    max-width:none;
    margin:3px 0 7px;
    font-size:clamp(24px,3vw,30px);
    line-height:1.18;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro p {
    max-width:44ch;
    margin:0 auto 10px;
    line-height:1.5;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-tags {
    margin-top:8px;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-tags a {
    min-height:44px;
    padding:8px 12px;
    font-size:13px;
  }
}

/* R320: Restore a compact, scroll-safe form at short landscape heights. */
@media (max-height:480px) and (min-width:768px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content {
    align-items:flex-start;
    overflow-x:hidden;
    overflow-y:auto;
    padding:4px 8px!important;
  }
  html[data-wm-desktop] .wm-login-outer {
    box-sizing:border-box;
    width:min(820px,100%);
    height:auto;
    min-height:0;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto;
    margin:auto;
    padding:2px 8px;
    overflow:visible;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-page {
    grid-column:1;
    width:100%;
    height:auto!important;
    min-height:0!important;
    align-items:flex-start;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-card {
    box-sizing:border-box;
    width:100%;
    height:auto;
    min-height:0;
    flex:0 0 auto;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-hero {
    min-height:28px;
    padding:3px 12px!important;
    justify-content:center;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-logo-img,
  html[data-wm-desktop] .wm-login-outer .bw-login-sub,
  html[data-wm-desktop] .wm-login-outer .bw-login-footer {
    display:none!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-title {
    font-size:11px!important;
    letter-spacing:.14em!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:3px;
    flex:0 0 auto;
    padding:4px 12px 6px!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-body > .bw-login-err {
    grid-column:1;
    margin:0 0 4px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:12px;
    row-gap:4px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading {
    display:none!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field {
    grid-column:auto!important;
    min-width:0;
    margin:0!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field label {
    margin:0 0 2px;
    font-size:11px;
    line-height:1.2;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field input {
    box-sizing:border-box;
    min-height:44px!important;
    height:44px;
    padding:8px 10px;
    font-size:13px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-password-control input {
    padding-right:64px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-password-toggle {
    min-width:44px!important;
    min-height:44px!important;
    height:44px;
    padding:6px;
  }
  html[data-wm-desktop] .wm-main-window .wm-login-outer .bw-auth-method-primary .bw-login-btn {
    grid-column:1/-1;
    box-sizing:border-box;
    min-height:44px!important;
    height:46px;
    line-height:1.25;
    margin:0;
    padding:6px 14px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt { margin:0!important; }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-auth-heading,
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-auth-route {
    display:none!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-login-alt {
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    min-height:44px;
    margin:0!important;
    padding:0!important;
    border:0!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt .bw-login-alt-link {
    min-width:0!important;
    min-height:44px!important;
    height:46px;
    box-sizing:border-box;
    padding:8px 12px;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"]:has(#bw-jwt-toggle[aria-expanded="true"]) .wm-login-outer .bw-login-body {
    align-content:start;
  }
}
@media (max-width: 767px), (pointer: coarse) {
  html[data-wm-desktop] .wm-command,
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field input { font-size:16px; }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-login-btn { font-size:16px; }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-password-toggle,
  html[data-wm-desktop] .wm-login-outer .bw-login-alt-link { font-size:14px; }
}

/* R723: Keep login controls comfortably tappable in compact and touch layouts. */
@media (pointer: coarse) {
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-login-btn,
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-password-toggle,
  html[data-wm-desktop] .wm-login-outer .bw-login-alt-link {
    min-height:48px;
  }
}

/* R488: Keep credentials full-width while JWT guidance is expanded. */
@media (min-width:1200px) {
  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-auth-method-primary {
    grid-template-columns:minmax(0,1fr);
    row-gap:8px;
  }
  html[data-wm-desktop] .wm-login-outer:has(#bw-jwt-toggle[aria-expanded="true"]) .bw-auth-method-primary .bw-field {
    grid-column:1;
    margin-bottom:14px;
  }
}
@media (max-height:480px) and (min-width:561px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content {
    padding:2px 8px 0!important;
  }
  html[data-wm-desktop] .wm-login-outer:not(:has(#bw-jwt-toggle[aria-expanded="true"])) {
    flex:0 0 auto;
  }
  html[data-wm-desktop] .wm-login-outer:not(:has(#bw-jwt-toggle[aria-expanded="true"])) .bw-login-body {
    padding-bottom:0!important;
  }
  html[data-wm-desktop] .wm-login-outer:not(:has(#bw-jwt-toggle[aria-expanded="true"])) .bw-auth-method-primary {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    row-gap:4px;
  }
  html[data-wm-desktop] .wm-login-outer:not(:has(#bw-jwt-toggle[aria-expanded="true"])) .bw-auth-method-primary .bw-field {
    grid-column:auto!important;
  }
}

/* R542: Fit the complete login card at ordinary desktop heights. */
@media (min-width:1200px) and (max-width:1599px) and (min-height:880px) and (max-height:940px) {
  html[data-wm-desktop] .wm-login-outer .bw-login-hero {
    padding-block:14px 12px!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    padding-top:16px!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-auth-heading {
    margin-bottom:12px!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field {
    margin-bottom:8px!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-footer {
    margin-top:12px!important;
  }
}

/* R543: Keep the complete ordinary desktop login card inside the work area. */
@media (min-width:1200px) and (max-width:1599px) and (min-height:880px) and (max-height:940px) {
  html[data-wm-desktop] .wm-login-outer .bw-login-hero {
    padding-block:12px 10px!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    padding-top:12px!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt {
    margin-top:12px!important;
    padding-top:10px!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-footer {
    margin-top:8px!important;
    padding-block:10px!important;
  }
}

/* R557: Keep the sign-in form centered at compact desktop widths. */
@media (min-width:1200px) and (max-width:1359px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-outer .bw-login-page {
    display:flex!important;
    align-self:stretch;
    justify-content:center!important;
  }
}

/* R557: Preserve a fluid orbit gap across compact desktop widths. */
@media (min-width:1200px) and (max-width:1239px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-outer .bw-login-card {
    width:clamp(340px,calc(125vw - 1160px),390px)!important;
    flex-basis:clamp(340px,calc(125vw - 1160px),390px)!important;
  }
}

/* R577: Match the reference's left-copy/right-orbit rhythm and keep the full sign-in card in view on standard desktop heights. */
@media (min-width:1200px) and (min-height:800px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content {
    padding-block:clamp(0px,calc(50vh - 400px),42px)!important;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content > .wm-login-outer {
    box-sizing:border-box;
    width:clamp(720px,calc(100vw - 900px),980px);
    grid-template-columns:minmax(0,1fr) minmax(360px,390px);
    grid-template-rows:minmax(0,1fr);
    align-items:center;
    align-content:stretch;
    gap:0 clamp(16px,2vw,32px);
    margin:0 0 8px clamp(0px,calc(15vw - 216px),72px);
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro {
    grid-column:1;
    grid-row:1;
    align-items:flex-start;
    justify-content:center;
    padding:10px 0!important;
    text-align:left;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro p {
    margin:0 0 6px;
    text-align:left;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-tags {
    flex-wrap:wrap;
    justify-content:flex-start;
    row-gap:8px;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-outer .bw-login-page {
    grid-column:2;
    grid-row:1;
    align-self:center;
    flex:0 1 auto;
    justify-content:center;
  }
}

/* R578: Align wide sign-in copy to the work-area inset while keeping the card centered. */
@media (min-width:1200px) and (min-height:800px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content > .wm-login-outer {
    margin-left:-22px;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro {
    justify-content:flex-start;
  }
}

/* R663: Keep visible welcome route links readable after legacy responsive overrides. */
html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-tags a {
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  min-height:44px;
  padding:8px 12px;
  font-size:13px;
  line-height:1.35;
  text-align:center;
}
@media (pointer:coarse) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-tags a {
    min-height:48px;
  }
}

/* R664: Use the fixed light theme for legacy batch failure feedback. */
html[data-wm-desktop] .wm-existing-app .bw-batch-fail {
  background:color-mix(in srgb,var(--wm-danger) 6%,var(--wm-surface))!important;
  border-color:color-mix(in srgb,var(--wm-danger) 34%,var(--wm-line))!important;
  color:var(--wm-danger-text)!important;
}
html[data-wm-desktop] .wm-existing-app .bw-batch-fail::before {
  background:var(--wm-danger)!important;
  box-shadow:none!important;
}
html[data-wm-desktop] .wm-existing-app .bw-batch-fail-title,
html[data-wm-desktop] .wm-existing-app .bw-batch-fail-title strong,
html[data-wm-desktop] .wm-existing-app .bw-batch-fail-err {
  color:var(--wm-danger-text)!important;
  text-shadow:none!important;
}
html[data-wm-desktop] .wm-existing-app .bw-batch-fail-row:nth-child(odd) {
  background:color-mix(in srgb,var(--wm-danger) 3%,var(--wm-surface))!important;
}
html[data-wm-desktop] .wm-existing-app .bw-batch-fail-btn:not(.bw-batch-fail-retry) {
  border-color:color-mix(in srgb,var(--wm-danger) 45%,var(--wm-line))!important;
  background:var(--wm-surface)!important;
  color:var(--wm-danger-text)!important;
}
html[data-wm-desktop] .wm-existing-app .bw-batch-fail-btn:not(.bw-batch-fail-retry):hover {
  border-color:var(--wm-danger)!important;
  background:color-mix(in srgb,var(--wm-danger) 8%,var(--wm-surface))!important;
  color:var(--wm-danger-text)!important;
  box-shadow:none!important;
}
/* R732: batch cancellation is a destructive control and keeps a readable danger treatment. */
html[data-wm-desktop] .wm-existing-app .bw-batch-abort-btn {
  border-color:color-mix(in srgb,var(--wm-danger) 42%,var(--wm-line))!important;
  background:color-mix(in srgb,var(--wm-danger) 6%,var(--wm-surface))!important;
  color:var(--wm-danger-text)!important;
}
html[data-wm-desktop] .wm-existing-app .bw-batch-abort-btn:hover {
  border-color:var(--wm-danger)!important;
  background:color-mix(in srgb,var(--wm-danger) 12%,var(--wm-surface))!important;
  color:var(--wm-danger-text)!important;
  box-shadow:none!important;
  filter:none!important;
}

/* R684: Keep the complete sign-in card reachable in a short desktop viewport. */
@media (min-width:1200px) and (max-height:799px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content {
    overflow-x:hidden;
    overflow-y:auto;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content > .wm-login-outer {
    grid-template-rows:auto auto;
    height:auto;
    min-height:0;
    overflow:visible;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-page {
    height:auto!important;
    min-height:0!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-card {
    height:auto;
    min-height:0;
    overflow:visible;
  }
}

/* R730: Keep the primary sign-in action fully visible in short desktop windows. */
@media (min-width:1200px) and (min-height:481px) and (max-height:799px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content {
    padding-top:0!important;
  }
}

/* R762: Keep the welcome entry visible on ordinary phone heights without delaying compact landscape sign-in. */
@media (max-width:767px) and (min-height:701px) {
  html[data-wm-desktop] .wm-login-outer {
    grid-template-rows:auto auto;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro {
    display:flex!important;
    align-items:center;
    justify-content:center;
    padding:10px 14px 8px!important;
    border:0;
    text-align:center;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro h1 {
    max-width:none;
    margin:4px 0 5px;
    font-size:clamp(23px,5vw,28px);
    line-height:1.1;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro p {
    margin:0 0 6px;
    font-size:12px;
    line-height:1.45;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-tags {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    width:100%;
    margin-top:6px;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-tags a {
    min-height:48px;
    padding:8px 6px;
    font-size:13px;
    text-align:center;
  }
}

@media (max-width:767px) and (max-height:700px) {
  html[data-wm-desktop] .wm-login-intro { display:none!important; }
  html[data-wm-desktop] .wm-login-outer { grid-template-rows:minmax(0,1fr); }
}

/* R777: Match the reference orbit's desktop scale while fitting short viewports. */
@media (min-width:1600px) {
  html[data-wm-desktop] .wm-os-workspace[data-wm-business="false"] {
    --wm-login-orbit-space:clamp(608px,40vw,800px);
  }
  html[data-wm-desktop] .wm-os-workspace[data-wm-business="false"] > .wm-orbit {
    width:min(40vw,calc(var(--wm-login-orbit-space) - 32px),calc(100vh - 120px));
  }
}

/* R782: Advanced item filters feed the in-memory batch selection pool. */
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-panel {
  margin-top:12px;
  border:1px solid var(--wm-line);
  border-radius:2px;
  background:color-mix(in srgb,var(--wm-surface) 28%,transparent);
  color:var(--wm-text);
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-summary {
  display:grid;
  grid-template-columns:max-content max-content minmax(0,1fr) 14px;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:8px 12px;
  cursor:pointer;
  list-style:none;
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-summary::-webkit-details-marker { display:none; }
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-summary:focus-visible {
  outline:2px solid var(--wm-primary);
  outline-offset:2px;
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-title {
  font:600 13px/1.35 var(--wm-font);
  color:var(--wm-text);
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-active-count,
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-summary-copy {
  color:var(--wm-muted);
  font:400 12px/1.45 var(--wm-font);
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-summary-copy {
  min-width:0;
  overflow-wrap:anywhere;
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-active-count strong {
  color:var(--wm-primary-text);
  font-variant-numeric:tabular-nums;
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-chevron {
  width:8px;
  height:8px;
  border-right:1.5px solid var(--wm-muted);
  border-bottom:1.5px solid var(--wm-muted);
  transform:rotate(45deg) translateY(-2px);
  transition:transform 160ms ease;
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-panel[open] .bw-pool-filter-chevron {
  transform:rotate(225deg) translate(-1px,-1px);
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-body {
  padding:0 12px 12px;
  border-top:1px solid var(--wm-soft-line);
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-help,
html[data-wm-desktop] .wm-existing-app .bw-pool-field-note {
  margin:9px 0;
  color:var(--wm-muted);
  font:400 12px/1.55 var(--wm-font);
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-grid {
  display:grid;
  grid-template-columns:minmax(230px,1.55fr) repeat(3,minmax(160px,1fr));
  align-items:stretch;
  gap:10px;
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-group {
  min-width:0;
  margin:0;
  padding:9px;
  border:1px solid var(--wm-soft-line);
  border-radius:2px;
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-group legend {
  padding:0 5px;
  color:var(--wm-muted);
  font:600 12px/1.35 var(--wm-font);
  letter-spacing:.04em;
}
html[data-wm-desktop] .wm-existing-app .bw-pool-tag-search-label,
html[data-wm-desktop] .wm-existing-app .bw-pool-range-row label > span {
  display:block;
  margin-bottom:5px;
  color:var(--wm-muted);
  font:500 12px/1.35 var(--wm-font);
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-input {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  min-height:40px;
  padding:9px 10px;
  border:1px solid var(--wm-line);
  border-radius:2px;
  background:var(--wm-surface);
  color:var(--wm-text);
  font:400 12px/1.35 var(--wm-font);
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-input:focus-visible {
  outline:2px solid color-mix(in srgb,var(--wm-primary) 55%,transparent);
  outline-offset:1px;
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-input.is-invalid {
  border-color:var(--wm-danger,#b42345);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--wm-danger,#b42345) 20%,transparent);
}
html[data-wm-desktop] .wm-existing-app .bw-pool-tag-options {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(132px,1fr));
  gap:4px;
  max-height:150px;
  margin-top:7px;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
html[data-wm-desktop] .wm-existing-app .bw-pool-tag-option,
html[data-wm-desktop] .wm-existing-app .bw-pool-rarity-options label {
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  min-height:34px;
  padding:4px 6px;
  border:1px solid transparent;
  border-radius:2px;
  color:var(--wm-text);
  cursor:pointer;
  font:400 12px/1.4 var(--wm-font);
  transition:background-color 140ms ease,border-color 140ms ease;
}
html[data-wm-desktop] .wm-existing-app .bw-pool-tag-option:hover,
html[data-wm-desktop] .wm-existing-app .bw-pool-rarity-options label:hover {
  border-color:var(--wm-soft-line);
  background:color-mix(in srgb,var(--wm-primary) 5%,var(--wm-surface));
}
html[data-wm-desktop] .wm-existing-app .bw-pool-tag-option input,
html[data-wm-desktop] .wm-existing-app .bw-pool-rarity-options input {
  flex:0 0 auto;
  width:16px;
  height:16px;
  margin:0;
  accent-color:var(--wm-primary);
}
html[data-wm-desktop] .wm-existing-app .bw-pool-tag-option > span {
  min-width:0;
  overflow-wrap:anywhere;
}
html[data-wm-desktop] .wm-existing-app .bw-pool-tag-option small {
  flex:0 0 auto;
  margin-left:auto;
  color:var(--wm-muted);
  font-size:12px;
  font-variant-numeric:tabular-nums;
}
html[data-wm-desktop] .wm-existing-app .bw-pool-tags-empty {
  grid-column:1/-1;
  margin:6px;
  color:var(--wm-muted);
  font:400 12px/1.45 var(--wm-font);
}
html[data-wm-desktop] .wm-existing-app .bw-pool-range-row {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
html[data-wm-desktop] .wm-existing-app .bw-pool-range-row label { min-width:0; }
html[data-wm-desktop] .wm-existing-app .bw-pool-rarity-options {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:4px;
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-actions-note {
  min-width:0;
  color:var(--wm-muted);
  font:400 12px/1.45 var(--wm-font);
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-reset {
  flex:0 0 auto;
  min-height:40px;
  padding:8px 12px;
  border:1px solid var(--wm-line);
  border-radius:2px;
  background:transparent;
  color:var(--wm-text);
  font:500 12px/1.35 var(--wm-font);
  cursor:pointer;
  transition:background-color 140ms ease,border-color 140ms ease,transform 100ms ease;
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-reset:hover {
  border-color:var(--wm-primary);
  background:color-mix(in srgb,var(--wm-primary) 5%,var(--wm-surface));
}
html[data-wm-desktop] .wm-existing-app .bw-pool-filter-summary-copy.is-error { color:var(--wm-danger,#b42345); }
@media (max-width:1100px) {
  html[data-wm-desktop] .wm-existing-app .bw-pool-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html[data-wm-desktop] .wm-existing-app .bw-pool-tags-group { grid-row:span 2; }
}
@media (max-width:767px) {
  html[data-wm-desktop] .wm-existing-app .bw-pool-filter-summary {
    grid-template-columns:minmax(0,1fr) max-content 14px;
    gap:5px 8px;
    padding:9px 10px;
  }
  html[data-wm-desktop] .wm-existing-app .bw-pool-filter-summary-copy {
    grid-column:1/3;
    grid-row:2;
  }
  html[data-wm-desktop] .wm-existing-app .bw-pool-filter-chevron { grid-column:3;grid-row:1; }
  html[data-wm-desktop] .wm-existing-app .bw-pool-filter-grid { grid-template-columns:minmax(0,1fr); }
  html[data-wm-desktop] .wm-existing-app .bw-pool-tags-group { grid-row:auto; }
  html[data-wm-desktop] .wm-existing-app .bw-pool-tag-options { max-height:190px; }
  html[data-wm-desktop] .wm-existing-app .bw-pool-filter-actions { align-items:stretch;flex-direction:column; }
  html[data-wm-desktop] .wm-existing-app .bw-pool-filter-reset { width:100%;min-height:48px; }
}
@media (pointer:coarse) {
  html[data-wm-desktop] .wm-existing-app .bw-pool-tag-option,
  html[data-wm-desktop] .wm-existing-app .bw-pool-rarity-options label { min-height:48px; }
  html[data-wm-desktop] .wm-existing-app .bw-pool-filter-input { min-height:48px; }
}
@media (prefers-reduced-motion:reduce) {
  html[data-wm-desktop] .wm-existing-app .bw-pool-filter-chevron,
  html[data-wm-desktop] .wm-existing-app .bw-pool-tag-option,
  html[data-wm-desktop] .wm-existing-app .bw-pool-rarity-options label,
  html[data-wm-desktop] .wm-existing-app .bw-pool-filter-reset { transition:none; }
}

/* R787: keep the 48px touch taskbar clear; the complete legal block remains in Help. */
@media (pointer: coarse) {
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip { display:none!important; }
}

/* R788: at standard desktop widths, give legal links their own taskbar row so
   long registration labels never collide with the open-page chip or command field. */
@media (min-width: 768px) and (max-width: 1365px) and (min-height: 481px) {
  html[data-wm-desktop] .wm-os-shell { grid-template-rows:minmax(0,1fr) auto; }
  html[data-wm-desktop] .wm-os-taskbar {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(180px,360px);
    grid-template-rows:minmax(20px,auto) 34px;
    align-content:center;
    gap:2px 8px;
    min-height:62px;
    padding:4px 8px;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip {
    display:flex;
    grid-column:1 / -1;
    grid-row:1;
    width:100%;
    max-width:none;
    min-height:20px;
    overflow:hidden;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-task-list { grid-column:1;grid-row:2;min-height:34px; }
  html[data-wm-desktop] .wm-os-taskbar .wm-command-form { grid-column:2;grid-row:2;width:100%;min-width:0; }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > .bw-beian-row {
    width:100%;
    min-height:20px;
    flex-wrap:nowrap;
    overflow:hidden;
  }
}

/* At medium touch widths the legal strip is hidden; collapse its grid row and
   reserve the full 48px control track so the taskbar never clips the hit area. */
@media (pointer: coarse) and (min-width: 768px) and (max-width: 1365px) and (min-height: 481px) {
  html[data-wm-desktop] .wm-os-shell { grid-template-rows:minmax(0,1fr) auto; }
  html[data-wm-desktop] .wm-os-taskbar {
    grid-template-columns:minmax(0,1fr) minmax(180px,360px);
    grid-template-rows:48px;
    align-content:center;
    gap:0 8px;
    min-height:56px;
    padding:4px 8px;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-task-list { grid-column:1;grid-row:1;min-height:48px; }
  html[data-wm-desktop] .wm-os-taskbar .wm-command-form { grid-column:2;grid-row:1;width:100%;min-width:0;min-height:48px; }
}

/* R798: registration text must stay readable and inside the taskbar at every
   desktop width. The previous 10px single-line strip clipped long labels and
   sat too close to the taskbar border. */
html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip {
  flex:1 1 auto;
  min-width:0;
  max-width:55%;
  min-height:34px;
  align-content:center;
  gap:6px 12px;
  overflow:visible;
  padding:7px 0;
  color:var(--wm-muted);
  font-size:12px;
  line-height:1.5;
  white-space:normal;
}
html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > .bw-beian-row {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  width:max-content;
  max-width:100%;
  flex:0 1 auto;
  gap:4px 9px;
  min-width:0;
  min-height:24px;
  overflow:visible;
}
html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip .bw-beian-row a {
  flex:0 0 auto;
  min-width:0;
  min-height:24px;
  overflow:visible;
  color:var(--wm-muted);
  opacity:1;
  font-size:12px;
  line-height:1.5;
  text-overflow:clip;
  white-space:nowrap;
}
html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > p {
  flex:0 1 auto;
  width:max-content;
  max-width:100%;
  margin:0;
  color:var(--wm-muted);
  opacity:1;
  overflow:visible;
  line-height:1.5;
  text-overflow:clip;
  white-space:normal;
}

@media (pointer:fine) and (min-width:1024px) and (max-width:1365px) and (min-height:481px) {
  html[data-wm-desktop] .wm-os-taskbar {
    grid-template-rows:minmax(30px,auto) 36px;
    gap:2px 8px;
    min-height:76px;
    padding:3px 8px;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip {
    grid-row:1;
    max-width:none;
    min-height:30px;
    padding:3px 0;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > .bw-beian-row {
    min-height:24px;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-task-list,
  html[data-wm-desktop] .wm-os-taskbar .wm-command-form {
    min-height:36px;
  }
}

/* R1222: keep the full legal copy reachable from the compact taskbar. */
.wm-legal-disclosure {
  display:inline-flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
  min-width:52px;
  min-height:28px;
  padding:4px 8px;
  border:1px solid var(--wm-line);
  border-radius:0;
  background:var(--wm-surface);
  color:var(--wm-muted);
  font:600 10px/1.2 var(--wm-font);
  white-space:nowrap;
  cursor:pointer;
  transition:background-color .16s ease,border-color .16s ease,color .16s ease;
}
.wm-legal-disclosure:hover {
  border-color:var(--wm-primary);
  background:var(--wm-primary);
  color:var(--wm-primary-contrast);
}
.wm-legal-disclosure:focus-visible {
  outline:2px solid var(--wm-accent);
  outline-offset:2px;
}
@media (prefers-reduced-motion:reduce) {
  .wm-legal-disclosure { transition:none; }
}

/* R788: the batch review is a roomy, keyboard-contained checkpoint in the light theme. */
html[data-wm-desktop] #bw-batch-confirm-dialog {
  z-index:1200;
  padding:clamp(12px,3vw,28px);
  background:rgba(22,24,24,.32)!important;
  backdrop-filter:blur(2px)!important;
  -webkit-backdrop-filter:blur(2px)!important;
}
html[data-wm-desktop] #bw-batch-confirm-dialog .bw-confirm-box {
  display:flex;
  flex-direction:column;
  width:min(560px,calc(100vw - 24px));
  max-height:min(84dvh,760px);
  overflow:auto;
  padding:clamp(20px,4vw,30px);
  text-align:left;
}
html[data-wm-desktop] #bw-batch-confirm-dialog .bw-confirm-icon { flex:0 0 44px;width:44px;height:44px;margin:0 0 14px; }
html[data-wm-desktop] #bw-batch-confirm-dialog .bw-confirm-title { font:600 18px/1.4 var(--wm-font);letter-spacing:.015em; }
html[data-wm-desktop] #bw-batch-confirm-dialog .bw-batch-confirm-description {
  display:grid;
  gap:10px;
  margin-top:12px;
  color:var(--wm-text);
  font:400 13px/1.65 var(--wm-font);
  overflow-wrap:anywhere;
}
html[data-wm-desktop] #bw-batch-confirm-dialog .bw-batch-confirm-description p { margin:0; }
html[data-wm-desktop] #bw-batch-confirm-dialog #bw-batch-confirm-items {
  display:grid;
  gap:4px;
  max-height:min(34dvh,270px);
  overflow:auto;
  margin:0;
  padding:10px 12px 10px 30px;
  border-block:1px solid var(--wm-line);
  background:color-mix(in srgb,var(--wm-primary) 3%,var(--wm-surface));
  color:var(--wm-ink);
  font-size:12px;
  line-height:1.55;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
html[data-wm-desktop] #bw-batch-confirm-dialog .bw-confirm-actions { gap:10px;margin-top:20px; }
html[data-wm-desktop] #bw-batch-confirm-dialog .bw-confirm-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:140px;
  min-height:48px;
  padding:10px 16px;
  border-radius:0;
  clip-path:none;
  font:500 13px/1.4 var(--wm-font);
  letter-spacing:0;
  text-align:center;
  white-space:normal;
}
html[data-wm-desktop] #bw-batch-confirm-dialog .bw-confirm-cancel { border-color:var(--wm-line);background:var(--wm-surface);color:var(--wm-ink); }
html[data-wm-desktop] #bw-batch-confirm-dialog .bw-confirm-ok { border-color:var(--wm-primary);background:var(--wm-primary);color:var(--wm-primary-contrast); }
html[data-wm-desktop] #bw-batch-confirm-dialog .bw-confirm-btn:focus-visible { outline:2px solid var(--wm-accent);outline-offset:3px; }
@media (max-width:520px) {
  html[data-wm-desktop] #bw-batch-confirm-dialog .bw-confirm-actions { flex-direction:column-reverse; }
  html[data-wm-desktop] #bw-batch-confirm-dialog .bw-confirm-btn { width:100%;min-width:0; }
}
@media (prefers-reduced-motion:reduce) {
  html[data-wm-desktop] #bw-batch-confirm-dialog .bw-confirm-box { transition:none; }
}

/* R800: give the registration and copyright row clear separation from the
   taskbar frame. Keep the legal text in its own padded area at both desktop
   layouts, with enough height for the full 12px line box. */
@media (pointer:fine) and (min-width:1366px) and (min-height:481px) {
  html[data-wm-desktop] .wm-os-shell {
    grid-template-rows:minmax(0,1fr) auto;
  }
  html[data-wm-desktop] .wm-os-taskbar {
    min-height:56px;
    padding:6px 12px;
    gap:12px;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip {
    max-width:60%;
    min-height:40px;
    padding:8px 12px;
    align-items:center;
    gap:8px 22px;
    line-height:1.6;
    flex-wrap:nowrap;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > .bw-beian-row {
    width:auto;
    max-width:none;
    flex:0 0 auto;
    flex-wrap:nowrap;
    min-height:30px;
    gap:6px 12px;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip .bw-beian-row a {
    min-height:28px;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > p:first-of-type {
    display:flex;
    align-items:center;
    flex:0 0 auto;
    width:max-content;
    max-width:none;
    min-height:26px;
    padding-inline:2px;
    white-space:nowrap;
  }
}

/* R801: the taskbar may condense its legal strip, while Help must keep every legal line readable. */
.wm-help-legal .wm-legal-strip {
  display:grid;
  gap:6px;
  max-width:none;
  overflow:visible;
  white-space:normal;
}
.wm-help-legal .wm-legal-strip > p,
.wm-help-legal .wm-legal-strip > p + p {
  display:block;
  width:auto;
  max-width:none;
  min-width:0;
  margin:0;
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.5;
}
.wm-help-legal .wm-legal-strip > .bw-beian-row {
  width:auto;
  max-width:100%;
  flex-wrap:wrap;
}
.wm-help-legal .wm-legal-strip .bw-beian-row a {
  max-width:100%;
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
  overflow-wrap:anywhere;
}

@media (pointer:fine) and (min-width:1024px) and (max-width:1365px) and (min-height:481px) {
  html[data-wm-desktop] .wm-os-shell {
    grid-template-rows:minmax(0,1fr) auto;
  }
  html[data-wm-desktop] .wm-os-taskbar {
    grid-template-rows:minmax(34px,auto) 36px;
    gap:4px 8px;
    min-height:84px;
    padding:4px 10px;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip {
    min-height:34px;
    padding:4px 8px;
    align-items:center;
    gap:8px 20px;
    line-height:1.6;
    flex-wrap:nowrap;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > .bw-beian-row {
    width:auto;
    max-width:none;
    flex:0 0 auto;
    flex-wrap:nowrap;
    min-height:28px;
    gap:6px 14px;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip .bw-beian-row a {
    min-height:26px;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > p:first-of-type {
    display:flex;
    align-items:center;
    flex:0 0 auto;
    width:max-content;
    max-width:none;
    min-height:24px;
    padding-inline:2px;
    white-space:nowrap;
  }
}

/* R804: Match the reference orbit to the workspace width and reserve a fluid login lane. */
@media (min-width:1200px) and (max-width:1599px) {
  html[data-wm-desktop] .wm-os-workspace[data-wm-business="false"],
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] {
    --wm-login-orbit-space:min(clamp(500px,40.5vw,560px),calc(100vh - 96px));
  }
}
@media (min-width:1200px) {
  html[data-wm-desktop] .wm-os-workspace[data-wm-business="false"] > .wm-orbit {
    right:0;
    width:min(46%,880px,calc(100vh - 120px));
  }
}

/* R813: keep the full legal disclosure visible and aligned with Public-WM. */
@media (pointer:fine) and (min-width:768px) and (min-height:481px) {
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip {
    max-width:none;
    min-height:40.75px;
    overflow:visible;
    gap:8px 12px;
    font-size:12px;
    line-height:1.6;
    flex-wrap:wrap;
    white-space:normal;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > .bw-beian-row {
    width:auto;
    max-width:none;
    flex:0 0 auto;
    overflow:visible;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip .bw-beian-row a {
    overflow:visible;
    text-overflow:clip;
    font-size:12px;
    line-height:1.5;
    letter-spacing:.05em;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip .bw-beian-icon { width:12px;height:12px; }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > p {
    font-size:12px;
    line-height:1.5;
    overflow:visible;
    text-overflow:clip;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > p:first-of-type {
    flex:0 0 auto;
    width:max-content;
    max-width:none;
    white-space:nowrap;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > p + p {
    display:block;
    flex:1 1 260px;
    width:auto;
    max-width:none;
    min-width:240px;
    overflow:visible;
    text-overflow:clip;
    white-space:normal;
    overflow-wrap:anywhere;
    line-height:1.5;
  }
}

/* R819: make the complete legal disclosure comfortable to read in Help,
   especially on phones where the taskbar copy is intentionally hidden. */
.wm-help-legal .wm-legal-strip {
  font-size:12px;
  line-height:1.55;
}
.wm-help-legal .wm-legal-strip > p,
.wm-help-legal .wm-legal-strip > p + p,
.wm-help-legal .wm-legal-strip .bw-beian-row a {
  font-size:12px;
  line-height:1.55;
}
@media (max-width:767px) {
  .wm-help-legal .wm-legal-strip,
  .wm-help-legal .wm-legal-strip > p,
  .wm-help-legal .wm-legal-strip > p + p,
  .wm-help-legal .wm-legal-strip .bw-beian-row a {
    font-size:13px;
    line-height:1.55;
  }
  .wm-help-legal .wm-legal-strip { gap:8px; }
}
@media (pointer:fine) and (min-width:1366px) and (min-height:481px) {
  html[data-wm-desktop] .wm-os-shell { grid-template-rows:minmax(0,1fr) auto; }
  html[data-wm-desktop] .wm-os-taskbar {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(280px,360px);
    grid-template-rows:minmax(34px,auto) 36px;
    align-content:center;
    gap:4px 12px;
    min-height:82px;
    padding:6px 12px;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip {
    grid-column:1 / -1;
    grid-row:1;
    width:100%;
    min-height:34px;
    padding:4px 8px;
    align-items:center;
    gap:8px 22px;
    flex-wrap:nowrap;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > .bw-beian-row {
    width:auto;
    max-width:none;
    flex:0 0 auto;
    flex-wrap:nowrap;
    min-height:28px;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip .bw-beian-row a { min-height:28px; }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > p:first-of-type {
    min-height:26px;
    padding-inline:2px;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > p + p {
    flex:1 1 auto;
    min-width:0;
    white-space:nowrap;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-task-list { grid-column:1;grid-row:2;min-height:36px; }
  html[data-wm-desktop] .wm-os-taskbar .wm-command-form { grid-column:2;grid-row:2;width:100%;min-width:0;min-height:36px; }
}

/* R815: keep registration, copyright, and disclosure text readable at every
   fine-pointer desktop width; wrap whole groups instead of squeezing them. */
@media (pointer:fine) and (min-width:768px) and (min-height:481px) {
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip {
    grid-column:1 / -1;
    grid-row:1;
    width:100%;
    max-width:none;
    min-width:0;
    min-height:40px;
    padding:4px 8px;
    box-sizing:border-box;
    align-content:flex-start;
    align-items:center;
    flex-wrap:wrap;
    line-height:1.5;
    gap:4px 16px;
    overflow:visible;
    white-space:normal;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > .bw-beian-row {
    flex:0 1 auto;
    width:max-content;
    max-width:100%;
    min-height:28px;
    margin:0;
    flex-wrap:wrap;
    gap:6px 12px;
    overflow:visible;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip .bw-beian-row a {
    flex:0 0 auto;
    max-width:none;
    min-height:28px;
    overflow:visible;
    text-overflow:clip;
    white-space:nowrap;
    font-size:12px;
    line-height:1.5;
    letter-spacing:.05em;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip .bw-beian-icon { width:12px;height:12px; }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > p {
    flex:0 1 auto;
    width:max-content;
    max-width:100%;
    min-width:0;
    margin:0;
    overflow:visible;
    text-overflow:clip;
    white-space:normal;
    overflow-wrap:anywhere;
    font-size:12px;
    line-height:1.5;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > p:first-of-type {
    flex:0 1 auto;
    width:max-content;
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > p + p {
    flex:1 1 360px;
    min-width:min(100%,320px);
    white-space:normal;
    overflow-wrap:anywhere;
  }
}

/* R841/R852: reserve the legal and control rows inside the shell at medium
   desktop widths. Keep the upper bound inclusive of 1366px because browser
   scale rounding can make a nominal 1365px viewport slightly wider. A fixed
   5vh shell track was shorter than the wrapped legal copy. */
@media (pointer:fine) and (min-width:768px) and (max-width:1366px) and (min-height:481px) {
  html[data-wm-desktop] .wm-os-shell {
    grid-template-rows:minmax(0,1fr) auto;
  }
  html[data-wm-desktop] .wm-os-taskbar {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(220px,min(360px,35vw));
    grid-template-rows:minmax(40px,auto) minmax(36px,auto);
    align-content:center;
    align-items:center;
    gap:4px 8px;
    min-height:0;
    padding:6px 8px;
    box-sizing:border-box;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip {
    grid-column:1 / -1;
    grid-row:1;
    width:100%;
    max-width:none;
    min-width:0;
    min-height:40px;
    padding:4px 8px;
    box-sizing:border-box;
    align-items:center;
    align-content:center;
    flex-wrap:wrap;
    overflow:visible;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-task-list {
    grid-column:1;
    grid-row:2;
    min-width:0;
    min-height:36px;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-command-form {
    grid-column:2;
    grid-row:2;
    width:100%;
    min-width:0;
    min-height:36px;
  }
}

/* R853: Keep the short-desktop login card and primary action inside the work area. */
@media (min-width:1200px) and (min-height:481px) and (max-height:799px) {
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] > .wm-main-content > .wm-login-outer {
    grid-template-columns:minmax(0,1fr) minmax(360px,390px);
    grid-template-rows:minmax(0,1fr);
    align-items:stretch;
    min-height:0;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro {
    grid-column:1;
    grid-row:1;
    align-self:stretch;
    justify-content:center;
    padding:16px 26px;
  }
  html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-outer .bw-login-page {
    grid-column:2;
    grid-row:1;
    align-self:stretch;
    align-items:stretch;
    justify-content:center;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-hero {
    padding-block:10px 8px!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-logo-img {
    width:36px;
    height:36px;
    margin-bottom:4px;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-body {
    padding-block:10px!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-heading {
    margin-bottom:8px!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-primary .bw-field {
    margin-bottom:6px!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-auth-method-jwt {
    margin-top:8px!important;
    padding-top:8px!important;
  }
  html[data-wm-desktop] .wm-login-outer .bw-login-footer {
    margin-top:6px!important;
    padding-top:6px!important;
    line-height:1.4;
  }
}

/* Keep phone and tablet controls at the shared 48px touch target after the
   desktop shell's higher-specificity button sizing has loaded. */
@media (max-width:900px) {
  html[data-wm-desktop] .wm-existing-app .bw-order-actions .bw-act-btn {
    min-height:48px;
  }
  html[data-wm-desktop] :is(.wm-mobile-menu,.wm-clock-button,.wm-calendar-button) {
    min-width:48px;
    min-height:48px;
  }
}

/* R1198: Match the reference site's login headline type treatment while
   leaving the existing responsive size and layout rules intact. */
html[data-wm-desktop] .wm-main-window[data-wm-business="false"] .wm-login-intro h1 {
  font-family:var(--wm-font)!important;
  letter-spacing:normal;
}

/* R1209: keep the desktop taskbar at the reference's single-row height.
   The full disclosure remains available in the Help window. */
@media (pointer:fine) and (min-width:1200px) and (min-height:481px) {
  html[data-wm-desktop] .wm-os-shell {
    grid-template-rows:minmax(0,1fr) 36px;
  }
  html[data-wm-desktop] .wm-os-taskbar {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto minmax(220px,360px);
    grid-template-rows:36px;
    gap:8px;
    height:36px;
    min-height:36px;
    padding:0 8px;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip {
    grid-column:1;
    grid-row:1;
    display:flex!important;
    width:auto;
    max-width:none;
    min-width:0;
    height:30px;
    min-height:0;
    padding:0;
    overflow:hidden;
    flex-wrap:nowrap;
    align-items:center;
    gap:10px;
    white-space:nowrap;
    font-size:10px;
    line-height:1.3;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > .bw-beian-row {
    width:auto;
    max-width:100%;
    min-width:0;
    min-height:28px;
    flex:0 1 auto;
    flex-wrap:nowrap;
    overflow:hidden;
    gap:6px;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip .bw-beian-row a {
    min-width:0;
    min-height:28px;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > p:first-of-type {
    display:block;
    width:auto;
    max-width:100%;
    min-width:0;
    flex:0 1 auto;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip > p + p {
    display:none!important;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-task-list {
    grid-column:2;
    grid-row:1;
    min-width:96px;
    max-width:240px;
    min-height:32px;
  }
  html[data-wm-desktop] .wm-os-taskbar .wm-command-form {
    grid-column:3;
    grid-row:1;
    width:100%;
    min-width:220px;
    max-width:360px;
    min-height:32px;
  }
}

/* R1214: keep the optional bookmark/JWT recovery instructions in the same
   restrained paper-and-ink login system as the primary authentication card. */
.wm-login-outer .bw-bm-panel {
  padding:14px 16px 12px!important;
  border:1px solid var(--wm-line)!important;
  border-radius:0!important;
  background:var(--wm-paper)!important;
  color:var(--wm-ink)!important;
}
.wm-login-outer .bw-bm-title {
  margin:0 0 10px!important;
  color:var(--wm-ink)!important;
  font:600 11px/1.5 var(--wm-font)!important;
  letter-spacing:.04em!important;
  text-align:left!important;
}
.wm-login-outer .bw-bm-steps,
.wm-login-outer .bw-bm-note {
  color:var(--wm-muted)!important;
  font-size:12px!important;
  line-height:1.7!important;
}
.wm-login-outer .bw-bm-steps b {
  color:var(--wm-ink)!important;
}
.wm-login-outer .bw-bm-link {
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:44px!important;
  margin-top:10px!important;
  padding:8px 14px!important;
  border:1px solid var(--wm-line)!important;
  border-radius:0!important;
  background:var(--wm-surface)!important;
  color:var(--wm-ink)!important;
  font:600 11px/1.3 var(--wm-font)!important;
  text-align:center!important;
  text-decoration:none!important;
  transition:background-color .18s ease,border-color .18s ease,color .18s ease!important;
}
.wm-login-outer .bw-bm-link:hover {
  border-color:var(--wm-primary)!important;
  background:var(--wm-primary)!important;
  color:var(--wm-primary-contrast)!important;
}
.wm-login-outer .bw-bm-link:focus-visible {
  outline:2px solid var(--wm-accent)!important;
  outline-offset:2px!important;
}

/* Keep the two filing labels and the police emblem on the same visual axis.
   Earlier taskbar variants assigned different line heights and minimum
   heights to the links, leaving the emblem centered against a different box. */
.bw-beian-row { align-items:center; }
.bw-beian-row > a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:center;
  height:28px;
  min-height:28px;
  box-sizing:border-box;
  padding-block:0;
  line-height:1;
}
.bw-beian-row > .bw-beian-icon {
  display:block;
  align-self:center;
  width:auto;
  height:16px;
  max-width:16px;
  flex:0 0 auto;
  object-fit:contain;
  vertical-align:middle;
}
html[data-wm-desktop] .wm-os-taskbar .wm-legal-strip .bw-beian-row > .bw-beian-icon {
  width:auto;
  height:16px;
  max-width:16px;
}
