:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#133550;background:#f5f8fb;font-synthesis:none;--navy:#07396e;--cyan:#078b9b;--green:#28892d;--gold:#e4ae00;--border:#e2eaf1;--muted:#7890a2;--shadow:0 14px 34px rgba(6,41,76,.06)}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,select,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(5,147,180,.23);outline-offset:2px}input,textarea,select{color:#23435e}h1,h2,h3,p{margin-top:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
.gate{display:grid;grid-template-columns:1.07fr .93fr;min-height:100vh;background:#fff}.gate-brand{position:relative;overflow:hidden;background:radial-gradient(circle at 1% 100%,rgba(14,129,156,.42),transparent 48%),linear-gradient(135deg,#04396b,#052750);padding:clamp(44px,6vw,120px);color:white;display:flex;flex-direction:column;justify-content:center}.gate-brand::before{content:"";position:absolute;right:-260px;top:-160px;width:700px;height:700px;border:1px solid rgba(255,255,255,.14);border-radius:50%;box-shadow:0 0 0 90px rgba(255,255,255,.025),0 0 0 185px rgba(255,255,255,.025),0 0 0 275px rgba(255,255,255,.025)}.gate-mark{background:white;border-radius:13px;padding:14px;max-width:280px;margin-bottom:90px;position:relative}.gate-mark img{display:block;width:100%;height:68px;object-fit:contain}.gate-overline,.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;text-transform:uppercase;color:#1597aa}.gate-overline{color:#69d2dd;margin-bottom:17px}.gate-brand h1{font-size:clamp(32px,3.6vw,62px);line-height:1.1;letter-spacing:-1.8px;max-width:660px;margin-bottom:25px}.gate-brand p{font-size:18px;line-height:1.7;color:#bad4e1;max-width:510px}.gate-accent{display:flex;gap:9px;margin-top:45px}.gate-accent span{width:50px;height:5px;background:#0b9fc4;border-radius:20px}.gate-accent span:nth-child(2){background:#2b9d37}.gate-accent span:nth-child(3){background:#e5b504}.gate-accent span:nth-child(4){background:#fff;opacity:.5}.gate-form-wrap{display:flex;align-items:center;justify-content:center;padding:50px}.auth-card{width:100%;max-width:400px}.auth-card h2{font-size:36px;letter-spacing:-1px;margin:13px 0}.auth-card p{color:#7a91a3;line-height:1.6;margin:0 0 38px}.auth-card label,.field label{display:block;font-size:12px;font-weight:750;color:#284963;margin:20px 0 8px}.auth-card input,.field input,.field select,.field textarea{width:100%;padding:14px 15px;border:1px solid #d9e4ec;border-radius:10px;background:#fff;min-height:45px}.auth-card input::placeholder{color:#a3b2bd}.auth-card .btn{margin-top:27px}.auth-card .auth-note{font-size:12px;text-align:center;margin:18px 0 0}.form-message{font-size:12px;color:#ad3444;background:#fff0f3;padding:12px;border-radius:8px;margin-top:16px}.app-shell{display:flex;min-height:100vh}.sidebar{background:#073560;color:#e5f1f8;width:252px;flex:0 0 252px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar-head{padding:30px 18px 23px}.sidebar-logo{background:white;border-radius:11px;padding:10px 14px;margin-bottom:16px}.sidebar-logo img{display:block;width:100%;height:64px;object-fit:contain}.app-brand{font-weight:850;letter-spacing:2.2px;font-size:13px;color:#eaf6fa}.app-brand span{display:block;font-size:9px;letter-spacing:1.8px;color:#74afc2;margin-top:5px}.sidebar-scroll{padding:6px 12px 18px;overflow-y:auto;flex:1}.nav-caption{font-size:10px;font-weight:750;letter-spacing:1.7px;color:#6ca5ba;padding:20px 12px 11px}.nav-link{background:transparent;color:#c6dce7;border:0;display:flex;gap:12px;align-items:center;width:100%;text-align:left;padding:12px 14px;border-radius:9px;font-size:12.5px;font-weight:550;margin:2px 0}.nav-link:hover{background:#154977;color:#fff}.nav-link.selected{background:#127caa;color:#fff;box-shadow:inset 3px 0 0 #ecb328}.nav-icon,.nav-link svg{display:inline-flex;width:18px;height:18px;flex:0 0 18px}.sidebar-footer{border-top:1px solid #1e527c;display:flex;align-items:center;padding:17px 14px;gap:10px}.account-circle{width:32px;height:32px;background:#e9f3f8;color:#073f6b;border-radius:50%;display:grid;place-items:center;font-size:10px;font-weight:850}.account-meta{flex:1;min-width:0}.account-meta strong{font-size:11px;display:block;overflow:hidden;text-overflow:ellipsis}.account-meta small{font-size:10px;color:#85b3ca}.icon-only{background:transparent;color:#b8d5e4;border:0;padding:6px;width:28px;height:28px}.icon-only svg{width:17px}.main-column{min-width:0;flex:1;display:flex;flex-direction:column}.topbar{height:78px;background:white;border-bottom:1px solid #e7edf2;display:flex;align-items:center;justify-content:space-between;padding:0 35px;gap:20px}.breadcrumb{display:flex;align-items:center;gap:11px;color:#93a6b5;font-size:12px}.breadcrumb span:last-child{font-weight:700;color:#22445f}.crumb-sep{opacity:.35}.top-actions{display:flex;align-items:center;gap:13px}.top-select{min-width:178px;padding:10px 14px;border:1px solid #e2eaf0;border-radius:8px;background:#f8fafc;font-size:12px;font-weight:750}.top-divider,.divider-v{width:1px;background:#e2e8ee;height:25px}.save-state{font-size:11px;color:#78909e;display:flex;align-items:center;gap:7px;white-space:nowrap}.green-indicator{width:7px;height:7px;border-radius:50%;background:#25a86e}.main-content{padding:30px 34px 18px;flex:1;width:100%;max-width:calc(100vw - 252px);margin:auto}.page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.page-header h1,.section-title h1{font-size:27px;letter-spacing:-.7px;color:#103b5b;font-weight:800;margin:8px 0 7px}.page-header p,.section-title p{font-size:12.5px;color:#7891a3;margin:0;line-height:1.6}.header-buttons{display:flex;gap:9px}.btn{border:1px solid transparent;border-radius:8px;min-height:39px;padding:10px 15px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:780;white-space:nowrap}.btn svg{width:15px;height:15px}.btn-primary{background:#0a709e;color:#fff}.btn-primary:hover{background:#075c89}.btn-outline{background:white;color:#234b66;border:1px solid #d5e2eb}.btn-outline:hover,.btn-light:hover{background:#eff7fb}.btn-light{background:#f4f8fa;color:#1a506d}.btn-danger{background:#fff5f5;color:#b8404e;border:1px solid #f7d4d7}.btn-wide{width:100%}.metric-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:21px}.metric{background:white;border:1px solid #e7edf2;border-radius:12px;min-height:85px;display:flex;align-items:center;gap:13px;padding:14px 17px;box-shadow:0 2px 10px rgba(6,42,71,.025)}.metric-icon{width:40px;height:40px;border-radius:9px;display:grid;place-items:center;flex:0 0 40px}.metric-icon svg{width:18px;height:18px}.metric-icon.turquoise{background:#e6f8fa;color:#098595}.metric-icon.blue{background:#e9f0fc;color:#2862a3}.metric-icon.gold{background:#fff6da;color:#ab7e00}.metric-icon.green{background:#eaf8ee;color:#2b9544}.metric small{display:block;font-size:10px;color:#7890a1;margin-bottom:3px}.metric strong{font-size:20px;font-weight:810;color:#0d3a5e;white-space:nowrap}.reference-banner{margin-bottom:17px;background:#fff9e9;border:1px solid #f2dfad;color:#725b1f;border-radius:10px;padding:11px 13px;align-items:flex-start;gap:10px;font-size:11.5px;line-height:1.5;display:flex}.reference-banner svg{width:16px;height:16px;flex:0 0 auto;margin-top:1px}.reference-banner button{background:transparent;border:0;font-size:20px;color:#9c8437;margin-left:auto}.chart-toolbar{background:white;border:1px solid #e6edf2;border-radius:11px 11px 0 0;padding:11px 15px;display:flex;justify-content:space-between;gap:13px;align-items:center;flex-wrap:wrap}.filter-group,.canvas-controls{display:flex;align-items:center;gap:10px}.filter-group>label{font-size:9px;color:#91a5b6;font-weight:800;letter-spacing:1px}.control-select{height:34px;max-width:225px;background:#f7fafc;border:1px solid #dce6ed;border-radius:7px;padding:0 10px;font-size:11px;color:#31536d;font-weight:650}.search-control{height:34px;border:1px solid #dce6ed;border-radius:7px;display:flex;gap:7px;align-items:center;padding:0 9px;background:#f7fafc}.search-control svg{width:14px;height:14px;color:#8ba0b1}.search-control input{width:145px;background:transparent;border:0;outline:0;font-size:11px}.check-label{display:flex;align-items:center;gap:4px;font-size:10px;color:#56728a;white-space:nowrap}.check-label input{accent-color:#087ca9}.tiny-button{height:29px;min-width:27px;padding:0 6px;border:1px solid #e3e9ee;border-radius:6px;color:#47677f;background:#fff;display:grid;place-items:center}.tiny-button svg{width:13px;height:13px}.zoom-label{font-size:11px;width:40px;text-align:center;color:#55738a;font-weight:700}.chart-viewport{background:#fff;min-height:480px;max-height:calc(100vh - 405px);overflow:auto;position:relative;border:1px solid #e4ebf2;border-top:0;border-radius:0 0 10px 10px;background-image:radial-gradient(circle,#e7edf4 1px,transparent 1px);background-size:22px 22px;scrollbar-color:#d0dfe9 transparent}.chart-viewport.bg-plain{background:#fff;background-image:none}.chart-viewport.bg-soft{background:radial-gradient(ellipse at 54% 33%,#fff 35%,#f7fafc 100%)}.chart-viewport.bg-graph{background-color:#fff;background-image:linear-gradient(to right,#ecf1f5 1px,transparent 1px),linear-gradient(to bottom,#ecf1f5 1px,transparent 1px);background-size:28px 28px}.chart-scale{position:relative;margin:0 auto}.chart-stage{position:relative;transform-origin:top left;overflow:visible}.chart-stage::before{content:"";pointer-events:none;position:absolute;width:100px;top:55px;left:10px;bottom:10px;border-radius:100%;border-left:2px solid rgba(22,84,123,.045)}#edgeLayer{position:absolute;left:0;top:0;overflow:visible;pointer-events:none}#nodeLayer{position:absolute;top:0;left:0}.org-card{position:absolute;border-radius:12px;background:var(--node-color,#28892d);color:white;text-align:center;box-shadow:0 9px 22px rgba(9,50,78,.14),0 1px 3px rgba(0,0,0,.07);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px;overflow:hidden;user-select:none;transition:box-shadow .18s,filter .18s;outline:0;border:1px solid rgba(0,0,0,.025)}.org-card::before{content:"";height:4px;position:absolute;left:0;right:0;top:0;background:rgba(255,255,255,.28)}.org-card:hover{box-shadow:0 12px 28px rgba(9,50,78,.25);filter:brightness(1.035)}.org-card:focus-visible{outline:3px solid #007bb6;outline-offset:3px}.org-card.drop-target{outline:4px dashed #e4ae00;outline-offset:3px}.org-card .card-title{color:white;font-size:12px;line-height:1.3;letter-spacing:.25px;font-weight:800;text-transform:uppercase;max-width:100%;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.org-card .card-name{font-size:11px;font-weight:820;color:#0b3866;background:#fff;border-radius:6px;min-height:25px;line-height:1.2;margin-top:12px;padding:5px 8px;width:100%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.org-card .card-icon{width:22px;height:22px;opacity:.88;flex-shrink:0;margin-bottom:7px}.org-card .card-icon svg{width:22px;height:22px}.org-card .mini-photo{position:absolute;left:11px;top:16px;width:38px;height:38px;object-fit:cover;border-radius:50%;border:2px solid rgba(255,255,255,.7)}.org-card.has-photo .card-title{padding-left:42px}.org-card.card-square{border-radius:2px}.org-card.card-pill{border-radius:24px}.org-card.person-style{padding:11px 9px 8px;justify-content:flex-start}.org-card.person-style .avatar{width:57px;height:57px;border-radius:50%;border:3px solid #e8b62c;object-fit:cover;background:#f1f5f9;color:#335371;display:grid;place-items:center;font-size:16px;font-weight:750;flex:0 0 auto}.org-card.person-style.photo-square .avatar{border-radius:9px}.org-card.person-style .person-name{font-size:11px;font-weight:850;color:#fff;margin-top:7px;line-height:1.25;text-align:center;text-transform:uppercase;max-width:100%;overflow-wrap:anywhere}.org-card.person-style .person-role{background:#fff;color:#234969;border-radius:4px;font-size:10px;font-weight:700;margin-top:5px;padding:4px 5px;max-width:100%;overflow-wrap:anywhere;line-height:1.2}.org-card.compact-style{padding:8px 9px}.org-card.compact-style .card-title{font-size:11px}.org-card.compact-style .card-name{font-size:9px;padding:3px;margin-top:5px}.org-card.is-match{outline:4px solid #ffc831;outline-offset:3px}.org-card.is-muted{opacity:.24}.chart-empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:#8298a8;background:#fff}.chart-empty svg{width:45px;height:45px;color:#a9bfcd}.chart-empty h3{margin:15px 0 7px;font-size:16px;color:#3b5f7d}.chart-empty p{font-size:12px}.chart-foot{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#8da0b1;padding:12px 5px}.dot-blue{width:7px;height:7px;background:#1c85af;border-radius:50%;display:inline-block;margin-right:4px}.editor-hint{display:flex;align-items:flex-start;gap:9px;background:#eaf6fb;border:1px solid #d4eaf4;color:#335c76;border-radius:9px;padding:11px 13px;font-size:11px;line-height:1.5;margin:0 0 12px}.editor-hint svg{width:16px;height:16px;flex:0 0 16px}.footer{height:45px;display:flex;justify-content:space-between;align-items:center;padding:8px 35px;border-top:1px solid #e5edf2;font-size:10px;color:#9badbc}.footer span{font-weight:700;color:#789cad}.alerts{position:fixed;z-index:50;right:28px;top:88px;display:flex;flex-direction:column;gap:8px}.toast{max-width:360px;background:white;color:#214962;border:1px solid #dce7ef;padding:13px 15px;border-radius:10px;box-shadow:0 13px 35px #092d461f;font-size:12px;line-height:1.5}.toast.error{border-color:#efbbc2;color:#a52f47}.toast.success{border-left:4px solid #28a36a}
.data-section{background:white;border:1px solid #e2eaf0;border-radius:12px;overflow:hidden;box-shadow:var(--shadow)}.section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:23px}.section-toolbar{display:flex;align-items:center;gap:12px;padding:16px 20px;background:#fafdff;border-bottom:1px solid #e4edf3;font-size:11px;color:#688295}.section-toolbar input{padding:9px 12px;border:1px solid #dae6ec;border-radius:8px;min-width:240px}.table-wrap{overflow-x:auto}.data-table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}.data-table th{background:#f7fafc;color:#6d879b;font-size:10px;letter-spacing:.6px;text-transform:uppercase;font-weight:800;padding:13px 18px;border-bottom:1px solid #e7edf3}.data-table td{padding:13px 18px;border-bottom:1px solid #edf1f5;color:#35536b;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table tr:hover td{background:#fcfdff}.data-table strong{font-weight:750;color:#173e5b}.item-sub{display:block;color:#9caeba;font-size:10px;margin-top:4px}.table-actions{display:flex;gap:5px;justify-content:flex-end}.link-btn{font-size:11px;color:#0b779b;background:#f0f8fb;border:0;padding:7px 11px;border-radius:6px}.link-btn.danger{color:#b4414a;background:#fff3f4}.tag{display:inline-block;padding:5px 9px;background:#ecf5fa;border-radius:50px;color:#236786;font-weight:700;font-size:10px}.tag.warn{background:#fff6db;color:#9c7a22}.empty-table{padding:45px;text-align:center;color:#8ea4b4;font-size:12px}.unit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.unit-card{background:#fff;border:1px solid #e1ebf0;border-radius:12px;padding:20px;box-shadow:var(--shadow)}.unit-card:hover{border-color:#9ecbda}.unit-card .circle-icon{width:43px;height:43px;border-radius:10px;background:#e8f4f9;display:grid;place-items:center;color:#1983a0;margin-bottom:14px}.unit-card h3{font-size:15px;margin:0 0 6px;color:#123e5d}.unit-card p{font-size:11px;color:#8296a4;margin:0 0 17px}.unit-card .unit-bottom{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#607f91}.color-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:15px}.color-control{border:1px solid #e3eaf0;border-radius:10px;padding:14px;background:#fff}.color-control label{font-weight:750;color:#345670;font-size:11px;margin-bottom:12px;display:block}.color-pair{display:flex;align-items:center;gap:10px}.color-pair input[type=color]{width:48px;height:37px;border:1px solid #d8e5ed;border-radius:7px;padding:2px;background:white}.color-pair code{font-size:11px;color:#7d91a1}.identity-block{padding:22px 25px;border:1px solid #e2eaf0;background:white;border-radius:12px;margin-bottom:16px}.identity-block h3{font-size:15px;margin:0 0 5px}.identity-block p{font-size:11px;color:#859aab;margin:0 0 22px}.design-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.design-field label{display:block;font-size:11px;font-weight:750;color:#56738c;margin-bottom:9px}.design-field select,.design-field input{width:100%;border:1px solid #dce7ee;border-radius:7px;padding:10px 12px;background:#fbfdfe}.identity-preview{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.identity-preview .preview-card{width:190px;height:96px;padding:10px;background:#07396e;color:white;border-radius:9px;text-align:center;font-weight:800;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:12px}.identity-preview .preview-card span{font-size:10px;margin-top:9px;background:#fff;padding:6px;border-radius:6px;color:#114167;width:100%}.identity-actions{margin-top:22px;display:flex;justify-content:flex-end;gap:10px}.logo-preview{height:85px;max-width:250px;object-fit:contain;border:1px solid #e3eaf0;border-radius:9px;background:#fff;padding:6px}.section-note{padding:16px 20px;color:#7895a5;font-size:11px;line-height:1.5;background:#f9fcfe;border:1px solid #e7eef4;border-radius:9px;margin-top:15px}
.modal{border:0;border-radius:15px;max-width:min(620px,calc(100vw - 30px));width:100%;padding:0;box-shadow:0 20px 80px rgba(1,35,64,.26);color:#21465f;max-height:min(90vh,900px)}.modal::backdrop{background:rgba(7,34,59,.52);backdrop-filter:blur(3px)}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #e7edf3;padding:23px 28px 18px;background:#fbfdff}.modal-header h2{font-size:21px;letter-spacing:-.5px;margin:8px 0 0}.modal-close{width:30px;height:30px;background:white;border:1px solid #dbe6ed;color:#6c8293;font-size:24px;border-radius:8px;line-height:1}.modal-content{padding:24px 28px 26px;max-height:70vh;overflow-y:auto}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.field label{font-size:11px;margin:0 0 7px}.field input,.field select,.field textarea{padding:10px 12px;font-size:12px;background:#fcfdff}.field textarea{resize:vertical;min-height:95px}.field.full{grid-column:1/-1}.field-hint{font-size:10px;color:#90a3b0;margin:6px 0 0}.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:23px;padding-top:16px;border-top:1px solid #e6edf2}.profile-head{display:flex;align-items:center;gap:17px;margin-bottom:20px}.profile-avatar{width:88px;height:88px;border-radius:50%;background:#eaf4f8;color:#236083;display:grid;place-items:center;font-size:30px;font-weight:850;overflow:hidden;flex:0 0 88px;border:4px solid #e2eff5}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-head h3{font-size:20px;margin:0 0 6px}.profile-head p{font-size:13px;color:#6790a5;margin:0}.profile-details{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;padding:16px 0;border-top:1px solid #e8eef2}.profile-details small{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:1px;color:#8498aa}.profile-details p{font-size:12px;font-weight:700;margin:6px 0}.profile-resp{border-top:1px solid #e8eef2;padding-top:16px;white-space:pre-wrap;font-size:12px;line-height:1.65}.profile-resp small{color:#8699a9;letter-spacing:1px;font-size:10px}.drop-zone{border:1px dashed #bcd6e4;border-radius:9px;padding:17px;text-align:center;background:#f6fbfd;color:#557993;font-size:11px}.drop-zone input{width:100%;margin-top:7px}.export-menu{position:fixed;right:38px;top:174px;z-index:60;background:white;border:1px solid #dce7ed;box-shadow:0 12px 30px #0c344925;border-radius:9px;width:209px;padding:6px}.export-menu button{display:flex;align-items:center;gap:11px;font-size:12px;color:#355773;border:0;background:transparent;width:100%;text-align:left;padding:12px;border-radius:6px}.export-menu button:hover{background:#eff8fb}.export-menu svg{width:16px;height:16px}.edit-row-buttons{display:flex;gap:8px;align-items:center}.ref-banner-inline{display:flex;align-items:flex-start;gap:10px;border:1px solid #f1dda6;background:#fffbef;padding:12px;border-radius:9px;color:#756229;font-size:11px;margin-bottom:17px;line-height:1.5}
@media(max-width:1200px){.sidebar{width:215px;flex-basis:215px}.main-content{max-width:calc(100vw - 215px);padding:24px}.metric-row{grid-template-columns:repeat(2,1fr)}.topbar{padding:0 24px}.chart-viewport{max-height:550px}}@media(max-width:850px){.gate{grid-template-columns:1fr}.gate-brand{padding:28px;min-height:260px}.gate-brand h1{font-size:28px}.gate-brand p,.gate-mark{margin-bottom:10px}.gate-form-wrap{padding:28px}.app-shell{display:block}.sidebar{width:100%;height:auto;position:relative}.sidebar-head{padding:13px;display:flex;gap:15px;align-items:center}.sidebar-logo{width:150px;margin:0}.sidebar-logo img{height:43px}.sidebar-scroll{display:flex;overflow-x:auto;padding:6px}.nav-caption{display:none}.nav-link{white-space:nowrap;width:auto;flex:0 0 auto}.sidebar-footer{display:none}.main-content{max-width:100%;padding:19px}.topbar{padding:10px 17px;flex-wrap:wrap;height:auto}.page-header{flex-wrap:wrap}.metric-row{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-toolbar{align-items:flex-start}.form-grid,.design-options{grid-template-columns:1fr}}@media print{.sidebar,.topbar,.page-header,.metric-row,.chart-toolbar,.chart-foot,.footer,.reference-banner,.editor-hint,.alerts,.header-buttons{display:none!important}.main-content{padding:0!important;max-width:none!important}.chart-viewport{max-height:none!important;overflow:visible!important;border:0!important;background:#fff!important}.chart-scale{margin:0!important}.chart-stage{transform:none!important}@page{size:landscape;margin:9mm}}

/* 0.2.0 — navegação por arraste e organogramas funcionais por loja */
.chart-usage-hint{display:flex;align-items:center;gap:7px;font-size:11px;color:#4c738b;background:#f2f8fc;border:1px solid #e1edf4;padding:8px 13px;border-bottom:0;border-radius:9px 9px 0 0}
.chart-usage-hint svg{width:15px;height:15px;color:#098aa7}
.chart-viewport{cursor:grab;touch-action:none;overscroll-behavior:contain;user-select:none}
.chart-viewport.is-panning,.chart-viewport.pan-mode,.chart-viewport.pan-mode .org-card{cursor:grabbing!important}
.chart-viewport.is-panning *{cursor:grabbing!important}
.chart-viewport .org-card{user-select:none}
.pan-button.is-active{background:#d4eef7;border-color:#0a84a7;color:#076a88}
.pan-button svg{width:15px;height:15px}
.chart-viewport.is-departmental{background:linear-gradient(160deg,#fff 50%,#f9fbff 100%)}
.store-title-band{position:absolute;left:0;top:0;height:112px;background:linear-gradient(105deg,#044277,#0a2e56);color:#fff;font-size:32px;font-weight:850;letter-spacing:1.1px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;white-space:nowrap;pointer-events:none;text-transform:uppercase;text-shadow:0 1px 1px #09263f}
.store-sector-header{position:absolute;border-radius:13px 13px 10px 10px;box-shadow:0 5px 15px rgba(6,48,75,.12);overflow:hidden;pointer-events:none;text-align:center;display:flex;flex-direction:column;justify-content:stretch}
.store-sector-name{background:var(--sector-color);color:white;font-size:22px;font-weight:850;text-transform:uppercase;letter-spacing:.25px;flex:1;display:flex;align-items:center;justify-content:center;padding:9px 15px}
.store-sector-subtitle{background:color-mix(in srgb,var(--sector-color) 14%,#fff);font-size:15px;color:#09528c;padding:12px 14px;min-height:21px;font-weight:600}
.org-card.store-person-card{background:color-mix(in srgb,var(--sector-color) 8%,#fff);border:2px solid var(--sector-color);border-radius:10px;color:#0b3761;padding:0;display:flex;flex-direction:column;gap:0;box-shadow:0 6px 15px rgba(6,33,67,.085);overflow:hidden;transition:box-shadow .18s,transform .18s;line-height:1.3}
.org-card.store-person-card:hover{box-shadow:0 7px 23px rgba(3,50,94,.18);transform:translateY(-2px)}
.store-person-head{padding:14px 12px 9px;flex:0 0 auto;text-align:center;display:flex;align-items:center;flex-direction:column;gap:4px;background:color-mix(in srgb,var(--sector-color) 7%,#fff)}
.store-person-head strong{color:#0c3990;font-size:21px;line-height:1.08;font-weight:850}
.store-person-head span{font-size:12.5px;color:#064c81;line-height:1.25;font-weight:650}
.store-avatar{max-width:42px;width:42px;height:42px;object-fit:cover;border-radius:50%;border:2px solid white;box-shadow:0 0 0 2px var(--sector-color);margin:0 auto 5px}
.store-person-desc{flex:1 1 auto;border-top:1px solid color-mix(in srgb,var(--sector-color) 22%,#fff);padding:11px 14px;overflow:hidden;text-align:center;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:7;font-size:12.5px;color:#174f78;line-height:1.36;white-space:normal}
.org-card.store-person-card.card-square{border-radius:0}.org-card.store-person-card.card-pill{border-radius:20px}
.section-editor-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px;margin-bottom:16px}
.section-editor-top .eyebrow{display:block;margin-bottom:8px}
.section-explain{font-size:12px;line-height:1.65;color:#547891;margin:0 0 20px}
.section-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:15px}
.section-management-card{border:1px solid color-mix(in srgb,var(--sector-color) 45%,#fff);border-top:7px solid var(--sector-color);background:linear-gradient(180deg,color-mix(in srgb,var(--sector-color) 6%,#fff),#fff);border-radius:9px;padding:17px;box-shadow:0 4px 14px rgba(4,49,72,.05)}
.section-management-card strong{font-weight:850;color:#173e68;font-size:15px;text-transform:uppercase}
.section-management-card p{color:#60839b;font-size:11px;min-height:27px;line-height:1.5;margin:12px 0}
.section-management-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px;align-items:center;border-top:1px solid #e8edf3;padding-top:13px}
.section-management-footer span{font-size:10px;color:#8da4b1;flex-basis:100%}
@media(max-width:650px){.chart-usage-hint{font-size:10px}.store-title-band{font-size:24px}}
.startup-overlay{position:fixed;inset:0;background:radial-gradient(ellipse at 75% 22%,#09537e,#063b70 58%,#08294d);z-index:200;display:flex;align-items:center;justify-content:center;color:white;overflow:hidden;transition:opacity .5s ease}
.startup-overlay[hidden]{display:none!important}.startup-overlay.is-out{opacity:0;pointer-events:none}
.startup-decor{position:absolute;width:720px;height:720px;border:1px solid rgba(190,223,242,.12);border-radius:50%;pointer-events:none}
.start-decor-one{left:-370px;bottom:-380px;box-shadow:0 0 0 110px rgba(8,133,168,.045),0 0 0 230px rgba(8,133,168,.03)}
.start-decor-two{right:-500px;top:-360px;box-shadow:0 0 0 135px rgba(9,176,196,.035),0 0 0 265px rgba(9,176,196,.022)}
.startup-center{width:min(550px,90vw);display:flex;flex-direction:column;align-items:center;text-align:center;z-index:1;animation:start-pop .75s ease-out both}
.startup-logo-frame{width:260px;height:109px;background:#fff;border-radius:16px;box-shadow:0 17px 38px rgba(0,12,30,.2);display:flex;align-items:center;justify-content:center;padding:15px 21px;box-sizing:border-box;margin-bottom:35px}
.startup-logo-frame img{max-width:100%;max-height:100%;object-fit:contain}
.startup-overline{font-size:11px;letter-spacing:3.7px;color:#9bc9e4;font-weight:700;margin-bottom:11px}
.startup-center h2{font-size:31px;color:#fff;letter-spacing:1.7px;font-weight:850;margin:0 0 12px}
.startup-center p{font-size:15px;letter-spacing:.25px;color:#d9eaf5;margin:0 0 43px}
.startup-progress{width:255px;height:4px;background:rgba(255,255,255,.23);border-radius:12px;overflow:hidden}
.startup-progress span{display:block;width:100%;height:100%;background:linear-gradient(90deg,#3ac7d1,#f4c044);transform:translateX(-100%);animation:start-loading 1.25s ease-in-out forwards}
.startup-note{font-size:11px;color:#a9cfe1;margin:14px 0 18px}
.startup-skip{background:transparent;color:#cfebf7;font-size:11px;padding:8px 13px;border:1px solid rgba(180,225,244,.4);border-radius:8px;cursor:pointer}
.startup-skip:hover{background:rgba(255,255,255,.1)}
@keyframes start-loading{to{transform:translateX(0)}}@keyframes start-pop{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.startup-center,.startup-progress span{animation:none}.startup-progress span{transform:none}}

/* Correções 0.2.2: os nomes corporativos podem ocupar todas as linhas calculadas,
   mantendo largura e altura homogêneas no mesmo nível de zoom. */
.org-card .card-title,.org-card .card-name{display:block;-webkit-line-clamp:unset;overflow:visible;white-space:normal;overflow-wrap:anywhere;word-break:normal}
.org-card .card-name{height:auto;flex:0 0 auto;margin-top:10px}
.org-card .card-title{flex:0 0 auto}
.store-sector-header.sector-shape-square{border-radius:0}
.store-sector-header.sector-shape-pill{border-radius:26px}
.store-sector-header.sector-shape-rounded{border-radius:12px}
.store-sector-header.sector-is-editable{pointer-events:auto;cursor:pointer;outline-offset:4px}
.store-sector-header.sector-is-editable:hover{box-shadow:0 6px 21px rgba(6,48,75,.24);outline:2px solid #e5b42d}
.store-sector-header.sector-is-editable:focus-visible{outline:3px solid #e5b42d}
.builder-sector-tools{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}
.builder-sector-tools[hidden]{display:none!important}

/* v0.2.3: apresentação em tela cheia independente para organogramas geral e por loja. */
.presentation-toolbar[hidden]{display:none!important}
.presentation-toolbar{background:linear-gradient(105deg,#07396e,#064d7b);color:#fff;min-height:76px;padding:10px 22px;display:flex;align-items:center;gap:15px;box-shadow:0 3px 13px #071e3c20;flex:0 0 auto;z-index:2}
.presentation-identity{display:flex;align-items:center;gap:13px;min-width:0;flex:1}
.presentation-identity img{width:126px;height:52px;background:#fff;object-fit:contain;padding:6px 9px;border-radius:7px;flex:0 0 auto}
.presentation-titles{display:flex;flex-direction:column;gap:3px;min-width:0}
.presentation-titles small{font-size:10px;letter-spacing:1.3px;font-weight:800;color:#8ed8e8;text-transform:uppercase}
.presentation-titles strong{font-size:17px;font-weight:790;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.presentation-guide{font-size:11px;color:#d0e5ee;white-space:nowrap}
.presentation-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.presentation-icon{background:#ffffff1b;color:white;border:1px solid #ffffff4a;border-radius:7px;width:35px;height:35px;display:grid;place-items:center;font-size:20px;line-height:1}
.presentation-icon:hover,.presentation-exit:hover{background:#ffffff31}
.presentation-icon svg,.presentation-exit svg{width:17px;height:17px}
.presentation-zoom-label{min-width:42px;text-align:center;font-size:12px;font-weight:780;font-variant-numeric:tabular-nums}
.presentation-exit{height:35px;display:flex;align-items:center;gap:7px;border:1px solid #ffffff66;border-radius:7px;background:#fff;color:#063c69;font-size:12px;font-weight:800;padding:0 11px;margin-left:10px}
.presentation-exit:hover{background:#e8f5ff}
.presentation-exit kbd{font-family:inherit;color:#467290;border:1px solid #bbd0df;background:#edf3f8;border-radius:4px;padding:2px 4px;font-size:10px}
#orgPage.presentation-mode,#orgPage.presentation-mode:fullscreen{position:fixed!important;inset:0!important;z-index:150!important;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:#fff!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
#orgPage.presentation-mode .page-header,#orgPage.presentation-mode .metric-row,#orgPage.presentation-mode .chart-toolbar,#orgPage.presentation-mode .editor-hint,#orgPage.presentation-mode .chart-usage-hint,#orgPage.presentation-mode .chart-foot{display:none!important}
#orgPage.presentation-mode .chart-viewport{width:100%!important;max-width:none!important;max-height:none!important;height:auto!important;min-height:0!important;flex:1 1 auto!important;border:0!important;border-radius:0!important;overflow:auto!important}
#orgPage.presentation-mode .presentation-toolbar{display:flex!important}
#orgPage.presentation-mode .org-card{cursor:grab}
#orgPage.presentation-mode .chart-viewport.is-panning .org-card{cursor:grabbing!important}
@media(max-width:1040px){.presentation-guide{display:none}.presentation-toolbar{padding:10px 14px}.presentation-identity img{width:100px;height:43px}.presentation-titles strong{font-size:14px}}
@media(max-width:620px){.presentation-toolbar{flex-wrap:wrap;min-height:100px;row-gap:7px}.presentation-identity{flex-basis:100%}.presentation-actions{margin-left:auto}.presentation-exit{margin-left:3px}.presentation-exit kbd{display:none}}
@media print{.presentation-toolbar{display:none!important}#orgPage.presentation-mode{position:static!important;width:auto!important;height:auto!important;display:block!important}}

/* v0.2.4: uma única malha setorial para todas as opções de visualização da loja. */
.org-card.store-person-card.store-variant-people .store-person-head{height:100%;justify-content:center;gap:8px;padding:10px 14px}
.org-card.store-person-card.store-variant-people .store-avatar{width:53px;height:53px;max-width:53px;margin:0 auto 2px}
.org-card.store-person-card.store-variant-people .store-avatar.initials{display:flex;align-items:center;justify-content:center;background:#fff;color:#083c6c;font-size:20px;font-weight:800}
.org-card.store-person-card.store-variant-people strong{font-size:18px}
.org-card.store-person-card.store-variant-people span{font-size:12px}
.org-card.store-person-card.store-variant-compact .store-person-head{height:100%;justify-content:center;padding:9px 10px;gap:7px}
.org-card.store-person-card.store-variant-compact strong{font-size:17px;line-height:1.17}
.org-card.store-person-card.store-variant-compact span{font-size:12px}
.org-card.store-person-card.store-variant-executive .store-person-head{padding:13px 10px 10px}
.org-card.store-person-card.store-variant-executive .store-person-head strong{font-size:19px}
.org-card.store-person-card.store-variant-executive .store-person-desc{font-size:12px;-webkit-line-clamp:5}
.org-card.store-person-card .store-person-head strong{overflow-wrap:anywhere}
