/* Typography follows the existing notification-group view: distinct titles, compact fields. */
:root{--ui-page-title:2rem;--ui-section-title:1.3rem;--ui-card-title:1.15rem;--ui-field:11px;--ui-body:12px;--ui-note:10px}
.workspace .page-heading h1{font-size:var(--ui-page-title)}
.workspace .page-heading p{font-size:var(--ui-body)}
.workspace :is(.card>h2,.card-title h2,.ledger-heading h2,.ticket-ledger-heading h2,.supplier-pane-heading h2,.supplier-detail-head h2,.device-record-head h2,.notification-group-list h2,.notification-group-detail>header h2,.audit-heading h2){font-size:var(--ui-section-title);line-height:1.35;letter-spacing:-.02em}
.workspace :is(.voice-head h2,.ticket-mail-card h3,.ticket-classification h3,.ticket-device-context h3,.ticket-ai-advice h3,.supplier-machines-heading h3,.notification-add-member>h2,.notification-members-head h3){font-size:var(--ui-card-title);line-height:1.4}
.workspace :is(label,.field label,.notification-group-fields label,.notification-add-member label,.supplier-create-form label,.supplier-edit-form label,.device-form-grid label>span){font-size:var(--ui-field)}
.workspace :is(input,select,textarea,.notification-group-fields input,.notification-add-member input,.supplier-create-form input,.supplier-edit-form input,.ticket-form-card .field input,.ticket-form-card textarea){font-size:var(--ui-body)}
.workspace :is(.hint,.form-caption,.supplier-form-note,.supplier-pane-heading p,.supplier-detail-head p,.notification-group-detail>header p,.notification-add-member>p){font-size:var(--ui-note);line-height:1.6}
.workspace :is(.supplier-machines-heading p,.ticket-ledger-heading p,.resource-intro p){font-size:var(--ui-body);line-height:1.6}
.history-inline-panel{padding:19px 20px;background:#fff}
.history-inline-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:16px;margin-bottom:11px;border-bottom:1px solid #e2ece7}
.history-inline-heading .eyebrow{margin:0 0 5px;font-size:10px;color:#66827a}
.history-inline-heading h3{margin:0 0 5px;font-size:19px;line-height:1.3;color:#153b3d}
.history-inline-heading p{margin:0;color:#617a73;font-size:12px;line-height:1.5}
.history-result-count{flex:none;padding:5px 10px;border-radius:999px;background:#e6f6f0;color:#206454;font-size:12px;font-weight:700}
.workspace .history-ticket-card{display:block;width:100%;margin:10px 0 0;padding:0;border:1px solid #dce8e3;border-radius:11px;background:#fff;color:#153b3d;text-align:left;box-shadow:0 2px 7px #163e3410;overflow:hidden;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}
.workspace .history-ticket-card:hover{border-color:#76b9a5;background:#fff;box-shadow:0 7px 20px #163e341a;transform:translateY(-1px)}
.workspace .history-ticket-card:focus-visible{outline:3px solid #6ac9a9;outline-offset:2px}
.history-row-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:15px 17px 12px}
.history-row-identity{display:grid;gap:5px;min-width:0}
.history-ticket-number{font:700 11px ui-monospace,Consolas,monospace;color:#4b726a;overflow-wrap:anywhere}
.workspace .history-ticket-card .history-error{font-size:16px;line-height:1.4;font-weight:700;color:#173c3d}
.history-status{flex:none;padding:4px 8px;border-radius:5px;background:#e7f6ee;color:#22725b;font-size:10px;font-weight:700}
.history-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 17px 15px}
.history-content-block{display:grid;align-content:start;gap:5px;min-width:0;padding:12px 13px;border:1px solid #e5eee9;border-radius:8px;background:#f8fbf9}
.history-content-block small{font-size:10px;font-weight:700;color:#648078;text-align:left}
.history-content-block>span{font-size:12px;font-weight:400;line-height:1.6;color:#1d3c3b;white-space:pre-wrap;overflow-wrap:anywhere}
.history-row-footer{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;padding:11px 17px;border-top:1px solid #e8efec;background:#fcfefd;color:#5c756e;font-size:11px;line-height:1.5}
.history-row-footer i{font-style:normal;color:#9aada6}
.history-open-link{margin-left:auto;color:#1f735f;font-weight:700;white-space:nowrap}
.history-open-link b{margin-left:4px;font-size:15px;font-weight:400}
.workspace :is(button,.admin-tabs button,.ticket-command-row button,.supplier-import-actions button){font-size:var(--ui-body)}
.workspace .eyebrow{font-size:10px}
.workspace :is(.ticket-list-head,.audit-table th){font-size:11px}
.account-permissions{position:relative}
.account-permissions>summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;color:#193d3b;white-space:nowrap}
.account-permissions>summary::-webkit-details-marker{display:none}
.account-permissions>summary:after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:-3px 2px 0 0}
.account-permissions[open]>summary:after{transform:rotate(225deg);margin-top:3px}
.account-permissions>summary:focus-visible{outline:3px solid #72c9ae;outline-offset:5px;border-radius:3px}
.account-permissions-panel{position:absolute;z-index:30;right:0;top:calc(100% + 17px);width:320px;padding:17px 18px;border:1px solid #cbded6;border-radius:11px;background:#fff;box-shadow:0 15px 34px #143e3026;color:#193d3b}
.account-permissions-panel>strong{display:block;font-size:14px}
.account-permissions-panel p{margin:8px 0 15px;font-size:12px}
.account-permissions-panel>span{display:block;padding-top:12px;border-top:1px solid #e1ebe6;color:#5f7770;font-size:11px}
.account-permission-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.account-permission-list em{padding:4px 8px;border-radius:5px;background:#eaf6f0;color:#205e4d;font-size:11px;font-style:normal}
.account-permission-list small{font-size:11px;color:#657a73}
.notification-add-member textarea{min-height:76px;font-size:var(--ui-body);line-height:1.55}
.notification-member .member-note{margin-top:5px;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;line-height:1.45;color:#3b6860}
@media(min-width:721px) and (max-width:1250px){
 .notification-add-member{display:block;padding:22px}
 .notification-add-member>.member-source-tabs{margin:14px 0}
 .notification-add-member>form{margin-top:0}
}
@media(min-width:721px) and (max-width:950px){
 .notification-settings{display:block}
 .notification-group-list{border-right:0;border-bottom:1px solid var(--line)}
 .notification-add-member{border-top:1px solid var(--line)}
}
.workspace :is(.ticket-list-row,.audit-table td,.supplier-machine-copy strong,.supplier-list-copy strong){font-size:var(--ui-body)}
.workspace :is(.supplier-list-copy small,.supplier-machine-copy small,.ticket-device span,.ticket-time strong,.ticket-display-cell .ticket-description){font-size:11px}
.workspace.ticket-register-v3 .ticket-form-card .field label{font-size:var(--ui-field)}
.workspace.ticket-register-v3 .ticket-form-card .field :is(input,textarea){font-size:var(--ui-body)}

/* One-hop device relationships use balanced lanes and a restrained focal node. */
.topology-intro{margin:5px 0 0;color:#5c766e;font-size:12px;line-height:1.5}
.topology-map{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr) 24px minmax(0,1fr);gap:0;align-items:stretch;margin-top:20px}
.topology-map>section{min-width:0}
.topology-lane header{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:28px;margin-bottom:10px}
.topology-lane h3{margin:0;color:#173d3d;font-size:12px;line-height:1.4}
.topology-lane header span{flex:none;color:#608077;font-size:11px}
.topology-lane ul{display:grid;align-content:start;gap:8px;list-style:none;margin:0;padding:0}
.topology-object{display:grid;gap:3px;min-width:0;padding:12px 13px;border:1px solid #d8e7e1;border-radius:8px;background:#fff}
.topology-object strong{color:#193d3a;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.topology-object span{color:#58736b;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.topology-empty{padding:13px;border:1px dashed #cdded6;border-radius:8px;color:#6b8279;font-size:12px}
.topology-current{display:grid;align-content:center;gap:5px;min-height:126px;padding:16px 18px;border:1px solid #69bca3;border-radius:8px;background:#eef9f4;text-align:center}
.topology-current>span{color:#4e7769;font-size:11px;font-weight:700}
.topology-current strong{color:#153d38;font-size:15px;line-height:1.25;overflow-wrap:anywhere}
.topology-current small{color:#496c61;font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.topology-current p{margin:4px 0 0;color:#557267;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.topology-link{position:relative;align-self:center;height:1px;background:#80bca9}
.topology-link:after{content:"";position:absolute;right:1px;top:-3px;width:6px;height:6px;border-top:1px solid #4b9b82;border-right:1px solid #4b9b82;transform:rotate(45deg)}
.topology-impact-note{grid-column:1/-1;display:grid;grid-template-columns:92px minmax(0,1fr);gap:12px;margin:16px 0 0;padding:13px 0 0;border-top:1px solid #dce8e3;color:#294c43;font-size:12px;line-height:1.6}
.topology-impact-note strong{color:#58786c;font-size:11px}
.topology-impact-note span{overflow-wrap:anywhere}
@media(max-width:1100px){.topology-map{grid-template-columns:1fr;gap:13px}.topology-map .topology-current{order:-1}.topology-map .topology-link{display:none}.topology-map .topology-impact-note{grid-column:1;margin-top:0}}
.file-row .mail-attachment-remove{flex:none;margin-left:auto;padding:5px 9px;color:#9a3d35;white-space:nowrap}
.file-row .mail-attachment-remove:hover{color:#842c25;background:#fff5f3;border-color:#e5bab4}

.segment-capture .voice-actions #kdb-record.recording{background:#a13f37;border-color:#a13f37;color:#fff}
.segment-capture.voice-only .voice-actions,
.segment-capture:not(.voice-only) .voice-actions{display:grid;grid-template-columns:1.25fr repeat(2,minmax(0,1fr));gap:10px}
@media(max-width:720px){.segment-capture.voice-only .voice-actions,.segment-capture:not(.voice-only) .voice-actions{grid-template-columns:1fr 1fr}.segment-capture .voice-actions #kdb-record{grid-column:1/-1}}

/* Solution fields now follow the reading order instead of sharing a row. */
.ticket-register-v3 .ticket-form-card :is(.ticket-plan-field,.ticket-notes-field,.ticket-follow-field)>label{display:block;margin-bottom:7px}
.ticket-register-v3 .ticket-form-card :is(.ticket-plan-field,.ticket-notes-field,.ticket-follow-field)>textarea{height:112px;min-height:112px}

/* In-place, multi-select column menu shared by Tickets and the audit log. */
.display-picker{position:relative;align-self:start;z-index:9}
.display-picker>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 13px;border:1px solid #b9d0c8;border-radius:7px;background:#fff;color:#173b37;font-size:var(--ui-body);font-weight:700;white-space:nowrap;cursor:pointer}
.display-picker>summary::-webkit-details-marker{display:none}
.display-picker>summary span{font-size:15px;line-height:1;transition:transform .15s ease}
.display-picker[open]>summary{border-color:#53ad92;box-shadow:0 0 0 3px #69cbb025}
.display-picker[open]>summary span{transform:rotate(180deg)}
.display-picker-menu{position:absolute;top:calc(100% + 7px);left:0;width:min(340px,calc(100vw - 45px));display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:10px;border:1px solid #c7ded5;border-radius:11px;background:#fff;box-shadow:0 18px 42px #163d3226;z-index:25}
.display-picker-menu label{display:flex;align-items:center;gap:8px;margin:0;padding:8px 7px;border-radius:6px;font-size:var(--ui-body);font-weight:500;white-space:nowrap;cursor:pointer}
.display-picker-menu label:hover{background:#f1faf6}
.display-picker-menu input{appearance:auto;width:17px;height:17px;min-height:17px;flex:0 0 17px;margin:0;accent-color:#1b8f71}
.display-picker-menu input:disabled{opacity:.65;cursor:not-allowed}
.display-picker:focus-within>summary{outline:2px solid #5bc6a7;outline-offset:2px}
.ticket-display-toolbar{display:flex;align-items:center;gap:13px;padding:11px 15px 0}
.ticket-export-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.ticket-export-actions button{white-space:nowrap}
.ticket-export-button{border-color:#9bbcb3;background:#fff;color:#174b49}
.ticket-export-button::before{content:'↓';display:inline-block;margin-right:7px;font-weight:700}
.ticket-export-button:hover:not(:disabled){border-color:#4b9d86;background:#f0faf6}
.ticket-display-toolbar>span{color:#60776f;font-size:var(--ui-note)}
.ticket-command-modern:has(.ticket-display-toolbar){overflow:visible}
.ticket-command-row .display-picker{min-width:0}
.ticket-ledger-main{overflow-x:auto}
.ticket-list-selectable :is(.ticket-list-head,.ticket-list-row){display:grid;gap:9px;align-items:center}
.ticket-list-selectable.ticket-display-count-1{min-width:190px}
.ticket-list-selectable.ticket-display-count-2{min-width:360px}
.ticket-list-selectable.ticket-display-count-3{min-width:490px}
.ticket-list-selectable.ticket-display-count-4{min-width:620px}
.ticket-list-selectable.ticket-display-count-5{min-width:750px}
.ticket-list-selectable.ticket-display-count-6{min-width:880px}
.ticket-list-selectable.ticket-display-count-7{min-width:1010px}
.ticket-list-selectable.ticket-display-count-8{min-width:1140px}
.ticket-list-selectable.ticket-display-count-9{min-width:1270px}
.ticket-list-selectable.ticket-display-count-1 :is(.ticket-list-head,.ticket-list-row){grid-template-columns:minmax(190px,1fr)!important}
.ticket-list-selectable.ticket-display-count-2 :is(.ticket-list-head,.ticket-list-row){grid-template-columns:minmax(190px,1.5fr) minmax(110px,1fr)!important}
.ticket-list-selectable.ticket-display-count-3 :is(.ticket-list-head,.ticket-list-row){grid-template-columns:minmax(190px,1.5fr) repeat(2,minmax(110px,1fr))!important}
.ticket-list-selectable.ticket-display-count-4 :is(.ticket-list-head,.ticket-list-row){grid-template-columns:minmax(190px,1.5fr) repeat(3,minmax(110px,1fr))!important}
.ticket-list-selectable.ticket-display-count-5 :is(.ticket-list-head,.ticket-list-row){grid-template-columns:minmax(190px,1.5fr) repeat(4,minmax(110px,1fr))!important}
.ticket-list-selectable.ticket-display-count-6 :is(.ticket-list-head,.ticket-list-row){grid-template-columns:minmax(190px,1.5fr) repeat(5,minmax(110px,1fr))!important}
.ticket-list-selectable.ticket-display-count-7 :is(.ticket-list-head,.ticket-list-row){grid-template-columns:minmax(190px,1.5fr) repeat(6,minmax(110px,1fr))!important}
.ticket-list-selectable.ticket-display-count-8 :is(.ticket-list-head,.ticket-list-row){grid-template-columns:minmax(190px,1.5fr) repeat(7,minmax(110px,1fr))!important}
.ticket-list-selectable.ticket-display-count-9 :is(.ticket-list-head,.ticket-list-row){grid-template-columns:minmax(190px,1.5fr) repeat(8,minmax(110px,1fr))!important}
.ticket-list-selectable .ticket-display-cell{min-width:0;padding-right:0}
.ticket-list-selectable .ticket-display-cell>div{min-width:0}
.ticket-list-selectable .ticket-display-cell strong{font-size:var(--ui-body)}
.ticket-list-selectable .ticket-field-description>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(min-width:721px){
  .ticket-list-selectable.ticket-list-resizable{width:max(100%,var(--ticket-total-width));min-width:0}
  .ticket-list-selectable.ticket-list-resizable :is(.ticket-list-head,.ticket-list-row){grid-template-columns:var(--ticket-column-template)!important;column-gap:0;align-items:stretch}
  .ticket-list-selectable.ticket-list-resizable .ticket-list-row{padding-block:0}
  .ticket-list-selectable.ticket-list-resizable :is(.ticket-column-heading,.ticket-display-cell){display:flex;align-items:center;min-width:0;padding:9px 12px;border-right:1px solid #d7e3df}
  .ticket-list-selectable.ticket-list-resizable :is(.ticket-column-heading,.ticket-display-cell):first-child{padding-left:0}
  .ticket-list-selectable.ticket-list-resizable :is(.ticket-column-heading,.ticket-display-cell):last-child{border-right:0}
  .ticket-list-selectable.ticket-list-resizable .ticket-column-heading{position:relative;min-height:42px;padding-block:0;white-space:nowrap}
  .ticket-list-selectable.ticket-list-resizable .ticket-display-cell{min-height:69px}
  .ticket-list-selectable.ticket-list-resizable .ticket-display-cell>div{width:100%}
  .ticket-list-selectable.ticket-list-resizable .ticket-column-resizer{position:absolute;right:-7px;top:0;z-index:3;width:14px;height:100%;padding:0;cursor:col-resize;touch-action:none}
  .ticket-list-selectable.ticket-list-resizable .ticket-column-resizer::after{content:"";position:absolute;top:9px;bottom:9px;left:6px;width:2px;border-radius:2px;background:transparent}
  .ticket-list-selectable.ticket-list-resizable .ticket-column-resizer:is(:hover,:focus-visible)::after,.ticket-list-selectable.ticket-list-resizable.is-resizing .ticket-column-resizer::after{background:#4a9f88}
  .ticket-list-selectable.ticket-list-resizable .ticket-column-resizer:focus-visible{outline:2px solid #328e78;outline-offset:-2px}
  .ticket-list-selectable.ticket-list-resizable.is-resizing{user-select:none}
}

/* Account rows stay scannable; the full permission matrix opens on demand. */
.user-permission-details{margin-top:13px;border:1px solid #d7e5df;border-radius:9px;background:#fbfefd;overflow:hidden}
.user-permission-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;cursor:pointer;color:#163d37;font-size:var(--ui-body);font-weight:700;list-style:none}
.user-permission-details>summary::-webkit-details-marker{display:none}
.user-permission-details>summary:after{content:'⌄';font-size:16px;color:#4b8a78}
.user-permission-details[open]>summary:after{transform:rotate(180deg)}
.user-permission-details>summary small{font-size:var(--ui-note);font-weight:400;color:#6c827b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-permission-details .permission-form{padding:12px 13px 14px;border-top:1px solid #dfeae5}
.user-permission-details .permission-grid{margin:0 0 10px}
.user-permission-details:focus-within{outline:2px solid #69cbb0;outline-offset:2px}

/* The admin audit uses the same choice pattern as the Ticket ledger. */
.audit-workspace{padding:24px}
.audit-heading,.audit-controls{display:flex;align-items:center;justify-content:space-between;gap:18px}
.audit-heading{padding-bottom:18px;border-bottom:1px solid #e0eae5}
.audit-heading h2{margin:0 0 4px}.audit-heading p{margin:0;color:#60776f}
.audit-controls{justify-content:flex-start;flex-wrap:wrap;margin:18px 0}
.audit-search{display:flex;align-items:center;gap:9px;margin:0;min-width:min(340px,100%)}
.audit-search span{white-space:nowrap}.audit-search input{min-height:40px;height:40px}
#audit-count{font-size:var(--ui-note);color:#5e776f}
.audit-table-wrap{overflow-x:auto;border:1px solid #dce7e2;border-radius:9px}
.audit-table{width:100%;border-collapse:collapse;text-align:left}
.audit-table th,.audit-table td{padding:13px 15px;border-bottom:1px solid #e1e9e5;white-space:nowrap}
.audit-table th{background:#f6faf7;color:#58736a;font-weight:700}
.audit-table tbody tr:last-child td{border-bottom:0}
.audit-table tbody tr:hover{background:#f9fdfa}
.audit-table td{color:#1f403b;overflow-wrap:anywhere}

@media(max-width:720px){
  .history-inline-panel{padding:15px 13px}
  .history-inline-heading h3{font-size:17px}
  .history-content{grid-template-columns:1fr;gap:7px;padding:0 12px 12px}
  .history-row-header{padding:13px 12px 11px}
  .history-row-footer{padding:10px 12px;gap:4px 10px}
  .history-open-link{width:100%;margin:3px 0 0}
  .ticket-ledger-page-heading{align-items:stretch;flex-direction:column;gap:13px}
  .ticket-ledger-page-heading>div:first-child{min-width:0}
  .ticket-export-actions{width:100%;justify-content:stretch;display:grid;grid-template-columns:1fr 1fr}
  .ticket-export-actions button{min-width:0;padding-inline:8px}
  .ticket-register-v3 .ticket-form-card :is(.ticket-plan-field,.ticket-notes-field,.ticket-follow-field)>label{min-height:0}
  .ticket-list-selectable[class*="ticket-display-count-"]{min-width:0}
  .ticket-list-selectable .ticket-list-head{display:none}
  .ticket-resize-hint{display:none}
  .ticket-list-selectable[class*="ticket-display-count-"] .ticket-list-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px 12px}
  .ticket-list-selectable .ticket-display-cell{display:block;grid-column:auto;grid-row:auto}
  .ticket-list-selectable .ticket-field-ticket,.ticket-list-selectable .ticket-field-description{grid-column:1/-1}
  .ticket-list-selectable .ticket-field-status{grid-column:2;grid-row:1;justify-self:end}
  .ticket-list-selectable .ticket-field-ticket{grid-column:1;grid-row:1}
  .ticket-list-selectable .ticket-display-cell:not(.ticket-field-ticket):not(.ticket-field-status):before{content:attr(data-label);display:block;margin-bottom:3px;color:#657e78;font-size:10px}
  .ticket-list-selectable .ticket-field-description>div{white-space:normal}
  .audit-workspace{padding:17px 14px}.audit-heading{align-items:flex-start}.audit-search{width:100%}
  .audit-table-wrap{border:0}.audit-table,.audit-table tbody,.audit-table tr,.audit-table td{display:block;width:100%}.audit-table thead{display:none}
  .audit-table tr{margin-bottom:10px;border:1px solid #dce7e2;border-radius:8px;overflow:hidden}.audit-table td{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px;white-space:normal;padding:9px 11px}.audit-table td:before{content:attr(data-label);color:#668078;font-size:10px}
  .user-permission-details>summary small{max-width:160px}
}

/* KDB activity and asset selection: show the chosen information first. */
.kdb-event-list{list-style:none;margin:23px 0 0;padding:0;border-top:1px solid #dce8e3}
.kdb-event{display:grid;grid-template-columns:42px minmax(0,1fr);gap:15px;padding:21px 0;border-bottom:1px solid #dce8e3}
.kdb-event-index{padding-top:2px;color:#4c8b7c;font:700 13px var(--sk-font-mono);font-variant-numeric:tabular-nums}
.kdb-event-main{min-width:0;display:grid;justify-items:start;gap:11px}
.kdb-event-header{display:flex;align-items:baseline;justify-content:space-between;gap:10px 22px;width:100%}
.kdb-event-header strong{font-size:16px;color:#163b3c}
.kdb-event-header time{color:#5c756e;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.kdb-event-file{display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(100%,760px);padding:14px 16px;border:1px solid #d8e6df;border-radius:9px;background:#f8fbf9;text-decoration:none;color:#173e3d}
.kdb-event-file:hover{border-color:#78bba7;background:#f0f8f4}
.kdb-event-file:focus-visible,.kdb-asset-chooser summary:focus-visible,.kdb-asset-results button:focus-visible,.kdb-asset-chip button:focus-visible{outline:2px solid #23836f;outline-offset:2px}
.kdb-event-file span{min-width:0;overflow-wrap:anywhere;font-weight:600}
.kdb-event-file small{flex:0 0 auto;color:#236b5e;font-size:12px;font-weight:700}
.kdb-event-transcript{margin:0;max-width:72ch;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.kdb-event-main audio{width:min(100%,440px)}
.kdb-event-main img,.kdb-event-main video{display:block;max-width:min(100%,560px);max-height:320px;border-radius:8px}
.kdb-event-uploaded{font-size:12px;color:#688078}
.kdb-event-time{width:100%;max-width:530px;font-size:13px}
.kdb-event-time>summary{width:max-content;cursor:pointer;color:#276f61;font-weight:700;padding:5px 0}
.kdb-event-time .event-editor{margin:9px 0 0;max-width:none;align-items:end}
.kdb-event-time .event-editor label{flex:1;min-width:0;font-size:12px;color:#526d66}
.kdb-event-time .event-editor input{margin-top:5px}

.kdb-asset-picker{display:grid;gap:14px;padding:18px;border:1px solid #d8e6df;border-radius:10px;background:#fcfdfb}
.kdb-asset-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.kdb-asset-heading strong{font-size:16px;color:#173b3b}
.kdb-asset-count{font-size:12px;color:#4f7269}
.kdb-asset-selected{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.kdb-asset-empty{font-size:13px;color:#658078}
.kdb-asset-chip{display:inline-flex;align-items:center;gap:9px;min-height:37px;max-width:100%;padding:5px 8px 5px 12px;border:1px solid #b8d5cb;border-radius:7px;background:#edf7f3;color:#194a43}
.kdb-asset-chip strong{overflow-wrap:anywhere;font-size:13px}
.kdb-asset-chip small{color:#5c756e;font-size:12px}
.kdb-asset-chip button{min-height:27px;padding:2px 7px;border:0;border-radius:5px;background:transparent;color:#296e60;font-size:12px}
.kdb-asset-chip button:hover{background:#d9ebe4}
.kdb-asset-chooser{border-top:1px solid #e0eae5;padding-top:12px}
.kdb-asset-chooser>summary{width:max-content;cursor:pointer;color:#236e5f;font-size:14px;font-weight:700;padding:4px 0}
.kdb-asset-chooser-body{display:grid;gap:10px;margin-top:13px}
.kdb-asset-chooser-body label{max-width:460px;margin:0;font-size:12px;color:#4c6d63}
.kdb-asset-chooser-body input{margin-top:6px;min-height:42px}
.kdb-asset-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-width:760px}
.kdb-asset-results button{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0;min-height:42px;padding:9px 11px;text-align:left;border:1px solid #d9e6e0;border-radius:7px;background:#fff;color:#1d4440;font-weight:400}
.kdb-asset-results button:hover{border-color:#79b6a5;background:#f3faf6}
.kdb-asset-results button strong{font-size:13px;overflow-wrap:anywhere}
.kdb-asset-results button span{color:#658078;font-size:12px;white-space:nowrap}
.kdb-asset-result-count,.kdb-asset-no-result{margin:0;color:#638078;font-size:12px}
@media(max-width:720px){
  .kdb-event{grid-template-columns:27px minmax(0,1fr);gap:10px;padding:17px 0}
  .kdb-event-header{display:grid;gap:3px}
  .kdb-event-header time{white-space:normal}
  .kdb-event-file{display:grid;padding:12px 13px}
  .kdb-asset-picker{padding:14px}
  .kdb-asset-results{grid-template-columns:1fr}
  .kdb-asset-chip{max-width:100%}
}

/* Ticket ledger favors even-weight text across every chosen column. */
.ticket-list-selectable .ticket-list-head,
.ticket-list-selectable .ticket-list-row,
.ticket-list-selectable .ticket-list-row :is(strong,b),
.ticket-list-v2 .ticket-list-head,
.ticket-list-v2 .ticket-list-row :is(strong,b){font-weight:400!important}

.ticket-pending-reason{margin:0 0 14px;padding:12px 0;border-top:1px solid #dce5e1;border-bottom:1px solid #dce5e1}
.ticket-pending-reason span{color:#8a6428;font-size:10px}
.ticket-pending-reason p{margin:5px 0 0;color:#533f20;font-size:11px;line-height:1.6;white-space:pre-wrap}
.ticket-manage-sheet{width:min(860px,100vw)}
.ticket-manage-form{display:grid;gap:22px}
.ticket-status-editor{display:grid;gap:12px;padding:17px 18px;background:#f4f8f6;border:1px solid #d7e4df;border-radius:12px}
.ticket-status-editor h3{margin:0;font-size:15px}
.ticket-status-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ticket-status-options label{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:start;margin:0;padding:13px;border:1px solid #cbdad5;border-radius:9px;background:#fff;cursor:pointer}
.ticket-status-options label:has(input:checked){border-color:#24967c;background:#ebf8f4;box-shadow:0 5px 16px rgba(13,74,66,.08)}
.ticket-status-options input{width:17px;height:17px;min-height:17px;margin-top:2px;accent-color:#147967}
.ticket-status-options strong,.ticket-status-options small{display:block}
.ticket-status-options strong{font-size:13px}
.ticket-status-options small{margin-top:4px;color:#607872;font-size:10px;line-height:1.45}
.pending-reason-field{margin:0}
.pending-reason-field span{display:block;margin-bottom:7px;font-size:12px;font-weight:700}
.pending-reason-field b{color:#b74436}
.pending-reason-field textarea{min-height:84px;background:#fff}
.ticket-manage-form>.form-grid{padding:0}
.ticket-manage-voice{display:grid;gap:13px;padding:17px 18px;border:1px solid #c9e2da;border-radius:12px;background:linear-gradient(135deg,#f8fcfa,#edf8f4)}
.ticket-manage-voice-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.ticket-manage-voice-head .eyebrow{display:block;margin:0 0 4px;color:#347568;font-size:9px;letter-spacing:.14em}
.ticket-manage-voice-head h3{margin:0;color:#173d3a;font-size:15px}
.ticket-manage-voice-head p{max-width:560px;margin:5px 0 0;color:#617b75;font-size:11px;line-height:1.5}
.ticket-manage-voice-head>span{display:inline-flex;align-items:center;gap:7px;flex:none;padding:6px 9px;border-radius:999px;background:#dff2eb;color:#286e60;font-size:10px;font-weight:650}
.ticket-manage-voice-head>span:before{content:"";width:7px;height:7px;border-radius:50%;background:#29a98a}
.ticket-manage-voice-actions{display:grid;grid-template-columns:minmax(170px,1fr) 80px 92px;gap:8px;max-width:470px}
.ticket-manage-voice-actions button{min-height:39px}
.ticket-manage-voice-actions .recording{background:#a94339;border-color:#a94339;color:#fff}
.ticket-manage-voice-preview{display:grid;gap:10px}
.ticket-manage-voice-preview audio{width:100%;height:34px}
.manage-voice-transcript{padding:11px 13px;border:1px solid #d9e7e2;border-radius:9px;background:#fff}
.manage-voice-transcript span{display:block;margin-bottom:5px;color:#6b817c;font-size:9px;font-weight:700;letter-spacing:.08em}
.manage-voice-transcript p{max-height:110px;overflow:auto;margin:0;color:#244945;font-size:12px;line-height:1.55;white-space:pre-wrap}
.ticket-manage-voice-preview ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}
.ticket-manage-voice-preview li{display:grid;grid-template-columns:120px minmax(0,1fr);gap:10px;padding:8px 11px;border-radius:7px;background:#e7f3ef;color:#365d56;font-size:11px}
.ticket-manage-voice-preview li strong{color:#173e3a}
.manage-voice-empty{margin:0;color:#617a74;font-size:11px}
.ticket-manage-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:16px;border-top:1px solid #dce5e1}
.ticket-manage-actions>span{color:#607872;font-size:11px}
.ticket-manage-actions>div{display:flex;gap:9px}
@media(max-width:980px){.ticket-ledger-shell.has-quickview{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){.ticket-status-options{grid-template-columns:1fr}.ticket-manage-voice-head{display:grid}.ticket-manage-voice-head>span{justify-self:start}.ticket-manage-voice-actions{grid-template-columns:minmax(0,1fr) 66px 82px}.ticket-manage-voice-preview li{grid-template-columns:1fr}.ticket-manage-actions{align-items:stretch;flex-direction:column}.ticket-manage-actions>div{display:grid;grid-template-columns:1fr 1fr}.ticket-manage-actions button{width:100%}}

/* Keep the desktop inspection panel in view while the ticket ledger scrolls. */
@media(min-width:981px){
  .ticket-ledger-shell.has-quickview{overflow:visible}
  .ticket-ledger-shell.has-quickview .ticket-quickview{align-self:start;min-height:0;max-height:calc(100vh - 40px);overflow-y:auto;overscroll-behavior:contain;scrollbar-color:#9dbbb2 #eef3f0;scrollbar-width:thin}
}

.ticket-register-v3 .ticket-topology-card{grid-column:1/-1;min-width:0;padding:18px 20px;border:1px solid #d8e7e1;border-radius:12px;background:#fff}
.ticket-topology-card>h3{margin:0 0 14px;font-size:16px;color:#173d3d}
.ticket-topology-card .topology{margin:0}
.video-retention-notice{display:flex;align-items:baseline;gap:7px;width:fit-content;max-width:100%;margin:7px 0 1px;padding:5px 8px;border:1px solid #ead9b4;border-radius:6px;background:#fffaf0;color:#624f2e;line-height:1.35}
.video-retention-icon{display:none}
.video-retention-notice strong{font-size:10px;font-weight:700;white-space:nowrap}
.video-retention-notice small{color:#77684b;font-size:9px;font-weight:400;overflow-wrap:anywhere}
.ticket-register-v3 .ticket-form-card .occurred-field{grid-column:span 2}
.occurred-composite{display:grid;grid-template-columns:minmax(170px,1.25fr) 12px minmax(125px,.75fr);gap:7px;align-items:center;width:100%;max-width:600px}
.occurred-composite>input{width:100%;min-width:0}
.occurred-composite>span{color:#78908a;text-align:center}
.occurred-composite>small{grid-column:3;color:#6c837d;font-size:10px;line-height:1.3;margin-top:-2px}
.ticket-manage-form .occurred-field{grid-column:1/-1}
.root-cause-field small{display:block;margin-top:6px;color:#687d76;font-size:11px;line-height:1.45}
.root-cause-field select{width:100%}
.kdb-reading-actions{gap:10px;flex-wrap:wrap;align-items:center}
.kdb-type-line{margin:14px 0 -8px}
.kdb-type-tag{display:inline-flex;align-items:center;max-width:100%;padding:3px 8px;border-radius:5px;background:#e7f5ef;color:#1a6858;font-size:11px;font-weight:600;white-space:nowrap}
.kdb-row-meta .kdb-type-tag{margin-left:auto}
@media(max-width:720px){.ticket-register-v3 .ticket-topology-card{padding:15px}.kdb-row-meta .kdb-type-tag{margin-left:0}.kdb-reading-actions{display:grid;grid-template-columns:1fr}.video-retention-notice{width:100%;align-items:flex-start;flex-wrap:wrap}.ticket-register-v3 .ticket-form-card .occurred-field{grid-column:1/-1}.occurred-composite{grid-template-columns:minmax(0,1.35fr) 8px minmax(0,.85fr)}.occurred-composite>small{grid-column:1/-1;text-align:right}}

/* Voice surfaces: clear live feedback for Ticket updates and KDB capture. */
.ticket-manage-voice{gap:15px;padding:18px;border-color:#b8dacf;background:#f5faf8;overflow:hidden}
.ticket-manage-voice-head{align-items:center}
.ticket-manage-voice-head h3{font-size:16px;letter-spacing:-.01em}
.ticket-manage-voice-head p{max-width:610px;margin-top:4px}
.manage-voice-flow{display:flex;align-items:center;gap:5px;flex:none;margin:0;padding:0;list-style:none}
.manage-voice-flow li{display:flex;align-items:center;gap:5px;color:#718a84;font-size:10px;font-weight:650;white-space:nowrap}
.manage-voice-flow li+li:before{content:"";width:18px;height:1px;margin-right:1px;background:#c3d7d1}
.manage-voice-flow b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#e2ece8;color:#51716a;font-size:9px}
.ticket-manage-voice[data-voice-stage="record"] [data-stage="record"],.ticket-manage-voice[data-voice-stage="process"] [data-stage="process"],.ticket-manage-voice[data-voice-stage="review"] [data-stage="review"]{color:#0f6056}
.ticket-manage-voice[data-voice-stage="record"] [data-stage="record"] b,.ticket-manage-voice[data-voice-stage="process"] [data-stage="process"] b,.ticket-manage-voice[data-voice-stage="review"] [data-stage="review"] b{background:#bff0df;color:#0d5a51}
.ticket-manage-voice[data-voice-stage="process"] [data-stage="record"] b,.ticket-manage-voice[data-voice-stage="review"] [data-stage="record"] b,.ticket-manage-voice[data-voice-stage="review"] [data-stage="process"] b{background:#2a8978;color:#fff}
.manage-voice-console{display:grid;grid-template-columns:148px minmax(210px,1fr) minmax(300px,390px);gap:17px;align-items:center;padding:16px;border-radius:12px;background:#123f3b;color:#f1fffb;box-shadow:0 12px 28px rgba(14,60,56,.12)}
.manage-voice-visual{display:flex;align-items:center;gap:13px;min-width:0}
.manage-voice-mic{position:relative;display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:50%;background:#d2f5e8;color:#145d54}
.manage-voice-mic:before,.manage-voice-mic:after{content:"";position:absolute;inset:-5px;border:1px solid rgba(119,229,197,.42);border-radius:50%;opacity:0;transform:scale(.82)}
.manage-voice-mic svg,.kdb-voice-mic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.manage-voice-wave,.kdb-voice-wave{display:flex;align-items:center;justify-content:center;gap:3px;height:34px;min-width:0}
.manage-voice-wave i,.kdb-voice-wave i{display:block;width:3px;height:22px;border-radius:2px;background:#83dec5;opacity:.58;transform:scaleY(calc(.22 + (var(--bar) % 5) * .11));transform-origin:center}
.manage-voice-copy{display:grid;gap:4px;min-width:0}
.manage-voice-copy strong{color:#fff;font-size:13px;font-variant-numeric:tabular-nums}
.manage-voice-copy small{color:#a9cbc3;font-size:10px;line-height:1.45}
.ticket-manage-voice-actions{display:grid;grid-template-columns:minmax(150px,1fr) 68px 82px;gap:7px;max-width:none}
.ticket-manage-voice-actions button{min-height:38px;border-color:#6d9d92;background:#1d514c;color:#f4fffb;font-size:11px}
.ticket-manage-voice-actions button.primary{border-color:#77ddc0;background:#77ddc0;color:#103b37}
.ticket-manage-voice-actions button:disabled{border-color:#315d58;background:#234a46;color:#6f9990;opacity:1}
.ticket-manage-voice-actions .recording{border-color:#f0a696;background:#a94339;color:#fff}
.ticket-manage-voice.is-recording .manage-voice-mic{background:#ffddd6;color:#943c32}
.ticket-manage-voice.is-recording .manage-voice-mic:before{animation:voice-ring 1.8s cubic-bezier(.16,1,.3,1) infinite}
.ticket-manage-voice.is-recording .manage-voice-mic:after{animation:voice-ring 1.8s .6s cubic-bezier(.16,1,.3,1) infinite}
.ticket-manage-voice.is-recording .manage-voice-wave i,.segment-capture.voice-only.is-recording .kdb-voice-wave i{opacity:1;animation:voice-meter .78s ease-in-out infinite alternate;animation-delay:calc(var(--bar) * -65ms)}
.ticket-manage-voice.is-processing .manage-voice-wave i,.segment-capture.voice-only.is-processing .kdb-voice-wave i{opacity:1;animation:voice-scan 1.15s ease-in-out infinite;animation-delay:calc(var(--bar) * -55ms)}
.ticket-manage-voice.is-ready .manage-voice-mic{background:#aee9d6}
.ticket-manage-voice-preview:not(:empty){padding-top:2px}
@keyframes voice-ring{0%{opacity:.7;transform:scale(.82)}75%,100%{opacity:0;transform:scale(1.42)}}
@keyframes voice-meter{from{transform:scaleY(.22)}to{transform:scaleY(.95)}}
@keyframes voice-scan{0%,100%{transform:scaleY(.2);opacity:.45}50%{transform:scaleY(.85);opacity:1}}

.kdb-voice-sheet .kdb-voice-steps{gap:8px;margin-bottom:14px}
.kdb-voice-sheet .kdb-voice-steps>div{padding:11px 12px;border-radius:10px}
.kdb-voice-sheet .kdb-voice-steps>div.active{box-shadow:none}
.kdb-voice-sheet .kdb-voice-steps[data-voice-stage="process"]>div{border-color:var(--line);background:var(--surface-soft,#f4f8f6);box-shadow:none}
.kdb-voice-sheet .kdb-voice-steps[data-voice-stage="process"]>div:nth-child(1) b{background:#2a8978;color:#fff}
.kdb-voice-sheet .kdb-voice-steps[data-voice-stage="process"]>div:nth-child(2){border-color:#63cdb5;background:#edfaf6}
.kdb-voice-sheet .kdb-voice-steps[data-voice-stage="process"]>div:nth-child(2) b{background:#0c5b56;color:#fff}
.kdb-voice-sheet .kdb-voice-studio{padding:20px}
.kdb-voice-sheet .kdb-voice-studio-head{align-items:center;margin-bottom:12px}
.kdb-voice-sheet .kdb-voice-studio-head h2{margin:0 0 4px;font-size:17px}
.kdb-voice-sheet .kdb-voice-studio-head p{margin:0;font-size:11px}
.kdb-voice-sheet .segment-capture.voice-only{margin:0 0 15px;padding:0;border:0;border-radius:13px;background:#102f31;overflow:hidden;box-shadow:0 14px 34px rgba(10,46,48,.15)}
.kdb-voice-console{display:grid;grid-template-columns:230px minmax(0,1fr);gap:22px;align-items:center;min-height:132px;padding:23px 25px;background:linear-gradient(115deg,#0d3534 0%,#174d47 100%);color:#ecfff9}
.kdb-voice-signal{position:relative;display:flex;align-items:center;gap:18px;min-width:0}
.kdb-voice-signal:after{content:"";position:absolute;right:-11px;width:1px;height:76px;background:rgba(171,226,211,.22)}
.kdb-voice-mic{position:relative;display:grid;place-items:center;flex:none;width:62px;height:62px;border-radius:18px;background:#bff1df;color:#145c53;box-shadow:0 10px 24px rgba(3,31,31,.22);transition:background .2s ease,color .2s ease,transform .2s cubic-bezier(.16,1,.3,1)}
.kdb-voice-mic:before,.kdb-voice-mic:after{content:"";position:absolute;inset:-7px;border:1px solid rgba(123,224,197,.46);border-radius:23px;opacity:0;transform:scale(.86)}
.kdb-voice-mic svg{width:27px;height:27px}
.kdb-voice-wave{justify-content:flex-start;gap:4px;width:120px;height:54px}
.kdb-voice-wave i{width:4px;height:38px;background:#8ce2c9}
.kdb-voice-message{display:grid;gap:6px}
.kdb-voice-message strong{color:#fff;font-size:16px;letter-spacing:-.01em}
.kdb-voice-message span{max-width:500px;color:#acd0c8;font-size:11px;line-height:1.55}
.kdb-voice-sheet .segment-capture.voice-only .voice-actions{display:grid;grid-template-columns:minmax(190px,1fr) 90px 102px;gap:9px;padding:14px 25px;background:#f1f8f5}
.kdb-voice-sheet .segment-capture.voice-only .voice-actions button{min-height:42px}
.kdb-voice-sheet .segment-capture.voice-only .voice-actions .recording{border-color:#a94339;background:#a94339;color:#fff}
.kdb-voice-sheet .segment-capture.voice-only #kdb-audio:empty{display:none}
.kdb-voice-sheet .segment-capture.voice-only #kdb-audio{padding:0 25px 15px;background:#f1f8f5}
.kdb-voice-sheet .segment-capture.voice-only #kdb-audio audio{margin:0;height:36px}
.segment-capture.voice-only.is-recording .kdb-voice-mic{background:#ffdbd3;color:#93382f;transform:translateY(-1px)}
.segment-capture.voice-only.is-recording .kdb-voice-mic:before{animation:voice-kdb-ring 1.9s cubic-bezier(.16,1,.3,1) infinite}
.segment-capture.voice-only.is-recording .kdb-voice-mic:after{animation:voice-kdb-ring 1.9s .65s cubic-bezier(.16,1,.3,1) infinite}
.segment-capture.voice-only.is-paused .kdb-voice-wave i{opacity:.25;transform:scaleY(.18)}
.segment-capture.voice-only.is-processing .kdb-voice-mic{background:#ffeab6;color:#76530b}
@keyframes voice-kdb-ring{0%{opacity:.72;transform:scale(.86)}75%,100%{opacity:0;transform:scale(1.28)}}
@media(max-width:860px){.manage-voice-console{grid-template-columns:130px minmax(0,1fr)}.ticket-manage-voice-actions{grid-column:1/-1}.kdb-voice-console{grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:720px){.ticket-manage-voice{padding:14px}.ticket-manage-voice-head{display:grid;gap:11px}.manage-voice-flow{width:100%;justify-content:space-between}.manage-voice-flow li+li:before{width:13px}.manage-voice-console{grid-template-columns:1fr;gap:13px;padding:15px}.manage-voice-visual{justify-content:center}.manage-voice-copy{text-align:center}.ticket-manage-voice-actions{grid-column:auto;grid-template-columns:1fr 68px 82px}.kdb-voice-sheet .kdb-voice-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.kdb-voice-sheet .kdb-voice-steps>div{display:flex;justify-content:center;gap:5px;padding:8px 5px}.kdb-voice-sheet .kdb-voice-steps b{width:22px;height:22px}.kdb-voice-sheet .kdb-voice-steps small{display:none}.kdb-voice-sheet .kdb-voice-studio{padding:15px}.kdb-voice-sheet .kdb-voice-studio-head{display:flex}.kdb-voice-sheet .kdb-voice-studio-head .badge{display:none}.kdb-voice-console{grid-template-columns:1fr;gap:15px;padding:20px 17px;text-align:center}.kdb-voice-signal{justify-content:center}.kdb-voice-signal:after{display:none}.kdb-voice-message span{margin:auto}.kdb-voice-sheet .segment-capture.voice-only .voice-actions{grid-template-columns:1fr 68px 82px;padding:12px}.kdb-voice-sheet .segment-capture.voice-only .voice-actions button{padding-inline:7px;font-size:10px}.kdb-voice-sheet .segment-capture.voice-only #kdb-audio{padding:0 12px 12px}}
@media(prefers-reduced-motion:reduce){.manage-voice-mic:before,.manage-voice-mic:after,.kdb-voice-mic:before,.kdb-voice-mic:after,.manage-voice-wave i,.kdb-voice-wave i{animation:none!important}.ticket-manage-voice.is-recording .manage-voice-wave i,.segment-capture.voice-only.is-recording .kdb-voice-wave i{opacity:1;transform:scaleY(.72)}}

/* Automatically surfaced technical context. */
.resource-live{display:grid;gap:14px}
.resource-live .resource-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0}
.resource-live .resource-intro h3{margin:0 0 4px;font-size:16px}
.resource-live .resource-intro p{margin:0;color:#627b75;font-size:11px;line-height:1.5}
.resource-live-state{flex:none;padding:5px 9px;border-radius:999px;background:#e6f4ef;color:#276b5e;font-size:10px;font-weight:700}
.ticket-reference-live-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ticket-reference-live{min-width:0;padding:13px;border:1px solid #d8e5e0;border-radius:10px;background:#fff}
.ticket-reference-live>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding-bottom:9px;border-bottom:1px solid #e7eeeb}
.ticket-reference-live>header strong,.ticket-reference-live>header small{display:block}
.ticket-reference-live>header strong{color:#173d39;font-size:12px}
.ticket-reference-live>header small{margin-top:2px;color:#71857f;font-size:9px}
.ticket-reference-live>header>span{display:grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:#def1ea;color:#206657;font-size:10px;font-weight:700}
.ticket-reference-live.is-waiting{background:#fafcfb}
.ticket-reference-live.is-waiting>header>span{background:#edf2f0;color:#81918d}
.ticket-reference-live .empty{min-height:96px;padding:18px 8px}
.ticket-reference-live .empty h3{font-size:11px}
.ticket-reference-live .empty p{font-size:9px}
.ticket-reference-live .resolved-history-row,.ticket-reference-live .related-kdb-compact{padding:9px 0;border-bottom:1px solid #edf1ef}
.ticket-reference-live .resolved-history-row:last-child,.ticket-reference-live .related-kdb-compact:last-child{border-bottom:0}
.ticket-reference-loading{display:flex;align-items:center;justify-content:center;gap:10px;min-height:160px;border:1px dashed #c9dbd5;border-radius:10px;color:#617b75;font-size:11px}
.ticket-reference-loading span{width:18px;height:18px;border:2px solid #c7ded7;border-top-color:#23856f;border-radius:50%;animation:resource-spin .8s linear infinite}
@keyframes resource-spin{to{transform:rotate(360deg)}}
.resource-live .resource-create{margin:0;padding:11px 13px;border-radius:9px;background:#f3f8f5}

/* Shift roster administration and Ticket selectors. */
.personnel-admin-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 14px;padding:18px 20px;border:1px solid #d7e5df;border-radius:12px;background:linear-gradient(135deg,#f7fbf9,#edf7f3)}
.personnel-admin-intro h2{margin:3px 0 5px;font-size:18px}
.personnel-admin-intro p{max-width:700px;margin:0;color:#5f7771;font-size:11px;line-height:1.55}
.personnel-admin-intro>span{flex:none;padding:6px 10px;border-radius:999px;background:#d9efe7;color:#1f6658;font-size:11px;font-weight:700}
.personnel-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.personnel-roster{min-width:0;padding:18px;border:1px solid #d9e4e0;border-radius:12px;background:#fff}
.personnel-roster>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.personnel-roster>header h2{margin:3px 0 3px;font-size:17px}
.personnel-roster>header p{margin:0;color:#6b807b;font-size:10px}
.personnel-roster>header>b{flex:none;color:#317264;font-size:10px}
.personnel-add{display:grid;grid-template-columns:minmax(100px,.7fr) minmax(120px,1fr) auto;gap:7px;padding:10px;border-radius:9px;background:#f1f7f4}
.personnel-add input,.personnel-add button{min-height:37px}
.personnel-list{display:grid;gap:7px;margin-top:10px}
.personnel-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.8fr) auto;gap:7px;align-items:end;padding:9px;border:1px solid #e0e8e4;border-radius:9px;background:#fff}
.personnel-row label{margin:0}
.personnel-row label span{display:block;margin:0 0 4px;color:#6c817b;font-size:9px}
.personnel-row input{min-height:35px;padding:7px 9px;font-size:11px}
.personnel-row-actions{display:flex;gap:5px}
.personnel-row-actions button{min-height:35px;padding-inline:8px}
.personnel-row.is-disabled{background:#f5f6f5;opacity:.7}
.personnel-field select{font-weight:600}

/* KDB catalog follows a quiet search-result hierarchy: title, match facts, excerpt, provenance. */
.kdb-document-list{padding:6px}
.kdb-library-row{display:grid;gap:7px;padding:11px 10px;border-radius:7px}
.kdb-library-row+.kdb-library-row{margin-top:2px}
.kdb-row-heading{display:grid;grid-template-columns:27px minmax(0,1fr);gap:8px;align-items:start}
.kdb-row-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:7px;background:#e9f3ef;color:#377466}
.kdb-row-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.kdb-row-copy{display:grid;gap:3px;min-width:0}
.kdb-row-copy strong{display:block;color:#173b39;font-size:11.5px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kdb-row-copy small{display:flex;gap:4px;min-width:0;color:#728680;font-size:9px;line-height:1.3;overflow:hidden;white-space:nowrap}
.kdb-row-copy small b{max-width:48%;overflow:hidden;color:#277160;font:600 9px ui-monospace,Consolas,monospace;text-overflow:ellipsis}
.kdb-row-copy small i{font-style:normal;color:#a2afab}
.kdb-library-row .kdb-row-summary{display:block;margin:0 0 0 35px;color:#5f746e;font-size:9.5px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kdb-library-row .kdb-row-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-left:35px;color:#84948f;font-size:8.5px}
.kdb-library-row .kdb-row-foot>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kdb-library-row .kdb-row-state{padding:2px 5px;border-radius:4px;font-size:8px;white-space:nowrap}
.kdb-library-row.active .kdb-row-icon{background:#cfeade;color:#176150}
.kdb-library-row.active{border-color:#7fbba9;background:#fbfffd;box-shadow:none}
.kdb-media-rules{display:flex;gap:12px;flex-wrap:wrap;margin:8px 0 0;padding:8px 10px;border-radius:7px;background:#f4f7f5;color:#647a74;font-size:9px}

@media(max-width:980px){.ticket-reference-live-grid,.personnel-admin-grid{grid-template-columns:1fr}}
@media(max-width:720px){.resource-live .resource-intro,.personnel-admin-intro{align-items:flex-start;flex-direction:column}.ticket-reference-live-grid{grid-template-columns:1fr}.personnel-roster{padding:14px}.personnel-add,.personnel-row{grid-template-columns:1fr 1fr}.personnel-add button,.personnel-row-actions{grid-column:1/-1}.personnel-add button{width:100%}.personnel-row-actions{justify-content:flex-end}.kdb-library-row .kdb-row-summary,.kdb-library-row .kdb-row-foot{margin-left:35px}}
@media(prefers-reduced-motion:reduce){.ticket-reference-loading span{animation:none}}

/* Ticket status is a compact selector. Close is staged until the footer action confirms it. */
.ticket-register-v3 .ticket-lifecycle{padding:13px 16px}
.ticket-register-v3 .ticket-lifecycle>h2{margin-bottom:9px;font-size:13px}
.ticket-register-v3 .ticket-lifecycle-options{gap:8px}
.ticket-register-v3 .ticket-lifecycle-options>button{justify-content:center;min-height:48px;padding:9px 12px;gap:9px}
.ticket-register-v3 .ticket-lifecycle-options>button>span{width:18px;height:18px;flex-basis:18px}
.ticket-register-v3 .ticket-lifecycle-options strong{font-size:12px;line-height:1}

/* Keep shift assignments visually connected to the Ticket without crowding identity fields. */
.ticket-personnel-panel{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;align-items:stretch;margin:13px 0 4px;padding:12px;border:1px solid #d8e6e1;border-radius:11px;background:linear-gradient(135deg,#f8fcfa,#f1f8f5)}
.ticket-personnel-panel>header{display:flex;flex-direction:column;justify-content:center;padding:1px 4px}
.ticket-personnel-panel>header span{color:#458275;font:700 8.5px ui-monospace,Consolas,monospace;letter-spacing:.16em}
.ticket-personnel-panel>header h3{margin:3px 0 4px;color:#173d39;font-size:14px}
.ticket-personnel-panel>header p{margin:0;color:#6a807a;font-size:9px;line-height:1.4}
.ticket-personnel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ticket-personnel-panel .personnel-field{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;align-items:center;min-width:0;padding:8px;border:1px solid #dce8e3;border-radius:9px;background:#fff}
.ticket-personnel-panel .personnel-role-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#def2ea;color:#176454;font:800 10px ui-monospace,Consolas,monospace}
.ticket-personnel-panel .personnel-field>div{display:grid;gap:4px;min-width:0}
.ticket-personnel-panel .personnel-field label{margin:0;color:#4d6d65;font-size:9px}
.ticket-personnel-panel .personnel-field select{width:100%;height:34px;min-height:34px;padding:5px 27px 5px 8px;border-color:#cbdcd6;background-color:#fbfdfc;color:#173d39;font-size:10.5px;font-weight:600}

/* Technical context uses full-width lanes with horizontal result cards. */
.ticket-register-v3 .ticket-reference-card{grid-column:auto;grid-row:auto;margin:13px 0 4px;padding:13px;border:1px solid #d6e5e0;border-radius:11px;background:#fff}
.ticket-register-v3 .ticket-reference-card .resource-intro p{display:block}
.ticket-reference-live-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.ticket-reference-live{display:grid;grid-template-columns:170px minmax(0,1fr);min-width:0;padding:0;overflow:hidden}
.ticket-reference-live>header{align-self:stretch;padding:12px;border-right:1px solid #e4ece8;border-bottom:0;background:#f7faf8}
.ticket-reference-live>header strong{font-size:11.5px}
.ticket-reference-live>header small{font-size:9px}
.ticket-reference-content{min-width:0;padding:9px;overflow-x:auto}
.ticket-reference-content>.empty{min-height:72px}
.ticket-context-case-list,.ticket-context-kdb-list{display:flex;gap:8px;min-width:max-content}
.ticket-context-case,.ticket-context-kdb-list>button{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:center;width:278px;min-height:76px;padding:9px 11px;border:1px solid #dbe7e2;border-radius:8px;background:#fff;color:#173d39;text-align:left}
.ticket-context-case:hover,.ticket-context-kdb-list>button:hover{border-color:#75b8a5;background:#fbfffd}
.ticket-context-case>span,.ticket-context-kdb-list>button>span{display:grid;gap:2px;min-width:0}
.ticket-context-case>span small,.ticket-context-kdb-list>button small{overflow:hidden;color:#6b817a;font-size:8.5px;text-overflow:ellipsis;white-space:nowrap}
.ticket-context-case>span strong,.ticket-context-kdb-list>button strong{overflow:hidden;font-size:10.5px;text-overflow:ellipsis;white-space:nowrap}
.ticket-context-case>p{grid-column:1;margin:0;overflow:hidden;color:#47655e;font-size:9.5px;text-overflow:ellipsis;white-space:nowrap}
.ticket-context-case>em{grid-column:1;overflow:hidden;color:#7b8c87;font-size:8.5px;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
.ticket-context-case>b,.ticket-context-kdb-list>button>b{grid-column:2;grid-row:1/4;color:#1c705f}

@media(max-width:720px){
 .ticket-personnel-panel{grid-template-columns:1fr}
 .ticket-personnel-panel>header{display:block}
 .ticket-personnel-grid{grid-template-columns:1fr}
 .ticket-reference-live{grid-template-columns:1fr}
 .ticket-reference-live>header{border-right:0;border-bottom:1px solid #e4ece8}
 .ticket-context-case,.ticket-context-kdb-list>button{width:250px}
}
