:root{
  --bg:#0c0f14;
  --panel:#151a23;
  --panel-2:#10151d;
  --text:#f5f7fb;
  --muted:#9ba7ba;
  --line:#2a3342;
  --accent:#8cc8ff;
  --accent-2:#6affb2;
  --danger:#ff7777;
  --radius:22px;
  --shadow:0 24px 80px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(140,200,255,.18), transparent 28%),
    radial-gradient(circle at 86% 4%, rgba(106,255,178,.12), transparent 22%),
    var(--bg);
  min-height:100vh;
}
.app-shell{width:min(1480px, calc(100% - 32px)); margin:0 auto; padding:32px 0 42px}
.hero{
  display:flex; justify-content:space-between; gap:24px; align-items:flex-end;
  padding:24px 4px 28px;
}
.eyebrow{margin:0 0 8px; color:var(--accent-2); text-transform:uppercase; letter-spacing:.16em; font-size:12px; font-weight:800}
h1{margin:0; font-size:clamp(34px, 5vw, 72px); line-height:.92; letter-spacing:-.06em}
.subcopy{margin:16px 0 0; color:var(--muted); max-width:720px; font-size:16px; line-height:1.6}
.hero-card{
  min-width:245px; background:rgba(21,26,35,.78); border:1px solid var(--line); border-radius:20px;
  padding:18px; box-shadow:var(--shadow); display:grid; gap:4px;
}
.hero-card small{color:var(--muted)}
.status-dot{width:10px; height:10px; display:inline-block; border-radius:99px; background:var(--accent-2); box-shadow:0 0 22px var(--accent-2)}
.layout{display:grid; grid-template-columns:440px 1fr; gap:22px; align-items:start}
.panel{background:rgba(21,26,35,.92); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); padding:22px}
.controls-panel{position:sticky; top:18px; max-height:calc(100vh - 36px); overflow:auto}
.section-head{display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:16px}
.section-head.compact{margin-top:26px}
h2{margin:0; font-size:18px; letter-spacing:-.03em}
.pill{font-size:12px; color:#0b1118; background:var(--accent); border-radius:999px; padding:7px 10px; font-weight:800}
.mode-switch{display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; margin-bottom:14px}
.mode{display:grid; gap:5px; background:var(--panel-2); border:1px solid var(--line); border-radius:16px; padding:14px; cursor:pointer; min-height:90px}
.mode.active{border-color:var(--accent); box-shadow:0 0 0 3px rgba(140,200,255,.12)}
.mode input{display:none}.mode span{font-weight:800}.mode small{color:var(--muted); line-height:1.35}
.dropzone{
  display:grid; place-items:center; text-align:center; gap:9px; min-height:170px; border:1.5px dashed #3a4658; border-radius:20px;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); padding:22px; cursor:pointer; transition:.2s ease;
}
.dropzone:hover,.dropzone.dragover{border-color:var(--accent); transform:translateY(-1px); background:rgba(140,200,255,.08)}
.dropzone input{display:none}.drop-icon{font-size:34px; line-height:1; color:var(--accent)}.dropzone small{color:var(--muted)}
.sheet-config{margin-top:18px}
.font-open-card{border:1px solid rgba(140,200,255,.28); border-radius:16px; background:rgba(140,200,255,.06); padding:13px 14px; margin-top:14px; display:grid; gap:5px}
.font-open-card strong{font-size:14px}
.font-open-card small{color:var(--muted); line-height:1.45}
.two-col{display:grid; grid-template-columns:1fr 1fr; gap:12px}.field,.toggle-field{display:grid; gap:7px; margin-bottom:12px}.field.full{grid-column:1/-1}
.field span,.toggle-field span{font-size:12px; color:var(--muted); font-weight:700}.field-note{font-weight:600; opacity:.78}
input,textarea,select{
  width:100%; border:1px solid var(--line); background:#0c1118; color:var(--text); border-radius:13px; padding:12px 13px; outline:none;
  font:inherit; transition:.16s ease;
}
select{appearance:none; background-image:linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position:calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size:6px 6px, 6px 6px; background-repeat:no-repeat; padding-right:34px}
textarea{resize:vertical; min-height:74px; line-height:1.45; font-family:"SFMono-Regular", Consolas, monospace; font-size:13px}
input:focus,textarea:focus,select:focus{border-color:var(--accent); box-shadow:0 0 0 3px rgba(140,200,255,.12)}
.toggle-field{grid-template-columns:auto 1fr; align-items:center; background:var(--panel-2); padding:13px; border:1px solid var(--line); border-radius:14px; margin-top:20px}
.toggle-field input{width:auto}.hint,.notice{color:var(--muted); line-height:1.5}.notice{background:#10151d; border:1px solid var(--line); border-radius:16px; padding:13px; margin-top:14px}.small{font-size:12px}
.actions{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:16px}.btn{border:1px solid var(--line); background:#202838; color:var(--text); border-radius:14px; padding:12px 14px; font-weight:800; cursor:pointer; transition:.16s ease}.btn:hover:not(:disabled){transform:translateY(-1px); border-color:var(--accent)}.btn:disabled{opacity:.45; cursor:not-allowed}.btn.primary{background:linear-gradient(135deg, var(--accent), #c4e5ff); color:#06101a; border:0}.btn.ghost{background:transparent}.compact-btn{padding:9px 12px; font-size:13px}
.status-box{background:#10151d; border:1px solid var(--line); border-radius:18px; padding:14px; color:var(--muted); margin-bottom:16px; line-height:1.5}.status-box.ok{border-color:rgba(106,255,178,.4); color:#d8ffe9}.status-box.warn{border-color:rgba(255,180,80,.45); color:#ffdca7}.status-box.error{border-color:rgba(255,119,119,.45); color:#ffd1d1}
.preview-tools{display:grid; grid-template-columns:360px 1fr; gap:16px; align-items:stretch}.font-preview{border:1px solid var(--line); border-radius:18px; background:#f7f8fb; color:#10151d; min-height:170px; padding:24px; font-size:46px; line-height:1.15; white-space:pre-wrap; overflow:auto; display:flex; align-items:center}
.mapping-toolbar{display:flex; justify-content:flex-end; gap:10px; margin:16px 0}.glyph-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(126px, 1fr)); gap:12px}.glyph-card{background:#10151d; border:1px solid var(--line); border-radius:18px; padding:12px; display:grid; gap:10px}.glyph-card svg{width:100%; aspect-ratio:1.25/1; background:#fff; border-radius:12px; padding:8px}.glyph-card .meta{display:grid; grid-template-columns:1fr auto; gap:8px; align-items:center}.glyph-card input{padding:8px 9px; text-align:center; font-weight:900}.delete-glyph{border:0; background:rgba(255,119,119,.12); color:#ffb0b0; border-radius:10px; padding:8px 10px; cursor:pointer}.glyph-note{font-size:11px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}.empty{grid-column:1/-1; color:var(--muted); text-align:center; padding:40px 10px; border:1px dashed var(--line); border-radius:18px}
@media (max-width:1050px){.layout{grid-template-columns:1fr}.controls-panel{position:static; max-height:none}.preview-tools{grid-template-columns:1fr}.hero{align-items:flex-start; flex-direction:column}.hero-card{width:100%}}
@media (max-width:620px){.app-shell{width:min(100% - 20px, 1480px); padding-top:16px}.panel{padding:16px;border-radius:18px}.two-col,.mode-switch,.actions{grid-template-columns:1fr}.font-preview{font-size:34px}.glyph-grid{grid-template-columns:repeat(auto-fill, minmax(110px, 1fr))}}

.template-tools{display:flex; gap:8px; flex-wrap:wrap; margin:-6px 0 14px}
.map-help{border:1px solid var(--line); border-radius:14px; padding:10px 12px; margin:0 0 14px; background:rgba(255,255,255,.03); color:var(--muted)}
.map-help summary{cursor:pointer; color:var(--text); font-weight:800}
.map-help p{margin:8px 0 0; font-size:12px; line-height:1.55}

/* v6 template + vertical alignment tools */
a.btn{display:inline-flex; align-items:center; justify-content:center; text-decoration:none}
.template-card{border:1px solid var(--line); border-radius:16px; padding:14px; background:rgba(255,255,255,.035); display:grid; gap:10px; margin:0 0 14px}
.template-card strong{font-size:14px}
.template-card small{display:block; color:var(--muted); line-height:1.45; margin-top:4px}
.template-tools.inline{margin:0}
.alignment-tools{border:1px solid var(--line); border-radius:18px; background:#10151d; padding:14px; margin:16px 0 4px}
.alignment-head{display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom:12px}
.alignment-head h3{margin:0 0 4px; font-size:15px; letter-spacing:-.02em}
.alignment-head p{margin:0; color:var(--muted); font-size:12px; line-height:1.45}
.row-shift-grid{display:grid; grid-template-columns:repeat(4, 1fr); gap:10px}
.field.mini{margin:0}.field.mini input{padding:9px 10px}
.glyph-adjust{display:grid; grid-template-columns:auto 1fr auto; gap:6px; align-items:center}
.glyph-adjust button{border:1px solid var(--line); background:#17202d; color:var(--text); border-radius:10px; padding:7px 8px; font-weight:900; cursor:pointer}
.glyph-adjust button:hover{border-color:var(--accent)}
.glyph-adjust input{font-size:12px; padding:7px 8px}
.glyph-adjust-label{font-size:10px; color:var(--muted); text-align:center; margin-top:-5px}
.glyph-card.is-shifted{border-color:rgba(140,200,255,.42)}
@media (max-width:820px){.row-shift-grid{grid-template-columns:1fr 1fr}.alignment-head{flex-direction:column}.alignment-head .btn{width:100%}}
@media (max-width:520px){.row-shift-grid{grid-template-columns:1fr}}

/* v7 full character overview + font metadata */
.font-info-block{
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.035);
  padding:12px 14px;
  margin:0 0 12px;
}
.font-info-block summary{
  cursor:pointer;
  font-weight:900;
  color:var(--text);
  letter-spacing:-.02em;
}
.font-info-block .hint{margin:9px 0 12px}
.font-info-grid{margin-top:6px}
.font-info-grid .field{margin-bottom:0}
.character-overview-wrap{
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.03);
  padding:12px;
  margin-bottom:13px;
}
.overview-titlebar{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:10px;
}
.overview-titlebar strong{font-size:14px; display:block; margin-bottom:3px}
.overview-titlebar small{display:block; color:var(--muted); font-size:12px; line-height:1.35}
.overview-pill{font-size:11px; font-weight:900; border:1px solid rgba(140,200,255,.38); color:#cfeaff; border-radius:999px; padding:5px 8px; white-space:nowrap}
.character-overview{display:grid; gap:12px; max-height:520px; overflow:auto; padding-right:3px}
.overview-section{display:grid; gap:7px}
.overview-row-title{display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--muted); font-size:12px; padding:0 2px}
.overview-row-title strong{color:var(--text); font-size:12px}
.overview-strip{display:grid; grid-template-columns:repeat(auto-fill, minmax(78px, 1fr)); gap:8px}
.overview-glyph{
  display:grid;
  gap:5px;
  justify-items:center;
  border:1px solid var(--line);
  border-radius:14px;
  background:#0c1118;
  color:var(--text);
  padding:8px;
  cursor:grab;
  touch-action:none;
  user-select:none;
  text-align:center;
  min-width:0;
}
.overview-glyph:hover{border-color:var(--accent); transform:translateY(-1px)}
.overview-glyph.is-dragging{cursor:grabbing; border-color:var(--accent-2); box-shadow:0 0 0 3px rgba(106,255,178,.11)}
.overview-glyph.is-shifted{border-color:rgba(140,200,255,.48); background:rgba(140,200,255,.06)}
.overview-glyph.is-selected{border-color:#7fc8ff; box-shadow:0 0 0 3px rgba(127,200,255,.16)}
.overview-svg{display:block; width:100%}
.overview-svg svg{width:100%; aspect-ratio:1.18/1; background:#fff; border-radius:10px; padding:7px; display:block}
.overview-char{font-weight:900; font-size:14px; line-height:1}
.overview-y,.overview-total{font-size:10px; color:var(--muted); line-height:1; white-space:nowrap}
.overview-total{opacity:.72}
.compact-empty{padding:18px 10px; font-size:12px}
@media (max-width:620px){.overview-strip{grid-template-columns:repeat(auto-fill, minmax(64px, 1fr))}.character-overview{max-height:420px}.overview-titlebar{flex-direction:column}.overview-pill{width:max-content}}

/* v8 live auto-preview */
.auto-preview-toggle{margin-top:10px; margin-bottom:0}
.auto-preview-toggle small{display:block; color:var(--muted); font-size:11px; font-weight:700; margin-top:3px}
.alignment-head-actions{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.descender-tools{display:grid; grid-template-columns:minmax(220px,1fr) 170px; gap:10px; align-items:end; margin:10px 0 12px}
.mini-toggle{margin:0; min-height:44px}
@media (max-width:620px){.alignment-head-actions{justify-content:flex-start}.descender-tools{grid-template-columns:1fr}}

/* v9 bigger preview + direct Y editor */
.preview-panel{padding:26px}
.preview-tools{grid-template-columns:minmax(260px, 330px) minmax(520px, 1fr); align-items:stretch}
.font-preview-panel{display:grid; gap:10px}
.font-preview-toolbar{display:grid; grid-template-columns:minmax(200px, 240px) 1fr; gap:12px; align-items:end}
.main-preview-note{font-size:12px; color:var(--muted); line-height:1.45}
.font-preview-workspace{display:grid; grid-template-columns:minmax(420px, 1fr) minmax(280px, 340px); gap:16px; align-items:start}
.font-preview-stage{
  --preview-grid-step:10px;
  --guide-top:17%;
  --guide-cap:27%;
  --guide-baseline:74%;
  --guide-descender:86%;
  position:relative;
}
.font-preview{
  min-height:420px;
  font-size:clamp(70px, 7vw, 110px);
  line-height:1.08;
  padding:34px;
  align-items:flex-start;
  letter-spacing:.01em;
  white-space:pre-wrap;
  background-color:#fbfbfd;
  color:#10151d;
  border-radius:22px;
  border:1px solid rgba(16,24,35,.12);
  box-shadow:0 14px 36px rgba(16,24,35,.10);
}
.font-preview.show-grid{
  background-image:
    repeating-linear-gradient(to right, rgba(26,115,232,.08) 0 1px, transparent 1px var(--preview-grid-step)),
    repeating-linear-gradient(to bottom, rgba(26,115,232,.12) 0 1px, transparent 1px var(--preview-grid-step));
}
.preview-side-tools{display:grid; gap:12px; align-content:start}
.side-tool-card{border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.035); padding:14px; display:grid; gap:12px}
.side-tool-title strong{display:block; font-size:14px; margin-bottom:3px}
.side-tool-title small{display:block; color:var(--muted); font-size:12px; line-height:1.35}
.selected-glyph-line{display:grid; grid-template-columns:1fr 60px; gap:8px; align-items:center}
.selected-glyph-line span{min-height:42px; border:1px solid var(--line); border-radius:12px; background:#0c1118; display:flex; align-items:center; padding:8px 10px; color:var(--muted); font-weight:900; font-size:12px; overflow:hidden; text-overflow:ellipsis}
.selected-glyph-line input{text-align:center; font-weight:900}
.selected-y-control{display:grid; grid-template-columns:1fr 84px 1fr; gap:8px; align-items:center}
.selected-y-control input{text-align:center; font-weight:900}
.full-mini-btn{width:100%; justify-content:center}
.selected-scale-control{display:grid; grid-template-columns:1fr 1fr; gap:8px; align-items:end}
.selected-scale-field{grid-column:1/-1; margin:0}
.selected-scale-field input{text-align:center; font-weight:900}
.selected-tool-hint{font-size:12px; color:var(--muted); line-height:1.5; border-top:1px dashed rgba(255,255,255,.08); padding-top:4px}
.preview-guide-handles{position:absolute; inset:0; pointer-events:none}
.guide-handle{position:absolute; left:0; right:0; height:16px; transform:translateY(-8px); border:0; padding:0; margin:0; cursor:ns-resize; pointer-events:auto; background:transparent}
.guide-handle::before{content:""; position:absolute; left:0; right:0; top:7px; border-top:2px dashed currentColor; opacity:.0; transition:opacity .12s}
.font-preview-stage:hover .guide-handle::before,.guide-handle:focus::before,.guide-handle.is-dragging::before{opacity:.95}
.guide-handle span{position:absolute; right:10px; top:-11px; border:1px solid rgba(16,24,35,.18); background:rgba(255,255,255,.92); color:#10151d; border-radius:999px; padding:3px 7px; font:800 10px/1 ui-sans-serif, system-ui; box-shadow:0 4px 12px rgba(16,24,35,.12)}
.guide-top{top:var(--guide-top); color:rgb(255,70,170)}
.guide-cap{top:var(--guide-cap); color:rgb(56,118,255)}
.guide-baseline{top:var(--guide-baseline); color:rgb(16,24,35)}
.guide-descender{top:var(--guide-descender); color:rgb(25,160,70)}
.direct-preview-card{display:none !important;

  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025));
  padding:15px;
  margin:16px 0;
}
.direct-preview-head{
  display:grid;
  grid-template-columns:minmax(260px, 1fr) minmax(340px, 430px);
  gap:16px;
  align-items:start;
  margin-bottom:12px;
}
.direct-preview-head h3{margin:0 0 4px; font-size:16px; letter-spacing:-.02em}
.direct-preview-head p{margin:0; color:var(--muted); font-size:12px; line-height:1.45}
.direct-preview-controls{display:grid; gap:10px}
.preview-top-controls{display:grid; gap:10px}
.preview-grid-controls{display:grid; grid-template-columns:repeat(3, minmax(110px,1fr)); gap:10px; align-items:end}
.preview-grid-toggle{margin:0; min-height:44px}
.preview-step-field{margin:0}
.preview-size-field{margin:0}
.preview-size-field input{padding:0; accent-color:var(--accent)}
.direct-y-editor{
  display:grid;
  grid-template-columns:1fr auto 76px auto;
  gap:7px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:14px;
  background:#0c1118;
  padding:8px;
}
.direct-y-editor span{color:var(--muted); font-size:12px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.direct-y-editor input{padding:8px 9px; text-align:center; font-size:12px; font-weight:900}
.mini-btn{border:1px solid var(--line); background:#17202d; color:var(--text); border-radius:10px; padding:8px 9px; font-size:12px; font-weight:900; cursor:pointer}
.mini-btn:disabled{opacity:.42; cursor:not-allowed}
.mini-btn:not(:disabled):hover{border-color:var(--accent)}
.direct-preview{
  --direct-size:108px;
  --grid-step:10px;
  display:grid;
  gap:14px;
  min-height:280px;
  max-height:640px;
  overflow:auto;
  border-radius:17px;
  background:#f7f8fb;
  color:#10151d;
  padding:18px;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);
}
.direct-preview-line{display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px 11px; min-height:calc(var(--direct-size) * .92)}
.direct-preview-glyph{
  position:relative;
  overflow:hidden;
  width:var(--direct-size);
  min-width:var(--direct-size);
  height:calc(var(--direct-size) * .96);
  border:1px solid rgba(16,24,35,.18);
  border-radius:16px;
  background:#fff;
  padding:10px 10px 22px;
  cursor:grab;
  touch-action:none;
  user-select:none;
  box-shadow:0 8px 24px rgba(16,24,35,.08);
  color:#10151d;
}
.direct-preview-glyph:hover{border-color:#5d8fc0; transform:translateY(-1px)}
.direct-preview-glyph.is-selected{border-color:#1c78d0; box-shadow:0 0 0 3px rgba(28,120,208,.15), 0 8px 24px rgba(16,24,35,.08)}
.direct-preview-glyph.is-dragging{cursor:grabbing; border-color:#10a66b; box-shadow:0 0 0 3px rgba(16,166,107,.15), 0 8px 24px rgba(16,24,35,.08)}
.direct-preview-glyph.is-shifted::after{content:""; position:absolute; inset:5px; border:1px dashed rgba(28,120,208,.35); border-radius:12px; pointer-events:none}
.direct-preview-svg{display:block; width:100%; height:100%}
.direct-preview-svg svg{width:100%; height:100%; display:block; background:transparent; border-radius:0; padding:0}
.direct-preview-grid-overlay{position:absolute; inset:10px 10px 22px; border-radius:10px; pointer-events:none; opacity:0; background-image:repeating-linear-gradient(to bottom, rgba(26,115,232,.12) 0 1px, transparent 1px var(--grid-step)), repeating-linear-gradient(to right, rgba(26,115,232,.08) 0 1px, transparent 1px var(--grid-step)); z-index:0}
.direct-preview.show-grid .direct-preview-grid-overlay{opacity:1}
.direct-preview-guide{position:absolute; left:10px; right:10px; height:0; border-top:1px dashed transparent; pointer-events:none; z-index:0}
.direct-preview-guide.guide-top-accent{top:18%; border-top-color:rgba(255,70,170,.55)}
.direct-preview-guide.guide-cap-height{top:28%; border-top:1px solid rgba(56,118,255,.55)}
.direct-preview-guide.guide-baseline{top:72%; border-top:1px solid rgba(16,24,35,.34)}
.direct-preview-guide.guide-descender{top:84%; border-top-color:rgba(25,160,70,.5)}
.direct-preview-svg{position:relative; z-index:1; display:block; width:100%; height:100%}
.direct-preview-char{position:absolute; left:8px; bottom:5px; z-index:2; font:800 11px/1 ui-sans-serif, system-ui; color:rgba(16,24,35,.55)}
.direct-preview-y{position:absolute; right:8px; bottom:5px; z-index:2; font:800 10px/1 ui-sans-serif, system-ui; color:rgba(16,24,35,.45)}
.direct-preview-step{position:absolute; right:8px; top:6px; z-index:2; font:800 9px/1 ui-sans-serif, system-ui; color:rgba(16,24,35,.36); background:rgba(255,255,255,.88); padding:3px 5px; border-radius:999px}
.direct-preview-space{
  width:calc(var(--direct-size) * .44);
  min-width:calc(var(--direct-size) * .44);
  height:calc(var(--direct-size) * .58);
  border:1px dashed rgba(16,24,35,.18);
  border-radius:12px;
  display:grid;
  place-items:center;
  color:rgba(16,24,35,.35);
  font-size:11px;
  font-weight:900;
}
.direct-preview-missing{
  width:var(--direct-size);
  min-width:var(--direct-size);
  height:calc(var(--direct-size) * .72);
  border:1px dashed rgba(255,80,80,.42);
  border-radius:14px;
  display:grid;
  place-items:center;
  color:#b33;
  background:#fff;
  font-size:13px;
  font-weight:900;
}
@media (max-width:1050px){.preview-tools,.font-preview-toolbar,.font-preview-workspace{grid-template-columns:1fr}.font-preview{min-height:320px}.direct-preview{max-height:520px}.preview-grid-controls{grid-template-columns:repeat(3, minmax(120px,1fr))}}
@media (max-width:620px){.font-preview{font-size:44px; min-height:250px; padding:22px}.preview-grid-controls{grid-template-columns:1fr}.selected-y-control{grid-template-columns:1fr}.direct-y-editor{grid-template-columns:1fr 1fr}.direct-y-editor input{grid-column:1/-1}.direct-preview{--direct-size:82px; padding:12px}.direct-preview-glyph{border-radius:13px}}
