:root{--bg:#071126;--bg2:#0c1d43;--surface:#fff;--surface2:#f6f8ff;--ink:#101833;--muted:#65708e;--line:#e2e7f4;--primary:#6676f6;--primary2:#8c70f2;--danger:#c43d54;--success:#167c5a;--warning:#9b6710;--shadow:0 24px 70px rgba(14,27,65,.16);--radius:22px}*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:#eef2fb}body{margin:0;min-height:100vh}a{color:inherit}.portal-bg{min-height:100vh;background:radial-gradient(circle at 8% 8%,rgba(119,137,255,.21),transparent 25%),radial-gradient(circle at 92% 82%,rgba(105,215,255,.16),transparent 26%),linear-gradient(135deg,var(--bg),var(--bg2));padding:32px;display:grid;place-items:center}.auth-shell{width:min(1080px,100%);display:grid;grid-template-columns:1.08fr .92fr;background:rgba(255,255,255,.98);border-radius:30px;overflow:hidden;box-shadow:0 36px 120px rgba(0,0,0,.36);min-height:680px}.auth-brand-panel{padding:56px;color:#fff;background:radial-gradient(circle at 80% 20%,rgba(129,143,255,.35),transparent 30%),linear-gradient(145deg,#081329,#112d68);position:relative;overflow:hidden}.auth-brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;letter-spacing:.16em;font-weight:800}.auth-brand span{display:grid;place-items:center;width:46px;height:46px;border-radius:16px;background:linear-gradient(135deg,#7282ff,#9a74f5);box-shadow:0 14px 34px rgba(112,130,255,.36);font-size:1.25rem}.auth-brand-panel h1{font-size:clamp(2.6rem,5vw,4.8rem);line-height:.98;letter-spacing:-.055em;margin:86px 0 22px;max-width:540px}.auth-brand-panel h1 em{font-family:Georgia,"Times New Roman",serif;font-weight:400;color:#9aa8ff}.auth-brand-panel p{color:#bac6e3;font-size:1.08rem;line-height:1.75;max-width:520px}.auth-points{display:grid;gap:14px;margin-top:36px}.auth-point{display:flex;align-items:center;gap:12px;color:#eaf0ff}.auth-point i{width:30px;height:30px;border-radius:11px;background:rgba(255,255,255,.1);display:grid;place-items:center;font-style:normal}.auth-form-panel{display:flex;align-items:center;padding:54px}.auth-form{width:100%;max-width:410px;margin:auto}.auth-form .kicker{display:block;color:var(--primary);font-weight:800;text-transform:uppercase;letter-spacing:.12em;font-size:.74rem;margin-bottom:12px}.auth-form h2{font-size:2.25rem;letter-spacing:-.04em;margin:0 0 10px}.auth-form>p{color:var(--muted);line-height:1.65;margin:0 0 30px}.field{display:grid;gap:8px;margin-bottom:18px}.field label{font-weight:750;font-size:.92rem}.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);background:#fbfcff;border-radius:14px;padding:14px 15px;font:inherit;color:var(--ink);outline:none;transition:.2s}.field textarea{min-height:110px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{border-color:#8693fb;box-shadow:0 0 0 4px rgba(102,118,246,.11);background:#fff}.button{border:0;border-radius:14px;padding:14px 18px;font:inherit;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:9px;text-decoration:none;transition:.2s}.button:hover{transform:translateY(-1px)}.button-primary{color:#fff;background:linear-gradient(135deg,var(--primary),var(--primary2));box-shadow:0 14px 30px rgba(102,118,246,.25)}.button-secondary{background:#eef1fb;color:#263052}.button-danger{background:#fff0f3;color:var(--danger)}.button-full{width:100%}.auth-footer{margin-top:24px;text-align:center;color:var(--muted);font-size:.9rem}.auth-footer a{color:var(--primary);font-weight:700}.alert{border-radius:14px;padding:13px 15px;margin-bottom:20px;font-size:.92rem;line-height:1.5;border:1px solid}.alert-error{background:#fff2f4;color:#9f263d;border-color:#facbd4}.alert-success{background:#eefaf5;color:#146448;border-color:#bde7d4}.alert-warning{background:#fff8e9;color:#805512;border-color:#f1d59d}.portal-layout{min-height:100vh;display:grid;grid-template-columns:270px 1fr;background:#f0f3fa}.sidebar{background:#08142d;color:#fff;padding:24px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar-brand{display:flex;align-items:center;gap:11px;text-decoration:none;padding:6px 8px 24px;letter-spacing:.14em;font-weight:850}.sidebar-brand span{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#6f80ff,#9572ee)}.sidebar-nav{display:grid;gap:7px}.sidebar-nav a{display:flex;align-items:center;gap:11px;padding:12px 13px;border-radius:12px;text-decoration:none;color:#aebbd7;font-weight:650}.sidebar-nav a:hover,.sidebar-nav a.active{background:rgba(255,255,255,.09);color:#fff}.sidebar-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.1);padding-top:18px}.user-mini{padding:8px 8px 15px}.user-mini strong,.user-mini small{display:block}.user-mini small{color:#98a6c4;margin-top:4px;overflow:hidden;text-overflow:ellipsis}.main-shell{min-width:0}.topbar{height:76px;background:rgba(255,255,255,.88);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:5;backdrop-filter:blur(12px)}.topbar h1{font-size:1.1rem;margin:0}.topbar-meta{display:flex;align-items:center;gap:12px}.version-pill,.state-pill{padding:7px 11px;border-radius:999px;background:#edf0fa;color:#55617e;font-size:.78rem;font-weight:750}.content{padding:34px;max-width:1380px;width:100%;margin:0 auto}.page-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:26px}.page-heading h2{font-size:2rem;letter-spacing:-.04em;margin:0 0 7px}.page-heading p{margin:0;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 10px 36px rgba(25,39,80,.07);padding:22px}.metric-card span{font-size:.82rem;color:var(--muted);font-weight:700}.metric-card strong{display:block;font-size:2rem;margin-top:12px;letter-spacing:-.04em}.metric-card small{display:block;color:var(--muted);margin-top:8px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin-top:20px;box-shadow:0 10px 36px rgba(25,39,80,.06)}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}.panel-heading h3{margin:0;font-size:1.18rem}.panel-heading p{margin:5px 0 0;color:var(--muted)}.state-options{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.state-option{position:relative}.state-option input{position:absolute;opacity:0;pointer-events:none}.state-option label{display:block;border:1px solid var(--line);border-radius:18px;padding:19px;cursor:pointer;background:#fbfcff;min-height:145px;transition:.2s}.state-option label strong,.state-option label span{display:block}.state-option label span{color:var(--muted);font-size:.9rem;line-height:1.55;margin-top:8px}.state-option input:checked+label{border-color:#7786f8;background:#f2f4ff;box-shadow:0 0 0 4px rgba(102,118,246,.09)}.state-dot{width:13px;height:13px;border-radius:50%;margin-bottom:14px;background:#7c8aff;box-shadow:0 0 0 6px rgba(124,138,255,.12)}.state-option.maintenance .state-dot{background:#e7a438;box-shadow:0 0 0 6px rgba(231,164,56,.13)}.state-option.construction .state-dot{background:#8a69df;box-shadow:0 0 0 6px rgba(138,105,223,.13)}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.data-list{display:grid}.data-row{display:grid;grid-template-columns:1.3fr 1fr auto;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}.data-row:last-child{border-bottom:0}.data-row strong,.data-row span,.data-row small{min-width:0}.data-row span,.data-row small{color:var(--muted)}.app-welcome{background:radial-gradient(circle at 84% 20%,rgba(132,148,255,.28),transparent 24%),linear-gradient(135deg,#0a1733,#173a7b);color:#fff;border:0;overflow:hidden;position:relative}.app-welcome h2{font-size:2.5rem;letter-spacing:-.05em;margin:0 0 12px}.app-welcome p{color:#bbc8e5;max-width:700px;line-height:1.7}.foundation-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:20px}.foundation-item{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);border-radius:17px;padding:18px}.foundation-item strong,.foundation-item span{display:block}.foundation-item span{color:#b9c6e3;font-size:.9rem;margin-top:6px}.empty-module{text-align:center;padding:42px 20px}.empty-module .icon{width:70px;height:70px;border-radius:22px;margin:0 auto 18px;display:grid;place-items:center;background:#eef1ff;color:#6576f4;font-size:1.7rem}.empty-module h3{margin:0 0 9px}.empty-module p{max-width:560px;margin:0 auto;color:var(--muted);line-height:1.65}.install-wrap{min-height:100vh;background:#f0f3fa;padding:34px}.install-shell{width:min(1100px,100%);margin:0 auto}.install-header{display:flex;justify-content:space-between;align-items:center;background:#09152e;color:#fff;padding:22px 26px;border-radius:22px;margin-bottom:20px}.install-header .brand{display:flex;align-items:center;gap:12px;letter-spacing:.13em;font-weight:850}.install-header .brand span{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;background:linear-gradient(135deg,#7081ff,#9672ee)}.install-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.install-section{background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px}.install-section.full{grid-column:1/-1}.install-section h2{margin:0 0 6px;font-size:1.2rem}.install-section>p{margin:0 0 20px;color:var(--muted);line-height:1.55}.field-row{display:grid;grid-template-columns:1fr 120px;gap:12px}.checks{display:grid;gap:10px}.check{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border:1px solid var(--line);border-radius:13px}.check b.ok{color:var(--success)}.check b.bad{color:var(--danger)}.install-actions{display:flex;align-items:center;justify-content:space-between;gap:18px}.help-text{color:var(--muted);font-size:.88rem;line-height:1.55}.error-page{min-height:100vh;display:grid;place-items:center;background:#f1f4fa;padding:24px}.error-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:40px;text-align:center;max-width:560px;box-shadow:var(--shadow)}.error-card strong{font-size:5rem;color:#7b88ef}.error-card h1{margin:8px 0}.error-card p{color:var(--muted);line-height:1.65}@media(max-width:1000px){.auth-shell{grid-template-columns:1fr;max-width:620px}.auth-brand-panel{display:none}.portal-layout{grid-template-columns:1fr}.sidebar{position:static;height:auto;display:block}.sidebar-nav{grid-template-columns:repeat(4,1fr)}.sidebar-bottom{margin-top:16px}.cards{grid-template-columns:repeat(2,1fr)}.state-options{grid-template-columns:1fr}.install-grid{grid-template-columns:1fr}.install-section.full{grid-column:auto}}@media(max-width:650px){.portal-bg,.install-wrap{padding:14px}.auth-form-panel{padding:34px 24px}.sidebar-nav{grid-template-columns:1fr 1fr}.topbar{padding:0 18px}.content{padding:22px 16px}.cards,.foundation-grid{grid-template-columns:1fr}.page-heading{align-items:flex-start;flex-direction:column}.state-options{grid-template-columns:1fr}.data-row{grid-template-columns:1fr}.install-header{align-items:flex-start;flex-direction:column;gap:12px}.field-row{grid-template-columns:1fr}.install-actions{align-items:stretch;flex-direction:column}.install-actions .button{width:100%}}

/* ROTINA 3.0.0-beta.5.4 — fundação, acessos e dados pessoais */
.sidebar-nav a{position:relative}.sidebar-nav a b{margin-left:auto;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#7b89ff;color:#fff;display:grid;place-items:center;font-size:.74rem}.metric-label{font-size:1.28rem!important}.update-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;margin-bottom:22px;border-radius:18px;background:linear-gradient(135deg,#fff6df,#fffaf0);border:1px solid #f0d59b}.update-banner div{display:grid;gap:4px}.update-banner span{color:#7f5a17;font-size:.92rem}.registration-options .state-option.invitation .state-dot{background:#806cf0;box-shadow:0 0 0 6px rgba(128,108,240,.13)}.registration-options .state-option.closed .state-dot{background:#d26378;box-shadow:0 0 0 6px rgba(210,99,120,.13)}.filter-bar{display:grid;grid-template-columns:minmax(220px,1fr) 220px 220px auto;gap:14px;align-items:end}.filter-bar .field{margin:0}.user-metrics{margin-bottom:20px}.table-wrap{width:100%;overflow:auto}.admin-table{width:100%;border-collapse:collapse;min-width:880px}.admin-table th{text-align:left;font-size:.74rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);padding:12px 14px;border-bottom:1px solid var(--line);white-space:nowrap}.admin-table td{padding:15px 14px;border-bottom:1px solid var(--line);vertical-align:middle}.admin-table tbody tr:hover{background:#fafbff}.admin-table tbody tr:last-child td{border-bottom:0}.identity-cell{display:flex;align-items:center;gap:12px;min-width:230px}.identity-cell>span{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#eef1ff,#e4e9ff);color:#5e6fdd;font-weight:850}.identity-cell strong,.identity-cell small{display:block}.identity-cell small,.block-muted{display:block;color:var(--muted);font-size:.82rem;margin-top:4px}.source-label{font-size:.9rem}.status-badge{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:7px 10px;font-size:.78rem;font-weight:800;white-space:nowrap;background:#edf0f7;color:#59627a}.status-badge.large{padding:10px 14px;font-size:.86rem}.status-badge.status-pending{background:#fff5dc;color:#8b5a08}.status-badge.status-active,.status-badge.invitation-active{background:#e9f8f1;color:#167050}.status-badge.status-suspended{background:#fff0e8;color:#a64d19}.status-badge.status-rejected,.status-badge.status-disabled,.status-badge.invitation-revoked{background:#fff0f3;color:#a5334a}.status-badge.invitation-expired,.status-badge.invitation-exhausted{background:#eff1f6;color:#5b6478}.table-action{border:0;background:#eef1ff;color:#5263d8;font-weight:800;text-decoration:none;padding:9px 12px;border-radius:11px;cursor:pointer;font:inherit;font-size:.84rem;white-space:nowrap}.table-action.danger{background:#fff0f3;color:#a5334a}.muted-dash{color:var(--muted)}.empty-state{text-align:center;padding:46px 20px}.empty-state.compact{padding:30px 20px}.empty-state .icon{width:64px;height:64px;border-radius:20px;margin:0 auto 16px;display:grid;place-items:center;background:#eef1ff;color:#6373e6;font-size:1.45rem}.empty-state h3{margin:0 0 8px}.empty-state p{margin:0;color:var(--muted)}.back-link{display:inline-flex;color:#6574df;text-decoration:none;font-weight:750;margin-bottom:12px}.detail-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:20px}.detail-grid .panel{margin-top:0}.detail-list{display:grid;grid-template-columns:1fr 1fr;margin:0}.detail-list>div{padding:16px 0;border-bottom:1px solid var(--line)}.detail-list>div:nth-child(odd){padding-right:20px}.detail-list>div:nth-child(even){padding-left:20px;border-left:1px solid var(--line)}.detail-list>div.full{grid-column:1/-1;padding-left:0;border-left:0}.detail-list dt{font-size:.78rem;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;font-weight:800;margin-bottom:7px}.detail-list dd{margin:0;font-weight:750}.detail-list dd small{display:block;color:var(--muted);font-weight:500;margin-top:5px}.detail-actions{display:grid;gap:20px}.action-card h3{margin:0 0 7px}.action-card>p{color:var(--muted);font-size:.9rem;line-height:1.55;margin:0 0 18px}.split-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.split-grid>.panel{margin-top:0}.field-row.equal{grid-template-columns:1fr 1fr}.invitation-help{background:linear-gradient(145deg,#0c1935,#173b7a);color:#fff;border:0}.invitation-help .panel-heading p{color:#b8c5e1}.flow-list{display:grid;gap:14px}.flow-list>div{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid rgba(255,255,255,.1)}.flow-list>div:last-child{border:0}.flow-list span{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.11);font-weight:850}.flow-list p{margin:0;color:#e4eaff}.security-note{margin-top:18px;padding:16px;border-radius:16px;background:rgba(255,255,255,.08);display:grid;gap:5px}.security-note span{color:#b9c6e3;font-size:.88rem;line-height:1.5}.created-invite{margin-bottom:20px;padding:22px;border-radius:22px;background:linear-gradient(135deg,#eef2ff,#f7f4ff);border:1px solid #d9def8;display:grid;grid-template-columns:1fr 1.2fr;gap:24px;align-items:center}.created-invite>div:first-child>span{color:#6877df;font-size:.78rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}.created-invite h3{margin:7px 0}.created-invite p{margin:0;color:var(--muted);line-height:1.55}.copy-field{display:flex;gap:10px}.copy-field input{min-width:0;flex:1;border:1px solid #ccd3f4;border-radius:14px;padding:13px;background:#fff;color:#263052}.check-consent{display:flex;align-items:flex-start;gap:11px;margin:4px 0 20px;color:#4e5870;font-size:.9rem;line-height:1.5;cursor:pointer}.check-consent input{margin-top:4px;width:17px;height:17px}.invite-summary{border:1px solid #dbe1ff;background:#f3f5ff;border-radius:16px;padding:15px;margin-bottom:18px;display:grid;gap:4px}.invite-summary span{color:#6574df;text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;font-weight:850}.invite-summary small{color:var(--muted)}.auth-divider{display:flex;align-items:center;gap:12px;margin:22px 0 16px;color:var(--muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.08em}.auth-divider:before,.auth-divider:after{content:"";height:1px;background:var(--line);flex:1}.auth-mode-note{text-align:center;color:var(--muted);font-size:.88rem;line-height:1.5;margin:16px 0 0}.register-shell{max-width:1120px}.register-panel{padding-block:38px}.auth-kicker{display:inline-flex;margin-top:80px;color:#9daaff;font-size:.76rem;font-weight:850;text-transform:uppercase;letter-spacing:.12em}.result-shell{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 20%,rgba(112,130,255,.18),transparent 25%),#f0f3fa;padding:24px}.result-card{width:min(640px,100%);background:#fff;border:1px solid var(--line);border-radius:28px;padding:42px;text-align:center;box-shadow:0 26px 70px rgba(25,39,80,.12)}.result-icon{width:76px;height:76px;border-radius:24px;margin:0 auto 20px;display:grid;place-items:center;background:linear-gradient(135deg,#6677f6,#8f72e9);color:#fff;font-size:2rem}.result-card .kicker{color:#6676e8;text-transform:uppercase;letter-spacing:.1em;font-weight:850;font-size:.76rem}.result-card h1{font-size:2.25rem;letter-spacing:-.04em;margin:12px 0}.result-card p{color:var(--muted);line-height:1.7}.result-actions{display:flex;justify-content:center;gap:10px;margin:24px 0}.result-card>small{color:var(--muted)}.migration-list{list-style:none;padding:0;margin:0 0 24px;display:grid;gap:10px}.migration-list li{display:flex;align-items:center;gap:12px;padding:13px 15px;border:1px solid var(--line);border-radius:14px;background:#fbfcff}.migration-list li span{font-size:.7rem;font-weight:850;color:#6877df;background:#eef1ff;border-radius:8px;padding:6px}.migration-list code{font-size:.9rem;color:#35405e}.button:disabled{opacity:.55;cursor:not-allowed;transform:none!important}
@media(max-width:1100px){.filter-bar{grid-template-columns:1fr 1fr}.filter-bar .button{align-self:end}.detail-grid,.split-grid,.created-invite{grid-template-columns:1fr}.cards.user-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.filter-bar,.cards.user-metrics,.detail-list{grid-template-columns:1fr}.detail-list>div,.detail-list>div:nth-child(odd),.detail-list>div:nth-child(even){padding:14px 0;border-left:0}.field-row.equal{grid-template-columns:1fr}.copy-field,.result-actions{flex-direction:column}.created-invite{padding:18px}.update-banner{align-items:stretch;flex-direction:column}.update-banner .button{width:100%}}
