.workspace-view{display:block}
.workspace-view[hidden]{display:none}
.workspace-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.workspace-heading h2{font-size:19px;margin:5px 0}
.workspace-heading p{max-width:770px}
.workspace-state{border:1px solid #b9d7eb;background:#e9f6ff;color:#325d86;font-size:11px;font-weight:700;padding:8px 12px;border-radius:8px}
.workspace-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:18px}
.workspace-item{border:1px solid #dbe3ef;background:#f9fbff;padding:15px;border-radius:11px;min-width:0;display:flex;flex-direction:column;gap:10px}
.workspace-field{display:flex;flex-direction:column;gap:3px;overflow-wrap:anywhere}
.workspace-field span{font-size:10px;color:#73849b}
.workspace-field strong{font-size:12px;color:#293d58}
.workspace-empty{padding:17px 14px;margin:18px 0;border:1px dashed #afc0d9;border-radius:9px;background:#f7faff;font-size:12px;color:#50627c}
html[data-theme="dark"] .workspace-item{background:#1a2536;border-color:#3a4a63}
html[data-theme="dark"] .workspace-field strong{color:#e4ecf9}
html[data-theme="dark"] .workspace-field span{color:#b8c6d9}
html[data-theme="dark"] .workspace-empty{background:#1a2536;border-color:#3a4a63;color:#d2def1}
html[data-theme="dark"] .workspace-state{background:#183b50;border-color:#3a6177;color:#b8eaff}
@media(max-width:1050px){.workspace-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.workspace-grid{grid-template-columns:1fr}}

.workspace-detail{border-top:1px solid #ced9ec;padding-top:12px}.workspace-detail .workspace-item{border:0;background:transparent;padding:3px 0;box-shadow:none}

.workspace-finance{margin-top:24px;border-top:1px solid #afc0d9;padding-top:18px}.workspace-finance h3{font-size:17px}.workspace-finance>p{font-size:12px}.workspace-finance-history{margin-top:18px;font-size:12px}.workspace-finance-history p{padding:7px 0;border-bottom:1px solid #dbe3ef;overflow-wrap:anywhere}html[data-theme="dark"] .workspace-finance-history p{border-color:#3a4a63}

.workspace-profile-editor{margin-top:22px;padding-top:18px;border-top:1px solid #b6c7d9}
.workspace-profile-editor[hidden]{display:none}
.workspace-profile-editor>h3{font-size:17px}
.workspace-profile-editor>p{font-size:12px;overflow-wrap:anywhere}
.workspace-edit-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.workspace-edit-form label{display:flex;flex-direction:column;gap:6px;font-size:12px}
.workspace-edit-form input{width:100%;min-height:38px;padding:8px;border:1px solid #b9c7d8;border-radius:6px;background:var(--surface,#fff);color:inherit}
.workspace-edit-form input[readonly]{opacity:.65;cursor:not-allowed}
.workspace-edit-form button{grid-column:1/-1;justify-self:start}
@media(max-width:680px){.workspace-edit-form{grid-template-columns:1fr}}

.workspace-security-intro,.workspace-security-controls{grid-column:span 3}
.workspace-security-buttons{display:flex;flex-wrap:wrap;gap:8px}
.workspace-security-list{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.workspace-security-list article{min-width:0}
.workspace-security-list button{align-self:flex-start}
@media(max-width:1050px){.workspace-security-intro,.workspace-security-controls{grid-column:span 2}.workspace-security-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.workspace-security-intro,.workspace-security-controls{grid-column:span 1}.workspace-security-list{grid-template-columns:1fr}}

.workspace-subscription-continuity{margin-top:22px;padding-top:15px;border-top:1px solid #c4d1df}
.workspace-subscription-continuity[hidden]{display:none}
.workspace-subscription-list,.workspace-subscription-history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}
.workspace-subscription-continuity article{min-width:0;overflow-wrap:anywhere}
.workspace-subscription-continuity article button,.workspace-subscription-continuity article select{margin-top:8px;margin-right:6px;max-width:100%}
.workspace-subscription-history h4{grid-column:1/-1}
@media(max-width:700px){.workspace-subscription-list,.workspace-subscription-history{grid-template-columns:1fr}}

/* Customer operations: same Marks components as Admin, scoped to owned rows. */
.marks-client-shell .workspace-view{min-width:0;width:100%}
.marks-client-shell .workspace-grid,.marks-client-shell .workspace-security-list,.marks-client-shell .workspace-subscription-list,.marks-client-shell .workspace-subscription-history{gap:var(--marks-app-gap)}
.marks-client-shell .workspace-grid:not(.marks-table-view){grid-template-columns:repeat(auto-fit,minmax(min(100%,295px),1fr))}
.marks-client-shell .workspace-item{border-radius:var(--marks-app-radius);background:#f9fcff;border-color:var(--marks-app-border);padding:clamp(13px,1.15vw,19px);gap:11px;box-shadow:0 3px 10px #12395b09}
.marks-client-shell .workspace-field span{font-size:11px;color:#667d96}
.marks-client-shell .workspace-field strong{font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.marks-client-shell .workspace-state{border-radius:8px}
.marks-client-shell .workspace-heading{padding-bottom:13px;border-bottom:1px solid var(--marks-app-border);margin-bottom:6px}
.marks-client-shell .workspace-edit-form{grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr))}
.marks-client-shell .workspace-edit-form button{grid-column:1/-1}
.marks-client-shell .workspace-security-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.marks-client-shell .workspace-subscription-list,.marks-client-shell .workspace-subscription-history{grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr))}
.marks-client-shell .marks-workspace-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:14px 0 2px}
.marks-client-shell .marks-workspace-toolbar[hidden],.marks-client-shell .marks-workspace-detail[hidden]{display:none!important}
.marks-client-shell .marks-workspace-toolbar label{font-size:11px;font-weight:800;color:#5d728b}
.marks-client-shell .marks-workspace-toolbar input{width:min(270px,100%);min-height:39px;border:1px solid #c6dcea;background:#fff;color:#193450;border-radius:8px;padding:8px 11px}
.marks-client-shell .marks-workspace-toolbar #workspace-result-count{margin-left:auto;font-size:11px;color:#72839b}
.marks-client-shell .marks-workspace-view-switch{display:inline-flex;align-items:center}
.marks-client-shell .marks-workspace-view-switch button{min-height:39px;border:1px solid #c5dceb;background:#fff;color:#135b89;padding:7px 14px;font-size:11px;font-weight:800;cursor:pointer}
.marks-client-shell .marks-workspace-view-switch button:first-child{border-radius:8px 0 0 8px}
.marks-client-shell .marks-workspace-view-switch button+button{border-left:0;border-radius:0 8px 8px 0}
.marks-client-shell .marks-workspace-view-switch button[aria-pressed="true"]{background:#e8f7ff;color:#07638e;box-shadow:inset 0 -3px #00b8df}
.marks-client-shell .marks-workspace-data-area{min-width:0;width:100%}
.marks-client-shell .marks-workspace-data-area.is-split{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.8fr);gap:var(--marks-app-gap);align-items:start}
.marks-client-shell .workspace-grid.marks-table-view{display:block;min-width:0}
.marks-client-shell .marks-workspace-table-scroll{width:100%;max-width:100%;overflow-x:auto;border:1px solid var(--marks-app-border);border-radius:11px;margin-top:16px;background:#fff}
.marks-client-shell .marks-workspace-table{min-width:630px;width:100%;border-collapse:collapse;font-size:12px;text-align:left}
.marks-client-shell .marks-workspace-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.marks-client-shell .marks-workspace-table th,.marks-client-shell .marks-workspace-table td{padding:13px 12px;border-bottom:1px solid #e2ecf4;vertical-align:middle;text-align:left;max-width:280px;overflow-wrap:anywhere}
.marks-client-shell .marks-workspace-table thead{background:#f0f7fd;color:#416584}
.marks-client-shell .marks-workspace-table thead th{font-size:11px;white-space:nowrap}
.marks-client-shell .marks-workspace-table tbody th{font-weight:750;color:#173a60}
.marks-client-shell .marks-workspace-table tbody tr:nth-child(even){background:#f8fcff}
.marks-client-shell .marks-workspace-table tbody tr:hover{background:#ecf9ff}
.marks-client-shell .marks-workspace-detail-action{min-height:35px;font-size:11px;padding:7px 12px;white-space:nowrap}
.marks-client-shell .marks-workspace-detail{position:sticky;top:18px;min-width:0;max-height:calc(100dvh - 44px);overflow-y:auto;background:#f9fcff;border:1px solid var(--marks-app-border);border-radius:11px;padding:14px;margin-top:16px}
.marks-client-shell .marks-workspace-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--marks-app-border);padding-bottom:10px;margin-bottom:12px}
.marks-client-shell .marks-workspace-detail-heading h3{font-size:14px;margin:0;overflow-wrap:anywhere}
.marks-client-shell .marks-workspace-detail-heading button{font-size:10px;min-height:34px;padding:6px 10px}
.marks-client-shell .marks-workspace-detail .workspace-item{background:transparent;border:0;box-shadow:none;padding:0}
html[data-theme="dark"] .marks-client-shell .workspace-item,html[data-theme="dark"] .marks-client-shell .marks-workspace-detail,html[data-theme="dark"] .marks-client-shell .marks-workspace-table-scroll{background:#10253a;border-color:#36546d;color:#ecf6ff}
html[data-theme="dark"] .marks-client-shell .workspace-field span{color:#a7c5de}
html[data-theme="dark"] .marks-client-shell .marks-workspace-table thead{background:#17324b;color:#c3e5fa}
html[data-theme="dark"] .marks-client-shell .marks-workspace-table tbody th{color:#effaff}
html[data-theme="dark"] .marks-client-shell .marks-workspace-table th,html[data-theme="dark"] .marks-client-shell .marks-workspace-table td{border-color:#355169}
html[data-theme="dark"] .marks-client-shell .marks-workspace-table tbody tr:nth-child(even){background:#172c43}
html[data-theme="dark"] .marks-client-shell .marks-workspace-table tbody tr:hover{background:#1e3b55}
html[data-theme="dark"] .marks-client-shell .marks-workspace-toolbar input,html[data-theme="dark"] .marks-client-shell .marks-workspace-view-switch button{background:#17324b;border-color:#3c6280;color:#ceecfa}
html[data-theme="dark"] .marks-client-shell .marks-workspace-view-switch button[aria-pressed="true"]{background:#155070;color:#e5faff}
@media(max-width:1150px){.marks-client-shell .marks-workspace-data-area.is-split{grid-template-columns:1fr}.marks-client-shell .marks-workspace-detail{position:static;max-height:none}}
@media(max-width:700px){.marks-client-shell .marks-workspace-toolbar label{flex-basis:100%}.marks-client-shell .marks-workspace-toolbar input{width:100%}.marks-client-shell .marks-workspace-toolbar #workspace-result-count{flex-basis:100%;margin:0}.marks-client-shell .workspace-grid:not(.marks-table-view){grid-template-columns:1fr}}
