/* A quiet drawing desk beside a dense, navigable character collection. */
.glyph-explorer { --glyph-height:575px; font-feature-settings:normal; border-block:1px solid var(--rule); }
.glyph-toolbar { display:grid; grid-template-columns:minmax(130px,1fr) auto minmax(180px,1.2fr) minmax(140px,.75fr); align-items:center; gap:28px; padding:20px 0; font-size:12px; }
.glyph-toolbar output { float:right; font-variant-numeric:tabular-nums; }
.glyph-toolbar .inline-toggle { margin:0; white-space:nowrap; }
.glyph-toolbar input[type=search] { width:100%; min-width:0; padding:10px 0; border:0; border-bottom:1px solid var(--rule); border-radius:0; background:transparent; }
.glyph-toolbar input::placeholder { color:var(--muted); opacity:1; }
.glyph-toolbar select,.glyph-toolbar .select-trigger { font-size:12px; }
.glyph-workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); border-top:1px solid var(--rule); }
.glyph-inspector { min-width:0; min-height:var(--glyph-height); padding:24px 22px 14px; background:var(--abitaro-sand); display:flex; flex-direction:column; }
.glyph-identity { display:flex; justify-content:space-between; gap:20px; min-height:65px; }
.glyph-identity h3 { margin:0 0 5px; font-size:19px; overflow-wrap:anywhere; }
.glyph-identity p { margin:0; color:var(--muted); font-size:11px; }
.glyph-identity code { color:var(--muted); text-align:right; font-size:11px; }
#glyph-drawing { display:block; width:100%; height:410px; overflow:visible; }
.glyph-solid { fill:var(--ink); }
.glyph-outline { fill:var(--paper); fill-opacity:.55; stroke:var(--ink); stroke-width:1.15; }
.glyph-guide,.glyph-bearing { stroke:var(--rule); stroke-width:1; }
.glyph-bearing { stroke-dasharray:3 4; }
.glyph-guide-label,.glyph-empty-drawing { fill:var(--muted); font-size:10px; }
.glyph-empty-drawing { font-size:14px; }
.glyph-handle { stroke:var(--accent); stroke-width:.7; opacity:.7; }
.glyph-leader { fill:none; stroke:var(--accent); stroke-width:.5; opacity:.45; }
.glyph-point-label { font-family:ui-monospace,monospace; fill:var(--muted); font-size:9px; }
.glyph-node { cursor:pointer; }
.glyph-node-hit { fill:transparent; }
.glyph-node-shape { fill:var(--ink); stroke:var(--ink); stroke-width:1; }
.glyph-node-shape.control { fill:var(--paper); stroke:var(--accent); }
.glyph-node-shape.implied { fill:var(--abitaro-pistachio); stroke:var(--accent); }
.glyph-selected-ring { fill:none; stroke:var(--accent); stroke-width:1.5; }
.glyph-point-tools { display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:11px; }
.glyph-point-tools label { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.glyph-point-tools select,.glyph-point-tools .select-control { max-width:170px; }
.glyph-point-tools .select-trigger { height:36px; font-size:11px; }
.glyph-legend { display:flex; gap:10px; color:var(--muted); flex-wrap:wrap; margin:0; font-size:10px; }
.glyph-inspector>.caption { margin:12px 0 0; font-size:11px; }
.glyph-collection { min-width:0; display:flex; flex-direction:column; border-left:1px solid var(--rule); }
.glyph-grid-caption { min-height:47px; display:flex; justify-content:space-between; align-items:center; gap:15px; padding:12px 15px; font-size:11px; color:var(--muted); }
.glyph-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(51px,1fr)); align-content:start; height:calc(var(--glyph-height) - 47px); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; border-top:1px solid var(--rule); padding:0 1px 1px 0; }
.glyph-cell { border:0; border-radius:0; box-shadow:1px 1px 0 var(--rule); aspect-ratio:1; min-width:0; padding:6px; position:relative; background:transparent; }
.glyph-cell svg { display:block; width:100%; height:100%; overflow:visible; }
.glyph-cell:hover { background:var(--abitaro-pistachio); color:var(--ink); }
.glyph-cell[aria-pressed=true] { background:var(--ink); color:var(--paper); }
.glyph-cell:focus-visible { outline:2px solid var(--accent); outline-offset:-3px; z-index:1; }
#glyph-empty { margin:0; padding:18px; }
#glyph-grid:empty { height:0; border:0; }
#glyph-retry { align-self:start; margin:18px; font-size:12px; }
[hidden] { display:none!important; }
@media(max-width:1000px) {
  .glyph-toolbar { gap:20px; grid-template-columns:1fr 1fr; }
  .glyph-toolbar .inline-toggle { justify-self:end; }
  .glyph-point-tools { align-items:start; flex-direction:column; gap:8px; }
  .glyph-legend { gap:12px; }
}
@media(max-width:700px) {
  .glyph-explorer { --glyph-height:400px; }
  .glyph-workspace { grid-template-columns:1fr; }
  .glyph-inspector { min-height:0; padding:20px 12px 16px; }
  .glyph-collection { border-left:0; border-top:1px solid var(--rule); }
  .glyph-grid { grid-template-columns:repeat(auto-fill,minmax(46px,1fr)); }
  #glyph-drawing { height:350px; }
  .glyph-legend { max-width:none; }
  .glyph-toolbar { column-gap:20px; row-gap:14px; }
  .glyph-toolbar .inline-toggle { font-size:12px; white-space:normal; }
}
@media(max-width:380px) { #glyph-drawing { height:340px; } }
@media print { .glyph-toolbar,.glyph-point-tools { display:none; } .glyph-grid { height:auto; overflow:visible; } .glyph-workspace { display:block; } .glyph-inspector { break-inside:avoid; } }
