*{box-sizing:border-box}html{font-size:16px}body{margin:0;background:#f4f7f5;color:#17382c;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased}a{color:inherit}button,input{font:inherit}:root{--bg:#f4f7f5;--surface:#fff;--soft:#f8fbf9;--line:#dce7e1;--line2:#cbdad3;--text:#17382c;--muted:#708078;--brand:#b4232c;--brand-dark:#8f1d25;--brand-soft:#fdebed;--danger:#a33b32;--danger-bg:#fff1ef;--warning:#876513;--warning-bg:#fff8e6;--shadow:0 5px 20px rgba(24,55,44,.035)}
.top{height:72px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30}.top-inner{width:min(1180px,calc(100% - 48px));height:100%;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;min-width:0}.brand-mark{width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:var(--brand);color:#fff;display:grid;place-items:center;font-weight:800;font-size:17px}.brand-copy{min-width:0}.brand-copy b{display:block;font-size:16px;line-height:1.1;letter-spacing:-.02em}.brand-copy small{display:block;color:var(--muted);font-size:11px;margin-top:4px;white-space:nowrap}.nav{display:flex;align-items:center;gap:3px}.nav-link{display:inline-flex;align-items:center;gap:7px;padding:9px 10px;border-radius:9px;text-decoration:none;color:#4d635a;font-size:13px;font-weight:650;white-space:nowrap}.nav-link:hover,.nav-link.active{background:var(--brand-soft);color:var(--brand-dark)}.nav-link.logout{margin-left:4px;color:#80534e}.dashboard{width:min(1180px,calc(100% - 48px));margin:auto;padding:36px 0 64px}.welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}.eyebrow{text-transform:uppercase;letter-spacing:.095em;font-size:10px;font-weight:800;color:var(--brand);margin-bottom:7px}.welcome h1{font-size:31px;line-height:1.15;letter-spacing:-.04em;margin:0 0 6px}.welcome p{font-size:14px;color:var(--muted);margin:0}.user-chip{display:flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid var(--line);background:#fff;border-radius:10px;color:#52675e;font-size:12px;white-space:nowrap}.user-avatar{width:25px;height:25px;border-radius:8px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;font-size:11px;font-weight:800}.dot-sep{color:#9aa8a2}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.stat,.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.stat{min-height:150px;padding:18px}.stat-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.stat-label{font-size:13px;font-weight:700;color:#657970}.icon-box{width:35px;height:35px;flex:0 0 35px;border:1px solid #d6e4dd;background:var(--soft);border-radius:9px;display:grid;place-items:center;color:var(--brand)}.stat-value{display:block;font-size:28px;line-height:1.1;letter-spacing:-.04em;margin:22px 0 5px}.stat-note{font-size:11px;color:var(--muted)}.grid-2{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:14px;margin-bottom:14px}.panel{padding:21px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}.panel h2{font-size:18px;line-height:1.25;letter-spacing:-.025em;margin:0}.panel p{font-size:12px;color:var(--muted);margin:4px 0 0}.badge{font-size:10px;text-transform:uppercase;letter-spacing:.06em;padding:6px 8px;border-radius:7px;background:var(--brand-soft);color:var(--brand);font-weight:800}.module-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.module{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid var(--line);border-radius:10px;background:#fff}.module .icon-box{width:33px;height:33px;flex-basis:33px}.module b{display:block;font-size:12px}.module small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.soon{margin-left:auto;color:#8a9992;font-size:9px;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}.status-list{display:grid}.status-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid #edf2ef;font-size:12px}.status-row:last-child{border-bottom:0}.status-dot{display:inline-flex;align-items:center;gap:8px;color:#4f665c}.status-dot:before{content:"";width:7px;height:7px;border-radius:50%;background:#b4232c;box-shadow:0 0 0 3px #fdebed}.status-row b{font-size:11px;color:#52675e}.maintenance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tile{display:block;padding:14px;border:1px solid var(--line);border-radius:11px;background:#fff;text-decoration:none}.tile:hover{border-color:#bcd7ca;background:#fbfdfc}.tile-top{display:flex;align-items:center;gap:9px}.tile-top b{font-size:12px}.tile-top .arrow{margin-left:auto;color:#8b9993;font-size:18px}.tile small{display:block;margin-top:9px;font-size:10px;line-height:1.5;color:var(--muted)}.flash{padding:11px 13px;border-radius:9px;margin-bottom:16px;font-size:12px}.flash.ok{background:#eaf7f0;border:1px solid #b8dfc9;color:#17633f}.flash.err{background:var(--danger-bg);border:1px solid #efc0ba;color:var(--danger)}.warning{padding:12px;border-radius:9px;background:var(--warning-bg);border:1px solid #ead69b;color:var(--warning);font-size:12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 14px;border:0;border-radius:9px;background:var(--brand);color:#fff;font-weight:750;cursor:pointer;text-decoration:none}.btn:hover{background:var(--brand-dark)}.btn.secondary{background:#fff;color:var(--brand-dark);border:1px solid var(--line2)}.btn.danger{background:var(--danger)}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.panel label{display:block;font-size:12px;font-weight:700;margin:13px 0}.panel input[type=file],.panel input[type=text],.panel input[type=password],.panel input[type=email]{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid var(--line2);border-radius:8px;background:#fff}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:11px}th,td{text-align:left;padding:10px 8px;border-bottom:1px solid #e7eeea;white-space:nowrap}th{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#66786f}td a{color:var(--brand);font-weight:700;text-decoration:none}.auth{min-height:100vh;display:grid;place-items:center;padding:20px}.login{width:min(400px,100%);background:#fff;border:1px solid var(--line);border-radius:16px;padding:32px;box-shadow:0 12px 35px rgba(20,50,40,.06)}.login .brand-mark{margin:auto}.login h1{text-align:center;margin:14px 0 2px;font-size:24px}.login p{text-align:center;color:var(--muted);font-size:12px;margin:0 0 20px}.login label{display:block;font-size:12px;font-weight:700;margin:16px 0}.login input{display:block;width:100%;margin-top:6px;padding:11px;border:1px solid var(--line2);border-radius:8px}.login .btn{width:100%}
@media(max-width:960px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-2{grid-template-columns:1fr}.maintenance{grid-template-columns:1fr}.welcome{align-items:flex-start;flex-direction:column}}
@media(max-width:680px){.top{height:auto;min-height:72px}.top-inner{width:calc(100% - 32px);padding:11px 0;align-items:flex-start;flex-direction:column;gap:9px}.nav{width:100%;overflow-x:auto;scrollbar-width:none}.nav::-webkit-scrollbar{display:none}.dashboard{width:calc(100% - 32px);padding:28px 0 45px}.cards{grid-template-columns:1fr}.module-list{grid-template-columns:1fr}.user-chip{display:none}.welcome h1{font-size:28px}.brand-copy small{font-size:10px}}

.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.steps>div{display:flex;gap:10px;align-items:flex-start;padding:13px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}.steps b{font-size:11px;color:var(--brand);letter-spacing:.05em}.steps span{font-size:11px;color:var(--muted);line-height:1.55}.steps strong{color:var(--text)}
@media(max-width:760px){.steps{grid-template-columns:1fr}}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.page-head h1{font-size:31px;line-height:1.15;letter-spacing:-.04em;margin:0 0 6px}.page-head p{font-size:14px;color:var(--muted);margin:0}.page-actions{display:flex;gap:8px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 14px}.panel select,.panel textarea{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid var(--line2);border-radius:8px;background:#fff}.panel textarea{resize:vertical}.span-2{grid-column:1/-1}.form-section-title{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--brand);font-weight:800;border-top:1px solid var(--line);padding-top:17px;margin-top:7px}.stat-link{display:block;text-decoration:none;color:inherit}.stat-link:hover{border-color:#d4b5b8;box-shadow:0 7px 22px rgba(180,35,44,.06)}.module-link{text-decoration:none;color:inherit}.module-link:hover{border-color:#d9b7ba;background:#fffafb}.score-summary{display:flex;align-items:flex-end;gap:9px}.score-summary strong{font-size:25px;letter-spacing:-.03em}.score-summary span{font-size:11px;color:var(--brand);font-weight:800;margin-bottom:3px}.info-box{background:var(--brand-soft);border:1px solid #efcbd0;border-radius:10px;padding:12px 14px;font-size:11px;color:#71323a;margin-bottom:16px}.score-list{display:grid;gap:10px}.score-item{border:1px solid var(--line);border-radius:11px;padding:14px;background:var(--soft)}.score-item-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:9px}.score-item-head b{font-size:12px}.score-item-head small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.weight{font-size:10px;font-weight:800;color:var(--brand);white-space:nowrap}.inline-score{display:flex;align-items:center;gap:9px}.inline-score input{width:180px!important;margin-top:0!important}.inline-score span{font-size:10px;color:var(--muted)}.status-pill{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:800}.status-pill.active{background:#eaf7f0;color:#17633f}.status-pill.inactive{background:#f2f3f2;color:#6c7772}.muted{font-size:10px;color:var(--muted)}.actions.compact{margin-top:0;flex-wrap:nowrap}.actions.compact .btn{padding:7px 9px;font-size:10px}.empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;padding:28px;text-align:center}.empty b{font-size:13px}.empty span{font-size:11px;color:var(--muted);margin-bottom:5px}
@media(max-width:760px){.page-head{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.actions.compact{flex-wrap:wrap}.score-item-head{flex-direction:column;gap:5px}}

.public-home{min-height:100vh;background:linear-gradient(135deg,#fff 0%,#fff 62%,#fff5f6 100%);position:relative;overflow:hidden}.public-home:before{content:"";position:absolute;width:520px;height:520px;border-radius:50%;right:-180px;top:-180px;background:rgba(180,35,44,.07)}.public-home:after{content:"";position:absolute;width:320px;height:320px;border-radius:50%;left:-180px;bottom:-180px;background:rgba(180,35,44,.045)}.public-inner{width:min(1120px,calc(100% - 48px));min-height:100vh;margin:auto;display:flex;flex-direction:column;position:relative;z-index:1}.public-brand{display:flex;align-items:center;gap:11px;padding-top:34px}.public-brand b{display:block;font-size:17px;letter-spacing:-.02em}.public-brand small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.public-content{max-width:760px;margin:auto 0;padding:70px 0 90px}.public-content h1{font-size:clamp(38px,6vw,64px);line-height:1.05;letter-spacing:-.055em;margin:0 0 22px;color:var(--text)}.public-content h1 span{color:var(--brand)}.public-content p{max-width:650px;font-size:17px;line-height:1.7;color:#66776f;margin:0}.public-actions{display:flex;gap:10px;margin-top:30px}.public-actions .btn{padding:12px 20px;border-radius:10px}.public-features{display:flex;gap:34px;margin-top:62px;padding-top:20px;border-top:1px solid var(--line);max-width:720px}.public-features div{display:flex;align-items:center;gap:9px}.public-features b{font-size:10px;color:var(--brand);letter-spacing:.08em}.public-features span{font-size:11px;color:#65776f}.public-footer{margin-top:auto;padding:22px 0 28px;font-size:10px;color:#84928d;border-top:1px solid rgba(220,231,225,.7)}
@media(max-width:680px){.public-inner{width:calc(100% - 32px)}.public-brand{padding-top:24px}.public-content{padding:45px 0 55px}.public-content h1{font-size:39px}.public-content p{font-size:15px}.public-features{display:grid;grid-template-columns:1fr;gap:12px;margin-top:42px}.public-footer{padding-bottom:22px}}

/* Public landing v0.5.0.2 */
.public-home{min-height:100vh;background:#f7f9f8;color:#17382c;position:relative;overflow:hidden}
.public-home:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 78% 18%,rgba(180,35,44,.10),transparent 28%),radial-gradient(circle at 12% 92%,rgba(180,35,44,.055),transparent 24%);pointer-events:none}
.public-shell{width:min(1180px,calc(100% - 64px));margin:0 auto;position:relative;z-index:2}
.public-header{height:84px;background:rgba(255,255,255,.86);border-bottom:1px solid rgba(210,224,217,.85);backdrop-filter:blur(14px);position:relative;z-index:5}
.public-header .public-shell{height:100%;display:flex;align-items:center;justify-content:space-between}
.public-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}.public-brand .brand-mark{width:42px;height:42px;flex-basis:42px;border-radius:11px;font-size:18px}.public-brand b{display:block;font-size:17px;letter-spacing:-.025em;line-height:1.1}.public-brand small{display:block;color:#77867f;font-size:10px;margin-top:4px}
.public-login{display:inline-flex;align-items:center;gap:10px;padding:10px 15px;border:1px solid #e0c2c5;border-radius:9px;color:#8f1d25;text-decoration:none;font-size:12px;font-weight:800;background:#fff}.public-login span{font-size:15px;line-height:1}.public-login:hover{background:#fdebed}
.public-hero{min-height:calc(100vh - 84px);display:flex;align-items:center;padding:48px 0 34px;position:relative}.public-hero-grid{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(450px,.97fr);gap:70px;align-items:center}
.public-copy{padding:22px 0 40px}.public-kicker{display:flex;align-items:center;gap:9px;color:#a02029;font-size:10px;font-weight:850;letter-spacing:.13em;margin-bottom:18px}.public-kicker span{width:24px;height:2px;background:#b4232c;border-radius:2px}
.public-copy h1{max-width:700px;font-size:clamp(44px,5.2vw,72px);line-height:1.015;letter-spacing:-.065em;margin:0;color:#183c30;font-weight:790}.public-copy h1 em{font-style:normal;color:#b4232c}.public-lead{max-width:660px;margin:24px 0 0;color:#687a72;font-size:16px;line-height:1.72}.public-actions{display:flex;align-items:center;gap:16px;margin-top:30px}.public-primary{padding:13px 19px;border-radius:10px;box-shadow:0 9px 24px rgba(180,35,44,.16)}.public-primary span{font-size:16px}.public-note{font-size:10px;color:#8a9791}.public-trust{display:flex;flex-wrap:wrap;gap:25px;margin-top:52px;padding-top:19px;border-top:1px solid #dfe8e3;max-width:690px}.public-trust span{font-size:11px;color:#60726a;display:inline-flex;align-items:center;gap:8px}.public-trust b{color:#b4232c;font-size:9px;letter-spacing:.08em}
.public-visual{height:500px;position:relative;display:flex;align-items:center;justify-content:center}.public-visual:before{content:"";position:absolute;width:430px;height:430px;border-radius:50%;border:1px solid rgba(180,35,44,.10);box-shadow:0 0 0 42px rgba(180,35,44,.018),0 0 0 92px rgba(180,35,44,.012)}.visual-orbit{position:absolute;border:1px dashed rgba(180,35,44,.16);border-radius:50%;transform:rotate(-18deg)}.orbit-a{width:470px;height:170px}.orbit-b{width:530px;height:230px;transform:rotate(27deg)}
.visual-card{background:rgba(255,255,255,.95);border:1px solid #dce6e1;box-shadow:0 24px 55px rgba(25,58,45,.11);border-radius:16px;position:absolute}.visual-main{width:390px;min-height:300px;padding:20px 21px;transform:rotate(-2deg);z-index:3}.visual-top{display:flex;align-items:center;gap:7px;color:#72817b;font-size:9px;font-weight:750}.visual-top b{margin-left:auto;color:#b4232c;font-size:8px}.visual-dot{width:7px;height:7px;background:#b4232c;border-radius:50%;box-shadow:0 0 0 4px #fdebed}.visual-title{font-size:21px;font-weight:780;letter-spacing:-.035em;margin-top:27px}.visual-subtitle{font-size:10px;color:#8a9892;margin-top:3px}.visual-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:20px}.visual-stats div{background:#f7faf8;border:1px solid #e3ebe7;border-radius:9px;padding:11px}.visual-stats small{display:block;color:#89958f;font-size:7px;letter-spacing:.08em}.visual-stats strong{display:block;font-size:18px;letter-spacing:-.03em;margin-top:4px}.visual-chart{height:78px;display:flex;align-items:end;gap:8px;margin-top:20px;padding:0 5px;border-bottom:1px solid #e5ece8}.visual-chart i{display:block;flex:1;background:#d65a61;border-radius:4px 4px 0 0;opacity:.78}.visual-progress{height:5px;background:#eef2ef;border-radius:99px;margin-top:16px;overflow:hidden}.visual-progress span{display:block;width:74%;height:100%;background:#b4232c;border-radius:99px}.visual-mini{display:flex;align-items:center;gap:10px;padding:12px 14px;z-index:4}.visual-mini small{display:block;color:#8a9791;font-size:8px}.visual-mini b{display:block;color:#314e42;font-size:10px;margin-top:2px}.mini-icon{width:29px;height:29px;border-radius:8px;background:#fdebed;color:#b4232c;display:grid;place-items:center;font-weight:850;font-size:12px}.mini-a{right:1px;top:93px}.mini-b{left:6px;bottom:83px}.public-bottom{padding:0 0 30px;position:relative;z-index:3}.public-bottom .public-shell{display:flex;align-items:flex-end;justify-content:space-between;gap:35px;border-top:1px solid #dfe8e3;padding-top:18px}.public-bottom p{max-width:720px;margin:5px 0 0;color:#73817b;font-size:10px;line-height:1.55}.bottom-label{font-size:8px;color:#a02029;font-weight:850;letter-spacing:.12em}.public-footer{font-size:9px;color:#8a9791;white-space:nowrap}.public-footer span{padding:0 4px;color:#b6c0bc}
@media(max-width:980px){.public-shell{width:min(100% - 40px,760px)}.public-hero{padding-top:35px}.public-hero-grid{grid-template-columns:1fr;gap:20px}.public-copy{padding-bottom:0}.public-copy h1{max-width:760px}.public-visual{height:430px;margin-top:-5px}.public-bottom{display:none}}
@media(max-width:600px){.public-shell{width:calc(100% - 32px)}.public-header{height:72px}.public-brand .brand-mark{width:38px;height:38px;flex-basis:38px}.public-brand b{font-size:15px}.public-brand small{font-size:9px}.public-login{padding:8px 11px;font-size:10px}.public-hero{min-height:calc(100vh - 72px);padding:38px 0 28px;align-items:flex-start}.public-kicker{font-size:8px;letter-spacing:.09em}.public-copy h1{font-size:43px}.public-lead{font-size:14px;line-height:1.65}.public-actions{align-items:flex-start;flex-direction:column;gap:10px}.public-trust{margin-top:36px;gap:12px 20px}.public-visual{height:310px;margin-top:5px}.public-visual:before{width:280px;height:280px}.orbit-a{width:320px;height:120px}.orbit-b{width:350px;height:150px}.visual-main{width:min(330px,92vw);min-height:245px;padding:16px}.visual-title{font-size:18px;margin-top:18px}.visual-stats{margin-top:14px}.visual-stats strong{font-size:15px}.visual-chart{height:58px;margin-top:14px}.visual-mini{padding:9px 11px}.mini-a{right:-2px;top:38px}.mini-b{left:-2px;bottom:20px}}

/* Master Media v0.5.1 */
.choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 18px}.check-card{display:flex!important;align-items:flex-start;gap:10px;padding:13px 14px!important;margin:0!important;border:1px solid var(--line);border-radius:11px;background:#fff;cursor:pointer;transition:.15s ease}.check-card:hover{border-color:#d9b7ba;background:#fffafb}.check-card:has(input:checked){border-color:#e3aeb3;background:var(--brand-soft);box-shadow:0 0 0 1px rgba(180,35,44,.05)}.check-card input{width:17px;height:17px;flex:0 0 17px;margin:1px 0 0;accent-color:var(--brand)}.check-card span{display:block;min-width:0}.check-card b{display:block;font-size:12px}.check-card small{display:block;margin-top:3px;font-size:10px;line-height:1.4;color:var(--muted)}.repeat-list{display:grid;gap:8px;margin:9px 0 9px}.repeat-row{display:grid;grid-template-columns:170px minmax(140px,1fr) minmax(180px,1fr) 36px;gap:8px;align-items:center}.repeat-row.reporter{grid-template-columns:minmax(180px,1fr) minmax(160px,260px) 36px}.repeat-row select,.repeat-row input{margin-top:0!important}.icon-remove{width:36px;height:36px;border:1px solid var(--line2);border-radius:8px;background:#fff;color:#7b6a68;font-size:18px;line-height:1;cursor:pointer}.icon-remove:hover{border-color:#e1b4b0;background:var(--danger-bg);color:var(--danger)}.small{padding:8px 11px;font-size:11px}.section-note{font-size:11px!important;color:var(--muted);margin:-7px 0 8px!important}.format-list{white-space:normal;line-height:1.55}@media(max-width:860px){.choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.repeat-row,.repeat-row.reporter{grid-template-columns:1fr 1fr 36px}.repeat-row select{grid-column:1/-1}}@media(max-width:560px){.choice-grid{grid-template-columns:1fr}.repeat-row,.repeat-row.reporter{grid-template-columns:1fr 36px}.repeat-row select{grid-column:1/-1}.repeat-row input:first-of-type{grid-column:1}.repeat-row input[type=url]{grid-column:1}.repeat-row.reporter input{grid-column:1}.form-section-title{margin-top:14px}}

/* Master Media v0.5.1.2 — search, filter, pagination, statistics */
.media-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:12px}.media-stat{min-height:118px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px 14px;box-shadow:var(--shadow)}.media-stat span{display:block;font-size:10px;font-weight:750;color:#667970;text-transform:uppercase;letter-spacing:.045em}.media-stat strong{display:block;font-size:25px;line-height:1.1;letter-spacing:-.04em;margin-top:15px}.media-stat small{display:block;color:var(--muted);font-size:9px;line-height:1.4;margin-top:5px}.format-stats{margin-bottom:12px}.format-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:9px}.format-stat{display:block;text-decoration:none;border:1px solid var(--line);border-radius:10px;background:var(--soft);padding:12px 13px}.format-stat:hover{border-color:#dcb7bb;background:var(--brand-soft)}.format-stat span{display:block;font-size:10px;color:#657970;min-height:28px}.format-stat strong{display:inline-block;font-size:21px;letter-spacing:-.035em;margin-top:4px}.format-stat small{font-size:9px;color:var(--muted);margin-left:4px}.media-list-panel{padding-bottom:18px}.media-toolbar{display:grid;grid-template-columns:minmax(230px,1.7fr) minmax(140px,1fr) minmax(150px,1fr) minmax(140px,1fr) minmax(100px,.6fr) auto auto;gap:8px;align-items:center;margin:2px 0 12px}.search-box{display:flex;align-items:center;gap:8px;border:1px solid var(--line2);border-radius:9px;background:#fff;padding:0 10px;min-width:0}.search-box span{font-size:18px;color:#8a9992;line-height:1}.search-box input{border:0!important;outline:0;width:100%;margin:0!important;padding:10px 0!important;min-width:0}.media-toolbar select{width:100%;min-width:0;padding:10px;border:1px solid var(--line2);border-radius:9px;background:#fff;color:var(--text);font-size:11px}.media-toolbar .btn{white-space:nowrap;padding:10px 12px;font-size:11px}.table-meta{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:10px;padding:2px 2px 8px}.score-badge{display:inline-flex;align-items:center;gap:7px;min-width:88px;padding:7px 9px;border-radius:9px;background:var(--brand-soft);border:1px solid #f0cfd2;color:var(--brand-dark)}.score-badge strong{font-size:15px;line-height:1;letter-spacing:-.03em}.score-badge small{font-size:8px;line-height:1.15;color:#8a4d52;max-width:65px;white-space:normal}.score-empty{display:inline-block;color:#89958f;font-size:10px;line-height:1.35;max-width:80px}.num-cell{text-align:center;font-weight:700}.pagination{display:flex;justify-content:center;align-items:center;gap:14px;padding:17px 4px 2px;font-size:11px;color:var(--muted)}.pagination a{display:inline-flex;align-items:center;padding:8px 11px;border:1px solid var(--line2);border-radius:8px;text-decoration:none;background:#fff;color:var(--brand-dark);font-weight:700}.pagination a:hover{background:var(--brand-soft)}.pagination span{white-space:nowrap}@media(max-width:1100px){.media-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.media-toolbar{grid-template-columns:2fr 1fr 1fr 1fr 1fr}.media-toolbar .search-box{grid-column:1/-1}.media-toolbar .btn{justify-self:start}}@media(max-width:760px){.media-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.media-toolbar{grid-template-columns:1fr 1fr}.media-toolbar .search-box{grid-column:1/-1}.media-toolbar .btn{width:100%}.format-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.table-meta{font-size:9px}.pagination{justify-content:space-between;gap:7px}.pagination span{font-size:10px}}@media(max-width:520px){.media-stats{grid-template-columns:1fr 1fr;gap:8px}.media-stat{min-height:105px;padding:12px}.media-stat strong{font-size:22px;margin-top:12px}.media-stat small{font-size:8px}.format-stat-grid{grid-template-columns:1fr 1fr}.media-toolbar{grid-template-columns:1fr}.media-toolbar .search-box{grid-column:auto}.pagination{font-size:10px}.pagination a{padding:7px 8px}}

/* Master Agensi v0.5.2 */
.form-section{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.form-section:first-child{border-top:0;padding-top:0;margin-top:0}.form-section h3{font-size:13px;margin:0 0 12px;letter-spacing:-.01em}.form-section>p,.form-help{font-size:11px;color:var(--muted);margin:0 0 12px}.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.check-card{display:flex!important;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer}.check-card:hover{border-color:#d8b2b6;background:#fffafa}.check-card input{margin:3px 0 0!important;width:auto!important}.check-card b{display:block;font-size:11px}.check-card small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.score-row{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:13px 14px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}.score-row>span:first-child b{display:block;font-size:12px}.score-row>span:first-child small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.form-section input[type=file]{font-size:10px;padding:7px}.form-section label>small{font-size:9px;color:var(--muted);display:block;margin-top:4px}@media(max-width:760px){.check-grid{grid-template-columns:1fr}.score-row{align-items:flex-start;flex-direction:column}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}}

/* Master Agensi v0.5.2.1 — form refinement + media table pagination */
.agency-editor{padding:22px}.agency-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:13px}.agency-section-head h3{margin:0;font-size:13px}.agency-section-head>span,.agency-section-head p{margin:3px 0 0;font-size:10px;color:var(--muted);font-weight:500}.agency-section-head strong{font-size:10px;color:var(--brand-dark);white-space:nowrap}.agency-form-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 22px}.agency-form-grid label{margin:0 0 13px}.agency-form-grid .wide{grid-column:1/-1}.agency-editor input:not([type=file]),.agency-editor textarea,.agency-editor select{font-size:12px;line-height:1.45}.agency-editor input:not([type=file]){min-height:40px;padding:10px 12px}.agency-editor textarea{padding:10px 12px;min-height:84px}.agency-editor input::placeholder,.agency-editor textarea::placeholder{color:#a0aaa5}.agency-doc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.agency-doc-card{border:1px solid var(--line);border-radius:10px;background:var(--soft);padding:12px}.agency-doc-title{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:8px}.agency-doc-title b{font-size:11px}.agency-doc-title span{font-size:9px;color:var(--muted);text-align:right}.agency-doc-card>input:not([type=file]){margin-top:0!important}.agency-doc-upload{margin-top:8px}.agency-doc-card input[type=file]{width:100%;padding:8px 9px;background:#fff}.uploaded-file{display:block!important;margin-top:7px!important;color:#17633f!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agency-media-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:8px;margin:0 0 10px}.agency-media-toolbar .search-box{margin:0!important}.agency-media-toolbar select{width:100%;padding:10px 11px;border:1px solid var(--line2);border-radius:9px;background:#fff;color:var(--text);font-size:11px}.agency-media-table-wrap{border:1px solid var(--line);border-radius:10px}.agency-media-table{table-layout:fixed}.agency-media-table th,.agency-media-table td{padding:9px 9px}.agency-media-table th{background:var(--soft);border-bottom:1px solid var(--line)}.agency-media-table th:nth-child(1),.agency-media-table td:nth-child(1){width:42px}.agency-media-table th:nth-child(2),.agency-media-table td:nth-child(2){width:48px}.agency-media-table th:nth-child(3),.agency-media-table td:nth-child(3){width:28%}.agency-media-table th:nth-child(4),.agency-media-table td:nth-child(4){width:29%}.agency-media-table th:nth-child(5),.agency-media-table td:nth-child(5){width:auto}.agency-media-table td{white-space:normal;vertical-align:middle}.agency-media-table .check-col{text-align:center}.agency-media-table input[type=checkbox]{width:16px;height:16px;accent-color:var(--brand)}.agency-media-table .num-cell{text-align:center;color:#657970}.agency-media-table td b{font-size:11px}.agency-media-table .format-list{font-size:10px;color:#5f7169}.agency-media-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:10px}.agency-media-footer>span{font-size:10px;color:var(--muted)}.agency-media-pagination{justify-content:flex-end;padding:0}.agency-media-pagination a,.agency-media-pagination span{min-width:30px;height:30px;padding:0 8px;justify-content:center}.agency-media-pagination a.active{background:var(--brand);border-color:var(--brand);color:#fff}.agency-media-pagination span{display:inline-flex;align-items:center;color:var(--muted)}
@media(max-width:760px){.agency-editor{padding:17px}.agency-form-grid,.agency-doc-grid{grid-template-columns:1fr}.agency-form-grid .wide{grid-column:auto}.agency-section-head{align-items:flex-start;flex-direction:column;gap:3px}.agency-media-toolbar{grid-template-columns:1fr}.agency-media-table{min-width:650px}.agency-media-table-wrap{overflow:auto}.agency-media-footer{align-items:flex-start;flex-direction:column}.agency-media-pagination{width:100%;justify-content:flex-start;overflow-x:auto}}

/* SMART v0.5.2.2 — Master Agensi form layout correction */
.agency-editor .agency-form-grid > label,
.agency-editor .agency-form-grid > .wide {
  display:block;
  width:100%;
  min-width:0;
  margin:0;
}
.agency-editor .agency-form-grid > label > input:not([type=file]),
.agency-editor .agency-form-grid > label > textarea,
.agency-editor .agency-form-grid > label > select {
  display:block;
  width:100%;
  max-width:none;
  min-width:0;
  margin-top:7px;
}
.agency-editor .agency-form-grid {
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  column-gap:24px;
  row-gap:0;
  align-items:start;
}
.agency-editor .agency-form-grid > label {
  padding-bottom:14px;
}
.agency-editor .agency-form-grid > .wide {
  grid-column:1 / -1;
}
.agency-editor .agency-form-grid > .wide textarea {
  min-height:96px;
  resize:vertical;
}
.agency-editor .agency-form-grid > label:nth-last-child(1) {
  grid-column:1 / -1;
  max-width:calc(50% - 12px);
}
.agency-editor .agency-section-head {
  align-items:flex-start;
  padding-bottom:2px;
}
.agency-editor .agency-section-head h3 {
  font-size:14px;
  line-height:1.35;
}
.agency-editor .agency-section-head > span,
.agency-editor .agency-section-head p {
  font-size:10px;
  line-height:1.45;
}
.agency-editor .agency-doc-card > input:not([type=file]) {
  display:block;
  width:100%;
  min-height:40px;
}
.agency-editor .agency-doc-upload input[type=file] {
  display:block;
  width:100%;
}
.agency-editor .agency-media-toolbar {
  grid-template-columns:minmax(0,1fr) 210px;
  align-items:center;
}
@media(max-width:760px){
  .agency-editor .agency-form-grid > label:nth-last-child(1){
    grid-column:auto;
    max-width:none;
  }
}

/* SMART v0.6.0 — Master Anggaran */
.budget-page-head{margin-bottom:16px}.budget-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.budget-kpi{background:#fff;border:1px solid var(--line);border-radius:12px;padding:15px 16px;min-height:92px}.budget-kpi span{display:block;color:var(--muted);font-size:10px}.budget-kpi strong{display:block;margin-top:13px;font-size:23px;letter-spacing:-.03em;color:var(--text)}.budget-selector{margin-bottom:14px}.budget-year-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.budget-year{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 13px;border:1px solid var(--line);border-radius:10px;background:#fff;text-decoration:none;color:var(--text)}.budget-year:hover{border-color:#d7aeb2;background:#fffafa}.budget-year.selected{border-color:var(--brand);background:var(--brand-soft)}.budget-year b{display:block;font-size:14px}.budget-year small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.budget-year em{font-style:normal;font-size:8px;padding:5px 7px;border-radius:999px;background:#e9f5ee;color:#246644}.budget-structure{overflow:hidden}.budget-node{border:1px solid var(--line);border-radius:10px;background:#fff;margin:8px 0}.budget-node>summary{list-style:none;display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 12px;cursor:pointer}.budget-node>summary::-webkit-details-marker{display:none}.budget-node>summary:before{content:'›';font-size:17px;color:var(--muted);position:absolute;transform:translateX(-3px)}.budget-node[open]>summary:before{content:'⌄'}.node-code{padding-left:17px;color:var(--brand-dark);font-size:10px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.node-main{min-width:0;overflow:hidden}.node-main b{white-space:normal;overflow-wrap:anywhere;line-height:1.35}.node-main b{display:block;font-size:11px}.node-main small{display:block;color:var(--muted);font-size:9px;margin-top:2px}.node-actions{display:flex;gap:5px;align-items:center}.btn.mini{font-size:9px;padding:7px 9px;border-radius:7px}.node-body{padding:0 12px 10px 28px;border-top:1px solid #f0f2f1}.node-body .budget-node{margin:9px 0}.program-node{border-color:#e8c6ca}.program-node>summary{background:#fffafa}.output-node{background:#fcfdfc}.component-list{padding-top:9px}.component-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:10px 11px;border:1px solid var(--line);border-radius:9px;margin:6px 0;background:#fff}.component-row span b,.component-row span strong,.component-row span small{display:block}.component-row span b{font-size:9px;color:var(--brand-dark)}.component-row span strong{font-size:11px;margin-top:2px}.component-row span small{font-size:9px;color:var(--muted);margin-top:3px}.component-row>strong{font-size:11px;white-space:nowrap}.node-empty{padding:10px 11px;color:var(--muted);font-size:10px;background:var(--soft);border-radius:8px;margin:8px 0}.budget-add-program{padding-top:10px}.funding-panel{margin-top:14px}.funding-chips{display:flex;flex-wrap:wrap;gap:8px}.funding-chip{display:flex;align-items:center;gap:7px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--soft)}.funding-chip b{font-size:10px;color:var(--brand-dark)}.funding-chip small{font-size:9px;color:var(--muted)}.modal-backdrop{position:fixed;z-index:100;inset:0;background:rgba(17,30,25,.38);display:flex;align-items:center;justify-content:center;padding:22px;overflow:auto}.budget-form-modal{width:min(760px,100%);max-height:calc(100vh - 44px);overflow:auto;padding:20px;box-shadow:0 20px 60px rgba(0,0,0,.18)}.budget-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 18px}.budget-form-grid label{display:block;font-size:10px;font-weight:700}.budget-form-grid .wide{grid-column:1/-1}.budget-form-grid input,.budget-form-grid select,.budget-form-grid textarea{display:block;width:100%;margin-top:6px;box-sizing:border-box}.budget-form-grid textarea{resize:vertical;min-height:78px}.budget-form-modal .actions{margin-top:16px}.budget-structure>.panel-head{align-items:flex-start}.budget-structure .panel-head>.actions{margin-top:0}.budget-selector .panel-head{margin-bottom:12px}
@media(max-width:1000px){.budget-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.budget-year-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.budget-summary{grid-template-columns:1fr 1fr}.budget-year-list{grid-template-columns:1fr}.budget-node>summary{grid-template-columns:1fr;gap:7px}.node-actions{justify-content:flex-start;flex-wrap:wrap}.node-code{padding-left:17px}.node-body{padding-left:12px}.component-row{grid-template-columns:1fr;gap:7px}.budget-form-grid{grid-template-columns:1fr}.budget-form-grid .wide{grid-column:auto}.modal-backdrop{padding:10px}.budget-form-modal{max-height:calc(100vh - 20px);padding:16px}}
/* SMART v0.6.1 — simplified budget hierarchy */
.budget-structure .panel-head{align-items:flex-start}
.budget-node>summary{grid-template-columns:150px minmax(280px,1fr) 165px 145px auto;gap:14px;padding:13px 14px;min-width:0}
.budget-node .node-money,.budget-node .node-check{display:flex;flex-direction:column;justify-content:center;min-width:0}
.budget-node .node-money small,.budget-node .node-check small{font-size:9px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.budget-node .node-money strong{font-size:11px;white-space:nowrap}
.budget-node .node-check strong{font-size:11px;white-space:nowrap}
.node-check.balanced strong{color:#27734a}
.node-check.positive strong{color:#27734a}
.node-check.negative strong{color:var(--brand-dark)}
.budget-subactivity-node{border-color:#e5c4c8}
.budget-subactivity-node>summary{background:#fffafa}
.budget-expense-node>summary{background:#fcfdfc}
.budget-output-node>summary{background:#fff}
.component-row-detailed{grid-template-columns:minmax(0,1fr) auto auto;gap:14px}
.component-row-detailed .component-actions{display:flex;gap:5px;align-items:center}
.component-row-detailed .component-actions form{margin:0}
.budget-total-preview{margin-top:6px;padding:10px 12px;border:1px dashed #cfd8d3;border-radius:8px;background:var(--soft);font-size:14px;font-weight:800;color:var(--brand-dark)}
.budget-form-modal{width:min(820px,100%)}
.budget-form-grid{gap:15px 20px}
.budget-form-grid label{font-size:10px}
.budget-form-grid input,.budget-form-grid select,.budget-form-grid textarea{min-height:40px}
.budget-form-grid textarea{min-height:88px}
@media(max-width:1100px){.budget-node>summary{grid-template-columns:120px minmax(220px,1fr) 145px 125px auto;gap:10px}.node-actions{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:820px){.budget-node>summary{grid-template-columns:1fr 1fr;min-width:0}.budget-node>summary .node-main{grid-column:1/-1}.budget-node>summary .node-actions{grid-column:1/-1;justify-content:flex-start}.component-row-detailed{grid-template-columns:1fr}.budget-form-grid{grid-template-columns:1fr}.budget-form-grid .wide{grid-column:auto}}

/* v0.7.0 Alokasi ADV */
.allocation-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 230px auto auto;gap:9px;align-items:center;margin-bottom:14px}.allocation-toolbar .search-box{display:flex;align-items:center;gap:7px;border:1px solid var(--line2);border-radius:9px;background:#fff;padding:0 10px}.allocation-toolbar .search-box span{color:var(--muted);font-size:16px}.allocation-toolbar .search-box input{border:0!important;outline:0!important;margin:0!important;padding:10px 0!important}.allocation-toolbar select{display:block;width:100%;padding:10px;border:1px solid var(--line2);border-radius:8px;background:#fff}.allocation-table td,.allocation-media-table td{vertical-align:middle}.allocation-table td b,.allocation-media-table td b{display:block;font-size:11px}.allocation-table td small,.allocation-media-table td small{display:block;color:var(--muted);font-size:9px;margin-top:3px;white-space:normal}.allocation-table .money-cell,.allocation-media-table .money-cell{font-weight:750;white-space:nowrap}.allocation-table .positive,.allocation-media-table .positive{color:#17633f}.allocation-table .negative,.allocation-media-table .negative{color:var(--danger)}.allocation-table .balanced,.allocation-media-table .balanced{color:#17633f}.allocation-table .selected-row td{background:#fff8f8}.allocation-detail{margin-top:14px}.allocation-detail-summary{display:flex;gap:16px;align-items:flex-end}.allocation-detail-summary span{display:flex;flex-direction:column;gap:3px;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.05em}.allocation-detail-summary b{font-size:15px;color:var(--text);letter-spacing:-.02em}.allocation-form{margin-top:18px;padding-top:2px}.allocation-live{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:11px 13px;border:1px solid #ecd0d3;background:var(--brand-soft);border-radius:9px}.allocation-live span{font-size:10px;color:#71323a;font-weight:700}.allocation-live strong{font-size:16px;color:var(--brand-dark)}.allocation-live small{margin-left:auto;color:#71323a;font-size:9px}.allocation-detail .info-box{margin-bottom:12px}.allocation-detail .form-section-title{margin-bottom:4px}.allocation-stats{margin-bottom:14px}.component-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.component-row-detailed{grid-template-columns:minmax(0,1fr) auto auto}.component-row-detailed .component-actions{justify-content:flex-end}.allocation-media-table td:last-child{width:1%;white-space:nowrap}
@media(max-width:900px){.allocation-toolbar{grid-template-columns:1fr 1fr}.allocation-toolbar .search-box{grid-column:1/-1}.allocation-toolbar .btn{width:100%}.allocation-live{align-items:flex-start;flex-wrap:wrap}.allocation-live small{margin-left:0;width:100%}}
@media(max-width:760px){.allocation-toolbar{grid-template-columns:1fr}.allocation-toolbar .search-box{grid-column:auto}.allocation-detail-summary{align-items:flex-start;flex-direction:column;gap:7px}.allocation-table,.allocation-media-table{min-width:760px}.allocation-stats{grid-template-columns:1fr 1fr}.component-row-detailed{grid-template-columns:1fr}.component-row-detailed .component-actions{justify-content:flex-start}.allocation-media-table td:last-child{white-space:normal}}

.allocation-inline{margin:0 0 10px 0;padding:15px 16px 16px;border:1px solid #ead0d3;border-top:0;background:#fffafa;border-radius:0 0 10px 10px}.allocation-inline-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding-bottom:10px;border-bottom:1px solid #f0dddd}.allocation-inline-head h3{margin:3px 0 2px;font-size:15px;color:var(--text)}.allocation-inline-head p{margin:0;color:var(--muted);font-size:9px}.allocation-inline-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:11px 0}.allocation-inline-summary span{padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);font-size:9px}.allocation-inline-summary b{display:block;margin-top:3px;color:var(--text);font-size:12px}.allocation-inline-info{padding:9px 11px;border-radius:8px;background:var(--brand-soft);color:#71323a;font-size:9px;margin-bottom:11px}.allocation-inline .allocation-media-table{min-width:700px}.allocation-inline-form{margin-top:13px;padding-top:13px;border-top:1px solid #eadfe0}.allocation-inline-actions{display:flex;gap:7px;margin-top:11px}.component-allocation-status{display:flex;flex-direction:column;min-width:145px;gap:2px}.component-allocation-status small{font-size:8px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.component-allocation-status b{font-size:11px}.component-allocation-status em{font-style:normal;font-size:8px}.component-allocation-status em.positive{color:#17633f}.component-allocation-status em.balanced{color:#17633f}.component-allocation-status em.negative{color:var(--danger)}
@media(max-width:900px){.allocation-inline-summary{grid-template-columns:1fr}.component-allocation-status{min-width:0}.component-row-detailed{grid-template-columns:minmax(0,1fr) auto}.component-row-detailed .component-actions{grid-column:1/-1;justify-content:flex-start}.allocation-inline-head{flex-direction:column}.allocation-inline-actions{flex-wrap:wrap}}
.field-help{display:block!important;margin-top:5px!important;font-size:9px!important;font-weight:500!important;color:var(--muted)!important}.allocation-media-table td:nth-child(1){min-width:150px}.allocation-media-table td:nth-child(2){min-width:170px}.allocation-media-table td:nth-child(6){width:1%;white-space:nowrap}.component-allocation-status em{white-space:nowrap}
/* v0.8.0 Laporan ADV */
.report-search{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;margin-bottom:14px}.report-search input{margin:0!important}.report-allocation-table td{vertical-align:middle}.report-allocation-table td b{display:block;font-size:11px}.report-allocation-table td small{display:block;margin-top:3px;color:var(--muted);font-size:9px;line-height:1.45}.report-allocation-table .selected-row td{background:#fff8f8}.report-status{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:750;white-space:nowrap}.report-status.done{background:#eaf7f0;color:#17633f}.report-status.pending{background:#fff2df;color:#8a5b14}.report-detail{margin-top:14px}.report-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:14px 0}.report-summary>div{padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:#fff}.report-summary small{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.04em}.report-summary strong{display:block;margin-top:4px;font-size:13px;color:var(--text)}.report-note{padding:10px 12px;border:1px solid #ecd0d3;border-radius:9px;background:var(--brand-soft);color:#71323a;font-size:10px;line-height:1.55;margin-bottom:16px}.report-list{margin-bottom:18px}.report-card{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px;padding:12px 0;border-top:1px solid var(--line)}.report-card-no{width:28px;height:28px;border-radius:50%;background:var(--brand-soft);color:var(--brand-dark);display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:800}.report-card-main>b{display:block;font-size:12px}.report-card-main>small{display:block;margin-top:3px;color:var(--muted);font-size:9px;line-height:1.45}.report-card-main>a{display:block;margin-top:5px;color:var(--brand-dark);font-size:9px;word-break:break-all}.report-card-main p{margin:7px 0 0;font-size:10px;line-height:1.5}.report-card-actions{display:flex;gap:5px;align-items:flex-start}.report-form{padding-top:14px;border-top:1px solid var(--line)}
.report-form-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px 16px;align-items:start}
.report-form-grid label{display:block;min-width:0;margin:0;font-size:11px;font-weight:700}
.report-form-grid label>input,.report-form-grid label>textarea,.report-form-grid label>select{display:block!important;width:100%!important;box-sizing:border-box;margin-top:6px}
.report-form-grid .field-title{grid-column:span 8}
.report-form-grid .field-date{grid-column:span 4}
.report-form-grid .field-main-url{grid-column:1/-1}
.report-form-grid .field-social{grid-column:span 8}
.report-form-grid .field-viewers{grid-column:span 4}
.report-form-grid .field-notes{grid-column:1/-1}
.report-form-grid textarea{resize:vertical;min-height:58px}
.report-form-grid .field-social textarea{height:60px;min-height:60px}
.report-form-grid .field-notes textarea{min-height:72px}.report-panel .table-wrap{overflow:auto}.report-allocation-table{min-width:820px}.report-detail .report-card-actions form{margin:0}.report-detail .actions{margin-top:12px}@media(max-width:850px){.report-summary{grid-template-columns:1fr 1fr}.report-form-grid{grid-template-columns:1fr}.report-form-grid .field-title,.report-form-grid .field-date,.report-form-grid .field-main-url,.report-form-grid .field-social,.report-form-grid .field-viewers,.report-form-grid .field-notes{grid-column:1}.report-card{grid-template-columns:30px minmax(0,1fr)}.report-card-actions{grid-column:2}.report-search{grid-template-columns:1fr 1fr}.report-search input{grid-column:1/-1}}@media(max-width:560px){.report-summary{grid-template-columns:1fr}.report-search{grid-template-columns:1fr}.report-search input{grid-column:auto}}

/* v0.8.17 Laporan yearly evaluation dashboard */
.report-year-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 16px;margin:0 0 14px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 2px 10px rgba(17,30,25,.03)}
.report-year-panel>div{min-width:0}.report-year-panel span{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.06em;font-weight:750}.report-year-panel strong{display:inline-block;margin-top:3px;font-size:20px;line-height:1.1;color:var(--text);letter-spacing:-.02em}.report-year-panel small{display:inline-block;margin-left:8px;color:var(--muted);font-size:9px}.report-year-panel form{width:min(360px,42%)}.report-year-panel select{width:100%;min-height:40px;padding:9px 11px;border:1px solid var(--line2);border-radius:8px;background:#fff;color:var(--text)}
.report-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:14px}.report-stat-card{min-width:0;padding:13px 14px;border:1px solid var(--line);border-radius:11px;background:#fff}.report-stat-card small{display:block;color:var(--muted);font-size:8px;text-transform:uppercase;letter-spacing:.06em;font-weight:750}.report-stat-card strong{display:block;margin-top:6px;color:var(--text);font-size:21px;line-height:1.1;letter-spacing:-.025em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.report-stat-card>span{display:block;margin-top:6px;color:var(--muted);font-size:8.5px;line-height:1.35}.report-stat-progress strong{margin-bottom:7px}.report-progress{height:6px;border-radius:999px;background:#edf0ef;overflow:hidden}.report-progress span{display:block;height:100%;border-radius:inherit;background:var(--brand);max-width:100%}.report-panel-meta{display:flex;align-items:baseline;gap:5px;color:var(--muted);white-space:nowrap}.report-panel-meta b{font-size:15px;color:var(--text)}.report-panel-meta span{font-size:9px}
.report-search{grid-template-columns:minmax(0,1fr) auto auto}.report-search input{min-width:0}.report-allocation-table td:nth-child(4) b{white-space:nowrap}.report-allocation-table td:nth-child(4) small{white-space:nowrap}
@media(max-width:1100px){.report-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.report-stat-card:nth-child(4),.report-stat-card:nth-child(5){min-height:0}.report-year-panel form{width:320px}}
@media(max-width:760px){.report-year-panel{align-items:flex-start;flex-direction:column}.report-year-panel form{width:100%}.report-year-panel small{display:block;margin:4px 0 0}.report-stat-grid{grid-template-columns:1fr 1fr}.report-search{grid-template-columns:minmax(0,1fr) auto}.report-search .btn.mini{grid-column:2}.report-panel-meta{display:none}}
@media(max-width:520px){.report-stat-grid{grid-template-columns:1fr}.report-search{grid-template-columns:1fr}.report-search .btn.mini{grid-column:auto}}


/* SMART v0.9.0 — Penjadwalan */
.schedule-yearbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 16px;margin:0 0 12px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow)}
.schedule-yearbar>div{display:flex;align-items:baseline;gap:8px;min-width:0}.schedule-yearbar span{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;font-weight:800}.schedule-yearbar strong{font-size:20px;letter-spacing:-.025em}.schedule-yearbar small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.schedule-yearbar form{width:min(360px,42%)}.schedule-yearbar select{width:100%;padding:9px 11px;border:1px solid var(--line2);border-radius:8px;background:#fff;color:var(--text)}
.schedule-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.schedule-kpis>div{padding:13px 15px;border:1px solid var(--line);border-radius:11px;background:#fff;min-width:0}.schedule-kpis small{display:block;font-size:8px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-weight:800}.schedule-kpis strong{display:block;margin-top:4px;font-size:23px;line-height:1.1;letter-spacing:-.035em}.schedule-kpis span{display:block;margin-top:4px;font-size:9px;color:var(--muted)}
.schedule-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.schedule-view-tabs{display:inline-flex;padding:3px;border:1px solid var(--line);border-radius:9px;background:#fff}.schedule-view-tabs a{padding:7px 11px;border-radius:7px;text-decoration:none;color:#60726a;font-size:11px;font-weight:750}.schedule-view-tabs a.active{background:var(--brand-soft);color:var(--brand-dark)}.schedule-period{display:flex;align-items:center;gap:7px}.schedule-period a{display:grid;place-items:center;width:29px;height:29px;border:1px solid var(--line);border-radius:7px;text-decoration:none;color:var(--brand);background:#fff;font-size:18px}.schedule-period b{font-size:12px;min-width:130px;text-align:center}
.schedule-main-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.45fr);gap:12px;align-items:start;margin-bottom:12px}.schedule-calendar-panel{padding:15px}.schedule-calendar-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.schedule-calendar-head b{font-size:14px}.schedule-calendar-head small{display:block;margin-top:3px;color:var(--muted);font-size:9px}.schedule-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--line);border-bottom:0;border-radius:9px 9px 0 0;overflow:hidden}.schedule-weekdays span{padding:7px 8px;background:var(--soft);border-right:1px solid var(--line);font-size:8px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-weight:800}.schedule-weekdays span:last-child{border-right:0}.schedule-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--line);border-radius:0 0 9px 9px;overflow:hidden}.schedule-day{min-height:108px;padding:7px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff;position:relative}.schedule-day:nth-child(7n){border-right:0}.schedule-day:nth-last-child(-n+7){border-bottom:0}.schedule-day.outside{background:#fafcfb;color:#a7b2ad}.schedule-day.today{background:#fffafb}.day-number{font-size:10px;font-weight:800;margin-bottom:5px}.today .day-number{color:var(--brand)}.day-events{display:grid;gap:3px}.schedule-event{font-size:8px;line-height:1.25;border-radius:5px;padding:4px 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.schedule-event span{margin-right:3px}.schedule-event.planned{background:#f7e8ea;color:#7f2028}.schedule-event.realized{background:#eaf7f0;color:#17633f}.schedule-more{font-size:8px;color:var(--muted);padding:2px 4px}.day-add{position:absolute;right:6px;bottom:5px;width:21px;height:21px;padding:0;border:1px solid var(--line2);border-radius:6px;background:#fff;color:var(--brand);font-weight:800;cursor:pointer;opacity:.8}.day-add:hover{border-color:#d9b7ba;background:var(--brand-soft)}
.schedule-side{min-width:0}.schedule-recommend-panel{padding:15px}.schedule-recommend-panel .panel-head{margin-bottom:10px}.schedule-recommend-panel h2{font-size:15px}.recommend-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0;border-top:1px solid #edf2ef}.recommend-row>div{min-width:0}.recommend-row b{display:block;color:var(--brand);font-size:9px}.recommend-row span{display:block;margin-top:2px;font-size:10px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recommend-row small{display:block;margin-top:2px;color:var(--muted);font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.btn.mini{padding:6px 8px;border-radius:7px;font-size:9px}.schedule-empty{padding:12px;border-radius:8px;background:var(--soft);color:var(--muted);font-size:10px;line-height:1.5}.schedule-list-panel{padding:15px}.schedule-source{display:inline-block;padding:4px 6px;border-radius:6px;font-size:8px;font-weight:800}.schedule-source.manual{background:#eef3f0;color:#52675e}.schedule-source.recommended{background:var(--brand-soft);color:var(--brand)}
.schedule-year-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.schedule-month-card{display:block;padding:14px;border:1px solid var(--line);border-radius:11px;background:#fff;text-decoration:none;min-width:0}.schedule-month-card:hover{border-color:#d9b7ba;background:#fffafb}.schedule-month-card>div:first-child{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.schedule-month-card b{font-size:12px}.schedule-month-card span,.schedule-month-card small{font-size:8px;color:var(--muted)}.mini-month-bars{height:56px;display:flex;align-items:end;gap:5px;margin:11px 0 8px}.mini-month-bars i{display:block;width:14px;max-height:100%;background:#b4232c;border-radius:4px 4px 0 0;opacity:.82}.mini-month-bars i+ i{background:#c9d8d1;opacity:1}
.schedule-week-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.schedule-week-day{min-width:0;min-height:260px;padding:9px;border:1px solid var(--line);border-radius:9px;background:#fff;position:relative}.schedule-week-day.today{background:#fffafb;border-color:#e6bfc3}.week-day-head{display:flex;justify-content:space-between;align-items:baseline;padding-bottom:8px;border-bottom:1px solid #edf2ef}.week-day-head b{font-size:9px;color:var(--muted);text-transform:uppercase}.week-day-head strong{font-size:15px}.week-events{display:grid;gap:5px;padding-top:8px}.week-events .schedule-event{white-space:normal;font-size:9px;padding:6px}.schedule-event div{min-width:0}.schedule-event b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.schedule-event small{display:block;margin-top:2px;font-size:7px;color:inherit;opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.week-empty{padding-top:18px;color:#9aa8a2;font-size:9px;text-align:center}.schedule-week-day>.day-add{left:9px;right:auto;bottom:9px;width:auto;padding:0 7px}
.schedule-form-modal{width:min(680px,calc(100% - 32px));padding:22px}.schedule-form-modal .panel-head{margin-bottom:10px}.schedule-modal[hidden]{display:none}.schedule-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:20px;background:rgba(22,43,35,.48)}
@media(max-width:1050px){.schedule-main-grid{grid-template-columns:1fr}.schedule-recommend-panel{max-height:360px;overflow:auto}.schedule-year-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.schedule-week-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.schedule-yearbar{align-items:flex-start;flex-direction:column}.schedule-yearbar form{width:100%}.schedule-kpis{grid-template-columns:1fr 1fr}.schedule-toolbar{align-items:flex-start;flex-direction:column}.schedule-calendar-panel{overflow:auto}.schedule-weekdays,.schedule-calendar-grid{min-width:720px}.schedule-week-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.schedule-year-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.schedule-kpis{grid-template-columns:1fr}.schedule-year-grid{grid-template-columns:1fr}.schedule-period{width:100%;justify-content:space-between}.schedule-period b{min-width:0}}


/* SMART v0.9.11 — Anggaran visual restoration for current budget.php */
.budget-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px}.budget-page-head>div:first-child{min-width:0}.budget-head-actions{display:flex;align-items:flex-end;gap:9px;flex-wrap:wrap}.budget-head-year{display:flex;flex-direction:column;gap:5px;min-width:245px}.budget-head-year>span{font-size:8px;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;font-weight:800}.budget-head-year select{width:100%;min-height:40px;padding:9px 11px;border:1px solid var(--line2);border-radius:8px;background:#fff;color:var(--text)}
.budget-overview{display:grid;grid-template-columns:minmax(240px,.72fr) minmax(0,1.28fr);gap:10px;margin-bottom:12px}.budget-summary-card,.budget-kpi,.budget-chart-card{background:#fff;border:1px solid var(--line);border-radius:11px}.budget-summary-card{padding:15px}.summary-heading{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:8px}.summary-heading span{font-size:10px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.summary-heading strong{font-size:26px;line-height:1;color:var(--text);letter-spacing:-.035em}.summary-heading small{grid-column:1/-1;color:var(--muted);font-size:9px}.budget-kpi-subcounts{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:15px;padding-top:12px;border-top:1px solid var(--line)}.budget-kpi-subcounts span{font-size:15px;font-weight:800;color:var(--text)}.budget-kpi-subcounts small{display:block;margin-top:2px;font-size:8px;color:var(--muted);font-weight:600}.budget-overview-right{display:grid;gap:10px;min-width:0}.budget-money-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.budget-kpi{padding:13px 15px;min-height:70px}.budget-kpi span{display:block;font-size:8px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.06em}.budget-kpi strong{display:block;margin-top:7px;font-size:18px;line-height:1.1;letter-spacing:-.025em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.budget-chart-card{padding:13px 15px;min-width:0}.compare-head,.chart-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.compare-head h2{margin:2px 0 0;font-size:13px}.compare-head>span{font-size:9px;color:var(--muted);white-space:nowrap}.compare-bars{display:grid;gap:9px;margin-top:12px}.compare-bars>div{display:grid;grid-template-columns:105px minmax(0,1fr) 45px;gap:8px;align-items:center}.compare-bars span{font-size:8px;color:var(--muted);font-weight:700}.compare-bars em{font-style:normal;font-size:8px;color:var(--text);font-weight:800;text-align:right}.bar-track{height:7px;border-radius:99px;background:#edf1ef;overflow:hidden}.bar-track i{display:block;height:100%;border-radius:inherit;background:var(--brand);max-width:100%}
.budget-analytics{margin-bottom:12px}.budget-analytics-secondary{padding:12px}.budget-chart-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr);gap:10px}.budget-chart-full{grid-column:1/-1}.chart-title{align-items:center;margin-bottom:10px}.chart-title b{font-size:11px}.chart-title small,.chart-title>span{font-size:8px;color:var(--muted)}.component-chart-scroll{overflow-x:auto;padding-bottom:3px}.component-bars{display:flex;align-items:stretch;gap:9px;min-width:max-content;height:190px;padding:10px 4px 0}.component-bar{width:74px;height:100%;display:grid;grid-template-rows:18px minmax(0,1fr) 32px;align-items:end;text-align:center}.component-bar em{font-style:normal;font-size:7px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.component-bar .bar-track{height:100%;width:30px;justify-self:center;display:flex;align-items:flex-end;background:#f0f3f1;border-radius:5px 5px 2px 2px}.component-bar .bar-track i{width:100%;height:100%;background:var(--brand);border-radius:5px 5px 2px 2px}.component-bar>span{font-size:7px;line-height:1.25;color:var(--muted);overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.share-list{display:grid;gap:8px}.share-list>div{display:grid;grid-template-columns:105px minmax(0,1fr) 34px;gap:7px;align-items:center}.share-list span{font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.share-list em{font-style:normal;font-size:8px;font-weight:800;text-align:right}.share-list .bar-track{height:6px}
.budget-structure{overflow:hidden}.budget-structure-body{padding-top:1px}.budget-structure>.panel-head{align-items:flex-start}.budget-structure .panel-head>.actions{margin-top:0}.budget-node{position:relative}.budget-node>summary{position:relative}.budget-node>summary .node-actions form{margin:0}.budget-node>summary .node-actions .btn{white-space:nowrap}.component-row-detailed{grid-template-columns:minmax(0,1fr) auto auto}.component-allocation-status{justify-self:end}.funding-panel{margin-top:12px}.funding-panel .panel-head{align-items:center}.funding-chips{max-height:120px;overflow:auto}
.budget-client-modal[hidden],.modal-backdrop[hidden]{display:none!important}.budget-client-modal{z-index:110}.budget-client-modal .budget-form-modal{width:min(760px,100%)}.budget-client-modal .actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.budget-client-modal .panel-head{align-items:flex-start}.budget-client-modal .panel-head p{max-width:560px}
@media(max-width:1050px){.budget-overview{grid-template-columns:1fr}.budget-chart-grid{grid-template-columns:1fr 1fr}.budget-chart-full{grid-column:1/-1}.budget-page-head{align-items:flex-start;flex-direction:column}.budget-head-actions{width:100%}.budget-head-year{min-width:0;flex:1}}
@media(max-width:820px){.budget-node>summary{grid-template-columns:1fr 1fr;min-width:0}.budget-node>summary .node-main{grid-column:1/-1}.budget-node>summary .node-actions{grid-column:1/-1;justify-content:flex-start}.budget-chart-grid{grid-template-columns:1fr}.budget-chart-full{grid-column:auto}.component-row-detailed{grid-template-columns:minmax(0,1fr) auto}.component-row-detailed .component-actions{grid-column:1/-1;justify-content:flex-start}.component-allocation-status{justify-self:start}.budget-head-actions{align-items:stretch;flex-direction:column}.budget-head-year{width:100%}}
@media(max-width:600px){.budget-money-row{grid-template-columns:1fr}.budget-kpi-subcounts{grid-template-columns:repeat(3,minmax(0,1fr))}.compare-bars>div{grid-template-columns:88px minmax(0,1fr) 40px}.budget-summary-card,.budget-chart-card{padding:12px}.component-bars{height:170px}.budget-client-modal{padding:10px}.budget-client-modal .budget-form-modal{padding:16px}.funding-chips{max-height:none}}


/* SMART v0.9.13 — Anggaran analytics compact layout; scoped to Anggaran classes */
/* 1) Statistik Tahun Terpilih + Sumber Anggaran berada satu baris. */
.budget-overview .budget-overview-right{min-width:0}
.budget-overview .budget-overview-analytics-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.budget-overview .budget-overview-analytics-row>.budget-chart-card{min-width:0;height:100%}
.budget-overview .budget-compare-card,.budget-overview .budget-funding-card{min-width:0}
.budget-overview .budget-funding-list{display:grid;gap:7px}
.budget-overview .budget-funding-list .share-list{display:grid}
/* Keep the two overview columns visually balanced at desktop sizes. */
@media(min-width:1051px){
  .budget-overview{align-items:stretch}
  .budget-overview .budget-summary-card{min-height:100%}
  .budget-overview-right{grid-template-rows:auto 1fr}
}

/* 2) Distribusi komponen: typography lebih terbaca + horizontal scroll for many components. */
.budget-analytics-secondary .budget-chart-full{min-width:0;overflow:hidden}
.budget-analytics-secondary .component-chart-scroll{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:8px 2px 8px;scrollbar-width:auto}
.budget-analytics-secondary .component-bars{width:max-content;min-width:100%;height:220px;gap:16px;padding:14px 8px 4px;align-items:stretch}
.budget-analytics-secondary .component-bar{width:96px;min-width:96px;grid-template-rows:22px minmax(0,1fr) 42px}
.budget-analytics-secondary .component-bar em{font-size:9px;font-weight:650}
.budget-analytics-secondary .component-bar>span{font-size:10px;line-height:1.3;font-weight:600;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.budget-analytics-secondary .component-bar .bar-track{width:38px;border-radius:6px 6px 2px 2px}

/* 3) Persentase Agensi + Media memiliki lebar sama. */
.budget-analytics-secondary .budget-chart-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.budget-analytics-secondary .budget-chart-grid>.budget-share-card{width:100%;min-width:0}
.budget-analytics-secondary .budget-share-card .share-list{width:100%}
.budget-analytics-secondary .budget-share-card .share-list>div{grid-template-columns:minmax(95px,1fr) minmax(0,2fr) 40px}
.budget-analytics-secondary .budget-share-card .share-list span{font-size:9px}
.budget-analytics-secondary .budget-share-card .share-list em{font-size:9px}

@media(max-width:820px){
  .budget-overview .budget-overview-analytics-row{grid-template-columns:1fr}
  .budget-analytics-secondary .budget-chart-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .budget-analytics-secondary .component-bars{height:200px;gap:12px;padding-left:5px;padding-right:5px}
  .budget-analytics-secondary .component-bar{width:88px;min-width:88px}
  .budget-analytics-secondary .component-bar em{font-size:8px}
  .budget-analytics-secondary .component-bar>span{font-size:9px}
}

/* SMART v0.9.14 — allocation format/rate UI; retained on top of v0.9.13 stable CSS */
.budget-structure .allocation-inline .allocation-media-table{min-width:1080px}
.budget-structure .allocation-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
.budget-structure .allocation-entry-grid .wide{grid-column:1/-1}
.budget-structure .allocation-entry-grid .allocation-live{grid-column:1/-1}
.budget-structure .allocation-inline .field-help{display:block;margin-top:5px;color:var(--muted);font-size:9px;line-height:1.4;font-weight:500}
.allocation-adv-entry{grid-template-columns:repeat(2,minmax(0,1fr))}
.allocation-adv-entry .span-2{grid-column:1/-1}
.allocation-adv-entry .allocation-live{grid-column:1/-1}
.allocation-adv-entry label{min-width:0}
@media(max-width:760px){
  .budget-structure .allocation-entry-grid,.allocation-adv-entry{grid-template-columns:1fr}
  .budget-structure .allocation-entry-grid .wide,.allocation-adv-entry .span-2,.allocation-adv-entry .allocation-live{grid-column:auto}
}

/* SMART v0.9.40 — sidebar navigation and public dashboard */
.top{position:fixed;left:0;top:0;bottom:0;width:232px;height:auto;z-index:50;border-right:1px solid var(--line);border-bottom:0;overflow-y:auto;background:#fff}
.top-inner{width:100%;height:100%;margin:0;display:flex;align-items:stretch;justify-content:flex-start;flex-direction:column;gap:0;padding:22px 14px;box-sizing:border-box}
.brand{padding:0 7px 22px;border-bottom:1px solid var(--line);margin-bottom:16px}
.brand-copy b{font-size:15px}.brand-copy small{font-size:9px;white-space:normal;line-height:1.35}
.nav{display:flex;flex-direction:column;align-items:stretch;gap:2px;flex:1}
.sidebar-group{margin-bottom:15px}.sidebar-group-label{padding:0 10px 6px;text-transform:uppercase;letter-spacing:.09em;font-size:8px;font-weight:800;color:#9aa8a2}
.nav-link{width:100%;box-sizing:border-box;padding:10px 10px;border-radius:9px;font-size:12px;gap:9px}.nav-link svg{width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important}
.nav-link.logout{margin:0;margin-top:auto;border-top:1px solid var(--line);border-radius:0;padding:15px 10px 7px;color:#80534e}
.sidebar-toggle,.sidebar-backdrop{display:none}
.dashboard{width:min(1180px,calc(100% - 278px));margin-left:254px;margin-right:24px;padding:36px 0 64px}
.dashboard-overview-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:14px}
.dashboard-overview-cards .stat{min-height:142px}
.dashboard-stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}
.dashboard-chart-panel{min-width:0}.dashboard-year-list{display:flex;flex-direction:column;gap:11px;margin-top:8px}.dashboard-year-row{display:grid;grid-template-columns:44px minmax(0,1fr) 72px;align-items:center;gap:10px;font-size:11px}.dashboard-year-row>span{font-weight:700;color:#5f7169}.dashboard-year-row>b{text-align:right;font-size:11px}.dashboard-bar{height:9px;border-radius:99px;background:#edf2ef;overflow:hidden}.dashboard-bar i{display:block;height:100%;border-radius:99px;background:var(--brand)}.dashboard-definition{margin-bottom:0}.dashboard-definition-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.dashboard-definition-grid span{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}.dashboard-definition-grid b{display:block;font-size:11px}.dashboard-definition-grid small{display:block;margin-top:4px;color:var(--muted);font-size:9px;line-height:1.45}
@media(max-width:1100px){.top{width:218px}.dashboard{width:calc(100% - 254px);margin-left:236px;margin-right:18px}.dashboard-overview-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-stats-grid{grid-template-columns:1fr}}
@media(max-width:900px){.top{position:fixed;left:-252px;width:252px;transition:left .18s ease;box-shadow:0 18px 50px rgba(0,0,0,.12)}.top-inner{padding:18px 14px}.sidebar-toggle{display:flex;position:fixed;left:12px;top:12px;width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;z-index:70;align-items:center;justify-content:center;flex-direction:column;gap:4px;box-shadow:var(--shadow);cursor:pointer}.sidebar-toggle span{display:block;width:15px;height:1.5px;background:var(--text);border-radius:2px}.sidebar-backdrop{display:block;position:fixed;inset:0;background:rgba(17,30,25,.28);opacity:0;pointer-events:none;transition:opacity .18s ease;z-index:1}.sidebar-group,.nav-link{position:relative;z-index:2}.dashboard{width:calc(100% - 36px);margin-left:18px;margin-right:18px;padding-top:68px}.sidebar-open .top{left:0}.sidebar-open .sidebar-backdrop{opacity:1;pointer-events:auto}.dashboard-overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.dashboard{width:calc(100% - 24px);margin-left:12px;margin-right:12px}.dashboard-overview-cards{grid-template-columns:1fr 1fr;gap:9px}.dashboard-overview-cards .stat{min-height:118px;padding:13px}.dashboard-overview-cards .stat-value{font-size:24px;margin-top:15px}.dashboard-overview-cards .stat-note{font-size:9px}.dashboard-definition-grid{grid-template-columns:1fr}.welcome{align-items:flex-start;flex-direction:column}.user-chip{width:100%;box-sizing:border-box}}

/* v0.9.42 dashboard drill-down */
.dashboard-overview-cards .stat-link{cursor:pointer}
.dashboard-detail{scroll-margin-top:24px}
.dashboard-detail .panel-head{align-items:flex-start}
.dashboard-detail .table-wrap{margin-top:4px}
.profile-panel .profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:8px}
.profile-panel .profile-grid>div{border:1px solid var(--line);border-radius:10px;background:var(--soft);padding:12px 14px;min-width:0}
.profile-panel .profile-grid .wide{grid-column:1/-1}
.profile-panel .profile-grid small{display:block;color:var(--muted);font-size:10px;margin-bottom:5px}
.profile-panel .profile-grid b{font-size:12px;line-height:1.5;word-break:break-word}
.profile-panel .profile-grid a{color:var(--brand);text-decoration:none}
.profile-panel .profile-note{border:1px solid var(--line);border-radius:10px;background:var(--soft);padding:12px 14px;font-size:12px;line-height:1.6}
@media(max-width:680px){.profile-panel .profile-grid{grid-template-columns:1fr}.profile-panel .profile-grid .wide{grid-column:auto}.dashboard-detail .panel-head{gap:10px}.dashboard-detail .actions.compact .btn{white-space:nowrap}}

/* SMART v0.9.43 — configurable scoring settings */
.settings-tabs{display:flex;gap:6px;margin:0 0 16px;border-bottom:1px solid var(--line);overflow-x:auto}
.settings-tabs a{display:block;padding:10px 13px;color:var(--muted);text-decoration:none;font-size:11px;font-weight:750;white-space:nowrap;border-bottom:2px solid transparent}
.settings-tabs a.active{color:var(--brand);border-bottom-color:var(--brand)}
.settings-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.settings-panel{min-width:0}
.settings-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.settings-form label{display:flex;flex-direction:column;gap:5px;font-size:10px;font-weight:700;color:var(--muted)}
.settings-form label:first-child{grid-column:1/-1}
.settings-form input,.settings-form select,.settings-form textarea{width:100%;box-sizing:border-box;border:1px solid var(--line2);border-radius:8px;padding:9px 10px;background:#fff;color:var(--text);font:inherit;font-size:11px}
.settings-form textarea{resize:vertical}
.settings-form .check{flex-direction:row;align-items:center;align-self:end;gap:7px}
.settings-form .check input{width:auto}
.settings-options{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.settings-options span{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:7px;background:var(--soft);padding:4px 7px;font-size:9px;color:var(--muted)}
.settings-option-delete{border:0;background:transparent;color:var(--danger);cursor:pointer;font-weight:800;padding:0 2px}
.settings-version{margin-top:6px}.settings-version summary{cursor:pointer;color:var(--brand);font-size:9px;font-weight:750}
.settings-version .settings-form{grid-template-columns:1fr 1fr;margin-top:7px;padding-top:8px;gap:6px}
.settings-version .settings-form input,.settings-version .settings-form select{padding:6px 7px;font-size:9px}
.settings-version .settings-form label:first-child{grid-column:auto}
.option-inline{display:grid;grid-template-columns:minmax(80px,1fr) 70px 45px auto;gap:5px;margin-top:7px}
.option-inline input{min-width:0;border:1px solid var(--line2);border-radius:7px;padding:6px 7px;font:inherit;font-size:9px}
.option-inline .btn{padding:6px 8px;font-size:9px}
@media(max-width:820px){.settings-grid{grid-template-columns:1fr}}
@media(max-width:600px){.settings-summary{grid-template-columns:1fr}.settings-form{grid-template-columns:1fr}.settings-form label:first-child{grid-column:auto}.settings-version .settings-form{grid-template-columns:1fr}.option-inline{grid-template-columns:1fr 70px 45px auto}.settings-panel .table-wrap{overflow-x:auto}}


/* SMART v0.9.44 — Pengaturan Penilaian: user-facing ordering and active/inactive grouping */
.settings-section-label{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:2px 0 9px;padding:0 2px;color:var(--text)}
.settings-section-label b{font-size:11px;letter-spacing:-.01em}
.settings-section-label span{font-size:9px;color:var(--muted)}
.settings-section-label-muted{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.settings-inactive-table{background:#fafcfb}
.settings-inactive-table td{color:#718079}
.settings-panel .status-pill{white-space:nowrap}
.settings-panel .field-help{margin-top:0!important}
@media(max-width:760px){.settings-section-label{align-items:flex-start;flex-direction:column;gap:3px}.settings-inactive-table{min-width:620px}}
