/* eqp.wtf — editor. Quase preto com um único destaque verde-ácido; Space Grotesk nos títulos,
   Inter no texto, JetBrains Mono nos valores. Usa profile.css para a prévia. */
.studio {
  --ink-0: #050506;
  --ink-1: #0a0a0c;
  --ink-2: #101013;
  --ink-3: #17171b;
  --ink-4: #1f1f25;
  --edge: #1c1c21;
  --edge-2: #2a2a31;
  --txt: #ededf0;
  --txt-2: #a1a1aa;
  --txt-3: #63636d;
  --acid: #ef4444;
  --acid-btn: #c73a3c;
  --acid-ink: #ffffff;
  --acid-soft: #ef44441a;
  --bad: #ff5a5a;
  --ok: #4ade80;
  --r: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --top: 60px;
}
body.studio {
  display: block;
  place-items: normal;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: var(--ink-0);
  color: var(--txt);
  font: 400 14px/1.5 "Inter", system-ui, sans-serif;
}
.studio button, .studio input, .studio select, .studio textarea { font: inherit; color: inherit; }
.studio ::selection { background: #ef444455; }
.studio :focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

/* ---------- Barra do topo ---------- */
.top { position: relative; z-index: 50; display: flex; align-items: center; gap: 16px; height: var(--top); padding: 0 16px 0 20px; border-bottom: 1px solid var(--edge); background: var(--ink-0); }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 19px/1 "Space Grotesk", sans-serif; letter-spacing: -.03em; text-decoration: none; }
.brand span { color: var(--txt-3); }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 14px #ef444499; }
.address { display: flex; align-items: center; gap: 2px; margin-inline: auto; padding: 3px 3px 3px 14px; border: 1px solid var(--edge); border-radius: 999px; background: var(--ink-1); }
.address-link { font: 500 13px/1 "JetBrains Mono", monospace; text-decoration: none; white-space: nowrap; }
.address-host { color: var(--txt-3); }
.address-link:hover #address-slug { color: var(--acid); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 999px; background: none; color: var(--txt-2); cursor: pointer; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--ink-3); color: var(--txt); }
.icon-btn.danger:hover { background: #ff5a5a1a; color: var(--bad); }
.top-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.address:not([hidden]) + .top-actions { margin-left: 0; }
.save-state { color: var(--txt-3); font-size: 12.5px; white-space: nowrap; }
.save-state[data-dirty="true"] { color: var(--txt-2); }
.save-state[data-dirty="true"]::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--acid); vertical-align: 1px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s, opacity .15s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .35; cursor: not-allowed; }
.btn-acid { background: var(--acid-btn); color: var(--acid-ink); box-shadow: 0 12px 30px -16px #ef4444, inset 0 1px 0 #ffffff26; }
.btn-acid:hover:not(:disabled) { background: #d94446; }
.btn-acid kbd { padding: 2px 5px; border-radius: 5px; background: #00000026; font: 600 10.5px/1 "JetBrains Mono", monospace; }
.btn-ghost { border-color: var(--edge-2); background: var(--ink-2); }
.btn-ghost:hover { border-color: var(--txt-3); background: var(--ink-3); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-text { min-height: 34px; padding: 0 4px; border: 0; background: none; color: var(--txt-2); text-decoration: underline; text-underline-offset: 3px; }
.btn-text:hover { color: var(--txt); }
.btn-dashed { width: 100%; min-height: 46px; border: 1px dashed var(--edge-2); background: none; color: var(--txt-2); }
.btn-dashed:hover:not(:disabled) { border-color: var(--acid); color: var(--acid); }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 15px; border-radius: 12px; }

.account { position: relative; }
.account-btn { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--edge-2); border-radius: 50%; background: var(--ink-2); cursor: pointer; overflow: hidden; }
.account-btn img { width: 100%; height: 100%; object-fit: cover; }
.menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; padding: 6px; border: 1px solid var(--edge-2); border-radius: 12px; background: var(--ink-2); box-shadow: 0 20px 50px -20px #000; }
.menu-head { display: grid; gap: 2px; margin: 0; padding: 8px 10px 10px; border-bottom: 1px solid var(--edge); }
.menu-head span { color: var(--txt-3); font-size: 12px; }
.menu form { margin: 0; }
.menu-item { width: 100%; min-height: 38px; margin-top: 6px; padding: 0 10px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--ink-3); }

.boot { margin: 30vh 0 0; color: var(--txt-3); text-align: center; }

/* ---------- Escolha do endereço ---------- */
.claim { display: grid; justify-items: center; align-content: center; min-height: calc(100vh - var(--top)); padding: 24px; text-align: center; background: radial-gradient(700px circle at 50% 20%, #7f1d1d55, transparent 70%); }
.eyebrow { margin: 0; color: var(--acid); font: 600 12px/1 "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.claim h1 { margin: 18px 0 0; font: 700 clamp(34px, 6vw, 64px)/1.02 "Space Grotesk", sans-serif; letter-spacing: -.045em; }
.claim-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: min(560px, 100%); margin-top: 36px; }
.slug-field { display: flex; flex: 1 1 260px; align-items: center; min-height: 54px; padding: 0 16px; border: 1px solid var(--edge-2); border-radius: 12px; background: var(--ink-1); font: 500 16px/1 "JetBrains Mono", monospace; transition: border-color .15s; }
.slug-field span { color: var(--txt-3); }
.slug-field input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: none; font: inherit; }
.slug-field:focus-within { border-color: var(--acid); }
.slug-hint { min-height: 1.5em; margin: 14px 0 0; color: var(--txt-3); font-size: 13px; }
.slug-hint[data-state="ok"] { color: var(--ok); }
.slug-hint[data-state="bad"] { color: var(--bad); }

/* ---------- Editor ---------- */
.studio-grid { --rail: 232px; display: grid; grid-template-columns: var(--rail) minmax(340px, 420px) minmax(0, 1fr); height: calc(100vh - var(--top)); height: calc(100dvh - var(--top)); }

/* Menu lateral: busca, grupos (Início, Personalizar, Conta), Aparência que abre e fecha, ajuda e a conta no pé.
   Em telas médias vira só ícones com nome curto; no celular, uma faixa que rola para o lado. */
.rail { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-right: 1px solid var(--edge); background: var(--ink-0); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--edge-2) transparent; }
.rail-search { display: flex; flex: none; align-items: center; gap: 8px; min-height: 36px; margin-bottom: 6px; padding: 0 8px 0 10px; border: 1px solid var(--edge-2); border-radius: 9px; background: var(--ink-2); color: var(--txt-3); font-size: 13px; cursor: pointer; transition: border-color .15s, color .15s; }
.rail-search:hover { border-color: var(--txt-3); color: var(--txt-2); }
.rail-search span { flex: 1; text-align: left; }
.rail-search kbd, .palette-field kbd { padding: 3px 6px; border: 1px solid var(--edge-2); border-radius: 5px; background: var(--ink-1); color: var(--txt-3); font: 600 10.5px/1 "JetBrains Mono", monospace; }
.rail-group { margin: 14px 10px 6px; color: var(--txt-3); font: 600 10.5px/1 "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; }
.rail-item { position: relative; display: flex; flex: none; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--txt-2); font-size: 13.5px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; transition: color .15s, background .15s; }
.rail-item svg { flex: none; color: var(--txt-3); transition: color .15s, transform .2s var(--ease); }
.rail-item:hover { background: var(--ink-2); color: var(--txt); }
.rail-item:hover svg { color: var(--txt-2); }
.rail-item[aria-current="true"] { background: var(--acid-soft); color: var(--txt); font-weight: 600; }
.rail-item[aria-current="true"] svg, .rail-parent.has-current > svg:first-child { color: var(--acid); }
.rail-item[aria-current="true"]::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--acid); box-shadow: 0 0 12px var(--acid); }
.rail-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-parent[aria-expanded="true"] > svg:last-child { transform: rotate(90deg); }
.rail-sub { display: grid; gap: 2px; margin: 2px 0 4px 19px; padding-left: 9px; border-left: 1px solid var(--edge); }
.rail-sub .rail-item { min-height: 32px; font-size: 13px; }
.rail-sub .rail-item[aria-current="true"]::before { left: -10px; }
.rail-foot { display: grid; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--edge); }
.rail-user { display: flex; align-items: center; gap: 10px; padding: 4px 10px; }
.rail-user img { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.rail-user span { display: grid; min-width: 0; }
.rail-user strong, .rail-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-user strong { font-size: 13px; }
.rail-user small { color: var(--txt-3); font: 500 11px/1.4 "JetBrains Mono", monospace; }

.panel { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--edge); background: var(--ink-1); overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--edge-2) transparent; }
.panel-head { position: sticky; top: 0; z-index: 2; padding: 22px 22px 16px; border-bottom: 1px solid var(--edge); background: linear-gradient(var(--ink-1) 80%, #0a0a0ce6); }
.panel-head h2 { margin: 0; font: 700 24px/1.1 "Space Grotesk", sans-serif; letter-spacing: -.03em; }
.panel-head p { margin: 6px 0 0; color: var(--txt-3); font-size: 13px; }
.panel-body { display: grid; gap: 2px; padding: 8px 0 40px; }

.group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--edge); }
.group:last-child { border-bottom: 0; }
.group-title { margin: 0; color: var(--txt-3); font: 600 11px/1 "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.field-label, .field-label-row { color: var(--txt-2); font-size: 13px; font-weight: 500; }
.field-label-row { display: flex; justify-content: space-between; }
.field-hint { color: var(--txt-3); font-size: 12px; }
.counter { color: var(--txt-3); font: 500 11.5px/1.6 "JetBrains Mono", monospace; }

.input { width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid var(--edge-2); border-radius: 10px; background: var(--ink-2); transition: border-color .15s, background .15s; }
.input::placeholder { color: var(--txt-3); }
.input:hover { border-color: #3a3a43; }
.input:focus { border-color: var(--acid); background: var(--ink-1); outline: 0; }
textarea.input { resize: vertical; min-height: 84px; }
.input-mono { font: 400 12.5px/1.4 "JetBrains Mono", monospace !important; }

/* Segmentado */
.seg { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--edge-2); border-radius: 11px; background: var(--ink-2); }
.seg button { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--txt-2); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.seg button:hover:not(:disabled) { color: var(--txt); }
.seg button[aria-checked="true"], .seg button[aria-pressed="true"] { background: var(--ink-4); color: var(--txt); box-shadow: inset 0 0 0 1px var(--edge-2); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.seg-wrap { flex-wrap: wrap; }
.seg-wrap button { flex: 1 1 auto; }
.studio select.input { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, var(--txt-3) 50%), linear-gradient(135deg, var(--txt-3) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.studio select.input option { background: var(--ink-2); color: var(--txt); }
.seg-sm button { min-height: 30px; font-size: 12.5px; }
.pro-tag { padding: 2px 5px; border-radius: 5px; background: var(--acid-btn); color: var(--acid-ink); font: 700 9.5px/1 "JetBrains Mono", monospace; letter-spacing: .04em; }

/* Slider */
.slider { --fill: 50%; display: grid; grid-template-columns: 1fr 54px; align-items: center; gap: 12px; }
.slider input { width: 100%; height: 22px; margin: 0; background: none; appearance: none; cursor: pointer; }
.slider input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--acid) var(--fill), var(--ink-4) var(--fill)); }
.slider input::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--acid) var(--fill), var(--ink-4) var(--fill)); }
.slider input::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -6px; border: 3px solid var(--ink-0); border-radius: 50%; background: var(--txt); box-shadow: 0 0 0 1px var(--edge-2); appearance: none; }
.slider input::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid var(--ink-0); border-radius: 50%; background: var(--txt); }
.slider-value { padding: 5px 0; border: 1px solid var(--edge); border-radius: 8px; background: var(--ink-2); color: var(--txt-2); font: 500 12px/1 "JetBrains Mono", monospace; text-align: center; }

/* Cor */
.color { display: grid; gap: 10px; }
.color-top { display: grid; grid-template-columns: 40px 1fr; gap: 8px; }
.color-native { width: 40px; height: 40px; padding: 0; border: 1px solid var(--edge-2); border-radius: 10px; background: none; cursor: pointer; }
.color-native::-webkit-color-swatch-wrapper { padding: 3px; }
.color-native::-webkit-color-swatch { border: 0; border-radius: 7px; }
.color-native::-moz-color-swatch { border: 0; border-radius: 7px; }
.color-hex { font: 500 13px/1 "JetBrains Mono", monospace; text-transform: lowercase; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 26px; height: 26px; padding: 0; border: 1px solid #ffffff1a; border-radius: 8px; background: var(--swatch); cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s; }
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink-1), 0 0 0 4px var(--txt); }

/* Interruptor */
.toggle { display: flex; align-items: center; gap: 12px; min-height: 40px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-track { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--ink-4); box-shadow: inset 0 0 0 1px var(--edge-2); transition: background .2s; }
.toggle-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--txt-2); transition: transform .25s var(--ease), background .2s; }
.toggle input:checked + .toggle-track { background: var(--acid); }
.toggle input:checked + .toggle-track::after { transform: translateX(16px); background: var(--acid-ink); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--acid); outline-offset: 2px; }
.toggle-label { color: var(--txt-2); font-size: 13px; font-weight: 500; }

/* Grades com amostra */
.tiles { display: grid; gap: 8px; }
.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile, .preset { display: grid; gap: 7px; padding: 5px 5px 8px; border: 1px solid var(--edge-2); border-radius: 12px; background: var(--ink-2); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .2s var(--ease); }
.tile:hover, .preset:hover { border-color: #3a3a43; background: var(--ink-3); }
.tile[aria-checked="true"] { border-color: var(--acid); background: var(--acid-soft); box-shadow: inset 0 0 0 1px var(--acid); }
.tile-label { padding: 0 5px; color: var(--txt-2); font-size: 12.5px; font-weight: 600; }
.tile[aria-checked="true"] .tile-label { color: var(--txt); }
.thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: var(--thumb-bg, #070708); }
.thumb canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.font-sample, .effect-sample { display: grid; place-items: center; height: 54px; border-radius: 8px; background: var(--ink-0); color: var(--txt); font-size: 22px; }
.font-sample .name { margin: 0; font-size: 22px; line-height: 1; }
.font-sample.name-font-pixel .name { font-size: 14px; }
.effect-sample .name { margin: 0; font-size: 22px; }

/* Temas */
.presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 18px 22px; }
.preset .thumb { aspect-ratio: 4 / 3; }
.preset-sample { position: relative; z-index: 1; }
.preset-sample .name { margin: 0; font-size: 20px; color: var(--accent); text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 70%, transparent); }
.preset-sample.name-font-pixel .name { font-size: 12px; }
.preset:hover { transform: translateY(-2px); }
.templates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.templates > .empty { grid-column: 1 / -1; }
.template { display: grid; gap: 8px; min-width: 0; padding: 8px; border: 1px solid var(--edge); border-radius: 14px; background: var(--ink-2); }
.template-apply { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.template-apply .thumb { aspect-ratio: 4 / 3; }
.template-info { display: grid; gap: 1px; min-width: 0; padding: 0 2px; }
.template-info strong { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.template-info small, .template-tags { overflow: hidden; color: var(--txt-3); font: 500 11px/1.4 "JetBrains Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }
.template-meta { display: flex; align-items: center; gap: 8px; padding: 0 2px; color: var(--txt-3); font-size: 12px; }
.studio .template-like { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 8px; border: 1px solid var(--edge-2); border-radius: 8px; background: var(--ink-1); color: var(--txt-2); font-size: 12px; cursor: pointer; }
.studio .template-like[aria-pressed="true"] { border-color: #fb718566; background: #fb71851a; color: #fb7185; }
.template-uses { margin-right: auto; }
.template-form { display: grid; gap: 12px; }
.template-form .btn { justify-self: start; }
.comment-admin { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.comment-admin li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 10px; background: var(--ink-2); font-size: 13px; }
.comment-admin strong { grid-column: 1; }
.comment-admin span { grid-column: 1; color: var(--txt-2); overflow-wrap: anywhere; }
.comment-admin .btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

/* Perfil */
.avatar-row { display: flex; align-items: center; gap: 16px; }
.avatar-thumb { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--ink-3); box-shadow: 0 0 0 1px var(--edge-2); }
.avatar-actions, .file { display: grid; justify-items: start; gap: 6px; }

/* Links */
.usage { margin: 0; color: var(--txt-3); font-size: 12.5px; }
.usage strong { color: var(--txt); font: 600 12.5px/1 "JetBrains Mono", monospace; }
.link-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.link-card { display: grid; grid-template-columns: 28px 34px minmax(0, 1fr) 34px; align-items: center; gap: 6px; padding: 8px 6px 8px 4px; border: 1px solid var(--edge-2); border-radius: 12px; background: var(--ink-2); transition: border-color .15s, opacity .15s; }
.link-card.is-dragging { opacity: .4; }
.link-card.is-over { border-color: var(--acid); }
.drag { display: grid; place-items: center; height: 40px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--txt-3); cursor: grab; }
.drag:hover { color: var(--txt); }
.link-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink-0); color: var(--txt-2); }
.link-icon .icon { width: 17px; height: 17px; fill: currentColor; }
.link-fields { display: grid; gap: 5px; }
.link-fields .input { min-height: 34px; padding: 6px 10px; }

/* Música */
.music-file { display: grid; gap: 10px; }
.now-playing { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border: 1px solid var(--edge-2); border-radius: 10px; background: var(--ink-2); color: var(--acid); font-weight: 600; }

/* Conta */
.slug-form { display: flex; gap: 8px; }
.slug-form .btn { flex: none; }
.slug-form .slug-field { min-width: 0; min-height: 42px; padding: 0 12px; font-size: 13.5px; }
.plan-card { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--edge-2); border-radius: 12px; background: var(--ink-2); }
.plan-card strong { font: 700 20px/1 "Space Grotesk", sans-serif; }
.plan-card span { color: var(--txt-3); font-size: 13px; }
.plan-price { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; }
.plan-once { color: var(--txt-3); font-size: 12px; }
.plan-price b { font: 700 24px/1 "Space Grotesk", sans-serif; letter-spacing: -.03em; }
.studio .pix-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 7px; border: 1px solid #32bcad40; border-radius: 999px; background: #32bcad12; font-size: 12px; font-weight: 600; }
.studio .pix-tag svg { width: 14px; height: 14px; fill: #32bcad; }
.plan-how { color: var(--acid); font-size: 13px; font-weight: 600; text-decoration: none; }
.plan-how:hover { text-decoration: underline; }
.plan-card[data-plan="pro"] { border-color: var(--acid); background: linear-gradient(135deg, #ef444414, transparent 60%), var(--ink-2); }
.plan-card[data-plan="pro"] strong { color: var(--acid); }
.badge-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.badge-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 12px; opacity: .55; }
.badge-list li.has { border-color: var(--edge-2); background: var(--ink-2); opacity: 1; }
.badge-list span:last-child { display: grid; }
.badge-list small { color: var(--txt-3); font-size: 12px; }
.badge-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink-0); }
.badge-icon .icon { width: 18px; height: 18px; fill: currentColor; }
.badge-icon.badge-pro { color: var(--acid); }
.badge-icon.badge-booster { color: #ff73fa; }
.badge-icon.badge-early { color: #ffd166; }

/* ---------- Palco da prévia ---------- */
.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; background-color: var(--ink-0); background-image: radial-gradient(#ffffff0d 1px, transparent 1px), radial-gradient(900px 600px at 80% -10%, #7f1d1d40, transparent 70%); background-size: 22px 22px, auto; }
.stage-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; }
.chip { min-height: 32px; padding: 0 14px; border: 1px solid var(--edge-2); border-radius: 999px; background: var(--ink-1); color: var(--txt-2); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--acid); color: var(--acid); background: var(--acid-soft); }
.stage-canvas { display: grid; flex: 1; place-items: center; min-height: 0; padding: 0 28px 28px; }
.frame { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--edge-2); background: var(--ink-1); box-shadow: 0 40px 100px -40px #000, 0 0 0 6px #ffffff05; transition: width .45s var(--ease), height .45s var(--ease), border-radius .45s var(--ease); }
.frame-desktop { width: min(100%, 1100px); height: min(100%, 720px); border-radius: 14px; }
.frame-phone { width: 390px; height: min(100%, 780px); border-radius: 40px; border-width: 8px; border-color: #18181c; }
.frame-chrome { display: flex; flex: none; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--edge); background: var(--ink-1); }
.frame-chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-4); }
.frame-chrome span { margin-left: 12px; padding: 4px 12px; border-radius: 6px; background: var(--ink-2); color: var(--txt-3); font: 500 11.5px/1 "JetBrains Mono", monospace; }
.frame-phone .frame-chrome { justify-content: center; height: 30px; border-bottom: 0; background: #000; }
.frame-phone .frame-chrome i, .frame-phone .frame-chrome span { display: none; }
.frame-phone .frame-chrome::before { content: ""; width: 90px; height: 20px; border-radius: 999px; background: #0d0d10; }

.preview { position: relative; display: grid; flex: 1; place-items: center; min-height: 0; overflow: hidden; background: var(--bg-color, #070708); color: #f4f1f8; font-family: "Inter", system-ui, sans-serif; font-size: 16px; }
.preview .bg, .preview .cursor-fx, .preview .enter, .preview .page-filter { position: absolute; }
.preview .profile { max-height: 100%; overflow-y: auto; padding-block: 28px; opacity: 1; transform: none; scrollbar-width: none; }
.preview .name { font-size: 28px; }
.preview .enter { z-index: 5; }
.preview-music { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding: 10px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 13px; }
.frame-phone .preview .profile { width: calc(100% - 28px); }

/* ---------- Avisos ---------- */
.toasts { position: fixed; bottom: 20px; left: 50%; z-index: 100; display: grid; gap: 8px; justify-items: center; transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border: 1px solid var(--edge-2); border-radius: 12px; background: var(--ink-3); box-shadow: 0 20px 40px -16px #000; font-size: 13px; font-weight: 500; pointer-events: auto; animation: toast-in .35s var(--ease); transition: opacity .3s, transform .3s; }
.toast.ok { border-color: #4ade8055; }
.toast.ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.toast.bad { border-color: #ff5a5a66; }
.toast.bad::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); }
.toast.is-out { opacity: 0; transform: translateY(8px); }
.toast-action { min-height: 28px; padding: 0 10px; border: 0; border-radius: 7px; background: var(--acid-btn); color: var(--acid-ink); font-weight: 700; cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- Telas menores ---------- */
@media (max-width: 1180px) {
  .studio-grid { --rail: 86px; grid-template-columns: var(--rail) minmax(320px, 380px) minmax(0, 1fr); }
  .rail { padding: 10px 8px; }
  .rail-search { justify-content: center; padding: 0; }
  .rail-search span, .rail-search kbd, .rail-group, .rail-parent, .rail-user span { display: none; }
  .rail-sub, .rail-sub[hidden] { display: contents; }
  .rail-item { flex-direction: column; justify-content: center; gap: 5px; min-height: 0; padding: 9px 2px 7px; font-size: 10.5px; font-weight: 600; text-align: center; }
  .rail-item[aria-current="true"] { font-weight: 600; }
  .rail-item[aria-current="true"]::before, .rail-sub .rail-item[aria-current="true"]::before { left: -8px; top: 10px; bottom: 10px; }
  .rail-label { flex: none; max-width: 100%; }
  .rail-label[data-short] { font-size: 0; }
  .rail-label[data-short]::after { content: attr(data-short); font-size: 10.5px; }
  .rail-user { justify-content: center; padding: 4px 0; }
  .stage-canvas { padding: 0 16px 16px; }
  .save-state { display: none; }
}
@media (max-width: 900px) {
  body.studio { overflow: auto; }
  .top { position: sticky; top: 0; gap: 10px; padding: 0 12px; }
  .address { display: none !important; }
  .top-actions { margin-left: auto !important; }
  #device { display: none; }
  .btn-acid kbd { display: none; }
  .studio-grid { display: flex; flex-direction: column; height: auto; }
  .stage { order: -1; height: 56vh; min-height: 380px; }
  .stage-bar { padding: 10px; }
  .stage-canvas { padding: 0 12px 12px; }
  .frame-desktop, .frame-phone { width: 100%; height: 100%; border-radius: 14px; border-width: 1px; border-color: var(--edge-2); }
  .frame-chrome { display: none; }
  .rail { position: sticky; top: var(--top); z-index: 20; flex-direction: row; gap: 2px; padding: 6px 8px; border-right: 0; border-bottom: 1px solid var(--edge); overflow-x: auto; scrollbar-width: none; }
  .rail-item { flex: none; width: auto; min-width: 66px; }
  .rail-search { flex: none; width: 44px; margin: 0 4px 0 0; }
  .rail-foot { display: none; }
  .rail-item[aria-current="true"]::before { left: 14px; right: 14px; top: auto; bottom: -6px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .panel { overflow: visible; border-right: 0; }
  .panel-head { position: static; }
}
@media (max-width: 480px) {
  .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .group { padding: 16px; }
  .presets { padding: 16px; }
  .slug-form { flex-direction: column; }
}

/* ---------- Redes e links ---------- */
.net-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.studio .net { display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 1px solid var(--edge); border-radius: 11px; background: var(--ink-2); color: var(--brand, var(--txt)); cursor: pointer; transition: transform .18s var(--ease), border-color .15s, background .15s; }
.net .icon { width: 20px; height: 20px; fill: currentColor; }
.net:hover:not(:disabled) { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand, #fff) 45%, transparent); background: color-mix(in srgb, var(--brand, #fff) 10%, var(--ink-2)); }
.net:disabled { opacity: .3; cursor: not-allowed; }
.link-card { grid-template-columns: 28px 34px minmax(0, 1fr) 34px; }
.link-icon { color: var(--brand, var(--txt-2)); }
.link-info { display: grid; gap: 2px; min-width: 0; min-height: 40px; padding: 4px 6px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; }
.link-info:hover { background: var(--ink-3); }
.link-info strong { overflow: hidden; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.link-info span { overflow: hidden; color: var(--txt-3); font: 400 12px/1.3 "JetBrains Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }
.link-info .is-bad { color: var(--bad); font-family: "Inter", sans-serif; }
.empty { margin: 0; padding: 18px; border: 1px dashed var(--edge-2); border-radius: 12px; color: var(--txt-3); text-align: center; }
.badge-list li { gap: 12px; }
.badge-text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.badge-tag { flex: none; padding: 3px 7px; border: 1px solid var(--edge-2); border-radius: 6px; color: var(--txt-3); font: 600 10px/1 "JetBrains Mono", monospace; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.badge-list li:not(.has) .badge-icon { opacity: .55; filter: grayscale(.4); }
.badge-progress { display: block; height: 4px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: var(--ink-3); }
.badge-progress span { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--acid); }
.badge-count { display: block; margin-top: 4px; color: var(--txt-3); font: 500 11px/1 "JetBrains Mono", monospace; }
.badge-icon.badge-paired { color: #fb7185; } .badge-icon.badge-genesis { color: #f0abfc; } .badge-icon.badge-pioneer { color: #5eead4; }
.badge-icon.badge-anniversary { color: #fdba74; } .badge-icon.badge-views100k { color: #fde047; } .badge-icon.badge-early { color: #ffd166; }
.widget-add { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.studio .widget-add-btn { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px; border: 1px solid var(--edge-2); border-radius: 10px; background: var(--ink-2); color: var(--txt-2); font-size: 12.5px; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s, color .15s; }
.studio .widget-add-btn:hover:not(:disabled) { border-color: var(--acid); color: var(--txt); }
.widget-add-btn:disabled { opacity: .4; cursor: not-allowed; }
.widget-add-btn .icon, .widget-item-title .icon { width: 17px; height: 17px; fill: currentColor; color: var(--brand, var(--acid)); }
.brand-pix { --brand: #32bcad; } .brand-minecraft { --brand: #62b47a; }
.widget-items { display: grid; gap: 10px; }
.widget-item { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--edge); border-radius: 12px; background: var(--ink-2); }
.widget-item-top { display: flex; align-items: center; gap: 8px; }
.widget-item-title { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; }
.widget-item-tools { display: flex; gap: 2px; }
.widget-item-tools .icon-btn:disabled { opacity: .3; }
.field-hint[data-state="ok"] { color: var(--ok); }
.field-hint[data-state="bad"] { color: var(--txt-3); }
.widget-warn { color: #fbbf24; }
.bonds { display: grid; min-width: 0; }
.panel-body > *, .bonds > *, .bond-row, .bond-item > * { min-width: 0; }
.bond-item .bond-row { flex-wrap: wrap; }
.bond-row { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; }
.bond-face { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.bond-face-letter { display: grid; place-items: center; background: var(--acid-soft); color: var(--acid); font-weight: 800; }
.bond-row-text { display: grid; flex: 1; min-width: 0; }
.bond-row-text strong, .bond-row-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bond-row-text small { color: var(--txt-3); font: 500 11.5px/1.4 "JetBrains Mono", monospace; }
.bond-current, .bond-invite { display: grid; gap: 12px; padding: 14px; border: 1px solid #ef444440; border-radius: 12px; background: var(--acid-soft); }
.bond-invite-title { margin: 0; font-weight: 600; }
.bond-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bond-list { display: grid; gap: 8px; }
.bond-item { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--edge); border-radius: 12px; background: var(--ink-2); }
.badge-list .chip { flex: none; min-height: 28px; padding: 0 10px; font-size: 11.5px; }
.badge-icon.badge-staff { color: #ff4d4d; } .badge-icon.badge-verified { color: #3ba7ff; } .badge-icon.badge-creator { color: var(--acid); }
.badge-icon.badge-helper { color: #ffb547; } .badge-icon.badge-bughunter { color: #5ee07a; } .badge-icon.badge-winner { color: #ffd166; }
.badge-icon.badge-member { color: var(--txt); } .badge-icon.badge-views1k { color: #7dd3fc; } .badge-icon.badge-views10k { color: #c084fc; }

/* Janela de adicionar link */
.sheet { width: min(440px, calc(100% - 32px)); padding: 0; border: 1px solid var(--edge-2); border-radius: 18px; background: var(--ink-1); color: var(--txt); box-shadow: 0 40px 100px -30px #000; }
.sheet::backdrop { background: #000000b3; backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in .28s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.sheet-form { display: grid; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 18px; border-bottom: 1px solid var(--edge); }
.sheet-head h3 { flex: 1; margin: 0; font: 700 17px/1.2 "Space Grotesk", sans-serif; letter-spacing: -.02em; }
.sheet-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: color-mix(in srgb, var(--brand, #fff) 14%, var(--ink-2)); color: var(--brand, var(--txt)); }
.sheet-icon .icon { width: 20px; height: 20px; fill: currentColor; }
.sheet-body { display: grid; gap: 12px; padding: 18px; }
.sheet-field { min-height: 46px; padding: 0 12px; font-size: 13.5px; }
.sheet-field span { flex: none; }
.sheet-body .slug-hint { margin: -4px 0 0; overflow-wrap: anywhere; }
.sheet-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px 18px; }

/* Prévia: fileira de ícones */
.preview .socials { margin-top: 18px; }
.studio .preview .social { color: var(--brand, var(--text)); }
.menu a.menu-item { display: flex; align-items: center; color: inherit; text-decoration: none; }
.btn-danger { border-color: #ff5a5a55; background: #ff5a5a14; color: var(--bad); }
.btn-danger:hover:not(:disabled) { background: #ff5a5a26; }
.danger-zone { display: grid; gap: 12px; padding: 14px; border: 1px solid #ff5a5a33; border-radius: 12px; background: #ff5a5a08; }
.danger-zone .btn { justify-self: start; }
.legal-links a, .claim-terms a { color: var(--txt-2); }
.claim-terms { margin: 6px 0 0; color: var(--txt-3); font-size: 12.5px; }

/* ---------- Visão geral (home.js) ---------- */
.studio-grid.is-home { grid-template-columns: var(--rail) minmax(0, 1fr); }
.studio-grid.is-home .stage { display: none; }
.studio-grid.is-home .panel { border-right: 0; background: var(--ink-0); background-image: radial-gradient(800px 400px at 85% -10%, #7f1d1d33, transparent 70%); }
.studio-grid.is-home .panel-head { display: none; }
.home { display: grid; gap: 14px; width: min(1180px, 100%); margin: 0 auto; padding: 22px 26px 48px; box-sizing: border-box; }
.home *, .home *::before, .home *::after { box-sizing: border-box; }
.home-loading { margin: 8px 0; color: var(--txt-3); }
.home-card { min-width: 0; padding: 18px; border: 1px solid var(--edge); border-radius: 16px; background: var(--ink-1); }
.home-icon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border: 1px solid #ef444433; border-radius: 10px; background: var(--acid-soft); color: var(--acid); }

.home-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 18px; padding: 20px 22px; background: radial-gradient(500px 200px at 0% 0%, #7f1d1d40, transparent 70%), var(--ink-1); }
.home-avatar { width: 64px; height: 64px; border: 2px solid var(--edge-2); border-radius: 50%; object-fit: cover; }
.home-hero-text { display: grid; flex: 1; gap: 4px; min-width: 200px; }
.home-hello { margin: 0; color: var(--txt-3); font-size: 13px; }
.home-hello b { color: var(--acid); font-weight: 600; }
.home-name { margin: 0; overflow: hidden; font: 700 28px/1.05 "Space Grotesk", sans-serif; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.home-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 2px 0 0; color: var(--txt-3); font: 500 12px/1 "JetBrains Mono", monospace; }
.home-uid { color: var(--txt-2); }
.home-plan { padding: 3px 7px; border: 1px solid var(--edge-2); border-radius: 6px; color: var(--txt-2); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.home-rank { color: #fde047; text-decoration: none; }
.home-rank:hover { text-decoration: underline; }
.home-plan.is-pro { border-color: #ef444466; background: var(--acid-soft); color: var(--acid); }
.studio .home-upgrade { justify-self: start; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--acid); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.home-upgrade::after { content: " →"; }
.home-upgrade:hover { text-decoration: underline; }
.home-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.home-actions .btn-ghost { color: var(--txt); }

.home-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.home-stat { display: grid; gap: 6px; }
.home-stat-top { display: flex; align-items: center; justify-content: space-between; }
.home-stat-label { color: var(--txt-3); font: 600 11px/1 "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.home-stat-value { font: 700 34px/1 "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.home-stat small { color: var(--txt-3); font-size: 12px; }

.home-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.home-row-wide { grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr); }
.home-side { display: grid; gap: 14px; }
.home-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.home-card-head > div { flex: 1; min-width: 0; }
.home-card-head h4 { margin: 0; font: 700 15.5px/1.2 "Space Grotesk", sans-serif; letter-spacing: -.01em; }
.home-card-head p { margin: 3px 0 0; color: var(--txt-3); font-size: 12px; }
.home-range { flex: none; }
.home-range button { min-height: 28px; padding: 0 9px; font-size: 12px; }

.chart-body { position: relative; }
.chart { display: block; width: 100%; height: clamp(150px, 20vw, 230px); overflow: visible; }
.chart line { vector-effect: non-scaling-stroke; }
.chart-grid { stroke: var(--edge); stroke-dasharray: 3 5; }
.chart-hit { fill: transparent; }
.chart-desktop { fill: #7f1d1d; }
.chart-mobile { fill: var(--acid); }
.chart-bar:hover .chart-mobile { fill: #f87171; }
.chart-bar:hover .chart-desktop { fill: #a52a2a; }
.chart-bar:hover .chart-hit { fill: #ffffff08; }
.chart-empty { position: absolute; inset: 30% 10% auto; margin: 0; color: var(--txt-3); font-size: 13px; text-align: center; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 8px; color: var(--txt-3); font: 500 11px/1 "JetBrains Mono", monospace; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--txt-2); font-size: 12.5px; }
.chart-legend span::before, .devices-list li::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 3px; vertical-align: 0; }
.home .is-mobile::before { background: var(--acid); }
.home .is-desktop::before { background: #7f1d1d; }
.chart-legend .chart-total { margin-left: auto; color: var(--txt-3); font-family: "JetBrains Mono", monospace; font-size: 11.5px; }
.chart-legend .chart-total::before { display: none; }

.devices-body { display: flex; align-items: center; gap: 18px; }
.donut { flex: none; width: 96px; height: 96px; }
.donut circle { fill: none; stroke-width: 10; transform: rotate(-90deg); transform-origin: 45px 45px; }
.donut-track { stroke: var(--ink-3); }
.donut-desktop { stroke: #7f1d1d; }
.donut-mobile { stroke: var(--acid); }
.donut-value { fill: var(--txt); font: 700 16px "Space Grotesk", sans-serif; }
.devices-list { display: grid; flex: 1; gap: 10px; margin: 0; padding: 0; list-style: none; }
.devices-list li { display: flex; align-items: center; color: var(--txt-2); font-size: 13px; }
.devices-list b { margin-left: auto; color: var(--txt); font-family: "JetBrains Mono", monospace; }

.milestone-value { margin: 0 0 10px; font-family: "Space Grotesk", sans-serif; }
.milestone-value strong { font-size: 30px; letter-spacing: -.03em; }
.milestone-value span { color: var(--txt-3); font-size: 15px; }
.progress { height: 6px; overflow: hidden; border-radius: 99px; background: var(--ink-3); }
.progress span { display: block; width: var(--progress, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b91c1c, var(--acid)); box-shadow: 0 0 12px #ef444466; transition: width .8s var(--ease); }
.milestone-note { display: block; margin-top: 10px; color: var(--txt-3); font-size: 12px; }

.studio .home-link-btn { flex: none; padding: 0; border: 0; background: none; color: var(--acid); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.home-link-btn:hover { text-decoration: underline; }
.home-empty { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 160px; color: var(--txt-3); text-align: center; }
.home-empty p { margin: 0; }
.top-links { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.top-links li { display: flex; align-items: center; gap: 12px; }
.top-icon { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border: 1px solid var(--edge); border-radius: 10px; background: var(--ink-2); color: var(--brand, var(--txt)); }
.top-icon .icon { width: 18px; height: 18px; fill: currentColor; }
.top-text { display: grid; flex: 1; gap: 5px; min-width: 0; }
.top-label { overflow: hidden; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.top-text small { margin-top: -3px; color: var(--txt-3); font-size: 11px; }
.top-bar { height: 4px; overflow: hidden; border-radius: 99px; background: var(--ink-3); }
.top-bar span { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--acid); }
.top-count { flex: none; min-width: 36px; font-family: "JetBrains Mono", monospace; font-size: 13px; text-align: right; }

.check-percent { color: var(--acid); font: 600 13px/1 "JetBrains Mono", monospace; }
.checklist { display: grid; gap: 4px; margin: 14px 0 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 4px; border-radius: 8px; font-size: 13.5px; }
.check-mark { display: grid; flex: none; place-items: center; width: 20px; height: 20px; border: 1.5px solid var(--edge-2); border-radius: 50%; }
.checklist .is-done .check-mark { border-color: var(--acid); background: var(--acid); color: #fff; }
.checklist .is-done .check-label { color: var(--txt-3); text-decoration: line-through; text-decoration-color: var(--txt-3); }
.check-label { flex: 1; }
.studio .check-go { flex: none; min-height: 28px; padding: 0 10px; border: 1px solid var(--edge-2); border-radius: 7px; background: var(--ink-2); color: var(--txt-2); font-size: 12px; font-weight: 600; cursor: pointer; }
.check-go:hover { border-color: var(--acid); color: var(--txt); }

@media (max-width: 1100px) {
  .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-row-wide { grid-template-columns: minmax(0, 1fr); }
  .home-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .home { padding: 16px 14px 40px; }
  .home-row, .home-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .home-stat-value { font-size: 28px; }
  .home-actions { width: 100%; }
  .home-actions .btn { flex: 1; }
  .home-range button { padding: 0 7px; }
}
@media (prefers-reduced-motion: reduce) { .progress span { transition: none; } }

/* ---------- Busca rápida (search.js) ---------- */
.palette { width: min(560px, calc(100% - 32px)); margin-top: 12vh; padding: 0; border: 1px solid var(--edge-2); border-radius: 16px; background: var(--ink-1); color: var(--txt); box-shadow: 0 40px 100px -30px #000, 0 0 0 1px #000; }
.palette::backdrop { background: #000000b3; backdrop-filter: blur(4px); }
.palette[open] { animation: sheet-in .22s var(--ease); }
.palette-field { display: flex; align-items: center; gap: 10px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--edge); color: var(--txt-3); }
.studio .palette-field input { flex: 1; min-width: 0; min-height: 54px; border: 0; background: none; color: var(--txt); font-size: 15px; outline: none; }
.palette-field input::-webkit-search-cancel-button { display: none; }
.palette-list { max-height: min(52vh, 400px); margin: 0; padding: 6px; overflow-y: auto; list-style: none; scrollbar-width: thin; }
.palette-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 9px; font-size: 14px; cursor: pointer; }
.palette-item small { flex: none; color: var(--txt-3); font: 500 11.5px/1 "JetBrains Mono", monospace; }
.palette-item[aria-selected="true"] { background: var(--acid-soft); box-shadow: inset 2px 0 0 var(--acid); }
.palette-item[aria-selected="true"] small { color: var(--acid); }
.palette-empty { padding: 20px; color: var(--txt-3); text-align: center; }
.group.is-found { animation: found 1.6s var(--ease); }
@keyframes found { 0%, 45% { background: #ef44441f; box-shadow: inset 3px 0 0 var(--acid); } }
@media (prefers-reduced-motion: reduce) { .group.is-found { animation: none; } }
