/* Authenticated administration only. Entry and MFA retain their own styling. */
body:has(#workspace:not([hidden])) { background:#fff; min-height:100dvh; }
body:has(#workspace:not([hidden])) > header { height:68px; padding:0 28px; }
body:has(#workspace:not([hidden])) > header .brand strong { font-size:23px; }
body:has(#workspace:not([hidden])) > header .brand span { font-size:12px; }
body:has(#workspace:not([hidden])) main { max-width:1600px; padding:0 28px 20px; }
body:has(#workspace:not([hidden])) footer { padding:20px 0 0; font-size:11px; }
body:has(#workspace:not([hidden])) #logout { min-height:36px; padding:7px 13px; }

.yh-dashboard {
  --yh-ink:#202b3d; --yh-muted:#687487; --yh-blue:#275cc9;
  --yh-border:#e6eaf0; --yh-paper:#fff; --yh-ground:#f7f9fc;
  color:var(--yh-ink); font-family:inherit; font-size:14px; line-height:1.45;
  padding-bottom:24px;
}
.yh-dashboard * { box-sizing:border-box; }
.yh-dashboard [hidden] { display:none!important; }
/* Reset legacy global table buttons, including nth-last-child backgrounds. */
.yh-dashboard button {
  font:inherit; font-weight:500; color:inherit; background:transparent;
  border:0; border-radius:6px; margin:0; padding:0; min-height:0;
  max-width:none; cursor:pointer; filter:none;
}
.yh-dashboard button:hover:not(:disabled) { filter:none; }
.yh-dashboard button:disabled { cursor:not-allowed; opacity:.45; }
.yh-dashboard input,.yh-dashboard select {
  width:auto; min-height:36px; margin:0; padding:7px 11px;
  font:inherit; font-size:13px; line-height:20px; color:var(--yh-ink);
  border:1px solid #dce2e9; border-radius:6px; background:#fff;
}
.yh-dashboard input::placeholder { color:#7b8493; }
.yh-dashboard :is(button,a,summary,input,select):focus-visible,
.yh-table-scroll:focus-visible { outline:2px solid #5989df; outline-offset:3px; }
.yh-layout { display:grid; grid-template-columns:184px minmax(0,1fr); gap:0; align-items:start; }
.yh-main { min-width:0; padding:26px 0 0 28px; border-left:1px solid var(--yh-border); min-height:calc(100dvh - 132px); }
.yh-navigation { display:flex; flex-direction:column; gap:5px; padding:27px 20px 0 0; position:sticky; top:20px; }
.yh-navigation button { min-height:38px; display:flex; align-items:center; gap:10px; padding:8px 12px; text-align:left; font-size:13px; color:#657084; border-radius:6px; }
.yh-navigation button:hover { background:#f5f7fa; color:var(--yh-ink); }
.yh-navigation button[aria-selected=true] { color:#245bc6; background:#edf3fe; font-weight:600; }
.yh-navigation svg { width:17px; height:17px; flex:none; }
.yh-navigation span { margin-left:auto; min-width:22px; padding:1px 5px; text-align:center; font-size:11px; border-radius:4px; background:#dfeafe; color:#3561a8; font-variant-numeric:tabular-nums; }
.yh-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px; }
.yh-heading h1 { font-size:25px; font-weight:600; line-height:1.25; letter-spacing:-.7px; margin:0; }
.yh-heading p { font-size:13px; color:var(--yh-muted); margin:6px 0 0; }
.yh-kicker { font-size:11px!important; color:var(--yh-muted)!important; font-weight:500; margin:0 0 6px!important; letter-spacing:.02em; }
.yh-service { display:flex; align-items:center; gap:8px; color:var(--yh-muted); font-size:12px; }
.yh-service>span { width:6px; height:6px; border-radius:50%; background:#388464; }
.yh-service strong,.yh-service small { display:block; font-size:11px; font-weight:400; }
.yh-dashboard .yh-backup-passkey { font-size:12px; color:var(--yh-muted); padding:8px 0 8px 12px; white-space:nowrap; }
.yh-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; padding:0 0 22px; margin:0 0 22px; border-bottom:1px solid var(--yh-border); }
.yh-summary>div { display:flex; flex-direction:column; gap:5px; }
.yh-summary span { font-size:12px; color:var(--yh-muted); }
.yh-summary strong { font-size:25px; font-weight:550; letter-spacing:-.6px; line-height:1.2; font-variant-numeric:tabular-nums; }
.yh-summary>small { grid-column:1/-1; font-size:11px; color:var(--yh-muted); }
.yh-section-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:16px; }
.yh-section-heading h2 { font-size:17px; font-weight:600; letter-spacing:-.3px; margin:0; }
.yh-section-heading p { font-size:12px; color:var(--yh-muted); margin:5px 0 0; max-width:80ch; }
.yh-dashboard .yh-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:36px; padding:7px 12px; font-size:12px; line-height:20px; font-weight:500; white-space:nowrap; border:1px solid transparent; border-radius:6px; text-decoration:none; }
.yh-dashboard .yh-primary { color:white; background:var(--yh-blue); border-color:var(--yh-blue); }
.yh-dashboard .yh-primary:hover:not(:disabled) { background:#204fae; }
.yh-dashboard .yh-secondary { background:white; color:#455166; border-color:#dce2e9; }
.yh-dashboard .yh-secondary:hover:not(:disabled) { background:#f6f8fb; border-color:#c9d2df; }
.yh-dashboard .yh-danger { color:#fff; background:#b83d48; border-color:#b83d48; }
.yh-dashboard .yh-text-button { color:var(--yh-blue); font-size:12px; padding:7px 4px; min-height:36px; }
.yh-surface { background:#fff; }
.yh-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; padding:0 0 16px; }
.yh-search { display:flex; align-items:center; gap:7px; flex:1 1 310px; max-width:480px; margin:0; }
.yh-search input { flex:1; width:100%; min-width:0; }
.yh-filters { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.yh-filters>span:first-child { font-size:12px; color:var(--yh-muted); }
.yh-filters select { max-width:210px; }
.yh-table-scroll { overflow-x:auto; position:relative; width:100%; min-height:80px; border:1px solid var(--yh-border); border-radius:7px; }
.yh-table { width:100%; min-width:770px; border-collapse:collapse; text-align:left; font-size:14px; }
.yh-table th { height:40px; padding:9px 16px; font-size:12px; font-weight:500; line-height:20px; color:#687487; background:#f8f9fb; white-space:nowrap; border-bottom:1px solid var(--yh-border); }
.yh-table th button { display:flex; align-items:center; gap:8px; font:inherit; color:inherit; margin:0; padding:0; background:transparent; border:0; min-height:0; max-width:none; }
.yh-table th button span { color:#9aa5b5; font-size:12px; }
.yh-table th[aria-sort=ascending] button,.yh-table th[aria-sort=descending] button { color:#345885; }
.yh-table td { height:60px; padding:10px 16px; vertical-align:middle; border-bottom:1px solid #edf0f4; line-height:20px; font-weight:400; }
.yh-table tbody:empty:after { content:none; }
.yh-table tbody tr:last-child td { border-bottom:0; }
.yh-table tbody tr:hover { background:#fafbfd; }
.yh-table td:last-child { width:52px; }
.yh-person { display:flex; align-items:center; gap:10px; min-width:220px; }
.yh-avatar { display:flex; align-items:center; justify-content:center; width:32px; height:32px; flex:0 0 32px; border-radius:50%; background:#edf2fa; color:#53709c; font-size:11px; font-weight:600; }
.yh-table .yh-person-button { display:block; border:0; background:transparent; color:var(--yh-ink); font-size:14px; font-weight:500; text-align:left; padding:0; margin:0; min-height:0; max-width:none; line-height:20px; }
.yh-person-button:hover { text-decoration:underline; text-underline-offset:3px; }
.yh-secondary-text { display:block; color:var(--yh-muted); font-size:12px; line-height:18px; margin-top:1px; overflow-wrap:anywhere; }
.yh-person .yh-secondary-text { white-space:nowrap; }
.yh-badge { display:inline-flex; align-items:center; gap:5px; padding:2px 7px; border-radius:4px; background:#f0f2f6; color:#536075; font-size:11px; font-weight:500; line-height:18px; white-space:nowrap; }
.yh-badge-active { background:#edf7f1; color:#337856; }
.yh-badge-disabled { background:#fceff0; color:#a0434d; }
.yh-badge-free { background:#edf3fd; color:#456ba8; }
.yh-capacity { display:flex; align-items:center; gap:8px; font-variant-numeric:tabular-nums; white-space:nowrap; font-size:13px; }
.yh-capacity-meter { width:32px; height:4px; overflow:hidden; border-radius:3px; background:#eaf0f8; }
.yh-capacity-meter>span { display:block; height:100%; border-radius:3px; background:#7495d2; }
.yh-over-limit { color:#a64939; }
.yh-menu { position:relative; }
.yh-menu summary { display:flex; justify-content:center; align-items:center; width:30px; height:30px; padding:0; list-style:none; cursor:pointer; color:#788497; font-size:19px; letter-spacing:1px; border-radius:5px; }
.yh-menu summary::-webkit-details-marker { display:none; }
.yh-menu summary:hover,.yh-menu[open] summary { background:#eaf0fb; color:var(--yh-blue); }
.yh-menu-items { position:fixed; width:195px; z-index:8; padding:5px; border:1px solid #dfe5ed; background:#fff; border-radius:7px; box-shadow:0 8px 28px #20304d1a; }
.yh-table .yh-menu-items button { display:block; width:100%; padding:9px 10px; margin:0; min-height:36px; max-width:none; border:0; border-radius:4px; background:transparent; color:var(--yh-ink); text-align:left; font-size:12px; }
.yh-table .yh-menu-items button:hover { background:#f1f5fb; }
.yh-pagination { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; padding:14px 0; color:var(--yh-muted); font-size:12px; }
.yh-pagination>div { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.yh-pagination label { font-size:12px; font-weight:400; }
.yh-pagination select { min-height:32px; padding:5px 8px; font-size:12px; }
.yh-pagination .yh-button { min-height:32px; padding:5px 10px; }
.yh-empty { padding:46px 20px; text-align:center; border-bottom:1px solid var(--yh-border); }
.yh-empty strong { font-size:15px; font-weight:500; }
.yh-empty p { font-size:13px; color:var(--yh-muted); margin:7px 0 18px; }
.yh-feedback,.yh-error { padding:12px 14px; border-radius:6px; font-size:13px; line-height:1.5; margin-bottom:18px; }
.yh-feedback { color:#355f9f; background:#edf4ff; border:1px solid #dce8fc; }
.yh-error { display:flex; align-items:center; justify-content:space-between; gap:15px; color:#9a4247; background:#fff2f2; border:1px solid #f1d8da; }
.yh-error button { color:inherit; text-decoration:underline; font-size:12px; padding:5px; }
.yh-loading-cell { text-align:center; padding:35px!important; color:var(--yh-muted); font-size:13px; }
.yh-loading-cell span:before { content:""; display:inline-block; width:12px; height:12px; border:2px solid #dce5f3; border-top-color:var(--yh-blue); border-radius:50%; margin-right:9px; vertical-align:-2px; animation:yh-spin .9s linear infinite; }
.yh-plan-catalog { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,320px)); gap:16px; }
.yh-plan-card { display:flex; flex-direction:column; align-items:flex-start; padding:20px; border:1px solid var(--yh-border); border-radius:8px; background:white; min-height:236px; }
.yh-plan-card-free { border-color:#d5e1f3; }
.yh-plan-top { display:flex; align-items:center; justify-content:space-between; width:100%; gap:10px; color:var(--yh-muted); font-size:11px; }
.yh-plan-card h3 { font-size:18px; font-weight:600; letter-spacing:-.3px; margin:15px 0 18px; overflow-wrap:anywhere; }
.yh-plan-capacity { font-size:25px; font-weight:550; letter-spacing:-.5px; }
.yh-plan-capacity small { font-size:12px; color:var(--yh-muted); font-weight:400; margin-left:6px; letter-spacing:0; }
.yh-plan-room { font-size:12px; color:var(--yh-muted); margin:6px 0 20px; }
.yh-plan-card .yh-button { margin-top:auto; }
.yh-plan-card>p:last-child { font-size:12px; color:var(--yh-muted); margin-top:auto; line-height:1.5; }
.yh-policy { margin-top:25px; padding-top:18px; border-top:1px solid var(--yh-border); max-width:850px; }
.yh-policy strong { font-size:12px; font-weight:500; }
.yh-policy p { font-size:12px; color:var(--yh-muted); line-height:1.7; margin:5px 0 0; }
.yh-audit-filters { display:flex; align-items:center; flex-wrap:wrap; gap:10px; padding-bottom:16px; }
.yh-audit-filters input { flex:1; min-width:180px; max-width:460px; }
.yh-audit-filters select { max-width:300px; }
.yh-audit-table { min-width:800px; }
.yh-audit-table th:first-child { width:158px; }
.yh-audit-table td { max-width:280px; overflow-wrap:anywhere; font-size:13px; }
.yh-audit-table td:last-child { width:auto; }
.yh-audit-code { display:block; font-size:11px; color:#8190a4; margin-top:2px; line-height:16px; }
.yh-event-title { font-weight:500; }
.yh-drawer { position:fixed; inset:0; margin:0 0 0 auto; width:min(460px,100%); max-width:100%; height:100dvh; max-height:none; padding:0; border:0; border-left:1px solid var(--yh-border); background:#fff; color:var(--yh-ink); box-shadow:-12px 0 45px #18283e16; overflow-y:auto; }
.yh-drawer::backdrop,.yh-confirm::backdrop { background:#16263e42; }
.yh-drawer-heading { position:sticky; top:0; z-index:2; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:24px; border-bottom:1px solid var(--yh-border); background:#fff; }
.yh-drawer-heading h2 { font-size:21px; letter-spacing:-.45px; line-height:1.3; margin:0; overflow-wrap:anywhere; }
.yh-dashboard .yh-icon-button { display:flex; align-items:center; justify-content:center; min-width:32px; height:32px; border:1px solid #e2e7ee; border-radius:6px; font-size:23px; color:#6b7788; }
.yh-drawer #yh-drawer-body { padding:24px; }
.yh-detail-meta { padding-bottom:18px; margin-bottom:20px; border-bottom:1px solid var(--yh-border); }
.yh-detail-meta p { font-size:13px; color:var(--yh-muted); margin:0 0 8px; overflow-wrap:anywhere; }
.yh-detail-meta .yh-identifier { font-size:11px; margin-top:10px; color:#7b8797; }
.yh-details-list { display:grid; grid-template-columns:1fr 1fr; gap:17px; margin:0 0 24px; }
.yh-details-list dt { font-size:12px; color:var(--yh-muted); margin-bottom:4px; }
.yh-details-list dd { font-size:14px; font-weight:500; margin:0; }
.yh-drawer-form { display:flex; flex-direction:column; gap:16px; }
.yh-drawer-form h3 { font-size:15px; font-weight:600; margin:0; }
.yh-drawer-form label { display:flex; flex-direction:column; gap:6px; font-size:12px; font-weight:500; }
.yh-drawer-form :is(input,select) { width:100%; min-height:40px; }
.yh-drawer-form small,.yh-drawer-form>p { font-size:12px; line-height:1.65; color:var(--yh-muted); font-weight:400; margin:0; }
.yh-drawer-form .yh-button { align-self:flex-start; }
.yh-inline-error { font-size:12px; line-height:1.6; color:#ad3e48; margin:8px 0; }
.yh-account-actions { margin-top:26px; padding-top:21px; border-top:1px solid var(--yh-border); }
.yh-account-actions h3 { font-size:14px; margin:0 0 8px; }
.yh-account-action { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:15px 0; border-bottom:1px solid #edf0f4; }
.yh-account-action strong { display:block; font-size:12px; font-weight:500; }
.yh-account-action small { display:block; font-size:12px; color:var(--yh-muted); line-height:1.5; margin-top:4px; }
.yh-account-action .yh-button { font-size:11px; flex-shrink:0; }
.yh-confirm { padding:26px; border:1px solid var(--yh-border); border-radius:10px; width:calc(100% - 32px); max-width:420px; color:var(--yh-ink); box-shadow:0 18px 70px #16263e24; }
.yh-confirm form { gap:0; }
.yh-confirm-symbol { display:flex; align-items:center; justify-content:center; width:32px; height:32px; margin-bottom:17px; border-radius:7px; color:var(--yh-blue); background:#eef3fd; font-weight:600; }
.yh-confirm h2 { font-size:20px; line-height:1.3; letter-spacing:-.4px; margin:0 0 10px; }
.yh-confirm p { font-size:13px; color:var(--yh-muted); line-height:1.65; }
.yh-confirm-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:23px; }
.yh-sr { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@keyframes yh-spin { to { transform:rotate(360deg); } }
@media(max-width:1100px) {
  .yh-layout { grid-template-columns:150px minmax(0,1fr); }
  .yh-main { padding-left:22px; }
  .yh-navigation { padding-right:16px; }
  .yh-toolbar { align-items:stretch; }
  .yh-search { max-width:none; }
}
@media(max-width:760px) {
  body:has(#workspace:not([hidden])) > header { padding:0 20px; }
  body:has(#workspace:not([hidden])) main { padding:0 20px 20px; }
  .yh-layout { display:block; }
  .yh-navigation { position:static; flex-direction:row; gap:5px; padding:16px 0; border-bottom:1px solid var(--yh-border); }
  .yh-navigation button { padding:8px 14px; }
  .yh-main { padding:22px 0 0; border:0; min-height:0; }
  .yh-heading { gap:14px; flex-wrap:wrap; margin-bottom:22px; }
  .yh-heading h1 { font-size:23px; }
  .yh-summary { gap:18px 12px; }
  .yh-summary strong { font-size:23px; }
  .yh-pagination>div { margin-left:auto; }
}
@media(max-width:480px) {
  body:has(#workspace:not([hidden])) > header { height:64px; padding:0 16px; }
  body:has(#workspace:not([hidden])) > header .brand span { display:none; }
  body:has(#workspace:not([hidden])) main { padding:0 16px 16px; }
  .yh-dashboard input,.yh-dashboard select,.yh-dashboard .yh-button,.yh-navigation button,.yh-dashboard .yh-text-button { min-height:44px; }
  .yh-dashboard input { font-size:16px; }
  .yh-navigation { gap:4px; padding:12px 0; }
  .yh-navigation button { flex:1; justify-content:center; padding:10px 8px; }
  .yh-navigation span { margin-left:3px; }
  .yh-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .yh-section-heading { align-items:flex-start; gap:12px; }
  .yh-section-heading h2 { font-size:16px; }
  .yh-section-heading>.yh-button { flex-shrink:0; }
  .yh-toolbar { gap:10px; }
  .yh-search { flex-basis:100%; }
  .yh-filters { width:100%; }
  .yh-filters select { flex:1; min-width:0; max-width:none; font-size:12px; }
  .yh-filters>span:first-child { width:100%; }
  .yh-pagination>div { margin-left:0; gap:7px; }
  .yh-pagination .yh-button { padding:7px 10px; }
  .yh-plan-catalog { grid-template-columns:minmax(0,1fr); }
  .yh-plan-card { min-height:220px; }
  .yh-audit-filters { align-items:stretch; }
  .yh-audit-filters input,.yh-audit-filters select { flex-basis:100%; max-width:none; }
  .yh-drawer-heading,.yh-drawer #yh-drawer-body { padding:20px; }
  .yh-dashboard .yh-icon-button { min-width:44px; height:44px; }
  .yh-account-action { align-items:flex-start; }
  .yh-error { align-items:flex-start; }
  .yh-menu summary { width:44px; height:44px; }
  .yh-table .yh-menu-items button { min-height:44px; }
}
@media(prefers-reduced-motion:reduce) { .yh-loading-cell span:before { animation:none; } .yh-dashboard * { scroll-behavior:auto!important; } }
/* Secondary editing stays collapsed until requested. */
.yh-grant-editor { border:1px solid var(--yh-border); border-radius:7px; margin-top:20px; }
.yh-grant-editor>summary { display:flex; align-items:center; justify-content:space-between; gap:12px; list-style:none; cursor:pointer; padding:13px 14px; font-size:13px; font-weight:500; border-radius:7px; }
.yh-grant-editor>summary::-webkit-details-marker { display:none; }
.yh-grant-editor>summary:after { content:"›"; font-size:20px; line-height:18px; color:var(--yh-muted); transform:rotate(90deg); }
.yh-grant-editor[open]>summary { border-bottom:1px solid var(--yh-border); border-radius:7px 7px 0 0; background:#fafbfd; }
.yh-grant-editor[open]>summary:after { transform:rotate(-90deg); }
.yh-grant-editor .yh-drawer-form { padding:16px 14px; }
.yh-audit-code { max-width:230px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.yh-audit-table .yh-person-button { font-size:13px; }
#wl-search-form{justify-content:flex-start;align-items:end}#wl-search-form label{flex-basis:100%}#wl-search{width:min(420px,100%)}#wl-reload{margin-left:auto}#yh-waitlist-view .yh-table-wrap{max-width:100%;overflow-x:auto}#yh-waitlist-view table{width:100%;min-width:680px}#yh-waitlist-view td{overflow-wrap:anywhere}

/* Workspace detail pages replace side drawers. */
.yh-detail-page{max-width:960px;margin:0 auto}.yh-detail-page>h2{font-size:32px;letter-spacing:-1px;margin:12px 0 28px}.yh-detail-form{display:grid;gap:20px;max-width:640px}.yh-detail-form label{display:grid;gap:8px;font-weight:600}.yh-detail-form input,.yh-detail-form select{width:100%;min-height:46px;padding:10px 12px;border:1px solid #ccd9e8;border-radius:10px;background:#fff;color:#203147}.yh-detail-form small{font-size:13px;font-weight:400;color:#586e86}.yh-detail-form h3{margin:12px 0 0}.yh-detail-meta{margin:18px 0}.yh-detail-body{max-width:960px}.yh-overview-grid,.yh-finance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:24px}.yh-insight{padding:28px}.yh-insight h2{font-size:20px;margin:0 0 12px}.yh-insight p{color:#586e86;line-height:1.65;font-size:15px}.yh-chart-row{display:grid;grid-template-columns:90px 1fr 40px;align-items:center;gap:16px;margin:22px 0}.yh-chart-row meter{width:100%;height:16px}.yh-chart-row meter::-webkit-meter-optimum-value{background:#2d60ca}.yh-unavailable{display:block;font-size:28px;color:#677b92;margin:24px 0}#yh-next-actions{display:grid;gap:12px;margin-top:24px}.yh-audit-table td{padding-top:12px;padding-bottom:12px;font-size:13px}.yh-audit-code{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yh-audit-table .yh-secondary-text{font-size:12px}@media(max-width:760px){.yh-overview-grid,.yh-finance-grid{grid-template-columns:1fr}.yh-insight{padding:20px}.yh-detail-page>h2{font-size:26px}}
