*{box-sizing:border-box}
:root{color-scheme:light;--bg:#fbfcff;--surface:#fff;--soft:#eff3ff;--navy:#102044;--text:#142444;--muted:#50617e;--blue:#2456f4;--link:#1747d5;--border:#dce4f3;--green:#147950;--success:#e9f9f0;--error:#a72338;--error-bg:#fff0f2;--shadow:0 16px 48px #24408016}
[data-theme=dark]{color-scheme:dark;--bg:#0e1526;--surface:#16213a;--soft:#1b2b51;--text:#edf3ff;--muted:#bac9e1;--blue:#2456f4;--link:#a0b8ff;--border:#304267;--green:#8ce5b9;--success:#15362c;--error:#ffb8c1;--error-bg:#3f2231;--shadow:0 16px 48px #0005}
body{margin:0;background:var(--bg);color:var(--text);font:1rem/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
h1,h2,h3,p,figure{margin:0}h1,h2,h3{line-height:1.07;letter-spacing:-.045em}h1{font-size:clamp(2.55rem,5.5vw,5rem);font-weight:790}h2{font-size:clamp(2rem,4vw,3.45rem)}h3{font-size:1.3rem}p{margin-top:.75rem}a{color:var(--link);text-underline-offset:.2em}button,input{font:inherit}img{display:block;max-width:100%;height:auto}svg{flex:none}
:focus-visible{outline:3px solid #6487ff;outline-offset:4px}
.wrap{width:min(1200px,calc(100% - 3rem));margin-inline:auto}.muted{color:var(--muted)}.skip{position:fixed;z-index:10;left:1rem;top:1rem;padding:.7em 1em;background:var(--surface);transform:translateY(-180%)}.skip:focus{transform:none}
.top{background:var(--surface);border-bottom:1px solid var(--border);position:relative;z-index:2}.top-inner,.top-nav,.top-actions,.brand,.actions{display:flex;align-items:center}.top-inner{min-height:78px;justify-content:space-between;gap:1.4rem}.brand{width:max-content;gap:.5rem;text-decoration:none;color:var(--text);font-weight:850;font-size:1.55rem;letter-spacing:-.055em}.brand span{color:var(--link);margin-left:-.48rem}.top-nav,.top-actions{gap:1.5rem}.top-nav a,.login-link{color:var(--text);font-weight:650;text-decoration:none;font-size:.92rem}.top-nav a:hover,.login-link:hover,.footer a:hover{text-decoration:underline}.mobile-menu{display:none}
.button{display:inline-flex;align-items:center;justify-content:center;text-align:center;min-height:49px;padding:.72rem 1.14rem;font-weight:720;border-radius:10px;border:1px solid transparent;cursor:pointer;background:var(--blue);color:#fff;text-decoration:none;line-height:1.2;transition:filter .16s,box-shadow .16s}
.button:hover{filter:brightness(1.12);box-shadow:var(--shadow)}.button.small{min-height:40px;padding:.5rem .82rem;font-size:.875rem}.button.secondary{background:var(--surface);color:var(--text);border-color:var(--border)}.button:disabled{cursor:default;opacity:.58;box-shadow:none;filter:none}.button.danger{background:#a9213c}.actions{gap:.7rem;flex-wrap:wrap}
.hero{background:var(--bg);padding:clamp(2.7rem,6.6vw,6.2rem) 0}.hero-grid{display:grid;grid-template-columns:1.04fr 1fr;gap:clamp(1.5rem,4.1vw,4rem);align-items:center}.eyebrow{display:flex;align-items:center;gap:.55rem;text-transform:uppercase;letter-spacing:.115em;color:var(--link);font-size:.82rem;font-weight:800;margin:0 0 1rem}.eyebrow span{background:var(--blue);width:.5rem;height:.5rem;border-radius:50%}.hero h1 em{color:var(--link);font-style:normal;display:inline}.intro{max-width:36rem;color:var(--muted);font-size:clamp(1.07rem,1.5vw,1.25rem);margin:1.4rem 0 1.7rem}.hero-art{position:relative;border-radius:26px;overflow:hidden;background:#dce7ff;box-shadow:var(--shadow)}.hero-art img{width:100%;aspect-ratio:1.1;object-fit:cover}.hero-art figcaption{position:absolute;bottom:.85rem;left:.85rem;padding:.38rem .65rem;border-radius:8px;background:#fff;color:#152346;font-size:.82rem;font-weight:685}
.band{background:var(--soft);border-block:1px solid var(--border)}.band-inner{display:flex;align-items:center;gap:.9rem 1.35rem;flex-wrap:wrap;padding-block:1.4rem}.band-inner span{color:var(--muted);font-weight:580;font-size:.9rem}
.section{padding-block:clamp(3.4rem,7vw,6.4rem);scroll-margin-top:1rem}.steps,.plans{display:grid;padding:0;list-style:none;gap:1rem;margin:1.75rem 0 0}.steps{grid-template-columns:repeat(4,1fr)}.plans{grid-template-columns:repeat(3,1fr)}.steps li,.plans article,.metric,.setting{border:1px solid var(--border);border-radius:16px;background:var(--surface);padding:1.35rem}.steps p,.plans p{color:var(--muted)}.icon-tile{display:inline-grid;place-items:center;width:45px;height:45px;border-radius:11px;background:var(--soft);color:var(--link);margin-bottom:.85rem}.plans strong{display:inline-block;margin-top:.95rem;font-size:1.75rem;letter-spacing:-.05em}.plans article:nth-child(2){border-color:var(--link)}.plans span{color:var(--muted)}
.features{background:#10234b;color:#fff;padding-block:clamp(3rem,6vw,5.7rem);scroll-margin-top:1rem}.feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:2.6rem;align-items:center}.features .eyebrow{color:#acc0ff}.features p:not(.eyebrow){color:#d3def5}.features ul{display:grid;gap:.7rem;list-style:none;margin:0;padding:0}.features li{display:flex;align-items:center;gap:.65rem}.features li svg{color:#8ce5b9}
.footer{border-top:1px solid var(--border);background:var(--surface)}.footer-inner{display:grid;grid-template-columns:auto 1fr;gap:1.35rem;padding-block:2.1rem;color:var(--muted)}.footer nav{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.6rem 1.1rem}.footer nav a{color:inherit;text-decoration:none;font-size:.92rem}.footer small{grid-column:1/-1}.information{min-height:52vh}
.auth-shell{min-height:100svh;display:grid;grid-template-columns:minmax(230px,.7fr) 1fr}.auth-aside{background:#10234b;color:white;padding:clamp(1.5rem,5vw,4.5rem);display:grid;align-content:space-between;min-height:100%;gap:2rem}.auth-aside .brand{color:white}.auth-aside .brand span,.auth-aside .eyebrow,.auth-aside p span{color:#a9beff}.auth-aside p{font-weight:800;font-size:clamp(2.75rem,5.7vw,5.4rem);line-height:1.04;letter-spacing:-.07em}.auth-main{display:grid;place-items:center;padding:2.5rem 1.5rem}.auth-form{width:min(100%,430px)}.auth-form h1{margin:1rem 0;font-size:clamp(2.3rem,5vw,3.55rem)}.fields{display:grid;gap:1rem;margin-top:1rem}.fields label{display:grid;gap:.35rem;font-weight:650}.fields input:not([type=checkbox]){width:100%;min-height:45px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);padding:.6rem .75rem}.form-options{display:flex;align-items:center;justify-content:space-between;gap:.7rem;flex-wrap:wrap;font-size:.93rem}.form-options label{display:flex;align-items:center}.google{margin-top:.75rem;width:100%}.notice{padding:.85rem 1rem;margin:1rem 0;background:var(--success);color:var(--green);border-radius:9px}.notice ul{margin:0;padding-left:1.3rem}.notice.error{background:var(--error-bg);color:var(--error)}.auth-form>form:last-child:not(.fields){margin-top:1rem}
.app-shell{display:grid;grid-template-columns:245px minmax(0,1fr);min-height:100svh}.sidebar{display:flex;flex-direction:column;gap:2rem;background:var(--surface);border-right:1px solid var(--border);padding:1.45rem 1.15rem}.sidebar nav{display:grid;gap:.4rem}.sidebar nav>a{display:flex;align-items:center;gap:.65rem;text-decoration:none;color:var(--muted);padding:.65rem;border-radius:9px;font-weight:650}.sidebar nav>a[aria-current]{color:var(--link);background:var(--soft)}.sidebar-foot{margin-top:auto;display:grid;gap:.65rem}.sidebar-foot span{overflow-wrap:anywhere;color:var(--muted);font-size:.92rem}.future-nav{margin:.65rem;color:var(--muted)}.future-nav span{display:block;padding:.35rem .5rem}.app-bar{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.9rem clamp(1rem,4vw,3.5rem);background:var(--surface);border-bottom:1px solid var(--border);font-weight:700}.panel{padding:clamp(1.45rem,4vw,3.5rem);max-width:1320px}.panel h1{font-size:clamp(2rem,4vw,3.25rem);overflow-wrap:anywhere}.metrics,.setting-grid{display:grid;gap:1rem;margin:1.5rem 0}.metrics{grid-template-columns:repeat(4,1fr)}.metric{display:grid;gap:.2rem}.metric strong{font-size:1.65rem}.metric .icon-tile{margin-bottom:.15rem}.empty{padding:2.5rem 1.25rem;text-align:center;background:var(--surface);border:1px dashed var(--border);border-radius:16px}.empty h2,.setting h2{font-size:clamp(1.45rem,3.1vw,2rem)}.empty p{max-width:38rem;margin:.75rem auto 1.2rem;color:var(--muted)}.empty .actions{justify-content:center}.setting-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.setting details{margin-top:1rem}summary{cursor:pointer}
@media(max-width:950px){.top-nav{gap:.85rem}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.wrap{width:calc(100% - 2rem)}.top-inner{min-height:68px;gap:.65rem;flex-wrap:wrap;padding-block:.6rem}.top-nav{display:none}.top-actions{gap:.6rem}.mobile-menu{display:block;position:relative;margin-left:auto;font-size:.9rem}.mobile-menu>div{position:absolute;top:calc(100% + .5rem);right:-.5rem;min-width:10rem;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);padding:.6rem;border-radius:8px}.mobile-menu a{display:block;padding:.35rem;color:var(--text)}.hero-grid,.feature-grid,.auth-shell{grid-template-columns:1fr}.hero-art{border-radius:16px}.hero-grid{gap:1.6rem}.auth-aside{display:block;padding:1rem 1.4rem}.auth-aside div,.auth-aside small{display:none}.steps{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shell{display:flex;flex-direction:column;padding-bottom:calc(70px + env(safe-area-inset-bottom))}.sidebar{position:fixed;z-index:3;bottom:0;left:0;right:0;display:flex;flex-direction:row;justify-content:space-evenly;align-items:center;gap:.35rem;padding:.45rem .3rem calc(.45rem + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--border)}.sidebar>.brand,.sidebar-foot span,.future-nav{display:none}.sidebar nav{display:flex}.sidebar nav>a{display:grid;justify-items:center;text-align:center;padding:.3rem;gap:.15rem;font-size:.82rem}.sidebar-foot{margin:0}.setting-grid{grid-template-columns:1fr}}
@media(max-width:510px){.plans,.footer-inner{grid-template-columns:1fr}.footer nav{justify-content:flex-start}.steps li,.plans article,.metric{padding:1rem}.top-actions .login-link{font-size:.82rem}.top-actions .button.small{font-size:.78rem;padding-inline:.52rem}.top-inner .brand{font-size:1.28rem}.top-inner .brand img{width:28px;height:28px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
/* Administração */
.admin-nav{margin-bottom:1.5rem}
.admin-nav [aria-current=page]{background:var(--soft);border-color:var(--link);color:var(--link)}
.admin .metrics{grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr))}
.admin .metric strong{overflow-wrap:anywhere}
.admin-actions,.admin-section,.admin-form{margin-top:1.25rem}
.admin-actions{margin-bottom:1.25rem}
.admin-form{max-width:38rem}
.admin-filters{display:flex;align-items:end;flex-wrap:wrap;margin:0 0 1rem}
.admin-filters label{flex:1 1 12rem}
.admin .fields select{width:100%;min-height:45px;font:inherit;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);padding:.6rem .75rem}
.admin-table{overflow:auto}
.admin-table table{border-collapse:collapse;width:100%;text-align:left}
.admin-table th,.admin-table td{padding:.7rem .6rem;border-bottom:1px solid var(--border);vertical-align:middle}
.admin-table thead th{color:var(--muted);font-size:.875rem}
.admin-table small{display:block;font-size:.875rem}
.admin-table .actions{min-width:max-content}
.admin-status{display:inline-block;padding:.15rem .5rem;background:var(--soft);color:var(--text);border-radius:8px;font-size:.875rem;font-weight:650}
.admin-status.positive{background:var(--success);color:var(--green)}
.admin-status.negative{background:var(--error-bg);color:var(--error)}
.admin-pagination{margin-top:1rem}
@media(max-width:760px){.admin .setting{padding:1rem}.admin-table th,.admin-table td{min-width:8rem}.admin-table .actions{min-width:0}}

.box-title{margin-top:.7rem}
.box-form{max-width:36rem}
.box-form select,.box-form textarea{width:100%;min-height:45px;font:inherit;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);padding:.6rem .75rem}
.box-form textarea{min-height:5rem;resize:vertical}
.photo-picker{display:grid;gap:.5rem;padding:1rem;border:1px dashed var(--border);border-radius:10px;background:var(--soft)}
.photo-picker input[type=file]{width:100%;min-width:0}
.box-inventory{margin-top:2rem}
.box-inventory-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}
.box-inventory-header h2{font-size:clamp(1.55rem,4vw,2.25rem)}
.box-inventory-header h2 span{font-size:.65em}
.box-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));gap:1rem;list-style:none;margin:0;padding:0}
.box-card{display:grid;gap:.4rem;color:var(--text);text-decoration:none;overflow-wrap:anywhere}
.box-card:hover strong{text-decoration:underline}
.box-card img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:9px}
.box-photo,.box-qr{margin:1rem 0;border-radius:9px}
.box-photo{max-height:34rem;object-fit:contain}
.box-qr{width:min(100%,16rem);height:auto;background:#fff}
.box-description{white-space:pre-wrap;overflow-wrap:anywhere}
