/* ===================================================
   DARKLAB v2 — Design System
   Aesthetic: Terminal-meets-editorial. Monochromatic 
   base with surgical red accents. Type-first.
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;1,400&family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Core palette */
  --black:   #050505;
  --bg:      #0c0c0c;
  --bg2:     #111;
  --bg3:     #181818;
  --bg4:     #1f1f1f;
  --bg5:     #272727;
  --border:  rgba(255,255,255,0.06);
  --border2: rgba(255,255,255,0.11);
  --border3: rgba(255,255,255,0.2);

  /* Accent */
  --red:     #e63946;
  --red2:    #ff6b6b;
  --red-dim: rgba(230,57,70,0.12);
  --gold:    #f4a261;
  --green:   #52b788;
  --blue:    #4895ef;
  --purple:  #7b5ea7;

  /* Text */
  --t1:  #f0ede8;
  --t2:  #888580;
  --t3:  #4a4845;
  --t4:  #2a2826;

  /* Typography */
  --sans:  'Inter', system-ui, sans-serif;
  --mono:  'IBM Plex Mono', 'Courier New', monospace;
  --serif: 'Instrument Serif', Georgia, serif;

  /* Layout */
  --sidebar: 240px;
  --r:   8px;
  --r2:  12px;
  --r3:  16px;
}

html, body { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }

/* ===== SHELL ===== */
.shell { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar);
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo {
  width: 32px; height: 32px;
  background: var(--red);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.5px;
}
.brand-text { line-height: 1.2; }
.brand-name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  letter-spacing: 1px;
}
.brand-ver {
  font-size: 10px;
  color: var(--t3);
  font-family: var(--mono);
}

.sidebar-section {
  padding: 16px 18px 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--t3);
  font-family: var(--mono);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  color: var(--t2);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  transition: color 0.1s, background 0.1s;
  border-left: 2px solid transparent;
  white-space: nowrap;
}
.nav-item svg { flex-shrink: 0; opacity: 0.7; }
.nav-item:hover { color: var(--t1); background: var(--bg3); }
.nav-item.active {
  color: var(--t1);
  background: var(--bg3);
  border-left-color: var(--red);
}
.nav-item.active svg { opacity: 1; }

.nav-badge {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-family: var(--mono);
  font-weight: 600;
  background: var(--red-dim);
  color: var(--red2);
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.status-row {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-family: var(--mono); color: var(--t3);
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%; flex-shrink: 0;
}
.dot.on  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot.off { background: var(--red); box-shadow: 0 0 6px var(--red); }
.dot.idle{ background: var(--gold); }

/* ===== MAIN ===== */
.main { margin-left: var(--sidebar); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,12,12,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 36px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-crumb {
  font-size: 12px; font-family: var(--mono);
  color: var(--t2);
}
.topbar-crumb span { color: var(--t1); }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.page-body { padding: 36px 36px 80px; max-width: 1140px; }

/* ===== TYPOGRAPHY ===== */
.display {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 68px);
  font-style: italic;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--t1);
}
.display em { font-style: normal; color: var(--red); }

.section-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--t3);
  font-family: var(--mono);
  margin-bottom: 12px;
}

/* ===== GRID SYSTEMS ===== */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.g-main { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }

/* ===== CARDS ===== */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 20px;
}
.card-sm { padding: 14px; }
.card-lg { padding: 28px; }
.card-header {
  font-size: 10px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--t3); font-family: var(--mono);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-size: 16px; font-weight: 600;
  color: var(--t1); margin-bottom: 6px;
}
.card-sub { font-size: 13px; color: var(--t2); line-height: 1.6; }

.stat-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  text-align: center;
}
.stat-val {
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  color: var(--t1);
  margin-bottom: 4px;
}
.stat-lbl { font-size: 11px; font-family: var(--mono); color: var(--t2); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red); color: white;
}
.btn-primary:hover { background: #c62d39; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--t2);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { color: var(--t1); border-color: var(--border3); background: var(--bg3); }

.btn-ghost {
  background: transparent; color: var(--t2); border: none;
}
.btn-ghost:hover { color: var(--t1); }

.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-xs { padding: 4px 9px; font-size: 11px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--r); cursor: pointer; color: var(--t2);
  transition: all 0.12s; flex-shrink: 0;
}
.btn-icon:hover { color: var(--t1); border-color: var(--border3); }

/* ===== FORMS ===== */
.field { margin-bottom: 18px; }
.field-label {
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--t2); font-family: var(--mono);
  margin-bottom: 7px;
}
.field-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--t3); }

.input, .textarea, .select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  color: var(--t1);
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 13px;
  outline: none;
  transition: border-color 0.12s;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--red); }
.input::placeholder, .textarea::placeholder { color: var(--t3); }
.textarea { resize: vertical; line-height: 1.7; }
.select { cursor: pointer; }

.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }

/* ===== TABS ===== */
.tabs {
  display: flex; gap: 2px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 3px;
  margin-bottom: 20px;
}
.tab {
  flex: 1; padding: 8px 12px;
  background: transparent; border: none;
  border-radius: 6px;
  color: var(--t2); font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.12s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.tab:hover { color: var(--t1); }
.tab.active { background: var(--bg4); color: var(--t1); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.18s ease; }

/* ===== PIPELINE STEPS ===== */
.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.pipe-step {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
  position: relative;
  border-top: 2px solid var(--bg4);
  border-bottom: 2px solid var(--bg4);
}
.pipe-step:first-child { border-radius: var(--r) 0 0 var(--r); }
.pipe-step:last-child  { border-radius: 0 var(--r) var(--r) 0; }
.pipe-step.active  { background: var(--red-dim); border-color: var(--red); }
.pipe-step.done    { background: rgba(82,183,136,0.08); border-color: var(--green); }
.pipe-step.pending { background: var(--bg3); }
.pipe-num {
  width: 20px; height: 20px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-family: var(--mono); font-weight: 600;
  flex-shrink: 0;
}
.pipe-step.active  .pipe-num { background: var(--red); color: white; }
.pipe-step.done    .pipe-num { background: var(--green); color: white; }
.pipe-step.pending .pipe-num { background: var(--bg5); color: var(--t3); }
.pipe-label { font-size: 12px; font-weight: 600; color: var(--t2); }
.pipe-step.active  .pipe-label,
.pipe-step.done    .pipe-label { color: var(--t1); }
.pipe-arrow { color: var(--t4); font-size: 12px; padding: 0 4px; flex-shrink: 0; }

/* ===== PATTERN / RESULT CARDS ===== */
.pattern {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
  margin-bottom: 8px;
}
.pattern-head {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 8px;
}
.pattern-rank {
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%; background: var(--red-dim); color: var(--red2);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-family: var(--mono); font-weight: 600;
}
.pattern-name { font-size: 13px; font-weight: 600; color: var(--t1); }
.pattern-badge {
  margin-left: auto;
  font-size: 10px; font-family: var(--mono); font-weight: 600;
  padding: 2px 7px; border-radius: 4px;
}
.badge-red    { background: var(--red-dim); color: var(--red2); }
.badge-green  { background: rgba(82,183,136,0.1); color: var(--green); }
.badge-gold   { background: rgba(244,162,97,0.1); color: var(--gold); }
.badge-blue   { background: rgba(72,149,239,0.1); color: var(--blue); }

.pattern-desc { font-size: 12.5px; color: var(--t2); line-height: 1.6; margin-bottom: 8px; }
.pattern-ex {
  font-size: 12px; font-family: var(--mono);
  color: var(--red2); line-height: 1.5;
  padding: 7px 11px;
  background: var(--red-dim);
  border-left: 2px solid var(--red);
  border-radius: 0 var(--r) var(--r) 0;
  margin-bottom: 8px;
}
.score-bar {
  display: flex; align-items: center; gap: 8px;
}
.score-track {
  flex: 1; height: 3px;
  background: var(--bg5); border-radius: 2px; overflow: hidden;
}
.score-fill {
  height: 100%; background: var(--red); border-radius: 2px;
  transition: width 0.9s ease;
}
.score-num {
  font-size: 11px; font-family: var(--mono); font-weight: 500;
  color: var(--red2); min-width: 34px; text-align: right;
}

/* ===== SCRIPT BLOCKS ===== */
.script-block {
  border-left: 3px solid var(--red);
  padding: 13px 16px;
  background: var(--bg3);
  border-radius: 0 var(--r) var(--r) 0;
  margin-bottom: 10px;
}
.script-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--red);
  font-family: var(--mono); margin-bottom: 7px;
  display: flex; align-items: center; gap: 10px;
}
.script-dur { color: var(--t3); font-weight: 400; }
.script-text { font-size: 13.5px; color: var(--t1); line-height: 1.75; }
.script-note { font-size: 11px; color: var(--t3); font-family: var(--mono); margin-top: 8px; }

/* ===== TITLE CARDS ===== */
.title-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 14px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); margin-bottom: 8px;
  cursor: pointer; transition: border-color 0.12s;
}
.title-item:hover { border-color: var(--border2); }
.title-item.copied { border-color: var(--green); }
.title-formula {
  font-size: 9px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--red);
  font-family: var(--mono); white-space: nowrap; padding-top: 2px;
  min-width: 80px;
}
.title-text { flex: 1; font-size: 14px; font-weight: 500; color: var(--t1); line-height: 1.4; }
.title-meta { text-align: right; flex-shrink: 0; }
.title-ctr { font-size: 11px; font-family: var(--mono); color: var(--gold); font-weight: 600; }
.title-chars { font-size: 10px; color: var(--t3); font-family: var(--mono); margin-top: 2px; }

/* ===== CHECKLIST ===== */
.cl-group { margin-bottom: 20px; }
.cl-group-title {
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--t3);
  font-family: var(--mono);
  padding-bottom: 8px; margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.cl-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 8px; border-radius: var(--r);
  cursor: pointer; transition: background 0.1s;
}
.cl-item:hover { background: var(--bg3); }
.cl-box {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  border: 1.5px solid var(--border3); border-radius: 4px;
  position: relative; transition: all 0.13s;
}
.cl-item.done .cl-box { background: var(--red); border-color: var(--red); }
.cl-item.done .cl-box::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 9px; height: 6px;
  border-left: 2px solid white; border-bottom: 2px solid white;
  transform: rotate(-45deg);
}
.cl-text { font-size: 13px; color: var(--t1); flex: 1; line-height: 1.4; }
.cl-item.done .cl-text { text-decoration: line-through; color: var(--t3); }
.cl-pri {
  font-size: 9px; font-weight: 600; font-family: var(--mono);
  padding: 2px 6px; border-radius: 3px; flex-shrink: 0; margin-top: 2px;
}
.pri-alta   { background: var(--red-dim); color: var(--red2); }
.pri-media  { background: rgba(244,162,97,0.1); color: var(--gold); }
.pri-baixa  { background: var(--bg4); color: var(--t3); }

/* ===== LOADING ===== */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--bg4);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.spinner-sm { width: 20px; height: 20px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.loader-box {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 40px;
  text-align: center;
}
.loader-steps {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 24px; min-width: 280px; text-align: left;
}
.lstep {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; font-size: 12px; font-family: var(--mono); color: var(--t3);
  border-bottom: 1px solid var(--border);
}
.lstep:last-child { border-bottom: none; }
.lstep-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg5); border: 1px solid var(--border3);
  transition: all 0.3s;
}
.lstep.done { color: var(--t2); }
.lstep.done .lstep-dot { background: var(--red); border-color: var(--red); }
.lstep.active .lstep-dot { background: var(--red); border-color: var(--red); animation: pulse 0.8s ease infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

/* ===== THUMBNAIL PREVIEW ===== */
.thumb-preview {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  border-radius: var(--r);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  font-family: var(--mono);
}
.thumb-generated {
  width: 100%; height: 100%; object-fit: cover;
}

/* ===== VIDEO PIPELINE CARD ===== */
.video-api-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 20px; margin-bottom: 12px;
}
.video-api-name {
  font-size: 13px; font-weight: 700; color: var(--t1); margin-bottom: 4px;
}
.video-api-desc { font-size: 12px; color: var(--t2); line-height: 1.5; margin-bottom: 12px; }
.video-api-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 11px; font-family: var(--mono); color: var(--t3);
}

/* ===== IMAGE RESULT ===== */
.img-result {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border2);
  background: var(--bg3);
}
.img-result img { width: 100%; display: block; }
.img-result-meta {
  padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-family: var(--mono); color: var(--t2);
  border-top: 1px solid var(--border);
}

/* ===== SEO TAGS ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.ytag {
  padding: 4px 10px; background: var(--bg4);
  border: 1px solid var(--border2); border-radius: 4px;
  font-size: 11.5px; font-family: var(--mono); color: var(--t2);
  cursor: pointer; transition: all 0.12s;
}
.ytag:hover { border-color: var(--border3); color: var(--t1); }
.ytag.primary { border-color: var(--red); color: var(--red2); background: var(--red-dim); }

/* ===== HISTORY LIST ===== */
.history-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer; text-decoration: none; color: inherit;
  transition: border-color 0.12s;
  margin-bottom: 6px;
}
.history-item:hover { border-color: var(--border2); background: var(--bg3); }
.history-icon {
  width: 34px; height: 34px;
  background: var(--bg4); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.history-info { flex: 1; min-width: 0; }
.history-title {
  font-size: 13px; font-weight: 600; color: var(--t1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.history-meta { font-size: 11px; color: var(--t3); font-family: var(--mono); margin-top: 2px; }

/* ===== RPM CARDS ===== */
.rpm-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px; text-align: center;
}
.rpm-val {
  font-family: var(--serif); font-style: italic;
  font-size: 32px; line-height: 1; color: var(--gold); margin-bottom: 4px;
}
.rpm-lbl { font-size: 10px; font-family: var(--mono); color: var(--t2); }

/* ===== EMPTY STATE ===== */
.empty {
  text-align: center; padding: 48px 24px;
  border: 1px dashed var(--border2);
  border-radius: var(--r2);
}
.empty-icon { font-size: 32px; margin-bottom: 12px; }
.empty-title { font-size: 15px; font-weight: 600; color: var(--t2); margin-bottom: 6px; }
.empty-sub { font-size: 13px; color: var(--t3); }
.empty-sub a { color: var(--red); text-decoration: none; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--r); padding: 11px 16px;
  font-size: 13px; color: var(--green);
  font-family: var(--mono);
  animation: slideUp 0.2s ease;
  z-index: 9999;
}
@keyframes slideUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
@keyframes fadeUp  { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

/* ===== MISC ===== */
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.action-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.action-bar-end { margin-left: auto; display: flex; gap: 8px; }
.text-mono { font-family: var(--mono); font-size: 12px; color: var(--t2); }
.text-red { color: var(--red2); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  :root { --sidebar: 0px; }
  .sidebar { display: none; }
  .page-body { padding: 20px 16px 60px; }
  .topbar { padding: 0 16px; }
  .g2, .g3, .g4, .g-main { grid-template-columns: 1fr; }
  .display { font-size: 36px; }
}
