:root { --wn-safe-top:env(safe-area-inset-top,0px); --wn-safe-right:env(safe-area-inset-right,0px); --wn-safe-bottom:env(safe-area-inset-bottom,0px); --wn-safe-left:env(safe-area-inset-left,0px); }
/* The native Android container already reserves the system bars. */
.wn-android-shell { --wn-safe-top:0px; --wn-safe-right:0px; --wn-safe-bottom:0px; --wn-safe-left:0px; }
.wn-mobile-nav, .wn-mobile-mark, .wn-device-only, .wn-mobile-company { display:none; }
.wn-android-shell .wn-device-only { display:flex; }
.wn-mobile-sheet:not([open]) { display:none; }

@media (max-width:820px), (max-height:500px) and (pointer:coarse) {
	.wn-workspace .wrapper:has(.wn-mobile-nav) { height:100vh; height:100dvh; min-height:0; width:100%; }
	.wn-workspace #sidebar { display:none; }
	#main-wrapper:has(.wn-mobile-nav) { width:100%; min-width:0; display:flex; flex-direction:column; height:100%; margin:0; }
	#main-wrapper > .navbar { display:flex; flex:none; flex-wrap:nowrap; gap:.65rem; min-height:35.2px; padding:var(--wn-safe-top) max(12px,var(--wn-safe-right)) 0 max(12px,var(--wn-safe-left)); background:var(--wn-action)!important; color:white; border:0; }
	.navbar .sidebar-toggle,.navbar .navbar-shortcuts { display:none; }
	.wn-mobile-mark { display:grid; place-items:center; flex:none; width:24px; height:24px; border-radius:6px; background:#fff; color:var(--wn-action); font:bold 17px/1 Arial,sans-serif; }
	.navbar .page-heading { flex:1; }
	.navbar .page-heading h1 { color:white; font-size:1rem; white-space:normal; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-height:1.25; overflow-wrap:anywhere; }
	.navbar .navbar-actions { margin:0; }
	.navbar .page-actions .btn { display:inline-flex; align-items:center; gap:4px; min-height:28px; padding:.16rem .6rem; border-radius:8px; color:var(--wn-action); background:#eef5ff; border-color:transparent; white-space:nowrap; font-size:.8rem; }
	#main-wrapper > .content { flex:1 1 0; min-height:0; min-width:0; }
	#main-wrapper .workspace-scroll { height:100%; --workspace-top:12px; --workspace-side:12px; padding:var(--workspace-top) max(var(--workspace-side),var(--wn-safe-right)) 20px max(var(--workspace-side),var(--wn-safe-left)); overscroll-behavior-y:contain; scroll-padding-block:12px; }
	.wn-mobile-nav { order:2; flex:none; display:flex; align-items:stretch; padding:1px max(6px,var(--wn-safe-right)) var(--wn-safe-bottom) max(6px,var(--wn-safe-left)); background:#fff; border-top:1px solid #d8e4e3; }
	.wn-mobile-nav > :is(a,button) { flex:1 1 0; display:grid; justify-items:center; align-content:center; gap:1px; min-height:48.6px; padding:2px; border:0; background:none; color:#53686b; font-family:inherit; font-weight:500; line-height:1.25; font-size:.7rem; }
	.wn-mobile-nav > :is(a,button) > span { display:grid; place-items:center; position:relative; width:44px; height:25px; border-radius:8px; }
	.wn-mobile-nav svg { width:19px; height:19px; }
	.wn-mobile-nav b { position:absolute; top:-2px; left:65%; border-radius:5px; padding:0 3px; color:white; background:#a33648; font-size:10px; }
	.wn-mobile-nav [aria-current] { color:var(--wn-action); font-weight:650; }
	.wn-mobile-nav [aria-current] > span { background:#e3edfc; }
	.wn-mobile-sheet { position:fixed; inset:auto 0 0; margin:0 auto; width:min(100%,32rem); max-width:100%; max-height:85dvh; overflow:auto; padding:8px 16px max(16px,var(--wn-safe-bottom)); border:0; border-radius:18px 18px 0 0; color:var(--wn-ink); }
	.wn-mobile-sheet::backdrop { background:#102b3bb3; }
	.wn-mobile-sheet header,.wn-mobile-sheet nav a { display:flex; align-items:center; gap:12px; }
	.wn-mobile-sheet header { justify-content:space-between; border-bottom:1px solid #e4ebea; }
	.wn-mobile-sheet h2 { font-size:1.15rem; margin:0; }
	.wn-mobile-sheet header button { width:44px; height:44px; border:0; background:transparent; color:inherit; }
	.wn-mobile-sheet nav a { min-height:44px; padding:.55rem .4rem; color:inherit; }
	.wn-mobile-sheet nav a.wn-device-only { display:none; }
	.wn-android-shell .wn-mobile-sheet nav a.wn-device-only { display:flex; }
	.wn-mobile-sheet svg { width:19px; height:19px; }
	.wn-mobile-sheet nav a[aria-current] { color:var(--wn-action); font-weight:650; }
	.wn-workspace:has(:is(input:not([type=checkbox],[type=radio],[type=button],[type=submit]),textarea,[contenteditable=true]):focus) .wn-mobile-nav { display:none; }
	.wn-workspace :is(.form-control,.form-select,textarea,[contenteditable=true]) { max-width:100%; font-size:16px; }
}


.wn-mobile-reply { display:none; }
@media (max-width:820px) {
	/* Ticket queues */
	.wn-company-results { container-type:normal; }
	.wn-company-nav { padding:.35rem; border:0; background:transparent; }
	.wn-company-nav h2 { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
	.wn-company-links { gap:.4rem; scrollbar-width:thin; overscroll-behavior-inline:contain; }
	.wn-company-links a { min-height:42px; padding:.35rem .65rem; background:white; border:1px solid #dce6e6; border-radius:9px; }
	.wn-company-links a[aria-current] { background:#eaf1fc; color:var(--wn-action); border-color:#aec7ee; }
	.ticket-filter-panel > form.ticket-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:.25rem .8rem .85rem; gap:.55rem; }
	.ticket-fields > *, .ticket-filter-panel :is(ticket-choice,ticket-date,.select2-container) { min-width:0; max-width:100%; }
	.wn-ticket-results.card { background:transparent; border:0; }
	.wn-ticket-list thead tr { padding:.15rem 0; background:transparent; }
	.wn-ticket-list thead th { background:none; padding:0; }
	.wn-ticket-list thead th a { min-height:40px; padding:0 .35rem; }
	.wn-ticket-list tbody { display:grid; gap:.55rem; }
	.wn-ticket-list tbody tr { position:relative; gap:.05rem .45rem; padding:.7rem .85rem; background:#fff; border:1px solid #dbe5e7; border-radius:10px; }
	.wn-ticket-list .wn-list-subject { width:100%; flex:1 1 100%; padding-right:2.2rem; }
	.wn-list-subject > a { font-size:1rem; }
	.wn-mobile-company { display:block; font-size:.77rem; color:#586e72; margin:.2rem 0; }
	.wn-list-trigger { min-height:42px; max-width:100%; }
	.wn-list-clip { position:absolute; inset:.5rem .3rem auto auto; min-height:40px; }
	.wn-list-activity { flex:1 1 100%; text-align:end; color:#607479; }
	.wn-ticket-list td { min-width:0; max-width:100%; }
	.wn-list-picker .wn-people-summary { flex-wrap:wrap; }
	.wn-list-picker .wn-list-options.show { position:fixed!important; inset:auto 0 0!important; transform:none!important; margin:auto!important; width:min(100%,32rem); max-width:100%; max-height:62dvh; z-index:1050; padding:.6rem .85rem max(1rem,var(--wn-safe-bottom)); border-radius:15px 15px 0 0; box-shadow:0 -10px 40px #15383e38; }
	.wn-list-options :is(button,label) { min-height:44px; }
	.wn-list-picker:has(.wn-list-options.show) { position:static; }
	/* Ticket, conversation, files and history */
	.desk-thread { --thread-gutter:.8rem; min-width:0; }
	.desk-tabs { gap:.15rem; padding-inline:.45rem; overflow-x:auto; }
	.desk-tabs a { display:inline-flex; align-items:center; justify-content:center; min-height:44px; flex:1 0 auto; }
	.wn-ticket-context { row-gap:.5rem; padding-block:.65rem; }
	.wn-stream-entry { grid-template-columns:1.6rem minmax(0,1fr); gap:.45rem; }
	.wn-stream-entry > .wn-avatar { width:1.6rem; height:1.6rem; }
	.wn-message-card,.wn-history-card { min-width:0; overflow-wrap:anywhere; }
	.wn-message-card :is(img,video,table) { max-width:100%; }
	.wn-message-card pre { white-space:pre-wrap; }
	.wn-message-tools button,.wn-user-edit { min-width:36px; min-height:36px; }
	.pluto-editor__toolbar:not([hidden]) { flex-wrap:nowrap; overflow-x:auto; }
	.pluto-editor__toolbar-group { flex:none; }
	.wn-send-row .btn,.wn-create > .btn,.desk-compose > .btn { min-height:44px; }
	.wn-mobile-reply { display:flex; align-items:center; align-self:end; gap:.4rem; position:sticky; bottom:.65rem; z-index:3; min-height:44px; margin:.5rem .8rem .65rem auto; padding:.5rem 1rem; border:0; border-radius:9px; background:var(--wn-action); color:white; box-shadow:0 2px 8px #193a3e31; }
	.wn-mobile-reply svg { width:17px; height:17px; }
	.desk-thread:has(thread-composer[data-mode]:not([data-mode=""])) .wn-mobile-reply { display:none; }
	.wn-attachment-row { gap:.45rem; }
	.wn-attachment-row > div { min-width:0; overflow-wrap:anywhere; }
	.wn-attachment-row > a.btn { min-height:40px; display:grid; align-content:center; }
	.wn-file-preview { max-width:calc(100vw - 16px); max-height:90dvh; }
	/* Companies, people, notifications and account settings */
	.wn-directory-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:.55rem; padding:.85rem; }
	.wn-directory-toolbar label:first-child { grid-column:1/-1; }
	.wn-directory-row { grid-template-columns:minmax(0,1fr) auto; padding:.85rem; }
	.wn-directory-row .wn-directory-identity { grid-column:1; }
	.wn-directory-row > .desk-status,.wn-directory-row .btn { justify-self:end; }
	.wn-directory-row .btn { grid-column:2; }
	.wn-company-section { flex-wrap:wrap; padding:.9rem; }
	.wn-company-form,.wn-digest-body { padding:.9rem; }
	.wn-company-brand { flex-wrap:wrap; }
	.wn-digest-type { min-height:38px; }
	.wn-notice-row :is(strong,span),.wn-app-device,.wn-directory-identity { overflow-wrap:anywhere; }
	table.make-responsive.is-responsive,table.make-responsive.is-responsive tbody { display:block; width:100%; }
	table.make-responsive.is-responsive thead { position:absolute; clip-path:inset(50%); width:1px; height:1px; overflow:hidden; }
	table.make-responsive.is-responsive tbody tr { display:block; padding:.6rem 0; border-bottom:1px solid #dce5e7; }
	table.make-responsive.is-responsive td[data-label] { display:grid; grid-template-columns:minmax(5.5rem,32%) minmax(0,1fr); align-items:center; gap:.6rem; padding:.35rem .5rem; border:0; text-align:start; overflow-wrap:anywhere; }
	table.make-responsive.is-responsive td[data-label]::before { content:attr(data-label); font-size:.76rem; color:#597078; }
	table.make-responsive.is-responsive td .badge { width:fit-content; max-width:100%; white-space:normal; }
}
@media (max-width:380px) {
	#main-wrapper .workspace-scroll { --workspace-side:8px; }
	.wn-company-users li { flex-wrap:wrap; }
	.wn-attachment-row { grid-template-columns:auto minmax(0,1fr); }
	.wn-attachment-row > a.btn { grid-column:2; justify-self:start; }
	.wn-create .ticket-fields { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:820px) {
	.workspace-scroll > .row { margin-inline:0; }
	.workspace-scroll > .row > [class*="col-"] { padding-inline:0; }
}
@media (min-width:821px) and (max-width:1199px) {
	.card-body:has(> table.make-responsive) { overflow-x:auto; }
}

.wn-mobile-ticket-title,.wn-mobile-ticket-id,.wn-mobile-ticket-info,.wn-task-switch,.wn-facts-head .wn-client-details { display:none; }
@media (max-width:820px) {
	.wn-mobile-ticket-id { display:inline; }
	.wn-wide-ticket-title { display:none; }
	.workspace-scroll:has(.desk-detail) { background:#fff; --workspace-side:0px!important; --workspace-top:0px!important; }
	.wn-ticket-context { display:none; }
	.wn-ticket-context:has([data-ticket-claim]) { display:flex; justify-content:end; padding:4px 16px; margin:0; border:0; }
	.wn-ticket-context > div:not(:has([data-ticket-claim])),.wn-ticket-context > div::before { display:none; }
	.desk-detail { --ticket-inset:clamp(12px,4vw,18px); --thread-gutter:var(--ticket-inset); gap:0; }
	.desk-detail .desk-thread { --thread-gutter:var(--ticket-inset); }
	.desk-detail > :is(.desk-facts,.desk-thread) { margin:0; border:none; box-shadow:none; border-radius:0; }
	.desk-facts > .card-body { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; padding:16px var(--ticket-inset) 2px; }
	.wn-mobile-ticket-title { display:block; grid-column:1/-1; grid-row:1; }
	.wn-mobile-ticket-title small { color:#57716f; font-size:.78rem; }
	.wn-mobile-ticket-title small span,.wn-mobile-ticket-info .wn-overdue { color:#a63040; }
	.wn-mobile-ticket-title h2 { margin:4px 0 2px; color:var(--wn-ink); font-size:clamp(1.22rem,4.9vw,1.55rem); line-height:1.22; letter-spacing:-.025em; overflow-wrap:anywhere; }
	.desk-facts .wn-facts-head { grid-row:2; grid-column:2; padding:0; background:none; border:0; }
	.wn-facts-head h2,.desk-facts form[data-ticket-status] > #ticket-state-label,.desk-facts .wn-facts-readonly .wn-field-title { display:none!important; }
	.wn-facts-head .wn-facts-toggle { display:inline-flex; gap:.45rem; align-items:center; justify-content:center; min-height:42px; color:var(--wn-action); font-size:.85rem; }
	.desk-facts form[data-ticket-status],.desk-facts .wn-facts-readonly { grid-row:2; grid-column:1; display:block; padding:0; width:max-content; max-width:100%; }
	.desk-facts .desk-state-menu > summary { min-height:42px; width:auto; padding:0; border:0; background:transparent; }
	.desk-facts .desk-state-options { left:0; right:auto; }
	.desk-facts .desk-edit,.wn-mobile-ticket-info { grid-column:1/-1; }
	.desk-facts.wn-expanded .wn-mobile-ticket-info { display:grid; gap:.4rem; margin:.25rem 0 .6rem; border-top:1px solid #dfebe7; padding-top:.65rem; }
	.wn-mobile-ticket-info > div { display:flex; align-items:baseline; justify-content:space-between; gap:.75rem; }
	.wn-mobile-ticket-info :is(dt,dd) { margin:0; font-size:.82rem; }
	.wn-mobile-ticket-info dt { color:#607470; font-weight:500; }
	.desk-tabs.wn-section-tabs { gap:4px; margin:4px var(--ticket-inset,.65rem) 0; padding:3px; background:#f0f3f8; border:0; border-radius:9px; }
	.desk-tabs.wn-section-tabs a { flex:1 1 0; min-height:38px; padding:4px 8px; border:0; border-radius:6px; box-shadow:none; color:#526477; }
	.desk-tabs.wn-section-tabs a[aria-current] { border:0; background:white; color:var(--wn-action); box-shadow:0 1px 3px #2035541e; }
	.desk-tabs a svg { display:none; }
	.wn-subtasks { margin:4px var(--ticket-inset,.65rem) 0; padding:0; border-bottom:1px solid #e2ebe8; }
	.wn-task-switch { display:flex; align-items:center; gap:.5rem; min-height:42px; padding:4px 0; width:100%; color:#425d59; border:0; background:transparent; text-align:left; }
	.wn-task-switch svg { width:16px; height:16px; }
	.wn-task-switch svg:last-child { margin-left:auto; }
	.wn-task-switch[aria-expanded=true] svg:last-child { transform:rotate(180deg); }
	.wn-task-switch[aria-expanded=false] + div { display:none; }
	[data-task-total] { font-size:.75rem; color:#5d7771; }
	.desk-thread > .wn-stream { padding:0 var(--ticket-inset) 12px; }
	.wn-stream-day { justify-content:center; gap:.7rem; font-size:.7rem; color:#64748b; margin:14px 0 10px; }
	.wn-stream-day::before { content:""; flex:1; border-top:1px solid #e4ece9; }
	.wn-stream-entry { display:block; position:relative; margin:8px 0; }
	.wn-stream-entry > .wn-avatar { display:none; }
	.desk-event-meta .wn-meta-avatar { grid-area:avatar; display:flex; align-items:center; }
	.wn-meta-avatar .wn-avatar { width:24px; height:24px; font-size:.65rem; }
	.wn-stream-entry .wn-message-card { padding:8px 12px 12px; border:0; border-radius:10px; background:#f3f5f8; }
	.wn-own-message .wn-message-card { background:#edf3fc; }
	.wn-private-entry .wn-message-card { background:#faf6ed; }
	.wn-message-card .desk-event-meta { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; grid-template-areas:"avatar author time tools"; align-items:center; justify-content:stretch; min-height:32px; gap:2px 6px; }
	.wn-message-card .desk-event-meta > strong { grid-area:author; line-height:1.25; overflow-wrap:anywhere; }
	.wn-message-card .desk-event-meta > time { grid-area:time; margin:0; }
	.wn-message-card .desk-event-meta > .wn-message-tools { grid-area:tools; }
	.wn-message-card .desk-event-meta > :is(.wn-edited,.wn-private-mark,.wn-unread) { grid-column:2 / -1; justify-self:start; }
	.wn-message-card :is(.desk-message,.wn-rich-message,.wn-history-change) { margin:5px 0 0; line-height:1.5; }
	.wn-message-card .wn-rich-message > :last-child { margin-bottom:0; }
	.desk-thread .wn-attachment-row,.desk-thread > .desk-section-head,.desk-thread > .desk-compose { padding-inline:var(--ticket-inset); }
	.wn-subtasks :is(.wn-subtask-create,.desk-check-row) { padding-inline:0; }

	#main-wrapper .workspace-scroll:has(thread-composer) { display:flex; flex-direction:column; padding-bottom:0; }
	.workspace-scroll:has(thread-composer) > .desk-detail { flex:1 0 auto; }
	.desk-thread:has(thread-composer) { flex:1; display:flex; flex-direction:column; }
	.desk-thread > thread-composer.wn-reply-box { order:2; position:sticky; bottom:0; z-index:4; background:#fff; margin:auto 0 0; padding:6px var(--ticket-inset); border-top:1px solid #d7e5df; border-radius:0; }
	.desk-thread > thread-composer .wn-compose-line > .wn-avatar { display:none; }
	.wn-compose-line .wn-compose-open { border-radius:10px; }
	thread-composer[data-mode]:not([data-mode=""]) { max-height:68dvh; overflow:auto; }
	thread-composer .desk-compose { margin:.3rem 0 0; padding:0; border:0; }
	.desk-thread .wn-mobile-reply { display:none; }
}
.wn-meta-avatar,.wn-mobile-back,.wn-message-tools .wn-action-toggle { display:none; }
@media (min-width:821px) {
	.wn-message-tools .wn-action-options { display:contents; }
}
@media (max-width:820px) {
	.wn-mobile-back { display:grid; place-items:center; width:42px; height:32px; margin-left:-6px; border-radius:8px; color:#fff; }
	.navbar:has(.wn-mobile-back) .page-actions { display:none; }
	.wn-message-tools .wn-action-toggle { display:grid; width:36px; height:36px; }
	.wn-action-options.show { display:flex; align-items:center; min-width:0; padding:3px; }
	.wn-action-options.show button { width:44px; height:44px; }
}

.wn-gesture-hint { position:fixed; z-index:1060; pointer-events:none; display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:white; color:var(--wn-action); border:1px solid #cbd9ed; box-shadow:0 2px 9px #21375222; font:22px/1 sans-serif; }
.wn-gesture-hint.ready { background:var(--wn-action); color:white; }
.wn-gesture-hint[data-action=refresh] { top:48px; left:calc(50% - 18px); }
.wn-gesture-hint[data-action=back] { left:12px; top:46%; }
.wn-gesture-hint[data-action=forward] { right:12px; top:46%; }

@media (max-width:820px) {
	.desk-event-meta .wn-message-author { grid-area:author; }
	.desk-event-meta .wn-message-stamp { grid-area:time; flex-wrap:nowrap; align-items:center; gap:5px; }
	.wn-message-author strong { line-height:1.25; overflow-wrap:anywhere; }
	.wn-message-stamp .wn-edited { padding:1px 0; font-size:.7rem; line-height:1.2; }
}

@media (max-width:820px) {
	.desk-thread:has(> thread-composer[data-mode=edit]) { padding-bottom:var(--edit-dock-height,12rem); }
	.desk-thread > thread-composer.wn-reply-box[data-mode=edit] {
		position:fixed; inset:auto 0 var(--edit-footer-height,0px); margin:0; padding:8px var(--ticket-inset) 6px;
		width:auto; max-width:none; max-height:65dvh; overflow:auto; border-radius:0; background:white;
	}
	thread-composer.wn-reply-box[data-mode=edit] > .desk-compose { margin:0; padding:0; border:0; background:white; }
}

.wn-queue-meta,.wn-queue-tools { display:none; }
@media (max-width:820px) {
	.workspace-scroll:has([data-ticket-results]) { --queue-gutter:clamp(12px,4vw,18px); background:#f6f8fb; }
	.wn-company-layout { gap:8px; }
	.wn-company-nav { padding:0; margin:0; }
	.wn-company-links { gap:6px; }
	.wn-company-links a { min-height:38px; padding:4px 10px; }
	.wn-company-links .wn-company-avatar { width:22px; height:22px; }
	.wn-company-layout .ticket-filter-panel label:has(> select[name=company_id]) { display:none; }
	.ticket-filter-panel.card { margin:0; border-radius:10px; }
	.ticket-filter-panel > summary.card-body { min-height:36px; padding:8px 12px; }
	.ticket-filter-panel .wn-result-count { display:none; }
	.ticket-filter-panel > form.ticket-fields { grid-template-columns:repeat(auto-fit,minmax(0,1fr)); align-items:start; gap:8px; padding:0 12px 12px; }
	.ticket-filter-panel .form-label { margin:0; font-size:.76rem; font-weight:500; line-height:18px; color:#516278; }
	.ticket-filter-panel ticket-choice,.ticket-filter-panel ticket-date > .wn-date-trigger { margin-top:4px; }
	.ticket-filter-panel .wn-date-trigger { height:40px; margin-bottom:0; }
	.ticket-filter-panel > summary::after { margin-left:auto; }
	.ticket-filter-panel .wn-date-trigger { padding-inline:6px; }
	.ticket-filter-panel .wn-date-trigger :is(.wn-calendar-icon,.wn-chevron) { display:none; }
	.ticket-filter-panel .wn-date-trigger [data-caption] { font-size:.77rem; }
	.wn-queue-tools { display:flex; justify-content:space-between; align-items:center; min-height:42px; padding-inline:3px; color:#44566e; }
	.wn-queue-tools strong { font-size:.85rem; }
	.wn-queue-sort { display:inline-flex; align-items:center; gap:5px; min-height:40px; padding:4px; background:transparent; border:0; color:var(--wn-action); }
	.wn-queue-tools svg { width:15px; height:15px; }
	.wn-queue-tools .dropdown-menu a { display:flex; align-items:center; justify-content:space-between; padding:10px 14px; color:var(--wn-ink); }
	.wn-ticket-list thead { display:none; }
	.wn-ticket-list tbody { gap:0; border:1px solid #dce4ee; border-radius:12px; background:white; }
	.wn-ticket-list tbody tr { padding:12px var(--queue-gutter) 7px; border:0; border-radius:0; gap:0 6px; background:transparent; }
	.wn-ticket-list tbody tr + tr { border-top:1px solid #e2e8ef; }
	.wn-ticket-list tbody tr:first-child { border-radius:12px 12px 0 0; }
	.wn-ticket-list tbody tr:last-child { border-radius:0 0 12px 12px; }
	.wn-ticket-list .wn-list-subject { padding:0; }
	.wn-queue-meta { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:3px; color:#62738a; font-size:.74rem; line-height:1.4; }
	.wn-queue-meta time { flex:none; font-size:.69rem; font-variant-numeric:tabular-nums; }
	.wn-list-subject > a { display:block; line-height:1.35; font-size:1rem; }
	.wn-list-subject > a .wn-list-id,.wn-ticket-list .wn-list-activity { display:none; }
	.wn-list-subject:has(.wn-list-clip) > a { padding-right:36px; }
	.wn-list-clip { inset:30px 9px auto auto; min-height:36px; }
	.wn-ticket-list td:has(.wn-list-picker[data-field=owners]) { display:none; }
	.wn-ticket-list tr:has([data-field=priority]) { --queue-title-line:1.35rem; display:grid; grid-template-columns:24px minmax(0,1fr); column-gap:2px; }
	.wn-ticket-list tr:has([data-field=priority]) .wn-list-subject { display:contents; }
	.wn-ticket-list .wn-queue-meta { grid-row:1; grid-column:1/-1; }
	.wn-ticket-list .wn-list-subject > a { grid-row:2; grid-column:2; }
	.wn-ticket-list tr:has([data-field=priority]) .wn-list-subject > a { align-self:start; line-height:var(--queue-title-line); }
	.wn-ticket-list td:has([data-field=priority]) { grid-area:2/1; align-self:start; }
	.wn-ticket-list td:has([data-field=status]) { grid-row:3; grid-column:1/-1; }
	.wn-ticket-list [data-field=priority] .wn-list-trigger { display:grid; grid-template-rows:var(--queue-title-line); place-items:center; width:24px; min-height:24px; padding:0; }
	.wn-ticket-list [data-field=priority] .wn-list-trigger .wn-priority { background:none; padding:0; gap:0; font-size:0; }
	.wn-list-trigger .wn-priority[data-priority="Scăzută"] { color:#328263; }
	.wn-list-trigger .wn-priority[data-priority="Normală"] { color:#3579b9; }
	.wn-list-trigger .wn-priority[data-priority="Ridicată"] { color:#c78108; }
	.wn-list-trigger .wn-priority[data-priority="Urgentă"] { color:#d52d48; }
	.wn-list-trigger { min-height:40px; }
}
@media (max-width:359px) {
	.ticket-filter-panel > form.ticket-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
	.ticket-filter-panel ticket-date { grid-column:1/-1; }
	.ticket-filter-panel > form.ticket-fields:not(:has(ticket-date)) { grid-template-columns:1fr; }
}

.wn-mobile-users { display:none; }
@media (max-width:820px) {
	.workspace-scroll:has(:is(.wn-notices-page,.wn-company-directory,.wn-company-editor,.wn-users-directory,#update_user_form,.wn-settings)) {
		--directory-line:#dce4ee;
		--directory-inset:clamp(12px,3.6vw,18px);
		background:#f6f8fb;
	}
	.wn-notices-title { padding:12px var(--directory-inset); }
	.wn-notices-title span { margin-left:auto; }
	.wn-notice-day { padding:6px var(--directory-inset); background:#f5f7fa; }
	.wn-notice-day svg { display:none; }
	.wn-notices-page .wn-notice-row { grid-template-columns:32px minmax(0,1fr) auto; align-items:start; gap:9px; padding:13px var(--directory-inset); }
	.wn-notices-page .wn-company-avatar { width:32px; height:32px; }
	.wn-notices-page .wn-notice-row time { padding-top:2px; }
	.wn-notices-page .wn-notice-empty { flex-direction:column; justify-content:center; gap:10px; padding:32px 12px; }

	.wn-directory-toolbar { border-radius:12px 12px 0 0; padding:12px var(--directory-inset); gap:8px; background:white; }
	.wn-directory-toolbar .btn { min-height:40px; }
	.wn-directory-row { grid-template-columns:minmax(0,auto) 1fr auto; gap:5px 10px; padding:13px var(--directory-inset); }
	.wn-directory-row .wn-directory-identity { grid-column:1/3; gap:9px; }
	.wn-directory-row > .desk-status { grid-column:3; }
	.wn-directory-row .wn-company-avatar { width:32px; height:32px; flex:none; }
	.wn-directory-row > .btn { display:none; }
	.wn-company-editor,.wn-profile-grid,.wn-setting-pair { grid-template-columns:minmax(0,1fr); gap:10px; }
	.wn-company-profile.card { display:grid; grid-template-columns:36px minmax(0,1fr); background:white; gap:8px 10px; padding:var(--directory-inset); }
	.wn-company-profile .wn-company-avatar { width:36px; height:36px; }
	.wn-company-profile h2 { font-size:1.05rem; }
	.wn-company-profile .btn { grid-column:2; margin:0; justify-self:start; }
	.wn-company-users li { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:6px 8px; padding:12px var(--directory-inset); }
	.wn-company-users li .wn-user-identity { grid-column:2; overflow-wrap:anywhere; }
	.wn-company-users li .desk-status { grid-column:3; grid-row:1; }
	.wn-company-users li form { grid-column:2; }
	.wn-company-users li .wn-user-edit { grid-column:3; justify-self:end; }
	.wn-company-section,.wn-account-heading { padding:12px var(--directory-inset); }
	.wn-company-form,.wn-digest-body { padding:var(--directory-inset); gap:12px; }

	.card:has(> .wn-users-directory) { border:0; background:transparent; box-shadow:none; }
	.wn-users-directory { padding:0; }
	.wn-users-directory > table.make-responsive { display:none; }
	.wn-mobile-users { display:block; padding:0; margin:0; list-style:none; }
	.wn-mobile-users li { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:8px; padding:12px var(--directory-inset); }
	.wn-mobile-users li + li { border-top:1px solid var(--directory-line); }
	.wn-mobile-users summary { display:flex; align-items:center; gap:10px; cursor:pointer; }
	.wn-mobile-users summary::-webkit-details-marker { display:none; }
	.wn-user-summary { display:grid; gap:2px; overflow-wrap:anywhere; }
	.wn-user-summary small { color:#52667c; }
	.wn-mobile-users dl { display:grid; grid-template-columns:auto minmax(0,1fr); gap:4px 10px; margin:10px 0 0; font-size:.8rem; }
	.wn-mobile-users dd { margin:0; overflow-wrap:anywhere; }
	.wn-mobile-users .dropdown > button { min-width:40px; min-height:40px; border:0; }
	.card:has(#update_user_form) :is(.card-header,.card-body) { padding:var(--directory-inset); }
	#update_user_form button[type=submit] { width:100%; }

	:is(.wn-company-editor,.wn-settings,#update_user_form) .btn-primary { color:white; background:var(--wn-action); border-color:var(--wn-action); }
	:is(.wn-company-editor,.wn-settings,#update_user_form) .btn-primary:active { filter:brightness(.9); }
	.wn-account-cover { background:white; color:#203650; padding:var(--directory-inset); gap:10px; border:1px solid var(--directory-line); border-radius:12px; }
	.wn-account-cover::after { display:none; }
	.wn-account-cover span { color:#536981; }
	.wn-settings-avatar { width:42px; height:42px; background:#e7effb; color:var(--wn-action); border:0; }
	.wn-settings-actions button { min-height:42px; }
	.wn-preference-table tbody td { padding:0; }
	.wn-preference-table td label { display:grid; place-items:center; min-height:44px; cursor:pointer; }
	.wn-digest-schedule:has(.wn-digest-enable input:checked) { border-color:#a8bfe0; }
	.wn-digest-enable { background:#eef3fa; }
}

.wn-company-shortcuts { display:none; }
.wn-user-profile-head { display:flex; align-items:center; gap:12px; }
.wn-user-profile-head h2 { margin:0; color:#223b55; font-size:1.12rem; font-weight:600; overflow-wrap:anywhere; }
.wn-user-profile-head small { color:#52667c; overflow-wrap:anywhere; }
.wn-user-security { margin:.6rem 0; border-block:1px solid #dce4ee; }
.wn-user-security summary { padding:.85rem 0; cursor:pointer; color:#2056aa; font-weight:500; }
@media (max-width:820px) {
	.wn-company-shortcuts { display:flex; align-items:center; justify-content:space-around; padding:3px; background:#e8edf4; border-radius:9px; }
	.wn-company-shortcuts a { display:flex; align-items:center; justify-content:center; gap:6px; flex:1; min-height:40px; color:#254d7b; font-weight:500; }
	.wn-company-shortcuts b { font-size:.77rem; color:#51667d; }
	.wn-company-editor section[id] { scroll-margin-block-start:10px; }
	.wn-directory-identity strong { font-size:.97rem; }
	.wn-mobile-users .wn-user-open { display:flex; align-items:center; gap:10px; color:#223b55; }
	.wn-mobile-users .wn-avatar,.wn-user-profile-head .wn-avatar { width:34px; height:34px; flex:none; }
	#update_user_form .row:has(#firstname) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
	#update_user_form .row:has(#firstname) > div { width:100%; }
}

.wn-company-dialog[open] {
	position:fixed; inset:0; margin:0; box-sizing:border-box; width:100%; height:100dvh; max-width:none; max-height:100%;
	border:0; border-radius:0; background:white; color:#243950;
	display:flex; flex-direction:column; gap:.75rem; overflow:hidden;
	padding:calc(12px + var(--wn-safe-top)) calc(16px + var(--wn-safe-right)) calc(12px + var(--wn-safe-bottom)) calc(16px + var(--wn-safe-left));
}
body:has(.wn-company-dialog[open]) { overflow:hidden; }
.wn-company-dialog header { display:flex; align-items:center; justify-content:space-between; }
.wn-company-dialog h2 { margin:0; font-size:1.15rem; }
.wn-company-dialog header button { width:44px; height:44px; background:transparent; color:inherit; border:0; font-size:1.75rem; }
.wn-company-dialog input { flex:none; font-size:16px; }
.wn-company-options { min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.wn-company-options button { display:block; width:100%; min-height:48px; text-align:left; padding:.5rem .65rem; border:0; border-radius:.5rem; color:inherit; background:white; }
.wn-company-options button[hidden] { display:none; }
.wn-company-options button[aria-pressed="true"] { background:#eaf1fc; color:#2056aa; }
.wn-company-dialog button:focus-visible { outline:2px solid #3269ad; outline-offset:-2px; }

.wn-record-menu > button.btn { display:inline-grid; place-items:center; width:2.75rem; height:2.75rem; padding:0; margin:0; background:#fff; color:#43566c; border:1px solid #d9e1e8; border-radius:9px; }
.wn-record-menu > button.btn:is(:hover,:focus-visible,[aria-expanded="true"]) { background:#f4f6f8; border-color:#bfcbd6; color:#293f58; }
.wn-record-menu > .btn .feather-more-horizontal { width:18px; height:18px; color:#161616; stroke:#161616; fill:#161616; }
.wn-record-menu .dropdown-item { display:flex; align-items:center; gap:.6rem; min-height:2.75rem; }
.wn-record-menu .dropdown-item svg { width:16px; height:16px; }
@media (max-width:820px) {
	.wn-company-profile.card:has(.wn-record-menu) { grid-template-columns:36px minmax(0,1fr) auto; }
	.wn-company-profile > .wn-record-menu { grid-column:3; grid-row:1; }
}

.wn-company-directory:has(.wn-record-menu) { overflow:visible; }
.wn-directory-row > .wn-record-menu { justify-self:end; }
.wn-ticket-list .wn-list-actions { width:1%; text-align:right; }
@media (max-width:820px) {
	.wn-directory-row > .wn-record-menu { grid-column:3; grid-row:2; }
	.wn-ticket-list tr:has(.wn-list-actions) { grid-template-columns:24px minmax(0,1fr) auto; }
	.wn-ticket-list tr:has(.wn-list-actions) .wn-list-subject > a { grid-column:2/-1; }
	.wn-ticket-list tr:has(.wn-list-actions) td:has([data-field=status]) { grid-column:1/3; }
	.wn-ticket-list .wn-list-actions { grid-area:3/3; width:auto; }
}

.wn-directory-row { grid-template-columns:minmax(0,1fr) auto minmax(15rem,18rem) auto; }
.wn-company-counts { display:grid; grid-template-columns:1fr 1fr; align-items:center; }
.wn-company-counts a { display:grid; grid-template-columns:auto 1fr; align-items:baseline; gap:0 .45rem; padding:.35rem .8rem; color:#53657b; line-height:1.35; font-size:.82rem; text-decoration:none; }
.wn-company-counts a + a { border-left:1px solid #dbe2ea; }
.wn-company-counts strong { font-size:1rem; font-weight:650; color:#203650; font-variant-numeric:tabular-nums; }
.wn-company-counts small { grid-column:2; color:#607187; }
.wn-company-counts a:hover span,.wn-company-counts a:focus-visible span { text-decoration:underline; color:var(--wn-action); }
@media (max-width:1000px) {
	.wn-directory-row { grid-template-columns:minmax(0,1fr) auto auto; }
	.wn-directory-row > .wn-directory-identity { grid-area:1/1; }
	.wn-directory-row > .desk-status { grid-area:1/2; }
	.wn-directory-row > .wn-record-menu { grid-area:1/3; }
	.wn-company-counts { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:0 .85rem; }
	.wn-company-counts a { display:flex; align-items:baseline; gap:.35rem; padding:.35rem 0; min-height:2rem; }
	.wn-company-counts a + a { padding-left:.85rem; }
}
#wn-delete-dialog { width:min(26rem,calc(100% - 2rem)); padding:1.4rem; border:1px solid #dce3ea; border-radius:14px; color:#23384c; box-shadow:0 20px 60px #13233938; }
#wn-delete-dialog::backdrop { background:#17273673; }
#wn-delete-dialog header,#wn-delete-dialog footer { display:flex; align-items:center; gap:.65rem; }
#wn-delete-dialog header { margin-bottom:.9rem; }
#wn-delete-dialog header svg { width:20px; color:#ae3743; }
#wn-delete-dialog h2 { margin:0; font-size:1.2rem; }
#wn-delete-name { overflow-wrap:anywhere; }
#wn-delete-dialog p { margin:.35rem 0 0; color:#526579; }
#wn-delete-dialog footer { justify-content:flex-end; margin-top:1.25rem; }

.wn-queue-tools { display:flex; align-items:center; gap:.75rem; margin-block:.4rem; }
.wn-queue-today { display:inline-flex; align-items:center; gap:.4rem; margin-left:auto; }
.wn-queue-today svg { width:15px; height:15px; }
@media (min-width:821px) {
	.wn-queue-tools > div.dropdown { display:none; }
}
@media (max-width:820px) {
	.wn-ticket-list .wn-list-due { display:none; }
}

.workspace-switcher-option:only-child { grid-column:1/-1; }

.wn-client-nav { min-width:0; }
.wn-client-nav nav + nav { margin-top:.85rem; padding-top:.85rem; border-top:1px solid #e1e7ed; }
.wn-client-nav .wn-company-links { max-height:32vh; }
.wn-client-queue [data-list-error]:empty { display:none; }
.wn-client-queue .wn-list-subject { width:42%; }
.wn-client-assignee-label { display:none; }
.wn-ticket-byline { display:block; margin-top:.2rem; color:#526579; font-size:.82rem; overflow-wrap:anywhere; }
.wn-ticket-company { max-width:100%; color:#6a7d91; font-size:.77rem; font-weight:400; overflow-wrap:anywhere; }
@media (min-width:821px) {
	.wn-company-meta { display:flex; }
	.wn-company-meta > :not(.wn-ticket-company) { display:none; }
}
@media (max-width:820px) {
	.wn-queue-meta.wn-company-meta { align-items:center; justify-content:flex-start; flex-wrap:wrap; gap:4px 8px; margin-bottom:5px; }
	.wn-company-meta time { margin-left:auto; }
}
@media (min-width:821px) and (max-width:1050px) {
	.wn-client-queue .wn-ticket-list { display:table; }
	.wn-client-queue .wn-ticket-list tbody { display:table-row-group; }
	.wn-client-queue .wn-ticket-list thead { display:table-header-group; }
	.wn-client-queue .wn-ticket-list tr { display:table-row; }
	.wn-client-queue .wn-ticket-list :is(th,td) { padding:.65rem; }
}
@media (max-width:820px) {
	.wn-client-nav h2 { position:static; width:auto; height:auto; clip-path:none; margin:0 0 .35rem; }
	.wn-client-nav nav + nav { margin-top:.55rem; padding-top:.55rem; }
	.wn-client-queue .wn-ticket-list tbody tr { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.35rem .6rem; padding:.8rem var(--queue-gutter); }
	.wn-client-queue .wn-ticket-list .wn-list-subject { display:contents; }
	.wn-client-queue .wn-ticket-list .wn-queue-meta { grid-area:1/1; align-self:center; margin:0; }
	.wn-client-queue .wn-queue-meta time { display:none; }
	.wn-client-queue .wn-ticket-list .wn-list-subject > a { grid-area:2/1/3/-1; padding:0; overflow-wrap:anywhere; }
	.wn-client-queue .wn-ticket-list td:has(> .desk-status) { grid-area:1/2; justify-self:end; }
	.wn-client-queue .wn-ticket-byline { grid-area:3/1/4/-1; margin:0; }
	.wn-client-queue .wn-ticket-list .wn-client-assignees { display:flex; grid-area:4/1/5/-1; align-items:baseline; gap:.45rem; }
	.wn-client-assignee-label { display:inline; color:#526579; font-size:.78rem; }
	.wn-client-queue .wn-ticket-list .wn-list-activity { display:block; grid-area:5/1; align-self:center; margin:0; text-align:left; }
	.wn-client-queue .wn-list-activity time::before { content:"Updated "; }
	.wn-client-queue .wn-list-clip { position:static; grid-area:5/2; justify-self:end; min-height:32px; }
}

.wn-header-search { position:relative; flex:1 1 46rem; max-width:46rem; min-width:0; margin:0 auto; }
@media (min-width:821px) {
	#main-wrapper > .navbar:has(.wn-header-search) { padding-inline:clamp(20px,2.5vw,44px); column-gap:clamp(12px,2vw,32px); }
	.navbar:has(.wn-header-search) .navbar-actions { margin-left:0; flex-shrink:0; }
}
.wn-search-field { display:flex; align-items:center; gap:.6rem; padding:0 .85rem; background:#f7f9fb; color:#526579; border:1px solid #cdd8e2; border-radius:10px; }
.wn-search-field:focus-within { background:white; outline:2px solid #5581ac; outline-offset:1px; }
.wn-search-field svg,.wn-search-toggle svg { width:18px; height:18px; flex:none; }
.wn-search-field input { width:100%; min-width:0; height:40px; border:0; outline:0; background:transparent; color:#24354a; font:inherit; }
.wn-search-toggle { display:none; }
.wn-search-results:not([hidden]) { position:absolute; z-index:1050; top:calc(100% + 8px); left:0; width:100%; max-height:min(65vh,34rem); overflow:auto; padding:.45rem; background:white; color:#354a61; border:1px solid #d9e3ea; border-radius:12px; box-shadow:0 10px 30px #22354924; }
.wn-search-results a { display:grid; gap:.25rem; padding:.7rem .8rem; border-radius:7px; overflow-wrap:anywhere; color:inherit; text-decoration:none; }
.wn-search-results a:is(:hover,:focus-visible) { background:#f1f6fa; }
.wn-search-results strong { color:#20354b; font-size:.95rem; line-height:1.35; }
.wn-search-results .wn-search-meta { display:flex; align-items:center; flex-wrap:wrap; gap:.4rem; }
.wn-search-meta > :first-child { font-variant-numeric:tabular-nums; font-weight:650; }
.wn-search-meta :is(.desk-status,.wn-priority) { font-size:.70rem; line-height:1.35; padding:.12rem .42rem; }
.wn-search-meta > span + span { margin-inline-start:.2rem; }
@media (min-width:1100px) {
	.wn-search-results:not([hidden]) { width:calc(100% + 2rem); }
}
.wn-search-results .wn-search-excerpt { margin-top:.2rem; }
.wn-search-results .wn-search-more { text-align:center; font-weight:600; color:#345c83; }
@media (max-width:820px) {
	.wn-header-search { max-width:none; flex:0 0 auto; margin:0; }
	.wn-search-toggle { display:grid; place-items:center; width:32px; height:32px; color:inherit; background:transparent; border:0; }
	.wn-header-search:not(.is-open) .wn-search-field { display:none; }
	.navbar:has(.wn-header-search.is-open) :is(.page-heading,.navbar-actions) { display:none; }
	.wn-header-search.is-open { display:flex; flex:1; align-items:center; gap:.4rem; }
	.wn-header-search.is-open .wn-search-field { flex:1; min-width:0; }
}

.wn-search-results a + a { border-top:1px solid #e7edf2; }
.wn-search-results small,.wn-search-origin,.wn-search-excerpt small { display:block; color:#586b7d; font-size:.74rem; font-weight:500; }
.wn-search-excerpt { display:block; margin-top:.25rem; color:#384b5c; font-size:.85rem; font-weight:400; line-height:1.4; overflow-wrap:anywhere; }
.wn-search-results mark,.wn-list-subject mark { padding:0 .08em; border-radius:2px; background:#ffe69c; color:#362900; }
.wn-stream-entry:target { outline:2px solid #b2c4d6; outline-offset:2px; }

.wn-search-intro { display:none; }
@media (max-width:820px) {
	.wn-search-open { overflow:hidden; }
	.wn-header-search.is-open { position:fixed; z-index:2200; inset:0; width:100vw; height:100vh; height:100dvh; max-width:none; display:flex; flex-direction:column; align-items:stretch; gap:1rem; margin:0; padding:calc(13px + var(--wn-safe-top)) max(16px,var(--wn-safe-right)) calc(20px + var(--wn-safe-bottom)) max(16px,var(--wn-safe-left)); background:#f3f7fb; color:#243d56; }
	.wn-header-search.is-open .wn-search-toggle { position:absolute; top:calc(13px + var(--wn-safe-top)); right:max(16px,var(--wn-safe-right)); width:42px; height:42px; border-radius:10px; color:#244667; background:white; border:1px solid #dce6ef; }
	.wn-header-search.is-open .wn-search-toggle svg { display:none; }
	.wn-header-search.is-open .wn-search-toggle::after { content:'×'; font-size:27px; line-height:1; font-weight:300; }
	.wn-header-search.is-open .wn-search-field { flex:none; width:calc(100% - 52px); min-height:42px; border-radius:10px; background:#fff; box-shadow:0 2px 7px #1e41650d; }
	.wn-header-search.is-open .wn-search-results:not([hidden]) { position:static; flex:1 1 auto; width:100%; max-height:none; min-height:0; overflow:auto; padding:.35rem; border:1px solid #dce6ef; border-radius:12px; box-shadow:none; }
	.wn-header-search.is-open .wn-search-intro { display:grid; place-content:center; justify-items:center; gap:.45rem; flex:1; min-height:0; text-align:center; color:#60768c; }
	.wn-header-search.is-open .wn-search-intro svg { width:28px; height:28px; color:#3d77b1; }
	.wn-header-search.is-open .wn-search-intro strong { color:#244667; font-size:1.05rem; }
	.wn-header-search.is-open:has(.wn-search-results:not([hidden])) .wn-search-intro { display:none; }
	.wn-mobile-sheet nav + nav { margin-top:.65rem; padding-top:.65rem; border-top:1px solid #dce5ee; }
	.wn-mobile-sheet nav h3 { margin:.35rem .4rem .25rem; color:#617890; font-size:.72rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; }
	.wn-record-menu > button.btn { width:35px; height:35px; border-radius:8px; }
	.wn-record-menu > .btn .feather-more-horizontal { width:16px; height:16px; }
	.wn-ticket-list .wn-queue-secondary { display:none; }
	.wn-settings-dock,.wn-settings-preferences > section > footer.wn-settings-actions { padding:.65rem max(12px,var(--wn-safe-right)) .65rem max(12px,var(--wn-safe-left)); border-radius:0; }
	.wn-settings-dock { margin-inline:-12px; }
	.wn-settings-dock .btn { min-height:40px; padding-inline:.65rem; font-size:.8rem; }
	.wn-device-grid { grid-template-columns:minmax(0,1fr); padding:.8rem; }
	.wn-settings .wn-settings-dock,.wn-settings .wn-settings-preferences > section > footer.wn-settings-actions { position:fixed; inset:auto 0 calc(50.6px + var(--wn-safe-bottom)); width:100%; margin:0; padding:.65rem max(12px,var(--wn-safe-right)) .65rem max(12px,var(--wn-safe-left)); border:0; border-top:1px solid #dce6ef; border-radius:0; z-index:12; background:#ffffffed; box-shadow:0 -8px 24px #19334f14; backdrop-filter:blur(12px); }
	#main-wrapper .workspace-scroll:has(.wn-settings) { padding-bottom:5.75rem; }
}

@media (max-width:820px) {
	#main-wrapper .workspace-scroll:has(.wn-settings) { --workspace-top:0px; background:#f3f6fa; }
	.wn-settings .wn-account-cover { margin-inline:calc(-1 * var(--workspace-side)); padding:18px max(18px,var(--wn-safe-right)) 20px max(18px,var(--wn-safe-left)); border:0; border-radius:0; color:#fff; background:linear-gradient(125deg,#1c4f99,#286ab6); }
	.wn-settings .wn-account-cover h2 { font-size:1.12rem; }
	.wn-settings .wn-account-cover span { color:#e3edfb; font-size:.8rem; }
	.wn-settings .wn-settings-avatar { width:48px; height:48px; border:1px solid #ffffffa8; background:#e8f1ff; color:#2056aa; font-size:1rem; }
	.wn-settings .card { border:0; border-radius:12px; background:#fff; box-shadow:0 1px 3px #21375413; }
	.wn-settings .wn-profile-grid { display:flex; flex-direction:column; gap:12px; }
	.wn-settings .wn-profile-grid > .card { width:100%; }
	.wn-settings .wn-profile-grid > .card:has(#account-photo-form) { order:-1; }
	.wn-settings .wn-account-heading { padding:14px 16px 8px; border:0; }
	.wn-settings .wn-account-heading h2 { color:#2d527c; font-size:.92rem; font-weight:650; }
	.wn-settings .wn-profile-grid .wn-company-form { gap:0; padding:0 16px 6px; }
	.wn-settings #account-profile-form .wn-setting-pair { display:block; }
	.wn-settings #account-profile-form > .form-label,.wn-settings #account-profile-form .wn-setting-pair > .form-label { display:grid; grid-template-columns:minmax(88px,34%) minmax(0,1fr); align-items:center; gap:4px; min-height:56px; margin:0; border-bottom:1px solid #edf1f6; color:#435a72; font-size:.84rem; font-weight:550; }
	.wn-settings #account-profile-form > .form-label:last-child { border-bottom:0; }
	.wn-settings #account-profile-form .form-control { width:100%; min-width:0; min-height:48px; padding:6px 0 6px 4px; border:0; background:transparent; box-shadow:none; color:#1d344e; text-align:right; }
	.wn-settings #account-profile-form .form-control:focus-visible { outline:2px solid #8ab8ed; outline-offset:2px; border-radius:5px; }
	.wn-settings #account-profile-form .form-label small { grid-column:1/-1; padding-bottom:8px; font-weight:400; }
	.wn-settings #account-photo-form { padding:2px 16px 10px; }
	.wn-settings .wn-photo-picker { display:grid; grid-template-columns:38px minmax(0,1fr); grid-template-rows:auto auto; align-items:center; justify-items:start; column-gap:12px; row-gap:2px; min-height:68px; padding:8px 0; border:0; background:transparent; text-align:left; }
	.wn-settings .wn-photo-picker svg { grid-row:1/3; width:38px; height:38px; padding:9px; border-radius:10px; background:#eaf2ff; color:var(--wn-action); }
	.wn-settings .wn-photo-picker [data-photo-caption] { align-self:end; color:#234d7c; font-weight:600; }
	.wn-settings .wn-photo-picker small { align-self:start; color:#6e8195; font-size:.72rem; }
	.wn-settings .wn-photo-feedback { margin:0; }
	.wn-settings .wn-account-channel-note { padding:4px 16px 10px; font-size:.8rem; }
	.wn-settings .wn-preference-table,.wn-settings .wn-preference-table tbody { display:block; width:100%; }
	.wn-settings .wn-preference-table thead { display:none; }
	.wn-settings .wn-preference-table tbody tr { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; min-height:54px; margin:0 16px; border-top:1px solid #edf1f6; }
	.wn-settings .wn-preference-table tbody :is(th,td) { display:block; padding:8px 0; text-align:left; }
	.wn-settings .wn-preference-table tbody td label { min-width:44px; min-height:38px; }
	.wn-settings .wn-digest-body { padding:0 16px 12px; gap:0; }
	.wn-settings .wn-digest-body > .form-label { display:grid; grid-template-columns:minmax(88px,34%) minmax(0,1fr); align-items:center; min-height:58px; max-width:none; margin:0; border-bottom:1px solid #edf1f6; }
	.wn-settings .wn-digest-body > .form-label select { min-width:0; border:0; background-color:transparent; text-align:right; }
	.wn-settings .wn-digest-body > .wn-setting-pair { display:block; }
	.wn-settings .wn-digest-schedule { padding:10px 0; border:0; border-radius:0; }
	.wn-settings .wn-digest-schedule + .wn-digest-schedule { border-top:1px solid #e2eaf2; }
	.wn-settings .wn-digest-enable { min-height:52px; margin:0; padding:4px 0; border-radius:0; background:transparent; }
	.wn-settings .wn-digest-enable input[type=checkbox] { position:relative; flex:none; appearance:none; width:38px; height:22px; margin:0; border-radius:99px; background:#bdcbd9; transition:background .15s; }
	.wn-settings .wn-digest-enable input[type=checkbox]::after { content:""; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #17355433; transition:transform .15s; }
	.wn-settings .wn-digest-enable input[type=checkbox]:checked { background:var(--wn-action); }
	.wn-settings .wn-digest-enable input[type=checkbox]:checked::after { transform:translateX(16px); }
	.wn-settings .wn-digest-enable input[type=checkbox]:focus-visible { outline:2px solid #286eab; outline-offset:2px; }
	.wn-settings .wn-account-devices.card { background:transparent; box-shadow:none; }
	.wn-settings .wn-account-devices > .wn-account-heading { padding:4px 4px 10px; }
	.wn-settings .wn-device-grid { padding:0; }
}

/* Shared mobile workspace rhythm. Keep the same controls, but make each view
   read like a screen in the app rather than a stack of desktop cards. */
@media (max-width:820px) {
	#main-wrapper > .navbar { min-height:44px; gap:8px; padding-inline:max(14px,var(--wn-safe-left)) max(14px,var(--wn-safe-right)); }
	.navbar .page-heading h1 { font-size:1.02rem; font-weight:650; letter-spacing:-.025em; }
	.navbar .page-actions .btn { min-height:34px; border-radius:8px; font-weight:600; }
	#main-wrapper .workspace-scroll { --workspace-top:10px; --workspace-side:12px; background:#f4f7fb; }
	.wn-mobile-nav { box-shadow:0 -5px 18px #183b6410; border-top-color:#e1e8f0; }
	.wn-mobile-nav > :is(a,button) { min-height:50px; color:#5b6c80; }
	.wn-mobile-nav [aria-current] { color:var(--wn-action); }
	.wn-mobile-nav [aria-current] > span { background:#e3efff; }
	.wn-mobile-sheet { padding-top:12px; box-shadow:0 -15px 45px #102b3b38; }
	.wn-mobile-sheet nav a { border-radius:9px; padding-inline:10px; }
	.wn-mobile-sheet nav a[aria-current] { background:#eaf2fe; }
	.wn-workspace :is(.form-control,.form-select) { border-radius:8px; }

	/* ToDo opens on the work itself, with a compact overview above it. */
	.wn-todo { gap:10px; padding-bottom:16px; }
	.wn-todo-intro { gap:9px; padding:12px 14px; border-radius:12px; box-shadow:0 1px 3px #183b6410; }
	.wn-todo-eyebrow { margin-bottom:2px; font-size:.66rem; letter-spacing:.1em; }
	.wn-todo-intro h2 { font-size:1.16rem; line-height:1.2; }
	.wn-todo-intro p:last-child { margin-top:3px; font-size:.72rem; line-height:1.3; }
	.wn-todo-summary { gap:6px; }
	.wn-todo-summary > div { display:flex; align-items:baseline; justify-content:center; gap:5px; min-height:38px; padding:5px 6px; border-radius:7px; }
	.wn-todo-summary strong { font-size:1rem; }
	.wn-todo-summary span { font-size:.68rem; }
	.wn-todo-toolbar { gap:7px; }
	.wn-todo-tabs { padding:3px; border-radius:10px; }
	.wn-todo-tabs a { flex:1; padding:7px 8px; text-align:center; }
	.wn-todo-search { min-height:40px; padding-inline:11px; border-radius:9px; }
	.wn-todo-results { padding-inline:3px; }
	.wn-todo-row { min-height:0; gap:7px 10px; padding:11px 12px; border-radius:10px; }
	.wn-todo-list { gap:7px; }
	.wn-todo-check { width:30px; height:30px; }
	.wn-todo-title { font-size:.94rem; }
	.wn-todo-meta { margin-top:5px; }
	.wn-todo-end { margin-top:0; }

	/* Queues and directories use one density and one surface treatment. */
	.workspace-scroll:has([data-ticket-results]) { background:#f4f7fb; }
	.wn-company-layout { gap:7px; }
	.wn-company-links a { min-height:36px; border-radius:8px; }
	.ticket-filter-panel.card { border-color:#dce5f0; box-shadow:0 1px 3px #183b6410; }
	.wn-queue-tools { min-height:36px; }
	.wn-ticket-list tbody { border-radius:11px; box-shadow:0 1px 3px #183b6410; }
	.wn-ticket-list tbody tr { padding-block:10px 8px; }
	.wn-ticket-list .wn-list-subject > a { font-size:.94rem; }
	.wn-ticket-list .wn-queue-meta { margin-bottom:2px; }
	.wn-ticket-list td:has([data-field=status]) { margin-top:2px; }
	.wn-list-clip { inset:26px 8px auto auto; }
	.wn-notices-page { box-shadow:0 1px 3px #183b6410; }
	.wn-notice-day { padding-block:5px; color:#506783; font-size:.73rem; font-weight:650; }
	.wn-notices-page .wn-notice-row,.wn-directory-row,.wn-mobile-users li { padding-block:11px; }
	.wn-directory-toolbar { padding-block:10px; }
	.wn-company-profile.card { box-shadow:0 1px 3px #183b6410; }
	.wn-company-section { padding-block:10px; }
	.wn-company-form { gap:10px; }

	/* Ticket conversation stays edge to edge; its compact chrome matches lists. */
	.desk-facts > .card-body { padding-top:12px; }
	.desk-tabs.wn-section-tabs { margin-top:7px; }
	.wn-stream-day { margin-block:12px 8px; }
	.wn-stream-entry { margin-block:7px; }
	.wn-stream-entry .wn-message-card { padding:9px 11px 11px; }
	.desk-thread > thread-composer.wn-reply-box { box-shadow:0 -5px 20px #183b6412; }
}

/* Email queue has its own structure so message actions keep their place on
   both wide screens and the WebView. */
.wn-email-queue { max-width:72rem; margin-inline:auto; overflow:hidden; }
.wn-email-list { padding-inline:16px; }
.wn-email-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:12px 18px; min-height:82px; padding:14px 2px; }
.wn-email-row + .wn-email-row { border-top:1px solid #e5ebf2; }
.wn-email-main { display:grid; gap:3px; min-width:0; overflow-wrap:anywhere; }
.wn-email-main strong { color:#213952; font-size:.92rem; line-height:1.35; font-weight:650; }
.wn-email-main span { color:#64778b; font-size:.8rem; }
.wn-email-delivery { display:grid; justify-items:start; gap:4px; }
.wn-email-delivery small { color:#687b8e; font-size:.73rem; font-variant-numeric:tabular-nums; white-space:nowrap; }
.wn-email-status { display:inline-flex; align-items:center; gap:5px; padding:3px 8px; border-radius:5px; background:#e8edf4; color:#53677c; font-size:.77rem; font-weight:600; }
.wn-email-status::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.wn-email-status[data-status="S"] { color:#207451; background:#ddf4e8; }
.wn-email-status[data-status="P"] { color:#a36a0d; background:#fff0cc; }
.wn-email-status[data-status="F"] { color:#ac3d49; background:#fae4e7; }
.wn-email-actions { display:flex; align-items:center; gap:7px; }
.wn-email-actions form { margin:0; }
.wn-email-actions .btn { display:inline-flex; align-items:center; gap:6px; min-height:36px; white-space:nowrap; }
.wn-email-actions svg { width:15px; height:15px; }
.wn-email-pagination { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:14px; padding:13px; border-top:1px solid #e5ebf2; color:#637589; font-size:.82rem; }
.wn-email-pagination a { color:var(--wn-action); font-weight:600; }
.wn-email-empty { margin:0; padding:32px 12px; text-align:center; color:#687b8e; }
.wn-email-preview { width:min(48rem,95vw); max-height:92dvh; padding:14px; border:0; border-radius:12px; box-shadow:0 24px 70px #112b4b4d; }
.wn-email-preview::backdrop { background:#12284588; }

@media (max-width:820px) {
	/* Company directory: compact search and immediately scannable rows. */
	.workspace-scroll:has(.wn-email-queue) { background:#f4f7fb; }
	#main-wrapper .workspace-scroll .wn-company-directory.card { border:0; background:transparent; box-shadow:none; overflow:visible; }
	.wn-directory-toolbar { grid-template-columns:minmax(0,1fr) auto; gap:7px; padding:0 0 10px; background:transparent; }
	.wn-directory-toolbar label:first-child { grid-column:1/-1; }
	.wn-directory-toolbar .form-label { color:#52677f; font-size:.75rem; font-weight:600; }
	.wn-directory-toolbar .form-control,.wn-directory-toolbar .form-select { height:40px; margin-top:3px; background:white; border-color:#dbe5f0; font-size:.87rem; }
	.wn-directory-toolbar .btn { align-self:end; min-height:40px; padding-inline:12px; background:white; font-size:.8rem; }
	.wn-directory-row { grid-template-columns:minmax(0,1fr) auto auto; gap:2px 8px; align-items:center; margin-bottom:8px; padding:11px 12px; border:1px solid #dde6f0; border-radius:11px; background:#fff; box-shadow:0 1px 3px #183b6410; }
	.wn-directory-row:hover { background:white; }
	.wn-directory-row .wn-directory-identity { grid-area:1/1/3/2; gap:9px; }
	.wn-directory-row .wn-company-avatar { width:38px; height:38px; }
	.wn-directory-identity strong { display:block; font-size:.92rem; line-height:1.25; }
	.wn-directory-identity small { margin-top:2px; font-size:.72rem; }
	.wn-directory-row > .desk-status { grid-area:1/2; justify-self:end; font-size:.72rem; }
	.wn-directory-row > .wn-record-menu { grid-area:1/3/3/4; }
	.wn-directory-row .wn-company-counts { grid-area:3/1/4/-1; width:100%; margin-top:6px; padding-top:7px; border-top:1px solid #edf1f6; }
	.wn-company-counts a { gap:4px; min-height:28px; padding:2px 0; font-size:.73rem; }
	.wn-company-counts a + a { padding-left:10px; }
	.wn-company-counts strong { font-size:.85rem; }
	.wn-company-counts small { font-size:.69rem; }

	/* Company details use an identity header, section tabs and grouped fields. */
	.wn-company-editor { gap:9px; }
	.wn-company-editor .card { border:1px solid #dce6f0; border-radius:11px; box-shadow:0 1px 3px #183b6410; }
	.wn-company-profile.card:has(.wn-record-menu) { grid-template-columns:44px minmax(0,1fr) auto; gap:4px 11px; padding:12px; background:linear-gradient(115deg,#eaf2ff,#fff 68%); }
	.wn-company-profile .wn-company-avatar { width:44px; height:44px; }
	.wn-company-profile h2 { margin:0 0 4px; font-size:1.12rem; font-weight:650; }
	.wn-company-profile > .btn { grid-column:2/4; min-height:34px; padding:4px 9px; margin-top:2px; justify-self:start; font-size:.78rem; }
	.wn-company-profile > .wn-record-menu { grid-column:3; grid-row:1; }
	.wn-company-shortcuts { position:sticky; top:0; z-index:6; margin:0; border:1px solid #dce6f0; background:#fff; box-shadow:0 2px 8px #183b640e; }
	.wn-company-shortcuts a { min-height:38px; border-radius:7px; font-size:.82rem; }
	.wn-company-shortcuts a:is(:hover,:focus-visible) { background:#eaf2fe; }
	.wn-company-section { gap:8px; padding:11px 13px; color:#23476e; }
	.wn-company-section h2 { font-size:.95rem; font-weight:650; }
	.wn-company-form { gap:0; padding:0 13px 12px; }
	.wn-company-form > .form-label,.wn-company-form > .wn-company-brand { display:block; padding:12px 0; border-bottom:1px solid #edf1f6; }
	.wn-company-form > .form-label:last-of-type { border-bottom:0; }
	.wn-company-form .form-label { color:#4b6078; font-size:.78rem; font-weight:600; }
	.wn-company-form :is(.form-control,.form-select) { min-height:42px; margin-top:5px; border-color:#dce5ee; background:#f9fbfe; font-size:.88rem; }
	.wn-company-form input[type=file]::file-selector-button { min-height:40px; margin:-6px 10px -6px -12px; padding-inline:12px; border:0; border-right:1px solid #dce5ee; background:#eaf2fe; color:var(--wn-action); font-weight:600; }
	.wn-company-form small { margin-top:4px; font-size:.7rem; line-height:1.35; }
	.wn-company-form > div:has(> .btn-primary) { padding-top:11px; }
	.wn-company-form > div > .btn-primary { width:100%; min-height:42px; }
	.wn-domain-edit { padding-block:11px; border-bottom:1px solid #edf1f6; }
	.wn-domain-edit summary { min-height:30px; font-size:.84rem; font-weight:550; }
	.wn-company-users li { padding:11px 13px; }

	/* People and delivery queues share the same grouped-list density. */
	.card:has(> .wn-users-directory),#main-wrapper .workspace-scroll .wn-users-directory { background:transparent; border:0; box-shadow:none; }
	.wn-mobile-users { display:grid; gap:7px; }
	.wn-mobile-users li { padding:11px 12px; border:1px solid #dce6f0; border-radius:11px; background:white; box-shadow:0 1px 3px #183b6410; }
	.wn-mobile-users li + li { border-top:1px solid #dce6f0; }
	.wn-mobile-users .wn-avatar { width:38px; height:38px; }
	.wn-mobile-users .wn-user-open { align-items:start; gap:10px; }
	.wn-mobile-users .wn-user-summary { gap:1px; }
	.wn-mobile-users .wn-user-summary strong { color:#203954; font-size:.91rem; line-height:1.25; }
	.wn-mobile-users .wn-user-summary small { font-size:.74rem; }
	.wn-mobile-users .wn-user-summary small:last-child { width:fit-content; margin-top:3px; padding:2px 7px; border-radius:5px; background:#eaf2fe; color:#315f93; font-size:.68rem; font-weight:600; }
	.wn-mobile-users dl { margin:7px 0 0; }

	.wn-user-editor .card { border:1px solid #dce6f0; border-radius:11px; box-shadow:0 1px 3px #183b6410; overflow:hidden; }
	.wn-user-editor .wn-user-profile-head { min-height:68px; padding:12px 14px; background:linear-gradient(115deg,#eaf2ff,#fff 75%); border-bottom:1px solid #e1e9f3; }
	.wn-user-editor .wn-user-profile-head h2 { font-size:1.07rem; font-weight:650; }
	.wn-user-editor .wn-user-profile-head small { font-size:.74rem; }
	.wn-user-editor .card-body { padding:4px 14px 12px; }
	.wn-user-editor #update_user_form .row { margin-inline:0; }
	.wn-user-editor #update_user_form .row > div { padding-inline:0; margin:0!important; padding-block:10px; border-bottom:1px solid #edf1f6; }
	.wn-user-editor #update_user_form .row:has(#firstname) { gap:8px; }
	.wn-user-editor #update_user_form .row:has(#firstname) > div { min-width:0; }
	.wn-user-editor #update_user_form .form-label { color:#4b6078; font-size:.77rem; font-weight:600; }
	.wn-user-editor #update_user_form :is(.form-control,.form-select) { min-height:42px; margin-top:5px; border-color:#dce5ee; background:#f9fbfe; }
	.wn-user-editor #update_user_form button[type=submit] { min-height:42px; margin-top:4px; }

	.wn-email-queue { border:1px solid #dce6f0; border-radius:11px; box-shadow:0 1px 3px #183b6410; }
	.wn-email-list { padding-inline:12px; }
	.wn-email-row { grid-template-columns:minmax(0,1fr) auto; gap:7px 9px; min-height:0; padding:12px 0; }
	.wn-email-main { grid-column:1/-1; }
	.wn-email-main strong { font-size:.88rem; }
	.wn-email-main span { font-size:.74rem; }
	.wn-email-delivery { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
	.wn-email-delivery small { font-size:.69rem; }
	.wn-email-actions { justify-self:end; }
	.wn-email-actions .btn { min-height:34px; padding:5px 8px; font-size:.72rem; }
	.wn-email-preview { position:fixed; inset:0; width:100%; height:100dvh; max-width:none; max-height:none; margin:0; border-radius:0; padding:calc(12px + var(--wn-safe-top)) 12px calc(12px + var(--wn-safe-bottom)); }
	.wn-email-preview iframe { height:calc(100dvh - 70px)!important; }
}

@media (min-width:821px) {
	.wn-create {
		width:100%; max-width:56rem; margin-inline:auto; padding:clamp(1.25rem,2vw,2rem);
		display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.15rem 1.5rem;
	}
	.wn-create > * { grid-column:1 / -1; min-width:0; }
	.wn-create > :is(.wn-create-company,.wn-create-priority) { grid-column:1; }
	.wn-create > .wn-create-company + .wn-create-site,.wn-create > ticket-date { grid-column:2; }
	.wn-create .form-label { margin:0; font-weight:600; color:var(--wn-ink); }
	.wn-create .form-label > :is(input:not([type="hidden"]),textarea,select),.wn-create .form-label + ticket-choice { margin-top:.35rem; }
	.wn-create .form-select,.wn-create input.form-control { min-height:40px; }
	.wn-create textarea { resize:vertical; }
	.wn-create > .btn-primary { justify-self:end; }
}

.wn-team-heading { display:flex; align-items:center; gap:.6rem; padding:.9rem 1rem; }
.wn-team-heading h2 { margin:0; color:var(--wn-ink); font-size:1rem; }
@media (min-width:821px) {
	.wn-users-directory { padding:0; }
	.wn-team-heading { padding:1.1rem 1.4rem; border-bottom:1px solid var(--wn-line); }
	.wn-mobile-users { display:block; margin:0; padding:0; list-style:none; }
	.wn-mobile-users li { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; padding:1rem 1.4rem; }
	.wn-mobile-users li + li { border-top:1px solid var(--wn-line); }
	.wn-mobile-users li > div:first-child { flex:1; min-width:0; display:grid; grid-template-columns:minmax(0,3fr) minmax(11rem,2fr); align-items:start; gap:1rem; }
	.wn-user-open { display:flex; align-items:center; gap:.75rem; color:var(--wn-ink); }
	.wn-user-open .wn-avatar { width:2.4rem; height:2.4rem; }
	.wn-user-summary { display:grid; gap:.12rem; overflow-wrap:anywhere; }
	.wn-user-summary small { color:#53677a; font-size:.8rem; }
	.wn-user-summary small:last-child { justify-self:start; background:#edf3fa; color:#375776; padding:.1rem .4rem; border-radius:.3rem; }
}

.wn-user-presence { display:grid; gap:2px; color:#596e80; font-size:.8rem; align-self:center; }
.wn-presence-state { display:inline-flex; align-items:center; gap:.4rem; font-weight:600; }
.wn-presence-state::before { content:""; width:.45rem; height:.45rem; border-radius:50%; background:currentColor; }
.wn-presence-state.is-online { color:#227450; }
.wn-profile-activity h2 { font-size:1rem; margin:0 0 .85rem; }
.wn-profile-activity dl { display:grid; grid-template-columns:auto minmax(0,1fr); gap:.5rem 1rem; margin:0; font-size:.85rem; }
.wn-profile-activity dd { margin:0; text-align:end; overflow-wrap:anywhere; }
@media (max-width:820px) {
	.wn-user-presence { margin:.4rem 0 0 48px; display:flex; align-items:baseline; flex-wrap:wrap; gap:.2rem .55rem; }
}

[data-todo-board] .wn-company-nav h2 {
	position:static; clip-path:none; width:auto; height:auto; overflow:visible;
	margin:.12rem .6rem .3rem;
	font-family:"Arial Narrow","Roboto Condensed",sans-serif; font-size:.68rem; line-height:1.2; font-weight:400;
	letter-spacing:-.02em; text-transform:none; color:#697887;
}

.wn-user-editor form:not(:has(#company_id option[value="team"]:checked)) .wn-assigned-companies {
	display: none;
}
/* Account and company access pickers */
:is(.wn-user-editor,.wn-company-form) ticket-choice {
	--wn-control-line: #cdd8e3;
	--wn-control-fill: white;
	--wn-control-focus: #376ba3;
}
:is(.wn-user-editor,.wn-company-form) ticket-choice .select2-selection--multiple {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	min-height: 44px;
	padding: 5px 30px 5px 8px;
}
:is(.wn-user-editor,.wn-company-form) .select2-selection--multiple .select2-selection__rendered {
	display: contents;
}
:is(.wn-user-editor,.wn-company-form) .select2-selection--multiple .select2-selection__choice {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 3px 5px 3px 4px;
	color: #29435b;
	background: #edf3f8;
	border: 0;
	border-radius: 8px;
	font-size: .82rem;
}
:is(.wn-user-editor,.wn-company-form) .select2-selection--multiple .select2-selection__choice__remove {
	position: static;
	order: 1;
	padding: 0 4px;
	border: 0;
	border-radius: 4px;
	color: #516780;
}
:is(.wn-user-editor,.wn-company-form) .select2-selection__choice__remove:hover { background: #dae5ef; }
:is(.wn-user-editor,.wn-company-form) .select2-search--inline .select2-search__field { margin: 0; max-width: 100%; font: inherit; }
.wn-access-options.select2-dropdown { padding: 5px; background: white; border: 1px solid #cdd8e3; border-radius: 10px; box-shadow: 0 8px 24px #24395020; }
.wn-access-options .select2-results__option { padding: 7px 10px; border-radius: 6px; }
.select2-container--default .wn-access-options .select2-results__option--selected { color: #233e5b; background: #edf3f8; }
.select2-container--default .wn-access-options .select2-results__option--highlighted[aria-selected] { color: #193d63; background: #dceaf8; }
.wn-access-options .select2-search--dropdown .select2-search__field { padding: 7px 10px; border-radius: 6px; }

button.wn-title-pencil, .desk-check-row button.wn-title-pencil {
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 2rem; height: 2rem; padding: 0; margin-inline-start: .25rem;
	border: 0; border-radius: .45rem; background: transparent; color: inherit; vertical-align: middle;
}
.wn-title-pencil svg { width: 1rem; height: 1rem; }
button.wn-title-pencil:hover, button.wn-title-pencil:focus-visible { background: #8297af29; }
.wn-subtask-item:has([data-subtask-title-form]:not([hidden])) .desk-check-row { display: none; }
[data-subtask-title-form]:not([hidden]) { display: flex; align-items: center; gap: .4rem; padding: .5rem var(--thread-gutter, .75rem); }
[data-subtask-title-form] .form-control { min-width: 0; }
[data-title-form]:not([hidden]) { display: flex; align-items: center; gap: .4rem; }
[data-title-form] .form-control { min-width: 0; }
.page-heading:has([data-title-form]:not([hidden])) h1,
.wn-mobile-ticket-title:has([data-title-form]:not([hidden])) h2 { display: none; }

.wn-nav-ticket-count { flex: none; margin-inline-start: auto; padding: .12rem .45rem; border-radius: 1rem; background: #eaf0f6; color: #495e74; font-size: .72rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.wn-company-links [aria-current] .wn-nav-ticket-count { background: #d9e7f9; color: #24496f; }
@media (max-width:820px) {
	.wn-ticket-list .wn-list-company { grid-area: 1/1/2/-1; }
}
@media (min-width:1051px) {
	.wn-ticket-list tr:has(.wn-list-company:not([hidden])) .wn-list-subject { width:30%; }
	.wn-ticket-list .wn-list-company { width:16%; min-width:9.5rem; }
}

.wn-queue-tools { flex-wrap:wrap; }
ticket-columns:not(:defined), .wn-ticket-list [data-column][hidden] { display:none !important; }
ticket-columns label { cursor:pointer; }
@media (max-width:820px) {
	.wn-ticket-list td[data-column].wn-column-shown:is(.wn-list-due, :has([data-field=owners])) { display:block; grid-column:1/-1; }
	.wn-ticket-list tr:has(.wn-list-company[hidden]) .wn-list-activity { display:block; grid-column:1/-1; }
	.wn-ticket-list .wn-list-due.wn-column-shown::before { content:"Due "; }
	.wn-ticket-list tr:has(td[data-column=priority][hidden]) .wn-list-subject > a { grid-column:1/-1; }
}

/* Shared surfaces for every CRM view and the public account forms. */
.workspace-scroll .card, .login-form-panel {
	background:var(--wn-surface);
	border:1px solid var(--wn-line);
	border-radius:var(--wn-radius);
	box-shadow:0 1px 3px #183b6410;
}
@media (max-width:820px) {
	/* The mobile queue uses its rows as cards; the ticket thread fills the screen. */
	.workspace-scroll :is(.wn-ticket-results,.wn-company-nav).card {
		background:transparent; border:0; border-radius:0; box-shadow:none;
	}
	.workspace-scroll .desk-detail > .card { border:0; border-radius:0; box-shadow:none; }
}
.wn-company-directory { display:grid; gap:.85rem; overflow:visible; }
.wn-company-directory .ticket-filter-panel, .wn-directory-results { min-width:0; margin:0; }
.wn-company-directory .wn-directory-toolbar { background:transparent; padding:0 1rem 1rem; }
.wn-directory-results .wn-directory-row:first-child { border-top:0; }
.wn-directory-results .wn-directory-row, .wn-directory-results .wn-mobile-users li {
	margin:0; border:0; border-radius:0; background:transparent; box-shadow:none;
}
.wn-directory-results .wn-directory-row + .wn-directory-row,
.wn-directory-results .wn-mobile-users li + li { border-top:1px solid var(--wn-line); }
.wn-directory-results .wn-mobile-users { gap:0; }
.wn-directory-results :is(.wn-directory-row, .wn-mobile-users li):is(:hover,:focus-within) { background:#f8fafd; }
.wn-company-editor .wn-company-profile, .wn-user-editor .wn-user-profile-head,
.wn-settings .wn-account-cover { background:var(--wn-surface); color:var(--wn-ink); }
.wn-settings .wn-account-cover { margin:0; border:1px solid var(--wn-line); border-radius:var(--wn-radius) var(--wn-radius) 0 0; }
.wn-settings .wn-account-cover::after { display:none; }
.wn-settings .wn-account-cover span { color:#526579; }
:is(.wn-company-profile, .wn-user-profile-head, .wn-account-cover, .login-form-heading) :is(h1,h2) {
	margin:0; color:var(--wn-ink); font-size:clamp(1.12rem,2vw,1.55rem); line-height:1.2; letter-spacing:-.025em;
}
.wn-company-section h2, .wn-team-heading h2, .wn-settings .wn-account-heading h2,
.wn-profile-activity h2, .wn-feedback-card h2 { margin:0; color:var(--wn-ink); font-weight:650; font-size:1.05rem; }
.wn-feedback-card { max-width:42rem; margin-inline:auto; gap:.75rem; }
.wn-feedback-card p { margin:0; }
:is(.workspace-scroll,.login-form-panel) .btn-primary {
	background:var(--wn-action); border-color:var(--wn-action); color:white;
}
:is(.workspace-scroll,.login-form-panel) .btn-primary:is(:hover,:focus-visible) { background:#194789; border-color:#194789; }
@media (min-width:821px) {
	.desk-tabs.wn-section-tabs { padding:.75rem 1rem; background:var(--wn-surface); border-color:var(--wn-line); }
	.desk-tabs.wn-section-tabs a[aria-current] { background:#eaf1fa; color:#244f82; border-color:transparent; box-shadow:none; }
}
.desk-tabs.wn-section-tabs :is(a,.wn-ai-tab):focus-visible { outline:2px solid var(--wn-action); outline-offset:-2px; }
@media (hover:hover) {
	.desk-tabs.wn-section-tabs :is(a:not([aria-current]),.wn-ai-tab):hover { background:#f0f4f9; color:#244f82; }
}
.wn-section-tabs { min-width:0; max-width:100%; }
.wn-settings > .wn-section-tabs { margin-bottom:1rem; }
@media (max-width:820px) {
	.wn-section-tabs.desk-tabs { flex-wrap:nowrap; overflow-x:auto; }
	.wn-section-tabs.desk-tabs a { flex:1 0 auto; white-space:nowrap; }
	.wn-settings > .wn-section-tabs { position:sticky; top:0; z-index:7; }
	.wn-directory-results .wn-mobile-users li, .wn-directory-results .wn-directory-row { padding:.7rem .85rem; }
}

/* Ticket detail */
.wn-ticket-reference {
	display:inline-block; padding:.2em .5em; margin-inline-end:.25em; vertical-align:.1em;
	border-radius:.4rem; background:#e9eff7; color:#486684; font-size:.72em; font-variant-numeric:tabular-nums;
}
.desk-detail .wn-stream-day { gap:.7rem; font-weight:600; }
.desk-detail .wn-stream-day::before { content:""; flex:1; border-top:1px solid #e2e8f0; }
.desk-detail .wn-stream-entry .wn-message-card { border-radius:.75rem; line-height:1.55; }
.desk-detail .wn-stream-entry:not(.wn-private-entry) .wn-message-card { background:#f4f7fb; }
.desk-detail .wn-own-message:not(.wn-private-entry) .wn-message-card { background:#edf3fb; }
.desk-detail .wn-private-entry .wn-message-card { background:#faf5eb; }
@media (min-width:821px) {
	.desk-facts .wn-facts-head { background:#fff; }
	.desk-detail .wn-stream-entry { margin-block:.8rem; }
	.desk-detail .wn-message-card { padding:.85rem 1rem; }
}
@media (max-width:820px) {
	.wn-mobile-ticket-title h2 { margin:.4rem 0; line-height:1.3; }
	.desk-thread > .wn-section-tabs.desk-tabs a { flex:1 1 auto; }
	.desk-detail .wn-stream-entry .wn-message-card { padding:.7rem .8rem; }
}

.wn-subtasks subtask-list { container-type:inline-size; }
.wn-subtasks .desk-check-row { min-height:3.15rem; }
.wn-subtask-copy { padding-block:.7rem; }
.wn-subtask-copy > span { font-weight:500; line-height:1.45; }
.wn-subtask-copy small { color:#607184; font-size:.72rem; font-variant-numeric:tabular-nums; }
@container (min-width:36rem) {
	.wn-subtask-copy { display:flex; align-items:baseline; gap:1.25rem; }
	.wn-subtask-copy small { flex:none; margin:0 .65rem 0 auto; }
}
@media (hover:hover) and (pointer:fine) {
	.wn-subtasks .desk-check-row:not(:hover):not(:focus-within) :is(.wn-title-pencil,.wn-subtask-delete) { opacity:0; }
	.wn-subtasks .desk-check-row:hover,.wn-subtasks .desk-check-row:focus-within { background:#f6f8fb; }
}

.wn-ticket-list td.wn-list-id { width:1%; white-space:nowrap; }
@media (max-width:820px) {
	/* A reply belongs below the ticket, outside the ID and priority track. */
	.wn-ticket-list td.wn-list-reply { grid-column:1/-1; min-width:0; }
	.wn-ticket-list td.wn-list-reply:not(:has(.wn-list-reply-person)) { display:none; }
	.wn-ticket-list td.wn-list-id { grid-area:1/1; align-self:center; width:auto; }
	.wn-ticket-list tr:has(.wn-list-id:not([hidden])):has([data-field=priority]) { grid-template-columns:max-content minmax(0,1fr); }
	.wn-ticket-list tr:has(.wn-list-id:not([hidden])):has(.wn-list-actions) { grid-template-columns:max-content minmax(0,1fr) auto; }
	.wn-ticket-list tr:has(.wn-list-id:not([hidden])) .wn-list-company { grid-column:2/-1; }
}

/* Keep the filter form mounted while AJAX replaces the adjacent list controls. */
.wn-company-results:has(.wn-queue-filters) {
	display:grid; grid-template-columns:auto minmax(0,1fr); align-content:start; align-items:center; gap:.5rem;
}
.wn-company-results > [data-ticket-results] { display:contents; }
.wn-company-results > [data-list-error], [data-ticket-results] > :not(.wn-queue-tools) { grid-column:1/-1; }
.wn-company-results > [data-list-error]:empty { display:none; }
.wn-queue-filters { min-width:0; }
.wn-queue-filters > summary.btn { display:inline-flex; align-items:center; gap:.4rem; padding:.4rem .65rem; }
.wn-queue-filters[open] { grid-column:1/-1; }
.wn-queue-filters[open] + [data-ticket-results] > .wn-queue-tools { grid-column:1/-1; }
.wn-queue-filters > form.ticket-fields { margin-top:.5rem; padding:.85rem; background:white; border:1px solid var(--wn-line); border-radius:.6rem; }
.wn-company-results .wn-queue-tools { justify-content:flex-start; gap:.45rem; margin:0; }
.wn-queue-tools strong { font-size:.8rem; color:#526579; }
.wn-filter-chip { display:inline-flex; align-items:center; gap:.4rem; padding:.18rem .55rem; background:#e9f1fb; color:#265786; font-size:.78rem; border-radius:1rem; }
.wn-ticket-results .wn-list-id a { color:#657489; font-variant-numeric:tabular-nums; }
.wn-ticket-results .wn-record-menu > button.btn:not(:hover,:focus-visible,[aria-expanded=true]) { border-color:transparent; background:transparent; }
.wn-ticket-results .wn-list-trigger .wn-priority { background:transparent; color:#586779; }
.wn-ticket-results .wn-list-trigger .wn-priority::before { width:.44rem; height:.44rem; transform:none; border-radius:50%; }
.wn-ticket-results .wn-priority[data-priority="Ridicată"]::before { background:#bc660c; }
.wn-ticket-results .wn-priority[data-priority="Urgentă"]::before { background:#c32f49; }
@media (min-width:821px) {
	.wn-ticket-results .wn-list-trigger .wn-priority:is([data-priority="Normală"],[data-priority="Scăzută"])::before { display:none; }
}
@media (min-width:1051px) {
	.wn-ticket-results .wn-ticket-list td { height:50px; padding-block:3px; }
	.wn-ticket-results .wn-ticket-list tr:has(.wn-list-company:not([hidden])) .wn-list-subject { width:38%; }
}
@media (min-width:1200px) {
	.wn-company-layout:has(.wn-queue-filters) { grid-template-columns:clamp(11rem,13vw,14rem) minmax(0,1fr); }
	.wn-company-layout:has(.wn-queue-filters) .wn-company-nav { box-shadow:none; border-color:transparent; background:transparent; }
}
@media (max-width:575px) {
	.wn-company-results .wn-queue-tools { gap:.25rem .4rem; }
	.wn-queue-tools .wn-queue-today { margin-left:0; }
}
.wn-library .wn-library-hero p { margin:0; color:#526579; }
.wn-library .wn-library-capacity { align-self:center; padding:.5rem; border:0; background:transparent; }
.wn-library-toolbar h2 span { color:#637389; font-weight:500; font-size:.85em; }
.wn-library:not(:has(.wn-library-upload)) .wn-library-top { display:block; }
.wn-library:has(.wn-library-upload) .wn-library-index:has([data-empty-library]),
.wn-library-index:has([data-empty-library]) .wn-library-toolbar form { display:none; }
.wn-stream-entry .wn-rich-message, .wn-stream-entry .desk-message { color:#263548; }
.wn-stream-entry .wn-message-author strong { font-weight:600; }
.wn-stream-entry .wn-message-stamp time { font-size:.72rem; color:#596b7d; }
.wn-private-entry .wn-private-mark { font-weight:600; color:#775319; }
