/* Ticket / History / KDB visual adaptation. Loaded last, scoped to these pages. */
#workspace.linked-ticket-page,#workspace.linked-history-page,#workspace.linked-kdb-page{max-width:1510px}
#workspace.linked-ticket-page .page-heading,#workspace.linked-history-page .page-heading{margin-bottom:18px}
#workspace.linked-ticket-page .page-heading h1,#workspace.linked-history-page .page-heading h1{font-size:clamp(24px,2vw,30px);letter-spacing:-.035em}
#workspace.linked-ticket-page .register-grid{display:block}
#workspace.linked-ticket-page .ticket-form-card{padding:24px 28px;border-radius:14px;background:#fff;box-shadow:0 10px 30px #183c3710}
.linked-ticket-intro{padding:5px 0 20px;border-bottom:1px solid #dce8df;margin-bottom:24px}
.linked-ticket-intro h2{font-size:20px;line-height:1.25;margin:7px 0}
.linked-ticket-intro p{font-size:12px;color:#71897d;margin:0}
#workspace.linked-ticket-page .ticket-identity-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:11px;align-items:start}
#workspace.linked-ticket-page .ticket-overview-grid{display:block}
#workspace.linked-ticket-page .ticket-overview-identity{width:100%;padding:14px 18px}
#workspace.linked-ticket-page .ticket-identity-core .field{grid-template-columns:110px minmax(0,1fr)}
#workspace.linked-ticket-page .ticket-identity-grid .linked-description{grid-column:1/3}
#workspace.linked-ticket-page .ticket-identity-grid .linked-voice{grid-column:3/5;margin:0;padding:18px 20px;min-height:0;background:#edf7f1;border:1px solid #cee6d8;box-shadow:none}
#workspace.linked-ticket-page .ticket-work-details{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:14px 18px}
#workspace.linked-ticket-page .ticket-work-details>.linked-description{grid-column:1;grid-row:1}
#workspace.linked-ticket-page .ticket-work-details>.linked-voice{grid-column:2;grid-row:1;margin:0;padding:18px 20px;min-height:0;background:#edf7f1;border:1px solid #cee6d8;box-shadow:none}
#workspace.linked-ticket-page .linked-description textarea{min-height:154px}
#workspace.linked-ticket-page .linked-voice .voice-head h2{font-size:16px;margin:0 0 4px}
#workspace.linked-ticket-page .linked-voice .voice-head p{margin:0;font-size:11px}
#workspace.linked-ticket-page .linked-voice .voice-visual{padding:8px 0;flex-direction:row;justify-content:center;gap:14px}
#workspace.linked-ticket-page .linked-voice .mic{width:43px;height:43px;font-size:21px}
#workspace.linked-ticket-page .linked-voice .wave{height:24px}
#workspace.linked-ticket-page .linked-voice .voice-controls{display:grid;gap:8px}
#workspace.linked-ticket-page .linked-voice .hint{margin:0;font-size:10px}
#workspace.linked-ticket-page .linked-voice .ticket-voice-quick-actions{display:none}
#workspace.linked-ticket-page .ticket-register-side:empty{display:none}
#workspace.linked-ticket-page .ticket-register-main{width:100%}
#workspace.linked-ticket-page .ticket-media-card:empty{display:none}
#workspace.linked-ticket-page .ticket-identity-grid>.field:not(.linked-description){grid-column:span 1}
.linked-ticket-group{border:1px solid #d9e7de;border-radius:10px;background:#fff;margin-top:12px;overflow:hidden}
.linked-ticket-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:11px 16px;font-size:13px;font-weight:650;color:#254a40}
.linked-ticket-group>summary::-webkit-details-marker{display:none}
.linked-ticket-group>summary:after{content:'⌄';font-size:18px;font-weight:400;transition:transform .18s}
.linked-ticket-group[open]>summary:after{transform:rotate(180deg)}
.linked-ticket-group[open]>summary{border-bottom:1px solid #e3ece5;background:#f5faf6}
.linked-ticket-group>section,.linked-ticket-group>.field{margin:0;padding:17px 19px}
.linked-ticket-group .ticket-personnel-panel{border-top:1px solid #e7eee8}
.linked-ticket-group .resource-workbench{border:0;box-shadow:none}
.linked-ticket-group .ticket-media-top{border:0}
#workspace.linked-ticket-page .ticket-workflow-footer{margin-top:21px}
#workspace.linked-history-page .ticket-status-tabs{border:1px solid #d9e5df;border-radius:11px 11px 0 0;background:#fff;margin-bottom:0}
#workspace.linked-history-page .ticket-command-modern{border-radius:0 0 11px 11px;border-top:0;margin-bottom:16px;background:#fff}
#workspace.linked-history-page .ticket-command-split{display:block}
#workspace.linked-history-page .ticket-command-split>form{border:0}
#workspace.linked-history-page .ticket-command-row{padding:14px 16px}
.linked-history-advanced,.linked-history-voice{border-top:1px solid #e2eae4}
.linked-history-advanced>summary,.linked-history-voice>summary{list-style:none;cursor:pointer;padding:12px 18px;color:#416e5b;font-size:12px;font-weight:650}
.linked-history-advanced>summary::-webkit-details-marker,.linked-history-voice>summary::-webkit-details-marker{display:none}
.linked-history-advanced>summary:before,.linked-history-voice>summary:before{content:'＋';display:inline-block;width:19px}
.linked-history-advanced[open]>summary:before,.linked-history-voice[open]>summary:before{content:'－'}
#workspace.linked-history-page .ticket-filter-panel{padding:0 16px 15px;max-height:none;display:block}
#workspace.linked-history-page .ticket-voice-studio{border-radius:0;padding:15px 18px}
#workspace.linked-history-page .ticket-ledger-shell{border-radius:12px;background:#fff;box-shadow:0 10px 30px #183c370d}
#workspace.linked-history-page .ticket-ledger-heading h2{font-size:17px}
#workspace.linked-history-page .ticket-quickview{background:#fbfdfb}
.linked-history-links{display:grid;gap:8px;border-top:1px solid #dae6dd;margin-top:17px;padding-top:16px}
.linked-history-links button{font-size:12px;min-height:37px}
.linked-history-links button:first-child{background:#193e39;color:#fff;border-color:#193e39}
.linked-muted{font-size:11px;color:#758c80;margin:2px 0}
#workspace.linked-kdb-page .kdb-page-heading h1{font-size:clamp(25px,2vw,31px)}
#workspace.linked-kdb-page .kdb-overview-board{padding:15px 20px;margin-bottom:15px}
#workspace.linked-kdb-page .kdb-overview-head{margin-bottom:10px}
#workspace.linked-kdb-page .kdb-overview-head h2{font-size:15px}
#workspace.linked-kdb-page .kdb-overview-card{min-height:115px;padding:13px 15px}
#workspace.linked-kdb-page .kdb-overview-card-subtitle{display:none}
#workspace.linked-kdb-page .kdb-overview-count{font-size:24px}
#workspace.linked-kdb-page .kdb-library-shell{grid-template-columns:minmax(250px,29%) minmax(0,1fr)}
#workspace.linked-kdb-page .kdb-reading{background:#fff}
#workspace.linked-kdb-page .kdb-reading-main{max-width:900px}
.linked-kdb-source{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:13px 16px;margin:0 0 18px;background:#f0f7f1;border:1px solid #d6e9dc;border-radius:9px}
.linked-kdb-source span,.linked-kdb-source small{display:block;font-size:10px;color:#6b8976}
.linked-kdb-source strong{display:block;font-size:12px;margin:4px 0}
.linked-kdb-source button{white-space:nowrap;min-height:35px;font-size:11px}
/* The Ticket is a two-column workspace: one reading path and a live overview. */
#workspace.linked-ticket-page .page-heading{margin:0 0 20px}
#workspace.linked-ticket-page .page-heading h1{font-size:clamp(24px,2.1vw,32px);line-height:1.2;max-width:28ch}
#workspace.linked-ticket-page .page-heading p{font-size:13px;margin-top:7px}
.linked-ticket-role{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:11px;color:#2a6550}
.linked-role-label{display:inline-flex;align-items:center;min-height:27px;padding:4px 10px;border:1px solid #b8dac8;border-radius:999px;background:#eaf6ee;font-weight:700}
.linked-role-status{display:inline-flex;align-items:center;min-height:27px;padding:4px 10px;border:1px solid #d9e5dc;border-radius:999px;background:#fff;color:#35584a}
#workspace.linked-ticket-page .linked-ticket-navigator{margin-bottom:12px}
#workspace.linked-ticket-page .linked-ticket-lifecycle{margin-bottom:15px}
#workspace.linked-ticket-page .ticket-context{min-height:0;padding:10px 15px;display:flex;align-items:center;gap:14px;border:1px solid #d9e6dc;border-radius:10px;background:#fff;box-shadow:none}
#workspace.linked-ticket-page .ticket-progress-head{flex:1;min-width:0}
#workspace.linked-ticket-page .ticket-progress-copy strong{font-size:12px}
#workspace.linked-ticket-page .ticket-progress-copy small{font-size:10px}
#workspace.linked-ticket-page .ticket-queue-scope-slot,#workspace.linked-ticket-page .compact-ticket-nav{margin:0;display:flex;gap:6px;align-items:center}
#workspace.linked-ticket-page .ticket-context button{min-height:32px;font-size:11px}
#workspace.linked-ticket-page .ticket-lifecycle{display:flex;align-items:center;gap:16px;padding:8px 14px;min-height:0;background:#f7faf7;border:1px solid #d9e6dc;border-radius:10px}
#workspace.linked-ticket-page .ticket-lifecycle h2{font-size:11px;white-space:nowrap;margin:0}
#workspace.linked-ticket-page .ticket-lifecycle-options{flex:1;gap:7px}
#workspace.linked-ticket-page .ticket-lifecycle-options button{min-height:34px;font-size:11px}
#workspace.linked-ticket-page .register-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;align-items:start}
#workspace.linked-ticket-page .ticket-register-main{min-width:0;width:auto}
#workspace.linked-ticket-page .ticket-form-card{padding:0;border:1px solid #d9e4dc;overflow:hidden;box-shadow:0 10px 28px #173b3210}
#workspace.linked-ticket-page .ticket-form-card>.card-title{min-height:50px;padding:12px 20px;border-bottom:1px solid #e0e9e2;background:#fff}
#workspace.linked-ticket-page .ticket-form-card>.card-title h2{font-size:13px;font-weight:700}
#workspace.linked-ticket-page .ticket-form-card>.counter-progress{margin:0}
#workspace.linked-ticket-page #case-form{padding:23px 25px 25px}
#workspace.linked-ticket-page .linked-ticket-intro{padding:0 0 16px;margin:0 0 18px;border-bottom:1px solid #dce7de}
#workspace.linked-ticket-page .linked-ticket-intro h2{font-size:17px;margin:0 0 5px}
#workspace.linked-ticket-page .linked-ticket-intro p{font-size:12px}
#workspace.linked-ticket-page .ticket-overview-grid{display:block}
#workspace.linked-ticket-page .ticket-overview-identity{padding:0;border:0;background:transparent;box-shadow:none}
#workspace.linked-ticket-page .ticket-overview-identity .ticket-subsection-heading{padding:0 0 12px}
#workspace.linked-ticket-page .ticket-overview-identity .ticket-subsection-heading h3{font-size:14px}
#workspace.linked-ticket-page .ticket-overview-identity .ticket-subsection-heading span{display:none}
#workspace.linked-ticket-page .ticket-identity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 12px}
#workspace.linked-ticket-page .ticket-overview-identity .ticket-identity-core{padding-bottom:20px;border-bottom:1px solid #e1e9e3}
#workspace.linked-ticket-page .ticket-identity-core .field{display:block;min-width:0}
#workspace.linked-ticket-page .ticket-identity-core .field label{display:block;margin:0 0 6px;font-size:11px;font-weight:650}
#workspace.linked-ticket-page .ticket-identity-core .field input,#workspace.linked-ticket-page .ticket-identity-core .field select{width:100%;min-width:0}
#workspace.linked-ticket-page .ticket-work-details{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.52fr);gap:13px;margin-top:20px}
#workspace.linked-ticket-page .ticket-work-details>.linked-description{grid-column:1;grid-row:1}
#workspace.linked-ticket-page .ticket-work-details>.linked-voice{grid-column:2;grid-row:1;padding:14px;background:#edf7f1}
#workspace.linked-ticket-page .linked-description textarea{min-height:183px}
#workspace.linked-ticket-page .linked-voice .voice-head h2{font-size:13px}
#workspace.linked-ticket-page .linked-voice .voice-head p,#workspace.linked-ticket-page .linked-voice .hint{font-size:10px;line-height:1.4}
#workspace.linked-ticket-page .linked-voice .voice-visual{justify-content:flex-start}
#workspace.linked-ticket-page .linked-voice .voice-actions button{min-height:34px}
#workspace.linked-ticket-page .linked-ticket-group{margin-top:0;border:0;border-top:1px solid #dce7de;border-radius:0;box-shadow:none}
#workspace.linked-ticket-page .linked-ticket-group>summary{min-height:58px;padding:10px 2px;font-size:12px;justify-content:flex-start;gap:10px}
#workspace.linked-ticket-page .linked-ticket-group>summary:after{display:none}
#workspace.linked-ticket-page .linked-ticket-group[open]>summary{background:transparent;border-bottom:1px solid #e7eee9}
.linked-group-icon{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border-radius:6px;background:#edf6ef;color:#447d62}
.linked-group-icon svg{width:15px;height:15px}
.linked-group-copy{display:flex;align-items:baseline;gap:9px;min-width:0;flex:1}
.linked-group-copy strong{font-size:12px;font-weight:700;color:#193e35;white-space:nowrap}
.linked-group-copy small{font-size:10px;font-weight:400;color:#738b7d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.linked-group-count{font-size:10px;font-weight:650;color:#39735a;background:#edf6ef;border-radius:999px;padding:3px 7px}
.linked-group-count:empty{display:none}
.linked-group-chevron{font-size:18px;color:#55766a;line-height:1;transition:transform .18s}
.linked-ticket-group[open] .linked-group-chevron{transform:rotate(180deg)}
#workspace.linked-ticket-page .linked-ticket-group>section,#workspace.linked-ticket-page .linked-ticket-group>.field{padding:16px 1px}
#workspace.linked-ticket-page .ticket-page-footer{margin-top:16px}
.linked-ticket-rail{display:grid;gap:12px;position:sticky;top:90px;min-width:0}
.linked-rail-panel{background:#fff;border:1px solid #dbe6df;border-radius:11px;padding:17px 17px 15px;box-shadow:0 8px 25px #173b320b}
.linked-rail-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:10px;border-bottom:1px solid #e5ece7}
.linked-rail-heading h2{font-size:13px;margin:0;color:#183e36}
.linked-rail-heading span{font-size:10px;color:#698579}
.linked-rail-facts{margin:10px 0 0;display:grid;gap:0}
.linked-rail-facts div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #eef2ee}
.linked-rail-facts div:last-child{border-bottom:0;padding-bottom:0}
.linked-rail-facts dt{font-size:11px;color:#688276;flex:none}
.linked-rail-facts dd{font-size:11px;font-weight:650;color:#1c3d35;text-align:right;margin:0;overflow-wrap:anywhere}
.linked-rail-state{display:grid;gap:4px;margin-top:13px;padding:13px;border:1px solid #d2e8d8;border-radius:8px;background:#edf7ef}
.linked-rail-state small,.linked-rail-state span{font-size:10px;color:#5f806c}
.linked-rail-state strong{font-size:19px;letter-spacing:-.02em;color:#153d33}
.linked-rail-deadlines{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}
.linked-rail-deadlines>div{display:grid;gap:5px;padding:10px;border:1px solid #e0e9e2;border-radius:8px}
.linked-rail-deadlines small{font-size:10px;color:#6c8778}
.linked-rail-deadlines strong{font-size:11px;color:#244b3e}
.linked-rail-divider{height:1px;background:#e2eae3;margin:16px 0 11px}
.linked-rail-timeline ol{list-style:none;margin:15px 0 1px;padding:0}
.linked-rail-timeline li{display:grid;grid-template-columns:17px 1fr;gap:8px;min-height:51px;position:relative}
.linked-rail-timeline li:not(:last-child):before{content:'';position:absolute;left:5px;top:13px;bottom:-1px;width:1px;background:#c5dfce}
.linked-rail-timeline li>span{position:relative;z-index:1;margin-top:3px;width:11px;height:11px;border:2px solid #80c9a3;background:#fff;border-radius:50%}
.linked-rail-timeline li strong,.linked-rail-timeline li small{display:block;font-size:10px;line-height:1.45}
.linked-rail-timeline li strong{font-weight:650;color:#1d4539}
.linked-rail-timeline li small{color:#768e80;overflow-wrap:anywhere}
@media(max-width:1080px){
 #workspace.linked-ticket-page .ticket-identity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #workspace.linked-ticket-page .ticket-identity-grid .linked-description,#workspace.linked-ticket-page .ticket-identity-grid .linked-voice{grid-column:1/-1}
 #workspace.linked-ticket-page .ticket-work-details{grid-template-columns:1fr}
 #workspace.linked-ticket-page .ticket-work-details>.linked-description,#workspace.linked-ticket-page .ticket-work-details>.linked-voice{grid-column:1;grid-row:auto}
 #workspace.linked-kdb-page .kdb-library-shell{grid-template-columns:minmax(220px,32%) minmax(0,1fr)}
 #workspace.linked-ticket-page .register-grid{grid-template-columns:minmax(0,1fr) 245px}
 #workspace.linked-ticket-page .ticket-identity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 #workspace.linked-ticket-page .ticket-work-details{grid-template-columns:1fr}
 #workspace.linked-ticket-page .ticket-work-details>.linked-description,#workspace.linked-ticket-page .ticket-work-details>.linked-voice{grid-column:1;grid-row:auto}
}
@media(max-width:720px){
 .sidebar:not(.open){transform:translateX(calc(-100% - 12px))}
 #workspace.linked-ticket-page .ticket-form-card{padding:16px}
 #workspace.linked-ticket-page .ticket-identity-grid{display:grid;grid-template-columns:1fr;gap:12px}
 #workspace.linked-ticket-page .ticket-identity-grid>.field:not(.linked-description),#workspace.linked-ticket-page .ticket-identity-grid .linked-description,#workspace.linked-ticket-page .ticket-identity-grid .linked-voice{grid-column:1}
 #workspace.linked-ticket-page .linked-voice .voice-visual{justify-content:flex-start}
 #workspace.linked-ticket-page .ticket-workflow-footer{position:static}
 #workspace.linked-history-page .ticket-filter-panel{padding:0 11px 13px}
 #workspace.linked-history-page .ticket-quickview{position:static}
 #workspace.linked-kdb-page .kdb-overview-board{display:none}
 #workspace.linked-kdb-page .kdb-library-shell{display:block}
 .linked-kdb-source{align-items:flex-start;flex-direction:column}
 #workspace.linked-ticket-page .register-grid{display:flex;flex-direction:column}
 #workspace.linked-ticket-page .ticket-register-main,#workspace.linked-ticket-page .linked-ticket-rail{width:100%}
 #workspace.linked-ticket-page .ticket-context{display:block}
 #workspace.linked-ticket-page .ticket-queue-scope-slot,#workspace.linked-ticket-page .compact-ticket-nav{margin-top:8px}
 #workspace.linked-ticket-page .linked-ticket-rail{position:static;display:block}
 #workspace.linked-ticket-page .linked-ticket-rail .linked-rail-panel+ .linked-rail-panel{margin-top:10px}
 #workspace.linked-ticket-page #case-form{padding:17px}
 #workspace.linked-ticket-page .ticket-identity-grid{grid-template-columns:1fr}
 #workspace.linked-ticket-page .ticket-form-card{padding:0}
 #workspace.linked-ticket-page .ticket-context{display:grid;grid-template-columns:1fr;gap:9px;padding:12px}
 #workspace.linked-ticket-page .ticket-queue-scope-slot{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:6px;margin:0}
 #workspace.linked-ticket-page .ticket-queue-scope-slot>button{width:100%;min-width:0;min-height:35px;padding:6px 3px;font-size:10px}
 #workspace.linked-ticket-page .compact-ticket-nav{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:6px;padding:8px 0 0;border-left:0;border-top:1px solid #e3ebe5;margin:0}
 #workspace.linked-ticket-page .compact-ticket-nav>button{width:100%;min-height:33px}
 #workspace.linked-ticket-page .ticket-lifecycle{display:block;margin:0 0 12px;padding:11px 12px}
 #workspace.linked-ticket-page .ticket-lifecycle h2{margin-bottom:7px}
 #workspace.linked-ticket-page .ticket-lifecycle-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 #workspace.linked-ticket-page .ticket-lifecycle-options button{min-width:0;min-height:39px;padding:5px;justify-content:center}
 #workspace.linked-ticket-page .ticket-lifecycle-options button>div{min-width:0}
 #workspace.linked-ticket-page .ticket-lifecycle-options strong{font-size:10px;white-space:nowrap}
 #workspace.linked-ticket-page .ticket-lifecycle-options small{display:none}
 #workspace.linked-ticket-page .linked-group-copy{display:grid;gap:2px}
 #workspace.linked-ticket-page .linked-group-copy small{font-size:10px}
}
