:root{--accent:#4a5568}
body[data-site="unicode"] .brand-mark{background:var(--accent);color:#fff;font-size:.7rem}
.mode-tabs{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:1rem}
.mode-tab{border:1px solid var(--line,#d5cfbc);background:#fff;border-radius:999px;padding:.55rem 1rem;cursor:pointer;font:inherit}
.mode-tab.is-active{background:var(--accent);color:#fff;border-color:transparent}
.panel[hidden]{display:none!important}
.hint{color:var(--dim,#625f57);font-size:.9rem}
#out{white-space:pre-wrap;background:#fff;border:1px solid var(--line,#d5cfbc);border-radius:12px;padding:.8rem;min-height:3.5rem;font-family:ui-monospace,monospace;font-size:.88rem}
.preview-box{border:1px solid var(--line,#d5cfbc);border-radius:12px;background:#fff;padding:.75rem;min-height:80px}
label{display:block;font-size:.9rem;margin:.35rem 0}
.swatch-row{display:flex;flex-wrap:wrap;gap:.4rem}
.swatch{width:56px;height:56px;border-radius:10px;border:1px solid #d5cfbc;position:relative}
.swatch button{position:absolute;inset:auto 2px 2px auto;font-size:10px}
.canvas-wrap{border:1px dashed #b7b09a;border-radius:12px;background:#0b1220;padding:.75rem;overflow:auto}
#codeShot{padding:1.1rem 1.3rem;border-radius:12px;overflow:auto;font-size:14px;line-height:1.55;min-height:120px;color:#eee}
#codeShot pre{margin:0;background:transparent!important}
.mindmap-svg{width:100%;min-height:360px;background:#fff;border:1px solid #d5cfbc;border-radius:12px}
#waveCanvas{width:100%;height:140px;background:#0b1220;border-radius:12px;display:block}
.resume-preview{background:#fff;border:1px solid #d5cfbc;border-radius:12px;padding:1.2rem;min-height:280px}
.resume-preview.t-classic h1{font-family:serif;border-bottom:2px solid #222;padding-bottom:.3rem}
.resume-preview.t-modern h1{color:var(--accent);letter-spacing:.04em}
.resume-preview.t-compact{font-size:.92rem}
.resume-preview.t-compact h1{font-size:1.25rem;margin:.2rem 0}
@media print{.site-header,.site-footer,.mode-tabs,.unlock-section,.guide-shell,.faq-shell,.hero,#runBtn,#copyBtn,.premium-chip,.button{display:none!important} .resume-preview{border:0}}

/* polish: mobile form comfort */
@media (max-width:700px){
  .studio-card label{display:block;margin:.55rem 0}
  .studio-card input[type=text],.studio-card input[type=url],.studio-card input[type=number],.studio-card input[type=search],.studio-card textarea,.studio-card select{width:100%;max-width:100%;box-sizing:border-box}
  .mode-tabs{gap:.35rem}
  .mode-tab{padding:.5rem .85rem;font-size:.9rem}
  #out,pre#out{font-size:.82rem}
  video#qrVideo{max-width:100%}
  canvas#signCanvas{width:100%!important;height:auto!important}
}
