/* Approved compact badge, 2026-10-19. Geometry comes from make_compact_brand.py.
   Presentation only: no app icon, client updater or access-policy changes. */
.mycode-brand{
  --mc-mark-h:34px;--mc-word-w:116px;--mc-gap:12px;--mc-scale:1;
  --mc-ink:#040033;--mc-sub:#667084;--mc-ring:transparent;
  display:inline-flex;align-items:center;gap:calc(var(--mc-gap) / var(--mc-scale));
  flex:none;max-width:100%;color:var(--mc-ink);vertical-align:middle;
  text-align:left;white-space:nowrap;box-sizing:border-box;
}
.mycode-brand .mycode-brand__badge{
  display:block;flex:none;width:calc(var(--mc-mark-h) * 1.22 / var(--mc-scale));
  height:calc(var(--mc-mark-h) * 1.22 / var(--mc-scale));
  border:0;border-radius:calc(var(--mc-mark-h) * .23 / var(--mc-scale));
  background:url('/static/brand/mycode-compact-badge.svg?v=20261019-compact1') center/contain no-repeat;
  box-shadow:inset 0 0 0 1px var(--mc-ring);filter:none;opacity:1;margin:0;
}
.mycode-brand .mycode-brand__copy{display:flex;flex-direction:column;align-items:flex-start;gap:calc(2px / var(--mc-scale));margin:0;color:var(--mc-ink)}
.mycode-brand .mycode-brand__name{
  display:block;flex:none;width:calc(var(--mc-word-w) / var(--mc-scale));aspect-ratio:305/75;
  background:currentColor;color:var(--mc-ink);margin:0;
  -webkit-mask:url('/static/brand/mycode-wordmark.svg?v=20261019-compact1') left center/contain no-repeat;
  mask:url('/static/brand/mycode-wordmark.svg?v=20261019-compact1') left center/contain no-repeat;
}
.mycode-brand .mycode-brand__endorsement{
  display:flex;align-items:center;gap:calc(7px / var(--mc-scale));margin:0;
  color:var(--mc-sub);font:400 calc(11px / var(--mc-scale))/calc(17px / var(--mc-scale)) "Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  letter-spacing:calc(.6px / var(--mc-scale));white-space:nowrap;
}
.mycode-brand .mycode-brand__en{font-family:"Segoe UI",Arial,sans-serif;letter-spacing:calc(.65px / var(--mc-scale));margin:0;color:inherit;font-size:inherit}
.mycode-brand .mycode-brand__dot{display:block;width:2px;height:2px;border-radius:50%;background:currentColor;flex:none;margin:0}
:root[data-skin="A"] .mycode-brand,:root[data-skin="D"] .mycode-brand,:root[data-theme="dark"] .mycode-brand{--mc-ink:#eff1f8;--mc-sub:#aab3c6;--mc-ring:#393355}
.mycode-brand.mycode-brand--navy{--mc-ink:#f7f7ff;--mc-sub:#a9b3cf;--mc-ring:#28234e}
.mycode-brand.mycode-brand--auth{--mc-mark-h:41px;--mc-word-w:139px;display:flex;width:max-content;margin:2px auto 22px}
.sidebar>.brand .mycode-brand{--mc-scale:var(--ui-fs-zoom,1)}
.sidebar>.brand .mycode-brand__en,.sidebar>.brand .mycode-brand__dot{display:none}
/* Leave at least 4px above and below the badge in the 32px Windows title bar. */
@media(min-width:900px){
  :root[data-ui="v1"] .sidebar>.brand .mycode-brand--sidebar{
    --mc-mark-h:19px;
    --mc-word-w:72px;
    --mc-gap:9px;
  }
  :root[data-ui="v1"] .sidebar>.brand .mycode-brand__endorsement{display:none}
}
.side-brand>.mycode-brand,.boot-side>.mycode-brand{height:auto;width:max-content}
.login-brand>.mycode-brand{--mc-mark-h:52px;--mc-word-w:177px;--mc-gap:15px}
.login-field>.mycode-brand.login-lockup{display:none;height:auto;width:max-content}
.admin-brand>.mycode-brand{--mc-mark-h:34px;--mc-word-w:116px;--mc-gap:12px;display:inline-flex;flex:none;color:var(--mc-ink);margin:0}
.side-brand>.brand-mark,.boot-side>.boot-mark{border-radius:6px;box-shadow:inset 0 0 0 1px #28234e;filter:none}
@media(prefers-color-scheme:dark){
  :root:not([data-theme="light"]):not([data-skin]) .mycode-brand:not(.mycode-brand--navy){--mc-ink:#eff1f8;--mc-sub:#aab3c6;--mc-ring:#393355}
}
@media(min-width:768px) and (max-width:1023px){
  .app:not(.side-open) .side-brand>.mycode-brand.brand-full{display:none}
}
@media(max-width:767px){
  .login-field>.mycode-brand.login-lockup{--mc-mark-h:34px;--mc-word-w:116px;--mc-gap:12px;display:inline-flex}
}
