.hm-tabs{display:flex;gap:10px;margin:0 0 24px;flex-wrap:wrap}.hm-tabs button[aria-selected=true]{background:#222864;color:white;border-color:#222864}.hm-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.hm-search{display:flex;gap:12px;align-items:end;margin:18px 0}.hm-search label{flex:1}.hm-link{padding:4px 8px;margin:4px 0}.hm-message-text{white-space:pre-wrap;overflow-wrap:anywhere;background:#f1f5f8;padding:20px;border-radius:12px}.hm-preview{border:2px solid #4a8ea3}.hm-tabs~.panel{margin-bottom:20px}#mini-queue .panel>.field{margin:20px 0}#mini-queue .panel>button{margin-top:8px}#mini-queue td{vertical-align:top;line-height:1.65}#mini-queue input[type=checkbox]{width:18px;height:18px}#mini-queue .hm-search button{white-space:nowrap}@media(max-width:600px){.hm-search{display:grid}.hm-tabs button{flex:1}.hm-heading{align-items:start}}
.onboarding-invalid{outline:2px solid #bd5a3b;outline-offset:7px;border-radius:8px}.onboarding-hint{display:none}.onboarding-invalid>.onboarding-hint{display:block;color:#a13d28;font-size:12px;margin:12px 0 0}.onboarding-form .onboarding-invalid{scroll-margin:40px}

.hm-composer{max-width:1050px}.hm-composer .field{margin:24px 0}.hm-composer h3{font-size:16px;margin:0}.hm-recipient-count{background:#eef1fa;color:#303c73;padding:8px 13px;border-radius:20px;font-size:12px;white-space:nowrap}
.hm-picker{padding:20px;border:1px solid #dce3ef;border-radius:15px;background:#f8faff;margin:22px 0}.hm-picker .actions{margin:15px 0}.hm-picker .hm-search{margin:16px 0}.hm-recipient-list{max-height:390px;overflow:auto;border:1px solid #e2e7ef;border-radius:12px;background:white}.hm-recipient{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e8edf4}.hm-recipient:last-child{border-bottom:0}.hm-recipient label{display:flex;gap:13px;align-items:center;cursor:pointer;flex:1}.hm-recipient label>span{display:grid;gap:4px}.hm-recipient strong{font-size:13px}.hm-recipient small{font-size:11px;color:#728198;line-height:1.45}.hm-recipient input{flex:0 0 18px}.hm-recipient.is-unavailable label{cursor:default;color:#7c8592}.hm-recipient .hm-link{font-size:11px;white-space:nowrap}.hm-all-note,.hm-personal-note{padding:17px 19px;background:#f1f5fc;border-radius:13px;font-size:13px;line-height:1.65;margin:20px 0}.hm-personal-note p{margin:8px 0 14px}.hm-personal-note button{font-size:12px}
.hm-image-field{border:1px dashed #c9d4e5;border-radius:15px;padding:20px;margin:24px 0}.hm-image-field .help{margin:12px 0 0}.hm-attachments{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:12px;margin:18px 0}.hm-attachments figure{margin:0;position:relative;min-width:0;background:#f2f5fa;border:1px solid #dce4ef;border-radius:12px;padding:8px}.hm-attachments img{width:100%;height:115px;object-fit:cover;border-radius:7px}.hm-attachments figcaption{font-size:11px;line-height:1.5;margin-top:6px;overflow-wrap:anywhere;color:#6e7b91}.hm-attachments button{position:absolute;top:13px;right:13px;width:28px;height:28px;min-width:28px;padding:0;border-radius:50%;background:white;font-size:20px;line-height:1}.hm-history{margin-top:24px}.hm-history>summary{font-size:16px;font-weight:600;cursor:pointer}.hm-history>div{padding-top:18px}.hm-history>div>details{padding:15px 0;border-top:1px solid #e3e8f1}.hm-composer>.actions{margin-top:24px;gap:12px}.hm-composer input[type=file][hidden]{display:none!important}
@media(max-width:650px){.hm-composer .hm-heading{flex-direction:column;align-items:start;gap:12px}.hm-picker{padding:15px}.hm-recipient{align-items:start;flex-direction:column}.hm-recipient label{width:100%}.hm-attachments{grid-template-columns:repeat(2,minmax(0,1fr))}.hm-image-field{padding:16px}}

/* One shared size for normal single-line controls in the Mini App manager workspace. */
#mini-queue{--hm-control-height:48px}
#mini-queue input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=color]):not([type=range]),#mini-queue select:not([multiple]){height:var(--hm-control-height);min-height:var(--hm-control-height);box-sizing:border-box;padding-block:10px;line-height:1.35}
#mini-queue button:not(.hm-link):not([data-hm-remove]):not(.close){display:inline-flex;align-items:center;justify-content:center;min-height:var(--hm-control-height);box-sizing:border-box;padding-block:10px;line-height:1.35}
#mini-queue :is(.ha-manager-tools,.hm-search,#hidden-queue-filter){align-items:end}
#mini-queue :is(.ha-manager-tools,.hm-search,#hidden-queue-filter)>button{height:var(--hm-control-height);min-height:var(--hm-control-height);align-self:end;margin-block:0}
body:has(#mini-queue) .title-actions>:is(button,a.cabinet-link){display:inline-flex;align-items:center;justify-content:center;height:48px;min-height:48px;box-sizing:border-box;padding-block:10px;line-height:1.35;margin-block:0}

/* Stable spacing between manager content groups; avoid relying on browser heading margins. */
#mini-queue{--hm-space:20px}
#mini-queue .ha-admin-card{display:grid;gap:24px}
#mini-queue .ha-admin-card>*{min-width:0;margin:0}
#mini-queue .ha-admin-header{display:grid;gap:18px;padding-bottom:20px;border-bottom:1px solid #e5eaf2}
#mini-queue .ha-admin-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
#mini-queue .ha-admin-heading h2{min-width:0;margin:0;line-height:1.35;overflow-wrap:anywhere}
#mini-queue .ha-admin-heading .ha-admin-badge{flex:0 0 auto;align-self:flex-start;margin:0;line-height:1.5;white-space:nowrap}
#mini-queue .ha-admin-customer{display:grid;gap:8px}
#mini-queue .ha-admin-customer h3,#mini-queue .ha-admin-customer p{margin:0;line-height:1.6}
#mini-queue .ha-admin-card dl{display:grid;gap:18px}
#mini-queue .ha-admin-card dt{line-height:1.5}
#mini-queue .ha-admin-card dd{margin:6px 0 0;line-height:1.65}
#mini-queue .ha-admin-form{gap:20px;padding-top:0}
#mini-queue .ha-admin-form .two-col{gap:20px 24px;align-items:start;margin:0}
#mini-queue .field{gap:10px}
#mini-queue .ha-admin-form .actions{margin:4px 0 0}
#mini-queue .ha-admin-form textarea{min-height:120px;line-height:1.6}
#mini-queue .ha-admin-form select[multiple]{min-height:140px}
#mini-queue details>summary{display:flex;align-items:center;min-height:48px;padding:12px 16px;border:1px solid #dce4ef;border-radius:10px;background:#f8faff;color:inherit;font-weight:600;line-height:1.5;list-style:none;box-sizing:border-box;cursor:pointer;transition:background-color .25s ease,border-color .25s ease}
#mini-queue details>summary::-webkit-details-marker{display:none}
#mini-queue details>summary::marker{content:''}
#mini-queue details>summary::before,#mini-queue details>summary::after{display:none}
#mini-queue details[open]>summary{background:#eef3fb;border-color:#cbd7eb}
#mini-queue details[open]>summary+*{margin-top:20px}
#mini-queue details>summary:focus-visible{outline:2px solid #47a9d0;outline-offset:3px}
#mini-queue .panel>.table-wrap{margin-block:24px}
#mini-queue .panel>.actions{margin-top:20px;gap:12px}
#mini-queue .panel>h2{margin:0 0 16px;line-height:1.35}
#mini-queue .ha-manager-tools{gap:16px;margin:20px 0 24px}
#mini-queue .hm-heading{margin-bottom:16px}
#mini-queue .hm-heading h2{margin:0;line-height:1.35}
@media(max-width:650px){#mini-queue .ha-admin-heading{flex-direction:column;align-items:flex-start;gap:12px}#mini-queue .ha-admin-card{gap:20px}#mini-queue .ha-admin-header{gap:16px;padding-bottom:18px}#mini-queue .ha-manager-tools{gap:16px}#mini-queue .ha-manager-tools>.field{flex-basis:100%;min-width:0}#mini-queue .ha-manager-tools>button{width:100%}}
@media(prefers-reduced-motion:reduce){#mini-queue details>summary{transition:none}}

/* A customer-centered manager workspace; presentation only. */
#mini-queue .hm-client-name{min-height:0!important;height:auto;padding:0!important;border:0;background:transparent;box-shadow:none;color:#26376d;font:inherit;font-weight:700;text-align:left;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px;cursor:pointer}
#mini-queue .hm-client-name:hover{text-decoration-color:currentColor}
#mini-queue .hm-client-card{display:grid;gap:24px}
#mini-queue .hm-client-card>button{justify-self:start}
#mini-queue .hm-client-title{display:flex;justify-content:space-between;align-items:start;gap:20px}
#mini-queue .hm-client-title h2{margin:0 0 10px}
#mini-queue .hm-client-title p{margin:0;line-height:1.65}
#mini-queue .hm-client-profile{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 24px;margin:0;padding-top:22px;border-top:1px solid #e5eaf2}
#mini-queue .hm-client-profile dt{font-size:13px;color:#728198;line-height:1.5}
#mini-queue .hm-client-profile dd{margin:6px 0 0;line-height:1.6;overflow-wrap:anywhere}
#mini-queue .hm-client-section{scroll-margin-top:24px;margin:32px 0}
#mini-queue .hm-client-section>h2{margin:0 0 12px}
#mini-queue .hm-client-section>.help{margin:0 0 24px;line-height:1.6}
#mini-queue .hm-client-section>.panel{margin:0 0 24px}
#mini-queue .hm-tool-content{display:grid;gap:18px;padding:0 2px 4px}
#mini-queue .hm-tool-content .field,#mini-queue .hm-tool-content .help{margin:0}
#mini-queue .hm-tool-content>button{justify-self:start}
#mini-queue .hm-request-tools{align-items:start;gap:24px;margin-top:24px}
#mini-queue .ha-extra-content{display:grid;gap:20px}
#mini-queue .ha-admin-form>.help{margin:0;line-height:1.6;background:#f1f5fb;padding:14px 16px;border-radius:10px}
#mini-queue .mini-request .title-row h2{line-height:1.4}
@media(max-width:650px){#mini-queue .hm-client-title{flex-direction:column}#mini-queue .hm-client-profile{grid-template-columns:repeat(2,minmax(0,1fr))}#mini-queue .hm-client-card{gap:20px}#mini-queue .hm-client-card>.actions{display:grid}#mini-queue .hm-request-tools{grid-template-columns:1fr}#mini-queue .ha-admin-form .two-col{grid-template-columns:1fr}}

#mini-queue .hj-tabs{margin:0 0 24px}#mini-queue .hj-panel{margin:24px 0}#mini-queue .hj-filters{display:flex;align-items:end;flex-wrap:wrap;gap:14px;margin:22px 0}#mini-queue .hj-filters>.field{flex:1;min-width:180px;margin:0}#mini-queue .hj-filters>button{height:48px;margin:0}#mini-queue .hj-note{line-height:1.65;margin:20px 0}#mini-queue .hj-score-info{margin:20px 0 24px}#mini-queue .hj-score-info p{font-size:13px;line-height:1.7;margin:18px 0}#mini-queue .hj-summary{min-width:740px}#mini-queue .hj-score{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:32px;border-radius:10px;background:#e8eef9;color:#263c76}#mini-queue .hj-timeline{list-style:none;padding:0;margin:20px 0;display:grid;gap:12px}#mini-queue .hj-timeline li{border-left:3px solid #cdd9ed;background:#f7f9fd;padding:16px 18px;border-radius:0 10px 10px 0}#mini-queue .hj-event-top{display:flex;gap:12px;align-items:center;flex-wrap:wrap}#mini-queue .hj-event-top time{font-size:12px;color:#6b7a91}#mini-queue .hj-timeline p{margin:10px 0 0;line-height:1.6}#mini-queue .hj-saved{font-size:11px;color:#426043;background:#e9f1e5;padding:4px 8px;border-radius:8px}@media(max-width:650px){#mini-queue .hj-filters{display:grid;grid-template-columns:1fr}#mini-queue .hj-filters>.field{min-width:0}#mini-queue .hj-panel{padding:20px}#mini-queue .hj-event-top{gap:8px}}

/* Scope of the activity result visibility setting. */
.ha-publication{min-width:0;margin:6px 0 0;padding:18px 20px 20px;border:1px solid #d7e1ef;border-radius:14px;background:#f7f9fd;display:grid;gap:12px}.ha-publication legend{padding:0 8px;font-size:15px;font-weight:600;color:#25386a}.ha-publication .check{align-items:flex-start;gap:12px;font-size:15px;line-height:1.5}.ha-publication .check input{flex:0 0 20px;width:20px;height:20px;margin:2px 0 0}.ha-publication .help{margin:0;font-size:13px;line-height:1.65}

.hm-customer-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}.hm-customer-tools button{min-height:38px;padding:8px 12px;font-size:13px;line-height:1.3}.hm-customer-tools .hm-customer-delete{color:#a12d36;border-color:#d9b7bd;background:#fff8f8}.hm-customer-tools .hm-customer-delete:hover{background:#fae9eb;border-color:#bd7982}.hm-client-card>.hm-customer-tools{margin-bottom:24px}
.hm-customer-notice{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin:0 0 24px}.hm-customer-notice p{margin:8px 0 0}.hm-customer-notice .actions{margin:0;gap:8px;flex-wrap:wrap}
.hm-customer-form{display:grid;gap:20px}.hm-customer-form>p{margin:0;line-height:1.5}.hm-customer-form .field{margin:0;display:grid;gap:10px}.hm-customer-form input,.hm-customer-form .actions button{box-sizing:border-box;min-height:50px;font-size:16px}.hm-customer-form .actions{display:flex;flex-wrap:wrap;gap:12px;margin:0}.hm-customer-form .error:empty{display:none}.hm-customer-form button.primary.hm-customer-delete{background:#a12d36;border-color:#a12d36;color:white}.hm-customer-form button.primary.hm-customer-delete:hover{background:#84242c;border-color:#84242c}

/* Disclosure controls in the cabinet: preserve layout and make open state visible. */
#app details>summary,#modal details>summary{position:relative;list-style:none;padding-right:48px;cursor:pointer;transition:background-color .25s ease,border-color .25s ease}
#app details>summary::-webkit-details-marker,#modal details>summary::-webkit-details-marker{display:none}
#app details>summary::marker,#modal details>summary::marker{content:''}
#app details>summary::after,#modal details>summary::after{content:'';display:block;position:absolute;right:19px;top:50%;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;color:#60759b;box-sizing:border-box;transform:translateY(-65%) rotate(45deg);transform-origin:center;pointer-events:none;transition:transform .25s ease,color .25s ease}
#app details[open]>summary::after,#modal details[open]>summary::after{transform:translateY(-35%) rotate(225deg);color:#283a76}
#app details>summary:hover,#modal details>summary:hover{background-color:#eef3fb;border-color:#bbcbe3}
#app details>summary:focus-visible,#modal details>summary:focus-visible{outline:2px solid #47a9d0;outline-offset:3px}
@media(prefers-reduced-motion:reduce){#app details>summary,#modal details>summary,#app details>summary::after,#modal details>summary::after{transition:none}}

/* Keep manual reply visibility beside the fields it controls. */
#mini-queue .ha-admin-form>.ha-publication{margin:0;padding:10px 16px 14px;gap:8px}
#mini-queue .ha-publication legend{font-size:13px;padding:0 6px}
#mini-queue .ha-publication .check{margin:0;gap:10px;font-size:14px;line-height:1.5}
#mini-queue .ha-publication .help{font-size:12px;line-height:1.5;margin:0;padding:0;background:none}
#mini-queue .ha-admin-form>.ha-delivery-note{padding:0;background:none;border-radius:0;font-size:12px;line-height:1.5}
