/* Ticket form density and persistent actions. Kept separate from the shared UI. */
#workspace.linked-ticket-page .ticket-overview-panel{margin:0 0 16px;padding:18px 20px 14px;border:1px solid #d9e4dc;border-radius:12px;background:#fff;box-shadow:0 9px 26px #173b320b}
#workspace.linked-ticket-page .ticket-overview-panel .page-heading{margin:0 0 14px}
#workspace.linked-ticket-page .ticket-overview-panel .linked-ticket-role{margin-top:9px}
#workspace.linked-ticket-page .ticket-overview-panel .ticket-context{margin:0;padding:12px 0;border:0;border-top:1px solid #e2eae4;border-radius:0;background:transparent}
#workspace.linked-ticket-page .ticket-overview-panel .sla-ticket-summary{margin:0;padding:11px 0;border:0;border-top:1px solid #e2eae4;border-radius:0;background:transparent}
#workspace.linked-ticket-page .ticket-overview-panel .ticket-lifecycle{margin:0;padding:12px 0 0;border:0;border-top:1px solid #e2eae4;border-radius:0;background:transparent}
#workspace.linked-ticket-page .ticket-overview-panel .ticket-lifecycle>h2{display:none}
#workspace.linked-ticket-page .page-heading .linked-ticket-summary:not([hidden]){display:flex;align-items:baseline;gap:9px;max-width:70ch;margin:7px 0 0;font-size:12px;line-height:1.5;color:#405e52}
#workspace.linked-ticket-page .linked-ticket-summary-label{flex:none;color:#6b8678;font-size:11px}
#workspace.linked-ticket-page .linked-ticket-summary-text{min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
#workspace.linked-ticket-page .ticket-work-details{align-items:stretch}
#workspace.linked-ticket-page .ticket-work-details>.linked-description{display:flex;flex-direction:column;min-width:0}
#workspace.linked-ticket-page .linked-description textarea{flex:1;min-height:190px;resize:vertical}
#workspace.linked-ticket-page .ticket-work-details>.linked-voice{display:block;align-self:stretch;padding:12px 14px}
#workspace.linked-ticket-page .linked-voice .voice-head h2{margin:0;font-size:13px;line-height:1.4}
#workspace.linked-ticket-page .linked-voice .voice-head p{margin:2px 0 0;font-size:10px;line-height:1.4}
#workspace.linked-ticket-page .linked-voice .voice-visual{padding:7px 0;gap:9px;min-height:35px}
#workspace.linked-ticket-page .linked-voice .mic{width:32px;height:32px;font-size:16px;box-shadow:none}
#workspace.linked-ticket-page .linked-voice .wave{height:20px;gap:2px}
#workspace.linked-ticket-page .linked-voice .wave i{width:2px}
#workspace.linked-ticket-page .linked-voice .voice-status{font-size:11px;line-height:1.35}
#workspace.linked-ticket-page .linked-voice .voice-controls{gap:6px}
#workspace.linked-ticket-page .linked-voice .voice-actions{gap:6px}
#workspace.linked-ticket-page .linked-voice .voice-actions button,
#workspace.linked-ticket-page .linked-voice .voice-controls>.supplement{min-height:32px;padding:6px 9px;font-size:11px}
#workspace.linked-ticket-page .linked-voice #pause-btn:disabled,
#workspace.linked-ticket-page .linked-voice .voice-controls>.supplement:disabled{display:none}
#workspace.linked-ticket-page .linked-voice .hint{display:none}
#workspace.linked-ticket-page .linked-voice #record-preview:not(:empty){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 8px;padding-top:7px;border-top:1px solid #d5e7db}
#workspace.linked-ticket-page .linked-voice #record-preview audio{grid-column:1/-1;width:100%;height:32px;margin:0}
#workspace.linked-ticket-page .linked-voice #record-preview .voice-retry-message{margin:0;font-size:10px;line-height:1.4}
#workspace.linked-ticket-page .linked-voice #record-preview>[data-action="voice-rerecord"]{width:auto;min-height:30px;margin:0;padding:4px 8px;white-space:nowrap;font-size:10px}
#workspace.linked-ticket-page .ticket-overview-identity{padding:17px 19px 19px}
#workspace.linked-ticket-page .ticket-overview-identity .ticket-identity-grid{column-gap:12px;row-gap:15px}
#workspace.linked-ticket-page .ticket-overview-identity .ticket-identity-grid>.field{min-width:0}
#workspace.linked-ticket-page .ticket-overview-identity .ticket-identity-grid :is(input,select){max-width:100%}
#workspace.linked-ticket-page .ticket-overview-identity .ticket-identity-grid>.field:has(#f-sla-level){grid-column:span 2}
#workspace.linked-ticket-page .ticket-overview-identity .ticket-field-help{
  display:block;margin:7px 0 0;color:#58736a;font-size:11px;font-weight:400;line-height:1.55;
}
#workspace.linked-ticket-page .ticket-sla-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;border:0!important;opacity:0!important;clip-path:inset(50%);pointer-events:none}
#workspace.linked-ticket-page .ticket-sla-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;width:100%}
#workspace.linked-ticket-page .ticket-sla-choice{--sla:#586f8c;--sla-bg:#edf2f8;display:flex;min-width:0;min-height:54px;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:5px 2px;border:1px solid color-mix(in srgb,var(--sla) 35%,white);border-radius:7px;background:var(--sla-bg);color:var(--sla);font:inherit;line-height:1.2;cursor:pointer;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease}
#workspace.linked-ticket-page .ticket-sla-choice[data-level="1"]{--sla:#a63d35;--sla-bg:#fff2ef}
#workspace.linked-ticket-page .ticket-sla-choice[data-level="2"]{--sla:#9a5b0c;--sla-bg:#fff5e3}
#workspace.linked-ticket-page .ticket-sla-choice[data-level="3"]{--sla:#315f90;--sla-bg:#edf4fb}
#workspace.linked-ticket-page .ticket-sla-choice[data-level="4"]{--sla:#276e5b;--sla-bg:#eaf6f0}
#workspace.linked-ticket-page .ticket-sla-choice strong{font-size:12px;font-weight:700;white-space:nowrap}
#workspace.linked-ticket-page .ticket-sla-choice span{font-size:10px;font-weight:500;white-space:nowrap}
#workspace.linked-ticket-page .ticket-sla-choice:hover:not(:disabled){background:color-mix(in srgb,var(--sla) 12%,white);border-color:var(--sla)}
#workspace.linked-ticket-page .ticket-sla-choice[aria-pressed="true"]{border:2px solid var(--sla);background:color-mix(in srgb,var(--sla) 15%,white);box-shadow:0 0 0 2px white inset}
#workspace.linked-ticket-page .ticket-sla-choice:focus-visible{outline:2px solid #163f3d;outline-offset:2px}
#workspace.linked-ticket-page .ticket-sla-choice:disabled{cursor:default;opacity:.68}
#workspace.linked-ticket-page .ticket-sla-choice[aria-pressed="true"]:disabled{opacity:1}
#workspace.linked-ticket-page .linked-ticket-group>section,
#workspace.linked-ticket-page .linked-ticket-group>.field{min-width:0;padding:14px 0}
#workspace.linked-ticket-page .linked-time-people .ticket-time-section{padding:16px 18px 19px}
#workspace.linked-ticket-page .linked-time-people .ticket-time-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr));gap:12px 18px;
}
#workspace.linked-ticket-page .linked-time-people .ticket-time-grid .field{
  display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:5px;min-width:0;
}
#workspace.linked-ticket-page .linked-time-people .ticket-time-grid .field>label{
  margin:0;font-size:11px;line-height:1.45;white-space:normal;
}
#workspace.linked-ticket-page .linked-time-people .ticket-time-grid .occurred-composite{
  width:100%;max-width:365px;height:38px;grid-template-columns:minmax(120px,1.3fr) 1px minmax(95px,.8fr);
}
#workspace.linked-ticket-page .linked-time-people .ticket-time-grid .occurred-composite>input{height:36px;min-height:36px;font-size:11px}
#workspace.linked-ticket-page .linked-time-people .ticket-personnel-panel{
  display:block;margin:0;padding:14px 0;border:0;border-top:1px solid #e5ede7;border-radius:0;background:transparent;
}
#workspace.linked-ticket-page .linked-time-people .ticket-personnel-panel>header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 10px;padding:0}
#workspace.linked-ticket-page .linked-time-people .ticket-personnel-panel>header p{max-width:380px;text-align:right}
#workspace.linked-ticket-page .linked-time-people .ticket-personnel-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:9px;
}
#workspace.linked-ticket-page .linked-investigation .ticket-classification{
  margin:0;padding:13px 0 15px;border:0;border-radius:0;background:transparent;
}
#workspace.linked-ticket-page .linked-investigation .ticket-classification>.form-grid{gap:12px}
#workspace.linked-ticket-page .linked-investigation :is(select,input){min-height:40px}
#workspace.linked-ticket-page .linked-investigation textarea{min-height:92px}
#workspace.linked-ticket-page .linked-comms .ticket-mail-card{padding:13px 0;border:0;box-shadow:none;background:transparent}
#workspace.linked-ticket-page .linked-comms .ticket-mail-card button{width:auto;min-height:36px;padding:7px 12px}
#workspace.linked-ticket-page .ticket-communication-actions{display:none}
#workspace.linked-ticket-page.ticket-dock-workflow-ready .ticket-workflow-footer .ticket-footer-actions>.actions,
#workspace.linked-ticket-page.ticket-dock-workflow-ready .ticket-voice-quick-actions{display:none}
#workspace.linked-ticket-page{padding-bottom:112px}
.ticket-floating-actions{
  position:fixed;right:clamp(16px,3vw,46px);bottom:16px;z-index:19;
  display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:7px;max-width:min(960px,calc(100vw - 32px));
  padding:8px;border:1px solid #bfd7cb;border-radius:13px;
  background:#fffefbf5;box-shadow:0 12px 38px #102e2840;backdrop-filter:blur(14px);
}
.ticket-floating-actions button{min-height:42px;padding:8px 13px;font-size:12px;white-space:nowrap}
.ticket-floating-actions .ticket-dock-workflow-action:first-of-type{margin-left:4px}
.ticket-floating-actions button:is([data-action="voice-main"],[data-action="voice-supplement"]){background:#174b49;border-color:#174b49;color:#fff}
.ticket-floating-actions button:is([data-action="voice-main"],[data-action="voice-supplement"]):hover:not(:disabled){background:#23655c}
body.sheet-open .ticket-floating-actions{visibility:hidden;pointer-events:none}
@media(max-width:720px){
  #workspace.linked-ticket-page .ticket-overview-panel{padding:15px 14px 13px}
  #workspace.linked-ticket-page .ticket-overview-panel .ticket-context{padding:11px 0}
  #workspace.linked-ticket-page .ticket-overview-panel .ticket-lifecycle{padding:11px 0 0}
  #workspace.linked-ticket-page .linked-voice .voice-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
  #workspace.linked-ticket-page .linked-voice .voice-primary-toggle{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
  #workspace.linked-ticket-page .linked-voice #pause-btn:not(:disabled){min-width:58px}
  #workspace.linked-ticket-page .linked-voice .voice-controls>.supplement{width:100%;font-size:11px;white-space:nowrap}
  #workspace.linked-ticket-page .linked-voice .voice-controls>.supplement::after{content:none}
  #workspace.linked-ticket-page .ticket-overview-identity{padding:16px 15px 18px}
  #workspace.linked-ticket-page .ticket-overview-identity .ticket-identity-grid{row-gap:13px}
  #workspace.linked-ticket-page .ticket-overview-identity .ticket-identity-grid>.field:has(#f-sla-level){grid-column:1}
  #workspace.linked-ticket-page{padding-bottom:calc(164px + env(safe-area-inset-bottom))}
  #workspace.linked-ticket-page .linked-time-people .ticket-time-section{padding:16px 15px 19px}
  #workspace.linked-ticket-page .linked-time-people .ticket-time-grid .occurred-composite{height:44px}
  #workspace.linked-ticket-page .linked-time-people .ticket-time-grid .occurred-composite>input{height:42px;min-height:42px}
  #workspace.linked-ticket-page .linked-time-people .ticket-personnel-panel .personnel-field :is(select,.personnel-readonly){min-height:44px;height:44px}
  #workspace.linked-ticket-page .linked-investigation :is(select,input){min-height:44px}
  #workspace.linked-ticket-page .linked-time-people .ticket-personnel-panel>header{display:block}
  #workspace.linked-ticket-page .linked-time-people .ticket-personnel-panel>header p{max-width:none;margin-top:4px;text-align:left}
  #workspace.linked-ticket-page .linked-investigation .ticket-classification>.form-grid{grid-template-columns:1fr}
  .ticket-floating-actions{left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));display:flex;justify-content:center;gap:5px;padding:6px;border-radius:11px}
  .ticket-floating-actions button{min-width:0;min-height:44px;padding:7px 3px;font-size:11px;white-space:normal;line-height:1.2}
  .ticket-floating-actions button{flex:1 1 calc(25% - 5px)}
  .ticket-floating-actions .ticket-dock-workflow-action:first-of-type{margin-left:0}
}
@media print{.ticket-floating-actions{display:none!important}#workspace.linked-ticket-page{padding-bottom:0}}
