/* Keep toolbar text in the accessibility tree when showing icon controls. */
@media(max-width:820px){:root[data-theme] .topbar .btn:has(.i) .btn-label{display:block;position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}}
.history-title .btn-label{display:none}.history-title .btn-label::after{content:none}
.profile-page .lib-top .tb-right{flex-shrink:0}.shared-board .tier-drop:empty::before{display:none!important}
.shared-view .tb-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shared-view .tb-right{flex-shrink:0}
.lib-more-actions{display:none}
@media(max-width:820px){:root[data-theme] .lib-top .lib-secondary{display:none}:root[data-theme] .lib-more-actions{display:inline-flex}}
/* Keep the guest entry readable beside the wordmark and the dock on tablets too. */
@media(max-width:820px){:root[data-theme] .lib-top .lib-join{display:none}}

/* Translated actions and user-written text must shrink within their view. */
.social-section-head{flex-wrap:wrap}.social-section-head>h1,.social-section-head>h2{min-width:0;flex:1 1 180px;overflow-wrap:anywhere}.social-section-head>.btn{max-width:100%;white-space:normal;height:auto;min-height:46px}.achievement,.achievement>*{min-width:0;overflow-wrap:anywhere}
.shared-board .room-heading{align-items:flex-start;flex-wrap:wrap}.shared-board .room-heading>h1{min-width:0;flex:1 1 300px;max-width:100%;overflow-wrap:anywhere}.shared-board .room-heading>p{min-width:0;max-width:100%;overflow-wrap:anywhere}
@media(max-width:820px){.shared-board .room-heading{flex-direction:column;gap:8px}.shared-board .room-heading>h1{flex-basis:auto;margin:0}.shared-board .room-heading>p{margin:0}}
/* Only the extension's body/dialog actions; existing Snap toolbar stays intact. */
[data-theme='snap'] .profile-page .social-main .btn.primary,[data-theme='snap'] .dialog:has(.social-form) .btn.primary{color:#111;background:#ff2d55}
[data-theme='snap'] .profile-page .social-main .btn.primary:hover,[data-theme='snap'] .dialog:has(.social-form) .btn.primary:hover{color:#111;background:#ff4a6d}
[data-theme='snap'] .profile-page .social-main .btn.primary:focus-visible,[data-theme='snap'] .dialog:has(.social-form) .btn.primary:focus-visible{color:#111;outline:2px solid #fff;outline-offset:3px}

/* ---------- the account settings: one's own data, and the way out ----------
   Two parts under the everyday settings, each under a small heading and a
   hairline: what can be taken away (all lists, in three shapes), and, last and
   apart, the one thing that cannot be undone. */
.account-button { min-width: 44px; min-height: 44px; }
.account-menu { width: min(280px, calc(100vw - 16px)); }
.account-menu .menu-item { min-height: 44px; }
.account-menu-identity { display: grid; gap: 5px; padding: 12px 14px 16px; margin-bottom: 4px; border-bottom: 1px solid var(--rim-soft, var(--line)); }
.account-menu-identity b { font: 650 18px/1.3 var(--font-display); overflow-wrap: anywhere; }
.account-menu-identity small { color: var(--ink-3); font-size: 13px; overflow-wrap: anywhere; }

.account-part {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--rim-soft, var(--line));
}

/* a lone link in a part is a target of its own: tall enough for a thumb */
.account-part > .link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.account-part h3 {
  margin: 0;
  font: 600 15px/1.3 var(--font-display);
  letter-spacing: -0.01em;
}

.account-part .hint {
  margin: 0;
  max-width: 56ch;
  text-wrap: pretty;
}

.takeout {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.takeout-shapes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.takeout-said:empty {
  display: none;
}

.danger-zone {
  margin-top: 10px;
}

.danger-zone h3 {
  color: var(--danger, #ff9d8f);
}

/* Friends starts with one invitation to connect; administration stays quiet. */
.profile-page .social-main.friends-main{max-width:1000px}
.first-friend{max-width:760px;margin:8px auto 0;padding:clamp(24px,4vw,48px);border:1px solid var(--line);border-radius:24px;background:var(--bg-2)}
.first-friend h1{margin:0;font-size:clamp(28px,3vw,38px);font-weight:600;line-height:1.15;letter-spacing:-.035em}
.first-friend>p{margin:16px 0 28px;color:var(--ink-2);line-height:1.6;max-width:52ch}
.first-friend>.btn{margin-top:24px;min-height:44px}
.first-friend .people-results:empty{display:none}
.friends-admin{margin-top:48px;padding-top:20px;border-top:1px solid var(--line);font-size:13px}
.friends-admin a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink-2);text-underline-offset:4px}
.friends-admin a:hover{color:var(--ink)}
.site-main{max-width:1000px}
.site-main>.social-section{margin:36px 0 0}
.site-main .social-section>h2{margin-bottom:20px}
.site-main .join-setting .segmented{max-width:100%;flex-wrap:wrap}
@media(max-width:480px){.first-friend{padding:24px 20px;border-radius:20px}.first-friend .person-card{padding:14px}.friends-main .field{min-width:0}.site-main .person-card{min-width:0}}
