/* Shared final layer: component sheets define layout; this defines controls and accessibility. */
body {font-family:"Segoe UI",system-ui,sans-serif;line-height:1.55} .brand,.logo-text{font-weight:900;font-style:italic;letter-spacing:-1.5px}
body input:not([type=checkbox]):not([type=radio]),body select,body textarea {background:var(--field);color:var(--text);border:1px solid var(--border);border-radius:10px;font:inherit;max-width:100%;padding:.75rem;box-sizing:border-box}
body select option,body select optgroup{background:var(--field);color:var(--text)}body input::placeholder,body textarea::placeholder{color:var(--placeholder);opacity:1}
textarea{width:100%;resize:vertical}label{display:block;font-weight:650;margin-top:.75rem}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer}button:disabled{opacity:.6;cursor:not-allowed}
:focus-visible{outline:3px solid var(--green);outline-offset:3px}button:not(.theme-toggle):not(.icon-action):not(.header-logout){min-height:40px}details{margin:1rem 0}summary{cursor:pointer;color:var(--green);font-weight:650}
.editor-card{margin-bottom:1.25rem} .editor-card button,.story-tools button{padding:.6rem 1rem;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);margin:.5rem .5rem .5rem 0}
.editor-card button.action-primary{background:#168c78;color:white}.story-tools{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.story-tools form{margin:0}
.edit-preview,.device-preview{max-width:100%;max-height:320px;object-fit:contain;border-radius:14px;margin:1rem 0}.overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:1rem}.overview-grid article{padding:1.2rem;border:1px solid var(--border);border-radius:16px;background:var(--surface)}.overview-grid strong{display:block;font-size:2rem}.overview-grid span{text-transform:capitalize}
.post-body p,.comment p,.group-message p{white-space:pre-wrap;overflow-wrap:anywhere}.admin-metadata dd,main h1,main h2,main h3{overflow-wrap:anywhere}.mobile-menu-toggle{display:none}.upload-status{font-size:.9rem;color:var(--muted)}
.global-notice{max-width:1100px;margin:1rem auto;padding:1rem;border-radius:12px;background:var(--green-light);color:var(--text)}.global-notice.error{background:var(--error-bg);color:var(--error)}
@media(max-width:900px){.app-header-inner{flex-wrap:wrap;gap:12px}.mobile-menu-toggle{display:inline-block;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:10px;padding:.5rem .9rem}.app-header-links{width:100%;flex-wrap:wrap;order:4}.js-ready .app-header-links:not(.is-open){display:none}.header-search{min-width:0;flex:1 1 240px}.header-actions{flex-wrap:wrap}.edit-shell,.admin-page,.community-page{width:auto;margin:24px 16px}.group-layout{grid-template-columns:1fr!important}.group-people-panel{max-width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
