:root{font-family:Segoe UI,Arial,sans-serif;color:#203641;background:#f4f7f8}*{box-sizing:border-box}#gate{max-width:520px;margin:7vh auto;background:white;padding:44px;border:1px solid #dde7eb;border-radius:22px;box-shadow:0 20px 70px #1733420d}#gate h1{font-size:36px;line-height:1.2}#gate p{line-height:1.6;color:#617681}#gate form{display:grid;gap:12px;margin:28px 0}input,select,button{font:inherit;padding:12px 16px;border:1px solid #d9e5e9;border-radius:8px}button{cursor:pointer;background:#087e83;color:white;font-weight:600}button:disabled{opacity:.5}.brand-mark{display:inline-grid;place-items:center;background:#40b9b3;color:#15333f;width:48px;height:48px;border-radius:12px;font-size:26px;font-weight:800}#cloudBar{position:relative;z-index:10;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 24px;background:#16313f;color:white}#cloudBar button{padding:8px 12px}#cloudBar select{max-width:220px;padding:8px}#cloudStatus{margin-left:auto;font-size:13px}#gate small{color:#617681}#authMessage{color:#a33725!important}body:has(.sidebar) #cloudBar{margin-left:260px}@media(max-width:800px){#gate{margin:20px;padding:28px}body:has(.sidebar) #cloudBar{margin-left:0}}

#cloudBar select{color:#203641;background:white}#cloudBar option{color:#203641}
/* Shared brand and a continuous, full-width administration header. */
body{margin:0}
body:has(.sidebar) #cloudBar{margin-left:0;position:sticky;top:0;z-index:20}
body:has(.sidebar) .sidebar{top:var(--cloud-bar-height,64px);height:calc(100dvh - var(--cloud-bar-height,64px));left:0}
.jbg-logo{display:block;width:100%;max-width:240px;height:auto}
.brand-logo{display:block;background:#fff;padding:12px;border-radius:8px;line-height:0}
.sidebar .brand{display:block;margin-bottom:8px}
#gate .brand-logo{padding:0;max-width:290px;margin-bottom:18px}
#gate .portal-label{font-size:12px;letter-spacing:2px;text-transform:uppercase;font-weight:700;color:#526770}
.brand-header .brand-logo{width:230px}
@media(max-width:760px){body:has(.sidebar) .sidebar{position:static;height:auto;width:100%}#cloudBar{padding:12px 18px;gap:8px}#cloudStatus{width:100%;margin-left:0}.sidebar .brand-logo{max-width:230px}}
@media print{#cloudBar{display:none!important}}
/* A calm review flow: status, progress, and clear device choices. */
.review-handoff{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:28px 32px;border:1px solid #c8e3df;border-radius:20px;background:linear-gradient(115deg,#eef9f5,#f8fcfa);box-shadow:0 8px 30px #133c3510;margin:18px 0 28px}
.review-handoff h2{margin:8px 0;font-size:26px;color:#173b40}.review-handoff p{max-width:730px;margin:8px 0;color:#4c686e;line-height:1.6}.review-handoff small{display:block;color:#587378}.review-progress{display:flex;align-items:center;gap:16px;min-width:250px}.review-ring{background:conic-gradient(#087e83 var(--progress),#d6e9e5 0);height:84px;width:84px;flex-shrink:0;border-radius:50%;display:grid;place-items:center}.review-ring strong{display:grid;place-items:center;background:#f6fcf9;width:66px;height:66px;border-radius:50%;font-size:21px}.review-progress small{margin-top:4px}.preview-note{font-size:13px;font-weight:600}.customer-bulk{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:15px 18px;margin:0 0 18px;background:#eaf4f4;border:1px solid #d6e7e7;border-radius:12px}.customer-bulk strong{margin-right:auto}.device-choices{display:flex;gap:7px;flex-wrap:wrap}.device-choices button{font-size:13px;padding:9px 12px;white-space:nowrap}.choice-status{color:#087e83!important;font-weight:600;margin:10px 0 4px;display:block}.text-action{background:transparent!important;border:0!important;color:#087e83!important;padding:6px 0;font-size:13px;text-decoration:underline;text-underline-offset:3px}.handoff-actions{display:grid;gap:10px;min-width:280px}.admin-handoff{margin:26px 0}.quick-dialog{width:min(560px,94vw);border:1px solid #dce8e8;border-radius:22px;padding:32px;box-shadow:0 30px 100px #152f4560}.quick-dialog::backdrop{background:#152f4570;backdrop-filter:blur(5px)}.quick-dialog p{color:#587078;line-height:1.6}.quick-dialog label{display:grid;gap:10px}.quick-dialog textarea{font:inherit;border:1px solid #cededf;border-radius:10px;padding:14px;resize:vertical}.quick-dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.device-review-section .table td{vertical-align:top}.device-review-section .table th:last-child{min-width:290px}.device-review-section .bar{flex-wrap:wrap}.device-review-section .bar #search{flex:1;min-width:200px}.device-review-section #bulk{background:white;color:#087e83}.reply-bar{border-radius:16px 16px 0 0!important;box-shadow:0 -8px 30px #183d4610!important}.feedback:not(:empty){padding:15px 20px;background:#edf8f0;border-radius:10px;margin:15px 0}.device-review-section .secondary,.customer-bulk .secondary,.quick-dialog .secondary{background:white;color:#355961;border:1px solid #c7dcdf}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #68bfc2;outline-offset:3px}
@media(max-width:900px){.review-handoff{align-items:flex-start;flex-direction:column;padding:22px}.handoff-actions{width:100%;min-width:0}.review-progress{min-width:0}.device-review-section table,.device-review-section tbody,.device-review-section tr,.device-review-section td{display:block;width:100%}.device-review-section thead{display:none}.device-review-section tr{position:relative;padding:16px 16px 16px 52px;border-bottom:1px solid #dbe6e8}.device-review-section td{border:0;padding:6px 0!important}.device-review-section td:first-child{position:absolute;left:16px;top:17px;width:26px}.device-review-section .table{overflow:visible}.customer-bulk{position:relative}.reply-bar{flex-wrap:wrap;gap:12px}.reply-bar button{width:100%}}

#app[data-screen="devices"] .hero,#app[data-screen="conversation"] .hero{padding:22px 0 8px}#app[data-screen="devices"] .hero h1,#app[data-screen="conversation"] .hero h1{font-size:30px;margin:10px 0}#app[data-screen="devices"] .hero .steps,#app[data-screen="conversation"] .hero .steps{display:none}.draft-summary{margin:24px 0;padding:18px 22px;background:white;border:1px solid #dce8e8;border-radius:12px}.draft-summary summary{cursor:pointer;font-weight:600;color:#087e83}.draft-summary article{margin-top:14px}.brand-header{border-bottom:3px solid #91ca48}.customer-bulk button,.device-choices button{transition:background .15s,box-shadow .15s}.device-choices button:not(:disabled):hover{box-shadow:0 3px 12px #16434420}

.access-dialog{width:min(1000px,96vw);max-height:92dvh;padding:30px;border:1px solid #dbe7e8;border-radius:22px;color:#203641;background:#f7fafb}.access-dialog::backdrop{background:#132f4470;backdrop-filter:blur(5px)}.access-dialog header{display:flex;gap:20px;align-items:flex-start;justify-content:space-between}.access-dialog h2{margin:8px 0;font-size:27px}.access-dialog header p{color:#617a83;line-height:1.6}.access-dialog #closeAccess{padding:8px 12px}.access-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0}.access-metrics>div{background:#eaf5f2;border:1px solid #d2e7df;border-radius:14px;padding:18px}.access-metrics strong{font-size:30px;display:block;color:#087e83}.access-metrics span{font-size:13px;color:#547078}#inviteMember{display:flex;gap:12px;align-items:flex-end;padding:22px;border:1px solid #dbe7e8;border-radius:14px;background:white}#inviteMember label{display:grid;gap:8px;flex:1;font-size:13px;font-weight:600}#inviteMember label span{font-weight:400;color:#71858a}#inviteMember input{min-width:0;width:100%;background:#fff;color:#203641}#inviteMember button{white-space:nowrap}.access-help{font-size:12px;color:#637c84;line-height:1.6}.access-list-heading,.access-person-top,.access-person-actions{display:flex;justify-content:space-between;align-items:center;gap:12px}.access-person{background:white;border:1px solid #dbe7e8;border-radius:14px;padding:22px;margin-bottom:12px}.access-person-top strong{overflow-wrap:anywhere}.access-person small{display:block;color:#637c84;font-size:12px;line-height:1.5}.access-person-top small{margin-top:4px}.access-badge{background:#eaf3f6;color:#436774;border-radius:20px;padding:7px 12px;font-size:12px;white-space:nowrap}.access-badge.recent{background:#e2f4e8;color:#236c40}.access-badge.suspended{background:#fcebe5;color:#93452b}.access-dates{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:18px;margin:20px 0}.access-dates span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:#748a92;margin-bottom:6px}.access-dates strong{font-size:13px;font-weight:500}.access-person-actions{justify-content:flex-end}.access-person-actions button,.access-list-heading button{font-size:12px;padding:9px 13px}.access-error{color:#aa432a!important}.access-empty{text-align:center;padding:35px;background:white;border:1px dashed #c4d9db;border-radius:14px}.access-dialog .secondary{background:white;color:#335660;border:1px solid #cbdfe2}#accessFeedback:not(:empty){background:#eaf4f3;border-radius:9px;padding:12px;font-size:13px}@media(max-width:680px){.access-dialog{padding:18px}.access-dialog h2{font-size:23px}#inviteMember{flex-direction:column;align-items:stretch}.access-metrics{gap:7px}.access-metrics>div{padding:12px}.access-metrics span{font-size:11px}.access-dates{grid-template-columns:1fr}.access-person-top{align-items:flex-start;flex-direction:column}.access-person-actions{flex-wrap:wrap}}
/* Decisions carry both a readable label and a distinct, accessible color. */
.device-review-section .decision-badge{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--decision-border);background:var(--decision-bg);color:var(--decision-ink);border-radius:999px;padding:6px 11px;font-size:12px;font-weight:600;line-height:1.5;white-space:normal}
.tone-keep{--decision-bg:#e9f6ee;--decision-ink:#21663c;--decision-border:#bbdec7}
.tone-remove{--decision-bg:#fff0ee;--decision-ink:#a12e2e;--decision-border:#efc6c0}
.tone-question{--decision-bg:#fff7df;--decision-ink:#805500;--decision-border:#ead393}
.tone-unreviewed{--decision-bg:#f1f4f6;--decision-ink:#52626e;--decision-border:#dbe2e7}
.device-review-section .choice-status{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 4px}
.device-review-section .device-choices [data-choice="keep"],.customer-bulk [data-bulk-choice="keep"]{background:#e9f6ee;color:#21663c;border:1px solid #bbdec7}
.device-review-section .device-choices [data-choice="remove"],.customer-bulk [data-bulk-choice="remove"]{background:#fff0ee;color:#a12e2e;border:1px solid #efc6c0}
.device-review-section .device-choices [data-choice="question"],.customer-bulk [data-bulk-choice="question"]{background:#fff7df;color:#805500;border:1px solid #ead393}
.device-review-section .device-choices button:not(:disabled):hover,.customer-bulk button:not(:disabled):hover{filter:brightness(.96)}
.customer-export-tools{display:flex;justify-content:flex-end;margin:-8px 0 20px}.customer-export-tools .secondary{background:white;color:#087e83;border:1px solid #c7dcdf}.export-error{color:#a12e2e}.quick-dialog-actions{flex-wrap:wrap}
/* Compact inventory workspace: keep controls and counts close to the devices. */
#app .hero{padding:18px 0 8px}#app .hero h1{font-size:30px;margin:8px 0}#app .hero>p{margin:6px 0}#app .hero .eyebrow{display:none}#app .steps{margin-top:10px;gap:16px}#app .steps span{padding:6px 0;min-width:80px}
.review-handoff{padding:16px 22px;margin:12px 0 18px;border-radius:14px;gap:20px;box-shadow:none}.review-handoff h2{font-size:21px;margin:5px 0}.review-handoff p{margin:5px 0;font-size:13px}.review-handoff .eyebrow{font-size:10px}.review-ring{width:60px;height:60px}.review-ring strong{width:46px;height:46px;font-size:17px}.review-progress{min-width:220px}.preview-note{font-size:11px!important}.review-handoff p:empty{display:none}
#app .metrics{grid-template-columns:repeat(4,1fr);gap:14px}#app .metrics article{padding:20px}#app .metrics strong{font-size:32px;margin:10px 0}#app .brand-header{padding-top:16px;padding-bottom:16px}#app .brand-header .brand-logo{width:195px}.tabs{margin-bottom:16px}
body:has(.sidebar) .topline{margin-bottom:16px}body:has(.sidebar) .topline h1{font-size:30px;margin:8px 0}body:has(.sidebar) .topline p{margin:6px 0}body:has(.sidebar) .notice{padding:12px 16px;margin-bottom:14px;font-size:12px}body:has(.sidebar) .notice .backup-actions{display:inline-flex;margin:0 0 0 10px}body:has(.sidebar) .notice button{padding:6px 10px;font-size:11px}.admin-handoff .handoff-actions{min-width:260px;gap:6px}.admin-handoff .handoff-actions button{padding:9px 14px;font-size:12px}.admin-handoff .handoff-actions .text-action{padding:3px}.serial-audit{padding:12px 16px!important;margin:14px 0!important}.serial-audit details summary{cursor:pointer;font-size:12px;margin-top:5px;color:#526973}.serial-audit details[open]{padding-top:5px}.bulk-toolbar{padding:12px 16px!important;margin:16px 0!important}.bulk-toolbar #keepScope{font-size:11px}.stats{margin:16px 0!important;padding:20px!important}.stats strong{font-size:32px!important;margin:12px 0!important}
@media(max-width:900px){#app .metrics{grid-template-columns:repeat(2,1fr)}.review-handoff{gap:12px}.review-progress{min-width:0}body:has(.sidebar) .notice .backup-actions{display:flex;margin:6px 0 0}}
#app .metrics article:nth-child(2) strong{color:#21663c}#app .metrics article:nth-child(3) strong{color:#a12e2e}
