.app-access-actions { display:flex; align-items:center; gap:4px; flex:0 0 auto; margin-left:8px; padding-left:10px; border-left:1px solid var(--border); }
.access-trigger { display:flex; align-items:center; justify-content:center; flex-direction:column; gap:2px; min-width:64px; min-height:46px; padding:4px 8px; border:0; border-radius:10px; background:transparent; color:var(--text-muted); cursor:pointer; }
.access-trigger span { font-size:10px; line-height:1.3; white-space:nowrap; font-weight:650; }
.access-trigger:hover { background:var(--surface); color:var(--primary); }
.access-trigger:focus-visible,.access-dialog :focus-visible { outline:3px solid #8277ff; outline-offset:3px; }
.access-public-header { display:flex; justify-content:flex-end; padding:8px 24px; background:var(--workspace); }
.access-public-header .app-access-actions { border:0; }
.access-public-header + .auth-wrap { min-height:calc(100dvh - 62px); }
.topbar:has(.app-access-actions) { flex-shrink:0; }
.mc-top .app-access-actions { margin-left:auto; color:#d4d7df; border-color:#40404c; }
.mc-top .access-trigger { color:#d4d7df; }
.mc-top .access-trigger:hover { color:#fff; background:#30303a; }
.access-dialog { box-sizing:border-box; width:min(540px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); padding:24px; border:1px solid var(--border); border-radius:22px; color:var(--text); background:var(--workspace); box-shadow:0 24px 90px #0005; overflow:auto; overscroll-behavior:contain; }
.access-dialog::backdrop { background:rgba(14,18,36,.58); }
.access-dialog [hidden] { display:none !important; }
.access-dialog-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.access-eyebrow { display:block; color:var(--primary); font-size:12px; font-weight:700; margin-bottom:8px; }
.access-dialog h2 { margin:0; font-size:24px; line-height:1.3; word-break:keep-all; }
.access-close { width:44px; height:44px; flex:0 0 44px; border:1px solid var(--border); background:var(--surface); color:var(--text); border-radius:50%; font-size:28px; cursor:pointer; }
#access-intro { font-size:15px; line-height:1.65; margin:16px 0; }
.access-qr-frame { width:min(340px,100%); margin:12px auto; padding:0; background:white; border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; }
.access-qr-frame img { display:block; width:100%; height:auto; }
.access-help { font-size:13px; line-height:1.65; color:var(--text-muted); margin:12px 0; word-break:keep-all; overflow-wrap:anywhere; }
.access-url-label { font-size:12px; display:block; margin:12px 0 6px; font-weight:700; }
.access-url { display:block; box-sizing:border-box; width:100%; padding:10px; border:1px solid var(--border); border-radius:8px; color:var(--text); background:var(--surface); font-size:13px; }
.access-action-row { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.access-dialog .btn { min-height:44px; height:auto; white-space:normal; text-align:center; }
.access-app-preview { display:flex; align-items:center; gap:14px; padding:14px; background:var(--surface); border-radius:14px; }
.access-app-preview img { border-radius:14px; }
.access-app-preview strong,.access-app-preview span { display:block; }
.access-app-preview span { font-size:12px; margin-top:5px; color:var(--text-muted); }
#access-install-status { font-size:14px; line-height:1.6; }
.access-install-button { width:100%; margin:6px 0 14px; }
.access-platforms { display:flex; flex-wrap:wrap; gap:6px; margin-top:16px; }
.access-platforms button { min-height:40px; padding:6px 10px; background:var(--surface); color:var(--text); border:1px solid var(--border); border-radius:8px; font-size:12px; cursor:pointer; }
.access-platforms button[aria-pressed="true"] { border-color:var(--primary); color:var(--primary); font-weight:750; }
.access-dialog h3 { font-size:16px; margin:20px 0 12px; }
.access-steps { margin:0; padding-left:25px; font-size:14px; line-height:1.8; }
.access-steps li { margin-bottom:9px; padding-left:3px; }
.access-steps li::marker { color:var(--primary); font-weight:800; }
.access-text-button { display:block; border:0; background:transparent; color:var(--primary); text-decoration:underline; padding:10px 0; font-size:14px; cursor:pointer; }
.access-feedback { margin:12px 0 0; font-size:14px; font-weight:650; line-height:1.6; color:var(--primary); }
.access-feedback:empty { display:none; }
@media(max-width:900px) {
  .topbar:has(.app-access-actions),.mc-top:has(.app-access-actions) { height:auto; min-height:56px; flex-wrap:wrap; row-gap:6px; padding-top:8px; padding-bottom:6px; }
  .topbar > .app-access-actions,.mc-top > .app-access-actions { flex-basis:100%; justify-content:flex-end; margin:0; padding:5px 0 0; border-left:0; border-top:1px solid var(--border); }
  .access-trigger { min-width:70px; }
  .topbar .promo-badge { min-width:0; padding-left:6px; padding-right:6px; }
}
@media(max-width:480px) {
  .access-dialog { padding:18px; border-radius:16px; }
  .access-dialog h2 { font-size:21px; }
  .access-public-header { padding:6px 12px; }
  .topbar.gs-container { padding:10px 12px !important; column-gap:4px; }
  .topbar.gs-container .auth-logo { font-size:16px !important; gap:6px; }
  .topbar.gs-container .btn { padding-left:7px; padding-right:7px; }
}
