:root{--navy:#142b40;--navy-dark:#0d2032;--gold:#b89a58;--gold-light:#f7f1e4;--ink:#203348;--muted:#758395;--bg:#f4f6fa;--line:#e4e9f0;--white:#fff;--success:#21836d;--radius:16px;--shadow:0 4px 24px #142b4005}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 'Segoe UI',Arial,sans-serif}a{color:var(--navy);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-library{position:absolute;width:0;height:0;overflow:hidden}
.sidebar{width:250px;position:fixed;inset:0 auto 0 0;background:var(--navy);color:#fff;z-index:30;display:flex;flex-direction:column;padding:32px 20px 24px}.brand{display:flex;align-items:center;gap:13px;color:#fff;text-decoration:none!important;padding:0 12px}.brand-mark{background:var(--gold);color:#fff;border-radius:12px;width:43px;height:46px;display:grid;place-items:center;flex-shrink:0}.brand-mark .icon{width:25px;height:25px}.brand strong{font-size:21px;letter-spacing:1px;display:block;line-height:1.2}.brand small{font-size:11px;letter-spacing:1.4px;color:#c3cfdb}.nav-label{color:#9daec0;font-size:10px;font-weight:700;letter-spacing:1.8px;text-transform:uppercase;margin:42px 16px 12px}.nav-link{display:flex;align-items:center;gap:13px;padding:13px 16px;border-radius:10px;color:#bbc8d5;font-size:14px;margin:4px 0;text-decoration:none!important;transition:background .15s,color .15s}.nav-link:hover{background:#ffffff0b;color:white}.nav-link.active{background:#ffffff10;color:white;box-shadow:inset 3px 0 0 var(--gold)}.nav-link.active .icon{color:#d7bb7c}.sidebar-footer{margin-top:auto;padding:22px 13px 0;border-top:1px solid #ffffff17;color:#acbac8;font-size:11px}.sidebar-footer strong{display:block;font-size:12px;color:#ecf1f6;margin-bottom:5px}.status-dot{display:inline-block;width:6px;height:6px;background:#72b8a3;border-radius:50%;margin-right:7px}.shell{margin-left:250px;min-height:100vh}.topbar{height:86px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;gap:18px}.topbar-title{font-size:13px;font-weight:600}.topbar-subtitle{font-size:11px;color:var(--muted);margin-top:3px}.profile{display:flex;align-items:center;gap:12px}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#eef1f5;color:var(--navy);font-size:12px;font-weight:700}.profile-name{font-size:12px;font-weight:600}.profile-role{font-size:10px;color:var(--muted)}.logout-form{margin:0}.logout-form button{border:0;background:transparent;box-shadow:none;padding:7px;color:var(--muted);display:flex;align-items:center;gap:5px;font-size:11px;min-height:32px}.logout-form button:hover{background:#f2f4f7}.workspace{max-width:1480px;margin:auto;padding:38px 42px 36px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:0 0 28px}.eyebrow{font-size:10px;letter-spacing:1.8px;color:var(--gold);font-weight:700;text-transform:uppercase;margin:0 0 8px}h1{font-size:29px;font-weight:650;letter-spacing:-.8px;line-height:1.25;margin:0 0 9px}h2{font-size:19px;letter-spacing:-.3px;line-height:1.35;margin:0 0 8px}h3{font-size:15px;margin:0 0 8px}.subheading{font-size:13px;color:var(--muted);margin:0}.button,button[type=submit]{border:1px solid var(--navy);background:var(--navy);color:#fff;min-height:42px;border-radius:8px;padding:10px 17px;cursor:pointer;font-weight:600;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none!important;line-height:1.4}.button:hover,button[type=submit]:hover{background:#24445f}.button.secondary{background:#fff;border-color:var(--line);color:var(--ink)}.button.secondary:hover{background:#f7f9fb}.button.small{min-height:35px;padding:7px 11px;font-size:11px}.button .icon{width:16px;height:16px}.action-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0 0 30px}.stat-card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:21px 23px;box-shadow:var(--shadow)}.stat-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.stat-label{font-size:12px;color:var(--muted)}.stat-icon{width:35px;height:35px;background:#f3f5f8;border-radius:10px;display:grid;place-items:center;color:#53677c}.stat-card:nth-child(2) .stat-icon{background:var(--gold-light);color:var(--gold)}.stat-number{font-size:32px;letter-spacing:-1px;line-height:1.1;font-weight:650;margin-top:9px}.stat-caption{font-size:10px;color:var(--muted);margin-top:9px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:27px 0 16px}.section-heading h2{font-size:18px;margin:0}.section-count{color:var(--muted);font-size:11px}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:25px;margin-bottom:20px}.company-head{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:23px;margin-bottom:22px}.company-identity{display:flex;gap:15px;align-items:center}.company-symbol{width:48px;height:48px;border:1px solid var(--line);background:#f5f7fa;border-radius:12px;display:grid;place-items:center;color:var(--navy);flex-shrink:0}.company-symbol .icon{width:24px;height:24px}.company-identity h2{font-size:18px;margin-bottom:3px}.meta{color:var(--muted);font-size:11px}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:4px 8px;font-size:9px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;background:#eef2f6;color:#65778a;white-space:nowrap}.badge.pro{background:var(--gold-light);color:#907039}.badge.green{background:#e9f4ef;color:#29745d}.badge.grey{background:#f1f3f6;color:#758395}.areas-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:19px}.area-card{padding:19px;background:#fafbfd;border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;min-height:170px}.area-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.area-top .icon{color:var(--gold);width:19px;height:19px}.area-card h3{margin:13px 0 7px;font-size:14px}.area-description{font-size:11px;color:var(--muted);margin:0 0 17px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.area-link{margin-top:auto;font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:space-between}.area-link .icon{width:15px;height:15px}.empty-state{border:1px dashed #d4dce6;border-radius:12px;padding:34px 25px;text-align:center;color:var(--muted)}.empty-state h3{color:var(--ink);margin:12px 0 5px}.empty-state p{font-size:12px;margin:0 0 16px}.workspace-footer{margin-top:28px;display:flex;justify-content:space-between;gap:20px;color:#8c98a7;font-size:10px;padding-top:18px;border-top:1px solid var(--line)}.back-link{font-size:11px;color:var(--muted);display:inline-flex;align-items:center;gap:6px;margin:0 0 20px}.back-link .icon{width:15px;height:15px}.content-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:24px;align-items:start}.content-grid>.card{min-width:0}.card-heading{border-bottom:1px solid var(--line);margin:-1px 0 22px;padding-bottom:17px;display:flex;align-items:center;justify-content:space-between;gap:10px}.card-heading h2{font-size:16px;margin:0}.document-item{padding:18px 0;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line)}.document-item:last-child{border-bottom:0}.document-identity{display:flex;gap:13px;align-items:center;min-width:0}.document-symbol{background:#f1f4f8;display:grid;place-items:center;border-radius:9px;width:38px;height:43px;color:#70839a;flex-shrink:0}.document-title{font-size:12px;font-weight:600;overflow-wrap:anywhere}.document-meta{font-size:10px;color:var(--muted);margin-top:4px}.download-link{color:var(--navy);width:34px;height:34px;border:1px solid var(--line);border-radius:8px;display:grid;place-items:center;flex-shrink:0}.download-link:hover{background:#f3f6fa}.download-link .icon{width:17px;height:17px}.form-card form p{margin:0 0 19px}label{font-size:12px;font-weight:600;display:block;margin-bottom:7px}input:not([type=checkbox]):not([type=hidden]),select,textarea{width:100%;border:1px solid #dce3ec;background:#fff;border-radius:8px;padding:11px 12px;color:var(--ink);font-size:13px;min-height:42px}input:focus,select:focus,textarea:focus{border-color:#a7b6c7;box-shadow:0 0 0 3px #142b4008}textarea{resize:vertical;min-height:110px}input[type=file]{font-size:11px!important;background:#f8fafc!important;padding:14px!important;border-style:dashed!important}input[type=file]::file-selector-button{padding:7px 10px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--navy);font:inherit;margin-right:10px;cursor:pointer}input[type=checkbox]{width:16px;height:16px;accent-color:var(--navy);margin-right:7px;vertical-align:middle}.helptext,form ul:not(.errorlist){font-size:11px;color:var(--muted);display:block;margin-top:6px}form ul:not(.errorlist){padding-left:18px}.errorlist{color:#b42318;background:#fff1f0;padding:10px 16px;border-radius:7px;font-size:12px;list-style:none}.notice{background:#f0f5fa;border:1px solid #dce6f0;color:#496179;padding:15px 18px;border-radius:10px;font-size:12px;margin-bottom:20px}.notice.error{color:#b42318;background:#fff1f0;border-color:#f5d6d3}.notice.success{background:#edf7f2;border-color:#d5eade;color:#28765e}.form-card h1{font-size:24px}.form-card>p{color:var(--muted);font-size:12px}.form-card button[type=submit]{width:100%}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.table-wrap{width:100%;overflow-x:auto}.data-table{width:100%;border-collapse:collapse;white-space:normal}.data-table th{text-align:left;padding:13px 16px;background:#f7f9fb;color:#8793a3;font-size:9px;letter-spacing:1px;text-transform:uppercase;font-weight:650;border-bottom:1px solid var(--line)}.data-table td{padding:17px 16px;border-bottom:1px solid var(--line);font-size:12px;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table tr:hover td{background:#fbfcfe}.table-primary{font-weight:600;display:block}.table-secondary{font-size:10px;color:var(--muted);margin-top:3px;display:block}.table-actions{text-align:right!important}.search-form{display:flex;gap:8px;width:min(420px,100%)}.search-form input{font-size:12px!important;min-height:39px!important;background:#fafbfd!important}.search-form button[type=submit]{min-height:39px;padding:8px 12px}.tab-row{display:flex;gap:22px;overflow:auto;border-bottom:1px solid var(--line);margin:0 0 25px}.tab{padding:12px 0;font-size:12px;white-space:nowrap;color:var(--muted);text-decoration:none!important;border-bottom:2px solid transparent}.tab.active{border-bottom-color:var(--gold);color:var(--navy);font-weight:600}.member-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.member-head{display:flex;gap:13px;align-items:center;margin-bottom:20px}.member-head h2{font-size:16px;margin:0 0 3px}.member-form{display:grid;grid-template-columns:1fr 1fr;gap:15px;align-items:end}.member-form .checkbox-label{font-size:11px;display:flex;align-items:center;gap:3px;margin:0;padding-bottom:12px}.member-form button{grid-column:1/-1}.member-form select{font-size:12px}.auth-mode{min-height:100vh;background:var(--bg)}.auth-top{height:90px;padding:0 45px;display:flex;align-items:center;background:var(--navy);justify-content:space-between}.auth-top .brand{padding:0}.auth-subtitle{font-size:11px;color:#aebdcb}.auth-mode .workspace{max-width:580px;padding-top:48px}.auth-mode .card{padding:32px}.auth-mode h1{font-size:25px}.auth-mode .card>p{font-size:13px;color:var(--muted)}.auth-mode form p{margin-bottom:17px}.auth-mode form button[type=submit]{width:100%;margin-top:7px}.auth-mode .workspace-footer{justify-content:center}.menu-toggle{display:none;border:0;background:transparent;padding:7px;color:var(--navy);cursor:pointer}.menu-toggle .icon{width:23px;height:23px}.mobile-scrim{display:none}.note-panel{background:var(--navy);border-radius:var(--radius);color:white;padding:23px}.note-panel .eyebrow{color:#d6bb7b}.note-panel h2{font-size:18px;color:#fff}.note-panel p{font-size:12px;color:#b8c7d5;margin:10px 0 0}.narrow-form{max-width:660px}.narrow-form .card{padding:30px}.preview-label{background:#f7f1e4;color:#8b6c32;font-size:11px;padding:9px 42px;margin-left:250px}
@media(min-width:1550px){.workspace{padding-top:45px}.areas-grid{gap:20px}}
@media(max-width:1150px){.sidebar{width:220px}.shell{margin-left:220px}.workspace{padding:30px 28px}.topbar{padding:0 28px}.areas-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid{gap:12px}.stat-card{padding:18px}.preview-label{margin-left:220px}.content-grid{grid-template-columns:1fr}.member-grid{grid-template-columns:1fr}}
@media(max-width:760px){.sidebar{width:250px;transform:translateX(-100%);transition:transform .2s}.shell{margin-left:0}.menu-open .sidebar{transform:translateX(0)}.menu-open .mobile-scrim{display:block;position:fixed;inset:0;background:#0d203277;z-index:25;border:0}.menu-toggle{display:block}.topbar{height:72px;padding:0 18px}.topbar-title{font-size:12px}.profile-name{max-width:90px;overflow:hidden;text-overflow:ellipsis}.profile-role,.logout-form button span{display:none}.profile{gap:8px}.workspace{padding:26px 18px}h1{font-size:24px}.page-heading{gap:14px;flex-direction:column;margin-bottom:22px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat-card{padding:16px}.stat-label{font-size:11px}.stat-number{font-size:27px}.stat-caption{font-size:9px}.stat-icon{width:30px;height:30px}.card{padding:20px;border-radius:12px}.company-head{align-items:flex-start;gap:12px}.company-identity{gap:11px}.company-identity h2{font-size:16px}.company-symbol{width:40px;height:40px}.areas-grid{grid-template-columns:1fr}.area-card{min-height:155px}.workspace-footer{font-size:9px;flex-direction:column;gap:5px}.toolbar{flex-direction:column;align-items:stretch}.table-wrap{margin:0 -8px;width:calc(100% + 16px)}.data-table{min-width:580px}.auth-top{height:78px;padding:0 22px}.auth-subtitle{display:none}.auth-mode .workspace{padding:28px 18px}.auth-mode .card{padding:24px}.preview-label{margin-left:0;padding:7px 18px}.member-form{grid-template-columns:1fr}.member-form .checkbox-label{padding-bottom:0}.document-title{font-size:11px}.content-grid{gap:8px}.tab-row{gap:17px}.note-panel{padding:20px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
