:root{--orange:#f57c00;--navy:#0b3769;--ink:#18202a;--muted:#6b7280;--bg:#f4f6f8;--card:#fff;--radius:22px}*{box-sizing:border-box}html{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}body{margin:0}a{color:inherit}.container{width:min(100%,980px);margin:auto;padding:18px 14px 60px}.hero{background:linear-gradient(155deg,#fff 0%,#fff7ec 45%,#eaf4ff 100%);border-bottom:1px solid #e5e7eb}.hero-inner{max-width:900px;margin:auto;text-align:center;padding:26px 18px 32px}.logo-feira{display:block;max-width:310px;width:74%;height:120px;object-fit:contain;margin:0 auto 8px}.logo-escola{height:58px;max-width:230px;object-fit:contain;margin:2px auto 15px;display:block}.hero h1{font-size:clamp(26px,7vw,46px);margin:8px 0 6px}.hero p{margin:0 auto;max-width:600px;color:var(--muted);font-size:16px;line-height:1.45}.panel{background:var(--card);border:1px solid #e6e8eb;border-radius:var(--radius);padding:16px;margin:14px 0;box-shadow:0 8px 28px #18202a0b}.step-title{display:flex;gap:12px;align-items:center;margin-bottom:14px}.step-title>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--orange);color:#fff;font-weight:800}.step-title div{display:flex;flex-direction:column;gap:2px}.step-title b{font-size:17px}.step-title small{color:var(--muted)}.theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.theme-card{min-height:112px;border:1px solid #e5e7eb;border-radius:18px;background:#fff;padding:14px;text-align:left;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:5px;box-shadow:inset 5px 0 var(--accent);transition:.18s}.theme-card:active,.theme-card.selected{transform:scale(.98);border-color:var(--accent);background:color-mix(in srgb,var(--accent) 6%,#fff)}.theme-emoji{font-size:28px}.theme-card strong{font-size:17px}.theme-card small{color:var(--muted)}button{font:inherit}.subthemes{margin-top:14px;padding:12px;border-radius:16px;background:#f7f8fa}.hidden{display:none!important}.chips{display:flex;gap:8px;overflow:auto;padding:8px 0;scrollbar-width:none}.chip{white-space:nowrap;border:1px solid #d9dde3;border-radius:999px;background:#fff;padding:9px 13px;text-decoration:none;font-size:14px}.chip.active,.subchip.active{background:var(--navy);color:#fff;border-color:var(--navy)}.dropzone{min-height:180px;border:2px dashed #c7cdd6;border-radius:20px;background:#fafafa;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px;cursor:pointer}.dropzone input{display:none}.drop-icon{width:54px;height:54px;border-radius:16px;background:#fff4e5;color:var(--orange);display:grid;place-items:center;font-size:36px;margin-bottom:10px}.dropzone small{color:var(--muted);margin-top:4px}.consent{display:flex;gap:10px;align-items:flex-start;margin:14px 2px;font-size:13px;line-height:1.4;color:#4b5563}.consent input{margin-top:3px}.queue{display:grid;gap:8px;margin:12px 0}.queue-item{border:1px solid #e5e7eb;border-radius:14px;padding:10px;display:grid;grid-template-columns:1fr 82px;gap:8px}.queue-item>div:first-child{min-width:0}.queue-item b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.queue-item small{color:var(--muted)}.progress{grid-column:1/2;height:6px;background:#edf0f3;border-radius:99px;overflow:hidden}.progress i{display:block;width:0;height:100%;background:var(--orange);transition:.2s}.qstatus{grid-column:2;grid-row:1/3;display:grid;place-items:center;font-size:12px;color:var(--muted)}.failed{border-color:#ef4444}.btn{border:0;border-radius:14px;padding:13px 18px;font-weight:800;cursor:pointer}.btn.primary{background:linear-gradient(135deg,#f57c00,#ff9f24);color:white;box-shadow:0 8px 18px #f57c0033}.btn:disabled{opacity:.45;box-shadow:none}.full{width:100%}.quick-links{display:flex;justify-content:center;gap:20px;padding:12px;font-size:13px;color:var(--muted)}.alert{border-radius:14px;padding:12px 14px;margin:12px 0}.alert.success{background:#eaf8ef;color:#146c36}.alert.error{background:#fff0f0;color:#a52424}.simple-header{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid #e5e7eb;padding:12px 14px;display:flex;gap:16px;align-items:center}.simple-header a{text-decoration:none}.simple-header div{display:flex;flex-direction:column}.simple-header small{color:var(--muted)}.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.media-card{margin:0;background:#fff;border-radius:16px;overflow:hidden;border:1px solid #e5e7eb}.media-card img,.media-card video{width:100%;aspect-ratio:1/1;object-fit:cover;background:#111;display:block}.media-card div{padding:9px;font-size:12px}.empty{text-align:center;padding:50px;color:var(--muted)}.install-bg{min-height:100vh;display:grid;place-items:center;padding:18px;background:linear-gradient(145deg,#071e35,#123e6d)}.install-card{width:min(100%,520px);background:#fff;border-radius:24px;padding:24px;box-shadow:0 28px 90px #0005}.install-card h1{margin:8px 0}.brand-school{display:block;max-width:210px;height:100px;object-fit:contain;margin:auto}.stack{display:grid;gap:12px}.stack label,.form-grid label{display:grid;gap:6px;font-weight:700;font-size:13px}.stack input,.stack select,.form-grid input,.form-grid select{width:100%;border:1px solid #d5dae0;border-radius:12px;padding:12px;background:#fff;font-size:16px}.backlink{display:block;margin-top:20px;text-align:center;color:var(--muted)}.admin-body{background:#f5f6f8;min-height:100vh}.admin-nav{position:sticky;top:0;z-index:20;display:flex;gap:6px;overflow:auto;padding:10px;background:#0c2948;color:#fff}.admin-nav a{white-space:nowrap;text-decoration:none;padding:10px 12px;border-radius:10px;font-size:13px}.admin-nav a:hover{background:#ffffff18}.admin-main{width:min(100%,1180px);margin:auto;padding:22px 14px 60px}.admin-main h1{margin-bottom:4px}.muted{color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:18px 0}.stats div,.admin-card{background:#fff;border:1px solid #e3e6ea;border-radius:18px;padding:16px}.stats b{font-size:30px;display:block}.stats span{color:var(--muted);font-size:13px}.admin-card{margin:14px 0}.admin-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.admin-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.review-card{background:#fff;border:1px solid #e1e5e9;border-radius:16px;overflow:hidden}.review-preview img,.review-preview video{width:100%;aspect-ratio:1/1;object-fit:cover;background:#111;display:block}.review-info{padding:10px}.review-info small{display:block;color:var(--muted);margin:4px 0 10px}.actions{display:flex;flex-wrap:wrap;gap:6px}.mini-btn{border:1px solid #d6dbe1;background:#fff;border-radius:9px;padding:7px 9px;font-size:12px;cursor:pointer}.mini-btn.danger{color:#b91c1c;border-color:#fecaca}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid .btn{align-self:end}.table-wrap{overflow:auto;background:#fff;border:1px solid #e3e6ea;border-radius:16px;margin-top:14px}table{border-collapse:collapse;width:100%;min-width:600px}th,td{text-align:left;padding:12px;border-bottom:1px solid #eceff2;font-size:13px}th{background:#fafbfc}.logo-school{max-width:220px}
@media(min-width:700px){.theme-grid{grid-template-columns:repeat(4,1fr)}.gallery{grid-template-columns:repeat(4,1fr)}.stats{grid-template-columns:repeat(4,1fr)}.admin-media-grid{grid-template-columns:repeat(4,1fr)}.panel{padding:22px}.hero-inner{padding-top:34px}.logo-feira{max-width:380px;height:150px}}
@media(max-width:520px){.form-grid{grid-template-columns:1fr}.admin-nav{padding-left:8px}.queue-item{grid-template-columns:1fr 64px}.logo-feira{height:100px}.logo-escola{height:52px}}.gallery-header{background:#fff;border-bottom:1px solid #e5e7eb;padding:10px 14px 12px;display:grid;grid-template-columns:auto 1fr;gap:8px 14px;align-items:center}.gallery-back{text-decoration:none;font-size:14px;color:var(--muted)}.gallery-brands{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:14px;min-width:0}.gallery-brands span{width:1px;height:34px;background:#e5e7eb}.gallery-logo-feira{width:min(46vw,220px);height:68px;object-fit:contain}.gallery-logo-escola{width:min(32vw,155px);height:62px;object-fit:contain}.gallery-heading{display:flex;flex-direction:column;text-align:right}.gallery-heading small{color:var(--muted);font-size:11px}.gallery-heading b{font-size:15px}@media(min-width:700px){.gallery-header{grid-template-columns:auto 1fr auto}.gallery-brands{grid-column:auto;justify-content:flex-start}.gallery-heading{text-align:left}.gallery-logo-feira{width:240px;height:76px}.gallery-logo-escola{width:170px;height:66px}}

/* Galeria v3 — cabeçalho compacto e mobile-first */
.gallery-body{background:#fff;min-height:100vh}
.gallery-header{background:#fff;border-bottom:1px solid #edf0f3;padding:10px 14px 12px;display:block}
.gallery-topbar{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;max-width:980px;margin:0 auto}
.gallery-back{font-size:14px;color:#6b7280;text-decoration:none;min-height:44px;display:inline-flex;align-items:center;white-space:nowrap}
.gallery-brands{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}
.gallery-separator{width:1px;height:30px;background:#e8ebef;flex:0 0 1px}
.gallery-logo-feira{width:auto;height:48px;max-width:44vw;object-fit:contain}
.gallery-logo-escola{width:auto;height:40px;max-width:31vw;object-fit:contain}
.gallery-heading{max-width:980px;margin:6px auto 0;text-align:left;display:flex;flex-direction:column;gap:1px}
.gallery-heading b{font-size:20px;line-height:1.15;color:#18202a}
.gallery-heading small{font-size:12px;color:#7a818c}
.gallery-main{padding-top:12px;background:#fff}
.gallery-filters{margin-bottom:10px}
.gallery-empty{margin:18px auto 0;max-width:460px;text-align:center;padding:30px 20px;border:1px solid #edf0f3;border-radius:20px;background:#fff}
.gallery-empty-icon{width:48px;height:48px;border-radius:15px;background:#fff4e5;color:#f57c00;display:grid;place-items:center;margin:0 auto 12px;font-size:26px;font-weight:800}
.gallery-empty b{display:block;font-size:18px;margin-bottom:6px}
.gallery-empty p{margin:0 auto 18px;max-width:330px;color:#6b7280;font-size:14px;line-height:1.45}
.btn.secondary{display:inline-flex;text-decoration:none;background:#fff;border:1px solid #dfe3e8;color:#18202a;box-shadow:none;margin-top:10px}
.result-actions{margin-top:10px}
@media(max-width:380px){
  .gallery-header{padding-left:10px;padding-right:10px}
  .gallery-logo-feira{height:43px;max-width:43vw}
  .gallery-logo-escola{height:36px;max-width:29vw}
  .gallery-heading b{font-size:18px}
}
@media(min-width:700px){
  .gallery-header{padding:12px 18px 14px}
  .gallery-topbar{grid-template-columns:auto 1fr}
  .gallery-brands{justify-content:flex-end}
  .gallery-logo-feira{height:58px;max-width:260px}
  .gallery-logo-escola{height:48px;max-width:190px}
  .gallery-heading{margin-top:4px}
  .gallery-heading b{font-size:22px}
}

/* Galeria v4 — marca da Feira em destaque, sem recortes laterais */
.gallery-header{background:#fff;border:0;border-bottom:1px solid #eef1f4;padding:8px 14px 14px;display:block}
.gallery-header-inner{width:min(100%,980px);margin:0 auto}
.gallery-navrow{min-height:38px;display:flex;align-items:center;justify-content:flex-start}
.gallery-back{font-size:14px;color:#6b7280;text-decoration:none;display:inline-flex;align-items:center;min-height:38px}
.gallery-brand-primary{display:flex;justify-content:center;align-items:center;padding:0 8px}
.gallery-logo-feira{display:block;width:min(82vw,330px);height:auto;max-height:none;object-fit:contain;margin:0 auto}
.gallery-school-mark{display:flex;justify-content:center;align-items:center;margin-top:2px}
.gallery-logo-escola{display:block;width:min(34vw,132px);height:auto;max-height:72px;object-fit:contain;margin:0 auto}
.gallery-heading{text-align:center;display:flex;flex-direction:column;gap:2px;margin:8px auto 0}
.gallery-heading b{font-size:21px;line-height:1.15;color:#18202a}
.gallery-heading small{font-size:12px;color:#7a818c}
.gallery-main{padding-top:10px;background:#fff}
@media(max-width:380px){
  .gallery-header{padding-left:10px;padding-right:10px}
  .gallery-logo-feira{width:min(86vw,305px)}
  .gallery-logo-escola{width:min(38vw,120px)}
  .gallery-heading b{font-size:19px}
}
@media(min-width:700px){
  .gallery-header{padding-top:10px;padding-bottom:16px}
  .gallery-logo-feira{width:360px}
  .gallery-logo-escola{width:145px;max-height:78px}
  .gallery-heading b{font-size:24px}
}
