/* Tickets share the current CRM surfaces, radii and typography. */
.tkt-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0}.tkt-toolbar .btn,.tkt-badge{display:inline-flex;align-items:center;gap:7px}.tkt-toolbar input,.tkt-toolbar select,.tkt-body input:not([type=checkbox]):not([type=file]),.tkt-body select,.tkt-body textarea{font:inherit;color:var(--ink);background:var(--panel2);border:1px solid var(--line);border-radius:var(--r-sm);padding:10px 12px;min-width:0}.tkt-toolbar input{max-width:260px}.tkt-toolbar label{display:flex;align-items:center;gap:6px}.tkt-urgent{--tkt-color:var(--ink-red)}.tkt-normal{--tkt-color:var(--ink-orange)}.tkt-low{--tkt-color:var(--ink-blue)}.tkt-badge{color:var(--tkt-color);font-size:12px;font-weight:600;white-space:nowrap}.tkt-card{font:inherit;text-align:left;color:var(--ink);width:100%;border-left:4px solid var(--tkt-color);position:relative;overflow:hidden}.tkt-card:after{content:'';position:absolute;right:16px;top:0;bottom:0;border-left:1px dashed var(--line);pointer-events:none}.tkt-card-top{display:flex;justify-content:space-between;gap:10px;padding-right:16px;margin-bottom:12px}.tkt-card-top small{color:var(--muted)}.tkt-row td:first-child{color:var(--tkt-color)}.tkt-link{font:inherit;color:var(--ink);background:none;border:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-align:left}.tkt-overlay{z-index:16000;align-items:center;justify-content:center;padding:24px}.tkt-window{width:min(1100px,100%);max-height:92dvh;display:flex;flex-direction:column;overflow:hidden;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:var(--r-lg,20px)}.tkt-window .modal-bar{display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.tkt-window h2{font-size:20px;display:flex;align-items:center;gap:10px;margin:0}.tkt-body{overflow:auto;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr);gap:28px;padding:24px}.tkt-main,.tkt-side{min-width:0;display:flex;flex-direction:column;gap:20px}.tkt-side{border-left:1px solid var(--line);padding-left:24px}.tkt-body label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:500}.tkt-body h3{font-size:15px;margin:0 0 12px}.tkt-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tkt-assignees{border:1px solid var(--line);border-radius:var(--r-sm);padding:12px;max-height:160px;overflow:auto;display:flex;gap:10px;flex-wrap:wrap}.tkt-assignees label{flex-direction:row;align-items:center}.tkt-section-head{display:flex;justify-content:space-between}.tkt-section-head span{font-size:12px;color:var(--muted)}.tkt-check{display:flex;align-items:center;gap:9px;margin-bottom:8px}.tkt-check input[type=text]{flex:1}.tkt-check.done input[type=text]{text-decoration:line-through;color:var(--muted)}.tkt-check input[type=checkbox],.tkt-assignees input{accent-color:var(--green-fill);width:17px;height:17px;flex-shrink:0}.tkt-photos{display:flex;gap:8px;flex-wrap:wrap}.tkt-photos img{width:90px;height:90px;object-fit:cover;border-radius:var(--r-sm);border:1px solid var(--line)}.tkt-upload{margin-top:12px}.tkt-messages{display:flex;flex-direction:column;gap:12px;max-height:350px;overflow:auto}.tkt-messages article{background:var(--panel2);border:1px solid var(--line);border-radius:var(--r-sm);padding:12px}.tkt-messages small,.tkt-event{font-size:12px;color:var(--muted)}.tkt-messages p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0;font-size:14px;line-height:1.5}.tkt-transfer{border-top:1px solid var(--line);padding-top:16px}.tkt-transfer summary{cursor:pointer;font-weight:600;font-size:13px;margin-bottom:12px}.tkt-transfer label{margin-bottom:12px}.tkt-footer{border-top:1px solid var(--line);padding:16px 24px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.tkt-footer [role=status]{color:var(--red);font-size:13px;flex:1}.tkt-client-item{width:100%;font:inherit;color:var(--ink);background:none;text-align:left;border:0}.tkt-client-item small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.tkt-window :focus-visible{outline:2px solid var(--green-fill);outline-offset:3px}.tkt-body input:disabled,.tkt-body textarea:disabled,.tkt-body select:disabled{opacity:.75}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:700px){.tkt-overlay{padding:8px}.tkt-window{max-height:97dvh}.tkt-body{grid-template-columns:1fr;padding:16px;gap:20px}.tkt-side{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}.tkt-fields{grid-template-columns:1fr}.tkt-toolbar>*{max-width:100%}.tkt-footer{padding:12px 16px}.tkt-footer [role=status]{flex-basis:100%}}

[data-theme="dark"] .tkt-urgent{--tkt-color:var(--ink-red)}[data-theme="dark"] .tkt-normal{--tkt-color:var(--ink-orange)}[data-theme="dark"] .tkt-low{--tkt-color:var(--ink-blue)}.tkt-undated{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:12px;margin-top:20px}.tkt-undated h3{grid-column:1/-1}.tkt-client-item>span{min-width:0;overflow-wrap:anywhere}


/* Task workspace: Kokonut hierarchy, existing CRM semantic tokens. */
html #tasks.dz-tk:not(#old):not(#legacy) .tk-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:24px}
html #tasks.dz-tk:not(#old):not(#legacy) .tk-head h1{font:650 30px/1.2 Inter,system-ui,sans-serif;letter-spacing:-.035em;margin:0}
#tasks .tk-heading{flex:1;min-width:200px}.tk-description{font-size:13px;line-height:1.5;color:var(--muted);margin:7px 0 0}
.tkt-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 17px;border:1px solid var(--green-fill);border-radius:10px;background:var(--green-fill);color:var(--on-green);font:600 13px/1.4 Inter,system-ui,sans-serif;cursor:pointer;transition:filter .15s,transform .15s;white-space:nowrap}
.tkt-primary:hover{filter:brightness(.96)}.tkt-primary:active{transform:translateY(1px)}.tkt-primary:disabled{opacity:.6;cursor:wait}
#tasks #tkCount{display:none!important}#tasks #calCrumb:empty{display:none}
html #tasks.dz-tk:not(#old):not(#legacy) .dz-day{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:var(--panel);border:1px solid var(--line);border-radius:14px;margin:0 0 22px;overflow:hidden;box-shadow:none}
html #tasks.dz-tk:not(#old):not(#legacy) .dz-day .dz-d{display:grid;grid-template-columns:1fr auto;text-align:left;align-items:center;gap:6px 12px;min-height:96px;padding:18px 22px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
html #tasks.dz-tk:not(#old):not(#legacy) .dz-day .dz-d:last-child{border-right:0}
html #tasks.dz-tk:not(#old):not(#legacy) .dz-day .dz-d .l{font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--muted)}
html #tasks.dz-tk:not(#old):not(#legacy) .dz-day .dz-d .v{grid-column:2;grid-row:1/3;font:600 30px/1 Inter,system-ui,sans-serif;letter-spacing:-.04em}
html #tasks.dz-tk:not(#old):not(#legacy) .dz-day .dz-d .s{font-size:11px;margin:0;color:var(--muted)}
#tktWorkspace{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
#tasks #tktWorkspace #dzTkScope{margin:0;gap:10px;flex:1}#tasks #tktWorkspace .tk-modes{margin:0;flex-shrink:0}
#tasks .tkt-toolbar{display:block;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px 18px;margin:0 0 18px}
.tkt-tools-top{display:flex;justify-content:space-between;align-items:center;gap:18px}
.tkt-kinds{display:flex;gap:4px;align-items:center;flex-shrink:0;background:var(--panel2);padding:4px;border-radius:10px}
#tasks .tkt-kinds button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:8px 14px;border:0;background:transparent;border-radius:7px;font:500 12px/1.3 Inter,system-ui,sans-serif;color:var(--muted);cursor:pointer;transition:background .18s,color .18s}
#tasks .tkt-kinds button[aria-pressed=true]{background:var(--panel);color:var(--ink);box-shadow:var(--sh-1);font-weight:600}
#tasks .tkt-search{display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:var(--panel);border-radius:9px;padding:0 11px;min-height:39px;width:260px;color:var(--muted)}
#tasks .tkt-search input{width:100%;max-width:none;min-width:0;border:0!important;padding:8px 0!important;background:transparent!important;outline:0!important;font:400 13px Inter,system-ui,sans-serif}
#tasks .tkt-search:focus-within{border-color:var(--green-fill)}
.tkt-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
#tasks .tkt-filters label{display:flex;flex-direction:column;align-items:stretch;gap:6px;font-size:11px;color:var(--muted);min-width:140px;flex:1;max-width:340px}
#tasks .tkt-filters label>span{display:block}
#tasks .tkt-filters select,#tasks .tkt-filters input{box-sizing:border-box;width:100%;min-height:39px;max-width:none;padding:8px 11px!important;background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:9px!important;font:400 13px Inter,system-ui,sans-serif!important;color:var(--ink)}
.tkt-reset,.tkt-text-button{background:none;border:0;color:var(--muted);font:500 12px Inter,system-ui,sans-serif;cursor:pointer;padding:10px 4px;min-height:39px}.tkt-reset:hover,.tkt-text-button:hover{color:var(--ink)}
.tkt-load-error{font-size:13px;color:var(--ink-red)}
.tkt-empty{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:58px 24px;display:flex;flex-direction:column;align-items:center;text-align:center;min-height:285px;justify-content:center}
.tkt-empty-icon{display:grid;place-items:center;width:48px;height:48px;background:var(--panel2);border:1px solid var(--line);border-radius:14px;color:var(--muted);margin-bottom:16px}.tkt-empty-icon svg{width:25px;height:25px}
.tkt-empty h2{font:600 18px/1.4 Inter,system-ui,sans-serif;letter-spacing:-.02em;margin:0 0 8px;color:var(--ink)}
.tkt-empty p{font-size:13px;line-height:1.6;color:var(--muted);max-width:390px;margin:0 0 20px}
#tasks .tk-listwrap{border-radius:14px;box-shadow:none}#tasks .tk-list th{font-size:10px;letter-spacing:.05em}#tasks .tkt-row{cursor:pointer}
/* A new ticket starts with one clear form, then opens the full workspace. */
#tktModal{padding:24px;background:var(--scrim);align-items:center!important;justify-content:center}
#tktModal .tkt-window{border-radius:16px;max-width:1080px;max-height:calc(100dvh - 48px);box-shadow:var(--sh-menu)}
#tktModal .tkt-new-window{width:600px;max-width:100%}#tktModal .modal-bar{padding:20px 24px}
#tktModal h2{font:600 19px/1.35 Inter,system-ui,sans-serif;letter-spacing:-.02em}
#tktModal .tkt-intro{font-size:12px;color:var(--muted);margin:5px 0 0}.tkt-close{display:grid;place-items:center;background:var(--panel2);border:0;color:var(--muted);width:30px;height:30px;border-radius:8px;font-size:22px;cursor:pointer}
#tktModal .tkt-new-window form{display:flex;flex-direction:column;min-height:0;overflow:hidden}
#tktModal .tkt-new-window .tkt-body{display:block;padding:22px 24px;overflow:auto}#tktModal .tkt-new-window .tkt-main{gap:18px}
#tktModal .tkt-body label{font-size:12px;position:relative;color:var(--ink)}#tktModal .tkt-body input:not([type=checkbox]):not([type=file]),#tktModal .tkt-body textarea,#tktModal .tkt-body select{font-size:13px;line-height:1.5;padding:10px 12px;border-radius:9px;background:var(--panel);border-color:var(--line);width:100%;box-sizing:border-box}
#tktModal .tkt-body input:focus,#tktModal .tkt-body textarea:focus,#tktModal .tkt-body select:focus{outline:0;border-color:var(--green-fill)}
#tktModal .tkt-required{position:absolute;left:144px;top:0;color:var(--ink-red)}.tkt-optional{position:absolute;right:0;top:0;color:var(--muted);font-size:11px;font-weight:400}
.tkt-hint{font-size:12px;line-height:1.55;color:var(--muted);margin:0;background:var(--panel2);padding:11px 13px;border-radius:9px}
.tkt-new-assignees summary,.tkt-new-checklist summary{font-size:12px;cursor:pointer;color:var(--ink);font-weight:500;padding:4px 0}.tkt-new-assignees summary span{font-weight:400;color:var(--muted);margin-left:7px}.tkt-new-assignees[open] .tkt-assignees{margin-top:10px}
#tktModal .tkt-footer{padding:16px 24px;justify-content:flex-end;flex-wrap:wrap}#tktModal .tkt-footer [role=status]:empty{display:none}.tkt-cancel{font:500 13px Inter,system-ui,sans-serif;padding:10px 15px;background:var(--panel);border:1px solid var(--line);border-radius:9px;color:var(--ink);cursor:pointer}
@media(max-width:900px){html #tasks.dz-tk:not(#old):not(#legacy) .dz-day .dz-d{padding:16px 14px}.tkt-filters{gap:10px}#tasks .tkt-filters label{min-width:130px}#tktWorkspace{gap:12px}}
@media(max-width:600px){html #tasks.dz-tk:not(#old):not(#legacy) .tk-head{gap:14px;margin-bottom:18px}html #tasks.dz-tk:not(#old):not(#legacy) .tk-head h1{font-size:26px}.tk-description{font-size:12px;max-width:230px}.tk-create{width:100%}html #tasks.dz-tk:not(#old):not(#legacy) .dz-day{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}html #tasks.dz-tk:not(#old):not(#legacy) .dz-day .dz-d{min-height:82px;padding:14px;border-bottom:1px solid var(--line)}html #tasks.dz-tk:not(#old):not(#legacy) .dz-day .dz-d:nth-child(2n){border-right:0}html #tasks.dz-tk:not(#old):not(#legacy) .dz-day .dz-d:nth-child(n+3){border-bottom:0}html #tasks.dz-tk:not(#old):not(#legacy) .dz-day .dz-d .v{font-size:26px}#tktWorkspace{align-items:stretch}#tasks #tktWorkspace .tk-modes{width:100%;justify-content:space-between}#tasks .tkt-toolbar{padding:12px}.tkt-tools-top{flex-direction:column;align-items:stretch;gap:12px}.tkt-kinds{justify-content:space-between}#tasks .tkt-kinds button{padding:8px 10px;flex:1}#tasks .tkt-search{width:auto}.tkt-filters{margin-top:12px;padding-top:12px}#tasks .tkt-filters label{min-width:calc(50% - 10px);max-width:none}.tkt-empty{padding:36px 20px;min-height:260px}#tktModal{padding:10px}#tktModal .tkt-window{max-height:calc(100dvh - 20px)}#tktModal .modal-bar{padding:18px}#tktModal .tkt-new-window .tkt-body{padding:18px}#tktModal .tkt-fields{grid-template-columns:1fr 1fr}#tktModal .tkt-footer{padding:14px 18px}.tkt-footer .tkt-primary{flex:1}}
@media(prefers-reduced-motion:reduce){.tkt-primary,.tkt-kinds button{transition:none}}
/* Funnel tree: compact collapsed groups and independent multi-selection. */
#tasks .tkt-filters .tkt-filter-field{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--muted);min-width:140px;flex:1;max-width:340px}
.tk-ft{position:relative;width:100%}#tasks .tk-ft-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:39px;border:1px solid var(--line);border-radius:9px;background:var(--panel);padding:8px 11px;color:var(--ink);font:400 13px/1.5 Inter,system-ui,sans-serif;text-align:left;cursor:pointer}
.tk-ft-trigger>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tk-ft-trigger>svg{flex-shrink:0}.tk-ft-trigger[aria-expanded=true]{border-color:var(--green-fill)!important}
.tk-ft-panel{position:absolute;top:calc(100% + 8px);left:0;z-index:60;width:min(430px,calc(100vw - 64px));background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--sh-menu);overflow:hidden;color:var(--ink)}
.tk-ft-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line);font-size:13px}.tk-ft-top strong{font-weight:600}.tk-ft-top button{border:0;background:none;color:var(--muted);font-size:22px;line-height:1;cursor:pointer;padding:2px 5px}
#tasks .tk-ft-panel label{display:flex;align-items:center;flex-direction:row;gap:10px;max-width:none;min-width:0;flex:initial;color:var(--ink);font:400 13px/1.4 Inter,system-ui,sans-serif;cursor:pointer;box-sizing:border-box}
#tasks .tk-ft-panel input[type=checkbox]{width:16px!important;min-width:16px!important;height:16px;min-height:16px!important;margin:0;padding:0!important;accent-color:var(--green-fill);border-radius:4px!important;cursor:pointer;flex-shrink:0}
#tasks .tk-ft-all{padding:13px 16px;background:var(--soft-green);margin:0;border-bottom:1px solid var(--line);font-weight:500}.tk-ft-groups{padding:6px 8px;max-height:360px;overflow:auto;overscroll-behavior:contain}
.tk-ft-color-0{--tf-color:var(--ink-blue)}.tk-ft-color-1{--tf-color:var(--ink-green)}.tk-ft-color-2{--tf-color:var(--violet)}.tk-ft-color-3{--tf-color:var(--ink-orange)}.tk-ft-color-4{--tf-color:var(--teal)}.tk-ft-color-5{--tf-color:var(--pink)}
.tk-ft-group{border-left:3px solid var(--tf-color);border-radius:6px;margin:5px 0;background:var(--panel)}.tk-ft-group+.tk-ft-group{margin-top:8px}
.tk-ft-heading{display:flex;align-items:center;gap:8px;padding:8px 7px 8px 9px;min-height:44px;background:var(--panel2);border-radius:0 7px 7px 0}
#tasks .tk-ft-heading>label{flex:1;min-width:0;margin:0;font-weight:500}.tk-ft-heading>label>span{overflow-wrap:anywhere}.tk-ft-dot{width:7px;height:7px;background:var(--tf-color);border-radius:50%;flex-shrink:0}
.tk-ft-count{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}.tk-ft-expand{display:grid;place-items:center;width:30px;min-width:30px;height:30px;border:0;background:transparent;border-radius:6px;color:var(--muted);cursor:pointer}.tk-ft-expand:hover{background:var(--hover);color:var(--ink)}.tk-ft-expand svg{transition:transform .16s}.tk-ft-expand[aria-expanded=true] svg{transform:rotate(90deg)}
.tk-ft-stages[hidden]{display:none!important}.tk-ft-stages{padding:6px 6px 6px 13px}#tasks .tk-ft-stages label{padding:8px 7px;min-height:36px;border-radius:6px;margin:0}.tk-ft-stages label:hover{background:var(--hover)}.tk-ft-stages p{color:var(--muted);font-size:12px;padding:6px}
.tk-ft-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:10px 14px;gap:16px}.tk-ft-bottom button{background:none;border:0;color:var(--muted);font:500 12px Inter,system-ui,sans-serif;cursor:pointer;min-height:32px}.tk-ft-bottom .tk-ft-done{background:var(--green-fill);color:var(--on-green);border-radius:7px;padding:7px 14px}
#tasks .tk-list{table-layout:fixed;min-width:850px}#tasks .tk-listwrap{overflow-x:auto}
#tasks .tk-list th:nth-child(1){width:34px!important}#tasks .tk-list th:nth-child(2){width:14%}#tasks .tk-list th:nth-child(3){width:16%}#tasks .tk-list th:nth-child(4){width:13%}#tasks .tk-list th:nth-child(5){width:17%}#tasks .tk-list th:nth-child(6){width:9%}
#tasks .tk-list td{padding-top:13px;padding-bottom:13px;vertical-align:middle;overflow:hidden}#tasks .tk-list td:nth-child(4),#tasks .tk-list td:nth-child(5){white-space:nowrap;text-overflow:ellipsis}
.tk-task-text,.tk-funnel-label{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%;line-height:1.5}.tk-task-text{cursor:help}#tasks .tk-list .tkt-link{white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;text-decoration:none;display:block}
@media(max-width:600px){#tasks .tkt-filters .tkt-filter-field{min-width:calc(50% - 10px);max-width:none}.tk-ft-panel{position:fixed;left:12px;right:12px;top:auto;bottom:calc(12px + env(safe-area-inset-bottom));width:auto;max-height:75dvh}.tk-ft-groups{max-height:calc(75dvh - 145px)}}
@media(prefers-reduced-motion:reduce){.tk-ft-expand svg{transition:none}}
/* Ticket editor: explicit priority, people list and separate client flow. */
#tktModal .tkt-window{outline:none;border-top:3px solid var(--tkt-accent,var(--line))}#tktModal [data-priority=urgent]{--tkt-accent:var(--ink-red)}#tktModal [data-priority=normal]{--tkt-accent:var(--ink-orange)}#tktModal [data-priority=low]{--tkt-accent:var(--ink-blue)}
.tkt-header-actions{display:flex;gap:12px;align-items:center}.tkt-priority-field{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:500}.tkt-priorities{display:flex;gap:7px;flex-wrap:wrap}.tkt-priority{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;min-height:39px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--muted);font:500 12px Inter,system-ui,sans-serif;cursor:pointer}.tkt-priority i{width:7px;height:7px;border-radius:50%;background:var(--tkt-color)}.tkt-priority[aria-pressed=true]{border-color:var(--tkt-color);color:var(--tkt-color);background:color-mix(in srgb,var(--tkt-color) 9%,var(--panel))}.tkt-priority:disabled{cursor:default}
#tktModal .tkt-assignees{display:flex;flex-direction:column;gap:3px;padding:0;border:0;max-height:230px;flex-wrap:nowrap;margin:0;min-width:0}#tktModal .tkt-assignees label{display:flex;flex-direction:row;align-items:center;gap:10px;padding:8px;border-radius:8px;min-height:43px;font-size:12px;cursor:pointer}#tktModal .tkt-assignees label:has(input:checked){background:var(--soft-green)}#tktModal .tkt-assignees label>span:not(.dz-ava):not(.tkt-avatar){flex:1;min-width:0;overflow-wrap:anywhere}#tktModal .tkt-assignees input{margin:0 2px 0 auto;flex-shrink:0}#tktModal .tkt-assignees .dz-ava,.tkt-avatar{width:30px;height:30px;border-radius:50%;background-color:var(--panel2);background-size:cover;background-position:center;display:grid;place-items:center;font-size:10px;flex-shrink:0;color:var(--muted)}
#tktModal .tkt-check{gap:10px;border-bottom:1px solid var(--line);padding:4px 0;margin:0}#tktModal .tkt-check input[type=text]{border:1px solid transparent;background:transparent;padding:8px 4px}#tktModal .tkt-check input[type=text]:hover{border-color:var(--line)}#tktModal .tkt-check .btn{min-width:28px;width:28px;height:28px;min-height:28px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted);box-shadow:none}#tktModal .tkt-check input[type=checkbox]{width:18px;height:18px;margin:0}.tkt-block{border-top:1px solid var(--line);padding-top:18px}.tkt-history summary{font-size:12px;color:var(--muted);cursor:pointer}
#tktModal .tkt-upload{border:1px dashed var(--line);border-radius:10px;align-items:center;justify-content:center;min-height:75px;gap:6px;background:var(--panel2);cursor:pointer;padding:12px}#tktModal .tkt-upload span{font-size:11px;color:var(--muted);font-weight:400}#tktModal .tkt-upload:focus-within{outline:2px solid var(--green-fill);outline-offset:2px}.tkt-client-info{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid var(--line);border-radius:10px}.tkt-client-info small{color:var(--muted)}.tkt-client-info a{font-size:13px}.tkt-discussion{display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--line);padding-top:18px}.tkt-discussion h3{margin:0}.tkt-chat-empty{font-size:12px;color:var(--muted);line-height:1.6;margin:0 0 6px}.tkt-send{align-self:flex-end;min-height:36px}.tkt-client-window{width:620px!important}#tktModal .tkt-client-window form{display:flex;flex-direction:column;overflow:hidden;min-height:0}#tktModal .tkt-client-window .tkt-body{display:block}.tkt-client-modes{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:var(--panel2);padding:5px;border-radius:10px}.tkt-client-modes button{padding:12px 8px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:500 12px Inter,system-ui,sans-serif;cursor:pointer}.tkt-client-modes button[aria-pressed=true]{background:var(--panel);color:var(--ink);box-shadow:var(--sh-1)}#tktDealFields:not([hidden]){display:grid;gap:18px}
@media(max-width:700px){#tktModal .tkt-body{grid-template-columns:1fr}.tkt-header-actions{gap:8px}.tkt-header-actions .tkt-cancel{padding:8px 10px;font-size:11px}.tkt-priority{padding:8px 6px;font-size:11px}}
/* Numbered ticket workspace. The people selector opens as one structured list. */
#tktModal .tkt-body{grid-template-columns:minmax(0,1.55fr) minmax(290px,1fr);gap:30px;padding:26px 28px}#tktModal .tkt-main{gap:22px}#tktModal .tkt-side{gap:24px;padding-left:28px}#tktModal .tkt-side>section>h3{margin-bottom:12px;font-size:13px;font-weight:600}#tktModal .tkt-discussion{gap:14px;flex:1}#tktModal .tkt-messages{min-height:92px;max-height:310px;padding:12px;background:var(--panel2);border-radius:10px}#tktModal .tkt-chat-empty{margin:auto;font-size:12px;line-height:1.7}#tktModal .tkt-discussion textarea{min-height:90px;resize:vertical}#tktModal .tkt-send{margin:0;align-self:flex-end;min-width:110px}#tktModal .tkt-priority-field{padding:14px;background:var(--panel2);border:1px solid var(--line);border-radius:12px}#tktModal .tkt-priorities{gap:8px;margin-top:3px}#tktModal .tkt-priority{min-height:42px;background:var(--panel)}#tktModal .tkt-priority[aria-pressed=true]{background:color-mix(in srgb,var(--tkt-color) 12%,var(--panel));box-shadow:inset 0 0 0 1px var(--tkt-color)}
#tktModal .tkt-people-picker{position:relative;min-width:0}#tktModal .tkt-people-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);cursor:pointer;font-size:12px;min-height:44px;list-style:none}#tktModal .tkt-people-picker>summary::-webkit-details-marker{display:none}.tkt-people-summary{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}#tktModal .tkt-people-picker[open]>summary{border-color:var(--green-fill)}#tktModal .tkt-people-picker:not([open])>.tkt-assignees{display:none!important}#tktModal .tkt-people-picker[open]>.tkt-assignees{position:absolute;z-index:5;top:calc(100% + 6px);left:0;right:0;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:6px;box-shadow:var(--sh-menu);max-height:260px;overflow:auto}#tktModal .tkt-people-picker .tkt-assignees label{width:100%;box-sizing:border-box;flex-wrap:nowrap;min-height:48px}.tkt-tab-link{display:grid;place-items:center;width:32px;height:32px;font-size:22px;text-decoration:none;color:var(--muted);border:1px solid var(--line);border-radius:8px}.tkt-tab-link:hover{background:var(--hover);color:var(--ink)}.tkt-title-link{color:inherit;text-decoration:none}.tkt-title-link:hover{text-decoration:underline}
#tktModal.tkt-standalone{background:var(--bg);backdrop-filter:none}#tktModal.tkt-standalone .tkt-window{width:min(1200px,100%);height:calc(100dvh - 48px);max-height:calc(100dvh - 48px);box-shadow:none}#tktModal.tkt-standalone .tkt-body{flex:1}#tktModal.tkt-standalone .tkt-client-window{height:auto}
@media(max-width:700px){#tktModal .tkt-body{grid-template-columns:1fr;padding:20px;gap:24px}#tktModal .tkt-side{padding:20px 0 0}#tktModal.tkt-standalone .tkt-window{height:calc(100dvh - 20px);max-height:calc(100dvh - 20px)}#tktModal .tkt-priority{min-height:44px}.tkt-header-actions .tkt-tab-link{width:28px;height:28px}}
/* Shareable overlay. Opening and closing preserve the task workspace underneath. */
#tktModal{background:var(--scrim);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
#tktModal .tkt-window{width:min(1180px,100%);max-width:1180px;animation:tktReveal .18s cubic-bezier(.23,1,.32,1)}
#tktModal .modal-bar{gap:18px;align-items:center;padding:20px 26px}#tktModal .modal-bar>div:first-child{min-width:0;flex:1}
#tktModal .tkt-eyebrow{display:flex;align-items:center;gap:7px;margin:0 0 7px;color:var(--muted);font:500 11px/1.5 Inter,system-ui,sans-serif}.tkt-eyebrow svg{width:15px;height:15px;flex:none}.tkt-header-status{padding-left:9px;border-left:1px solid var(--line);margin-left:3px}
#tktModal .tkt-heading-title{display:block;font-size:20px;line-height:1.35;letter-spacing:-.025em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0}
#tktModal .tkt-header-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end;flex-shrink:0}
.tkt-copy-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);padding:9px 12px;min-height:38px;font:500 12px/1.5 Inter,system-ui,sans-serif;cursor:pointer;transition:background .16s,border-color .16s}.tkt-copy-link:hover{background:var(--hover)}.tkt-copy-link.tkt-copied{background:var(--soft-green);color:var(--ink-green);border-color:var(--green-fill)}
#tktModal .tkt-close,#tktModal .tkt-tab-link{width:38px;min-width:38px;height:38px;min-height:38px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--muted);display:grid;place-items:center;text-decoration:none}
#tktModal .tkt-close:hover,#tktModal .tkt-tab-link:hover{background:var(--hover);color:var(--ink)}#tktModal .tkt-cancel{min-height:38px}
#tktModal .tkt-chevron{flex:none;color:var(--muted);transition:transform .18s ease-out}#tktModal details[open]>summary>.tkt-chevron{transform:rotate(90deg)}
#tktModal .tkt-history>summary,#tktModal .tkt-new-checklist>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:12px 14px;background:var(--panel2);border:1px solid var(--line);border-radius:10px;color:var(--ink);font-size:13px;font-weight:500;cursor:pointer;list-style:none}
#tktModal .tkt-history>summary::-webkit-details-marker,#tktModal .tkt-new-checklist>summary::-webkit-details-marker{display:none}#tktModal .tkt-history>summary:hover,#tktModal .tkt-new-checklist>summary:hover{background:var(--hover)}#tktModal .tkt-history[open]>summary{background:var(--soft-green);border-color:var(--green-fill)}
#tktModal .tkt-event{margin:0;padding:14px 12px 14px 20px;border-left:2px solid var(--line);font-size:12px;line-height:1.65}.tkt-history[open] .tkt-event:first-of-type{margin-top:12px}
#tktModal .tkt-check .btn{width:38px;min-width:38px;height:38px;min-height:38px;font-size:19px;border-radius:9px}#tktModal .tkt-check .btn:hover{background:var(--soft-red);color:var(--ink-red)}
#tktModal .tkt-people-picker summary{min-height:46px;padding:12px 14px;font-size:13px}#tktModal .tkt-discussion{min-height:0}#tktModal .tkt-messages{flex:1;min-height:160px;max-height:360px;overscroll-behavior:contain}#tktModal .tkt-discussion textarea{font-size:14px}#tktModal .tkt-send{min-height:40px}#tktModal .tkt-body input:not([type=checkbox]):not([type=file]),#tktModal .tkt-body textarea{font-size:14px}
@keyframes tktReveal{from{opacity:0;transform:translateY(7px) scale(.99)}to{opacity:1;transform:none}}
@media(min-width:1000px){#tktModal .tkt-side{position:sticky;top:0;align-self:start;max-height:calc(100dvh - 240px);min-height:460px}#tktModal .tkt-discussion{overflow:hidden}#tktModal .tkt-messages{flex:1}}
@media(max-width:700px){#tktModal .modal-bar{padding:18px;align-items:flex-start;flex-wrap:wrap}#tktModal .modal-bar:has(.tkt-header-actions)>div:first-child{flex-basis:100%}#tktModal .tkt-header-actions{width:100%;justify-content:flex-start}#tktModal .tkt-close{margin-left:auto}#tktModal .tkt-heading-title{font-size:18px}#tktModal .tkt-close,#tktModal .tkt-tab-link{width:44px;min-width:44px;height:44px;min-height:44px}#tktModal .tkt-copy-link,#tktModal .tkt-cancel{min-height:44px;padding:9px 10px;font-size:11px}#tktModal .tkt-copy-link{gap:5px}#tktModal .tkt-check .btn{width:44px;min-width:44px;height:44px;min-height:44px}#tktModal .tkt-side{position:static}#tktModal .tkt-people-picker[open]>.tkt-assignees{position:relative;top:auto;left:auto;right:auto;margin-top:8px;box-shadow:none}#tktModal .tkt-messages{min-height:140px;max-height:300px}}
@media(prefers-reduced-motion:reduce){#tktModal .tkt-window{animation:none}#tktModal .tkt-chevron,.tkt-copy-link{transition:none}}

#tktModal .tkt-window.tkt-new-window{width:600px;max-width:100%}#tktModal .tkt-side{min-height:0}#tktModal .tkt-discussion textarea,#tktModal .tkt-send{flex-shrink:0}.tkt-copy-error{font-size:12px;color:var(--ink-red);overflow-wrap:anywhere;max-width:300px}
@media(min-width:1000px){#tktModal .tkt-messages{min-height:100px}}
@media(max-height:739px){#tktModal .tkt-side{position:static;max-height:none}#tktModal .tkt-discussion{overflow:visible}}
@media(max-width:700px){#tktModal .tkt-header-actions{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px}#tktModal .tkt-copy-link{grid-column:1;grid-row:1}#tktModal .tkt-tab-link{grid-column:2;grid-row:1}#tktModal .tkt-close{grid-column:3;grid-row:1;margin:0}#tktModal .tkt-header-actions>.tkt-cancel{grid-row:2;grid-column:1/-1;justify-self:start}.tkt-copy-error{grid-column:1/-1}}
