/* =========================================================
   NERD EM EVOLUÇÃO — ACERVO COMUNIDADE
   Folha compartilhada pelas telas privada e pública.
   HTML5 + CSS3 puro. Sem dependências ou JavaScript.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --page: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #172033;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #0047a0;
  --brand-hover: #00357a;
  --user-theme: #0047a0;
  --theme-rgb: 0, 71, 160;
  --gold: #e5a000;
  --success: #059669;
  --danger: #dc2626;
  --shadow: 0 4px 20px rgba(15, 23, 42, .05);
  --shadow-hover: 0 14px 36px rgba(15, 23, 42, .10);
  --radius: 16px;
  --radius-sm: 12px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { display: block; }
.container { width: min(var(--content), calc(100% - 40px)); margin-inline: auto; }
.site-header {
  height: 72px; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; position: relative; z-index: 5;
  backdrop-filter: blur(14px);
}
.nav-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:flex; align-items:center; gap:11px; font:800 17px "Plus Jakarta Sans",sans-serif; letter-spacing:-.55px; }
.brand-mark {
  width:35px; height:35px; border-radius:11px; display:grid; place-items:center;
  color:white; background:linear-gradient(145deg,var(--user-theme),color-mix(in srgb,var(--user-theme),#7dd3fc 35%));
  box-shadow:0 5px 14px rgba(var(--theme-rgb),.22);
}
.brand-mark svg { width:20px; height:20px; }
.nav-links { display:flex; align-items:center; gap:24px; color:var(--muted); font-weight:600; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color:var(--user-theme); }
.nav-user { display:flex; align-items:center; gap:10px; font-weight:700; }
.nav-avatar { width:34px; height:34px; border-radius:50%; background:#eff6ff; color:var(--user-theme); display:grid; place-items:center; }
.nav-avatar svg { width:24px; height:24px; }

.page-shell { padding:34px 0 72px; }
.page-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:22px; }
.eyebrow { color:var(--user-theme); font-size:11px; text-transform:uppercase; letter-spacing:1.5px; font-weight:800; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { font-family:"Plus Jakarta Sans",Inter,sans-serif; letter-spacing:-.7px; }
h1 { font-size:clamp(25px,3vw,34px); line-height:1.15; margin:5px 0 0; }
h2 { font-size:19px; line-height:1.25; margin:0; }
h3 { font-size:15px; line-height:1.3; margin:0; }
.subtitle { color:var(--muted); margin:7px 0 0; }
.panel { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.panel-pad { padding:22px; }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:18px; }
.section-head p { color:var(--muted); margin:4px 0 0; font-size:12px; }
.section-kicker { color:var(--muted); font-size:12px; font-weight:600; }
.btn {
  min-height:40px; padding:0 15px; border:1px solid transparent; border-radius:11px;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-size:12px; font-weight:750; transition:background .18s,border-color .18s,transform .18s,box-shadow .18s;
  white-space:nowrap;
}
.btn:hover { transform:translateY(-1px); }
.btn svg { width:16px; height:16px; }
.btn-primary { background:var(--user-theme); color:#fff; box-shadow:0 5px 13px rgba(var(--theme-rgb),.16); }
.btn-primary:hover { background:var(--brand-hover); }
.btn-secondary { color:#334155; background:#fff; border-color:var(--line-strong); }
.btn-secondary:hover { border-color:var(--user-theme); color:var(--user-theme); background:rgba(var(--theme-rgb),.035); }
.btn-quiet { background:transparent; color:var(--muted); border-color:transparent; }
.btn-quiet:hover { color:var(--danger); background:#fef2f2; }
.btn-small { min-height:32px; padding:0 10px; font-size:11px; border-radius:9px; }
.icon-btn { width:34px; height:34px; padding:0; border:1px solid var(--line); border-radius:10px; display:grid; place-items:center; color:#64748b; background:white; }
.icon-btn svg { width:15px; height:15px; }
.icon-btn:hover { color:var(--user-theme); border-color:var(--user-theme); }
.muted { color:var(--muted); }
.divider { height:1px; background:var(--line); margin:18px 0; }

/* Painel privado: cabeçalho de perfil */
.profile-card { padding:24px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:22px; align-items:center; }
.profile-avatar-wrap { position:relative; }
.profile-avatar {
  width:88px; height:88px; border-radius:50%; display:grid; place-items:center;
  background:linear-gradient(145deg,rgba(var(--theme-rgb),.10),rgba(var(--theme-rgb),.035));
  border:3px solid var(--user-theme); color:var(--user-theme); box-shadow:0 0 0 6px rgba(var(--theme-rgb),.07);
}
.profile-avatar svg { width:62px; height:62px; }
.online-dot { position:absolute; width:15px; height:15px; right:2px; bottom:3px; border:3px solid white; border-radius:50%; background:#10b981; }
.profile-main { min-width:0; }
.profile-handle { font-size:13px; color:var(--muted); font-weight:650; margin:3px 0 12px; }
.profile-handle strong { color:var(--ink); }
.limit-row { display:flex; justify-content:space-between; gap:12px; font-size:11px; font-weight:700; margin-bottom:7px; }
.progress-track { height:8px; border-radius:99px; background:#eaf0f6; overflow:hidden; }
.progress-fill { width:34%; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--user-theme),color-mix(in srgb,var(--user-theme),#7dd3fc 32%)); }
.profile-stats { display:flex; gap:18px; margin-top:12px; color:var(--muted); font-size:11px; }
.profile-stats strong { color:var(--ink); font-size:13px; margin-right:4px; }
.profile-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; max-width:290px; }

.dashboard-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; margin-top:18px; }
.field-label { display:block; color:#334155; font-size:12px; font-weight:750; margin-bottom:8px; }
.field-hint { color:var(--muted); font-size:11px; margin-top:6px; }
.text-field, .select-field, .textarea-field {
  width:100%; border:1px solid var(--line-strong); border-radius:11px; background:#fff;
  color:var(--ink); outline:none; transition:border-color .18s,box-shadow .18s;
}
.text-field, .select-field { height:43px; padding:0 12px; }
.textarea-field { min-height:190px; padding:14px; resize:vertical; line-height:1.65; }
.text-field:focus, .select-field:focus, .textarea-field:focus { border-color:var(--user-theme); box-shadow:0 0 0 3px rgba(var(--theme-rgb),.10); }
.textarea-field::placeholder, .text-field::placeholder { color:#94a3b8; }
.bio-counter { text-align:right; color:#94a3b8; font-size:10px; margin-top:4px; }
.avatar-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:9px; }
.avatar-option { position:relative; }
.avatar-option input { position:absolute; opacity:0; pointer-events:none; }
.avatar-option label {
  display:grid; place-items:center; aspect-ratio:1; border:1px solid var(--line);
  border-radius:13px; background:#f8fafc; color:#64748b; cursor:pointer; transition:.18s;
}
.avatar-option label svg { width:36px; height:36px; }
.avatar-option input:checked + label { border:2px solid var(--user-theme); background:rgba(var(--theme-rgb),.07); color:var(--user-theme); box-shadow:0 0 0 3px rgba(var(--theme-rgb),.08); }
.avatar-option label:hover { border-color:var(--user-theme); transform:translateY(-2px); }
.theme-swatches { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.theme-option { position:relative; }
.theme-option input { position:absolute; opacity:0; }
.swatch {
  display:block; width:27px; height:27px; border-radius:50%; cursor:pointer; border:3px solid white;
  box-shadow:0 0 0 1px #cbd5e1; transition:.18s;
}
.theme-option input:checked + .swatch { box-shadow:0 0 0 2px var(--ink); transform:scale(1.08); }
.swatch-blue { background:#0047a0; }.swatch-sakura { background:#db2777; }.swatch-emerald { background:#059669; }
.swatch-purple { background:#7c3aed; }.swatch-orange { background:#ea580c; }.swatch-dark { background:#1e293b; }
.form-actions { display:flex; align-items:center; gap:10px; margin-top:16px; }
.import-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 13px; background:#f8fafc; border:1px dashed var(--line-strong); border-radius:11px; }
.import-row strong { display:block; font-size:11px; }.import-row span { color:var(--muted); font-size:10px; }
.file-input { max-width:150px; font-size:10px; color:var(--muted); }
.bulk-textarea { min-height:225px; background:linear-gradient(180deg,#fbfdff,#fff); }
.bulk-tip { display:flex; gap:9px; align-items:flex-start; padding:11px 12px; border-radius:10px; background:#eff6ff; color:#315b8b; font-size:11px; margin-top:12px; }
.bulk-tip svg { width:16px; height:16px; flex:none; margin-top:1px; }
.bulk-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:14px; }

.discovery { margin-top:18px; padding:22px; }
.search-wrap { position:relative; }
.search-box { display:flex; align-items:center; gap:12px; height:54px; padding:0 16px; border:1.5px solid #cbd5e1; border-radius:14px; background:#fff; box-shadow:0 5px 18px rgba(15,23,42,.035); }
.search-box:focus-within { border-color:var(--user-theme); box-shadow:0 0 0 4px rgba(var(--theme-rgb),.08); }
.search-box svg { width:20px; height:20px; color:var(--user-theme); flex:none; }
.search-box input { border:0; outline:0; flex:1; min-width:0; color:var(--ink); background:transparent; font-size:14px; }
.search-box input::placeholder { color:#94a3b8; }
.search-shortcut { padding:4px 7px; border:1px solid var(--line); border-radius:6px; color:#94a3b8; font-size:10px; }
.autocomplete { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:12px; align-items:center; margin-top:10px; padding:10px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:var(--shadow); }
.autocomplete-poster { width:38px; height:52px; border-radius:6px; background:linear-gradient(145deg,#172554,#2563eb); color:white; display:grid; place-items:center; font:800 10px "Plus Jakarta Sans"; text-align:center; padding:3px; }
.autocomplete-title { font-weight:750; font-size:12px; }.autocomplete-meta { color:var(--muted); font-size:10px; }
.quick-add-fields { display:grid; grid-template-columns:1.5fr 1fr 1fr .8fr auto; gap:10px; align-items:end; margin-top:16px; }
.rating-select { color:var(--gold); letter-spacing:1px; }
.collection { margin-top:24px; }
.collection-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:13px; }
.collection-count { font-size:11px; color:var(--muted); }
.collection-list { overflow:hidden; }
.work-row {
  display:grid; grid-template-columns:18px 44px minmax(0,1fr) auto auto; align-items:center; gap:14px;
  padding:13px 16px; border-bottom:1px solid #edf1f5; background:#fff; transition:background .16s;
}
.work-row:last-child { border-bottom:0; }.work-row:hover { background:#fbfdff; }
.work-row > input { accent-color:var(--user-theme); width:15px; height:15px; }
.work-cover { width:44px; height:64px; border-radius:7px; object-fit:cover; box-shadow:0 3px 8px rgba(15,23,42,.12); }
.poster-fallback {
  width:44px; height:64px; border-radius:7px; display:flex; flex-direction:column; justify-content:flex-end;
  padding:5px; color:white; overflow:hidden; font:800 8px/1.15 "Plus Jakarta Sans"; letter-spacing:.3px;
  background:linear-gradient(145deg,#0f172a,#475569);
}
.poster-fallback.purple { background:linear-gradient(145deg,#312e81,#a78bfa); }
.poster-fallback.rose { background:linear-gradient(145deg,#831843,#fb7185); }
.poster-fallback.green { background:linear-gradient(145deg,#064e3b,#34d399); }
.work-info { min-width:0; }.work-title { font-size:13px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.work-subtitle { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:5px; }
.pill { display:inline-flex; align-items:center; border-radius:6px; padding:3px 7px; font-size:9px; font-weight:800; line-height:1.3; }
.category-film { color:#1d4ed8; background:#eff6ff; }.category-series { color:#7c3aed; background:#f5f3ff; }
.category-anime { color:#be185d; background:#fdf2f8; }.category-book { color:#047857; background:#ecfdf5; }
.category-game { color:#c2410c; background:#fff7ed; }
.status-done { color:#047857; background:#ecfdf5; }.status-progress { color:#b45309; background:#fffbeb; }
.status-want { color:#475569; background:#f1f5f9; }.status-paused { color:#64748b; background:#f1f5f9; }
.row-rating { color:var(--gold); font-size:12px; letter-spacing:1px; white-space:nowrap; }
.row-actions { display:flex; align-items:center; gap:5px; }
.row-actions .btn { min-height:31px; padding:0 9px; font-size:10px; }
.row-actions .btn svg { width:13px; height:13px; }
.row-select { width:82px; height:31px; padding:0 7px; font-size:10px; border-radius:8px; }

.site-footer { padding:24px 0; border-top:1px solid var(--line); color:#94a3b8; font-size:11px; }
.footer-inner { display:flex; justify-content:space-between; gap:15px; }

/* Página pública compartilhável */
.public-page { padding-bottom:70px; }
.public-hero {
  position:relative; overflow:hidden; padding:38px 0 30px;
  background:linear-gradient(120deg,rgba(var(--theme-rgb),.13),rgba(var(--theme-rgb),.045) 52%,#fff 100%);
  border-bottom:1px solid rgba(var(--theme-rgb),.10);
}
.public-hero::before,.public-hero::after { content:""; position:absolute; border-radius:50%; pointer-events:none; }
.public-hero::before { width:350px; height:350px; right:-90px; top:-210px; border:1px solid rgba(var(--theme-rgb),.12); }
.public-hero::after { width:240px; height:240px; right:30px; top:-150px; border:1px solid rgba(var(--theme-rgb),.10); }
.public-profile { position:relative; z-index:1; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:23px; align-items:center; }
.public-avatar {
  width:112px; height:112px; border-radius:30px; display:grid; place-items:center; color:var(--user-theme);
  background:#fff; border:1px solid rgba(var(--theme-rgb),.18); box-shadow:0 12px 30px rgba(var(--theme-rgb),.13);
}
.public-avatar svg { width:83px; height:83px; }
.public-handle { color:var(--user-theme); font-weight:750; font-size:13px; margin:4px 0 6px; }
.public-bio { color:#475569; max-width:590px; margin:0; font-size:13px; }
.public-stats { display:flex; flex-wrap:wrap; gap:22px; margin-top:15px; }
.public-stat strong { display:block; font:800 19px "Plus Jakarta Sans"; letter-spacing:-.5px; }
.public-stat span { color:var(--muted); font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; }
.public-actions { display:flex; flex-direction:column; gap:9px; align-items:stretch; min-width:160px; }
.btn-like { background:var(--user-theme); color:white; box-shadow:0 7px 18px rgba(var(--theme-rgb),.22); }
.btn-like:hover { background:var(--brand-hover); }
.public-content { padding-top:30px; }
.top3-section { margin-bottom:31px; }
.top3-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; margin-top:15px; }
.top-card { display:grid; grid-template-columns:92px minmax(0,1fr); gap:15px; align-items:center; padding:13px; position:relative; overflow:hidden; }
.top-poster { width:92px; aspect-ratio:2/3; border-radius:9px; object-fit:cover; box-shadow:0 5px 14px rgba(15,23,42,.13); }
.top-poster-fallback { width:92px; aspect-ratio:2/3; border-radius:9px; display:flex; align-items:flex-end; padding:9px; color:white; font:800 13px "Plus Jakarta Sans"; background:linear-gradient(145deg,#111827,#64748b); }
.rank {
  width:27px; height:27px; display:grid; place-items:center; border-radius:50%; color:#fff;
  font:800 11px "Plus Jakarta Sans"; box-shadow:0 3px 8px rgba(15,23,42,.15); margin-bottom:8px;
}
.rank-gold { background:linear-gradient(145deg,#f5c84b,#b7791f); }.rank-silver { background:linear-gradient(145deg,#cbd5e1,#64748b); }
.rank-bronze { background:linear-gradient(145deg,#d69a6b,#92400e); }
.top-title { font-size:13px; font-weight:800; line-height:1.35; }.top-meta { color:var(--muted); font-size:10px; margin-top:5px; }
.top-stars { color:var(--gold); font-size:11px; margin-top:7px; letter-spacing:1px; }
.filter-bar { display:flex; flex-wrap:wrap; gap:8px; margin:17px 0 19px; }
.filter-pill { padding:8px 14px; border-radius:99px; border:1px solid var(--line); background:#fff; color:#64748b; font-size:11px; font-weight:750; transition:.18s; }
.filter-pill:hover,.filter-pill.active { background:var(--user-theme); color:#fff; border-color:var(--user-theme); box-shadow:0 4px 12px rgba(var(--theme-rgb),.14); }
.public-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.public-work-card { min-width:0; overflow:hidden; transition:transform .2s,box-shadow .2s; }
.public-work-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-hover); }
.public-poster-wrap { position:relative; aspect-ratio:2/3; overflow:hidden; background:#e2e8f0; }
.public-poster { width:100%; height:100%; object-fit:cover; transition:transform .35s; }
.public-work-card:hover .public-poster { transform:scale(1.035); }
.public-poster-fallback {
  width:100%; height:100%; display:flex; flex-direction:column; justify-content:flex-end; padding:17px;
  color:white; background:linear-gradient(150deg,#0f172a,#334155); position:relative; isolation:isolate;
}
.public-poster-fallback::before { content:""; position:absolute; inset:12% -18% 32%; border:1px solid rgba(255,255,255,.22); transform:rotate(-18deg); z-index:-1; }
.public-poster-fallback span { font:800 clamp(17px,2vw,25px)/1.05 "Plus Jakarta Sans"; letter-spacing:-.8px; text-transform:uppercase; }
.public-poster-fallback small { margin-top:8px; font-size:8px; letter-spacing:2px; opacity:.72; }
.public-poster-fallback.pink { background:linear-gradient(150deg,#831843,#e879a7); }
.public-poster-fallback.blue { background:linear-gradient(150deg,#172554,#3b82f6); }
.public-poster-fallback.green { background:linear-gradient(150deg,#064e3b,#10b981); }
.public-poster-fallback.violet { background:linear-gradient(150deg,#312e81,#8b5cf6); }
.public-poster-fallback.orange { background:linear-gradient(150deg,#7c2d12,#f97316); }
.public-work-info { padding:13px 14px 14px; }
.public-work-title { font-size:13px; font-weight:800; line-height:1.35; min-height:35px; }
.public-work-meta { display:flex; justify-content:space-between; align-items:center; gap:5px; margin-top:9px; }
.public-work-meta .pill { font-size:9px; }
.public-work-stars { color:var(--gold); letter-spacing:1px; font-size:11px; white-space:nowrap; }
.public-empty { text-align:center; padding:50px 20px; color:var(--muted); }
.public-empty svg { width:42px; height:42px; margin:0 auto 12px; color:var(--user-theme); }

/* Acessibilidade e adaptação */
:focus-visible { outline:3px solid rgba(var(--theme-rgb),.35); outline-offset:2px; }
@media (max-width: 980px) {
  .profile-card { grid-template-columns:auto minmax(0,1fr); }
  .profile-actions { grid-column:1/-1; max-width:none; justify-content:flex-start; }
  .quick-add-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .quick-add-fields .btn { grid-column:1/-1; }
  .public-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .top3-grid { gap:10px; }.top-card { grid-template-columns:75px minmax(0,1fr); gap:11px; }
  .top-poster,.top-poster-fallback { width:75px; }
}
@media (max-width: 700px) {
  .container { width:min(100% - 28px,var(--content)); }
  .site-header { height:62px; }.nav-links { display:none; }.brand { font-size:15px; }
  .page-shell { padding:25px 0 50px; }.page-heading { align-items:flex-start; flex-direction:column; }
  .profile-card { padding:18px; gap:16px; grid-template-columns:auto minmax(0,1fr); }
  .profile-avatar { width:70px; height:70px; }.profile-avatar svg { width:50px; height:50px; }
  .profile-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .profile-actions .btn { white-space:normal; padding:0 8px; font-size:10px; }
  .dashboard-grid { grid-template-columns:1fr; gap:14px; margin-top:14px; }
  .panel-pad,.discovery { padding:17px; }.avatar-grid { grid-template-columns:repeat(6,minmax(0,1fr)); gap:7px; }
  .avatar-option label svg { width:30px; height:30px; }
  .bulk-textarea { min-height:170px; }.search-box { height:49px; }.search-shortcut { display:none; }
  .quick-add-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .work-row { grid-template-columns:16px 40px minmax(0,1fr) auto; gap:10px; padding:11px 10px; }
  .work-cover,.poster-fallback { width:40px; height:58px; }
  .work-row > .row-rating { display:none; }
  .row-actions { grid-column:3/-1; justify-content:flex-start; flex-wrap:wrap; }
  .row-actions .btn { min-height:29px; }
  .collection-toolbar { align-items:flex-start; flex-direction:column; }
  .public-hero { padding:27px 0 24px; }
  .public-profile { grid-template-columns:auto minmax(0,1fr); gap:15px; }
  .public-avatar { width:82px; height:82px; border-radius:23px; }.public-avatar svg { width:63px; height:63px; }
  .public-profile h1 { font-size:23px; }.public-bio { font-size:12px; }
  .public-actions { grid-column:1/-1; flex-direction:row; min-width:0; }
  .public-actions .btn { flex:1; }
  .public-stats { gap:17px; margin-top:12px; }.public-stat strong { font-size:17px; }
  .public-content { padding-top:23px; }.top3-grid { grid-template-columns:1fr; }
  .top-card { grid-template-columns:68px minmax(0,1fr); }.top-poster,.top-poster-fallback { width:68px; }
  .public-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .public-work-info { padding:10px; }.public-work-title { font-size:12px; min-height:32px; }
  .public-work-meta { align-items:flex-start; flex-direction:column; }
  .footer-inner { flex-direction:column; }
}
@media (max-width: 390px) {
  .container { width:calc(100% - 22px); }
  .profile-stats { gap:10px; }.profile-actions { gap:6px; }
  .avatar-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .quick-add-fields { grid-template-columns:1fr 1fr; }
  .work-subtitle { gap:4px; }.work-title { font-size:12px; }
  .public-grid { gap:9px; }.filter-bar { gap:6px; }.filter-pill { padding:7px 10px; }
}

/* Correção de colunas .work-row (4 colunas padrão, 5 no modo seleção) e reset .section-head */
.collection-list .work-row { grid-template-columns: 52px minmax(0, 1fr) auto auto !important; align-items: center; }
.collection-list.selecting .work-row { grid-template-columns: 22px 52px minmax(0, 1fr) auto auto !important; }
.work-row img, .work-row .poster-fallback { width: 48px; height: 68px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.work-subtitle { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.app .section-head, .app .section-head h2 { border-bottom: none !important; }

/* Polimento .profile-actions e hover limpo sem sublinhado nos botões <a> */
.app .profile-actions { display: grid !important; grid-template-columns: 1fr auto; gap: 8px; width: 230px; max-width: 100%; align-items: stretch; }
.app .profile-actions > :nth-child(1), .app .profile-actions > :nth-child(2) { grid-column: 1 / -1; width: 100%; justify-content: center; }
.app .profile-actions > :nth-child(3), .app .profile-actions > :nth-child(4) { width: 100%; justify-content: center; }
.app .btn, .app .btn:hover, .app .btn:focus { text-decoration: none !important; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.app .btn-primary:hover { filter: brightness(0.92); box-shadow: 0 4px 12px rgba(0, 71, 160, 0.22); }
.app .btn-secondary:hover { background: #F1F5F9; border-color: #CBD5E1; }
.app .btn-quiet:hover { background: #FEF2F2; border-color: #FECACA; }
