.hd-queue-view{min-width:0}.hd-queue-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.hd-queue-metric{display:flex;height:auto;justify-content:flex-start;white-space:normal;min-width:0;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--card);text-align:left;cursor:pointer}.hd-queue-metric:hover{background:var(--muted)}.hd-queue-metric:focus-visible{outline:2px solid var(--ring);outline-offset:3px}.hd-queue-metric>strong{font-size:1.5rem;line-height:1.1;font-weight:500;font-variant-numeric:tabular-nums}.hd-queue-metric>span{min-width:0;font-size:.75rem;line-height:1.5}.hd-queue-metric small{display:block;margin-top:2px;font-size:.6875rem}.hd-queue-metric.risk>strong{color:var(--destructive)}.hd-queue-metric.ai_review>strong,.hd-queue-metric.waiting>strong{color:var(--chart-4)}.hd-queue-metric.closed>strong{color:var(--chart-3)}.hd-queue-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 20px}.hd-queue-search{position:relative;flex:1 1 280px;min-width:200px}.hd-queue-search>svg{position:absolute;top:50%;left:9px;transform:translateY(-50%);color:var(--muted-foreground)}.hd-queue-search [data-slot=input]{padding-left:30px}.hd-queue-filters>[data-slot=select-field]{flex:0 1 156px}.hd-queue-views{display:flex;flex-wrap:wrap;gap:12px;margin-inline:-16px;padding:8px 16px;border-bottom:1px solid var(--border)}.hd-queue-views [data-slot=button]{height:28px;min-height:28px;padding:0 12px;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--muted-foreground)}.hd-queue-views [data-slot=button][aria-pressed=true]{border-bottom-color:var(--chart-2);color:var(--foreground)}.hd-queue-views span{color:var(--muted-foreground);font-size:.6875rem}.hd-queue-data{min-width:920px}.hd-queue-data th:first-child{width:34%}.hd-queue-data th:nth-child(2){width:18%}.hd-queue-data th:nth-child(3){width:13%}.hd-queue-data th:nth-child(4){width:16%}.hd-queue-data th:nth-child(5){width:10%}.hd-queue-data th:last-child{width:9%}.hd-queue-state{font-size:.75rem}.hd-queue-state.new{color:var(--muted-foreground)}.hd-queue-state.resolved{color:var(--chart-4)}.hd-queue-sla{font-variant-numeric:tabular-nums;white-space:nowrap}.hd-queue-sla.danger{color:var(--destructive)}.hd-queue-sla.warning{color:oklch(.51 .12 62)}.hd-queue-sla.muted{color:var(--muted-foreground)}.hd-app .hd-reference-table .hd-queue-ai{color:var(--chart-4);font-size:.75rem}.hd-queue-pagination{border:0;padding:20px 0}.hd-queue-page-progress{width:164px;max-width:100%;height:3px;margin-top:8px;background:var(--muted)}.hd-queue-page-progress>span{display:block;height:100%;background:var(--chart-2)}@media(max-width:1199px){.hd-queue-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.hd-queue-filters>[data-slot=select-field]{flex:1 1 160px}}@media(max-width:767px){.hd-queue-metric{padding:12px;gap:8px}.hd-queue-metric>strong{font-size:1.25rem}.hd-queue-views{gap:0;margin-inline:-12px}.hd-queue-views,.hd-queue-views [data-slot=button]{padding-inline:8px}.hd-queue-filters>[data-slot=select-field]{flex-basis:calc(50% - 4px)}.hd-queue-search{min-width:0;flex-basis:100%}}.hd-queue-data.hd-object-data{min-width:760px}.hd-queue-data.hd-object-data th{width:auto}.dashboard-overview{--dashboard-warning:oklch(.51 .12 62);--dashboard-chart:var(--chart-2);--dashboard-chart-light:var(--chart-1);min-width:0;background:var(--background)}.dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:16px}.dashboard-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.dashboard-overview a{color:color-mix(in oklch,var(--primary) 40%,var(--foreground));font-size:.75rem;text-decoration:none}.dashboard-overview a:not([data-slot=button]):hover{text-decoration:underline}.dashboard-overview .dashboard-actions a{color:var(--foreground)}.dashboard-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:hidden;margin:0 0 28px;border:1px solid var(--border);border-radius:var(--radius-lg)}.dashboard-summary>div{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0;padding:16px;border-right:1px solid var(--border)}.dashboard-summary>div:last-child{border:0}.hd-app .dashboard-summary h2{margin:0;color:var(--muted-foreground);font-size:.75rem;font-weight:400}.dashboard-summary-value{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;margin:0;line-height:1.2!important}.dashboard-summary-value>strong{font-size:1.75rem;font-weight:500;letter-spacing:-.03em}.dashboard-summary-value>span{color:var(--muted-foreground);font-size:.6875rem}.dashboard-overview .dashboard-danger{color:var(--destructive)}.dashboard-overview .dashboard-warning{color:var(--dashboard-warning)}.dashboard-summary>div>.dashboard-progress,.dashboard-summary>div>a{margin-top:auto}.dashboard-progress{width:100%;height:4px;overflow:hidden;border-radius:999px;background:var(--muted)}.dashboard-progress>span{display:block;height:100%;border-radius:inherit;background:var(--dashboard-chart)}.dashboard-section{min-width:0;margin:0 0 28px}.dashboard-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.hd-app .dashboard-section-heading h2,.hd-app .dashboard-section-heading h3{margin:0;font-size:1rem;line-height:1.5;font-weight:600}.dashboard-section-heading>span{color:var(--muted-foreground);font-size:.6875rem}.dashboard-section-heading>a{flex-shrink:0}.dashboard-decisions-table{min-width:820px}.dashboard-decisions-table th:first-child{width:36%}.dashboard-decisions-table th:nth-child(2){width:25%}.dashboard-decisions-table th:nth-child(3){width:14%}.dashboard-decisions-table th:nth-child(4){width:13%}.dashboard-decisions-table th:last-child{width:12%}.dashboard-decisions-table td:last-child a{white-space:nowrap}.dashboard-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;min-width:0}.dashboard-columns>.dashboard-section{display:flex;flex-direction:column}.dashboard-columns>.dashboard-section>.dashboard-table-panel{flex:1}.dashboard-services-table{min-width:440px}.dashboard-services-table th:first-child{width:40%}.dashboard-services-table th:nth-child(2){width:36%}.hd-app .dashboard-services-table [data-slot=table-cell]{padding-block:20px}.dashboard-row-link{display:block;margin-top:4px}.dashboard-teams-table{min-width:480px}.dashboard-teams-table th:first-child{width:38%}.hd-app .dashboard-teams-table [data-slot=table-cell]{padding-block:12px}.dashboard-trend-panel{min-width:0;padding:16px;border:1px solid var(--border);border-radius:var(--radius-lg)}.hd-app .dashboard-trend-panel .dashboard-section-heading h3{font-size:.875rem;font-weight:500}.dashboard-service-total{display:flex;align-items:baseline;gap:12px;margin:20px 0}.dashboard-service-total>strong{font-size:1.375rem;font-weight:500}.dashboard-service-total>strong>span{padding-inline:8px}.dashboard-service-total>small{font-size:.6875rem}.dashboard-health-bar{display:flex;width:100%;height:8px;overflow:hidden;border-radius:999px}.dashboard-health-normal{background:var(--dashboard-chart)}.dashboard-health-degraded{background:color-mix(in oklch,var(--destructive) 48%,var(--background))}.dashboard-health-watched{background:var(--dashboard-chart-light)}.dashboard-health-bar>.dashboard-health-normal{flex:22}.dashboard-health-bar>.dashboard-health-degraded,.dashboard-health-bar>.dashboard-health-watched{flex:1}.dashboard-legend{display:flex;flex-wrap:wrap;gap:8px 20px;margin:16px 0 0;padding:0;list-style:none;color:var(--muted-foreground);font-size:.6875rem}.dashboard-legend li{display:flex;align-items:center;gap:8px}.dashboard-legend i{width:7px;height:7px;flex-shrink:0;border-radius:50%}.dashboard-flow-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;margin:16px 0 0}.dashboard-flow-day{display:flex;flex-direction:column;align-items:center;gap:4px}.dashboard-flow-day>div{display:flex;align-items:flex-end;gap:4px;height:44px}.dashboard-flow-day span{width:8px;border-radius:3px 3px 0 0;background:var(--dashboard-chart)}.dashboard-flow-day span+span{background:var(--dashboard-chart-light)}.hd-app .dashboard-flow-day>small{font-size:.625rem}.dashboard-flow-legend i{border-radius:2px;background:var(--dashboard-chart)}.dashboard-flow-legend li:nth-child(2)>i{background:var(--dashboard-chart-light)}.dashboard-flow-legend li:last-child{color:var(--foreground)}.dashboard-chart-data{margin-top:12px;color:var(--muted-foreground);font-size:.6875rem}.dashboard-chart-data [data-disclosure-trigger]{width:fit-content}.dashboard-chart-data dl{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:12px}.dashboard-chart-data dt{font-weight:500}@media(max-width:1199px){.dashboard-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-summary>div{border-bottom:1px solid var(--border)}.dashboard-summary>div:nth-child(3){border-right:0}.dashboard-summary>div:nth-child(4),.dashboard-summary>div:nth-child(5){border-bottom:0}.dashboard-columns{grid-template-columns:minmax(0,1fr);gap:0}.dashboard-trend-panels{gap:16px}.dashboard-table-panel [data-slot=table-container]{overflow-x:auto}}@media(max-width:767px){.dashboard-heading{align-items:flex-start;flex-direction:column;gap:16px}.dashboard-actions{width:100%;justify-content:flex-start}.dashboard-actions [data-slot=button]{flex:1}.dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-summary>div{padding:16px 12px;gap:12px}.dashboard-summary>div:nth-child(3){border-right:1px solid var(--border)}.dashboard-summary>div:nth-child(2n){border-right:0}.dashboard-summary>div:nth-child(4){border-bottom:1px solid var(--border)}.dashboard-summary>div:last-child{grid-column:1/-1}.dashboard-summary-value>strong{font-size:1.5rem}.dashboard-section-heading{align-items:baseline;flex-wrap:wrap;gap:4px 12px}.dashboard-section-heading>span{width:100%}.dashboard-table-panel{padding-inline:12px}.dashboard-trend-panel{padding:16px 12px}.dashboard-flow-bars{gap:8px}.dashboard-legend{gap:8px 12px}}.hd-ticket-view{min-width:0}.hd-ticket-view .hd-page-head{align-items:flex-start}.hd-ticket-actions,.hd-ticket-header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.hd-ticket-header-actions{flex-shrink:0;max-width:50%}.hd-ticket-actions:empty{display:none}.hd-ticket-view .hd-steps li.active{color:var(--foreground);font-weight:500}.hd-ticket-view .hd-steps li.active>span{background:var(--primary);border-color:var(--primary)}.hd-ticket-view .hd-steps li.done>span{background:var(--chart-3);border-color:var(--chart-3)}.hd-ticket-panels{min-width:0;align-items:stretch;gap:0}.hd-ticket-pane{min-width:0}.hd-ticket-column{display:flex;min-width:0;flex-direction:column;gap:16px;padding:1px}.hd-ticket-column>*{min-width:0;order:50}.hd-ticket-view .hd-card{margin:0;padding:16px}.hd-ticket-view .hd-two-col{grid-template-columns:minmax(0,1fr);gap:0}.hd-ticket-view h2{font-size:.875rem;font-weight:500;margin:0}.hd-ticket-view h3{font-size:.75rem;font-weight:500;margin:12px 0 8px}.hd-ticket-view [data-slot=card-content]>p:first-child{margin-top:0}.hd-ticket-view [data-slot=card-content]>p:last-child{margin-bottom:0}.hd-ticket-view [data-slot=card-content] p{overflow-wrap:anywhere}.hd-ticket-view .hd-ticket-sender{order:-1}.hd-ticket-description{gap:0;padding:0}.hd-ticket-agent>[data-disclosure-trigger],.hd-ticket-context-disclosure>[data-disclosure-trigger],.hd-ticket-conversation-disclosure>[data-disclosure-trigger],.hd-ticket-description [data-disclosure-trigger]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px}.hd-ticket-description [data-slot=card-content]{padding-bottom:16px}.hd-ticket-description p{margin:0}.hd-ticket-analysis,.hd-ticket-facts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:16px 12px;margin:0;font-size:.75rem}.hd-ticket-analysis dt,.hd-ticket-facts dt{color:var(--muted-foreground)}.hd-ticket-analysis dd,.hd-ticket-facts dd{min-width:0;margin:0;overflow-wrap:anywhere}.hd-ticket-analysis{gap:0}.hd-ticket-analysis dd,.hd-ticket-analysis dt{padding-block:16px;border-bottom:1px solid var(--border)}.hd-ticket-analysis dd:first-of-type,.hd-ticket-analysis dt:first-of-type{padding-top:0}.hd-ticket-analysis dd{font-weight:500}.hd-ticket-proposals{display:grid;min-width:0;gap:16px}.hd-ticket-proposals [data-slot=card-content]>[data-slot=button]{margin-top:8px}.hd-ticket-agent>[data-disclosure-trigger],.hd-ticket-context-disclosure>[data-disclosure-trigger],.hd-ticket-conversation-disclosure>[data-disclosure-trigger]{border:1px solid var(--border);border-radius:var(--radius-lg)}.hd-ticket-agent[data-state=open]>[data-disclosure-trigger],.hd-ticket-context-disclosure[data-state=open]>[data-disclosure-trigger],.hd-ticket-conversation-disclosure[data-state=open]>[data-disclosure-trigger]{margin-bottom:12px}.hd-ticket-agent-start{min-height:520px;padding:0;gap:0}.hd-ticket-agent-start>div{display:flex;flex:1;flex-direction:column;align-items:flex-start;justify-content:center;gap:16px;padding:24px}.hd-ticket-agent-start p{max-width:44ch;margin:0;color:var(--muted-foreground)}.hd-ticket-view .hd-correspondence{display:flex;flex-direction:column;min-height:520px}.hd-ticket-view .hd-thread{flex:1;min-height:260px;max-height:60dvh;overflow:auto;overscroll-behavior:contain}.hd-ticket-view[data-role=requester] .hd-thread-meta{color:color-mix(in oklch,var(--muted-foreground) 95%,var(--foreground))}.hd-ticket-view[data-role=requester] .hd-thread-author{color:var(--chart-4)}.hd-ticket-view .hd-section-head{padding:16px}.hd-ticket-view .hd-section-head strong{font-size:.875rem;font-weight:500}.hd-ticket-view .hd-chat{min-height:520px}.hd-ticket-view .hd-check{font-size:.75rem}.hd-ticket-view .hd-message-form{margin-top:auto}.hd-ticket-view .hd-actions{gap:8px;margin-top:12px}.hd-ticket-handle{margin-inline:10px;align-self:stretch}.hd-ticket-requester{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.hd-ticket-answer{padding:0;gap:0}.hd-ticket-answer>[data-slot=card-header]{padding-block:16px;border-bottom:1px solid var(--border)}.hd-ticket-answer-address{display:grid;grid-template-columns:72px minmax(0,1fr);margin:0;font-size:.75rem}.hd-ticket-answer-address dd,.hd-ticket-answer-address dt{margin:0;padding:16px;border-bottom:1px solid var(--border);overflow-wrap:anywhere}.hd-ticket-answer-address dt{color:var(--muted-foreground);text-transform:uppercase;font-size:.625rem}.hd-ticket-answer .hd-message-form{border-top:0}.hd-ticket-answer>.hd-message-form>textarea{min-height:240px}.hd-ticket-answer>[data-slot=card-content]{padding-block:20px}.hd-ticket-answer-text{min-height:220px}.hd-ticket-resolution-form{padding:0 16px 16px}.hd-ticket-review{padding:16px;border-top:1px solid var(--border);background:var(--muted)}.hd-ticket-view .hd-ticket-review h3{margin-top:0}.hd-ticket-checklist{display:grid;gap:16px;margin:0;padding:0;list-style:none;font-size:.75rem}.hd-ticket-checklist li{display:flex;align-items:flex-start;gap:8px}.hd-ticket-checklist svg{flex-shrink:0;width:14px;height:14px;color:var(--muted-foreground)}.hd-ticket-checklist svg[aria-label=Записано]{color:var(--chart-4)}.hd-ticket-draft-notice{padding:12px;margin-bottom:16px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--muted);font-size:.75rem}.hd-ticket-draft-notice p{margin:0}.hd-ticket-draft-notice p+p{margin-top:8px}.hd-ticket-timeline{display:grid;margin:0;padding:0;list-style:none}.hd-ticket-timeline li{display:grid;grid-template-columns:76px minmax(60px,.35fr) minmax(0,1fr);gap:12px;padding:16px 0;border-bottom:1px solid var(--border);font-size:.75rem}.hd-ticket-timeline li:first-child{padding-top:0}.hd-ticket-timeline li:last-child{padding-bottom:0;border:0}.hd-ticket-timeline time{color:var(--muted-foreground);font-size:.6875rem}.hd-ticket-timeline li>span{overflow-wrap:anywhere}.hd-ticket-timeline small{display:block;margin-top:4px}.hd-ticket-timeline p{margin:0}.hd-ticket-records{list-style:none;margin:0;padding:0;font-size:.75rem}.hd-ticket-records li{display:grid;gap:4px;padding:12px 0;border-bottom:1px solid var(--border)}.hd-ticket-records li:first-child{padding-top:0}.hd-ticket-records li:last-child{padding-bottom:0;border:0}.hd-ticket-callout{background:color-mix(in oklch,var(--muted) 45%,var(--card))}.hd-ticket-callout p,.hd-ticket-next{margin:0;font-size:.75rem}.hd-ticket-next dt{font-weight:500}.hd-ticket-next dd{margin:4px 0 16px;padding-bottom:16px;border-bottom:1px solid var(--border);color:var(--muted-foreground)}.hd-ticket-next dd:last-child{margin-bottom:0;padding-bottom:0;border:0}.hd-ticket-extra{border:1px solid var(--border);border-radius:var(--radius-lg);padding:16px;font-size:.75rem}.hd-ticket-extra[data-state=open]>[data-disclosure-trigger]{margin-bottom:12px}.hd-ticket-extra form p{margin-top:0}.hd-ticket-delivery-facts{margin-top:16px;color:var(--muted-foreground);font-size:.75rem}.hd-ticket-delivery-facts p{margin-block:8px}.hd-ticket-delivery-facts p>span{margin-right:8px}.hd-ticket-confirmation{margin-top:20px;padding-top:16px;border-top:1px solid var(--border);font-size:.75rem}.hd-ticket-view .hd-ticket-context-disclosure{order:30}.hd-ticket-view .hd-ticket-description{order:40}.hd-ticket-view .hd-ticket-assignment{order:35}.hd-ticket-view .hd-ticket-proposals{order:20}.hd-ticket-view .hd-ticket-agent{order:45}.hd-ticket-view .hd-ticket-recovery{order:40}.hd-ticket-view .hd-ticket-conversation-disclosure{order:25}.hd-ticket-view[data-phase=new] .hd-ticket-description{order:0}.hd-ticket-view[data-phase=new] .hd-ticket-triage{order:1}.hd-ticket-view[data-phase=new] .hd-ticket-proposals{order:2}.hd-ticket-view[data-phase=new] .hd-ticket-context-disclosure{order:0}.hd-ticket-view[data-phase=new] .hd-ticket-assignment{order:1}.hd-ticket-view[data-phase=new] .hd-ticket-agent-facts{order:2}.hd-ticket-view[data-phase=new] .hd-ticket-journal{order:3}.hd-ticket-view[data-phase=in_progress] .hd-ticket-agent,.hd-ticket-view[data-phase=in_progress] .hd-ticket-conversation-disclosure{order:0}.hd-ticket-view[data-phase=in_progress] .hd-ticket-agent>[data-disclosure-trigger],.hd-ticket-view[data-phase=in_progress] .hd-ticket-context-disclosure>[data-disclosure-trigger],.hd-ticket-view[data-phase=in_progress] .hd-ticket-conversation-disclosure>[data-disclosure-trigger],.hd-ticket-view[data-phase=new] .hd-ticket-context-disclosure>[data-disclosure-trigger],.hd-ticket-view[data-role=requester] .hd-ticket-conversation-disclosure>[data-disclosure-trigger]{display:none}.hd-ticket-view[data-phase=reply] .hd-ticket-answer,.hd-ticket-view[data-phase=reply] .hd-ticket-answer-basis{order:0}.hd-ticket-view[data-phase=reply] .hd-ticket-agent-facts{order:1}.hd-ticket-view[data-phase=waiting] .hd-ticket-sent-answer,.hd-ticket-view[data-phase=waiting] .hd-ticket-waiting{order:0}.hd-ticket-view[data-phase=waiting] .hd-ticket-callout{order:1}.hd-ticket-view[data-phase=waiting] .hd-ticket-journal{order:2}.hd-ticket-view[data-phase=waiting] .hd-ticket-next{order:1}.hd-ticket-view[data-phase=waiting] .hd-ticket-right>[data-slot=card]:has(.hd-ticket-next){order:1}.hd-ticket-view[data-phase=closed] .hd-ticket-closed-solution,.hd-ticket-view[data-phase=closed] .hd-ticket-closure-facts{order:0}.hd-ticket-view[data-phase=closed] .hd-ticket-journal,.hd-ticket-view[data-phase=closed] .hd-ticket-right>.hd-ticket-callout{order:1}.hd-ticket-view[data-phase=closed] .hd-ticket-agent-facts{order:2}@media(max-width:1099px){.hd-ticket-panels{display:grid!important;grid-template-columns:minmax(0,1fr);gap:20px}.hd-ticket-pane{width:100%;overflow:visible!important}.hd-ticket-handle{display:none}.hd-ticket-requester{grid-template-columns:minmax(0,1fr)}}@media(max-width:767px){.hd-ticket-header-actions{max-width:100%}.hd-ticket-actions,.hd-ticket-header-actions{justify-content:flex-start}.hd-ticket-facts{grid-template-columns:minmax(0,1fr);gap:4px}.hd-ticket-facts dd{margin-bottom:12px}.hd-ticket-agent-start{min-height:380px}.hd-ticket-agent-start>div{padding:16px}.hd-ticket-view .hd-correspondence{min-height:380px}.hd-ticket-timeline li{grid-template-columns:64px minmax(0,1fr);gap:8px}.hd-ticket-timeline li>p{grid-column:2}.hd-ticket-answer-address{grid-template-columns:56px minmax(0,1fr)}.hd-ticket-answer-address dd,.hd-ticket-answer-address dt{padding:12px}}