/* Form shares Drop's wordmark proportions and compact header controls. */
@font-face { font-family:Inter; font-style:normal; font-weight:100 900; font-display:swap; src:url('/fonts/inter-latin-wght-normal.woff2') format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:Inter; font-style:normal; font-weight:100 900; font-display:swap; src:url('/fonts/inter-cyrillic-wght-normal.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
:root { --header:76px; }
.topbar,.royal-workspace .topbar { padding:0 max(28px,env(safe-area-inset-right)) 0 max(28px,env(safe-area-inset-left)); background:var(--bg); backdrop-filter:none; border-bottom:1px solid color-mix(in srgb,var(--accent) 18%,var(--bg)); }
.topbar .brand-home { display:flex; align-items:center; gap:18px; width:auto; height:44px; padding:0; }
.topbar .brand-logo { width:29px; height:36px; object-fit:contain; }
.topbar .brand-name,.royal-workspace .topbar .brand-name { display:none; font-size:26px; line-height:1; font-weight:650; letter-spacing:-.035em; }
body:has(#editor:not(.hidden)) .topbar .brand-name { display:inline-block; }
.brand-dot { display:inline-block; width:.12em; height:.12em; margin-left:.025em; background:var(--accent); color:transparent; line-height:0; border-radius:0; vertical-align:baseline; overflow:hidden; }
.form-wordmark { margin:clamp(24px,4vw,56px) 0 clamp(36px,5vw,64px); text-align:center; font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:clamp(76px,12vw,170px); font-weight:650; letter-spacing:-.055em; line-height:1; }
body:has(#editor:not(.hidden)) .form-wordmark { visibility:hidden; }
.topbar .top-right { gap:8px; }
.topbar .header-icon,.royal-workspace .topbar .header-icon { display:grid; place-items:center; width:40px; height:40px; min-width:40px; min-height:40px; max-width:40px; max-height:40px; padding:0; border:1px solid transparent; border-radius:4px; background:transparent; color:var(--muted); cursor:pointer; line-height:1; transform:none; transition:color .15s,background .15s,border-color .15s; }
.topbar .header-icon:hover { color:var(--accent); border-color:color-mix(in srgb,var(--accent) 28%,var(--bg)); background:color-mix(in srgb,var(--accent) 8%,var(--bg)); transform:none; }
html[data-theme] .topbar .header-icon { background:transparent; color:var(--muted); }
html[data-theme] .topbar .header-icon:hover { color:var(--accent); background:color-mix(in srgb,var(--accent) 8%,var(--bg)); }
.topbar .header-icon:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.topbar .header-icon svg { display:block; width:20px; height:20px; pointer-events:none; }
.topbar .header-icon .theme-moon { display:none; }
html[data-theme="light"] .topbar .theme-sun { display:none; }
html[data-theme="light"] .topbar .theme-moon { display:block; }
@media(max-width:900px) {
  :root { --header:calc(60px + env(safe-area-inset-top,0px)); }
  .topbar,.royal-workspace .topbar { padding:env(safe-area-inset-top,0px) max(14px,env(safe-area-inset-right)) 0 max(14px,env(safe-area-inset-left)); }
  .topbar .brand-home { gap:13px; }
  .topbar .brand-logo { width:26px; height:32px; }
  .topbar .brand-name,.royal-workspace .topbar .brand-name { font-size:23px; }
  .form-wordmark { font-size:clamp(76px,17vw,120px); margin:24px 0 36px; }
}
@media(max-width:900px) and (orientation:landscape) { :root { --header:48px; } .topbar,.royal-workspace .topbar { padding-top:0; } }
