body.dashboard{--admin-gap:20px;--admin-border:#e7ebf2}
.dashboard .workspace main{padding:24px;max-width:1700px}
.dashboard #content{min-width:0}
.dashboard .settings-form,.dashboard .settings-fold{max-width:none;width:100%}
.dashboard .panel,.dashboard .settings-fold,.dashboard .table,.dashboard .analytics-cards section,.dashboard .summary-card{border:1px solid var(--admin-border);border-radius:8px}
.dashboard .panel{padding:20px;margin-bottom:20px}
.dashboard .settings-fold{margin:0 0 20px;padding:0}
.dashboard .settings-fold>.settings-form{padding:20px;margin:0}
.dashboard .settings-fold>summary{padding:18px 20px}
.dashboard .page-tools{gap:16px;flex-wrap:wrap;margin-bottom:20px}
.dashboard h2{font-size:20px;line-height:1.4;margin:0 0 20px}
.dashboard .page-tools h2,.dashboard .page-tools h3{margin:0}
.dashboard h3{font-size:14px;line-height:1.5;margin:0 0 16px}
.dashboard p{font-size:13px;line-height:1.7}
.dashboard label{font-size:13px;gap:8px;min-width:0}
.dashboard input:not([type=checkbox]):not([type=radio]),.dashboard select{height:40px;padding:9px 12px;min-width:0}
.dashboard input[type=file]{height:auto!important}
.dashboard textarea{min-height:80px;padding:10px 12px;line-height:1.6}
.dashboard textarea.admin-long-text,.dashboard [data-template][data-field=body]{min-height:140px}
.dashboard button{min-height:40px;padding:9px 16px;border-radius:6px}
.dashboard .secondary-button,.dashboard [data-nav-move]{color:#53637f;background:#f1f4f9;border:1px solid #e2e8f0}
.dashboard .secondary-button:hover{background:#e7edf6}
.dashboard button.admin-danger{background:#fff0f2;color:#ce4055;border:1px solid #ffe1e6}
.dashboard .admin-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.dashboard .admin-fields>.admin-wide{grid-column:1/-1}
.dashboard .admin-fields>h3,.dashboard .admin-fields>h4,.dashboard .admin-fields>p{margin:0}
.dashboard .admin-fields .site-editor-grid{width:100%;gap:16px}
.dashboard .admin-fields>details{margin:0;padding:0 16px}
.dashboard .admin-fields details label{margin-bottom:16px}
.dashboard .admin-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding-top:4px}
.dashboard .admin-form-actions button{width:auto}
.dashboard #download-editor{display:block}
.dashboard #download-apps{display:grid;gap:20px;margin:20px 0}
.dashboard #download-apps .panel{margin:0}
.dashboard .download-editor-card>.page-tools{display:flex;align-items:center;margin:0;padding-bottom:16px;border-bottom:1px solid var(--admin-border)}
.dashboard .download-editor-card .page-tools h3{margin-right:auto;overflow-wrap:anywhere}
.dashboard .download-editor-card .page-tools>div{display:flex;gap:8px;order:3}
.dashboard .download-editor-card .page-tools>label{font-size:12px}
.dashboard .download-editor-card input[type=checkbox]{accent-color:var(--blue)}
.dashboard .table{margin-top:20px;max-width:100%;overflow-x:auto}
.dashboard th,.dashboard td{padding:13px 14px;font-size:12px}
.dashboard td button{min-height:30px;padding:5px 10px;font-size:12px}
.dashboard .pager{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0 20px}
.dashboard .list-filter{gap:12px;margin-bottom:20px}
.dashboard .analytics-cards{gap:16px;margin-bottom:20px}
.dashboard .analytics-cards section{padding:20px}
.dashboard .summary-card{padding:20px}
.dashboard .summary-card .card-handle{min-height:30px;padding:0}
.dashboard .admin-dialog{border-radius:12px;padding:24px;max-width:calc(100vw - 32px)}
.dashboard .dialog-close{min-height:32px;padding:0;width:32px}
.dashboard .dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:4px}
.dashboard #message{border-radius:8px;margin-bottom:20px}
.dashboard [role=status]:empty{display:none}
.dashboard #download-result:not(:empty),.dashboard #home-save-result:not(:empty),.dashboard #site-save-result:not(:empty){padding:12px 16px;border-radius:8px;background:#f0f6ff;color:#2862cf;border:1px solid #ccddff}
.dashboard .settings-form>.page-tools{margin:0}
@media(max-width:759px){.dashboard .workspace main{padding:16px}.dashboard .panel,.dashboard .settings-fold>.settings-form,.dashboard .analytics-cards section,.dashboard .summary-card{padding:16px}.dashboard .admin-fields{grid-template-columns:minmax(0,1fr)}.dashboard .site-editor-grid{grid-template-columns:minmax(0,1fr)}.dashboard .page-tools{gap:12px}.dashboard .download-editor-card .page-tools>div{width:100%}.dashboard .download-editor-card .page-tools>label{margin-left:auto}.dashboard .test-mail-grid{grid-template-columns:1fr}.dashboard .admin-form-actions{gap:8px}.dashboard .admin-dialog{padding:20px}.dashboard .topbar{padding:0 16px}.dashboard .site-nav-row{gap:6px}.dashboard .site-nav-row small{display:none}}

.dashboard button{white-space:nowrap}.dashboard .download-editor-card .page-tools>div{flex-shrink:0}.dashboard .card-handle{min-height:30px;padding:0;width:28px}.dashboard .quiet{min-height:30px}
.dashboard .topbar-actions,.dashboard .topbar>div{white-space:nowrap}.dashboard .topbar-actions{gap:8px}
@media(max-width:759px){.dashboard .topbar .breadcrumb,.dashboard .topbar .separator{display:none}.dashboard .topbar-actions{gap:6px}.dashboard .topbar .quiet{padding:5px 6px}.dashboard .topbar{gap:8px}.dashboard .topbar-actions>span:not(.avatar){display:none}}

/* Compact member creation: optional lossless access alongside the note. */
body.dashboard #add-member .member-create-options{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;grid-column:1/-1;align-items:start}
body.dashboard #add-member .member-lossless-switch{position:relative;display:flex;flex-direction:column;gap:8px;cursor:pointer}
body.dashboard #add-member .member-lossless-switch input{position:absolute;left:0;bottom:0;width:48px;height:28px;opacity:0;cursor:pointer;z-index:1}
body.dashboard #add-member .member-switch-track{display:block;position:relative;width:44px;height:24px;margin:8px 0;background:#cbd5e1;border-radius:20px;transition:background .15s}
body.dashboard #add-member .member-switch-track:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;background:#fff;border-radius:50%;transition:transform .15s}
body.dashboard #add-member input:checked+.member-switch-track{background:#3973ff}
body.dashboard #add-member input:checked+.member-switch-track:after{transform:translateX(20px)}
body.dashboard #add-member input:focus-visible+.member-switch-track{outline:2px solid #3973ff;outline-offset:3px}

/* Compact member table: shared alignment and consistent lightweight controls. */
.dashboard .member-table table{width:100%;min-width:1050px;table-layout:auto}
.dashboard .member-table th,.dashboard .member-table td{padding:10px 10px;text-align:left;vertical-align:middle;white-space:nowrap;font-size:12px}
.dashboard .member-table th{height:44px;color:#8490a5}
.dashboard .member-table th button{padding:0;margin:0;height:auto;min-height:0;background:transparent;display:inline-flex;align-items:center;gap:3px;color:inherit;font-size:inherit}
.dashboard .member-table td button{height:28px;min-height:28px;margin:0;padding:0 9px;border-radius:5px;font-size:12px;line-height:1;vertical-align:middle}
.dashboard .member-table td .member-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;min-width:28px;padding:0}
.dashboard .member-table .member-icon svg{display:block;flex:none;pointer-events:none}
.dashboard .member-table .member-row-actions{display:flex;align-items:center;gap:5px}
.dashboard .member-table td .member-note-text{max-width:130px;overflow:hidden;text-overflow:ellipsis;background:transparent;color:#60718e;padding:0;text-align:left}
.dashboard .member-table td .member-note-text:hover{color:#3975ff;text-decoration:underline}
.dashboard .member-table .member-status-expired{display:inline-block;color:#df4058;background:#fff0f2;border-radius:4px;padding:4px 7px;line-height:1.3}
.dashboard .member-table th:nth-child(2),.dashboard .member-table td:nth-child(2),.dashboard .member-table th:nth-child(3),.dashboard .member-table td:nth-child(3){text-align:center}
.dashboard .member-table th:last-child,.dashboard .member-table td:last-child{width:206px}

.dashboard .member-table td button.member-library-lossless{background:#f1eaff;color:#8052bc}
.dashboard .member-table td button.member-library-lossless:hover{background:#e6d9fa;color:#69409e}

.dashboard .member-table th:first-child{width:22%}
.dashboard .member-table th:nth-child(2),.dashboard .member-table th:nth-child(3){width:58px}
.dashboard .member-table th:nth-child(4),.dashboard .member-table th:nth-child(5),.dashboard .member-table th:nth-child(6){width:104px}
.dashboard .member-table th:nth-child(7){width:80px}
.dashboard .member-table th:nth-child(8){width:68px}

/* Keep review modes separate from global label display rules. */
.dashboard #order-dialog [hidden]{display:none!important}
.dashboard #order-dialog{width:440px;padding:20px;border-radius:10px}
.dashboard #order-dialog .dialog-heading{padding:0 0 12px;margin:0 0 14px;align-items:center}
.dashboard #order-dialog .dialog-heading h2{font-size:18px;margin:0}
.dashboard #order-dialog #order-review{padding:0;margin:0;display:block}
.dashboard #order-dialog #order-summary{margin:0 0 16px;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.dashboard #order-dialog label{margin:0 0 12px;display:block;line-height:1.5}
.dashboard #order-dialog select{margin:6px 0 0;width:100%;height:38px}
.dashboard #order-dialog label.order-check{display:flex;align-items:flex-start;gap:8px;font-size:13px;margin:12px 0}
.dashboard #order-dialog .order-check input[type=checkbox]{display:block;flex:0 0 15px;width:15px;height:15px;padding:0;margin:2px 0 0;accent-color:#3975ff}
.dashboard #order-dialog .order-check span{flex:1;min-width:0}
.dashboard #order-dialog textarea{margin-top:6px;min-height:80px;height:80px}
.dashboard #order-dialog #order-review-message:empty{display:none}
.dashboard #order-dialog #order-review-message{font-size:13px;margin:10px 0;color:#d94b63}
.dashboard #order-dialog .dialog-actions{padding:14px 0 0;margin:14px 0 0;border-top:1px solid #edf0f5;gap:8px}
.dashboard #order-dialog .dialog-actions button{width:auto;min-width:90px;height:36px;min-height:36px;margin:0;padding:0 16px}
