/* Approved Shangpeng brand system, 2026-11-24.
 * Single source for palette, semantic pairs, surfaces and interaction roles.
 * Keep component geometry in its existing stylesheet. See USAGE.md.
 */
:where(body:has(.yoodesk-theme)), .yoodesk-theme {
  color-scheme:light;
  --yd-r-sm:6px;--yd-r-md:8px;--yd-r-lg:12px;--yd-r-pill:999px;
  --yd-brand-orange:#FF6A00;--yd-brand-ink:#1A1A1A;--yd-brand-gray:#8A8D8F;--yd-brand-purple-gray:#B5B0B8;--yd-brand-cloud:#F8F7F5;
  /* Adopted cool-white material. Brand constants above remain unchanged. */
  --yd-brand-bg:#F8FAFD;--yd-brand-nav:#FAFCFE;--yd-brand-surface:#FBFCFE;--yd-brand-surface-soft:#F0F4F8;--yd-brand-surface-raised:#FBFCFE;
  --yd-brand-title:#293547;--yd-brand-text:#3D4859;--yd-brand-muted:#626F80;--yd-brand-border:#E1E7EF;
  --yd-brand-control:#F2F2F2;--yd-brand-card-edge:#F3F6FA;
  --yd-brand-link:#AD4400;--yd-brand-link-hover:#913900;--yd-brand-soft:#FFF0E5;--yd-brand-focus:#AD4400;
  --yd-brand-shadow:0 6px 16px rgba(101,120,148,.10);--yd-brand-studio-shadow:var(--yd-shadow-card);
  --yd-shadow-card:0 2px 6px rgba(101,120,148,.035);--yd-shadow-control:none;
  --yd-shadow-control-hover:0 1px 3px rgba(101,120,148,.08);--yd-shadow-control-active:inset 0 1px 2px rgba(101,120,148,.06);
  --yd-brand-body-shadow:rgba(91,110,140,.055);--yd-brand-glow:rgba(255,106,0,.18);--yd-brand-avatar-shadow:rgba(255,106,0,.55);
  --yd-bg:var(--yd-brand-bg);--yd-surface:var(--yd-brand-surface);--yd-surface-soft:var(--yd-brand-surface-soft);--yd-surface-raised:var(--yd-brand-surface-raised);--yd-surface-overlay:var(--yd-brand-surface-raised);
  --yd-title:var(--yd-brand-title);--yd-text:var(--yd-brand-text);--yd-text-strong:var(--yd-brand-title);--yd-text-muted:var(--yd-brand-muted);--yd-text-subtle:var(--yd-brand-muted);--yd-text-disabled:var(--yd-brand-gray);
  --yd-primary:var(--yd-brand-orange);--yd-primary-hover:#F06000;--yd-primary-active:#E85C00;--yd-on-primary:var(--yd-brand-ink);
  --yd-primary-text:var(--yd-brand-link);--yd-primary-soft:var(--yd-brand-soft);--yd-link:var(--yd-brand-link);--yd-link-hover:var(--yd-brand-link-hover);--yd-link-visited:var(--yd-brand-link);
  --yd-border:var(--yd-brand-border);--yd-border-subtle:var(--yd-brand-border);--yd-border-strong:var(--yd-brand-gray);
  --yd-control-border:var(--yd-brand-control);--yd-card-border:var(--yd-brand-card-edge);
  --yd-focus:var(--yd-brand-focus);--yd-focus-halo:transparent;--yd-hover:var(--yd-brand-surface-soft);--yd-active:var(--yd-brand-soft);--yd-selection:var(--yd-brand-soft);
  --yd-input-bg:var(--yd-surface);--yd-disabled-bg:var(--yd-surface-soft);--yd-table-header:var(--yd-surface);
  --yd-nav-bg:var(--yd-brand-nav);--yd-nav-selected-bg:var(--yd-selection);--yd-nav-selected-text:var(--yd-primary-text);--yd-nav-hover-text:var(--yd-primary-text);
  --yd-tooltip-bg:var(--yd-brand-ink);--yd-tooltip-text:var(--yd-brand-cloud);--yd-mask:rgba(0,0,0,.36);--yd-shadow:var(--yd-brand-shadow);--yd-shadow-prominent:0 12px 28px rgba(101,120,148,.14);
  --yd-toast-bg:var(--yd-brand-ink);--yd-toast-text:var(--yd-brand-cloud);--yd-toast-action:#FFB079;--yd-toast-success:#6EE0B0;--yd-toast-warning:#FFDC70;
  --yd-success:#35BB89;--yd-success-text:#18744F;--yd-success-soft:#EAF8F1;--yd-on-success-strong:#FFFFFF;
  --yd-warning:#F59E0B;--yd-warning-text:#855000;--yd-warning-soft:#FFF5DD;
  --yd-attention:#FD7921;--yd-attention-text:#A54308;--yd-attention-soft:#FFF0E5;
  --yd-error:#DC2626;--yd-error-text:#B91C1C;--yd-error-soft:#FEF2F2;--yd-on-error:#FFFFFF;
  --yd-info:#1B6DE1;--yd-info-text:#0563C1;--yd-info-soft:#EDF4FF;--yd-on-info:#FFFFFF;
  --yd-neutral-text:var(--yd-text-muted);--yd-neutral-soft:var(--yd-surface-soft);--yd-on-primary-text:#FFFFFF;
  --yd-skeleton:var(--yd-border);--yd-scrollbar:var(--yd-brand-purple-gray);--yd-scrollbar-hover:var(--yd-brand-gray);--yd-code-bg:var(--yd-surface-soft);
  --yd-switch-thumb:#FFFFFF;--yd-switch-thumb-on:var(--yd-on-primary);--yd-shadow-color:rgba(101,120,148,.10);
  --yd-shadow-soft-color:rgba(101,120,148,.025);--yd-shadow-card-color:rgba(101,120,148,.035);
  /* Compatibility names remain aliases; new components use the roles above. */
  --yd-lt1:var(--yd-surface);--yd-dk1:var(--yd-text-strong);--yd-lt2:var(--yd-surface-soft);--yd-dk2:var(--yd-text);--yd-accent1:var(--yd-primary);--yd-accent2:var(--yd-attention);--yd-accent3:var(--yd-success);--yd-accent4:var(--yd-warning);--yd-accent5:var(--yd-title);--yd-accent6:var(--yd-text-muted);--yd-hlink:var(--yd-link);--yd-folHlink:var(--yd-link-visited);
  --yd-font-family: MiSans, "Noto Sans CJK SC", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* System UI scale, exact sizes / weights / line heights. */
  --yd-font-ui-xl: 600 24px/32px var(--yd-font-family);
  --yd-font-ui-l: 500 20px/28px var(--yd-font-family);
  --yd-font-ui-m: 500 16px/28px var(--yd-font-family);
  --yd-font-ui-base: 400 16px/24px var(--yd-font-family);
  --yd-font-ui-s: 400 14px/22px var(--yd-font-family);
  --yd-font-ui-xs: 400 13px/20px var(--yd-font-family);
  --yd-font-ui-xxs: 400 12px/18px var(--yd-font-family);
  --yd-font-ui-xxxs: 400 11px/14px var(--yd-font-family);
  --yd-font-ui-s-strong: 500 14px/22px var(--yd-font-family);
  --yd-font-ui-xs-strong: 500 13px/20px var(--yd-font-family);
  --yd-font-ui-xxs-strong: 500 12px/18px var(--yd-font-family);
  --yd-font-ui-xxxs-strong: 500 11px/14px var(--yd-font-family);
  --yd-font-markdown-h1: 700 21px/30px var(--yd-font-family);
  --yd-font-markdown-h2: 700 19px/28px var(--yd-font-family);
  --yd-font-markdown-h3: 700 18px/26px var(--yd-font-family);
  --yd-font-markdown-h4: 600 14px/24px var(--yd-font-family);
  --yd-font-markdown-body: 400 14px/24px var(--yd-font-family);
  --yd-dark-brand-bg:var(--yd-brand-ink);
  --yd-dark-brand-nav:var(--yd-brand-ink);--yd-dark-brand-control:var(--yd-brand-gray);--yd-dark-brand-card-edge:var(--yd-dark-brand-border);
  --yd-dark-brand-surface:#242323;
  --yd-dark-brand-surface-soft:#302E2D;
  --yd-dark-brand-surface-raised:#302E2D;
  --yd-dark-brand-title:var(--yd-brand-cloud);
  --yd-dark-brand-text:var(--yd-brand-cloud);
  --yd-dark-brand-muted:var(--yd-brand-purple-gray);
  --yd-dark-brand-border:#494448;
  --yd-dark-brand-link:#FFB079;
  --yd-dark-brand-link-hover:#FFD0AE;
  --yd-dark-brand-soft:#3B2A20;
  --yd-dark-brand-focus:var(--yd-brand-orange);
  --yd-dark-brand-shadow:0 6px 16px rgba(0,0,0,.18);
  --yd-dark-brand-studio-shadow:var(--yd-shadow-card);
  --yd-dark-shadow-card:0 2px 6px rgba(0,0,0,.10);--yd-dark-shadow-control-hover:0 1px 3px rgba(0,0,0,.16);--yd-dark-shadow-control-active:inset 0 1px 2px rgba(0,0,0,.14);
  --yd-dark-tooltip-bg:var(--yd-brand-cloud);
  --yd-dark-tooltip-text:var(--yd-brand-ink);
  --yd-dark-mask:rgba(0,0,0,.5);
  --yd-dark-shadow-prominent:0 12px 28px rgba(0,0,0,.24);
  --yd-dark-success:#35BB89;
  --yd-dark-success-text:#6EE0B0;
  --yd-dark-success-soft:#0C3C32;
  --yd-dark-on-success-strong:var(--yd-brand-ink);
  --yd-dark-warning:#FECC2B;
  --yd-dark-warning-text:#FFDC70;
  --yd-dark-warning-soft:#443810;
  --yd-dark-attention:#FD7921;
  --yd-dark-attention-text:#FFB47A;
  --yd-dark-attention-soft:#482B1C;
  --yd-dark-error:#FF8E95;
  --yd-dark-error-text:#FFADB2;
  --yd-dark-error-soft:#4A2532;
  --yd-dark-on-error:var(--yd-brand-ink);
  --yd-dark-info:#00B0F0;
  --yd-dark-info-text:#8FE6FF;
  --yd-dark-info-soft:#073B50;
  --yd-dark-on-info:var(--yd-brand-ink);
  --yd-dark-on-primary-text:var(--yd-brand-ink);
}


body[data-ds-dark-theme],body[data-ds-dark-theme] .yoodesk-theme,.yoodesk-theme[data-yd-theme="dark"] {
  color-scheme:dark;
  --yd-brand-nav:var(--yd-dark-brand-nav);--yd-brand-control:var(--yd-dark-brand-control);--yd-brand-card-edge:var(--yd-dark-brand-card-edge);
  --yd-shadow-card:var(--yd-dark-shadow-card);--yd-shadow-control-hover:var(--yd-dark-shadow-control-hover);--yd-shadow-control-active:var(--yd-dark-shadow-control-active);
  --yd-brand-bg:var(--yd-dark-brand-bg);--yd-brand-surface:var(--yd-dark-brand-surface);--yd-brand-surface-soft:var(--yd-dark-brand-surface-soft);--yd-brand-surface-raised:var(--yd-dark-brand-surface-raised);
  --yd-brand-title:var(--yd-dark-brand-title);--yd-brand-text:var(--yd-dark-brand-text);--yd-brand-muted:var(--yd-dark-brand-muted);--yd-brand-border:var(--yd-dark-brand-border);
  --yd-brand-link:var(--yd-dark-brand-link);--yd-brand-link-hover:var(--yd-dark-brand-link-hover);--yd-brand-soft:var(--yd-dark-brand-soft);--yd-brand-focus:var(--yd-dark-brand-focus);
  --yd-brand-shadow:var(--yd-dark-brand-shadow);--yd-brand-studio-shadow:var(--yd-dark-brand-studio-shadow);
  --yd-tooltip-bg:var(--yd-dark-tooltip-bg);--yd-tooltip-text:var(--yd-dark-tooltip-text);--yd-mask:var(--yd-dark-mask);--yd-shadow-prominent:var(--yd-dark-shadow-prominent);
  --yd-success:var(--yd-dark-success);--yd-success-text:var(--yd-dark-success-text);--yd-success-soft:var(--yd-dark-success-soft);--yd-on-success-strong:var(--yd-dark-on-success-strong);
  --yd-warning:var(--yd-dark-warning);--yd-warning-text:var(--yd-dark-warning-text);--yd-warning-soft:var(--yd-dark-warning-soft);
  --yd-attention:var(--yd-dark-attention);--yd-attention-text:var(--yd-dark-attention-text);--yd-attention-soft:var(--yd-dark-attention-soft);
  --yd-error:var(--yd-dark-error);--yd-error-text:var(--yd-dark-error-text);--yd-error-soft:var(--yd-dark-error-soft);--yd-on-error:var(--yd-dark-on-error);
  --yd-info:var(--yd-dark-info);--yd-info-text:var(--yd-dark-info-text);--yd-info-soft:var(--yd-dark-info-soft);--yd-on-info:var(--yd-dark-on-info);--yd-on-primary-text:var(--yd-dark-on-primary-text);
}
@media(prefers-color-scheme:dark){body.yd-login{
  color-scheme:dark;
  --yd-brand-nav:var(--yd-dark-brand-nav);--yd-brand-control:var(--yd-dark-brand-control);--yd-brand-card-edge:var(--yd-dark-brand-card-edge);
  --yd-shadow-card:var(--yd-dark-shadow-card);--yd-shadow-control-hover:var(--yd-dark-shadow-control-hover);--yd-shadow-control-active:var(--yd-dark-shadow-control-active);
  --yd-brand-bg:var(--yd-dark-brand-bg);--yd-brand-surface:var(--yd-dark-brand-surface);--yd-brand-surface-soft:var(--yd-dark-brand-surface-soft);--yd-brand-surface-raised:var(--yd-dark-brand-surface-raised);
  --yd-brand-title:var(--yd-dark-brand-title);--yd-brand-text:var(--yd-dark-brand-text);--yd-brand-muted:var(--yd-dark-brand-muted);--yd-brand-border:var(--yd-dark-brand-border);
  --yd-brand-link:var(--yd-dark-brand-link);--yd-brand-link-hover:var(--yd-dark-brand-link-hover);--yd-brand-soft:var(--yd-dark-brand-soft);--yd-brand-focus:var(--yd-dark-brand-focus);
  --yd-brand-shadow:var(--yd-dark-brand-shadow);--yd-brand-studio-shadow:var(--yd-dark-brand-studio-shadow);
  --yd-tooltip-bg:var(--yd-dark-tooltip-bg);--yd-tooltip-text:var(--yd-dark-tooltip-text);--yd-mask:var(--yd-dark-mask);--yd-shadow-prominent:var(--yd-dark-shadow-prominent);
  --yd-success:var(--yd-dark-success);--yd-success-text:var(--yd-dark-success-text);--yd-success-soft:var(--yd-dark-success-soft);--yd-on-success-strong:var(--yd-dark-on-success-strong);
  --yd-warning:var(--yd-dark-warning);--yd-warning-text:var(--yd-dark-warning-text);--yd-warning-soft:var(--yd-dark-warning-soft);
  --yd-attention:var(--yd-dark-attention);--yd-attention-text:var(--yd-dark-attention-text);--yd-attention-soft:var(--yd-dark-attention-soft);
  --yd-error:var(--yd-dark-error);--yd-error-text:var(--yd-dark-error-text);--yd-error-soft:var(--yd-dark-error-soft);--yd-on-error:var(--yd-dark-on-error);
  --yd-info:var(--yd-dark-info);--yd-info-text:var(--yd-dark-info-text);--yd-info-soft:var(--yd-dark-info-soft);--yd-on-info:var(--yd-dark-on-info);--yd-on-primary-text:var(--yd-dark-on-primary-text);
}}
/* Shared employee-center structure; business-specific content remains local. */
.yoodesk-theme .yd-employee-heading { flex:none; min-width:0; padding:24px 28px 0; background:var(--yd-surface); border-bottom:1px solid var(--yd-border); }
.yoodesk-theme .yd-employee-heading > h1 { max-width:1264px; margin:0 auto 14px; font-size:24px; line-height:32px; font-weight:600; color:var(--yd-title); }
.yoodesk-theme .yd-employee-nav { display:flex; max-width:1264px; margin:0 auto; gap:24px; overflow-x:auto; scrollbar-width:none; }
.yoodesk-theme .yd-employee-nav::-webkit-scrollbar{display:none}
.yoodesk-theme .yd-employee-nav > button { flex:none; min-height:44px; border:0; border-bottom:2px solid transparent; padding:10px 2px 12px; background:transparent; color:var(--yd-text-muted); font:inherit; font-size:14px; cursor:pointer; white-space:nowrap; }
.yoodesk-theme .yd-employee-nav > button:hover { color:var(--yd-title); }
.yoodesk-theme .yd-employee-nav > button[aria-selected=true] { color:var(--yd-primary-text); border-bottom-color:var(--yd-primary); font-weight:500; }
.yoodesk-theme .yd-employee-nav > button:focus-visible { outline:2px solid var(--yd-focus); outline-offset:-3px; }
.yoodesk-theme .yd-employee-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; min-width:0; }
.yoodesk-theme .yd-employee-toolbar__summary, .yoodesk-theme .yd-employee-toolbar__actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; min-width:0; }
.yoodesk-theme .yd-employee-toolbar__summary { flex:1; }
.yoodesk-theme .yd-employee-toolbar__actions { margin-left:auto; }
.yoodesk-theme .yd-employee-toolbar h2 { margin:0; font-size:16px; line-height:28px; font-weight:500; color:var(--yd-title); }
.yoodesk-theme .yd-employee-updated { font-size:12px; color:var(--yd-text-muted); }
.yoodesk-theme .yd-employee-states { display:flex; gap:12px; flex-wrap:wrap; width:100%; }
.yoodesk-theme .yd-employee-states > span { display:flex; gap:8px; align-items:center; font-size:12px; }
@media(max-width:640px) { .yoodesk-theme .yd-employee-heading { padding:20px 16px 0; }.yoodesk-theme .yd-employee-nav { gap:20px; }.yoodesk-theme .yd-employee-toolbar__actions { margin-left:0; } }

/* Purpose groups in plugin-owned sidebar slots; the host conversation remains available. */
.yoodesk-theme .yd-sidebar-group { padding:12px 10px 4px; font-size:11px; line-height:18px; color:var(--yd-text-muted); }
.yoodesk-theme .yd-sidebar-group hr { margin:6px 0; border:0; border-top:1px solid var(--yd-border); }
.yoodesk-theme :is(.yd-nav,.ydc-sidebar-entry) button[aria-current=page], .ydc-sidebar-entry.yoodesk-theme > button[aria-current=page], .yd-nav.yoodesk-theme > button[aria-current=page] { background:var(--yd-nav-selected-bg); color:var(--yd-nav-selected-text); font-weight:500; border-radius:var(--yd-r-sm); }
.yd-nav.yoodesk-theme { display:flex; flex-direction:column; align-items:stretch; }
/* Page title and read freshness share a consistent top row. */
.yoodesk-theme .yd-employee-heading__row { max-width:1264px; margin:0 auto 14px; display:flex; align-items:flex-start; justify-content:space-between; gap:12px 24px; flex-wrap:wrap; }
.yoodesk-theme .yd-employee-heading__row > h1 { margin:0; font-size:24px; line-height:32px; font-weight:600; color:var(--yd-title); }
.yoodesk-theme .yd-explanation { display:block; font-weight:400; line-height:1.65; text-align:left; }
.yoodesk-theme .yd-explanation__block { display:block; }
.yoodesk-theme .yd-explanation__block + .yd-explanation__block { margin-top:10px; }
.yoodesk-theme .yd-explanation__paragraph { display:block; }
.yoodesk-theme .yd-explanation__list { display:block; margin:5px 0 0; padding-left:1.25em; }
.yoodesk-theme .yd-explanation__item { display:list-item; list-style-type:disc; }
.yoodesk-theme .yd-explanation__item + .yd-explanation__item { margin-top:5px; }
/* One read-only refresh action across business and automation page headers. */
.yoodesk-theme .yd-refresh-control { display:inline-flex; align-items:center; gap:8px; flex-shrink:0; }
.yoodesk-theme .yd-refresh-control button.yd-refresh-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:36px; padding:7px 14px; border:1px solid var(--yd-border); border-radius:var(--yd-r-md); background:var(--yd-surface); color:var(--yd-text); font:var(--yd-font-ui-s-strong); cursor:pointer; white-space:nowrap; }
.yoodesk-theme .yd-refresh-control button.yd-refresh-button:hover:not(:disabled) { background:var(--yd-hover); border-color:var(--yd-border-strong); }
.yoodesk-theme .yd-refresh-control button.yd-refresh-button:focus-visible { outline:2px solid var(--yd-focus); outline-offset:2px; }
.yoodesk-theme .yd-refresh-control button.yd-refresh-button:disabled { opacity:.55; cursor:not-allowed; }
.yoodesk-theme .yd-refresh-error { color:var(--yd-danger); font:var(--yd-font-ui-xs); }
.yoodesk-theme .yd-page-refresh { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex-wrap:wrap; }
.yoodesk-theme .yd-employee-status { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 24px; padding:16px 20px; border:1px solid var(--yd-border); border-radius:var(--yd-r-md); background:var(--yd-surface); }
.yoodesk-theme .yd-employee-status__summary,.yoodesk-theme .yd-employee-status__actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.yoodesk-theme .yd-employee-status .yd-employee-status__summary > h2 { margin:0; font:var(--yd-font-ui-m); color:var(--yd-title); }
.yoodesk-theme .yd-employee-status small { color:var(--yd-text-muted); }
.yoodesk-theme .yd-employee-heading__profile{max-width:1264px;margin:0 auto 18px;min-width:0}
.yoodesk-theme .yd-employee-profile{display:flex;align-items:center;gap:22px;padding:18px 0;color:var(--yd-text)}
.yoodesk-theme .yd-employee-avatar{display:block;width:112px;height:112px;flex:0 0 112px}
.yoodesk-theme .yd-employee-avatar.is-logistics{--yd-primary:var(--yd-success);--yd-primary-soft:var(--yd-success-soft)}
.yoodesk-theme .yd-employee-avatar.is-aftersales{--yd-primary:var(--yd-warning);--yd-primary-soft:var(--yd-warning-soft)}
.yoodesk-theme .yd-employee-profile__body{min-width:0}
.yoodesk-theme .yd-employee-profile__name{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.yoodesk-theme .yd-employee-profile h2{margin:0;color:var(--yd-title);font-size:22px;line-height:1.5;font-weight:600}
.yoodesk-theme .yd-employee-profile__role{margin:4px 0 0;font-size:14px;color:var(--yd-text-muted)}
.yoodesk-theme .yd-employee-profile__description{margin:4px 0 0;max-width:780px;font-size:13px;line-height:1.8;color:var(--yd-text-muted)}
.yoodesk-theme .yd-employee-profile ul{display:flex;gap:8px;flex-wrap:wrap;list-style:none;margin:10px 0 0;padding:0}
.yoodesk-theme .yd-employee-profile li{padding:3px 9px;border:1px solid var(--yd-border);border-radius:var(--yd-r-pill);color:var(--yd-text-muted);font-size:11px}
.yoodesk-theme .yd-employee-profile.is-compact{padding:6px 0;gap:14px}
.yoodesk-theme .yd-employee-profile.is-compact .yd-employee-avatar{width:64px;height:64px;flex-basis:64px}
.yoodesk-theme .yd-employee-profile.is-compact h2{font-size:18px}
@media(max-width:640px){.yoodesk-theme .yd-employee-profile{gap:14px}.yoodesk-theme .yd-employee-avatar{width:80px;height:80px;flex-basis:80px}.yoodesk-theme .yd-employee-profile h2{font-size:18px}.yoodesk-theme .yd-employee-profile__description{font-size:12px}}

.yoodesk-theme .yd-employee-profile__body{flex:1}
.yoodesk-theme .yd-employee-profile__status{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:8px 0;color:var(--yd-text-muted);font-size:12px}
.yoodesk-theme .yd-employee-profile__status small{font-size:12px}
.yoodesk-theme .yd-employee-profile__actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;flex:0 0 auto}
@media(max-width:640px){.yoodesk-theme .yd-employee-profile{flex-wrap:wrap}.yoodesk-theme .yd-employee-profile__body{flex:1 1 calc(100% - 100px)}.yoodesk-theme .yd-employee-profile__actions{width:100%;justify-content:flex-start}}

/* Keep employee identity prominent without repeating job descriptions and tags. */
.yoodesk-theme .yd-employee-profile{padding:12px 0;gap:18px}
.yoodesk-theme .yd-employee-avatar{width:88px;height:88px;flex-basis:88px}
.yoodesk-theme .yd-employee-heading__profile{margin-bottom:10px}
@media(max-width:640px){.yoodesk-theme .yd-employee-avatar{width:72px;height:72px;flex-basis:72px}}

.yoodesk-theme .yd-employee-profile__name > .ydc-tip{padding:0;background:transparent;border-radius:0;color:var(--yd-text-muted);font-size:inherit}

/* Preserve the employee header geometry when moving between its tabs. */
.yoodesk-theme .yd-employee-profile__actions{min-height:36px}

/* Unified control states: one edge, no detached focus halo. Scoped to product UI. */
.yoodesk-theme :is(input,select,textarea)[aria-invalid="true"] { --yd-focus:var(--yd-error); }
.yoodesk-theme :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea):focus {
  outline:none !important; box-shadow:none !important; border-color:var(--yd-focus) !important;
}
.yoodesk-theme :is(input,select,textarea)[aria-invalid="true"]:focus { border-color:var(--yd-error) !important; }
.yoodesk-theme :is(button,a[href],summary,[tabindex]):not(:disabled):not([aria-disabled="true"]):focus-visible {
  outline:2px solid var(--yd-focus) !important; outline-offset:-2px !important; box-shadow:none !important;
}
.yoodesk-theme :is(input[type="checkbox"],input[type="radio"]):focus-visible {
  outline:2px solid var(--yd-focus) !important; outline-offset:-2px !important; box-shadow:none !important;
}
.yoodesk-theme :is(input[type="checkbox"],input[type="radio"]) { accent-color:var(--yd-primary); }
.yoodesk-theme :is(.ydc-search,.sp-input-group):focus-within {
  border-color:var(--yd-focus); outline:none !important; box-shadow:none !important;
}
.yoodesk-theme .ydc-search input:focus { border:0 !important; }
.yoodesk-theme .sp-dropdown__trigger[aria-expanded="true"] { border-color:var(--yd-focus); box-shadow:none !important; }
.yoodesk-theme :is(input,select,textarea):not(:disabled):not([readonly]):hover { border-color:var(--yd-control-border); }
.yoodesk-theme :is(input,select,textarea):disabled { color:var(--yd-text-disabled); cursor:not-allowed !important; }
.yoodesk-theme :is(button,[role="button"]):disabled { cursor:not-allowed !important; }
.yoodesk-theme :is(.ydc-btn,.sp-button,.yd-board-primary,.bl-primary):disabled {
  background:var(--yd-surface-soft) !important; border-color:var(--yd-border) !important;
  color:var(--yd-text-disabled) !important; opacity:1; box-shadow:none !important;
}
.yoodesk-theme button[aria-busy="true"],.yoodesk-theme button[aria-busy="true"]:disabled { cursor:progress !important; }
.yoodesk-theme :is(.ydc-btn,.sp-button):active:not(:disabled) { background:var(--yd-selection); }
.yoodesk-theme :is(.ydc-btn--primary,.sp-button--primary,.yd-board-primary):active:not(:disabled) {
  background:var(--yd-primary-hover); border-color:var(--yd-primary-hover);
}
.yoodesk-theme :is(.ydc-tabs,.ydc-seg) button:disabled {
  color:var(--yd-text-disabled); background:transparent; box-shadow:none;
}
/* Selects with a separate icon must never also show a native/background arrow. */
.yoodesk-theme .ydc-select select { background-image:none !important; appearance:none; }
.yoodesk-theme .ydc-select:has(select:disabled) .ydc-icon { color:var(--yd-text-disabled); }
@media(forced-colors:active) {
  .yoodesk-theme :is(button,a[href],summary,[tabindex],input,select,textarea):focus-visible {
    outline:2px solid Highlight !important; outline-offset:-2px !important;
  }
}

.yoodesk-theme .ydc-control-option:focus-within { outline:none !important; box-shadow:none !important; border-color:var(--yd-focus); }
.yoodesk-theme .sp-dropdown__trigger:disabled { color:var(--yd-text-disabled); background:var(--yd-surface-soft); border-color:var(--yd-border); }
.yoodesk-theme .ydc-search:has(input:disabled) { background:var(--yd-surface-soft); color:var(--yd-text-disabled); cursor:not-allowed; }

.yoodesk-theme .ydc-select { width:fit-content; min-width:88px; max-width:260px; }
.yoodesk-theme .ydc-select select { width:100%; min-width:0; }
.yoodesk-theme :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),select,textarea) { border-radius:var(--yd-r-sm); }

/* Supplied employee artwork keeps its own colors, proportions and transparency. */
.yoodesk-theme .yd-employee-portrait{display:block;object-fit:contain;flex-shrink:0;max-width:none;user-select:none}
.yoodesk-theme .yd-employee-avatar{object-fit:contain;background:transparent;border:0;border-radius:0}
.yoodesk-theme :is(.sp-avatar,.ydc-staff__avatar):has(.yd-employee-portrait){background:transparent;border-radius:0}
.yoodesk-theme .sp-matrix-card__identity .sp-avatar:has(.yd-employee-portrait){width:40px;height:40px}
.yoodesk-theme :is(.sp-empty,.ydc-empty) > .yd-employee-portrait{margin:0 auto 6px}

/* Employee identity is shared across native and legacy plugin containers. */
.yoodesk-theme .yd-employee-profile .yd-employee-profile__name h2{margin:0;font-size:22px;line-height:33px;font-weight:600}
.yoodesk-theme .yd-employee-profile .yd-employee-profile__actions :is(.sp-button,.ydc-btn){height:36px;min-height:36px;padding:0 12px;font:var(--yd-font-ui-s);border-radius:var(--yd-r-sm);box-shadow:none}
@media(max-width:640px){.yoodesk-theme .yd-employee-profile .yd-employee-profile__name h2{font-size:18px;line-height:27px}}

/* Compact employee headers in the sidebar while preserving a stable action row. */
@media(max-width:640px){
  .yoodesk-theme .yd-employee-heading{padding-top:16px}
  .yoodesk-theme .yd-employee-heading__row{margin-bottom:6px}
  .yoodesk-theme .yd-employee-heading__profile{margin-bottom:4px}
  .yoodesk-theme .yd-employee-profile{padding:6px 0;gap:8px 12px}
  .yoodesk-theme .yd-employee-profile__status{margin:4px 0}
  .yoodesk-theme .yd-employee-profile__description{line-height:1.55}
}

/* Keep native selection, validation and keyboard behavior; style its picker
   where supported. Older browsers retain the same closed-control treatment. */
.yoodesk-theme.yoodesk-theme select:not([multiple]):not([size]){
  appearance:none;min-width:0;min-height:34px;padding:6px 32px 6px 12px !important;
  border:1px solid var(--yd-border);border-radius:var(--yd-r-sm);background-color:var(--yd-surface);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%236B7280' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;background-position:right 10px center !important;background-size:14px 14px !important;
  color:var(--yd-text);font:var(--yd-font-ui-s);cursor:pointer;
}
.yoodesk-theme :is(.ydc-select,.yd-board-select) .ydc-icon{display:none}
.yoodesk-theme.yoodesk-theme select:not([multiple]):not([size]):disabled{background-color:var(--yd-surface-soft);color:var(--yd-text-disabled);opacity:1}
@supports(appearance:base-select){
  .yoodesk-theme.yoodesk-theme select:not([multiple]):not([size]),
  .yoodesk-theme.yoodesk-theme select:not([multiple]):not([size])::picker(select){appearance:base-select}
  .yoodesk-theme select::picker-icon{display:none}
  .yoodesk-theme select::picker(select){
    margin-block:4px;padding:4px;border:1px solid var(--yd-border);border-radius:var(--yd-r-md);
    background:var(--yd-surface-raised);color:var(--yd-text);box-shadow:var(--yd-shadow);max-height:min(320px,60vh);overflow:auto;
  }
  .yoodesk-theme select option{display:flex;align-items:center;gap:8px;min-height:32px;padding:6px 10px;border-radius:var(--yd-r-sm);font:var(--yd-font-ui-s);cursor:pointer}
  .yoodesk-theme select option:checked{background:var(--yd-selection);color:var(--yd-primary-text)}
  .yoodesk-theme select option:is(:hover,:focus-visible):not(:disabled){background:var(--yd-hover)}
  .yoodesk-theme select option:disabled{color:var(--yd-text-disabled);cursor:not-allowed}
  .yoodesk-theme select option::checkmark{color:var(--yd-primary-text)}
}
@media(forced-colors:active){.yoodesk-theme.yoodesk-theme select:not([multiple]):not([size]){appearance:auto;background-image:none !important}}

/* Notification actions remain visible beside each scene on a narrow panel. */
@media(max-width:640px){
  .yoodesk-theme.yoodesk-theme table:is(.nw-notification-table,.nw-scene-table){display:block;width:100%;min-width:0;table-layout:auto}
  .yoodesk-theme :is(.nw-notification-table,.nw-scene-table) thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .yoodesk-theme :is(.nw-notification-table,.nw-scene-table) tbody{display:block}
  .yoodesk-theme :is(.nw-notification-table,.nw-scene-table) tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:12px;border-bottom:1px solid var(--yd-border)}
  .yoodesk-theme :is(.nw-notification-table,.nw-scene-table) tr:last-child{border-bottom:0}
  .yoodesk-theme.yoodesk-theme table:is(.nw-notification-table,.nw-scene-table) td{display:block;width:auto;min-width:0;padding:0;border:0;white-space:normal;overflow-wrap:anywhere;grid-column:1/-1}
  .yoodesk-theme :is(.nw-notification-table,.nw-scene-table) td[data-label]:not(:first-child):not(:last-child)::before{content:attr(data-label);display:inline-block;min-width:64px;margin-right:8px;color:var(--yd-text-muted)}
  .yoodesk-theme.yoodesk-theme :is(.nw-notification-table,.nw-scene-table) td:first-child{grid-row:1;grid-column:1;align-self:center}
  .yoodesk-theme.yoodesk-theme :is(.nw-notification-table,.nw-scene-table) td:last-child{grid-row:1;grid-column:2;align-self:center}
}
.yoodesk-theme .ydc-employee-title{display:flex;align-items:center;gap:10px;min-width:0}
.yoodesk-theme .yd-board-employee-icon:has(.yd-employee-portrait){background:transparent}
.yoodesk-theme .yd-board-employee-icon > .yd-employee-portrait{width:100%!important;height:100%!important}
.yoodesk-theme :is(.ydc-sidebar-entry,.sp-sidebar-entry,.aftersales-sidebar) button:has(> .yd-employee-portrait){padding-block:5px;gap:5px}
.yoodesk-theme .ydc-sidebar-entry[data-compact] button:has(> .yd-employee-portrait){padding:0}
.yoodesk-theme .ydc-sidebar-entry button > .yd-employee-portrait{width:26px!important;height:26px!important}
.yoodesk-theme .ydc-staff--compact .ydc-staff__avatar{width:32px;height:32px}
/* Match native 18px/16-viewBox sidebar glyphs: one unit renders at 1.125px. */
.ydc-sidebar-entry.yoodesk-theme > button > svg.ydc-icon{stroke-width:1.125;color:inherit}
@media (prefers-reduced-motion: reduce) {
  .yoodesk-theme *, .yoodesk-theme *::before, .yoodesk-theme *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
/* Shared visual roles; page-specific accent colors remain unchanged. */
.yoodesk-theme{--yd-panel-radius:var(--yd-r-lg);--yd-panel-shadow:none;--yd-control-hit:30px}
.yoodesk-theme .yd-employee-activity{display:flex;align-items:baseline;gap:6px 16px;flex-wrap:wrap;margin:7px 0 0;font-size:13px;line-height:1.7}
.yoodesk-theme .yd-employee-activity strong{font-weight:500;color:var(--yd-title)}
.yoodesk-theme .yd-employee-activity span{color:var(--yd-text-muted);font-size:12px}
.yoodesk-theme :is(.ydc-tip__btn,.yd-refresh-info){min-width:var(--yd-control-hit);min-height:var(--yd-control-hit);width:var(--yd-control-hit);height:var(--yd-control-hit);display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;padding:5px;vertical-align:middle;box-shadow:none}
.yoodesk-theme .ydc-tip__btn:focus-visible{outline:2px solid var(--yd-focus);outline-offset:-2px;border-radius:var(--yd-r-sm)}

/* Neural homepage: compatibility aliases use the approved project roles. */
.yd-neural-home {
  --yd-nh-paint-1: var(--yd-bg);
  --yd-nh-paint-2: var(--yd-surface);
  --yd-nh-paint-3: var(--yd-surface-soft);
  --yd-nh-paint-4: var(--yd-surface);
  --yd-nh-paint-5: var(--yd-surface-raised);
  --yd-nh-paint-6: var(--yd-border);
  --yd-nh-paint-7: var(--yd-border-strong);
  --yd-nh-paint-8: var(--yd-text);
  --yd-nh-paint-9: var(--yd-text-muted);
  --yd-nh-paint-10: var(--yd-text-muted);
  --yd-nh-paint-11: var(--yd-link);
  --yd-nh-paint-12: var(--yd-text-muted);
  --yd-nh-paint-13: var(--yd-link);
  --yd-nh-paint-14: var(--yd-link);
  --yd-nh-paint-15: var(--yd-link);
  --yd-nh-paint-16: var(--yd-error-text);
  --yd-nh-paint-17: var(--yd-success-text);
  --yd-nh-paint-18: var(--yd-surface);
  --yd-nh-paint-19: var(--yd-surface);
  --yd-nh-paint-20: var(--yd-hover);
  --yd-nh-paint-21: var(--yd-shadow-color);
  --yd-nh-paint-22: var(--yd-surface-soft);
  --yd-nh-paint-23: var(--yd-bg);
  --yd-nh-paint-24: transparent;
  --yd-nh-paint-25: var(--yd-surface);
  --yd-nh-paint-26: var(--yd-primary-soft);
  --yd-nh-paint-27: var(--yd-focus);
  --yd-nh-paint-28: var(--yd-primary-soft);
  --yd-nh-paint-29: var(--yd-border-strong);
  --yd-nh-paint-30: var(--yd-title);
  --yd-nh-paint-31: var(--yd-surface);
  --yd-nh-paint-32: var(--yd-selection);
  --yd-nh-paint-33: var(--yd-surface);
  --yd-nh-paint-34: var(--yd-focus);
  --yd-nh-paint-35: var(--yd-primary-soft);
  --yd-nh-paint-36: var(--yd-surface);
  --yd-nh-paint-37: var(--yd-surface);
  --yd-nh-paint-38: var(--yd-hover);
  --yd-nh-paint-39: var(--yd-focus);
  --yd-nh-paint-40: var(--yd-primary);
  --yd-nh-paint-41: var(--yd-primary);
  --yd-nh-paint-42: var(--yd-on-primary);
  --yd-nh-paint-43: var(--yd-shadow-color);
  --yd-nh-paint-44: var(--yd-on-primary);
  --yd-nh-paint-45: var(--yd-primary-soft);
  --yd-nh-paint-46: var(--yd-error-text);
  --yd-nh-paint-47: var(--yd-primary-soft);
  --yd-nh-paint-48: var(--yd-bg);
  --yd-nh-paint-49: var(--yd-bg);
  --yd-nh-paint-50: var(--yd-bg);
  --yd-nh-paint-51: var(--yd-brand-ink);
  --yd-nh-paint-52: color-mix(in srgb, var(--yd-brand-ink) 82%, transparent);
  --yd-nh-paint-53: color-mix(in srgb, var(--yd-brand-ink) 50%, transparent);
  --yd-nh-paint-54: color-mix(in srgb, var(--yd-brand-ink) 20%, transparent);
  --yd-nh-paint-55: var(--yd-primary-soft);
  --yd-nh-paint-56: var(--yd-primary-soft);
  --yd-nh-paint-57: var(--yd-primary-soft);
  --yd-nh-paint-58: var(--yd-primary-soft);
  --yd-nh-paint-59: var(--yd-primary-soft);
  --yd-nh-paint-60: var(--yd-primary-soft);
  --yd-nh-paint-61: var(--yd-primary-soft);
  --yd-nh-paint-62: var(--yd-text-muted);
  --yd-nh-paint-63: var(--yd-surface);
  --yd-nh-paint-64: var(--yd-surface);
  --yd-nh-paint-65: var(--yd-focus);
  --yd-nh-paint-66: var(--yd-selection);
  --yd-nh-paint-67: var(--yd-shadow-color);
  --yd-nh-paint-68: var(--yd-surface-soft);
  --yd-nh-paint-69: var(--yd-selection);
  --yd-nh-paint-70: var(--yd-selection);
  --yd-nh-paint-71: var(--yd-surface);
  --yd-nh-paint-72: var(--yd-title);
  --yd-nh-paint-73: var(--yd-surface);
  --yd-nh-paint-74: var(--yd-text-muted);
  --yd-nh-paint-75: var(--yd-text-muted);
  --yd-nh-paint-76: var(--yd-text-muted);
  --yd-nh-paint-77: var(--yd-text-muted);
  --yd-nh-paint-78: var(--yd-text-muted);
  --yd-nh-paint-79: var(--yd-text-muted);
  --yd-nh-paint-80: var(--yd-text-muted);
  --yd-nh-paint-81: var(--yd-text-muted);
  --yd-nh-paint-82: var(--yd-text-muted);
  --yd-nh-paint-83: var(--yd-text-muted);
  --yd-nh-paint-84: var(--yd-text-muted);
  --yd-nh-paint-85: var(--yd-text-muted);
  --yd-nh-paint-86: var(--yd-text-muted);
  --yd-nh-paint-87: var(--yd-text-muted);
  --yd-nh-paint-88: var(--yd-text-muted);
  --yd-nh-paint-89: var(--yd-text-muted);
  --yd-nh-paint-90: var(--yd-text-muted);
  --yd-nh-paint-91: var(--yd-text-muted);
  --yd-nh-paint-92: var(--yd-scrollbar);
  --yd-nh-paint-93: var(--yd-text-muted);
  --yd-nh-paint-94: var(--yd-text-muted);
  --yd-nh-paint-95: var(--yd-text-muted);
  --yd-nh-paint-96: var(--yd-text-muted);
  --yd-nh-paint-97: var(--yd-text-muted);
  --yd-nh-paint-98: var(--yd-text-muted);
  --yd-nh-paint-99: var(--yd-text-muted);
  --yd-nh-paint-100: var(--yd-text-muted);
  --yd-nh-paint-101: var(--yd-text-muted);
  --yd-nh-paint-102: var(--yd-text-muted);
  --yd-nh-paint-103: var(--yd-text-muted);
  --yd-nh-paint-104: var(--yd-text-muted);
  --yd-nh-paint-105: var(--yd-text-muted);
  --yd-nh-paint-106: var(--yd-text-muted);
  --yd-nh-paint-107: var(--yd-text-muted);
  --yd-nh-paint-108: var(--yd-text-muted);
  --yd-nh-paint-109: var(--yd-text-muted);
  --yd-nh-paint-110: var(--yd-text-muted);
  --yd-nh-paint-111: var(--yd-text-muted);
  --yd-nh-paint-112: var(--yd-text-muted);
  --yd-nh-paint-113: var(--yd-text-muted);
  --yd-nh-paint-114: var(--yd-text-muted);
  --yd-nh-paint-115: var(--yd-text-muted);
  --yd-nh-paint-116: var(--yd-text-muted);
  --yd-nh-paint-117: var(--yd-text-muted);
  --yd-nh-paint-118: var(--yd-text-muted);
  --yd-nh-paint-119: var(--yd-text-muted);
  --yd-nh-paint-120: var(--yd-text-muted);
  --yd-nh-paint-121: var(--yd-text-muted);
  --yd-nh-paint-122: var(--yd-primary);
  --yd-nh-paint-123: var(--yd-text-muted);
  --yd-nh-paint-124: var(--yd-primary);
  --yd-nh-paint-125: var(--yd-primary);
  --yd-nh-paint-126: var(--yd-primary);
  --yd-nh-paint-127: var(--yd-primary);
  --yd-nh-paint-128: var(--yd-text);
  --yd-nh-paint-129: var(--yd-text-disabled);
  --yd-nh-paint-130: var(--yd-text-muted);
  --yd-nh-paint-131: var(--yd-link);
  --yd-nh-paint-132: var(--yd-link);
  --yd-nh-paint-133: var(--yd-primary);
  --yd-nh-paint-134: var(--yd-primary);
  --yd-nh-paint-135: var(--yd-text-muted);
  --yd-nh-paint-136: var(--yd-text-muted);
  --yd-nh-paint-137: var(--yd-text-muted);
  --yd-nh-paint-138: var(--yd-text-muted);
  --yd-nh-paint-139: var(--yd-text-muted);
  --yd-nh-paint-140: var(--yd-text-muted);
  --yd-nh-paint-141: var(--yd-text-muted);
  --yd-nh-paint-142: var(--yd-text-muted);
  --yd-nh-paint-143: var(--yd-text-muted);
  --yd-nh-paint-144: var(--yd-text-muted);
  --yd-nh-paint-145: var(--yd-text-muted);
  --yd-nh-paint-146: var(--yd-text-muted);
  --yd-nh-particle: var(--yd-primary);
  --yd-nh-particle-soft: var(--yd-dark-brand-link);
  --yd-nh-particle-core: var(--yd-brand-cloud);
  --yd-nh-orb-wire: var(--yd-brand-gray);
  --yd-nh-orb-highlight: var(--yd-brand-cloud);
  --yd-nh-orb-veil: var(--yd-brand-purple-gray);
  --yd-nh-orb-warm: var(--yd-brand-cloud);
  --yd-nh-fluid-light: #FFFFFF;
  --yd-nh-fluid-atmosphere: #DCE5EE;
  --yd-nh-fluid-shade: #8B9FB4;
  --yd-nh-connection: color-mix(in srgb, var(--yd-text-muted) 28%, var(--yd-bg));
  --yd-nh-float-fill: color-mix(in srgb, var(--yd-surface) 94%, transparent);
  --yd-nh-canvas-blend: source-over;
  --yd-nh-video-blend: normal;
  --yd-nh-orb-halo: color-mix(in srgb, var(--yd-primary) 12%, transparent);
}
body[data-ds-dark-theme] .yd-neural-home,
.yd-neural-home[data-yd-theme="dark"] {
  --yd-nh-canvas-blend: lighter;
  --yd-nh-video-blend: screen;
}

/* Independent dashboard membrane snapshot; never aliases homepage material roles. */
.yd-dashboard-membrane {
  --yd-dm-light: #FFFFFF;
  --yd-dm-atmosphere: #DCE5EE;
  --yd-dm-shade: #8B9FB4;
  --yd-dm-particle: var(--yd-primary);
  --yd-dm-particle-soft: var(--yd-dark-brand-link);
  --yd-dm-particle-core: var(--yd-brand-cloud);
  --yd-dm-blend: source-over;
}
body[data-ds-dark-theme] .yd-dashboard-membrane,
.yd-dashboard-membrane[data-yd-theme="dark"] {
  --yd-dm-blend: lighter;
}

/* Login visuals adapted from bdsh; source recorded in bdsh-provenance.json. */
body.yd-login {
  /* ===== Color (light) — DEFAULT ===== */
  --bg:var(--yd-bg);
  --surface-1:var(--yd-surface);
  --surface-2:var(--yd-surface-soft);
  --surface-3:var(--yd-surface-raised);
  --border:var(--yd-border);
  --border-strong:var(--yd-border-strong);

  --text-1:var(--yd-title);
  --text-2:var(--yd-text-muted);
  --text-3:var(--yd-text-subtle);
  --text-disabled:var(--yd-text-disabled);

  --accent:var(--yd-primary-text);
  --accent-hover:var(--yd-link-hover);
  --accent-soft:var(--yd-primary-soft);

  /* ===== Brand accent — tech blue (softtech-inspired palette).
     The historical "--mint" variable names are preserved to minimise
     diff against existing component CSS; the role is now "primary brand
     accent", not literally green. Status/success green lives in
     --success-* tokens below. */
  --mint:var(--yd-primary-soft);
  --mint-strong:var(--yd-primary-text);
  --mint-dark:var(--yd-link-hover);
  --mint-soft:   var(--mint);

  --success:var(--yd-success-text);
  --success-strong:var(--yd-success-text);
  --success-soft:var(--yd-success-soft);
  --warning:var(--yd-warning-text);
  --warning-soft:var(--yd-warning-soft);
  --danger:var(--yd-error-text);
  --danger-soft:var(--yd-error-soft);

  /* ===== Typography ===== */
  --font-sans:
    "Microsoft YaHei UI", "PingFang SC", "Microsoft JhengHei",
    -apple-system, BlinkMacSystemFont, 'Segoe UI Variable', 'Segoe UI',
    'Roboto', 'Hiragino Sans GB', sans-serif;
  --font-mono:
    ui-monospace, 'SF Mono', 'JetBrains Mono', 'Consolas', monospace;

  /* Type scale — base shifted +2px from mockup numbers for desktop legibility.
     Each step keeps its line-height ratio. */
  --text-xs-size:  13px;  --text-xs-line:  18px;
  --text-sm-size:  14px;  --text-sm-line:  20px;
  --text-md-size:  15px;  --text-md-line:  22px;
  --text-lg-size:  16px;  --text-lg-line:  24px;
  --text-xl-size:  18px;  --text-xl-line:  26px;
  --text-2xl-size: 22px;  --text-2xl-line: 30px;
  --text-3xl-size: 30px;  --text-3xl-line: 38px;

  /* ===== Spacing ===== */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;

  /* ===== Radius =====
     NOTE: --radius-md was deliberately overridden to 13px to match the
     mockup's nav button / chip rounding (see spec §4.1.4). It is now
     intentionally larger than --radius-lg (8px) and --radius-xl (12px),
     which keep their original panel/card values to avoid breaking 14+
     existing usage sites. Do not "fix" the ordering by renaming. */
  --radius-sm: 4px;
  --radius-md: 13px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-pill: 999px;

  /* ===== Shadow (light) ===== */
  --shadow-sm:var(--yd-shadow-card);
  --shadow-md:var(--yd-shadow);
  --shadow-lg:var(--yd-shadow-prominent);

  /* ===== Motion ===== */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:   120ms;
  --dur-normal: 180ms;

  /* ===== Mockup semantic aliases (UI/index.html parity) ===== */
  --ink:    var(--text-1);
  --muted:  var(--text-2);
  --line:   var(--border);
  --panel:  var(--surface-1);
  --soft:var(--yd-surface-soft);
  --softer:var(--yd-surface);

  /* ===== Mockup radius / shadow (additive) ===== */
  --radius:      18px;
  --shadow:var(--yd-shadow);
  --shadow-soft:var(--yd-shadow-card);
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 var(--font-sans); }
button, input { font: inherit; }
.login-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
  padding: 28px;
  background:
    linear-gradient(135deg, var(--mint-soft), transparent 36%),
    radial-gradient(circle at 88% 8%, var(--mint-soft), transparent 24%),
    var(--bg);
  color: var(--text-1);
  overflow: hidden;
}

.login-shell > .login-brand,
.login-shell > .login-card {
  position: relative;
  z-index: 1;
}

/* ───── 3D background layer ─────────────────────────────────────────────
   Floating blurred orbs at varied depths + receding perspective grid.
   Pointer-events disabled so the form stays fully interactive. */
.login-shell__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-shell__scene-bg {
  position: absolute;
  left: 66px;
  top: 188px;
  width: min(1160px, 62vw);
  min-width: 900px;
  height: auto;
  object-fit: contain;
  object-position: center center;
  opacity: 0.74;
  filter: saturate(0.88) brightness(1.04) contrast(0.90);
  transform: translateZ(0);
  -webkit-mask-image:
    linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.18) 6%, rgba(0, 0, 0, 0.72) 16%, rgba(0, 0, 0, 0.96) 30%, rgba(0, 0, 0, 0.88) 78%, rgba(0, 0, 0, 0.20) 100%),
    radial-gradient(ellipse at 46% 56%, rgba(0, 0, 0, 0.98) 0 43%, rgba(0, 0, 0, 0.78) 58%, rgba(0, 0, 0, 0.28) 76%, rgba(0, 0, 0, 0) 92%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.92) 15%, rgba(0, 0, 0, 0.92) 78%, rgba(0, 0, 0, 0) 100%);
          mask-image:
    linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.18) 6%, rgba(0, 0, 0, 0.72) 16%, rgba(0, 0, 0, 0.96) 30%, rgba(0, 0, 0, 0.88) 78%, rgba(0, 0, 0, 0.20) 100%),
    radial-gradient(ellipse at 46% 56%, rgba(0, 0, 0, 0.98) 0 43%, rgba(0, 0, 0, 0.78) 58%, rgba(0, 0, 0, 0.28) 76%, rgba(0, 0, 0, 0) 92%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.92) 15%, rgba(0, 0, 0, 0.92) 78%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}

/* Perspective grid — tilted backward, faded top/bottom so it reads as a
   floor extending toward a vanishing point. */
.login-shell__grid {
  position: absolute;
  inset: -10% -25% -40% -25%;
  background-image:
    linear-gradient(to right, var(--yd-brand-glow) 1px, transparent 1px),
    linear-gradient(to bottom, var(--yd-brand-glow) 1px, transparent 1px);
  background-size: 84px 84px, 84px 84px;
  transform: perspective(900px) rotateX(62deg) translateY(20%);
  transform-origin: center top;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.65) 28%,
    rgba(0, 0, 0, 0.85) 50%,
    rgba(0, 0, 0, 0) 100%
  );
          mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.65) 28%,
    rgba(0, 0, 0, 0.85) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0.7;
}

/* Soft floating orbs. Each gets its own size, position, color stop, and
   drift animation so the motion feels organic rather than synchronized. */
.login-shell__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  will-change: transform;
}
.login-shell__orb--1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(79, 148, 240, 0.55), transparent 70%);
  top: -140px; left: 6%;
  animation: orbFloat1 32s ease-in-out infinite;
}
.login-shell__orb--2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--yd-brand-glow), transparent 70%);
  bottom: -120px; left: 36%;
  animation: orbFloat2 44s ease-in-out infinite;
}
.login-shell__orb--3 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, var(--yd-brand-glow), transparent 70%);
  top: 14%; right: -110px;
  animation: orbFloat3 38s ease-in-out infinite;
}
.login-shell__orb--4 {
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(230, 240, 251, 0.85), transparent 70%);
  bottom: 6%; right: 18%;
  animation: orbFloat4 50s ease-in-out infinite;
}
.login-shell__orb--5 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.75), transparent 70%);
  top: 44%; left: 34%;
  animation: orbFloat5 28s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(40px, 60px, 0); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(-55px, -45px, 0); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(-65px, 55px, 0); }
}
@keyframes orbFloat4 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(30px, -50px, 0); }
}
@keyframes orbFloat5 {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(-30px, 40px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .login-shell__orb { animation: none !important; }
}

[data-theme='dark'] .login-shell__grid {
  background-image:
    linear-gradient(to right, rgba(79, 148, 240, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 148, 240, 0.16) 1px, transparent 1px);
}
[data-theme='dark'] .login-shell__orb--1 {
  background: radial-gradient(circle, rgba(79, 148, 240, 0.42), transparent 70%);
}
[data-theme='dark'] .login-shell__orb--2 {
  background: radial-gradient(circle, var(--yd-brand-glow), transparent 70%);
}
[data-theme='dark'] .login-shell__orb--3 {
  background: radial-gradient(circle, var(--yd-brand-glow), transparent 70%);
}
[data-theme='dark'] .login-shell__orb--4 {
  background: radial-gradient(circle, var(--yd-brand-glow), transparent 70%);
}
[data-theme='dark'] .login-shell__orb--5 {
  background: radial-gradient(circle, var(--yd-brand-glow), transparent 70%);
}

.login-shell .mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 24px;
  color: var(--text-1);
}

.login-shell .mark-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  /* Mac-app-icon style: brand-blue gradient + white "Y" + drop shadow. */
  background: linear-gradient(135deg, var(--mint-strong), var(--mint-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 6px 14px var(--yd-brand-glow);
}

.login-logo {
  display: block;
  width: min(260px, 58vw);
  height: auto;
  object-fit: contain;
  aspect-ratio: 1130 / 270;
  box-sizing: border-box;
  padding: 4px 8px;
  border-radius: var(--yd-r-sm);
}

.login-logo--brand {
  width: min(320px, 58vw);
}

.login-logo--card {
  width: 172px;
}

.login-brand {
  position: relative;
  overflow: visible;
  padding: 46px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-brand::after {
  content: none;
}

.login-title {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 86px 0 22px;
  font-size: 50px;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--text-1);
}

.login-title__highlight {
  color: var(--yd-primary-text);
}

.login-sub {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0;
  color: var(--text-2);
  font-size: 20px;
  line-height: 1.8;
}

.brand-strip {
  position: absolute;
  left: 46px;
  right: 46px;
  bottom: 42px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.brand-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.brand-card b {
  display: block;
  margin-bottom: 8px;
  color: var(--text-1);
  font-size: var(--text-lg-size);
}

.brand-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}

.login-card {
  align-self: center;
  justify-self: center;
  width: min(430px, 100%);
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-1);
  box-shadow: var(--yd-shadow-card);
}

.login-card__title {
  margin: 22px 0 26px;
  font-size: 28px;
  color: var(--text-1);
}

.login-card__tabs {
  display: flex;
  gap: 26px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--border);
}

.login-card__tab {
  position: relative;
  padding: 0 2px 10px;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}

.login-card__tab:hover {
  color: var(--text-1);
}

.login-card__tab--active {
  color: var(--text-1);
  font-weight: 600;
}

.login-card__tab--active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 1px;
  background: var(--mint-strong);
}

.login-card__code-row {
  display: flex;
  gap: 10px;
}

.login-card__code-row input {
  flex: 1;
  min-width: 0;
}

.login-card__send-code {
  flex: none;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--mint-strong);
  font: inherit;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.login-card__send-code:hover:not(:disabled) {
  border-color: var(--mint-strong);
}

.login-card__send-code:disabled {
  color: var(--text-3);
  cursor: not-allowed;
}

.login-card__form {
  display: block;
}

.login-card .field {
  margin-bottom: 16px;
}

.login-card .field label {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
  color: var(--text-2);
}

.login-card .field input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text-1);
  font: inherit;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out);
}

.login-card .field input:focus {
  border-color: var(--mint-strong);
  background: var(--surface-1);
  box-shadow: none;
}

.login-card__submit {
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--mint-strong);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--yd-shadow-control);
  transition: background-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}

.login-card__submit:hover:not(:disabled) {
  background: var(--mint-dark);
}

.login-card__submit:active:not(:disabled) {
  transform: translateY(1px);
}

.login-card__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-card__error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: var(--text-sm-size);
  line-height: var(--text-sm-line);
}

.login-card__hint {
  margin-top: 18px;
  padding: 13px;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}

.login-version {
  position: fixed;
  right: 24px;
  bottom: 18px;
  z-index: 2;
  color: var(--text-3);
  font-size: var(--text-xs-size);
  line-height: var(--text-xs-line);
  pointer-events: none;
}

@media (max-width: 1180px) {
  .login-shell {
    grid-template-columns: 1fr;
    overflow: auto;
  }
  .login-brand {
    min-height: auto;
  }
  .login-shell__scene-bg {
    left: -30%;
    top: 250px;
    width: 142%;
    min-width: 0;
    opacity: 0.20;
  }
  .brand-strip {
    position: static;
    margin-top: 32px;
  }
}


/* DSH password form and compact browser layouts. */
.login-card__intro { margin: -12px 0 24px; color: var(--text-2); font-size: 14px; }
.login-card__password { position: relative; }
.login-card .field .login-card__password input { padding-right: 66px; }
.login-card__password-toggle { position: absolute; top: 0; right: 6px; bottom: 0; border: 0; background: transparent; color: var(--mint-strong); padding: 0 10px; cursor: pointer; font-size: 14px; }
button:focus-visible { outline: 2px solid var(--mint-strong); outline-offset: -2px; box-shadow: none; }
.login-card .field input[aria-invalid=true] { border-color: var(--danger); }
.login-card__error:empty { display: none; }
.login-card__submit { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; min-height: 48px; }
.login-card__spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: login-spin .8s linear infinite; }
[aria-busy=true] .login-card__spinner { display: block; }
@keyframes login-spin { to { transform: rotate(360deg); } }
.login-version { position: absolute; }
@media (min-width: 1181px) { .login-shell { min-height: max(740px, 100svh); } }
@media (max-width: 1180px) {
  .login-shell { min-height: 100svh; grid-template-columns: 1fr 1fr; align-content: center; padding: 32px; gap: 24px; }
  .login-brand { padding: 12px; align-self: center; }
  .login-title { margin-top: 42px; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.3; }
  .brand-strip { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
  .brand-card p { font-size: 14px; }
  .login-shell__scene-bg { top: 200px; left: -220px; width: 920px; opacity: .25; }
}
@media (max-width: 680px) {
  .login-shell { grid-template-columns: 1fr; align-content: center; gap: 26px; padding: 28px 20px 54px; }
  .login-brand { padding: 0 4px; }
  .login-logo--brand { width: 160px; }
  .login-title { margin: 24px 0 0; font-size: 29px; line-height: 1.35; }
  .brand-strip { display: none; }
  .login-card { padding: 26px; }
  .login-logo--card { display: none; }
  .login-card__title { margin-top: 0; font-size: 26px; }
  .login-shell__scene-bg { top: 0; left: -190px; width: 820px; opacity: .16; }
  .login-version { right: 20px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Login controls use the same single-edge state language as the workbench. */
.login-card .field input:hover:not(:disabled):not(:focus) { border-color:var(--text-3); }
.login-card .field input:disabled { cursor:not-allowed; color:var(--text-3); box-shadow:none; }
.login-card .field input[aria-invalid="true"]:focus { border-color:var(--danger); box-shadow:none; }
.login-card__submit:disabled { background:var(--surface-2); color:var(--text-3); opacity:1; box-shadow:none; }
.login-card__submit[aria-busy="true"],.login-card__form[aria-busy="true"] .login-card__submit { cursor:progress; }
@media(forced-colors:active) { .login-card :is(input,button):focus-visible { outline:2px solid Highlight; outline-offset:-2px; } }

/* Shared brand roles; layout, assets and authentication remain unchanged. */
.login-card__submit{background:var(--yd-primary);color:var(--yd-on-primary)}
.login-card__submit:hover:not(:disabled){background:var(--yd-primary-hover);color:var(--yd-on-primary)}
.login-card__submit:active:not(:disabled){background:var(--yd-primary-active)}
.login-title__highlight{color:var(--yd-primary-text)}
.login-card__spinner{border-color:var(--yd-border-strong);border-top-color:var(--yd-on-primary)}
.login-card .field input{border-color:var(--yd-control-border)}
.login-card .field input:focus{border-color:var(--yd-focus)}
.login-card .field input[aria-invalid=true]{border-color:var(--yd-error)}
.login-card button:focus-visible{outline-color:var(--yd-focus)}
@media(prefers-color-scheme:dark){.yd-login .login-logo{background:#fff}.yd-login .login-shell__scene-bg{opacity:.24}}

/* Approved transparent IP is foreground artwork; keep its colors and full silhouette. */
.login-brand { display:flex; flex-direction:column; }
.login-title { margin-top:36px; margin-bottom:12px; }
.login-brand__visual { display:flex; align-items:center; justify-content:center; flex:none; height:clamp(230px,40vh,440px); margin:0; }
.login-brand__mascot { display:block; width:100%; height:100%; object-fit:contain; pointer-events:none; }
.brand-strip { position:static; margin-top:auto; padding-top:24px; }
@media (max-width:1180px) {
  .login-brand__visual { height:200px; }
  .brand-strip { margin-top:0; padding-top:20px; }
}
@media (max-width:680px) {
  .login-title { margin-top:24px; margin-bottom:0; }
  .login-brand__visual { height:150px; margin-top:8px; }
}

/* Composition 01: viewport-sized layout; the scene fits both available axes. */
body.yd-login {font-family:var(--yd-font-family);}
.login-shell {
  isolation:isolate;height:100svh;height:100dvh;min-height:0;
  grid-template-columns:minmax(0,1.7fr) minmax(360px,1fr);
  grid-template-rows:minmax(0,1fr);align-items:center;gap:clamp(28px,2.8vw,48px);
  padding:clamp(28px,5.5vh,68px) clamp(36px,4vw,72px);
  background:var(--yd-bg);overflow:hidden;
}
.login-scene-ambient {position:absolute;inset:0;z-index:-1;width:100%;height:100%;object-fit:cover;pointer-events:none;}
.login-brand {display:grid;grid-template-rows:auto auto minmax(0,1fr);min-width:0;min-height:0;height:100%;padding:0 0 0 24px;align-self:center;}
.login-logo--brand {width:min(380px,70%);padding:0;height:auto;aspect-ratio:632/108;border-radius:var(--yd-r-sm);}
.login-brand__intro {margin-top:clamp(24px,4vh,46px);}
.login-title {margin:0;font-size:clamp(28px,2.6vw,44px);font-weight:750;line-height:1.22;letter-spacing:0;max-width:none;}
.login-sub {margin:12px 0 0;font-size:clamp(14px,1.1vw,18px);line-height:1.5;letter-spacing:.035em;max-width:none;}
.login-brand__visual.login-scene {display:block;position:relative;min-height:0;height:auto;margin:12px 0 0;container-type:size;}
.login-scene__stage {
  position:absolute;left:0;top:calc(50% - 10px);
  width:min(calc(100% - 100px),800px,calc((100cqh - 64px) * 1.49925));
  aspect-ratio:1000/667;container-type:inline-size;
  transform:translateY(-50%);
  translate:var(--scene-x,0px) var(--scene-y,0px);
  transition:translate .65s cubic-bezier(.2,.7,.2,1);
}
.login-scene__links {position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:fill;pointer-events:none;opacity:.4;transition:opacity .4s ease;}
.login-scene__character {position:absolute;width:52%;left:48%;bottom:0;transform:translateX(-50%);z-index:1;pointer-events:none;}
.login-scene .login-brand__mascot {display:block;width:100%;height:auto;object-fit:contain;animation:none;}
.login-character-canvas {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;}
.login-character-canvas[hidden] {display:none;}
.login-work-card {
  position:absolute;z-index:2;display:flex;align-items:center;
  width:34%;min-height:clamp(76px,12cqw,118px);padding:clamp(10px,1.8cqw,18px);gap:clamp(7px,1.3cqw,12px);
  border:1px solid var(--yd-card-border);border-radius:20px;
  background:color-mix(in srgb,var(--yd-surface) 92%,transparent);
  box-shadow:var(--yd-shadow);backdrop-filter:blur(10px);
  transition:transform .35s ease,border-color .35s ease,box-shadow .35s ease;
}
.login-work-card>img {display:block;flex:none;width:clamp(42px,7.5cqw,72px);height:auto;aspect-ratio:1;object-fit:contain;transform-origin:50% 70%;}
.login-work-card>div {min-width:0;}
.login-work-card h2 {margin:0 0 5px;font-size:clamp(14px,2.2cqw,18px);line-height:1.3;font-weight:700;white-space:nowrap;color:var(--yd-title);}
.login-work-card p {margin:0;font-size:clamp(12px,1.6cqw,13px);line-height:1.55;color:var(--yd-text-muted);white-space:nowrap;}
.login-work-card--order {left:1%;top:11.5%;}
.login-work-card--logistics {right:0;top:19%;}
.login-work-card--aftersales {right:-1%;top:62%;}
.login-shell[data-scene-active]:not([data-scene-active=""]) .login-scene__links {opacity:.9;}
.login-shell[data-scene-active="order"] .login-work-card--order,
.login-shell[data-scene-active="logistics"] .login-work-card--logistics,
.login-shell[data-scene-active="aftersales"] .login-work-card--aftersales {
  transform:translateY(-5px);border-color:var(--yd-primary-text);
  box-shadow:var(--yd-shadow),0 0 0 3px var(--yd-primary-soft);
}
.login-shell[data-scene-active="order"] .login-work-card--order>img,
.login-shell[data-scene-active="logistics"] .login-work-card--logistics>img,
.login-shell[data-scene-active="aftersales"] .login-work-card--aftersales>img {animation:login-icon-nod .85s ease-in-out 1;}
.login-card {
  justify-self:start;align-self:center;width:min(526px,100%);
  padding:clamp(30px,5vh,60px) 40px clamp(32px,6vh,76px);
  border-radius:26px;border-color:var(--yd-border);background:var(--yd-surface);box-shadow:var(--yd-shadow);
  transform:translateY(clamp(0px,4vh,44px));
}
.login-card__title {margin:0 0 clamp(24px,4vh,36px);font-size:32px;line-height:1.2;font-weight:750;}
.login-card .field {margin-bottom:clamp(18px,2.6vh,28px);}
.login-card .field label {font-size:16px;line-height:24px;margin-bottom:8px;color:var(--yd-text-muted);}
.login-card .field input {min-width:0;min-height:56px;padding:14px 18px;font-size:17px;line-height:24px;border-radius:13px;background:var(--yd-surface-soft);color:var(--yd-title);}
.login-card .field input::placeholder {color:var(--yd-text-muted);opacity:1;}
.login-card .field .login-card__password input {padding-right:76px;}
.login-card__password-toggle {right:7px;padding:0 12px;font-size:14px;color:var(--yd-link);}
.login-card__submit {margin-top:clamp(26px,4vh,58px);min-height:56px;font-size:18px;border-radius:13px;}
.login-card__error:not(:empty) {margin:0 0 18px;color:var(--yd-error-text);background:var(--yd-error-soft);}
.login-card__error:not(:empty)+.login-card__submit {margin-top:12px;}
.login-card :is(input,button):focus-visible,.login-motion-toggle:focus-visible {outline:2px solid var(--yd-focus);outline-offset:3px;}
.login-motion-toggle {position:absolute;left:1%;bottom:0;z-index:3;padding:6px 9px;border:0;border-radius:var(--yd-r-sm);background:transparent;color:var(--yd-text-muted);font:inherit;font-size:12px;cursor:pointer;}
.login-motion-toggle:hover {color:var(--yd-link);background:var(--yd-hover);}
.login-motion-toggle[hidden] {display:none;}
.login-shell[data-scene-paused="true"] [data-scene-motion] {animation-play-state:paused;}
@keyframes login-icon-nod {0%,65%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-3px) rotate(-5deg)}42%{transform:translateY(0) rotate(3deg)}}
@media (prefers-color-scheme:dark) {
  .login-scene-ambient {opacity:.13;}
  .yd-login .login-logo {padding:5px 8px;background:var(--yd-brand-cloud);}
  .login-work-card {background:var(--yd-surface);border-color:var(--yd-border);}
}
@media (min-width:981px) and (max-width:1250px) {
  .login-shell {grid-template-columns:minmax(0,1.45fr) minmax(330px,1fr);padding:32px;gap:28px;}
  .login-title {font-size:30px;}
  .login-sub {font-size:14px;letter-spacing:0;}
  .login-scene__stage {left:10px;width:min(calc(100% - 70px),calc((100cqh - 64px) * 1.49925));}
  .login-work-card {padding:10px;gap:7px;border-radius:15px;}
  .login-work-card>img {width:42px;}
  .login-work-card h2 {font-size:15px;}
  .login-work-card p {font-size:12px;white-space:normal;}
  .login-work-card--order {left:0;top:8%;}
  .login-work-card--aftersales {right:0;top:66%;}
  .login-card {padding:34px 28px;transform:translateY(24px);}
  .login-card__title {font-size:28px;margin-bottom:28px;}
  .login-card .field label {font-size:16px;}
  .login-card .field input {min-height:56px;font-size:16px;padding:12px 14px;}
  .login-card__submit {min-height:56px;font-size:18px;margin-top:28px;}
}
@media (min-width:981px) and (max-height:740px) {
  .login-shell {padding-top:24px;padding-bottom:36px;}
  .login-logo--brand {width:min(300px,65%);}
  .login-brand__intro {margin-top:22px;}
  .login-title {font-size:clamp(28px,2.6vw,36px);}
  .login-sub {font-size:14px;margin-top:8px;}
  .login-card {padding:28px 30px;transform:none;}
  .login-card__title {font-size:28px;margin-bottom:24px;}
  .login-card .field {margin-bottom:18px;}
  .login-card .field label {font-size:16px;line-height:24px;margin-bottom:6px;}
  .login-card .field input {min-height:50px;font-size:16px;line-height:24px;padding:12px 14px;}
  .login-card__submit {min-height:50px;font-size:18px;margin-top:22px;}
}
@media (max-width:980px) {
  .login-shell {grid-template-columns:1fr;grid-template-rows:auto auto;align-content:center;gap:30px;padding:36px 24px 58px;}
  .login-brand {position:relative;display:block;justify-self:center;width:min(480px,100%);height:auto;padding:0;}
  .login-logo--brand {width:min(290px,calc(100% - 90px));}
  .login-brand__intro {margin-top:24px;}
  .login-title {font-size:clamp(25px,4.4vw,34px);line-height:1.3;}
  .login-sub {font-size:clamp(13px,2.2vw,16px);margin-top:8px;letter-spacing:0;}
  .login-brand__visual.login-scene {position:absolute;right:0;top:-18px;width:100px;height:128px;margin:0;pointer-events:none;}
  .login-scene__stage {inset:0;width:100%;height:100%;aspect-ratio:auto;transform:none;translate:none;transition:none;}
  .login-scene__character {width:118px;left:50%;bottom:-8px;}
  .login-scene .login-brand__mascot {animation:none;}
  .login-scene__work,.login-scene__links,.login-motion-toggle {display:none;}
  .login-card {justify-self:center;width:min(480px,100%);padding:30px 28px;transform:none;border-radius:22px;}
  .login-card__title {font-size:28px;margin-bottom:26px;}
  .login-card .field {margin-bottom:22px;}
  .login-card .field label {font-size:16px;line-height:24px;}
  .login-card .field input {min-height:54px;font-size:16px;padding:12px 14px;line-height:26px;}
  .login-card__submit {min-height:54px;font-size:19px;margin-top:30px;}
  .login-card__password-toggle {font-size:14px;}
  .login-version {font-size:12px;right:24px;bottom:14px;}
}
@media (max-width:380px) {
  .login-shell {padding:26px 18px 48px;gap:24px;}
  .login-logo--brand {width:calc(100% - 76px);}
  .login-title {font-size:25px;}
  .login-sub {font-size:12px;}
  .login-brand__visual.login-scene {width:80px;height:110px;top:-14px;}
  .login-scene__character {width:100px;}
  .login-card {padding:26px 22px;}
}
@media (max-width:980px) and (max-height:740px) {
  .login-shell {padding-top:24px;padding-bottom:38px;gap:22px;}
  .login-brand__intro {margin-top:18px;}
  .login-title {font-size:25px;}
  .login-sub {font-size:12px;}
  .login-card {padding:24px;}
  .login-card__title {font-size:26px;margin-bottom:20px;}
  .login-card .field {margin-bottom:16px;}
  .login-card .field label {line-height:22px;margin-bottom:6px;}
  .login-card .field input {min-height:48px;padding:10px 12px;line-height:26px;}
  .login-card__submit {min-height:48px;margin-top:18px;}
}
@media (max-width:980px) and (max-height:560px) and (min-width:620px) {
  .login-shell {grid-template-columns:minmax(0,1fr) minmax(300px,1fr);grid-template-rows:minmax(0,1fr);padding:18px 24px 30px;gap:28px;}
  .login-brand {display:grid;grid-template-rows:auto auto minmax(0,1fr);height:100%;}
  .login-logo--brand {width:min(250px,100%);}
  .login-title {font-size:25px;}
  .login-brand__visual.login-scene {position:relative;inset:auto;width:100%;height:auto;min-height:0;margin:8px 0 0;}
  .login-scene__character {width:min(150px,calc(100cqh * .8));left:50%;bottom:0;}
  .login-card {padding:20px 24px;}
  .login-card__title {font-size:25px;margin-bottom:16px;}
  .login-card .field {margin-bottom:12px;}
  .login-card__submit {margin-top:14px;}
  .login-card__error:not(:empty) {margin-bottom:8px;padding:6px 10px;}
  .login-card__error:not(:empty)+.login-card__submit {margin-top:6px;}
}
@media (prefers-reduced-motion:reduce) {
  .login-shell [data-scene-motion] {animation:none!important;transition:none!important;}
  .login-scene__stage {translate:none;transition:none;}
  .login-motion-toggle {display:none;}
}
