* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--color-background); color: var(--color-text); font: 15px/1.7 var(--font-content); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: var(--color-primary); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #77b3ff; outline-offset: 3px; }
.icon { width: 22px; height: 22px; display: inline-block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 6px; border: 1px solid var(--color-border); border-radius: 7px; background: white; }
.icon-btn:hover { background: #edf4ff; }
.primary, .secondary, .danger { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 10px 18px; border-radius: 7px; border: 1px solid transparent; font-weight: 500; }
.primary { background: var(--color-primary); color: white; }
.primary:hover { background: #085be0; }
.secondary { background: white; border-color: var(--color-border); color: var(--color-text); }
.secondary:hover { background: #f3f7fc; }
.danger { background: #db334a; color: white; }
input, select, textarea { border: 1px solid #d7e2f0; border-radius: 7px; padding: 10px 12px; color: var(--color-text); background: white; min-width: 0; }
input::placeholder, textarea::placeholder { color: #7c8ea7; }
textarea { resize: vertical; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 30px; border-bottom: 1px solid var(--color-border); background: white; }
.profile { display: flex; align-items: center; gap: 12px; }
.profile b { font-size: 15px; }
.profile small { display: block; color: var(--color-muted); font-size: 12px; }
.avatar { width: 42px; height: 42px; display: grid; place-items: center; background: #e6effa; color: #27527a; border-radius: 50%; }
.language-nav form { display: flex; gap: 4px; }
.language-nav button { background: white; border: 1px solid var(--color-border); border-radius: 6px; padding: 5px 10px; font-size: 12px; }
.language-nav button[aria-pressed=true] { background: #edf4ff; color: var(--color-primary); border-color: #c6dbfb; }
.workspace { min-width: 0; padding: 26px 30px 40px; }
.welcome { background: white; padding: 36px; border: 1px solid var(--color-border); border-radius: 10px; }
.welcome h1 { margin: 15px 0; }
.welcome p { margin-bottom: 22px; }
.eyebrow { color: var(--color-primary); }
.skip-link { position: fixed; inset-inline-start: 1rem; top: -100px; padding: .5rem 1rem; background: white; z-index: 200; }
.skip-link:focus { top: 0; }
.mobile-menu { 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; }
@media (max-width: 760px) {
    .topbar { padding: 0 14px; height: 66px; gap: 10px; }
    .workspace { padding: 20px 14px; }
    .profile { margin-inline-end: auto; gap: 7px; }
    .profile .avatar { display: none; }
    .profile b { font-size: 13px; }
    .language-nav button { padding: 5px 7px; }
    .mobile-menu { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Shared by every native editor/confirmation dialog. */
body.dialog-open { overflow: hidden; }
