@font-face{font-family:Poppins;src:url('/assets/fonts/Poppins-SemiBold.ttf') format('truetype');font-weight:600 800;font-display:swap}
/* Brand tokens derived from the middle logo supplied by Futura. */
:root{--bg:#f5f7f4;--ink:#192d25;--muted:#68766e;--soft:#899589;--brand:#6d9d3a;--accent:#c6f49a;--deep:#142d25;--primary:#315c35;--line:#e1e8df;--surface:#f0f5eb;--danger:#b44042;--success:#3a713f;--radius:20px;--shadow:0 4px 24px #182e2510;--shadow-float:0 24px 80px #10221926}
html{color-scheme:light}body{-webkit-font-smoothing:antialiased;line-height:1.6}
h1,h2,h3{letter-spacing:-.035em;line-height:1.15}h1{font-size:36px}h3{letter-spacing:-.015em}
.eyebrow,.section-label{font-size:10px;font-weight:600;letter-spacing:.16em}
.brand{display:flex;flex-direction:column;align-items:flex-start;gap:12px;flex-shrink:0}
.brand img{display:block;width:164px;height:auto}
.brand-product{color:#a7b8aa;font-size:9px;letter-spacing:.2em;text-transform:uppercase}
.loading{min-height:100dvh;color:var(--muted)}.loading-brand{background:var(--deep);padding:32px;border-radius:24px}.loading-brand img{display:block}
.btn{min-height:48px;font-size:12px;gap:12px;border-radius:12px;transition:background .2s,color .2s,box-shadow .2s,transform .2s}
.btn:hover{background:var(--surface);border-color:#bdceba}.btn:disabled{opacity:.55}
.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:0 4px 12px #254e2320}
.btn.primary:hover{background:#244a29;box-shadow:0 8px 20px #254e2328}
.btn.compact{font-size:11px;border-radius:8px;gap:8px}.btn.compact .icon{width:16px;height:16px}
.btn.text{box-shadow:none}button:focus-visible,a:focus-visible{outline-color:var(--brand)}
.signal-dot,.dot{display:inline-block;width:6px;height:6px;border-radius:50%;flex-shrink:0;background:var(--brand)}
.environment{font-size:10px;border-color:#dbe4d3;background:#f0f5e9;color:#556a40;line-height:1.5}.environment .dot{width:6px;height:6px;background:var(--brand)}

/* Sign-in */
.auth{min-height:100dvh;grid-template-columns:1.08fr 1fr;padding:20px;gap:20px;max-width:1920px;margin:auto}
.auth-story{isolation:isolate;position:relative;overflow:hidden;border:0;border-radius:28px;min-height:740px;background:radial-gradient(ellipse at 100% 58%,#55804855,transparent 54%),linear-gradient(145deg,#183a2e,#0d221b 72%);color:white;padding:36px 48px;justify-content:flex-start}
.auth-story::before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(#daf5c60a 1px,transparent 1px),linear-gradient(90deg,#daf5c60a 1px,transparent 1px);background-size:56px 56px;mask-image:linear-gradient(120deg,transparent 20%,#000);pointer-events:none}
.auth-brand-row{display:flex;justify-content:space-between;align-items:center;gap:20px}.auth-brand-row .brand img{width:152px}.auth-brand-row .brand-product{display:none}
.portal-label{font-size:9px;letter-spacing:.16em;color:#c4d0c7;border:1px solid #b9d6ae30;border-radius:8px;padding:8px 12px;white-space:nowrap}
.auth-message{position:relative;z-index:2;margin-top:48px}.auth-message .eyebrow{display:flex;align-items:center;gap:8px;color:#bed4bd;font-size:9px;letter-spacing:.12em}.auth-message .signal-dot{background:var(--accent);box-shadow:0 0 12px #c6f49a80}
.auth-story h1{font-size:clamp(44px,4.5vw,72px);line-height:1.04;letter-spacing:-.05em;margin:16px 0 24px}.auth-story h1 span{color:var(--accent)}
.auth-story .intro{max-width:380px;color:#b9c9bd;font-size:13px;line-height:1.8}
.auth-visual{position:relative;flex:1;min-height:268px;width:100%;margin:8px 0 28px;display:grid;place-items:center;isolation:isolate}
.orbit{position:absolute;width:320px;height:180px;border:1px solid #b3e08d26;border-radius:50%;transform:rotate(-25deg);z-index:-1}.orbit-two{width:420px;height:252px;border-color:#b3e08d18}.orbit-three{width:520px;height:324px;border-color:#b3e08d0d}
.visual-note{width:216px;padding:20px;border:1px solid #c6f49a50;border-radius:16px;background:linear-gradient(125deg,#ffffff15,#ffffff05);box-shadow:inset 0 1px 0 #ffffff16,0 20px 64px #0004;backdrop-filter:blur(12px);transform:rotate(-7deg);animation:float-note 8s ease-in-out infinite}
.visual-note-top{display:flex;justify-content:space-between;align-items:center;color:#bbd2b9;font-size:7px;letter-spacing:.15em}.visual-note-top .icon{width:16px;height:16px;color:var(--accent)}
.visual-note strong{font-family:Roboto,sans-serif;letter-spacing:-.05em;font-size:40px;display:flex;justify-content:space-between;margin:12px 0;color:white}.visual-note strong span{font-size:28px;color:var(--accent);font-weight:400}
.paper-lines{display:grid;gap:7px;margin-bottom:24px}.paper-lines i{height:3px;border-radius:4px;width:100%;background:#d8eac025}.paper-lines i:nth-child(2){width:78%}.paper-lines i:last-child{width:54%}
.visual-note-bottom{border-top:1px solid #bed7ad25;padding-top:12px;display:flex;align-items:center;gap:8px;font-size:8px;color:#c2d7be}.visual-note-bottom .icon{width:12px;height:12px;color:var(--accent)}
.visual-node{position:absolute;display:grid;place-items:center;width:48px;height:48px;border-radius:14px;border:1px solid #b6dc9d40;background:#274a36;box-shadow:0 12px 36px #0002;color:var(--accent)}.node-shield{top:16px;right:12%;transform:rotate(8deg)}.node-connect{bottom:36px;left:8%;transform:rotate(-8deg)}
.visual-caption{position:absolute;right:0;bottom:0;display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:.04em;color:#b4c5b6}.visual-caption .signal-dot{width:4px;height:4px;background:var(--accent)}
.auth-story-footer{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #acc79b24;padding-top:20px;font-size:9px;color:#9daf9f}.auth-story-footer span:last-child{display:flex;align-items:center;gap:12px}.auth-story-footer .icon{width:16px;height:16px;color:var(--accent)}
.auth-panel{padding:56px 48px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;background:var(--bg)}
.auth-form{max-width:384px;margin:auto}.form-emblem{display:grid;place-items:center;width:48px;height:48px;background:#e9f0e3;border:1px solid #dbe6d2;color:var(--primary);border-radius:14px;margin-bottom:32px}
.auth-form .eyebrow{color:#64804d;font-size:10px;margin-bottom:12px}.auth-form h2{font-size:36px;letter-spacing:-.045em}.auth-form>.muted{font-size:12px;max-width:340px;line-height:1.8}
.auth-form .btn.primary{min-height:52px;justify-content:space-between;font-size:13px}
.auth-assurance{display:flex;justify-content:center;align-items:center;gap:8px;margin:20px 0 32px;color:var(--muted);font-size:10px}.auth-assurance .icon{width:14px;height:14px;color:#789561}
.auth-form footer{margin-top:0;font-size:10px;line-height:1.8}.auth-form footer p{margin-bottom:16px}
.auth-panel-footer{width:100%;display:flex;justify-content:space-between;gap:16px;font-size:9px;color:var(--muted);margin-top:48px}.auth-panel-footer span:first-child{letter-spacing:.16em;font-weight:600}

/* Shared inputs */
label{color:#344c3d;font-size:11px}input,select,textarea{border-color:#d9e2d4;border-radius:10px;transition:border-color .2s,box-shadow .2s}
input:focus,select:focus,textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px #6d9d3a16}input::placeholder,textarea::placeholder{font-size:12px}input[type=checkbox]{accent-color:var(--primary)}
.field small{font-size:10px}.form-error{padding:8px 0;min-height:20px}
input[type=file]::file-selector-button{font:500 11px Poppins,sans-serif;background:#fff;border:1px solid #d4e2c7;color:var(--primary);border-radius:8px;padding:8px 12px;margin-right:12px;cursor:pointer}

/* Workspace */
.shell{grid-template-columns:244px minmax(0,1fr);min-height:100dvh}
.sidebar{padding:32px 20px 24px;height:100dvh;border:0;background:radial-gradient(ellipse at 0 100%,#395c3240,transparent 65%),var(--deep);color:#e8f1e4}
.sidebar .brand{padding:0 12px 36px}.sidebar .brand img{width:160px}.nav-label{font-size:9px;letter-spacing:.18em;text-transform:uppercase;color:#90aa97;margin:0 16px 16px}
.nav-item{position:relative;min-height:48px;border:1px solid transparent;color:#b7c8bb;font-size:12px;line-height:1.4}.nav-item .icon{width:18px;height:18px;color:#91ac98}
.nav-item:hover{background:#ffffff09;color:white;border-color:#ffffff12}.nav-item.active{background:var(--accent);color:#203d29;font-weight:600;box-shadow:0 8px 24px #00000012}.nav-item.active .icon{color:#345a35}.nav-indicator{margin-left:auto;width:4px;height:4px;border-radius:50%;background:#456b35}
.sidebar-bottom{border-top-color:#ffffff12;padding:24px 12px 0}.sidebar-bottom .environment{background:#ffffff08;border-color:#c7dcb52a;color:#c1d2b5}.sidebar-bottom .dot{background:var(--accent)}.sidebar-bottom p{font-size:10px;margin:12px 0 20px;color:#a2b5a7;line-height:1.7}.sidebar-bottom .btn{color:#c9d7ca;font-size:11px;padding:8px 0}.sidebar-bottom .btn:hover{color:var(--accent);background:transparent}
.topbar{height:88px;background:#ffffffb8;backdrop-filter:blur(16px)}.company-select{max-width:440px}.company-select select{background:transparent;max-width:320px;font-size:12px;box-shadow:none;white-space:nowrap;text-overflow:ellipsis}
.company-select>.icon{color:var(--primary);background:var(--surface);box-sizing:content-box;padding:10px;border-radius:12px;width:16px;height:16px}
.user-name{font-size:10px;line-height:1.6}.user-name>.muted{font-size:9px}.user-initial{background:#edf3e6;border-color:#d8e4cf;width:36px;height:36px;font-weight:600;color:var(--primary);font-size:12px}
.top-status{display:flex;align-items:center;gap:8px;font-size:9px;color:#657653;margin-right:12px;border-right:1px solid var(--line);padding-right:24px}.top-status .dot{width:5px;height:5px}.user-menu>.btn{color:var(--muted);min-height:36px}.user-menu>.btn .icon{width:16px;height:16px}
.content{max-width:1480px;padding:36px 40px 28px}.page-header{margin-bottom:28px}.page-header p{font-size:12px}.page-header .eyebrow{font-size:9px;margin-bottom:8px;color:#72836f}.page-header h1{font-size:32px}
.notice{padding:12px 16px;border-color:#dfe7d9;background:#edf3e7;font-size:10px;line-height:1.7;margin-bottom:24px;color:#576d45}.notice .icon{color:#6c8953;width:16px;height:16px}
.overview-banner{position:relative;isolation:isolate;overflow:hidden;display:flex;justify-content:space-between;align-items:center;gap:32px;border-radius:20px;padding:32px 40px;margin-bottom:16px;color:white;background:radial-gradient(ellipse at 78% 130%,#729b4655,transparent 65%),linear-gradient(120deg,#1e4030,#102b22)}
.overview-banner .eyebrow{color:#b4c8ac;font-size:8px;letter-spacing:.16em;margin-bottom:16px}.overview-banner h2{font-size:32px;letter-spacing:-.04em}.overview-banner p:last-child{color:#aec3b0;font-size:11px;margin:0}
.banner-flow{display:flex;align-items:center;margin-right:12px;gap:12px;position:relative;z-index:1}.banner-flow span{width:56px;height:64px;border-radius:12px;border:1px solid #c6f49a40;background:#c6f49a0c;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;backdrop-filter:blur(8px)}.banner-flow .icon{color:var(--accent);width:20px;height:20px}.banner-flow small{font-size:8px;color:#d4e5cc}.banner-flow i{width:20px;height:1px;background:#bddca856}
.banner-orbit{position:absolute;right:-44px;top:-80px;width:420px;height:360px;border:1px solid #c6f49a18;border-radius:50%;transform:rotate(-30deg);z-index:-1;box-shadow:0 0 0 36px #c6f49a05,0 0 0 72px #c6f49a04}
.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:28px}.stat{border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:0 2px 4px #1c352603;transition:box-shadow .2s}.stat:hover{box-shadow:var(--shadow)}
.stat-top{align-items:center;gap:8px;font-size:10px;line-height:1.4}.stat-top .icon{width:16px;height:16px;color:#789762;background:#f1f5ed;padding:8px;box-sizing:content-box;border-radius:10px}.stat-value{font:600 32px/1.2 Poppins,sans-serif;letter-spacing:-.06em}.stat .small{font-size:9px}.stat:first-child .stat-value{color:var(--primary)}
.card{padding:28px;box-shadow:0 2px 4px #1c352603}.card-header h2{font-size:20px;letter-spacing:-.025em}.card-header .eyebrow{font-size:8px;margin-bottom:8px;color:#718567}.two-col>.card{margin-bottom:0}.section-kicker{font-size:9px;color:#79896f;letter-spacing:.12em}
.step-number{background:#f3f6f0;color:#718666;border-radius:10px;font-size:11px}.step p{font-size:10px;line-height:1.7}.step strong{font-size:12px}.step.done .step-number{border-color:#d1e2c5;background:#eaf3e3}.step .icon{width:16px;height:16px}
.certificate-feature{position:relative;overflow:hidden;background:linear-gradient(140deg,#edf3e4,#f9fbf6);border-color:#dbe6cf}.certificate-feature::after{content:"";position:absolute;right:-56px;top:-48px;width:200px;height:200px;border:1px solid #b7cea450;border-radius:50%;box-shadow:0 0 0 24px #b7cea416;pointer-events:none}.feature-symbol{width:40px;height:40px;background:#dfeccc;border-radius:12px;display:grid;place-items:center;margin-bottom:24px;color:#587943}.certificate-feature h2{font-size:28px}.certificate-feature>.muted{max-width:300px;line-height:1.8;font-size:11px}.certificate-feature>.btn{background:#ffffffb3;font-size:11px}.certificate-feature .eyebrow{font-size:8px;color:#63804f}
.setup-empty{min-height:calc(100dvh - 224px);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:48px 24px;border:1px solid var(--line);border-radius:24px;background:radial-gradient(ellipse at 50% 20%,#e8f3de80,transparent 56%),white}
.setup-art{position:relative;isolation:isolate;display:grid;place-items:center;width:96px;height:96px;border:1px solid #d4e5c4;border-radius:28px;background:linear-gradient(145deg,#e4f2d5,#f6fbef);margin-bottom:40px;box-shadow:0 8px 32px #9bc37a22}.setup-art>.icon{width:36px;height:36px;color:#6b914c}.setup-ring{position:absolute;inset:-24px;border:1px solid #d9e9cc;border-radius:50%;z-index:-1;transform:rotate(-24deg) scaleX(1.4)}
.setup-empty h1{font-size:40px;margin-bottom:20px}.setup-empty>.muted{max-width:400px;font-size:12px;line-height:1.8;margin-bottom:28px}.setup-capabilities{display:flex;gap:32px;margin-top:48px;color:#6b805f;font-size:10px}.setup-capabilities span{display:flex;align-items:center;gap:8px}.setup-capabilities .icon{width:16px;height:16px}

/* Operational screens */
table{font-size:11px}th{font-size:9px;text-transform:uppercase;letter-spacing:.06em;color:#6d7d66;background:#fafcf8}td{padding:20px 16px;border-bottom-color:#edf1e9}tbody tr{transition:background .2s}tbody tr:hover{background:#fbfdf9}td strong{font-size:12px}td small{font-size:10px}.amount{font-weight:500}
.badge{display:inline-flex;align-items:center;gap:6px;border:1px solid #e1e7dc;font-size:9px;background:#f4f6f1;color:#6b7763}.badge::before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}.badge.success{background:#ecf5e7;border-color:#d6e9cb;color:#4b733d}.badge.warning{background:#f9f5e7;border-color:#eee4bc;color:#8a7230}.badge.danger{background:#fbeeee;border-color:#edcece}
.empty>.icon{width:32px;height:32px;box-sizing:content-box;padding:20px;border:1px solid #dfead7;background:linear-gradient(135deg,#f3f9ed,#e9f1e1);border-radius:24px;margin-bottom:24px;color:#7c9a67}.empty h3{letter-spacing:-.025em}.empty p{max-width:368px;font-size:11px;line-height:1.8}
.toolbar{margin-bottom:24px;align-items:center}.toolbar input{min-height:44px;background:#f9fbf6;font-size:12px}
.cert-symbol{background:linear-gradient(130deg,#eef6e6,#e1edce);border-color:#d4e3c4;border-radius:20px}.cert-symbol .icon{width:28px;height:28px;color:#66834d}.detail-list{gap:20px;margin:28px 0}.detail-list>div{border-bottom:1px solid #edf1e9;padding-bottom:16px}.fingerprint{font-size:11px;padding:16px;border:1px solid var(--line);border-radius:10px}.form-section h3{color:var(--primary)}
.form-actions{align-items:center;padding-top:12px}.page-footer{font-size:9px;color:#74836d;margin-top:28px}.footer-divider{padding:0 8px;color:#afbea6}
dialog{border-radius:24px;max-height:90dvh;box-shadow:var(--shadow-float);color:var(--ink)}dialog::backdrop{background:#0c20198c;backdrop-filter:blur(4px)}dialog .close{color:var(--muted)}.modal-heading{margin-bottom:28px}.modal-heading h2{font-size:28px}.modal-heading p{font-size:11px;line-height:1.8}
#toast{background:var(--deep);border:1px solid #b1d48b40;color:#eff7e9;box-shadow:var(--shadow-float)}#toast.show{animation:toast-enter .2s ease-out}.content,.auth-form{animation:enter .35s ease-out}
@keyframes toast-enter{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}@keyframes float-note{0%,100%{transform:translateY(0) rotate(-7deg)}50%{transform:translateY(-8px) rotate(-4deg)}}

@media(min-width:1600px){.auth-story{padding:48px 64px}.auth-message{margin-top:64px}.auth-visual{min-height:320px}.visual-note{width:240px;padding:24px}.auth-form{max-width:408px}}
@media(max-width:1200px){.topbar{padding:20px 28px}.content{padding:28px}.shell{grid-template-columns:216px minmax(0,1fr)}.sidebar{padding:28px 12px}.sidebar .brand{padding-left:16px}.sidebar .brand img{width:148px}.top-status{display:none}.stats{gap:12px}.stat{padding:16px}.stat-value{font-size:28px}.overview-banner{padding:28px}.banner-flow{gap:8px;margin:0}.banner-flow i{width:12px}.auth-story{padding:32px;min-height:720px}.auth-message{margin-top:40px}.portal-label{display:none}.auth-panel{padding:40px 32px 20px}.auth-story h1{font-size:52px}}
@media(max-width:1024px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col{grid-template-columns:1fr}.auth-story h1{font-size:44px}.auth-story .intro{font-size:12px}.auth-panel{padding:40px 24px 20px}.auth-form h2{font-size:32px}.auth-visual{min-height:248px}.visual-node{width:40px;height:40px}.node-connect{left:0}.node-shield{right:0}.overview-banner{gap:20px}.overview-banner h2{font-size:28px}.banner-flow span{width:44px}.user-name{display:none}.company-select select{max-width:280px}.auth-panel-footer{font-size:8px;gap:8px}.setup-capabilities{gap:16px}}
@media(max-width:768px){
 .auth{grid-template-columns:1fr;padding:12px;gap:0}.auth-story{min-height:0;padding:20px 24px;border-radius:20px;display:block}.auth-brand-row{align-items:center}.auth-brand-row .brand img{width:124px}.portal-label{display:block;font-size:8px;padding:6px 8px}.auth-message,.auth-visual,.auth-story-footer{display:none}.auth-panel{padding:40px 20px 12px;min-height:calc(100dvh - 136px)}.auth-form{max-width:420px}.form-emblem{width:40px;height:40px;border-radius:12px;margin-bottom:24px}.auth-form h2{font-size:32px}.auth-form footer{padding-top:20px}.auth-panel-footer{font-size:8px;margin-top:36px}
 .shell{display:block}.sidebar{position:static;height:auto;padding:20px 16px 12px;border:0;border-radius:0 0 20px 20px}.sidebar .brand{padding:0 8px 20px;flex-direction:row;justify-content:space-between;align-items:center}.sidebar .brand img{width:116px}.sidebar .brand-product{font-size:8px;color:#adc1ab}.nav-label,.sidebar-bottom{display:none}.sidebar nav{padding-bottom:4px;scrollbar-width:thin;scrollbar-color:#537452 transparent}.nav-item{font-size:10px;padding:12px;min-height:40px;border-radius:10px;flex-shrink:0;gap:8px}.nav-item .icon{width:16px;height:16px}.nav-indicator{display:none}
 .topbar{height:auto;padding:16px 20px;gap:12px;background:transparent;backdrop-filter:none}.user-menu{gap:8px}.user-initial{width:32px;height:32px;font-size:11px;border-radius:10px}.user-menu>.btn{padding:4px;min-height:32px}.company-select{gap:8px;flex:1}.company-select select{max-width:100%;width:100%;min-width:0;font-size:11px;min-height:36px;padding:4px 0}.company-select>.icon{width:14px;height:14px;padding:8px}
 .content{padding:24px 20px}.page-header{gap:16px;margin-bottom:24px}.page-header h1{font-size:28px}.page-header>div{min-width:0}.page-header p{font-size:10px}.page-header .eyebrow{font-size:8px}.page-header>.btn{font-size:10px;padding:10px 12px;gap:6px;min-height:40px;white-space:nowrap}.page-header>.btn .icon{width:14px;height:14px}
 .overview-banner{padding:24px;display:block;border-radius:16px}.overview-banner h2{font-size:28px}.overview-banner .eyebrow{font-size:8px}.overview-banner p:last-child{font-size:10px}.banner-flow{margin-top:24px;gap:12px}.banner-flow span{width:48px;height:52px;flex-direction:row;gap:4px;flex:1}.banner-flow .icon{width:16px;height:16px}.banner-flow small{font-size:8px}.banner-flow i{width:16px;flex-shrink:0}.banner-orbit{right:-120px;top:-40px}
 .notice{font-size:10px;align-items:flex-start;padding:12px;gap:8px;border-radius:10px;margin-bottom:20px}.notice .icon{margin-top:2px}.stats{gap:12px;margin-bottom:24px}.stat{padding:16px;border-radius:14px}.stat-top{font-size:10px;align-items:flex-start}.stat-top .icon{width:14px;height:14px;padding:6px;border-radius:8px}.stat-value{font-size:24px;margin:12px 0 8px}.card{padding:20px;border-radius:16px}.card-header{gap:12px;margin-bottom:20px}.card-header h2{font-size:18px}.card-header .btn{font-size:10px;gap:6px}.card-header .btn .icon{width:16px;height:16px}
 .two-col{gap:20px}.form-actions{gap:8px;flex-wrap:wrap}.form-actions .btn{flex-grow:1}.toolbar{gap:8px}.toolbar input{flex:1;min-width:160px;font-size:11px}.toolbar>.btn{font-size:10px;min-height:44px;padding:10px 12px}.page-footer{font-size:8px;margin-top:24px}.page-footer>span{display:block;margin-top:8px}td,th{padding:12px}.empty{padding:36px 12px}.empty h3{font-size:18px}.empty>.icon{padding:16px;width:28px;height:28px;border-radius:20px}
 .cert-preview{gap:16px}.cert-preview h2{font-size:22px}.cert-symbol{width:52px;height:52px;border-radius:16px}.cert-symbol .icon{width:24px;height:24px}.setup-empty{min-height:calc(100dvh - 308px);padding:48px 20px;border-radius:20px}.setup-empty h1{font-size:32px}.setup-art{width:72px;height:72px;border-radius:20px;margin-bottom:36px}.setup-art>.icon{width:28px;height:28px}.setup-ring{inset:-16px}.setup-capabilities{flex-direction:column;gap:12px;margin-top:32px;align-items:center}.setup-empty>.muted{font-size:11px}dialog{padding:24px;border-radius:20px}.modal-heading h2{font-size:24px}
}
@media(max-width:380px){.content{padding:20px 16px}.topbar{padding:12px 16px}.stat-top .icon{display:none}.page-header{gap:8px}.page-header h1{font-size:24px}.page-header>.btn{font-size:9px;padding:8px}.portal-label{font-size:7px}.auth-panel{padding:32px 16px 12px}.auth-form h2{font-size:28px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.cnpj-search{display:flex;gap:8px}.cnpj-search input{flex:1;min-width:0}.cnpj-search .btn{flex-shrink:0;color:var(--primary);background:var(--surface);padding:12px 16px}
.cnpj-status{font-size:11px;line-height:1.7;color:var(--muted);margin:8px 0 4px}.cnpj-status[data-state=success]{color:var(--success)}.cnpj-status[data-state=error]{color:var(--danger)}
#cnpj-source{font-size:10px;line-height:1.7}#cnpj-source a{color:var(--primary);text-underline-offset:3px}
.cnpj-details{padding:16px;margin-bottom:20px;border:1px solid var(--line);background:#f8faf6;border-radius:12px;font-size:11px;overflow-wrap:anywhere}.cnpj-details[hidden]{display:none}.cnpj-summary{display:flex;justify-content:space-between;gap:12px;font-weight:600;color:var(--primary)}
.cnpj-details summary{cursor:pointer;margin-top:12px;color:var(--muted)}.cnpj-details dl{display:grid;gap:12px;margin:16px 0 0}.cnpj-details dt{color:var(--muted);font-size:10px}.cnpj-details dd{margin:4px 0 0;line-height:1.7}.cnpj-warning{color:var(--danger);border-top:1px solid var(--line);padding-top:12px;margin-bottom:0;line-height:1.7}

.invoice-page{max-width:1320px;margin:0 auto}.invoice-layout{display:grid;grid-template-columns:minmax(0,1fr) 272px;gap:24px;align-items:start}.invoice-sections{display:grid;gap:24px;min-width:0}.invoice-section{padding:32px}.invoice-section-title{display:flex;gap:16px;align-items:flex-start;margin-bottom:28px}.invoice-section-title>span{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:12px;background:var(--surface);color:var(--primary);font-weight:600;font-size:12px}.invoice-section-title h2{font-size:24px;margin:0 0 8px}.invoice-section-title p{font-size:11px;color:var(--muted);margin:0}.invoice-section .form-grid{column-gap:20px}.invoice-section textarea{min-height:112px}.invoice-summary{position:sticky;top:24px;padding:24px;overflow-wrap:anywhere}.invoice-summary h2{margin:20px 0 12px;font-size:24px}.invoice-summary dl{margin:28px 0;display:grid;gap:20px}.invoice-summary dt{font-size:10px;color:var(--muted);margin-bottom:4px}.invoice-summary dd{font-size:12px;margin:0}.invoice-total{padding:20px 0;margin:0 0 20px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.invoice-total span{display:block;font-size:11px;color:var(--muted)}.invoice-total strong{display:block;font-family:Roboto,sans-serif;font-size:28px;color:var(--primary);margin-top:8px}.invoice-draft-hint{font-size:10px;line-height:1.8;color:var(--muted);margin:20px 0 0}.service-empty-hint{display:flex;align-items:center;gap:16px;padding:16px;margin-bottom:24px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.service-empty-hint strong{font-size:12px;font-weight:500}.service-empty-hint p{font-size:10px;line-height:1.8;margin:4px 0 0;color:var(--muted)}.service-empty-hint .btn{flex-shrink:0}.catalog-source{font-size:10px;line-height:1.8;color:var(--muted);margin:4px 0 0}.catalog-source a{text-underline-offset:3px;color:var(--primary)}
.catalog-field{position:relative;min-width:0}.catalog-field [role=combobox]{text-overflow:ellipsis;padding-right:16px}.catalog-options{position:absolute;left:0;right:0;top:76px;z-index:30;max-height:280px;overflow:auto;background:white;border:1px solid #c9d9bf;border-radius:12px;box-shadow:0 12px 28px #142d2526;padding:4px}.catalog-options[hidden]{display:none}.catalog-options [role=option]{display:flex;align-items:flex-start;gap:12px;padding:12px;cursor:pointer;border-radius:8px;font-size:11px;line-height:1.7;overflow-wrap:anywhere}.catalog-options [role=option] strong{font-weight:500;color:var(--primary);white-space:nowrap}.catalog-options [role=option] span{min-width:0}.catalog-options [role=option]:hover,.catalog-options [aria-selected=true]{background:var(--surface)}
@media(max-width:1150px){.invoice-layout{grid-template-columns:minmax(0,1fr)}.invoice-summary{position:static;display:none}.invoice-section{padding:28px}.service-empty-hint{flex-wrap:wrap}}
@media(max-width:768px){.invoice-section{padding:20px}.invoice-section-title{gap:12px;margin-bottom:24px}.invoice-section-title h2{font-size:22px}.invoice-section-title p{font-size:10px}.invoice-sections{gap:20px}.service-empty-hint{padding:16px}.invoice-page .page-header{flex-wrap:wrap}.catalog-options [role=option]{flex-direction:column;gap:4px}.catalog-options{max-height:240px}.invoice-section .form-actions .btn{width:100%}}
.customer-search{display:flex;gap:8px}.customer-search input{min-width:0;flex:1}.customer-search .btn{flex-shrink:0;color:var(--primary);background:var(--surface);padding:12px 16px}.lookup-status{font-size:11px;line-height:1.7;color:var(--muted);margin:8px 0 0}.lookup-status[data-state=success]{color:var(--success)}.lookup-status[data-state=error]{color:var(--danger)}
@media(max-width:480px){.customer-search{flex-wrap:wrap}.customer-search input{flex-basis:100%}.customer-search .btn{width:100%;min-height:40px}.lookup-status{font-size:10px}}
