.social-dialog{width:min(var(--dialog-width-wide),calc(100% - var(--dialog-gutter)));max-height:var(--dialog-max-block);box-sizing:border-box;padding:0 var(--space-8) var(--space-8);background:var(--canvas);color:var(--text);border:var(--stroke-thin) solid var(--border);border-radius:var(--dialog-radius)}
.social-dialog::backdrop{background:var(--overlay-strong)}.social-toolbar{position:sticky;top:0;display:flex;justify-content:flex-end;background:var(--canvas);z-index:var(--z-rail);padding-block:var(--space-3)}
.social-toolbar button{width:var(--button-target-height);height:var(--button-target-height);padding:0;display:grid;place-items:center;background:transparent;border-color:transparent;color:var(--text-secondary)}
.social-editor:empty{display:none}.social-dialog.social-editing{width:min(var(--dialog-width-workspace),calc(100% - var(--dialog-gutter)));display:grid;grid-template-columns:minmax(0,1fr) var(--size-side-editor);column-gap:var(--space-8)}.social-editing .social-toolbar{grid-column:1/-1}.social-editing .social-editor{grid-column:2;grid-row:2;align-self:start;position:sticky;top:var(--space-16);margin:0;padding-block:0}.social-editing .social-editor .member-drawer{border-left:var(--stroke-thin) solid var(--border)}
.social-editing .member-drawer{height:var(--size-member-drawer);max-height:calc(var(--dialog-max-block) - var(--size-member-drawer-clearance))}
@media(max-width:800px){.social-dialog.social-editing{grid-template-columns:minmax(0,1fr)}.social-editing>div:not(.social-toolbar):not(.social-editor){display:none}.social-editing .social-editor{grid-column:1;grid-row:2}}
.social-tabs{display:flex;gap:var(--space-4);border-bottom:var(--stroke-thin) solid var(--border);margin-top:var(--space-6)}.social-tabs button{background:transparent;color:var(--text-secondary);border-color:transparent;border-bottom:var(--stroke-emphasis) solid transparent;border-radius:0}.social-tabs button[aria-current="page"]{color:var(--text);border-bottom-color:var(--brand)}
.social-content{min-height:var(--size-panel-min-block);padding-top:var(--space-4)}.social-empty{padding-block:var(--space-8);text-align:center;color:var(--text-muted)}.social-post{display:block;white-space:pre-wrap;overflow-wrap:anywhere;padding-block:var(--space-6);color:var(--text);text-decoration:none;border-bottom:var(--stroke-thin) solid var(--border);line-height:var(--leading-body)}
.social-person{display:flex;align-items:center;gap:var(--space-4);width:100%;text-align:left;margin-block:var(--space-3)}
.social-content .member-layout{grid-template-columns:minmax(0,1fr)}.social-content .member-nav{position:static;display:flex;overflow-x:auto;padding-bottom:var(--space-2)}.social-content .member-nav button{flex-shrink:0}.social-content .member-heading{display:none}
.post-author>button{background:transparent;border:0;padding:0;text-align:left;font:inherit;color:inherit;font-weight:var(--button-weight)}
@media(max-width:700px){.social-dialog{padding-inline:var(--space-4)}}

/* Threads-style replies: a thin line from the post's avatar column down through its replies. */
.thread-item{border-bottom:var(--stroke-thin) solid var(--border)}.thread-item>article{border-bottom:0}
.thread-replies{margin-left:calc(var(--size-control-target) / 2);padding-left:var(--space-4);border-left:var(--stroke-thin) solid var(--border)}
.thread-replies>article{border-bottom:0;padding-block:var(--space-3)}
.thread-more{margin:0 0 var(--space-3);padding:var(--space-2) 0;border:0;background:transparent;color:var(--text-secondary);font-size:var(--text-sm);cursor:pointer}.thread-more:hover{color:var(--brand)}

/* Dialog close: the shared spinning X (member-center.css), quiet like the member drawer. */
#detail .member-drawer-close{background:transparent;border-color:transparent;color:var(--text-secondary)}#detail .member-drawer-close:hover{color:var(--text)}

/* Reactions on one's own post read as counts, not dead buttons. */
.reactions button[aria-pressed="true"]{color:var(--brand)}

/* Icons are one-colour CSS masks inlined as data URIs (no request each). */
/* Threads-style card: the text leads, the furniture stays quiet. */
.post-body{font-size:var(--text-base);line-height:var(--leading-body);margin:var(--space-2) 0 var(--space-3)}
.post-heading time{font-size:var(--text-xs);color:var(--text-muted)}
.post-bar{display:flex;align-items:center;gap:var(--space-1);margin-top:var(--space-2)}
.bar-button,.bar-count,.post-more>summary{display:inline-flex;align-items:center;gap:var(--space-1);min-height:var(--button-target-height);padding:0 var(--space-3);border:0;border-radius:var(--radius-pill);background:transparent;color:var(--text-secondary);font-size:var(--text-sm);cursor:pointer}
.bar-button:hover,.post-more>summary:hover{background:var(--surface-hover);color:var(--text)}.bar-count{cursor:default}
.post-more{position:relative;margin-left:auto}.post-more>summary{list-style:none;font-size:var(--text-lg)}.post-more>summary::-webkit-details-marker{display:none}
.post-menu{position:absolute;right:0;top:100%;z-index:var(--z-popover);display:grid;min-width:var(--size-menu-min);padding:var(--space-2);border:var(--stroke-thin) solid var(--border);border-radius:var(--radius-card);background:var(--surface-raised);box-shadow:var(--shadow-dialog)}
.post-menu>button,.post-menu>a{display:block;text-align:left;padding:var(--space-2) var(--space-3);border:0;border-radius:var(--radius-control);background:transparent;color:var(--text);font-size:var(--text-sm);text-decoration:none}
.post-menu>button:hover,.post-menu>a:hover{background:var(--surface-hover)}
.reaction-picker{display:inline-flex;gap:var(--space-1);margin:var(--space-1) 0;padding:var(--space-1);border:var(--stroke-thin) solid var(--border);border-radius:var(--radius-card);background:var(--surface-raised)}
.reaction-picker[hidden]{display:none}.reaction-picker .bar-button{padding:var(--button-padding-y) 0;min-width:var(--button-target-height)}.reaction-picker .bar-button[aria-pressed="true"]{background:var(--brand-wash)}
.card-note:empty{display:none}.card-note{display:block;font-size:var(--text-xs)}

/* In a card the badge is a picture (its alt text names it); name and criterion open on click. */
.post-author+.post-body{margin-block:var(--space-1)}

/* Profile: a Threads-like header, then a game card. Everyone sees the rank ladder and specialty;
   the road to the next rank (four meters) is the owner's own screen. */
.social-eyebrow{font-size:var(--text-xs);color:var(--text-muted);letter-spacing:var(--tracking-eyebrow);text-transform:uppercase;margin:0}
.profile-hero{padding-block:var(--space-2) var(--space-6)}
.profile-top{display:flex;justify-content:space-between;align-items:center;gap:var(--space-6)}
.profile-names{min-width:0}
.profile-names h1{margin:0;font-size:var(--text-title);line-height:var(--leading-heading);letter-spacing:var(--tracking-heading);overflow-wrap:anywhere}
.profile-tier{margin:var(--space-2) 0 0;color:var(--text-secondary);font-size:var(--text-sm)}
.social-bio{white-space:pre-wrap;overflow-wrap:anywhere;line-height:var(--leading-body);margin:var(--space-5) 0 0}
.profile-stats{display:flex;flex-wrap:wrap;gap:var(--space-5);margin-block:var(--space-5)}
.profile-stat{display:inline-flex;align-items:baseline;gap:var(--space-2);padding:0;border:0;background:transparent;color:var(--text-secondary);font:inherit;font-size:var(--text-sm)}
.profile-stat strong{color:var(--text);font-weight:var(--weight-semibold);font-variant-numeric:tabular-nums}
button.profile-stat{cursor:pointer}button.profile-stat:hover{color:var(--text)}
.profile-actions{display:flex;align-items:center;gap:var(--space-3)}
.profile-actions>:first-child{flex:1}
.profile-menu{position:relative}
.profile-menu>summary{display:grid;place-items:center;inline-size:var(--button-target-height);block-size:var(--button-target-height);border:var(--stroke-thin) solid var(--border);border-radius:var(--radius-pill);color:var(--text-secondary);cursor:pointer;list-style:none;font-size:var(--text-lg)}
.profile-menu>summary::-webkit-details-marker{display:none}.profile-menu>summary:hover,.profile-menu[open]>summary{color:var(--text);background:var(--surface-hover)}
@media(hover:hover){.profile-menu>summary svg{transition:transform var(--motion-fast)}.profile-menu>summary:hover svg{transform:rotate(60deg)}}

.profile-rank-card{position:relative;overflow:hidden;margin-block:0 var(--space-6);padding:var(--space-5);border:var(--stroke-thin) solid var(--border);border-radius:var(--radius-card);background:linear-gradient(160deg,var(--brand-wash),transparent 60%),var(--surface)}
.rank-head{display:flex;align-items:center;gap:var(--space-4);flex-wrap:wrap}
.rank-head>div{display:grid;gap:var(--space-1);min-width:0;flex:1 1 var(--size-copy-min)}.rank-head>div:lang(ko){word-break:keep-all}
.rank-head .rank-badge{inline-size:var(--size-rank-badge);block-size:var(--size-rank-badge);object-fit:contain;filter:drop-shadow(0 var(--space-1) var(--space-3) var(--brand-wash))}
.rank-title{font-size:var(--text-xl);line-height:var(--leading-heading)}
.rank-stage{font-size:var(--text-xs);color:var(--text-muted);font-variant-numeric:tabular-nums}

.rank-specialty-label{color:var(--text-muted);font-size:var(--text-xs)}
.rank-ladder{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--space-1);margin:var(--space-5) 0 0;padding:0;list-style:none;counter-reset:rank}
.rank-ladder li{position:relative;display:grid;justify-items:center;gap:var(--space-2);counter-increment:rank}
.rank-ladder li::before{content:counter(rank);display:grid;place-items:center;inline-size:var(--size-rank-step);block-size:var(--size-rank-step);border-radius:var(--radius-round);border:var(--stroke-thin) solid var(--border);background:var(--canvas);color:var(--text-muted);font-size:var(--text-xs);font-variant-numeric:tabular-nums;z-index:var(--z-raised)}
.rank-ladder li:not(:last-child)::after{content:"";position:absolute;inset-block-start:calc(var(--size-rank-step) / 2);inset-inline-start:50%;inline-size:100%;border-top:var(--stroke-emphasis) solid var(--border)}
.rank-ladder li[data-state="passed"]::before{content:"✓";background:linear-gradient(var(--brand-wash),var(--brand-wash)),var(--canvas);border-color:var(--brand-border);color:var(--brand)}
.rank-ladder li[data-state="passed"]::after{border-top-color:var(--brand)}
.rank-ladder li[data-state="current"]::before{background:var(--brand);border-color:var(--brand);color:var(--on-brand);font-weight:var(--weight-bold);box-shadow:0 0 0 var(--space-1) var(--brand-wash)}
.rank-step-name{font-size:var(--text-xs);color:var(--text-muted);text-align:center;line-height:var(--leading-ui)}.rank-step-name:lang(ko){word-break:keep-all}
.rank-ladder li[data-state="current"] .rank-step-name{color:var(--text);font-weight:var(--weight-semibold)}
.rank-ladder li[data-state="locked"] .rank-step-name{opacity:var(--opacity-dim)}

.profile-quest{display:grid;gap:var(--space-3);margin-top:var(--space-5);padding-top:var(--space-5);border-top:var(--stroke-thin) dashed var(--border)}
.quest-head{display:flex;justify-content:space-between;align-items:baseline;gap:var(--space-3)}
.quest-percent{font-size:var(--text-xl);font-weight:var(--weight-bold);color:var(--brand);font-variant-numeric:tabular-nums}
.quest-row{display:grid;grid-template-columns:1fr auto;gap:var(--space-1) var(--space-3);font-size:var(--text-sm)}
.quest-label{color:var(--text-secondary)}.quest-value{font-variant-numeric:tabular-nums;color:var(--text)}
.quest-row[data-done="true"] .quest-value{color:var(--brand)}
.quest-bar{grid-column:1/-1;display:block;block-size:var(--space-2);border-radius:var(--radius-pill);background:var(--surface-hover);overflow:hidden}
.quest-bar>span{display:block;block-size:100%;border-radius:inherit;background:linear-gradient(90deg,var(--brand-border),var(--brand));transition:inline-size var(--motion-menu)}
.quest-legend{margin:0;font-weight:var(--weight-semibold);color:var(--brand)}
.quest-private{margin:0;font-size:var(--text-xs);color:var(--text-muted)}
@media(prefers-reduced-motion:reduce){.quest-bar>span,.profile-menu>summary svg{transition:none}}
.profile-badges{margin-block:0 var(--space-4)}
.profile-section-title{margin:0 0 var(--space-3);font-size:var(--text-sm);font-weight:var(--weight-semibold);color:var(--text-secondary)}
@media(max-width:700px){.rank-ladder li:not([data-state="current"]) .rank-step-name{visibility:hidden}.rank-ladder li[data-state="current"] .rank-step-name{white-space:nowrap}.profile-rank-card{padding:var(--space-4)}}

/* Threads-style card: the face holds its own column; name, text, chips, translation and bar start on one edge
   (controls with inner padding are pulled back by that padding so their icon or text lines up). */
body{--post-face:var(--size-avatar-sm)}
:is(#feed,#detail,body) article.has-face{position:relative;padding:var(--space-4) var(--space-4) var(--space-2) calc(var(--space-4) + var(--post-face) + var(--space-3))}
.has-face>.post-face{position:absolute;inset-inline-start:var(--space-4);inset-block-start:var(--space-4);margin:0}
.has-face .post-heading{min-height:var(--post-face);align-items:center}
.post-author .rank-badge{width:var(--size-badge-inline);height:var(--size-badge-inline)}
/* Badge tiers (배지 v3, 2026-11-08): one picture per series; the tier is its ring and glow. Gold and silver are theme
   tokens; bronze and violet lean toward the text colour, so each theme gets its own depth with no theme selector (the
   app SDK's shadow root has no document root). */
.badge-mark,.badge-medal,.badge-pips>span,.reveal-card{--badge-ring:color-mix(in srgb,var(--bronze-300) 75%,var(--text));--badge-glow:transparent}
:is(.badge-mark,.badge-medal,.badge-pips>span,.reveal-card)[data-tier="silver"]{--badge-ring:var(--layer-silver)}
:is(.badge-mark,.badge-medal,.badge-pips>span,.reveal-card)[data-tier="gold"]{--badge-ring:var(--layer-gold);--badge-glow:color-mix(in srgb,var(--layer-gold) 45%,transparent)}
:is(.badge-mark,.badge-medal,.badge-pips>span,.reveal-card)[data-tier="legend"]{--badge-ring:color-mix(in srgb,var(--violet-300) 70%,var(--text));--badge-glow:color-mix(in srgb,var(--violet-300) 50%,transparent)}
/* Up to three next to a name: small, ringed, never a button (the wall is on the profile). */
.badge-row{display:inline-flex;align-items:center;gap:var(--space-half);flex-shrink:0}
.badge-mark{inline-size:var(--size-badge-inline);block-size:var(--size-badge-inline);border-radius:var(--radius-round);object-fit:contain;box-shadow:0 0 0 var(--stroke-thin) var(--badge-ring),0 0 var(--space-1) var(--badge-glow)}
.has-face .post-body{margin-block:var(--space-1) var(--space-2)}
.has-face .mention-chips{margin-block:var(--space-2) 0}
.has-face .wagle-translation{margin-block-start:0}
.post-bar .wagle-translation-controls{display:inline-flex;gap:var(--space-1)}.has-face .wagle-translation:not(:has(.wagle-translation-panel:not([hidden]),[role=status]:not(:empty))){display:none}
.has-face .post-bar{margin-inline-start:calc(-1 * var(--space-3));margin-top:calc(-1 * var(--space-1))}
.bar-glyph{display:inline-flex;align-items:center;gap:var(--space-1)}
.bar-icon{display:inline-block;width:var(--size-icon);height:var(--size-icon);background:currentColor;-webkit-mask:var(--icon) center/contain no-repeat;mask:var(--icon) center/contain no-repeat}
.bar-icon[data-icon="reply"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.7 12a8.7 8.7 0 0 1-12.9 7.6L3.3 21l1.4-4.4A8.7 8.7 0 1 1 20.7 12z'/%3E%3C/svg%3E")}.bar-icon[data-icon="repost"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 2.5l3.5 3.5L17 9.5'/%3E%3Cpath d='M3.5 11.5V10a4 4 0 0 1 4-4h13'/%3E%3Cpath d='M7 21.5L3.5 18 7 14.5'/%3E%3Cpath d='M20.5 12.5V14a4 4 0 0 1-4 4h-13'/%3E%3C/svg%3E")}.bar-icon[data-icon="smile"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 14.5a4.5 4.5 0 0 0 7 0'/%3E%3Cpath d='M9 9.5h.01M15 9.5h.01'/%3E%3C/svg%3E")}.bar-icon[data-icon="globe"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3a14 14 0 0 1 0 18a14 14 0 0 1 0-18z'/%3E%3C/svg%3E")}.wagle-translation-trigger .bar-icon{width:var(--size-icon-sm);height:var(--size-icon-sm)}
.bar-number{font-size:var(--text-sm);font-variant-numeric:tabular-nums}
.bar-emoji{font-size:var(--text-sm);letter-spacing:var(--tracking-normal)}
.thread-replies{margin-left:calc(var(--space-4) + var(--post-face) / 2);padding-left:0}
.thread-replies>article.has-face{padding-inline-start:calc(var(--space-4) + var(--post-face) + var(--space-3))}

/* Alerts: a quiet bell with an orange count, the list in a dialog, and a toast that rises while reading. */
.bar-icon[data-icon="bell"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 1 1 12 0c0 5 2 7 2 7H4s2-2 2-7'/%3E%3Cpath d='M10 20a2 2 0 0 0 4 0'/%3E%3C/svg%3E")}
.bar-icon[data-icon="photo"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M21 16l-5-5L7 19'/%3E%3C/svg%3E")}
.bar-icon[data-icon="target"]{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3C/svg%3E")}

.alerts-button[hidden]{display:none}


.alerts-button[data-unread="true"] svg{animation:alert-ring var(--motion-attention) ease-in-out 2;transform-origin:50% 10%}
@keyframes alert-ring{0%,100%{transform:rotate(0)}20%{transform:rotate(14deg)}40%{transform:rotate(-12deg)}60%{transform:rotate(8deg)}80%{transform:rotate(-4deg)}}
.alerts-dialog{width:min(var(--dialog-width-compact),calc(100% - var(--dialog-gutter)));max-height:var(--dialog-max-block);box-sizing:border-box;padding:0 var(--space-5) var(--space-5);background:var(--canvas);color:var(--text);border:var(--stroke-thin) solid var(--border);border-radius:var(--dialog-radius)}
.alerts-dialog::backdrop{background:var(--overlay-strong)}
.alerts-head{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;background:var(--canvas);padding-block:var(--space-3)}
.alerts-head h2{margin:0;font-size:var(--text-lg)}
.alerts-head .member-drawer-close{background:transparent;border-color:transparent;color:var(--text-secondary)}
.alerts-list{display:grid}
.alerts-item{display:grid;grid-template-columns:1fr auto;gap:var(--space-3);align-items:baseline;width:100%;text-align:left;padding:var(--space-4) var(--space-2);border:0;border-bottom:var(--stroke-thin) solid var(--border);border-radius:0;background:transparent;color:var(--text-secondary);font:inherit;font-size:var(--text-sm);line-height:var(--leading-body);cursor:pointer}
.alerts-item[data-unread="true"]{color:var(--text);font-weight:var(--weight-medium)}
.alerts-item[data-unread="true"] .alerts-text::before{content:"";display:inline-block;inline-size:var(--space-2);block-size:var(--space-2);margin-inline-end:var(--space-2);border-radius:var(--radius-round);background:var(--brand);vertical-align:middle}
.alerts-item:hover{background:var(--surface-hover)}
.alerts-item time{font-size:var(--text-xs);color:var(--text-muted);white-space:nowrap;font-weight:var(--weight-regular)}
.alerts-empty{padding-block:var(--space-8);text-align:center;color:var(--text-muted)}
.alert-toast{position:fixed;inset-inline:var(--space-4);inset-block-end:var(--space-5);margin-inline:auto;max-inline-size:var(--dialog-width-compact);z-index:var(--z-notice);display:flex;align-items:center;gap:var(--space-3);padding:var(--space-4);border:var(--stroke-thin) solid var(--brand-border);border-radius:var(--radius-card);background:var(--surface-raised);box-shadow:var(--shadow-dialog);animation:toast-in var(--motion-menu) ease-out}
.alert-toast[hidden]{display:none}
.alert-toast p{margin:0;flex:1;font-size:var(--text-sm);line-height:var(--leading-body)}
.alert-toast[data-kind="rank"]{border-color:var(--brand);background:linear-gradient(120deg,var(--brand-wash),transparent 70%),var(--surface-raised)}
.alert-toast-close{display:grid;place-items:center;padding:0;border:0;background:transparent;color:var(--text-muted);cursor:pointer}
@keyframes toast-in{from{transform:translateY(var(--space-5));opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.alert-toast,.alerts-button svg{animation:none}}
/* The chief's broadcast notice (alerts.js WagleBroadcastToast): at the top, wider and louder than an alert, never under the reader's thumb. */
.broadcast-toast{position:fixed;inset-inline:var(--space-4);inset-block-start:var(--space-4);margin-inline:auto;max-inline-size:var(--dialog-width);z-index:var(--z-notice);display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:var(--space-3);row-gap:var(--space-2);align-items:center;padding:var(--space-4) var(--space-4) var(--space-4) var(--space-5);border:var(--stroke-thin) solid var(--brand);border-radius:var(--radius-card);background:linear-gradient(120deg,var(--brand-wash),transparent 70%),var(--surface-raised);box-shadow:var(--shadow-dialog)}
.broadcast-toast[hidden]{display:none}
.broadcast-toast.is-new{animation:broadcast-in var(--motion-menu) var(--ease-menu)}
.broadcast-toast-face{grid-column:1;grid-row:1}
.broadcast-toast-head{grid-column:2;grid-row:1;font-size:var(--text-xs);font-weight:var(--weight-semibold);color:var(--brand);line-height:var(--leading-ui)}
.broadcast-toast-close{grid-column:3;grid-row:1;display:grid;place-items:center;padding:0;border:0;background:transparent;color:var(--text-muted);cursor:pointer}
.broadcast-toast-text{grid-column:1/-1;margin:0;font-size:var(--text-md);font-weight:var(--weight-semibold);line-height:var(--leading-body);color:var(--text)}
.broadcast-toast-text:lang(ko){word-break:keep-all}
.broadcast-toast-go{grid-column:1/-1;justify-self:start}
.broadcast-toast-go[hidden]{display:none}
@keyframes broadcast-in{from{transform:translateY(calc(-1 * var(--space-5)));opacity:0}to{transform:none;opacity:1}}
@media(prefers-reduced-motion:reduce){.broadcast-toast.is-new{animation:none}}
/* Threads profile: the owner edit button is outlined (follow stays the one filled action); tabs share the width. */
.profile-outline{background:transparent;border-color:var(--border);color:var(--text)}.profile-outline:hover{background:var(--surface-hover)}
.social-tabs>button{flex:1}
/* Conversation dialog rhythm: one token between parts (back link, post, replies, reply form fields), one larger
 token between the conversation and the reply form. The back link is quiet text, not a box over the card. */
#detail #thread{display:grid;gap:var(--space-3);margin-bottom:var(--space-5)}
#detail #thread>article,#detail #thread>.thread-item,#detail #thread>.thread-replies{margin:0}
#detail #thread>button{justify-self:start;padding-inline:0;background:transparent;border-color:transparent;color:var(--text-secondary)}
#detail #thread>button:hover{color:var(--text)}
#detail #reply-form{display:grid;gap:var(--space-3)}
#detail #reply-form>*,#detail #reply-form .mention-chips{margin:0}
/* Link preview in a draft: loads by itself; an X at the top right removes it; a failed load offers one retry. */
.bar-icon.icon-close{--icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E")}
[id$="link-draft"]{position:relative}[id$="link-draft"]>.link-preview{margin-block:var(--space-2) 0}
.link-draft-close{position:absolute;inset-block-start:var(--space-4);inset-inline-end:var(--space-2);display:grid;place-items:center;inline-size:var(--size-avatar-sm);block-size:var(--size-avatar-sm);padding:0;border:0;border-radius:var(--radius-pill);background:var(--overlay-strong);color:var(--text);cursor:pointer}
.link-draft-close .bar-icon{width:var(--size-icon-sm);height:var(--size-icon-sm)}

[id$="link-draft"]:has(.link-retry){display:flex;align-items:center;gap:var(--space-3);font-size:var(--text-sm);color:var(--text-muted)}
.link-retry{background:transparent;border-color:var(--border);color:var(--text)}
/* The translate trigger in the bar looks like its neighbours: no box, quiet text, icon and word on one line. */
.post-bar .wagle-translation-trigger,.post-bar .wagle-translation-original{display:inline-flex;align-items:center;gap:var(--space-1);min-height:var(--button-target-height);padding:0 var(--space-3);border:0;border-radius:var(--radius-pill);background:transparent;color:var(--text-secondary);font-size:var(--text-sm);font-weight:var(--weight-regular)}
.post-bar .wagle-translation-trigger:hover,.post-bar .wagle-translation-original:hover{background:var(--surface-hover);color:var(--text)}
/* "○○에게 답글": a quiet line between the name and the text, on the same edge. */
.reply-to{margin:0;font-size:var(--text-xs);color:var(--text-secondary)}.reply-to+.post-body{margin-block-start:var(--space-1)}
/* Profile posts read like the feed: divided rows, not boxed cards. */
.social-content>article{border:0;border-bottom:var(--stroke-thin) solid var(--border);border-radius:0;background:transparent;margin:0;font-size:var(--text-sm)}
.profile-record,.profile-titles{margin:0;font-size:var(--text-sm);color:var(--text-secondary)}
