/* Local Test only — company navigation and shared subscription */
.mc-menu,.mc-dialog{--mc-bg:var(--surface,#fff);--mc-tint:var(--surface2,#f5f2fc);--mc-text:var(--text,#20192e);--mc-muted:var(--muted,#6b617b);--mc-line:var(--line,#e4dfec);background:var(--mc-bg);color:var(--mc-text);border:1px solid var(--mc-line);font-family:inherit;font-size:14px;line-height:1.5;box-sizing:border-box}
html.mc-sheet-open,html.mc-sheet-open body{overflow:hidden!important}
.mc-menu{position:fixed;z-index:10000;width:290px;max-width:calc(100vw - 24px);border-radius:16px;box-shadow:0 14px 60px #0003;padding:8px;max-height:calc(100dvh - 60px);overflow:auto;animation:mc-menu-in .24s cubic-bezier(.2,.8,.2,1)}
.sidebar-account .mc-account-control{gap:8px;cursor:default}
.mc-account-control:hover{background:transparent}
.mc-profile-link{border:0;padding:0;width:34px;height:34px;cursor:pointer;transition:box-shadow .15s}
.mc-profile-link:hover{box-shadow:0 0 0 3px var(--accentSoft)}
.mc-switch-link{border:0;background:none;color:inherit;text-align:left;padding:0 2px;min-height:34px;border-radius:8px;cursor:pointer;font:inherit;align-self:center}
.mc-switch-link:hover{background:var(--surface2)}
.mc-switch-link>span{display:flex;align-items:center;gap:6px}
.mc-desktop-symbol{display:inline-flex;width:12px;height:12px;color:var(--accent2);flex:none;transition:transform .25s ease}
.mc-desktop-symbol svg{width:100%;height:100%}
.mc-switch-link[aria-expanded=true] .mc-desktop-symbol{transform:rotate(90deg)}
.mc-profile-link:focus-visible,.mc-switch-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.mc-caption{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--mc-muted);padding:8px 10px 12px}
.mc-caption-icon{display:flex;width:14px;height:14px;color:var(--accent2)}
.mc-firms{max-height:300px;overflow:auto;overscroll-behavior:contain;display:grid;gap:4px}
.mc-firm{width:100%;display:flex;gap:12px;align-items:center;text-align:left;background:none;color:inherit;border:1px solid transparent;border-radius:14px;padding:12px;cursor:pointer;font:inherit;transition:background .18s,border-color .18s,transform .18s;animation:mc-row-in .28s cubic-bezier(.2,.8,.2,1) calc(var(--mc-row,0)*35ms + 60ms) backwards}
.mc-firm>span:nth-child(2){flex:1;min-width:0}
.mc-firm b{display:block;overflow-wrap:anywhere;font-size:13px}
.mc-firm small{display:block;color:var(--mc-muted);margin-top:3px;font-size:11px}
.mc-firm:hover,.mc-firm.selected{background:var(--mc-tint)}
.mc-firm.selected{border-color:color-mix(in srgb,var(--accent2) 22%,var(--mc-line));animation:none}
.mc-firm:active{transform:scale(.985)}
.mc-initials{width:38px;height:38px;display:grid;place-items:center;background:var(--accentSoft,#8255eb24);color:var(--accent2,#7146d8);border-radius:12px;flex:none;font-size:13px;font-weight:750;overflow:hidden}
.mc-initials img{width:100%;height:100%;object-fit:contain}
.mc-selection{color:var(--accent2);width:24px;height:24px;flex:none;display:grid;place-items:center;border-radius:50%}
.mc-firm.selected .mc-selection{background:var(--accent2);color:white}
.mc-selection svg{width:16px;height:16px}
.mc-action{display:flex;justify-content:space-between;align-items:center;width:100%;padding:12px;background:none;border:0;color:inherit;cursor:pointer;text-align:left;border-radius:10px;font:inherit}
.mc-action:hover{background:var(--mc-tint)}
.mc-menu .mc-add{justify-content:flex-start;gap:10px;border-top:1px solid var(--mc-line);border-radius:0 0 10px 10px;margin-top:8px;color:var(--accent2,#8057e8);font-weight:650;min-height:48px}
.mc-add-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:var(--accentSoft);transition:transform .2s ease}
.mc-add-icon svg{width:17px;height:17px}
.mc-add:hover .mc-add-icon{transform:scale(1.06)}
.mc-dialog{border-radius:22px;width:min(480px,calc(100vw - 32px));padding:24px;max-height:calc(100dvh - 48px);box-shadow:0 24px 100px #0004;overflow:auto}
.mc-dialog::backdrop,.mc-company-sheet::backdrop{background:#10081b80;backdrop-filter:blur(4px)}
.mc-modal-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
.mc-modal-head h2{font-size:21px;line-height:1.25;letter-spacing:-.03em;margin:0}
.mc-modal-head button{display:grid;place-items:center;width:36px;height:36px;flex:none;background:var(--mc-tint);border:0;border-radius:11px;color:var(--mc-muted);font-size:25px;cursor:pointer}
.mc-modal-head button svg{width:20px;height:20px}
.mc-modal-head button{transition:background .18s,transform .18s}
.mc-modal-head button:hover{background:var(--accentSoft);color:var(--accent2)}
.mc-modal-head button:active{transform:scale(.93)}
.mc-dialog p{color:var(--mc-muted);font-size:13px;line-height:1.6;margin:14px 0 20px}
.mc-dialog label{display:block;font-weight:600;margin:16px 0 7px}
.mc-dialog input:not([type=radio]){width:100%;padding:12px;border:1px solid var(--mc-line);background:var(--mc-tint);color:var(--mc-text);border-radius:10px;font:inherit;box-sizing:border-box}
.mc-primary{background:linear-gradient(110deg,var(--accent2,#8057e8),var(--accent,#9879ff));color:#fff;border:0;border-radius:12px;width:100%;min-height:48px;padding:12px 16px;font-family:inherit;font-size:14px;font-weight:700;margin-top:20px;cursor:pointer}
.mc-primary:disabled{opacity:.6;cursor:wait}
.mc-error{color:var(--danger,#d94b62);margin-top:10px;font-size:13px}
.mc-menu button:focus-visible,.mc-dialog :focus-visible{outline:2px solid var(--accent2,#966deb);outline-offset:3px}
.mc-billing-options{border:0;padding:0;margin:0;display:grid;gap:10px;min-width:0}
.mc-dialog .mc-billing-option{position:relative;display:flex;align-items:center;gap:12px;margin:0;padding:14px;border:1px solid var(--mc-line);border-radius:14px;cursor:pointer;background:var(--mc-bg);font-weight:500;transition:background .15s,border-color .15s}
.mc-billing-option:has(input:checked){border-color:var(--accent2);background:var(--accentSoft)}
.mc-billing-option:has(input:focus-visible){outline:2px solid var(--accent2);outline-offset:3px}
.mc-billing-option input{position:absolute;opacity:0;width:1px;height:1px}
.mc-choice-copy{flex:1;min-width:0}
.mc-choice-copy b{display:block;font-size:13px;overflow-wrap:anywhere}
.mc-choice-copy small{display:block;font-size:11px;color:var(--mc-muted);margin-top:4px}
.mc-choice-check{width:22px;height:22px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--mc-line);color:transparent;flex:none}
.mc-billing-option:has(input:checked) .mc-choice-check{background:var(--accent2);border-color:var(--accent2);color:white}
.mc-dialog .mc-form-hint{font-size:11px;margin:16px 0 0}
.mc-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.mc-price{background:var(--mc-tint);border-radius:14px;padding:16px;margin-top:16px;display:grid;gap:5px}
.mc-price span,.mc-price em{font-size:12px;color:var(--mc-muted)}
.mc-price strong{font-size:26px}.mc-price small{font-size:12px;font-weight:500}.mc-price em{font-style:normal;margin-top:5px}
.mc-subscription-details{margin:0 24px 22px;display:grid;gap:16px}
.mc-cost-box{padding:18px;border:1px solid var(--line);border-radius:15px;background:var(--surface2)}
.mc-cost-box h3{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:0 0 12px;font-weight:750}
.mc-subscription-cost{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:8px 0;font-size:13px}
.mc-subscription-cost+ .mc-subscription-cost{margin-top:8px;padding-top:16px;border-top:1px solid var(--line)}
.mc-subscription-cost span{color:var(--text);font-weight:600}
.mc-subscription-cost small{display:block;color:var(--muted);font-weight:400;font-size:11px;margin-top:4px}
.mc-subscription-cost b{font-size:14px;font-weight:700;white-space:nowrap}
.mc-subscription-billing{display:flex;align-items:center;gap:12px;padding:4px 0}
.mc-subscription-billing>div{display:grid;gap:5px;min-width:0;flex:1}
.mc-subscription-billing>div>span{font-size:10px;color:var(--muted)}
.mc-subscription-billing b{font-size:12px;font-weight:650;overflow-wrap:anywhere}
.mc-subscription-billing button{flex:none;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--accent2);font-family:inherit;font-size:11px;font-weight:650;cursor:pointer;min-height:38px}
.mc-subscription-billing button:hover{background:var(--accentSoft)}
.mc-subscription-billing button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.mc-subscription .subscription-v255-head{margin-bottom:0;padding-bottom:22px}
.mc-subscription .subscription-v255-actions:has(>button:not([hidden])){margin-top:0}
.mc-subscription .subscription-v255-actions:not(:has(>button:not([hidden]))){display:none}
.mc-subscription .subscription-v255-actions>button[hidden]{display:none!important}
.mc-subscription .subscription-v255-note{display:block;margin:0 24px 22px;padding:12px 14px;background:var(--surface2);border-radius:10px;color:var(--muted);text-align:left;font-size:11px}
.mc-overview-commission{max-width:190px}
.mc-more-company{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--surface);transition:border-color .2s,box-shadow .2s,transform .2s}
.mc-more-company:has([aria-expanded=true]){border-color:color-mix(in srgb,var(--accent2) 40%,var(--line));box-shadow:0 6px 24px color-mix(in srgb,var(--accent2) 10%,transparent)}
.mc-more-avatar{width:44px;height:44px;border-radius:13px;background:none;flex:none}
.mc-more-avatar .mc-initials{width:44px;height:44px}
.mc-more-switch{display:flex;align-items:center;gap:12px;flex:1;min-width:0;border:0;background:none;color:var(--text);text-align:left;font:inherit;padding:2px;cursor:pointer;border-radius:8px}
.mc-more-copy{flex:1;min-width:0;display:grid;gap:4px}
.mc-more-copy small{font-size:10px;color:var(--muted)}
.mc-more-copy b{font-size:13px;overflow-wrap:anywhere;line-height:1.4}
.mc-more-copy>span{font-size:10px;color:var(--accent2)}
.mc-switch-symbol{width:38px;height:38px;display:grid;place-items:center;background:var(--accentSoft);border:1px solid color-mix(in srgb,var(--accent2) 12%,var(--line));border-radius:12px;color:var(--accent2);flex:none;transition:background .22s,box-shadow .22s,transform .22s}
.mc-switch-symbol svg{width:19px;height:19px;transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.mc-more-switch[aria-expanded=true] .mc-switch-symbol svg{transform:rotate(90deg)}
.mc-more-switch:active .mc-switch-symbol{transform:scale(.94)}
.mc-more-switch:hover .mc-switch-symbol{box-shadow:0 3px 12px color-mix(in srgb,var(--accent2) 14%,transparent)}
.mc-more-switch:focus-visible{outline:2px solid var(--accent2);outline-offset:4px}
@media(max-width:760px){
  .mc-dialog{padding:20px;width:calc(100vw - 24px);border-radius:20px;max-height:calc(100dvh - 64px)}
  .mc-company-sheet{inset:auto 0 0;margin:0;width:100%;max-width:100%;max-height:80dvh;padding:8px 18px max(20px,env(safe-area-inset-bottom));border-radius:24px 24px 0 0;box-shadow:0 -12px 60px #0003;animation:mc-sheet-in .36s cubic-bezier(.22,1,.36,1)}
  .mc-company-sheet .mc-modal-head{margin:12px 2px 18px}
  .mc-company-sheet .mc-firms{max-height:calc(80dvh - 180px)}
  .mc-company-sheet .mc-firm{min-height:66px}
  .mc-company-sheet .mc-add{min-height:52px}
  .mc-sheet-handle{width:36px;height:4px;margin:0 auto;border-radius:4px;background:var(--line)}
  .mc-subscription-details{margin:0 18px 18px;gap:16px}
  .mc-cost-box{padding:16px}
  .mc-subscription .subscription-v255-note{margin:0 18px 18px}
  .mc-subscription-billing{gap:10px;flex-wrap:wrap}
  .mc-subscription-billing>div{flex:1;min-width:130px}
  .mc-subscription-billing button{min-height:44px}
}
@keyframes mc-sheet-in{from{transform:translateY(100%);opacity:.5}to{transform:translateY(0);opacity:1}}
@keyframes mc-menu-in{from{transform:translateY(8px) scale(.98);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}
/* Rows fade in without changing the scrollable bounds of the firm list. */
@keyframes mc-row-in{from{opacity:0}to{opacity:1}}
@media(hover:hover){.mc-more-company:hover{border-color:color-mix(in srgb,var(--accent2) 30%,var(--line));transform:translateY(-1px)}}
@media(prefers-reduced-motion:reduce){.mc-menu,.mc-company-sheet,.mc-firm,.mc-selection{animation:none}.mc-firm,.mc-more-company,.mc-switch-symbol,.mc-switch-symbol svg,.mc-desktop-symbol,.mc-add-icon,.mc-modal-head button{transition:none}.mc-more-company:hover{transform:none}}
