:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--theme-text, #29342f);background:var(--theme-surface-soft, #f7f8f7);font-synthesis:none;font-size:13px;--green:var(--theme-accent, #1d5143);--line:var(--theme-border, #e5e9e6);--muted:var(--theme-text-muted, #7d8680);--red:var(--theme-danger, #b64d43)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button,a{transition:background .15s,color .15s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--theme-focus, #438572);outline-offset:3px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:29px;font-weight:620;letter-spacing:-.9px;line-height:1.25}h2{font-size:15px;font-weight:650;letter-spacing:-.15px}h3{font-size:13px;font-weight:650}p{line-height:1.6}button svg{flex-shrink:0}small{font-size:11px;color:var(--muted)}.app{display:flex;min-height:100vh}.sidebar{width:235px;background:var(--theme-surface-raised, #f0f3f0);border-right:1px solid var(--theme-border, #dce3dd);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:30px 17px 18px;z-index:20}.brand{display:flex;gap:11px;align-items:center;font-size:24px;font-weight:750;letter-spacing:1px;padding:0 11px}.logo-symbol{width:37px;height:41px;background:var(--green);border-radius:3px 13px 3px 3px;color:var(--theme-on-accent, #fff);display:grid;place-items:center;font-size:29px;font-weight:750;line-height:1}.brand small{display:block;font-size:9px;letter-spacing:.15px;font-weight:500;margin-top:3px;color:var(--theme-text-secondary, #738078)}.workspace{display:flex;align-items:center;gap:9px;margin:32px 3px 27px;padding:11px 8px;background:var(--theme-overlay, #fff9);border:1px solid var(--theme-border, #dce3dd);border-radius:6px;font-size:11px;font-weight:600}.workspace small{display:block;font-size:9px;margin-top:3px;font-weight:400}.workspace-mark{border:1px solid var(--theme-border, #dce3dd);border-radius:4px;width:26px;height:28px;display:grid;place-items:center;background:var(--theme-surface, white);color:var(--green);font-weight:700}.workspace svg{margin-left:auto;color:var(--theme-text-secondary, #8b968e)}.nav-label{font-size:9px;letter-spacing:1.3px;color:var(--theme-text-secondary, #8b968e);padding:0 12px;margin-bottom:10px}.sidebar nav{display:flex;flex-direction:column;gap:5px}.sidebar nav button{border:0;background:transparent;display:flex;align-items:center;gap:12px;padding:12px;border-radius:5px;text-align:left;color:var(--theme-text-secondary, #667369);font-weight:500}.sidebar nav button:hover{background:var(--theme-surface-raised, #e3e9e3)}.sidebar nav button.active{background:var(--theme-surface-raised, #dae7dd);color:var(--theme-text, #20513d);font-weight:650}.sidebar nav button.active svg{stroke-width:2.2}.sidebar nav button b{margin-left:auto;background:var(--theme-surface-raised, #c5d9cc);color:var(--theme-text, #3a624b);min-width:21px;padding:2px 5px;border-radius:4px;font-size:10px;text-align:center}.sidebar nav .nav-divider{margin-top:24px;position:relative}.nav-divider:before{content:"";position:absolute;top:-14px;left:10px;right:10px;border-top:1px solid var(--theme-border, #dce3dd)}.sidebar-bottom{margin-top:auto;padding:30px 11px 0}.source-status{display:flex;align-items:center;gap:9px;font-size:11px;font-weight:600}.source-status small{display:block;margin-top:4px;font-size:10px;font-weight:400}.status-dot{display:inline-block;background:var(--theme-accent, #608d71);width:6px;height:6px;border-radius:50%;vertical-align:middle;flex-shrink:0}.sidebar-note{font-size:10px;line-height:1.6;color:var(--theme-text-secondary, #89948c);margin:15px 0 21px}.help-link{width:100%;display:flex;align-items:center;gap:8px;background:none;border:0;border-top:1px solid var(--theme-border, #dce3dd);padding:17px 0 0;color:var(--theme-text-secondary, #77847b);font-size:11px}.help-link svg:last-child{margin-left:auto}.workspace-main{margin-left:235px;min-width:0;width:calc(100% - 235px)}.topbar{height:77px;border-bottom:1px solid var(--line);background:var(--theme-surface, #ffffffc7);display:flex;align-items:center;justify-content:space-between;padding:0 37px;gap:20px}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:11px;color:var(--theme-text-secondary, #8a928d);white-space:nowrap}.breadcrumb strong{font-weight:500;color:var(--theme-text, #4b574f)}.topbar-right{display:flex;align-items:center;gap:18px}.demo-label{font-size:9px;font-weight:650;letter-spacing:1px;border:1px solid var(--theme-border, #dfdfcc);background:var(--theme-warning-surface, #f8f7ed);color:var(--theme-warning, #8b8256);border-radius:4px;padding:4px 6px}.icon-button{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;padding:6px;color:var(--theme-text-secondary, #7b867e);border-radius:5px}.icon-button:hover{background:var(--theme-surface-raised, #edf1ee);color:var(--green)}.notification-button{position:relative}.notification-button i{position:absolute;right:6px;top:5px;width:5px;height:5px;background:var(--theme-warning, #b9825d);border-radius:50%;border:1px solid white}.user-switch{display:flex;align-items:center;gap:10px;border-left:1px solid var(--line);padding-left:21px}.user-switch label{font-size:9px;color:var(--muted);display:block;margin:0 0 2px 3px}.user-switch select{font-size:11px;border:0;background:transparent;padding:0;max-width:235px;font-weight:550;color:var(--theme-text, #39443d)}.avatar{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--theme-border, #dce5df);border-radius:50%;background:var(--theme-surface-raised, #e4ece7);color:var(--theme-text-secondary, #5a7969);font-size:10px;font-weight:650;flex-shrink:0}.avatar.small{width:27px;height:27px;font-size:9px}.color-1{background:var(--theme-warning-surface, #ece8df);color:var(--theme-warning, #8b7e5d);border-color:var(--theme-border, #e5e0d3)}.color-2{background:var(--theme-info-surface, #e8eaf0);color:var(--theme-info, #777f97);border-color:var(--theme-border, #dfe3eb)}.color-3{background:var(--theme-danger-surface, #ede4e1);color:var(--theme-danger, #96766d);border-color:var(--theme-border, #e8dbd5)}main{max-width:1660px;margin:auto;padding:31px 37px 0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.eyebrow{font-size:9px;font-weight:600;letter-spacing:1px;color:var(--theme-text-secondary, #839087);text-transform:uppercase;margin-bottom:10px}.page-heading p{color:var(--muted);font-size:12px;margin-top:10px}.heading-actions{display:flex;gap:9px;flex-shrink:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:35px;padding:9px 14px;border:1px solid transparent;border-radius:5px;font-size:11px;font-weight:550;white-space:nowrap}.button.primary{background:var(--green);color:white;border-color:var(--green)}.button.primary:hover{background:var(--theme-accent-solid, #286451)}.button.secondary{background:var(--theme-surface, white);border-color:var(--theme-border, #dce3dd);color:var(--theme-text-secondary, #5c6b61)}.button.secondary:hover{background:var(--theme-surface-soft, #f0f5f1)}.button.square{padding:9px}.button.reject{border-color:var(--theme-border, #ead8d3);background:var(--theme-surface, #fff);color:var(--theme-danger, #ad574a)}.text-button{background:none;border:0;display:inline-flex;align-items:center;gap:6px;color:var(--theme-text-secondary, #547462);padding:4px 0;font-size:11px;font-weight:550;white-space:nowrap}.text-button:hover{color:var(--theme-text, #143f2a)}.tabs{display:flex;border-bottom:1px solid var(--theme-border, #dfe5df);gap:26px;margin-bottom:24px;overflow-x:auto}.tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:13px 0 14px;white-space:nowrap;color:var(--theme-text-secondary, #7f8983);font-size:11px;font-weight:550;display:flex;align-items:center;gap:8px}.tabs button.selected{color:var(--green);border-bottom-color:var(--green)}.tabs button>span,.count{display:inline-block;font-size:10px;line-height:17px;padding:0 5px;background:var(--theme-surface-raised, #e9eeea);color:var(--theme-text-secondary, #6c7a70);border-radius:4px;font-weight:550}.metrics-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.metric{text-align:left;background:var(--theme-surface, #fff);border:1px solid var(--line);border-radius:7px;padding:19px 20px 15px;display:flex;flex-direction:column;gap:17px;box-shadow:0 1px 2px var(--theme-shadow, #243e2c03)}.metric:hover{border-color:var(--theme-border, #b8c8bc);background:var(--theme-surface, #fcfefc)}.metric-label{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:550;color:var(--theme-text-secondary, #6b786e)}.metric-label svg{color:var(--theme-text-muted, #97a399)}.metric>strong{font-size:33px;line-height:1;letter-spacing:-1px;font-weight:550;font-variant-numeric:tabular-nums}.metric.danger>strong{color:var(--red)}.metric.amber>strong{color:var(--theme-warning, #ac8646)}.metric-footer{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:var(--theme-text-muted, #98a199)}.metric.danger .metric-footer{color:var(--theme-danger, #b77368)}.overview-grid{display:grid;grid-template-columns:minmax(0,2.45fr) minmax(255px,1fr);gap:21px}.panel{background:var(--theme-surface, white);border:1px solid var(--line);border-radius:7px;min-width:0;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 21px}.panel-heading h2{display:flex;align-items:center;gap:8px}.panel-heading p{font-size:10px;color:var(--theme-text-muted, #99a29b);margin-top:6px}.attention-dot{width:6px;height:6px;border-radius:50%;background:var(--theme-danger, #c88961)}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:11px;text-align:left}th{font-weight:500;font-size:10px;color:var(--theme-text-secondary, #8b968e);background:var(--theme-surface-soft, #fafbfa);border-top:1px solid var(--theme-border, #eff2ef);border-bottom:1px solid var(--line);padding:12px 15px;white-space:nowrap}td{padding:14px 15px;border-bottom:1px solid var(--theme-border, #edf0ed);vertical-align:middle}tr:last-child td{border-bottom:0}th:first-child,td:first-child{padding-left:21px}tbody tr:hover{background:var(--theme-surface-soft, #fbfcfa)}.task-link{border:0;background:none;text-align:left;padding:0;display:block;max-width:380px;color:var(--theme-text, #36443b)}.task-link strong{display:block;font-size:11px;font-weight:550;line-height:1.55}.task-id{display:block;font-size:9px;color:var(--theme-text-muted, #99a39c);font-weight:400;margin-bottom:5px;font-variant-numeric:tabular-nums}.task-id>span{margin-left:6px;font-size:8px;color:var(--theme-text-muted, #a5ada7)}.person{display:flex;align-items:center;gap:8px;white-space:nowrap}.person small,td>small{display:block;font-size:9px;margin-top:4px;color:var(--theme-text-muted, #97a097)}.person strong{font-weight:550}.late-date{color:var(--theme-danger, #b66a59);white-space:nowrap}.late-date small{color:var(--theme-danger, #c99889)}.badge{display:inline-flex;align-items:center;gap:5px;font-size:9px;font-weight:500;line-height:1.4;padding:4px 7px;border-radius:4px;white-space:nowrap;color:var(--theme-text-secondary, #78827a);background:var(--theme-surface-raised, #f1f3f1)}.badge i{width:4px;height:4px;border-radius:50%;background:currentColor}.badge.overdue,.badge.rejected,.badge.stale,.badge.escalated{color:var(--theme-danger, #b56858);background:var(--theme-danger-surface, #faf0ec)}.badge.pending,.badge.warning,.badge.review{background:var(--theme-warning-surface, #f6f2e6);color:var(--theme-warning, #a18c4b)}.badge.completed,.badge.approved,.badge.answered,.badge.resolved{background:var(--theme-surface-raised, #eaf3eb);color:var(--theme-text-secondary, #64866b)}.badge.active{background:var(--theme-surface-raised, #edf2f0);color:var(--theme-text-secondary, #6c8477)}.panel-footer{display:flex;justify-content:space-between;gap:12px;padding:13px 20px;border-top:1px solid var(--line);font-size:9px;color:var(--theme-text-muted, #a0aaa2)}.panel-footer .status-dot{margin-right:5px;width:5px;height:5px}.composition-total{display:flex;align-items:center;gap:13px;padding:12px 22px 22px}.composition-total strong{font-size:45px;font-weight:500;letter-spacing:-1.5px}.composition-total span{font-size:11px;line-height:1.6;color:var(--theme-text-muted, #96a098)}.stacked-bar{display:flex;height:9px;gap:3px;margin:0 23px 23px;border-radius:2px;overflow:hidden}.green{background:var(--theme-accent, #628d76)}.yellow{background:var(--theme-warning, #c1ad77)}.gray{background:var(--theme-surface-raised, #dce4de)}.composition-legend{padding:0 21px 17px}.composition-legend button{display:flex;align-items:center;gap:9px;width:100%;padding:12px 0;background:none;border:0;border-bottom:1px solid var(--theme-border, #f0f3f0);font-size:11px;text-align:left;color:var(--theme-text-secondary, #7f8d83)}.composition-legend i{width:7px;height:7px;border-radius:2px}.composition-legend strong{margin-left:auto;color:var(--theme-text, #536357);font-weight:550}.composition-legend svg{color:var(--theme-text-muted, #bdc7bf)}.quiet-note{margin:5px 20px 20px;display:flex;align-items:center;gap:10px;background:var(--theme-surface-soft, #f6f8f5);border:1px solid var(--theme-border, #eef2ec);border-radius:5px;padding:12px;color:var(--theme-text-secondary, #7d9781);font-size:10px}.quiet-note small{display:block;font-size:9px;line-height:1.6;margin-top:3px;color:var(--theme-text-muted, #9aa69b)}.decision-preview{display:flex;width:100%;border:0;background:var(--theme-surface, white);border-top:1px solid var(--theme-border, #eef1ee);gap:13px;align-items:center;text-align:left;padding:17px 21px}.decision-preview:hover{background:var(--theme-surface-soft, #f9fbf9)}.decision-icon{background:var(--theme-surface-raised, #f0f4ef);border:1px solid var(--theme-border, #e6ede5);color:var(--theme-text-secondary, #729179);display:grid;place-items:center;width:35px;height:37px;border-radius:6px;flex-shrink:0}.decision-preview>div{min-width:0}.decision-preview strong{display:block;font-size:11px;font-weight:550;color:var(--theme-text, #546357);line-height:1.5;margin-top:5px}.decision-preview small{font-size:9px;color:var(--theme-text-muted, #9da69f)}.decision-preview p{font-size:10px;color:var(--theme-text-muted, #9aa59d);margin-top:5px}.decision-preview>svg:last-child{margin-left:auto;color:var(--theme-text-muted, #a7b1a9);flex-shrink:0}.timeline{padding:0 22px 15px}.timeline-row{position:relative;display:flex;gap:13px;padding:7px 0 19px}.timeline-row:not(:last-child):before{content:"";position:absolute;left:4px;top:19px;bottom:0;width:1px;background:var(--theme-surface-raised, #e8eee8)}.event-dot{width:9px;height:9px;border-radius:50%;background:var(--theme-accent, #b1c7b6);flex-shrink:0;margin-top:3px;border:2px solid var(--theme-border, #f6f8f4)}.event-dot.red{background:var(--theme-danger, #c89c8b)}.timeline-row strong{font-size:11px;line-height:1.5;color:var(--theme-text-secondary, #637268);font-weight:500}.timeline-row p{font-size:9px;color:var(--theme-text-muted, #a4aea6);margin-top:5px}.change-line{display:flex;align-items:center;gap:8px}blockquote{font-size:11px;margin:8px 0 0;padding:7px 10px;border-left:2px solid var(--theme-border, #dce6dd);background:var(--theme-surface-soft, #f8faf7);color:var(--theme-text-secondary, #839087)}.main-footer{display:flex;justify-content:space-between;font-size:9px;color:var(--theme-text-muted, #a4aea7);padding:30px 0 21px}.filters{display:flex;gap:10px;padding:17px 20px;flex-wrap:wrap}.search-input{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:5px;padding:0 10px;flex:1;min-width:200px;color:var(--theme-text-muted, #9aa69d)}.search-input input{border:0;width:100%;padding:9px 0;outline:none!important;background:transparent}input,select,textarea{border:1px solid var(--theme-border, #dfe5df);border-radius:5px;padding:9px 10px;color:var(--theme-text, #526257);background:var(--theme-surface, white);font-size:12px;min-width:0}input::placeholder,textarea::placeholder{color:var(--theme-text-muted, #a2aca5)}.mono{font-variant-numeric:tabular-nums}.red-text{color:var(--red)!important}.muted{color:var(--theme-text-muted, #97a298);font-size:11px}.active-filter{display:flex;align-items:center;gap:20px;margin:0 0 16px;font-size:11px}.empty{padding:42px 24px;text-align:center;color:var(--theme-text-muted, #a0afa3)}.empty svg{margin-bottom:12px;color:var(--theme-text-muted, #a2b7a6)}.empty h3{font-size:14px;color:var(--theme-text-secondary, #738879);font-weight:500;margin-bottom:9px}.empty p{font-size:12px}.info-banner{display:flex;align-items:center;gap:14px;padding:18px 21px;border:1px solid var(--theme-border, #dce7dd);border-radius:6px;background:var(--theme-surface-raised, #eef4ee);margin:0 0 23px;color:var(--theme-text-secondary, #6f8a75)}.info-banner strong{font-size:12px;font-weight:550}.info-banner p{font-size:11px;color:var(--theme-text-secondary, #8d9d90);margin-top:4px}.info-banner>.text-button{margin-left:auto}.approval-list{display:flex;flex-direction:column;gap:18px}.approval-card{padding:22px}.approval-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.approval-title{border:0;background:none;padding:0;display:flex;align-items:center;gap:10px;text-align:left;color:var(--theme-text, #40584a);font-size:15px;font-weight:550;line-height:1.6}.deadline-change{display:flex;align-items:center;gap:23px;margin:20px 0;padding:15px;background:var(--theme-surface-soft, #f7f9f6);border:1px solid var(--theme-border, #eaf0e8);border-radius:5px;color:var(--theme-text-secondary, #879a8a)}.deadline-change span{display:block;font-size:10px;color:var(--theme-text-muted, #a0ada2);margin-bottom:5px}.deadline-change strong{font-size:12px;font-weight:550}.deadline-change>div:last-of-type strong{color:var(--theme-text-secondary, #547d60)}.deadline-change>small{margin-left:auto}.approval-context{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:20px 0}.approval-context span{font-size:10px;color:var(--theme-text-muted, #9ca89f)}.approval-context p{font-size:12px;color:var(--theme-text-secondary, #728677);margin-top:5px;white-space:pre-wrap}.route{display:flex;gap:15px;border-top:1px solid var(--theme-border, #edf2eb);padding-top:18px;flex-wrap:wrap}.route>div{display:flex;align-items:center;gap:9px}.route>div>span{width:23px;height:23px;border:1px solid var(--theme-border, #dce6db);display:grid;place-items:center;color:var(--theme-text-muted, #a8b4a9);border-radius:50%;font-size:10px}.route strong{display:block;font-size:10px;color:var(--theme-text-secondary, #8d9f90);font-weight:500}.route small{font-size:9px;display:block;margin-top:4px;color:var(--theme-text-muted, #a6b2a8)}.route .current>span{background:var(--theme-warning-surface, #f3efdf);color:var(--theme-warning, #a7945e);border-color:var(--theme-border, #e9dfba)}.route .done>span{background:var(--theme-surface-raised, #dfeee0);color:var(--theme-text-secondary, #69916b)}.route svg{color:var(--theme-text-muted, #b1bfb3)}.decision-form{border-top:1px solid var(--theme-border, #e9efe7);margin-top:20px;padding-top:17px}.decision-form input{width:100%;margin-bottom:12px}.decision-form>div{display:flex;gap:10px;flex-wrap:wrap}.inline-note{font-size:11px;color:var(--theme-text-muted, #98a89a);margin-top:15px;display:flex;align-items:center;gap:6px}.section-footnote{font-size:11px;color:var(--theme-text-muted, #91a194);margin-top:18px}.report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.report-card>.eyebrow,.report-card>h2,.report-card>p{margin-left:20px;margin-right:20px}.report-card>.eyebrow{display:block;margin-top:23px}.report-card>h2{font-size:19px;margin-top:11px}.report-card>p{font-size:10px;color:var(--theme-text-muted, #9cab9e);margin-top:7px}.report-stats{display:flex;justify-content:space-between;padding:28px 21px}.report-stats strong{display:block;font-size:23px;font-weight:500}.report-stats span{display:block;font-size:9px;color:var(--theme-text-muted, #98a69a);margin-top:7px}.journal-row{display:flex;align-items:center;gap:15px;padding:17px 23px;border-top:1px solid var(--theme-border, #edf2eb)}.journal-time{font-size:10px;min-width:105px;color:var(--theme-text-muted, #9eaca0)}.journal-row>div{flex:1}.journal-row strong{font-size:12px;font-weight:500;color:var(--theme-text-secondary, #627c69)}.journal-row p{font-size:10px;color:var(--theme-text-muted, #9aaa9d);margin-top:4px}.notification-row{display:flex;align-items:flex-start;gap:15px;padding:22px;border-top:1px solid var(--theme-border, #edf2eb)}.notification-row>div{flex:1}.notification-row strong{font-size:12px;color:var(--theme-text-secondary, #657e6b)}.notification-row p{font-size:12px;color:var(--theme-text-secondary, #8a9d8e);margin:7px 0}.notification-row small{font-size:10px}.settings-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:24px}.settings-form{padding-bottom:20px}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;border-top:1px solid var(--theme-border, #edf2eb)}.toggle-row strong{display:block;font-size:12px;color:var(--theme-text-secondary, #617a67);font-weight:500}.toggle-row small{display:block;font-size:10px;line-height:1.6;margin-top:5px}.toggle-row input{accent-color:var(--green);width:17px;height:17px;flex-shrink:0}.numeric-settings{padding:16px 22px;display:grid;gap:15px}.numeric-settings label{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:11px;color:var(--theme-text-secondary, #879a8b)}.numeric-settings input{width:80px}.settings-form>h3,.settings-form>p{margin:12px 22px}.route-editor{padding:14px 22px;border-bottom:1px solid var(--theme-border, #edf2eb);display:flex;gap:12px;flex-wrap:wrap}.route-editor>strong{width:100%;font-size:12px;color:var(--theme-text-secondary, #748b79);font-weight:500}.route-editor>label{font-size:10px;color:var(--theme-text-muted, #a1afa4);flex:1;min-width:150px}.route-editor select{display:block;width:100%;margin-top:6px;font-size:11px}.settings-save{padding:20px 22px 0}.integration-card{padding:23px;margin-bottom:20px}.integration-card>div{border-top:1px solid var(--theme-border, #edf2eb);margin-top:20px;padding-top:20px}.integration-card strong{font-size:12px;font-weight:550;color:var(--theme-text-secondary, #6e8774)}.integration-card .badge{float:right}.integration-card p{font-size:11px;color:var(--theme-text-muted, #99a99d);margin-top:13px}.drawer-backdrop,.modal-backdrop{position:fixed;inset:0;background:var(--theme-overlay, #152a2438);z-index:50;display:flex;justify-content:flex-end}.drawer{width:690px;max-width:100%;background:var(--theme-surface, #fff);box-shadow:-10px 0 50px var(--theme-shadow, #1a36271a);display:flex;flex-direction:column;height:100%}.drawer-top{display:flex;align-items:center;justify-content:space-between;padding:18px 25px;border-bottom:1px solid var(--theme-border, #e9efe8);flex-shrink:0}.drawer-top>span{font-size:10px;letter-spacing:1px;color:var(--theme-text-muted, #9daa9e)}.drawer-top>div{display:flex;gap:13px}.drawer-heading{padding:25px 28px 22px}.drawer-heading h2{font-size:22px;line-height:1.4;margin-top:14px;font-weight:550;color:var(--theme-text, #455d4d)}.drawer-heading>p{font-size:11px;color:var(--theme-text-muted, #9eada1);margin-top:10px}.drawer>.tabs{padding:0 28px;margin-bottom:0;flex-shrink:0}.drawer-body{overflow-y:auto;padding:26px 28px;flex:1}.task-facts{display:grid;grid-template-columns:1fr 1fr;gap:25px 22px;padding:0 0 30px;margin-bottom:25px;border-bottom:1px solid var(--theme-border, #ebf0e9)}.task-facts>div>span{display:block;color:var(--theme-text-muted, #99a99d);font-size:10px;margin-bottom:9px}.task-facts strong{font-size:12px;font-weight:550;color:var(--theme-text-secondary, #687f6d)}.drawer-body h3{color:var(--theme-text-secondary, #6b8371)}.description{white-space:pre-wrap;font-size:12px;color:var(--theme-text-muted, #94a498);margin-top:13px;line-height:1.8}.findings-box{background:var(--theme-warning-surface, #fbf7ef);border:1px solid var(--theme-border, #eee4d1);border-radius:6px;padding:18px;margin-top:25px}.findings-box h3{display:flex;align-items:center;gap:8px;color:var(--theme-warning, #b2996d)}.findings-box p{font-size:11px;color:var(--theme-warning, #b39c78);margin-top:10px}.drawer-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px;flex-wrap:wrap}.demo-action{border-top:1px dashed var(--theme-border, #e1e9dd);margin-top:35px;padding-top:18px;font-size:10px;color:var(--theme-text-muted, #a9b5a8)}.comment{display:flex;gap:12px;padding:18px 0;border-bottom:1px solid var(--theme-border, #edf2eb)}.comment>div{flex:1}.comment strong{display:flex;justify-content:space-between;gap:15px;font-size:11px;font-weight:500;color:var(--theme-text-secondary, #718879)}.comment small{font-size:9px}.comment p{font-size:12px;color:var(--theme-text-secondary, #879b8c);margin-top:10px;white-space:pre-wrap}.comment-form{margin-top:25px;display:flex;flex-direction:column;align-items:flex-end;gap:13px}.comment-form label{width:100%;font-size:11px;color:var(--theme-text-muted, #94a798)}textarea{resize:vertical;width:100%;min-height:85px;line-height:1.6;display:block;margin-top:8px}.explanation-form{padding:20px;background:var(--theme-surface-soft, #f8faf5);border:1px solid var(--theme-border, #e4edde);border-radius:6px;margin-bottom:18px}.explanation-form p{font-size:10px;color:var(--theme-text-muted, #9aab9c);margin:8px 0 15px}.explanation-form label{display:block;font-size:11px;color:var(--theme-text-secondary, #809584);margin-top:15px}.explanation-form .button{margin-top:17px}.in-drawer{padding:18px;margin-bottom:15px}.in-drawer .approval-header{align-items:center}.in-drawer .approval-context{grid-template-columns:1fr;gap:12px}.in-drawer .route{gap:12px}.decision-record{display:flex;gap:9px;font-size:11px;color:var(--theme-text-secondary, #829b86);margin:12px 0 20px}.decision-record small{display:block;font-size:10px;margin-top:5px}.modal-backdrop{z-index:60;align-items:center;justify-content:center;background:var(--theme-overlay, #14291d63);padding:20px}.modal{background:var(--theme-surface, white);border-radius:8px;padding:24px;width:530px;max-width:100%;max-height:95vh;overflow-y:auto}.modal>.panel-heading{padding:0 0 10px}.modal>p{font-size:11px;color:var(--theme-text-muted, #97aa9a);margin:10px 0}.modal>label{display:block;font-size:11px;color:var(--theme-text-secondary, #829a88);margin-top:21px}.modal>label>input{display:block;margin-top:10px;width:100%}.alert{display:flex;align-items:center;gap:10px;padding:14px 16px;border-radius:5px;font-size:12px;margin-bottom:17px}.alert.error{color:var(--theme-danger, #ac6456);background:var(--theme-danger-surface, #fff1ea);border:1px solid var(--theme-border, #efd8ca)}.alert>span{flex:1}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90vw;display:flex;gap:10px;align-items:center;background:var(--theme-accent-solid, #254c35);color:var(--theme-on-accent, #e3efdf);padding:15px 22px;border-radius:7px;box-shadow:0 6px 22px var(--theme-shadow, #1b3b2524);z-index:100;font-size:12px}.boot{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:var(--theme-text-secondary, #7d9382)}.boot h2{font-size:25px;letter-spacing:2px}.mobile-toggle{display:none}.source-banner{font-size:11px;color:var(--theme-text-secondary, #7e8d83);background:var(--theme-surface-raised, #eef3ed);border:1px solid var(--theme-border, #e0e8dd);padding:11px 15px;border-radius:5px;margin-bottom:20px}.source-fields{margin-top:25px;border-top:1px solid var(--theme-border, #e7eee3);padding-top:18px}.source-fields summary{cursor:pointer;color:var(--theme-text-secondary, #6c8673);font-weight:550}.source-fields dl{display:grid;grid-template-columns:170px 1fr;gap:12px;font-size:11px;line-height:1.6}.source-fields dt{color:var(--theme-text-muted, #99ab9d)}.source-fields dd{margin:0;color:var(--theme-text-secondary, #6f8878);white-space:pre-wrap;overflow-wrap:anywhere}.pagination{display:flex;gap:14px;align-items:center;justify-content:flex-end;padding:14px 21px;border-top:1px solid var(--line);font-size:11px;color:var(--theme-text-secondary, #8e9e92)}
@media(min-width:1600px){:root{font-size:14px}main{padding-top:39px}.overview-grid{grid-template-columns:minmax(0,2.5fr) minmax(290px,1fr)}.task-link strong{font-size:12px}.focus-panel td{padding-top:18px;padding-bottom:18px}.decision-preview{padding-top:20px;padding-bottom:20px}}
@media(max-width:1250px){.sidebar{width:210px;padding-left:12px;padding-right:12px}.workspace-main{margin-left:210px;width:calc(100% - 210px)}main{padding:25px 25px 0}.topbar{padding:0 25px}.overview-grid{grid-template-columns:minmax(0,1fr)}.composition{display:none}.metrics-grid{gap:10px}.metric{padding:16px}.metric-label{font-size:10px}.metric-footer{font-size:9px}.user-switch select{max-width:190px}.report-grid{grid-template-columns:repeat(2,1fr)}.settings-grid{grid-template-columns:1fr}.task-link{max-width:340px}}
@media(max-width:900px){.sidebar{width:180px}.brand{font-size:21px;padding:0 6px}.brand small{font-size:8px}.workspace{font-size:9px}.workspace small{font-size:8px}.workspace-main{margin-left:180px;width:calc(100% - 180px)}.breadcrumb>span{display:none}.user-switch{padding-left:10px}.user-switch select{max-width:155px}.topbar-right{gap:10px}.page-heading{align-items:flex-start}.page-heading h1{font-size:25px}.heading-actions .button{font-size:10px;padding:8px}.metrics-grid{grid-template-columns:repeat(2,1fr)}.metric-label{font-size:11px}.metric-footer{font-size:10px}.tabs{gap:20px}.approval-context{grid-template-columns:1fr;gap:12px}.report-grid{grid-template-columns:1fr}.journal-time{min-width:70px}.journal-row{gap:10px;padding:15px}}
@media(max-width:650px){.sidebar{display:none}.sidebar.mobile-open{display:flex;width:235px;top:64px;box-shadow:8px 0 25px var(--theme-shadow, #1c332a20)}.workspace-main{margin-left:0;width:100%}.topbar{height:64px;padding:0 15px}.mobile-toggle{display:inline-flex}.breadcrumb{gap:5px}.breadcrumb>svg{display:none}.breadcrumb>strong{font-size:10px}.topbar-right{gap:8px}.demo-label{display:none}.user-switch{border:0;padding-left:0;gap:6px}.user-switch .avatar{width:27px;height:27px;font-size:8px}.user-switch select{max-width:150px;font-size:10px}.user-switch label{font-size:8px}main{padding:25px 16px 0}.page-heading{display:block;margin-bottom:15px}.page-heading h1{font-size:26px}.page-heading p{font-size:11px}.heading-actions{margin-top:18px}.tabs{gap:22px;margin-bottom:19px}.metrics-grid{gap:10px}.metric{padding:16px 14px;gap:15px}.metric>strong{font-size:30px}.metric-label{font-size:10px}.metric-footer{font-size:9px}.panel-heading{padding:17px}.panel-heading h2{font-size:13px}.panel-heading p{font-size:9px}.panel-heading .text-button{font-size:10px}.table-scroll table{min-width:620px}.panel-footer{font-size:8px;padding:12px 15px}.panel-footer>span:last-child{max-width:45%;text-align:right}.decision-preview{padding:16px}.main-footer{font-size:8px;gap:20px}.info-banner{align-items:flex-start;padding:15px;font-size:10px}.info-banner>.text-button{display:none}.approval-card{padding:17px}.approval-title{font-size:13px}.approval-header{flex-direction:column;gap:9px}.deadline-change{gap:13px;padding:13px}.deadline-change strong{font-size:10px}.deadline-change small{display:none}.route strong{font-size:9px}.route small{font-size:8px}.journal-row{flex-wrap:wrap}.journal-row>div{min-width:160px}.journal-time{font-size:9px}.drawer-heading{padding:20px}.drawer-heading h2{font-size:19px}.drawer>.tabs{padding:0 20px}.drawer-body{padding:23px 20px}.task-facts{gap:23px 15px}.task-facts strong{font-size:11px}.task-facts .person{white-space:normal}.drawer-actions{justify-content:flex-start}.comment strong{flex-direction:column;gap:5px}.modal{padding:20px}.numeric-settings{padding:16px}.route-editor{padding:16px}.source-fields dl{grid-template-columns:1fr;gap:5px}.source-fields dd{margin-bottom:12px}}

/* Local MVP: clear hierarchy, comparable queues, readable task history. */
:root{--muted:var(--theme-text-muted, #69766d)} .button,.text-button,.tabs button{font-size:12px}.panel-heading p{font-size:12px;color:var(--muted)}table,.task-link strong{font-size:12px}th{font-size:11px;color:var(--theme-text-secondary, #657168)}.badge{font-size:11px}.panel-footer{font-size:11px;color:var(--theme-text-secondary, #69766d)}.task-id,.person small,td>small{font-size:10px}.task-link{max-width:520px}.task-link strong{line-height:1.6}.task-link:hover strong{text-decoration:underline;text-underline-offset:3px}.badge{white-space:normal}.task-panel td:nth-child(3){min-width:135px}.task-panel td:nth-child(4){min-width:120px}select,input,textarea{color:var(--theme-text, #29342f)}.dashboard-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.dashboard-toolbar .tabs{margin:0;flex:1}.dashboard-toolbar select,.report-builder select,.archive-filters select,.archive-filters input{padding:10px 12px;border:1px solid var(--theme-border, #dce3dd);border-radius:5px;background:var(--theme-surface, white);max-width:100%}.total-banner{display:flex;align-items:center;gap:30px;padding:24px 28px;border:1px solid var(--theme-border, #dce4dd);border-radius:8px;background:var(--theme-surface-raised, #eef3ef);margin-bottom:16px}.total-banner p{margin:6px 0;color:var(--theme-text, #52665a)}.total-number{display:flex;align-items:center;gap:20px;font-size:52px;letter-spacing:-2px;font-weight:600;border:0;background:transparent;color:var(--theme-text, #1d5143);padding:0}.total-number svg{color:var(--theme-text-secondary, #71927d)}.total-date{margin-left:auto;display:flex;gap:12px;align-items:center;color:var(--theme-text-secondary, #607568);font-size:12px;line-height:1.7}.queue-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.queue-card{background:var(--theme-surface, white);text-align:left;border:1px solid var(--theme-border, #e0e6e1);border-radius:7px;padding:17px 15px;display:flex;flex-direction:column;gap:12px;border-top:3px solid var(--theme-border-strong, #628977);min-width:0}.queue-card>span{display:flex;gap:6px;align-items:flex-start;justify-content:space-between;min-height:36px;font-size:12px;font-weight:550;line-height:1.5}.queue-card>strong{font-size:33px;font-weight:600;line-height:1.15;font-variant-numeric:tabular-nums}.queue-card small{font-size:11px;line-height:1.5;min-height:33px}.queue-card:hover{background:var(--theme-surface-soft, #f5f8f5);border-color:var(--theme-border, #a2b9a9)}.queue-overdue{border-top-color:var(--theme-border-strong, #b65e50)}.queue-overdue>strong{color:var(--theme-danger, #a84e41)}.queue-today{border-top-color:var(--theme-border-strong, #b59650)}.queue-today>strong{color:var(--theme-warning, #977632)}.queue-no_deadline{border-top-color:var(--theme-border-strong, #9a879c)}.queue-review{border-top-color:var(--theme-border-strong, #718caa)}.queue-completed{border-top-color:var(--theme-border, #b1c3b5)}.reconciliation{margin:16px 0 25px}.queue-strip{height:7px;display:flex;overflow:hidden;border-radius:5px;background:var(--theme-surface-raised, #e3e9e5)}.reconciliation p{margin-top:9px;font-size:12px;color:var(--theme-text-secondary, #68776d)}.workflow-signals{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.workflow-signals button{background:var(--theme-surface, white);border:1px solid var(--theme-border, #dfe6e0);border-radius:6px;display:flex;align-items:center;gap:10px;text-align:left;padding:16px;color:var(--theme-text, #546c5d)}.workflow-signals strong{font-size:21px;color:var(--theme-text, #283e30)}.workflow-signals svg:last-child{margin-left:auto}.metric-definition{margin:10px 0 24px;font-size:12px;color:var(--theme-text-secondary, #69766d)}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:20px;margin-bottom:24px}.focus-task{display:flex;align-items:center;gap:14px;width:100%;padding:15px 21px;background:var(--theme-surface, white);border:0;border-top:1px solid var(--theme-border, #edf0ed);text-align:left;color:var(--theme-text, #33463a)}.focus-task:hover{background:var(--theme-surface-soft, #f5f8f5)}.focus-task div{flex:1;min-width:0}.focus-task strong{font-size:12px;font-weight:550;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.focus-task small{display:block;margin-top:5px}.focus-task-id{color:var(--theme-text-secondary, #7f8b82);font-size:10px;min-width:40px}.deadline-chart{height:270px;padding:22px 18px 0;display:flex;gap:9px}.deadline-chart button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:12px;border:0;background:transparent;color:var(--theme-text, #4c6756);padding:0}.deadline-chart strong{font-size:15px;font-variant-numeric:tabular-nums}.bar-space{height:170px;width:100%;max-width:38px;display:flex;align-items:flex-end;background:var(--theme-surface-soft, #f6f8f6);border-radius:4px}.bar-space i{display:block;width:100%;background:var(--theme-accent, #729781);border-radius:3px 3px 0 0}.deadline-chart button:first-child i{background:var(--theme-warning, #b59650)}.deadline-chart button:hover i{background:var(--theme-accent-solid, #315d44)}.deadline-chart small{font-size:10px;white-space:nowrap}.chart-footer{padding:18px 21px;color:var(--theme-text-secondary, #69766d);font-size:11px;line-height:1.7;border-top:1px solid var(--theme-border, #edf0ed)}.team-summary{margin-top:22px}.number-link{font:inherit;font-size:14px;background:none;border:0;padding:7px 12px;border-radius:4px;color:var(--theme-text, #315c43);min-width:36px}.number-link:hover{background:var(--theme-surface-raised, #edf3ee)}.load-high{background:var(--theme-warning-surface, #fbf0e6);color:var(--theme-warning, #945b26);font-weight:600}.rich-history{padding-left:19px}.history-entry{position:relative;padding:0 0 28px 23px;border-left:1px solid var(--theme-border, #dce5de)}.history-node{position:absolute;width:9px;height:9px;border:2px solid white;background:var(--theme-accent, #628977);border-radius:50%;left:-5px;top:4px;box-shadow:0 0 0 1px var(--theme-shadow, #cad8cd)}.history-meta{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;font-size:11px;color:var(--theme-text-secondary, #69796d);margin-bottom:9px}.history-meta strong{font-weight:550;color:var(--theme-text, #3d5545)}.history-entry h3{font-size:14px;line-height:1.6}.history-text{margin:12px 0;padding:10px 13px;background:var(--theme-surface-soft, #f6f8f6);border-radius:5px}.history-text p{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:5px}.history-record{font-size:10px;color:var(--theme-text-secondary, #849188);display:block;margin-top:12px}.change-list{margin:12px 0;display:block;background:var(--theme-surface-soft, #f8faf8);border:1px solid var(--theme-border, #e2e8e3);border-radius:5px;padding:4px 12px}.change-list>div{padding:10px 0;border-bottom:1px solid var(--theme-border, #e3e9e4)}.change-list>div:last-child{border:0}.change-list dt{color:var(--theme-text-secondary, #708074);font-size:11px;margin-bottom:5px}.change-list dd{display:flex;flex-wrap:wrap;align-items:baseline;gap:9px;margin:0;font-size:12px;overflow-wrap:anywhere}.change-list del{color:var(--theme-danger, #94726b);text-decoration:none;max-width:100%;white-space:pre-wrap}.change-list ins{color:var(--theme-text, #2d6647);text-decoration:none;max-width:100%;white-space:pre-wrap}.review-actions{padding:20px;margin-top:26px;background:var(--theme-surface-soft, #f3f7f3);border:1px solid var(--theme-border, #dce6dc);border-radius:6px}.review-actions p{font-size:12px;color:var(--theme-text-secondary, #68796d);margin:8px 0 15px}.review-actions label,.task-editor label{display:flex;flex-direction:column;gap:7px;margin-bottom:15px;font-size:12px;font-weight:550}.review-actions textarea,.task-editor input,.task-editor select,.task-editor textarea{width:100%;padding:11px;border:1px solid var(--theme-border, #d6dfd8);border-radius:5px;background:var(--theme-surface, #fff)}.review-actions textarea{min-height:90px;resize:vertical}.task-editor{max-height:90vh;overflow-y:auto;width:min(660px,95vw)}.task-editor .panel-heading{padding:0 0 20px}.task-editor textarea{min-height:90px}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.report-builder{padding:24px;margin-bottom:22px;display:flex;justify-content:space-between;gap:24px;align-items:center}.report-builder p{max-width:620px;color:var(--theme-text-secondary, #69796d);font-size:12px;margin-top:8px}.report-builder-actions{display:flex;gap:10px;align-items:center;flex-shrink:0}.report-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:22px;align-items:start}.archive-filters{display:flex;flex-direction:column;gap:10px;padding:0 18px 18px}.archive-item{display:flex;flex-direction:column;gap:7px;width:100%;border:0;border-top:1px solid var(--theme-border, #e6ece7);padding:17px 20px;text-align:left;background:var(--theme-surface, white);color:var(--theme-text, #344b3b)}.archive-item.selected{background:var(--theme-surface-raised, #edf4ee);box-shadow:inset 3px 0 var(--theme-shadow, #406e50)}.archive-item:hover{background:var(--theme-surface-soft, #f1f6f2)}.archive-item strong{font-size:12px;font-weight:550}.archive-item span{font-size:12px}.report-archive .section-footnote{padding:16px}.report-numbers{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;padding:4px 22px 22px}.report-numbers>div{display:flex;flex-direction:column;gap:7px}.report-numbers strong{font-size:27px;font-weight:550;font-variant-numeric:tabular-nums}.report-numbers span{font-size:11px;color:var(--theme-text-secondary, #69796d);line-height:1.5}.report-rows{max-height:600px;overflow:auto}.report-rows th{position:sticky;top:0}.report-rows td:first-child{min-width:240px}.report-rows strong{display:block;font-size:12px;font-weight:500;line-height:1.6}.report-explanation{padding:0 22px 20px;font-size:12px;color:var(--theme-text-secondary, #68766c)}.automation-settings{padding:23px;margin-bottom:24px}.automation-settings .filters{padding-left:0;padding-right:0}.automation-run{font-size:11px;color:var(--theme-text-secondary, #65756b);padding:10px 0;border-top:1px solid var(--theme-border, #edf1ed);margin-top:10px}.modal-backdrop{z-index:80}.source-banner{color:var(--theme-text-secondary, #647669)}.task-panel .tabs{scrollbar-width:thin}
@media(min-width:1650px){.queue-card>span{min-height:18px}}
@media(max-width:1250px){.queue-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.queue-card>span{min-height:18px}.report-builder{align-items:flex-start;flex-direction:column}.report-layout{grid-template-columns:250px minmax(0,1fr)}.dashboard-columns{grid-template-columns:1fr}.deadline-chart{height:230px}.bar-space{height:135px}}
@media(max-width:850px){.dashboard-toolbar{align-items:stretch;flex-direction:column}.total-banner{gap:20px;padding:20px}.total-date{display:none}.workflow-signals{grid-template-columns:1fr}.report-layout{grid-template-columns:1fr}.report-archive{max-height:360px;overflow:auto}.report-numbers{grid-template-columns:repeat(3,1fr)}}
@media(max-width:520px){.queue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.queue-card{padding:14px}.total-number{font-size:42px}.total-banner{align-items:flex-start;flex-direction:column;gap:12px}.report-builder-actions{flex-direction:column;align-items:stretch;width:100%}.report-numbers{grid-template-columns:repeat(2,1fr)}.editor-grid{grid-template-columns:1fr}.history-meta{flex-direction:column}.page-heading{align-items:flex-start}.focus-task-id{display:none}}

.automation-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}.automation-heading p{margin-top:8px;font-size:12px}.automation-plan{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:22px 0}.automation-plan>div{background:var(--theme-surface-soft, #f4f7f4);padding:18px;display:flex;flex-direction:column;gap:9px;border-radius:6px}.automation-plan strong{font-size:27px;font-weight:550;color:var(--theme-text, #29583d)}.automation-plan span{font-weight:550;font-size:13px}.automation-next{font-size:12px;margin:8px 0}.automation-controls{display:flex;gap:12px;margin:18px 0}.automation-log{margin-top:20px;border-top:1px solid var(--theme-border, #e1e7e2);padding-top:17px}.automation-log summary{cursor:pointer;color:var(--theme-text, #466650)}.automation-run{display:flex;justify-content:space-between;gap:15px;align-items:center}.automation-run strong{font-size:12px}.report-export{display:flex;gap:8px;flex-wrap:wrap}.report-detail>.panel-heading{align-items:flex-start;flex-wrap:wrap}.report-tabs{margin:0 22px}.report-insights{padding:22px}.report-insights>h3{font-size:15px;margin:8px 0 14px}.report-insights>.table-scroll{margin:20px -22px 26px}.report-insights p.muted{font-size:12px}.report-findings{padding:0 0 0 20px;margin:0 0 22px;line-height:1.8}.report-findings li{padding:4px 0}.quality-cards,.comparison-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:20px 0 12px}.quality-cards>div,.comparison-cards>div{padding:15px;border:1px solid var(--theme-border, #e1e7e2);border-radius:5px;display:flex;flex-direction:column;gap:8px}.quality-cards strong,.comparison-cards strong{font-size:25px;font-weight:550}.quality-cards span,.comparison-cards span{font-size:11px;color:var(--theme-text-secondary, #65776b);line-height:1.5}.report-insights>p.muted{margin-bottom:25px}.report-urgent>div{display:flex;gap:15px;padding:14px 0;border-bottom:1px solid var(--theme-border, #e7ece8)}.report-urgent>div>span{font-size:10px;color:var(--theme-text-secondary, #76877b);padding-top:3px}.report-urgent strong{font-size:12px;line-height:1.65;font-weight:550}.report-urgent small{display:block;margin-top:7px}.report-urgent{margin-bottom:22px}.report-insights .source-banner{padding:12px;line-height:1.6}@media(max-width:700px){.automation-heading{align-items:flex-start;flex-direction:column}.automation-plan{grid-template-columns:1fr}.quality-cards,.comparison-cards{grid-template-columns:repeat(2,1fr)}.report-insights{padding:16px}}

.archive-filters label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--theme-text-secondary, #65776b)}.archive-pagination{display:flex;align-items:center;justify-content:space-between;padding:14px;gap:8px}.archive-pagination span{font-size:11px;color:var(--theme-text-secondary, #65776b)}.archive-pagination .button{padding:7px 10px}

.action-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:24px}.action-metrics>div{padding:22px;background:var(--theme-surface, white);border:1px solid var(--theme-border, #dce5dd);border-radius:7px;display:flex;flex-direction:column;gap:10px}.action-metrics strong{font-size:32px;font-weight:550}.action-metrics span{font-size:12px;color:var(--theme-text-secondary, #617568)}.action-row{padding:20px 23px;display:flex;justify-content:space-between;align-items:center;gap:24px;border-top:1px solid var(--theme-border, #e7ece8)}.action-row>div{min-width:0}.action-row strong{display:block;font-size:13px;line-height:1.7}.action-row p{font-size:12px;color:var(--theme-text-secondary, #637568);margin:6px 0}.action-row .eyebrow{display:block;font-size:10px;margin-bottom:5px}.management-focus{display:flex;justify-content:space-between;gap:20px;align-items:center;background:var(--theme-surface-raised, #eaf1eb);border:1px solid var(--theme-border, #d4e1d7);padding:20px 24px;border-radius:7px;margin-bottom:22px}.management-focus p{color:var(--theme-text-secondary, #607767);font-size:12px;margin-top:7px}.management-focus>span{font-size:12px;white-space:nowrap}.bot-workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:24px;align-items:start}.bot-preview{background:var(--theme-surface-raised, #e9eeea);padding:25px}.bot-message{padding:21px;background:var(--theme-surface, white);border-radius:10px 10px 10px 2px;white-space:pre-wrap;line-height:1.7;font-size:13px;overflow-wrap:anywhere}.bot-buttons{margin-top:9px}.bot-buttons>div{display:flex;gap:7px;margin-bottom:7px}.bot-buttons button{flex:1;padding:13px 8px;border:1px solid var(--theme-border, #cddbcf);border-radius:5px;color:var(--theme-text, #315c40);background:var(--theme-surface-soft, #f5f9f5);font-size:12px}.bot-buttons button:hover{background:var(--theme-surface-raised, #dcebdd)}.bot-preview form{margin-top:22px}.bot-preview textarea{width:100%;min-height:100px;border:1px solid var(--theme-border, #cedbd2);border-radius:6px;padding:14px;resize:vertical;margin-bottom:10px}.pilot-controls{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.submission-history article{padding:18px;border:1px solid var(--theme-border, #dfe7e0);border-radius:6px;margin-top:14px;background:var(--theme-surface-soft, #fafcf9)}.submission-history small{display:block;margin:8px 0}.submission-history p,.submission-history blockquote{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.8}.submission-history blockquote{border-left:3px solid var(--theme-border-strong, #ba9275);margin:15px 0 0;padding:8px 14px;background:var(--theme-warning-surface, #f7f1e9)}.sidebar nav{gap:2px}.sidebar nav button{padding-top:10px;padding-bottom:10px}.sidebar{overflow-y:auto}.sidebar-bottom{padding-top:20px}@media(max-width:1150px){.bot-workspace{grid-template-columns:1fr}.action-metrics{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.action-row,.management-focus{align-items:flex-start;flex-direction:column}.action-row .button{white-space:normal}.bot-preview{padding:15px}}

/* Small manufacturing signature, with quiet motion and clear entry points. */
.cap-mark{display:inline-flex;width:40px;height:40px;flex-shrink:0;align-items:center;justify-content:center;color:var(--theme-text-muted, #b9dec7);background:var(--theme-accent-solid, #285547);border:1px solid var(--theme-border, #ffffff20);border-radius:12px}.cap-mark svg{width:34px;height:34px}.workspace-mark .cap-mark{width:28px;height:28px;background:transparent;border:0}.workspace-mark .cap-mark svg{width:27px;height:27px}.boot .cap-mark{width:74px;height:74px;border-radius:22px;box-shadow:0 10px 30px var(--theme-shadow, #1d51431a)}.boot .cap-mark svg{width:56px;height:56px}.cap-loading svg{animation:cap-breathe 1.8s ease-in-out infinite}.boot p{color:var(--theme-text-secondary, #66796e)}.start-path{display:flex;gap:12px;margin:0 0 22px}.start-path button{display:flex;align-items:center;gap:13px;flex:1;text-align:left;padding:17px 18px;border:1px solid var(--theme-border, #dce6df);border-radius:10px;background:var(--theme-surface, #fff);color:var(--theme-text, #274c3a)}.start-path button:hover{background:var(--theme-surface-raised, #eef5ef);border-color:var(--theme-border, #9db9a6)}.start-path button>span{font-size:11px;font-variant-numeric:tabular-nums;color:var(--theme-text-secondary, #7b9585)}.start-path button>div{flex:1}.start-path strong{display:block;font-size:12px;font-weight:600}.start-path small{display:block;margin-top:6px;font-size:11px;color:var(--theme-text-secondary, #6a7b70)}.panel{border-radius:10px}.queue-card{transition:background .16s,border-color .16s}.queue-card:hover{background:var(--theme-surface-soft, #f4f8f4)}.source-banner{border-radius:8px}button:focus-visible,a:focus-visible{outline:2px solid var(--theme-focus, #649978);outline-offset:3px}@keyframes cap-breathe{0%,100%{transform:translateY(0) rotate(-8deg)}50%{transform:translateY(-4px) rotate(8deg)}}@media(prefers-reduced-motion:reduce){.cap-loading svg{animation:none}}@media(max-width:850px){.start-path{flex-direction:column}.start-path button{width:100%}}
/* Restrained working UI. Information cards and navigation remain intact. */
:root{--green:var(--theme-accent, #285347);--line:var(--theme-border, #e1e5e2);--muted:var(--theme-text-muted, #69756e);--red:var(--theme-danger, #a4473c);color:var(--theme-text, #27312c);background:var(--theme-surface-soft, #f5f6f5);font-family:"Segoe UI",Arial,sans-serif}
.sidebar{background:var(--theme-surface, #fff);border-color:var(--line);padding-top:26px}
.brand{font-size:22px;letter-spacing:.5px}
.brand small{font-size:10px;color:var(--theme-text-secondary, #718077);letter-spacing:0}
.brand .cap-mark{width:35px;height:35px;border-radius:7px;background:var(--theme-accent-solid, #285347)}
.brand .cap-mark svg{width:30px;height:30px}
.workspace{background:var(--theme-surface-soft, #f6f7f6);border:0;border-radius:4px;margin-top:27px;margin-bottom:23px;padding:12px 10px;font-weight:500}
.workspace small{font-size:10px;color:var(--theme-text-secondary, #748078)}
.nav-label{font-size:10px;letter-spacing:.7px;color:var(--theme-text-secondary, #77847c)}
.sidebar nav{gap:3px}
.sidebar nav button{font-size:12px;padding:11px 12px;color:var(--theme-text, #59665e);border-radius:4px;position:relative}
.sidebar nav button svg{width:17px;height:17px;stroke-width:1.65}
.sidebar nav button:hover{background:var(--theme-surface-soft, #f3f5f3)}
.sidebar nav button.active{background:var(--theme-surface-raised, #edf3ef);color:var(--theme-text, #214e3e);font-weight:600}
.sidebar nav button.active:after{content:"";position:absolute;left:0;top:10px;bottom:10px;width:2px;background:var(--theme-accent-solid, #37644f)}
.sidebar nav button b{background:var(--theme-surface-raised, #e1e9e3);color:var(--theme-text, #375c45);border-radius:3px;font-size:10px}
.sidebar-note{color:var(--theme-text-secondary, #758279);font-size:10px;line-height:1.7}
.topbar{height:68px;background:var(--theme-surface, #fff);padding-left:32px;padding-right:32px}
.breadcrumb{font-size:12px;color:var(--theme-text-secondary, #77817a)}
.breadcrumb strong{color:var(--theme-text, #34423a)}
.user-switch select{font-size:12px;font-weight:500}
.demo-label{font-size:9px;letter-spacing:.5px;background:var(--theme-warning-surface, #faf9f3);border-color:var(--theme-border, #e5e0cd);color:var(--theme-warning, #817346)}
main{max-width:1540px;padding:30px 32px 36px}
.page-heading{margin-bottom:23px;align-items:flex-start}
.page-heading h1{font-size:27px;font-weight:600;letter-spacing:-.55px;color:var(--theme-text, #24352a)}
.page-heading .eyebrow{font-size:10px;letter-spacing:.6px;color:var(--theme-text-secondary, #748078);margin-bottom:8px}
.page-heading p{font-size:12px;color:var(--theme-text-secondary, #67756c);margin-top:8px;line-height:1.65}
.heading-actions{padding-top:6px}
.button{min-height:36px;border-radius:4px;font-size:12px;font-weight:500;padding:9px 13px}
.button.secondary{border-color:var(--theme-border, #d8dfd9);color:var(--theme-text, #43584a)}
.button.primary{background:var(--theme-accent-solid, #285347);border-color:var(--theme-border-strong, #285347)}
.button.primary:hover{background:var(--theme-accent-solid, #1c4237)}
.text-button{font-size:12px;font-weight:500;color:var(--theme-text, #3d6450)}
.start-path{gap:12px;margin-bottom:18px}
.start-path button{border-radius:5px;padding:15px 16px;border-color:var(--theme-border, #e0e5e1);background:var(--theme-surface, #fff);gap:12px}
.start-path button>span{color:var(--theme-text-secondary, #7d8a81);font-size:10px;border-right:1px solid var(--theme-border, #e4e8e5);padding-right:12px}
.start-path strong{font-size:12px;font-weight:600;color:var(--theme-text, #344b3c)}
.start-path small{font-size:11px;color:var(--theme-text-secondary, #758078);line-height:1.5}
.start-path button>svg{width:14px;color:var(--theme-text-secondary, #789080)}
.start-path button:hover{background:var(--theme-surface-soft, #f8faf8);border-color:var(--theme-border, #b8c9bd)}
.source-banner{border:0;border-left:2px solid var(--theme-border, #cad7ce);background:var(--theme-surface-raised, #eff3f0);border-radius:0;padding:10px 13px;font-size:11px;color:var(--theme-text-secondary, #69766d);line-height:1.65;margin-bottom:20px}
.management-focus{background:var(--theme-surface, #fff);border-color:var(--theme-border, #dfe5e0);border-left:3px solid var(--theme-border-strong, #9baea0);border-radius:4px;padding:16px 19px;margin-bottom:20px}
.management-focus strong{font-size:13px;font-weight:600;color:var(--theme-text, #334b3b)}
.management-focus p{font-size:11px;color:var(--theme-text-secondary, #778177);margin-top:5px}
.management-focus>span{font-size:11px;color:var(--theme-text-secondary, #6b756c)}
.tabs{gap:25px;border-color:var(--theme-border, #dce3dd)}
.tabs button{font-size:12px;color:var(--theme-text-secondary, #6c786f);padding-top:12px;padding-bottom:12px;font-weight:500}
.tabs button.selected{font-weight:600}
.dashboard-toolbar{margin-bottom:20px}
.dashboard-toolbar select,.report-builder select,.archive-filters select,.archive-filters input{border-radius:4px;font-size:12px;color:var(--theme-text, #465b4d);border-color:var(--theme-border, #d8e0d9)}
.total-banner{background:var(--theme-surface, #fff);border:1px solid var(--theme-border, #dce3dd);border-radius:5px;padding:22px 25px;gap:30px;margin-bottom:13px}
.total-banner .eyebrow{color:var(--theme-text-secondary, #748177);font-size:10px;letter-spacing:.7px}
.total-number{font-size:46px;font-weight:550;letter-spacing:-1.7px;color:var(--theme-text, #243d2d);gap:14px}
.total-number svg{width:18px;color:var(--theme-text-secondary, #859a8b)}
.total-banner strong{font-weight:600}
.total-banner p{font-size:12px;color:var(--theme-text-secondary, #607164)}
.total-banner small{font-size:11px;color:var(--theme-text-secondary, #7a857c)}
.total-date{color:var(--theme-text-secondary, #738077)}
.queue-grid{gap:12px}
.queue-card{border:1px solid var(--theme-border, #dce3dd)!important;border-top-width:1px!important;border-radius:5px;padding:18px 16px;gap:14px;background:var(--theme-surface, #fff);box-shadow:none}
.queue-card>span{font-size:12px;font-weight:500;color:var(--theme-text, #55685a);line-height:1.5}
.queue-card>span svg{width:13px;color:var(--theme-text-muted, #94a297);margin-top:2px}
.queue-card>strong{font-size:34px;font-weight:550;letter-spacing:-.7px;color:var(--theme-text, #304437)}
.queue-card.queue-overdue>strong{color:var(--theme-danger, #aa5146)}
.queue-card.queue-today>strong{color:var(--theme-warning, #997736)}
.queue-card small{font-size:11px;color:var(--theme-text-secondary, #78857b);line-height:1.6}
.queue-card:hover{background:var(--theme-surface-soft, #fafcf9);border-color:var(--theme-border, #a8beb0)!important}
.queue-strip{height:5px;border-radius:2px;opacity:.8}
.reconciliation p,.metric-definition{font-size:11px;color:var(--theme-text-secondary, #79847b);line-height:1.65}
.reconciliation{margin-top:14px;margin-bottom:22px}
.workflow-signals{gap:12px}
.workflow-signals button{border-radius:5px;padding:14px 17px;color:var(--theme-text-secondary, #63776a);border-color:var(--theme-border, #dfe5e0)}
.workflow-signals strong{font-size:22px;font-weight:550;color:var(--theme-text, #344b3c)}
.workflow-signals span{font-size:12px}
.workflow-signals svg:first-child{width:17px;stroke-width:1.6}
.panel{border-radius:5px;border-color:var(--theme-border, #dfe5e0);box-shadow:none}
.panel-heading{padding:20px 22px;gap:15px}
.panel-heading h2{font-size:14px;font-weight:600;letter-spacing:-.15px;color:var(--theme-text, #304536)}
.panel-heading p{font-size:11px;color:var(--theme-text-secondary, #758178);line-height:1.6;margin-top:5px}
table{font-size:12px;color:var(--theme-text, #475b4e)}
th{background:var(--theme-surface-soft, #f6f8f5);font-size:11px;color:var(--theme-text-secondary, #68796c);font-weight:500;padding-top:12px;padding-bottom:12px;border-color:var(--theme-border, #e1e7e1)}
td{padding-top:15px;padding-bottom:15px;border-color:var(--theme-border, #e8ece7);line-height:1.55}
tbody tr:hover{background:var(--theme-surface-soft, #f7faf6)}
.task-link{max-width:440px}
.task-link strong{font-size:12px;font-weight:500;line-height:1.65;color:var(--theme-text, #304b39)}
.task-id{font-size:10px;color:var(--theme-text-secondary, #819184);margin-bottom:5px}
.task-id>span{font-size:9px;color:var(--theme-text-secondary, #839486)}
.person small,td>small{font-size:10px;color:var(--theme-text-secondary, #809084);line-height:1.5}
.person{gap:9px}
.avatar{background:var(--theme-surface-raised, #eef2ec);color:var(--theme-text-secondary, #637d68);border-color:var(--theme-border, #e0e7dc)}
.badge{font-size:10px;padding:4px 7px;border-radius:3px}
.badge.overdue,.badge.rejected,.badge.stale,.badge.escalated{background:var(--theme-danger-surface, #f9efec);color:var(--theme-danger, #a4594a)}
.badge.pending,.badge.warning,.badge.review{background:var(--theme-warning-surface, #f7f3e8);color:var(--theme-warning, #91763b)}
.badge.completed,.badge.approved,.badge.answered,.badge.resolved{background:var(--theme-surface-raised, #edf3e9);color:var(--theme-text-secondary, #5e7b56)}
.focus-task{padding-top:16px;padding-bottom:16px}
.focus-task strong{font-size:12px;font-weight:500;line-height:1.65}
.focus-task small{font-size:11px;color:var(--theme-text-secondary, #768673)}
.focus-task-id{font-size:10px;color:var(--theme-text-secondary, #8b9b86)}
.deadline-chart strong{font-weight:550;color:var(--theme-text, #51654c)}
.deadline-chart small{font-size:11px;color:var(--theme-text-secondary, #788773)}
.chart-footer,.panel-footer{font-size:10px;color:var(--theme-text-secondary, #7b8b75);background:var(--theme-surface, #fcfdfb);line-height:1.6}
.action-metrics>div{padding:20px;border-radius:5px;box-shadow:none}
.action-metrics strong{font-size:30px;font-weight:550}
.report-numbers strong{font-size:26px;font-weight:550}
.report-numbers span{color:var(--theme-text-secondary, #6f8067)}
.report-builder,.automation-settings{border-radius:5px}
.archive-item{padding:16px 19px}
.archive-item.selected{background:var(--theme-surface-raised, #f0f5ec);box-shadow:inset 2px 0 var(--theme-shadow, #6f8e5b)}
.bot-preview{background:var(--theme-surface-raised, #f0f3ed);padding:23px}
.bot-message{border:1px solid var(--theme-border, #e0e6d9);border-radius:6px;box-shadow:none;color:var(--theme-text, #354d2d);font-size:13px;line-height:1.8}
.bot-buttons button{border-radius:4px;background:var(--theme-surface-soft, #fafcf7);border-color:var(--theme-border, #d5dfcb);color:var(--theme-text, #4c683e)}
.task-panel{box-shadow:-12px 0 40px var(--theme-shadow, #24362a14)}
.boot .cap-mark{box-shadow:none;border-radius:12px}
@media(max-width:1250px){main{padding:26px 24px 30px}.topbar{padding-left:24px;padding-right:24px}.queue-grid{gap:10px}}
@media(max-width:850px){.page-heading{flex-wrap:wrap}.heading-actions{padding-top:0}.start-path{gap:9px}.total-banner{gap:20px;padding:20px}.queue-card{padding:16px}.management-focus>span{white-space:normal}}
@media(max-width:650px){main{padding:22px 15px 28px}.topbar{height:64px;padding:0 15px}.page-heading h1{font-size:24px}.start-path button{padding:13px 15px}.panel-heading{padding:17px 16px}.total-banner{gap:14px}.queue-card{padding:15px 13px}.queue-card>strong{font-size:30px}.sidebar.mobile-open{box-shadow:6px 0 20px var(--theme-shadow, #263b2614)}.bot-preview{padding:14px}}

.action-metrics button{background:var(--theme-surface, #fff);border:1px solid var(--theme-border, #dfe5e0);border-radius:5px;padding:20px;text-align:left;display:flex;flex-direction:column;gap:10px;color:var(--theme-text, #334b3c)}.action-metrics button:hover,.action-metrics button.selected{background:var(--theme-surface-soft, #f1f6f1);border-color:var(--theme-border, #9eb9a7)}.action-metrics button strong{font-size:30px;font-weight:550}.action-metrics button span{font-size:12px;color:var(--theme-text-secondary, #657568)}

.login-page{min-height:100vh;max-width:none;display:grid;place-items:center;padding:24px;background:var(--theme-surface-soft, #f2f5f1)}.login-card{width:min(100%,400px);display:flex;flex-direction:column;gap:19px;background:var(--theme-surface, #fff);border:1px solid var(--theme-border, #dfe5de);border-radius:7px;padding:32px;box-shadow:0 14px 45px var(--theme-shadow, #273d2b0d)}.login-card h1{font-size:25px}.login-card p{font-size:12px;color:var(--theme-text-secondary, #6a786c);margin-top:7px}.login-card label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:550;color:var(--theme-text, #4a5c4d)}.login-card input{height:41px;padding:10px 12px;border:1px solid var(--theme-border, #ced9ce);border-radius:4px;font-size:14px}.login-card .button{width:100%;height:41px}.login-card .login-error{color:var(--theme-danger, #a4473c)}.user-switch strong{display:block;font-size:12px;font-weight:550}.user-switch small{display:block;margin-top:3px;font-size:10px}.user-switch .text-button{margin-left:10px}
.route-stage{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 14px;margin:14px 0;background:var(--theme-surface-soft, #f2f6f4);border:1px solid var(--theme-border, #dce7e0);border-radius:9px;font-size:13px}
.route-stage span{color:var(--theme-text, #476058)}
.clarification-thread{border-left:3px solid var(--theme-border-strong, #b79046);background:var(--theme-warning-surface, #fbf8f1);padding:10px 14px;margin:14px 0;font-size:13px}
.clarification-thread p{margin:5px 0 11px;white-space:pre-wrap}
.clarification-thread p:last-child{margin-bottom:0}

.date-filter{display:flex;align-items:center;gap:7px;color:var(--theme-text-secondary, #657568);font-size:12px;white-space:nowrap}.date-filter input{min-width:135px;max-width:150px;height:36px;padding:6px 8px;border:1px solid var(--theme-border, #d9e2d9);border-radius:4px;background:var(--theme-surface, #fff);color:var(--theme-text, #304733)}

.manager-action-note{padding:10px 13px;border-left:3px solid var(--theme-border-strong, #77977e);background:var(--theme-surface-soft, #f3f7f2);color:var(--theme-text, #4d6353);font-size:12px;line-height:1.55}
.freshness { display:flex; flex-wrap:wrap; gap:8px 22px; margin:8px 0 0; }
.freshness dd { margin:3px 0 0; font-weight:600; }
.automation-settings .source-banner input { max-width:100%; width:24rem; }
:root { color-scheme: light; }
:root[data-theme="dark"] {
 color-scheme: dark;
 --theme-surface: #1b2621;
 --theme-surface-soft: #19231e;
 --theme-surface-raised: #283a30;
 --theme-text: #e5eee8;
 --theme-text-secondary: #bfcec3;
 --theme-text-muted: #9eb2a5;
 --theme-on-accent: #f3faf5;
 --theme-border: #35473c;
 --theme-border-strong: #648571;
 --theme-accent: #90c8a4;
 --theme-accent-solid: #345f49;
 --theme-danger: #f0a094;
 --theme-danger-surface: #3c2926;
 --theme-warning: #e3c17d;
 --theme-warning-surface: #383223;
 --theme-info: #a1bedf;
 --theme-info-surface: #273442;
 --theme-focus: #a7d6b8;
 --theme-overlay: #050c09b8;
 --theme-shadow: #00000045;
 color: var(--theme-text);
 background: #141c19;
}
[data-theme="dark"] body { background: #141c19; }
[data-theme="dark"] :is(input,select,textarea,option,optgroup) {
 background-color: #17211b;
 color: var(--theme-text);
 border-color: var(--theme-border);
 accent-color: var(--theme-accent);
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: #93a69a; opacity: 1; }
[data-theme="dark"] :is(input,textarea):autofill {
 box-shadow: 0 0 0 100px #23392b inset;
 -webkit-text-fill-color: var(--theme-text);
}
[data-theme="dark"] :is(.button.primary,.toast) { color: #f3faf5; }
[data-theme="dark"] .button.primary:hover { background: #426f55; }
[data-theme="dark"] .button.secondary:hover { background: #304638; }
[data-theme="dark"] :is(.sidebar nav button.active,.tabs button.selected,.text-button,.number-link) { color: var(--theme-accent); }
[data-theme="dark"] .sidebar nav button.active { background: #2a4032; }
[data-theme="dark"] .cap-mark { color: #b9dec7; background: #285347; }
[data-theme="dark"] .workspace-mark .cap-mark { background: transparent; }
[data-theme="dark"] .cap-mark svg { color: inherit; }
[data-theme="dark"] .queue-card { border-color: var(--theme-border) !important; }
[data-theme="dark"] .queue-card:hover { border-color: #7ca98b !important; }
[data-theme="dark"] .red-text { color: var(--theme-danger) !important; }
[data-theme="dark"] .badge { border-color: transparent; }
[data-theme="dark"] .badge:is(.completed,.approved,.answered,.resolved) { background: #283d2c; color: #add29f; }
[data-theme="dark"] .badge:is(.active,.sent) { background: #263e36; color: #a4d3bb; }
[data-theme="dark"] ::selection { background: #486e54; color: #fff; }
[data-theme="dark"] * { scrollbar-color: #536a5b #19231e; }

.theme-toggle {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 flex: 0 0 auto;
 width: 42px;
 height: 42px;
 padding: 0;
 border: 1px solid #dce4dd;
 border-radius: 11px;
 background: #f2f5f1;
 transition: background .15s, border-color .15s;
}
.theme-toggle:hover { background: #e5ede5; border-color: #a4b9aa; }
.theme-cap { width: 38px; height: 38px; transition: transform .18s ease; }
.theme-toggle:hover .theme-cap { transform: rotate(-10deg) translateY(-1px); }
.theme-toggle:active .theme-cap { transform: rotate(5deg); }
.dark-cap {
 --cap-body-start: #53665b; --cap-body-mid: #293b31; --cap-body-end: #17261e;
 --cap-top-start: #718477; --cap-top-end: #31483a;
 --cap-edge: #182c20; --cap-ridge: #7e9483; --cap-highlight: #a8b9aa; --cap-shadow: #1e32222b;
}
.light-cap {
 --cap-body-start: #f3f0dc; --cap-body-mid: #d9ddca; --cap-body-end: #9ba99a;
 --cap-top-start: #fffdf0; --cap-top-end: #d7e0cc;
 --cap-edge: #7b907d; --cap-ridge: #f7fae9; --cap-highlight: #ffffff; --cap-shadow: #00000038;
}
[data-theme="dark"] .theme-toggle { background: #29392e; border-color: #4b6453; }
[data-theme="dark"] .theme-toggle:hover { background: #354c3d; border-color: #8cad95; }
.login-brand { display: flex; justify-content: space-between; align-items: center; }
@media (max-width:650px) {
 .theme-toggle { width: 34px; height: 34px; border-radius: 9px; }
 .theme-cap { width: 32px; height: 32px; }
 .topbar-right { gap: 6px; }
 .user-switch > div { min-width: 0; }
 .user-switch strong { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (prefers-reduced-motion:reduce) {
 .theme-cap { transition: none; }
 .theme-toggle:hover .theme-cap,.theme-toggle:active .theme-cap { transform: none; }
}
@media print {
 :root[data-theme="dark"] { color-scheme: light; }
 .theme-toggle { display: none; }
}
.quality-filters{flex-wrap:wrap;align-items:end}.quality-filters label{display:flex;flex-direction:column;gap:7px;font-size:11px;max-width:100%}.quality-filters select{max-width:260px}.quality-findings{padding-left:0;list-style:none;display:grid;gap:8px}.quality-findings .badge{white-space:normal;line-height:1.6}.quality-plan{display:block;margin-top:10px;line-height:1.7}
.planning-facts{padding:14px;margin:0 0 20px;border:1px solid var(--line);border-radius:6px}.planning-facts p{margin-top:8px;font-size:12px}
.task-reminders{border-top:1px solid var(--line);margin-top:28px;padding-top:22px}.task-reminders>p{font-size:11px;margin-top:10px;line-height:1.8}.task-reminders form{display:grid;gap:14px;margin:20px 0}.task-reminders form>label:not(.reminder-check),.reminder-times label{display:flex;flex-direction:column;gap:7px;font-size:12px}.reminder-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:0;padding:12px 0;border:0;min-width:0}.reminder-days legend{font-size:12px;padding:0}.reminder-days button{min-height:40px;padding:5px 0;border:1px solid var(--line);border-radius:5px;background:var(--theme-surface,#fff);color:var(--theme-text-secondary,#506257)}.reminder-days button[aria-pressed="true"]{background:var(--theme-surface-raised,#e1eee5);color:var(--theme-accent,#285347);border-color:var(--theme-accent,#648571);font-weight:600}.reminder-times{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.reminder-times label{min-width:110px}.reminder-check{display:flex;align-items:center;gap:9px;font-size:12px}.reminder-check input{margin:0}.task-reminders form>.button{justify-self:start}.reminder-schedules article{border:1px solid var(--line);padding:14px;border-radius:5px;margin:12px 0;font-size:12px}.reminder-schedules article p{margin:8px 0}.task-reminders details{font-size:11px;line-height:1.8;margin:18px 0}.task-reminders summary{cursor:pointer}.task-reminders details p{padding:8px 0;border-bottom:1px solid var(--line)}
.written-rules{margin:20px 22px;padding-top:20px;border-top:1px solid var(--line)}.written-rules p{font-size:11px;margin:10px 0;line-height:1.7}.written-rules ul{padding-left:16px}.written-rules li{margin:10px 0}.written-rules li .text-button{text-align:left;line-height:1.7}.written-rules>div{border:1px solid var(--line);border-radius:5px;padding:14px;margin-top:16px}.written-rules select{margin-right:12px;max-width:100%}
.reminder-inbox{padding:20px;margin-bottom:20px}.reminder-inbox article{padding:15px 0;border-bottom:1px solid var(--line)}.reminder-inbox article p{white-space:pre-wrap;font-size:12px;margin:10px 0}
@media(max-width:650px){.quality-filters label,.quality-filters select{width:100%;max-width:100%}}
.report-parameters{margin-bottom:24px}.report-parameter-grid{padding:0 22px 18px;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.report-parameter-grid label{display:flex;flex-direction:column;gap:7px;font-size:11px}.report-parameter-grid select,.report-parameter-grid input{width:100%}.report-parameter-actions{padding:0 22px 20px;display:flex;justify-content:flex-end;gap:10px}.work-report{padding:0 22px 24px}.work-report h3{margin:25px 0 14px}.work-report p{font-size:12px;line-height:1.8;margin:12px 0}.report-period strong{font-weight:550}.work-report-stats,.price-counters{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px;margin:16px 0}.work-report-stats>a,.work-report-stats>div,.price-counters>button,.price-counters>a{padding:17px 14px;border:1px solid var(--line);border-radius:6px;background:var(--theme-surface,#fff);color:var(--theme-text,#304c3a);text-align:left;display:flex;flex-direction:column;gap:8px}.work-report-stats strong,.price-counters strong{font-size:27px;font-weight:550}.work-report-stats span,.price-counters span{font-size:11px;line-height:1.5}.price-counters{margin-bottom:22px}.work-report-stats>a:hover,.price-counters>button:hover,.price-counters>a:hover{background:var(--theme-surface-raised,#edf3ef);border-color:var(--theme-border-strong,#759681)}.closure-trend{overflow-x:auto;border:1px solid var(--line);border-radius:6px;padding:16px}.trend-bars{display:flex;align-items:flex-end;gap:12px;min-height:135px}.trend-bars>div{flex:1;min-width:30px;display:flex;flex-direction:column;align-items:center;gap:5px}.trend-bars strong{font-size:12px}.trend-bars small{font-size:9px;white-space:nowrap}.trend-bar-space{height:80px;display:flex;align-items:flex-end;width:18px}.trend-bar-space i{display:block;width:100%;background:var(--theme-accent-solid,#3d775b);border-radius:3px 3px 0 0}.report-export{flex-wrap:wrap}.report-previous>a{font-size:12px}.bot-message a{white-space:normal;text-decoration:underline}.report-archive .archive-item small{line-height:1.6}
@media(max-width:650px){.report-parameter-grid{padding:0 15px 15px;grid-template-columns:1fr}.work-report{padding:0 15px 20px}.report-parameter-actions{padding:0 15px 15px}.work-report-stats,.price-counters{grid-template-columns:repeat(2,minmax(0,1fr))}}
.management-progress,.management-preference{margin-bottom:20px}.management-progress>p,.management-preference{padding:16px 22px}.progress-numbers{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;padding:0 20px 16px}.progress-numbers button{display:flex;flex-direction:column;gap:6px;align-items:flex-start;border:0;border-right:1px solid var(--theme-border,#dce5da);background:transparent;color:inherit;padding:10px;cursor:pointer}.progress-numbers strong{font-size:25px;font-weight:550}.progress-numbers span{font-size:11px;color:var(--theme-text-muted,#6a7a69)}.management-footer{display:flex;justify-content:space-between;gap:14px;padding:0 22px 18px;flex-wrap:wrap}.confirmation-box{margin:0 22px 20px;padding:16px;background:var(--theme-surface-soft,#f4f7f2);border:1px solid var(--theme-border,#dce5da);border-radius:6px}.confirmation-box p{line-height:1.5;font-size:13px;margin:9px 0 14px}.confirmation-box button{margin-right:8px}.incident-row{padding:17px 22px;display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--theme-border,#dce5da)}.incident-row p{font-size:12px;color:var(--theme-text-muted,#6a7a69);margin:8px 0}.incident-row blockquote{white-space:pre-wrap;line-height:1.5;margin:8px 0;font-size:13px}.help-hint{position:relative;display:inline-flex;justify-content:center;align-items:center;width:16px;height:16px;border:1px solid currentColor;border-radius:50%;font-size:10px;vertical-align:middle;cursor:help;color:var(--theme-text-muted,#71806b)}.help-hint>span{display:none;position:absolute;bottom:calc(100% + 8px);left:0;z-index:25;width:270px;max-width:70vw;background:var(--theme-surface,#fff);color:var(--theme-text,#2f472b);border:1px solid var(--theme-border,#dce5da);padding:12px;border-radius:5px;box-shadow:0 4px 18px #0002;font-size:12px;line-height:1.5;font-weight:400}.help-hint:hover>span,.help-hint:focus>span{display:block}@media(max-width:850px){.progress-numbers{grid-template-columns:repeat(3,minmax(0,1fr))}.incident-row{flex-direction:column}}

.undo-bar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 16px;margin-bottom:15px;border:1px solid var(--theme-border,#dce5da);border-radius:5px;background:var(--theme-surface-soft,#f4f7f2);font-size:12px}.undo-bar p{margin:5px 0 0;color:var(--theme-text-muted,#6a7a69)}

.approval-discussion{border-top:1px solid var(--theme-border,#dce5da);padding-top:14px;margin-top:14px}.approval-discussion summary{cursor:pointer;font-size:13px;font-weight:550;margin-bottom:12px}.approval-discussion label{display:grid;gap:8px;margin:10px 0}.approval-discussion textarea{min-height:80px;padding:10px;background:var(--theme-surface,#fff);color:inherit;border:1px solid var(--theme-border,#ccd8c8);border-radius:4px;width:100%}
:root[data-accent="blue"] { --theme-accent:#285f92; --theme-accent-solid:#204d78; --theme-focus:#407aa9; }
:root[data-accent="plum"] { --theme-accent:#704468; --theme-accent-solid:#603458; --theme-focus:#95658b; }
:root[data-accent="graphite"] { --theme-accent:#445463; --theme-accent-solid:#364452; --theme-focus:#60758a; }
:root[data-theme="dark"][data-accent="blue"] { --theme-accent:#a2cdf1; --theme-accent-solid:#315477; --theme-focus:#93c5ef; }
:root[data-theme="dark"][data-accent="plum"] { --theme-accent:#e2b7d9; --theme-accent-solid:#633b5c; --theme-focus:#dcb1d4; }
:root[data-theme="dark"][data-accent="graphite"] { --theme-accent:#c0cddd; --theme-accent-solid:#435569; --theme-focus:#b8cadd; }
[data-accent]:not([data-accent="green"]) .button.primary { background:var(--theme-accent-solid); border-color:var(--theme-accent-solid); }
[data-accent]:not([data-accent="green"]) .sidebar nav button.active { color:var(--theme-accent); background:color-mix(in srgb,var(--theme-accent) 12%,var(--theme-surface)); }
.palette-options { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.palette-options button[aria-pressed="true"] { border-color:var(--green); color:var(--green); }
.palette-options i { width:13px; height:13px; border-radius:50%; background:#325f4a; }
.palette-options [data-swatch="blue"] { background:#285f92; }
.palette-options [data-swatch="plum"] { background:#704468; }
.palette-options [data-swatch="graphite"] { background:#445463; }
main select:not([multiple]) {
 appearance:none; min-height:38px; max-width:100%; padding-inline-end:32px;
 background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);
 background-position:right 15px center,right 10px center;
 background-size:5px 5px; background-repeat:no-repeat;
}
main select:disabled { opacity:.6; }
.task-panel .active-filter { padding:0 16px; flex-wrap:wrap; }
.workspace-main { min-inline-size:0; }
.table-scroll { overscroll-behavior-inline:contain; }
.drawer-body { overflow-wrap:anywhere; }
.bitrix-activity { margin-top:20px; }
.bitrix-activity article { border-top:1px solid var(--line); padding:12px 0; }
.bitrix-activity p { white-space:pre-wrap; overflow-wrap:anywhere; }
.section-loading { padding:24px; }
@media(max-width:1150px) { .queue-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:760px) {
 .topbar { gap:8px; }
 .topbar-right,.user-switch { gap:8px; }
 .user-switch { padding-inline-start:8px; min-width:0; }
 .user-switch strong { display:block; max-width:110px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
 .heading-actions { flex-wrap:wrap; }
 .filters :is(select,input:not([type="checkbox"])) { min-height:42px; }
}
@media(max-width:490px) {
 .breadcrumb>span,.breadcrumb>svg,.topbar .user-switch .avatar { display:none; }
 .queue-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .topbar .user-switch small { display:none; }
 .automation-settings { padding:16px; }
 .filters { gap:8px; padding-inline:12px; }
 .filters select { flex:1 1 135px; width:0; }
 .filters .search-input { flex-basis:100%; min-width:0; }
 .drawer-body { padding-inline:16px; }
 .dashboard-toolbar { align-items:stretch; flex-direction:column; gap:8px; }
}
