/* ── VARIABLES ────────────────────────────────── */
:root {
  --bg:           #07090f;
  --bg-header:    #0d1117;
  --bg-pane-hd:   #0d1117;
  --bg-input:     #111827;
  --bg-hover:     #1a2234;
  --border:       #1e293b;
  --border-mid:   #2d3748;
  --text:         #e2e8f0;
  --text-dim:     #94a3b8;
  --text-muted:   #64748b;
  --accent:       #a78bfa;
  --accent-glow:  rgba(167,139,250,.15);
  --accent-dim:   #7c3aed;
  --green:        #4ade80;
  --red:          #f87171;
  --yellow:       #fbbf24;

  --hl-even:      rgba(167,139,250,.22);
  --hl-even-ring: rgba(167,139,250,.45);
  --hl-odd:       rgba(167,139,250,.12);
  --hl-odd-ring:  rgba(167,139,250,.28);

  --font-ui:   'Inter', system-ui, sans-serif;
  --font-code: 'JetBrains Mono', 'Fira Code', monospace;

  --radius:   6px;
  --radius-sm: 4px;
}

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

html { height: 100%; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── PAGE LAYOUT ──────────────────────────────── */
.page {
  display: flex;
  flex-direction: column;
  height: 100svh;
  overflow: hidden;
}

/* ── HEADER ───────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 18px;
  height: 52px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  color: var(--text-dim);
}
.logo-name span {
  color: var(--accent);
}

/* Flags */
.flag-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.flag-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.flag-group {
  display: flex;
  gap: 4px;
}
.flag {
  font-family: var(--font-code);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid);
  background: var(--bg-input);
  color: var(--text-muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
  user-select: none;
}
.flag:hover {
  background: var(--bg-hover);
  color: var(--text-dim);
  border-color: var(--border-mid);
}
.flag.active {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow);
}

/* Share button */
.header-actions { margin-left: auto; }
.btn-share {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-mid);
  background: var(--bg-input);
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn-share svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-share:hover {
  background: var(--bg-hover);
  color: var(--accent);
  border-color: var(--accent);
}
.btn-share.success { color: var(--green); border-color: var(--green); }
.btn-share.error   { color: var(--red);   border-color: var(--red);   }
.btn-share:disabled { opacity: .6; cursor: default; }

/* ── PATTERN BAR ──────────────────────────────── */
.pattern-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 18px;
  height: 48px;
  background: var(--bg-input);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.delim {
  font-family: var(--font-code);
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
  padding: 0 6px;
  opacity: .7;
  user-select: none;
}
.pattern-input {
  flex: 1;
  font-family: var(--font-code);
  font-size: 15px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  caret-color: var(--accent);
  padding: 0 4px;
}
.pattern-input::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}
.flags-display {
  font-family: var(--font-code);
  font-size: 15px;
  color: var(--accent);
  opacity: .7;
  min-width: 32px;
  padding-left: 6px;
}

/* ── MID (workspace + bottom wrapper) ─────────── */
.mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

/* ── WORKSPACE ────────────────────────────────── */
.workspace {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  min-height: 0;
}

/* ── PANES ────────────────────────────────────── */
.pane {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.pane-test { flex: 1; }
.pane-info {
  width: 300px;
  flex-shrink: 0;
  border-left: 1px solid var(--border);
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  height: 36px;
  background: var(--bg-pane-hd);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.pane-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
}
.match-count {
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 99px;
}
.match-count.found {
  background: var(--accent-glow);
  color: var(--accent);
}
.match-count.none {
  color: var(--text-muted);
}
.match-count.error {
  background: rgba(248,113,113,.12);
  color: var(--red);
}

/* ── RESIZER ──────────────────────────────────── */
.resizer {
  width: 4px;
  background: var(--border);
  cursor: col-resize;
  flex-shrink: 0;
  transition: background .15s;
}
.resizer:hover, .resizer.dragging {
  background: var(--accent);
}

/* ── TEST STRING HIGHLIGHT ────────────────────── */
.test-area {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.hl-backdrop {
  position: absolute;
  inset: 0;
  overflow: auto;
  pointer-events: none;
  scrollbar-width: none;
}
.hl-backdrop::-webkit-scrollbar { display: none; }

.hl-content {
  font-family: var(--font-code);
  font-size: 13.5px;
  line-height: 1.7;
  padding: 14px 16px;
  white-space: pre-wrap;
  word-break: break-word;
  tab-size: 2;
  color: transparent;
  min-height: 100%;
}
.hl-content mark {
  color: transparent;
  border-radius: 3px;
  position: relative;
}
.hl-content mark.hl-e {
  background: var(--hl-even);
  box-shadow: 0 0 0 1px var(--hl-even-ring);
}
.hl-content mark.hl-o {
  background: var(--hl-odd);
  box-shadow: 0 0 0 1px var(--hl-odd-ring);
}

#testString {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  font-family: var(--font-code);
  font-size: 13.5px;
  line-height: 1.7;
  padding: 14px 16px;
  tab-size: 2;
  background: transparent;
  color: var(--text);
  caret-color: var(--accent);
  border: none;
  outline: none;
  resize: none;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
#testString::placeholder {
  color: var(--text-muted);
}

/* ── MATCH INFO PANEL ─────────────────────────── */
.match-info {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-hint, .no-match {
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 4px;
  line-height: 1.5;
}
.match-error {
  font-size: 12px;
  color: var(--red);
  padding: 8px;
  background: rgba(248,113,113,.08);
  border: 1px solid rgba(248,113,113,.2);
  border-radius: var(--radius);
  line-height: 1.5;
  word-break: break-word;
}

.match-entry {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-input);
}
.match-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  background: var(--bg-hover);
  border-bottom: 1px solid var(--border);
}
.match-badge {
  font-family: var(--font-code);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}
.match-badge.m-e {
  background: var(--hl-even);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--hl-even-ring);
}
.match-badge.m-o {
  background: var(--hl-odd);
  color: var(--accent);
  opacity: .8;
}
.match-pos {
  font-family: var(--font-code);
  font-size: 10px;
  color: var(--text-muted);
}
.match-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 10px;
  border-bottom: 1px solid var(--border);
}
.match-row:last-child { border-bottom: none; }
.match-key {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 68px;
  padding-top: 1px;
}
.match-val {
  font-family: var(--font-code);
  font-size: 11.5px;
  color: var(--text);
  word-break: break-all;
  background: var(--bg);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.match-val-undef {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}
.match-named {
  font-size: 10px;
  color: var(--accent);
  opacity: .7;
  margin-left: 3px;
}

/* ── BOTTOM SECTION ───────────────────────────── */
.bottom {
  flex-shrink: 0;
  height: 164px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bottom-tabs {
  display: flex;
  background: var(--bg-pane-hd);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.btab {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  padding: 0 18px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.btab:hover { color: var(--text-dim); }
.btab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.bottom-body { flex: 1; overflow: hidden; }

.tab-pane {
  height: 100%;
  overflow: hidden;
}
.tab-pane.hidden { display: none; }

/* Substitution */
.sub-wrap {
  display: flex;
  height: 100%;
  gap: 0;
}
.sub-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  min-width: 0;
  overflow: hidden;
}
.sub-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 6px;
  flex-shrink: 0;
}
.sub-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}
.sub-input {
  font-family: var(--font-code);
  font-size: 13px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 7px 10px;
  outline: none;
  width: 100%;
  transition: border-color .15s;
}
.sub-input::placeholder { color: var(--text-muted); font-size: 12px; }
.sub-input:focus { border-color: var(--accent); }
.sub-result {
  font-family: var(--font-code);
  font-size: 13px;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 10px;
  flex: 1;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
}

/* Unit Tests */
.tests-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px 4px;
  overflow-y: auto;
  max-height: 88px;
}
.test-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.test-remove {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.test-remove:hover { background: rgba(248,113,113,.15); color: var(--red); border-color: var(--red); }
.test-input {
  font-family: var(--font-code);
  font-size: 12px;
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 4px 8px;
  outline: none;
  min-width: 0;
  transition: border-color .15s;
}
.test-input:focus { border-color: var(--accent); }
.test-toggle {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
  background: transparent;
}
.test-toggle.should-match {
  color: var(--green);
  border-color: rgba(74,222,128,.3);
  background: rgba(74,222,128,.08);
}
.test-toggle.should-not-match {
  color: var(--red);
  border-color: rgba(248,113,113,.3);
  background: rgba(248,113,113,.08);
}
.test-result {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
}
.test-result.pass { color: var(--green); background: rgba(74,222,128,.12); }
.test-result.fail { color: var(--red); background: rgba(248,113,113,.12); }

.btn-add-test {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px dashed var(--border-mid);
  border-radius: var(--radius);
  padding: 4px 14px;
  margin: 4px 10px 8px;
  cursor: pointer;
  display: block;
  transition: color .15s, border-color .15s;
}
.btn-add-test:hover { color: var(--accent); border-color: var(--accent); }

/* ── STATUS BAR ───────────────────────────────── */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 26px;
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.status-left, .status-right {
  font-size: 11px;
  color: var(--text-muted);
}
.status-privacy {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.status-privacy:hover { color: var(--accent); }
.s-ok   { color: var(--accent); }
.s-error { color: var(--red); }
.s-idle  { color: var(--text-muted); }

/* ── TOAST ────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e2a3a;
  border: 1px solid var(--border-mid);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
  z-index: 1000;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast.toast-error { border-color: var(--red); }

/* ── SHARE MODAL ──────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  padding: 16px;
  animation: fadeIn .15s ease;
}
.modal-backdrop.hidden {
  display: none;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: #111827;
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  width: 100%;
  max-width: 520px;
  animation: slideUp .18s ease;
}
@keyframes slideUp {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}
.modal-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.modal-close {
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { background: var(--bg-hover); color: var(--text); }

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.modal-url-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.modal-url-input {
  flex: 1;
  font-family: var(--font-code);
  font-size: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  color: var(--text-dim);
  padding: 9px 12px;
  outline: none;
  min-width: 0;
  cursor: text;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modal-url-input:focus {
  border-color: var(--accent);
  color: var(--text);
}

.modal-copy-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent-glow);
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.modal-copy-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.modal-copy-btn:hover {
  background: var(--accent);
  color: #fff;
}
.modal-copy-btn.copied {
  background: rgba(74,222,128,.15);
  border-color: var(--green);
  color: var(--green);
}

/* ── MOBILE NAV (hidden on desktop) ──────────── */
.mobile-nav { display: none; }

/* ── MOBILE ───────────────────────────────────── */
@media (max-width: 768px) {
  /* Full-height locked layout */
  html, body { height: 100%; overflow: hidden; }
  .page {
    height: 100svh;
    height: 100dvh;
    overflow: hidden;
  }

  /* Header: compact — logo + scrollable flags + share */
  .header {
    height: 48px;
    padding: 0 10px;
    gap: 6px;
    flex-shrink: 0;
  }
  .flag-label { display: none; }
  .flag-strip {
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 4px;
  }
  .flag-strip::-webkit-scrollbar { display: none; }
  .flag {
    padding: 5px 9px;
    font-size: 11.5px;
    min-height: 32px;
    flex-shrink: 0;
  }
  .btn-share-label { display: none; }
  .btn-share { padding: 7px 11px; }

  /* Pattern bar */
  .pattern-bar {
    padding: 0 10px;
    height: 46px;
    flex-shrink: 0;
  }
  .pattern-input { font-size: 14px; }

  /* Mid: fills remaining space, position context for panels */
  .mid {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
  }

  /* Workspace: full mid area, hidden by default */
  .workspace {
    position: absolute;
    inset: 0;
    flex-direction: column;
    display: none;
  }
  .workspace.m-active { display: flex; }

  /* Panes: fill workspace, switch one at a time */
  .pane-test, .pane-info {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    width: 100%;
    border-left: none;
    border-top: none;
  }
  .pane-test.m-active, .pane-info.m-active { display: flex; }

  /* Textarea fills available space */
  .test-area { flex: 1; }
  .test-area textarea { font-size: 14px; }

  /* Match info: scrollable */
  .match-info { overflow-y: auto; -webkit-overflow-scrolling: touch; }

  /* Resizer: gone on mobile */
  .resizer { display: none; }

  /* Bottom: full mid area, hidden by default */
  .bottom {
    position: absolute;
    inset: 0;
    height: auto;
    display: none;
    border-top: none;
  }
  .bottom.m-active { display: flex; }

  /* Bottom content: stack vertically */
  .bottom-body { flex: 1; overflow: hidden; }
  .sub-wrap {
    flex-direction: column;
    height: 100%;
  }
  .sub-divider { display: none; }
  .sub-col {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
  }
  .sub-col:first-child {
    flex: 0 0 auto;
    border-bottom: 1px solid var(--border);
  }
  .sub-input { font-size: 14px; }
  .sub-result {
    flex: 1;
    height: auto;
    min-height: 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tests-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .test-row { padding: 10px 14px; }
  .test-input { font-size: 14px; }
  .btn-add-test { padding: 12px 16px; font-size: 13px; flex-shrink: 0; }

  /* Match count badge: tappable on mobile when matches found */
  .match-count.found {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    -webkit-tap-highlight-color: transparent;
  }

  /* Status bar: hide on mobile */
  .status-bar { display: none; }

  /* Mobile nav bar */
  .mobile-nav {
    display: flex;
    flex-shrink: 0;
    height: 58px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg-header);
    border-top: 1px solid var(--border);
  }

  .m-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: color .15s;
    padding: 6px 0;
    -webkit-tap-highlight-color: transparent;
  }
  .m-nav-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }
  .m-nav-btn.active { color: var(--accent); }
  .m-nav-btn:active { opacity: .7; }

  /* Modal: full-width on mobile */
  .modal {
    width: calc(100vw - 24px);
    margin: 0 12px;
  }
  .modal-url-row { flex-direction: column; }
  .modal-copy-btn { justify-content: center; }
}
