.ql-feedback { margin:auto; width:min(580px,calc(100% - 28px)); max-height:calc(100dvh - 28px); overflow:auto; border:1px solid #c9baa3; border-radius:22px; padding:32px; background:#f5efe2; color:#2c241a; font:14px/1.55 Inter,Arial,sans-serif; box-shadow:0 24px 80px #20170d33; }
.ql-feedback::backdrop { background:#30251c70; backdrop-filter:blur(4px); }
.ql-feedback h2 { margin:8px 0 12px; font:36px/1.1 'EB Garamond',Georgia,serif; }
.ql-feedback p { margin:10px 0; }
.ql-feedback label { display:block; margin:18px 0 7px; font-weight:500; }
.ql-feedback textarea,.ql-feedback select { box-sizing:border-box; width:100%; padding:12px; border:1px solid #b6a68e; border-radius:9px; background:#fffcf5; color:#2c241a; font:inherit; }
.ql-feedback textarea { resize:vertical; }
.ql-feedback .ql-close { float:right; border:0; background:none; padding:0 5px; font-size:28px; cursor:pointer; color:inherit; }
.ql-eyebrow { color:#6e5e4c; font-size:11px; letter-spacing:.08em; text-transform:uppercase; }
.ql-feedback .ql-feedback-note { font-size:12px; color:#695e50; }
.ql-feedback a { color:#68472d; overflow-wrap:anywhere; }
.ql-feedback-actions { display:flex; gap:10px; flex-wrap:wrap; margin:18px 0 10px; }
.ql-feedback-actions button { border:1px solid #6d5038; border-radius:30px; padding:11px 18px; font:inherit; background:#6d5038; color:white; cursor:pointer; }
.ql-feedback-actions button+button { background:transparent; color:#483421; }
:focus-visible { outline:2px solid #94603a; outline-offset:4px; }
.ql-feedback-link { position:fixed; right:16px; bottom:8px; z-index:35; padding:8px 10px; border:0; border-radius:6px; background:var(--bg); color:var(--text-soft); font:11px/1.5 Inter,Arial,sans-serif; cursor:pointer; }
.ql-feedback-link:hover { color:var(--text); text-decoration:underline; text-underline-offset:3px; }

/* Extra app chrome stays outside the drawing area and fits touch screens. */
body[data-surface="app"] .app-logo { top:16px; }
body[data-surface="app"] .app-logo .logo-img { width:100px; }
body[data-surface="app"] .top-bar { top:64px; }
body[data-surface="app"] .lang-switch { top:14px; }
.beta-back { position:absolute; z-index:35; top:24px; left:144px; padding:8px 0; color:var(--text-soft); font:11px/1.5 Inter,Arial,sans-serif; text-decoration:none; }
.beta-back:hover { color:var(--text); text-decoration:underline; text-underline-offset:3px; }
.beta-scenario { position:absolute; z-index:20; top:122px; left:16px; right:16px; margin:0; text-align:center; pointer-events:none; color:var(--text-soft); font:11px/1.5 Inter,Arial,sans-serif; }
.beta-storage-error { position:absolute; z-index:40; top:158px; left:50%; transform:translateX(-50%); width:max-content; max-width:calc(100% - 32px); margin:0; padding:12px 16px; border:1px solid var(--dot); border-radius:12px; background:var(--panel-bg); color:var(--text); font:12px/1.5 Inter,Arial,sans-serif; }
.empty-map { position:absolute; z-index:16; top:50%; left:50%; transform:translate(-50%,-50%); width:480px; max-width:calc(100% - 40px); text-align:center; color:var(--text); }
.empty-map svg { width:160px; height:60px; margin-bottom:22px; stroke:var(--accent); stroke-width:1.6; fill:none; }
.empty-map svg circle { fill:var(--bg); }
.empty-map h1 { margin:0 0 14px; font:400 36px/1.15 'EB Garamond',Georgia,serif; }
.empty-map p { margin:0 auto 26px; max-width:320px; color:var(--text-soft); font:13px/1.7 Inter,Arial,sans-serif; }
.empty-map button { display:block; margin:0 auto 18px; padding:13px 23px; border:1px solid var(--accent); border-radius:28px; background:var(--accent); color:var(--bg); font:14px/1.4 Inter,Arial,sans-serif; cursor:pointer; }
.empty-map button:hover { filter:brightness(.94); }
.empty-map a { color:var(--text-soft); font:12px/1.5 Inter,Arial,sans-serif; text-underline-offset:4px; }
.empty-map[hidden],.beta-scenario[hidden],.beta-storage-error[hidden],body[data-surface="app"] .path-style-panel[hidden],body[data-surface="app"] .status-badge[hidden] { display:none; }
body[data-surface="app"] .onboarding.hide { visibility:hidden; }
body[data-surface="app"] .saved-indicator { top:28px; right:100px; bottom:auto; left:auto; }
body[data-surface="app"] .path-style-panel { width:max-content; max-width:calc(100% - 24px); flex-wrap:wrap; justify-content:center; gap:8px 14px; border-radius:22px; }
body[data-surface="app"] .reflection-sidebar { z-index:45; max-width:100%; }
body[data-surface="app"] .sidebar-close { z-index:2; }
body[data-surface="app"] .preview-toolbar { flex-wrap:wrap; gap:10px; }
body[data-surface="app"] .preview-toolbar .left,body[data-surface="app"] .preview-toolbar .right { flex-wrap:wrap; }
@media(max-width:1200px) {
  body[data-surface="app"] .path-style-panel { bottom:44px; }
  body[data-surface="app"] .status-badge { bottom:140px; }
}
@media(max-width:800px) {
  body[data-surface="app"] .top-bar { left:12px; right:12px; transform:none; flex-wrap:wrap; justify-content:center; border-radius:20px; gap:0; }
  body[data-surface="app"] .text-btn { padding:10px 11px; font-size:12px; }
  body[data-surface="app"] .bar-divider { margin:0 3px; }
  .beta-scenario { top:158px; }
  .beta-storage-error { top:190px; }
  .empty-map h1 { font-size:32px; }
  .ql-feedback-link { right:8px; }
  body[data-surface="app"] .saved-indicator { top:auto; right:auto; bottom:10px; left:16px; }
  body[data-surface="app"] .saved-indicator.flash { max-width:125px; }
  body[data-surface="app"] .saved-indicator .label { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  body[data-surface="app"] .path-style-panel { bottom:44px; padding:8px; gap:6px; }
  body[data-surface="app"] .style-label { font-size:9px; }
  body[data-surface="app"] .style-option { padding:7px 9px; font-size:11px; }
  body[data-surface="app"] .status-badge { display:none; }
  body[data-surface="app"] .dropdown-content { position:fixed; left:12px; right:12px; top:100%; transform:none; max-height:55dvh; overflow:auto; }
  body[data-surface="app"] .lang-switch .dropdown-content { top:40px; left:auto; right:0; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
