/* Calendar boundaries share the existing theme and leave message spacing intact. */
#messages .message-date-divider{align-self:center;flex:none;width:fit-content;max-width:calc(100% - 24px);margin:12px auto;padding:5px 12px;border-radius:999px;background:var(--soft);color:var(--muted);font-size:.8125rem;line-height:1.5;text-align:center}
/* One mobile visual system: content, 48px controls, and four stable destinations. */
:root{--mobile-space:16px;--mobile-radius:16px;--mobile-nav-height:72px}
button,input,textarea,select{font-family:inherit}button{font-size:.9375rem}button:disabled{cursor:default}
.mobile-shell-ready .home-layout{display:block;min-height:0}.mobile-shell-ready .home-shell{position:relative;overflow:visible}
.mobile-shell-ready .home-top{background:var(--surface);border-bottom:1px solid var(--line);padding:12px 20px;min-height:64px;box-shadow:none}
.mobile-shell-ready .home-wordmark{font-size:1.125rem;letter-spacing:-.02em;gap:8px}.mobile-shell-ready .home-wordmark .logo{width:32px;height:32px}
.mobile-shell-ready .home-top-actions #open-settings{background:var(--soft);box-shadow:none;border-radius:14px}
.mobile-shell-ready .my-profile{display:block;border:0;border-bottom:1px solid var(--line);background:var(--surface);padding:20px}
.mobile-shell-ready .profile-caption,.mobile-shell-ready .profile-divider,.mobile-shell-ready .profile-info,.mobile-shell-ready .profile-info-value{display:none}
.mobile-shell-ready .profile-summary{display:block}.mobile-shell-ready .profile-identity{display:flex;align-items:center;justify-content:flex-start;gap:14px;min-width:0}
.mobile-shell-ready .profile-photo{width:56px;height:56px;min-width:56px;border-radius:50%;margin:0;box-shadow:none;background:var(--accent-soft);border:0}
.mobile-shell-ready .profile-name-row{display:flex;align-items:flex-start;flex-direction:column;gap:0;min-width:0}
.mobile-shell-ready .my-profile h2{font-size:1.125rem;margin:0;line-height:1.5}.mobile-shell-ready #my-status{min-height:48px;padding:0;font-size:.8125rem}
.mobile-shell-ready .profile-details{margin:8px 0 0 70px;display:block}.mobile-shell-ready .mood{margin:0;font-size:.875rem;line-height:1.6;color:var(--muted);text-align:left}
.mobile-shell-ready .profile-actions{display:none}.mobile-shell-ready .home-main{padding:20px 20px calc(var(--mobile-nav-height) + 24px + env(safe-area-inset-bottom));min-height:45dvh}
.mobile-shell-ready .home-greeting,.mobile-shell-ready .groups-fold-wrap,.mobile-shell-ready #previous-chats-section{display:none!important}
.mobile-shell-ready[data-destination]:not([data-destination=home]) .home-main>:not(.destination-panel){display:none!important}
.mobile-shell-ready .friends-fold-wrap #invite{position:static;margin-left:auto;display:flex;width:auto;min-height:48px;padding:10px 14px;font-size:.875rem;border-radius:14px;background:var(--accent);color:var(--accent-text)}
.mobile-shell-ready .friends-fold-wrap{display:flex;flex-wrap:wrap;align-items:center;gap:8px;position:relative}
.mobile-shell-ready .friends-fold-wrap #friends-section{width:100%}.mobile-shell-ready #friends-section>summary{padding:0 0 14px;min-height:48px;font-size:1rem;display:flex;align-items:center;gap:8px}
.mobile-shell-ready .home-section-head{margin:0 0 8px}.mobile-shell-ready .home-search{max-width:none;width:100%;border:1px solid var(--line);background:var(--soft);min-height:48px;border-radius:14px;padding:10px 12px}
.mobile-shell-ready .home-search input{font-size:1rem;min-width:0}.mobile-shell-ready .home-recent{border:0;padding:0}
.mobile-shell-ready .home-row{min-height:76px;padding:14px 0;gap:12px;border-bottom:1px solid var(--line);border-radius:0;color:var(--ink)}
.mobile-shell-ready .home-row .avatar{width:44px;height:44px;min-width:44px;border-radius:50%;background:var(--accent-soft)}
.mobile-shell-ready .home-row b,.mobile-shell-ready .home-row strong{font-size:1rem;line-height:1.5}.mobile-shell-ready .home-row p{font-size:.875rem;line-height:1.5;color:var(--muted);margin:4px 0 0}
.mobile-shell-ready .home-row .meta{font-size:.75rem;color:var(--muted)}.mobile-shell-ready .presence-label{font-size:.75rem}
.mobile-shell-ready .home-fold{border:0;box-shadow:none;padding:0;background:transparent}.mobile-shell-ready .circle-section{margin-top:24px}
.mobile-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,1092px);box-sizing:border-box;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:var(--surface);border-top:1px solid var(--line);padding:8px 8px max(8px,env(safe-area-inset-bottom));z-index:20}
.mobile-nav-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:56px;border:0;background:transparent;color:var(--muted);border-radius:14px;font-size:.75rem;line-height:1.5;padding:5px 2px}
.mobile-nav svg{width:24px;height:24px}.mobile-nav-item[aria-current=page]{color:var(--accent);background:var(--accent-soft);font-weight:650}.mobile-nav-item.has-unread:after{content:'';position:absolute;top:7px;left:calc(50% + 10px);width:7px;height:7px;border-radius:50%;background:var(--danger);border:2px solid var(--surface)}
.destination-panel[hidden]{display:none!important}.destination-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}.destination-heading h1{margin:0;font-size:1.5rem;line-height:1.4;letter-spacing:-.02em}.destination-heading p{margin:6px 0 0;font-size:.875rem;line-height:1.6;color:var(--muted)}
.destination-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:48px;flex-shrink:0;padding:10px 12px;border-radius:14px;background:var(--accent-soft);color:var(--accent);border:0;font-size:.875rem}.destination-action svg{width:20px;height:20px}
.destination-row{display:flex;align-items:center;gap:12px;width:100%;min-height:80px;padding:14px 0;background:transparent;color:var(--ink);border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left}
.destination-row>svg{width:20px;height:20px;color:var(--muted);flex:none}.destination-avatar{width:44px;height:44px;flex:0 0 44px;border-radius:14px;display:grid;place-items:center;background:var(--soft);color:var(--accent);overflow:hidden}.destination-avatar svg{width:24px;height:24px}.destination-avatar img{width:100%;height:100%;object-fit:cover}
.destination-copy{flex:1;min-width:0}.destination-copy strong{display:block;font-size:1rem;font-weight:600;overflow-wrap:anywhere;line-height:1.5}.destination-copy>span{display:block;font-size:.875rem;line-height:1.5;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}
.destination-unread{font-size:.75rem;background:var(--accent-soft);color:var(--accent);padding:3px 7px;border-radius:8px;flex:none}.destination-empty{padding:24px 0;font-size:1rem;line-height:1.7;color:var(--muted)}
.destination-identity{padding:20px;margin:0 0 20px;border-radius:18px;background:var(--soft)}.destination-identity strong{font-size:1.25rem;overflow-wrap:anywhere}.destination-identity p{font-size:.9375rem;color:var(--muted);margin:8px 0 0;overflow-wrap:anywhere}
#notice:not(:empty){bottom:calc(var(--mobile-nav-height) + 12px + env(safe-area-inset-bottom))}body.chat-open #notice:not(:empty){bottom:calc(148px + env(safe-area-inset-bottom))}
/* All detail pages share a clear top back action and readable form rhythm. */
.mobile-page-header{display:flex;align-items:center;gap:12px;background:var(--surface);margin:0 0 24px;min-height:56px}
.mobile-page-header h2{margin:0!important;font-size:1.25rem!important;line-height:1.5;overflow-wrap:anywhere;flex:1}
.mobile-page-back{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border:0;border-radius:14px;color:var(--ink);background:var(--soft)}.mobile-page-back svg{width:24px;height:24px;transform:rotate(180deg)}
.mobile-page-dialog{max-height:90dvh;overflow:auto;background:var(--surface);color:var(--ink);box-sizing:border-box}
.mobile-page-dialog p,.mobile-page-dialog label{font-size:.9375rem;line-height:1.65;color:var(--muted)}.mobile-page-dialog label{color:var(--ink)}
.mobile-page-dialog input:not([type=checkbox]),.mobile-page-dialog textarea{font-size:1rem;line-height:1.5;min-height:48px;background:var(--soft);color:var(--ink);border:1px solid var(--line);padding:12px;border-radius:12px;box-sizing:border-box}
.mobile-page-dialog button{min-height:48px;font-size:.9375rem;line-height:1.5}.mobile-page-dialog .dialog-actions{gap:12px;margin-top:24px;flex-wrap:wrap}.mobile-page-dialog .dialog-actions>button{flex:1}
#settings-dialog #edit-profile{background:var(--soft);color:var(--ink);margin:0 0 16px;justify-content:flex-start;padding:16px;box-shadow:none}
#settings-form>label{min-height:64px;padding:12px 0;gap:16px;margin:0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}
#settings-form>label>span{flex:1;min-width:0}#settings-system,#settings-permissions{width:100%;text-align:left;padding:16px 0;border-radius:0;border-bottom:1px solid var(--line);color:var(--ink);background:transparent}
#settings-dialog #logout{color:var(--danger);background:var(--danger-bg);margin-top:32px;border-radius:12px;min-height:48px}
#settings-form input[type=checkbox][role=switch],#conversation-muted{flex:none}
#group-choices,.group-edit-choices{max-height:none;overflow:visible}.group-choices label,.group-edit-choices label{min-height:56px;border-bottom:1px solid var(--line);padding:8px 0;margin:0;display:flex;align-items:center;gap:12px}
.group-choices input[type=checkbox],.group-edit-choices input[type=checkbox]{width:24px;height:24px;flex:none;margin:0;accent-color:var(--accent)}
.group-member-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;margin:0;padding:10px 0;border-bottom:1px solid var(--line);color:var(--ink)!important}
#group-members-list form{padding-top:24px}#group-members-list form>button{width:100%;margin:16px 0;background:var(--accent);color:var(--accent-text);border-radius:12px}
#group-members-list>button{color:var(--danger);background:var(--danger-bg);margin-top:24px;width:100%;border-radius:12px;padding:12px}
#group-members-close,#conversation-settings-close{width:100%;margin-top:20px;background:var(--soft);color:var(--ink)}
/* Chat: a stable header, generous message area and compact, labelled tools. */
#chat-view .chat-head{padding:10px 12px;gap:8px;min-height:72px;box-sizing:border-box;background:var(--surface)}
#chat-view .chat-head .heading{min-width:0;flex:1}#chat-name{font-size:1rem;line-height:1.4;overflow-wrap:anywhere}#chat-status{font-size:.75rem;color:var(--muted);white-space:normal}
#chat-view #back-home,#chat-settings,#group-members{width:48px;min-width:48px;min-height:48px;padding:8px;border:0;border-radius:14px;background:var(--soft);color:var(--ink)}#group-members{width:auto;font-size:.8125rem}
#chat-avatar{width:36px;height:36px;min-width:36px;border-radius:50%}
#chat-view #message-scroll{padding:16px;background:var(--page)}#chat-view .date{font-size:.75rem;color:var(--muted);margin:0 0 20px}
#chat-view .bubble{font-size:1rem;line-height:1.6;padding:10px 14px;border-radius:16px;background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:none;max-width:min(78vw,440px)}
#chat-view .message.me .bubble{background:var(--accent-soft);border-color:transparent;color:var(--ink)}
#chat-view .composer{padding:8px 12px max(12px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line)}
#chat-view .composer .media-tools{display:flex;justify-content:space-between;align-items:center;gap:4px;padding:0 0 8px}
#chat-view .composer .media-tools .quiet-button{display:flex;flex:1 1 0;min-width:48px;min-height:56px;max-width:76px;gap:2px;padding:4px 0;color:var(--muted)!important;border-radius:0;font-size:.6875rem;box-shadow:none}
#chat-view .composer .media-tools .quiet-button .ico{box-sizing:border-box;width:24px;height:24px;min-width:24px;padding:0;border:0;border-radius:0;background:transparent!important;color:var(--muted)!important;box-shadow:none;stroke-width:1.8}
#chat-view .composer .media-tools #emoji{display:flex;min-height:56px;align-items:center;justify-content:center}
#chat-view .compose{gap:8px;min-width:0}:is(#chat-view #draft,.diary-comment-draft){font-size:1rem;min-height:48px;padding:12px 14px;border:1px solid var(--line);border-radius:24px;background:var(--soft);color:var(--ink);min-width:0}
:is(#chat-view #send,.diary-comment-compose .send){width:48px;min-width:48px;height:48px;border-radius:50%;background:var(--accent);color:var(--accent-text);border:0}
#chat-view #send-status:empty{display:none}#chat-view #send-status{font-size:.8125rem;color:var(--muted)}
#media-dialog,#permission-dialog{background:var(--surface);color:var(--ink)}#media-dialog p,#permission-dialog p{font-size:.9375rem;line-height:1.6;color:var(--muted)}
button:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.destination-row:active,.mobile-shell-ready .home-row:active{background:var(--soft)}
@media(max-width:600px){
 .stage{padding:0}.mobile-shell-ready .home-shell{border:0;border-radius:0;box-shadow:none}.mobile-shell-ready .home-main{padding-inline:16px}.mobile-shell-ready .my-profile{padding:16px}
 .mobile-page-dialog{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:16px 20px max(24px,env(safe-area-inset-bottom));box-shadow:none}
 .mobile-page-header{position:sticky;top:-16px;margin-inline:-4px;padding:12px 0;z-index:2}
 .mobile-page-dialog .dialog-actions{position:sticky;bottom:-24px;background:var(--surface);padding:12px 0;margin-bottom:0;z-index:1}
 .destination-heading{flex-wrap:wrap}#chat-view .chat-head{padding-top:max(10px,env(safe-area-inset-top))}
}
@media(min-width:601px){.mobile-shell-ready .home-main,.mobile-shell-ready .my-profile{max-width:760px;margin-inline:auto}.mobile-page-dialog{width:min(520px,calc(100vw - 40px));max-width:520px}.mobile-nav{border-radius:18px 18px 0 0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Resolve legacy identity and toolbar overrides at their owning screen. */
.mobile-shell-ready .my-profile .profile-summary{display:block;text-align:left;width:100%}
.mobile-shell-ready .my-profile .profile-identity{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;width:100%}
.mobile-shell-ready .my-profile .profile-identity .profile-photo{width:56px;height:56px;min-width:56px;border-radius:50%;padding:0;box-shadow:none}
.mobile-shell-ready .my-profile .profile-name-row{flex-direction:column;align-items:flex-start;gap:0;justify-content:center}
.mobile-shell-ready .my-profile .profile-name-row h2{align-self:flex-start;line-height:1.5}
.mobile-shell-ready .my-profile .profile-details{width:auto;max-width:none;margin:4px 0 0 70px;padding:0}
.mobile-shell-ready .my-profile .profile-details .mood{text-align:left;font-size:.875rem;line-height:1.6;width:auto}
.mobile-shell-ready .friends-fold-wrap{display:block}.mobile-shell-ready .friends-fold-wrap #invite{position:absolute;right:0;top:0;margin:0}
.mobile-shell-ready .friends-fold-wrap #friends-section>summary{padding:0 124px 12px 0;min-height:60px;flex-wrap:wrap}
#chat-view .composer .media-tools .quiet-button{background:transparent!important;height:auto}
#chat-view .composer .media-tools .quiet-button span{display:block;font-size:.6875rem;line-height:1.4}
.mobile-page-header h2{text-align:left}
#settings-form input[type=checkbox][role=switch]:checked,#conversation-muted:checked{background:linear-gradient(var(--accent),var(--accent)) center/48px 28px no-repeat}
#settings-form input[type=checkbox][role=switch]:checked:after,#conversation-muted:checked:after{background:var(--accent)}
#gallery-dialog>header h2{min-width:0;overflow-wrap:anywhere}#gallery-dialog .gallery-compose,#gallery-dialog #gallery-close{flex-shrink:0}
/* Prevent an implicit grid column from expanding beyond the viewport at large text. */
#chat-view{grid-template-columns:minmax(0,1fr)}#chat-view>*{min-width:0;max-width:100%;box-sizing:border-box}
#chat-view #chat-name{white-space:normal;overflow-wrap:anywhere}#chat-view .message{min-width:0;max-width:100%}#chat-view .bubble{min-width:0;overflow-wrap:anywhere}
.message.me:has(.message-more){display:grid;grid-template-columns:48px minmax(0,350px);justify-content:end;gap:4px 8px}
.message.me:has(.message-more)>.bubble{grid-column:2;grid-row:1;max-width:100%;justify-self:end}
.message.me:has(.message-more)>small{grid-column:2;grid-row:2;text-align:right;white-space:normal}
.message-more{grid-column:1;grid-row:1;align-self:end;min-width:48px;min-height:48px;padding:0;background:transparent;color:var(--muted);font-size:1.4rem;border-radius:12px}
.message-more:active{background:var(--soft)}.message-edited{margin-left:6px}
.message .bubble a.message-link{color:#1259b4;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;cursor:pointer}
.message .bubble a.message-link:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.profile-dialog.message-action-sheet{box-sizing:border-box;width:min(264px,calc(100vw - 24px));padding:12px;border-radius:16px;background:var(--surface);color:var(--ink)}
.message-action-sheet .action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.message-action-sheet .action-grid button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-width:0;height:80px;padding:6px 2px;margin:0;background:transparent;border:0;box-shadow:none;color:var(--ink)}
.message-action-sheet .action-grid button[hidden]{display:none}
.message-action-sheet .action-grid svg{width:24px;height:24px;flex:0 0 24px}
.message-action-sheet .action-label{font-size:14px;line-height:20px;text-align:center;overflow-wrap:anywhere}
.message-action-sheet p:empty{display:none}
.message-action-sheet p{font-size:14px;line-height:1.5;margin:8px 0}
.message-action-sheet:not(.compact-confirmation) h2{text-align:center}
.message-action-sheet button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin:0}
.message-action-sheet button[hidden]{display:none}
.message-action-sheet .compact-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:8px}
.message-action-sheet .compact-actions button{width:auto;min-width:0;flex:1 1 0;padding:8px;white-space:normal;overflow-wrap:anywhere}
.message-action-sheet.compact-confirmation h2{text-align:left}
.message-action-sheet .recall-confirm{color:var(--danger)}
.has-message-actions,.has-message-actions a{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.message-edit-dialog{width:min(480px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:24px;background:var(--surface);color:var(--ink)}
.message-edit-dialog h2,.message-action-sheet h2{margin:0 0 16px;font-size:1.25rem}
.message-action-sheet h2{margin:0 0 6px;font-size:1rem;line-height:1.5}
.message-edit-dialog textarea{box-sizing:border-box;width:100%;min-height:120px;max-height:35dvh;resize:vertical;font:inherit;font-size:1rem;line-height:1.6;padding:12px;margin-top:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}
.message-edit-dialog button{min-height:48px}.message-edit-hint{font-size:.875rem;color:var(--muted)}.message-edit-error{color:var(--danger);overflow-wrap:anywhere}
.message-edit-dialog .dialog-actions{display:flex;flex-wrap:wrap;gap:12px}.message-edit-dialog .dialog-actions button{flex:1;min-width:110px}
@media(prefers-color-scheme:dark){.message .bubble a.message-link{color:#90c2ff}}
@media(max-width:600px){.message-edit-dialog{padding:20px}}
:is(#gallery-previews,.gallery-edit-previews) .gallery-preview-tile{position:relative;flex:0 0 112px;width:112px;height:112px}
:is(#gallery-previews,.gallery-edit-previews) .gallery-preview-tile img{width:100%;height:100%;object-fit:cover;border-radius:14px}
.gallery-preview-remove{position:absolute;top:0;right:0;display:grid;place-items:center;width:48px;height:48px;padding:0;border:0;border-radius:0 14px 0 14px;background:#172b4de6;color:white;font-size:1.7rem;line-height:1;box-shadow:0 2px 8px #0002}
.gallery-preview-remove:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.gallery-clear-selection{min-height:48px}.photo-picker{flex-wrap:wrap}
/* RC19: familiar, readable social interactions. */
.count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 6px;border-radius:20px;background:#285eb7;color:#fff;font-size:.8rem;font-weight:700;line-height:1}
.conversation-meta{display:flex;flex-direction:column;align-items:flex-end;gap:7px;flex-shrink:0;color:var(--muted)}
.mobile-nav-item{position:relative}.mobile-nav-item .nav-count{position:absolute;top:3px;right:10%;min-width:22px;height:22px;font-size:.7rem}
.reaction-bar{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px;font-size:1rem;line-height:1.3}.reaction-bar button{min-height:48px;min-width:48px;border:1px solid var(--line,#dbe1eb);border-radius:16px;background:var(--soft,#f4f6fa);color:var(--ink,#26344b);padding:5px 9px;font-size:1rem}.reaction-bar button[aria-pressed=true]{border-color:#285eb7;background:#e5efff;color:#194b98}.reaction-add{opacity:.85}
.reaction-picker{max-width:min(94vw,400px);border:0;border-radius:24px;padding:24px;background:var(--paper,#fff);color:var(--ink,#26344b)}.reaction-choices{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0}.reaction-choices button{font-size:1.8rem;min-height:52px;min-width:52px;background:var(--soft,#f4f6fa);border-radius:14px}
.message .inline-emoji{font-size:1.3em;line-height:1.2;vertical-align:-.08em}.message .bubble.emoji-only{font-size:2.6rem;line-height:1.35}.message .bubble.emoji-only .inline-emoji{font-size:1em}.message .bubble.emoji-only .reaction-bar{font-size:1rem}
#gallery-dialog.embedded-diary{position:static;display:block;width:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;box-shadow:none;background:transparent;overflow:visible}#gallery-dialog.embedded-diary>header{position:static}
.friend-updates{margin:16px 0}.friend-update-row{display:flex;flex-direction:column;text-align:left;gap:5px;width:100%;padding:16px 0;border-bottom:1px solid var(--line,#dbe1eb);background:transparent;color:var(--ink,#26344b)}.friend-update-row span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.friend-update-row small{color:var(--muted)}
.profile-avatar-editor{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:16px 0}.profile-avatar-editor img{width:80px;height:80px;object-fit:cover;border-radius:50%}.profile-avatar-editor img:not([src]),.profile-avatar-editor img[src='']{display:none}
.chat-selected-photo{position:relative;display:inline-block;width:calc(50% - 8px);margin:4px}.chat-selected-photo img{width:100%;height:140px;object-fit:cover;border-radius:14px}.chat-selected-photo button{position:absolute;top:2px;right:2px;min-width:48px;min-height:48px;border-radius:50%;background:#fff;color:#26344b;font-size:1.3rem}
.announcement-preview p,.announcements-dialog article p{white-space:pre-wrap;overflow-wrap:anywhere}.announcements-dialog article{padding:16px 0;border-bottom:1px solid var(--line,#dbe1eb)}.announcement-composer input,.announcement-composer textarea{box-sizing:border-box;width:100%}.announcement-composer button{margin:6px 0;min-height:48px}.announcement-home{width:100%;text-align:left;min-height:48px;padding:14px;background:var(--soft,#f4f6fa);color:var(--ink,#26344b);border-radius:14px;margin-bottom:12px}
@media(prefers-color-scheme:dark){.reaction-bar button[aria-pressed=true]{background:#263e62;color:#c8ddff}}

.friend-updates h3{margin:0}.friend-updates-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:8px 0;background:transparent;color:var(--ink,#26344b);text-align:left;font:inherit}.friend-updates-toggle span:last-child{flex-shrink:0;font-size:.875rem;font-weight:500;color:var(--muted)}.friend-updates-toggle:focus-visible{outline:2px solid var(--accent,#285dc4);outline-offset:4px;border-radius:8px}

/* Quiet reaction actions sit beside messages, outside the bubble. */
.reaction-bar{align-items:center;margin-top:0;gap:0}.reaction-results{display:flex;flex-wrap:wrap;gap:0}.reaction-bar button{border:0;background:transparent;border-radius:0;box-shadow:none;min-width:48px;min-height:48px;padding:0 6px;color:var(--muted);font-size:1rem}.reaction-bar .reaction-add{font-size:22px;opacity:1}.reaction-bar button[aria-pressed=true]{background:transparent;color:var(--accent,#285dc4);font-weight:700}.reaction-bar button:focus-visible{outline:2px solid var(--accent,#285dc4);outline-offset:-4px;border-radius:8px}
#chat-view .message:has(>.message-content){align-items:flex-end;gap:8px;margin:18px 0}#chat-view .message-content{position:relative;min-width:0;max-width:min(78vw,440px);padding-bottom:14px}#chat-view .message-content>.bubble{max-width:100%}#chat-view .message-content>.reaction-bar{position:absolute;left:calc(100% - 9px);bottom:-10px;display:flex;flex-wrap:nowrap;height:48px;align-items:center;margin:0;z-index:1}#chat-view .message-content .reaction-add{font-size:17px}#chat-view .message-content .reaction-bar button{min-width:48px;height:48px;padding:0;font-size:17px;line-height:1}#chat-view .message-content .reaction-results{flex-wrap:nowrap}#chat-view .message:has(>.message-content)>small{padding-bottom:0;margin-bottom:0}#chat-view .message.me:has(.message-more)>.message-content{grid-column:2;grid-row:1;justify-self:end;max-width:100%}#chat-view .message.me:has(.message-more)>small{grid-column:2;grid-row:2;margin-top:-6px}#chat-view .message.me:has(.message-more)>.message-more{align-self:center}


#chat-view .message .bubble.emoji-only{font-size:2.6rem;line-height:1.25}#chat-view .message .bubble.emoji-only .inline-emoji{font-size:1em}#chat-view .message .bubble:not(.emoji-only) .inline-emoji{font-size:1.5em;line-height:1;vertical-align:-.1em}#emoji-panel .emoji-choice{font-size:2rem;min-width:48px;min-height:48px}

#chat-view .composer .media-tools .quiet-button{flex-direction:column;background:transparent!important;border:0;border-radius:0}#chat-view .composer .media-tools #emoji .emoji-keyboard-icon{font-size:24px;line-height:24px;height:24px}

#chat-view .message-content{margin-right:var(--reaction-overhang,0px);max-width:min(calc(100% - 62px - var(--reaction-overhang,0px)),392px)}
#chat-view .message>small{flex:0 0 auto;max-width:35%;white-space:normal}
.chat-photo-preview,.photo-viewer>img{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;touch-action:manipulation}
.photo-viewer-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:10px}
.photo-viewer-actions>button{flex:0 0 auto;min-height:48px;margin:0;padding:8px;background:transparent;color:var(--ink);border:0;box-shadow:none}
.photo-viewer-count{margin-right:auto;color:var(--muted);font-size:.875rem}
.photo-viewer-track{display:flex;height:min(70dvh,680px);overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y pinch-zoom}
.photo-viewer-track::-webkit-scrollbar{display:none}
.photo-viewer-slide{flex:0 0 100%;width:100%;min-width:0;height:100%;scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center;position:relative}
.photo-viewer-slide img{display:block;max-width:100%;max-height:100%;object-fit:contain;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
.photo-viewer-slide img:not([src]){display:none}
.photo-viewer-slide>button{position:absolute;background:var(--surface);color:var(--ink)}
.gallery-edit-previews{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.gallery-edit-previews:empty{display:none}
/* Keep the approved form controls visible inside the keyboard's visual viewport. */
.diary-post-editor{position:fixed;overflow:hidden;padding:16px}
.diary-post-editor form{display:flex;flex-direction:column;max-height:inherit;min-height:0;overflow:hidden}
.diary-edit-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none}
.diary-edit-header h2{margin:0;font-size:1.125rem}
.diary-edit-header button{padding:4px 8px;min-width:48px}
.diary-post-editor .diary-edit-photos{flex:none;margin:0}
.diary-post-editor .photo-picker{display:flex;justify-content:space-between;align-items:center;gap:8px}
.diary-post-editor .gallery-edit-previews{flex-wrap:nowrap;overflow-x:auto;touch-action:pan-x pan-y;margin:4px 0 8px;padding-top:4px}
.diary-post-editor :is(#gallery-previews,.gallery-edit-previews) .gallery-preview-tile{flex-basis:72px;width:72px;height:72px}
.diary-edit-body{overflow:auto;min-height:0;padding-bottom:4px}
.diary-post-editor textarea{resize:none;min-height:96px;max-height:none;margin-top:4px}
.diary-post-editor .edit-status:empty{display:none}
.reply-draft{display:flex;align-items:center;gap:8px;padding:6px 12px;color:var(--ink);background:var(--surface);flex:none}
.reply-draft[hidden]{display:none}.reply-draft>div{min-width:0;flex:1}
.reply-draft>button{flex:none;background:transparent;border:0;min-width:40px;min-height:40px}
.message-quote{display:flex;flex-direction:column;text-align:left;gap:2px;border:0;border-left:3px solid var(--muted);border-radius:0;background:transparent;color:inherit;font:inherit;font-size:13px;line-height:1.4;padding:4px 8px;max-width:100%;min-width:0;margin:0 0 6px;cursor:pointer;box-shadow:none}
.message-quote>span{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-quote>strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reply-draft .message-quote{margin:0;cursor:default}.message-quote .cat-preview{max-height:24px}
.reply-highlight>.bubble{outline:2px solid var(--muted);outline-offset:3px}
.gallery-edit-previews .message-media,.gallery-edit-previews .chat-photo-preview{width:100%;height:100%;max-width:none;margin:0;padding:0;background:transparent;border:0}
#gallery-dialog .gallery-controls{justify-content:center;min-height:32px}
#gallery-dialog .gallery-controls .photo-desktop-nav,.photo-viewer .photo-desktop-nav{display:none;background:transparent;border:0;box-shadow:none;border-radius:0;color:var(--ink);padding:4px;margin:0;width:auto;min-width:48px;min-height:48px;height:auto;gap:2px;font:inherit;font-size:14px}
@media (min-width:768px) and (hover:hover) and (pointer:fine){
  #gallery-dialog .gallery-controls .photo-desktop-nav,.photo-viewer .photo-desktop-nav{display:inline-flex;flex-direction:column;align-items:center;justify-content:center}
  #gallery-dialog .gallery-controls{justify-content:space-between}
  .photo-desktop-nav .material-symbol{width:24px;height:24px}
  .photo-desktop-nav:disabled{opacity:.3;cursor:default}
}
.photo-viewer>button{background:transparent;border:0;box-shadow:none}

#chat-view .message-content .reaction-add{display:flex;align-items:center;justify-content:flex-start;gap:3px;width:max-content;min-width:48px}#chat-view .message-content .reaction-smile{font-size:17px;line-height:1}#chat-view .message-content .reaction-results{display:flex;align-items:center;gap:3px}#chat-view .message-content .reaction-count{font-size:17px;line-height:1;white-space:nowrap;color:var(--muted)}
#emoji-panel .emoji-choice,#emoji-panel .emoji-choice:hover,.reaction-choices button{background:transparent;border:0;border-radius:0;box-shadow:none}

#chat-view .message .bubble.emoji-only,#chat-view .message .bubble.photo-only{background:transparent;border:0;box-shadow:none;padding:0;border-radius:0}#chat-view .message .bubble.photo-only .chat-photo-preview{background:transparent;box-shadow:none;border:0;padding:0}
/* App-wide quiet tools: visible glyphs, transparent touch areas. */
@media(prefers-color-scheme:light){:root:not([data-theme=dark]){--page:#edf3f8;--surface:#f8fbfd;--soft:#eaf1f7;--line:#dbe5ed;--accent-soft:#e5eefb}}
:root[data-theme=light]{--page:#edf3f8;--surface:#f8fbfd;--soft:#eaf1f7;--line:#dbe5ed;--accent-soft:#e5eefb}
body .quiet-button:not(.primary),body .small-button,body .profile-edit,body .mobile-page-back,body .destination-action,body .gallery-compose,body .gallery-post-menu{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0;min-height:48px}
body .quiet-button .ico,body .small-button .ico,body .profile-edit .ico,body .mobile-page-back svg{background:transparent!important;border:0;box-shadow:none!important;padding:0;border-radius:0}
.mobile-shell-ready .home-top-actions #open-settings,#chat-view #chat-settings{display:grid;place-items:center;min-width:48px;min-height:48px;padding:6px;background:transparent;border:0;box-shadow:none}
.mobile-shell-ready #open-settings .ico,#chat-view #chat-settings .ico{width:30px;height:30px;min-width:30px;stroke-width:1.8}
body .mobile-page-back{background:transparent;box-shadow:none}body .mobile-page-back svg{width:28px;height:28px}
.mobile-nav-item,.mobile-nav-item[aria-current=page]{background:transparent;border-radius:0}.mobile-nav-item[aria-current=page]{color:var(--accent);font-weight:700}.mobile-nav-item[aria-current=page]:before{content:'';position:absolute;bottom:0;width:18px;height:2px;background:currentColor;border-radius:2px}.mobile-nav svg{width:26px;height:26px}
#call-controls .call-control:not(.end) .circle{background:transparent;border:0;box-shadow:none}#call-controls .call-control:not(.end) .ico{width:28px;height:28px}

.mobile-shell-ready .friends-fold-wrap #invite,body .destination-action,body .gallery-compose{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:8px 4px;background:transparent!important;color:var(--accent);border:0!important;box-shadow:none!important;border-radius:0}.mobile-shell-ready .friends-fold-wrap #invite .ico,body .destination-action svg,body .gallery-compose svg{width:24px;height:24px;min-width:24px;padding:0;background:transparent;box-shadow:none}
/* Embedded diary is a tab page, not a nested dialog card. */
#gallery-dialog.embedded-diary{border-radius:0}
#gallery-dialog.embedded-diary>header{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0;margin:0 0 20px;min-height:48px;align-items:flex-start}
#gallery-dialog.embedded-diary>header h2{font-size:1.5rem;line-height:1.4;letter-spacing:-.02em;margin:0}
#gallery-dialog .gallery-compose{color:var(--accent);padding:8px 4px;min-width:0;background:transparent}
/* One continuous canvas, including the empty area below short tab lists. */
.mobile-shell-ready .home-shell,.mobile-shell-ready .home-top,.mobile-shell-ready .home-layout,.mobile-shell-ready .home-main,.mobile-shell-ready .my-profile,.mobile-nav{background:var(--page)}
.mobile-shell-ready .home-shell{min-height:100dvh;box-shadow:none}
.mobile-shell-ready .destination-panel{background:transparent}
/* Settings: one page, clear groups, save beside the title. */
#settings-dialog{background:var(--page);padding:0 20px 24px}#settings-form{margin:0;max-width:560px;margin-inline:auto}
#settings-dialog .mobile-page-header{position:sticky;top:0;z-index:4;background:var(--page);margin:0;padding:8px 0;min-height:64px;border-bottom:1px solid var(--line);gap:8px}#settings-dialog .mobile-page-header h2{font-size:1.25rem!important}
#settings-dialog #settings-save{background:transparent;color:var(--accent);border:0;padding:8px;min-height:48px;font-size:1rem;box-shadow:none}
#settings-dialog .settings-section{padding:18px 0 10px;border-bottom:1px solid var(--line)}#settings-dialog .settings-section h3{font-size:.8125rem;font-weight:600;color:var(--muted);margin:0 0 6px;line-height:1.5}
#settings-dialog .settings-row{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;padding:10px 0;margin:0;min-height:48px;color:var(--ink);font-size:.9375rem;border:0}#settings-dialog #edit-profile{padding:10px 0;margin:0}#settings-dialog #edit-profile span:first-of-type{flex:1}
#settings-dialog .settings-switch{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;margin:0;padding:6px 0;color:var(--ink);font-size:.9375rem}
#settings-dialog .theme-options{display:flex;align-items:center;justify-content:flex-start;gap:16px;border:0;padding:0;margin:0}#settings-dialog .theme-options label{display:flex;align-items:center;gap:5px;min-height:48px;margin:0;color:var(--ink);font-size:.875rem}#settings-dialog .theme-options input{appearance:auto;width:18px;height:18px;min-height:18px;padding:0;margin:0;accent-color:var(--accent)}
#settings-dialog .settings-appearance{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-block:8px}
#settings-dialog .settings-appearance h3{margin:0;white-space:nowrap}
#settings-dialog .settings-appearance .theme-options{justify-content:flex-end;gap:8px}
#settings-dialog .settings-hint{font-size:.75rem;margin:0;line-height:1.5;color:var(--muted)}#settings-dialog #settings-error:empty{display:none}#settings-dialog .settings-account{border:0;padding-bottom:8px}#settings-dialog #logout{margin:0;padding:10px 0;color:var(--danger)}#settings-admin:not(:has(button:not([hidden]))){display:none}
.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}

#settings-dialog #settings-permissions,#settings-dialog #settings-system{justify-content:space-between;text-align:left}
#profile-dialog{background:var(--page)}#profile-dialog .mobile-page-header{background:var(--page);margin-bottom:20px}#profile-dialog #profile-save{background:transparent;color:var(--accent);border:0;padding:8px;min-height:48px}#profile-dialog .profile-avatar-editor{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px;padding:0}#profile-dialog .profile-avatar-editor img,.profile-avatar-fallback{width:64px;height:64px;border-radius:50%;object-fit:cover}.profile-avatar-fallback{display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-size:1.25rem}#profile-dialog .profile-help{margin:0 0 24px;font-size:.875rem}

/* Match the existing friends disclosure: small arrow before the title. */
.friend-updates-toggle{justify-content:flex-start;gap:8px;font-size:1rem;font-weight:650;min-height:48px;padding:0 0 14px}
.friend-updates-toggle .fold-action{display:none}
.friend-updates-toggle:before{content:'';width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);margin:0 6px 0 2px;flex:none}
.friend-updates-toggle[aria-expanded=true]:before{transform:rotate(45deg)}
#profile-dialog .dialog-actions{background:transparent}

/* RC21: user-selected local font and frameless Material Symbols. */
@font-face{font-family:'Chiron GoRound TC';src:url('./fonts/ChironGoRoundTC-Regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
html body,html body input,html body textarea,html body button,html body select,html body h1,html body h2,html body h3,html body h4{font-family:'Chiron GoRound TC',sans-serif}
html body svg.material-symbol,html body svg.material-symbol *{fill:currentColor;stroke:none}
.fluent-emoji{display:inline-block;width:1em;height:1em;object-fit:contain;vertical-align:-.15em;pointer-events:none}
.emoji-choice .fluent-emoji,.reaction-choices .fluent-emoji{width:1em;height:1em}
.reaction-count .fluent-emoji{width:1em;height:1em}

html body .fluent-emoji{display:inline-block;width:1em;height:1em;background-size:contain;background-position:center;background-repeat:no-repeat;color:transparent;font-family:sans-serif;line-height:1;vertical-align:-.13em;pointer-events:none}
.reaction-add>.material-symbol{width:17px;height:17px;flex:0 0 17px}
.media-tools .material-symbol{width:28px;height:28px;flex:0 0 28px}
.message-edit-action .material-symbol{width:24px;height:24px;flex:0 0 24px}
/* Announcement uses the existing edit-message field treatment; no resize handle. */
#announcement-body{box-sizing:border-box;width:100%;min-height:120px;max-height:35dvh;resize:none;font:inherit;font-size:1rem;line-height:1.6;padding:12px;margin-top:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}
.announcement-edit{display:inline-flex;align-items:center;gap:6px;background:none;border:0;box-shadow:none}.announcement-edit svg{width:24px;height:24px}
/* RC24: five compact categories, keeping transparent finger-sized targets. */
#emoji-panel .emoji-tabs{display:flex;flex-wrap:nowrap;gap:0;overflow-x:auto;flex-shrink:0}
#emoji-panel .emoji-tab{min-width:48px;height:48px;padding:0 8px;font-size:14px;white-space:nowrap;flex:0 0 auto;border:0;border-radius:0;background:transparent;box-shadow:none;position:relative}
#emoji-panel .emoji-tab[aria-pressed=true]{background:transparent;color:var(--accent);font-weight:700}
#emoji-panel .emoji-tab[aria-pressed=true]:after{content:'';position:absolute;width:20px;height:3px;border-radius:3px;background:currentColor;bottom:4px;left:calc(50% - 10px)}
#chat-view .message .bubble.voice-only{background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;min-width:0}
.voice-player{width:216px;max-width:100%;gap:6px;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
.voice-player .voice-play{width:48px;height:48px;min-width:48px;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--accent);font-size:24px}
.voice-track input[type=range]{min-height:48px}
#chat-view .bubble.voice-only .message-media{margin:0;padding:0;min-width:0}
#chat-view .bubble.voice-only .media-load{min-height:48px;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;color:var(--accent)}
.emoji-attribution{font-size:12px;color:var(--muted);line-height:1.6}

/* RC28 approved baseline: a single compact header shared by the four tabs. */
.mobile-shell-ready .home-fixed-header{position:sticky;top:0;z-index:25;background:var(--page)}
.mobile-shell-ready .home-fixed-header .home-top{min-height:54px;padding:3px 16px;border-bottom:0}
.mobile-shell-ready .home-fixed-header .home-wordmark .logo{border-radius:50%}
/* RC29: the five-person brand is circular on every entry and call screen. */
img.logo{border-radius:50%;clip-path:circle(50%)}
.mobile-shell-ready .home-fixed-header .my-profile{display:block;width:100%;padding:6px 16px 12px;margin:0 auto}
.mobile-shell-ready .home-fixed-header .my-profile .profile-summary{display:grid;grid-template-columns:46px minmax(0,1fr);column-gap:11px;row-gap:0;align-items:center}
.mobile-shell-ready .home-fixed-header .my-profile .profile-identity{display:contents}
.mobile-shell-ready .home-fixed-header .my-profile .profile-photo{grid-column:1;grid-row:1/3;width:46px;height:46px;min-width:46px;min-height:46px;margin:0;align-self:center}
.mobile-shell-ready .home-fixed-header .my-profile .profile-name-row{grid-column:2;grid-row:1;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;min-width:0}
.mobile-shell-ready .home-fixed-header .my-profile h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;align-self:center;font-size:1.125rem;line-height:1.5}
.mobile-shell-ready .home-fixed-header .presence-picker{flex-shrink:0;margin:0}
.mobile-shell-ready .home-fixed-header #my-status{min-height:32px;padding:0;font-size:.75rem;gap:5px}
.mobile-shell-ready .home-fixed-header .presence-chevron{display:none}
.mobile-shell-ready .home-fixed-header .my-profile .profile-details{grid-column:2;grid-row:2;margin:0;padding:0;min-width:0}
.mobile-shell-ready .home-fixed-header .my-profile .mood{font-size:.8125rem;line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:0;overflow-wrap:anywhere}
/* Posts retain their existing actions while visible reactions sit next to the smile. */
.memory-card .reaction-bar,.feed-card .reaction-bar{flex-wrap:nowrap;gap:0}
.memory-card .reaction-bar button,.feed-card .reaction-bar button{display:inline-flex;align-items:center;justify-content:center;min-width:24px;padding:0;min-height:44px;margin:0}
.memory-card .reaction-results,.feed-card .reaction-results{flex-wrap:nowrap;gap:0;min-width:0}
.memory-card .reaction-add>.material-symbol,.feed-card .reaction-add>.material-symbol{width:22px;height:22px;flex-basis:22px}
/* Cover the dialog's padding above a sticky header as content scrolls behind it. */
#gallery-dialog:not(.embedded-diary):not(.inline-album)>header::before{content:"";position:absolute;inset:-20px 0 0;background:var(--page);z-index:-1;pointer-events:none}
#gallery-dialog .feed-card .reaction-count .fluent-emoji,.memory-card .reaction-count .fluent-emoji{width:20px;height:20px}
.reaction-picker{box-sizing:border-box;width:min(340px,calc(100vw - 32px));max-width:calc(100vw - 32px);padding:16px;border-radius:16px;background:var(--surface);color:var(--ink)}
.reaction-picker h2{margin:0;font-size:1.125rem;line-height:1.5;color:var(--ink)}
.reaction-picker .reaction-choices{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;margin:12px 0 4px}
.reaction-picker .reaction-choices button{min-width:0;width:100%;min-height:48px;padding:0;border:0;border-radius:0;background:transparent;color:var(--ink);font-size:2rem;box-shadow:none}
.reaction-picker>.quiet-button{display:block;margin:0 0 0 auto;padding:0 4px;color:var(--accent)}

/* RC30: received messages place the existing identity above their content. */
#chat-view .message:has(>.message-author){flex-wrap:wrap;row-gap:4px;padding-left:36px}
#chat-view .message>.message-author{display:flex;align-items:center;gap:8px;flex:0 0 calc(100% + 36px);min-width:0;padding:0;margin:0 0 0 -36px;background:transparent;border:0;box-shadow:none}
#chat-view .message-author-avatar{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;overflow:hidden;border-radius:50%;background:transparent;border:0;box-shadow:none;color:var(--muted);font-size:14px}
#chat-view .message-author-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;border:0}
#chat-view .message-author-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px;font-weight:600}

/* Shared cat symbols: no bubble or tool background. */
.cat-emoji{display:inline-block;width:1.6em;height:1.6em;background-repeat:no-repeat;color:transparent;font-size:inherit;line-height:1;vertical-align:-.3em;overflow:hidden;pointer-events:none}
#emoji-panel .cat-emoji{width:48px;height:48px}
.game-center{padding-bottom:24px}.game-center .game-note{font-size:13px;line-height:1.7;color:var(--muted)}.game-error{color:var(--danger,#b43f46)}.game-center .destination-row>.cat-emoji,.game-entry-card{width:40px;height:50px;flex:none;object-fit:contain}.game-tab-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px}.game-tab-icon svg{width:26px;height:26px;fill:currentColor}.game-ranking{margin:0 0 12px 54px}.game-ranking>summary{font-size:14px;min-height:40px}.game-ranking-row{display:flex;align-items:center;gap:10px;font-size:14px;margin:8px 0}.game-ranking-row>span:first-child{font-size:22px}.game-ranking-row>span:last-child{margin-left:auto;color:var(--muted)}
.game-center .pet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.game-center .pet-grid button{display:flex;flex-direction:column;align-items:center;padding:0;background:transparent;border:0;box-shadow:none}.game-center .pet-grid button[aria-pressed=true]{color:var(--accent);text-decoration:underline}.game-center .pet-grid .cat-emoji{width:100%;height:auto;aspect-ratio:1}.game-center .pet-stage{position:relative;height:260px;display:flex;align-items:center;justify-content:center;overflow:hidden}.game-center .pet-touch{background:none;border:0;box-shadow:none;padding:0}.game-center .pet-stage .cat-emoji{width:210px;height:210px;clip-path:inset(0 1.5%)}.game-center .pet-stage button:disabled{opacity:1}.game-center .pet-zzz{position:absolute;top:20px;right:24%;font-size:24px;color:var(--muted);pointer-events:none}.game-center .pet-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.game-center .pet-tools button{display:flex;flex-direction:column;align-items:center;gap:5px;background:transparent;border:0;box-shadow:none;color:var(--accent);padding:8px 0}.game-center .pet-tools svg{width:26px;height:26px}.game-center .pet-tools button:disabled{opacity:.45}.game-center .pet-mood{text-align:center;font-size:14px;min-height:1.5em}.game-center .game-share{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:16px}.game-center .pet-weather-invitation{display:block;margin:4px auto;padding:9px 14px;background:var(--accent-soft);color:var(--accent);border:0;border-radius:16px;box-shadow:none;font:inherit;font-size:14px}.game-center .pet-growth{display:flex;gap:4px}.game-center .pet-growth>div{flex:1;min-width:0;text-align:center}.game-center .pet-growth .cat-emoji{width:100%;height:auto;aspect-ratio:1}.game-center .pet-growth h3{font-size:15px}.game-center .pet-growth p{font-size:12px}.game-center .pet-reminder-row{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}.game-center input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent)}.game-center select,.game-center textarea,.game-center input:not([type=checkbox]){font:inherit;max-width:100%;background:var(--surface);color:var(--ink);padding:10px;border:1px solid var(--line);border-radius:8px}.game-center textarea{width:100%;resize:none}.game-center .game-share-image{display:block;width:min(260px,100%);height:auto;margin:12px auto}.game-center .tarot-stage{position:relative;max-width:260px;margin:20px auto;text-align:center}.game-center .tarot-stage img{display:block;width:100%;height:auto;max-height:400px;object-fit:contain}.game-center .tarot-name{display:block;font-size:22px;margin:8px}.game-center .call-button{margin-top:16px}
.game-center .match-tally{display:flex;justify-content:space-between;align-items:center;margin:14px 0;color:var(--accent)}.game-center .match-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;max-width:420px;margin:0 auto}.game-center .match-tile{min-width:0;width:100%;aspect-ratio:1;padding:0;border:1px solid var(--line);border-radius:8px;background:transparent;box-shadow:none;touch-action:none}.game-center .match-tile .cat-emoji{width:100%;height:100%}.game-center .match-tile[aria-pressed=true]{border:2px solid var(--accent);background:var(--accent-soft)}.game-center .match-tile:disabled{opacity:1}.game-center .match-clear .cat-emoji{opacity:.15;transition:opacity .18s}.game-center .match-tile:focus-visible{outline:2px solid var(--accent);outline-offset:1px}

.cat-emoji{clip-path:inset(1% 0 2%)}

.game-center .pet-touch{position:relative;width:210px;height:210px}
/* Game review: shared headers, transparent tools and form rhythm. */
.game-center .game-page-header{position:static;display:flex;align-items:center;background:transparent;padding:0;margin:0 0 16px;gap:8px;min-height:48px}
.game-page-header>div{min-width:0;flex:1}.game-page-header p{margin:4px 0 0;font-size:13px;color:var(--muted)}
.game-center .mobile-page-back{background:transparent;border:0;box-shadow:none;margin:0;padding:0;width:40px;flex-basis:40px}
.game-center .game-field{display:flex;flex-direction:column;gap:8px;margin:20px 0 12px;font-size:14px}
.game-center .pet-grid button[aria-pressed=true]{text-decoration:none}.game-center .pet-grid button[aria-pressed=true]>span:last-child{font-weight:700;color:var(--accent)}
.game-center .game-tool{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:48px;background:transparent;border:0;box-shadow:none;padding:6px 8px;margin:0;color:var(--accent);font:inherit;font-size:14px}
.game-tool svg{width:24px;height:24px;fill:currentColor}.game-tool:disabled{opacity:.5}
.game-center[data-game-step=tarot] .game-page-header{position:relative;padding-inline:44px;min-height:56px;text-align:center}
.game-center[data-game-step=tarot] .game-page-header h2{text-align:center}
.game-center[data-game-step=tarot] .mobile-page-back{position:absolute;left:0;top:0}
.game-center .tarot-card-button{display:block;width:100%;padding:0;margin:0;border:0;border-radius:10px;background:transparent;box-shadow:none;cursor:pointer}
.tarot-card-button:focus-visible{outline:2px solid var(--accent);outline-offset:5px}.tarot-card-button:disabled{opacity:1}
.game-center .tarot-card-button[aria-busy=true]::after{content:none;display:none}
.game-center .tarot-daily,.game-center .tarot-hint,.tarot-date{text-align:center}.game-center .tarot-stage{margin:16px auto}
.game-center .tarot-source{display:block;margin-top:16px;font-size:12px;line-height:1.6;color:var(--muted)}
.game-center .tarot-result>.game-tool{display:flex;width:max-content;margin:18px auto 0}
.game-center .game-share-picker{margin:16px 0}.game-share-choices{padding:0;margin:8px 0;border:0;min-width:0}.game-share-choices .destination-row{padding:10px 0}.game-share-choices button[aria-pressed=true]{font-weight:700;color:var(--accent)}
.game-center[data-game-step=match]{padding-bottom:4px}.game-center[data-game-step=match] .game-page-header{margin-bottom:4px}.game-center[data-game-step=match] .match-tally{margin:6px 0}
.game-center .match-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.match-rules{max-width:70%;font-size:13px}.match-rules summary{min-height:40px}
.game-center .match-grid{width:min(100%,420px);flex:none}.game-center[data-game-step=match]>.game-note{margin:6px 0;font-size:12px;line-height:1.4;min-height:17px}
#gallery-dialog .gallery-slide.gallery-full-card .chat-photo-preview img{object-fit:contain}
.game-center .match-grid{aspect-ratio:1;grid-template-rows:repeat(6,minmax(0,1fr))}.game-center .match-tile{display:grid;place-items:center;height:100%;min-height:0;line-height:1;overflow:hidden;box-sizing:border-box}
.game-center[data-game-step=tarot] .tarot-stage{width:min(260px,max(150px,calc((100dvh - 380px)*.66)))}

@media(max-height:650px){.game-center[data-game-step=match] .game-page-header p{display:none}}
.game-center .game-tool{line-height:1.25}.game-center[data-game-step=match]>.game-note:empty{display:none}
/* The existing composer now renders custom cat emoji while retaining plain message data. */
:is(#chat-view #draft,.diary-comment-draft).rich-draft{flex:1;max-height:120px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;line-height:24px;cursor:text}
:is(#draft,.diary-comment-draft).rich-draft[data-empty=true]:not(:focus)::before{content:attr(data-placeholder);color:var(--muted);pointer-events:none}
#draft.rich-draft .cat-emoji{width:30px;height:30px;vertical-align:middle;pointer-events:auto;user-select:all;-webkit-user-select:all}
.sea-controls{display:flex;flex-direction:column;gap:8px}.sea-controls select{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:5px}.sea-fleet{display:flex;flex-wrap:wrap;gap:4px}.sea-fleet button{font-size:13px;min-height:44px;padding:4px 6px;touch-action:none}.sea-fleet button[aria-pressed=true]{color:var(--accent);text-decoration:underline;text-underline-offset:6px}.sea-tabs,.sea-tally,.sea-footer{display:flex;justify-content:space-between;gap:8px}.sea-tabs button{flex:1;min-height:44px;border-radius:0}.sea-tabs button[aria-pressed=true]{color:var(--accent);border-bottom:2px solid currentColor}.sea-tally{font-size:13px;margin:8px 0}.sea-board{display:grid;grid-template-columns:20px repeat(10,minmax(0,1fr));grid-template-rows:20px repeat(10,minmax(0,1fr));width:min(100%,420px);aspect-ratio:1;margin:0 auto;user-select:none;touch-action:none}.sea-axis{display:grid;place-items:center;color:var(--muted);font-size:12px}.game-center .sea-cell{box-sizing:border-box;display:grid;place-items:center;min-width:0;min-height:0;width:100%;height:100%;padding:0;margin:0;border:1px solid var(--line);border-radius:0;background:var(--accent-soft);color:var(--accent);font-size:20px;line-height:1;box-shadow:none;touch-action:none}.game-center .sea-cell:disabled{opacity:1}.game-center .sea-cell[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:-3px}.game-center .sea-ship{background:color-mix(in srgb,var(--accent) 25%,var(--surface));color:var(--ink)}.game-center .sea-hit{color:#e57555}.game-center .sea-miss{color:var(--accent)}.game-center .sea-sunk{background:color-mix(in srgb,#e57555 20%,var(--surface))}.game-center .sea-valid{background:#b5dec3;color:#173f2d}.game-center .sea-invalid{background:#efb2ac;color:#77271e}.sea-status{font-size:14px;min-height:22px;margin:8px 0;text-align:center}.sea-actions{display:flex;justify-content:center;gap:12px}.sea-result{text-align:center}.sea-result h3,.sea-result p{margin:6px 0}.sea-footer{margin-top:4px}.sea-hit-effect,.sea-sunk-effect{animation:sea-impact .55s ease-out}.sea-miss-effect{animation:sea-ripple .65s ease-out}.sea-sink-effect{animation:sea-sink .9s ease-out}@keyframes sea-impact{50%{transform:scale(.8);background:#ed987f}}@keyframes sea-ripple{50%{box-shadow:inset 0 0 0 5px #70b6ed}}@keyframes sea-sink{50%{opacity:.2;transform:translateY(3px)}}@media(prefers-reduced-motion:reduce){.sea-board *{animation:none!important}}
/* A fixed status slot keeps the board and controls still during a round. */
.game-center .match-tally{min-height:27px}
.game-center[data-game-step=match]>.match-status,.game-center[data-game-step=match]>.match-status:empty{display:block;height:34px;min-height:34px;overflow:auto;margin:6px 0;line-height:17px}
.game-center .match-footer{justify-content:center;min-height:59px}
.game-center .sea-fleet{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}.game-center .sea-fleet button{min-width:0;margin:0;padding:4px 0;font-size:12px;white-space:normal;overflow-wrap:anywhere;line-height:1.3}.game-center .sea-tabs button{margin:0;padding:4px}.game-center[data-game-step=battleship]{padding-bottom:90px}.sea-controls label{font-size:14px}.sea-result:empty{display:none}
.game-center .sea-tabs button[aria-pressed=true]{border-bottom:2px solid var(--accent)!important}.sea-footer{position:relative;flex-wrap:wrap}.sea-legend{flex-basis:100%;font-size:12px;text-align:center;color:var(--muted)}
.game-center .sea-cell{background:color-mix(in srgb,var(--accent) 10%,transparent)}.game-center .sea-ship{background:color-mix(in srgb,var(--accent) 28%,transparent)}.game-center .sea-sunk{background:color-mix(in srgb,#e57555 24%,transparent)}.game-center .sea-valid{background:#b5dec3;color:#173f2d}.game-center .sea-invalid{background:#efb2ac;color:#77271e}

.message-preview .cat-emoji{display:inline-block;width:24px;height:24px;vertical-align:middle;margin:0;flex:none}
.game-center .destination-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.game-center .ranking-entry{display:inline-flex;align-items:center;gap:6px;min-height:48px;padding:0;margin:0;border:0;background:transparent;color:var(--ink);font:inherit;box-shadow:none;white-space:nowrap}.podium-icon{width:34px;height:28px;flex:none}.ranking-tabs{display:flex;gap:16px}.ranking-tabs button{background:transparent;color:var(--muted);margin:0;padding:8px 4px;min-height:44px;border:0;border-radius:0;box-shadow:none}.ranking-tabs button[aria-pressed=true]{color:var(--accent);border-bottom:2px solid currentColor}
/* RC38 sea: full-width board, shared chrome, scrollable content and fixed transparent tools. */
.sea-entry-icon{width:48px;height:48px;object-fit:contain;flex:none}.game-page-header h2 .sea-entry-icon{width:32px;height:32px;vertical-align:middle;margin-right:8px}.game-center[data-game-step^=sea-]{padding-bottom:calc(var(--sea-dock-height,72px) + 110px)}.game-center .sea-board{position:relative;width:100%;max-width:560px;aspect-ratio:1;touch-action:pan-y;--sea-hull-fill:#a9c2d7;--sea-hull-ink:#23486b}.game-center .sea-cell{touch-action:pan-y;font-size:23px;position:relative;z-index:2}.game-center .sea-fleet button{touch-action:pan-y}.sea-hull{position:absolute;pointer-events:none;z-index:1;overflow:visible}.sea-selected-hull{--sea-hull-ink:var(--accent)}.sea-dock{position:fixed;z-index:21;background:var(--page);padding:6px 0;box-sizing:border-box}.sea-dock .sea-actions{min-height:54px}.sea-dock .game-tool{min-width:76px}.sea-countdown{display:block;text-align:center;color:var(--accent);font-size:18px;min-height:28px;font-variant-numeric:tabular-nums}.sea-countdown[hidden]{display:none}.sea-board[hidden]{display:none}.game-center .sea-vibration{display:flex;align-items:center;gap:8px;min-height:48px;padding:0;margin:0;border:0;background:transparent;color:var(--ink);box-shadow:none;font:inherit}.sea-switch-state{display:inline-flex;align-items:center;justify-content:space-between;gap:10px;width:64px;border-radius:20px;background:#a33145;color:#fff;padding:5px 8px;font-size:14px}.sea-switch-state:after{content:'';width:20px;height:20px;border-radius:50%;background:white}.sea-vibration[aria-checked=true] .sea-switch-state{background:#256442;flex-direction:row-reverse}.sea-vibration[aria-checked=false] .sea-switch-state{background:#a33145}.sea-friend-picker{max-height:75dvh;overflow:auto}.sea-friend-list{max-height:40dvh;overflow:auto}.sea-friend-list [aria-pressed=true]{color:var(--accent);font-weight:700}.sea-room{margin-top:18px}.sea-dice{font-size:24px;animation:sea-dice-reveal .5s ease-out}.sea-tally{margin:6px 0}.sea-footer{margin-top:8px}.sea-status{line-height:1.5}.sea-cell.sea-hit{color:#c54f30;text-shadow:0 0 2px var(--page)}@keyframes sea-dice-reveal{from{transform:scale(.8);opacity:.4}to{transform:scale(1);opacity:1}}:root[data-theme=dark] .sea-board{--sea-hull-fill:#456786;--sea-hull-ink:#c5e0f5}:root[data-theme=dark] .sea-cell.sea-hit{color:#ff9275}@media(prefers-reduced-motion:reduce){.sea-dice{animation:none}}
.game-center .sea-cell{border-color:color-mix(in srgb,var(--ink) 24%,transparent)}
.sea-dice-pair{display:flex;justify-content:center;gap:28px;padding:18px 0}.sea-dice-pair>div{max-width:45%;overflow-wrap:anywhere}.sea-dice-pair .sea-dice{display:inline-block;font-size:64px;line-height:1;color:var(--accent);animation:sea-roll .6s ease-out}@keyframes sea-roll{0%{transform:rotate(-25deg) scale(.7)}50%{transform:rotate(20deg)}100%{transform:rotate(0) scale(1)}}@media(prefers-reduced-motion:reduce){.sea-dice-pair .sea-dice{animation:none}}

/* Street gang game: original visual style explicitly approved on 2026-10-03. */
.city-gang-screen{position:fixed;inset:0;z-index:100;display:flex;flex-direction:column;background:#090a10;color:#e0e6ed;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
.city-gang-screen[hidden]{display:none}
.city-gang-navigation{display:flex;align-items:center;justify-content:space-between;flex:none;min-height:44px;padding:0 14px;background:#0a0c14;border-bottom:1px solid rgba(255,255,255,.08);font-size:13px}
.city-gang-navigation .city-gang-back{min-height:44px;margin:0;padding:0 8px 0 0;background:transparent;border:0;border-radius:0;box-shadow:none;color:#00f0ff;font:inherit;cursor:pointer}
.city-gang-frame{display:block;width:100%;flex:1;min-height:0;border:0;background:#090a10}

.message-read-label{display:block;font:inherit;color:inherit;line-height:1.4}
.diary-comments{margin:0 16px 16px;padding-top:6px}.diary-comment-compose{gap:8px;min-width:0}.diary-comment-compose .send{flex-shrink:0}.diary-comment{display:flex;gap:10px;margin:12px 0 16px;align-items:flex-start}#gallery-dialog .diary-comment .feed-avatar{width:32px;height:32px;flex-basis:32px;font-size:13px}.diary-comment-body{flex:1;min-width:0}.diary-comment-heading{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}.diary-comment strong{font-size:14px;font-weight:600}.diary-comment time,.diary-comment small{font-size:12px;color:var(--muted)}.diary-comment p{margin:3px 0 0;font-size:15px;line-height:1.6;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere}.diary-comment-status{font-size:13px;color:var(--muted)}.diary-comment-status:empty{display:none}

/* Shared permission guide: preserve line breaks in native status readings. */
.background-status { white-space: pre-line; }
#setup-title:focus { outline: none; }
#email-submit{width:100%;margin-top:12px}
#email-auth-dialog label{display:block;margin-top:12px}
#email-auth-dialog input{width:100%;min-width:0}
#email-verify-address,#email-error{overflow-wrap:anywhere}

/* Reuse member rows and chat author identity; only the inline picker layout is new. */
.mention-members{max-height:min(180px,28dvh);overflow-y:auto;overscroll-behavior:contain}
.mention-members .group-member-row{width:100%;background:transparent;border-radius:0;text-align:left}
.mention-members .message-author{position:static;display:flex;align-items:center;gap:12px;min-width:0;margin:0}
.mention-members .message-author-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#chat-view .mention-members .message-author-name{font:inherit;color:var(--ink)}
.mention-members [aria-selected="true"]{background:var(--soft)}
.message-mention{color:var(--accent);font-weight:700}
/* Video uses the existing frameless media layout and native playback controls. */
.message-media video,.chat-selected-photo video,.gallery-preview-tile video{display:block;width:100%;max-height:65vh;object-fit:contain;border:0;background:transparent}
.video-preview{position:relative;cursor:pointer}
.video-preview>.video-play-icon{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:32px;height:32px;fill:white;stroke:#24364b;stroke-width:.8;stroke-linejoin:round;pointer-events:none}
.video-preview>.video-load-status{position:absolute;left:8px;right:8px;top:50%;transform:translateY(-50%);color:white;background:#24364be6;padding:6px;font:inherit;text-align:center;pointer-events:none}
.video-preview>.video-load-status[hidden]{display:none}
.video-preview:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}

/* All compact media previews stay inside their existing tile, including portrait video. */
:is(#gallery-previews,.gallery-edit-previews) .gallery-preview-tile{overflow:hidden;border-radius:14px}
.gallery-preview-tile .prepared-video-preview,.gallery-preview-tile .message-media,.gallery-preview-tile .video-preview{height:100%;min-height:0;width:100%}
.prepared-video-preview{position:relative;width:100%;height:100%;overflow:hidden}
.gallery-preview-tile video,.prepared-video-preview video{display:block;width:100%;height:100%;max-height:100%;object-fit:contain}
.prepared-video-preview>.video-preview-toggle{position:absolute;inset:0;display:grid;place-items:center;width:100%;height:100%;min-height:0;margin:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;cursor:pointer;color:white}
.prepared-video-preview .video-play-icon{width:32px;height:32px;fill:white;stroke:#24364b;stroke-width:.8;stroke-linejoin:round;pointer-events:none}
.prepared-video-preview>.video-preview-error{position:absolute;bottom:0;left:0;right:0;color:white;background:#24364be6;font-size:11px;text-align:center;pointer-events:none}
.prepared-video-preview>.video-preview-error[hidden]{display:none}
.prepared-video-preview>.video-preview-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.memory-card .chat-photo-preview.video-preview,.chat-photo-preview.video-preview{cursor:pointer}
.chat-photo-preview.video-preview[aria-busy=true]{cursor:progress}
.gallery-preview-tile .gallery-preview-remove{z-index:2}
.chat-selected-photo .prepared-video-preview{height:140px}.chat-selected-photo>.prepared-video-preview>.video-preview-toggle{min-width:0;top:0;right:0}.diary-post-editor .gallery-preview-remove{width:28px;height:28px;min-width:28px;min-height:28px;font-size:22px}
.gallery-preview-tile .message-media{min-width:0}.gallery-preview-tile .message-media[aria-busy=true]{min-height:0}

/* Localization keeps the established controls; long content can wrap without clipping. */
#settings-language{max-width:65%;min-width:0;font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:8px}
.message-translation-dialog select,.safety-form select{display:block;width:100%;font:inherit;font-size:16px;color:var(--ink);background:var(--soft);border:1px solid var(--line);border-radius:12px;min-height:48px;padding:10px 12px;margin-top:8px}
.translation-source,.translation-result{white-space:pre-wrap;overflow-wrap:anywhere;max-height:30dvh;overflow:auto}
.translation-source{color:var(--muted)}
.message-action-sheet .action-grid button{height:auto;min-height:80px}
.message-action-sheet .action-label{word-break:normal;overflow-wrap:normal;hyphens:auto}
html:not([lang=zh-Hant]) .settings-row{white-space:normal;overflow-wrap:anywhere}

/* Reserve the same 2:3 card box before, during and after drawing. */
.game-center .tarot-stage img{height:auto;aspect-ratio:2/3;max-height:none;object-fit:contain}


.safety-form textarea{resize:none}

.safety-form a{color:var(--accent)}
/* Explicit local loading indicator; never attach pseudo-elements to media buttons. */
.operation-loading{display:flex;align-items:center;justify-content:center;gap:8px;max-width:100%;margin:10px 0;color:var(--muted);font-size:14px;line-height:1.5;overflow-wrap:anywhere;pointer-events:none}
.operation-loading>span:last-child{min-width:0}
.operation-spinner{display:inline-block!important;width:16px!important;height:16px!important;min-width:16px;flex:0 0 16px;box-sizing:border-box;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:control-spin .8s linear infinite}
@media(prefers-reduced-motion:reduce){.operation-spinner{animation:none;border-style:dotted}}
.chat-photo-viewer>.photo-desktop-nav{position:absolute;top:50%;transform:translateY(-50%)}
.chat-photo-viewer>.photo-desktop-nav:first-of-type{left:8px}
.chat-photo-viewer>.photo-desktop-nav:nth-of-type(2){right:8px}
.chat-photo-viewer>.photo-desktop-nav>span{display:none}
.chat-photo-viewer>.photo-viewer-track{outline:none}

/* Names flow across the available width in both circle and friend pickers. */
.circle-choices.circle-choices {
 display:flex; flex-wrap:wrap; align-items:center; gap:0 12px;
 padding:0; margin:6px 0 12px; min-width:0; max-width:100%; border:0; background:transparent;
}
.circle-choices[hidden] {display:none;}
.circle-choices legend {padding:0;}
.circle-choices button.circle-choice {
 flex:0 1 auto; width:auto; max-width:100%; min-width:0; min-height:44px;
 margin:0; padding:4px 6px; border:0; border-radius:0; background:transparent; box-shadow:none;
 color:var(--muted,#52647a); font:inherit; overflow-wrap:anywhere;
}
.circle-choices button.circle-choice[aria-pressed=true] {color:var(--brand,#235fb1);font-weight:700;}
.circle-choices button.circle-choice:focus-visible {outline:2px solid currentColor;outline-offset:-2px;}

.sharing-fold-wrap{position:relative}.sharing-fold-wrap #sharing-create{position:absolute;inset-inline-end:0;top:0;margin:0;z-index:1}.sharing-fold-wrap #sharing-section>summary{min-height:48px;padding-inline-end:9em;display:flex;align-items:center}

.sharing-circle>summary{display:flex;align-items:center;gap:8px}.sharing-circle>summary>span{flex:1;min-width:0;overflow-wrap:anywhere}.sharing-edit{display:flex;align-items:center;justify-content:center;background:transparent;border:0;box-shadow:none;color:var(--muted);padding:10px;margin:0;flex:none}.sharing-edit .ico{width:24px;height:24px}.sharing-group{display:block;margin:8px 0 16px auto}

.joined-circle-row{display:flex;align-items:center;gap:12px;padding:12px 0}.joined-circle-row>span{flex:1;min-width:0;overflow-wrap:anywhere}.joined-circle-row>button{flex:none;margin:0}
/* Shared selection flow approved 2026-11-02. Only selector dialogs use this layout. */
.drawer-choice-source{display:none!important}
dialog.selection-drawer{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,560px);max-width:100%;max-height:85dvh;padding:12px 20px max(20px,env(safe-area-inset-bottom));border:0;border-radius:22px 22px 0 0;background:var(--page);color:var(--ink);box-shadow:none;overflow:auto}
dialog.selection-drawer::backdrop{background:#14223766}
.selection-drawer-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;position:sticky;top:-12px;background:var(--page);z-index:1;padding:4px 0 10px}
.selection-drawer-header h2{font-size:1.125rem;text-align:center;margin:0;overflow-wrap:anywhere}
.selection-drawer button{border:0;box-shadow:none;font:inherit;min-height:48px;background:transparent;color:var(--ink);border-radius:0}
.selection-drawer-header button:last-child{color:var(--accent)}
.selection-drawer-search{width:100%;min-height:48px;margin:0 0 12px;background:var(--soft);color:var(--ink);border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.selection-drawer-list{display:flex;flex-direction:column;gap:4px}
.selection-drawer .selection-drawer-option{display:flex;align-items:center;gap:12px;width:100%;padding:10px 8px;text-align:left;border-radius:10px;min-height:64px}
.selection-drawer .selection-drawer-option[aria-pressed=true]{background:var(--accent-soft);color:var(--accent)}
.selection-drawer-name{min-width:0;overflow-wrap:anywhere}
.selection-drawer-avatar{position:relative;display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;overflow:hidden;background:var(--soft);color:var(--muted)}
.selection-drawer-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}
.selection-drawer-chips{flex-direction:row;flex-wrap:wrap;gap:10px}
.selection-drawer .selection-drawer-chips .selection-drawer-option{width:auto;min-height:48px;padding:8px 16px;max-width:100%}
.selection-drawer-status,.selection-drawer-empty{color:var(--muted);font-size:.875rem;margin:16px 0 0}
button.selection-drawer-trigger{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:56px;padding:10px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--ink);text-align:left}
.selection-drawer-trigger[hidden]{display:none}
.selection-drawer-summary{color:var(--accent);text-align:right;overflow-wrap:anywhere;max-width:65%}
.operation-button-busy{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.operation-button-busy .operation-spinner{display:inline-block;flex:none;width:16px;height:16px;border:2px solid var(--line);border-top-color:currentColor;border-radius:50%;animation:operation-spin .8s linear infinite}
@keyframes operation-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.operation-button-busy .operation-spinner{animation:none}}
/* Shared content editor: own header; selection remains a separate drawer. */
.shared-editor-header{display:grid!important;grid-template-columns:80px minmax(0,1fr) 80px;align-items:center;gap:8px;padding:8px 0;margin-bottom:16px;border-bottom:1px solid var(--line);background:var(--page)}
.shared-editor-header h2{margin:0;font-size:1.125rem;text-align:center;overflow-wrap:anywhere}
.shared-editor-header>button{grid-row:1;grid-column:auto;justify-self:stretch;align-self:center;width:100%;min-width:0;min-height:48px;padding:4px 0;border:0!important;border-radius:0;background:transparent!important;color:var(--accent);box-shadow:none;font-size:.9375rem;overflow-wrap:anywhere;line-height:1.35;text-align:center}
.shared-editor-header>button:first-child{grid-column:1}
.shared-editor-header>h2{grid-row:1;grid-column:2;min-width:0}
.shared-editor-header>button:last-child{grid-column:3}
#media-dialog>.shared-editor-header h2{margin:0}
#media-dialog>.shared-editor-header{grid-template-columns:minmax(56px,1fr) minmax(0,2fr) minmax(56px,1fr)}
#media-dialog>.shared-editor-header h2{font-size:1.125rem;line-height:1.35}
.selection-drawer-header>h2:focus,#media-title:focus{outline:none}
/* Override legacy ID-based media dialog styles after moving actions into the shared header. */
#media-dialog>.shared-editor-header>button,#media-dialog>.shared-editor-header>#media-send{color:var(--accent)}
#media-dialog.shared-editor{width:min(100%,560px);max-width:100%;border:0;border-radius:0;background:var(--page);color:var(--ink)}
#media-dialog.shared-editor #media-preview{background:transparent;border-radius:0}
#media-dialog.shared-editor>.dialog-actions{display:none}
#media-dialog.shared-editor .chat-selected-photo{margin:0;flex:0 1 calc(50% - 6px)}
#media-dialog.shared-editor .chat-selected-media{position:relative;display:inline-block;max-width:100%;vertical-align:top;line-height:0}
#media-dialog.shared-editor .chat-selected-media>img{width:auto;height:auto;margin:0;max-width:100%}
#media-dialog.shared-editor .chat-selected-media>button{display:grid;place-items:center;top:-4px;right:-4px;width:48px;height:48px;padding:0;background:transparent;color:#26344b;text-shadow:none;box-shadow:none;border:0}
#media-dialog.shared-editor .media-remove-mark{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#fff;color:#26344b;font:inherit;font-size:24px;line-height:1}
.shared-editor .dialog-actions:empty{display:none}
.circle-detail .shared-editor-header button:last-child{display:grid;place-items:center;min-width:48px;min-height:48px}
.circle-detail .shared-editor-header button:last-child svg{display:block;width:24px;height:24px;flex:none}
dialog.shared-editor{width:min(100%,560px);height:100dvh;max-height:100dvh;max-width:100%;margin:0 auto;inset:0;border:0;border-radius:0;background:var(--page);color:var(--ink);padding:16px 20px max(20px,env(safe-area-inset-bottom));overflow:auto}
#gallery-editor.shared-editor:not([hidden]){position:fixed;inset:0;z-index:100;width:min(100%,560px);height:100dvh;max-height:100dvh;margin:auto;padding:16px 20px max(20px,env(safe-area-inset-bottom));overflow:auto;background:var(--page);color:var(--ink)}
#gallery-editor.shared-editor .shared-editor-header{position:sticky;top:-16px;z-index:2}
#gallery-editor.shared-editor textarea{width:100%;min-height:110px;resize:none}
#gallery-editor.shared-editor #gallery-previews{display:flex;flex-wrap:wrap;gap:12px}
#gallery-editor.shared-editor .gallery-preview-tile{width:calc(50% - 6px);max-width:180px}
#gallery-editor.shared-editor .gallery-preview-tile img,#gallery-editor.shared-editor .gallery-preview-tile video{display:block;width:100%;max-height:220px;object-fit:contain}
.sharing-circle-entry{width:100%;display:flex;align-items:center;gap:12px;background:transparent;border:0;border-radius:0;box-shadow:none;padding:12px 0;text-align:left;color:var(--ink);min-height:56px}
.sharing-circle-entry small{color:var(--muted)}.sharing-circle-entry svg{margin-left:auto;width:24px;height:24px}
.circle-detail-tools{display:flex;gap:24px;margin:12px 0}.circle-detail-tools button{display:flex;flex-direction:column;align-items:center;gap:4px;background:transparent;border:0;box-shadow:none;color:var(--accent);min-height:48px}.circle-detail-tools svg{width:24px;height:24px}
#sharing-delete{display:block;margin-top:40px;background:transparent;color:var(--danger);border:0;box-shadow:none}
#sharing-delete[hidden]{display:none}
.selection-drawer-tabs{display:flex;gap:24px;margin:0 0 12px}.selection-drawer-tabs button[aria-pressed=true]{color:var(--accent);border-bottom:2px solid var(--accent)}
.home-notifications #friend-inbox{margin:0}.home-notifications .friend-updates{margin:0}.home-notifications #friend-updates h3{display:none}.home-notifications .announcement-home{margin:0;padding:12px 0;background:transparent;border:0}
.shared-share-editor .game-share-image{display:block;max-width:100%;max-height:320px;width:auto;height:auto;margin:12px auto;object-fit:contain}.shared-share-editor textarea{width:100%;min-height:100px;resize:none}.shared-share-editor .shared-editor-header{position:sticky;top:0;z-index:2}
#media-dialog.shared-editor #media-preview{display:flex;flex-wrap:wrap;gap:12px}#media-dialog.shared-editor .chat-selected-photo{width:calc(50% - 6px);max-width:180px}#media-dialog.shared-editor video,#media-dialog.shared-editor img{max-width:100%;max-height:250px;object-fit:contain}
.selection-drawer,.shared-editor{box-sizing:border-box}
/* Editors deliberately override legacy primary buttons and empty preview spacing. */
#gallery-editor.shared-editor{border:0;border-radius:0}
#gallery-editor.shared-editor .shared-editor-header{grid-template-columns:80px minmax(0,1fr) 80px;gap:8px}
#gallery-editor.shared-editor #gallery-publish,#gallery-editor.shared-editor .shared-editor-header button{background:transparent!important;border:0!important;box-shadow:none!important;padding:4px 0;color:var(--accent);font-size:15px;min-width:0;width:auto;overflow-wrap:anywhere;line-height:1.35}
#gallery-editor.shared-editor #gallery-previews:empty{display:none;min-height:0;margin:0;padding:0}
#gallery-editor.shared-editor .photo-picker{background:transparent;border:0;box-shadow:none;padding:8px 0;margin:8px 0;min-height:48px}
#gallery-editor.shared-editor textarea,.shared-share-editor textarea{background:var(--soft);border:1px solid var(--line);border-radius:12px;color:var(--ink);font:inherit;padding:12px;box-sizing:border-box;resize:none}
.shared-share-editor{padding:0 16px 20px}.shared-share-editor .shared-editor-header{grid-template-columns:80px minmax(0,1fr) 80px;gap:8px}.shared-share-editor .shared-editor-header button{display:flex;align-items:center;gap:4px;justify-content:center;min-width:0;font-size:15px;overflow-wrap:anywhere;line-height:1.35}.shared-share-editor .shared-editor-header svg{width:20px;height:20px;flex:none}
#gallery-editor.shared-editor:not([hidden]){display:flex;flex-direction:column;align-items:stretch;gap:12px}
#gallery-editor.shared-editor .shared-editor-header{flex:none;margin:0 0 4px}
#gallery-editor.shared-editor textarea{height:120px;min-height:120px;flex:none}
#gallery-editor.shared-editor #gallery-previews{margin:0;flex:none}
#gallery-editor.shared-editor .gallery-preview-tile{flex:0 0 calc(50% - 6px);width:calc(50% - 6px);height:160px;max-width:none}
#gallery-editor.shared-editor .gallery-preview-tile img{height:100%;border-radius:12px}
#gallery-editor.shared-editor .gallery-preview-remove{background:transparent;box-shadow:none;color:var(--ink);text-shadow:0 0 3px white;border-radius:0;min-height:48px}

/* Circle name is an inline edit row, never a browser-default square field. */
#sharing-dialog #sharing-name{display:block;width:100%;min-height:48px;padding:10px 0;margin:0 0 12px;background:transparent;color:var(--ink);font:inherit;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;box-sizing:border-box}

.game-center .match-tile.match-dragging{overflow:visible;z-index:1;background:var(--accent-soft)}
.game-center .match-dragging .cat-emoji{will-change:transform;pointer-events:none}
.game-center .match-placeholder{background:var(--soft)}

/* Align circle names with the fold title, not its disclosure arrow (9 + 8 + 8px). */
.sharing-circle-entry{padding-inline-start:25px;box-sizing:border-box}
.sharing-circle-entry>span{min-width:0;overflow-wrap:anywhere}
.sharing-circle-entry small,.sharing-circle-entry svg{flex-shrink:0}

.sharing-circle-entry>span{font-size:1rem;font-weight:650;line-height:1.5}
.diary-post-editor .photo-picker{background:transparent;border:0;box-shadow:none;padding:8px 0}
.diary-post-editor .gallery-preview-remove{background:transparent;box-shadow:none;color:var(--ink);text-shadow:0 0 3px white;border-radius:0}

.diary-editor-modal{position:fixed!important;inset:0!important;top:0;bottom:auto!important;margin:0 auto!important;width:min(100%,560px)!important;max-width:100%!important;height:var(--diary-height,100dvh)!important;max-height:var(--diary-height,100dvh)!important;padding:0!important;border:0!important;border-radius:0!important;transform:none!important;background:var(--page);color:var(--ink);overflow:hidden!important;overscroll-behavior:none}
.diary-editor-modal::backdrop{background:#14223780}
.diary-editor-layout,.diary-post-editor form.diary-editor-layout{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}
.diary-editor-modal #gallery-editor.shared-editor:not([hidden]){position:static;inset:auto;width:100%;height:100%;max-height:100%;margin:0;padding:0;overflow:hidden;gap:0}
.diary-editor-layout>.shared-editor-header,#gallery-editor.diary-editor-layout>.shared-editor-header{position:static;display:block!important;padding:16px 20px;margin:0;flex:none;border-bottom:1px solid var(--line)}
.diary-editor-layout>.shared-editor-header h2{text-align:left;margin:0;font-size:20px}
.diary-editor-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 20px;touch-action:pan-y}
.diary-editor-scroll>label{display:block;margin-bottom:8px}.diary-editor-scroll textarea{width:100%;box-sizing:border-box}
.diary-editor-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:8px 20px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--page)}
.diary-editor-actions button,#gallery-editor.shared-editor .diary-editor-actions button{min-height:48px;min-width:72px;max-width:60%;padding:4px 8px;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--accent);font:inherit;font-size:17px;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.diary-editor-actions svg{width:24px;height:24px;flex:none}.diary-editor-actions button:disabled{opacity:.55}
.diary-audience-trigger{margin-top:16px;border-top:1px solid var(--line)!important;min-height:56px}.diary-audience-trigger .selection-drawer-summary{overflow-wrap:anywhere;white-space:normal}
.diary-visibility-label{display:block;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.diary-audience-hint{font-size:14px;line-height:1.5;color:var(--muted)}
.diary-editor-modal .diary-edit-body{overflow:visible}.diary-editor-modal .diary-edit-photos{margin:12px 0}
.shared-share-editor.diary-editor-layout{padding:0;height:100%;min-height:0}.shared-share-editor .game-share-image{max-height:240px;width:auto;max-width:100%;display:block;margin:0 auto 12px}


.settings-row .selection-drawer-trigger{width:auto;min-width:0;max-width:70%;padding:0;text-align:right;color:var(--accent)}
.friend-search-drawer .selection-drawer-header{grid-template-columns:64px minmax(0,1fr) 64px}
.friend-search-result{display:flex;align-items:center;gap:12px;padding:12px 0}.friend-search-result[hidden]{display:none}
.friend-search-result strong{flex:1;min-width:0;overflow-wrap:anywhere}.friend-search-result .avatar{flex:none;width:44px;height:44px;border-radius:50%;overflow:hidden}
.friend-search-result button{color:var(--accent);max-width:35%;overflow-wrap:anywhere}
.friend-search-status{color:var(--muted);font-size:.875rem}.friend-search-status:empty{display:none}
.friend-search-links{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:16px}.friend-search-links button{color:var(--accent)}
/* Approved game-center grid: shared production layout, no QA overlay. */
.game-center .game-category-filters{display:flex;flex-wrap:wrap;align-items:center;gap:0 18px;margin:0;padding:0}
.game-center .game-category-button{position:relative;flex:none;min-height:44px;max-width:100%;padding:8px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--muted);font:inherit;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.game-center .game-category-button[aria-pressed="true"]{color:var(--accent);font-weight:700}
.game-center .game-category-button[aria-pressed="true"]:after{content:"";position:absolute;bottom:3px;left:0;right:0;height:2px;border-radius:2px;background:currentColor}
.game-center .game-category-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.game-center .game-icon-entry[hidden]{display:none}
.game-center .game-icon-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px 10px;padding:18px 0}
.game-center .game-icon-entry{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;min-width:0;min-height:130px;padding:0;border:0;background:transparent;box-shadow:none;color:var(--text);text-align:center;font:inherit}
.game-center .game-icon-entry>strong{font-size:15px;line-height:1.5;overflow-wrap:anywhere;width:100%}
.game-center .game-icon-entry>img,.game-center .game-icon-entry>.cat-emoji,.game-center .game-icon-entry>svg{width:76px!important;height:84px!important;object-fit:contain;flex:none}
.game-center .game-module-stage{height:calc(100dvh - 240px);min-height:400px;width:100%}.game-module-stage iframe{width:100%;height:100%;border:0;display:block;background:transparent}
@media(min-width:650px){.game-center .game-icon-grid{grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:28px 20px}}
.game-center .game-icon-art{position:relative;display:flex;align-items:center;justify-content:center;width:76px;height:84px;flex:none}
.game-center .game-icon-art>img,.game-center .game-icon-art>.cat-emoji,.game-center .game-icon-art>svg{width:76px!important;height:84px!important;object-fit:contain;flex:none}
.game-center .game-icon-art>img.catalog-game-icon{width:76px!important;height:76px!important;object-fit:cover;border-radius:50%}
.game-center .game-icon-art>[hidden]{display:none!important}
.game-center .ranking-game-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-width:520px;margin-inline:auto;gap:22px}
.ranking-scope,.ranking-condition{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:start;margin:12px 0}
.ranking-period{text-align:center}
.ranking-results{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.ranking-result{display:grid;grid-template-columns:28px 32px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:52px;padding:6px 8px;border-radius:12px}
.ranking-result.is-me{background:color-mix(in srgb,var(--accent,#3266b0) 10%,transparent);color:var(--accent,#3266b0)}
.ranking-avatar{position:relative;display:grid;place-items:center;border-radius:50%;width:32px;height:32px;overflow:hidden;background:color-mix(in srgb,currentColor 12%,transparent)}
.ranking-avatar img{position:absolute;width:100%;height:100%;object-fit:cover}
.ranking-name{overflow-wrap:anywhere;min-width:0;font-size:15px}
.ranking-value{font-variant-numeric:tabular-nums;text-align:end;font-size:15px}
.ranking-personal{text-align:center;margin:30px 0 20px;overflow-wrap:anywhere}
.ranking-personal-score{font-size:30px;line-height:1.5}
.ranking-footer{text-align:center}.ranking-footer button{margin:8px}
@media(max-width:360px){.ranking-result{gap:5px;padding-inline:2px;grid-template-columns:25px 28px minmax(0,1fr) auto}.ranking-avatar{width:28px;height:28px}.ranking-value{font-size:14px}}
.game-icon-progress{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#102033b8;border-radius:50%;color:#fff;pointer-events:none}
.game-icon-ring{position:absolute;inset:5px;border:3px solid #ffffff66;border-top-color:#fff;border-radius:50%;animation:game-download-spin .9s linear infinite}
.game-icon-progress.determinate .game-icon-ring{border:0;background:conic-gradient(#fff var(--game-progress),#ffffff44 0);mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 0);animation:none}
.game-icon-percent{font-size:15px;font-weight:700;line-height:1}.game-icon-error{font-size:13px;color:var(--accent);line-height:1.4}
@keyframes game-download-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.game-icon-ring{animation:none}}
