/* Primitive variants; media, tabs and native controls retain their interaction layouts. */
[data-ui-button]{font-family:inherit;letter-spacing:0;touch-action:manipulation}
:is(#main,#detail) [data-ui-button="action"],:is(#main,#detail) [data-ui-button="primary"],:is(#main,#detail) [data-ui-button="danger"]{min-height:var(--ui-touch);border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-size:var(--ui-label);line-height:1.5;color:var(--ui-muted);padding:8px 12px}
:is(#main,#detail) [data-ui-button="primary"]{color:var(--ui-text)!important;font-weight:500}:is(#main,#detail) [data-ui-button="danger"]{color:#d9a4a4!important}
[data-ui-button="compose"]{min-width:var(--ui-touch);min-height:var(--ui-touch)}
.ui-icon{display:block;flex:none;width:20px;height:20px;pointer-events:none}
[data-ui-button]:focus-visible{outline:1px solid var(--ui-focus);outline-offset:3px}[data-ui-button]:disabled{opacity:.45;cursor:default}
:is(#main,#detail) :is([data-ui-field="text"],[data-ui-field="textarea"],[data-ui-field="select"]){border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;font-family:inherit;color:inherit;min-width:0;max-width:100%;line-height:var(--ui-leading);padding:10px 0;box-sizing:border-box}
:is(#main,#detail) [data-ui-field]:focus-visible{outline:0;box-shadow:0 1px 0 var(--ui-focus)!important}
[data-ui="field-label"]{display:grid;gap:var(--ui-space-1);line-height:1.65;font-size:var(--ui-label)}
[data-ui="actions"]{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--ui-space-3)}
[data-ui="heading"]{word-break:keep-all;overflow-wrap:anywhere;line-height:1.35;letter-spacing:-.035em}[data-ui="heading"]>.english-caption{margin-top:5px!important;line-height:1.55!important}
[data-ui="section-heading"]{gap:var(--ui-space-3)}[data-ui="caption"]{word-break:normal;overflow-wrap:anywhere}
#status{background:var(--ui-toast-bg)!important;border-radius:var(--ui-toast-radius)!important;color:var(--ui-text)!important;padding:var(--ui-space-3) 18px!important}
/* Close has no rectangular autofocus decoration; keyboard focus strengthens the glyph. */
#detail>[data-ui-button="close"]{min-width:var(--ui-touch);min-height:var(--ui-touch);outline:0!important;box-shadow:none!important;border:0!important;background:transparent!important}
@media(max-width:600px){:is(#main,#detail) :is([data-ui-field="text"],[data-ui-field="textarea"],[data-ui-field="select"]){font-size:16px}[data-ui="actions"]{gap:var(--ui-space-2)}}

:is(#main,#detail) [data-ui-field="file"]{border:0!important;background:transparent!important;max-width:100%;font-family:inherit;font-size:var(--ui-label)}
:is(#main,#detail) [data-ui-field="file"]::file-selector-button{background:transparent;border:0;border-bottom:1px solid var(--ui-line);color:var(--ui-text);font:inherit;min-height:var(--ui-touch);margin-right:12px;padding:8px 0}

/* Clear actions without adding boxed controls. */
#main .compose-plus[data-ui-button="compose"]{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;width:auto!important;min-width:76px;height:auto!important;min-height:44px;padding:8px 10px!important;font-size:13px!important;font-weight:400;line-height:1.5;border:0!important;border-radius:0!important;background:transparent!important;color:var(--ui-text);white-space:nowrap}
#main .archive-heading{display:flex;align-items:center;flex-wrap:wrap;column-gap:16px}.archive-heading>.eyebrow{flex-basis:100%}.archive-heading>h1{flex:1;min-width:0}
#main .avatar-edit-label{display:block;margin:4px auto 0;padding:4px 6px;min-height:44px;font-size:11px;line-height:1.5;color:var(--ui-muted);background:none;border:0}
.auth-method-note,.auth-test-login p{font-size:12px;line-height:1.8;word-break:keep-all;overflow-wrap:anywhere}.auth-test-login{margin:12px 0}.auth-test-login summary{font-size:12px;color:var(--ui-muted);min-height:44px;display:flex;align-items:center;cursor:pointer}.auth-test-login summary::before{content:'+';margin-right:8px}.auth-test-login[open] summary::before{content:'−'}.auth-test-login summary::-webkit-details-marker{display:none}
.membership-steps{list-style:none;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;padding:0;margin:16px 0 24px;font-size:12px;color:var(--ui-muted)}.membership-steps li[aria-current]{color:var(--ui-text);border-bottom:1px solid currentColor;padding-bottom:4px}
.composer-preview button[aria-pressed="true"]{color:var(--ui-text)!important;text-decoration:underline;text-underline-offset:5px}.composer-media>.composer-hint{margin:8px 0;font-size:12px;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}
#main .compose-plus[data-ui-button="compose"]{flex:0 0 auto}#main .compose-plus[data-ui-button="compose"]::before{display:none}
