:root{--ink:#17263b;--muted:#748092;--light:#f4f6f8;--border:#e4e9ee;--accent:#ed784a;--accent-dark:#c74e21;--orange-soft:#fff1e9;--green:#288373;--green-soft:#edf8f3;--blue:#4b70aa;--blue-soft:#edf2fc;--danger:#b34850;--danger-soft:#fbeef0;--shadow:0 12px 40px #192c4412;--radius:14px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--light)}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:var(--accent-dark);text-decoration:none}a:hover{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #efad8f;outline-offset:3px}h1,h2,h3,h4,p{margin:0}h1{font-size:29px;letter-spacing:-1px;font-weight:700;line-height:1.2}h2{font-size:18px;letter-spacing:-.35px}h3{font-size:15px}p{line-height:1.65}small{font-size:12px}.muted{color:var(--muted)}.fine{font-size:12px;color:var(--muted);line-height:1.6}.eyebrow{text-transform:uppercase;letter-spacing:1.8px;font-size:10px;font-weight:750;color:var(--muted)}.icon{width:19px;height:19px;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.brand-mark{background:var(--accent);color:white;border-radius:11px;width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:32px;line-height:1;letter-spacing:-2px;padding:0 3px 4px 0}.initial-loader{min-height:100vh;display:flex;flex-direction:column;gap:22px;align-items:center;justify-content:center;color:var(--muted)}.shell{display:flex;min-height:100vh}.sidebar{width:232px;background:#fff;position:fixed;inset:0 auto 0 0;border-right:1px solid var(--border);display:flex;flex-direction:column;z-index:30;padding:32px 18px 20px}.brand{display:flex;align-items:center;gap:10px;padding:0 12px}.brand-name{font-size:21px;font-weight:750;letter-spacing:-.9px}.brand-sub{font-size:10px;letter-spacing:2.7px;text-transform:uppercase;color:var(--muted);margin-top:3px}.workspace-label{margin:39px 14px 13px}.nav{display:flex;flex-direction:column;gap:5px}.nav-link{padding:12px 14px;display:flex;align-items:center;gap:12px;color:#687487;border-radius:8px;font-weight:550;font-size:13px}.nav-link:hover{background:#f6f7f8;text-decoration:none}.nav-link.active{background:var(--orange-soft);color:var(--accent-dark)}.nav-link .count{margin-left:auto;background:#f7d6c7;border-radius:5px;font-size:10px;padding:2px 6px}.sidebar-spacer{flex:1;min-height:25px}.side-note{background:#f8fafb;border:1px solid var(--border);padding:14px;border-radius:10px;font-size:11px;line-height:1.6;color:var(--muted);margin:0 7px 20px}.side-note strong{display:block;color:var(--ink);margin:0 0 5px;font-size:12px}.connection-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#65a992;vertical-align:middle;margin-right:6px}.profile{border-top:1px solid var(--border);padding:19px 7px 0;display:flex;gap:10px;align-items:center}.avatar{width:33px;height:33px;background:#eef0f5;color:#63748e;display:flex;align-items:center;justify-content:center;font-weight:650;font-size:11px;border-radius:50%;flex-shrink:0}.profile-info{min-width:0;flex:1}.profile-info strong{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-info span{font-size:10px;color:var(--muted)}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:33px;height:33px;border:0;background:transparent;color:var(--muted);border-radius:7px}.icon-btn:hover{background:var(--light);color:var(--ink)}.main{margin-left:232px;flex:1;min-width:0}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 36px;border-bottom:1px solid var(--border);background:#ffffffc9;gap:20px}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted)}.breadcrumb strong{font-weight:500;color:var(--ink)}.topbar-right{display:flex;align-items:center;gap:18px;font-size:11px;color:var(--muted)}.status-pill{display:flex;align-items:center;padding:6px 10px;background:#f3f7f5;border-radius:5px;font-size:10px;color:#537b6d}.mobile-toggle{display:none}.content{max-width:1640px;padding:33px 36px 44px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.page-heading p{margin-top:9px;font-size:12px;color:var(--muted)}.heading-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.btn{border:1px solid var(--border);background:#fff;color:var(--ink);padding:10px 15px;border-radius:7px;font-weight:600;font-size:12px;display:inline-flex;gap:8px;align-items:center;justify-content:center;line-height:1.4;text-decoration:none;white-space:nowrap}.btn .icon{width:16px;height:16px}.btn:hover{background:#f8fafb;text-decoration:none}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 3px 5px #ef804a15}.btn.primary:hover{background:#dd683a}.btn.negative{background:var(--danger-soft);border-color:#edccd0;color:var(--danger)}.btn.positive{background:var(--green);border-color:var(--green);color:#fff}.btn.small{padding:7px 10px;font-size:11px}.btn.text{border:0;background:none;color:var(--muted);padding:8px}.filters{background:#fff;border:1px solid var(--border);border-radius:10px;padding:13px 16px;display:flex;align-items:center;gap:12px;margin-bottom:23px;flex-wrap:wrap}.filter-label{display:flex;gap:7px;font-size:11px;align-items:center;color:var(--muted);margin-right:3px}.filters select,.filters input{border:1px solid var(--border);background:#fff;padding:8px 10px;border-radius:6px;min-height:34px;font-size:11px;color:#556476;max-width:185px}.filters .filter-spacer{flex:1}.filter-group{display:flex;gap:7px;align-items:center}.filter-group label{font-size:10px;color:var(--muted)}.filter-group input[type=date]{width:133px}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:23px}.kpi{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:20px;position:relative;text-align:left}.kpi.highlight{background:var(--ink);border-color:var(--ink);color:#fff}.kpi-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.kpi-label{font-size:11px;font-weight:550;color:var(--muted)}.kpi.highlight .kpi-label{color:#aebcce}.kpi-icon{display:flex;background:#f6f7fa;border-radius:8px;padding:7px;color:#79859a}.kpi.highlight .kpi-icon{background:#ffffff0c;color:#edb79e}.kpi-value{font-size:27px;letter-spacing:-.9px;font-weight:700;line-height:1.2}.kpi-foot{font-size:10px;color:var(--muted);margin-top:12px;display:flex;align-items:center;gap:6px}.kpi.highlight .kpi-foot{color:#aebcce}.kpi-arrow{margin-left:auto;color:var(--muted)}.kpi:not(.highlight):hover{border-color:#ccd5df}.dashboard-row{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:21px;margin-bottom:23px}.card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.card-pad{padding:23px}.card-header{padding:22px 23px 17px;display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.card-header h2{font-size:14px;letter-spacing:-.15px}.card-header p{font-size:10px;color:var(--muted);margin-top:7px;line-height:1.5}.card-body{padding:0 23px 22px}.card-footer{border-top:1px solid var(--border);padding:12px 23px;font-size:10px;display:flex;justify-content:space-between;gap:12px;color:var(--muted)}.card-footer a{font-weight:600}.chart{height:207px;padding:8px 0;position:relative}.chart svg{width:100%;height:100%;display:block;overflow:visible}.chart-empty{height:207px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;position:relative;background:repeating-linear-gradient(to bottom,transparent 0,transparent 44px,#f2f4f6 44px,#f2f4f6 45px)}.chart-empty div{background:#fff;padding:8px 20px;text-align:center}.chart-empty p{font-size:11px;color:var(--muted)}.chart-empty .icon{width:31px;height:31px;color:#c5ceda;margin-bottom:10px}.mini-legend{display:flex;gap:13px;font-size:10px;color:var(--muted)}.mini-legend span:before{content:'';display:inline-block;width:7px;height:7px;border-radius:2px;background:var(--accent);margin-right:5px}.mini-legend span:nth-child(2):before{background:#243952}.breakdown{list-style:none;padding:5px 0;margin:0}.breakdown li{margin:15px 0}.breakdown-title{display:flex;justify-content:space-between;font-size:11px;margin-bottom:8px;gap:15px}.bar-track{height:5px;background:#f3f5f7;border-radius:5px;overflow:hidden}.bar-fill{height:100%;border-radius:5px;background:var(--accent)}.bar-fill.blue{background:#7998b8}.empty{padding:37px 18px;text-align:center;color:var(--muted)}.empty-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;background:#f5f7fa;border-radius:14px;color:#9baabc;margin:0 auto 16px}.empty-icon .icon{width:23px;height:23px}.empty h3{font-size:13px;color:var(--ink);font-weight:600;margin-bottom:7px}.empty p{font-size:11px;max-width:340px;margin:0 auto 16px}.empty.compact{padding:25px 15px}.empty.compact .empty-icon{width:38px;height:38px;margin-bottom:12px}.table-wrap{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}.data-table th{padding:12px 20px;background:#fafbfc;border-top:1px solid #edf0f3;border-bottom:1px solid #edf0f3;font-size:9px;text-transform:uppercase;letter-spacing:.75px;color:#8390a0;font-weight:650}.data-table td{padding:16px 20px;border-bottom:1px solid #f0f2f5;font-size:11px;line-height:1.5;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fcfcfd}.data-table .amount{text-align:right;font-variant-numeric:tabular-nums;font-weight:650}.data-table .title-cell{white-space:normal;min-width:190px;max-width:350px}.title-cell strong{font-size:12px;font-weight:650;display:block;color:var(--ink)}.title-cell small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.table-link{border:0;background:none;text-align:left;padding:0;cursor:pointer}.table-link:hover strong{color:var(--accent-dark)}.badge{font-size:9px;font-weight:600;border-radius:5px;display:inline-flex;align-items:center;gap:5px;padding:5px 7px;white-space:nowrap;line-height:1.3;background:#f0f2f5;color:#778295}.badge:before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor}.badge.orange{background:var(--orange-soft);color:#c57735}.badge.green{background:var(--green-soft);color:var(--green)}.badge.blue{background:var(--blue-soft);color:var(--blue)}.badge.red{background:var(--danger-soft);color:var(--danger)}.split-heading{display:flex;gap:14px;align-items:center}.split-heading .icon{color:var(--accent)}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--border);margin:0 0 22px;overflow:auto}.tab{background:none;border:0;border-bottom:2px solid transparent;padding:14px 0;color:var(--muted);font-weight:550;font-size:12px;white-space:nowrap}.tab.active{border-color:var(--accent);color:var(--accent-dark)}.tab-count{display:inline-block;background:#eef1f5;color:#7f8a99;font-size:9px;padding:2px 6px;border-radius:4px;margin-left:6px}.notice{padding:13px 16px;border:1px solid #f0e2cf;background:#fffbf4;color:#906b3c;border-radius:8px;font-size:11px;line-height:1.6;display:flex;align-items:flex-start;gap:10px;margin-bottom:20px}.notice .icon{width:17px;height:17px;flex-shrink:0;margin-top:1px}.notice.info{background:#f2f6fb;color:#627b9e;border-color:#dfe7f1}.notice.error{background:var(--danger-soft);color:var(--danger);border-color:#ebd1d4}.notice.success{background:var(--green-soft);color:var(--green);border-color:#d5eadf}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:21px}.stack{display:flex;flex-direction:column;gap:20px}.form-section{padding:24px;border-bottom:1px solid var(--border)}.form-section:last-child{border-bottom:0}.section-title{display:flex;gap:11px;align-items:center;margin-bottom:22px}.section-number{font-size:10px;background:var(--orange-soft);color:var(--accent-dark);width:25px;height:25px;display:flex;align-items:center;justify-content:center;border-radius:7px}.section-title h2{font-size:14px}.section-title p{font-size:11px;color:var(--muted);margin-top:4px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field.full{grid-column:1/-1}.field label,.field-label{font-size:11px;font-weight:600;color:#596678}.field input,.field select,.field textarea{width:100%;min-width:0;background:#fff;border:1px solid #dfe5eb;border-radius:7px;min-height:40px;padding:10px 11px;color:var(--ink);font-size:12px}.field textarea{resize:vertical;line-height:1.6;min-height:86px}.field input::placeholder,.field textarea::placeholder{color:#a4acb7}.field small{font-size:10px;color:var(--muted);line-height:1.5}.checkbox-field{display:flex;align-items:center;gap:8px;font-size:12px;color:#596678;min-height:40px}.checkbox-field input{accent-color:var(--accent);width:15px;height:15px}.type-choices{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.type-choice{border:1px solid var(--border);border-radius:9px;padding:16px 8px;text-align:center;cursor:pointer;background:#fff;color:var(--muted);font-size:10px;font-weight:550}.type-choice .icon{display:block;margin:0 auto 10px;width:23px;height:23px}.type-choice.selected{background:var(--orange-soft);color:var(--accent-dark);border-color:#efb69a}.line-item{padding:17px;background:#fafbfd;border:1px solid var(--border);border-radius:9px;margin-bottom:13px}.line-item-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.line-item-head strong{font-size:11px;color:var(--muted)}.line-item .form-grid{gap:12px}.line-total{font-size:11px;text-align:right;margin-top:12px;color:var(--muted)}.line-total strong{color:var(--ink)}.total-box{display:flex;justify-content:flex-end;gap:33px;margin-top:20px;border-top:1px solid var(--border);padding-top:17px}.total-box span{font-size:10px;color:var(--muted);display:block;margin-bottom:5px}.total-box strong{font-size:20px}.sticky-actions{position:sticky;bottom:0;background:#ffffffed;backdrop-filter:blur(8px);padding:17px 23px;border-top:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:15px;z-index:5}.form-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:22px;align-items:start}.form-aside{position:sticky;top:22px}.form-aside h3{font-size:12px;margin-bottom:12px}.form-aside p{font-size:11px;color:var(--muted)}.step-list{padding:0;margin:18px 0 0;list-style:none}.step-list li{display:flex;gap:11px;padding-bottom:22px;font-size:11px;color:#738197;position:relative}.step-list li:last-child{padding-bottom:0}.step-list b{background:#f0f3f7;border:1px solid #e4e9ee;width:22px;height:22px;border-radius:50%;font-size:9px;display:flex;align-items:center;justify-content:center;flex-shrink:0;z-index:1}.step-list strong{display:block;color:var(--ink);font-size:11px;margin-bottom:5px}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px;align-items:start}.detail-section{padding:23px;border-bottom:1px solid var(--border)}.detail-section:last-child{border-bottom:0}.detail-section h3{margin-bottom:17px;font-size:13px}.detail-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:21px 18px}.detail-field span{display:block;font-size:10px;color:var(--muted);margin-bottom:7px}.detail-field strong{font-size:12px;font-weight:550;word-break:break-word}.prose{font-size:12px;white-space:pre-wrap;line-height:1.75;color:#647185}.detail-actions{display:flex;gap:8px;flex-wrap:wrap}.timeline{list-style:none;margin:0;padding:0}.timeline li{padding:0 0 23px 21px;position:relative;border-left:1px solid var(--border);margin-left:4px}.timeline li:last-child{padding-bottom:0;border-left-color:transparent}.timeline li:before{content:'';position:absolute;left:-4px;top:3px;width:7px;height:7px;background:#b9c5d4;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #dce3eb}.timeline li:first-child:before{background:var(--accent)}.timeline strong{font-size:11px;font-weight:600;display:block}.timeline small{font-size:9px;color:var(--muted);display:block;margin:5px 0}.timeline p{font-size:11px;color:#68788b;white-space:pre-wrap}.attachment{display:flex;gap:10px;padding:12px 0;align-items:center;border-bottom:1px solid var(--border)}.attachment:last-child{border-bottom:0}.attachment a{font-size:11px;flex:1;word-break:break-all}.analysis-check{border:1px solid var(--border);border-radius:8px;padding:15px;margin-top:11px}.analysis-check h4{font-size:12px;display:flex;gap:8px;align-items:center}.analysis-check p{font-size:11px;color:var(--muted);margin-top:7px}.analysis-check.warning{border-left:3px solid #daa35f}.analysis-check.error{border-left:3px solid var(--danger)}.analysis-check.success{border-left:3px solid var(--green)}.modal-backdrop{position:fixed;inset:0;background:#10213b77;backdrop-filter:blur(3px);z-index:100;display:flex;align-items:center;justify-content:center;padding:25px}.modal{background:#fff;width:600px;max-width:100%;max-height:calc(100vh - 50px);overflow:auto;border-radius:15px;box-shadow:0 25px 100px #07152944}.modal.wide{width:820px}.modal-header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:22px 25px;border-bottom:1px solid var(--border)}.modal-header h2{font-size:18px}.modal-content{padding:24px 25px}.modal-footer{display:flex;gap:10px;justify-content:flex-end;padding:17px 25px;border-top:1px solid var(--border);background:#fafbfd}.toast{position:fixed;bottom:25px;left:calc(50% + 116px);transform:translateX(-50%);background:var(--ink);color:#fff;border-radius:10px;padding:13px 20px;box-shadow:var(--shadow);font-size:12px;z-index:150;max-width:85vw;line-height:1.5}.toast.error{background:#a9444e}.auth-page{display:grid;grid-template-columns:1fr 1fr;min-height:100vh;background:#fff}.auth-story{background:#182a40;color:#fff;padding:65px 12%;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-story:after{content:'';position:absolute;width:650px;height:650px;bottom:-380px;right:-290px;border:1px solid #ffffff0b;border-radius:50%;box-shadow:0 0 0 80px #ffffff02,0 0 0 160px #ffffff02}.auth-story .brand{padding:0}.auth-story .brand-sub{color:#acb9ca}.auth-story h1{font-size:45px;line-height:1.2;letter-spacing:-1.7px;max-width:430px;margin:50px 0 24px}.auth-story h1 em{font-style:normal;color:#f29b75}.auth-story p{font-size:14px;color:#acb9ca;max-width:390px;line-height:1.9}.auth-features{margin:32px 0;display:flex;flex-direction:column;gap:16px}.auth-feature{font-size:12px;display:flex;align-items:center;gap:12px;color:#d2dae4}.auth-feature .icon{color:#ef9b76;width:18px}.auth-foot{font-size:10px;color:#8ea0b5;letter-spacing:.4px}.auth-panel{display:flex;align-items:center;justify-content:center;padding:45px 10%}.auth-form{width:100%;max-width:390px}.auth-form h2{font-size:25px;letter-spacing:-.6px;margin:10px 0}.auth-form>p{font-size:12px;color:var(--muted);margin-bottom:28px}.auth-form .field{margin-bottom:17px}.auth-form .btn{width:100%;margin-top:7px}.auth-form .fine{margin-top:20px;text-align:center}.auth-form .eyebrow{color:var(--accent-dark)}.auth-error{margin-top:16px}.list-card{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 22px;border-bottom:1px solid var(--border)}.list-card:last-child{border-bottom:0}.list-card h3{font-size:12px}.list-card p{font-size:11px;color:var(--muted);margin-top:7px}.list-card .meta{text-align:right;font-size:11px;color:var(--muted)}.list-card .meta strong{display:block;font-size:16px;color:var(--ink);margin-bottom:6px}.admin-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.text-right{text-align:right}.nowrap{white-space:nowrap}.hidden{display:none!important}.search-input{min-width:200px}.loading{display:flex;align-items:center;justify-content:center;gap:10px;min-height:240px;font-size:12px;color:var(--muted)}.spinner{width:17px;height:17px;border:2px solid #e5e9ed;border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.request-intro{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px;margin-bottom:16px}.request-intro .separator{color:#c5cfdb}.dashed-box{border:1px dashed #cfd8e2;border-radius:10px;padding:23px;text-align:center;background:#fafbfd}.dashed-box p{font-size:11px;color:var(--muted);margin:9px 0 12px}.dashed-box .icon{color:#95a6bb}.field-inline{display:flex;gap:8px;align-items:center}.field-inline .field{flex:1}.checks{display:flex;gap:10px 15px;flex-wrap:wrap}.code-label{font-size:11px;color:#77859a;font-family:ui-monospace,monospace}.notification-list{padding:0;list-style:none}.notification-list li{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}.notification-list li:last-child{border-bottom:0}.notification-list strong{font-size:11px;display:block}.notification-list span{font-size:10px;color:var(--muted);display:block;margin-top:5px}.notification-icon{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:var(--orange-soft);color:#c4855a;flex-shrink:0}.source-note{margin:19px 0 0;display:flex;align-items:flex-start;gap:7px;font-size:10px;color:#8a95a3;line-height:1.7}.source-note .icon{width:13px;height:13px;margin-top:2px}.dashboard-bottom{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:21px}.request-card-mobile{display:none}.nowrap{white-space:nowrap}@media(min-width:1500px){.content{padding:38px 45px}.topbar{padding:0 45px}.kpi{padding:24px}.kpi-value{font-size:31px}}@media(max-width:1150px){.sidebar{width:206px;padding-left:11px;padding-right:11px}.main{margin-left:206px}.content{padding:28px 25px}.topbar{padding:0 25px}.brand-name{font-size:19px}.nav-link{font-size:12px}.kpi-grid{gap:12px}.kpi{padding:17px}.kpi-value{font-size:23px}.dashboard-row,.dashboard-bottom{grid-template-columns:1.3fr 1fr}.detail-grid{grid-template-columns:minmax(0,1fr) 260px}.form-layout{grid-template-columns:minmax(0,1fr) 220px}.detail-fields{grid-template-columns:1fr 1fr}.toast{left:calc(50% + 103px)}}@media(max-width:950px){.sidebar{width:192px}.main{margin-left:192px}.brand{padding:0 7px}.brand-name{font-size:18px}.brand-mark{width:32px;height:32px;font-size:28px}.nav-link{padding:12px 10px;gap:9px}.kpi-grid{grid-template-columns:repeat(2,1fr)}.dashboard-row,.dashboard-bottom{grid-template-columns:1fr}.form-layout{grid-template-columns:1fr}.form-aside{display:none}.detail-grid{grid-template-columns:1fr}.detail-grid>.stack{display:grid;grid-template-columns:1fr 1fr;align-items:start}.two-col,.admin-grid{grid-template-columns:1fr}.auth-story{padding:40px 12%}.auth-story h1{font-size:35px}.auth-panel{padding:40px 9%}.form-grid.three{grid-template-columns:repeat(2,1fr)}.topbar-right>span:first-child{display:none}.toast{left:calc(50% + 96px)}}@media(max-width:700px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:242px;box-shadow:12px 0 40px #17263b20}.sidebar.open{transform:translateX(0)}.sidebar-overlay{position:fixed;inset:0;background:#17263b66;z-index:29}.main{margin-left:0}.topbar{height:60px;padding:0 18px}.mobile-toggle{display:flex}.breadcrumb{gap:8px;font-size:11px}.topbar-right{gap:6px}.status-pill{font-size:9px}.content{padding:23px 18px 35px}.page-heading{align-items:flex-start;gap:13px;margin-bottom:20px}.page-heading h1{font-size:25px}.page-heading p{font-size:11px;margin-top:7px;max-width:230px}.heading-actions>.btn{font-size:11px;padding:9px 11px}.heading-actions>.btn .icon{width:14px}.heading-actions .secondary-label{display:none}.filters{gap:8px;padding:11px;margin-bottom:18px}.filters select,.filters input{max-width:100%;font-size:10px}.filter-label{display:none}.filter-spacer{display:none}.filter-group{flex:1}.filter-group input[type=date]{width:125px}.kpi-grid{gap:11px;margin-bottom:18px}.kpi{padding:15px 13px;border-radius:10px}.kpi-top{margin-bottom:15px}.kpi-icon{padding:5px}.kpi-icon .icon{width:16px;height:16px}.kpi-label{font-size:10px}.kpi-value{font-size:24px}.kpi-foot{font-size:9px;margin-top:10px;line-height:1.5}.card-header{padding:19px 17px 14px}.card-body{padding:0 17px 19px}.card-footer{padding:12px 17px;line-height:1.5}.card-pad{padding:19px 17px}.card-header h2{font-size:13px}.data-table th,.data-table td{padding-left:15px;padding-right:15px}.dashboard-row,.dashboard-bottom{gap:17px;margin-bottom:18px}.card{border-radius:11px}.modal-backdrop{padding:12px}.modal{max-height:calc(100dvh - 24px);border-radius:12px}.modal-header{padding:18px}.modal-content{padding:19px}.modal-footer{padding:15px 18px}.form-section{padding:20px 17px}.form-grid,.form-grid.three{grid-template-columns:1fr}.form-grid .field.full{grid-column:auto}.form-grid.keep-two{grid-template-columns:1fr 1fr}.type-choices{grid-template-columns:repeat(3,1fr);gap:8px}.type-choice{padding:13px 7px}.type-choice .icon{width:20px;height:20px}.sticky-actions{padding:14px 16px;flex-wrap:wrap}.sticky-actions>.fine{display:none}.sticky-actions>.heading-actions{margin-left:auto}.detail-grid>.stack{display:flex}.detail-fields{grid-template-columns:1fr 1fr}.detail-section{padding:20px 17px}.detail-actions .btn{font-size:11px}.detail-section .prose{font-size:11px}.auth-page{display:flex;flex-direction:column}.auth-story{padding:27px 28px 30px;min-height:auto}.auth-story h1{font-size:29px;margin:26px 0 10px;max-width:320px}.auth-story p{font-size:11px;max-width:320px}.auth-features,.auth-foot{display:none}.auth-panel{padding:30px 28px}.auth-form h2{font-size:23px}.auth-form>p{margin-bottom:23px}.auth-story .brand-name{font-size:20px}.toast{left:50%;bottom:17px;width:max-content}.tabs{gap:18px}.tab{font-size:11px;padding:12px 0}.notice{font-size:10px;padding:12px}.form-layout{gap:17px}.line-item{padding:13px}.line-item .form-grid{grid-template-columns:1fr 1fr}.line-item .field.full{grid-column:1/-1}.total-box{gap:24px}.total-box strong{font-size:19px}.detail-actions{gap:7px}.request-intro{flex-wrap:wrap;gap:8px}.search-input{min-width:100%;flex:1}.list-card{padding:18px}.filters .btn{padding:8px 10px;font-size:10px}.chart{height:190px}.section-title{margin-bottom:17px}.page-heading .heading-actions{justify-content:flex-end}.hide-mobile{display:none}.filters details{width:100%}.source-note{font-size:9px}.modal .form-grid.keep-two{grid-template-columns:1fr}.auth-form .fine{font-size:10px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media print{.sidebar,.topbar,.heading-actions,.filters,.btn{display:none!important}.main{margin:0}.content{padding:0}.card{break-inside:avoid;box-shadow:none}.kpi-grid{grid-template-columns:repeat(4,1fr)}body{background:white}}
.brand-mark{object-fit:contain;padding:0;border-radius:8px;background:transparent}.auth-page.auth-compact{display:flex;min-height:100vh;background:#f4f6f8;align-items:center;justify-content:center}.auth-compact .auth-panel{width:100%;padding:38px 24px}.auth-compact .auth-form{max-width:420px;background:white;border:1px solid var(--border);border-radius:15px;padding:35px;box-shadow:0 10px 40px #20354c08}.auth-brand{display:flex;align-items:center;gap:13px;margin-bottom:31px}.auth-logo{width:46px;height:46px;border-radius:10px}.auth-brand h1{font-size:22px;letter-spacing:-.7px}.auth-compact .auth-form h2{font-size:18px;margin:0 0 22px}.auth-compact .auth-form h2:has(+p){margin-bottom:9px}.auth-compact .auth-form>p{font-size:11px;margin-bottom:22px}.auth-compact .auth-form .btn{margin-top:23px}.definition-details{display:block;padding:13px 15px;border:1px solid var(--border);border-radius:9px;background:#fff}.definition-details summary{cursor:pointer;font-size:11px;color:#77869a}.definition-details p{margin-top:12px;max-width:1000px}.page-heading p:empty{display:none}.breakdown-title span{overflow-wrap:anywhere;max-width:75%}@media(max-width:700px){.auth-compact .auth-form{padding:26px 23px}.auth-compact .auth-panel{padding:22px 17px}.auth-brand h1{font-size:21px}.auth-logo{width:42px;height:42px}}
:root{--accent:#ff7000;--accent-dark:#a94500;--orange-soft:#fff1e6}.btn.primary,.btn.primary:hover,.btn.primary:focus-visible,.btn.primary:disabled{color:#fff}.btn.primary:hover{background:#ef6500;border-color:#ef6500}.brand-name span{color:var(--accent)}.form-section:has(#entity_id) .field:has(#entity_id){padding:13px;background:#fff6ee;border:1px solid #f1ddce;border-radius:8px}.form-section .field:has(#entity_id) label{color:#834110}.definition-details[open] summary{margin-bottom:8px}
.compact-select{font-size:10px;border:1px solid var(--border);border-radius:5px;padding:6px;background:white;color:var(--ink)}.content:focus{outline:none}.data-table th.text-right{text-align:right}.field input:disabled,.field select:disabled{background:#f4f6f8;color:#69788c;opacity:1}
.form-layout{grid-template-columns:minmax(0,1fr);max-width:1100px}
.notification-config{display:flex;align-items:flex-start;gap:9px;margin-top:16px}.notification-config .badge{flex-shrink:0}.notification-counts{display:flex;flex-wrap:wrap;gap:10px 18px;font-size:10px;color:var(--muted);margin-top:13px}.notification-counts strong{font-size:12px;color:var(--ink);font-weight:650}.notification-recipient{white-space:normal;overflow-wrap:anywhere;max-width:220px}.notification-error{display:block;white-space:normal;max-width:250px;line-height:1.5;margin-top:6px;color:var(--danger)}
#smtp-test-result .notice{margin-top:16px;margin-bottom:0}.smtp-footer{flex-wrap:wrap}.notification-config .fine{overflow-wrap:anywhere}@media(max-width:700px){.smtp-footer{justify-content:space-between}.smtp-footer .btn{font-size:10px;padding:8px}}
#ai-test-result .notice{margin-top:16px;margin-bottom:0}#ai-config-status .fine{overflow-wrap:anywhere}
.sidebar .brand-name{color:#111111}
.payment-editor{margin-top:12px;padding-top:18px;border-top:1px solid var(--border)}.payment-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.payment-editor-heading h3{font-size:12px}.payment-editor .field textarea{min-height:66px}.payment-editor .form-grid{gap:14px}.modal-content>.payment-editor{margin-top:20px}@media(max-width:700px){.payment-editor-heading{align-items:flex-start;flex-wrap:wrap}.payment-editor-heading .btn{font-size:10px}.payment-editor .form-grid{grid-template-columns:1fr}}

/* Authentication: reuse the existing cards, inputs and buttons. */
.auth-form .sso-button{width:100%;justify-content:center;border-color:#cbd5e1;color:#142235;background:#fff}
.auth-form .sso-button:disabled{color:#687588;background:#f5f7fa;opacity:1}
.auth-separator{display:flex;align-items:center;gap:12px;color:#7b8795;font-size:12px;margin:2px 0}
.auth-separator:before,.auth-separator:after{content:"";height:1px;background:#e6eaf0;flex:1}
#mfa-form input[name=code]{font-size:24px;letter-spacing:.3em;text-align:center}
.auth-form [data-action="auth-back"]{margin-top:8px}.auth-form [data-action="mfa-resend"]{margin-top:12px}.auth-settings{margin-top:18px;grid-template-columns:1fr}
.auth-settings .field{min-width:0}.auth-settings input:not([type="checkbox"]){min-width:0;width:100%}

.admin-grid>.stack,.admin-grid .card{min-width:0}
.auth-settings .checkbox-field{flex-direction:row;align-items:center;justify-content:flex-start}
.auth-settings .checkbox-field>span{display:flex;align-items:center;gap:8px}
