/* TNSuite Mara Build19 — Reference UI Build04 production integration
   Light-mode geometry is sourced from the three approved Build04 HTML references.
   Production views use real backend state; reference business values are test-fixture only. */
:root{
 --color-page-bg:#f5f5f2;--color-surface:#fff;--color-surface-secondary:#faf9f6;
 --color-text-primary:#25231f;--color-text-secondary:#77736c;--color-border:#e7e4dc;
 --color-border-strong:#d7d3c9;--color-brand:#f5a000;--color-brand-soft:#fff4dc;
 --color-success:#218768;--color-success-soft:#eaf7f1;--color-warning:#9d6400;
 --color-warning-soft:#fff4dc;--color-danger:#c94b4b;--color-danger-soft:#fff0f0;
 --color-info:#3267d6;--color-info-soft:#eef4ff;--radius-sm:10px;--radius-md:15px;
 --radius-lg:18px;--shadow-panel:0 1px 0 rgba(0,0,0,.02);
 --shadow-drawer:-20px 0 55px rgba(0,0,0,.16);--shadow-modal:0 18px 50px rgba(37,35,31,.14);
 --sidebar-width:286px;--topbar-height:68px;color-scheme:light;
}
html[data-theme="dark"]{
 --color-page-bg:#161713;--color-surface:#20211d;--color-surface-secondary:#272823;
 --color-text-primary:#f2f1eb;--color-text-secondary:#aaa89f;--color-border:#393a34;
 --color-border-strong:#4b4c45;--color-brand:#f5a000;--color-brand-soft:#3b3019;
 --color-success:#73c6a7;--color-success-soft:#17372d;--color-warning:#e7bd69;
 --color-warning-soft:#3a2f18;--color-danger:#f08a8a;--color-danger-soft:#402526;
 --color-info:#8eb0f2;--color-info-soft:#202e49;color-scheme:dark;
}
html{background:var(--color-page-bg)}
body.mara-user-shell,body.mara-admin-shell,body.mara-report-shell{background:var(--color-page-bg);color:var(--color-text-primary)}
body.mara-user-shell,body.mara-admin-shell{--bg:var(--color-page-bg);--surface:var(--color-surface);--surface2:var(--color-surface-secondary);--line:var(--color-border);--line2:var(--color-border-strong);--text:var(--color-text-primary);--muted:var(--color-text-secondary);--accent:var(--color-brand);--accentSoft:var(--color-brand-soft);--green:var(--color-success);--greenSoft:var(--color-success-soft);--red:var(--color-danger);--redSoft:var(--color-danger-soft);--blue:var(--color-info);--blueSoft:var(--color-info-soft)}
body.mara-report-shell{--bg:var(--color-page-bg);--surface:var(--color-surface);--surface2:var(--color-surface-secondary);--text:var(--color-text-primary);--muted:var(--color-text-secondary);--line:var(--color-border);--line2:var(--color-border-strong)}
html[data-theme="dark"] body.mara-user-shell .sidebar,html[data-theme="dark"] body.mara-admin-shell .sidebar{background:#1d1e1a}
html[data-theme="dark"] body.mara-user-shell .topbar,html[data-theme="dark"] body.mara-admin-shell .topbar{background:rgba(32,33,29,.94)}
html[data-theme="dark"] body.mara-user-shell .panel,html[data-theme="dark"] body.mara-admin-shell .panel,
html[data-theme="dark"] body.mara-user-shell .kpi,html[data-theme="dark"] body.mara-admin-shell .kpi,
html[data-theme="dark"] body.mara-user-shell .mini,html[data-theme="dark"] body.mara-admin-shell .mini,
html[data-theme="dark"] body.mara-user-shell table,html[data-theme="dark"] body.mara-admin-shell table,
html[data-theme="dark"] body.mara-user-shell .input,html[data-theme="dark"] body.mara-admin-shell .input,
html[data-theme="dark"] body.mara-user-shell .select,html[data-theme="dark"] body.mara-admin-shell .select,
html[data-theme="dark"] body.mara-user-shell .textarea,html[data-theme="dark"] body.mara-admin-shell .textarea,
html[data-theme="dark"] body.mara-user-shell .btn,html[data-theme="dark"] body.mara-admin-shell .btn,
html[data-theme="dark"] body.mara-user-shell .iconbtn,html[data-theme="dark"] body.mara-admin-shell .iconbtn,
html[data-theme="dark"] body.mara-user-shell .pill,html[data-theme="dark"] body.mara-admin-shell .pill{background:var(--color-surface);color:var(--color-text-primary);border-color:var(--color-border)}
html[data-theme="dark"] body.mara-user-shell th,html[data-theme="dark"] body.mara-admin-shell th{background:var(--color-surface-secondary);color:var(--color-text-secondary)}
html[data-theme="dark"] body.mara-user-shell tbody tr:hover,html[data-theme="dark"] body.mara-admin-shell tbody tr:hover{background:#2b2c27}
html[data-theme="dark"] body.mara-user-shell .drawer-panel,html[data-theme="dark"] body.mara-admin-shell .drawer-panel,
html[data-theme="dark"] body.mara-user-shell .modal-card,html[data-theme="dark"] body.mara-admin-shell .modal-card{background:var(--color-surface);color:var(--color-text-primary)}
.mara-skip{position:fixed;left:12px;top:-60px;z-index:500;background:var(--color-text-primary);color:var(--color-surface);padding:10px 14px;border-radius:10px;font-weight:800}.mara-skip:focus{top:12px}
.mara-theme{position:relative}.mara-theme-menu{position:absolute;right:0;top:calc(100% + 8px);width:170px;padding:6px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;box-shadow:var(--shadow-modal);display:none;z-index:90}.mara-theme.open .mara-theme-menu{display:grid}.mara-theme-menu button{border:0;background:transparent;border-radius:8px;padding:9px 10px;text-align:left;display:flex;gap:9px;align-items:center}.mara-theme-menu button:hover,.mara-theme-menu button[aria-checked="true"]{background:var(--color-surface-secondary)}
.mara-state{padding:30px;text-align:center;color:var(--color-text-secondary)}.mara-state .state-icon{width:42px;height:42px;border-radius:12px;background:var(--color-surface-secondary);display:grid;place-items:center;margin:0 auto 12px}.mara-state h3{color:var(--color-text-primary);margin:0 0 5px}.mara-state p{margin:0 auto;max-width:560px}.mara-unavailable{border:1px dashed var(--color-border-strong);background:var(--color-surface-secondary);border-radius:12px;padding:14px;color:var(--color-text-secondary)}
.mara-kpi-unknown{font-size:20px!important;color:var(--color-text-secondary)}
.mara-flashes{display:grid;gap:8px;margin-bottom:14px}.mara-flash{padding:11px 13px;border:1px solid var(--color-border);border-radius:11px;background:var(--color-surface);display:flex;gap:9px}.mara-flash.error{background:var(--color-danger-soft);color:var(--color-danger)}.mara-flash.success{background:var(--color-success-soft);color:var(--color-success)}
.mara-source-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px}.mara-source-form .input{min-width:0}.mara-source-form .btn{white-space:nowrap}
.mara-report-shell-link{font-weight:800;text-decoration:underline;text-underline-offset:3px}.mara-nowrap{white-space:nowrap}.mara-table-actions{display:flex;gap:6px;justify-content:flex-end}
.mara-user-shell .sidebar .nav a span,.mara-admin-shell .sidebar .nav a span{min-width:0}.mara-user-shell .sidebar .nav a b,.mara-admin-shell .sidebar .nav a b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mara-user-shell .side-foot form,.mara-admin-shell .side-foot form{margin-left:auto}.mara-user-shell .side-foot button,.mara-admin-shell .side-foot button{border:0;background:transparent}
body.is-scroll-locked{overflow:hidden}
@media(max-width:620px){.mara-source-form{grid-template-columns:1fr}.mara-source-form .btn{width:100%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* USER REFERENCE */
body.mara-user-shell{--bg:#f5f5f2;--surface:#fff;--surface2:#faf9f6;--line:#e7e4dc;--line2:#d7d3c9;--text:#25231f;--muted:#77736c;--accent:#f5a000;--accentSoft:#fff4dc;--green:#218768;--greenSoft:#eaf7f1;--red:#c94b4b;--redSoft:#fff0f0;--blue:#3267d6;--blueSoft:#eef4ff;--shadow:0 18px 50px rgba(37,35,31,.14);--side:286px;--top:68px;--r:15px}
body.mara-user-shell *{box-sizing:border-box}
html{scroll-behavior:smooth}
body.mara-user-shell{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5}
body.mara-user-shell button,body.mara-user-shell input,body.mara-user-shell select,body.mara-user-shell textarea{font:inherit;color:inherit}
body.mara-user-shell button{cursor:pointer}
body.mara-user-shell a{color:inherit;text-decoration:none}
body.mara-user-shell .ico{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block;flex:0 0 auto}
body.mara-user-shell .app{min-height:100vh;display:grid;grid-template-columns:var(--side) minmax(0,1fr)}
body.mara-user-shell .sidebar{position:fixed;inset:0 auto 0 0;width:var(--side);background:#fbfbf9;border-right:1px solid var(--line);z-index:50;display:flex;flex-direction:column}
body.mara-user-shell .side-head{height:var(--top);display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--line)}
body.mara-user-shell .brand{display:flex;align-items:center;gap:9px;font-weight:850;letter-spacing:-.02em}
body.mara-user-shell .brandmark{width:30px;height:30px;border-radius:9px;background:var(--accent);display:grid;place-items:center;font-weight:900}
body.mara-user-shell .side-body{padding:14px;overflow:auto;flex:1}
body.mara-user-shell .side-foot{border-top:1px solid var(--line);padding:12px 14px;display:flex;gap:10px;align-items:center}
body.mara-user-shell .avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#282722;color:#fff;font-weight:800}
body.mara-user-shell .usercopy b{display:block}
body.mara-user-shell .usercopy span{display:block;color:var(--muted);font-size:12px}
body.mara-user-shell .section-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:850;color:#8c887f;margin:20px 7px 9px}
body.mara-user-shell .nav{display:grid;gap:6px}
body.mara-user-shell .nav a{display:flex;gap:10px;align-items:center;padding:10px 11px;border:1px solid transparent;border-radius:11px;color:#5f5c56}
body.mara-user-shell .nav a:hover{background:#f3f1ec}
body.mara-user-shell .nav a.active{background:#fff;border-color:var(--line);color:var(--text);box-shadow:0 5px 15px rgba(30,27,22,.04)}
body.mara-user-shell .nav b{display:block}
body.mara-user-shell .nav small{display:block;color:var(--muted);font-size:11px}
body.mara-user-shell .primary{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;background:var(--accent);padding:12px 14px;font-weight:850;box-shadow:0 4px 0 rgba(177,108,0,.18)}
body.mara-user-shell .shell{grid-column:2;min-width:0}
body.mara-user-shell .topbar{height:var(--top);position:sticky;top:0;z-index:40;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 22px}
body.mara-user-shell .top-left,body.mara-user-shell .top-right,body.mara-user-shell .row{display:flex;align-items:center;gap:9px}
body.mara-user-shell .searchbox{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 10px;min-width:290px}
body.mara-user-shell .searchbox input{border:0;outline:0;width:100%;min-width:0}
body.mara-user-shell .main{max-width:1320px;margin:auto;padding:20px}
body.mara-user-shell .panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 1px 0 rgba(0,0,0,.02)}
body.mara-user-shell .pad{padding:20px}
body.mara-user-shell .title{font-size:28px;line-height:1.15;letter-spacing:-.035em;margin:0}
body.mara-user-shell .subtitle{color:var(--muted);margin:6px 0 0}
body.mara-user-shell .muted{color:var(--muted)}
body.mara-user-shell .btn{border:1px solid var(--line2);background:#fff;border-radius:10px;padding:9px 12px;font-weight:750;display:inline-flex;gap:7px;align-items:center;justify-content:center}
body.mara-user-shell .btn:hover{background:#f7f6f2}
body.mara-user-shell .btn-accent{background:var(--accent);border-color:var(--accent)}
body.mara-user-shell .btn-dark{background:#2a2924;color:#fff;border-color:#2a2924}
body.mara-user-shell .btn-danger{background:var(--redSoft);border-color:#efc8c8;color:#a23737}
body.mara-user-shell .btn-sm{padding:7px 9px;font-size:12px}
body.mara-user-shell .iconbtn{width:36px;height:36px;border:1px solid var(--line);background:#fff;border-radius:10px;display:grid;place-items:center}
body.mara-user-shell .pill,body.mara-user-shell .tag,body.mara-user-shell .status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;font-weight:800;white-space:nowrap}
body.mara-user-shell .pill{padding:7px 10px;border:1px solid var(--line);background:#fff}
body.mara-user-shell .tag{font-size:10px;padding:2px 7px;border:1px solid #edca91;color:#9c5e03;background:#fff9ef}
body.mara-user-shell .status{font-size:11px;padding:4px 8px}
body.mara-user-shell .status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
body.mara-user-shell .success{background:var(--greenSoft);color:var(--green)}
body.mara-user-shell .running{background:var(--accentSoft);color:#9d6400}
body.mara-user-shell .failed{background:var(--redSoft);color:var(--red)}
body.mara-user-shell .info{background:var(--blueSoft);color:var(--blue)}
body.mara-user-shell .neutral{background:#f0efeb;color:#66625b}
body.mara-user-shell .page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:17px}
body.mara-user-shell .filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body.mara-user-shell .kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
body.mara-user-shell .kpi{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}
body.mara-user-shell .kpi .cap{display:flex;justify-content:space-between;color:#69665f}
body.mara-user-shell .kpi strong{display:block;font-size:25px;letter-spacing:-.03em;margin:7px 0 2px}
body.mara-user-shell .delta{font-size:12px;font-weight:750;color:var(--green)}
body.mara-user-shell .delta.bad{color:var(--red)}
body.mara-user-shell .grid2{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr);gap:15px}
body.mara-user-shell .grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.mara-user-shell .stack{display:grid;gap:14px}
body.mara-user-shell .filterbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
body.mara-user-shell .tablewrap{overflow:auto;border:1px solid var(--line);border-radius:12px}
body.mara-user-shell table{border-collapse:collapse;width:100%;min-width:760px;background:#fff}
body.mara-user-shell th,body.mara-user-shell td{padding:11px 13px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}
body.mara-user-shell th{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#77736b;background:#faf9f6}
body.mara-user-shell tr:last-child td{border-bottom:0}
body.mara-user-shell tbody tr:hover{background:#fffdf8}
body.mara-user-shell .progress{height:7px;border-radius:999px;background:#ebe9e3;overflow:hidden}
body.mara-user-shell .progress i{display:block;height:100%;background:var(--accent)}
body.mara-user-shell .notice{border:1px solid #ecd8a9;background:#fffdf4;border-radius:11px;padding:12px}
body.mara-user-shell .callout{border-left:4px solid var(--accent);background:#f6f2ed;border-radius:10px;padding:14px 15px}
body.mara-user-shell .mini{border:1px solid var(--line);border-radius:12px;padding:13px;background:#fff}
body.mara-user-shell .mini h3,body.mara-user-shell .mini h4{margin:0 0 5px}
body.mara-user-shell .metric-row{display:flex;justify-content:space-between;gap:10px;align-items:center}
body.mara-user-shell .metric-row+.metric-row{border-top:1px solid var(--line);padding-top:10px;margin-top:10px}
body.mara-user-shell .scorebar{height:7px;background:#ebe9e3;border-radius:999px;overflow:hidden;margin-top:7px}
body.mara-user-shell .scorebar i{height:100%;display:block;background:var(--accent)}
body.mara-user-shell .drawer{position:fixed;inset:0;z-index:120;pointer-events:none}
body.mara-user-shell .drawer.open{pointer-events:auto}
body.mara-user-shell .backdrop{position:absolute;inset:0;background:rgba(25,24,20,.3);opacity:0;transition:.2s}
body.mara-user-shell .drawer.open .backdrop{opacity:1}
body.mara-user-shell .drawer-panel{position:absolute;top:0;right:0;width:min(560px,100%);height:100%;background:#fff;transform:translateX(100%);transition:.22s;box-shadow:-20px 0 55px rgba(0,0,0,.16);display:flex;flex-direction:column}
body.mara-user-shell .drawer.open .drawer-panel{transform:none}
body.mara-user-shell .drawer-head{height:68px;padding:0 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}
body.mara-user-shell .drawer-body{padding:19px;overflow:auto;flex:1}
body.mara-user-shell .modal{position:fixed;inset:0;z-index:140;display:none;place-items:center;padding:20px;background:rgba(25,24,20,.34);backdrop-filter:blur(3px)}
body.mara-user-shell .modal.open{display:grid}
body.mara-user-shell .modal-card{width:min(760px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
body.mara-user-shell .modal-head,body.mara-user-shell .modal-foot{padding:16px 19px;display:flex;align-items:center;justify-content:space-between;gap:10px}
body.mara-user-shell .modal-head{border-bottom:1px solid var(--line)}
body.mara-user-shell .modal-body{padding:19px}
body.mara-user-shell .modal-foot{border-top:1px solid var(--line);justify-content:flex-end}
body.mara-user-shell .field label{display:block;font-weight:800;margin-bottom:6px}
body.mara-user-shell .input,body.mara-user-shell .select,body.mara-user-shell .textarea{width:100%;border:1px solid var(--line2);background:#fff;border-radius:10px;padding:10px 11px;outline:0}
body.mara-user-shell .input:focus,body.mara-user-shell .select:focus,body.mara-user-shell .textarea:focus{border-color:#b87100;box-shadow:0 0 0 3px rgba(245,160,0,.14)}
body.mara-user-shell .toast{position:fixed;right:18px;bottom:18px;background:#292823;color:#fff;border-radius:11px;padding:11px 14px;z-index:180;opacity:0;transform:translateY(10px);transition:.2s;pointer-events:none}
body.mara-user-shell .toast.show{opacity:1;transform:none}
body.mara-user-shell .mobile-menu{display:none}
body.mara-user-shell .mobile-overlay{display:none}
@media (max-width:1050px){body.mara-user-shell .kpis{grid-template-columns:repeat(2,1fr)}
body.mara-user-shell .grid2,body.mara-user-shell .grid3{grid-template-columns:1fr}}
@media (max-width:820px){body.mara-user-shell .app{display:block}
body.mara-user-shell .sidebar{transform:translateX(-100%);transition:.22s}
body.mara-user-shell .sidebar.open{transform:none}
body.mara-user-shell .shell{grid-column:auto}
body.mara-user-shell .mobile-menu{display:grid}
body.mara-user-shell .mobile-overlay.open{display:block;position:fixed;inset:0;background:rgba(0,0,0,.28);z-index:45}
body.mara-user-shell .main{padding:14px}
body.mara-user-shell .topbar{padding:0 14px}
body.mara-user-shell .searchbox{min-width:0;width:min(55vw,360px)}
body.mara-user-shell .hide-mobile{display:none!important}}
@media (max-width:620px){body.mara-user-shell .kpis{grid-template-columns:1fr}
body.mara-user-shell .page-head{flex-direction:column}
body.mara-user-shell .page-head .filters,body.mara-user-shell .page-head .btn{width:100%}
body.mara-user-shell .searchbox{display:none}
body.mara-user-shell .title{font-size:24px}
body.mara-user-shell .pad{padding:15px}}
body.mara-user-shell .context-strip{display:grid;grid-template-columns:minmax(230px,1fr) auto auto;gap:16px;align-items:center;padding:13px 16px;margin-bottom:15px}
body.mara-user-shell .context-main{display:grid;gap:6px}
body.mara-user-shell .context-metrics{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
body.mara-user-shell .context-metrics span{display:grid;gap:1px}
body.mara-user-shell .context-metrics small{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
body.mara-user-shell .context-metrics b{font-size:12px}
body.mara-user-shell .evidence-box{border:1px solid #d7e3f7;background:#f7faff;border-radius:12px;padding:13px;margin:14px 0}
body.mara-user-shell .evidence-box p{margin:7px 0}
@media (max-width:1050px){body.mara-user-shell .context-strip{grid-template-columns:1fr}
body.mara-user-shell .context-metrics{justify-content:flex-start}}
@media (max-width:620px){body.mara-user-shell .context-metrics{display:grid;grid-template-columns:1fr 1fr}
body.mara-user-shell .context-strip>.btn{width:100%}}
/* ADMIN REFERENCE */
body.mara-admin-shell{--bg:#f5f5f2;--surface:#fff;--surface2:#faf9f6;--line:#e7e4dc;--line2:#d7d3c9;--text:#25231f;--muted:#77736c;--accent:#f5a000;--accentSoft:#fff4dc;--green:#218768;--greenSoft:#eaf7f1;--red:#c94b4b;--redSoft:#fff0f0;--blue:#3267d6;--blueSoft:#eef4ff;--shadow:0 18px 50px rgba(37,35,31,.14);--side:286px;--top:68px;--r:15px}
body.mara-admin-shell *{box-sizing:border-box}
html{scroll-behavior:smooth}
body.mara-admin-shell{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5}
body.mara-admin-shell button,body.mara-admin-shell input,body.mara-admin-shell select,body.mara-admin-shell textarea{font:inherit;color:inherit}
body.mara-admin-shell button{cursor:pointer}
body.mara-admin-shell a{color:inherit;text-decoration:none}
body.mara-admin-shell .ico{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;display:block;flex:0 0 auto}
body.mara-admin-shell .app{min-height:100vh;display:grid;grid-template-columns:var(--side) minmax(0,1fr)}
body.mara-admin-shell .sidebar{position:fixed;inset:0 auto 0 0;width:var(--side);background:#fbfbf9;border-right:1px solid var(--line);z-index:50;display:flex;flex-direction:column}
body.mara-admin-shell .side-head{height:var(--top);display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--line)}
body.mara-admin-shell .brand{display:flex;align-items:center;gap:9px;font-weight:850;letter-spacing:-.02em}
body.mara-admin-shell .brandmark{width:30px;height:30px;border-radius:9px;background:var(--accent);display:grid;place-items:center;font-weight:900}
body.mara-admin-shell .side-body{padding:14px;overflow:auto;flex:1}
body.mara-admin-shell .side-foot{border-top:1px solid var(--line);padding:12px 14px;display:flex;gap:10px;align-items:center}
body.mara-admin-shell .avatar{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#282722;color:#fff;font-weight:800}
body.mara-admin-shell .usercopy b{display:block}
body.mara-admin-shell .usercopy span{display:block;color:var(--muted);font-size:12px}
body.mara-admin-shell .section-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:850;color:#8c887f;margin:20px 7px 9px}
body.mara-admin-shell .nav{display:grid;gap:6px}
body.mara-admin-shell .nav a{display:flex;gap:10px;align-items:center;padding:10px 11px;border:1px solid transparent;border-radius:11px;color:#5f5c56}
body.mara-admin-shell .nav a:hover{background:#f3f1ec}
body.mara-admin-shell .nav a.active{background:#fff;border-color:var(--line);color:var(--text);box-shadow:0 5px 15px rgba(30,27,22,.04)}
body.mara-admin-shell .nav b{display:block}
body.mara-admin-shell .nav small{display:block;color:var(--muted);font-size:11px}
body.mara-admin-shell .primary{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;background:var(--accent);padding:12px 14px;font-weight:850;box-shadow:0 4px 0 rgba(177,108,0,.18)}
body.mara-admin-shell .shell{grid-column:2;min-width:0}
body.mara-admin-shell .topbar{height:var(--top);position:sticky;top:0;z-index:40;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 22px}
body.mara-admin-shell .top-left,body.mara-admin-shell .top-right,body.mara-admin-shell .row{display:flex;align-items:center;gap:9px}
body.mara-admin-shell .searchbox{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 10px;min-width:290px}
body.mara-admin-shell .searchbox input{border:0;outline:0;width:100%;min-width:0}
body.mara-admin-shell .main{max-width:1320px;margin:auto;padding:20px}
body.mara-admin-shell .panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 1px 0 rgba(0,0,0,.02)}
body.mara-admin-shell .pad{padding:20px}
body.mara-admin-shell .title{font-size:28px;line-height:1.15;letter-spacing:-.035em;margin:0}
body.mara-admin-shell .subtitle{color:var(--muted);margin:6px 0 0}
body.mara-admin-shell .muted{color:var(--muted)}
body.mara-admin-shell .btn{border:1px solid var(--line2);background:#fff;border-radius:10px;padding:9px 12px;font-weight:750;display:inline-flex;gap:7px;align-items:center;justify-content:center}
body.mara-admin-shell .btn:hover{background:#f7f6f2}
body.mara-admin-shell .btn-accent{background:var(--accent);border-color:var(--accent)}
body.mara-admin-shell .btn-dark{background:#2a2924;color:#fff;border-color:#2a2924}
body.mara-admin-shell .btn-danger{background:var(--redSoft);border-color:#efc8c8;color:#a23737}
body.mara-admin-shell .btn-sm{padding:7px 9px;font-size:12px}
body.mara-admin-shell .iconbtn{width:36px;height:36px;border:1px solid var(--line);background:#fff;border-radius:10px;display:grid;place-items:center}
body.mara-admin-shell .pill,body.mara-admin-shell .tag,body.mara-admin-shell .status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;font-weight:800;white-space:nowrap}
body.mara-admin-shell .pill{padding:7px 10px;border:1px solid var(--line);background:#fff}
body.mara-admin-shell .tag{font-size:10px;padding:2px 7px;border:1px solid #edca91;color:#9c5e03;background:#fff9ef}
body.mara-admin-shell .status{font-size:11px;padding:4px 8px}
body.mara-admin-shell .status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
body.mara-admin-shell .success{background:var(--greenSoft);color:var(--green)}
body.mara-admin-shell .running{background:var(--accentSoft);color:#9d6400}
body.mara-admin-shell .failed{background:var(--redSoft);color:var(--red)}
body.mara-admin-shell .info{background:var(--blueSoft);color:var(--blue)}
body.mara-admin-shell .neutral{background:#f0efeb;color:#66625b}
body.mara-admin-shell .page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:17px}
body.mara-admin-shell .filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body.mara-admin-shell .kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
body.mara-admin-shell .kpi{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}
body.mara-admin-shell .kpi .cap{display:flex;justify-content:space-between;color:#69665f}
body.mara-admin-shell .kpi strong{display:block;font-size:25px;letter-spacing:-.03em;margin:7px 0 2px}
body.mara-admin-shell .delta{font-size:12px;font-weight:750;color:var(--green)}
body.mara-admin-shell .delta.bad{color:var(--red)}
body.mara-admin-shell .grid2{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr);gap:15px}
body.mara-admin-shell .grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.mara-admin-shell .stack{display:grid;gap:14px}
body.mara-admin-shell .filterbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
body.mara-admin-shell .tablewrap{overflow:auto;border:1px solid var(--line);border-radius:12px}
body.mara-admin-shell table{border-collapse:collapse;width:100%;min-width:760px;background:#fff}
body.mara-admin-shell th,body.mara-admin-shell td{padding:11px 13px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}
body.mara-admin-shell th{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#77736b;background:#faf9f6}
body.mara-admin-shell tr:last-child td{border-bottom:0}
body.mara-admin-shell tbody tr:hover{background:#fffdf8}
body.mara-admin-shell .progress{height:7px;border-radius:999px;background:#ebe9e3;overflow:hidden}
body.mara-admin-shell .progress i{display:block;height:100%;background:var(--accent)}
body.mara-admin-shell .notice{border:1px solid #ecd8a9;background:#fffdf4;border-radius:11px;padding:12px}
body.mara-admin-shell .callout{border-left:4px solid var(--accent);background:#f6f2ed;border-radius:10px;padding:14px 15px}
body.mara-admin-shell .mini{border:1px solid var(--line);border-radius:12px;padding:13px;background:#fff}
body.mara-admin-shell .mini h3,body.mara-admin-shell .mini h4{margin:0 0 5px}
body.mara-admin-shell .metric-row{display:flex;justify-content:space-between;gap:10px;align-items:center}
body.mara-admin-shell .metric-row+.metric-row{border-top:1px solid var(--line);padding-top:10px;margin-top:10px}
body.mara-admin-shell .scorebar{height:7px;background:#ebe9e3;border-radius:999px;overflow:hidden;margin-top:7px}
body.mara-admin-shell .scorebar i{height:100%;display:block;background:var(--accent)}
body.mara-admin-shell .drawer{position:fixed;inset:0;z-index:120;pointer-events:none}
body.mara-admin-shell .drawer.open{pointer-events:auto}
body.mara-admin-shell .backdrop{position:absolute;inset:0;background:rgba(25,24,20,.3);opacity:0;transition:.2s}
body.mara-admin-shell .drawer.open .backdrop{opacity:1}
body.mara-admin-shell .drawer-panel{position:absolute;top:0;right:0;width:min(560px,100%);height:100%;background:#fff;transform:translateX(100%);transition:.22s;box-shadow:-20px 0 55px rgba(0,0,0,.16);display:flex;flex-direction:column}
body.mara-admin-shell .drawer.open .drawer-panel{transform:none}
body.mara-admin-shell .drawer-head{height:68px;padding:0 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}
body.mara-admin-shell .drawer-body{padding:19px;overflow:auto;flex:1}
body.mara-admin-shell .modal{position:fixed;inset:0;z-index:140;display:none;place-items:center;padding:20px;background:rgba(25,24,20,.34);backdrop-filter:blur(3px)}
body.mara-admin-shell .modal.open{display:grid}
body.mara-admin-shell .modal-card{width:min(760px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}
body.mara-admin-shell .modal-head,body.mara-admin-shell .modal-foot{padding:16px 19px;display:flex;align-items:center;justify-content:space-between;gap:10px}
body.mara-admin-shell .modal-head{border-bottom:1px solid var(--line)}
body.mara-admin-shell .modal-body{padding:19px}
body.mara-admin-shell .modal-foot{border-top:1px solid var(--line);justify-content:flex-end}
body.mara-admin-shell .field label{display:block;font-weight:800;margin-bottom:6px}
body.mara-admin-shell .input,body.mara-admin-shell .select,body.mara-admin-shell .textarea{width:100%;border:1px solid var(--line2);background:#fff;border-radius:10px;padding:10px 11px;outline:0}
body.mara-admin-shell .input:focus,body.mara-admin-shell .select:focus,body.mara-admin-shell .textarea:focus{border-color:#b87100;box-shadow:0 0 0 3px rgba(245,160,0,.14)}
body.mara-admin-shell .toast{position:fixed;right:18px;bottom:18px;background:#292823;color:#fff;border-radius:11px;padding:11px 14px;z-index:180;opacity:0;transform:translateY(10px);transition:.2s;pointer-events:none}
body.mara-admin-shell .toast.show{opacity:1;transform:none}
body.mara-admin-shell .mobile-menu{display:none}
body.mara-admin-shell .mobile-overlay{display:none}
@media (max-width:1050px){body.mara-admin-shell .kpis{grid-template-columns:repeat(2,1fr)}
body.mara-admin-shell .grid2,body.mara-admin-shell .grid3{grid-template-columns:1fr}}
@media (max-width:820px){body.mara-admin-shell .app{display:block}
body.mara-admin-shell .sidebar{transform:translateX(-100%);transition:.22s}
body.mara-admin-shell .sidebar.open{transform:none}
body.mara-admin-shell .shell{grid-column:auto}
body.mara-admin-shell .mobile-menu{display:grid}
body.mara-admin-shell .mobile-overlay.open{display:block;position:fixed;inset:0;background:rgba(0,0,0,.28);z-index:45}
body.mara-admin-shell .main{padding:14px}
body.mara-admin-shell .topbar{padding:0 14px}
body.mara-admin-shell .searchbox{min-width:0;width:min(55vw,360px)}
body.mara-admin-shell .hide-mobile{display:none!important}}
@media (max-width:620px){body.mara-admin-shell .kpis{grid-template-columns:1fr}
body.mara-admin-shell .page-head{flex-direction:column}
body.mara-admin-shell .page-head .filters,body.mara-admin-shell .page-head .btn{width:100%}
body.mara-admin-shell .searchbox{display:none}
body.mara-admin-shell .title{font-size:24px}
body.mara-admin-shell .pad{padding:15px}}
body.mara-admin-shell .qa-summary .mini small{display:block;color:var(--muted);margin-top:4px}
body.mara-admin-shell code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;background:#f2f1ed;border:1px solid var(--line);border-radius:5px;padding:2px 5px}
body.mara-admin-shell .drawerAction{margin-bottom:12px}
/* REPORT REFERENCE */
body.mara-report-shell{--bg:#f5f5f1;--surface:#fff;--surface2:#fafaf7;--text:#211f1b;--muted:#6e6b64;--line:#e5e2da;--line2:#d8d4ca;--brand:#ffe86d;--brand2:#f2d947;--ink:#292721;--green:#18734a;--green-bg:#eaf6ef;--red:#b94343;--red-bg:#fff0ef;--blue:#315fa8;--blue-bg:#edf3ff;--amber:#976516;--amber-bg:#fff6dc;--shadow:0 16px 50px rgba(37,35,29,.08);--radius:16px;--sidebar:260px}
body.mara-report-shell *{box-sizing:border-box}
html{scroll-behavior:smooth}
body.mara-report-shell{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body.mara-report-shell button,body.mara-report-shell input,body.mara-report-shell select,body.mara-report-shell textarea{font:inherit;color:inherit}
body.mara-report-shell button{cursor:pointer}
body.mara-report-shell a{color:inherit;text-decoration:none}
body.mara-report-shell .app{min-height:100vh}
body.mara-report-shell .sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#24231f;color:#fff;padding:18px 14px;display:flex;flex-direction:column;z-index:40}
body.mara-report-shell .brand{display:flex;gap:10px;align-items:center;padding:4px 8px 20px}
body.mara-report-shell .brand-mark{width:35px;height:35px;border-radius:10px;background:var(--brand);color:#24231f;display:grid;place-items:center;font-weight:900}
body.mara-report-shell .brand b{display:block;font-size:15px}
body.mara-report-shell .brand small{color:#aaa79e}
body.mara-report-shell .side-button{border:1px solid #4a4842;background:#32312c;color:#fff;border-radius:11px;padding:11px 12px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:800}
body.mara-report-shell .side-button.primary{background:var(--brand);border-color:var(--brand);color:#292721}
body.mara-report-shell .nav-label{color:#918e86;font-size:10px;font-weight:900;letter-spacing:.12em;margin:22px 9px 8px;text-transform:uppercase}
body.mara-report-shell .nav-item{display:flex;align-items:center;gap:11px;padding:10px 11px;border-radius:10px;color:#d2d0ca;margin:2px 0}
body.mara-report-shell .nav-item:hover,body.mara-report-shell .nav-item.active{background:#393832;color:#fff}
body.mara-report-shell .nav-item svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9}
body.mara-report-shell .nav-item span{min-width:0}
body.mara-report-shell .nav-item b{display:block;font-size:13px}
body.mara-report-shell .nav-item small{display:block;color:#9e9b92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.mara-report-shell .side-spacer{flex:1}
body.mara-report-shell .account{display:flex;align-items:center;gap:10px;padding:12px 8px;border-top:1px solid #3a3934}
body.mara-report-shell .avatar{width:34px;height:34px;border-radius:50%;background:#efead8;color:#292721;display:grid;place-items:center;font-weight:900}
body.mara-report-shell .main{margin-left:var(--sidebar);min-height:100vh}
body.mara-report-shell .topbar{height:64px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:30}
body.mara-report-shell .topbar-left,body.mara-report-shell .topbar-right,body.mara-report-shell .row{display:flex;align-items:center;gap:10px}
body.mara-report-shell .mobile-menu{display:none}
body.mara-report-shell .iconbtn{width:38px;height:38px;border-radius:10px;background:#fff;border:1px solid var(--line);display:grid;place-items:center}
body.mara-report-shell .iconbtn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9}
body.mara-report-shell .content{padding:24px;max-width:1500px;margin:auto}
body.mara-report-shell .page-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}
body.mara-report-shell .eyebrow{font-size:10px;letter-spacing:.13em;font-weight:900;color:var(--muted);text-transform:uppercase}
body.mara-report-shell .page-head h1{font-size:26px;line-height:1.2;margin:6px 0}
body.mara-report-shell .page-head p{margin:0;color:var(--muted);max-width:760px}
body.mara-report-shell .actions{display:flex;gap:8px;flex-wrap:wrap}
body.mara-report-shell .btn{border:1px solid var(--line2);background:#fff;border-radius:10px;padding:9px 12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:7px}
body.mara-report-shell .btn:hover{border-color:#aaa69c}
body.mara-report-shell .btn.primary{background:#2a2924;color:#fff;border-color:#2a2924}
body.mara-report-shell .btn.brand{background:var(--brand);border-color:var(--brand2);color:#28271f}
body.mara-report-shell .btn.small{padding:6px 9px;font-size:12px}
body.mara-report-shell .btn.ghost{background:transparent}
body.mara-report-shell .panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 1px 0 rgba(0,0,0,.01)}
body.mara-report-shell .panel-pad{padding:18px}
body.mara-report-shell .muted{color:var(--muted)}
body.mara-report-shell .small{font-size:12px}
body.mara-report-shell .divider{height:1px;background:var(--line);margin:16px 0}
body.mara-report-shell .badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:900;letter-spacing:.02em}
body.mara-report-shell .badge.obs{background:var(--blue-bg);color:var(--blue)}
body.mara-report-shell .badge.ai{background:#f0edff;color:#674aa7}
body.mara-report-shell .badge.test{background:var(--amber-bg);color:var(--amber)}
body.mara-report-shell .badge.good{background:var(--green-bg);color:var(--green)}
body.mara-report-shell .badge.bad{background:var(--red-bg);color:var(--red)}
body.mara-report-shell .badge.neutral{background:#f0efeb;color:#66625a}
body.mara-report-shell .status-dot{width:7px;height:7px;border-radius:50%;background:currentColor}
body.mara-report-shell .grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
body.mara-report-shell .grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.mara-report-shell .grid4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
body.mara-report-shell .section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px}
body.mara-report-shell .section-head h2,body.mara-report-shell .section-head h3{margin:0}
body.mara-report-shell .section-head p{margin:3px 0 0;color:var(--muted)}
body.mara-report-shell .metric{padding:15px;border:1px solid var(--line);border-radius:13px;background:var(--surface2)}
body.mara-report-shell .metric span{font-size:11px;color:var(--muted);font-weight:800}
body.mara-report-shell .metric strong{display:block;font-size:22px;margin-top:4px}
body.mara-report-shell .metric small{color:var(--muted)}
body.mara-report-shell .table-wrap{overflow:auto}
body.mara-report-shell .table{width:100%;border-collapse:collapse;min-width:700px}
body.mara-report-shell .table th{font-size:10px;text-transform:uppercase;letter-spacing:.08em;text-align:left;color:var(--muted);padding:10px;border-bottom:1px solid var(--line)}
body.mara-report-shell .table td{padding:12px 10px;border-bottom:1px solid var(--line);vertical-align:top}
body.mara-report-shell .table tr:last-child td{border-bottom:0}
body.mara-report-shell .empty{padding:32px;text-align:center;color:var(--muted)}
body.mara-report-shell .drawer-backdrop,body.mara-report-shell .modal-backdrop{position:fixed;inset:0;background:rgba(24,23,20,.45);z-index:80;opacity:0;pointer-events:none;transition:.2s}
body.mara-report-shell .drawer-backdrop.open,body.mara-report-shell .modal-backdrop.open{opacity:1;pointer-events:auto}
body.mara-report-shell .drawer{position:fixed;right:0;top:0;bottom:0;width:min(520px,94vw);background:#fff;z-index:90;transform:translateX(102%);transition:.25s;box-shadow:-15px 0 60px rgba(0,0,0,.2);display:flex;flex-direction:column}
body.mara-report-shell .drawer.open{transform:none}
body.mara-report-shell .drawer-head{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:10px}
body.mara-report-shell .drawer-body{padding:20px;overflow:auto}
body.mara-report-shell .drawer-foot{padding:14px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px}
body.mara-report-shell .modal{position:fixed;left:50%;top:50%;transform:translate(-50%,-46%) scale(.98);width:min(680px,94vw);max-height:88vh;background:#fff;border-radius:18px;z-index:90;opacity:0;pointer-events:none;transition:.2s;box-shadow:0 30px 90px rgba(0,0,0,.26);display:flex;flex-direction:column}
body.mara-report-shell .modal.open{opacity:1;pointer-events:auto;transform:translate(-50%,-50%) scale(1)}
body.mara-report-shell .modal-head,body.mara-report-shell .modal-foot{padding:16px 19px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}
body.mara-report-shell .modal-foot{border-top:1px solid var(--line);border-bottom:0;justify-content:flex-end}
body.mara-report-shell .modal-body{padding:19px;overflow:auto}
body.mara-report-shell .field{display:grid;gap:6px}
body.mara-report-shell .field label{font-size:12px;font-weight:800}
body.mara-report-shell .input,body.mara-report-shell .select,body.mara-report-shell .textarea{width:100%;border:1px solid var(--line2);border-radius:10px;background:#fff;padding:10px 11px;outline:none}
body.mara-report-shell .input:focus,body.mara-report-shell .select:focus,body.mara-report-shell .textarea:focus{border-color:#8b8679;box-shadow:0 0 0 3px rgba(90,84,67,.08)}
body.mara-report-shell .textarea{min-height:90px;resize:vertical}
body.mara-report-shell .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
body.mara-report-shell .toast{position:fixed;right:20px;bottom:20px;background:#292822;color:#fff;padding:12px 14px;border-radius:11px;z-index:120;transform:translateY(30px);opacity:0;transition:.2s;box-shadow:var(--shadow)}
body.mara-report-shell .toast.show{transform:none;opacity:1}
body.mara-report-shell .mobile-overlay{display:none}
@media (max-width:1100px){body.mara-report-shell .grid4{grid-template-columns:repeat(2,1fr)}
body.mara-report-shell .grid3{grid-template-columns:1fr 1fr}}
@media (max-width:820px){body.mara-report-shell{--sidebar:0px}
body.mara-report-shell .sidebar{transform:translateX(-102%);transition:.23s;width:270px}
body.mara-report-shell .sidebar.open{transform:none}
body.mara-report-shell .main{margin-left:0}
body.mara-report-shell .mobile-menu{display:grid}
body.mara-report-shell .mobile-overlay{display:block;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:35;opacity:0;pointer-events:none;transition:.2s}
body.mara-report-shell .mobile-overlay.open{opacity:1;pointer-events:auto}
body.mara-report-shell .topbar{padding:0 14px}
body.mara-report-shell .content{padding:16px}
body.mara-report-shell .page-head{display:block}
body.mara-report-shell .page-head .actions{margin-top:13px}
body.mara-report-shell .grid2,body.mara-report-shell .grid3,body.mara-report-shell .grid4{grid-template-columns:1fr}
body.mara-report-shell .form-grid{grid-template-columns:1fr}}
@media (max-width:520px){body.mara-report-shell .hide-mobile{display:none!important}
body.mara-report-shell .topbar{height:58px}
body.mara-report-shell .content{padding:12px}
body.mara-report-shell .panel-pad{padding:14px}
body.mara-report-shell .page-head h1{font-size:22px}
body.mara-report-shell .btn{padding:9px 10px}
body.mara-report-shell .actions .btn{flex:1}
body.mara-report-shell .drawer{width:100vw}
body.mara-report-shell .modal{width:96vw}
body.mara-report-shell .table{min-width:640px}}
body.mara-report-shell .report-grid{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:16px}
body.mara-report-shell .product-card{display:grid;grid-template-columns:430px minmax(0,1fr);overflow:hidden}
body.mara-report-shell .gallery{padding:18px;background:#f0efe9}
body.mara-report-shell .main-photo{aspect-ratio:4/3;border-radius:13px;overflow:hidden;background:#dedbd2}
body.mara-report-shell .main-photo img{width:100%;height:100%;object-fit:cover}
body.mara-report-shell .thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:8px}
body.mara-report-shell .thumb{aspect-ratio:1;border-radius:8px;overflow:hidden;border:2px solid transparent;background:#d9d6ce}
body.mara-report-shell .thumb.active{border-color:#2a2924}
body.mara-report-shell .thumb img{width:100%;height:100%;object-fit:cover}
body.mara-report-shell .product-info{padding:22px}
body.mara-report-shell .product-info h2{font-size:24px;line-height:1.25;margin:5px 0 9px}
body.mara-report-shell .price{font-size:27px;font-weight:900}
body.mara-report-shell .old-price{text-decoration:line-through;color:var(--muted);margin-left:8px}
body.mara-report-shell .source-row{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}
body.mara-report-shell .quick-summary{background:#282721;color:#fff;border-radius:16px;padding:20px;display:grid;grid-template-columns:1.45fr 1fr;gap:20px}
body.mara-report-shell .quick-summary h2{font-size:25px;margin:5px 0 9px}
body.mara-report-shell .quick-summary p{color:#d4d1c8;margin:0}
body.mara-report-shell .strength-weakness{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body.mara-report-shell .sw{border:1px solid #4b4942;border-radius:12px;padding:13px;background:#32312c}
body.mara-report-shell .sw b{display:block;margin-bottom:5px}
body.mara-report-shell .sw small{color:#c5c2b9}
body.mara-report-shell .opportunity{padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff}
body.mara-report-shell .opportunity .num{width:29px;height:29px;border-radius:9px;background:#292822;color:#fff;display:grid;place-items:center;font-weight:900}
body.mara-report-shell .opportunity h3{margin:10px 0 5px;font-size:15px}
body.mara-report-shell .opportunity p{margin:0;color:var(--muted)}
body.mara-report-shell .action-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:start;padding:15px;border-bottom:1px solid var(--line)}
body.mara-report-shell .action-card:last-child{border-bottom:0}
body.mara-report-shell .action-num{width:30px;height:30px;border-radius:50%;background:var(--brand);display:grid;place-items:center;font-weight:900}
body.mara-report-shell .action-card h3{margin:1px 0 4px;font-size:15px}
body.mara-report-shell .action-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
body.mara-report-shell .compare-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
body.mara-report-shell .compare-callout{padding:12px 14px;border-left:3px solid #272620;background:#f6f4ec;border-radius:0 10px 10px 0;margin-top:12px}
body.mara-report-shell .report-tabs{display:flex;border-bottom:1px solid var(--line);padding:0 16px;overflow:auto}
body.mara-report-shell .report-tab{border:0;background:transparent;padding:14px 13px;font-weight:800;color:var(--muted);white-space:nowrap;border-bottom:2px solid transparent}
body.mara-report-shell .report-tab.active{color:var(--text);border-color:#2a2924}
body.mara-report-shell .report-panel{display:none;padding:20px}
body.mara-report-shell .report-panel.active{display:block}
body.mara-report-shell .report-panel h2{font-size:20px;margin:0 0 12px}
body.mara-report-shell .report-panel h3{font-size:15px}
body.mara-report-shell .report-panel p,body.mara-report-shell .report-panel li{color:#4e4b45}
body.mara-report-shell .source-link{border:0;background:transparent;text-decoration:underline;text-underline-offset:3px;padding:0;color:#424039;font-weight:800}
body.mara-report-shell .fact{padding:12px;border:1px solid var(--line);border-radius:11px;margin:9px 0}
body.mara-report-shell .fact .badge{margin-bottom:7px}
body.mara-report-shell .trust-table{display:grid;gap:8px}
body.mara-report-shell .trust-row{display:grid;grid-template-columns:155px 95px minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:start;padding:12px;border:1px solid var(--line);border-radius:11px}
body.mara-report-shell .trust-row b{font-size:13px}
body.mara-report-shell .trust-summary{padding:14px;background:var(--amber-bg);border:1px solid #ead49a;border-radius:12px}
body.mara-report-shell .deep{border:1px solid var(--line);border-radius:12px;margin:10px 0;background:#fff}
body.mara-report-shell .deep summary{list-style:none;padding:14px 15px;font-weight:900;display:flex;justify-content:space-between;gap:10px;cursor:pointer}
body.mara-report-shell .deep summary::-webkit-details-marker{display:none}
body.mara-report-shell .deep summary:after{content:"+";font-size:18px}
body.mara-report-shell .deep[open] summary:after{content:"−"}
body.mara-report-shell .deep-body{padding:0 15px 15px}
body.mara-report-shell .toc{position:sticky;top:83px;height:max-content;padding:14px}
body.mara-report-shell .toc b{font-size:12px}
body.mara-report-shell .toc a{display:block;padding:7px 0;color:var(--muted);font-size:12px}
body.mara-report-shell .toc a:hover{color:var(--text)}
body.mara-report-shell .legend{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
body.mara-report-shell .method-card{padding:13px;border:1px solid var(--line);border-radius:12px;margin:10px 0}
body.mara-report-shell .method-card h4{margin:0 0 5px}
body.mara-report-shell .evidence-item{padding:13px 0;border-bottom:1px solid var(--line)}
body.mara-report-shell .evidence-item:last-child{border:0}
body.mara-report-shell .evidence-item code{font-size:11px;background:#f2f0eb;padding:3px 5px;border-radius:5px}
body.mara-report-shell .analysis-source{border:1px solid var(--line);padding:10px 12px;border-radius:11px;background:#fff;margin-bottom:15px}
body.mara-report-shell .analysis-source summary{cursor:pointer;font-weight:800}
body.mara-report-shell .source-form{padding-top:12px}
@media (max-width:1200px){body.mara-report-shell .report-grid{grid-template-columns:1fr}
body.mara-report-shell .toc{display:none}
body.mara-report-shell .product-card{grid-template-columns:360px 1fr}}
@media (max-width:900px){body.mara-report-shell .product-card{grid-template-columns:1fr}
body.mara-report-shell .gallery{padding:13px}
body.mara-report-shell .quick-summary{grid-template-columns:1fr}
body.mara-report-shell .trust-row{grid-template-columns:1fr 90px}
body.mara-report-shell .trust-row .evidence-col,body.mara-report-shell .trust-row .impact-col{grid-column:1/-1}}
@media (max-width:560px){body.mara-report-shell .strength-weakness{grid-template-columns:1fr}
body.mara-report-shell .action-card{grid-template-columns:auto 1fr}
body.mara-report-shell .action-card>.btn{grid-column:2}
body.mara-report-shell .product-info{padding:16px}
body.mara-report-shell .product-info h2{font-size:20px}
body.mara-report-shell .quick-summary h2{font-size:21px}
body.mara-report-shell .trust-row{grid-template-columns:1fr}
body.mara-report-shell .trust-row>*{grid-column:auto!important}}
body.mara-report-shell .report-legend-inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0 14px;padding:10px 12px;border:1px solid var(--line);background:#fff;border-radius:12px;color:var(--muted);font-size:12px}
body.mara-report-shell .report-legend-inline>b{color:var(--text)}
@media (max-width:700px){body.mara-report-shell .report-legend-inline{align-items:flex-start}
body.mara-report-shell .report-legend-inline span:not(.badge){width:calc(100% - 130px)}}

/* Production-only integration helpers */
body.mara-user-shell .analysis-entry{padding:17px;margin-bottom:15px}
body.mara-user-shell .analysis-entry h2{margin:0 0 4px;font-size:18px}
body.mara-user-shell .analysis-entry p{margin:0 0 13px;color:var(--muted)}
body.mara-user-shell .task-list{display:grid;gap:10px}
body.mara-user-shell .task-row{border:1px solid var(--line);border-radius:12px;padding:13px;background:var(--surface);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start}
body.mara-user-shell .task-row h3{margin:5px 0 3px;font-size:14px}body.mara-user-shell .task-row p{margin:0;color:var(--muted);font-size:12px}
body.mara-user-shell .change-list,body.mara-user-shell .report-list{display:grid;gap:0}body.mara-user-shell .change-row,body.mara-user-shell .report-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}body.mara-user-shell .change-row:last-child,body.mara-user-shell .report-row:last-child{border-bottom:0}
body.mara-user-shell .change-row strong,body.mara-user-shell .report-row strong{display:block}body.mara-user-shell .change-row small,body.mara-user-shell .report-row small{color:var(--muted)}
body.mara-admin-shell .runtime-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}body.mara-admin-shell .runtime-item{border:1px solid var(--line);border-radius:12px;padding:13px;background:var(--surface2)}body.mara-admin-shell .runtime-item strong{display:block;margin:5px 0}body.mara-admin-shell .runtime-item small{color:var(--muted)}
body.mara-admin-shell .attention-list{display:grid;gap:8px}body.mara-admin-shell .attention-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px;border:1px solid var(--line);border-radius:11px}body.mara-admin-shell .attention-row small{display:block;color:var(--muted)}
body.mara-report-shell .report-empty-shell{padding:40px 20px;max-width:760px;margin:auto;text-align:center}
@media(max-width:820px){body.mara-admin-shell .runtime-strip{grid-template-columns:1fr}}
/* Build19 report dark palette adaptation — geometry remains unchanged. */
html[data-theme="dark"] body.mara-report-shell .main{background:var(--color-page-bg)}
html[data-theme="dark"] body.mara-report-shell .topbar{background:rgba(32,33,29,.94);border-color:var(--color-border)}
html[data-theme="dark"] body.mara-report-shell .panel,
html[data-theme="dark"] body.mara-report-shell .opportunity,
html[data-theme="dark"] body.mara-report-shell .analysis-source,
html[data-theme="dark"] body.mara-report-shell .report-legend-inline,
html[data-theme="dark"] body.mara-report-shell .deep,
html[data-theme="dark"] body.mara-report-shell .method-card,
html[data-theme="dark"] body.mara-report-shell .fact,
html[data-theme="dark"] body.mara-report-shell .input,
html[data-theme="dark"] body.mara-report-shell .select,
html[data-theme="dark"] body.mara-report-shell .textarea,
html[data-theme="dark"] body.mara-report-shell .btn,
html[data-theme="dark"] body.mara-report-shell .iconbtn{background:var(--color-surface);color:var(--color-text-primary);border-color:var(--color-border)}
html[data-theme="dark"] body.mara-report-shell .gallery{background:var(--color-surface-secondary)}
html[data-theme="dark"] body.mara-report-shell .main-photo{background:#30312c}
html[data-theme="dark"] body.mara-report-shell .compare-callout{background:var(--color-surface-secondary);border-color:var(--color-brand)}
html[data-theme="dark"] body.mara-report-shell .trust-summary{background:var(--color-warning-soft);border-color:#66532a;color:var(--color-text-primary)}
html[data-theme="dark"] body.mara-report-shell .evidence-item code{background:var(--color-surface-secondary)}
html[data-theme="dark"] body.mara-report-shell .drawer{background:var(--color-surface);color:var(--color-text-primary)}
html[data-theme="dark"] body.mara-report-shell .modal{background:var(--color-surface);color:var(--color-text-primary)}
html[data-theme="dark"] body.mara-report-shell .badge.neutral{background:var(--color-surface-secondary);color:var(--color-text-secondary)}
html[data-theme="dark"] body.mara-report-shell .badge.obs{background:var(--color-info-soft);color:var(--color-info)}
html[data-theme="dark"] body.mara-report-shell .badge.ai{background:#342b49;color:#cdb9ff}
html[data-theme="dark"] body.mara-report-shell .badge.test{background:var(--color-warning-soft);color:var(--color-warning)}

/* Build19 compatibility: explicit re-analysis remains available without loading legacy UI layers. */
body.mara-user-shell .mara-source-form{align-items:start;flex-wrap:wrap}
body.mara-user-shell .mara-project-select{max-width:220px}
body.mara-user-shell .studio-refresh-option{grid-column:1/-1;display:flex;align-items:flex-start;gap:9px;width:100%;padding:4px 2px;color:var(--muted);cursor:pointer}
body.mara-user-shell .studio-refresh-option input{width:16px;height:16px;margin:2px 0 0;accent-color:var(--accent);flex:0 0 auto}
body.mara-user-shell .studio-refresh-option span{display:grid;gap:1px}
body.mara-user-shell .studio-refresh-option b{color:var(--text);font-size:12px}
body.mara-user-shell .studio-refresh-option small{font-size:11px}
@media(max-width:620px){body.mara-user-shell .mara-project-select{max-width:none;width:100%}}

/* Build20-R5 — CSP-safe Admin utility classes. */
body.mara-admin-shell .status-dot--healthy{color:var(--green)}
body.mara-admin-shell .avatar--compact{width:25px;height:25px}
