/* MAX TV 217 operational workspaces.
   Shared markup, native dialog/details/popover lifecycle and all visibility rules remain owned by their modules.
   The dashboard owns its composition; this sheet supplies shared colours and operational components. */
.workspace216 .panel-icon217{width:19px;height:19px;flex:none;vertical-align:middle}
.workspace216 :is(.page-actions,.table-footer,.search,.dialog-header) .panel-icon217{width:16px;height:16px}
.workspace216 .search>.panel-icon217{color:var(--muted)}
.workspace216 :is(.page-intro,.dialog-header,#aiServices-page) .eyebrow,.workspace216 .login-card>.section-index{display:none}
.workspace216 .sidebar .nav-item{display:flex;align-items:center;gap:12px}
body.workspace216,body.workspace216.super-admin.max-control.max-studio{
 --bg:#09121d;--surface:#142334;--surface-raised:#1a2d41;--text:#eef4fa;--muted:#a8bacb;
 --accent:#b7f36b;--violet:#b7adff;--coral:#ff9d83;--line:#2c4055;--radius:12px;
 --studio-sidebar:#0e1a28;--studio-field:#0c1927;
 --wk-ink:var(--text);--wk-muted:var(--muted);--wk-paper:var(--surface);--wk-field:var(--studio-field);
 --wk-line:var(--line);--wk-lime:var(--accent);--wk-violet:var(--violet);--wk-cyan:#70d7ed;--wk-coral:var(--coral);
 --wk-control-size:44px;--wk-control-pad:10px;--wk-panel-pad:22px;
 background:var(--bg);color:var(--text);font-family:Manrope,'Segoe UI',sans-serif;
 color-scheme:dark;accent-color:var(--accent);caret-color:var(--accent);
}
body.workspace216.max-control{
 --tblr-body-bg:var(--bg);--tblr-body-color:var(--text);--tblr-body-color-rgb:238,244,250;
 --tblr-secondary-color:var(--muted);--tblr-secondary-color-rgb:168,186,203;
 --tblr-bg-surface:var(--surface);--tblr-bg-surface-secondary:var(--studio-field);--tblr-bg-surface-tertiary:var(--surface-raised);
 --tblr-bg-forms:var(--studio-field);--tblr-bg-forms-disabled:var(--surface-raised);
 --tblr-btn-input-bg:var(--studio-field);--tblr-btn-input-fg:var(--text);
 --tblr-border-color:var(--line);--tblr-border-color-translucent:var(--line);
 --tblr-primary:var(--accent);--tblr-primary-rgb:183,243,107;--tblr-primary-fg:#14200c;
 --tblr-link-color:var(--wk-cyan);--tblr-link-hover-color:#a6e9f6;
}
.workspace216 ::selection{background:#b7f36b;color:#14200c}
.workspace216 :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--wk-lime);outline-offset:3px}
/* Paint the existing rail/header; keep their geometry and native navigation unchanged. */
.workspace216.max-studio .max-context-sidebar{background:var(--studio-sidebar);border-color:var(--wk-line);box-shadow:none;border-radius:14px}
.workspace216.max-studio .max-console-header{background:var(--bg);border-color:var(--wk-line)}
.workspace216.max-studio .max-context-sidebar :is(.nav-link,.control-nav-summary){color:var(--wk-muted)}
.workspace216.max-studio .max-context-sidebar .nav-link.selected{color:var(--wk-lime);background:#b7f36b0d}
.workspace216.max-studio .max-context-sidebar :is(.nav-link,.control-nav-summary):hover{color:var(--wk-ink);background:#eef4fa07}
.workspace216.max-studio .control-nav-group[open]{background:#eef4fa03}
.workspace216.max-studio .control-nav-group[open]>.control-nav-summary{color:var(--wk-ink)}
/* Familiar management areas, with quiet category cues rather than another layer of chrome. */
.workspace216 :is(#records,#customer-detail,#settings-page,#account-page,#epg-page,#tickets-page,#issues-page,#security-page,#integrations-page,#domainGroups-page,#imports-page,#billing-page,#audit-page,#fleet-page,#playback-page,#sessions-page,#accessKeys-page,#metadataService-page,#subtitleService-page,#smtpService-page,#aiServices-page,#backups-page,#clientVersions-page,#releases-page,#statistics-page){--wk-tone:var(--wk-cyan);font-family:Manrope,'Segoe UI',sans-serif;color:var(--wk-ink);font-size:14px;line-height:1.6;min-width:0}
.workspace216 :is(#customer-detail,#records[data-kind=customers]){--wk-tone:var(--wk-lime)}
.workspace216 :is(#records[data-kind=agents],#account-page,#security-page,#domainGroups-page,#settings-page){--wk-tone:var(--wk-violet)}
.workspace216 :is(#billing-page,#tickets-page,#issues-page){--wk-tone:var(--wk-coral)}
.workspace216 :is(.detail-section-heading,.support-heading,.dg-heading,.audit-heading,.import-source-heading,.release-heading,.recovery-heading){align-items:flex-start;gap:16px;margin-bottom:22px;flex-wrap:wrap}
.workspace216 :is(.detail-section-heading,.card-heading,.ai-service-intro,.release-heading,.recovery-heading) :is(h2,h3),
.workspace216 :is(.phase1-card,.settings-grid>.panel-card,.account-card,.security-card,.dg-editor,.billing-settings,.release-decision,.recovery-guide)>:is(h2,h3){font-family:Manrope,'Segoe UI',sans-serif;letter-spacing:-.2px;line-height:1.3;font-weight:650;color:var(--wk-ink)}
.workspace216 :is(.detail-section-heading,.ai-service-intro,.recovery-heading) h2{font-size:24px;margin:0 0 7px}
.workspace216 :is(.detail-section-heading,.ai-service-intro)>div{min-width:0}
.workspace216 :is(.detail-section-heading p,.ai-service-intro>.muted){font-size:13px;line-height:1.7;color:var(--wk-muted);margin:7px 0 0;max-width:76ch}
.workspace216 :is(.card-heading h2,.card-heading h3,.phase1-card h2,.settings-grid>.panel-card>h2,.security-card>h2){font-size:20px}
.workspace216 :is(.form-help,.form-counter,.source-meta,.message-meta,.device-row small,.profile-row small,.avatar-caption,.managed-profile-preview small,.integration-key-hint,.integration-key-card>.muted,.integration-log-card>.muted,.integration-scope-row .check-label,.support-row small,.support-pagination,.support-tags,.support-form input[type=file],.billing-invoice>.muted,.billing-crypto-details small,.billing-request-response small,.control-metric small,.ai-service-form .form-help,.ai-service-links,.release-filename,.release-review-note,.access-scopes,.audit-event-details,.dg-summary,.dg-pagination,.import-job-row small){font-size:12px;line-height:1.65}
.workspace216 :is(.form-help,.source-meta,.device-row small,.profile-row small,.integration-key-card>.muted,.support-row small,.control-metric small,.ai-service-form .form-help,.release-filename){color:var(--wk-muted)}
/* Existing forms retain their fields, validation and lifecycle. */
.workspace216 :is(#editor,#settings-dialog,.managed-profile-dialog,.account-card,.security-card,.dg-editor,.import-source-form,.support-form,.support-reply,.billing-settings,.billing-plan-request,.ai-service-form,.recovery-form,.release-gate,.release-distribution,.integration-scopes) label{font-size:14px;line-height:1.5;color:var(--wk-ink);font-weight:500}
.workspace216 :is(#editor,#settings-dialog,.managed-profile-dialog,.account-card,.security-card,.dg-editor,.import-source-form,.support-form,.support-reply,.billing-settings,.billing-plan-request,.ai-service-form,.recovery-form,.release-gate,.release-distribution) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:14px;line-height:1.5;color:var(--wk-ink);background:var(--wk-field);border:1px solid var(--wk-line);border-radius:8px;box-shadow:none;padding:var(--wk-control-pad) 12px;min-height:var(--wk-control-size);max-width:100%;min-width:0}
.workspace216 :is(#editor,#settings-dialog,.managed-profile-dialog,.account-card,.security-card,.dg-editor,.import-source-form,.support-form,.support-reply,.billing-settings,.ai-service-form,.recovery-form,.release-gate) :is(input,select,textarea):focus-visible{outline:2px solid var(--wk-lime);outline-offset:3px;border-color:var(--wk-lime)}
.workspace216 :is(#editor,#settings-dialog,.managed-profile-dialog,.account-card,.security-card,.dg-editor,.import-source-form,.support-form,.support-reply,.billing-settings,.ai-service-form,.recovery-form,.release-gate) :is(input,textarea)::placeholder{color:var(--wk-muted);opacity:1}
.workspace216 :is(.form-grid,.import-connection-fields,.smtp-draft-form){column-gap:22px;row-gap:4px;min-width:0}
.workspace216 :is(.form-grid,.smtp-draft-form)>label{min-width:0;margin-bottom:18px}
.workspace216 :is(.integration-scopes legend,.managed-avatar-field legend){font-size:14px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--wk-tone,var(--wk-violet));padding-top:20px;margin-bottom:16px}
.workspace216 .integration-scopes{border:1px solid var(--wk-line);border-radius:10px;padding:18px 20px;background:var(--wk-field)}
.workspace216 .integration-scopes legend{padding:0 8px;margin-bottom:8px}
.workspace216 .integration-scope-row>strong{font-size:14px;color:var(--wk-ink)}
.workspace216 .managed-avatar-field legend{padding-top:0}
.workspace216 :is(.settings-grid,.security-grid){gap:20px}
.workspace216 .settings-grid>.panel-card{border:1px solid var(--wk-line);border-top:1px solid var(--wk-line);border-radius:12px;background:var(--wk-paper);padding:22px}
.workspace216 .settings-grid>.panel-card>h2{padding-bottom:14px;margin:0 0 4px;border-bottom:1px solid var(--wk-line)}
.workspace216 .setting-row{padding:16px 0;border-bottom:1px solid var(--wk-line)}
.workspace216 .setting-row>.setting-top{gap:12px;flex-wrap:wrap}
.workspace216 .setting-row>label{font-size:13px;color:var(--wk-muted)}
.workspace216 .setting-top :is(strong,label){font-size:14px;line-height:1.5}
.workspace216 .setting-row .form-help{margin-top:8px}
.workspace216 :is(.settings-footer,.ai-service-actions,.dialog-actions,.integration-key-actions,.source-actions){gap:10px;flex-wrap:wrap}
.workspace216 .settings-footer{padding-top:20px;border-top:1px solid var(--wk-line);margin-top:22px;align-items:center}
.workspace216 .settings-footer p{font-size:13px;color:var(--wk-muted);line-height:1.6}
/* A compact index into existing sections; ordinary links keep native focus ownership. */
.workspace216 .workspace-sections{display:flex;align-items:center;flex-wrap:wrap;gap:2px 16px;background:transparent;border:0;border-bottom:1px solid var(--wk-line);border-radius:0;padding:0 0 12px;margin:0 0 24px}
.workspace216 .workspace-sections>span{font-size:12px;font-weight:500;color:var(--wk-muted);margin-right:4px}
.workspace216 .workspace-sections>a{min-height:var(--wk-control-size);display:inline-flex;align-items:center;padding:8px 0;border:0;border-radius:0;background:transparent;color:var(--wk-cyan);font-size:14px;line-height:1.5;max-width:100%;overflow-wrap:anywhere;text-decoration:none}
.workspace216 .workspace-sections>a:hover{background:transparent;color:#b5edfa;text-decoration:underline;text-underline-offset:5px}
/* Actions stay in their existing semantic roles; no selector changes disabled or hidden state. */
.workspace216 :is(#records,#customer-detail,#settings-page,#account-page,#epg-page,#tickets-page,#issues-page,#security-page,#integrations-page,#domainGroups-page,#imports-page,#billing-page,#audit-page,#fleet-page,#playback-page,#sessions-page,#accessKeys-page,#metadataService-page,#subtitleService-page,#smtpService-page,#aiServices-page,#backups-page,#clientVersions-page,#releases-page,#statistics-page,dialog) :is(button,.button,.btn,summary){font-size:14px;line-height:1.45;letter-spacing:0;text-transform:none}
.workspace216 :is(.detail-actions,.source-actions,.row-actions,.dialog-actions,.ai-service-actions,.integration-key-actions,.billing-actions,.support-controls,.access-row-actions) :is(.button,.btn){padding:9px 13px;border-radius:8px;white-space:normal;overflow-wrap:anywhere;min-height:var(--wk-control-size);box-shadow:none;transform:none}
.workspace216 :is(#customer-detail,#settings-page,#account-page,#epg-page,#tickets-page,#issues-page,#security-page,#integrations-page,#domainGroups-page,#imports-page,#billing-page,#audit-page,#fleet-page,#playback-page,#sessions-page,#accessKeys-page,#metadataService-page,#subtitleService-page,#smtpService-page,#aiServices-page,#backups-page,#clientVersions-page,#releases-page,#statistics-page,dialog) :is(.button.primary,.btn-primary){background:var(--wk-lime);border-color:var(--wk-lime);color:#17220f;font-weight:650}
.workspace216 :is(#customer-detail,#settings-page,#account-page,#epg-page,#tickets-page,#issues-page,#security-page,#integrations-page,#domainGroups-page,#imports-page,#billing-page,#audit-page,#fleet-page,#playback-page,#sessions-page,#accessKeys-page,#metadataService-page,#subtitleService-page,#smtpService-page,#aiServices-page,#backups-page,#clientVersions-page,#releases-page,#statistics-page,dialog) :is(.button.subtle,.btn-outline-secondary){background:#ffffff03;border-color:var(--wk-line);color:var(--wk-ink)}
.workspace216 :is(.detail-actions,.source-actions,.row-actions,.dialog-actions,.ai-service-actions,.integration-key-actions,.billing-actions) :is(.danger-button,.btn-outline-danger,.danger){color:var(--wk-coral);border-color:#ff9d8355;background:#ff9d830a}
.workspace216 :is(.phase1-action-list,.phase1-actions){font-size:14px}
.workspace216 .phase1-actions>summary{font-weight:600;border-radius:8px;border-color:var(--wk-line)}
.workspace216 .phase1-action-list[popover]{padding:8px;border-color:var(--wk-line);background:var(--surface-raised);box-shadow:0 12px 32px #0006}
.workspace216 .phase1-action-list>button{font-size:14px;line-height:1.55;font-weight:500}
.workspace216 .phase1-action-list>button.danger{color:var(--wk-coral)}
/* Customer identity and work tabs: different surfaces for identity, inventory and conversation. */
.workspace216 #customer-detail .customer-summary{background:var(--wk-paper);border:1px solid var(--wk-line);border-radius:12px;padding:24px;margin-bottom:22px}
.workspace216 #customer-detail .customer-identity h2{font-family:Manrope,'Segoe UI',sans-serif;font-size:24px;font-weight:650;letter-spacing:-.3px;line-height:1.25}
.workspace216 #customer-detail .customer-identity p{font-size:13px;color:var(--wk-muted);line-height:1.6}
.workspace216 #customer-detail .summary-tags .badge{font-size:12px;line-height:1.5;white-space:normal;text-align:left}
.workspace216 #customer-detail .tabs{gap:4px;border-bottom:1px solid var(--wk-line);margin-bottom:22px;flex-wrap:wrap}
.workspace216 #customer-detail .tab{font-size:14px;font-weight:600;line-height:1.5;min-height:var(--wk-control-size);border-radius:8px 8px 0 0;padding:8px 12px;color:var(--wk-muted);border:0;border-bottom:2px solid transparent;background:transparent}
.workspace216 #customer-detail .tab.selected{background:#b7f36b08;color:var(--wk-lime);border-bottom-color:var(--wk-lime)}
.workspace216 #customer-detail .source-card{border:1px solid var(--wk-line);border-radius:12px;background:var(--wk-paper);padding:20px}
.workspace216 #customer-detail .source-card>.card-heading{align-items:flex-start;gap:12px;margin-bottom:16px}
.workspace216 #customer-detail .source-card h3{font-family:Manrope,'Segoe UI',sans-serif;font-size:20px;font-weight:500;line-height:1.35;overflow-wrap:anywhere}
.workspace216 #customer-detail .source-actions{padding-top:16px;border-top:1px solid var(--wk-line)}
.workspace216 #customer-detail .profile-row{background:transparent;border-bottom-color:var(--wk-line);padding:20px 0}
.workspace216 #customer-detail :is(.profile-row,.device-row) strong{font-size:14px;line-height:1.5;color:var(--wk-ink)}
.workspace216 #customer-detail :is(.profile-row,.device-row) .row-actions{max-width:none;min-width:0}
.workspace216 #customer-detail .device-row{gap:18px;border-bottom-color:var(--wk-line);padding:18px 0;flex-wrap:wrap}
.workspace216 #customer-detail .device-row>div:first-child{flex:1;min-width:min(100%,180px)}
.workspace216 #customer-detail :is(.profile-row,.device-row) .row-actions>.button{font-size:14px}
.workspace216 #customer-detail .message-card{border:1px solid var(--wk-line);border-radius:12px;background:var(--wk-paper);padding:18px 20px;margin-bottom:14px}
.workspace216 #customer-detail .message-card h3{font-family:Manrope,'Segoe UI',sans-serif;font-size:20px;font-weight:500;line-height:1.35}
.workspace216 #customer-detail .message-card>p{font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.workspace216 #customer-detail .detail-two-columns{gap:22px}
.workspace216 #customer-detail .detail-two-columns>.panel-card{border:1px solid var(--wk-line);border-radius:12px;background:var(--wk-paper);padding:22px}
.workspace216 #customer-detail .detail-two-columns>.panel-card>h2{font-family:Manrope,'Segoe UI',sans-serif;font-size:21px;font-weight:500}
.workspace216 #customer-detail .form-counter{text-align:right;color:var(--wk-muted)}
.workspace216 #customer-detail .account-card{border:1px solid var(--wk-line);border-radius:12px;background:var(--wk-paper);padding:22px}
/* Statistics show numbers on a shared baseline, with detailed tables underneath. */
.workspace216 :is(#overview,#statistics-page) .phase1-scope{padding-bottom:18px;border-bottom:1px solid var(--wk-line);align-items:center;margin-bottom:22px}
.workspace216 :is(#overview,#statistics-page) .phase1-scope h2{font-family:Manrope,'Segoe UI',sans-serif;font-weight:500;font-size:23px;letter-spacing:-.2px}
.workspace216 :is(#overview,#statistics-page) .phase1-scope label{font-size:14px;margin:0}
.workspace216 :is(#overview,#statistics-page)>.phase1-metrics{gap:0;border-block:1px solid var(--wk-line);background:var(--wk-field);margin-bottom:26px;grid-template-columns:repeat(3,minmax(0,1fr))}
.workspace216 :is(#overview,#statistics-page)>.phase1-metrics>.phase1-metric{border:0;border-radius:0;background:transparent;padding:20px 22px;border-right:1px solid var(--wk-line)}
.workspace216 :is(#overview,#statistics-page)>.phase1-metrics>.phase1-metric:nth-child(3n){border-right:0}
.workspace216 :is(#overview,#statistics-page)>.phase1-metrics>.phase1-metric:nth-child(n+4){border-top:1px solid var(--wk-line)}
.workspace216 :is(#overview,#statistics-page) .phase1-metric>span{font-size:14px;line-height:1.5;color:var(--wk-muted)}
.workspace216 :is(#overview,#statistics-page) .phase1-metric>strong{font-family:Manrope,'Segoe UI',sans-serif;font-size:34px;font-weight:500;line-height:1.15;color:var(--wk-cyan);font-variant-numeric:tabular-nums}
.workspace216 :is(#overview,#statistics-page) .phase1-metric>small{font-size:12px;color:var(--wk-muted)}
.workspace216 :is(#overview,#statistics-page)>.phase1-card{border:1px solid var(--wk-line);border-radius:12px;padding:22px;background:var(--wk-paper);margin-bottom:20px}
.workspace216 :is(#overview,#statistics-page)>.phase1-card>.card-heading{padding-bottom:14px;border-bottom:1px solid var(--wk-line);margin-bottom:14px}
.workspace216 :is(#overview,#statistics-page)>.phase1-card>p{font-size:13px;line-height:1.7;color:var(--wk-muted)}
.workspace216 :is(#overview,#statistics-page) .phase1-distribution{gap:16px;align-items:baseline;border-color:var(--wk-line);font-size:14px}
.workspace216 :is(#overview,#statistics-page) .phase1-distribution small{font-size:12px;color:var(--wk-muted)}
.workspace216 :is(#overview,#statistics-page) .phase1-data-table :is(th,td){font-size:13px;padding:12px 14px;line-height:1.5;white-space:nowrap}
.workspace216 :is(#overview,#statistics-page) .phase1-data-table th{color:var(--wk-muted);font-size:12px;text-transform:none;letter-spacing:0;background:var(--studio-sidebar)}
/* Inventory/filter bars: the operation area is distinct from the data surface. */
.workspace216 :is(.support-filters,.audit-filter-form,.control-filter,.billing-invoice-toolbar,.dg-search){border:1px solid var(--wk-line);border-radius:12px;background:var(--wk-field);padding:16px 18px;gap:14px}
.workspace216 :is(.support-filters,.audit-filter-form,.control-filter,.billing-invoice-toolbar,.dg-search) label{font-size:13px;line-height:1.5;color:var(--wk-muted)}
.workspace216 :is(.support-filters,.audit-filter-form,.control-filter,.billing-invoice-toolbar,.dg-search) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select){font-size:14px;background:var(--wk-field);border:1px solid var(--wk-line);border-radius:8px;color:var(--wk-ink);padding:9px 12px;min-height:var(--wk-control-size);min-width:0}
.workspace216 :is(.support-filters,.audit-filter-form,.control-filter,.billing-invoice-toolbar,.dg-search) button{font-size:14px;min-height:var(--wk-control-size)}
.workspace216 :is(.support-list,.audit-results,.control-table-scroll){border-color:var(--wk-line);border-radius:12px;background:var(--wk-paper)}
.workspace216 :is(.audit-table,.control-table-scroll table,.access-table,.version-clients table){font-size:13px}
.workspace216 :is(.audit-table,.control-table-scroll table,.access-table,.version-clients table) th{font-size:12px;letter-spacing:0;text-transform:none;color:var(--wk-muted);background:var(--studio-sidebar)}
.workspace216 :is(.audit-table,.control-table-scroll table,.access-table,.version-clients table) td{font-size:13px;line-height:1.6}
.workspace216 :is(.support-row,.audit-pagination,.control-pagination,.billing-pagination,.dg-pagination){font-size:13px;color:var(--wk-muted);gap:12px}
.workspace216 .support-subject{font-size:15px;line-height:1.5;color:var(--wk-ink);text-align:left}
.workspace216 .support-tags .badge{font-size:12px;line-height:1.4}
.workspace216 .support-thread{border:1px solid var(--wk-line);border-radius:12px;background:var(--wk-paper);padding:22px}
.workspace216 .support-body{font-size:14px;color:var(--wk-ink);line-height:1.8}
.workspace216 .support-issue{font-size:13px;background:var(--wk-field);border:1px solid var(--wk-line);border-radius:8px}
/* Ownership/permissions, commercial decisions and system configuration have separate hierarchy. */
.workspace216 :is(.account-card,.security-card,.dg-card,.dg-editor,.import-preview,.network-imports,.ai-service-card,.recovery-create,.recovery-copies,.recovery-guide,.release-card,.release-decision,.integration-key-card,.integration-log-card,.epg-source){border:1px solid var(--wk-line);border-radius:12px;background:var(--wk-paper);padding:22px;box-shadow:none}
.workspace216 #account-page .account-card{border-top:1px solid var(--wk-line)}
.workspace216 #account-page .identity-line h2{font-family:Manrope,'Segoe UI',sans-serif;font-size:23px;font-weight:500;line-height:1.3}
.workspace216 #account-page .identity-line p{font-size:13px;color:var(--wk-muted)}
.workspace216 #security-page .security-card{border-top:1px solid var(--wk-line)}
.workspace216 #security-page .security-card>p{font-size:13px;line-height:1.7;color:var(--wk-muted)}
.workspace216 #security-page .security-recovery code{font-size:13px;line-height:1.6}
.workspace216 .dg-card-top h3{font-family:Manrope,'Segoe UI',sans-serif;font-size:21px;font-weight:500}
.workspace216 .dg-editor :is(h3,legend){font-size:16px;color:var(--wk-violet)}
.workspace216 .dg-member-order{font-size:13px;background:var(--wk-field);border-color:var(--wk-line)}
.workspace216 .dg-grant-row,.workspace216 .dg-choices label{font-size:14px}
.workspace216 #imports-page .import-source-list>.panel-card{border:1px solid var(--wk-line);border-radius:12px;background:var(--wk-paper);padding:22px}
.workspace216 #imports-page .import-source-form{border-top:1px solid var(--wk-line);padding-top:20px;margin-top:18px}
.workspace216 #imports-page :is(.import-job-row,.import-preview-users){font-size:13px;line-height:1.65}
.workspace216 :is(.billing-summary,.billing-plan,.billing-invoice,.billing-plan-request){border:1px solid #4d3f42;border-radius:12px;background:#241f25;padding:22px;box-shadow:none}
.workspace216 .billing-summary{border-color:#735047}
.workspace216 :is(.billing-plan,.billing-invoice,.billing-plan-request) h3{font-family:Manrope,'Segoe UI',sans-serif;font-size:22px;font-weight:500;line-height:1.3}
.workspace216 .billing-price{font-family:Manrope,'Segoe UI',sans-serif;color:var(--wk-coral);font-size:28px;line-height:1.2;letter-spacing:0}
.workspace216 .billing-invoice .notice{font-size:13px;line-height:1.65}
.workspace216 .billing-request-response{background:#1b2428;border-color:var(--wk-cyan)}
.workspace216 .billing-request-response h4{font-size:14px;color:var(--wk-cyan)}
.workspace216 .billing-settings{background:#171d26;border:1px solid var(--wk-line);border-radius:10px;padding:20px}
.workspace216 .billing-settings>summary{font-size:16px;line-height:1.5;min-height:var(--wk-control-size);color:var(--wk-coral)}
.workspace216 :is(.ai-service-card,.recovery-create,.release-decision){border-top:1px solid var(--wk-line)}
.workspace216 .ai-service-form{gap:18px;margin-top:24px}
.workspace216 .ai-service-status{gap:8px;margin-top:18px}
.workspace216 .ai-service-status .badge{font-size:12px;line-height:1.5;padding:5px 9px}
.workspace216 :is(.ai-service-notice,.release-review-note){border-top:1px solid var(--wk-line);padding-top:16px;margin-top:20px;color:var(--wk-muted);font-size:13px;line-height:1.7}
.workspace216 .control-metrics{border-color:var(--wk-line);border-radius:10px;background:var(--wk-field)}
.workspace216 .control-metric{border-color:var(--wk-line);box-shadow:none}
.workspace216 .control-metric p{font-size:14px;color:var(--wk-muted)}
.workspace216 .control-metric>strong{font-family:Manrope,'Segoe UI',sans-serif;font-size:30px;color:var(--wk-cyan);font-weight:500}
.workspace216 .control-facts{font-size:13px;line-height:1.6}
.workspace216 .control-facts dt{font-size:12px;color:var(--wk-muted)}
.workspace216 .control-facts dd{overflow-wrap:anywhere;color:var(--wk-ink)}
.workspace216 .release-gate{border:1px solid var(--wk-line);border-radius:10px;background:var(--wk-field);padding:18px}
.workspace216 .release-gate h3{font-size:16px;font-weight:600;color:var(--wk-ink);margin-bottom:16px}
.workspace216 .release-card>details>summary{font-size:14px;line-height:1.5;min-height:var(--wk-control-size);color:var(--wk-cyan)}
.workspace216 .release-decision>h3{font-size:21px}
.workspace216 .recovery-record{padding:18px 0;background:transparent;border:0;border-bottom:1px solid var(--wk-line);border-radius:0;box-shadow:none}
.workspace216 .recovery-record-heading h3{font-family:Manrope,'Segoe UI',sans-serif;font-size:19px;font-weight:500;line-height:1.4}
.workspace216 .recovery-guide code{font-size:13px;line-height:1.7}
/* Informational content uses the same reading surface as its related settings. */
.workspace216 :is(.settings-intro,.integration-intro,.security-summary){border:1px solid var(--wk-line);border-radius:12px;background:var(--wk-field);color:var(--wk-muted);padding:18px 20px;box-shadow:none;font-size:14px;line-height:1.65}
.workspace216 :is(.settings-intro,.integration-intro,.security-summary) :is(h2,h3){font-family:Manrope,'Segoe UI',sans-serif;color:var(--wk-ink);font-size:20px;font-weight:650}
.workspace216 :is(.settings-intro,.integration-intro,.security-summary) p{font-size:14px;line-height:1.65;max-width:74ch}
.workspace216 :is(#editor,#settings-dialog,#customer-detail,#settings-page,#account-page,#epg-page,#tickets-page,#issues-page,#security-page,#integrations-page,#domainGroups-page,#imports-page,#billing-page,#audit-page,#fleet-page,#playback-page,#sessions-page,#accessKeys-page,#metadataService-page,#subtitleService-page,#smtpService-page,#aiServices-page,#backups-page,#clientVersions-page,#releases-page,#statistics-page) .form-error:not(:empty){font-size:13px;line-height:1.7;color:var(--wk-coral);border:1px solid #ff9d834d;border-radius:8px;padding:9px 12px;background:#ff9d8309;overflow-wrap:anywhere}
/* Reflow stays natural: no clipped labels, arbitrary fixed card heights or hidden columns. */
@media(max-width:1000px){
 .workspace216 #customer-detail .detail-two-columns{grid-template-columns:minmax(0,1fr)}
 .workspace216 :is(.support-filters,.control-filter,.billing-invoice-toolbar){gap:12px}
 .workspace216 :is(#overview,#statistics-page) .phase1-distribution{grid-template-columns:minmax(0,1fr) auto}
 .workspace216 :is(#overview,#statistics-page) .phase1-distribution small{grid-column:1/-1}
}
@media(max-width:700px){
 .workspace216 :is(.detail-section-heading,.ai-service-intro,.recovery-heading) h2{font-size:22px}
 .workspace216 :is(.account-card,.security-card,.dg-card,.dg-editor,.import-preview,.network-imports,.ai-service-card,.recovery-create,.recovery-copies,.recovery-guide,.release-card,.release-decision,.integration-key-card,.integration-log-card,.billing-summary,.billing-plan,.billing-invoice,.billing-plan-request){padding:18px}
 .workspace216 :is(.form-grid,.smtp-draft-form,.integration-scope-grid,.settings-grid){grid-template-columns:minmax(0,1fr)}
 .workspace216 :is(.support-filters,.audit-filter-grid){grid-template-columns:minmax(0,1fr)}
 .workspace216 #customer-detail :is(.customer-summary,.source-card,.account-card,.detail-two-columns>.panel-card){padding:18px}
 .workspace216 #customer-detail .customer-summary{gap:18px;flex-wrap:wrap}
 .workspace216 #customer-detail .customer-identity h2{font-size:22px}
 .workspace216 #customer-detail .detail-actions{width:100%}
 .workspace216 #customer-detail .detail-actions>.button{flex:1}
 .workspace216 #customer-detail .device-row>.row-actions{width:100%}
 .workspace216 #customer-detail .tabs{gap:3px}
 .workspace216 #customer-detail .tab{padding:10px 12px}
 .workspace216 .workspace-sections>span{flex-basis:100%}
 .workspace216 :is(#overview,#statistics-page)>.phase1-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .workspace216 :is(#overview,#statistics-page)>.phase1-metrics>.phase1-metric{padding:18px;border-right:1px solid var(--wk-line);border-top:1px solid var(--wk-line)}
 .workspace216 :is(#overview,#statistics-page)>.phase1-metrics>.phase1-metric:nth-child(-n+2){border-top:0}
 .workspace216 :is(#overview,#statistics-page)>.phase1-metrics>.phase1-metric:nth-child(2n){border-right:0}
 .workspace216 :is(#overview,#statistics-page)>.phase1-card{padding:18px}
 .workspace216 :is(#overview,#statistics-page) .phase1-metric>strong{font-size:30px}
}
@media(max-width:480px){
 .workspace216 :is(.detail-section-heading,.card-heading,.recovery-record-heading,.release-heading){gap:12px}
 .workspace216 :is(.support-filters,.audit-filter-form,.control-filter,.billing-invoice-toolbar,.dg-search){padding:14px}
 .workspace216 :is(.settings-intro,.integration-intro,.security-summary){padding:16px}
 .workspace216 #customer-detail .tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .workspace216 #customer-detail .tab{text-align:center;border-radius:7px;padding:10px 8px;white-space:normal}
 .workspace216 #customer-detail :is(.profile-row,.device-row) .row-actions{width:100%;flex-wrap:wrap}
 .workspace216 #customer-detail :is(.profile-row,.device-row) .row-actions>.button{flex:1;min-width:100px}
}
@media(max-width:800px),(any-pointer:coarse){
 .workspace216 :is(#records,#customer-detail,#settings-page,#account-page,#epg-page,#tickets-page,#issues-page,#security-page,#integrations-page,#domainGroups-page,#imports-page,#billing-page,#audit-page,#fleet-page,#playback-page,#sessions-page,#accessKeys-page,#metadataService-page,#subtitleService-page,#smtpService-page,#aiServices-page,#backups-page,#clientVersions-page,#releases-page,#statistics-page,dialog) :is(button,.button,.btn,summary,a.text-link){min-height:var(--wk-control-size)}
 .workspace216 :is(#editor,#settings-dialog,.managed-profile-dialog,.account-card,.security-card,.dg-editor,.import-source-form,.support-form,.support-reply,.billing-settings,.ai-service-form,.recovery-form,.release-gate,.support-filters,.audit-filter-form,.control-filter,.billing-invoice-toolbar,.dg-search) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select){min-height:var(--wk-control-size)}
 .workspace216 .workspace-sections>a{min-height:var(--wk-control-size)}
}

/* Readability floor for authored ancillary text, without touching the sidebar or overview dashboard. */
.workspace216 :is(#records,#customer-detail,#settings-page,#account-page,#epg-page,#tickets-page,#issues-page,#security-page,#integrations-page,#domainGroups-page,#imports-page,#billing-page,#audit-page,#fleet-page,#playback-page,#sessions-page,#accessKeys-page,#metadataService-page,#subtitleService-page,#smtpService-page,#aiServices-page,#backups-page,#clientVersions-page,#releases-page,#statistics-page,dialog) :is(small,.badge,.secondary,.form-help,.form-counter,.eyebrow){font-size:12px;line-height:1.6}
.workspace216 :is(#records,#customer-detail,#settings-page,#account-page,#epg-page,#tickets-page,#issues-page,#security-page,#integrations-page,#domainGroups-page,#imports-page,#billing-page,#audit-page,#fleet-page,#playback-page,#sessions-page,#accessKeys-page,#metadataService-page,#subtitleService-page,#smtpService-page,#aiServices-page,#backups-page,#clientVersions-page,#releases-page,#statistics-page,dialog) label{font-size:14px;line-height:1.5}
.workspace216 #records td{font-size:14px;line-height:1.55}
.workspace216 #records th{font-size:12px;letter-spacing:0;text-transform:none;line-height:1.5}
.workspace216 #records .primary-cell :is(strong,.text-button){font-size:14px;line-height:1.5}

/* Guide scheduling and sources use a compact metadata sheet instead of another metric-card wall. */
.workspace216 #epg-page .epg-source-header{padding-bottom:16px;border-bottom:1px solid var(--wk-line);gap:16px;flex-wrap:wrap}
.workspace216 #epg-page .epg-source-header h2{font-family:Manrope,'Segoe UI',sans-serif;font-size:22px;font-weight:500;line-height:1.35}
.workspace216 #epg-page .epg-source-header p{font-size:13px;color:var(--wk-muted)}
.workspace216 #epg-page .epg-stats{gap:0 22px;margin:18px 0;border-bottom:1px solid var(--wk-line);padding-bottom:16px}
.workspace216 #epg-page .epg-stats>div{padding:10px 0;min-width:0}
.workspace216 #epg-page .epg-stats dt{font-size:12px;color:var(--wk-muted);line-height:1.5}
.workspace216 #epg-page .epg-stats dd{font-size:14px;line-height:1.6;color:var(--wk-ink);margin-top:5px}
.workspace216 #epg-page .epg-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:14px;background:var(--wk-field);border:1px solid var(--wk-line);border-radius:8px;padding:var(--wk-control-pad) 12px;min-height:var(--wk-control-size);color:var(--wk-ink)}
.workspace216 :is(.settings-footer,.detail-section-heading,.epg-source-header) .page-actions>.button{font-size:14px;min-height:var(--wk-control-size);padding:9px 13px;white-space:normal;line-height:1.5}

/* R2: actual216R1 record-page low text. Keep existing fine/coarse target sizing. */
.workspace216 #records .badge{font-size:12px;line-height:1.6}
.workspace216 #records .primary-cell>.avatar.small{font-size:12px}
.workspace216 #records .toolbar :is(input,select){font-size:14px}
.workspace216 #records .table-footer,.workspace216 #records .table-footer>#table-count{font-size:12px;line-height:1.6}
/* Known inherited ancillary rules with their own font declarations need direct scope. */
.workspace216 :is(#fleet-page,#playback-page,#sessions-page,#accessKeys-page,#clientVersions-page,#releases-page) .control-pagination>p{font-size:12px;line-height:1.6}
.workspace216 :is(#sessions-page,#accessKeys-page) .access-table td[data-label]::before{font-size:12px;line-height:1.6}
.workspace216 #clientVersions-page .version-clients td::before{font-size:12px;line-height:1.6}
.workspace216 dialog .policy-grid textarea{font-size:14px;line-height:1.6}
.workspace216 dialog .upload-note{font-size:12px;line-height:1.6}
.workspace216 #customer-detail .activity-item :is(small,time){font-size:12px;line-height:1.6}
.workspace216 :is(#audit-page,#customer-detail) .audit-table td:is(:first-child,:nth-child(3),:nth-child(4)){font-size:13px;line-height:1.6}

/* R3: measured EPG/editor targets and Partner mobile navigation from actual216R2. */
.workspace216 #epg-page :is(.epg-edit,.epg-create)>summary{box-sizing:border-box;min-height:var(--wk-control-size);padding:var(--wk-control-pad) 0;font-size:14px;line-height:1.5;cursor:pointer;color:var(--wk-cyan)}
.workspace216 #editor #editor-fields>.text-button.danger{display:inline-flex;align-items:center;justify-self:start;min-height:var(--wk-control-size);padding:6px 12px;border:1px solid #ff9d8355;border-radius:8px;background:#ff9d830a;color:var(--wk-coral);font-size:14px;line-height:1.5;text-decoration:none}
.workspace216 #editor #editor-fields>.text-button.danger:hover{border-color:var(--wk-coral);background:#ff9d8314;color:var(--wk-coral)}
@media(max-width:800px),(any-pointer:coarse){
 .workspace216 #epg-page :is(.epg-edit,.epg-create)>summary{min-height:var(--wk-control-size);padding-block:10px}
 .workspace216 #editor #editor-fields>.text-button.danger{min-height:var(--wk-control-size);padding-block:10px}
}
/* Explicit mobile Partner exception: keep its real links, icons and arrangement. */
body.workspace216:not(.super-admin) .sidebar .nav-item{position:relative}
@media(max-width:800px){
 body.workspace216:not(.super-admin) .sidebar nav :is(.nav-item,.nav-link){min-height:var(--wk-control-size);font-size:12px}
 body.workspace216:not(.super-admin) .sidebar-bottom :is(.nav-item,.nav-link,.player-link){min-height:var(--wk-control-size);font-size:12px}
}

/* R4: actual Partner touch customization labels keep the entire label reachable. */
@media(max-width:800px),(any-pointer:coarse){
 body.workspace216:not(.super-admin) #settings-page .setting-top .check-label{display:flex;align-items:center;min-height:var(--wk-control-size)}
}

/* Operational hierarchy: filters lead into records, with counts and pagination below. */
.workspace216 #records .toolbar{gap:10px;margin:0 0 16px;padding:14px;border:1px solid var(--wk-line);border-radius:12px;background:var(--wk-paper);align-items:center}
.workspace216 #records .toolbar .search{flex:1 1 240px;min-width:0;margin:0;background:var(--wk-field);border:1px solid var(--wk-line);border-radius:8px;gap:8px;padding:0 10px}
.workspace216 #records .toolbar .search>input{border:0;background:transparent;box-shadow:none;min-width:0;padding-inline:0}
.workspace216 #records .toolbar .search>span{color:var(--wk-muted)}
.workspace216 #records .toolbar :is(input,select){font-size:14px;line-height:1.4;color:var(--wk-ink);min-height:var(--wk-control-size);background-color:var(--wk-field);border-color:var(--wk-line);border-radius:8px}
.workspace216 #records .toolbar>.form-select{flex:0 1 172px}
.workspace216 #records .table-wrap{border:1px solid var(--wk-line);border-radius:12px;background:var(--wk-paper)}
.workspace216 #records .table{margin:0;color:var(--wk-ink);--tblr-table-border-color:var(--wk-line)}
.workspace216 #records .table th{font-weight:600;background:var(--studio-sidebar);color:var(--wk-muted);padding:13px 16px}
.workspace216 #records .table td{padding:16px;vertical-align:middle;border-color:var(--wk-line);font-variant-numeric:tabular-nums}
.workspace216 #records .table tbody tr:hover{background:#eef4fa04}
.workspace216 #records .primary-cell{gap:12px;align-items:center}
.workspace216 #records .primary-cell .secondary{font-size:12px;color:var(--wk-muted);line-height:1.6;margin-top:3px}
.workspace216 #records .record-limit-note{display:block;font-size:12px;line-height:1.6;color:var(--wk-muted);margin-top:3px}
.workspace216 #records .primary-cell :is(strong,.text-button){font-weight:650;color:var(--wk-ink)}
.workspace216 #records .primary-cell .text-button:hover{color:var(--wk-lime)}
.workspace216 #records .primary-cell>.avatar.small{width:36px;height:36px;border-radius:10px;background:var(--surface-raised);color:var(--wk-ink);font-size:12px}
.workspace216 #records .row-actions{align-items:center;gap:6px}
.workspace216 #records .row-actions :is(.button,summary){font-weight:600;border-radius:8px}
.workspace216 #records .table-footer{padding:14px 2px 0;margin-top:0;gap:12px;color:var(--wk-muted);font-size:12px}
.workspace216 #records .table-footer>div{gap:6px}
.workspace216 #records .table-footer button{min-width:var(--wk-control-size);min-height:var(--wk-control-size);border-radius:8px}
/* The existing drawer keeps independent scrolling fields and fixed action areas. */
.workspace216 #editor{--tblr-modal-bg:var(--wk-paper);border-radius:16px 0 0 16px}
.workspace216 #editor .dialog-header{background:var(--wk-paper);padding:24px;border-bottom-color:var(--wk-line);gap:16px}
.workspace216 #editor .dialog-header h2{font-family:Manrope,'Segoe UI',sans-serif;font-size:23px;line-height:1.3;font-weight:650;letter-spacing:-.3px}
.workspace216 #editor-fields{padding:24px;column-gap:20px;row-gap:6px}
.workspace216 #editor-fields>label{margin-bottom:14px}
.workspace216 #editor-fields .form-help{margin-top:7px;max-width:68ch}
.workspace216 #editor .dialog-actions{background:var(--studio-sidebar);border-top-color:var(--wk-line);padding:16px 24px}
.workspace216 #editor .dialog-actions>.button{min-width:112px}
.workspace216 #editor-error:not(:empty){background:#ff9d830c;color:var(--wk-coral);border:1px solid #ff9d834d;border-radius:8px;margin:0 24px 16px;padding:12px}
.workspace216 dialog{color:var(--wk-ink);background:var(--wk-paper);--tblr-modal-bg:var(--wk-paper);--tblr-modal-color:var(--wk-ink);--tblr-modal-border-color:var(--wk-line)}
.workspace216 dialog::backdrop{background:#030912c9;backdrop-filter:none}
.workspace216 #confirm-dialog{border-radius:14px}
/* One set of controls across management forms, including disabled and validation states. */
.workspace216 :is(.form-control,.form-select){color:var(--wk-ink);background-color:var(--wk-field);border-color:var(--wk-line);border-radius:8px;font-size:14px;line-height:1.5}
.workspace216 :is(.form-control,.form-select)::placeholder{color:var(--wk-muted);opacity:1}
.workspace216 :is(.form-control,.form-select):focus{border-color:var(--wk-lime);box-shadow:none}
.workspace216 :is(input,select,textarea):disabled{background-color:var(--surface-raised);color:var(--wk-muted);cursor:not-allowed}
.workspace216 input[type=checkbox]{appearance:auto;width:18px;height:18px;min-height:18px;flex:none;border-radius:4px;accent-color:var(--wk-lime);background:var(--wk-field)}
.workspace216 input[type=checkbox]:checked{background-color:var(--wk-lime);border-color:var(--wk-lime)}
.workspace216 :is(.button,.btn):disabled{cursor:not-allowed;opacity:.6}
.workspace216 :is(.button,.btn)[aria-busy=true]{cursor:progress}
.workspace216 :is(.button.primary,.btn-primary){background:var(--wk-lime);border-color:var(--wk-lime);color:#14200c;box-shadow:none}
.workspace216 :is(.button.primary,.btn-primary):enabled:hover{background:#caf995;border-color:#caf995;color:#14200c}
.workspace216 :is(.button.subtle,.btn-outline-secondary){background:#eef4fa04;border-color:var(--wk-line);color:var(--wk-ink);box-shadow:none}
.workspace216 :is(.button.subtle,.btn-outline-secondary):enabled:hover{background:var(--surface-raised);border-color:#536a80;color:var(--wk-ink)}
.workspace216 .phase1-action-list[popover]{background:var(--surface-raised);border-color:#536a80;border-radius:10px;box-shadow:0 14px 36px #0005}
.workspace216 .phase1-action-list>button:enabled:hover{color:var(--wk-ink);background:#eef4fa09}
.workspace216 .phase1-action-list>button.danger:enabled:hover{color:var(--wk-coral);background:#ff9d830c}
.workspace216 :is(.detail-actions,.source-actions,.dialog-actions,.row-actions,.page-actions) svg{width:16px;height:16px;flex:none}
.workspace216 #customer-detail .tab:hover{color:var(--wk-ink);background:#eef4fa04}
.workspace216 :is(.settings-grid>.panel-card,.account-card,.security-card,.dg-card,.dg-editor,.import-preview,.network-imports,.ai-service-card,.recovery-create,.recovery-copies,.recovery-guide,.release-card,.release-decision,.integration-key-card,.integration-log-card,.epg-source){padding:var(--wk-panel-pad)}
.workspace216 :is(.panel-empty,.empty){color:var(--wk-muted);font-size:14px;line-height:1.65;padding:28px 20px}
.workspace216 :is(.panel-empty,.empty) :is(h2,h3,strong){color:var(--wk-ink);font-size:16px;font-weight:650}
.workspace216 .workspace-footer{border-color:var(--wk-line);color:var(--wk-muted);font-size:12px;line-height:1.6}
/* Precise desktop pointers use the compact form; hybrids retain touch geometry. */
@media(min-width:801px) and (hover:hover) and (pointer:fine){
 @media not all and (any-pointer:coarse){
  body.workspace216{--wk-control-size:36px;--wk-control-pad:7px;--wk-panel-pad:20px}
  .workspace216 :is(#records,#customer-detail,#settings-page,#account-page,#epg-page,#tickets-page,#issues-page,#security-page,#integrations-page,#domainGroups-page,#imports-page,#billing-page,#audit-page,#fleet-page,#playback-page,#sessions-page,#accessKeys-page,#metadataService-page,#subtitleService-page,#smtpService-page,#aiServices-page,#backups-page,#clientVersions-page,#releases-page,#statistics-page,dialog) :is(.button,.btn,summary){min-height:36px;padding-block:7px;line-height:1.4}
  .workspace216 :is(#editor,#settings-dialog,.managed-profile-dialog,.account-card,.security-card,.dg-editor,.import-source-form,.support-form,.support-reply,.billing-settings,.billing-plan-request,.ai-service-form,.recovery-form,.release-gate,.release-distribution,.epg-form,.support-filters,.audit-filter-form,.control-filter,.billing-invoice-toolbar,.dg-search) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select){min-height:36px;padding-block:7px}
  .workspace216 #records .row-actions>.button{min-height:36px;padding:7px 10px;width:auto;flex:0 1 auto}
  .workspace216 #records .row-actions>.phase1-actions>summary{min-height:36px;padding:7px 10px}
  .workspace216 .phase1-action-list>button{min-height:36px;padding:7px 10px}
  .workspace216 #records .table td{padding-block:14px}
  @media(min-width:1101px){.workspace216 #records .table{table-layout:auto;min-width:1020px}}
  .workspace216 #records .row-actions{display:flex;flex-wrap:nowrap;min-width:250px}
  .workspace216 #records .row-actions>.phase1-actions{flex:0 0 auto;grid-column:auto;width:auto}
  .workspace216 #records .row-actions>.phase1-actions>summary{min-width:58px;white-space:nowrap;overflow-wrap:normal;word-break:normal}
  .workspace216 #records .row-actions :is(.button,summary){font-size:13px;white-space:nowrap}
  .workspace216 #records .table td{padding:12px}
  .workspace216 #editor #close-editor{width:36px;height:36px;min-width:36px;min-height:36px;padding:0}
  .workspace216 #editor .dialog-header{padding:20px 24px}
 }
}
@media(max-width:1100px){
 .workspace216.max-studio #records .table-wrap{border:0;background:transparent;overflow:visible}
 .workspace216.max-studio #records .table tbody tr{border-color:var(--wk-line);border-radius:12px;background:var(--wk-paper)}
}
@media(max-width:800px),(any-pointer:coarse){
 .workspace216 :is(.form-control,.form-select){min-height:44px}
 .workspace216 :is(.button,.btn,.tab,summary){min-height:44px}
 .workspace216 :is(.icon-button,.btn-icon){min-width:44px;min-height:44px}
 .workspace216 #records .row-actions{gap:8px}
 .workspace216 #records .row-actions>.button{min-height:44px}
 .workspace216 #records .row-actions>.phase1-actions>summary{min-height:44px}
 .workspace216 #records .toolbar>.form-select{flex:1 1 130px}
 .workspace216 #records .toolbar .search{flex-basis:100%}
}
@media(max-width:800px){
 .workspace216:not(.max-control) .sidebar{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:16px}
 .workspace216:not(.max-control) .sidebar>.brand{margin:0;min-height:36px}
 .workspace216:not(.max-control) .sidebar .brand-partner{display:none}
 .workspace216:not(.max-control) .sidebar nav{margin:0;min-height:44px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
 .workspace216:not(.max-control) .sidebar-bottom{display:flex;align-items:center;flex-wrap:nowrap;gap:12px;overflow-x:auto;margin:0;padding:0;scrollbar-width:thin}
 .workspace216:not(.max-control) .sidebar-bottom>:is(a,button){flex:none;min-height:44px;margin:0;padding:8px;font-size:12px;white-space:nowrap}
 .workspace216:not(.max-control) .sidebar-bottom .sidebar-version{display:none}
 .workspace216 #records .table-wrap{border:0;background:transparent;overflow:visible}
 .workspace216 #records .table td{padding:12px 10px}
 .workspace216 #records .table tbody tr{background:var(--wk-paper);border-color:var(--wk-line);border-radius:12px}
 .workspace216 #editor{border-radius:16px 16px 0 0}
 .workspace216 #editor .dialog-header,.workspace216 #editor-fields{padding:20px}
 .workspace216 #editor .dialog-actions{padding:16px 20px calc(16px + env(safe-area-inset-bottom))}
 .workspace216 #editor .dialog-actions>.button{min-width:0}
 .workspace216 #editor-error:not(:empty){margin-inline:20px}
 .workspace216 #customer-detail .customer-summary{padding:18px}
}
