*{box-sizing:border-box}:root{--ink:#302e3b;--muted:#81798d;--line:#e5e1ec;--accent:#6654ad;--good:#287665;--bad:#ae533d;--bg:#f8f7fa}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'Liberation Sans',Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit;color:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:34px;border:1px solid var(--line);border-radius:5px;background:white;padding:7px 11px;cursor:pointer;text-decoration:none;white-space:nowrap}button:hover,.button:hover{background:#f3eff9;border-color:#bcb0d2}button:disabled{cursor:default;opacity:.5}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input,select,textarea{border:1px solid #ded5e6;border-radius:5px;background:#fff;padding:9px 10px;width:100%;min-width:0}textarea{min-height:75px;resize:vertical}h1,h2,h3,p{margin:0}a{color:var(--accent);text-decoration:none}[hidden]{display:none!important}.rail{position:fixed;inset:0 auto 0 0;width:76px;background:#292533;color:#c9c2d6;display:flex;flex-direction:column;align-items:center;padding:24px 0;z-index:10}.brand{font-size:24px;letter-spacing:-1.6px;font-weight:800;color:white}.brand span{color:#b5a4e8}.rail nav{margin-top:39px;display:flex;flex-direction:column;gap:10px;width:100%;padding:0 7px}.nav-item{background:transparent;border:0;padding:10px 0;flex-direction:column;gap:7px;color:#b8afc8;font-size:10px;min-height:58px;width:62px}.nav-icon{font-size:22px;line-height:22px}.nav-item.active{color:#fff;background:#514565}.nav-item:hover{background:#453b56}.rail-bottom{margin-top:auto;display:flex;flex-direction:column;align-items:center;gap:18px}.help-icon{border:1px solid #776884;border-radius:50%;width:22px;height:22px;min-height:22px;padding:0;background:transparent;color:#c9bed6;font-size:12px}.avatar{width:32px;height:32px;min-height:32px;border:0;border-radius:50%;display:grid;place-items:center;background:#4c435b;font-size:11px;color:#ece6f5;padding:0}.sidebar{position:fixed;inset:0 auto 0 76px;width:244px;background:#f4f1f7;border-right:1px solid #e4dfea;z-index:9;display:flex;flex-direction:column}.workspace-title{height:88px;min-height:88px;margin:0 18px;padding:23px 0;border-bottom:1px solid #e0d9e8;position:relative}.workspace-title strong{font-size:18px;display:block}.workspace-title>span{font-size:12px;display:block;color:#968c9f;margin-top:5px}.workspace-title i{position:absolute;right:3px;top:30px;width:6px;height:6px;border-radius:50%;background:#a28bbd}.sidebar-content{padding:23px 14px;overflow:auto;flex:1}.section-label{font-size:11px;font-weight:600;color:#81718f;display:block;margin-bottom:12px}.space{margin-top:22px}.sidebar select,.sidebar input{font-size:12px;background:#faf8fc;min-height:37px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav button{justify-content:space-between;border:0;background:transparent;color:#867592;font-size:12px;padding:11px 10px}.sidebar nav button.selected{background:#e5dcec;color:#614477;font-weight:600}.sidebar nav button span{font-size:10px;color:#a18bab}.side-divider{height:1px;background:#e3dce9;margin:25px 2px}.side-note{display:flex;gap:9px;padding:23px 2px;font-size:11px;color:#9b8aa6;line-height:1.8}.small-dot{display:block;margin-top:6px;min-width:6px;height:6px;background:#a78bb7;border-radius:50%}.sidebar-footer{padding:14px 16px;border-top:1px solid #e5ddea;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#9b8ca5}.sidebar-footer button{min-height:26px;height:26px;padding:3px 7px;background:transparent}main{margin-left:320px;padding:0 28px;min-width:0}.page-heading{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.title,.header-actions{display:flex;align-items:center;gap:12px}h1{font-size:23px;letter-spacing:-.5px;font-weight:600}h1 span{font-size:15px;font-weight:400;color:#ab9ab6;margin-left:6px;letter-spacing:0}.header-actions{gap:8px}.header-actions button,.header-actions a{font-size:12px}.primary{background:#755c91;border-color:#755c91;color:white}.primary:hover{background:#674d82;border-color:#674d82}.badge{display:inline-flex;gap:5px;align-items:center;padding:4px 7px;border-radius:4px;font-size:10px;line-height:1.3;white-space:nowrap;background:#f1eaf7;color:#8b6f9e}.badge.quiet{background:#eee7f3;color:#9a83ac}.badge.good{background:#e8f3ee;color:#458675}.badge.warn{background:#fff3d9;color:#aa7d31}.badge.bad{background:#f9e9e7;color:#b0635b}.report-context{padding:25px 0 21px;display:flex;justify-content:space-between;align-items:center;gap:20px}h2{font-size:19px;font-weight:600;letter-spacing:-.3px}.report-context p{font-size:12px;color:#a18dad;margin-top:8px}#freshness{font-size:10px;color:#ac9bb5;white-space:nowrap}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:23px}.stat{background:white;border:1px solid #e6ddea;border-radius:6px;padding:16px 18px}.stat label{font-size:11px;color:#9b83aa;display:flex;align-items:center;gap:6px}.stat b{display:block;font-size:29px;font-weight:500;letter-spacing:-1px;color:#76548e;margin-top:12px;font-variant-numeric:tabular-nums}.stat small{display:block;font-size:10px;color:#b09cbd;margin-top:8px}.stat:nth-child(2) b{color:#418773}.sheet{background:white;border:1px solid #e5dcea;border-radius:7px;overflow:hidden}.sheet-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:55px;border-bottom:1px solid #e8dfef;padding:11px 16px;gap:12px}.sheet-toolbar strong{font-size:12px;font-weight:600;color:#7b5b8f}.sheet-toolbar small{font-size:10px;color:#b09bbc;margin-left:10px}.table-tools{display:flex;align-items:center;gap:8px}.table-tools button,.table-tools select{font-size:11px;min-height:30px;padding:6px 9px}.matrix-wrap{overflow:auto;max-height:calc(100vh - 382px);min-height:250px;scrollbar-color:#c2b1d3 #f5f1f9;overscroll-behavior:contain}table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}thead th{position:sticky;top:0;z-index:2;background:#f5eff9;text-align:right;font-size:10px;font-weight:500;color:#9b81ad;padding:13px 13px;border-bottom:1px solid #e3d6ec;line-height:1.6}thead th:first-child,td:first-child{text-align:left}th small{display:block;font-size:9px;color:#b39fc0}td{height:61px;text-align:right;padding:11px 13px;border-bottom:1px solid #eee7f3;color:#8c6c9f}tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:#f8f3fc}td:first-child{color:#70517f}td b{font-weight:600}td small{display:block;font-size:10px;color:#b29dbf;margin-top:5px}.product-cell{display:flex;align-items:center;gap:10px}.product-mark{width:29px;height:37px;display:flex;align-items:center;justify-content:center;background:#eee6f4;color:#aa90ba;border-radius:4px;font-size:12px}.num-free{background:#f7f2fb;color:#5d877c;font-weight:600}.row-link{background:transparent;border:0;padding:0;min-height:0;text-align:left;color:inherit;font-size:12px;display:block}.row-link:hover{background:transparent;text-decoration:underline}.table-footer{display:flex;justify-content:space-between;align-items:center;padding:11px 15px;background:#fcfaff;border-top:1px solid #ece3f3;font-size:10px;color:#ad98b9;gap:15px}.notice{display:flex;align-items:flex-start;gap:12px;margin:17px 0;padding:13px 16px;border:1px solid #e9dfef;border-radius:6px;background:#f5effa;color:#9a7aa9;font-size:11px;line-height:1.7}.notice strong{color:#846294;font-weight:600}.notice.warn{background:#fffaf0;border-color:#efe3c8;color:#a08753}.notes{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin:25px 2px 30px}.notes h3{font-size:12px;color:#8a6f9b;font-weight:500;margin-bottom:9px}.notes p{font-size:11px;line-height:1.8;color:#ad95ba}footer{display:flex;justify-content:space-between;gap:10px;padding:17px 0 23px;margin-top:22px;border-top:1px solid #e7deee;color:#b5a3bf;font-size:10px}.empty{padding:55px 20px;text-align:center;color:#a58eB3;line-height:1.9;font-size:13px}.empty button{margin:18px auto 0}.error{padding:13px 16px;background:#fff0ec;border:1px solid #efc9bf;color:#a14736;border-radius:5px;font-size:12px;margin:15px 0;line-height:1.6}.view-tabs{display:flex;gap:5px;padding:3px;border:1px solid #e5dcea;background:#eee6f4;border-radius:5px;width:max-content;margin-bottom:17px}.view-tabs button{border:0;background:transparent;font-size:12px;min-height:30px;color:#9f83b0}.view-tabs button.active{background:white;color:#78568d;box-shadow:0 1px 3px #42284c10}.stack{display:grid;gap:16px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel{background:#fff;border:1px solid #e5dcea;border-radius:6px;padding:22px}.panel h3{font-size:14px;color:#826190;margin-bottom:17px}.panel p{font-size:12px;color:#a28cb0;line-height:1.8}.panel label{margin:15px 0;font-size:12px;color:#9c81ab;display:block}.panel input,.panel select{margin-top:8px}.permission-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f0e9f5;font-size:12px;color:#9c83ac}.permission-row span{flex:1}.permission-row select{width:155px;font-size:11px;margin:0}.permission-row button{font-size:10px}.muted{color:#ac97b8}.inline-actions{display:flex;gap:6px;justify-content:flex-end}.inline-actions button{font-size:10px;min-height:27px;padding:4px 7px}dialog{border:1px solid #dfd0e8;border-radius:9px;box-shadow:0 20px 80px #2c183529;padding:25px;width:720px;max-width:calc(100vw - 30px);max-height:92vh;overflow:auto;color:var(--ink)}dialog::backdrop{background:#30213b48;backdrop-filter:blur(2px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.dialog-head h2{font-size:22px;color:#69467f}.dialog-head button{border:0;background:transparent;color:#a48db4;font-size:21px;min-height:29px;padding:0 6px}.dialog-sub{font-size:12px;color:#a58bb4;line-height:1.8;margin-bottom:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px 18px}.form-grid label,.field{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#9a7ca9}.wide{grid-column:1/-1}.dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:9px;border-top:1px solid #eadff1;padding-top:17px;margin-top:20px}.dialog-footer button{font-size:12px}.form-lines{margin:20px 0;border:1px solid #e8ddec;border-radius:5px;padding:12px}.form-lines h3{font-size:12px;color:#9572a8;margin-bottom:12px}.line{display:grid;grid-template-columns:1fr 100px 30px;gap:8px;margin:8px 0}.line select,.line input{font-size:12px}.line button{padding:0;min-width:0}.add-line{font-size:11px;min-height:28px;background:#f8f3fc;border-style:dashed;color:#9b78ac}.form-error{color:#ac4f4f;font-size:12px;line-height:1.6;margin-top:14px}.detail-meta{display:grid;grid-template-columns:1fr 1fr;gap:15px;background:#f8f3fc;padding:17px;border-radius:6px;margin:15px 0;font-size:12px;color:#8f71a0}.detail-meta label{display:block;font-size:10px;color:#b099be;margin-bottom:6px}.detail-table{margin:20px 0;overflow:auto}.detail-table table td{height:44px}.detail-section{margin-top:24px}.detail-section h3{font-size:13px;color:#9670aa;margin-bottom:13px}.timeline{border-left:1px solid #dfcfe9;margin-left:5px;padding-left:19px}.timeline p{font-size:12px;color:#9778a8;margin:15px 0;line-height:1.7}.timeline small{display:block;color:#b5a0c0;font-size:10px}.file-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;padding:10px 0;border-bottom:1px solid #eee5f4;gap:12px}.file-row small{font-size:10px;color:#b09bbc}.file-input{font-size:11px;margin-top:14px}.detail-note{font-size:12px;color:#92749f;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:13px 18px;background:#3c304d;color:white;border-radius:7px;font-size:12px;opacity:0;pointer-events:none;z-index:150;transition:opacity .15s;max-width:90vw}#toast.visible{opacity:1}.mobile-only{display:none}.help-list{font-size:13px;line-height:1.8;color:#92769f;padding-left:20px}.help-list li{margin:12px 0}.sheet td.wrap{white-space:normal;min-width:160px;max-width:320px;text-align:left;line-height:1.5}.mini-heading{display:flex;justify-content:space-between;align-items:center;margin:24px 0 13px;font-size:13px;color:#916cA3}.import-note{font-size:11px;line-height:1.7;color:#a186b1;margin-top:10px}.warn-text{color:#b18b39}.mobile-overlay{display:none}
@media(min-width:1600px){main{padding:0 38px}.sidebar{width:264px}main{margin-left:340px}.matrix-wrap{max-height:calc(100vh - 392px)}}
@media(max-width:1150px){.sidebar{width:204px}main{margin-left:280px;padding:0 19px}.title{gap:7px}h1{font-size:21px}h1 span{font-size:12px}.stat{padding:14px 12px}.header-actions .button{display:none}.stats{gap:9px}.settings-grid{grid-template-columns:1fr}#freshness{display:none}}
@media(max-width:800px){.sidebar{display:none;left:64px;width:244px;box-shadow:15px 0 35px #39264125}.sidebar.open{display:flex}.rail{width:64px;padding-top:22px}.brand{font-size:21px}.rail nav{padding:0 4px}.nav-item{width:56px}main{margin-left:64px;padding:0 15px}.page-heading{height:auto;min-height:82px;flex-wrap:wrap;padding:16px 0;gap:12px}.mobile-only{display:inline-flex;padding:0;min-height:27px;width:27px;border:0;background:transparent;color:#8d749d}.title{gap:6px}.title h1 span{display:none}.title .badge{font-size:9px}h1{font-size:21px}.header-actions{margin-left:auto}.header-actions button{font-size:11px}.report-context{padding:20px 0 17px}.report-context h2{font-size:17px}.report-context p{font-size:11px;line-height:1.6}.stats{grid-template-columns:1fr 1fr;gap:9px;margin-bottom:17px}.stat b{font-size:25px;margin-top:9px}.stat label{font-size:10px}.stat small{font-size:9px}.sheet-toolbar{flex-wrap:wrap;padding:11px;gap:10px}.sheet-toolbar small{display:none}.table-tools{flex-wrap:wrap}.matrix-wrap{max-height:520px;min-height:200px}.notes{grid-template-columns:1fr;gap:18px}.table-footer{line-height:1.6;flex-wrap:wrap}.notice{font-size:10px;padding:12px}.settings-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.detail-meta{grid-template-columns:1fr}.line{grid-template-columns:minmax(0,1fr) 65px 25px}.line select,.line input{padding:8px 6px;font-size:11px}dialog{padding:20px 16px;max-width:calc(100vw - 20px)}.dialog-head h2{font-size:19px}.permission-row{flex-wrap:wrap}.view-tabs{max-width:100%;overflow:auto}.file-row{flex-wrap:wrap}footer{font-size:9px;line-height:1.6}.dialog-footer{flex-wrap:wrap}}

/* Shared visual proportions and legibility from approved RNP B Final. */
.rail nav svg{width:20px;height:20px}.sidebar{width:264px}main{margin-left:340px}td{color:#685574;height:55px}.num-free{color:#427d6c}.row-link b{color:#715382}.permission-row{color:#816b90}
@media(max-width:1150px){.sidebar{width:204px}main{margin-left:280px}}
@media(max-width:800px){.sidebar{width:244px}main{margin-left:64px}}

.login-page{min-height:100vh;display:grid;place-items:center;background:#f4f0f8}.login-page main{margin:24px;width:390px;max-width:calc(100vw - 40px);min-width:0;padding:34px;border:1px solid #e0d5e8;background:white;border-radius:9px;box-shadow:0 15px 55px #5538660c}.login-brand{font-size:31px;font-weight:800;letter-spacing:-2px;margin-bottom:29px;color:#493553}.login-brand span{color:#a388c2}.login-page h1{font-size:23px}.login-page p{font-size:12px;line-height:1.7;color:#9d86ac;margin:12px 0}.login-page label{display:block;font-size:12px;color:#9376a2;margin:20px 0 8px}.login-page .primary{width:100%;margin-bottom:16px}.login-page .test-badge{font-size:10px;color:#a68bb6}.login-page #login-error{color:#ac514e}
