:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #142827; --muted: #697978; --line: #e0e7e5; --soft: #f4f7f6; --paper: #fff;
  --green-950: #092827; --green-900: #0d3532; --green-800: #174945; --green-600: #24776c;
  --green-100: #e6f4f0; --orange: #ed7b35; --orange-soft: #fff0e6; --blue: #4169d8;
  --shadow: 0 18px 45px rgba(18, 50, 48, .09);
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-height: 100vh; background: var(--soft); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: var(--orange); color: #fff; font-family: Georgia, serif; font-size: 1.35rem; box-shadow: 0 8px 20px rgba(237,123,53,.25); }
.brand--dark { color: var(--green-950); }
.brand--light { color: #fff; }

/* Entrada */
.entry-page { background: #f5f7f5; }
.entry-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 34px; }
.entry-header { display: flex; align-items: center; justify-content: space-between; }
.entry-actions { display: flex; align-items: center; gap: 10px; }
.environment-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #536563; font-size: .78rem; font-weight: 700; }
.environment-pill span { width: 7px; height: 7px; border-radius: 50%; background: #39a873; box-shadow: 0 0 0 4px #e3f5ec; }
.entry-hero { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 330px; align-items: center; gap: 70px; min-height: 430px; padding: 56px clamp(22px,5vw,70px); margin-top: 25px; overflow: hidden; border-radius: 32px; background: var(--green-950); color: #fff; }
.entry-hero::after { content: ""; position: absolute; right: -120px; bottom: -200px; width: 430px; height: 430px; border-radius: 50%; background: #174c48; }
.entry-hero > div:first-child { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 18px; color: #f4aa7d; font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.entry-hero h1 { max-width: 720px; margin: 0; font-family: Georgia,"Times New Roman",serif; font-size: clamp(2.8rem,6vw,5.7rem); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.entry-lead { max-width: 640px; margin: 25px 0 0; color: #bdd1ce; font-size: 1.05rem; line-height: 1.7; }
.entry-orbit { position: relative; z-index: 1; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.entry-orbit::before { content: ""; position: absolute; inset: 45px; border: 1px dashed rgba(255,255,255,.19); border-radius: 50%; }
.orbit-center { position: absolute; inset: 50%; display: grid; width: 95px; height: 95px; place-items: center; transform: translate(-50%,-50%); border-radius: 30px; background: var(--orange); font: 700 2rem Georgia,serif; box-shadow: 0 22px 50px rgba(0,0,0,.24); }
.orbit-dot { position: absolute; display: grid; width: 64px; height: 64px; place-items: center; border: 5px solid var(--green-950); border-radius: 50%; background: #fff; color: var(--green-950); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.orbit-dot--one { top: -5px; left: 113px; } .orbit-dot--two { right: 5px; bottom: 34px; } .orbit-dot--three { left: -5px; bottom: 34px; }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.portal-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; min-height: 190px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.portal-card:hover { transform: translateY(-3px); border-color: #c8d4d1; box-shadow: var(--shadow); }
.portal-icon { display: grid; width: 60px; height: 60px; place-items: center; border-radius: 18px; background: var(--green-100); color: var(--green-800); font: 700 1.55rem Georgia,serif; }
.portal-card--platform .portal-icon { background: var(--orange-soft); color: #b75922; }
.portal-label { color: var(--green-600); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.portal-copy h2 { margin: 7px 0; font-size: 1.5rem; letter-spacing: -.03em; }
.portal-copy p { max-width: 420px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.portal-arrow { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--soft); color: var(--green-800); font-size: 1.2rem; }
.entry-footer { display: flex; align-items: center; justify-content: space-between; padding: 26px 4px 0; color: var(--muted); font-size: .82rem; }
.entry-footer a { color: var(--green-600); font-weight: 700; }
.entry-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 34px; }
.entry-hero-actions .primary-btn { background: var(--orange); color: #fff; }
.entry-text-link { color: #e3f1ec; font-size: .9rem; font-weight: 750; }
.entry-text-link:hover { text-decoration: underline; }
.entry-process { padding: 78px 0 68px; }
.entry-section-head { max-width: 680px; }
.entry-section-head .eyebrow, .entry-access .eyebrow { color: var(--green-600); }
.entry-section-head h2, .entry-access h2 { margin: 0; font: 500 clamp(2rem, 4vw, 3.4rem)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.entry-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 32px; }
.entry-step { min-height: 230px; padding: 30px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.entry-step > span { color: var(--green-600); font-size: .8rem; font-weight: 850; letter-spacing: .12em; }
.entry-step h3 { margin: 44px 0 9px; font-size: 1.27rem; letter-spacing: -.03em; }
.entry-step p, .entry-access p:not(.eyebrow) { max-width: 390px; margin: 0; color: var(--muted); font-size: .91rem; line-height: 1.65; }
.entry-access { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px 46px; border-radius: 26px; background: #e3efec; }
.entry-access h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.entry-access p:not(.eyebrow) { margin-top: 14px; }
.entry-access .primary-btn { flex: 0 0 auto; }

/* Estrutura dos paineis */
.app-shell { display: grid; grid-template-columns: 248px minmax(0,1fr); min-height: 100vh; }
.sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; display: flex; width: 248px; flex-direction: column; padding: 25px 16px 20px; background: var(--green-950); color: #fff; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 27px; }
.sidebar-close { display: none; border: 0; background: transparent; color: #fff; font-size: 1.5rem; }
.workspace-card { padding: 14px; margin-bottom: 22px; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; background: rgba(255,255,255,.055); }
.workspace-card small { display: block; margin-bottom: 6px; color: #85aaa5; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.workspace-card strong { display: block; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; white-space: nowrap; }
.sidebar-nav { display: grid; gap: 5px; }
.nav-label { padding: 10px 12px 6px; color: #6f9893; font-size: .63rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav-item { display: flex; width: 100%; min-height: 44px; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: #a9c3c0; font-size: .86rem; font-weight: 650; text-align: left; transition: background .16s,color .16s; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.09); color: #fff; }
.nav-icon { display: grid; width: 21px; height: 21px; place-items: center; color: #86aaa5; font-size: .82rem; font-style: normal; }
.nav-item.active .nav-icon { color: #f4a273; }
.sidebar-foot { margin-top: auto; padding: 14px 9px 0; border-top: 1px solid rgba(255,255,255,.08); }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #eaf2ef; color: var(--green-800); font-size: .75rem; font-weight: 800; }
.avatar--orange { background: var(--orange); color: #fff; }
.user-chip strong,.user-chip small { display: block; } .user-chip strong { font-size: .78rem; } .user-chip small { margin-top: 2px; color: #7fa29e; font-size: .67rem; }
.app-main { grid-column: 2; min-width: 0; }
.topbar { position: sticky; z-index: 30; top: 0; display: flex; height: 73px; align-items: center; justify-content: space-between; padding: 0 clamp(20px,3.5vw,46px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.91); backdrop-filter: blur(16px); }
.mobile-menu { display: none; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.breadcrumb { color: var(--muted); font-size: .78rem; } .breadcrumb strong { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: #556967; }
.primary-btn,.secondary-btn,.ghost-btn { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border-radius: 10px; font-size: .78rem; font-weight: 800; }
.primary-btn { border: 1px solid var(--green-800); background: var(--green-800); color: #fff; box-shadow: 0 8px 18px rgba(23,73,69,.14); }
.primary-btn:hover { background: var(--green-950); }
.secondary-btn { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.ghost-btn { border: 0; background: transparent; color: var(--green-600); }
.content { width: min(1480px,100%); padding: 35px clamp(20px,3.5vw,46px) 55px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading p { margin: 0 0 7px; color: var(--green-600); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.page-heading h1 { margin: 0; font-size: clamp(1.75rem,3vw,2.5rem); letter-spacing: -.045em; }
.page-heading .description { max-width: 580px; margin: 9px 0 0; color: var(--muted); font-size: .88rem; font-weight: 400; letter-spacing: 0; line-height: 1.55; text-transform: none; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.stats-grid--two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.stats-grid--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.stat-card { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: 0 8px 24px rgba(22,49,47,.035); }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .72rem; font-weight: 750; }
.stat-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--green-100); color: var(--green-600); font-weight: 850; }
.stat-card:nth-child(2) .stat-icon { background: #edf0fc; color: var(--blue); } .stat-card:nth-child(3) .stat-icon { background: var(--orange-soft); color: #c76327; } .stat-card:nth-child(4) .stat-icon { background: #f1edfa; color: #7956b3; }
.stat-value { margin: 20px 0 6px; font-size: 2rem; font-weight: 790; letter-spacing: -.05em; }
.stat-foot { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .7rem; } .trend { color: #288258; font-weight: 800; }
.grid-main { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,.7fr); gap: 18px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 10px 30px rgba(22,49,47,.035); }
.panel-head { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-title h2 { margin: 0; font-size: .98rem; letter-spacing: -.02em; } .panel-title p { margin: 5px 0 0; color: var(--muted); font-size: .7rem; }
.panel-body { padding: 20px; }
.table-tools { display: flex; gap: 9px; }
.search-box { display: flex; min-width: 210px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); color: var(--muted); }
.search-box input { width: 100%; min-height: 34px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .72rem; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 11px 20px; border-bottom: 1px solid var(--line); background: #fbfcfc; color: #81908f; font-size: .63rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 15px 20px; border-bottom: 1px solid #edf1f0; color: #536462; font-size: .75rem; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; } .data-table tbody tr:hover { background: #fbfcfc; }
.entity { display: flex; align-items: center; gap: 11px; } .entity strong { display: block; color: var(--ink); font-size: .78rem; } .entity small { display: block; margin-top: 3px; color: #899694; font-size: .66rem; }
.entity-logo { display: grid; flex: 0 0 auto; width: 37px; height: 37px; place-items: center; border-radius: 11px; background: var(--green-100); color: var(--green-800); font-weight: 850; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; background: #eaf7f0; color: #297451; font-size: .65rem; font-weight: 800; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; } .badge--pending { background: #fff3e9; color: #a95d2d; }
.row-action { border: 0; background: transparent; color: var(--green-600); font-weight: 800; }
.activity-list { display: grid; } .activity { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf1f0; } .activity:first-child { padding-top: 0; } .activity:last-child { padding-bottom: 0; border-bottom: 0; }
.activity-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--green-100); color: var(--green-800); font-size: .7rem; font-weight: 850; }
.activity strong { display: block; margin-bottom: 3px; font-size: .75rem; } .activity p,.activity time { margin: 0; color: var(--muted); font-size: .67rem; line-height: 1.45; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px; margin-top: 18px; border: 1px solid #f4d9c8; border-radius: 13px; background: #fff8f3; color: #825438; }
.notice-icon { display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: var(--orange-soft); font-size: .72rem; font-weight: 900; }
.notice strong { display: block; margin-bottom: 3px; font-size: .72rem; } .notice p { margin: 0; font-size: .67rem; line-height: 1.45; }
.progress-stack { display: grid; gap: 18px; } .progress-row header { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: .7rem; } .progress-row header span { color: var(--muted); }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #edf2f1; } .progress-bar { display: block; height: 100%; border-radius: inherit; background: var(--green-600); } .progress-row:nth-child(2) .progress-bar { background: var(--orange); } .progress-row:nth-child(3) .progress-bar { background: var(--blue); }

/* Modal */
.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(7,31,29,.65); backdrop-filter: blur(4px); }
.modal-backdrop.open { display: flex; }
.modal { width: min(610px,100%); max-height: calc(100vh - 36px); overflow-y: auto; border-radius: 20px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 1.15rem; } .modal-head p { margin: 5px 0 0; color: var(--muted); font-size: .75rem; }
.modal-close { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); }
.modal-body { padding: 22px 24px; } .form-section + .form-section { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); } .form-section-title { margin: 0 0 14px; font-size: .75rem; font-weight: 850; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .field { display: grid; gap: 6px; } .field--full { grid-column: 1/-1; } .field label { color: #4d5f5d; font-size: .68rem; font-weight: 750; }
.field input,.field select,.field textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #d7dfdd; border-radius: 9px; outline: 0; background: #fff; color: var(--ink); font-size: .78rem; }
.field input:focus,.field select:focus,.field textarea:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(36,119,108,.1); } .field small { color: var(--muted); font-size: .62rem; line-height: 1.4; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 16px 24px; border-top: 1px solid var(--line); background: #fafbfb; }
.toast { position: fixed; z-index: 120; right: 24px; bottom: 24px; display: flex; max-width: 380px; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--green-950); color: #fff; box-shadow: 0 18px 45px rgba(0,0,0,.22); font-size: .75rem; transform: translateY(120px); opacity: 0; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; } .toast-mark { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #3b9d78; font-weight: 900; }
.sidebar-overlay { display: none; }

/* Operacao real */
.workspace-section { margin-top: 20px; scroll-margin-top: 95px; }
.sidebar-logout { width: 100%; padding: 10px 0 0 44px; border: 0; background: transparent; color: #b8cfcb; font-size: .7rem; text-align: left; }
.sidebar-logout:hover { color: #fff; text-decoration: underline; }
.shop-switch { width: min(300px,100%); margin-top: 14px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.inline-form .field { flex: 1 1 220px; }
.inline-form .primary-btn { min-height: 43px; }
.shop-details-form { max-width: 850px; }
.shop-details-form .consent-line { padding: 12px 14px; margin: 2px 0; border: 1px solid #cfe3dc; border-radius: 10px; background: #f2faf6; }
.shop-support-state { display: block; margin: 4px 0; color: var(--muted); font-size: .67rem; }
.activity-badge { margin-left: auto; padding: 2px 7px; border-radius: 999px; background: #f47c34; color: #fff; font-size: .62rem; font-weight: 800; }
.activity-unread { background: #f2faf6; }
.activity-unread td:first-child { border-left: 3px solid #2b806b; }
.activity-subtext { display: block; margin-top: 4px; color: var(--muted); font-size: .65rem; }
.activity-change { padding: 3px 0; font-size: .69rem; line-height: 1.45; overflow-wrap: anywhere; }
.activity-change + .activity-change { border-top: 1px solid #eef3f1; }
.activity-table td:last-child { min-width: 210px; }
.section-note { margin: 13px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.team-email { display: block; margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
#equipe .data-table select { min-width: 110px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: white; }
#equipe .data-table .secondary-btn { white-space: nowrap; }
.consent-line { display: flex; align-items: flex-start; gap: 9px; margin-top: 22px; color: var(--ink); font-size: .74rem; line-height: 1.5; }
.consent-line input { margin-top: 2px; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: 15px; margin-top: 17px; }
.qr-card { display: grid; justify-items: center; gap: 7px; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; }
.qr-card img { display: block; width: min(100%,145px); aspect-ratio: 1; }
.qr-card strong { color: var(--green-900); font-size: .85rem; }
.qr-card small { max-width: 100%; overflow-wrap: anywhere; color: var(--muted); font-size: .56rem; }
.qr-card a { color: var(--green-600); font-size: .7rem; font-weight: 750; }

/* Cadastro de cliente do estabelecimento */
.registration-content { max-width: 1260px; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--green-600); font-size: .75rem; font-weight: 800; }
.back-link:hover { text-decoration: underline; }
.registration-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(245px, .7fr); align-items: start; gap: 18px; }
.registration-form { padding: clamp(20px, 3vw, 34px); }
.registration-step { display: flex; align-items: flex-start; gap: 14px; }
.registration-step > span { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--green-100); color: var(--green-800); font-size: .68rem; font-weight: 850; }
.registration-step h2 { margin: 2px 0 4px; font-size: 1rem; letter-spacing: -.025em; }
.registration-step p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.registration-step--separated { padding-top: 28px; margin-top: 30px; border-top: 1px solid var(--line); }
.registration-fields { margin-top: 22px; }
.registration-fields .field label { font-size: .72rem; }
.registration-fields .field input,.registration-fields .field select { min-height: 47px; font-size: .8rem; }
.registration-consent { padding: 17px 18px; margin-top: 27px; border: 1px solid #cfe3dc; border-radius: 12px; background: #f2faf6; }
.registration-consent .consent-line { margin: 0; font-size: .73rem; }
.registration-error { min-height: 17px; margin: 18px 0 0; color: #a8372e; font-size: .74rem; line-height: 1.5; }
.registration-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 22px; margin-top: 8px; border-top: 1px solid var(--line); }
.registration-actions .primary-btn,.registration-actions .secondary-btn { min-height: 44px; }
.registration-aside { display: grid; gap: 16px; }
.registration-info { padding: 24px; }
.registration-info h2 { margin: 14px 0 10px; font-size: .95rem; }
.registration-info p,.registration-info li { color: var(--muted); font-size: .74rem; line-height: 1.65; }
.registration-info p:last-child { margin-bottom: 0; }
.registration-info-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: var(--green-100); color: var(--green-800); font-size: 1.25rem; }
.registration-info--soft { background: #f8fbfa; }
.registration-info--soft h2 { margin-top: 0; }
.registration-info ol { padding-left: 18px; margin-bottom: 0; }
.registration-success { max-width: 720px; padding: 38px; margin-top: 18px; }
.registration-success-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: #e7f7ed; color: #277754; font-size: 1.35rem; font-weight: 900; }
.registration-success h2 { margin: 18px 0 8px; font-size: 1.3rem; }
.registration-success p { margin: 0 0 23px; color: var(--muted); font-size: .82rem; line-height: 1.6; }

/* Leitura publica do QR */
.rescue-page { background: #eef4f2; }
.rescue-shell { width: min(570px,calc(100% - 28px)); margin: 0 auto; padding: 22px 0 45px; }
.rescue-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 20px; }
.rescue-header .environment-pill { font-size: .68rem; }
.rescue-card { padding: clamp(26px,6vw,48px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); text-align: center; }
.rescue-card h1 { margin: 12px 0 8px; color: var(--green-950); font: 500 clamp(2.2rem,8vw,3.4rem)/1.05 Georgia,serif; letter-spacing: -.04em; }
.rescue-card > p:not(.auth-kicker) { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.rescue-paw { display: grid; width: 70px; height: 70px; place-items: center; margin: 0 auto 12px; border-radius: 22px; background: var(--orange-soft); color: var(--orange); font-size: 2.3rem; }
.rescue-detail { display: flex; justify-content: center; gap: 5px; margin: 0 0 20px; text-transform: capitalize; }
.rescue-notes { padding: 12px; border-radius: 11px; background: var(--soft); }
.rescue-shop { display: flex; width: fit-content; align-items: center; gap: 11px; margin: 22px auto; text-align: left; }
.rescue-shop small,.rescue-shop strong { display: block; }
.rescue-shop small { color: var(--muted); font-size: .66rem; }
.rescue-shop strong { margin-top: 2px; font-size: .82rem; }
.rescue-status { padding: 13px; border-radius: 12px; background: var(--green-100); color: var(--green-800); font-size: .78rem; line-height: 1.5; }
.rescue-location-preview { margin: 12px 0 0 !important; color: var(--muted); font-size: .73rem !important; }
.rescue-location-preview a { color: var(--green-800); font-weight: 700; }
.rescue-contact { width: 100%; min-height: 48px; margin-top: 16px; }
.rescue-support { padding: 20px; margin-top: 22px; border: 1px solid #cfe3dc; border-radius: 16px; background: #f4faf7; text-align: left; }
.rescue-support h2 { margin: 4px 0 10px; color: var(--green-950); font-size: 1.12rem; }
.rescue-support p { margin: 10px 0; color: #4c615e; font-size: .76rem; line-height: 1.55; }
.rescue-support address { padding: 13px; border-radius: 10px; background: #fff; color: var(--green-950); font-size: .8rem; font-style: normal; line-height: 1.55; }
.rescue-support-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 15px 0; }
.rescue-support-actions a { display: grid; min-height: 42px; place-items: center; text-align: center; }
.rescue-support small { display: block; color: var(--muted); font-size: .67rem; line-height: 1.5; }
.rescue-card .rescue-privacy { margin: 17px 0 0; font-size: .7rem !important; }
.rescue-modal { width: min(500px,100%); }

@media print {
  body:has(.qr-grid) { background: #fff; }
  body:has(.qr-grid) .sidebar, body:has(.qr-grid) .topbar,
  body:has(.qr-grid) .content > :not(#lotes),
  body:has(.qr-grid) #lotes .panel-head,
  body:has(.qr-grid) #lotes .panel-body:not([data-print-panel]),
  body:has(.qr-grid) #lotes .table-wrap,
  body:has(.qr-grid) #lotes [data-print-panel] > :not(.qr-grid) { display: none !important; }
  body:has(.qr-grid) .app-shell, body:has(.qr-grid) .app-main { display: block; }
  body:has(.qr-grid) .content { padding: 0; }
  body:has(.qr-grid) #lotes { margin: 0; border: 0; box-shadow: none; }
  body:has(.qr-grid) .qr-grid { grid-template-columns: repeat(3,1fr); gap: 12px; }
  body:has(.qr-grid) .qr-card { break-inside: avoid; }
}

/* Autenticação */
.auth-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: #eaf0ee; }
.auth-shell { display: grid; grid-template-columns: minmax(320px,.9fr) minmax(400px,1.1fr); width: min(980px,100%); min-height: 650px; overflow: hidden; border: 1px solid rgba(9,40,39,.08); border-radius: 28px; background: #fff; box-shadow: 0 30px 90px rgba(9,40,39,.14); }
.auth-brand-panel { display: flex; flex-direction: column; justify-content: space-between; padding: 38px; background: var(--green-950); color: #fff; }
.auth-brand-panel h1 { max-width: 420px; margin: 0; font: 500 clamp(2.4rem,5vw,4.2rem)/1 Georgia,"Times New Roman",serif; letter-spacing: -.045em; }
.auth-brand-panel p:not(.eyebrow) { max-width: 430px; margin: 22px 0 0; color: #b8ceca; font-size: .92rem; line-height: 1.65; }
.auth-brand-panel small { color: #739b96; font-size: .68rem; }
.auth-form-panel { display: grid; place-items: center; padding: 42px clamp(28px,6vw,75px); }
.auth-form-wrap { width: min(390px,100%); }
.auth-kicker { margin: 0 0 7px; color: var(--green-600); font-size: .7rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.auth-form-wrap h2 { margin: 0; font-size: clamp(1.8rem,4vw,2.4rem); letter-spacing: -.045em; }
.auth-subtitle { margin: 10px 0 27px; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.auth-form { display: grid; gap: 16px; }
.auth-submit { width: 100%; min-height: 47px; margin-top: 3px; }
.auth-submit:disabled { cursor: wait; opacity: .68; }
.form-message { min-height: 18px; margin: -5px 0; color: #b64435; font-size: .7rem; line-height: 1.45; }
.form-message.success { color: #287a55; }
.auth-help { padding-top: 20px; margin: 22px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .68rem; line-height: 1.55; }
.auth-link { padding: 0; border: 0; background: transparent; color: var(--green-700); font-weight: 800; }
.auth-link:hover { text-decoration: underline; }
.auth-recovery { margin-top: 18px; }
.row-actions { min-width: 145px; }
.row-actions .row-action + .row-action { margin-left: 12px; }
.operation-dialog { width: min(520px, calc(100% - 24px)); max-height: min(85vh, 760px); padding: 28px; overflow-y: auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.operation-dialog::backdrop { background: rgba(5,27,26,.58); }
.operation-dialog h2 { margin: 0 0 8px; font-size: 1.4rem; }
.operation-dialog p { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.operation-dialog form { display: grid; gap: 15px; }
.operation-dialog .consent-line { margin: 0; }
.operation-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 5px; }
.auth-recovery > p:first-child { margin: 0; }
.auth-loading { display: grid; place-items: center; gap: 14px; color: var(--muted); font-size: .78rem; text-align: center; }
.auth-loading span { width: 32px; height: 32px; border: 3px solid var(--green-100); border-top-color: var(--green-600); border-radius: 50%; animation: auth-spin .8s linear infinite; }
.auth-error { text-align: center; }
.auth-error > span { display: grid; width: 46px; height: 46px; place-items: center; margin: 0 auto 17px; border-radius: 14px; background: var(--orange-soft); color: #b75922; font-weight: 900; }
.auth-error h2 { font-size: 1.4rem; }
.auth-error p { margin: 10px 0 22px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
[hidden] { display: none !important; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

@media (max-width:1080px) { .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .grid-main { grid-template-columns: 1fr; } .entry-hero { grid-template-columns: 1fr 250px; gap: 30px; } .entry-orbit { width: 240px; height: 240px; } .orbit-dot--one { left: 84px; } }
@media (max-width:980px) { .registration-layout { grid-template-columns: 1fr; } .registration-aside { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:760px) {
  .entry-shell { width: min(100% - 24px,1180px); padding-top: 16px; } .entry-hero { display: block; min-height: 0; padding: 46px 25px; border-radius: 23px; } .entry-hero::after { right: -160px; bottom: -165px; width: 300px; height: 300px; opacity: .55; } .entry-orbit { display: none; } .entry-hero h1 { font-size: clamp(2.6rem,13vw,4.2rem); }
  .entry-process { padding: 55px 0; } .entry-steps { grid-template-columns: 1fr; } .entry-step { min-height: 0; } .entry-step h3 { margin-top: 30px; } .entry-access { flex-direction: column; align-items: stretch; padding: 32px 25px; }
  .portal-grid { grid-template-columns: 1fr; } .portal-card { min-height: 170px; padding: 22px; } .entry-footer { display: grid; gap: 9px; }
  .app-shell { display: block; } .sidebar { transform: translateX(-102%); transition: transform .24s; } .sidebar.open { transform: translateX(0); } .sidebar-close,.mobile-menu { display: block; }
  .sidebar-overlay { position: fixed; z-index: 35; inset: 0; background: rgba(5,27,26,.5); } .sidebar-overlay.open { display: block; } .app-main { grid-column: auto; } .topbar { padding: 0 18px; } .breadcrumb { display: none; }
  .content { padding: 27px 16px 42px; } .page-heading { display: grid; align-items: start; } .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .stat-card { padding: 15px; } .stat-value { margin-top: 15px; font-size: 1.65rem; }
  .panel-head { align-items: flex-start; } .table-tools { width: 100%; } .search-box { min-width: 0; width: 100%; } .form-grid { grid-template-columns: 1fr; } .field--full { grid-column: auto; } .hide-mobile { display: none!important; }
  .auth-page { padding: 0; background: #fff; }
  .auth-shell { display: block; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .auth-brand-panel { min-height: 280px; padding: 26px; }
  .auth-brand-panel h1 { max-width: 550px; font-size: 2.5rem; }
  .auth-brand-panel small { display: none; }
  .auth-form-panel { padding: 38px 25px 55px; }
  .registration-aside { grid-template-columns: 1fr; }
}
@media (max-width:470px) { .entry-hero h1 { font-size: clamp(2.35rem,11vw,3.3rem); } .environment-pill { display: none; } .portal-card { grid-template-columns: auto 1fr; } .portal-arrow { display: none; } .stats-grid { grid-template-columns: 1fr; } .heading-actions { width: 100%; } .heading-actions>* { flex: 1; } .top-actions .secondary-btn { display: none; } .panel-head { display: grid; } .registration-actions { flex-direction: column-reverse; } .registration-actions>* { width: 100%; } .rescue-support-actions { grid-template-columns: 1fr; } }
.realtime-status { color: #6d7677; }
.realtime-status--live { color: #0b705c; font-weight: 700; }
