@font-face{font-family:"Open Sans Variable";font-weight:300 800;font-style:normal;font-display:swap;src:url("/assets/e03b9dfeffaeab23dec301df/open-sans-latin-wght-normal.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-weight:400;font-style:normal;font-display:swap;src:url("/assets/9366ce10b3bc88904de1304f/ibm-plex-mono-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-weight:500;font-style:normal;font-display:swap;src:url("/assets/6e85de851caf9e3528d5ad11/ibm-plex-mono-latin-500-normal.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Mono";font-weight:600;font-style:normal;font-display:swap;src:url("/assets/b39968f1f7b0b3ca37cf18ee/ibm-plex-mono-latin-600-normal.woff2") format("woff2")}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@property --scroll-fade-t{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --scroll-fade-b{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --scroll-fade-s{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --scroll-fade-e{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --scroll-fade-mask{syntax:"*";inherits:false}@property --shimmer-angle{syntax:"<angle>";inherits:true;initial-value:20deg}@property --shimmer-image{syntax:"*";inherits:false}@property --shimmer-text-fill{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}
:root{font-family:Inter,"Instrument Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#172e39;background:#f6f8f9;font-size:16px;--nav:#132e39;--ink:#162e39;--muted:#5b6c76;--line:#dce4e7;--soft:#f1f6f6;--teal:#08766d;--bg:#f6f8f9;--card:#fff;--radius:13px;--sidebar:235px;--accent:#08766d;--border:var(--line);--text:var(--ink);font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0;min-width:300px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button,a{color:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.56}a{text-decoration:none}svg{flex-shrink:0}h1,h2,h3,h4,p{margin:0}button{background:transparent}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #12a995;outline-offset:3px}.skip-link{position:fixed;z-index:20;top:-60px;left:10px;background:white;color:var(--teal);padding:12px 18px;border-radius:8px}.skip-link:focus{top:8px}[hidden]{display:none!important}
.sidebar{position:fixed;inset:0 auto 0 0;z-index:6;width:var(--sidebar);background:var(--nav);color:#d5e4e8;display:flex;flex-direction:column;padding:33px 17px 0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#43616a transparent}.side-head{margin:0 13px}.brand{display:flex;align-items:center;gap:10px;color:white;line-height:1}.brand>div{display:flex;flex-direction:column;gap:7px}.brand>div>span{font-size:31px;letter-spacing:-1.65px;font-weight:700;line-height:.92}.brand-period{color:#83dcca}.brand small{font-size:10px;line-height:1;font-weight:650;letter-spacing:3.6px;color:#b6d4d5}.institute-switch{border:1px solid #38535d;background:#1c3944;border-radius:9px;min-height:68px;margin:34px 0 15px;padding:11px 9px;display:flex;align-items:center;gap:9px;position:relative}.institute-switch>div{min-width:0;flex:1}.scope-kicker{display:block;margin-bottom:3px;font-size:12px;color:#b7cbd1}.institute-switch strong{display:block;font-size:13px;line-height:1.35;color:#f2f7f7;font-weight:600}.institute-switch>svg{color:#a7c2c8}.school-icon{width:32px;height:32px;display:grid;place-items:center;flex-shrink:0;border-radius:7px;background:#2c4b56;color:#c6dcdd}.institute-switch select{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.institute-switch select option{color:#18313a;background:white}.institute-switch:focus-within{outline:3px solid #63bcae;outline-offset:2px}.side-navigation{padding:1px 0 24px}.nav-group{margin:22px 0 0}.nav-group p{font-size:10px;text-transform:uppercase;letter-spacing:1.5px;font-weight:700;color:#a1bbc3;padding:0 13px;margin:0 0 9px}.nav-item{height:43px;display:flex;align-items:center;gap:13px;border-radius:7px;padding:0 13px;margin:3px 0;color:#c9dadf;font-size:14px;font-weight:500;transition:background .13s}.nav-item svg{color:#a2bdc5}.nav-item:hover{background:#203e49;color:white}.nav-item.active{background:#24504f;color:#ebfffa;font-weight:630;box-shadow:inset 3px 0 #62d6ba}.nav-item.active svg{color:#84e1c9}.side-bottom{margin-top:auto;padding:16px 3px 20px}.demo-marker{background:#26444a;border:1px solid #38585a;color:#c3e6dc;display:inline-flex;align-items:center;gap:8px;border-radius:20px;padding:5px 10px;font-size:12px;letter-spacing:.1px;margin:0 8px 19px}.demo-marker>span{width:6px;height:6px;background:#85dfbb;border-radius:50%}.side-person{display:flex;gap:10px;align-items:center;border-top:1px solid #34505a;padding:17px 8px 0}.side-person strong,.side-person small{display:block}.side-person strong{font-size:13px;color:#eef5f5;line-height:1.45}.side-person small{font-size:12px;color:#adc5cb;margin-top:2px}.side-avatar,.user-avatar{display:grid;place-items:center;border-radius:50%;font-weight:650;letter-spacing:.1px}.side-avatar{width:33px;height:33px;background:#355360;color:#e0ebed;font-size:12px;flex-shrink:0}.mobile-close,.drawer-mask,#mobile-toggle{display:none!important}
.shell-main{margin-left:var(--sidebar);min-height:100vh}.topbar{min-height:65px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 clamp(22px,3vw,47px)}.crumb,.top-actions,.searchbox{display:flex;align-items:center}.crumb{gap:12px;font-size:13px;white-space:nowrap}.crumb-parent,.crumb-sep,.crumb-icon{color:#657981}.crumb-icon{display:flex}.crumb-sep{color:#b0bec2}.crumb strong{font-weight:600}.top-actions{gap:16px}.search-container,.profile-anchor{position:relative}.searchbox{gap:8px;border:1px solid #e0e7e9;border-radius:7px;background:#f8fafb;padding:0 9px 0 12px;color:#6f828c;height:35px}.searchbox:focus-within{border-color:var(--teal)}.searchbox input{appearance:none;border:0;box-shadow:none;background:transparent;font-size:13px;color:var(--ink);width:149px;padding:4px 0;outline:none}.searchbox input:focus-visible{outline:none}.searchbox input::placeholder{color:#6e7f86}.searchbox kbd{font-family:inherit;line-height:19px;padding:0 4px;border:1px solid #d9e1e3;border-radius:4px;background:white;color:#63747d;font-size:11px;white-space:nowrap}.user-avatar{background:#e2f0ed;border:1px solid #cce3df;color:#1f645e;font-size:13px;width:34px;height:34px}.flyout{position:absolute;right:0;z-index:9;top:calc(100% + 8px);background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 35px #183c5224;overflow:hidden}.account-menu{width:250px;padding:15px}.account-heading{display:grid;gap:4px;margin-bottom:9px}.account-heading small,.search-results small{color:var(--muted-foreground)}.account-menu .btn{margin-top:8px}.search-results{width:300px}.search-results a{display:flex;align-items:center;gap:10px;padding:9px 12px}.search-results a:hover,.search-results a:focus-visible{background:#f0f7f6}.search-results small,.search-results strong{display:block;font-size:13px}.student-initial{width:31px;height:31px;display:grid;place-items:center;background:#e2f2ec;color:#185e4e;border-radius:7px;font-size:11px;font-weight:650}.search-empty{padding:14px;font-size:14px;color:var(--muted-foreground)}
.workspace{max-width:1680px;margin:0 auto;padding:33px clamp(22px,3vw,47px) 42px}.workspace:focus{outline:0}.title-section,.module-title,.section-line,.panel-heading,.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.page-heading .date-eyebrow{display:flex;align-items:center;gap:8px;text-transform:uppercase;letter-spacing:1.2px;font-size:10px;color:#42706e;font-weight:700;margin:0 0 10px}.date-eyebrow i{display:block;background:#429b8d;width:20px;height:2px}.workspace h1,.init-error h1{font-size:clamp(31px,3vw,45px);line-height:1.12;font-weight:650;letter-spacing:-1.65px}.page-heading p,.module-title p{margin:8px 0 0;font-size:15px;color:#65747d;line-height:1.5}.main-cta{align-self:center}.btn,.section-link,button.primary{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #ccd9db;color:#253e47;background:#fff;font-size:14px;border-radius:7px;min-height:37px;padding:8px 13px;line-height:1.3;font-weight:550;white-space:normal;text-align:center}.btn:hover,.section-link:hover{background:#f2f7f6;border-color:#98b5b3}.btn.primary,button.primary,.primary.btn{color:#fff;border-color:#08756d;background:#08776f}.btn.primary:hover,button.primary:hover{background:#06655e}.icon-btn{width:34px;height:34px;display:inline-grid;place-items:center;border:0;border-radius:7px;color:#48616b}.icon-btn:hover{background:#eef4f5}.section-line{margin:30px 0 14px;min-height:34px}.section-title h2,.panel-heading h2,#module-body h2{font-size:19px;font-weight:630;letter-spacing:-.5px;line-height:1.2}.scope-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.filter-chip{display:inline-flex;align-items:center;position:relative;gap:6px;color:#40565e;border:1px solid #d5dfe2;background:white;border-radius:7px;padding:0 9px;min-height:34px}.filter-chip select{border:0!important;appearance:none;background:none!important;color:#344952;font-size:13px;font-weight:540;outline:0;line-height:1.3;max-width:200px;min-width:0;padding:7px 0!important;cursor:pointer}.filter-chip:focus-within{outline:2px solid var(--teal);outline-offset:1px}.filter-chip svg:first-child{color:#647a83}.filter-chip svg:last-child{pointer-events:none}.module-title{margin:4px 0 25px}.module-title h1{font-size:36px}
.metric-grid{display:grid;grid-template-columns:minmax(225px,1.35fr) repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(112px,auto));gap:12px}.metric,.feature-metric,.panel{border:1px solid var(--line);border-radius:var(--radius);background:white}.metric,.feature-metric{transition:border-color .15s,box-shadow .15s}.metric:hover{border-color:#adc7c3;box-shadow:0 3px 12px #1d3d4b08}.metric{padding:16px 17px 14px;display:flex;flex-direction:column;min-width:0;justify-content:space-between;gap:5px}.metric-top,.hero-title{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:580;letter-spacing:-.1px}.metric-top{color:#41545e}.tile-icon,.hero-icon,.queue-symbol,.section-glyph{display:inline-grid;place-items:center;flex-shrink:0;border-radius:8px}.tile-icon{width:28px;height:28px}.mint{background:#e8f5ef;color:#277c65}.blue{background:#eaf1fb;color:#426c9a}.amber{background:#faf1dd;color:#966912}.rose{background:#f8ebeb;color:#a45b5b}.metric-value{margin-top:3px;color:var(--ink);font-size:clamp(24px,2.02vw,34px);font-weight:630;letter-spacing:-1.05px;line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.metric-value small,.feature-value small,.result-lines small{font-size:.48em;letter-spacing:.15px;font-weight:590;color:#5c7378;white-space:nowrap}.metric-foot{color:#6d7a83;font-size:12px;line-height:1.3}.feature-metric{grid-row:span 2;min-width:0;position:relative;isolation:isolate;overflow:hidden;background:#143f46;color:#effff8;border-color:#204d52;padding:20px 21px 16px;display:flex;flex-direction:column}.feature-metric:hover{border-color:#67a598;box-shadow:0 2px 12px #1a565d17}.hero-title{color:#d7ece9;font-weight:550;font-size:14px}.hero-icon{width:29px;height:29px;border-radius:7px;color:#a4e2d1;background:#29575a}.feature-value{font-size:clamp(29px,2.65vw,48px);font-weight:600;line-height:1.16;letter-spacing:-1.4px;margin-top:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.feature-value small{color:#b5d3cf;font-size:.37em;font-weight:550;letter-spacing:.35px}.feature-period{color:#b8cfcd;font-size:12px;margin-top:4px}.weekplot{position:relative;display:flex;gap:clamp(8px,1.1vw,18px);height:76px;min-height:60px;margin-top:auto;padding-top:9px;isolation:isolate}.plot-grid{position:absolute;z-index:-1;inset:9px 0 19px;background:repeating-linear-gradient(to top,rgba(144,197,188,.15) 0 1px,transparent 1px 48%)}.plot-col{flex:1;min-width:0;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;gap:5px}.plot-area{width:100%;height:100%;display:flex;align-items:flex-end;justify-content:center}.plot-area i{width:min(100%,32px);display:block;min-height:2px;background:#427274;border-radius:3px 3px 0 0}.plot-area .filled{background:#75d3b9}.plot-col:nth-child(2n+1) .filled{background:#a8e7d3}.plot-col span{font-size:10px;color:#bbd3d0;white-space:nowrap;font-variant-numeric:tabular-nums}.hero-foot{display:flex;align-items:center;gap:6px;color:#c4dcd8;font-size:11px;margin-top:10px}.series-dot{width:6px;height:6px;background:#83d7ba;border-radius:2px}
.lower-grid{display:grid;grid-template-columns:minmax(0,1.26fr) minmax(0,1fr);gap:14px;margin-top:20px}.panel{min-width:0}.panel-heading{justify-content:flex-start;padding:19px 20px 15px;gap:10px}.panel-heading h2{font-size:17px}.panel-heading p{font-size:12px;line-height:1.5;margin-top:3px;color:var(--muted-foreground)}.section-glyph{width:34px;height:34px;border:1px solid #dce7e7;background:#f3f7f7;color:#43666a}.queue-list{padding:0 17px 6px}.queue-line{display:flex;align-items:center;gap:11px;border-top:1px solid #e8edee;min-height:54px;padding:6px 1px}.queue-line:hover{background:#f6f9f9}.queue-symbol{width:29px;height:29px}.queue-text{display:grid;gap:3px;flex:1;min-width:0}.queue-text strong{font-size:14px;font-weight:570;color:#2a414c}.queue-text small{font-size:11px;color:#697b82}.queue-count{border:1px solid #dae4e4;border-radius:5px;background:#f7f9f9;padding:2px 7px;min-width:25px;text-align:center;font-size:12px;font-weight:600;color:#41545d}.queue-line>svg{color:#8ba0a7}.result-lines{display:block;padding:0 20px 12px}.result-lines>div{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;font-size:14px;border-top:1px solid #e8edee}.result-lines>div>span{color:#50616b}.result-lines strong{font-weight:590;white-space:nowrap;font-variant-numeric:tabular-nums}.result-lines small{font-size:10px}.result-lines>.result-total{color:#126657;border-radius:6px;background:#eef7f3;margin:3px -6px 0;padding:0 8px;border:0;min-height:43px}.result-total>span{color:#246353!important;font-weight:600}.result-total small{color:#3f7067}.sync-strip{display:flex;gap:20px;align-items:center;flex-wrap:wrap;color:#6b7a82;font-size:12px;margin:15px 2px 23px}.sync-strip>span{display:flex;align-items:center;gap:6px}.sync-strip strong{font-weight:550;color:#465a61}.recent{overflow:hidden}.section-link{margin-left:auto;min-height:31px;font-size:12px;padding:5px 10px}.reference{font-family:ui-monospace,monospace;font-size:12px;color:#556773}
#module-body{min-width:0}#module-body h3{font-size:17px;line-height:1.35;font-weight:610;letter-spacing:-.2px}#module-body h4{font-size:15px;font-weight:600}.toolbar{justify-content:flex-start;flex-wrap:wrap}.tabs{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:0 0 16px}.tabs button,.tabs a{display:inline-flex;align-items:center;border:1px solid transparent;border-radius:6px;padding:8px 10px;color:#4d646c;font-size:14px;font-weight:500}.tabs .active,.tabs [aria-selected=true],.tabs [aria-current=page]{color:#125e55;border-color:#c8dfda;background:#e8f3ef}.tabs button:hover,.tabs a:hover{background:#eaf2f1}.badge{border:1px solid #d3e5de;display:inline-block;border-radius:12px;background:#ecf5f0;color:#326554;padding:3px 8px;font-size:12px;line-height:1.3;font-weight:550}.field{display:flex;flex-direction:column;align-items:stretch;gap:6px;color:#354c55;font-size:14px;font-weight:560;min-width:0}.field input,.field select,.field textarea,.modal-body input:not([type=checkbox],[type=radio]),.modal-body select,.modal-body textarea,.toolbar input,.toolbar select{border:1px solid #c4d4d9;border-radius:6px;color:var(--ink);background:#fff;min-height:38px;padding:8px 10px;font-size:14px;max-width:100%;min-width:0;font-weight:400}.field textarea,.modal-body textarea{min-height:70px;resize:vertical}.field select,.modal-body select,.toolbar select{appearance:none;background:#fff url("data:image/svg+xml,%3Csvg width='14' height='14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m3 5 4 4 4-4' stroke='%234f656a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;padding-right:30px}.field input[type=checkbox],input[type=checkbox],input[type=radio]{accent-color:var(--teal)}.table-wrap{overflow:auto;max-width:100%;scrollbar-width:thin}.table-wrap table,table{border-collapse:collapse;width:100%;text-align:left;color:#354b55;font-size:14px}th,td{padding:11px 13px;vertical-align:middle;border-bottom:1px solid #e5ebed;line-height:1.4}th{background:#f4f7f8;color:#5b6d75;font-size:12px;font-weight:600}td{font-variant-numeric:tabular-nums}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcfc}.recent th,.recent td{padding-left:19px}.recent th:last-child,.recent td:last-child{text-align:right}.empty-cell,.denied-state p{color:#647781}.empty-cell{padding:18px;text-align:center;font-size:14px}.denied-state,.init-error{padding:28px;text-align:center}.denied-state svg{color:#48776e;margin-bottom:8px}.denied-state p{margin:10px auto 20px}.init-error{max-width:520px;margin:12vh auto}.init-error p{margin:16px auto;color:var(--muted-foreground)}
#sheet{width:min(740px,calc(100vw - 28px));padding:0;max-height:88dvh;border:1px solid #d1dedf;border-radius:14px;color:var(--ink);box-shadow:0 18px 90px #122d383d;background:#fff;overscroll-behavior:contain}#sheet::backdrop{background:#102b36a6}.modal-form{display:flex;flex-direction:column;max-height:87dvh}.modal-head,.modal-foot{display:flex;align-items:center;gap:10px;flex-shrink:0;padding:15px 20px;background:#fff;z-index:1}.modal-head{justify-content:space-between;border-bottom:1px solid var(--line)}.modal-head h2{font-size:21px;line-height:1.3;letter-spacing:-.45px;font-weight:620}.modal-body{padding:20px;min-height:0;overflow:auto;font-size:14px;line-height:1.55}.modal-body p{color:#52656d}.modal-body>.field+.field{margin-top:14px}.modal-foot{justify-content:flex-end;border-top:1px solid var(--line)}.form-error{color:#922d33;background:#fff3f2;border:1px solid #f0cac7;margin:0 20px 12px;padding:10px;border-radius:6px;font-size:14px}.loading-start{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:12px;color:#46646c}.loading-start i{border:2px solid #b4d9d3;border-top-color:#0b7267;border-radius:50%;width:22px;height:22px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#notices{position:fixed;bottom:20px;right:20px;z-index:14;display:grid;gap:6px;pointer-events:none}.notice{display:flex;align-items:center;gap:10px;border:1px solid #c2ded2;border-radius:8px;background:#eef8f2;box-shadow:0 5px 18px #153d4d18;color:#245b47;padding:10px 14px;max-width:360px;font-size:14px}.notice.error{background:#fff0ee;border-color:#e9c4bf;color:#8f3d37}
@media(min-width:1550px){:root{--sidebar:253px}.workspace{padding-top:42px}.metric-grid{grid-template-rows:repeat(2,minmax(132px,auto))}.weekplot{height:94px}.feature-metric{padding:23px 25px}.metric{padding:19px 22px}.nav-item{height:46px}.lower-grid{margin-top:24px}.queue-line{min-height:61px}.result-lines>div{min-height:52px}}
@media(max-width:1220px){:root{--sidebar:208px}.sidebar{padding:27px 12px 0}.topbar,.workspace{padding-left:24px;padding-right:24px}.metric-grid{grid-template-columns:minmax(200px,1.16fr) repeat(2,minmax(0,1fr));gap:10px}.feature-metric{padding:17px 15px}.metric{padding:13px}.metric-top,.hero-title{font-size:13px;gap:7px}.metric-value{font-size:25px}.feature-value{font-size:33px}.lower-grid{gap:12px}.scope-kicker,.school-icon+div strong{font-size:12px}.section-line{margin-top:25px}.side-person{padding-left:4px}}
@media(max-width:980px){:root{--sidebar:188px}.sidebar{padding-left:10px;padding-right:10px}.brand>div>span{font-size:27px}.institute-switch{padding:9px 6px;gap:6px}.nav-item{font-size:13px;padding:0 11px;gap:11px}.topbar,.workspace{padding-left:18px;padding-right:18px}.workspace{padding-top:24px}.metric-grid{grid-template-columns:minmax(170px,1fr) repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(106px,auto))}.feature-value{font-size:30px}.metric-value{font-size:22px}.metric-value small,.feature-value small{display:inline-block}.metric-top,.hero-title{font-size:12px}.tile-icon,.hero-icon{width:24px;height:24px}.tile-icon svg,.hero-icon svg{width:16px}.metric{padding:11px}.feature-metric{padding:13px}.scope-tools{gap:4px}.filter-chip{padding:0 7px}.filter-chip select{font-size:12px}.lower-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.result-lines{padding:0 13px 10px}.panel-heading{padding:15px 13px 12px}.queue-list{padding:0 11px 5px}.queue-text strong,.result-lines>div{font-size:13px}.searchbox input{width:121px}.section-title h2{font-size:17px}}
@media(max-width:810px){:root{--sidebar:220px}.sidebar{transform:translateX(-102%);transition:transform .18s ease}.shell-main{margin:0}.nav-open .sidebar{transform:translateX(0)}.nav-open .drawer-mask{display:block!important;position:fixed;inset:0;background:#112b3870;z-index:5}.side-head{display:flex;align-items:center;justify-content:space-between;margin:0 3px 0 11px}.mobile-close,#mobile-toggle{display:inline-grid!important}.mobile-close{color:#c0d6d9}.mobile-close:hover{background:#28444e}.crumb-icon{display:none}.topbar{min-height:57px}.crumb{gap:8px}.shell-main .workspace{padding-top:22px}.institute-switch{margin-top:25px}.nav-item{font-size:14px}.metric-grid{grid-template-columns:minmax(170px,1.18fr) repeat(2,minmax(0,1fr))}.metric{padding:14px}.feature-metric{padding:16px}.metric-value{font-size:26px}.feature-value{font-size:33px}.top-actions{gap:10px}.side-person{padding-bottom:3px}}
@media(max-width:630px){.workspace,.topbar{padding-left:15px;padding-right:15px}.crumb-parent,.crumb-sep,.searchbox kbd{display:none}.topbar{gap:6px}.crumb{font-size:12px;gap:4px}.searchbox{height:32px;padding:0 7px}.searchbox input{width:106px;font-size:12px}.top-actions{gap:6px}.user-avatar{width:30px;height:30px;font-size:11px}.title-section,.module-title{align-items:flex-start;flex-wrap:wrap;gap:12px}.page-heading h1,.module-title h1{font-size:32px}.page-heading p,.module-title p{font-size:14px}.main-cta{font-size:13px;min-height:34px;padding:7px 10px}.section-line{align-items:flex-start;flex-direction:column;gap:10px;margin:20px 0 10px}.scope-tools{gap:7px}.filter-chip select{max-width:165px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:9px}.feature-metric{grid-row:auto;grid-column:span 2;min-height:155px;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);grid-template-rows:auto auto auto;column-gap:14px;align-content:center;padding:15px}.hero-title{grid-column:1;grid-row:1;font-size:13px}.feature-value{grid-column:1;grid-row:2;margin:8px 0 0;font-size:31px}.feature-period{grid-column:1;grid-row:3}.weekplot{grid-column:2;grid-row:1/span 2;height:78px;margin:0;gap:5px}.plot-col span{font-size:8px}.hero-foot{grid-column:2;grid-row:3;font-size:9px;gap:4px;margin-top:4px}.metric{min-height:107px;padding:12px}.metric-top{font-size:12px}.metric-foot{font-size:11px}.metric-value{font-size:24px}.lower-grid{grid-template-columns:1fr;margin-top:12px;gap:12px}.panel-heading{padding:15px}.queue-list{padding:0 15px 6px}.queue-line{min-height:54px}.queue-text strong,.result-lines>div{font-size:14px}.sync-strip{gap:9px;margin:13px 0 17px}.sync-strip>span{font-size:11px;flex-wrap:wrap}.search-results{width:min(300px,calc(100vw - 30px));right:-36px}#sheet .modal-head,#sheet .modal-foot{padding:12px 14px}.modal-body{padding:14px}.module-title{margin-bottom:16px}.module-title .scope-tools{width:100%}.result-lines{padding:0 15px 12px}}
@media(max-width:370px){.workspace,.topbar{padding-left:10px;padding-right:10px}.searchbox input{width:86px}.feature-metric{grid-template-columns:1fr}.feature-metric .weekplot,.feature-metric .hero-foot{grid-column:1;grid-row:auto}.feature-metric .weekplot{height:48px;margin-top:7px}.feature-value{margin-top:5px}.metric{padding:9px}.tile-icon{width:21px;height:21px}.metric-top{gap:5px}.metric-value{font-size:22px}.filter-chip select{max-width:131px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
@media print{body,.shell-main,.workspace{background:white!important;min-width:0!important;margin:0!important;padding:0!important}.sidebar,.topbar,.scope-tools,.main-cta,.drawer-mask,#notices,.skip-link,.modal-foot,.modal-head button,.tabs,.toolbar{display:none!important}.feature-metric,.badge{-webkit-print-color-adjust:exact;print-color-adjust:exact}.feature-metric{color:#152f37;border-color:#819da3;background:white}.feature-value small,.hero-title,.feature-period,.hero-foot{color:#33555b}.panel,.metric{break-inside:avoid}.printing-dialog #app{display:none}.printing-dialog #sheet[open]{position:static!important;max-height:none;width:100%;height:auto;max-width:100%;padding:0;border:0;box-shadow:none}.printing-dialog .modal-form,.printing-dialog .modal-body{max-height:none;overflow:visible}.printing-dialog #sheet::backdrop{background:white}.workspace::after{content:'Demonstração · Instituto Software';display:block;text-align:right;font-size:10px;color:#5e6e75;margin-top:12pt}}
.invitation{max-width:480px;margin:15vh auto;padding:36px}.invitation .standalone-brand{display:inline-grid;place-items:center;width:60px;height:60px;background:var(--nav);border-radius:12px;margin-bottom:14px}.invitation h1{font-size:30px}.invitation p{line-height:1.65}.invitation .form-error{margin:14px 0 0}.invitation .btn{margin-top:4px}@media(max-width:550px){.invitation{margin:11vh 14px}}

.finance-view, .f-dialog {
  --f-ink: var(--foreground, #242b3d);
  --f-muted: var(--muted-foreground, #5b6879);
  --f-line: var(--border, #dbe2e9);
  --f-teal: var(--primary, #116762);
  --f-surface: var(--card, #fff);
  --f-fill: color-mix(in oklch, var(--surface-muted, var(--soft, #eef1f5)) 65%, var(--f-surface));
  --f-hover: color-mix(in oklch, var(--he-accent, var(--accent, #dcf1ef)) 60%, var(--f-surface));
  color: var(--f-ink);
}
.f-tabs {
  display: flex;
  gap: .125rem;
  overflow: auto;
  border-bottom: 1px solid var(--f-line);
  padding: 0 .5rem;
  margin: 0 0 1rem;
  scrollbar-width: thin;
}
.f-tabs button, .f-tabs a {
  flex: none;
  padding: .5rem .75rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--f-muted);
  font: inherit;
  font-size: .8125rem;
  font-weight: 500;
  white-space: nowrap;
}
.f-tabs a:hover, .f-tabs button:hover { border-bottom-color: var(--f-line); color: var(--f-ink); }
.f-tabs [aria-current], .f-tabs [aria-current]:hover { border-bottom-color: var(--f-teal); color: var(--f-teal); }
.f-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--f-line);
  border-radius: .375rem;
  background: var(--f-surface);
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
}
.f-panelhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .5rem .875rem;
  border-bottom: 1px solid var(--f-line);
  background: var(--f-fill);
}
.f-panelhead h2, .f-dialog h2 { margin: 0; color: var(--f-ink); font-size: .8125rem; font-weight: 600; }
.f-panelhead p { margin: .2rem 0 0; color: var(--f-muted); font-size: .75rem; line-height: 1.5; }
.f-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.f-price, .f-numeric, .f-document-ref, .bank-money {
  font-family: var(--font-mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.f-price { font-weight: 500; }
.f-table { overflow: auto; }
.f-table table, .finance-view .table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font: inherit;
  font-size: .8125rem;
}
.f-table :is(th, td), .finance-view .table-wrap :is(th, td) {
  padding: .375rem .75rem;
  border-bottom: 1px solid color-mix(in oklch, var(--f-line) 70%, transparent);
  color: var(--f-ink);
  vertical-align: middle;
  text-align: left;
  line-height: 1.4;
}
.f-table th, .finance-view .table-wrap th {
  padding-block: .5rem;
  background: var(--f-fill);
  color: var(--f-muted);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.f-table td:has(> .f-price), .finance-view .table-wrap td:has(> .f-price),
.f-table :is(th, td).f-numeric { text-align: right; }
.f-table small, .finance-view .table-wrap small { display: block; color: var(--f-muted); font-size: .75rem; }
.f-table tbody tr:nth-child(even), .finance-view .table-wrap tbody tr:nth-child(even) { background: color-mix(in oklch, var(--f-fill) 55%, var(--f-surface)); }
.f-table tbody tr:hover, .finance-view .table-wrap tbody tr:hover { background: var(--f-hover); }
.finance-list table { min-width: max-content; }
.finance-list-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  min-height: 3rem;
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--f-line);
}
.finance-list-tools > p { margin-left: auto; color: var(--f-muted); font-size: .75rem; }
.f-table tfoot, .finance-view .table-wrap tfoot { border-top: 2px solid var(--f-line); background: var(--f-fill); font-weight: 600; }
.f-table tfoot td, .finance-view .table-wrap tfoot td { padding-block: .5rem; }
.hedge .finance-view .table-wrap th {
  padding: .5rem .75rem;
  font-family: inherit;
  font-size: .6875rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.hedge .finance-view .table-wrap td { padding: .375rem .75rem; }
.hedge .finance-view .table-wrap tfoot td { padding-block: .5rem; background: var(--f-fill); }
.hedge .he-record-drawer:has(.finance-view) :is(.workspace-task-head, .workspace-task-foot) {
  background: color-mix(in oklch, var(--muted) 60%, var(--card));
}
.f-empty { padding: 2rem .75rem !important; text-align: center !important; color: var(--f-muted) !important; }
.f-chip {
  --status-color: var(--f-muted);
  display: inline-flex;
  align-items: center;
  border-radius: .125rem;
  padding: .125rem .375rem;
  background: color-mix(in oklch, var(--status-color) 7%, var(--f-surface));
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--status-color) 20%, transparent);
  color: var(--status-color);
  font-size: .6875rem;
  font-weight: 500;
  white-space: nowrap;
}
.f-chip.green { --status-color: oklch(.43 .095 166); }
.f-chip.blue { --status-color: oklch(.44 .095 234); }
.f-chip.amber { --status-color: oklch(.46 .125 51); }
.f-chip.red { --status-color: oklch(.5 .17 29); }
.dark .f-chip.green { --status-color: oklch(.83 .105 164); }
.dark .f-chip.blue { --status-color: oklch(.81 .11 229); }
.dark .f-chip.amber { --status-color: oklch(.83 .13 75); }
.dark .f-chip.red { --status-color: oklch(.79 .13 27); }
.f-link {
  display: inline;
  padding: .125rem 0;
  border: 0;
  background: none;
  color: var(--f-teal);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.f-link:hover { text-decoration: underline; }
.f-filter, .f-reportLabel { padding: .5rem .75rem; }
.f-filter input[type=search] { width: min(100%, 20rem); }
.finance-view :is(input:not([type=checkbox]), select, textarea),
.f-dialog :is(input:not([type=checkbox]), select, textarea),
.workspace-task .f-field :is(input:not([type=checkbox]), select, textarea) {
  min-width: 0;
  max-width: 100%;
  min-height: 2rem;
  padding: .375rem .625rem;
  border: 1px solid var(--input, #cbd6df);
  border-radius: .25rem;
  background: var(--card, #fff);
  color: var(--foreground, #242b3d);
  font: inherit;
  font-size: .8125rem;
}
.f-dialog :focus-visible, .finance-view :focus-visible { outline: 2px solid var(--ring, #11766b); outline-offset: 2px; }
.f-subhead, .f-dialog h3 { color: var(--f-ink); font-size: .8125rem; font-weight: 600; }
.f-subhead { margin: 1rem .875rem .5rem; }
.f-reportLabel { color: var(--f-muted); font-size: .75rem; }
.f-dialog {
  position: fixed;
  width: min(47rem, calc(100vw - 1.5rem));
  max-height: min(90dvh, 60rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--f-line);
  border-radius: .375rem;
  background: var(--f-surface);
  box-shadow: 0 20px 90px rgb(0 0 0 / .18);
  font-family: inherit;
}
.f-dialog::backdrop { background: rgb(10 31 39 / .47); }
.f-dialog > form > header { position: relative; padding: .875rem 3rem .875rem 1rem; border-bottom: 1px solid var(--f-line); background: var(--f-fill); }
.f-dialog h2 { font-size: 1rem; }
.f-dialog .f-x { position: absolute; top: .5rem; right: .75rem; width: 2rem; height: 2rem; border: 0; background: transparent; color: var(--f-muted); font-size: 1.25rem; cursor: pointer; }
.f-dialog .f-micro { margin-bottom: .25rem; color: var(--f-teal); font-size: .75rem; font-weight: 500; }
.f-dialogbody { display: grid; gap: .75rem; padding: 1rem; }
.f-dialogbody h3 { margin: 0; }
.f-dialog footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: .5rem; padding: .75rem 1rem; border-top: 1px solid var(--f-line); background: var(--f-fill); }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.f-field { display: flex; flex-direction: column; align-items: stretch; gap: .375rem; min-width: 0; color: var(--f-muted, var(--muted-foreground, #526275)); font-size: .75rem; font-weight: 500; }
.f-filter .f-field { max-width: 25rem; }
.f-field :is(input, select) { font-weight: 400; }
.f-pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .75rem; margin: 0; line-height: 1.4; }
.f-panel > .f-pairs { padding: .75rem .875rem; }
.f-pairs dt { color: var(--f-muted); font-size: .75rem; }
.f-pairs dd { margin: .125rem 0 0; font-size: .8125rem; font-weight: 500; overflow-wrap: anywhere; }
.f-note { padding: .625rem .75rem; border-radius: .25rem; background: var(--f-hover, var(--soft, #edf3f5)); color: var(--f-teal, var(--primary, #116762)); font-size: .8125rem; line-height: 1.5; }
.f-panel > .f-note { margin: .75rem .875rem; }
.f-error { margin: .375rem 1rem .75rem; padding: .625rem; border-radius: .25rem; background: color-mix(in oklch, var(--destructive, #ae332c) 8%, var(--f-surface)); color: var(--destructive, #ae332c); }
.f-picklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; max-height: 12rem; overflow: auto; }
.f-picklist label, .f-check { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; }
.f-dialog fieldset { padding: .75rem; border: 1px solid var(--f-line); border-radius: .25rem; }
.f-dialog legend { padding: 0 .2rem; color: var(--f-muted); font-size: .8125rem; }
.f-entry, .f-item { display: grid; grid-template-columns: 2fr 1fr 1fr auto; align-items: end; gap: .5rem; margin-bottom: .5rem; }
.f-item { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: .5rem; border-radius: .25rem; background: var(--f-fill); }
.f-xline { justify-self: end; padding: .25rem .5rem; border: 0; border-radius: .25rem; background: transparent; color: var(--destructive, #ae332c); font-size: 1rem; cursor: pointer; }
.f-dialog .f-allocate { width: 7.5rem; text-align: right; }
.f-dialogbody .f-table { max-height: 23rem; border: 1px solid var(--f-line); border-radius: .25rem; }

@media (max-width: 720px) {
  .f-panelhead { align-items: start; flex-wrap: wrap; }
  .f-dialog .f-grid, .f-picklist { grid-template-columns: minmax(0, 1fr); }
  .f-entry, .f-item { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .5rem; border: 1px solid var(--f-line); }
}
@media print {
  body:has(.f-dialog[open]) #app, body:has(.f-dialog[open]) #notices,
  body:has(.f-dialog[open]) .f-dialog:not(:last-of-type),
  .f-dialog footer, .f-dialog .f-x, .f-dialog [data-printdoc],
  .finance-view .f-tabs, .finance-view .f-actions, .finance-view .f-filter { display: none !important; }
  .f-dialog[open] { position: static; display: block; width: 100%; max-width: none; max-height: none; border: 0; box-shadow: none; }
  .f-dialog::backdrop { background: white; }
  .f-dialogbody .f-table, .f-table { overflow: visible; max-height: none; }
  .f-panel { border: 0; box-shadow: none; }
  .f-table th, .f-table td { padding: 4pt; font-size: 8.5pt; }
  .finance-view .f-link { color: #111; text-decoration: none; }
  .f-panelhead { padding-left: 0; }
  .f-reportLabel { display: block; }
  .f-table thead { display: table-header-group; }
  .f-table tr { break-inside: avoid; }
  .f-dialog .f-dialogbody { padding: 0; }
}

.he-dashboard,.he-dashboard-main,.he-dashboard-rail {display:grid;gap:16px;align-content:start;min-width:0;}
.he-dashboard-columns,.he-dashboard-pair {display:grid;min-width:0;gap:16px;}
.he-kpis {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden;border:1px solid var(--border);border-radius:6px;background:var(--card);box-shadow:0 1px 2px #0001;}
.he-kpi {position:relative;display:flex;flex-direction:column;gap:4px;min-width:0;padding:12px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);}
.he-kpi:nth-child(2n) {border-right:0;}
.he-kpi:nth-last-child(-n+2) {border-bottom:0;}
.he-kpi::before {content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--chart-1);}
.he-kpi.he-tone-purple::before {background:var(--chart-2);}
.he-kpi.he-tone-gold::before {background:var(--chart-3);}
.he-kpi:hover {background:color-mix(in oklch,var(--accent) 40%,var(--card));}
.he-kpi-label {display:flex;align-items:center;gap:6px;color:var(--muted-foreground);font-size:.75rem;font-weight:500;}
.he-kpi>strong,.he-aging-summary>div:nth-child(2)>strong {font:600 1rem/1.25 var(--font-mono);letter-spacing:-.035em;white-space:nowrap;tabular-nums:normal;}
.he-kpi small,.he-aging-summary small {font:400 .75rem/1.35 var(--font-sans);color:var(--muted-foreground);letter-spacing:0;}
.he-kpi:hover>small {color:var(--primary);}
.he-finance-rows,.he-control-rows {margin:0;font-size:.8125rem;}
.he-finance-rows>div,.he-control-rows>div {display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 14px;}
.he-finance-rows>div+div,.he-control-rows>div+div {border-top:1px solid var(--border);}
.he-finance-rows dt a {font-weight:500;}
.he-finance-rows dt a:hover {color:var(--primary);text-decoration:underline;}
.he-finance-rows dt small,.he-control-rows dt {display:block;color:var(--muted-foreground);}
.he-finance-rows dt small {font-size:.75rem;}
.he-finance-rows dd,.he-control-rows dd,.he-aging-list strong {margin:0;font:600 .8125rem var(--font-mono);white-space:nowrap;}
.he-control-rows dd {font-weight:400;}
.he-control-rows div:last-child dd {font-family:var(--font-sans);}
.he-aging {padding:14px;}
.he-aging-summary {display:flex;gap:12px;align-items:center;padding-bottom:12px;}
.he-aging-summary small {display:block;}
.he-aging-summary>div:nth-child(2)>strong {display:block;font-size:1.125rem;}
.he-aging-summary strong small {display:inline;}
.he-aging-ring {flex:none;display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:conic-gradient(var(--chart-3) var(--overdue),var(--muted) 0);}
.he-aging-ring strong {display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--card);font:600 .75rem var(--font-mono);}
.he-aging-list {display:grid;gap:8px;}
.he-aging-list>div {display:grid;grid-template-columns:1fr auto;gap:4px;font-size:.75rem;color:var(--muted-foreground);}
.he-aging-list strong {font-size:.75rem;font-weight:500;color:var(--foreground);}
.he-aging-list i {grid-column:1/-1;height:4px;border-radius:4px;background:var(--muted);overflow:hidden;}
.he-aging-list i::before {content:"";display:block;width:var(--aging-width);height:100%;border-radius:4px;background:var(--chart-1);}
.he-aging-list .he-aging-late::before {background:var(--chart-3);}
.he-shortcut-list {display:grid;gap:1px;background:var(--border);}
.he-shortcut,.he-reminder {display:flex;gap:10px;align-items:center;padding:10px 14px;background:var(--card);color:var(--primary);font-size:.8125rem;font-weight:500;}
.he-shortcut:hover,.he-reminder:hover {background:color-mix(in oklch,var(--accent) 50%,var(--card));}
.he-reminder {gap:12px;border-bottom:1px solid var(--border);font-weight:400;}
.he-reminder:last-child {border-bottom:0;}
.he-reminder strong {flex:none;min-width:36px;padding:2px 6px;border-radius:3px;background:var(--muted);color:var(--foreground);text-align:center;font:600 .875rem/1.3 var(--font-mono);}
.he-reminder strong.he-urgent {background:color-mix(in oklch,var(--destructive) 10%,var(--card));color:var(--destructive);}
.he-reminder span {flex:1;}
.he-reminder svg {color:var(--muted-foreground);}
.he-pill {display:inline-flex;padding:2px 6px;background:var(--muted);border-radius:4px;font:500 .6875rem/1.35 var(--font-sans);color:var(--muted-foreground);white-space:nowrap;}
.he-pill-ok {background:color-mix(in oklch,var(--chart-1) 17%,var(--card));color:var(--primary);}
.he-pill-info {background:color-mix(in oklch,var(--chart-2) 14%,var(--card));color:var(--chart-2);}
.he-journal .table-wrap :is(td,th):last-child {text-align:right;}
.he-journal tbody td:nth-child(2) a {color:var(--primary);font:400 .75rem var(--font-mono);}
.he-journal tbody td:last-child {font-family:var(--font-mono);white-space:nowrap;}
.he-journal tbody td:nth-child(2) a:hover {text-decoration:underline;}
.dashboard-receipt-content {padding:12px;}
.he-receipt-chart {height:220px;padding:16px 8px 22px 60px;min-width:0;color:var(--muted-foreground);}
.he-chart-plot {position:relative;height:100%;}
.he-chart-axis,.he-chart-bars {position:absolute;inset:0;}
.he-chart-rule {position:absolute;bottom:var(--axis-y);left:0;width:100%;border-top:1px dashed var(--border);}
.he-chart-rule span {position:absolute;right:calc(100% + 6px);font-size:.6875rem;white-space:nowrap;transform:translateY(-55%);}
.he-chart-bars {display:flex;justify-content:space-around;gap:4px;}
.he-chart-col {position:relative;min-width:0;flex:1;}
.he-chart-space,.he-chart-hit {position:absolute;inset:0;}
.he-chart-hit:focus-visible,.he-chart-hit:hover {background:color-mix(in oklch,var(--muted) 54%,transparent);outline-offset:-2px;}
.he-chart-hit i {position:absolute;bottom:var(--bar-start);height:var(--bar-height);width:min(56px,75%);left:50%;transform:translateX(-50%);display:block;background:var(--chart-1);border-radius:3px 3px 0 0;}
.he-chart-hit>span {display:none;position:absolute;z-index:2;top:7px;left:50%;transform:translateX(-50%);width:max-content;max-width:150px;padding:5px 6px;background:var(--popover);color:var(--popover-foreground);border:1px solid var(--border);border-radius:5px;font:.6875rem var(--font-mono);box-shadow:0 2px 6px #0002;}
.he-chart-hit:hover>span,.he-chart-hit:focus-visible>span {display:block;}
.he-chart-col:first-child .he-chart-hit>span {left:0;transform:none;}
.he-chart-col:last-child .he-chart-hit>span {left:auto;right:0;transform:none;}
.he-chart-label {position:absolute;top:100%;left:50%;transform:translateX(-50%);padding-top:6px;font-size:.6875rem;white-space:nowrap;}
@media(min-width:640px){
  .he-kpi {padding:16px;}
  .he-kpi>strong {font-size:1.25rem;}
  .he-shortcut-list {grid-template-columns:1fr 1fr;}
}
@media(min-width:1024px){
  .he-kpis {grid-template-columns:repeat(4,minmax(0,1fr));}
  .he-kpi {border-bottom:0;}
  .he-kpi:nth-child(2n) {border-right:1px solid var(--border);}
  .he-kpi:last-child {border-right:0;}
  .he-kpi>strong {font-size:1.5rem;}
  .he-dashboard-pair {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(min-width:1280px){
  .he-dashboard-columns {grid-template-columns:minmax(0,1fr) 340px;}
  .he-shortcut-list {grid-template-columns:1fr;}
}
@media(max-width:420px){
  .he-kpi>strong {font-size:clamp(.8125rem,3.8vw,1rem);}
  .he-kpi>strong small {font-size:.65rem;}
  .he-receipt-chart {padding-left:43px;}
}

.workspace, .workspace-task, .workspace-index { min-width: 0; }
.workspace .module-title { margin-bottom: 14px; gap: 10px 20px; }
.workspace .module-title h1, .workspace .dashboard-title h1 { font-size: 24px; letter-spacing: -.45px; line-height: 1.25; }
.workspace .module-title p, .workspace .dashboard-title p { font-size: 13px; margin-top: 3px; }
.workspace-trail { display: flex; gap: 7px; align-items: center; margin-bottom: 4px; color: var(--muted-foreground); font-size: 12px; line-height: 1.4; }
.workspace-trail a, .workspace-parent { color: var(--teal); font-size: 12px; }
.workspace-trail a:hover, .workspace-parent:hover { text-decoration: underline; }
.workspace-trail strong { font-weight: 550; }
.scope-range { color: var(--muted-foreground); align-self: center; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.workspace-index { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,255px),1fr)); gap: 12px; }
.workspace-index-link { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; }
.workspace-index-link:hover { border-color: #8eaaa9; background: #f8fbfa; }
.workspace-index-link > svg { color: var(--teal); }
.workspace-index-link > svg:last-child { margin-left: auto; rotate: -90deg; color: var(--muted-foreground); }
.workspace-index-link strong, .workspace-index-link small { display: block; line-height: 1.4; }
.workspace-index-link strong { font-size: 14px; }
.workspace-index-link small { font-size: 12px; color: var(--muted-foreground); margin-top: 2px; }
.workspace-task { margin-top: 8px; }
.workspace-task-head, .workspace-task-foot { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.workspace-task-head { border-bottom: 1px solid var(--line); }
.workspace .workspace-task h2 { font-size: 19px; letter-spacing: -.25px; margin: 0; }
.workspace-task-head p { margin-top: 4px; color: var(--muted-foreground); font-size: 13px; line-height: 1.45; }
.workspace-task-fields { padding: 16px; }
.workspace-task-fields fieldset { min-width: 0; }
.workspace-task-foot { border-top: 1px solid var(--line); align-items: center; justify-content: flex-end; }
.workspace-task .btn { min-height: 34px; padding: 6px 11px; font-size: 13px; }
.workspace-task .form-error { margin: 0 16px 12px; }
.workspace table :is(td, th), .scope-tools { font-variant-numeric: tabular-nums; }

@media (max-width: 600px) {
  .workspace .module-title { align-items: start; }
  .workspace .module-title h1, .workspace .dashboard-title h1 { font-size: 22px; }
  .workspace-task-head, .workspace-task-foot, .workspace-task-fields { padding: 12px; }
  .workspace .workspace-task h2 { font-size: 18px; }
}
@media print {
  body:not(.demo-mode) .workspace::after { content: 'Instituto Software · Documento interno'; }
  .workspace-task-head .workspace-back, .workspace-task-foot, .workspace-trail { display: none !important; }
}

.service-fee-fields,.service-fee-details { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:16px 24px; }
.service-fee-fields[hidden] { display:none; }
.service-fee-fields > div,.service-fee-details > div { min-width:0; }
.service-fee-label,.service-fee-details dt { display:block;color:var(--muted-foreground);font-size:.8125rem; }
.service-fee-fields strong,.service-fee-details dd { margin:.25rem 0 0;overflow-wrap:anywhere; }
.service-fee-summary h3 { margin:0; }
.service-fee-total { display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px 24px;padding:.85rem 0;border-bottom:1px solid var(--line); }
.service-fee-total strong { white-space:nowrap;font-size:1.2rem;font-variant-numeric:tabular-nums; }
.service-fee-note { color:var(--muted-foreground); }
.service-fee-note:empty { display:none; }
.service-fee-actions { margin-top:1rem; }

.workspace-export-bar {display:flex;justify-content:flex-end;padding:.35rem .75rem;background:var(--card, Canvas);border-bottom:1px solid var(--border,#d8dce5)}
.workspace-export {position:relative;width:max-content;margin-inline-start:auto}
.workspace-export>summary {cursor:pointer;list-style:none;font-size:.8rem}
.workspace-export>summary::-webkit-details-marker {display:none}
.workspace-export-options {position:absolute;inset-inline-end:0;top:calc(100% + .25rem);min-width:9.5rem;z-index:12;display:grid;padding:.25rem;border:1px solid var(--border,#c7cedb);border-radius:.375rem;background:var(--card,Canvas);color:var(--foreground,CanvasText);box-shadow:0 .25rem 1rem #19283c20}
.workspace-export-options button {background:transparent;border:0;border-radius:.2rem;text-align:start;font:inherit;font-size:.82rem;color:inherit;padding:.45rem .65rem;cursor:pointer}
.workspace-export-options button:is(:hover,:focus-visible) {background:var(--accent,#e2eeee);color:var(--primary,#10625d)}
@media print {.workspace-export,.workspace-export-bar {display:none}}

.chart-page { min-width: 0; padding: 0; overflow: clip; }
.chart-head { gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.chart-head h2 { margin: 0; color: var(--ink); font-size: 1.15rem; }
.chart-head p { margin: 5px 0 0; color: var(--muted); font-size: .875rem; }
.chart-actions, .chart-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chart-body { min-width: 0; }
.chart-body h3, [data-chart-proposal] h3 { margin: 18px 20px 10px; font-size: .95rem; }
.chart-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; padding: 14px 20px; }
.chart-filters .field:first-child { flex: 1 1 245px; }
.chart-filters .field { flex: 0 1 148px; margin: 0; }
.chart-check { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; color: var(--ink); font-size: .875rem; }
.chart-check input { accent-color: var(--teal); }
.chart-table table { min-width: 630px; }
.chart-table .chart-group-row th { padding: 4px 15px; background: #f2f5f8; }
.chart-group-button, .chart-disclosure {
  min-height: 29px; color: var(--ink); border: 0; border-radius: 4px; background: transparent; font: inherit; cursor: pointer;
}
.chart-group-button { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 2px 6px; font-size: .87rem; font-weight: 690; }
.chart-group-button span { width: 13px; text-align: center; color: var(--teal); font-size: 1rem; }
.chart-disclosure, .chart-disclosure-placeholder { display: inline-grid; place-items: center; flex: 0 0 25px; width: 25px; }
.chart-disclosure { color: var(--teal); font-size: 1.05rem; }
.chart-group-button:hover, .chart-disclosure:hover { background: #e5eeef; }
.chart-cell-identity { display: flex; align-items: center; padding-left: calc(var(--account-depth, 0) * 17px); }
.chart-account-link { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; font-weight: 600; }
.chart-code { font-variant-numeric: tabular-nums; font-size: .83rem; color: #526177; }
.chart-summary-row td { background: #f7f9fb; font-weight: 640; }
.chart-amount { display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 670; }
.chart-status { display: inline-block; padding: 3px 7px; background: #e8f3ed; color: #236245; border-radius: 4px; font-size: .77rem; font-weight: 650; }
.chart-status.muted { background: #edf0f4; color: #4c596c; }
.chart-tabs { border-bottom: 1px solid var(--line); padding: 0 16px; gap: 2px 10px; }
.chart-tabs a { color: var(--muted); display: inline-block; padding: 12px 6px 10px; text-decoration: none; font-size: .875rem; font-weight: 630; border-bottom: 2px solid transparent; }
.chart-tabs a[aria-current] { color: var(--teal); border-bottom-color: var(--teal); }
.chart-detail { min-width: 0; }
.chart-facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); margin: 0; gap: 13px 16px; padding: 16px 20px; }
.chart-facts div { min-width: 0; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.chart-facts dt { margin-bottom: 6px; color: var(--muted); font-size: .8rem; }
.chart-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.chart-detail-note { display: block; color: var(--muted); margin-top: 4px; }
.chart-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; max-width: 980px; }
.chart-span { grid-column: 1 / -1; }
.chart-fields .field { margin: 0; }
.chart-download { align-self: end; }
.chart-migration { border: 1px solid var(--line); background: var(--soft); padding: 12px; border-radius: 6px; }
.chart-migration p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.chart-migration .field { margin-top: 7px; }
[data-chart-proposal] { min-width: 0; }
[data-chart-proposal] h3, [data-chart-proposal] p { margin-left: 0; }
[data-chart-proposal] .chart-table table { min-width: 540px; }
@media (max-width: 620px) {
  .chart-head { align-items: flex-start; padding: 14px; }
  .chart-filters { padding: 12px 14px; gap: 8px; }
  .chart-filters .field { flex: 1 1 125px; }
  .chart-fields { grid-template-columns: minmax(0,1fr); }
  .chart-facts { padding: 14px; }
  .chart-table table { min-width: 600px; }
}

.hedge .chart-page {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:.375rem;
  box-shadow:0 1px 2px #0000000d;
}
.hedge .chart-head { padding:.5rem .875rem; background:color-mix(in oklch,var(--muted) 60%,transparent); }
.hedge .chart-head h2 { color:var(--foreground); font-size:.8125rem; }
.hedge .chart-head p { color:var(--muted-foreground); font-size:.75rem; }
.hedge .chart-facts dt,.hedge .chart-detail-note { color:var(--muted-foreground); }
.hedge .chart-facts dd { font-size:.8125rem; }
.hedge .chart-list-controls {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.5rem .75rem;
  padding:.5rem .75rem;
  border-bottom:1px solid var(--border);
}
.hedge .chart-group-pills,.hedge .chart-list-controls .chart-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.25rem;
}
.hedge .chart-group-pills button {
  padding:.125rem .625rem;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--card);
  color:var(--muted-foreground);
  font-size:.75rem;
}
.hedge .chart-group-pills button:hover { background:var(--muted); }
.hedge .chart-group-pills button[aria-pressed="true"] {
  border-color:var(--primary);
  background:var(--primary);
  color:var(--primary-foreground);
}
.hedge .chart-list-controls .field {
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  gap:.25rem;
  color:var(--muted-foreground);
  font-size:.75rem;
}
.hedge .chart-list-controls .field select { min-height:1.75rem; padding-block:.125rem; font-size:.75rem; }
.hedge .chart-list-controls .chart-check { min-height:1.75rem; color:var(--muted-foreground); padding-inline:.25rem; font-size:.75rem; }
.hedge .chart-list-controls .btn { min-height:1.75rem; padding:.125rem .5rem; font-size:.75rem; }
.hedge .chart-version-note { color:var(--muted-foreground); font-size:.75rem; padding:.375rem .875rem; }
.hedge .chart-group:not(:last-child) { border-bottom:1px solid var(--border); }
.hedge .chart-group > header {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:.75rem;
  padding:.375rem .875rem;
  background:var(--sidebar);
  color:var(--sidebar-foreground);
}
.hedge .chart-group > header :is(h3,.chart-amount) { font-weight:600; font-size:.75rem; }
.hedge .chart-group > header .chart-amount { font-weight:400; }
.hedge .chart-group-button {
  min-height:0;
  color:inherit;
  gap:.375rem;
  padding:0;
  font-size:inherit;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.hedge .chart-group-button:hover { background:transparent; text-decoration:underline; }
.hedge .chart-group-button span { color:inherit; font-size:.875rem; }
.hedge .chart-table table { width:100%; border-collapse:collapse; font-size:.8125rem; }
.hedge .chart-table :is(th,td) { padding:.375rem .75rem; border-bottom:1px solid color-mix(in oklch,var(--border) 70%,transparent); }
.hedge .chart-table th {
  padding-block:.5rem;
  color:var(--muted-foreground);
  background:color-mix(in oklch,var(--muted) 70%,transparent);
  font-size:.6875rem;
  letter-spacing:.045em;
  text-align:left;
  text-transform:uppercase;
}
.hedge .chart-table tbody tr:nth-of-type(even) { background:color-mix(in oklch,var(--muted) 30%,transparent); }
.hedge .chart-table tbody tr:hover { background:color-mix(in oklch,var(--accent) 60%,transparent); }
.hedge .chart-table tbody tr:last-child td { border-bottom:0; }
.hedge .chart-list .chart-table table { min-width:30rem; }
.hedge .chart-list .chart-table :is(th,td):first-child { width:5rem; }
.hedge .chart-list .chart-table :is(th,td):nth-child(3) { width:7rem; }
.hedge .chart-list .chart-table :is(th,td):last-child { text-align:right; width:10rem; }
.hedge .chart-list .chart-table :is(th,td):last-child .chart-amount { display:inline; }
.hedge .chart-table .chart-summary-row td { background:transparent; font-weight:600; }
.hedge .chart-cell-identity { padding-left:calc(var(--account-depth,0)*.8rem); }
.hedge .chart-cell-identity > div { min-width:0; }
.hedge .chart-cell-identity small { color:var(--muted-foreground); display:block; font-size:.75rem; font-weight:400; overflow-wrap:anywhere; }
.hedge .chart-disclosure,.hedge .chart-disclosure-placeholder { width:1rem; min-height:1rem; flex-basis:1rem; }
.hedge .chart-disclosure-placeholder:only-child { width:0; flex-basis:0; }
.hedge .chart-disclosure:hover { color:var(--accent-foreground); background:var(--accent); }
.hedge :is(.chart-code,.chart-amount) { font-family:var(--font-mono,monospace); font-variant-numeric:tabular-nums; }
.hedge .chart-code { color:var(--primary); font-size:.8125rem; }
.hedge .chart-account-link { color:var(--foreground); font-weight:500; }
.hedge .chart-account-link:hover { color:var(--primary); }
.hedge .chart-account-link.chart-inactive { color:var(--muted-foreground); text-decoration:line-through; }
.hedge .chart-amount { font-weight:400; }
.hedge .chart-status {
  padding:.125rem .375rem;
  color:#065f46;
  background:#ecfdf5;
  box-shadow:inset 0 0 0 1px #05966933;
  border-radius:.25rem;
  font-size:.6875rem;
  font-weight:500;
}
.hedge .chart-status.muted { background:var(--muted); color:var(--muted-foreground); box-shadow:inset 0 0 0 1px var(--border); }
.hedge.dark .chart-status:not(.muted),.dark .hedge .chart-status:not(.muted) { background:#10b9811a; color:#6ee7b7; box-shadow:inset 0 0 0 1px #34d39940; }
.hedge .chart-form-section { display:grid; gap:.75rem; padding:1rem; border-bottom:1px solid var(--border); }
.hedge .chart-form-section:last-child { border-bottom:0; }
.hedge .chart-form-section h3 {
  color:var(--muted-foreground);
  font-size:.6875rem;
  font-weight:600;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.hedge .chart-account-drawer .workspace-task-fields { padding:0; }
@media (min-width:640px) {
  .hedge .he-record-drawer.chart-account-drawer { width:28rem; max-width:min(100vw,28rem); }
  .hedge .chart-form-section .chart-fields { grid-template-columns:minmax(0,1fr) minmax(0,2fr); }
}

.asset-workspace [data-asset-register] {
  padding: 0 1rem 1rem;
}

.asset-filters {
  display: grid;
  grid-template-columns: minmax(12rem, 2fr) repeat(2, minmax(9rem, 1fr));
  gap: .6rem 1rem;
}

.asset-workspace [data-asset-total] {
  margin: .65rem 0 .45rem;
  color: var(--muted);
}

.asset-facts {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
}

.asset-facts dd {
  overflow-wrap: anywhere;
}

.asset-workspace .asset-section {
  min-width: 0;
  margin-top: .85rem;
}

.asset-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .85rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: .65rem;
  padding-inline: .9rem;
}

.asset-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  border-block-end: 2px solid transparent;
  padding-inline: .15rem;
  color: inherit;
}

.asset-tabs a[aria-current="page"] {
  border-block-end-color: currentColor;
  font-weight: 650;
}

.asset-print-actions {
  margin: .75rem 0;
  flex-wrap: wrap;
}

@media (max-width: 660px) {
  .asset-filters { grid-template-columns: 1fr; }
  .asset-workspace .f-panelhead { align-items: stretch; }
}

@media print {
  .asset-workspace .asset-print-actions { display: none !important; }
  .asset-report-sheet { break-inside: auto; }
  .asset-report-sheet .table-wrap { overflow: visible; }
  .asset-report-sheet table { min-width: 0; }
  .asset-report-sheet tr { break-inside: avoid; }
}

.accounting-tabs {
  display:flex;
  gap:.25rem;
  overflow:auto;
  border-bottom:1px solid var(--f-line);
  padding:0 0 .5rem;
  margin:0 0 .85rem;
  scrollbar-width:thin;
}
.accounting-tabs a {
  flex:none;
  padding:.5rem .7rem;
  border-radius:.35rem;
  color:var(--f-muted);
  font-size:.875rem;
  font-weight:550;
  text-decoration:none;
}
.accounting-tabs a:hover,.accounting-tabs [aria-current] {
  background:#e4f0ee;
  color:#105d59;
}
.accounting-tabs [aria-current] {font-weight:650}
.accounting-view .f-panelhead {padding:1rem 1.15rem}
.accounting-view .f-panelhead h2 {font-size:1.2rem}
.accounting-view .f-panelhead p {font-size:.82rem}
.accounting-view .f-table th,.accounting-view .f-table td {padding:.55rem .9rem}
.accounting-view .f-table .accounting-num {text-align:right}
.accounting-view .f-table td {font-size:.875rem}
.accounting-view .f-table .f-link {font-size:inherit}
.accounting-view .f-subhead {margin:1rem 1.15rem .55rem;font-size:1rem}
.accounting-view .f-panel>.f-pairs {padding:.15rem 1.15rem .95rem}
.accounting-view .f-reportLabel,.accounting-view .f-filter {padding:0 1.15rem .75rem}
.accounting-view .f-panel>.f-note {margin:.1rem 1.15rem .8rem}
.accounting-view .accounting-back {display:inline-block;margin-bottom:.4rem;font-size:.81rem}
.accounting-form {display:grid;gap:.9rem}
.accounting-form h3 {font-size:1rem;margin:.15rem 0 0}
.accounting-form .btn {justify-self:start}
.accounting-form .f-note {margin:0}
.accounting-form .accounting-line:has([name=lineCampus]) {grid-template-columns:2fr 1.4fr 1fr 1fr auto}
.accounting-print-only {display:none}
@media(max-width:700px) {
  .accounting-view .f-panelhead {padding:.8rem .85rem}
  .accounting-view .f-subhead {margin:.8rem .85rem .5rem}
  .accounting-view .f-reportLabel,.accounting-view .f-filter {padding:0 .85rem .7rem}
  .accounting-view .f-table th,.accounting-view .f-table td {padding:.52rem .65rem}
  .accounting-form .f-grid {grid-template-columns:1fr}
  .accounting-form .accounting-line:has([name=lineCampus]) {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media print {
  .accounting-tabs,.accounting-back {display:none!important}
  .accounting-print-only {display:block;margin:0 0 .55rem}
  .accounting-view .f-panel {overflow:visible;break-inside:auto}
  .accounting-view .f-panelhead,.accounting-view .f-panel>.f-pairs,.accounting-view .f-reportLabel {padding:.45rem 0}
  .accounting-view .f-table td {font-size:8.5pt}
  .accounting-view .f-pairs {grid-template-columns:repeat(3,1fr)}
}

.hedge .accounting-kpis {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  overflow:hidden;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:.375rem;
  box-shadow:0 1px 2px #0000000d;
}
.hedge .accounting-kpi {
  position:relative;
  display:flex;
  min-width:0;
  flex-direction:column;
  gap:.25rem;
  padding:.75rem;
  border-right:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.hedge .accounting-kpi:nth-child(2n) { border-right:0; }
.hedge .accounting-kpi:nth-last-child(-n+2) { border-bottom:0; }
.hedge .accounting-kpi::before { content:""; position:absolute; inset:0 auto 0 0; width:3px; background:var(--kpi-colour); }
.hedge .accounting-kpi:hover { background:color-mix(in oklch,var(--accent) 40%,transparent); }
.hedge .accounting-kpi span {
  display:flex;
  align-items:center;
  gap:.375rem;
  color:var(--muted-foreground);
  font-size:.75rem;
}
.hedge .accounting-kpi strong {
  font-family:var(--font-mono,monospace);
  font-size:clamp(1rem,2.2vw,1.5rem);
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
  font-weight:600;
  letter-spacing:-.025em;
}
.hedge .accounting-kpi small { margin-left:.25rem; color:var(--muted-foreground); font:500 .75rem var(--font-sans,sans-serif); }
.hedge .accounting-overview {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:1rem;
  margin-top:1rem;
}
.hedge .accounting-overview > :is(div,aside) { display:grid; min-width:0; align-content:start; gap:1rem; }
.hedge .accounting-portlet .he-panel-head h2 { display:flex; align-items:center; gap:.5rem; }
.hedge .accounting-portlet .he-panel-head h2 svg { color:var(--muted-foreground); }
.hedge .accounting-portlet .he-panel-head a { font-size:.75rem; }
.hedge .accounting-work-areas { display:grid; }
.hedge .accounting-work-areas > div { min-width:0; padding:.5rem; }
.hedge .accounting-work-areas > div:not(:first-child) { border-top:1px solid var(--border); }
.hedge .accounting-work-areas h3 {
  padding:.25rem .5rem .375rem;
  font-size:.6875rem;
  letter-spacing:.045em;
  text-transform:uppercase;
  color:var(--muted-foreground);
  font-weight:600;
}
.hedge .accounting-work-areas a {
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:.5rem;
  border-radius:.25rem;
}
.hedge .accounting-work-areas a:hover { background:color-mix(in oklch,var(--accent) 50%,transparent); }
.hedge .accounting-work-areas a span { min-width:0; flex:1; }
.hedge .accounting-work-areas a :is(small,strong) {
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.hedge .accounting-work-areas strong { color:var(--primary); font-size:.8125rem; font-weight:500; }
.hedge .accounting-work-areas small { color:var(--muted-foreground); font-size:.75rem; }
.hedge .accounting-work-areas a b {
  min-width:2.25rem;
  padding:.125rem .375rem;
  border-radius:.25rem;
  text-align:center;
  background:var(--muted);
  color:var(--foreground);
  font:600 .75rem var(--font-mono,monospace);
}
.hedge .accounting-work-areas a .accounting-urgent {
  background:color-mix(in oklch,var(--destructive) 10%,transparent);
  color:var(--destructive);
}
.hedge .accounting-work-areas a svg { color:var(--muted-foreground); opacity:0; }
.hedge .accounting-work-areas a:is(:hover,:focus-visible) svg { opacity:1; }
.hedge .accounting-overview-list { list-style:none; padding:0; margin:0; font-size:.8125rem; }
.hedge .accounting-overview-list > :is(li,div) {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:.625rem .875rem;
  border-bottom:1px solid var(--border);
}
.hedge .accounting-overview-list li:last-child,.hedge .accounting-overview-list div:last-child { border-bottom:0; }
.hedge .accounting-overview-list :is(dt,small) { color:var(--muted-foreground); }
.hedge .accounting-overview-list dd { margin:0; font-family:var(--font-mono,monospace); font-variant-numeric:tabular-nums; }
.hedge .accounting-accounts-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr)); }
.hedge .accounting-accounts-list li { border-bottom:1px solid var(--border); }
.hedge .accounting-accounts-list li span { flex:1; min-width:0; }
.hedge .accounting-aging { display:grid; gap:.625rem; padding:.875rem; }
.hedge .accounting-aging > div { display:grid; grid-template-columns:1fr auto; gap:.25rem; color:var(--muted-foreground); font-size:.75rem; }
.hedge .accounting-aging strong { color:var(--foreground); font:500 .75rem var(--font-mono,monospace); }
.hedge .accounting-aging-track { grid-column:1/-1; height:6px; border-radius:999px; background:var(--muted); overflow:hidden; }
.hedge .accounting-aging-track i { display:block; width:var(--aging-width); height:100%; border-radius:inherit; background:var(--aging-colour); }
.hedge .accounting-view .accounting-list-toolbar,.hedge .chart-list .accounting-list-toolbar {
  display:flex;
  flex-wrap:wrap;
  min-width:0;
  gap:.5rem;
  align-items:center;
  padding:.5rem .75rem;
  border-bottom:1px solid var(--border);
}
.hedge .accounting-list-toolbar > span { margin-inline-start:auto; font-size:.75rem; color:var(--muted-foreground); }
.hedge .accounting-search { position:relative; display:flex; align-items:center; width:min(100%,20rem); }
.hedge .accounting-search svg { position:absolute; left:.5rem; color:var(--muted-foreground); pointer-events:none; }
.hedge .accounting-search input[type="search"] {
  width:100%;
  min-height:2rem;
  padding:.25rem .5rem .25rem 1.75rem;
  border:1px solid var(--input);
  border-radius:.375rem;
  background:var(--card);
  color:var(--foreground);
  font-size:.8125rem;
}
.hedge .accounting-code { font:500 .75rem var(--font-mono,monospace); white-space:nowrap; }
.hedge .accounting-credit-line { display:inline-block; padding-left:1.5rem; }
.hedge .accounting-view .f-table tfoot td { background:color-mix(in oklch,var(--muted) 60%,transparent); border-top:2px solid var(--border); font-weight:600; }
.hedge .accounting-view .f-panelhead { padding:.75rem .875rem; }
.hedge .accounting-view .f-panelhead h2 { font-size:.9375rem; }
.hedge .accounting-view .f-panelhead p { font-size:.75rem; }
.hedge .accounting-view .f-table th { font-size:.6875rem; padding:.5rem .75rem; }
.hedge .accounting-view .f-table td { font-size:.8125rem; padding:.375rem .75rem; }
.hedge .accounting-form h3 { text-transform:uppercase; letter-spacing:.045em; font-size:.6875rem; color:var(--muted-foreground); }
.hedge .accounting-form-section { display:grid; min-width:0; gap:.75rem; }
.hedge .accounting-record-drawer .workspace-task-fields { padding:0; }
.hedge .accounting-record-drawer .accounting-form:has(.accounting-form-section) { gap:0; }
.hedge .accounting-record-drawer .accounting-form-section { padding:1rem; border-bottom:1px solid var(--border); }
.hedge .accounting-record-drawer .accounting-form-section:last-child { border-bottom:0; }
.hedge .accounting-record-drawer .accounting-form:not(:has(.accounting-form-section)) { padding:1rem; }
.hedge .accounting-report-actions { max-width:68rem; margin-inline:auto; }
.hedge .accounting-view .accounting-report-sheet { max-width:68rem; margin-inline:auto; }
.hedge .accounting-series-print { display:none; }
.hedge .accounting-letterhead { border-bottom:1px solid var(--border); padding:1rem 1.25rem; }
.hedge .accounting-letterhead > p { color:var(--muted-foreground); font-size:.75rem; }
.hedge .accounting-letterhead .accounting-letterhead-institute { text-transform:uppercase; letter-spacing:.045em; font-weight:600; }
.hedge .accounting-letterhead h2 { font-size:1.125rem; font-weight:600; margin:.25rem 0 .125rem; }
.hedge .accounting-letterhead p + p { margin-top:.125rem; }
.hedge .accounting-letterhead .f-chip { margin-top:.4rem; }
.hedge .accounting-report-summary {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));
  margin:0;
  border-bottom:1px solid var(--border);
}
.hedge .accounting-report-summary > div {
  padding:.65rem 1.25rem;
  border-right:1px solid var(--border);
}
.hedge .accounting-report-summary dt { color:var(--muted-foreground); font-size:.75rem; }
.hedge .accounting-report-summary dd { margin:.13rem 0 0; font:600 1rem var(--font-mono,monospace); }
.hedge .accounting-report-definition {
  margin:0;
  padding:.65rem 1.25rem;
  color:var(--muted-foreground);
  font-size:.75rem;
}
.hedge .accounting-report-sheet .accounting-list-toolbar { padding:.5rem 1.25rem; }
.hedge .accounting-report-active { background:var(--accent); color:var(--primary); }
.hedge .accounting-report-section + .accounting-report-section { border-top:1px solid var(--border); }
.hedge .accounting-report-section h3 {
  padding:.75rem 1.25rem .4rem;
  font-size:.875rem;
  font-weight:650;
}
.hedge .accounting-report-section .f-table { margin:0; border-radius:0; }
.hedge .accounting-report-section .f-table :is(td,th):first-child { padding-inline-start:1.25rem; }
.hedge .accounting-report-section .f-table :is(td,th):last-child { padding-inline-end:1.25rem; }
.hedge .accounting-report-section .accounting-num { font-variant-numeric:tabular-nums; }
.hedge .accounting-report-section td.accounting-num { white-space:nowrap; }
.hedge .accounting-report-section .accounting-report-group td {
  background:color-mix(in oklch,var(--accent) 55%,transparent);
  color:var(--foreground);
  font-weight:650;
}
.hedge .accounting-report-total {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:.75rem;
  padding:.65rem 1.25rem;
  border-top:1px solid var(--border);
  background:var(--muted);
  color:var(--foreground);
  font-size:.875rem;
  font-weight:650;
}
.hedge .accounting-report-total .f-price { white-space:nowrap; }
.hedge .he-record-drawer.accounting-payment-dialog {
  width:min(calc(100vw - 2rem),32rem);
  max-height:calc(100dvh - 2rem);
  height:auto;
  inset:0;
  margin:auto;
  border-radius:.375rem;
}
.hedge .accounting-payment-dialog .workspace-task { min-height:0; }
@media (min-width:768px) {
  .hedge .he-record-drawer.accounting-record-drawer { width:48rem; max-width:min(100vw,48rem); }
}
@media (min-width:1024px) {
  .hedge .accounting-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .hedge .accounting-kpi { padding:1rem; border-bottom:0; }
  .hedge .accounting-kpi:nth-child(2n) { border-right:1px solid var(--border); }
  .hedge .accounting-kpi:last-child { border-right:0; }
  .hedge .accounting-work-areas { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hedge .accounting-work-areas > div:nth-child(2) { border-top:0; }
  .hedge .accounting-work-areas > div:nth-child(2n) { border-left:1px solid var(--border); }
}
@media (min-width:1280px) {
  .hedge .accounting-overview { grid-template-columns:minmax(0,1fr) 21.25rem; }
}
@media (max-width:480px) {
  .hedge .accounting-accounts-list { grid-template-columns:minmax(0,1fr); }
  .hedge .accounting-kpi strong { font-size:1rem; }
  .hedge :is(.accounting-letterhead,.accounting-report-summary > div,.accounting-report-definition,.accounting-report-section h3,.accounting-report-total) {
    padding-inline:.75rem;
  }
}
@page instituto-finance-wide { size:A4 landscape; margin:12mm; }
@media print {
  .hedge .accounting-view .accounting-report-sheet { border:0; max-width:none; box-shadow:none; }
  .hedge .accounting-view .accounting-report-sheet:has(.accounting-report-wide) { page:instituto-finance-wide; }
  .hedge :is(.accounting-view .accounting-list-toolbar,.accounting-report-actions) { display:none!important; }
  body:has(.accounting-report-sheet) .he-page-header { display:none!important; }
  .hedge .accounting-report-sheet :is(.accounting-letterhead,.accounting-report-summary,.accounting-report-total,tr) { break-inside:avoid; }
  .hedge .accounting-report-section h3 { break-after:avoid; }
  .hedge .accounting-report-section .table-wrap { overflow:visible; }
  .hedge .accounting-series-screen { display:none; }
  .hedge .accounting-series-print { display:block; }
  .hedge .accounting-series-print .table-wrap+.table-wrap { margin-top:4mm; }
  .hedge .accounting-report-section thead { display:table-header-group; }
  .hedge .accounting-report-section tfoot { display:table-row-group; }
}

/* Classificação dos documentos de compras */
.purchase-line{display:grid;grid-template-columns:minmax(9rem,1.1fr) minmax(10rem,1.2fr) minmax(10rem,1.3fr) minmax(6rem,.55fr) auto;align-items:end;gap:8px;padding:7px 0;border-bottom:1px solid var(--line,#dbe1e8)}
.purchase-line.has-item{grid-template-columns:minmax(9rem,1.1fr) minmax(9rem,1.1fr) minmax(9rem,1.1fr) minmax(4.5rem,.4fr) minmax(6rem,.65fr) minmax(6rem,.65fr) auto}
.purchase-line .f-field{min-width:0}
.purchase-line .f-field[hidden]{display:none}
.purchase-line input,.purchase-line select{width:100%;min-width:0}
.purchase-line :is([data-line-amount],[data-line-quantity],[data-line-unit-price]){text-align:right;font-variant-numeric:tabular-nums}
.purchase-remove:disabled{visibility:hidden}
.purchase-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px}
.purchase-summary output{margin-left:12px;font-weight:650;font-variant-numeric:tabular-nums}
@media(max-width:1000px){.purchase-line,.purchase-line.has-item{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.purchase-line,.purchase-line.has-item{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-line .f-field:nth-child(-n+3){grid-column:1/-1}.purchase-remove{justify-self:end}}

.student-finance-report { display:grid; gap:.75rem; min-width:0; }
.sfr-tabs { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; }
.sfr-tabs a {
  padding:.47rem .7rem; border:1px solid var(--border); border-radius:.3rem;
  color:var(--muted-foreground); background:var(--card); font-size:.8125rem; font-weight:600; text-decoration:none;
}
.sfr-tabs a:hover, .sfr-tabs a[aria-current="page"] { color:var(--primary); background:var(--accent); border-color:var(--ring); }
.sfr-sheet { min-width:0; }
.sfr-empty { padding:1rem 1.25rem; color:var(--muted-foreground); }
.sfr-filters {
  display:grid; grid-template-columns:minmax(12rem,1.25fr) minmax(12rem,1fr) minmax(10rem,.8fr);
  gap:.75rem; padding:.75rem 1.25rem; border-top:1px solid var(--border); border-bottom:1px solid var(--border);
}
.sfr-filters .f-field { min-width:0; }
.sfr-filters :is(input,select) { width:100%; min-width:0; }
.sfr-row-count { padding:.5rem 1.25rem; color:var(--muted-foreground); font-size:.75rem; }
.sfr-table .f-table { margin:0; border-radius:0; }
.sfr-table td.f-numeric { white-space:nowrap; }
.sfr-table :is(td,th) { vertical-align:middle; }
.sfr-table td { font-size:.8125rem; }
.sfr-table tfoot { font-weight:650; background:var(--muted); }
.sfr-table :is(td,th):first-child { padding-inline-start:1.25rem; }
.sfr-table :is(td,th):last-child { padding-inline-end:1.25rem; }
@media (max-width: 760px) {
  .sfr-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sfr-filters label:first-child { grid-column:1/-1; }
}
@page instituto-student-accounts { size:A4 landscape; margin:12mm; }
@media print {
  body:has(.sfr-sheet) .he-page-header,
  .student-finance-report > :not(.sfr-sheet), .sfr-filters { display:none!important; }
  body:has(.sfr-sheet) .workspace::after { content:none; }
  .hedge .sfr-sheet { page:instituto-student-accounts; box-shadow:none; border:0; }
  .sfr-sheet .table-wrap { overflow:visible; border:0; }
  .sfr-sheet thead { display:table-header-group; }
  .sfr-sheet tfoot { display:table-row-group; }
  .sfr-sheet tr { break-inside:avoid; }
  .sfr-sheet :is(td,th,.f-price) { font-size:8pt; }
  .sfr-sheet :is(td,th) { padding:.25rem; }
  .sfr-sheet :is(td,th):first-child, .sfr-sheet :is(td,th):last-child { padding-inline:.25rem; }
}

.report-library {
  display: grid;
  grid-template-columns: minmax(12rem,13.5rem) minmax(0,1fr);
  gap: 1rem;
  align-items: start;
}

#module-body .report-categories { padding: .75rem; }
#module-body .report-categories h2 { font-size: .875rem; padding: .375rem .5rem; }
.report-categories :is(button,.report-library-saved) {
  display: flex;
  gap: .5rem;
  align-items: center;
  width: 100%;
  min-height: 2.5rem;
  padding: .45rem .5rem;
  border: 0;
  border-radius: var(--radius);
  color: var(--foreground);
  text-align: start;
  font-size: .875rem;
  line-height: 1.25;
}
.report-categories :is(button,.report-library-saved) span {
  margin-inline-start: auto;
  color: var(--muted-foreground);
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}
.report-categories :is(button,.report-library-saved):hover { background: var(--muted); }
.report-categories button[aria-pressed=true] { background: var(--accent); color: var(--accent-foreground); font-weight: 650; }
.report-categories .report-library-saved { margin-top: .5rem; color: var(--primary); border-top: 1px solid var(--border); }

.report-library-head {
  display: flex;
  justify-content: flex-start;
  align-items: end;
  gap: .75rem 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}
.report-library-head > :first-child { margin-inline-end:auto; }
.report-library-head p { margin-top: .25rem; color: var(--muted-foreground); font-size: .875rem; }
.report-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: 0 .65rem;
  width: min(100%,17rem);
  min-height: 2.25rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  color: var(--muted-foreground);
  background: var(--card);
}
.report-search:focus-within { outline: 2px solid var(--ring); outline-offset: 2px; }
.report-search input { flex: 1; min-width: 0; border: 0; color: var(--foreground); background: transparent; font-size: .875rem; }
.report-search input:focus-visible { outline: none; }

.report-list-group h3 {
  margin: 0;
  padding: .65rem 1rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: .875rem;
}
.report-list-group ul { margin: 0; padding: 0; list-style: none; }
.report-list-group li + li { border-top: 1px solid var(--border); }
.report-list-entry {
  display: grid;
  grid-template-columns: 2rem minmax(0,1fr) max-content;
  gap: .65rem;
  align-items: center;
  min-height: 3.625rem;
  padding: .6rem 1rem;
  color: var(--foreground);
}
.report-list-entry:hover { background: var(--muted); }
.report-list-entry strong,.report-list-entry small { display: block; font-size: .875rem; line-height: 1.3; }
.report-list-entry small { margin-top: .16rem; color: var(--muted-foreground); }
.report-list-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-foreground);
}
.report-empty { padding: 1.25rem 1rem; color: var(--muted-foreground); font-size: .875rem; }
.report-saved .table-wrap { border: 0; border-radius: 0; }
.report-saved-link { color: var(--primary); font-weight: 650; }
.report-saved-link:hover { text-decoration: underline; }
.report-saved-actions .btn + .btn { margin-inline-start: .35rem; }

.report-options { margin-bottom: .75rem; padding: .75rem 1rem; overflow:visible; }
.report-options form { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem 1rem; }
.report-options-fields { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: end; gap: .5rem .75rem; min-width: 0; max-width:100%; }
.report-options-fields label { display: grid; align-content: end; gap: .3rem; font-size: .875rem; font-weight: 600; }
.report-options-fields :is(select,input:not([type=checkbox])) {
  min-width:0; max-width:100%;
  min-height: 2.25rem;
  padding: .35rem .45rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  color: var(--foreground);
  background: var(--card);
  font-size: .875rem;
  font-weight: 450;
}
.report-options-fields label[hidden] { display:none; }
.report-options-fields .report-option-check { display: flex; flex-direction: row; align-items: center; min-height: 2.25rem; font-weight: 450; }
.report-option-check input { width: 1rem; height: 1rem; accent-color: var(--primary); }
.report-options-actions { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; max-width:100%; }
.report-options-actions .workspace-export { margin:0; }
.report-options-actions .workspace-export-options { width:max-content; }
.report-options-actions .workspace-export-options button { justify-content:flex-start; }
@media screen { .report-print-title { display:none; } }
.report-option-error { flex-basis: 100%; color: var(--destructive); font-size: .875rem; }
.he-report-menu .he-mega-columns { grid-auto-flow: row; grid-template-columns: repeat(3,minmax(9rem,1fr)); }

@media (max-width:46rem) {
  .report-library { grid-template-columns: 1fr; gap: .75rem; }
  #module-body .report-categories { display: flex; flex-wrap: wrap; gap: .25rem; }
  #module-body .report-categories h2 { flex-basis: 100%; }
  .report-categories :is(button,.report-library-saved) { width: auto; background: var(--secondary); }
  .report-categories .report-library-saved { margin-top: 0; border-top: 0; }
}

@media (max-width:29rem) {
  .report-list-entry { grid-template-columns: 2rem minmax(0,1fr); }
  .report-options-fields label { flex: 1 1 7.5rem; }
  .report-options-fields :is(select,input:not([type=checkbox])) { width: 100%; }
  .report-options-fields .report-option-check { flex: 1 1 100%; }
}

@media print {
  .report-options,.report-categories,.report-search,.report-saved-actions { display: none !important; }
  .report-library { display: block; }
}

.rp-indicators{display:grid;grid-template-columns:repeat(auto-fit,minmax(10rem,1fr));gap:.75rem;margin-bottom:1rem}
.rp-indicators .panel{padding:.9rem 1rem;border-top:3px solid var(--chart-1)}
.rp-indicators .panel:nth-child(2){border-color:var(--border);border-top-color:var(--chart-3)}
.rp-indicators .panel:nth-child(3){border-color:var(--border);border-top-color:var(--chart-2)}
.rp-indicators .panel:nth-child(4){border-color:var(--border);border-top-color:var(--chart-5)}
.rp-indicators :is(span,strong){display:block}.rp-indicators span,.rp-insights dt{color:var(--muted-foreground)}
.rp-indicators strong{margin-top:.35rem;font-size:1.22rem;font-variant-numeric:tabular-nums}
.rp-insights{display:grid;gap:.75rem}.rp-insights .panel{padding:.85rem}.rp-insights h3{font-size:.9rem;margin:0 0 .7rem}.rp-insights h3 a{color:var(--primary)}
.rp-insights dl{margin:0}.rp-insights dl div,.rp-bar{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:.2rem .5rem;font-size:.82rem;padding:.3rem 0}
.rp-insights dd{margin:0;font-variant-numeric:tabular-nums}
.rp-bar meter{grid-column:1/-1;width:100%;height:.45rem;appearance:none;background:var(--muted);border:0;border-radius:1rem;overflow:hidden}
.rp-bar meter::-webkit-meter-bar{background:var(--muted);border:0}.rp-bar meter::-webkit-meter-optimum-value{background:var(--primary)}.rp-bar meter::-moz-meter-bar{background:var(--primary)}
.rp-collection tr:last-child{font-weight:700}
.rp-collection :is(td,th):nth-child(n+3){text-align:right}.rp-collection td{font-variant-numeric:tabular-nums}
@media(min-width:75rem){.report-library:has(.rp-insights){grid-template-columns:minmax(10rem,12rem) minmax(0,1fr) minmax(12rem,17rem)}}
@media(min-width:46rem) and (max-width:75rem){.rp-insights{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}}
.report-list-group ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15.5rem),1fr));gap:.55rem;padding:.6rem}
.report-list-group li,.report-list-group li+li{border:1px solid var(--border);border-radius:var(--radius);background:var(--card)}
.report-list-entry{grid-template-columns:2rem minmax(0,1fr);padding:.6rem;min-height:4.5rem}
@media print{body:has([data-rp-course-sheet],.asset-report-sheet) .he-page-header{display:none!important}}

/* Report controls stay outside the printable document. */
.hedge .accounting-report-actions{max-width:none}
.hedge .report-options{position:relative;z-index:2;margin-bottom:1rem;border-radius:var(--radius)}
.hedge .report-options form{position:relative}
.hedge .report-options-fields label{color:var(--muted-foreground);font-size:.78rem}
.hedge .report-options-fields select{width:auto;max-width:15.5rem}
.hedge .report-options-fields :is(select,input):focus-visible,.report-custom :focus-visible{outline:2px solid var(--ring);outline-offset:2px}
.hedge .report-custom>summary{list-style:none;display:inline-flex;align-items:center;gap:.35rem}
.report-custom>summary::-webkit-details-marker{display:none}
.report-custom[open]>summary{color:var(--primary);border-color:var(--primary)}
.hedge .report-custom-panel{z-index:7;position:absolute;inset-inline-end:0;top:calc(100% + .65rem);display:grid;gap:.9rem;min-width:17rem;width:min(22rem,100%);padding:1rem;border:1px solid var(--border);border-radius:.55rem;box-shadow:0 .5rem 1.75rem #1b2e4129;background:var(--card);max-height:min(72vh,40rem);overflow:auto}
.report-custom-panel h3{margin:0;font-size:1rem}
.report-custom-panel fieldset{display:grid;gap:.65rem;border:0;border-top:1px solid var(--border);padding:.65rem 0 0;margin:0}
.report-custom-panel legend{font-size:.8rem;font-weight:700;color:var(--primary);padding-inline-end:.5rem}
.report-custom-panel label{display:grid;grid-template-columns:minmax(5rem,1fr) minmax(8rem,1.2fr);gap:.5rem;align-items:center;font-size:.8rem}
.report-custom-panel select{min-height:2.25rem;min-width:0;border:1px solid var(--input);background:var(--card);color:var(--foreground);border-radius:var(--radius);padding:0 .4rem}
.report-custom-panel .report-option-check{display:flex;gap:.5rem}
.report-custom-panel>.btn{justify-self:end}
.hedge .accounting-view .accounting-report-sheet{max-width:76rem;border-top:3px solid var(--primary)}
.hedge .accounting-report-sheet .accounting-letterhead{padding:1.2rem 1rem .95rem;text-align:center}
.hedge .accounting-report-sheet .accounting-letterhead-institute{color:var(--foreground);font-size:.95rem;text-transform:none;letter-spacing:normal}
.hedge .accounting-report-sheet [data-negative]{color:var(--destructive)}
.hedge .report-roomy :is(.accounting-report-sheet,.asset-report-sheet,.sfr-sheet,.rp-collection) :is(td,th){padding-block:.78rem}
@media(max-width:42rem){
 .hedge .report-options-fields label{flex:1 1 9rem}
 .hedge .report-options-fields :is(select,input:not([type=checkbox])){width:100%;max-width:100%}
 .hedge .report-custom-panel{width:100%;min-width:0;position:static;max-height:none;box-shadow:none;margin-block:.6rem}
 .report-options-actions:has(.report-custom[open])>.report-custom{order:9;width:100%}
 .hedge .report-custom-panel :is(select,button,summary){min-height:44px}
}
@media print{.hedge .accounting-view .accounting-report-sheet{max-width:none;border:0}}
.hedge .report-group-toggle{display:inline-flex;align-items:center;gap:.45rem;padding:.12rem .2rem;border:0;background:none;color:inherit;font:inherit;font-weight:650;text-align:left;cursor:pointer}
.hedge .report-group-toggle>span{width:1rem;height:1rem;display:inline-grid;place-items:center;border:1px solid var(--border);border-radius:.2rem;color:var(--primary);background:var(--card);font-size:.82rem;line-height:1}
.hedge .report-group-toggle:focus-visible{outline:2px solid var(--ring);outline-offset:2px}
@media(max-width:42rem){.hedge .report-group-toggle{min-height:44px}}
@media print{.hedge .report-group-toggle{padding:0}.hedge .report-group-toggle>span{display:none}}

.purchase-report-sheet{min-width:0;margin-block-start:.75rem}
.purchase-report-sheet>.accounting-letterhead{text-align:center;padding:.7rem}
.purchase-report-sheet>h3,.purchase-report-source>summary{margin:0;padding:.55rem .9rem;font-size:.9rem}
.purchase-report-source{border-top:1px solid var(--border)}
.purchase-report-source>summary{cursor:pointer;color:var(--foreground)}
.purchase-report-source>summary small{color:var(--muted-foreground)}
.purchase-report-sheet .f-table{margin:0}

.bank-view, .workspace-task:has(.bank-split, .bank-details, .bank-balances) {
  --bank-border: var(--border, #dbe2e9);
  --bank-card: var(--card, #fff);
  --bank-muted: var(--muted-foreground, #596781);
  --bank-primary: var(--primary, #116762);
  --bank-fill: color-mix(in oklch, var(--surface-muted, var(--soft, #eef1f5)) 65%, var(--bank-card));
}
.bank-tabs, .bank-kinds { display: flex; gap: .125rem; align-items: center; }
.bank-tabs {
  overflow: auto;
  padding: 0 .5rem;
  margin-bottom: .75rem;
  border-bottom: 1px solid var(--bank-border, var(--line));
  scrollbar-width: thin;
}
.bank-tabs a {
  flex: none;
  padding: .5rem .75rem;
  border-bottom: 2px solid transparent;
  color: var(--bank-muted, var(--muted-foreground));
  font-size: .8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.bank-tabs a:hover { border-bottom-color: var(--bank-border, var(--line)); color: var(--foreground); }
.bank-tabs a[aria-current=page] { border-bottom-color: var(--bank-primary, var(--teal)); color: var(--bank-primary, var(--teal)); }
.bank-kinds { flex-wrap: wrap; gap: .25rem; margin-bottom: .75rem; }
.bank-kinds a {
  padding: .25rem .5rem;
  border: 1px solid var(--bank-border, var(--line));
  border-radius: .25rem;
  color: var(--bank-muted, var(--muted-foreground));
  font-size: .75rem;
  text-decoration: none;
}
.bank-kinds a[aria-current=page] { border-color: var(--bank-primary, var(--teal)); color: var(--bank-primary, var(--teal)); }
.bank-group > .bank-tabs { margin-bottom: 0; }
.bank-group > .bank-kinds, .bank-group > .f-actions { padding: .5rem .75rem; margin-bottom: 0; }
.bank-group > .bank-section { margin-inline: .75rem; }
.bank-list-tools .bank-kinds { margin: 0; }
.bank-section {
  min-width: 0;
  overflow: hidden;
  margin: .75rem 0;
  padding: .75rem;
  border: 1px solid var(--bank-border, var(--line));
  border-radius: .375rem;
  background: var(--bank-card, var(--card));
}
.bank-section h3 {
  padding: .5rem .75rem;
  margin: -.75rem -.75rem .625rem;
  border-bottom: 1px solid var(--bank-border, var(--line));
  background: var(--bank-fill, var(--soft));
  font-size: .8125rem;
  font-weight: 600;
}
.bank-section .f-pairs { margin: .5rem 0; }
.bank-section .f-table { margin-bottom: 0; }
.bank-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; gap: .875rem; }
.bank-balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: .5rem; margin: .75rem 0; }
.bank-balances > div { min-width: 0; padding: .625rem .75rem; border: 1px solid var(--bank-border, var(--line)); border-radius: .375rem; background: var(--bank-card, var(--card)); }
.bank-balances div > span { display: block; color: var(--bank-muted, var(--muted-foreground)); font-size: .75rem; }
.bank-balances strong { display: block; margin-top: .25rem; font-size: .875rem; font-weight: 600; }
.bank-balances .bank-money { overflow-wrap: anywhere; white-space: normal; }
.bank-details { margin: .625rem 0; padding: .625rem .75rem; border: 1px solid var(--bank-border, var(--line)); border-radius: .375rem; }
.bank-details summary { cursor: pointer; color: var(--bank-primary, var(--teal)); font-size: .8125rem; font-weight: 600; }
.bank-details p { margin: .5rem 0; font-size: .8125rem; }
.bank-details input { margin-bottom: .25rem; }
.bank-check { display: flex; align-items: flex-start; gap: .5rem; margin: .75rem 0; font-size: .8125rem; }
.bank-check input[type=checkbox] { width: auto; margin-top: .1rem; }
.bank-alert { margin: .5rem 0; color: var(--destructive, #a51d2a); }

@media (max-width: 760px) {
  .bank-split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bank-tabs a { padding-inline: .5rem; }
  .bank-balances { gap: .375rem; }
}
@media print {
  .bank-tabs, .bank-kinds { display: none; }
}

.treasury-overview { display: grid; gap: 1rem; }
.treasury-kpi-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.treasury-kpi-strip a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
  padding: .875rem 1rem;
  border-right: 1px solid var(--f-line);
  border-bottom: 1px solid var(--f-line);
  color: var(--f-ink);
}
.treasury-kpi-strip a::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--treasury-kpi-accent); content: ''; }
.treasury-kpi-strip a:hover { background: var(--f-hover); }
.treasury-kpi-strip a:nth-child(2n) { border-right: 0; }
.treasury-kpi-strip a:nth-child(n+3) { border-bottom: 0; }
.treasury-kpi-label, .treasury-kpi-note { color: var(--f-muted); font-size: .75rem; }
.treasury-kpi-label { display: flex; align-items: center; gap: .375rem; font-weight: 500; }
.treasury-kpi-strip strong { font-family: var(--font-mono, 'IBM Plex Mono', monospace); font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -.025em; overflow-wrap: anywhere; }
.treasury-kpi-strip strong small { padding-left: .25rem; color: var(--f-muted); font-family: var(--font-sans, inherit); font-size: .75rem; font-weight: 500; white-space: nowrap; }
.treasury-overview-grid, .treasury-overview-grid > div, .treasury-overview-grid > aside { display: grid; align-content: start; min-width: 0; gap: 1rem; }
.treasury-portlet { overflow: hidden; }
.treasury-portlet .he-panel-head a { color: var(--f-teal); font-size: .75rem; font-weight: 500; white-space: nowrap; }
.treasury-portlet .he-panel-head a:hover { text-decoration: underline; }
.treasury-launcher { display: grid; }
.treasury-launcher > section { min-width: 0; padding: .5rem; }
.treasury-launcher > section + section { border-top: 1px solid var(--f-line); }
.treasury-launcher h3 {
  padding: .25rem .5rem .375rem;
  color: var(--f-muted);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.treasury-launcher a, .treasury-overview-queue a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.treasury-launcher a { padding: .5rem; border-radius: .125rem; }
.treasury-launcher a:hover, .treasury-overview-queue a:hover { background: var(--f-hover); }
.treasury-launcher a > span, .treasury-overview-queue a > span:first-child { flex: 1; min-width: 0; }
.treasury-launcher strong, .treasury-overview-queue strong { display: block; overflow: hidden; font-size: .8125rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.treasury-launcher strong { color: var(--f-teal); }
.treasury-launcher a:hover strong { text-decoration: underline; }
.treasury-launcher small, .treasury-overview-queue small { display: block; overflow: hidden; color: var(--f-muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.treasury-launcher b { min-width: 2.25rem; padding: .125rem .375rem; border-radius: .125rem; background: var(--f-fill); font-size: .75rem; font-weight: 600; text-align: center; }
.treasury-launcher b.urgent { background: color-mix(in oklch, var(--destructive) 10%, var(--f-surface)); color: var(--destructive); }
.treasury-launcher a svg { opacity: 0; color: var(--f-muted); }
.treasury-launcher a:hover svg, .treasury-launcher a:focus-visible svg { opacity: 1; }
.treasury-overview-queue { margin: 0; padding: 0; list-style: none; }
.treasury-overview-queue li + li { border-top: 1px solid var(--f-line); }
.treasury-overview-queue a { padding: .625rem .875rem; }
.treasury-queue-amount, .treasury-list-money, .treasury-document-ref {
  font-family: var(--font-mono, 'IBM Plex Mono', monospace);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.treasury-queue-amount { font-size: .8125rem; font-weight: 500; }
.treasury-queue-empty { padding: 1rem .875rem; color: var(--f-muted); font-size: .8125rem; }
.treasury-view .f-panelhead h2 { font-size: .8125rem; }
.treasury-view .f-panel > .treasury-tabs { margin: 0; }
.treasury-view .f-panel > .f-actions { padding: .5rem .875rem; }
.treasury-student-statement { padding-bottom: .875rem; }
.treasury-student-statement > .f-pairs { padding: .625rem .875rem; }
.treasury-student-statement > .f-pairs + .f-pairs { border-top: 1px solid var(--f-line); }
.treasury-student-statement .f-subhead { margin-top: 1.25rem; }
.treasury-document-ref { font-size: .75rem; }
.treasury-list-tools .btn { min-height: 2rem; padding-inline: .75rem; font-size: .8125rem; }
.treasury-search { position: relative; flex: 1 1 12rem; max-width: 20rem; padding: 0; }
.treasury-search svg { position: absolute; top: 50%; left: .5rem; color: var(--f-muted); transform: translateY(-50%); pointer-events: none; }
.treasury-view .treasury-search input[type=search] { width: 100%; padding-left: 1.75rem; }
.treasury-compare { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: .875rem; }
.treasury-compare > aside { align-self: start; padding: .625rem; border: 1px solid var(--f-line); border-radius: .375rem; }
.treasury-compare > div { min-width: 0; }
.treasury-form-section { display: grid; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--f-line); }
.treasury-form-section:first-child { padding-top: 0; }
.treasury-form-section:last-child { border-bottom: 0; }
.treasury-form-section h3 { color: var(--f-muted); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.treasury-charge-heading, .treasury-charge-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: .75rem; }
.treasury-charge-line { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(0, 1fr); }
.treasury-charge-total { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .625rem; border-radius: .25rem; background: var(--f-fill); color: var(--f-muted); font-size: .8125rem; }
.treasury-charge-total strong { color: var(--f-ink); font-family: var(--font-mono, 'IBM Plex Mono', monospace); }
.he-record-drawer:has([data-charge-total]) { width: min(48rem, 100%); }
.workspace-task-foot .treasury-charge-total {
  display: grid;
  gap: .125rem;
  margin-right: auto;
  padding: 0;
  background: transparent;
  color: var(--muted-foreground);
  font-size: .75rem;
}
.workspace-task-foot .treasury-charge-total strong { color: var(--foreground); font-size: .875rem; white-space: nowrap; }
.workspace-task-fields .f-allocate { width: 110px; text-align: right; }
.workspace-task-fields [data-fee-rows], .workspace-task-fields [data-fee-total],
.workspace-task-fields [data-allocate-total], .workspace-task-fields .finance-view > h3 { margin-top: .875rem; }
.workspace-task-fields [data-allocate-search] { margin-top: .5rem; }
.workspace-task-fields .f-filter:has([data-allocate-search]) { padding: 0 0 .5rem; }

@media (min-width: 1024px) {
  .treasury-kpi-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .treasury-kpi-strip a, .treasury-kpi-strip a:nth-child(2n) { border-right: 1px solid var(--f-line); border-bottom: 0; }
  .treasury-kpi-strip a:last-child { border-right: 0; }
  .treasury-launcher { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .treasury-launcher > section:nth-child(2) { border-top: 0; }
  .treasury-launcher > section:nth-child(2n) { border-left: 1px solid var(--f-line); }
}
@media (min-width: 1280px) { .treasury-overview-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 720px) {
  .treasury-compare, .workspace-task-fields .f-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 500px) {
  .treasury-kpi-strip a { padding: .75rem; }
  .treasury-charge-heading, .treasury-charge-line { grid-template-columns: minmax(0, 1fr); }
  .workspace-task-foot:has(.treasury-charge-total) { flex-wrap: wrap; }
}
@media print {
  body:has(.treasury-student-statement) .he-page-header { display: none !important; }
  .treasury-student-statement .f-pairs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .treasury-student-statement .f-subhead { break-after: avoid; }
  .treasury-student-statement .f-table { overflow: visible; }
  .treasury-student-statement .f-table table { min-width: 0; }
}

.course-billing-view { display:grid; gap:1rem; }
.course-billing-strip { display:grid; grid-template-columns:repeat(auto-fit,minmax(10rem,1fr)); overflow:hidden; }
.course-billing-strip div { padding:.85rem 1rem; border-inline-end:1px solid var(--f-line); }
.course-billing-strip span,.course-billing-strip strong { display:block; }
.course-billing-strip span { font-size:.85rem; color:var(--f-muted); }
.course-billing-strip strong { font-size:1.25rem; margin-top:.3rem; }
.billing-class-btn { appearance:none; background:transparent; border:0; padding:0; text-align:start; color:var(--primary); font:inherit; cursor:pointer; }
.billing-class-btn[aria-pressed="true"] { font-weight:700; }
.billing-class-btn:hover { text-decoration:underline; }
.billing-message,.billing-confirm { margin:.9rem 1rem; }
.billing-confirm { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; }
[data-course-billing] { padding:1rem; }
[data-course-billing] .f-actions,[data-course-billing] h3 { margin-block:1rem; }
.course-billing-strip strong small { display:block; font-size:.76rem; color:var(--f-muted); font-weight:400; }

.invoice-line{display:grid;grid-template-columns:minmax(14rem,2fr) minmax(5rem,.5fr) minmax(9rem,1fr) minmax(6rem,1fr) auto;gap:16px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line,#d9e3e5)}
.invoice-line strong,.invoice-line small,.invoice-caption,.invoice-paper td small{display:block}
.invoice-caption,.invoice-line small,.invoice-paper small{font-size:.82rem;color:#4a6069}
.invoice-line [data-rate],.invoice-line [data-amount],.invoice-total strong,.invoice-paper td:not(:first-child){font-variant-numeric:tabular-nums}
.invoice-total{text-align:right;padding:12px 0}.invoice-total strong{font-size:1.2rem;margin-inline-start:14px}
.invoice-paper{max-width:58rem;margin:18px auto;background:#fff;border:1px solid #d5dfe1;border-radius:6px;padding:clamp(1rem,3vw,2.5rem);color:#182e3c}
.invoice-paper header{border-bottom:1px solid #d5dfe1;padding-bottom:12px;margin-bottom:12px}.invoice-paper table{border-collapse:collapse;width:100%}.invoice-paper td,.invoice-paper th{padding:10px;border-bottom:1px solid #d5dfe1;text-align:left}.invoice-paper th:not(:first-child),.invoice-paper td:not(:first-child){text-align:right}.invoice-table-wrap{overflow-x:auto}
@media(max-width:760px){.invoice-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.invoice-line label:first-child{grid-column:1/-1}.invoice-line button{justify-self:start}.invoice-line input,.invoice-line select{width:100%;min-width:0}.invoice-paper{padding:12px}.invoice-paper td,.invoice-paper th{padding:6px}.invoice-paper th{font-size:.8rem}}

.cfg-tabs {
  display: flex;
  align-items: center;
  gap: .125rem;
  overflow-x: auto;
  margin-bottom: .75rem;
}
.cfg-tabs a { color: var(--muted-foreground, var(--muted)); font-size: .8125rem; font-weight: 500; padding: .5rem .75rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.cfg-tabs a[aria-current="page"] { color: var(--primary, var(--teal)); border-bottom-color: currentColor; }
.cfg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.cfg-home .cfg-panel { margin-bottom: 0; }
.cfg-panel { min-width: 0; overflow: hidden; padding: 0; margin: 0 0 1rem; border-radius: .375rem; }
.cfg-panel h2 { color: inherit; font-size: .8125rem; font-weight: 600; margin: 0; }
.cfg-head, .cfg-import-row, .cfg-kv { display: flex; align-items: center; gap: .75rem; justify-content: space-between; }
.cfg-head { min-height: 2.25rem; padding: .5rem .875rem; flex-wrap: wrap; background: color-mix(in oklab, var(--secondary, #e9edf2) 60%, transparent); border-bottom: 1px solid var(--border, var(--line)); }
.cfg-head > .btn:only-child { margin-left: auto; }
.cfg-body { padding: .875rem; }
.cfg-body:has(> :is(.table-wrap, .cfg-info, .cfg-access-matrix, .cfg-campus-list):only-child) { padding: 0; }
.cfg-body .table-wrap { margin-inline: 0; border-radius: 0; }
.cfg-panel .table-wrap th, .cfg-panel .table-wrap td { padding: .375rem .75rem; font-size: .8125rem; }
.cfg-panel .table-wrap th { color: var(--muted-foreground, var(--muted)); background: color-mix(in oklab, var(--secondary, #e9edf2) 60%, transparent); font-size: .6875rem; font-weight: 600; letter-spacing: .025em; text-transform: uppercase; }
.cfg-panel .table-wrap tbody tr:nth-child(even) { background: color-mix(in oklab, var(--secondary, #e9edf2) 35%, transparent); }
.cfg-panel .table-wrap tbody tr:hover { background: color-mix(in oklab, var(--accent, #e7f3f1) 55%, transparent); }
.cfg-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem 2rem; margin: 0; padding: 1rem; font-size: .8125rem; }
.cfg-info dt { color: var(--muted-foreground, var(--muted)); font-size: .75rem; }
.cfg-info dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.cfg-kv { border-top: 1px solid var(--border, var(--line)); padding: .6rem 0; align-items: baseline; font-size: .8125rem; }
.cfg-kv strong { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.cfg-kv:first-child { border-top: 0; }
.cfg-kv span, .cfg-meta, .cfg-empty, .cfg-panel p { color: var(--muted-foreground, var(--muted)); }
.cfg-panel p, .cfg-step p { margin: .3rem 0; font-size: .8125rem; line-height: 1.45; }
.cfg-fields { display: grid; gap: .75rem; }
.cfg-fields small, .cfg-meta { font-size: .75rem; color: var(--muted-foreground, var(--muted)); }
.cfg-fields small { line-height: 1.5; }
.cfg-fields fieldset { min-width: 0; border: 1px solid var(--border, var(--line)); border-radius: .375rem; padding: .625rem .75rem; margin: 0; }
.cfg-fields fieldset legend { font-size: .875rem; padding: 0 .25rem; }
.cfg-migration-steps { margin:0; padding:0; list-style:none; }
.cfg-step, .cfg-import-row { border-top: 1px solid var(--border, var(--line)); padding: .75rem 0; }
.cfg-step:first-child, .cfg-import-row:first-child { border-top: 0; }
.cfg-step { display: grid; align-items: center; grid-template-columns: 1.75rem minmax(0, 1fr) auto; gap: .75rem; }
.cfg-step-num { display: grid; place-items: center; height: 1.75rem; width: 1.75rem; border-radius: 50%; background: var(--accent, #e6f2ef); color: var(--primary, #14685b); font-weight: 650; }
.cfg-tags, .cfg-actions, .cfg-checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.cfg-checks label { display: flex; gap: .375rem; align-items: center; padding: .25rem; font-size: .875rem; }
.cfg-notice { padding: .75rem; margin: 0 0 .75rem; border: 1px solid #eddab2; border-radius: .375rem; background: #fff1d3; color: #684900; }
.cfg-errors { color: #8e3027; }
.cfg-errors:empty, [data-review]:empty { display: none; }
.cfg-record { color: var(--primary, #12685d); font-weight: 600; text-decoration: none; }
.cfg-record:hover { text-decoration: underline; text-underline-offset: .15em; }
.cfg-amount { display: block; text-align: right; font-family: var(--font-mono, ui-monospace, monospace); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cfg-campus-list :is(th, td):is(:nth-child(2), :nth-child(3)) { text-align: right; }
.cfg-access-matrix :is(td, th):not(:first-child) { text-align: center; }
.cfg-pill { display: inline-flex; align-items: center; white-space: nowrap; font-size: .6875rem; font-weight: 500; border-radius: .125rem; padding: .125rem .375rem; }
.cfg-pill-ok { color: #065f46; background: #ecfdf5; box-shadow: inset 0 0 0 1px #05966933; }
.dark .cfg-pill-ok { color: #6ee7b7; background: #10b9811a; box-shadow: inset 0 0 0 1px #34d39940; }
[data-review] { min-width: 0; }
[data-review] h4, [data-review] p, [data-review] .table-wrap { margin-bottom: .65rem; }
.cfg-print { border: 1px solid var(--border, var(--line)); border-top: 3px solid var(--primary, var(--teal)); border-radius: .375rem; padding: 1.25rem; }
.cfg-print h2 { font-size: 1.25rem; margin: .45rem 0 1rem; }
.cfg-print p { white-space: pre-line; overflow-wrap: anywhere; }
[data-cfg-print] { justify-self: start; }

@media (min-width: 40rem) { .cfg-info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .cfg-info { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 42rem) {
  .cfg-import-row { align-items: flex-start; flex-direction: column; }
  .cfg-step { grid-template-columns: 1.75rem minmax(0, 1fr); }
  .cfg-step > :is(.btn, .cfg-actions) { grid-column: 2; justify-self: start; }
  .cfg-head { align-items: flex-start; }
}

@media print {
  body:has(.cfg-print) :is(.masthead, .module-navigation, .module-title, .he-header-sticky, .he-page-header, .he-footer, .workspace-task-head, [data-cfg-print], #notices) { display: none !important; }
  body:has(.cfg-print) :is(.workspace, .workspace-task, .workspace-task-fields, .cfg-print) { display: block; padding: 0; margin: 0; border: 0; box-shadow: none; }
}

.mig-form { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem 1rem; margin-top: 1rem; }
.mig-form .field { min-width: min(15rem, 100%); }
.mig-form input[type=file] { max-width: 100%; }
.mig-review:not(:empty) { border-top: 1px solid var(--border, var(--line)); margin-top: 1rem; padding-top: .75rem; }
.mig-review h3, .mig-period { font-size: .95rem; margin: .65rem 0; }
.mig-review details, .mig-review [data-apply-import] { margin-top: .75rem; }
[data-import-message]:not(:empty) { margin-top: .75rem; }
[data-import-history] summary, .mig-review summary { cursor: pointer; }
[data-import-history] li, .mig-review li { white-space: normal; overflow-wrap: anywhere; }
.mig-number { white-space: nowrap; font-variant-numeric: tabular-nums; }

.debt-upload, .debt-confirm { display:flex; flex-wrap:wrap; align-items:end; gap:.75rem; margin-block:.8rem; }
.debt-upload .field { display:grid; gap:.35rem; max-width:100%; }
.debt-upload input[type=file] { max-width:100%; }
.debt-group { border-block-start:1px solid var(--line); padding-block:.45rem; }
.debt-group summary { cursor:pointer; font-weight:600; padding-block:.3rem; }
.debt-group .table-wrap { max-height:27rem; overflow:auto; }
.debt-match { max-width:44rem; margin-block:.65rem; }
.debt-confirm { align-items:center; justify-content:space-between; }

[data-students-review] .cfg-panel + .cfg-panel, [data-class-editor]:not(:empty) { margin-top:.85rem; }
[data-students-review] h3 { margin:.9rem 0 .45rem; font-size:1rem; }
[data-students-review] .cfg-checks { align-items:center; margin-bottom:.75rem; }
[data-students-review] .table-wrap { max-height:32rem; overflow:auto; }
[data-students-review] [data-open-lines], [data-students-status]:not(:empty) { margin-top:.65rem; }
[data-students-review] [hidden] { display:none; }

.migration-prompt { margin-block:1rem; }
.migration-prompt summary { cursor:pointer; font-weight:600; }
.migration-prompt textarea { width:100%; max-width:100%; }
.migration-prompt .cfg-actions { align-items:center; margin-top:.5rem; }

.rg{display:grid;gap:18px;min-width:0}.rg-panel{overflow:hidden;padding:0!important;min-width:0}.rg-bar,.rg-inline,.rg-actions,.rg-subhead{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.rg-bar{padding:20px 22px;justify-content:space-between}.rg-bar h2{margin:0;font-size:1.12rem}.rg-tabs,.rg-subnav{display:flex;gap:6px;align-items:center;overflow-x:auto;max-width:100%;padding:3px 0}.rg-tabs button,.rg-subnav button{font:inherit;font-size:.92rem;white-space:nowrap;cursor:pointer;color:#4c6370;background:transparent;border:0;padding:9px 12px;border-radius:6px}.rg-tabs button.active,.rg-subnav button.active{background:#e2f2ee;color:#0f665e;font-weight:660}.rg-subnav{border-top:1px solid #e5ebee;border-bottom:1px solid #e5ebee;padding:8px 18px}.rg-subhead:empty{display:none}.rg-subhead,.rg-inline,.rg-pad{padding:10px 22px}.rg-pad{line-height:1.5}.rg-search{border:1px solid #cfd9dd;border-radius:6px;min-height:36px;padding:8px 12px;font:inherit;font-size:.89rem;max-width:100%}.rg-tag{display:inline-flex;border-radius:5px;background:#edf1f4;color:#475b68;padding:3px 7px;font-size:.82rem;white-space:nowrap}.rg-tag.good{background:#e2f2e9;color:#266344}.rg-tag.warn{background:#fff0d6;color:#815313}.rg-link{cursor:pointer;border:0;background:none;font:inherit;color:#186d67;font-weight:600;text-align:left;padding:3px 0}.rg-link:hover{text-decoration:underline}.rg-table{width:100%;overflow:auto}.rg-table table,.rg-worksheet table{border-collapse:collapse;width:100%;font-size:.91rem}.rg-table th,.rg-table td,.rg-worksheet th,.rg-worksheet td{text-align:left;padding:12px 14px;line-height:1.45;border-bottom:1px solid #e6ecee}.rg-table th,.rg-worksheet th{font-size:.84rem;color:#4d606a;background:#f4f7f8;white-space:nowrap}.rg-table th:first-child,.rg-table td:first-child{padding-left:22px}.rg-detail{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:18px;margin:0;padding:18px 22px}.rg-detail dt{font-size:.84rem;color:#5c6e78}.rg-detail dd{margin:4px 0 0;font-weight:600}.rg-empty{padding:24px!important;color:#627682}.rg-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.rg-fields .field{display:grid;align-content:start;gap:6px;margin:0;font-size:.91rem}.rg-fields input:not([type=checkbox]),.rg-fields select{min-width:0;width:100%;padding:9px 10px;min-height:39px;border:1px solid #c6d2d8;border-radius:6px;background:white;color:#18303b;font:inherit}.rg-fields .rg-check,.rg-fields .rg-full,.rg-fields .rg-detail,.rg-fields .rg-help{grid-column:1/-1}.rg-fields .rg-detail{padding:0}.rg-check{display:flex;gap:8px;align-items:center}.rg-worksheet{max-width:100%;overflow:auto}.rg-worksheet input:not([type=checkbox]){min-width:72px}.rg-help{font-size:.9rem;color:#526770}.rg :focus-visible,.rg-fields :focus-visible{outline:2px solid #167e74;outline-offset:2px}@media(max-width:650px){.rg-bar{padding:16px}.rg-fields{grid-template-columns:1fr}.rg-actions{width:100%}.rg-tabs{padding:3px 0}.rg-tabs button{padding:9px}.rg-search{flex:1 1 130px}}

.rg-subnav a {
  border-radius: 6px;
  color: #4c6370;
  font-size: .875rem;
  padding: 8px 11px;
  text-decoration: none;
  white-space: nowrap;
}
.rg-subnav a.active {
  background: #e2f2ee;
  color: #0f665e;
  font-weight: 650;
}
.rg-bar { padding: 15px 20px; }
.rg-table th, .rg-table td, .rg-worksheet th, .rg-worksheet td { padding-block: 9px; }
.rg-table .rg-numeric { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.rg-fields, .rg-fields > *, .rg-module-editor { min-width: 0; }
.rg-fields .rg-full, .rg-fields .rg-detail { max-width: 100%; }
.rg-fields textarea {
  background: #fff;
  border: 1px solid #c6d2d8;
  border-radius: 6px;
  color: #18303b;
  font: inherit;
  min-width: 0;
  padding: 8px 10px;
  resize: vertical;
  width: 100%;
}
.rg-fields .rg-full .rg-bar { padding: 6px 0 10px; }
.rg-module-editor { max-width: 100%; overflow-x: auto; }
.rg-module-editor table { border-collapse: collapse; min-width: 680px; width: 100%; }
.rg-module-editor th, .rg-module-editor td { padding: 6px; text-align: left; }
.rg-module-editor th { white-space: nowrap; }
.rg-module-editor input:not([type=checkbox]) { padding: 5px 6px; }
.rg-module-editor th:nth-child(3) { min-width: 145px; }
.rg-module-editor th:first-child, .rg-module-editor th:nth-child(5), .rg-module-editor th:nth-child(6) { min-width: 63px; }
.rg-measures {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(135px, 100%), 1fr));
  padding: 16px 20px 0;
}
.rg-counter { background: #f1f6f7; border-radius: 6px; display: grid; gap: 4px; padding: 10px 12px; }
.rg-counter span { color: #4c6370; font-size: .82rem; }
.rg-counter strong { color: #18303b; font-size: 1rem; }
.rg-link { text-decoration: none; }
@media (max-width: 650px) {
  .rg-fields { grid-template-columns: minmax(0, 1fr); }
  .rg-fields .rg-detail { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
  .rg-bar { padding: 13px 14px; }
  .rg-actions { max-width: 100%; }
}

.hedge .rg { gap: 1rem; }
.hedge .rg-panel, .hedge .ops-portlet, .hedge .ops-kpis {
  border: 1px solid var(--border);
  border-radius: var(--radius, .375rem);
  background: var(--card);
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
}
.hedge .rg-bar, .hedge .rg-toolbar, .hedge .ops-portlet > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem .875rem;
  border-bottom: 1px solid var(--border);
}
.hedge .rg-bar, .hedge .ops-portlet > header {
  background: color-mix(in oklch, var(--muted) 60%, var(--card));
}
.hedge .rg-bar h2, .hedge .rg-bar h3, .hedge .ops-portlet h2 {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: -.015em;
}
.hedge .rg-toolbar { flex-wrap: wrap; justify-content: flex-start; padding-inline: .75rem; }
.hedge .rg-toolbar-count {
  margin-left: auto;
  color: var(--muted-foreground);
  font-size: .75rem;
}
.hedge .rg-actions { gap: .5rem; width: auto; align-items: center; }
.hedge .rg-search-wrap { position: relative; width: min(100%, 20rem); }
.hedge .rg-search-wrap svg { position: absolute; left: .5rem; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); }
.hedge .rg-search {
  box-sizing: border-box;
  min-height: 2rem;
  width: 100%;
  padding: .25rem .5rem .25rem 1.75rem;
  border-radius: .375rem;
  border: 1px solid var(--input);
  background: var(--card);
  color: var(--foreground);
  font-family: inherit;
  font-size: .8125rem;
}
.hedge .rg-toolbar :is(.btn, .button) { min-height: 2rem; font-size: .8125rem; }
.hedge .rg-tabs, .hedge .rg-subnav { display: flex; justify-content: flex-start; gap: .125rem; padding: 0 .75rem; }
.hedge .rg-subnav { border-top: 0; border-bottom: 1px solid var(--border); }
.hedge .rg-subnav a, .hedge .rg-subnav button, .hedge .rg-tabs button {
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  padding: .5rem .75rem;
  background: transparent;
  color: var(--muted-foreground);
  font-size: .8125rem;
  font-weight: 500;
}
.hedge .rg-subnav a:hover, .hedge .rg-subnav button:hover, .hedge .rg-tabs button:hover { color: var(--foreground); }
.hedge .rg-subnav a.active, .hedge .rg-subnav button.active, .hedge .rg-tabs button.active { border-bottom-color: var(--primary); color: var(--primary); }
.hedge .rg-table, .hedge .ops-table { max-width: 100%; width: 100%; overflow: auto; }
.hedge .rg-table table, .hedge .rg-worksheet table, .hedge .ops-table table { border-collapse: collapse; width: 100%; font-size: .8125rem; }
.hedge .rg-table :is(th, td), .hedge .rg-worksheet :is(th, td), .hedge .ops-table :is(th, td) {
  padding: .375rem .75rem;
  line-height: 1.25rem;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 70%, transparent);
}
.hedge .rg-table th, .hedge .rg-worksheet th, .hedge .ops-table th {
  color: var(--muted-foreground);
  background: var(--muted);
  text-align: left;
  font-weight: 500;
  font-size: .75rem;
  white-space: nowrap;
}
.hedge .rg-table tbody tr:nth-child(even), .hedge .ops-table tbody tr:nth-child(even) { background: color-mix(in oklch, var(--muted) 30%, transparent); }
.hedge .rg-table tbody tr:hover, .hedge .ops-table tbody tr:hover { background: color-mix(in oklch, var(--accent) 60%, transparent); }
.hedge .rg-table tr:last-child td, .hedge .ops-table tr:last-child td { border-bottom: 0; }
.hedge .rg-table .rg-numeric { text-align: right; font-family: var(--font-mono, monospace); font-variant-numeric: tabular-nums; }
.hedge .rg-record-number, .hedge .rg-table .rg-numeric { font-family: var(--font-mono, monospace); font-variant-numeric: tabular-nums; }
.hedge .rg-record-number { font-size: .75rem; }
.hedge .rg-tag {
  background: var(--muted);
  color: var(--muted-foreground);
  box-shadow: inset 0 0 0 1px var(--border);
  border-radius: .125rem;
  padding: .125rem .375rem;
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1rem;
  white-space: nowrap;
}
.hedge .rg-tag.good { background: #ecfdf5; color: #065f46; box-shadow: inset 0 0 0 1px #05966933; }
.hedge .rg-tag.warn { background: #fffbeb; color: #92400e; box-shadow: inset 0 0 0 1px #d9770633; }
.hedge .rg-tag.info { background: #f0f9ff; color: #075985; box-shadow: inset 0 0 0 1px #0284c733; }
.hedge .rg-tag.bad { background: #fef2f2; color: #b91c1c; box-shadow: inset 0 0 0 1px #dc262633; }
.hedge.dark .rg-tag.good, .dark .hedge .rg-tag.good { background: #10b9811a; color: #6ee7b7; box-shadow: inset 0 0 0 1px #34d39940; }
.hedge.dark .rg-tag.warn, .dark .hedge .rg-tag.warn { background: #f59e0b1a; color: #fcd34d; box-shadow: inset 0 0 0 1px #fbbf2440; }
.hedge.dark .rg-tag.info, .dark .hedge .rg-tag.info { background: #0ea5e91a; color: #7dd3fc; box-shadow: inset 0 0 0 1px #38bdf840; }
.hedge.dark .rg-tag.bad, .dark .hedge .rg-tag.bad { background: #ef44441a; color: #fca5a5; box-shadow: inset 0 0 0 1px #f8717140; }
.hedge .rg-link, .hedge .ops-panel-link { color: var(--primary); font-weight: 500; }
.hedge .rg-link { padding-block: 0; }
.hedge .rg-person-name { font-weight: 500; }
.hedge [data-registry-row] { cursor: pointer; }
.hedge .rg-seat-meter { width: 5rem; }
.hedge .rg-price { font-family: var(--font-mono, monospace); white-space: nowrap; }
.hedge .rg-detail { gap: .75rem 2rem; padding: 1rem; }
.hedge .rg-detail dt, .hedge .rg-fields .field { font-size: .75rem; color: var(--muted-foreground); }
.hedge .rg-detail dd { margin-top: .125rem; font-size: .8125rem; font-weight: 500; overflow-wrap: anywhere; }
.hedge :is(.rg-pad, .rg-inline, .rg-subhead, .rg-measures) { padding-inline: .875rem; }
.hedge .rg-fields { gap: .75rem; }
.hedge .rg-fields :is(input:not([type=checkbox]), select, textarea) {
  border-radius: .375rem;
  min-height: 2.25rem;
  padding: .375rem .625rem;
  border-color: var(--input);
  background: var(--card);
  color: var(--foreground);
  font-size: .875rem;
}
.hedge .rg-fields .rg-full .rg-bar { padding: .5rem .75rem; }
.hedge .rg-fields .rg-module-editor { border: 1px solid var(--border); border-top: 0; }
.hedge .rg-counter { border-radius: .375rem; background: var(--muted); }
.hedge .rg-counter span, .hedge .rg-help { color: var(--muted-foreground); }
.hedge .rg-counter strong { color: var(--foreground); font-family: var(--font-mono, monospace); }
.hedge .rg-empty { color: var(--muted-foreground); }
.hedge .rg :focus-visible, .hedge .rg-fields :focus-visible { outline-color: var(--ring); }
.hedge .rg-curriculum-data { padding: .75rem; }
.hedge .rg-form-section { display: grid; gap: .75rem; padding: .25rem 0 1rem; min-width: 0; }
.hedge .rg-form-section:not(:last-child) { border-bottom: 1px solid var(--border); }
.hedge .rg-form-section > h3 { font-size: .6875rem; font-weight: 600; letter-spacing: .065em; text-transform: uppercase; color: var(--muted-foreground); }
.hedge .rg-form-section > .rg-fields { display: grid; }
.hedge .he-record-drawer:has(.rg-form-section) { width: min(100%, 48rem); max-width: 48rem; }

.rg-workspace-stack { display: grid; gap: 1rem; min-width: 0; }
.rg-student-identity { margin: .75rem .875rem 0; color: var(--muted-foreground, #526770); }
.rg-roster-filter { display: inline-flex; align-items: center; gap: .375rem; color: var(--muted-foreground, #526770); font-size: .8125rem; }
.rg-roster-filter select {
  border: 1px solid var(--input, #cfd9dd);
  border-radius: .375rem;
  background: var(--card, #fff);
  color: var(--foreground, #18303b);
  font: inherit;
  min-height: 2rem;
  padding: .25rem .5rem;
}
.rg-quantity { font-family: var(--font-mono, monospace); font-variant-numeric: tabular-nums; white-space: nowrap; }

.ops-landing, .ops-land-columns, .ops-land-columns > div, .ops-land-columns > aside { display: grid; min-width: 0; align-content: start; gap: 1rem; }
.ops-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; }
.ops-kpi {
  display: flex;
  min-width: 0;
  flex-direction: column;
  position: relative;
  gap: .25rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .75rem;
}
.ops-kpi:nth-child(2n) { border-right: 0; }
.ops-kpi:nth-child(n+3) { border-bottom: 0; }
.ops-kpi::before { position: absolute; content: ""; width: 3px; inset: 0 auto 0 0; background: var(--kpi-accent); }
.ops-kpi > span { display: flex; align-items: center; gap: .375rem; }
.ops-kpi > :is(span, small) { font-size: .75rem; color: var(--muted-foreground); }
.ops-kpi > span { font-weight: 500; }
.ops-kpi strong { font-family: var(--font-mono, monospace); font-size: 1rem; font-weight: 600; letter-spacing: -.02em; }
.ops-kpi:hover { background: color-mix(in oklch, var(--accent) 40%, transparent); }
.ops-kpi:hover small { color: var(--primary); }
.ops-portlet { overflow: hidden; }
.ops-portlet h2 { display: flex; align-items: center; gap: .5rem; margin: 0; }
.ops-portlet h2 svg { color: var(--muted-foreground); }
.ops-panel-link { font-size: .75rem; white-space: nowrap; }
.ops-panel-link:hover, .ops-row-link:hover { text-decoration: underline; }
.ops-areas { display: grid; }
.ops-group { min-width: 0; padding: .5rem; }
.ops-group + .ops-group { border-top: 1px solid var(--border); }
.ops-group > h3 {
  margin: 0;
  padding: .25rem .5rem .375rem;
  color: var(--muted-foreground);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.ops-area { display: flex; align-items: center; gap: .75rem; padding: .5rem; border-radius: .125rem; }
.ops-area > span { min-width: 0; flex: 1; }
.ops-area strong, .ops-area small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ops-area strong { color: var(--primary); font-size: .8125rem; font-weight: 500; }
.ops-area small { color: var(--muted-foreground); font-size: .75rem; }
.ops-area b {
  min-width: 2.25rem;
  padding: .125rem .375rem;
  border-radius: .125rem;
  text-align: center;
  background: var(--muted);
  font-family: var(--font-mono, monospace);
  font-size: .75rem;
  font-weight: 600;
}
.ops-area b.urgent { color: var(--destructive); background: color-mix(in oklch, var(--destructive) 10%, transparent); }
.ops-area:hover { background: color-mix(in oklch, var(--accent) 50%, transparent); }
.ops-area:hover strong { text-decoration: underline; }
.ops-list { padding: 0; margin: 0; list-style: none; }
.ops-list li, .ops-ident > div {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .625rem .875rem;
  font-size: .8125rem;
}
.ops-list li + li, .ops-ident > div + div { border-top: 1px solid var(--border); }
.ops-list li > span:first-child { flex: 1; min-width: 0; }
.ops-list li > span:first-child small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-foreground); font-size: .75rem; }
.ops-list li code { width: 2rem; text-align: right; }
.ops-empty { padding: 1rem .875rem; color: var(--muted-foreground); font-size: .8125rem; }
.ops-row-link { color: var(--foreground); font-weight: 500; }
.ops-ident { margin: 0; }
.ops-ident dt { color: var(--muted-foreground); }
.ops-ident dd { text-align: right; margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.ops-meter-pair { display: flex; width: max-content; align-items: center; gap: .5rem; }
.ops-meter { display: inline-block; width: 7rem; height: .375rem; border-radius: 1rem; background: var(--muted); overflow: hidden; }
.ops-meter.long { width: min(8rem, 33%); }
.ops-meter i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.ops-landing code, .ops-meter-pair code { font-family: var(--font-mono, monospace); font-size: .75rem; }
@media (min-width: 640px) { .ops-kpi { padding: 1rem; } .ops-kpi strong { font-size: 1.25rem; } }
@media (min-width: 1024px) {
  .ops-kpis, .ops-areas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ops-kpi { border-bottom: 0; }
  .ops-kpi:nth-child(2n) { border-right: 1px solid var(--border); }
  .ops-kpi:last-child { border-right: 0; }
  .ops-kpi strong { font-size: 1.5rem; }
  .ops-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-group:nth-child(-n+2) { border-top: 0; }
  .ops-group:nth-child(even) { border-left: 1px solid var(--border); }
}
@media (min-width: 1280px) { .ops-land-columns { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 400px) { .hedge .rg-toolbar .rg-search-wrap { flex: 1 1 11rem; } }

.hedge .rg-student-timeline {
  margin-top: .75rem;
}
.hedge .rg-timeline-tools {
  display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:.65rem;
  padding:0 0 .75rem;
}
.hedge .rg-timeline-tools .field {
  display:grid; gap:.25rem;
  color:var(--muted-foreground); font-size:.8125rem;
}
.hedge .rg-timeline-list {
  list-style:none; padding:0; margin:0; display:grid;
}
.hedge .rg-timeline-list li {
  display:grid; grid-template-columns:6rem minmax(0,1fr) auto;
  align-items:start; gap:.55rem; padding:.65rem .15rem;
  border-top:1px solid var(--border);
}
.hedge .rg-timeline-list time,
.hedge .rg-timeline-meta strong {
  color:var(--muted-foreground); font-family:var(--font-mono); font-size:.75rem;
}
.hedge .rg-timeline-copy > strong { font-size:.875rem; }
.hedge .rg-timeline-copy p,
.hedge .rg-timeline-copy small {
  display:block; margin:.2rem 0 0; color:var(--muted-foreground);
  overflow-wrap:anywhere; white-space:pre-wrap; font-size:.8125rem;
}
.hedge .rg-timeline-copy small { font-size:.75rem; }
.hedge .rg-timeline-meta { display:grid; justify-items:end; gap:.25rem; text-align:right; }
.hedge .rg-timeline-meta span {
  border-radius:.35rem; padding:.14rem .36rem; color:var(--muted-foreground);
  background:var(--muted); font-size:.6875rem;
}
.hedge .rg-timeline-retry { margin:.25rem 0 .75rem; }
.hedge .rg-history-note-context { margin:0; color:var(--muted-foreground); font-size:.875rem; }
@media (max-width:36rem) {
  .hedge .rg-timeline-list li { grid-template-columns:1fr auto; }
  .hedge .rg-timeline-list time { grid-column:1 / -1; }
}

.rg .deposit-reference {padding:16px 22px;border-top:1px solid #e5ebee}
.rg .deposit-reference h3 {margin:0 0 8px;font-size:1rem}
.rg .deposit-reference-code {font:650 1.25rem/1.4 ui-monospace,monospace;letter-spacing:.04em}
.rg .deposit-reference p {max-width:65ch;margin:8px 0 12px}
.rg .deposit-reference-actions {display:flex;flex-wrap:wrap;gap:8px}
.rg [data-reference-feedback]:not(:empty) {display:block;margin-top:6px}

.rg-class-context {
  color: var(--muted-foreground, #4d606a);
  margin: 0;
  padding: 0 .875rem .75rem;
}
.rg-class-section > header {
  align-items: center;
  border-top: 1px solid var(--border, #d6dde3);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 3rem;
  padding: .6rem .875rem;
}
.rg-class-section > header h3 {
  font-size: 1rem;
  margin: 0;
}
.rg-projection-gap small, .rg-price-date {
  color: var(--muted-foreground, #4d606a);
  display: block;
  font-weight: normal;
}

.rg-course-tuition {
  --tuition-line: var(--border, #d6dde3);
  --tuition-muted: var(--muted-foreground, #4d606a);
  padding: 1rem clamp(.875rem, 2vw, 1.5rem) 1.5rem;
  min-width: 0;
}
.rg-course-tuition + .rg-course-tuition { border-top: 1px solid var(--tuition-line); }
.rg-course-tuition > h3 { margin: 0 0 1.125rem; font-size: 1.0625rem; }
.rg-tuition-section + .rg-tuition-section { margin-top: 1.375rem; }
.rg-tuition-section > h4 { margin: 0 0 .5rem; font-size: .9375rem; font-weight: 600; }
.rg-tuition-section > .rg-table {
  border: 1px solid var(--tuition-line);
  border-radius: .375rem;
  box-sizing: border-box;
}
.rg-tuition-monthly .rg-table :is(th,td):not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rg-tuition-note {
  display: block;
  margin-top: .1rem;
  font-size: .75rem;
  font-weight: 400;
  color: var(--tuition-muted);
}
.rg-tuition-fees .rg-table tbody th[scope=rowgroup] {
  background: transparent;
  color: inherit;
  font-weight: 500;
  font-size: inherit;
  white-space: normal;
  vertical-align: top;
}
.rg-tuition-fees .rg-table td { vertical-align: top; }
.rg-tuition-fees .rg-table tbody + tbody { border-top: 1px solid var(--tuition-line); }
.rg-tuition-fees .rg-table td div + div { margin-top: .375rem; }
.rg-tuition-calendar dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  gap: 1rem 1.5rem;
  margin: 0;
  padding: .875rem;
  border-block: 1px solid var(--tuition-line);
}
.rg-tuition-calendar dt { color: var(--tuition-muted); font-size: .75rem; }
.rg-tuition-calendar dd { margin: .25rem 0 0; font-size: .8125rem; }
.rg-tuition-calendar ul { margin: 0; padding: 0; list-style: none; }
.rg-tuition-calendar li + li { margin-top: .25rem; }
.rg-tuition-heading, .rg-tuition-cell {
  display: flex;
  align-items: center;
  gap: .625rem;
}
.rg-tuition-heading {
  justify-content: space-between;
  margin-bottom: .5rem;
}
.rg-tuition-heading h4 { margin: 0; font-size: .9375rem; font-weight: 600; }
.rg-tuition-cell { justify-content: flex-end; }
.rg-tuition-cell .rg-link, .rg-tuition-action .rg-link { font-size: .75rem; }
.rg-tuition-fees .rg-table .rg-tuition-action { width: 1%; text-align: end; white-space: nowrap; }
.rg-tuition-empty {
  margin: 0;
  padding: .75rem .875rem;
  border: 1px solid var(--tuition-line);
  border-radius: .375rem;
  color: var(--tuition-muted);
  font-size: .8125rem;
}

.rg-fee-scope { border-top: 1px solid var(--border, #d6dde3); padding-top: .875rem; }
.rg-fee-scope h3 { font-size: .9375rem; margin: 0 0 .75rem; }
.rg-fee-scope [data-fee-count] { color: var(--muted-foreground, #4d606a); font-size: .8125rem; margin: .5rem 0; }
.rg-fee-scope fieldset { border: 1px solid var(--border, #d6dde3); border-radius: .375rem; padding: .75rem; }
.rg-fee-scope legend { font-weight: 600; padding-inline: .25rem; }
.rg-fee-cohort { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: .875rem; }
.rg-fee-cohort + .rg-fee-cohort { border-top: 1px solid var(--border, #d6dde3); margin-top: .5rem; padding-top: .5rem; }

/* Administrative reporting lines, managed in RH. */
.oc-panel .rg-bar{flex-wrap:wrap;gap:.8rem}
.oc-views{display:inline-flex;border:1px solid var(--border,#ccd5dc);border-radius:7px;overflow:hidden}
.oc-views a{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:0 12px;color:var(--muted-foreground,#526275);font-size:.875rem;text-decoration:none}
.oc-views a[aria-current]{background:color-mix(in srgb,var(--teal) 10%,var(--card));color:var(--teal,#09675f);font-weight:600}
.oc-views a:focus-visible{outline-offset:-3px}
.oc-campus,.oc-relations{padding:1rem 1.25rem}
.oc-campus+.oc-campus{border-top:1px solid var(--border,#d5dee5)}
.oc-campus>h3{display:flex;align-items:center;gap:7px;margin:0 0 .85rem;font-size:.95rem}
.oc-branches{list-style:none;margin:0;padding:0}
.oc-branches li{min-width:0;margin:0;padding:0}
.oc-branches>li+li{margin-top:10px}
.oc-card{display:flex;align-items:center;gap:10px;width:fit-content;max-width:100%;min-width:min(214px,100%);padding:10px 12px;border:1px solid var(--border,#ced9df);border-left:3px solid var(--teal,#08756e);border-radius:6px;background:var(--card,#fff);color:inherit;text-decoration:none;box-sizing:border-box}
.oc-card:hover,.oc-card:focus-visible{border-color:var(--teal,#08756e)}
.oc-avatar{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:50%;background:color-mix(in srgb,var(--teal) 10%,var(--card));color:var(--teal,#09675f);font-size:.75rem;font-weight:700}
.oc-caption{min-width:0;display:grid;gap:.14rem;overflow-wrap:anywhere}
.oc-service,.oc-holder{font-size:.8rem;color:var(--muted-foreground,#526275)}
.oc-caption strong{font-size:.95rem;line-height:1.25}
.oc-vacant{color:var(--muted-foreground,#526275);font-style:italic}
.oc-branches .oc-branches{border-inline-start:1px solid var(--border,#b8c6ce);margin-inline-start:1.2rem;padding:.6rem 0 0 1.2rem}
.oc-branches .oc-branches>li{position:relative}
.oc-branches .oc-branches>li:before{content:"";position:absolute;top:1.6rem;inset-inline-start:-1.2rem;width:1.2rem;border-top:1px solid var(--border,#b8c6ce)}
.oc-relations h3{margin:0 0 .4rem;font-size:1rem}
.oc-relations h3:not(:first-child){margin-top:1.15rem}
.oc-relations p{margin:.25rem 0 1rem}
.oc-relations ul{padding-inline-start:1.2rem}
.oc-empty{text-align:center;padding:2.5rem 1rem;color:var(--muted-foreground,#526275)}
.oc-empty h3{margin:.6rem 0 .2rem;color:var(--text,#172533)}
.oc-empty p{margin:.25rem auto;max-width:36rem}
@media(min-width:1100px){
  .oc-campus>.oc-branches>li:has(>.oc-branches:is([data-count="2"],[data-count="3"],[data-count="4"]))>.oc-card{margin-inline:auto}
  .oc-campus>.oc-branches>li>.oc-branches:is([data-count="2"],[data-count="3"],[data-count="4"]){position:relative;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:start;gap:1rem;border:0;margin:0;padding:2rem 0 0}
  .oc-campus>.oc-branches>li>.oc-branches:is([data-count="2"],[data-count="3"],[data-count="4"])::before{content:"";position:absolute;inset-inline-start:50%;top:0;height:1rem;border-inline-start:1px solid var(--border)}
  .oc-campus>.oc-branches>li>.oc-branches:is([data-count="2"],[data-count="3"],[data-count="4"])>li{min-width:0;margin:0}
  .oc-campus>.oc-branches>li>.oc-branches:is([data-count="2"],[data-count="3"],[data-count="4"])>li>.oc-card{margin-inline:auto}
  .oc-campus>.oc-branches>li>.oc-branches:is([data-count="2"],[data-count="3"],[data-count="4"])>li:before{inset-inline-start:50%;top:-1rem;width:0;height:1rem;border:0;border-inline-start:1px solid var(--border)}
  .oc-campus>.oc-branches>li>.oc-branches:is([data-count="2"],[data-count="3"],[data-count="4"])>li+li:after{content:"";position:absolute;top:-1rem;inset-inline-end:50%;width:calc(100% + 1rem);border-top:1px solid var(--border);pointer-events:none}
  .oc-campus>.oc-branches>li>.oc-branches:is([data-count="2"],[data-count="3"],[data-count="4"])>li>.oc-branches{margin-inline-start:max(1rem,calc((100% - 17rem) / 2 + 1.2rem))}
  .oc-card{width:min(100%,17rem)}
}
@media(max-width:700px){
  .oc-views a{min-height:44px}
  .oc-card{min-height:52px}
  .oc-campus,.oc-relations{padding:1rem .8rem}
  .oc-branches .oc-branches{margin-inline-start:.5rem;padding-inline-start:.6rem}
  .oc-branches .oc-branches>li:before{inset-inline-start:-.6rem;width:.6rem}
}

.rg-check[data-advance-option][hidden]{display:none}

.rg-fields [hidden], .rg-rate-help:empty { display: none !important; }
.rg-rate-help { margin: 0; color: var(--muted-foreground, #475569); }
.rg-fields [data-class-calendar] { margin: 0; border: 0; border-top: 1px solid var(--border, #d7dfea); padding: 1rem 0; }
.rg-fields [data-class-calendar] legend { font-weight: 600; padding: 0 .5rem 0 0; }
.rg-fee-quote { display: grid; gap: .5rem; border-left: 3px solid var(--primary, #0d6a64); background: var(--muted, #f0f6f7); padding: 1rem; }
.rg-fee-quote strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.rg-fee-quote p { margin: 0; }

.facility-page, .facility-columns, .facility-columns > div, .facility-map-columns,
.facility-columns > aside, .facility-map-columns > aside {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 1rem;
}

.facility-page {
  --facility-muted: var(--muted-foreground,#58667b);
  --facility-fill: color-mix(in oklab,var(--muted,#f1f3f6) 60%,transparent);
  --facility-surface: var(--card,#fff);
  --facility-line: var(--border,#dce0e4);
  --facility-primary: var(--primary,#116762);
  --facility-highlight: color-mix(in oklab,var(--accent,#e2f0ed) 60%,transparent);
  color: var(--foreground,#1f2c3e);
  font-size: .8125rem;
}

.facility-page [data-occupancy="free"] { --room-tone: color-mix(in oklab,var(--facility-muted) 33%,transparent); }
.facility-page [data-occupancy="low"] { --room-tone:#258bd0; }
.facility-page [data-occupancy="normal"] { --room-tone:var(--facility-primary); }
.facility-page [data-occupancy="near"] { --room-tone:#d79610; }
.facility-page [data-occupancy="full"] { --room-tone:#d34141; }
.facility-page [data-occupancy="maintenance"] { --room-tone:var(--facility-muted); }
.facility-page [data-occupancy="day"] { --room-tone:var(--chart-5,#d0a44c); }
.facility-page [data-occupancy="night"] { --room-tone:var(--chart-2,#5464a1); }

.facility-kpis, .facility-panel {
  min-width: 0;
  overflow: hidden;
  background:var(--facility-surface);
  border: 1px solid var(--facility-line);
  border-radius: .375rem;
}
.facility-kpis { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.facility-kpis a {
  position:relative;
  display:flex;
  flex-direction:column;
  gap:.25rem;
  min-width:0;
  padding:.75rem;
  border-inline-end:1px solid var(--facility-line);
  border-block-end:1px solid var(--facility-line);
}
.facility-kpis a:nth-child(2n) { border-inline-end:0; }
.facility-kpis a:nth-child(n+3) { border-block-end:0; }
.facility-kpis a::before { position:absolute; inset:0 auto 0 0; width:3px; background:var(--facility-accent); content:""; }
.facility-kpis a:hover { background:var(--facility-highlight); }
.facility-kpis a span { display:flex; align-items:center; gap:.375rem; font-weight:500; }
.facility-kpis a small, .facility-kpis a span { color:var(--facility-muted); font-size:.75rem; }
.facility-kpis a strong { font-family:var(--font-mono,monospace); font-size:1.25rem; font-weight:650; letter-spacing:-.02em; line-height:1.25; }

.facility-panel-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  min-height:2.125rem;
  padding:.5rem .875rem;
  background:var(--facility-fill);
  border-block-end:1px solid var(--facility-line);
}
.facility-page .facility-panel-head h2 { display:flex; align-items:center; gap:.5rem; margin:0; font-size:.8125rem; font-weight:650; }
.facility-panel-head svg { color:var(--facility-muted); }
.facility-panel-head a { flex-shrink:0; }
.facility-link { color:var(--facility-primary,var(--primary,#116762)); font-size:.75rem; font-weight:550; }
button.facility-link { border:0; background:none; padding:0; text-align:left; }
.facility-link:hover { text-decoration:underline; }

.facility-launch { display:grid; }
.facility-launch > section { min-width:0; padding:.5rem; }
.facility-launch h3, .facility-map-building h3, .facility-building h3, .facility-room-info h3 {
  margin:0;
  color:var(--facility-muted);
  font-size:.6875rem;
  font-weight:650;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.facility-launch h3 { padding:.25rem .5rem .375rem; }
.facility-launch a {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  min-width:0;
  padding:.5rem;
  border-radius:.25rem;
}
.facility-launch a:hover { background:var(--facility-highlight); }
.facility-launch strong, .facility-campus-summary strong, .facility-pending strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.8125rem; font-weight:550; }
.facility-launch a strong { color:var(--facility-primary); }
.facility-launch a:hover strong { text-decoration:underline; }
.facility-launch a span, .facility-pending li > span { min-width:0; }
.facility-launch a small, .facility-campus-summary small, .facility-pending small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--facility-muted); font-size:.75rem; }
.facility-launch-count {
  min-width:2.25rem;
  padding:.125rem .375rem;
  border-radius:.25rem;
  background:var(--facility-fill);
  text-align:center;
  font-family:var(--font-mono,monospace);
  font-size:.75rem;
}

.facility-campus-summary { display:grid; gap:.625rem; padding:.75rem .875rem; }
.facility-campus-summary + .facility-campus-summary,
.facility-pending li + li { border-block-start:1px solid var(--facility-line); }
.facility-campus-summary > div:nth-child(2) { display:grid; gap:.5rem; }
.facility-capacity-row { display:grid; grid-template-columns:5.625rem 1fr 5.75rem; align-items:center; gap:.75rem; color:var(--facility-muted); font-size:.75rem; }
.facility-capacity-row strong { text-align:right; font-family:var(--font-mono,monospace); }
.facility-capacity-row small { display:inline; }
.facility-pending, .facility-legend, .facility-room-week, .facility-student-finder ul { list-style:none; padding:0; margin:0; }
.facility-pending li { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.625rem .875rem; }
.facility-pending { max-height:24rem; overflow:auto; }
.facility-pill {
  flex-shrink:0;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  padding:.125rem .375rem;
  background:color-mix(in oklab,var(--room-tone) 10%,var(--facility-surface));
  border:1px solid color-mix(in oklab,var(--room-tone) 22%,var(--facility-line));
  border-radius:.25rem;
  color:color-mix(in oklab,var(--room-tone) 74%,var(--foreground,#1f2c3e));
  font-size:.6875rem;
  font-weight:550;
  line-height:1.2;
  white-space:nowrap;
}

.facility-message { padding:.75rem .875rem; margin:0; color:var(--facility-muted); }
.facility-message.facility-centered { padding:1.5rem .875rem; text-align:center; }
.facility-empty { display:grid; justify-items:center; align-content:center; gap:.625rem; min-height:12rem; padding:1.25rem; text-align:center; }
.facility-empty > span { display:grid; place-content:center; width:2.75rem; height:2.75rem; border-radius:.375rem; background:var(--facility-fill); color:var(--facility-muted); }
.facility-empty strong { font-size:1rem; }
.facility-empty p { color:var(--facility-muted); }
.facility-page .btn { min-height:2rem; gap:.375rem; padding:.3125rem .625rem; font-size:.8125rem; line-height:1.25; }
.facility-toolbar, .facility-controls { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; }
.facility-toolbar { padding:.5rem .75rem; background:var(--facility-fill); border-block-end:1px solid var(--facility-line); }
.facility-toolbar > span, .facility-toolbar > small, .facility-secondary { color:var(--facility-muted); font-size:.75rem; }
.facility-spacer { flex:1; }
.facility-search { position:relative; display:flex; gap:.25rem; align-items:center; flex:1 1 15rem; max-width:19rem; }
.facility-search svg { position:absolute; inset-inline-start:.625rem; color:var(--facility-muted); pointer-events:none; }
.facility-search input { width:100%; padding-inline-start:2rem; }
.facility-search input, .facility-toolbar select {
  min-height:2rem;
  border:1px solid var(--input,#d3dbe1);
  border-radius:.375rem;
  background:var(--facility-surface);
  color:inherit;
  font:inherit;
}
.facility-toolbar select { width:min(100%,21rem); padding:.25rem .5rem; }
.facility-page .facility-table { max-width:100%; overflow:auto; }
.facility-page .facility-table table { width:100%; min-width:54rem; border-collapse:collapse; font-size:.8125rem; }
.facility-table th, .facility-table td { padding:.5625rem .75rem; text-align:left; white-space:nowrap; }
.facility-table th { color:var(--facility-muted); font-weight:550; background:color-mix(in oklab,var(--facility-fill) 58%,transparent); }
.facility-table tr > * { border-block-end:1px solid var(--facility-line); }
.facility-table tr:last-child > td { border-block-end:0; }
.facility-table tr[data-facility-row] { cursor:pointer; }
.facility-table tr[data-facility-row]:hover { background:var(--facility-highlight); }
.facility-table .facility-number { font-family:var(--font-mono,monospace); text-align:right; }
.facility-table .facility-message { color:var(--facility-muted); padding:1.5rem .875rem; text-align:center; }
.facility-shift-cell { display:flex; align-items:center; gap:.5rem; font-size:.75rem; }
.facility-shift-cell small { color:var(--facility-muted); font-family:var(--font-mono,monospace); }
.facility-shift-cell .facility-bar { width:4rem; }
.facility-sr { position:absolute; overflow:hidden; clip-path:inset(50%); width:1px; height:1px; white-space:nowrap; }

.facility-padded { display:grid; gap:.75rem; padding:.75rem; }
.facility-segments { display:inline-flex; flex-wrap:wrap; align-items:center; gap:2px; padding:.1875rem; background:var(--facility-fill); border:1px solid var(--facility-line); border-radius:.375rem; font-size:.75rem; }
.facility-segments :is(a,button) { display:flex; align-items:center; gap:.375rem; padding:.375rem .5rem; border:1px solid transparent; border-radius:.25rem; color:var(--facility-muted); font:inherit; }
.facility-segments a:hover, .facility-segments button:hover { color:var(--foreground,#1f2c3e); }
.facility-segments :is([aria-current="true"],[aria-pressed="true"]) { color:var(--foreground,#1f2c3e); background:var(--facility-surface); border-color:var(--facility-line); font-weight:650; }
.facility-segments small { color:var(--facility-muted); font-family:var(--font-mono,monospace); font-size:.6875rem; }
.facility-shift-summary { display:flex; align-items:center; flex-wrap:wrap; gap:.25rem 1.5rem; padding:0; margin:0; font-size:.75rem; }
.facility-shift-summary div { display:flex; align-items:baseline; gap:.375rem; }
.facility-shift-summary dt { color:var(--facility-muted); }
.facility-shift-summary dd { margin:0; font-family:var(--font-mono,monospace); font-weight:650; }
.facility-legend { display:flex; flex-wrap:wrap; gap:.375rem 1rem; color:var(--facility-muted); font-size:.75rem; }
.facility-legend li { display:flex; align-items:center; gap:.375rem; }
.facility-legend i, .facility-seats i { display:block; border-radius:2px; background:var(--room-tone); }
.facility-legend i { width:.625rem; height:.625rem; }
.facility-legend i[data-occupancy="maintenance"] { border:1px dashed var(--facility-muted); background:transparent; }

.facility-buildings { display:grid; gap:.75rem; }
.facility-page .facility-buildings > h2 { margin:0; font-size:.875rem; font-weight:650; }
.facility-buildings h2 small { margin-inline-start:.25rem; color:var(--facility-muted); font-size:.75rem; font-weight:400; }
.facility-building { display:grid; min-width:0; gap:.5rem; padding:.75rem; background:color-mix(in oklab,var(--facility-fill) 64%,transparent); border:1px solid var(--facility-line); border-radius:.375rem; }
.facility-tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:.75rem; }
.facility-tile { display:grid; gap:.625rem; min-width:0; padding:.75rem; background:var(--facility-surface); border:1px solid var(--facility-line); border-radius:.375rem; }
.facility-tile:hover { border-color:var(--facility-primary); background:var(--facility-highlight); }
.facility-tile[data-occupancy="maintenance"] { border-style:dashed; }
.facility-tile header, .facility-tile footer div { display:flex; align-items:flex-start; justify-content:space-between; gap:.5rem; }
.facility-tile header > span:first-child, .facility-tile footer span { min-width:0; }
.facility-tile header strong, .facility-tile header > span > span, .facility-tile footer span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.facility-tile header strong { color:var(--facility-primary); font-family:var(--font-mono,monospace); font-size:.75rem; }
.facility-tile footer { display:grid; gap:.25rem; padding-block-start:.5rem; border-block-start:1px solid var(--facility-line); color:var(--facility-muted); font-size:.75rem; }
.facility-tile footer b { font-family:var(--font-mono,monospace); }
.facility-seats { display:flex; flex-wrap:wrap; align-content:start; gap:3px; min-height:3rem; }
.facility-seats i { width:.5rem; height:.5rem; }
.facility-closed { display:grid; place-content:center; min-height:3rem; border-radius:.25rem; background:var(--facility-fill); color:var(--facility-muted); font-size:.75rem; }
.facility-bar { display:block; height:.375rem; border-radius:6rem; background:var(--muted,#eceff1); overflow:hidden; }
.facility-bar i { display:block; height:100%; border-radius:inherit; background:var(--room-tone); }

.facility-map-controls { display:grid; gap:.75rem; }
.facility-time { display:flex; align-items:center; gap:.75rem; color:var(--facility-muted); }
.facility-time output { flex-shrink:0; min-width:3rem; color:var(--foreground,#1f2c3e); text-align:right; font-family:var(--font-mono,monospace); font-weight:650; }
.facility-time input { width:100%; min-width:0; accent-color:var(--facility-primary); }
.facility-map-scroll { overflow:auto; }
.facility-schematic {
  min-width:34rem;
  display:grid;
  align-content:center;
  grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));
  gap:1rem;
  min-height:15rem;
  padding:1rem;
  border:1px solid var(--facility-line);
  border-radius:.375rem;
  background:
    repeating-linear-gradient(0deg,transparent 0 15px,var(--facility-line) 15px 16px),
    repeating-linear-gradient(90deg,transparent 0 15px,var(--facility-line) 15px 16px),
    var(--background,#f0f3f7);
}
.facility-map-building { display:grid; align-content:start; gap:.5rem; padding:.625rem; border:1px solid var(--facility-line); border-radius:.375rem; background:var(--facility-surface); }
.facility-map-floor { display:grid; gap:.25rem; }
.facility-map-floor small { color:var(--facility-muted); font-size:.6875rem; text-transform:uppercase; }
.facility-map-floor > div { display:grid; grid-template-columns:repeat(auto-fit,minmax(5rem,1fr)); gap:.375rem; }
.facility-map-floor button {
  display:grid;
  gap:.125rem;
  min-width:0;
  min-height:3rem;
  padding:.375rem;
  border:1px solid color-mix(in oklab,var(--room-tone) 52%,var(--facility-line));
  border-radius:.25rem;
  background:color-mix(in oklab,var(--room-tone) 12%,var(--facility-surface));
  text-align:left;
  font-size:.6875rem;
}
.facility-map-floor button[data-occupancy="maintenance"] { border-style:dashed; }
.facility-map-floor button[aria-pressed="true"] { border-color:var(--facility-primary); outline:1px solid var(--facility-primary); }
.facility-map-floor :is(b,span,em) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.facility-map-floor b { font-family:var(--font-mono,monospace); font-weight:650; }
.facility-map-floor em { justify-self:end; color:var(--facility-muted); font-style:normal; }
.facility-plan-note { color:var(--facility-muted); font-size:.75rem; margin-block-start:.5rem; }

.facility-student-finder { position:relative; padding:.75rem; }
.facility-student-finder .facility-search { max-width:none; }
.facility-student-finder ul { display:grid; margin-top:.25rem; border:1px solid var(--facility-line); border-radius:.375rem; }
.facility-student-finder button { display:flex; width:100%; justify-content:space-between; gap:.5rem; border:0; padding:.375rem .5rem; text-align:left; }
.facility-student-finder button:hover { background:var(--facility-highlight); }
.facility-student-finder button small, .facility-selected-student small, .facility-current-lesson small { color:var(--facility-muted); font-size:.75rem; }
.facility-room-info { display:grid; gap:.75rem; padding:.75rem .875rem; }
.facility-room-info > span { color:var(--facility-muted); font-size:.75rem; }
.facility-selected-student { border-block-start:1px solid var(--facility-line); }
.facility-selected-student small { display:block; }
.facility-current-lesson { display:grid; gap:.25rem; padding:.5rem .75rem; border-radius:.375rem; background:var(--facility-highlight); }
.facility-room-week { display:grid; gap:.125rem; max-height:11rem; overflow:auto; padding-block-start:.25rem; font-size:.75rem; }
.facility-room-week li { display:flex; justify-content:space-between; gap:.5rem; }
.facility-room-week small { color:var(--facility-muted); font-size:inherit; }
.facility-room-week span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.facility-timetable { overflow:auto; }
.facility-timetable table { min-width:45rem; width:100%; border-collapse:collapse; table-layout:fixed; font-size:.75rem; }
.facility-timetable tr > * { padding:.375rem .5rem; border-block-end:1px solid var(--facility-line); vertical-align:top; text-align:left; }
.facility-timetable :is(thead,tbody) th { color:var(--facility-muted); }
.facility-timetable thead th { background:var(--facility-fill); }
.facility-timetable th:first-child { width:6rem; }
.facility-timetable tbody th { font-family:var(--font-mono,monospace); font-weight:500; }
.facility-timetable th.facility-current-day { color:var(--facility-primary); }
.facility-current-day small { font-weight:400; }
.facility-lesson { display:grid; gap:.125rem; min-height:3.25rem; padding:.375rem .5rem; background:var(--facility-highlight); border-inline-start:2px solid var(--facility-primary); border-radius:.25rem; }
.facility-lesson:hover { background:color-mix(in oklab,var(--facility-highlight) 87%,var(--facility-primary)); }
.facility-lesson strong, .facility-lesson small, .facility-lesson span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.facility-lesson small { color:var(--facility-muted); }
.facility-lesson span { font-family:var(--font-mono,monospace); }
.facility-lesson .facility-no-room { color:var(--destructive,#9f301f); }
.facility-practical { border-color:var(--chart-3,#b8782c); background:color-mix(in oklab,var(--chart-3,#b8782c) 10%,var(--facility-surface)); }
.facility-running { outline:2px solid #d79610; }
.facility-timetable-key { display:flex; flex-wrap:wrap; align-items:center; gap:.25rem 1rem; padding:.5rem .75rem; color:var(--facility-muted); font-size:.75rem; }
.facility-timetable-key span { display:flex; align-items:center; gap:.375rem; }
.facility-timetable-key span::before { display:inline-block; width:.625rem; height:.625rem; border-radius:2px; background:var(--facility-primary); content:""; }
.facility-timetable-key span:nth-child(2)::before { background:var(--chart-3,#b8782c); }
.facility-timetable-key span:nth-child(3)::before { background:transparent; outline:2px solid #d79610; }
.facility-cancelled summary { padding:.5rem .75rem; cursor:pointer; }

.facility-form-section { display:grid; gap:.75rem; min-width:0; padding:.875rem 0; border-block-end:1px solid var(--border,#dce0e4); }
.facility-form-section:first-child { padding-block-start:0; }
.facility-form-section:last-child { border-block-end:0; }
.facility-form-section h3 { margin:0; color:var(--muted-foreground,#58667b); font-size:.6875rem; font-weight:650; letter-spacing:.06em; text-transform:uppercase; }
.facility-form-grid { display:grid; gap:.75rem; min-width:0; }
.facility-field { display:grid; gap:.375rem; min-width:0; font-size:.8125rem; font-weight:550; }
.facility-field :is(input,select) {
  width:100%;
  min-width:0;
  min-height:2rem;
  padding:.3rem .5rem;
  background:var(--card,#fff);
  color:var(--foreground,#1f2c3e);
  border:1px solid var(--input,#d3dbe1);
  border-radius:.375rem;
  font:inherit;
  font-weight:400;
}
.facility-form-note { padding:.5rem .75rem; margin:0; border-radius:.375rem; background:var(--accent,#e2f0ed); color:var(--accent-foreground,#254544); font-size:.75rem; }
.facility-tabs { display:flex; gap:.5rem; flex-wrap:wrap; margin-block-end:.75rem; font-size:.8125rem; }
.facility-tabs a { padding:.375rem .625rem; border-radius:.375rem; }
.facility-tabs a[aria-current="page"] { background:var(--accent,#e2f0ed); color:var(--primary,#116762); font-weight:600; }

@media (min-width:36rem) {
  .facility-campus-summary { grid-template-columns:minmax(0,10rem) minmax(0,1fr); align-items:center; }
  .facility-form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .facility-form-grid[data-columns="3"] { grid-template-columns:minmax(0,1fr) minmax(0,1fr) 5.5rem; }
}
@media (min-width:64rem) {
  .facility-kpis { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .facility-kpis a { padding:1rem; border-block-end:0; }
  .facility-kpis a:nth-child(2) { border-inline-end:1px solid var(--facility-line); }
  .facility-kpis a strong { font-size:1.5rem; }
  .facility-launch { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .facility-launch section+section { border-inline-start:1px solid var(--facility-line); }
  .facility-map-controls { grid-template-columns:auto minmax(0,1fr) auto; align-items:center; }
}
@media (min-width:80rem) {
  .facility-columns, .facility-map-columns { grid-template-columns:minmax(0,1fr) 21.25rem; }
}

.facility-plan-toolbar { display:flex; align-items:end; gap:.65rem; margin-block-end:.65rem; }
.facility-plan-toolbar:empty { display:none; }
.facility-plan-toolbar .facility-field { min-width:5rem; }
.facility-plan-scroll { overflow-x:auto; }
.facility-plan-canvas { position:relative; isolation:isolate; overflow:hidden; min-width:32rem; aspect-ratio:100 / 64; border:1px solid var(--facility-line); border-radius:.35rem;
  background-color:var(--background,#f3f5f6); background-image:linear-gradient(var(--facility-line) 1px,transparent 1px),linear-gradient(90deg,var(--facility-line) 1px,transparent 1px); background-size:4% 6.25%; }
.facility-plan-land,.facility-plan-room,.facility-plan-draft { position:absolute; display:flex; overflow:hidden; min-width:0; min-height:0; border:1px solid var(--facility-muted); border-radius:.25rem; font-size:clamp(.625rem,.8vw,.8125rem); line-height:1.2; }
.facility-plan-land { z-index:0; justify-content:center; align-items:center; background:var(--facility-fill); color:var(--facility-muted); }
.facility-plan-land span { padding:.2rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.facility-plan-building { z-index:1; align-items:flex-start; justify-content:flex-start; background:var(--facility-surface); border-color:var(--facility-muted); }
.facility-plan-building span { text-transform:uppercase; font-size:.6875rem; letter-spacing:.05em; }
.facility-plan-garden { background:color-mix(in srgb,#76ba87 24%,var(--facility-surface)); border-color:#70a981; }
.facility-plan-entrance { background:var(--facility-highlight); border-color:var(--facility-primary); }
.facility-plan-parking { border-style:dashed; }
.facility-plan-room { z-index:2; flex-direction:column; align-items:stretch; padding:.2rem .35rem; color:inherit; text-align:left; background:color-mix(in srgb,var(--room-tone) 17%,var(--facility-surface)); border-color:color-mix(in srgb,var(--room-tone) 65%,var(--facility-line)); }
.facility-plan-room :is(b,span,small,em) { overflow:hidden; flex-shrink:0; text-overflow:ellipsis; white-space:nowrap; }
.facility-plan-room b,.facility-plan-room em { font-family:var(--font-mono,monospace); }
.facility-plan-room em { align-self:end; margin-block-start:auto; font-style:normal; }
.facility-plan-room[aria-pressed=true],.facility-plan-room:focus-visible { outline:2px solid var(--facility-primary); outline-offset:-2px; }
.facility-plan-room[data-located],.facility-map-floor [data-located] { outline:2px dashed #ad790e; outline-offset:1px; }
.facility-plan-room[data-occupancy=maintenance] { border-style:dashed; }
.facility-unmapped { margin:.85rem 0 .4rem; font-size:.8125rem; }
.facility-plan-coordinates { display:grid; grid-template-columns:repeat(auto-fit,minmax(6rem,1fr)); gap:.65rem; margin-block:1rem; }
.facility-plan-draft { z-index:3; justify-content:center; align-items:center; pointer-events:none; border:2px dashed var(--facility-primary); background:var(--facility-highlight); color:var(--facility-primary); }
[data-plan-canvas] { cursor:crosshair; }
[data-plan-room-field][hidden],[data-plan-label-field][hidden] { display:none; }

:root {
  --radius: 0.375rem;
  --background: oklch(0.958 0.006 255);
  --foreground: oklch(0.25 0.03 262);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.25 0.03 262);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.25 0.03 262);
  --primary: oklch(0.47 0.08 186);
  --primary-foreground: oklch(0.99 0 0);
  --secondary: oklch(0.935 0.01 255);
  --secondary-foreground: oklch(0.3 0.035 262);
  --muted: oklch(0.945 0.008 255);
  --muted-foreground: oklch(0.5 0.03 258);
  --accent: oklch(0.94 0.028 186);
  --accent-foreground: oklch(0.36 0.07 186);
  --destructive: oklch(0.56 0.19 30);
  --border: oklch(0.895 0.012 255);
  --input: oklch(0.88 0.012 255);
  --ring: oklch(0.55 0.09 186);
  --chart-1: oklch(0.5 0.085 186);
  --chart-2: oklch(0.5 0.12 270);
  --chart-3: oklch(0.62 0.12 55);
  --chart-4: oklch(0.55 0.03 258);
  --chart-5: oklch(0.78 0.12 80);
  --sidebar: oklch(0.27 0.045 265);
  --sidebar-foreground: oklch(0.93 0.012 260);
  --sidebar-primary: oklch(0.8 0.11 75);
  --sidebar-primary-foreground: oklch(0.25 0.04 265);
  --sidebar-accent: oklch(0.335 0.05 265);
  --sidebar-accent-foreground: oklch(0.99 0 0);
  --sidebar-border: oklch(0.22 0.04 265);
  --sidebar-ring: oklch(0.8 0.11 75);
}

.dark {
  --background: oklch(0.17 0.018 260);
  --foreground: oklch(0.94 0.01 255);
  --card: oklch(0.215 0.02 260);
  --card-foreground: oklch(0.94 0.01 255);
  --popover: oklch(0.23 0.022 260);
  --popover-foreground: oklch(0.94 0.01 255);
  --primary: oklch(0.7 0.1 183);
  --primary-foreground: oklch(0.17 0.02 260);
  --secondary: oklch(0.27 0.022 260);
  --secondary-foreground: oklch(0.94 0.01 255);
  --muted: oklch(0.255 0.02 260);
  --muted-foreground: oklch(0.7 0.02 258);
  --accent: oklch(0.3 0.04 186);
  --accent-foreground: oklch(0.9 0.04 186);
  --destructive: oklch(0.68 0.17 28);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.62 0.09 186);
  --chart-1: oklch(0.7 0.1 183);
  --chart-2: oklch(0.68 0.12 270);
  --chart-3: oklch(0.72 0.12 55);
  --chart-4: oklch(0.65 0.03 258);
  --chart-5: oklch(0.82 0.12 80);
  --sidebar: oklch(0.135 0.02 262);
  --sidebar-foreground: oklch(0.9 0.012 260);
  --sidebar-primary: oklch(0.8 0.11 75);
  --sidebar-primary-foreground: oklch(0.2 0.03 265);
  --sidebar-accent: oklch(0.205 0.03 262);
  --sidebar-accent-foreground: oklch(0.99 0 0);
  --sidebar-border: oklch(1 0 0 / 8%);
  --sidebar-ring: oklch(0.8 0.11 75);
}

:root {
  --font-sans: "Open Sans Variable", "Open Sans", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --ink:var(--foreground);--text:var(--foreground);--teal:var(--primary);--line:var(--border);--soft:var(--muted);--bg:var(--background);--nav:var(--sidebar);
  font-family:var(--font-sans);color:var(--foreground);background:var(--background);
}
body.hedge { font-family:var(--font-sans); color:var(--foreground); background:var(--background); font-feature-settings:"tnum" 1; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
.hedge #app { min-height:100dvh; display:flex; flex-direction:column; }
.he-top-wrap,.he-page-wrap { width:100%; max-width:1600px; margin-inline:auto; }
.he-top-wrap { padding-inline:8px; }
.he-page-wrap { padding-inline:12px; }
.ws-sidebar + .he-workspace > .he-module-body { max-width:1400px; }
.ws-sidebar + .he-workspace .he-page-title { max-width:none; }
.he-header-sticky { position:sticky; z-index:30; top:0; box-shadow:0 1px 2px #0002; }
.he-masthead,.he-module-nav { color:var(--sidebar-foreground); background:var(--sidebar); border-bottom:1px solid var(--sidebar-border); }
.he-masthead .he-top-wrap { height:48px; display:flex; align-items:center; gap:8px; }
.he-top-button,.he-search-launch { appearance:none; display:flex; align-items:center; justify-content:center; gap:8px; height:32px; padding-inline:8px; color:color-mix(in oklch,var(--sidebar-foreground) 85%,transparent); border:1px solid transparent; border-radius:4px; font-size:.8125rem; line-height:1.25; }
.he-top-button:hover,.he-top-button[aria-expanded=true] { color:var(--sidebar-accent-foreground); background:var(--sidebar-accent); }
.he-brand { display:flex; align-items:center; justify-content:center; flex:none; background:white; padding:2px; border-radius:5px; }
.he-brand img { display:block; width:28px; height:28px; object-fit:contain; }
.he-masthead-rule { display:none; width:1px; height:20px; flex:none; background:var(--sidebar-border); }
.he-tenant { min-width:0; max-width:280px; }
.he-tenant .he-top-button,.he-search-launch { border-color:var(--sidebar-border); background:color-mix(in oklch,var(--sidebar-accent) 60%,transparent); }
.he-tenant .he-top-button { max-width:100%; overflow:hidden; }
.he-tenant .he-top-button span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:500; }
.he-tenant .he-top-button svg { opacity:.72; }
.he-desktop-institute,.he-search-launch>span,.he-search-launch kbd,.he-demo-tag,.he-bell,.he-theme,.he-user-meta {display:none;}
.he-search-launch { margin-left:auto; width:32px; flex:none; color:color-mix(in oklch,var(--sidebar-foreground) 64%,transparent); }
.he-search-launch:hover { border-color:color-mix(in oklch,var(--sidebar-foreground) 40%,transparent); }
.he-search-launch kbd { font:500 .6875rem var(--font-sans); margin-left:auto; padding:3px 5px; border:1px solid var(--sidebar-border); border-radius:4px; background:var(--sidebar); white-space:nowrap; }
.he-top-actions { flex:none; display:flex; align-items:center; gap:2px; }
.he-profile { padding-inline:6px; gap:6px; }
.he-user-mark { width:28px; height:28px; display:grid; place-items:center; color:var(--sidebar-primary-foreground); background:var(--sidebar-primary); font-size:.6875rem; font-weight:600; border-radius:50%; }
.he-user-meta { min-width:0; max-width:190px; text-align:left; }
.he-user-meta strong,.he-user-meta small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.he-user-meta strong {color:var(--sidebar-accent-foreground); font-weight:500; font-size:.75rem;}
.he-user-meta small {color:color-mix(in oklch,var(--sidebar-foreground) 65%,transparent); font-size:.6875rem;}
.he-bell {position:relative; }
.he-bell>span {position:absolute; display:grid; place-items:center; min-width:16px; padding-inline:2px; height:16px; top:1px; right:1px; background:var(--sidebar-primary); color:var(--sidebar-primary-foreground); border-radius:20px; font-size:.625rem; font-weight:700;}
.he-demo-tag {color:var(--sidebar-primary);border:1px solid color-mix(in oklch,var(--sidebar-primary) 45%,transparent);border-radius:3px;font-size:.625rem;text-transform:uppercase;font-weight:600;letter-spacing:.06em;padding:2px 6px;white-space:nowrap;}
.he-popup-anchor,.he-nav-group { position:relative; }
.he-flyout,.he-mega-menu { position:absolute; z-index:45; border:1px solid var(--border); background:var(--popover); color:var(--popover-foreground); box-shadow:0 9px 22px #0002; }
.he-flyout { top:calc(100% + 5px); right:0; min-width:170px; max-width:min(288px,calc(100vw - 18px)); border-radius:6px; padding:4px; }
.he-tenant .he-flyout {right:auto; left:0; width:min(288px,calc(100vw - 78px));}
.he-flyout[hidden],.he-mega-menu[hidden] { display:none; }
.he-flyout p {display:flex; gap:6px; align-items:center; padding:6px 8px; font-size:.75rem; color:var(--muted-foreground);}
.he-flyout .he-account-note {border-top:1px solid var(--border);margin-top:4px;}
.he-flyout button {display:flex;gap:8px;align-items:center;width:100%;border:0;border-radius:4px;padding:7px 8px;text-align:left;font-size:.8125rem;}
.he-flyout button:hover,.he-flyout button:focus-visible {background:var(--accent);color:var(--accent-foreground);}
.he-flyout button span {flex:1;}
.he-flyout .he-option-space {flex:none;width:14px;}
.he-module-nav {display:none;}
.he-module-nav .he-top-wrap {display:flex;align-items:stretch;overflow-x:auto;scrollbar-width:none;}
.he-module-tab {position:relative; display:flex; align-items:center; flex:none; gap:6px; height:40px; padding-inline:14px; color:color-mix(in oklch,var(--sidebar-foreground) 80%,transparent); font-size:.8125rem; font-weight:500; white-space:nowrap;}
.he-module-tab svg {opacity:.8;}
.he-module-tab:hover,.he-module-tab.is-current {color:var(--sidebar-accent-foreground);background:var(--sidebar-accent);}
.he-module-tab.is-current::after {content:"";position:absolute;inset:auto 0 0;height:3px;background:var(--sidebar-primary);}
.he-module-tab[aria-expanded=true] {color:var(--foreground);background:var(--card);}
.he-home-label {display:none;}
.he-mega-menu {position:fixed;top:var(--flyout-top,89px);left:var(--flyout-left,8px);min-width:320px;max-width:calc(100vw - 24px);border-top:3px solid var(--sidebar-primary);border-radius:0 0 6px 6px;}
.he-mega-menu {max-height:calc(100dvh - var(--flyout-top,89px) - 12px);overflow:auto;overscroll-behavior:contain;}
.he-menu-group a[aria-current=page] {background:var(--accent);color:var(--accent-foreground);}
.he-mega-head {display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--border);background:color-mix(in oklch,var(--muted) 60%,var(--card));padding:10px 16px;}
.he-mega-head strong,.he-mega-head small {display:block;}
.he-mega-head strong {font-size:.875rem;font-weight:600;}
.he-mega-head small,.he-mega-head a {font-size:.75rem;}
.he-mega-head small {color:var(--muted-foreground);}
.he-mega-head a {white-space:nowrap;color:var(--primary);font-weight:500;}
.he-mega-columns {display:grid;grid-auto-columns:minmax(168px,1fr);grid-auto-flow:column;gap:4px;padding:8px;}
.he-menu-group {min-width:0;}
.he-menu-group p {padding:6px 8px 4px;color:var(--muted-foreground);font-size:.6875rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;}
.he-menu-group a {display:block;border-radius:4px;padding:6px 8px;color:var(--primary);font-size:.8125rem;line-height:1.24;}
.he-menu-group a strong {display:block;font-weight:500;}
.he-menu-group a small {display:block;color:var(--muted-foreground);font-size:.75rem; line-height:1.35;}
.he-menu-group a:hover,.he-mega-head a:hover {background:var(--accent);}
.he-mobile-dialog,.he-search-dialog,.he-record-drawer,.he-record-dialog {padding:0;border:1px solid var(--border);background:var(--card);color:var(--foreground);box-shadow:0 12px 42px #0003;}
.he-mobile-dialog::backdrop,.he-search-dialog::backdrop,.he-record-drawer::backdrop,.he-record-dialog::backdrop {background:rgb(0 0 0 / 50%);}
.he-mobile-dialog {position:fixed;inset:0 auto 0 0;width:min(320px,92vw);height:100dvh;max-height:none;max-width:none;margin:0;border-width:0 1px 0 0;}
.he-mobile-dialog[open] {display:flex;flex-direction:column;}
.he-drawer-heading {display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border);}
.he-mobile-content {padding:8px;overflow:auto;}
.he-mobile-home,.he-mobile-content summary {display:flex;align-items:center;gap:8px;padding:10px 8px;border-radius:5px;font-size:.875rem;font-weight:500;cursor:pointer;}
.he-mobile-content summary svg:last-child {margin-left:auto;}
.he-mobile-home:hover,.he-mobile-content summary:hover {background:var(--muted);}
.he-mobile-overview,.he-mobile-content .he-menu-group {display:block;margin-left:32px;}
.he-mobile-overview {color:var(--primary);font-size:.875rem;padding:6px 8px;}
.he-search-dialog {margin:min(15vh,115px) auto 0;max-height:min(70vh,510px);width:min(520px,calc(100vw - 24px));max-width:none;border-radius:8px;}
.he-search-field {display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--border);color:var(--muted-foreground);}
.he-search-field input {flex:1;min-width:0;background:transparent;color:var(--foreground);outline:none;border:0;font-size:.875rem;padding:6px 2px;}
.he-search-field input:focus-visible {outline:0;}
.he-close {display:grid;place-items:center;flex:none;width:30px;height:30px;border:0;border-radius:5px;color:var(--muted-foreground);}
.he-close:hover {background:var(--muted);color:var(--foreground);}
.he-search-results {padding:4px;overflow:auto;max-height:min(54vh,420px);}
.he-search-results p {padding:5px 8px;color:var(--muted-foreground);font-size:.75rem;font-weight:500;}
.he-search-results a {display:flex;gap:8px;align-items:center;padding:6px 8px;border-radius:5px;font-size:.875rem;outline-offset:-2px;}
.he-search-results a:hover,.he-search-results a:focus-visible {background:var(--accent);}
.he-search-results strong,.he-search-results small {display:block;}
.he-search-results strong {font-weight:500;}
.he-search-results small,.he-search-empty {font-size:.75rem;color:var(--muted-foreground);}
.he-search-empty {padding:14px;}
.hedge #workspace.he-workspace {padding:0;margin:0;width:100%;max-width:none;flex:1;}
.he-page-header {background:var(--card);border-bottom:1px solid var(--border);}
.he-page-title {display:flex;flex-direction:column;gap:12px;padding-top:12px;padding-bottom:12px;}
.he-crumbs {display:flex;align-items:center;gap:4px;flex-wrap:wrap;font-size:.75rem;line-height:16px;color:var(--muted-foreground);}
.he-crumbs a:hover {color:var(--primary);text-decoration:underline;}
.he-crumbs span {color:color-mix(in oklch,var(--foreground) 82%,transparent);}
.hedge #workspace .he-page-title h1 {font-size:1.25rem;line-height:1.4;font-weight:600;letter-spacing:-.025em;padding-top:4px;}
.he-page-title p {font-size:.8125rem;line-height:1.4;color:var(--muted-foreground);}
.he-section-tabs {position:relative;display:flex;gap:2px;overflow-x:auto; scrollbar-width:thin;}
.he-section-tabs a {flex:none;padding:8px 12px;border-bottom:2px solid transparent;color:var(--muted-foreground);font-size:.8125rem;line-height:1.4;font-weight:500;white-space:nowrap;}
.he-section-tabs a:hover {border-bottom-color:var(--border);color:var(--foreground);}
.he-section-tabs a[aria-current=page] {border-bottom-color:var(--primary);color:var(--primary);}
.he-scope-actions,.scope-tools {display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
.hedge .scope-tools .filter-chip {position:relative;display:flex;align-items:center;gap:6px;min-width:0;border:1px solid var(--input);border-radius:4px;padding-inline:8px;background:var(--card);color:var(--muted-foreground);font-size:.8125rem;height:28px;box-shadow:0 1px 2px #0001;}
.hedge .filter-chip select {appearance:none;width:auto;max-width:min(230px,45vw);padding:0 16px 0 0;border:0;background:transparent;color:var(--foreground);font:inherit;outline-offset:3px;}
.hedge .filter-chip svg:last-child {position:absolute;right:6px;pointer-events:none}
.hedge .scope-range {color:var(--muted-foreground);}
.he-module-body,.he-dashboard {padding-top:12px;padding-bottom:12px;}
.he-footer {background:var(--card);border-top:1px solid var(--border);color:var(--muted-foreground);}
.he-footer>div {display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding-block:12px;font-size:.75rem;}
.he-panel,.hedge .panel {min-width:0;background:var(--card);color:var(--foreground);border:1px solid var(--border);border-radius:6px;box-shadow:0 1px 2px #0001;}
.he-panel {overflow:hidden;}
.he-panel-head {min-height:36px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 14px;border-bottom:1px solid var(--border);background:color-mix(in oklch,var(--muted) 60%,var(--card));}
.he-panel-head h2,.hedge #module-body .he-panel-head h2 {display:flex;gap:8px;align-items:center;font-size:.8125rem;line-height:1.35;font-weight:600;letter-spacing:-.02em;}
.he-panel-head h2 svg {color:var(--muted-foreground);}
.he-panel-head>a {color:var(--primary);font-size:.75rem;font-weight:500;white-space:nowrap;}
.he-panel-head a:hover,.he-section-link:hover {text-decoration:underline;}
.he-section-link {color:var(--primary);}
.hedge .btn {min-height:32px;border-radius:6px;border-color:var(--input);padding:5px 11px;background:var(--card);color:var(--foreground);font-size:.8125rem;font-weight:500;box-shadow:0 1px 2px #0001;}
.hedge .btn:hover {background:var(--accent);color:var(--accent-foreground);border-color:var(--input);}
.hedge .btn.primary {background:var(--primary);border-color:var(--primary);color:var(--primary-foreground);}
.hedge .btn.primary:hover {background:color-mix(in oklch,var(--primary) 90%,var(--background));}
.hedge .field {color:var(--foreground);}
.hedge :is(.field input,.field select,.field textarea,#module-body input:not([type=checkbox],[type=radio]),#module-body select,#module-body textarea) {background:var(--card);color:var(--foreground);border-color:var(--input);border-radius:6px;}
.hedge .table-wrap th {background:color-mix(in oklch,var(--muted) 62%,var(--card));color:var(--muted-foreground);padding:8px 10px;font-size:.75rem;font-weight:600;white-space:nowrap;text-transform:none;letter-spacing:0;}
.hedge .table-wrap td {background:var(--card);color:var(--foreground);padding:8px 10px;font-size:.8125rem;}
.hedge .table-wrap tr:nth-child(2n) td {background:color-mix(in oklch,var(--muted) 32%,var(--card));}
.hedge .table-wrap tbody tr:hover td {background:color-mix(in oklch,var(--accent) 50%,var(--card));}
.hedge .table-wrap :is(td,th) {border-color:var(--border);}
.hedge .table-wrap .empty-cell {color:var(--muted-foreground);}
.hedge #sheet {background:var(--card);color:var(--foreground);border-color:var(--border);}
.hedge #sheet :is(.modal-head,.modal-body,.modal-foot) {background:var(--card);color:var(--foreground);}
.he-record-drawer {position:fixed;inset:0 0 0 auto;margin:0;width:min(540px,100%);height:100dvh;max-height:none;max-width:none;border-width:0 0 0 1px;}
.he-record-dialog {margin:auto;width:min(512px,calc(100% - 24px));max-height:calc(100dvh - 24px);border-radius:8px;}
.he-record-drawer[open],.he-record-dialog[open] {display:flex;}
.hedge :is(.he-record-drawer,.he-record-dialog) .workspace-task {display:flex;flex-direction:column;border:0;border-radius:0;margin:0;width:100%;box-shadow:none;}
.hedge :is(.he-record-drawer,.he-record-dialog) .workspace-task-head {padding:16px;gap:8px;align-items:flex-start;}
.hedge :is(.he-record-drawer,.he-record-dialog) .workspace-task-head h2 {font-size:1.0625rem;}
.hedge :is(.he-record-drawer,.he-record-dialog) .workspace-task-form {display:flex;flex-direction:column;min-height:0;flex:1;overflow:auto;}
.hedge :is(.he-record-drawer,.he-record-dialog) .workspace-task-fields {flex:1;}
.hedge :is(.he-record-drawer,.he-record-dialog) .workspace-task-foot {position:sticky;bottom:0;background:var(--card);padding:12px 16px;}
.he-empty-content {padding:14px;color:var(--muted-foreground);font-size:.8125rem;}
@media(min-width:640px) {
  .he-brand img {width:auto; height:28px;}
  .he-page-title {flex-direction:row;align-items:flex-end;justify-content:space-between;}
  .he-desktop-institute,.he-theme {display:block;}
  .he-bell {display:flex;}
  .he-search-launch {flex:1 1 448px;justify-content:flex-start;width:auto;max-width:448px;padding-inline:10px;min-width:32px;}
  .he-search-launch span {display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .he-search-launch kbd {display:inline-flex;}
  .he-top-actions {margin-left:auto;}
}
@media(min-width:768px) {
  .he-module-nav {display:block;}
  .he-mobile-toggle,.he-mobile-dialog {display:none;}
  .he-masthead-rule {display:block;}
  .he-search-launch {margin-left:16px;}
  .he-header-sticky {--ui-control-height:32px;}
}
@media(min-width:1024px) {
  .he-top-wrap {padding-inline:16px;}
  .he-page-wrap {padding-inline:24px;}
  .he-masthead .he-top-wrap {gap:16px;}
  .he-home-label {display:inline;}
  .he-user-meta {display:flex;flex-direction:column;gap:2px;}
  .he-module-body,.he-dashboard {padding-top:24px;padding-bottom:24px;}
}
@media(min-width:1024px) {.he-demo-tag {display:inline;margin-inline:4px;}}
@media(max-width:767px){
  .he-search-launch kbd {display:none;}
  .he-mobile-dialog {max-width:85vw;}
  .he-tenant .he-flyout {position:fixed;top:50px;left:8px;width:min(288px,calc(100vw - 16px));}
}
@media(max-width:639px){
  .he-masthead .he-tenant {flex:0 0 auto;}
  .he-tenant .he-top-button {gap:4px;}
  .he-tenant .he-top-button svg {flex:none;}
  .he-masthead .he-search-launch {width:44px;}
  .he-scope-actions,.he-scope-actions .scope-tools {width:100%;}
  .he-scope-actions .scope-tools {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));}
  .he-scope-actions .scope-tools .filter-chip select {width:100%; min-width:0;}
  .he-scope-actions .scope-tools .filter-chip svg {flex-shrink:0;}
  .he-scope-actions .scope-tools .scope-range {grid-column:1/-1;}
}
@media(max-width:395px){
  .he-masthead .he-top-wrap {gap:4px;padding-inline:4px;}
  .he-masthead .he-top-button {padding-inline:4px;}
  .he-masthead .he-tenant-button svg:last-child,.he-masthead .he-profile>svg {display:none;}
}
@media(max-width:355px){
  .he-masthead .he-top-wrap {gap:2px;}
  .he-masthead .he-mobile-toggle span {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;}
}
@media print {
  .he-header-sticky,.he-footer,.he-scope-actions,.he-section-tabs,.he-crumbs {display:none !important;}
  .he-page-header,.hedge .panel,.he-panel {box-shadow:none;color:#111;background:white;border-color:#ccc;}
  .he-module-body,.he-dashboard {padding:0;}
  .hedge .table-wrap th,.hedge .table-wrap td {color:#111!important;background:#fff!important;}
}

.hedge #workspace .ops-portlet > header h2 {font-size:.8125rem;font-weight:600;line-height:1.4;}
.hedge #workspace .ops-group > h3 {font-size:.6875rem;line-height:1.5;}
.ops-list li code.ops-balance {width:auto;flex:none;white-space:nowrap; font-variant-numeric:tabular-nums;}
.ops-list .ops-row-link:hover,.ops-list .ops-row-link:focus-visible {color:var(--primary);}

.pa-panel {
  display: grid;
  min-width: 0;
  gap: 1rem;
  padding: 1rem;
}
.pa-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.pa-heading h2 { margin: 0 0 .2rem; }
.pa-heading p, .pa-hint {
  color: var(--muted-foreground);
  font-size: .83rem;
  line-height: 1.45;
}
.pa-actions {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .5rem;
}
.pa-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.pa-notice {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .75rem .85rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--muted);
  color: var(--foreground);
  font-size: .875rem;
  line-height: 1.5;
}
.pa-notice svg { flex-shrink: 0; margin-top: .1rem; }
.pa-notice p, .pa-form p { margin: 0; }
.pa-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  border-bottom: 1px solid var(--border);
}
.pa-tabs a {
  padding: .3rem .1rem .55rem;
  border-bottom: 2px solid transparent;
  color: var(--muted-foreground);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
.pa-tabs a[aria-current="page"] { border-color: var(--primary); color: var(--primary); }
.pa-inline-action {
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}
.pa-inline-action:hover { text-decoration: underline; }
.pa-status {
  display: inline-block;
  padding: .16rem .45rem;
  border-radius: 1rem;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.pa-status-active { color: #fff; background: #24694a; }
.pa-status-pending { color: #392b00; background: #f9e4a1; }
.pa-status-inactive { color: var(--muted-foreground); background: var(--muted); }
.pa-form { display: grid; gap: .85rem; min-width: 0; }
.pa-form .field { margin: 0; min-width: 0; }
.pa-form .field select[size] {
  min-height: 8rem;
  padding: .25rem;
}
.pa-form .field select[size] option { padding: .25rem .45rem; }
.pa-result { overflow-wrap: anywhere; }

.ws-layout{display:flex;align-items:flex-start;flex:1;min-width:0;width:100%}
.ws-sidebar{--ws-header-height:90px;position:sticky;top:var(--ws-header-height);height:calc(100dvh - var(--ws-header-height));flex:0 0 clamp(202px,18vw,250px);overflow:auto;overscroll-behavior:contain;border-right:1px solid var(--border);background:var(--card);padding:20px 12px;scrollbar-width:thin}
.ws-links,.ws-children{display:grid;gap:2px}
.ws-links a,.ws-group button{color:var(--foreground);font:inherit;font-size:13.5px;line-height:1.375;display:flex;align-items:center;gap:10px;border:none;border-radius:5px;text-decoration:none;padding:8px 10px;text-align:start;min-height:36px;width:100%}
.ws-group button{background:transparent;gap:8px;font-weight:600;cursor:pointer}
.ws-links :is(a,button):focus-visible{outline:2px solid var(--ring);outline-offset:-2px}
.ws-group button svg{flex:none;color:var(--muted-foreground);transition:transform .15s}
.ws-group button[aria-expanded=true] svg{transform:rotate(90deg)}
.ws-links a:hover,.ws-group button:hover,#create-options a:hover{background:var(--muted)}
.ws-children{margin-left:14px;border-left:1px solid var(--border);padding:2px 0 2px 6px}
.ws-children[hidden]{display:none}
.ws-links a[aria-current=page]{color:var(--accent-foreground);background:var(--accent);font-weight:600}
.ws-layout #workspace{min-width:0}
.ws-drawer-nav{padding:12px;overflow:auto;flex:1}
.ws-mobile-section{margin-left:16px;padding:4px 0 4px 8px;border-left:1px solid var(--border)}
.ws-drawer-nav .ws-module-link{min-height:44px;font-size:14px}
.ws-drawer-nav .ws-module-link.is-current:has(+.ws-mobile-section){background:transparent;color:var(--foreground);font-weight:600}
.ws-layout :is(.he-dashboard-columns,.he-page-title,.he-dashboard-main,.he-dashboard-rail,.he-module-body,.ops-land-columns)>*{min-width:0}
.he-top-actions .ws-create{white-space:nowrap;background:var(--primary);color:var(--primary-foreground);border-radius:4px;font-weight:600;display:inline-flex;gap:6px;padding-inline:10px}
#create-options{--columns:4;position:fixed;top:var(--create-top,48px);left:var(--create-left,8px);right:auto;width:min(calc(var(--columns) * 12.5rem),calc(100vw - 16px));min-width:0;max-width:none;max-height:calc(100dvh - var(--create-top,48px) - 8px);overflow:auto;overscroll-behavior:contain;grid-template-columns:repeat(var(--columns),minmax(0,1fr));align-items:start;gap:16px 12px;padding:16px;border-radius:8px;box-sizing:border-box}
#create-options:not([hidden]){display:grid}
#create-options[data-columns="1"]{--columns:1}
#create-options[data-columns="2"]{--columns:2}
#create-options[data-columns="3"]{--columns:3}
.he-create-group{min-width:0}
.he-create-group h2{margin:0 0 6px;padding:0 8px;color:var(--popover-foreground);font:600 .91rem/1.4 var(--font-sans)}
.he-create-group ul{list-style:none;margin:0;padding:0}
#create-options a{display:flex;align-items:center;min-height:36px;color:var(--popover-foreground);padding:6px 8px;border-radius:4px;font-size:.86rem;line-height:1.35;text-decoration:none;overflow-wrap:anywhere}
#create-options a:focus-visible{outline:2px solid var(--primary);outline-offset:-2px;background:var(--muted)}
@media(max-width:820px){#create-options:not([data-columns="1"]){--columns:2}}
@media(max-width:639px){#create-options a{min-height:44px}.he-top-actions .ws-create{min-height:44px}}
@media(max-width:359px){#create-options:not([data-columns="1"]){--columns:1}#create-options{width:calc(100vw - 16px)}}
.ws-layout .he-scope-actions{flex-wrap:wrap;align-items:center}
.ws-expense{white-space:nowrap}
.he-footer{margin-top:auto}
@media(min-width:768px) and (max-width:1150px){
 .ws-layout .he-dashboard-columns,.ws-layout .ops-land-columns,.ws-layout .accounting-overview,.ws-layout .treasury-overview-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:767px){
 .ws-layout{display:block}.ws-sidebar{display:none}
 .he-masthead .he-mobile-toggle{display:inline-flex;align-items:center;gap:8px;font-weight:500;flex-shrink:0}
 .he-tenant-button{max-width:100%}
 .ws-links a,.ws-group button{min-height:44px}
 .ws-layout .he-page-title{max-width:100%;min-width:0}.he-scope-actions select{max-width:100%}
}
@media print{.ws-sidebar{display:none}.ws-layout{display:block}}
.ws-layout .report-library.ws-library{grid-template-columns:minmax(0,1fr)}
.ws-report-filter{display:grid;gap:2px;font-size:.75rem;color:var(--muted-foreground)}
.ws-report-filter select{font-size:.82rem;max-width:100%}
.ws-library .report-library-head{flex-wrap:wrap}
.ops-actions{padding:12px 16px;display:flex;flex-wrap:wrap;gap:8px}
@media(min-width:1400px){.ws-layout .report-library.ws-library:has(.rp-insights){grid-template-columns:minmax(0,1fr) 240px}}

.pc-workspace{display:grid;gap:1rem;min-width:0}
.pc-panel{min-width:0;overflow:hidden}
.pc-panel>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:.85rem 1rem;border-bottom:1px solid var(--border);background:var(--card)}
.pc-panel>header h2,.pc-panel>header h3{font-size:1rem;margin:0}
.pc-actions,.pc-filters,.pc-line-foot{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}
.pc-fields{display:grid;gap:.9rem 1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr))}
.pc-filters{padding:.7rem 1rem;border-bottom:1px solid var(--border)}
.pc-filters label{display:flex;gap:.4rem;align-items:center;color:var(--muted-foreground);font-size:.83rem}
.pc-filters input{max-width:100%;min-width:0}
.pc-kpis{display:grid;gap:.7rem;grid-template-columns:repeat(auto-fit,minmax(min(14rem,100%),1fr))}
.pc-kpis>a{display:grid;align-content:start;gap:.38rem;padding:1rem;border-top:3px solid var(--primary);text-decoration:none;color:var(--foreground)}
.pc-kpis span,.pc-details dt,.pc-extended>span{font-size:.8rem;color:var(--muted-foreground)}
.pc-kpis strong{font:600 1.28rem/1.25 var(--font-sans);font-variant-numeric:tabular-nums}
.pc-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(12rem,100%),1fr));gap:.85rem 1.25rem;padding:.8rem 1rem;margin:0}
.pc-details dd{margin:.28rem 0 0;overflow-wrap:anywhere}.pc-tag{white-space:nowrap}.pc-empty{padding:.65rem 1rem}
.pc-order-line{display:grid;align-items:end;grid-template-columns:minmax(9rem,1.3fr) minmax(9rem,1.15fr) minmax(8rem,1.15fr) minmax(4.5rem,.5fr) minmax(7rem,.7fr) minmax(6rem,.6fr) auto;gap:.6rem;border-bottom:1px solid var(--border);padding:.7rem 0}
.pc-order-line input,.pc-order-line select,.pc-order-line .f-field{min-width:0;width:100%}
.pc-extended{display:grid;gap:.35rem}.pc-extended output{min-height:2.25rem;display:flex;align-items:center}
.pc-line-foot{justify-content:space-between;margin:.75rem 0 0}.pc-line-foot p{margin:0}.pc-bill-qty{width:5.5rem}
.pc-table-note{margin:.7rem 1rem;color:var(--muted-foreground)}
.pc-register [data-no-match]{padding:.65rem 1rem}.pc-panel tr[hidden]{display:none}
@media(max-width:1050px){.pc-order-line{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:610px){.pc-order-line{grid-template-columns:repeat(2,minmax(0,1fr))}.pc-order-line>label:nth-child(-n+2){grid-column:1/-1}.pc-filters label{align-items:start;flex-direction:column}.pc-filters label,.pc-filters :is(input,select){width:100%}}

/* Compact supplier register and record. The table scrolls independently on narrow screens. */
.pc-suppliers{min-width:0;overflow:visible;background:var(--card);color:var(--foreground)}
.pc-supplier-heading,.pc-supplier-tools,.pc-activity-tools{display:flex;align-items:center;justify-content:space-between;gap:.45rem .75rem;flex-wrap:wrap;padding:.45rem .8rem}
.pc-supplier-heading h2{margin:0;font:650 1.08rem/1.3 var(--font-sans);overflow-wrap:anywhere}
.pc-supplier-actions{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}
.pc-supplier-meta,.pc-supplier-metrics{display:flex;flex-wrap:wrap;gap:.3rem 1.3rem;margin:0;padding:.25rem .8rem .6rem}
.pc-supplier-meta>div{display:flex;align-items:baseline;gap:.35rem;max-width:100%}
.pc-supplier-meta dt,.pc-supplier-status span,.pc-supplier-count{font-size:.75rem;color:var(--muted-foreground)}
.pc-supplier-meta dd{margin:0;font-size:.8125rem;overflow-wrap:anywhere}
.pc-supplier-metrics{padding:.55rem .8rem;gap:.4rem 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--border)}
.pc-supplier-detail .pc-supplier-metrics{border-top:1px solid var(--border)}
.pc-metric{padding:.05rem .65rem;border-inline-start:3px solid var(--primary);min-width:0}
.pc-metric-bills{border-inline-start-color:var(--chart-2,var(--primary))}
.pc-metric-late{border-inline-start-color:var(--destructive)}
.pc-metric dt{font-size:.75rem;color:var(--muted-foreground)}
.pc-metric dd{margin:0;font:600 1.04rem/1.35 var(--font-sans);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.pc-supplier-tools{justify-content:flex-start}
.pc-supplier-search{flex:0 1 15rem;min-width:0}
.pc-supplier-search input{width:100%;min-width:0}
.pc-supplier-status{display:flex;align-items:center;gap:.4rem}
.pc-supplier-count{white-space:nowrap}
.pc-supplier-tools .pc-supplier-actions{margin-inline-start:auto}
.pc-suppliers .pc-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pc-activity-tools{padding-block:.25rem;border-bottom:1px solid var(--border)}
.pc-activity-tools [role=tablist]{display:flex;flex-wrap:wrap}
.pc-activity-tab{min-height:36px;display:inline-flex;align-items:center;gap:.4rem;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted-foreground);padding:0 .6rem;font:550 .8125rem/1.25 var(--font-sans);cursor:pointer}
.pc-activity-tab[aria-selected=true]{color:var(--primary);border-color:currentColor}
.pc-activity-tab span{font-size:.75rem;font-variant-numeric:tabular-nums;background:var(--muted);color:var(--foreground);padding:.04rem .35rem;border-radius:.25rem}
.pc-suppliers :is(.pc-activity-tab,.pc-record-link,[role=tabpanel]):focus-visible{outline:2px solid var(--ring);outline-offset:-2px}
.pc-suppliers :is([data-pc-list],[role=tabpanel]){min-width:0}
.pc-suppliers .f-table{margin:0;max-width:100%;border-radius:0 0 .4rem .4rem}
.hedge .pc-suppliers .f-table :is(td,th){padding:.14rem .68rem;vertical-align:middle;line-height:1.25;border-bottom:1px solid var(--border)}
.hedge .pc-suppliers .f-table th{font-size:.72rem;padding-block:.4rem}
.hedge .pc-suppliers .f-table td{font-size:.8125rem;height:1.85rem}
.hedge .pc-suppliers .f-table tbody tr:last-child td{border-bottom:none}
.pc-suppliers .pc-record-link{display:inline-flex;align-items:center;min-height:1.55rem;color:var(--primary);font-weight:550;text-decoration:none}
.pc-suppliers .pc-record-link:hover{text-decoration:underline}
.pc-supplier-empty{margin:0;padding:.65rem .85rem;color:var(--muted-foreground);font-size:.83rem}
@media(max-width:767px){
  .pc-supplier-tools,.pc-supplier-heading,.pc-activity-tools{padding-inline:.55rem;gap:.35rem .5rem}
  .pc-supplier-meta{padding-inline:.55rem;gap:.2rem .8rem}
  .pc-supplier-search{flex:1 1 10rem}
  .pc-supplier-count{flex:1 1 4rem}
  .pc-supplier-metrics{padding-inline:.5rem}
  .pc-metric{padding-inline:.35rem}
  .pc-metric dd{font-size:.9rem}
  .pc-activity-tab,.pc-suppliers .pc-record-link{min-height:44px}
  .pc-activity-tab{padding-inline:.4rem}
  .hedge .pc-suppliers .f-table td{padding-block:0}
}

.pi-workspace,.pi-panel{min-width:0}
.pi-panel>header,.pi-panel .pi-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem .7rem;border-bottom:1px solid var(--border);padding:.4rem .75rem}
.pi-panel>header{justify-content:space-between}.pi-panel h2{font-size:1rem;margin:0}
.pi-toolbar label{display:flex;align-items:center;gap:.4rem;font-size:.8rem;color:var(--muted-foreground)}
.pi-toolbar input,.pi-toolbar select{min-width:0;max-width:100%}
.pi-toolbar>a:first-of-type{margin-inline-start:auto}.pi-toolbar .workspace-export{margin-inline-start:0}
.pi-panel .f-table th,.pi-panel .f-table td{padding:.35rem .65rem;line-height:1.35}
.pi-panel .f-table .f-empty{padding:.7rem .65rem!important;text-align:start!important}
.pi-panel .pi-value{text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap}
.pi-name,.pi-actions{font-weight:600}.pi-actions{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap}
.pi-details,.pi-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.5rem 1rem}
.pi-details{padding:.6rem .75rem;margin:0}.pi-details dt{font-size:.78rem;color:var(--muted-foreground)}.pi-details dd{margin:.15rem 0 0;overflow-wrap:anywhere}
.pi-note{margin:.65rem .75rem}
@media(max-width:640px){
  .pi-panel .pi-toolbar{align-items:end}.pi-toolbar label{display:grid;gap:.15rem;min-width:0}
  .pi-toolbar label:first-child{flex:1 1 10rem}.pi-toolbar label:nth-child(2){flex:1 1 6.5rem}
  .pi-toolbar :is(input,select,a.btn),.pi-actions .btn{min-height:44px}
  .pi-name{display:inline-flex;align-items:center;min-height:44px}
}

.adv-workspace,.adv-editor{min-width:0}
.adv-editor{display:grid;gap:1rem}
.adv-confirm{display:flex;gap:.55rem;align-items:flex-start;font-size:.875rem;font-weight:500}
.adv-confirm input{flex:none;margin-top:.2em}
.adv-editor .adv-preview{border-block-start:1px solid var(--border);padding-block-start:.75rem}
.adv-preview h3,.adv-preview p{margin:0 0 .35rem}
.adv-preview [data-adv-plan]{max-height:18rem;overflow:auto}
.adv-hint{margin:0;color:var(--muted-foreground);font-size:.83rem}
.adv-filters{padding:.75rem 1rem;display:flex;gap:.75rem;flex-wrap:wrap;align-items:flex-end;border-block-start:1px solid var(--border)}
.adv-filters label{display:grid;gap:.25rem;color:var(--muted-foreground);font-size:.8rem}
.adv-filters label:first-child{width:min(100%,20rem)}
.adv-workspace .rg-detail{grid-template-columns:repeat(auto-fit,minmax(min(100%,8.75rem),1fr))}
@media(max-width:600px){.adv-editor .rg-fields{grid-template-columns:minmax(0,1fr)}.adv-filters label{flex:1 1 10rem}}

:root {
  --ui-control-height: 36px;
  --ui-row-height: 32px;
  --ui-control-radius: 6px;
  --ui-control-text: .8125rem;
  --ui-control-gap: 6px;
}

@media screen and (max-width: 767px) {
  :root {
    --ui-control-height: 44px;
    --ui-row-height: 44px;
  }
}

@media screen {
  :is(.hedge, #student-portal) :is(.btn, .sp-button, .portal-grade-workspace .btn, .sp-message-actions button, .section-link) {
    align-items: center;
    justify-content: center;
    gap: var(--ui-control-gap);
    box-sizing: border-box;
    width: fit-content;
    max-width: 100%;
    min-width: min(100%, var(--ui-control-height));
    min-height: var(--ui-control-height);
    padding: 5px 12px;
    border-radius: var(--ui-control-radius);
    font-family: inherit;
    font-size: var(--ui-control-text);
    font-weight: 550;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  :is(.hedge, #student-portal) :where(td, th) :is(.btn, .sp-button, .portal-grade-workspace .btn),
  .hedge :where(td, th) :is(.f-link, .rg-link, .facility-link, .pa-inline-action) {
    min-height: var(--ui-row-height);
    padding-block: 3px;
  }

  .hedge td :is(.rg-link, .f-link, .facility-link, .pa-inline-action) {
    display: inline-flex;
    align-items: center;
  }

  :is(.hedge, #student-portal) :is(.btn, .sp-button, .section-link) > svg {
    width: 16px;
    height: 16px;
    flex: none;
  }

  :is(.hedge, #student-portal) :is(.icon-btn, .he-close, .f-x, .f-xline, .sp-icon-button, .sp-avatar, .he-theme > .he-top-button, .he-bell) {
    width: var(--ui-control-height);
    min-width: var(--ui-control-height);
    height: var(--ui-control-height);
    min-height: var(--ui-control-height);
    padding: 4px;
    border-radius: var(--ui-control-radius);
  }

  .hedge :is(.he-top-button, .he-search-launch) {
    min-height: var(--ui-control-height);
    min-width: var(--ui-control-height);
  }

  :is(.hedge, #student-portal) :is(
    input:not([type]), input[type="text"], input[type="search"], input[type="date"],
    input[type="month"], input[type="number"], input[type="time"], input[type="email"],
    input[type="tel"], input[type="url"], input[type="password"], select:not([multiple], [size])
  ) {
    box-sizing: border-box;
    min-height: var(--ui-control-height);
    padding-block: 4px;
    border-radius: var(--ui-control-radius);
    font-family: inherit;
    font-size: var(--ui-control-text);
    line-height: 1.3;
  }

  :is(.hedge, #student-portal) select:not([multiple], [size]),
  .hedge input[type="file"] {
    box-sizing: border-box;
    height: var(--ui-control-height);
    min-height: var(--ui-control-height);
  }

  .hedge input[type="file"] {
    padding-block: 3px;
  }

  .hedge :is(.report-search, .scope-tools .filter-chip) {
    box-sizing: border-box;
    min-height: var(--ui-control-height);
    height: auto;
    border-radius: var(--ui-control-radius);
  }

  .hedge :is(.report-search input[type="search"], .scope-tools .filter-chip select) {
    height: calc(var(--ui-control-height) - 2px);
    min-height: calc(var(--ui-control-height) - 2px);
    border-radius: 0;
  }

  :is(.hedge, #student-portal) :is(.btn, .sp-button, .sp-icon-button, .icon-btn, .he-close, .he-top-button, .he-search-launch, .workspace-export > summary):focus-visible {
    outline: 2px solid var(--ring, var(--sp-accent, currentColor));
    outline-offset: 2px;
  }

  .hedge :is(.he-masthead, .he-module-nav) :is(button, a):focus-visible {
    outline: 2px solid var(--sidebar-ring);
    outline-offset: -2px;
  }

  .hedge .pa-inline-action.is-danger { color: var(--destructive); }

  .hedge .btn.is-danger {
    color: var(--destructive);
    border-color: color-mix(in oklch, var(--destructive) 54%, var(--input));
    background: var(--card);
  }
  .hedge .btn.is-danger:hover {
    background: color-mix(in oklch, var(--destructive) 9%, var(--card));
  }

  .hedge .workspace-export-options button {
    min-height: var(--ui-control-height);
  }
}

@media screen and (max-width: 767px) {
  .hedge :is(.ws-drawer-nav a, .ws-drawer-nav button, .he-flyout a, .he-flyout button),
  .hedge td :is(.rg-link, .f-link, .facility-link, .pa-inline-action),
  #student-portal .sp-text-link {
    min-height: var(--ui-control-height);
    min-width: var(--ui-control-height);
  }
}

/* Dedicated financial document workspace */
.transaction-workspace { background:var(--background); }
.transaction-editor { min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;margin:0; }
.transaction-head { position:sticky;top:0;z-index:4;align-items:center;background:var(--card);border-bottom:1px solid var(--border);padding:10px clamp(12px,3vw,44px); }
.transaction-identity { display:flex;align-items:center;gap:12px;min-width:0; }
.transaction-identity img { flex:none;object-fit:contain;background:white;border-radius:6px; }
.transaction-identity span { display:block;color:var(--muted-foreground);line-height:1.3;font-size:.75rem; }
.workspace .transaction-identity h1 { margin:1px 0 0;font-size:clamp(1.1rem,2vw,1.45rem);font-weight:600;line-height:1.2;letter-spacing:-.025em; }
.transaction-form { display:flex;flex:1;flex-direction:column;min-width:0; }
.transaction-canvas { flex:1;width:min(100%,1560px);margin:0 auto;padding:clamp(12px,2.4vw,36px); }
.transaction-paper { padding:0;background:var(--card);border:1px solid var(--border);border-radius:8px;box-shadow:0 1px 3px #0001; }
.transaction-paper > :not(.transaction-paper-head) { padding:clamp(14px,2.3vw,32px);margin:0; }
.transaction-paper-head { display:flex;align-items:baseline;justify-content:space-between;gap:8px 24px;flex-wrap:wrap;padding:12px clamp(14px,2.3vw,32px);background:var(--muted);border-radius:7px 7px 0 0;border-bottom:1px solid var(--border);color:var(--muted-foreground);font-size:.8rem; }
.transaction-paper-head span:first-child { font-weight:600;color:var(--foreground); }
.transaction-section,.transaction-paper fieldset { min-width:0; }
.transaction-section + .transaction-section { margin-top:22px;padding-top:20px;border-top:1px solid var(--border); }
.transaction-section h3 { margin:0 0 12px;font-size:1rem;font-weight:600; }
.transaction-workspace .transaction-actions { position:sticky;bottom:0;z-index:5;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:10px clamp(12px,3vw,44px) max(10px,env(safe-area-inset-bottom));background:var(--card);border-top:1px solid var(--border);box-shadow:0 -2px 6px #00000008; }
.transaction-save { position:relative;display:flex;margin-left:auto;align-items:stretch; }
.hedge .transaction-save > .btn:first-child { border-radius:6px 0 0 6px; }
.hedge .transaction-save > .transaction-save-toggle { width:var(--ui-control-height);padding-inline:3px;border-radius:0 6px 6px 0;border-left:1px solid var(--primary-foreground); }
.transaction-save [id=transaction-save-options] { position:absolute;z-index:2;bottom:calc(100% + 6px);right:0;width:max-content;max-width:calc(100vw - 24px);padding:4px;background:var(--popover);border:1px solid var(--border);border-radius:6px;box-shadow:0 5px 20px #0002; }
#transaction-save-options button { display:block;width:100%;padding:8px 12px;min-height:var(--ui-control-height);text-align:left;border-radius:4px;color:var(--foreground);font:500 .85rem var(--font-sans); }
#transaction-save-options button:hover,#transaction-save-options button:focus-visible { color:var(--accent-foreground);background:var(--accent); }
.transaction-editor [inert] { opacity:.68; }
.transaction-workspace .transaction-canvas > .form-error { margin:12px 0 0; }
.transaction-editor :is(input,select,textarea,button,a,[tabindex]) { scroll-margin-block:88px; }
@media (max-width:639px){
  .transaction-head { gap:6px; }
  .transaction-close span { display:none; }
  .transaction-canvas { padding:10px 6px 16px; }
  .transaction-paper-head { gap:4px;flex-direction:column; }
  .transaction-paper > :not(.transaction-paper-head) { padding:14px 10px; }
  .transaction-editor .f-grid,.transaction-editor .form-grid { grid-template-columns:minmax(0,1fr); }
}
@media print {
  .transaction-head,.transaction-actions { display:none!important; }
  .transaction-canvas,.transaction-paper { padding:0;border:0;box-shadow:none; }
  .transaction-editor { min-height:0; }
}
