/* The Conversations tab is the customer Chat page's shape (NET-1798): its
   .ib-* and .th-* rules live in netron.css, scoped there under #p-support.
   The delivery ticks still follow Zernio unified-inbox; its MIT notice is
   retained in support.js. All colours use Netron tokens. */
#support-body{color:var(--nt-ink)}
#p-support .support-chat-venue{font-size:12px;color:var(--nt-ink-2);overflow-wrap:anywhere;line-height:1.4}
#p-support .ib-meta .support-chat-venue{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#p-support .support-chat-mobile{font-variant-numeric:tabular-nums}
#p-support .support-open-ticket-count{font-size:12px;font-weight:700;color:var(--nt-action-text);margin-left:4px}
#p-support .ib-prev .support-last-message{flex:0 1 auto;min-width:0}
#p-support .ib-prev>span:first-child{flex:none}
#p-support .ib-prev .support-reply-countdown{flex:none;margin-left:auto;text-align:right;overflow:visible;color:var(--nt-failed-text,#CE2F27);font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}
#p-support .ib-who .support-create-ticket{display:block;width:max-content;max-width:100%;margin-top:6px}
#p-support .support-contact-editor{width:min(280px,100%);margin-bottom:6px}
#p-support .support-contact-label{display:block;font-size:11.5px;color:var(--nt-ink-2);margin-bottom:3px}
#p-support .support-contact-editor input{width:100%;min-width:0;font:inherit;border:1px solid var(--nt-line);border-radius:var(--nt-radius);padding:8px 10px;background:var(--nt-surface);color:var(--nt-ink)}
#p-support .support-contact-status{font-size:11.5px;margin-top:2px;color:var(--nt-ink-2);overflow-wrap:anywhere}
#p-support .support-contact-status:empty{display:none}
#p-support .support-contact-status.support-error{color:var(--nt-failed-text)}
#p-support .support-access-heading{display:flex;align-items:baseline;gap:12px;width:100%;font-size:11.5px;color:var(--nt-ink-2)}
#p-support .support-access-heading .n-sub{width:auto;text-align:left}
#p-support .support-access-heading .support-chat-partner{margin-left:auto;white-space:nowrap}
#p-support .ib-filters{flex-wrap:wrap;flex:none}
#p-support.ibf-ticket-open .th-row,#p-support.ibf-ticket-open .th-card[data-ticket-status="DONE"],#p-support.ibf-ticket-open .th-card[data-ticket-status="CANCELLED"]{display:none}
.support-tabs,.support-toolbar,.support-filters,.support-chips{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.support-tabs button.on{background:color-mix(in oklab,var(--nt-action) 12%,var(--nt-surface));border-color:var(--nt-action);color:var(--nt-action-text)}
.support-chip{background:var(--nt-raised);border-color:var(--nt-action)}
.support-field{display:flex;flex-direction:column;gap:6px;min-width:130px;font-size:13px}
.support-field>span{color:var(--nt-ink-2)}
.support-field input,.support-field textarea,.support-field select,.support-toolbar>input{font:inherit;background:var(--nt-surface);color:var(--nt-ink);border:1px solid var(--nt-line);padding:10px;border-radius:var(--nt-radius);min-height:var(--nt-tap)}
.support-field textarea{min-height:100px;resize:vertical}
.support-table{overflow:auto;background:var(--nt-surface);border:1px solid var(--nt-line);border-radius:var(--nt-radius)}
.support-table table{width:100%;border-collapse:collapse;text-align:left}
.support-table td,.support-table th{padding:12px;border-bottom:1px solid var(--nt-line);white-space:normal;min-width:90px}
.support-table tr.support-row{cursor:pointer}
.support-table tr.support-row:hover,.support-table tr.support-row:focus-visible{background:color-mix(in srgb,var(--nt-action) 7%,var(--nt-surface));outline:none}
.support-error{color:var(--nt-failed-text);white-space:pre-wrap;overflow-wrap:anywhere}
.support-overlay{position:fixed;inset:0;background:color-mix(in srgb,var(--nt-ink) 25%,transparent);z-index:950;display:flex;justify-content:flex-end}
.support-drawer{width:min(620px,100%);background:var(--nt-surface);color:var(--nt-ink);padding:22px;overflow:auto;border-left:1px solid var(--nt-line)}
.support-drawer .support-toolbar{justify-content:space-between}
.support-form{display:grid;gap:16px}
.support-labels{border:1px solid var(--nt-line);border-radius:var(--nt-radius);display:flex;gap:12px;flex-wrap:wrap;padding:12px}
.support-labels label{min-width:100px;flex-direction:row;align-items:center}
.support-labels input{min-height:0}
/* NET-1819/NET-1820: the drawer's three label groups, the Labels cell's pills
   grouped App, Type, Area with a muted dot between the groups, the Resolved by
   line, and the compact Numbers table. Tokens only, so both themes hold. */
.support-label-groups{display:grid;gap:10px}
.support-labels legend{font-size:12px;font-weight:700;color:var(--nt-ink-2);padding:0 4px}
.support-labels .n-sub{font-size:12px;color:var(--nt-ink-2)}
span.support-chip{display:inline-block;padding:2px 8px;margin:1px 2px;font-size:12px;line-height:1.4;border:1px solid var(--nt-line);border-radius:999px;background:var(--nt-raised);color:var(--nt-ink);white-space:nowrap}
.support-chip-sep{color:var(--nt-ink-2);margin:0 4px}
.support-label-cell{white-space:normal}
.support-resolved{font-size:13px;color:var(--nt-ink-2)}
.support-numbers{margin-bottom:14px}
.support-numbers-body:empty{display:none}
.support-numbers-table{margin-top:10px}
.support-numbers-table td,.support-numbers-table th{padding:6px 10px;font-size:12.5px;min-width:0;white-space:nowrap}
.support-note{border-left:3px solid var(--nt-line);padding:10px;white-space:pre-wrap;overflow-wrap:anywhere}
.support-drawer-actions{position:sticky;bottom:0;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;background:var(--nt-surface);padding:12px 0 0;margin-top:12px}
.support-drawer-actions [role="alert"]{flex-basis:100%;margin:0;overflow-wrap:anywhere}
.support-drawer-actions [role="alert"]:empty{display:none}
.support-drawer-actions .support-add-note{margin-right:auto}
.support-message-meta{display:flex;justify-content:flex-end;gap:8px;font-size:11.5px;color:var(--nt-ink-2)}
.support-created,.support-history{font-size:12px;color:var(--nt-ink-2);white-space:pre-wrap}
.support-evidence,.support-learning{display:grid;gap:8px;overflow-wrap:anywhere}
.support-verification{display:grid;gap:8px;border:1px solid var(--nt-line);border-radius:var(--nt-radius);padding:12px}
.support-verification .support-field{flex-direction:row-reverse;justify-content:flex-end;align-items:flex-start;min-width:0}
.support-verification input{min-height:0;flex:none}
#p-support .support-conversation-tickets{display:flex;flex-direction:column;gap:6px;align-items:stretch;flex:none;padding:8px 12px;border-top:1px solid var(--nt-line);max-height:150px;overflow:auto}
#p-support .support-ticket-chip{border-radius:12px;font-size:12px;width:100%;max-width:100%;min-width:0;white-space:normal;text-align:left;overflow-wrap:anywhere}
#p-support .support-ticket-chip[hidden]{display:none}
.support-ticket-chip:focus-visible{outline:2px solid var(--nt-action);outline-offset:2px}
.support-ticks.read{color:var(--nt-action-text)}
/* The conversation header's access actions and the
   fixed sentence beside them when a block does not go through. */
#p-support .ib-acts{display:flex;align-items:center;gap:6px;flex:none;flex-wrap:wrap;justify-content:flex-end}
#p-support .ib-acts .support-error{font-size:11.5px;max-width:180px}
#p-support .ib-acts .support-error:empty{display:none}
#p-support .ib-acts .support-conversation-block[hidden]{display:none}
#p-support .ib-acts.has-owner-venues{max-width:60%}
#p-support .support-owner-venues{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end;max-width:420px;max-height:140px;overflow:auto}
#p-support .support-owner-venues .n-sub{width:100%;text-align:right;font-size:11.5px}
#p-support .support-owner-venues .support-chip{white-space:normal;overflow-wrap:anywhere}
#p-support .support-owner-current{border-color:var(--nt-action);color:var(--nt-action-text)}
@media(max-width:760px){#p-support .ib-head{flex-wrap:wrap}#p-support .ib-acts.has-owner-venues{max-width:100%;width:100%}#p-support .support-owner-venues{max-width:100%}}
#p-support .ib-pager{display:flex;gap:8px;padding:8px 10px;border-top:1px solid var(--nt-line);flex:none}
#p-support .ib-pager:empty{display:none}
#p-support .th-file{display:block;margin-top:6px;font-size:12.5px;color:var(--nt-action-text);overflow-wrap:anywhere}
.support-media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin-top:6px}
.support-media-tile{display:flex;flex-direction:column;gap:6px;align-items:center;background:var(--nt-raised);color:var(--nt-ink);border:1px solid var(--nt-line);border-radius:10px;padding:8px;cursor:pointer;max-width:100%}
.support-media-thumb{display:block;width:100%;max-width:240px;height:160px;object-fit:cover;border-radius:6px}
.support-voice{display:block;width:min(300px,100%);max-width:100%}
.support-media-gallery{display:none;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;padding:10px}
.support-gallery-tile{margin:0;min-width:0}
.support-gallery-tile figcaption{font-size:11.5px;color:var(--nt-ink-2);margin-top:4px;overflow-wrap:anywhere}
#p-support.ibf-media .th-row,#p-support.ibf-media .th-card,#p-support.ibf-media .support-conversation-tickets{display:none}
#p-support.ibf-media .support-media-gallery{display:grid}
.support-media-overlay{position:fixed;inset:0;z-index:1100;background:rgba(0,0,0,.8);display:flex;align-items:center;justify-content:center;padding:16px}
.support-media-viewer{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding-top:48px;color:var(--nt-ink);background:var(--nt-surface);border-radius:12px}
.support-viewer-close{position:absolute;right:12px;top:10px;z-index:1}
.support-full-image{display:block;max-width:100%;max-height:100%;object-fit:contain}
.support-full-video{display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;background:#000}
.support-document-preview{width:100%;height:100%;border:0}
#p-support .th-comp .th-why{margin:6px 0 0}
#p-support .th-comp .th-meta:empty{display:none}
@media(max-width:760px){.support-drawer{padding:16px}.support-filters .support-field{flex:1}}
/* Who wrote it, at a glance (Nihat, 2026-09-29): the owner's bubbles keep the
   thread's plain background; a support person's reply is light blue and
   NetronAi's is light green, from the theme tokens so both themes hold. */
#p-support .th-bub.th-bub-partner{background:color-mix(in srgb,var(--nt-action) 12%,var(--nt-surface))}
#p-support .th-bub.th-bub-agent{background:color-mix(in srgb,var(--nt-paid) 12%,var(--nt-surface))}
/* The template picker under a closed reply box (NET-1799): the select and
   each field take the full width, the body preview reads muted, and Send
   sits at the right edge as it does beside the text box. */
#p-support .th-tpl{display:flex;flex-direction:column;gap:6px;margin-top:8px}
#p-support .th-tpl select.n-search,#p-support .th-tpl input.n-search{width:100%;font:inherit}
#p-support .th-tpl .th-tpl-body{white-space:pre-wrap;overflow-wrap:anywhere;opacity:.85}
#p-support .th-tpl .th-tpl-fields{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:6px}
#p-support .th-tpl .th-send{justify-content:flex-end}
.support-list-filters{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 10px;flex:none;border-bottom:1px solid var(--nt-line)}
#p-support .support-list-filters .chip{white-space:nowrap;min-height:30px;height:30px;padding:4px 10px;font-size:12px;line-height:1.2}
#p-support .support-list-filters .chip.on{background:var(--nt-action);border-color:var(--nt-action);color:#fff}
#p-support .support-access-widget{width:420px;max-height:none;overflow:visible;justify-content:flex-start}
#p-support .support-access-widget .n-sub{text-align:left}
#p-support .support-access-search{width:100%;min-height:34px;height:34px;font-size:12px;border:1px solid var(--nt-line);border-radius:10px;padding:6px 10px;background:var(--nt-surface);color:var(--nt-ink);font:inherit}
#p-support .support-access-tags{display:flex;flex-wrap:wrap;gap:5px;max-height:112px;overflow:auto;width:100%}
#p-support .support-access-tag{display:inline-flex;align-items:center;gap:5px;max-width:100%}
#p-support .support-access-tag>span{min-width:0;overflow-wrap:anywhere}
#p-support .support-access-remove{border:0;background:none;color:var(--nt-ink);padding:0 4px;min-height:24px;height:24px;font-size:18px;line-height:1;flex:none}
#p-support .support-access-results{display:flex;flex-direction:column;gap:4px;width:100%;max-height:170px;overflow:auto}
#p-support .support-access-results:empty{display:none}
#p-support .support-access-result{text-align:left;white-space:normal;width:100%;justify-content:flex-start}
#p-support .support-access-widget .support-error{max-width:100%;width:100%}
.support-access-overlay{z-index:10050;align-items:center;justify-content:center;padding:18px}
.support-access-dialog{background:var(--nt-raised);color:var(--nt-ink);border:1px solid var(--nt-line);border-radius:16px;padding:22px;width:min(480px,100%);box-shadow:0 12px 50px #0003}
.support-access-dialog h3{margin:0 0 12px}.support-access-dialog p{overflow-wrap:anywhere}
.support-access-dialog .support-toolbar{justify-content:flex-end;margin-top:18px}
@media(max-width:760px){#p-support .support-access-widget{width:100%;max-width:100%}}
.support-profile-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.support-profile-link{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;color:#295cff;text-decoration:none;border:1px solid #dce2ed;border-radius:6px;font-weight:400}
.support-details-link{color:inherit;text-decoration:none}
a.support-details-link:hover,a.support-details-link:focus-visible{text-decoration:underline}
.support-profile-link:hover,.support-profile-link:focus-visible{background:#edf2ff}
/* The list and board share the same scoped filters and current page. */
.support-ticket-views{display:flex;gap:2px;margin-left:auto;padding:3px;border:1px solid var(--nt-line);border-radius:var(--nt-radius);background:var(--nt-raised)}
.support-ticket-views .n-btn{min-height:32px;padding:5px 14px;border-color:transparent;background:transparent}
.support-ticket-views .n-btn.on{background:var(--nt-surface);border-color:var(--nt-action);color:var(--nt-action-text)}
.support-filters{align-items:flex-end;gap:8px}
.support-filters .support-field{min-width:120px;flex:1 1 130px;max-width:240px;font-size:12px}
.support-filters .support-field select{min-height:34px;padding:6px 8px;max-width:100%}
.support-ticket-summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px;margin:0 0 8px;font-size:12px;color:var(--nt-ink-2)}
.support-ticket-summary .n-sub{font-size:12px}
.support-ticket-notice{font-size:13px;margin-bottom:10px;overflow-wrap:anywhere}
.support-ticket-notice:empty{display:none}
.support-ticket-table td,.support-ticket-table th{padding:10px;vertical-align:top;font-size:12px;min-width:0}
.support-ticket-table table{min-width:1280px}
.support-ticket-table .support-ticket-title{width:270px;min-width:230px;max-width:310px}
.support-ticket-title>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}
.support-ticket-table .support-ticket-scope{min-width:180px;max-width:230px;overflow-wrap:break-word}
.support-ticket-table .support-label-cell{min-width:125px;max-width:210px}
.support-ticket-table .support-row.is-saving{opacity:.7;cursor:wait}
.support-board-help{font-size:12px;color:var(--nt-ink-2);margin-bottom:10px}
.support-board-viewport{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;padding-bottom:12px}
.support-kanban{display:grid;grid-template-columns:repeat(5,minmax(270px,1fr));gap:12px;min-width:1398px;align-items:start}
.support-kanban-column{border:1px solid var(--nt-line);border-radius:12px;background:var(--nt-raised);min-width:0;transition:border-color .12s}
.support-kanban-heading{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:12px;border-bottom:1px solid var(--nt-line)}
.support-kanban-heading h3{font-size:12px;letter-spacing:.025em;margin:0;color:var(--nt-ink)}
.support-kanban-count{font-size:12px;border-radius:999px;background:var(--nt-surface);color:var(--nt-ink-2);padding:2px 8px;font-variant-numeric:tabular-nums}
.support-kanban-column[data-status="NEW"] .support-kanban-heading{border-top:3px solid var(--nt-action);border-radius:10px 10px 0 0}
.support-kanban-column[data-status="IN PROGRESS"] .support-kanban-heading{border-top:3px solid var(--nt-action-text);border-radius:10px 10px 0 0}
.support-kanban-column[data-status="WAITING"] .support-kanban-heading{border-top:3px solid #B07B10;border-radius:10px 10px 0 0}
.support-kanban-column[data-status="DONE"] .support-kanban-heading{border-top:3px solid var(--nt-paid,#1FA777);border-radius:10px 10px 0 0}
.support-kanban-column[data-status="CANCELLED"] .support-kanban-heading{border-top:3px solid var(--nt-ink-2);border-radius:10px 10px 0 0}
.support-kanban-lane{display:flex;flex-direction:column;gap:10px;padding:10px;min-height:210px;height:clamp(330px,calc(65vh * var(--nt-vu,1)),780px);overflow-y:auto;overscroll-behavior-y:contain}
.support-kanban-empty{font-size:12px;text-align:center;color:var(--nt-ink-2);padding:28px 12px;border:1px dashed var(--nt-line);border-radius:8px}
.support-kanban-card{display:flex;flex-direction:column;gap:8px;flex:none;min-width:0;background:var(--nt-surface);color:var(--nt-ink);border:1px solid var(--nt-line);border-radius:10px;padding:12px;cursor:grab;box-shadow:0 2px 5px #00000008}
.support-kanban-card:hover{border-color:var(--nt-action)}
.support-kanban-card:focus-visible{outline:2px solid var(--nt-action);outline-offset:2px}
.support-kanban-card.is-dragging{opacity:.5}
.support-kanban-card.is-saving{opacity:.7;cursor:wait}
.support-kanban-column.is-drop-target{border-color:var(--nt-action);box-shadow:inset 0 0 0 1px var(--nt-action)}
.support-card-top,.support-card-foot{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.support-card-number{font-weight:700;font-size:12px;color:var(--nt-ink-2)}
.support-card-number.n-btn{border:0;background:transparent;padding:0 3px;min-height:28px;text-align:left;border-radius:4px;color:var(--nt-action-text)}
.support-card-number.n-btn:hover{text-decoration:underline}
.support-card-priority{font-size:11.5px;border:1px solid var(--nt-line);border-radius:999px;padding:2px 7px;color:var(--nt-ink-2)}
.support-card-priority[data-priority="Urgent"],.support-card-priority[data-priority="High"]{color:var(--nt-failed-text,#CE2F27);border-color:currentColor}
.support-card-title{margin:0;font-size:14px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.support-card-scope,.support-card-contact{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.support-card-scope{color:var(--nt-ink-2)}
.support-card-contact .n-sub,.support-card-attachments{font-size:11.5px;color:var(--nt-ink-2)}
.support-kanban-card .support-label-cell .support-chip{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:11.5px;padding:1px 6px}
.support-card-foot{border-top:1px solid var(--nt-line);padding-top:8px;font-size:11.5px;color:var(--nt-ink-2);flex-wrap:wrap}
.support-card-assignee{font-weight:600}
.support-card-date{font-variant-numeric:tabular-nums}
.support-card-move{display:flex;gap:6px;align-items:center}
.support-card-move select{flex:1;min-width:0;font:inherit;font-size:11.5px;color:var(--nt-ink);background:var(--nt-surface);border:1px solid var(--nt-line);border-radius:7px;padding:5px;min-height:32px}
.support-card-move button{font-size:11.5px;min-height:32px;padding:5px 9px}
.support-card-media{display:grid;grid-template-columns:repeat(auto-fit,minmax(70px,1fr));gap:5px;min-width:0}
.support-card-media-slot{height:132px;min-height:132px;min-width:0;border-radius:6px;background:var(--nt-raised)}
.support-card-media .support-media-tile{padding:4px;gap:4px;width:100%;font-size:11.5px;height:132px;min-height:132px;box-sizing:border-box;overflow:hidden}
.support-card-media .support-media-thumb{height:90px;max-width:100%;object-fit:cover}
.support-card-media .support-voice-wrap{grid-column:1/-1;max-width:100%;min-width:0}
.support-card-media .support-voice{width:100%;height:32px;min-width:0}
.support-card-media .support-voice-wrap button{white-space:normal;min-height:30px;font-size:11.5px;padding:4px}
@media(max-width:760px){.support-ticket-views{margin-left:0}.support-filters .support-field{max-width:none;min-width:110px}.support-kanban{grid-template-columns:repeat(5,260px);min-width:1348px}.support-kanban-lane{height:calc(60vh * var(--nt-vu,1))}.support-card-move select,.support-card-move button{min-height:40px}}
/* NetronEats Announcements, the pinned master-only conversation (NET-4025) */
.support-announce-row{border-bottom:1px solid var(--line,#e5e5e5)}
.support-announce-pin{font-size:11.5px;text-transform:uppercase;letter-spacing:.04em;opacity:.7}
.support-announce-members{margin:8px 12px;font-size:12px}
.support-announce-member-list{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 12px}
.support-announce-member{display:flex;gap:6px;align-items:center}
.support-announce-setup{margin:8px 12px}
.support-announce-actions{display:flex;gap:6px;margin-top:6px}
.support-announce-cancelled,.support-announce-failed{opacity:.75}
/* NET-4025 change request: Janet's open drafts stay above Nihat's send box. */
#p-support .support-announce-sticky{flex:none;max-height:calc(40vh * var(--nt-vu,1));overflow-y:auto;border-top:1px solid var(--line,#e5e5e5);padding:6px 0;display:flex;flex-direction:column;gap:6px}
#p-support .support-announce-sticky-head{margin:0 12px}
#p-support .support-announce-comp{display:flex;flex-direction:column;gap:6px}
#p-support .support-announce-text{width:100%;box-sizing:border-box;min-height:64px;max-height:calc(30vh * var(--nt-vu,1));resize:vertical;font:inherit;padding:8px 10px;border:1px solid var(--line,#e5e5e5);border-radius:12px}
#p-support .support-announce-send-row{display:flex;justify-content:space-between;align-items:center;gap:8px}
#p-support .support-announce-editing{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
@media (max-width:600px){#p-support .support-announce-sticky{max-height:calc(35vh * var(--nt-vu,1))}#p-support .support-announce-actions{flex-wrap:wrap}}
