:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --surface-3: #ebebee;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #18181b;
  --text-2: #52525b;
  --text-3: #a1a1aa;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --accent-text: #4338ca;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --warn-bg: #fffbeb;
  --warn-text: #92400e;
  --warn-border: #fde68a;
  --sidebar: #fafafa;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .25);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  --av-l: 52%;
  --mark-bg-l: 94%;
  --mark-fg-l: 38%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --surface: #111113;
    --surface-2: #18181b;
    --surface-3: #232326;
    --border: #27272a;
    --border-strong: #3f3f46;
    --text: #fafafa;
    --text-2: #a1a1aa;
    --text-3: #63636b;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-soft: #1e1b4b;
    --accent-text: #a5b4fc;
    --danger: #f87171;
    --danger-soft: #2a1215;
    --warn-bg: #1f1a0e;
    --warn-text: #fcd34d;
    --warn-border: #3d3110;
    --sidebar: #0c0c0e;
    --shadow-sm: none;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .8);
    --av-l: 45%;
    --mark-bg-l: 18%;
    --mark-fg-l: 78%;
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
a { color: inherit; text-decoration: none; }
h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
h3 { margin: 0; font-size: 15px; font-weight: 600; }
p { margin: 0; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
form.inline { display: inline; }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Shell ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 10px; background: var(--sidebar); border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #8b5cf6); color: #fff; box-shadow: 0 2px 6px -1px color-mix(in srgb, var(--accent) 50%, transparent); }
.brand-mark svg { width: 16px; height: 16px; }
.brand-mark.lg { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 20px; }
.brand-mark.lg svg { width: 24px; height: 24px; }

.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 7px;
  color: var(--text-2); font-weight: 500; transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--surface-3); color: var(--text); }
.nav-item.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.nav-item > svg { color: var(--text-3); margin: 0 2px; }
.nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-count { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.nav-section { display: flex; align-items: center; justify-content: space-between; padding: 18px 8px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.nav-list { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; flex: 1; margin: 0 -4px; padding: 0 4px; }
.nav-empty { padding: 6px 8px; color: var(--text-3); font-size: 13px; }
.nav-search { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 0 8px; height: 30px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text-3); }
.nav-search input { border: 0; background: none; outline: none; width: 100%; font: inherit; font-size: 13px; color: var(--text); padding: 0; margin: 0; box-shadow: none; }
.sidebar-foot { display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px; margin-top: 8px; border-top: 1px solid var(--border); }
.sidebar-foot .who { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.sidebar-foot .who b { font-weight: 600; font-size: 13px; }
.sidebar-foot .who span { font-size: 11px; color: var(--text-3); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.crumbs { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { display: flex; color: var(--text-3); }
.crumbs .sep svg { width: 14px; height: 14px; }
.crumbs .current { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.content { padding: 28px 32px 64px; max-width: 1180px; width: 100%; margin: 0 auto; }
.content.wide { max-width: none; padding: 20px 24px 24px; }

/* ---------- Primitivos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-sm);
  transition: background .12s, border-color .12s, box-shadow .12s;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn:focus-visible, .icon-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.12); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { filter: brightness(.92); }
.btn.danger-ghost { color: var(--danger); }
.btn.danger-ghost:hover { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.lg { height: 40px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.icon-only { width: 32px; padding: 0; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); cursor: pointer; transition: background .12s, color .12s; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn.xs { width: 26px; height: 26px; border-radius: 6px; }
.icon-btn.xs svg { width: 15px; height: 15px; }
.icon-btn.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.icon-btn.disabled { opacity: .35; pointer-events: none; }

.avatar {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: hsl(var(--h) 60% var(--av-l)); color: #fff; font-weight: 600; font-size: 12px;
  box-shadow: 0 0 0 2px var(--surface);
}
.avatar.sm { width: 24px; height: 24px; font-size: 11px; }
.avatar.xs { width: 18px; height: 18px; font-size: 9px; box-shadow: 0 0 0 1.5px var(--surface); }

.pmark {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 5px; font-size: 11px; font-weight: 700;
  background: hsl(var(--h) 70% var(--mark-bg-l)); color: hsl(var(--h) 55% var(--mark-fg-l));
  border: 1px solid hsl(var(--h) 50% calc(var(--mark-bg-l) - 6%));
}
.pmark.lg { width: 40px; height: 40px; border-radius: 10px; font-size: 17px; }
.pmark.xl { width: 56px; height: 56px; border-radius: 14px; font-size: 24px; }

.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 500; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.tag.accent { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.vbadge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; padding: 0 7px;
  border-radius: 6px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.vbadge.latest { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.field > span em { font-style: normal; font-weight: 400; color: var(--text-3); margin-left: 4px; }
input, textarea, select {
  display: block; width: 100%; padding: 8px 11px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 7px; font: inherit; font-size: 14px;
  box-shadow: var(--shadow-sm); transition: border-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
textarea { resize: vertical; min-height: 64px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }

.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 26px 16px; margin-bottom: 18px; border: 1.5px dashed var(--border-strong); border-radius: 10px;
  background: var(--surface-2); text-align: center; cursor: pointer; transition: border-color .12s, background .12s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.has-file { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); margin-bottom: 4px; box-shadow: var(--shadow-sm); }
.dz-icon svg { width: 20px; height: 20px; }
.has-file .dz-icon { color: var(--accent); }
.dz-text { font-size: 13px; color: var(--text-2); word-break: break-all; }
.dz-text b { color: var(--text); font-weight: 600; }
.dz-hint { font-size: 12px; color: var(--text-3); }

/* ---------- Modal ---------- */
.modal {
  width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-lg);
}
.modal.sm { width: min(400px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(9, 9, 11, .45); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .16s ease-out; }
.modal[open]::backdrop { animation: fade .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.modal-form { display: flex; flex-direction: column; max-height: inherit; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 0 22px; }
.modal-body { padding: 18px 22px 6px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; margin-top: 8px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 14px 14px; }
.danger-box { display: flex; align-items: center; gap: 16px; padding: 12px 14px; margin: 6px 0 12px; border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--border)); border-radius: 8px; }
.danger-box div { flex: 1; }
.danger-box b { font-weight: 600; font-size: 13px; }
.danger-box p { font-size: 12px; color: var(--text-2); }

/* ---------- Página: projetos ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.page-head p { margin-top: 4px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pcard {
  display: flex; flex-direction: column; gap: 6px; padding: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pcard:hover { border-color: var(--border-strong); box-shadow: 0 8px 24px -8px rgba(0,0,0,.15); transform: translateY(-1px); }
.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.pcard p { font-size: 13px; min-height: 39px; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.pcard-foot span { display: inline-flex; align-items: center; gap: 6px; }
.pcard-foot svg { width: 14px; height: 14px; color: var(--text-3); }

/* ---------- Página: projeto / versões ---------- */
.phead { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 28px; }
.phead-info { flex: 1; min-width: 0; }
.phead-info p { margin-top: 4px; max-width: 72ch; }
.stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.stats > span { display: inline-flex; align-items: center; gap: 6px; }
.stats svg { color: var(--text-3); }
.stats b { color: var(--text); font-weight: 600; }
.stack-av .avatar + .avatar { margin-left: -5px; }

.vtable { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.vhead, .vrow { display: grid; grid-template-columns: 72px minmax(0, 1fr) 150px 110px 70px 32px; align-items: center; gap: 12px; padding: 0 16px; }
.vhead { height: 38px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.vrow { min-height: 64px; padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); transition: background .1s; }
.vrow:last-child { border-bottom: 0; }
.vrow:hover { background: var(--surface-2); }
.vrow:hover .vcol-go { color: var(--text); transform: translateX(2px); }
.vtitle { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.vdesc { font-size: 13px; color: var(--text-2); margin-top: 1px; -webkit-line-clamp: 1; }
.vcol-who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.vcol-when { font-size: 13px; color: var(--text-2); }
.vcol-c span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); }
.vcol-c svg { width: 14px; height: 14px; }
.vcol-go { color: var(--text-3); display: flex; justify-content: flex-end; transition: transform .12s, color .12s; }

/* ---------- Página: versão ---------- */
.vswitch { display: flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-sm); }
.vswitch .icon-btn { width: 28px; height: 28px; }
.vswitch select { width: auto; max-width: 240px; height: 28px; padding: 0 6px; border: 0; box-shadow: none; background: transparent; font-size: 13px; font-weight: 500; cursor: pointer; }
.vswitch select:focus { box-shadow: none; }

.banner { display: flex; align-items: center; gap: 10px; padding: 9px 14px; margin-bottom: 14px; border-radius: 9px; background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); font-size: 13px; }
.banner span { flex: 1; }

.viewer { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; height: calc(100vh - 56px - 44px); min-height: 520px; }
.banner + .viewer { height: calc(100vh - 56px - 44px - 54px); }
.preview { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.preview-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 8px 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.url { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url svg { width: 13px; height: 13px; color: var(--text-3); }
.devices { display: flex; gap: 2px; padding: 2px; background: var(--surface-3); border-radius: 8px; }
.preview-stage { flex: 1; display: flex; justify-content: center; background: var(--surface-2); overflow: auto; }
.preview-stage iframe { width: 100%; height: 100%; border: 0; background: #fff; transition: width .2s ease; }
.preview-stage.framed { padding: 16px; }
.preview-stage.framed iframe { border-radius: 8px; box-shadow: 0 0 0 1px var(--border), var(--shadow-lg); }

.panel { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.panel-sec { padding: 18px; border-bottom: 1px solid var(--border); }
.panel-title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.panel-title h2 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desc { font-size: 13px; color: var(--text-2); line-height: 1.6; max-height: 140px; overflow-y: auto; }
.meta { margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.meta > div { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: center; }
.meta dt { color: var(--text-3); }
.meta dd { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; }

.comments-sec { flex: 1; display: flex; flex-direction: column; min-height: 0; border-bottom: 0; padding-bottom: 14px; }
.panel-sub { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--surface-3); font-size: 11px; color: var(--text-2); font-weight: 600; }
.comments { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; margin: 0 -18px; padding: 2px 18px 12px; }
.comments-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; padding: 24px 0; }
.comments-empty svg { width: 22px; height: 22px; }
.comment { display: flex; gap: 10px; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.comment-meta b { font-weight: 600; }
.comment-meta time { font-size: 12px; color: var(--text-3); }
.comment-meta .del { margin-left: auto; opacity: 0; color: var(--text-3); }
.comment:hover .del { opacity: 1; }
.comment-meta .del:hover { color: var(--danger); background: var(--danger-soft); }
.comment-text { font-size: 13px; color: var(--text-2); margin-top: 2px; word-wrap: break-word; }
.composer { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.composer .avatar { margin-top: 6px; }
.composer-box { flex: 1; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.composer-box:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.composer-box textarea { border: 0; box-shadow: none; min-height: 52px; resize: none; padding: 9px 11px 4px; font-size: 13px; background: transparent; }
.composer-box textarea:focus { box-shadow: none; }
.composer-foot { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 6px 11px; font-size: 11px; }

/* ---------- Estados ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 64px 24px; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--surface); }
.empty > svg { width: 28px; height: 28px; color: var(--text-3); margin-bottom: 4px; }
.empty p { margin-bottom: 10px; }
.alert { padding: 10px 12px; margin-bottom: 16px; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 13px; border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); }

/* ---------- Login ---------- */
.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(60rem 30rem at 50% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent),
    var(--bg);
}
.login-card { width: 100%; max-width: 380px; padding: 36px 32px 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); }
.login-card h1 { font-size: 22px; }
.login-card > p { margin: 4px 0 24px; }
.login-card .btn { margin-top: 8px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .vhead, .vrow { grid-template-columns: 64px minmax(0, 1fr) 120px 90px 32px; }
  .vcol-c { display: none; }
}
@media (max-width: 960px) {
  .viewer, .banner + .viewer { grid-template-columns: 1fr; height: auto; }
  .preview { height: 70vh; }
  .panel { max-height: none; }
  .comments { max-height: 50vh; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 40; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 0 12px; }
  .content { padding: 20px 16px 48px; }
  .content.wide { padding: 16px; }
  .hide-sm { display: none; }
  .vhead { display: none; }
  .vrow { grid-template-columns: 52px minmax(0, 1fr) 20px; }
  .vcol-who, .vcol-when { display: none; }
  .phead .pmark.xl { width: 44px; height: 44px; font-size: 19px; }
  .vswitch select { max-width: 110px; }
  .crumbs > :not(.current):not(:last-child) { display: none; }
}
