/* MTOS Enterprise Workspace · scoped to Workspace, never loaded in /tracuu */
:root{--mtos-pro-ink:#162c48;--mtos-pro-muted:#697e98;--mtos-pro-line:#e0e9f4;--mtos-pro-navy:#17375d;--mtos-pro-blue:#245bb1;--mtos-pro-bg:#f5f8fc}
.app .workspace{background:linear-gradient(180deg,#f8fbff,#f6f8fc 360px)}
.app .panel,.app .feature-card,.app .stat{border:1px solid #e2eaf4;box-shadow:0 4px 20px rgba(20,49,81,.035);border-radius:15px}
.app .stat{position:relative;overflow:hidden;padding-top:20px}
.app .stat:before{content:"";position:absolute;left:17px;right:17px;top:0;height:3px;border-radius:0 0 5px 5px;background:linear-gradient(90deg,#cbdcf3,#eaf0f9)}
.app .title-row{margin-bottom:19px}.app .title-row h2{color:#172e4d}
.app .section-head{gap:12px}.app .section-head h3{letter-spacing:-.2px}
.app .btn.primary{box-shadow:0 3px 12px rgba(32,90,175,.16)}
.app .badge.green{background:#e8f7ef;color:#167246}.app .badge.orange{background:#fff4df;color:#885600}.app .badge.red{background:#fceaea;color:#ae3131}
.app .table-wrap{border:1px solid var(--mtos-pro-line);background:#fff}
.app .tbl thead th{font-size:12px;letter-spacing:.01em;white-space:normal}
.app .tbl tbody tr[hidden]{display:none!important}
.app .tbl td:first-child b{color:#253f66}
.app .empty{line-height:1.65;color:#71839b}
/* Dashboard */
.mtos-pro-dash-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,.8fr);gap:26px;background:linear-gradient(115deg,#142f54 0%,#244b79 70%,#345e8d);color:#fff;padding:27px 30px;border-radius:19px;margin:16px 0 23px;position:relative;overflow:hidden}
.mtos-pro-dash-hero:after{content:"";position:absolute;width:300px;height:300px;right:-80px;top:-220px;border:1px solid rgba(255,255,255,.16);border-radius:50%;box-shadow:0 0 0 46px rgba(255,255,255,.035),0 0 0 100px rgba(255,255,255,.025);pointer-events:none}
.mtos-pro-eyebrow{font-size:10px;font-weight:830;letter-spacing:1.7px;opacity:.75}
.mtos-pro-dash-intro{position:relative;z-index:1}.mtos-pro-dash-intro h3{font-size:clamp(20px,2vw,29px);color:#fff;letter-spacing:-.55px;line-height:1.3;margin:12px 0}.mtos-pro-dash-intro p{font-size:13px;color:#e4edf7;line-height:1.7;max-width:510px}
.mtos-pro-dash-quick{display:flex;flex-direction:column;gap:7px;z-index:1}.mtos-pro-dash-quick>strong{font-size:12px;color:#dceaf9;margin-bottom:3px}
.mtos-pro-action{padding:9px 12px;text-align:left;border:1px solid #e4ebf3;border-radius:9px;background:#fff;color:#214b81;font-size:12px;font-weight:700;min-height:35px;cursor:pointer}
.mtos-pro-shortcut{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.2);color:#fff}.mtos-pro-shortcut:hover,.mtos-pro-shortcut:focus-visible{background:rgba(255,255,255,.24);outline:2px solid #e5f1ff;outline-offset:1px}
.mtos-pro-stat-link{cursor:pointer;transition:box-shadow .16s,transform .16s}.mtos-pro-stat-link:hover{box-shadow:0 10px 25px rgba(22,59,99,.1);transform:translateY(-2px)}.mtos-pro-stat-link:focus-visible{outline:3px solid #3679dc;outline-offset:3px}
/* Notification bell / drawer */
.mtos-pro-bell{position:relative;display:grid;place-items:center;width:39px;height:39px;flex:none;border:1px solid var(--mtos-pro-line);border-radius:11px;background:#fff;color:#2b527d;cursor:pointer}.mtos-pro-bell:hover{background:#eef5ff;border-color:#bdd4f3}
.mtos-pro-bell svg{width:19px;height:19px}.mtos-pro-bell-count{position:absolute;top:-7px;right:-7px;min-width:18px;height:18px;border-radius:10px;background:#b34040;color:#fff;display:grid;place-items:center;font-size:10px;font-weight:800;line-height:1;padding:2px 4px}.mtos-pro-bell-count[hidden]{display:none!important}
.mtos-pro-drawer-shade[hidden],.mtos-pro-drawer[hidden]{display:none!important}
.mtos-pro-drawer-shade{position:fixed;inset:0;background:rgba(7,26,48,.46);z-index:180;backdrop-filter:blur(2px)}
.mtos-pro-drawer{position:fixed;right:0;top:0;bottom:0;width:min(470px,100%);background:#fff;z-index:181;box-shadow:-18px 0 55px rgba(17,35,59,.19);display:flex;flex-direction:column;color:var(--mtos-pro-ink)}
.mtos-pro-drawer-top{padding:24px 24px 20px;display:flex;gap:16px;justify-content:space-between;border-bottom:1px solid var(--mtos-pro-line)}
.mtos-pro-drawer-top h2{font-size:21px;letter-spacing:-.4px;margin:7px 0 4px}.mtos-pro-drawer-top p{color:var(--mtos-pro-muted);font-size:12px;margin:0}
.mtos-pro-drawer-top .mtos-pro-eyebrow{color:#597da6}
.mtos-pro-icon-btn{display:grid;place-items:center;flex:none;width:36px;height:36px;border:1px solid #dbe5f2;border-radius:10px;background:#f6f8fc;color:#315577;font-size:25px;line-height:1;cursor:pointer}
.mtos-pro-drawer-body{overflow-y:auto;flex:1;padding:7px 22px 20px}.mtos-pro-group-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:20px 0 9px}.mtos-pro-group-header h3{font-size:13px;font-weight:750;color:#203c5d;margin:0}
.mtos-pro-group-count{background:#eff4fb;border:1px solid #dce7f4;color:#40638a;border-radius:6px;padding:2px 7px;font-size:11px;font-weight:700}
.mtos-pro-notice{display:block;text-align:left;width:100%;background:#fff;border:1px solid #e1e9f3;border-radius:11px;padding:12px 14px;margin:7px 0;color:#263f61;cursor:pointer}
.mtos-pro-notice:hover:not(:disabled){background:#f5f9ff;border-color:#a9c8ee}.mtos-pro-notice:disabled{opacity:.7;cursor:default}
.mtos-pro-notice strong{display:block;font-size:13px;line-height:1.5}.mtos-pro-notice small{display:block;margin-top:4px;font-size:11px;color:#7286a0;line-height:1.6}
.mtos-pro-empty{font-size:12px;line-height:1.6;color:#7990a9;margin:7px 0 11px}
.mtos-pro-drawer-footer{border-top:1px solid var(--mtos-pro-line);padding:15px 22px;display:flex;align-items:center;justify-content:space-between;gap:15px}.mtos-pro-drawer-footer span{font-size:11px;color:var(--mtos-pro-muted)}
body.mtos-pro-drawer-open{overflow:hidden}
/* Guided billing navigation */
.mtos-pro-flow{padding:17px 18px;border-radius:16px;background:#fff;border:1px solid var(--mtos-pro-line);margin:16px 0 23px;box-shadow:0 4px 16px rgba(20,50,91,.035)}
.mtos-pro-flow-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:15px;flex-wrap:wrap}.mtos-pro-flow-head strong{font-size:14px;color:var(--mtos-pro-ink)}.mtos-pro-flow-head small{color:#74869c;font-size:11px}
.mtos-pro-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.mtos-pro-step{min-width:0;display:flex;flex-direction:column;gap:6px;text-align:left;padding:11px 10px;border:1px solid #dfe8f3;border-radius:9px;background:#f8faff;color:#24476e;cursor:pointer}
.mtos-pro-step strong{font-size:11px;line-height:1.45}.mtos-pro-step span{font-size:10px;color:#788ba2;line-height:1.45}.mtos-pro-step.current{border-color:#86addf;background:#eaf3ff;box-shadow:inset 0 3px #3068b5}.mtos-pro-step:hover:not(.mtos-pro-step-disabled){background:#eef5ff;border-color:#9fbfec}
.mtos-pro-step-disabled{opacity:.58;cursor:default}.mtos-pro-step:focus-visible{outline:2px solid #2d70c9;outline-offset:2px}
/* Table controls */
.mtos-pro-table-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0 8px;padding:0 1px}
.mtos-pro-table-search{flex:1 1 190px;min-width:125px;border:1px solid #d9e4f2;border-radius:9px;background:white;padding:10px 12px;min-height:38px;font-size:12px;color:#254569}
.mtos-pro-table-summary{font-size:11px;color:#657a96;white-space:nowrap}
.mtos-pro-per-page{background:#fff;border:1px solid #d9e4f2;border-radius:8px;padding:9px;font-size:11px;color:#355678;min-height:38px}
.mtos-pro-page-btn,.mtos-pro-copy{background:#fff;border:1px solid #d9e4f2;border-radius:8px;padding:8px 11px;color:#315a8e;font-size:12px;font-weight:700;min-height:37px;cursor:pointer}
.mtos-pro-copy{white-space:nowrap}.mtos-pro-page-btn:disabled,.mtos-pro-copy:disabled{opacity:.43;cursor:not-allowed}
.mtos-pro-sortable{cursor:pointer;user-select:none}.mtos-pro-sortable:hover{background:#e6f0fd!important}.mtos-pro-sortable[aria-sort="ascending"]:after{content:" ↑";color:#1d65b9}.mtos-pro-sortable[aria-sort="descending"]:after{content:" ↓";color:#1d65b9}
.mtos-pro-table-wrap input[type="checkbox"]{width:15px;height:15px;vertical-align:middle;margin-right:9px;accent-color:#2665b4}
.mtos-pro-table-wrap tr.mtos-pro-selected{background:#ebf4ff!important}
/* Live layout, forms, and history */
.studio-template-toolbar{position:sticky;top:10px;z-index:8;box-shadow:0 10px 28px rgba(36,57,83,.1)}
.studio-editor-shell{grid-template-columns:minmax(242px,280px) minmax(0,1fr);gap:18px}
.studio-editor-panel{border-color:#dfe8f3;box-shadow:0 5px 19px rgba(26,58,98,.035)}
.studio-editor-work{background:#edf2f8;border-color:#d7e2f0}
.studio-paper-scroll{border:1px solid #dde6f1;border-radius:11px}
.mtos-pro-editor-tip{display:flex;align-items:center;gap:8px;padding:9px 11px;margin-bottom:11px;border-radius:9px;background:#fff;border:1px solid #dce8f4;color:#2a527e;font-size:11px;line-height:1.5;flex-wrap:wrap}
.mtos-pro-editor-tip b{font-size:12px}.mtos-pro-editor-tip>span:last-child{color:#74869b}.mtos-pro-live-dot{width:8px;height:8px;border-radius:50%;background:#3d9b74;box-shadow:0 0 0 3px #e2f4e9}
.app .history-card{border:1px solid #e1eaf4;border-left:3px solid #8caedd;background:#fcfdff;border-radius:10px;padding:13px 15px;margin:10px 0}
.app .history-card .muted{font-variant-numeric:tabular-nums}
.app .mtos-pro-timeline{position:relative;padding-left:15px;border-left:1px solid #cfdded}
.app .mtos-pro-timeline .history-card{position:relative;margin:0 0 13px 12px}
.app .mtos-pro-timeline .history-card:before{content:"";position:absolute;left:-34px;top:18px;width:10px;height:10px;border-radius:50%;background:#6e9ed6;border:2px solid #fff;box-shadow:0 0 0 1px #acc7e6}
.app .mtos-pro-field-view .btn,.app .mtos-pro-field-view [data-ck-result],.app .mtos-pro-field-view [data-ops-ck-result]{min-height:43px}
.app .mtos-pro-field-view .field :is(input,select,textarea){min-height:46px}
.app .mtos-pro-field-view .ck-inspection-item{background:#fff;border-radius:14px;padding:16px;border-color:#dce7f3}
.app .mtos-pro-field-view .ck-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.app .mtos-pro-field-view .ck-result{min-height:48px;border-radius:10px;font-size:13px}
.app .mtos-pro-field-view .ck-result.selected{box-shadow:0 0 0 1px #2a6edf inset}
.app .mtos-pro-field-view .ck-result.bad.selected{box-shadow:0 0 0 1px #ca5757 inset}
/* Responsive and accessibility */
@media(max-width:1150px){.mtos-pro-steps{grid-template-columns:repeat(3,minmax(0,1fr))}.mtos-pro-dash-hero{grid-template-columns:1fr}}
@media(max-width:760px){.mtos-pro-dash-hero{padding:20px;gap:18px;border-radius:15px}.mtos-pro-dash-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.mtos-pro-dash-quick>strong{grid-column:1/-1}.mtos-pro-steps{display:flex;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x mandatory}.mtos-pro-step{flex:0 0 155px;scroll-snap-align:start}.studio-template-toolbar{position:relative;top:auto}.studio-editor-shell{grid-template-columns:1fr}.mtos-pro-table-toolbar{gap:6px}.mtos-pro-table-search{flex-basis:100%}.mtos-pro-copy{order:6}.app .mtos-pro-field-view .btn{min-height:47px}}
@media(max-width:480px){.mtos-pro-dash-quick{grid-template-columns:1fr}.mtos-pro-drawer-top{padding:20px}.mtos-pro-drawer-body{padding:8px 15px}.mtos-pro-drawer-footer{padding:12px 15px}.mtos-pro-table-summary{flex:1}.mtos-pro-table-toolbar{align-items:stretch}}
@media(prefers-reduced-motion:reduce){.mtos-pro-stat-link{transition:none}.mtos-pro-stat-link:hover{transform:none}}
@media print{.mtos-pro-bell,.mtos-pro-drawer,.mtos-pro-drawer-shade,.mtos-pro-flow,.mtos-pro-table-toolbar,.mtos-pro-dash-hero,.mtos-pro-editor-tip{display:none!important}}
