/* Citizen inbox only: leave the administrator review and locality picker alone. */
.jm-workbench{max-width:1320px;padding:28px 28px 40px;color:var(--ink)}
.jm-workbench [hidden]{display:none!important}
.jm-workbench .jm-heading{margin:0 0 18px;gap:16px;align-items:center}
.jm-workbench .jm-heading .eyebrow{margin:0 0 5px;font-size:.65rem;letter-spacing:.16em}
.jm-workbench .jm-heading h1{font-size:clamp(1.85rem,3vw,2.55rem);line-height:1.1;letter-spacing:-.035em}
.jm-subtitle{font-size:.9rem;color:var(--muted);margin:8px 0 0}
.jm-heading-actions,.jm-updates{display:flex;align-items:center;gap:18px}
.jm-updates{gap:7px;text-decoration:none;font-size:.84rem}
.jm-workbench .button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 16px;border:0;box-shadow:none;font-size:.84rem;border-radius:9px;margin:0}
.jm-workbench .jm-icon,.jm-workbench .jm-text-button{border:0;background:transparent;color:var(--muted);cursor:pointer;box-shadow:none;font:inherit}
.jm-workbench .jm-icon{width:40px;height:40px;min-width:40px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:8px}
.jm-workbench .jm-icon:hover,.jm-workbench .jm-text-button:hover{background:var(--theme-tint,#e7f5ef);color:var(--theme-accent,#08796f)}
.jm-workbench .jm-text-button{padding:10px 12px;font-size:.82rem;border-radius:8px}
.jm-workbench :is(button,a,summary,input,select,textarea):focus-visible{outline:2px solid var(--theme-accent,#08796f)!important;outline-offset:3px}
.jm-workbench button:disabled{cursor:wait;opacity:.55}
.jm-workbench .jm-feedback{min-height:0;font-size:.87rem}
.jm-workbench .jm-feedback:not(:empty){padding:12px 16px;margin-bottom:12px;background:var(--theme-danger-bg,#fff0ec);border-radius:8px}
.jm-workspace{display:grid;grid-template-columns:310px minmax(0,1fr);height:clamp(400px,calc(100dvh - 335px),780px);background:var(--theme-surface,#fff);border-radius:16px;overflow:hidden;isolation:isolate}
.jm-sidebar{min-height:0;min-width:0;display:flex;flex-direction:column;background:var(--theme-soft,#f0f4f2);padding:17px 12px 8px}
.jm-sidebar-heading{display:flex;align-items:center;padding:0 6px 12px;gap:2px}
.jm-sidebar-heading h2{margin:0 auto 0 0;font-size:1rem;letter-spacing:-.02em}
.jm-filter-search{display:flex;align-items:center;gap:8px;margin:0 6px 14px;background:var(--theme-surface,#fff);border-radius:9px;padding:0 12px;color:var(--muted)}
.jm-filter-search svg{flex-shrink:0;width:17px}
#main-content .jm-workbench .jm-filter-search input{background:transparent;border:0;box-shadow:none;min-width:0;width:100%;padding:12px 0;color:var(--ink);font-size:.82rem;min-height:44px}
.jm-filters{display:flex;gap:4px;padding:0 6px 12px}
.jm-filters button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:.78rem;padding:9px 10px;border-radius:7px;cursor:pointer;min-height:38px;display:inline-flex;align-items:center;gap:5px}
.jm-filters [aria-pressed=true]{background:var(--theme-surface,#fff);color:var(--ink);font-weight:700}
.jm-filters span:not(:empty){font-size:.66rem;color:var(--theme-accent,#08796f)}
.jm-list-scroll{min-height:0;overflow:auto;flex:1;overscroll-behavior:contain;scrollbar-width:thin}
.jm-workbench .jm-row{display:flex;align-items:center;gap:11px;border:0;border-radius:10px;padding:13px 10px;margin:2px 0;text-decoration:none;min-width:0;transition:background .15s ease}
.jm-workbench .jm-row:hover{background:var(--theme-surface,#fff)}
.jm-workbench .jm-row[aria-current=page]{background:var(--theme-tint,#e1efea)}
.jm-avatar{width:42px;height:42px;min-width:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:var(--theme-tint,#e1efea);color:var(--theme-accent,#08796f);font-size:.85rem;font-weight:700;letter-spacing:.02em}
.jm-row-copy{display:grid;gap:3px;min-width:0;flex:1}
.jm-row-copy strong{font-size:.88rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.jm-row-copy small{font-size:.72rem;color:var(--muted)}
.jm-handle{font-size:.69rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jm-workbench .jm-count{float:none;min-width:20px;padding:3px 6px;text-align:center;background:var(--teal,#087e78);color:#fff;font-size:.68rem;line-height:1.3}
.jm-list-empty,.jm-loaded-note{color:var(--muted);font-size:.82rem;padding:12px;line-height:1.6}
.jm-loaded-note{font-size:.7rem;padding-bottom:0}
.jm-preference-link{display:flex;align-items:center;gap:10px;border:0;background:none;padding:16px 10px 8px;color:var(--muted);text-align:left;cursor:pointer;width:100%}
.jm-preference-link>span{flex:1;display:grid;gap:3px;font-size:.78rem;color:var(--ink)}
.jm-preference-link small{font-size:.7rem;color:var(--muted)}
.jm-stage{min-width:0;min-height:0;display:flex;flex-direction:column;position:relative}
.jm-empty-pane{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:100%;padding:28px;gap:0}
.jm-empty-art{position:relative;width:88px;height:88px;border-radius:25px;background:var(--theme-tint,#e7f5ef);display:grid;place-items:center;color:var(--theme-accent,#08796f);transform:rotate(-5deg);margin-bottom:30px}
.jm-empty-art>svg{width:40px;height:40px;transform:rotate(5deg)}
.jm-empty-art>span{position:absolute;right:-10px;bottom:-5px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--theme-accent,#08796f);color:var(--theme-surface,#fff)}
.jm-empty-pane .eyebrow{font-size:.65rem;letter-spacing:.15em;color:var(--muted);margin:0 0 10px}
.jm-empty-pane h2{font-size:clamp(1.35rem,2.4vw,1.85rem);max-width:20ch;letter-spacing:-.035em;margin:0;line-height:1.2}
.jm-empty-pane>p:not(.eyebrow){font-size:.84rem;color:var(--muted);max-width:40ch;line-height:1.65;margin:14px 0 22px}
.jm-empty-pane .jm-empty-safety{display:flex;align-items:center;gap:7px;font-size:.73rem!important;margin-top:28px!important}
.jm-empty-safety svg{width:16px;min-width:16px}
.jm-conversation{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}
.jm-chat-heading{display:flex;align-items:center;gap:11px;padding:18px 22px;background:var(--theme-surface,#fff);min-width:0}
.jm-chat-heading>[data-back]{display:none}
.jm-chat-person{flex:1;min-width:0}
.jm-chat-person h2{font-size:1rem;margin:0;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.jm-chat-person h2 a{color:inherit;text-decoration:none}
.jm-chat-person h2 a:hover{text-decoration:underline}
.jm-chat-person p{font-size:.73rem;margin:5px 0 0;color:var(--muted);overflow-wrap:anywhere}
.jm-chat-menu{position:relative;margin:0;padding:0}
.jm-chat-menu>summary{width:40px;height:40px;display:grid;place-items:center;color:var(--muted);cursor:pointer;list-style:none;padding:0;background:none;border-radius:8px}
.jm-chat-menu>summary::-webkit-details-marker{display:none}
.jm-chat-menu>div{position:absolute;right:0;top:44px;z-index:5;min-width:210px;max-width:calc(100vw - 48px);background:var(--theme-soft,#edf3f0);padding:8px;border-radius:10px}
.jm-chat-menu :is(a,button){display:block;padding:12px;color:var(--ink);font:inherit;font-size:.82rem;text-align:left;text-decoration:none;background:none;border:0;cursor:pointer;width:100%;border-radius:6px}
.jm-chat-menu :is(a,button):hover{background:var(--theme-surface,#fff)}
.jm-request-notice{padding:12px 22px;background:var(--theme-tint,#e7f5ef);display:flex;gap:16px;align-items:center;justify-content:space-between}
.jm-request-notice p{font-size:.82rem;margin:0;max-width:42ch}
.jm-request-notice>div{display:flex;gap:6px;flex-shrink:0}
.jm-workbench .jm-history{flex:1;min-height:60px;max-height:none;margin:0;gap:9px;padding:8px 24px 20px;scrollbar-width:thin;overflow-y:auto;overflow-x:hidden;scroll-behavior:auto}
.jm-workbench .jm-bubble{padding:10px 14px 6px;max-width:min(82%,540px);min-width:96px;border-radius:12px 12px 12px 3px;background:var(--theme-soft,#f1f5f3)}
.jm-workbench .jm-bubble.mine{background:var(--theme-tint,#e4f1eb);border-radius:12px 12px 3px 12px}
.jm-workbench .jm-message-body{font-size:.89rem;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap;margin:0}
.jm-message-meta{display:flex;justify-content:flex-end;align-items:center;gap:6px;color:var(--muted);min-height:24px;font-size:.64rem}
.jm-workbench .jm-report-trigger{width:28px;height:28px;min-width:28px;min-height:28px;padding:5px;opacity:0;transition:opacity .15s ease}
.jm-report-trigger svg{width:14px;height:14px}
.jm-bubble:hover .jm-report-trigger,.jm-bubble:focus-within .jm-report-trigger{opacity:1}
.jm-day{font-size:.67rem;align-self:center;margin:12px 0;color:var(--muted);text-align:center;letter-spacing:.02em}
.jm-history-empty{color:var(--muted);font-size:.85rem;text-align:center}
.jm-workbench .jm-older{align-self:center;font-size:.74rem;padding:6px 12px}
.jm-chat-status{display:flex;align-items:center;justify-content:center;gap:10px;font-size:.8rem;color:var(--muted);padding:18px 22px;margin:0;background:var(--theme-soft,#f1f5f3)}
.jm-chat-status svg{flex-shrink:0}
.jm-workbench .jm-compose{padding:12px 16px 10px;margin:0 18px 16px;border:0;border-radius:12px;background:var(--theme-soft,#f1f5f3)}
.jm-workbench .jm-compose>label{margin:0;display:block}
.jm-workbench .jm-compose textarea{width:100%;min-height:42px;max-height:140px;resize:none;padding:4px 0;background:transparent!important;border:0;box-shadow:none;color:var(--ink);font:inherit;font-size:.9rem;line-height:1.5}
.jm-compose-actions{display:flex;align-items:center;gap:10px;min-width:0;padding-top:4px}
.jm-compose-actions .jm-expression-tools{margin:0;padding:0;flex-shrink:0}
.jm-workbench .jm-expression-picker>summary{display:inline-flex;align-items:center;gap:6px;list-style:none;font-size:.78rem;cursor:pointer;color:var(--theme-accent,#08796f);border-radius:7px}
.jm-workbench .jm-expression-panel input{width:100%;margin:8px 0;font-size:.85rem;min-height:40px;padding:8px 12px}
.jm-workbench .jm-expression-hint{font-size:.66rem;line-height:1.5;margin:6px 0 0;color:var(--muted)}
.jm-compose-actions .jm-expression-picker>summary{padding:8px;min-width:40px;min-height:40px}
.jm-compose-actions .jm-expression-picker>summary>span{display:none}
.jm-compose-hint{flex:1;color:var(--muted);font-size:.65rem}
.jm-compose-actions [data-length]{color:var(--muted);font-size:.64rem;white-space:nowrap}
.jm-workbench .jm-send-button{padding:9px 13px;min-height:40px;font-size:.78rem;flex-shrink:0}
.jm-privacy-footnote{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;color:var(--muted);font-size:.71rem;margin:13px 0 0}
.jm-privacy-footnote svg{width:14px;height:14px}
.jm-privacy-footnote button{font:inherit;background:none;color:var(--theme-accent,#08796f);cursor:pointer;padding:4px;border:0;text-decoration:underline;text-underline-offset:3px}
.jm-form-pane{display:flex;flex-direction:column;min-height:0;height:100%}
.jm-pane-heading{display:flex;gap:16px;align-items:center;padding:22px 28px 12px}
.jm-pane-heading .eyebrow{font-size:.62rem;letter-spacing:.1em;margin:0 0 5px;color:var(--muted)}
.jm-pane-heading h2{font-size:1.4rem;letter-spacing:-.025em;margin:0;line-height:1.3}
.jm-pane-scroll{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:8px 32px 28px;min-height:0}
.jm-form-pane form,.jm-safety-copy{max-width:620px;margin:0 auto}
.jm-workbench .jm-form-pane label:not(.jm-consent),.jm-workbench #jm-report label{display:grid;gap:8px;margin:14px 0;font-size:.83rem;font-weight:600}
.jm-workbench :is(.jm-form-pane,#jm-report) :is(input:not([type=checkbox]):not([type=hidden]),select,textarea){background:var(--theme-soft,#f1f5f3);color:var(--ink);font:inherit;font-size:.88rem;font-weight:400;width:100%;min-width:0;min-height:44px;padding:12px 14px;border:0;border-radius:8px;box-shadow:none}
.jm-find-row{display:flex;gap:8px;align-items:center}
.jm-workbench .jm-consent{margin:18px 0 10px;line-height:1.6;display:flex;gap:10px;font-size:.78rem}
.jm-workbench .jm-consent input{width:17px;height:17px;flex-shrink:0;margin:3px 0 0;accent-color:var(--teal)}
.jm-form-pane small,.jm-help{font-size:.78rem;line-height:1.7;color:var(--muted)}
.jm-workbench .jm-request-submit{display:flex;margin-top:20px}
.jm-search-results{max-width:620px;margin:12px auto;max-height:210px;overflow:auto;scrollbar-width:thin;gap:4px}
.jm-person-result{display:flex;align-items:center;gap:12px;background:var(--theme-soft,#f1f5f3);border:0;padding:12px;border-radius:9px;cursor:pointer;color:var(--ink);text-align:left}
.jm-person-result>span:nth-child(2){flex:1;display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}
.jm-person-result strong{font-size:.86rem}
.jm-safety-copy{padding-top:24px;color:var(--muted);font-size:.83rem;line-height:1.7}
.jm-safety-copy h3{display:flex;align-items:center;gap:8px;font-size:.95rem;color:var(--ink);margin:0 0 8px}
.jm-safety-copy p{margin:0 0 10px}
.jm-workbench #jm-report{background:var(--theme-soft,#f1f5f3);padding:16px 22px;max-height:65%;overflow:auto;margin:0 18px 14px;border-radius:10px;flex-shrink:0}
.jm-workbench #jm-report h3{font-size:.95rem;margin:0}
.jm-loading{display:flex;align-items:center;justify-content:center;gap:12px;height:100%;padding:24px;color:var(--muted)}
@media(max-width:1050px){.jm-workspace{grid-template-columns:275px minmax(0,1fr)}.jm-compose-hint{display:none}.jm-compose-actions [data-length]{margin-left:auto}.jm-chat-heading{padding:16px}.jm-request-notice{flex-direction:column;gap:8px;align-items:flex-start}.jm-pane-scroll{padding:8px 22px 24px}}
@media(max-width:700px){
 .jm-workbench{padding:20px 12px 24px}.jm-workbench .jm-heading{padding:0 4px;align-items:flex-start;margin-bottom:18px}.jm-heading-actions{gap:0}.jm-updates{display:none}.jm-subtitle{font-size:.78rem;max-width:25ch}.jm-workbench .jm-new-button{font-size:.75rem;padding:9px 11px;gap:5px}.jm-new-button svg{width:16px}
 .jm-workspace{display:flex;height:clamp(460px,calc(100dvh - 255px),760px);border-radius:12px}.jm-sidebar{width:100%;padding:12px}.jm-stage{display:none;width:100%;flex:1}
 .jm-workbench[data-pane=detail] .jm-sidebar{display:none}.jm-workbench[data-pane=detail] .jm-stage{display:flex}.jm-workbench[data-pane=detail]>.jm-heading{display:none}.jm-workbench[data-pane=detail] .jm-workspace{height:clamp(450px,calc(100dvh - 215px),850px)}
 .jm-chat-heading>[data-back]{display:inline-flex}.jm-chat-heading{padding:12px 8px;gap:5px}.jm-chat-heading .jm-avatar{width:34px;height:34px;min-width:34px;font-size:.74rem}.jm-chat-person h2{font-size:.9rem}.jm-chat-person p{font-size:.63rem}.jm-chat-heading .jm-icon,.jm-chat-menu>summary{width:36px;min-width:36px}.jm-chat-person{padding:0 4px}
 .jm-workbench .jm-history{padding:8px 14px 16px}.jm-workbench .jm-bubble{max-width:90%;padding:9px 12px 5px}.jm-workbench .jm-message-body{font-size:.86rem}
 .jm-workbench .jm-compose{margin:0 10px 10px;padding:9px 12px}.jm-compose-actions{gap:8px}.jm-workbench .jm-send-button{min-height:40px}.jm-workbench .jm-send-button>span{display:none}
 .jm-pane-heading{padding:18px 14px 10px;gap:10px}.jm-pane-heading h2{font-size:1.25rem}.jm-pane-scroll{padding:4px 20px 24px}.jm-privacy-footnote{font-size:.65rem;padding:0 10px;text-align:center}.jm-privacy-footnote>svg{display:none}.jm-request-notice{padding:12px 16px}
 .jm-workbench #jm-report{margin:0 10px 10px;padding:14px}.jm-empty-pane{padding:20px}
}
@media(hover:none){.jm-workbench .jm-report-trigger{opacity:1}}
@media(prefers-reduced-motion:reduce){.jm-workbench *{scroll-behavior:auto!important;transition:none!important}}
