/* Owner-approved Access/Materials R5 shell and gate A.
 * Library layout is loaded from the canonical open-materials styles, not copied. */

/* ACCESS_STAGE1_R5: only additive, scoped candidate styles. */
.review-access{--rv-accent:var(--ember,#f5a04f);border:1px solid var(--line-strong,rgba(var(--ui-line-strong-tone-67),1));border-radius:16px;padding:22px;background:var(--surface,var(--panel,rgba(var(--ui-panel-tone-20),1)));display:flex;align-items:center;gap:18px;position:relative;color:var(--text,rgba(var(--ui-text-tone-82),1))}
.review-access h3{font-size:19px;line-height:1.3;letter-spacing:-.025em;margin:0 0 7px;font-weight:750}.review-access p{margin:0;color:var(--text-soft,var(--muted,rgba(var(--ui-muted-tone-157),1)));font-size:14px;line-height:1.65}.review-access .rv-copy{flex:1;min-width:0}.rv-icon{width:44px;height:44px;flex:none;border:1px solid var(--line-strong,rgba(var(--ui-line-strong-tone-67),1));border-radius:13px;display:grid;place-items:center;color:var(--rv-accent,rgba(var(--ui-accent-text-tone-08),1));background:rgba(245,160,79,.075)}.rv-icon svg{width:23px;height:23px}.rv-cta{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:11px 17px;border-radius:11px;background:var(--rv-accent,#f5a04f);color:rgba(var(--ui-ink-tone-09),1);text-decoration:none;border:1px solid transparent;font-size:13px;font-weight:750;white-space:nowrap}.rv-cta svg{width:17px;height:17px}.rv-cta:hover{filter:brightness(1.07)}.rv-cta:focus-visible{outline:2px solid var(--rv-accent,#f5a04f);outline-offset:4px}.rv-sub{font-size:12px!important;color:var(--muted,rgba(var(--ui-muted-tone-157),1))!important;margin-top:9px!important}.rv-time{display:inline-flex;align-items:center;gap:5px;color:var(--rv-accent,rgba(var(--ui-accent-text-tone-08),1));font-size:11px;line-height:1.3;margin-bottom:8px;font-weight:700}.review-access[data-variant="A"]{padding:16px 18px;border-radius:12px;background:rgba(245,160,79,.055);gap:16px}.review-access[data-variant="A"] h3{font-size:15px;margin-bottom:4px}.review-access[data-variant="A"] p{font-size:13px}.review-access[data-variant="A"] .rv-icon{display:none}.review-access[data-variant="B"]{border-color:rgba(245,160,79,.32)}.review-access[data-variant="C"]{padding:0;display:block;background:var(--surface,var(--panel,rgba(var(--ui-panel-tone-20),1)));overflow:hidden}.rv-full{padding:22px;display:flex;align-items:center;gap:17px;color:inherit;text-decoration:none}.rv-full:hover{background:rgba(245,160,79,.045)}.rv-foot{padding:12px 22px;border-top:1px solid var(--line,rgba(var(--ui-line-tone-01),1));font-size:12px;color:var(--muted,rgba(var(--ui-muted-tone-157),1))}.review-access[data-variant="C"] .rv-cta{background:transparent;border-color:rgba(245,160,79,.4);color:var(--rv-accent,rgba(var(--ui-accent-text-tone-08),1))}.rv-disabled{opacity:.55;cursor:not-allowed!important}.rv-finish{background:rgba(85,160,139,.05)!important;border-color:rgba(85,160,139,.4)!important}.rv-hint{font:12px/1.5 "Open Sans",Arial,sans-serif;color:var(--muted,rgba(var(--ui-muted-tone-157),1));margin:12px 0 0}.rv-footer-link{font:inherit;color:inherit}.rv-hidden{display:none!important}
/* Added service row must scroll with the native sidebar, not collapse its group. */
.sidebar .family-rail-group{flex-shrink:0}
/* Shared library page reuses original materials selectors and CSS. */
.materials-gate-main{max-width:1120px;margin:0 auto;padding:74px 24px 90px;min-height:calc(100vh - 240px);display:flex;align-items:center}.materials-gate{width:100%;color:var(--text,rgba(var(--ui-text-tone-82),1))}.materials-gate h1{font-size:clamp(29px,4vw,45px);letter-spacing:-.045em;line-height:1.13;margin:14px 0 16px}.materials-gate p{color:var(--muted,rgba(var(--ui-muted-tone-157),1));line-height:1.75;font-size:16px;margin:0 auto 25px;max-width:570px}.materials-gate .eyebrow{font-size:11px;letter-spacing:.1em;font-weight:700;color:var(--ui-accent-ink),1));margin:0 0 12px}.gate-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.gate-actions a:not(.rv-cta){color:var(--muted,rgba(var(--ui-muted-tone-157),1));font-size:13px;text-underline-offset:4px}.gate-icon{width:58px;height:58px;border-radius:18px;background:rgba(245,160,79,.09);border:1px solid rgba(245,160,79,.3);display:grid;place-items:center;color:var(--ui-accent-ink),1));margin-bottom:22px}.gate-icon svg{width:28px;height:28px}.materials-gate[data-variant="A"]{max-width:600px;margin:auto;text-align:center}.materials-gate[data-variant="A"] .gate-icon{margin:0 auto 22px}.materials-gate[data-variant="A"] .gate-actions{justify-content:center}.materials-gate[data-variant="B"]{padding:40px;border:1px solid var(--line,rgba(var(--ui-line-tone-01),1));border-radius:24px;background:var(--panel,rgba(var(--ui-panel-tone-20),1));display:grid;grid-template-columns:1fr 225px;gap:35px;align-items:center}.materials-gate[data-variant="B"] .gate-actions{padding-left:28px;border-left:1px solid var(--line,rgba(var(--ui-line-tone-01),1));flex-direction:column;justify-content:center;min-height:170px}.materials-gate[data-variant="B"] p{margin:0;max-width:570px}.materials-gate[data-variant="C"] p{margin-left:0}.materials-gate[data-variant="B"] .gate-icon{width:45px;height:45px;border-radius:13px;margin-bottom:20px}.materials-gate[data-variant="B"] h1{font-size:34px}.materials-gate[data-variant="B"] .rv-cta{width:100%}.materials-gate[data-variant="C"]{display:grid;grid-template-columns:1.4fr 1fr;gap:52px;align-items:center}.materials-gate[data-variant="C"] .gate-actions{padding:30px;border:1px solid var(--line,rgba(var(--ui-line-tone-01),1));border-radius:20px;background:var(--panel,rgba(var(--ui-panel-tone-20),1));flex-direction:column;align-items:stretch;text-align:center}.materials-gate[data-variant="C"] .gate-icon{background:transparent;border:none;width:36px;height:36px;padding:0;justify-content:start}.gate-note{font-size:12px!important;margin:0!important;line-height:1.55!important;color:var(--muted,rgba(var(--ui-muted-tone-157),1))}.materials-page .materials-empty.rv-empty{display:flex;align-items:center;justify-content:center;gap:12px;flex-direction:column;min-height:205px;text-align:center;padding:34px}.materials-empty.rv-empty svg{width:32px;height:32px;color:var(--muted)}.materials-empty.rv-empty strong{font-size:19px}.materials-empty.rv-empty span{font-size:14px}.materials-empty.rv-empty a{font-size:13px;color:var(--ui-accent-ink),1));margin-top:7px;text-underline-offset:4px}.rv-spinner{width:27px;height:27px;border:2px solid var(--line,rgba(var(--ui-line-tone-01),1));border-top-color:var(--ember,#f5a04f);border-radius:50%;animation:rv-spin .9s linear infinite}.materials-gate[data-variant="A"] .rv-spinner{margin:auto}@keyframes rv-spin{to{transform:rotate(360deg)}}
@media(max-width:700px){.review-access{align-items:flex-start;padding:20px;gap:13px;flex-wrap:wrap}.review-access .rv-copy{flex:1 1 220px}.review-access .rv-icon{display:none}.review-access>.rv-cta{width:100%;margin-top:3px}.rv-full{padding:19px;flex-wrap:wrap;gap:13px}.rv-full>.rv-cta{width:100%}.rv-foot{padding:12px 19px}.review-access h3{font-size:18px}.materials-gate-main{padding:48px 19px;min-height:calc(100vh - 190px)}.materials-gate[data-variant="B"],.materials-gate[data-variant="C"]{display:block}.materials-gate[data-variant="B"]{padding:26px 23px;border-radius:20px}.materials-gate[data-variant="B"] .gate-actions{border-left:0;padding:24px 0 0;min-height:0;gap:16px}.materials-gate[data-variant="B"] h1{font-size:29px}.materials-gate[data-variant="C"] .gate-actions{margin-top:25px;padding:23px}.materials-gate p{font-size:14px;line-height:1.7}.gate-actions .rv-cta{width:100%}.materials-gate-main .gate-actions{justify-content:center}.materials-page .materials-hero h1{font-size:38px}.rv-hint{font-size:11px}}
@media(prefers-reduced-motion:reduce){.rv-spinner{animation:none}}

.dropdown a.dropdown-item{text-decoration:none;color:inherit}
.profile-button{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:rgba(var(--ui-text-tone-02),0.035);border-radius:14px;padding:5px 11px 5px 5px;text-align:left}
.profile-button>span:first-child{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:var(--accent-soft);color:rgba(var(--ui-text-tone-76),1);font-size:11px;font-weight:800}
.profile-button-copy{display:grid;line-height:1.15}
.profile-button-copy b{font-size:13px}
.profile-button-copy small{color:var(--muted);font-size:10px;max-width:170px;overflow:hidden;text-overflow:ellipsis}
.dropdown{position:fixed;z-index:50;width:min(360px,calc(100vw - 24px));right:24px;top:69px;border:1px solid var(--line-strong);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);padding:10px}
.dropdown h3{margin:8px 9px 12px}
.dropdown-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px;border:0;border-radius:10px;background:transparent;text-align:left}
.dropdown-item:hover{background:var(--accent-soft)}
.dropdown-item small{display:block;color:var(--muted)}
@media (max-width:1000px){.profile-button-copy{display:none}}
@media (max-width:760px){.profile-button{padding:3px}
.profile-button>span:first-child{width:32px}
.dropdown{right:12px;top:60px}}
.profile-button.account-plain{border:0;background:transparent;border-radius:0;padding:0;gap:5px;color:rgba(var(--ui-muted-strong-tone-80),1);min-height:auto}
.profile-button.account-plain:hover{background:transparent}
.profile-button.account-plain>span:first-child{width:auto;height:auto;border-radius:0;background:transparent;color:rgba(var(--ui-muted-strong-tone-80),1);font-size:12px;font-weight:700}
.profile-button-copy{display:block;line-height:1}
.profile-button-copy b{font-size:12px;color:rgba(var(--ui-muted-strong-tone-80),1)}
.profile-button-copy small{display:none}
@media (max-width:760px){.profile-button.account-plain .account-separator,.profile-button.account-plain .profile-button-copy{display:none}
.profile-button.account-plain>span:first-child{font-size:12px}}
.app-shell .dropdown{background:rgba(var(--ui-panel-tone-10),1);border-color:rgba(var(--ui-line-tone-07),1);box-shadow:0 18px 50px rgba(0,0,0,.32)}
html[data-theme="light"] .profile-button.account-plain,html[data-theme="light"] .profile-button.account-plain>span:first-child,html[data-theme="light"] .profile-button.account-plain .profile-button-copy b{color:rgba(var(--ui-muted-tone-158),1)}
html[data-theme="light"] .app-shell .modal,html[data-theme="light"] .app-shell .modal-head,html[data-theme="light"] .app-shell .dropdown{background:rgba(var(--ui-panel-top-tone-02),1);border-color:rgba(var(--ui-line-strong-tone-101),1)}
.app-shell .dropdown{background:linear-gradient(180deg,rgba(var(--ui-panel-tone-31),1),rgba(var(--ui-panel-tone-32),1));border-color:rgba(var(--ui-line-strong-tone-102),1);box-shadow:0 22px 60px rgba(0,0,0,.38)}
.profile-button.account-plain{border:1px solid rgba(var(--ui-line-tone-08),1);background:linear-gradient(180deg,rgba(var(--ui-panel-tone-33),1),rgba(var(--ui-panel-tone-34),1));border-radius:14px;padding:5px 10px 5px 5px;gap:7px;box-shadow:0 8px 22px rgba(0,0,0,.11)}
.profile-button.account-plain:hover{background:linear-gradient(180deg,rgba(var(--ui-panel-top-tone-98),1),rgba(var(--ui-panel-tone-33),1));border-color:rgba(var(--ui-line-strong-tone-103),1)}
.profile-button.account-plain>span:first-child{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(var(--ui-hover-tone-13),1),rgba(var(--ui-control-tone-12),1));border:1px solid rgba(var(--ui-line-strong-tone-104),1);color:rgba(var(--ui-text-tone-32),1);font-size:11px;font-weight:850}
.profile-button.account-plain .profile-button-copy b{color:rgba(var(--ui-text-tone-80),1)}
@media (max-width:760px){.profile-button.account-plain{background:transparent;border:0;box-shadow:none;padding:0}
.profile-button.account-plain:hover{background:transparent}
.profile-button.account-plain>span:first-child{width:30px;height:30px;border-radius:9px}}
html[data-theme="light"] .profile-button.account-plain{background:linear-gradient(180deg,rgba(var(--ui-panel-top-tone-02),1),rgba(var(--ui-panel-top-tone-99),1));border-color:rgba(var(--ui-line-strong-tone-105),1);box-shadow:0 8px 20px rgba(var(--ui-sheen-tone-125),0.06)}
html[data-theme="light"] .profile-button.account-plain>span:first-child{background:rgba(var(--ui-panel-top-tone-100),1);border-color:rgba(var(--ui-line-strong-tone-106),1);color:rgba(var(--ui-muted-tone-159),1)}
html[data-theme="light"] .profile-button.account-plain .profile-button-copy b{color:rgba(var(--ui-ink-tone-10),1)}
.profile-button.account-plain>span:first-child.has-photo{overflow:hidden;padding:0}
.profile-button.account-plain>span:first-child.has-photo img{width:100%;height:100%;display:block;object-fit:cover;border-radius:inherit}
.eyebrow,.fineprint,.meta,.app-version,.setting-scope,.room-state,.profile-button-copy small,.sidebar-footer,.runtime-status{font-family:"PT Sans","Segoe UI",Arial,sans-serif}
.shell-utility,.theme-toggle,.icon-button,.profile-button{border-color:var(--line-strong);background:var(--surface-2);color:var(--text-soft);box-shadow:0 1px 0 rgba(var(--ui-text-tone-83),0.06) inset;transition:transform var(--motion-fast) var(--ease-soft),background-color var(--motion-hover) var(--ease-soft),border-color var(--motion-hover) var(--ease-soft),box-shadow var(--motion-hover) var(--ease-soft)}
.shell-utility:hover,.theme-toggle:hover,.icon-button:hover,.profile-button:hover{background:var(--surface);border-color:var(--line-strong);transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.18)}
.profile-button>span:first-child{background:var(--surface-3);border:1px solid var(--line);color:var(--text)}
.app-shell .dropdown,.dropdown{background:rgba(var(--ui-bg-soft-tone-27),0.96);border-color:var(--line-strong);box-shadow:0 18px 50px rgba(0,0,0,.32);backdrop-filter:blur(22px)}
.dropdown-item:hover{background:var(--surface-2)}
html[data-theme="light"] .app-shell .modal,html[data-theme="light"] .modal,html[data-theme="light"] .app-shell .modal-head,html[data-theme="light"] .modal-head,html[data-theme="light"] .app-shell .dropdown,html[data-theme="light"] .dropdown{background:rgba(255,253,249,.97);border-color:var(--line-strong)}
@media (prefers-reduced-motion:reduce){.main-nav a,.shell-utility,.theme-toggle,.icon-button,.profile-button,.button,.candidate-card,.pair-card,.training-card,.week-card,.exercise-card,.open-room-card,.pair-quick-card,.choice,.daypart-choice,.topic-card,.tab{transition:none!important}
.main-nav a:hover,.shell-utility:hover,.theme-toggle:hover,.icon-button:hover,.profile-button:hover,.button:hover,.candidate-card:hover,.pair-card:hover,.training-card:hover,.week-card:hover,.exercise-card:hover,.open-room-card:hover,.pair-quick-card:hover,.choice:hover,.daypart-choice:hover,.topic-card:hover{transform:none!important}}
.profile-button.account-plain{background:var(--surface-2);border-color:var(--line-strong);color:var(--text-soft);box-shadow:0 8px 22px rgba(0,0,0,.12),inset 0 1px 0 rgba(var(--ui-text-tone-83),0.05)}
.profile-button.account-plain:hover{background:var(--surface);border-color:var(--line-strong)}
.profile-button.account-plain>span:first-child{background:var(--surface-3);border-color:var(--line);color:var(--text)}
.profile-button.account-plain .profile-button-copy b{color:var(--text)}
html[data-theme="light"] .profile-button.account-plain{background:var(--surface-2);border-color:var(--line-strong);box-shadow:0 8px 20px rgba(var(--ui-sheen-tone-104),0.06)}
html[data-theme="light"] .profile-button.account-plain>span:first-child{background:var(--surface-3);border-color:var(--line);color:var(--text)}
html[data-theme="light"] .profile-button.account-plain .profile-button-copy b{color:var(--text)}
@media (max-width:760px){.profile-button.account-plain{background:transparent;border:0;box-shadow:none}
.profile-button.account-plain:hover{background:transparent}}
.app-shell .eyebrow,.app-shell .fineprint,.app-shell .meta,.app-shell .app-version,.app-shell .setting-scope,.app-shell .room-state,.app-shell .profile-button-copy small,.app-shell .runtime-status{font-family:"PT Sans","Segoe UI",Arial,sans-serif}
.orator-nav-icon{width:24px;height:24px;display:inline-grid;place-items:center;flex:0 0 24px;color:var(--nav-icon-muted)}
.orator-nav-icon svg{display:block;width:24px;height:24px;overflow:visible}
.main-nav a>.orator-nav-icon{color:var(--nav-icon-muted)}
.main-nav a.active>.orator-nav-icon{color:var(--ui-accent-ink)!important}
.family-nav-card>.orator-nav-icon{color:var(--nav-icon-muted)}
.family-nav-main-site>.orator-nav-icon{opacity:.72}
.profile-hub-dropdown{width:min(380px,calc(100vw - 24px))!important;max-height:min(78vh,660px)!important;overflow:auto!important}
.profile-hub-divider{height:1px;background:var(--line);margin:7px 6px}
.profile-hub-dropdown .dropdown-item{display:grid!important;grid-template-columns:24px minmax(0,1fr) auto!important;align-items:center!important;column-gap:12px!important}
.profile-hub-dropdown .profile-hub-icon{color:var(--nav-icon-muted)!important}
.profile-hub-dropdown .dropdown-item:hover .profile-hub-icon,.profile-hub-dropdown .dropdown-item:focus-visible .profile-hub-icon{color:var(--ui-accent-ink)!important}
.profile-hub-local .profile-hub-icon{color:var(--ui-accent-ink)!important}
.profile-hub-main-site{opacity:.84}
.profile-hub-logout b,.profile-hub-logout .profile-hub-icon{color:#e97b8a!important}
@media (max-width:1099px){.bottom-nav.orator-bottom-nav .orator-nav-icon{color:currentColor!important}}
.orator-nav-icon,.orator-nav-icon svg{width:24px!important;height:24px!important}
html[data-theme="light"] :is(.button,.shell-utility,.theme-toggle,.icon-button,.profile-button):hover{border-color:var(--line-strong)!important}
html[data-theme="light"] .app-shell :is(.button,.icon-button,.profile-button):not(.primary):not(.danger):not(.success):not(.theme-toggle){background:rgba(var(--ui-panel-top-tone-94),1)!important;color:var(--text)!important;border-color:rgba(var(--ui-line-strong-tone-107),1)!important;box-shadow:inset 0 1px 0 rgba(var(--ui-text-tone-02),0.8)!important}
html[data-theme="light"] .app-shell :is(.dropdown,.profile-menu,.modal-card){background:#fffdf9!important;color:var(--text)!important;border-color:var(--line)!important}
.family-nav-open .orator-external-glyph,.profile-hub-dropdown .orator-external-glyph{width:16px;height:16px;display:block;color:var(--muted);transition:color .18s ease}
.family-nav-card:hover .orator-external-glyph,.family-nav-card:focus-visible .orator-external-glyph,.profile-hub-dropdown .dropdown-item:hover .orator-external-glyph,.profile-hub-dropdown .dropdown-item:focus-visible .orator-external-glyph{color:var(--ui-accent-ink)}
.profile-button.account-plain,.profile-button.account-plain:hover,html[data-theme="light"] .profile-button.account-plain,html[data-theme="light"] .profile-button.account-plain:hover{
  min-height:46px!important;padding:5px 8px 5px 5px!important;gap:8px!important;border:0!important;border-radius:14px!important;background:transparent!important;box-shadow:none!important;transform:none!important;color:var(--text)!important;
}
.profile-button.account-plain:hover,.profile-button.account-plain:focus-visible,html[data-theme="light"] .profile-button.account-plain:hover,html[data-theme="light"] .profile-button.account-plain:focus-visible{background:var(--surface-2)!important}
.profile-button.account-plain:focus-visible{outline:2px solid var(--accent)!important;outline-offset:2px!important}
.profile-button.account-plain>span:first-child,html[data-theme="light"] .profile-button.account-plain>span:first-child{width:34px!important;height:34px!important;flex:0 0 34px!important;border-radius:10px!important;display:grid!important;place-items:center!important;background:var(--surface-2)!important;border:1px solid var(--line)!important;color:var(--text)!important;font-size:10px!important;font-weight:850!important}
.profile-button.account-plain .profile-button-copy{display:grid!important;min-width:0!important;line-height:1.1!important}
.profile-button.account-plain .profile-button-copy b,html[data-theme="light"] .profile-button.account-plain .profile-button-copy b{font-size:12.5px!important;color:var(--text)!important;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-button.account-plain .profile-button-copy small{display:block!important;margin-top:3px!important;max-width:180px!important;font-size:10.5px!important;color:var(--muted)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-button-chevron{width:16px;height:16px;flex:0 0 16px;color:var(--muted);transition:transform .18s ease}
.profile-button.account-plain[aria-expanded="true"] .profile-button-chevron{transform:rotate(180deg)}
.profile-hub-dropdown{width:min(380px,calc(100vw - 24px))!important}
.profile-hub-head{display:grid;grid-template-columns:44px minmax(0,1fr) 18px;align-items:center;gap:11px;padding:9px}
.profile-hub-head-avatar{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--surface-2);border:1px solid var(--line);color:var(--text);font-size:11px;font-weight:850}
.profile-hub-identity-copy{min-width:0;display:grid;gap:3px;text-align:left}
.profile-hub-head b{font-size:13px;color:var(--text)}
.profile-hub-head small{font-family:"PT Sans","Segoe UI",Arial,sans-serif;font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-hub-identity-arrow{color:var(--muted);font-size:15px;text-align:center}
.profile-hub-divider{height:1px!important;background:var(--line)!important;margin:4px!important}
.profile-hub-dropdown .dropdown-item{grid-template-columns:24px minmax(0,1fr) 18px!important}
.profile-hub-main-site{opacity:.82}
.profile-hub-main-site:hover,.profile-hub-main-site:focus-visible{opacity:1}
.profile-hub-logout b{color:var(--danger)}
@media (max-width:760px){.profile-button.account-plain,.profile-button.account-plain:hover{padding:5px!important;background:transparent!important}
.profile-button.account-plain .profile-button-copy,.profile-button-chevron{display:none!important}
.profile-hub-dropdown{right:8px!important;top:58px!important;width:min(360px,calc(100vw - 16px))!important}}
.profile-hub-identity-card{
  width:calc(100% - 8px)!important;margin:2px 4px 7px!important;padding:9px!important;
  border:1px solid color-mix(in srgb,var(--line) 82%,transparent)!important;
  border-radius:12px!important;background:color-mix(in srgb,var(--surface-2) 72%,transparent)!important;
  font:inherit;color:inherit;cursor:pointer;text-decoration:none;box-sizing:border-box;
}
.profile-hub-identity-card:hover,.profile-hub-identity-card:focus-visible{background:var(--surface-2)!important;border-color:color-mix(in srgb,var(--accent) 28%,var(--line))!important}
.profile-hub-identity-card:focus-visible{outline:2px solid var(--accent)!important;outline-offset:2px!important}
.profile-hub-head-avatar{overflow:hidden}
.profile-hub-head-avatar.has-photo{padding:0!important}
.profile-hub-head-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
html[data-theme="light"] .profile-hub-identity-card{background:rgba(var(--ui-panel-tone-30),0.035)!important}
.profile-hub-theme-state-icon{position:relative}
.profile-hub-theme-state-icon svg{position:absolute;inset:2px;width:20px;height:20px}
.profile-hub-theme-row{display:none!important}
@media (max-width:1180px){.profile-hub-theme-row{display:grid!important}}
.profile-hub-theme-row{display:grid!important;cursor:pointer!important}
.profile-hub-product-group{
 display:grid;gap:1px;margin:3px 0;padding:3px;border-radius:12px;
 background:color-mix(in srgb,var(--surface-2) 66%,transparent);
}
.profile-hub-product-group .dropdown-item{min-height:48px!important;padding-block:7px!important}
.profile-hub-divider{margin:4px 0!important}
.profile-button.account-plain:hover,.profile-button.account-plain:focus-visible,
html[data-theme="light"] .profile-button.account-plain:hover,html[data-theme="light"] .profile-button.account-plain:focus-visible{
 background:var(--orator-ui-accent)!important;color:rgba(var(--ui-ink-tone-02),1)!important;border-color:var(--orator-ui-accent)!important;
 box-shadow:none!important;transform:none!important;
}
.profile-button.account-plain:hover>span:first-child,.profile-button.account-plain:focus-visible>span:first-child,
html[data-theme="light"] .profile-button.account-plain:hover>span:first-child,html[data-theme="light"] .profile-button.account-plain:focus-visible>span:first-child{
 background:rgba(var(--ui-panel-tone-30),0.12)!important;border-color:rgba(var(--ui-line-tone-06),0.16)!important;color:rgba(var(--ui-ink-tone-02),1)!important;
}
.profile-button.account-plain:hover .profile-button-copy :is(b,small),.profile-button.account-plain:focus-visible .profile-button-copy :is(b,small),
.profile-button.account-plain:hover .profile-button-chevron,.profile-button.account-plain:focus-visible .profile-button-chevron{
 color:rgba(var(--ui-ink-tone-02),1)!important;
}
.profile-hub-dropdown .dropdown-item:hover>.profile-hub-icon,.profile-hub-dropdown .dropdown-item:focus-visible>.profile-hub-icon,
.profile-hub-dropdown .dropdown-item:hover>.orator-external-glyph,.profile-hub-dropdown .dropdown-item:focus-visible>.orator-external-glyph,
.profile-hub-dropdown .dropdown-item:hover>.profile-hub-local-arrow,.profile-hub-dropdown .dropdown-item:focus-visible>.profile-hub-local-arrow,
.profile-hub-identity-card:hover .profile-hub-identity-arrow,.profile-hub-identity-card:focus-visible .profile-hub-identity-arrow{
 color:var(--ui-accent-ink)!important;opacity:1!important;
}
.profile-hub-theme-row:hover>.profile-hub-icon,.profile-hub-theme-row:focus-within>.profile-hub-icon{color:var(--ui-accent-ink)!important}
.profile-hub-theme-row .orator-theme-rail{grid-column:3;align-self:center}
.profile-hub-theme-row .orator-theme-choice{min-height:28px!important;padding:0!important}
@media (max-width:760px){.profile-button.account-plain:hover,.profile-button.account-plain:focus-visible{background:var(--orator-ui-accent)!important}}

  .materials-page{padding:0!important}
  .materials-header{width:min(calc(100% - 56px),1320px)}
  .materials-hero,.materials-library,.materials-footer,.materials-footer-cta{width:min(calc(100% - 56px),1320px)}
  .materials-header .materials-theme-toggle{display:none!important}
  .materials-preview-root{min-height:100dvh}
  .materials-review-shell{min-height:100dvh;display:grid;grid-template-columns:270px minmax(0,1fr);background:transparent}
  .materials-review-side{padding:22px 16px 16px;border-right:1px solid rgba(var(--ui-line-strong-tone-108),0.12);background:rgba(var(--ui-bg-tone-02),0.76);backdrop-filter:blur(16px)}
  .materials-review-side-head{display:flex;gap:12px;align-items:center;padding:6px 6px 18px}.materials-review-side-mark{width:40px;height:40px;border-radius:13px;background:#f5a04f;color:rgba(var(--ui-ink-tone-11),1);font-weight:800;font-size:12px;display:grid;place-items:center}.materials-review-side-head strong{display:block;font-size:13px}.materials-review-side-head small{display:block;margin-top:3px;color:rgba(var(--ui-muted-strong-tone-81),1);font-size:11px;line-height:1.35}
  .materials-review-nav{display:flex;flex-direction:column;gap:8px}.materials-side-link{display:flex;align-items:flex-start;gap:12px;padding:12px 12px;border-radius:15px;border:1px solid transparent;text-decoration:none;color:rgba(var(--ui-text-tone-84),1);background:transparent;transition:background-color .22s ease,border-color .22s ease,transform .22s ease}.materials-side-link:hover,.materials-side-link:focus-visible{background:rgba(var(--ui-panel-tone-21),1);border-color:rgba(var(--ui-line-strong-tone-67),1);transform:translateY(-1px);outline:none}.materials-side-link.is-active{background:rgba(249,163,77,.10);border-color:rgba(249,163,77,.34)}.materials-side-link.is-back{margin-bottom:4px}.materials-side-link b{display:block;font-size:13px;line-height:1.25}.materials-side-link small{display:block;color:rgba(var(--ui-muted-strong-tone-81),1);font-size:11px;line-height:1.35;margin-top:3px}.materials-side-icon{width:20px;height:20px;flex:0 0 20px;display:grid;place-items:center;color:rgba(var(--ui-accent-text-tone-08),1)}.materials-side-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
  .materials-review-main{min-width:0;display:flex;flex-direction:column}.materials-review-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px 8px 18px}.materials-review-back{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 14px;border-radius:14px;border:1px solid rgba(var(--ui-line-strong-tone-67),1);background:rgba(var(--ui-panel-tone-21),1);color:rgba(var(--ui-text-tone-84),1);font:inherit;font-weight:700}.materials-review-back span{display:grid;place-items:center;width:18px;height:18px;transform:rotate(180deg)}.materials-review-back:hover,.materials-review-back:focus-visible{border-color:rgba(249,163,77,.45);background:rgba(var(--ui-panel-top-tone-101),1);outline:none}.materials-review-canvas{min-width:0;flex:1}
  .materials-review-toolbar .platformProfile{position:static;top:auto;right:auto;z-index:80}.materials-review-toolbar .profile-hub-dropdown{top:84px!important;right:24px!important}
  .materials-gate-main{padding:12px 0 110px}.materials-gate-v2{width:min(calc(100% - 56px),1180px);margin:0 auto;padding:42px;border-radius:28px;border:1px solid rgba(var(--ui-line-strong-tone-108),0.12);background:linear-gradient(180deg,rgba(var(--ui-panel-tone-35),0.88) 0%,rgba(var(--ui-bg-soft-tone-32),0.92) 100%);box-shadow:0 24px 80px rgba(0,0,0,.28)}.materials-gate-v2 .gate-copy h1{margin-top:14px}.materials-gate-v2 .gate-copy p{max-width:760px}.materials-gate-v2 .gate-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}.materials-gate-v2 .gate-subline,.materials-gate-v2 .gate-note{color:rgba(var(--ui-muted-strong-tone-81),1)}.materials-gate-v2 .gate-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;border-radius:14px;border:1px solid rgba(var(--ui-line-strong-tone-108),0.18);background:rgba(var(--ui-text-tone-02),0.03);color:rgba(var(--ui-text-tone-84),1);text-decoration:none}
  html[data-theme="light"] .materials-review-side{background:rgba(var(--ui-panel-top-tone-102),0.92);border-right-color:rgba(var(--ui-line-strong-tone-109),1)}html[data-theme="light"] .materials-side-link{color:rgba(var(--ui-ink-tone-12),1)}html[data-theme="light"] .materials-side-link:hover,html[data-theme="light"] .materials-side-link:focus-visible{background:rgba(var(--ui-panel-top-tone-02),1);border-color:rgba(var(--ui-line-strong-tone-109),1)}html[data-theme="light"] .materials-side-link small{color:rgba(var(--ui-muted-tone-160),1)}html[data-theme="light"] .materials-review-back{background:rgba(var(--ui-panel-top-tone-02),1);border-color:rgba(var(--ui-line-strong-tone-109),1);color:rgba(var(--ui-ink-tone-12),1)}html[data-theme="light"] .materials-gate-v2{background:linear-gradient(180deg,rgba(var(--ui-panel-top-tone-02),0.94) 0%,rgba(var(--ui-panel-top-tone-103),0.96) 100%);border-color:rgba(var(--ui-line-strong-tone-109),1);box-shadow:0 24px 80px rgba(var(--ui-sheen-tone-126),0.18)}html[data-theme="light"] .materials-gate-v2 .gate-secondary{background:rgba(var(--ui-panel-top-tone-02),1);color:rgba(var(--ui-ink-tone-12),1);border-color:rgba(var(--ui-line-strong-tone-109),1)}
  @media(max-width:980px){.materials-review-shell{grid-template-columns:1fr}.materials-review-side{display:none}.materials-review-toolbar{padding:12px 14px 4px 12px}.materials-review-canvas .materials-header,.materials-review-canvas .materials-hero,.materials-review-canvas .materials-library,.materials-review-canvas .materials-footer,.materials-gate-v2{width:min(calc(100% - 28px),1320px)}.materials-review-toolbar .profile-hub-dropdown{right:10px!important;top:66px!important}}
  @media(max-width:760px){.materials-review-back{min-height:40px;padding:0 12px}.materials-review-toolbar{align-items:flex-start}.materials-gate-v2{padding:24px 18px;border-radius:22px}}
 
/* Adapter completion only. R2 trigger and glyph are preserved above. */
.profile-button.account-plain{display:flex!important;align-items:center!important;box-sizing:border-box!important;cursor:pointer}
.profile-button.account-plain>span:first-child svg{width:22px!important;height:22px!important}
.profile-button.account-plain img{display:block;width:100%;height:100%;object-fit:cover}
.cabinet-account-trigger.profile-button .cabinet-account-avatar{position:relative}
.profile-hub-head-avatar.rv-profile-avatar,[data-account-avatar-menu].rv-profile-avatar{width:44px!important;height:44px!important;flex:0 0 44px!important}
.materials-page{--surface:var(--panel,rgba(var(--ui-panel-tone-20),1));--surface-2:rgba(var(--ui-panel-top-tone-71),1);--line:rgba(var(--ui-line-tone-01),1);--line-strong:rgba(var(--ui-line-strong-tone-67),1);--accent:#f5a04f;--accent-soft:rgba(245,160,79,.10);--nav-icon-muted:rgba(var(--ui-muted-strong-tone-82),1);--danger:#ef7586}
html[data-theme="light"] .materials-page{--surface:rgba(var(--ui-panel-top-tone-02),1);--surface-2:rgba(var(--ui-panel-top-tone-104),1);--line:rgba(var(--ui-line-strong-tone-110),1);--line-strong:rgba(var(--ui-line-strong-tone-111),1);--accent:#bb721d;--accent-soft:rgba(187,114,29,.08);--nav-icon-muted:rgba(var(--ui-muted-tone-161),1);--danger:#ba304a}
.materials-profile-anchor{position:relative!important}
.materials-profile-anchor .profile-hub-dropdown{position:absolute!important;top:calc(100% + 12px)!important;right:0!important;left:auto!important;margin:0!important;width:min(380px,calc(100vw - 28px))!important;max-height:calc(100dvh - 100px)!important;overflow:auto!important;z-index:120}
.materials-profile-anchor .dropdown-item{font:inherit;color:var(--text);text-decoration:none;cursor:pointer}
.materials-profile-anchor .dropdown-item b{font-size:14px}.materials-profile-anchor .dropdown-item small{font-size:12px;line-height:1.35}
.materials-profile-anchor .orator-nav-icon{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;flex:none}
.materials-profile-anchor .orator-nav-icon svg{width:22px;height:22px}
.materials-profile-anchor .orator-external-glyph{width:16px;height:16px}
.materials-profile-anchor .orator-theme-choice svg{width:17px;height:17px}
.materials-review-toolbar{min-height:86px;border-bottom:1px solid var(--line);padding:16px 24px!important;background:var(--surface);align-items:center!important}
.materials-review-back svg{width:18px;height:18px}.materials-review-back{cursor:pointer}
.materials-review-side{padding-top:20px!important}.materials-review-side-head{align-items:flex-start!important}.materials-review-side-mark{flex:none}
.materials-gate-main{padding-top:20px!important}.materials-gate{box-sizing:border-box}
html[data-theme="light"] .materials-review-side-head strong{color:var(--text)}
dialog.profile-hub-dropdown[open]{display:block}dialog.profile-hub-dropdown:not([open]){display:none!important}
@media(max-width:760px){
 .profile-button.account-plain,.profile-button.account-plain:hover{padding:6px!important;gap:0!important;width:52px!important;min-width:52px!important;max-width:52px!important}
 .profile-button.account-plain .profile-button-copy,.profile-button.account-plain .profile-button-chevron{display:none!important}
 .materials-review-toolbar{padding:12px 14px!important;min-height:76px}
 .materials-profile-anchor .profile-hub-dropdown{position:fixed!important;top:86px!important;right:12px!important;width:calc(100vw - 24px)!important}
 .materials-gate-main{padding-bottom:24px!important}
}
@media(prefers-reduced-motion:reduce){.profile-button.account-plain,[data-review-materials]{transition:none!important;transform:none!important}}
/* Native dropdown rows use display:grid!important; guest-only hidden actions must win. */
.materials-profile-anchor .profile-hub-logout[hidden]{display:none!important}

[hidden]{display:none!important}
.profile-button.account-plain img,.profile-hub-head-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.profile-hub-head-avatar svg{width:24px;height:24px}
.materials-gate button.rv-cta{font:inherit;cursor:pointer}
.materials-gate .gate-actions>a{cursor:pointer}

/* Shared reader shell */
.materials-review-shell{display:block;grid-template-columns:1fr}
.materials-review-toolbar{max-width:none;width:100%;margin-inline:0;box-sizing:border-box}
