:root { font-size:106.25%; --tf-link:#9bb8ff; --tf-chart-grid:#38424f; --tf-bg:#111315; --tf-panel:#181b1f; --tf-panel-alt:#22262b; --tf-border:#2c3137; --tf-border-light:#3a4149; --tf-text:#edf0f2; --tf-muted:#b5bec8; --tf-faint:#9aa6b2; --tf-accent:#71879e; --tf-accent-soft:#29323b; --tf-green:#62a985; --tf-amber:#c7a35b; --tf-purple:#9389c4; --tf-sidebar-bg:#111b2c; --tf-sidebar-border:#263850; --tf-sidebar-text:#edf3fc; --tf-sidebar-muted:#9eacc1; --tf-sidebar-hover:#1b293d; --tf-sidebar-active:#293b55; }
html[data-theme="light"] {
  color-scheme:light;
  --tf-bg:#edf0f4;
  --tf-panel:#f3f4f5;
  --tf-panel-alt:#e7ebef;
  --tf-border:#aab5c0;
  --tf-border-light:#778695;
  --tf-text:#17212b;
  --tf-muted:#324251;
  --tf-faint:#414f5e;
  --tf-accent:#3c5871;
  --tf-accent-soft:#d5e0ec;
  --tf-green:#245c40;
  --tf-amber:#735017;
  --tf-purple:#594784;
  --tf-sidebar-bg:#dbe1e7;
  --tf-sidebar-border:#a6b3c0;
  --tf-sidebar-text:#223041;
  --tf-sidebar-muted:#314153;
  --tf-sidebar-hover:#dce4ec;
  --tf-sidebar-active:#bccddd;
  --tf-link:#254d84;
  --tf-chart-grid:#bac5d0;
}
.brand-mark { align-items:center; background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.45); border-radius:.5rem; display:inline-flex; font-size:.75rem; height:2rem; justify-content:center; letter-spacing:.04em; width:2rem; }
.dashboard-body { background:var(--tf-bg); color:var(--tf-text); font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; margin:0; }
.tf-app-shell { display:flex; min-height:100vh; }
.tf-sidebar { background:var(--tf-sidebar-bg); border-right:1px solid var(--tf-sidebar-border); display:flex; flex:0 0 228px; flex-direction:column; align-self:flex-start; height:100dvh; min-height:100vh; position:sticky; top:0; }
.tf-brand { align-items:center; border-bottom:1px solid var(--tf-sidebar-border); color:var(--tf-sidebar-text); display:flex; flex-shrink:0; gap:.65rem; min-height:62px; padding:.8rem 1rem; text-decoration:none; }
.tf-brand:hover { color:#fff; }
.tf-brand-mark { align-items:center; background:#5877a4; border-radius:7px; color:#fff; display:inline-flex; height:30px; justify-content:center; width:30px; }
.tf-brand strong,.tf-brand small { display:block; }
.tf-brand strong { font-size:.9rem; line-height:1.1; }
.tf-brand small { color:var(--tf-sidebar-muted); font-size:.64rem; margin-top:.22rem; }
.tf-nav { display:flex; flex:1; min-height:0; flex-direction:column; gap:.2rem; overflow-y:auto; padding:.65rem .65rem 1rem; }
.tf-nav-section { margin:0 0 .65rem; }
.tf-nav-section>summary { align-items:center; color:var(--tf-sidebar-muted); cursor:pointer; display:flex; font-size:.68rem; font-weight:600; gap:.45rem; list-style:none; padding:.65rem .6rem .4rem; }
.tf-nav-section>summary::-webkit-details-marker { display:none; }
.tf-nav-section>summary::before { content:"›"; font-size:1rem; line-height:1; transform:rotate(0deg); }
.tf-nav-section[open]>summary::before { transform:rotate(90deg); }
.tf-nav-section-links { display:flex; flex-direction:column; gap:.15rem; padding-left:.4rem; }
.tf-nav-link { align-items:center; border-radius:5px; color:var(--tf-sidebar-muted); display:flex; font-size:.8rem; gap:.65rem; min-height:35px; padding:.4rem .65rem; position:relative; text-decoration:none; transition:background .15s,color .15s; }
.tf-nav-link svg,.tf-icon-button svg,.tf-search svg,.tf-empty-icon svg { fill:none; height:17px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; width:17px; }
.tf-nav-link:hover { background:var(--tf-sidebar-hover); color:var(--tf-sidebar-text); }
.tf-nav-link.active { background:var(--tf-sidebar-active); color:#c6d8ff; font-weight:600; }
.tf-nav-link.active::before { background:#96b7ff; border-radius:0 2px 2px 0; content:""; left:0; position:absolute; top:8px; bottom:8px; width:3px; }
.tf-nav-link:focus-visible,.tf-nav-section>summary:focus-visible { outline:2px solid #96b7ff; outline-offset:2px; }
.tf-nav-new-ticket { background:var(--tf-accent); color:#fff; font-weight:600; margin-top:.35rem; }
.tf-nav-new-ticket:hover { background:#5a8df2; color:#fff; }
.tf-nav-link small { color:var(--tf-sidebar-muted); font-size:.55rem; margin-left:auto; text-transform:uppercase; }
.tf-nav-link.is-disabled { cursor:default; opacity:.72; }
.tf-sidebar-profile { align-items:center; border-top:1px solid var(--tf-sidebar-border); display:flex; flex-shrink:0; gap:.65rem; margin-top:auto; padding:.8rem; }
.tf-avatar { align-items:center; background:#2a3c60; border-radius:50%; color:#c9d8f7; display:inline-flex; flex:0 0 34px; font-size:.7rem; font-weight:700; height:34px; justify-content:center; }
.tf-profile-copy { min-width:0; }
.tf-profile-copy strong,.tf-profile-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tf-profile-copy strong { color:var(--tf-sidebar-text); font-size:.76rem; }
.tf-profile-copy small { color:var(--tf-sidebar-muted); font-size:.67rem; }
.tf-sidebar-profile form { margin-left:auto; }
.tf-icon-button { background:transparent; border:0; color:var(--tf-sidebar-muted); padding:.35rem; }
.tf-icon-button:hover { color:#fff; }
.tf-main-column { flex:1; min-width:0; }
.tf-account-menu { flex:0 0 auto; position:relative; z-index:50; }
.tf-account-trigger { align-items:center; border:2px solid var(--tf-sidebar-border); border-radius:50%; cursor:pointer; display:flex; justify-content:center; list-style:none; padding:2px; }
.tf-account-trigger::-webkit-details-marker { display:none; }
.tf-account-trigger .tf-avatar { background:#2a3c60; color:#e1e9ff; flex-basis:30px; height:30px; width:30px; }
.tf-account-trigger:hover,.tf-account-menu[open]>.tf-account-trigger { border-color:#96b7ff; }
.tf-account-trigger:focus-visible,.tf-account-logout:focus-visible { outline:2px solid #c9d8f7; outline-offset:3px; }
.tf-account-panel { background:var(--tf-sidebar-bg); border:1px solid var(--tf-sidebar-border); border-radius:8px; box-shadow:0 12px 32px rgba(0,0,0,.3); color:var(--tf-sidebar-text); padding:.45rem; position:absolute; right:0; top:calc(100% + .65rem); width:min(250px,calc(100vw - 2rem)); }
.tf-account-identity { border-bottom:1px solid var(--tf-sidebar-border); padding:.65rem; overflow-wrap:anywhere; }
.tf-account-identity strong,.tf-account-identity small { display:block; }
.tf-account-identity strong { font-size:.82rem; }
.tf-account-identity small { color:var(--tf-sidebar-muted); font-size:.7rem; margin-top:.2rem; }
.tf-account-logout { align-items:center; background:transparent; border:0; border-radius:5px; color:var(--tf-sidebar-text); display:flex; font:inherit; font-size:.78rem; gap:.55rem; margin-top:.3rem; padding:.65rem; text-align:left; width:100%; }
.tf-account-logout:hover { background:var(--tf-sidebar-hover); }
.tf-account-logout svg { fill:none; height:17px; stroke:currentColor; stroke-width:1.8; width:17px; }
.tf-topbar { --tf-bg:var(--tf-sidebar-bg); --tf-panel:var(--tf-sidebar-bg); --tf-panel-alt:var(--tf-sidebar-hover); --tf-border:var(--tf-sidebar-border); --tf-border-light:#587398; --tf-text:var(--tf-sidebar-text); --tf-muted:var(--tf-sidebar-muted); --tf-faint:var(--tf-sidebar-muted); --tf-accent-soft:var(--tf-sidebar-active); --tf-link:#c9d8f7; align-items:center; background:var(--tf-sidebar-bg); border-bottom:1px solid var(--tf-sidebar-border); color:var(--tf-sidebar-text); color-scheme:dark; display:flex; gap:1rem; height:62px; padding:0 1.5rem; position:relative; }
.tf-search { align-items:center; background:var(--tf-panel-alt); border:1px solid var(--tf-border); border-radius:6px; color:var(--tf-faint); display:flex; font-size:.82rem; gap:.55rem; inset-inline:0; margin-inline:auto; max-width:430px; padding:.45rem .65rem; position:absolute; width:min(430px,42vw); }
.tf-search kbd { background:var(--tf-panel); border:1px solid var(--tf-border-light); color:var(--tf-faint); font:inherit; margin-left:auto; padding:.05rem .35rem; }
.tf-role-badge { background:var(--tf-accent-soft); border:1px solid #30497d; border-radius:999px; color:#a9c1f7; font-size:.67rem; font-weight:600; margin-left:auto; padding:.28rem .55rem; text-transform:uppercase; }
.tf-user-topbar-title { color:var(--tf-muted); font-size:.78rem; font-weight:600; }
.tf-status-dot { align-items:center; color:var(--tf-muted); display:flex; font-size:.7rem; gap:.4rem; }
.tf-status-dot i { background:var(--tf-green); border-radius:50%; box-shadow:0 0 0 3px rgba(73,163,119,.14); height:7px; width:7px; }
.tf-theme-toggle { align-items:center; background:var(--tf-panel-alt); border:1px solid var(--tf-border); border-radius:999px; color:var(--tf-muted); display:inline-flex; flex:0 0 auto; font-size:.68rem; font-weight:600; gap:.35rem; min-height:32px; padding:.35rem .58rem; }
.tf-theme-toggle:hover { border-color:var(--tf-border-light); color:var(--tf-text); }
.tf-topbar-controls { align-items:center; display:flex; flex:0 0 auto; gap:.65rem; margin-left:auto; }
.tf-topbar-controls .tf-theme-toggle { flex:0 0 34px; height:34px; justify-content:center; padding:0; width:34px; }
.tf-topbar-controls .tf-account-menu { margin-left:0; }
.tf-topbar>.tf-status-dot { display:flex; flex-shrink:0; white-space:nowrap; }
@media (min-width:821px) { .tf-topbar>.tf-search { width:min(430px,calc(100% - 330px)); } }
.tf-theme-toggle svg { fill:none; height:15px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; width:15px; }
.tf-notification-button { align-items:center; background:var(--tf-panel-alt); border:1px solid var(--tf-border); border-radius:50%; color:var(--tf-muted); display:inline-flex; flex:0 0 34px; height:34px; justify-content:center; position:relative; text-decoration:none; width:34px; }
.tf-notification-button:hover { border-color:var(--tf-border-light); color:var(--tf-text); }
.tf-notification-button svg { fill:none; height:17px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; width:17px; }
.tf-notification-dot { background:#e6535f; border:2px solid var(--tf-bg); border-radius:50%; height:9px; position:absolute; right:-1px; top:-1px; width:9px; }
.tf-theme-icon-dark { display:none; }
html[data-theme="light"] .tf-theme-icon-light { display:none; }
html[data-theme="light"] .tf-theme-icon-dark { display:block; }
.tf-dashboard { margin:0 auto; max-width:1480px; padding:2rem; }
.tf-page-heading { align-items:flex-end; display:flex; gap:2rem; justify-content:space-between; margin-bottom:1.6rem; }
.tf-page-heading h1 { color:var(--tf-text); font-size:1.45rem; font-weight:600; margin:0; }
.tf-page-heading p:not(.tf-eyebrow) { color:var(--tf-muted); font-size:.82rem; margin:.35rem 0 0; }
.tf-eyebrow { color:var(--tf-accent); font-size:.64rem; font-weight:600; letter-spacing:.08em; margin:0 0 .4rem; text-transform:uppercase; }
.tf-primary-button { background:var(--tf-accent); border:0; border-radius:6px; color:#fff; font-size:.78rem; font-weight:600; padding:.52rem .8rem; }
.tf-primary-button:disabled { cursor:not-allowed; opacity:.45; }
.tf-primary-button,.tf-secondary-button { align-items:center; display:inline-flex; gap:.3rem; justify-content:center; text-decoration:none; }
.tf-primary-button:hover { color:#fff; }
.tf-secondary-button { background:transparent; border:1px solid var(--tf-border-light); border-radius:6px; color:var(--tf-muted); font-size:.78rem; padding:.5rem .8rem; }
.tf-secondary-button:hover { border-color:var(--tf-muted); color:var(--tf-text); }
.tf-stat-grid { display:grid; gap:.85rem; grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:.9rem; }
.tf-stat-card { align-items:flex-start; background:var(--tf-panel); border:1px solid var(--tf-border); border-radius:8px; display:flex; gap:.8rem; min-height:118px; padding:1rem; }
.tf-stat-icon { align-items:center; border-radius:6px; display:flex; flex:0 0 34px; height:34px; justify-content:center; }
.tf-stat-icon.blue { background:#152238; color:var(--tf-accent); }.tf-stat-icon.amber { background:#2b2312; color:var(--tf-amber); }.tf-stat-icon.purple { background:#231f3b; color:var(--tf-purple); }.tf-stat-icon.green { background:#132a22; color:var(--tf-green); }
.tf-stat-card span { color:var(--tf-muted); font-size:.7rem; }.tf-stat-card strong { color:var(--tf-text); display:block; font-size:1.45rem; line-height:1.25; margin-top:.1rem; }.tf-stat-card small { color:var(--tf-faint); display:block; font-size:.62rem; margin-top:.25rem; }
.tf-dashboard-grid { display:grid; gap:.9rem; grid-template-columns:minmax(0,2fr) minmax(260px,.75fr); }
.tf-panel { background:var(--tf-panel); border:1px solid var(--tf-border); border-radius:8px; }
.tf-panel-header { align-items:center; border-bottom:1px solid var(--tf-border); display:flex; justify-content:space-between; padding:.95rem 1rem; }
.tf-panel-header h2 { color:var(--tf-text); font-size:.82rem; font-weight:600; margin:0; }.tf-panel-header p { color:var(--tf-faint); font-size:.67rem; margin:.2rem 0 0; }
.tf-notification-list { display:flex; flex-direction:column; }
.tf-notification-item { align-items:center; border-top:1px solid var(--tf-border); display:grid; gap:.85rem; grid-template-columns:auto minmax(0,1fr) auto; padding:.9rem 1rem; }
.tf-notification-item:first-child { border-top:0; }
.tf-notification-item.is-unread { background:var(--tf-accent-soft); }
.tf-notification-symbol { align-items:center; background:var(--tf-panel-alt); border:1px solid var(--tf-border); border-radius:50%; color:var(--tf-accent); display:flex; height:36px; justify-content:center; width:36px; }
.tf-notification-symbol svg { fill:none; height:17px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; width:17px; }
.tf-notification-copy strong { color:var(--tf-text); display:block; font-size:.76rem; }
.tf-notification-copy p { color:var(--tf-muted); font-size:.7rem; margin:.2rem 0; }
.tf-notification-copy small { color:var(--tf-faint); font-size:.62rem; }
.tf-text-button { background:transparent; border:0; color:#8dacfa; cursor:pointer; font-size:.7rem; font-weight:600; padding:.4rem; }
.tf-text-button:hover { color:var(--tf-text); text-decoration:underline; }
.tf-panel-action { color:var(--tf-faint); font-size:.68rem; }
.tf-table-heading { border-bottom:1px solid var(--tf-border); color:var(--tf-faint); display:grid; font-size:.59rem; grid-template-columns:minmax(220px,1fr) 110px 90px 80px; letter-spacing:.06em; padding:.6rem 1rem; text-transform:uppercase; }
.tf-empty-state { align-items:center; display:flex; flex-direction:column; justify-content:center; min-height:245px; padding:2rem; text-align:center; }
.tf-empty-icon { align-items:center; background:var(--tf-panel-alt); border:1px solid var(--tf-border); border-radius:50%; color:var(--tf-muted); display:flex; height:44px; justify-content:center; width:44px; }
.tf-empty-state h3 { font-size:.82rem; margin:.8rem 0 .25rem; }.tf-empty-state p { color:var(--tf-faint); font-size:.68rem; margin:0; max-width:330px; }
.tf-queue-panel { overflow:hidden; }.tf-queue-row { align-items:center; border-bottom:1px solid var(--tf-border); color:var(--tf-muted); display:flex; font-size:.75rem; justify-content:space-between; padding:.85rem 1rem; }.tf-queue-row span { align-items:center; display:flex; gap:.55rem; }.tf-queue-row i { border-radius:2px; height:8px; width:8px; }.tf-queue-row i.tier-one { background:var(--tf-accent); }.tf-queue-row i.tier-two { background:var(--tf-amber); }.tf-queue-row i.tier-three { background:var(--tf-purple); }.tf-queue-row strong { color:var(--tf-text); }.tf-queue-note { color:var(--tf-faint); font-size:.63rem; padding:.9rem 1rem; }
@media (max-width:980px) { .tf-sidebar { flex-basis:190px; }.tf-stat-grid { grid-template-columns:repeat(2,1fr); }.tf-dashboard-grid { grid-template-columns:1fr; } }
@media (max-width:680px) { .tf-app-shell { display:block; }.tf-sidebar { border-bottom:1px solid var(--tf-sidebar-border); border-right:0; min-height:auto; position:static; width:100%; }.tf-brand { padding:.9rem 1rem; }.tf-nav { flex-direction:row; overflow-x:auto; padding:0 .75rem .75rem; }.tf-nav-link { flex:0 0 auto; }.tf-nav-link small,.tf-sidebar-profile { display:none; }.tf-topbar { padding:0 1rem; }.tf-status-dot { display:none; }.tf-dashboard { padding:1.25rem 1rem; }.tf-page-heading { align-items:flex-start; flex-direction:column; gap:1rem; }.tf-stat-grid { grid-template-columns:1fr; }.tf-table-heading { display:none; } }

.tf-stat-grid-five { grid-template-columns:repeat(5,minmax(0,1fr)); }
.tf-stat-icon.gray { background:#1c2028; color:#6b7686; }
.tf-ticket-panel { overflow:hidden; }
.tf-table-scroll { overflow-x:auto; }
.tf-ticket-table { --bs-table-bg:var(--tf-panel); --bs-table-border-color:var(--tf-border); --bs-table-color:var(--tf-muted); --bs-table-hover-bg:var(--tf-panel-alt); --bs-table-hover-color:var(--tf-text); background:var(--tf-panel); border-collapse:collapse; margin-bottom:0; min-width:940px; width:100%; }
.tf-ticket-table th { background:var(--tf-panel-alt); color:var(--tf-faint); font-size:.6rem; font-weight:500; letter-spacing:.06em; padding:.7rem 1rem; text-align:left; text-transform:uppercase; }
.tf-ticket-table td { background:var(--tf-panel); border-top:1px solid var(--tf-border); color:var(--tf-muted); font-size:.72rem; padding:.8rem 1rem; vertical-align:middle; }
.tf-ticket-table tbody tr:hover td { background:var(--tf-panel-alt); }
.tf-ticket-id { color:#8dacfa; font-family:"IBM Plex Mono",Consolas,monospace; font-weight:600; text-decoration:none; }
.tf-ticket-title { color:var(--tf-text); font-weight:500; text-decoration:none; }
.tf-ticket-id:hover,.tf-ticket-title:hover,.tf-text-link:hover { color:#b9ccf7; }
.tf-pill { border:1px solid currentColor; border-radius:4px; display:inline-flex; font-size:.62rem; font-weight:600; padding:.18rem .42rem; white-space:nowrap; }
.tf-pill[class*="priority-"],.tf-pill[class*="status-"] { border-width:2px; font-weight:700; }
.tf-pill.status-open { color:#91b8ff; }
.priority-low { color:var(--tf-green); }.priority-medium { color:var(--tf-amber); }.priority-high { color:#db7b3e; }
.status-open { color:var(--tf-accent); }.status-wop { color:var(--tf-amber); }.status-on_hold { color:var(--tf-purple); }.status-resolved { color:var(--tf-green); }.status-closed { color:#7c8798; }
.tf-muted { color:var(--tf-faint); }.tf-text-link { color:#8dacfa; font-size:.72rem; margin-top:.8rem; text-decoration:none; }
.tf-form-panel { margin:0 auto; max-width:900px; padding:1.35rem; }
.tf-ticket-form { display:flex; flex-direction:column; gap:1.15rem; }
.tf-form-grid { display:grid; gap:1rem; grid-template-columns:repeat(3,1fr); }
.tf-form-grid-two { grid-template-columns:repeat(2,1fr); }
.tf-form-field label,.tf-form-field legend { color:var(--tf-text); display:block; font-size:.72rem; font-weight:600; margin-bottom:.4rem; }
.tf-form-field input[type="text"],.tf-form-field textarea,.tf-form-field select { background:var(--tf-panel-alt); border:1px solid var(--tf-border-light); border-radius:5px; box-sizing:border-box; color:var(--tf-text); font:inherit; font-size:.8rem; outline:0; padding:.65rem .72rem; width:100%; }
.tf-form-field textarea { resize:vertical; }
.tf-form-field input:focus,.tf-form-field textarea:focus,.tf-form-field select:focus { border-color:var(--tf-accent); box-shadow:0 0 0 2px rgba(76,130,240,.12); }
.tf-tag-field { border:0; margin:0; padding:0; }
.tf-tag-field ul { display:flex; flex-wrap:wrap; gap:.55rem; list-style:none; margin:0; padding:0; }
.tf-tag-field label { align-items:center; background:var(--tf-panel-alt); border:1px solid var(--tf-border); border-radius:5px; color:var(--tf-muted); cursor:pointer; display:flex; font-weight:400; gap:.35rem; margin:0; padding:.45rem .6rem; }
.tf-tag-field input { accent-color:var(--tf-accent); }
.tf-field-error,.tf-form-errors { color:#ee8e86; display:block; font-size:.68rem; margin-top:.35rem; }
.tf-form-errors ul { margin:0; }
.tf-priority-note { background:var(--tf-accent-soft); border:1px solid #30497d; border-radius:5px; color:#a9c1f7; font-size:.7rem; margin:0; padding:.7rem .8rem; }
.tf-form-actions { display:flex; gap:.7rem; justify-content:flex-end; padding-top:.25rem; }
.tf-detail-grid { display:grid; gap:.9rem; grid-template-columns:minmax(0,2fr) minmax(260px,.7fr); }
.tf-status-toolbar { align-items:center; display:flex; gap:1rem; justify-content:space-between; margin-bottom:.9rem; padding:.85rem 1rem; }
.tf-status-toolbar>div { align-items:center; display:flex; gap:.65rem; }.tf-status-toolbar>div>span { color:var(--tf-muted); font-size:.7rem; font-weight:600; }
.tf-status-toolbar form { align-items:end; display:flex; gap:.55rem; }.tf-status-toolbar label { color:var(--tf-muted); font-size:.66rem; font-weight:600; }
.tf-status-toolbar select { background:var(--tf-panel-alt); border:1px solid var(--tf-border-light); border-radius:6px; color:var(--tf-text); min-height:36px; padding:.42rem .6rem; }
.tf-ticket-detail-main { overflow:hidden; }
.tf-detail-heading { border-bottom:1px solid var(--tf-border); padding:1.2rem; }
.tf-detail-heading > div { display:flex; gap:.45rem; }
.tf-detail-heading h2 { font-size:1.15rem; margin:1rem 0 0; }
.tf-description,.tf-detail-tags { padding:1.2rem; }
.tf-detail-tags { border-top:1px solid var(--tf-border); }
.tf-description h3,.tf-detail-tags h3,.tf-ticket-meta h2 { color:var(--tf-muted); font-size:.64rem; letter-spacing:.06em; margin:0 0 .65rem; text-transform:uppercase; }
.tf-description p { color:var(--tf-text); font-size:.82rem; line-height:1.65; margin:0; }
.tf-tag { background:var(--tf-panel-alt); border:1px solid var(--tf-border-light); border-radius:4px; color:var(--tf-muted); display:inline-block; font-size:.65rem; margin:0 .35rem .35rem 0; padding:.25rem .45rem; }
.tf-ticket-meta { padding:1.1rem; }
.tf-ticket-meta dl { margin:0; }.tf-ticket-meta dl div { border-top:1px solid var(--tf-border); display:flex; font-size:.72rem; justify-content:space-between; padding:.7rem 0; }.tf-ticket-meta dt { color:var(--tf-faint); font-weight:400; }.tf-ticket-meta dd { color:var(--tf-text); margin:0; text-align:right; }
.tf-communications { border-top:1px solid var(--tf-border); padding:1.2rem; }
.tf-communications-heading { align-items:center; display:flex; justify-content:space-between; margin-bottom:.8rem; }
.tf-communications-heading h3 { font-size:.88rem; margin:0; }
.tf-communications-heading span { color:var(--tf-faint); font-size:.62rem; }
.tf-message-list { display:flex; flex-direction:column; gap:.65rem; }
.tf-message { background:var(--tf-panel-alt); border:1px solid var(--tf-border); border-left:3px solid var(--tf-accent); border-radius:6px; padding:.8rem; }
.tf-message-user { border-left-color:var(--tf-accent); }
.tf-message-technician { border-left-color:var(--tf-green); }
.tf-message-internal { background:#211f30; border-color:#393251; border-left-color:var(--tf-purple); }
.tf-message-header { align-items:flex-start; display:flex; gap:1rem; justify-content:space-between; }
.tf-message-header strong,.tf-message-header span { display:block; }
.tf-message-header strong { color:var(--tf-text); font-size:.72rem; }
.tf-message-header span { color:var(--tf-muted); font-size:.61rem; margin-top:.1rem; }
.tf-message-header time { color:var(--tf-faint); font-size:.61rem; white-space:nowrap; }
.tf-message > p { color:var(--tf-text); font-size:.76rem; line-height:1.55; margin:.65rem 0 0; }
.tf-message > small { color:var(--tf-faint); display:block; font-size:.58rem; margin-top:.45rem; }
.tf-message-empty { border:1px dashed var(--tf-border-light); border-radius:6px; color:var(--tf-faint); font-size:.72rem; padding:1.25rem; text-align:center; }
.tf-communication-form { border-top:1px solid var(--tf-border); display:flex; flex-direction:column; gap:.55rem; margin-top:1rem; padding-top:1rem; }
.tf-communication-form label { color:var(--tf-text); font-size:.72rem; font-weight:600; }
.tf-communication-form > p { color:var(--tf-faint); font-size:.63rem; margin:-.25rem 0 0; }
.tf-communication-form textarea { background:var(--tf-panel-alt); border:1px solid var(--tf-border-light); border-radius:5px; color:var(--tf-text); font:inherit; font-size:.76rem; padding:.7rem; resize:vertical; }
.tf-communication-form textarea:focus { border-color:var(--tf-accent); outline:0; }
.tf-communication-form button { align-self:flex-end; }
.tf-internal-note-form { background:#191725; border:1px solid #393251; border-radius:6px; margin-top:1rem; padding:.9rem; }
.tf-note-button { background:#6559ad; border:0; border-radius:5px; color:#fff; font-size:.72rem; font-weight:600; padding:.5rem .75rem; }
.tf-queue-tabs { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1rem; }
.tf-queue-tabs a { background:var(--tf-panel); border:1px solid var(--tf-border); border-radius:5px; color:var(--tf-muted); font-size:.72rem; font-weight:600; padding:.6rem .85rem; text-decoration:none; }
.tf-queue-tabs a span { background:var(--tf-panel-alt); border-radius:999px; display:inline-block; margin-left:.3rem; min-width:1.35rem; padding:.08rem .35rem; text-align:center; }
.tf-queue-tabs a.active { background:var(--tf-accent); border-color:var(--tf-accent); color:#fff; }
.tf-queue-tabs a.active span { background:rgba(255,255,255,.18); }
.tf-filter-panel { margin-bottom:1rem; padding:1rem; }
.tf-filter-form { align-items:end; display:grid; gap:.8rem; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); }
.tf-filter-form label,.tf-workflow-form label { color:var(--tf-muted); display:block; font-size:.66rem; font-weight:600; margin-bottom:.3rem; }
.tf-field-help { color:var(--tf-faint); display:block; font-size:.62rem; line-height:1.4; margin-top:.3rem; }
.tf-filter-form select,.tf-workflow-form select,.tf-workflow-form input[type="text"],.tf-workflow-form textarea { background:var(--tf-panel-alt); border:1px solid var(--tf-border-light); border-radius:5px; box-sizing:border-box; color:var(--tf-text); font:inherit; padding:.55rem; width:100%; }
.tf-workflow-form textarea { resize:vertical; }
.tf-filter-actions { align-items:center; display:flex; gap:.5rem; }
.tf-ticket-table-panel { overflow:hidden; }.tf-ticket-table { color:var(--tf-text); }
.tf-ticket-table th { color:var(--tf-faint); font-size:.62rem; text-transform:uppercase; white-space:nowrap; }
.tf-ticket-table td { color:var(--tf-muted); font-size:.7rem; }.tf-ticket-table a { color:#8dacfa; font-weight:600; text-decoration:none; }
.tf-table-empty { color:var(--tf-faint)!important; padding:2rem!important; text-align:center; }
.tf-workflow-form { border-top:1px solid var(--tf-border); margin-top:1rem; padding-top:1rem; }
.tf-workflow-form h3 { font-size:.85rem; margin-bottom:.8rem; }.tf-workflow-form>div { margin-bottom:.75rem; }
.tf-workflow-form ul { color:#ee8e86; font-size:.65rem; margin:.25rem 0 0; padding-left:1rem; }
.tf-workflow-form #id_tags { max-height:10rem; overflow-y:auto; }.tf-workflow-form #id_tags label { font-weight:400; }
.tf-workflow-form select[multiple],.tf-ticket-form select[multiple] { min-height:8rem; }
.tf-tag-dropdown-field,.tf-tag-field { position:relative; }
.tf-tag-dropdown { position:relative; }
.tf-tag-dropdown summary { align-items:center; background:var(--tf-panel-alt); border:1px solid var(--tf-border-light); border-radius:6px; color:var(--tf-text); cursor:pointer; display:flex; font-size:.72rem; font-weight:600; justify-content:space-between; list-style:none; min-height:40px; padding:.55rem .65rem; }
.tf-tag-dropdown summary::-webkit-details-marker { display:none; }
.tf-tag-dropdown summary::after { border-bottom:1px solid currentColor; border-right:1px solid currentColor; content:""; height:6px; margin-left:.65rem; transform:rotate(45deg) translateY(-2px); width:6px; }
.tf-tag-dropdown[open] summary { border-color:var(--tf-accent); border-radius:6px 6px 0 0; }
.tf-tag-dropdown[open] summary::after { transform:rotate(225deg) translate(-2px,-1px); }
.tf-tag-dropdown summary small { color:var(--tf-faint); font-size:.62rem; font-weight:500; margin-left:auto; }
.tf-tag-dropdown-menu { background:var(--tf-panel); border:1px solid var(--tf-accent); border-radius:0 0 6px 6px; box-shadow:0 14px 30px rgba(0,0,0,.24); box-sizing:border-box; left:0; max-height:220px; overflow-y:auto; padding:.35rem; position:absolute; right:0; top:100%; z-index:40; }
.tf-tag-checkboxes>div>label { align-items:center; border-radius:5px; color:var(--tf-muted); cursor:pointer; display:flex; font-size:.7rem; font-weight:500; gap:.5rem; margin:0; padding:.5rem .55rem; }
.tf-tag-checkboxes>div>label:hover { background:var(--tf-panel-alt); color:var(--tf-text); }
.tf-tag-checkboxes input[type="checkbox"] { accent-color:var(--tf-accent); flex:0 0 auto; }
.tf-workflow-actions { align-items:center; display:flex; flex-wrap:wrap; gap:.55rem; }
.tf-history { border-top:1px solid var(--tf-border); padding:1.2rem; }
.tf-history-list { display:flex; flex-direction:column; gap:.65rem; list-style:none; margin:0; padding:0; }
.tf-history-list li { align-items:flex-start; border-left:2px solid var(--tf-border-light); display:flex; gap:.8rem; padding:.25rem 0 .25rem .8rem; }
.tf-history-list time { color:#8dacfa; flex:0 0 36px; font-size:.65rem; font-weight:600; }
.tf-history-list div { color:var(--tf-muted); font-size:.7rem; line-height:1.45; }.tf-history-list strong { color:var(--tf-text); }
.tf-history-list span { color:var(--tf-text); }.tf-history-list small { color:var(--tf-faint); display:block; font-size:.58rem; margin-top:.12rem; }
.tf-history-empty { color:var(--tf-faint); font-size:.7rem; }
.tf-admin-summary { display:grid; gap:.7rem; grid-template-columns:repeat(5,1fr); margin-bottom:.8rem; }.tf-admin-summary article { background:var(--tf-panel); border:1px solid var(--tf-border); border-radius:6px; padding:.9rem; }.tf-admin-summary span { color:var(--tf-faint); display:block; font-size:.64rem; text-transform:uppercase; }.tf-admin-summary strong { color:var(--tf-text); font-size:1.5rem; }
.tf-admin-actions { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1rem; }.tf-admin-actions a { background:var(--tf-panel-alt); border:1px solid var(--tf-border); border-radius:5px; color:#8dacfa; font-size:.7rem; padding:.5rem .7rem; text-decoration:none; }
.tf-dashboard-actions { align-items:center; display:flex; flex-wrap:wrap; gap:.5rem; }
.tf-desk-grid { align-items:start; display:grid; gap:1rem; grid-template-columns:minmax(260px,.8fr) minmax(0,1.6fr); }
.tf-desk-column { display:flex; flex-direction:column; gap:1rem; min-width:0; }
.tf-desk-panel { border-radius:6px; border-top:3px solid var(--tf-accent); overflow:hidden; }
.tf-desk-accent-blue { border-top-color:#779ff0; }.tf-desk-accent-amber { border-top-color:#c7a35b; }.tf-desk-accent-orange { border-top-color:#d48360; }.tf-desk-accent-green { border-top-color:#62a985; }
.tf-desk-panel-heading { align-items:center; display:flex; flex-wrap:wrap; gap:.5rem; justify-content:space-between; padding:.9rem 1rem; }
.tf-desk-panel-heading h2 { color:var(--tf-text); font-size:1rem; font-weight:650; line-height:1.35; margin:0; }
.tf-desk-panel-heading h2 span { color:var(--tf-muted); font-size:.8rem; font-weight:600; margin-left:.3rem; }
.tf-desk-panel-heading>a,.tf-desk-panel-footer a { color:#b3caff; font-size:.82rem; font-weight:500; text-decoration:none; }
.tf-desk-panel-heading>a:hover,.tf-desk-panel-footer a:hover { text-decoration:underline; }
.tf-desk-scope { color:var(--tf-muted); font-size:.7rem; line-height:1.5; margin:0; padding:0 1rem .65rem; }
.tf-desk-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:0 1rem .65rem; }
.tf-desk-metrics a { border-top:1px solid var(--tf-border); color:var(--tf-text); padding:.85rem .4rem; text-align:center; text-decoration:none; }
.tf-desk-metrics a:hover { background:var(--tf-panel-alt); }
.tf-desk-metrics strong { display:block; font-size:1.65rem; font-weight:600; }
.tf-desk-metrics span { color:var(--tf-muted); font-size:.72rem; }
.tf-desk-panel .table-responsive { scrollbar-gutter:auto; }
.tf-desk-panel .tf-desk-table { min-width:0; }
.tf-desk-panel .tf-desk-table th { color:var(--tf-muted); font-size:.8rem; font-weight:600; letter-spacing:normal; padding:.5rem .65rem; text-transform:none; }
.tf-desk-panel .tf-desk-table td { color:var(--tf-text); padding:.65rem; vertical-align:top; }
.tf-desk-table td:first-child { min-width:10rem; overflow-wrap:anywhere; }
.tf-desk-table td:first-child a { display:block; color:#b3caff; text-decoration:none; }
.tf-desk-table td:first-child a:hover strong { text-decoration:underline; }
.tf-desk-table td:first-child a :is(small,strong) { display:block; }
.tf-desk-table td:first-child a strong { font-weight:600; line-height:1.4; }
.tf-desk-table td:first-child a small { font-size:.8rem; font-weight:500; margin-bottom:.25rem; }
.tf-desk-table .tf-pill { font-size:.75rem; white-space:nowrap; }
.tf-desk-reporter { color:var(--tf-muted); display:block; font-size:.8rem; margin-top:.25rem; overflow-wrap:anywhere; }
.tf-desk-panel-footer { border-top:1px solid var(--tf-border); color:var(--tf-muted); font-size:.8rem; padding:.75rem 1rem; }
.tf-desk-resource-links { display:flex; flex-direction:column; padding:0 1rem; }
.tf-desk-resource-links a { border-top:1px solid var(--tf-border); color:var(--tf-text); font-size:.78rem; font-weight:600; padding:.7rem 0; text-decoration:none; }
.tf-desk-resource-links a:hover { text-decoration:underline; }
.tf-desk-resource-links span { color:var(--tf-muted); display:block; font-size:.66rem; font-weight:400; margin-top:.25rem; }
.tf-desk-admin { border-top:1px solid var(--tf-border); padding:.8rem 1rem 0; }
.tf-desk-admin p { color:var(--tf-muted); font-size:.72rem; }
.tf-desk-grid a:focus-visible { outline:2px solid var(--tf-accent); outline-offset:-2px; }
.tf-desk-sla { --tf-sla-surface:#232426; background:var(--tf-sla-surface); border-top:4px solid #5b83f5; scroll-margin-top:5rem; }
html[data-theme="light"] .tf-desk-sla { --tf-sla-surface:var(--tf-panel); border-top-color:#335fc2; }
.tf-desk-sla .tf-desk-panel-heading { padding:1rem; }
.tf-desk-sla .tf-desk-panel-heading h2 { font-size:1rem; font-weight:700; }
.tf-sla-actions { align-items:center; display:flex; gap:.2rem; }
.tf-sla-actions button,.tf-sla-actions a { background:none; border:0; border-radius:4px; color:var(--tf-muted); display:grid; min-height:2rem; min-width:2rem; padding:.35rem; place-items:center; }
.tf-sla-actions button[hidden] { display:none; }
.tf-sla-actions button:hover,.tf-sla-actions a:hover { background:var(--tf-panel-alt); color:var(--tf-text); }
.tf-sla-actions svg,.tf-sla-refreshed svg { fill:none; height:1rem; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:2; width:1rem; }
.tf-sla-metrics>a { color:var(--tf-muted); display:block; margin:0 clamp(1rem, 2.5vw, 2.25rem); padding:1.35rem .25rem; text-align:center; text-decoration:none; }
.tf-sla-metrics>a+a { border-top:1px solid var(--tf-border-light); }
.tf-sla-metrics>a:hover { color:var(--tf-text); background:var(--tf-panel-alt); }
.tf-sla-metrics strong { align-items:center; color:var(--tf-text); display:flex; font-size:1.85rem; font-weight:500; gap:.35rem; justify-content:center; line-height:1.08; }
.tf-sla-metrics strong svg { height:1.25rem; width:1.25rem; }
.tf-sla-metrics strong svg path:last-child { fill:none; stroke:var(--tf-sla-surface); stroke-width:2.6; }
.tf-sla-breached { fill:#dc7869; }
.tf-sla-hold { fill:#eac75c; }
html[data-theme="light"] .tf-sla-breached { fill:#a33427; }
html[data-theme="light"] .tf-sla-hold { fill:#7a5600; }
.tf-sla-metrics>a span { display:block; font-size:.9rem; line-height:1.4; margin-top:.15rem; }
.tf-sla-refreshed { align-items:center; color:var(--tf-muted); display:flex; font-size:.8rem; gap:.35rem; padding:1.1rem 1rem; }
.tf-desk-sla:fullscreen { overflow:auto; }
.tf-desk-sla:fullscreen .tf-sla-metrics { margin:0 auto; max-width:38rem; }
html[data-theme="light"] .tf-desk-panel-heading>a,html[data-theme="light"] .tf-desk-panel-footer a,html[data-theme="light"] .tf-desk-table td:first-child a { color:var(--tf-link); }
@media (max-width:1100px) { .tf-desk-grid { grid-template-columns:minmax(0,1fr); }.tf-dashboard-actions { width:100%; } }
.tf-row-actions { align-items:center; display:flex; flex-wrap:wrap; gap:.5rem; }.tf-row-actions form { margin:0; }.tf-row-actions button { background:none; border:0; color:#ee8e86; font-size:.7rem; padding:0; }
.tf-management-list>div { align-items:center; border-bottom:1px solid var(--tf-border); display:flex; justify-content:space-between; padding:.9rem 1rem; }.tf-management-list>div:last-child { border-bottom:0; }.tf-management-list strong,.tf-management-list small { display:block; }.tf-management-list strong { color:var(--tf-text); font-size:.78rem; }.tf-management-list small { color:var(--tf-faint); font-size:.65rem; margin-top:.2rem; }.tf-management-list span:last-child { color:var(--tf-muted); font-size:.7rem; }.tf-management-list a { color:#8dacfa; }
@media (max-width:1100px) { .tf-stat-grid-five { grid-template-columns:repeat(3,1fr); } }
@media (max-width:780px) { .tf-stat-grid-five { grid-template-columns:repeat(2,1fr); }.tf-form-grid,.tf-detail-grid { grid-template-columns:1fr; } }
@media (max-width:480px) { .tf-stat-grid-five { grid-template-columns:1fr; } }

.tf-login-body { margin:0; min-height:100vh; }
.tf-login-page { align-items:center; background:linear-gradient(180deg,#cba4e9 0%,#d1c6ec 45%,#c7e4ef 100%); box-sizing:border-box; display:flex; flex-direction:column; justify-content:center; min-height:100vh; overflow:hidden; padding:6rem 1.5rem 3rem; position:relative; }
.tf-login-page::before { background:radial-gradient(circle,rgba(255,255,255,.35),transparent 67%); content:""; inset:0; pointer-events:none; position:absolute; }
.tf-login-brand { color:#fff; font-size:clamp(1.55rem,3vw,2.35rem); font-weight:300; left:0; letter-spacing:.08em; position:absolute; text-align:center; top:2rem; width:100%; z-index:1; }
.tf-login-card { color:#526f9d; max-width:650px; position:relative; width:100%; z-index:1; }
.tf-login-user-icon { color:rgba(255,255,255,.92); margin:0 auto .9rem; width:68px; }
.tf-login-user-icon svg { fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:2; width:100%; }
.tf-login-card h1 { color:rgba(255,255,255,.9); font-size:clamp(2.7rem,6vw,4.3rem); font-weight:200; letter-spacing:.05em; margin:0 0 2.8rem; text-align:center; }
.tf-login-error { background:rgba(137,50,76,.12); border:1px solid rgba(137,50,76,.25); border-radius:4px; color:#74485e; font-size:.85rem; margin:0 auto 1.25rem; padding:.7rem 1rem; text-align:center; }
.tf-login-form { display:flex; flex-direction:column; gap:2.2rem; }
.tf-login-field { align-items:center; border-bottom:2px solid rgba(75,103,146,.7); display:flex; gap:1.4rem; padding:0 .2rem .85rem; }
.tf-login-field:focus-within { border-color:#466da7; }
.tf-login-field svg { fill:none; flex:0 0 30px; height:30px; stroke:#4f709f; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.7; width:30px; }
.tf-login-field input { background:transparent; border:0; color:#425f8e; font-size:1.35rem; font-weight:300; letter-spacing:.06em; outline:0; padding:.4rem 0; width:100%; }
.tf-login-field input::placeholder { color:rgba(75,103,146,.55); opacity:1; }
.tf-login-options { align-items:center; display:flex; font-size:.9rem; justify-content:space-between; padding:0 5.8rem; }
.tf-login-options label { align-items:center; cursor:pointer; display:flex; gap:.45rem; }
.tf-login-options input { accent-color:#5272a5; height:17px; width:17px; }

.tf-login-button { align-self:center; background:#526fa4; border:1px solid rgba(58,83,126,.65); box-shadow:0 3px 10px rgba(58,83,126,.15); color:#fff; font-size:1.05rem; font-weight:600; letter-spacing:.22em; max-width:480px; padding:1.15rem; text-transform:uppercase; transition:background .15s,transform .15s; width:78%; }
.tf-login-button:hover { background:#456695; transform:translateY(-1px); }
.tf-login-button:focus-visible { outline:3px solid rgba(255,255,255,.8); outline-offset:3px; }
@media (max-width:600px) { .tf-login-page { padding:6rem 1.25rem 2rem; }.tf-login-card h1 { margin-bottom:2rem; }.tf-login-form { gap:1.7rem; }.tf-login-options { padding:0; }.tf-login-button { width:100%; } }
.tf-kb-search { margin-bottom:1rem; padding:1rem; }.tf-kb-search form { align-items:end; display:grid; gap:.75rem; grid-template-columns:2fr 1fr 1fr auto; }.tf-kb-search label { color:var(--tf-faint); display:block; font-size:.64rem; margin-bottom:.3rem; }.tf-kb-search input,.tf-kb-search select { background:var(--tf-panel-alt); border:1px solid var(--tf-border-light); border-radius:5px; color:var(--tf-text); padding:.6rem; width:100%; }
.tf-kb-grid { display:grid; gap:.8rem; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); }.tf-kb-card { padding:1rem; }.tf-kb-card>div,.tf-kb-card footer { align-items:center; display:flex; justify-content:space-between; }.tf-kb-card>div span { color:var(--tf-faint); font-size:.62rem; }.tf-kb-card .tf-kb-published { color:var(--tf-green); }.tf-kb-card .tf-kb-draft { color:var(--tf-amber); }.tf-kb-card .tf-kb-pending { color:#a9c1f7; }.tf-kb-card .tf-kb-rejected { color:#ee8e86; }.tf-kb-card h2 { font-size:.92rem; margin:.8rem 0 .45rem; }.tf-kb-card h2 a { color:var(--tf-text); text-decoration:none; }.tf-kb-card p { color:var(--tf-muted); font-size:.72rem; line-height:1.5; min-height:3.2em; }.tf-kb-card footer { border-top:1px solid var(--tf-border); color:var(--tf-faint); font-size:.62rem; margin-top:.8rem; padding-top:.65rem; }
.tf-kb-article { padding:1.4rem; }.tf-kb-article header { border-bottom:1px solid var(--tf-border); padding-bottom:1rem; }.tf-kb-article header p { color:var(--tf-muted); font-size:.85rem; margin:1rem 0 .5rem; }.tf-kb-article header small { color:var(--tf-faint); }.tf-kb-content { color:var(--tf-text); font-size:.8rem; line-height:1.75; padding:1.25rem 0; }.tf-kb-actions { align-items:center; border-top:1px solid var(--tf-border); display:flex; gap:.6rem; padding-top:1rem; }.tf-kb-actions form { margin:0; }
.tf-kb-status { border:1px solid currentColor; border-radius:999px; font-size:.6rem; margin-left:.35rem; padding:.2rem .45rem; }.tf-kb-status.status-pending { color:#a9c1f7; }.tf-kb-status.status-approved { color:var(--tf-green); }.tf-kb-status.status-rejected { color:#ee8e86; }.tf-kb-status.status-draft { color:var(--tf-amber); }.tf-kb-review-note { color:var(--tf-faint); font-size:.68rem; }
@media (max-width:900px) { .tf-kb-search form { grid-template-columns:1fr; } }
.tf-search input { background:transparent; border:0; color:var(--tf-text); flex:1; font:inherit; outline:0; }.tf-search button { background:transparent; border:0; color:#8dacfa; font-size:.65rem; }
.tf-search-page { margin-bottom:1rem; padding:1rem; }.tf-search-page label { color:var(--tf-faint); display:block; font-size:.65rem; margin-bottom:.4rem; }.tf-search-page form>div { display:flex; gap:.5rem; }.tf-search-page input { background:var(--tf-panel-alt); border:1px solid var(--tf-border-light); border-radius:5px; color:var(--tf-text); flex:1; padding:.65rem; }
.tf-search-results-grid { display:grid; gap:1rem; grid-template-columns:1fr 1fr; }.tf-search-result-list { display:flex; flex-direction:column; }.tf-search-result-list>a { align-items:center; border-top:1px solid var(--tf-border); color:var(--tf-text); display:flex; gap:.75rem; justify-content:space-between; padding:.8rem 1rem; text-decoration:none; }.tf-search-result-list strong,.tf-search-result-list small { display:block; }.tf-search-result-list strong { font-size:.72rem; }.tf-search-result-list small { color:var(--tf-faint); font-size:.62rem; margin-top:.2rem; }.tf-search-empty { color:var(--tf-faint); font-size:.7rem; padding:1rem; }
@media (max-width:900px) { .tf-search-results-grid { grid-template-columns:1fr; } }
.tf-ai-search { margin-bottom:1rem; padding:1.2rem; }.tf-ai-search form { display:flex; flex-direction:column; gap:.7rem; }.tf-ai-search label { color:var(--tf-text); font-size:.75rem; font-weight:600; }.tf-ai-search textarea { background:var(--tf-panel-alt); border:1px solid var(--tf-border-light); border-radius:6px; color:var(--tf-text); font:inherit; line-height:1.55; padding:.8rem; resize:vertical; }.tf-ai-search textarea:focus { border-color:var(--tf-accent); outline:0; }.tf-ai-search p { color:var(--tf-faint); font-size:.65rem; margin:0; }.tf-ai-search button { align-self:flex-end; }
.tf-ai-answer { padding:1.2rem; }.tf-ai-answer-copy { color:var(--tf-text); font-size:.78rem; line-height:1.7; padding:1rem 0; }.tf-ai-answer-copy p { margin:0 0 .8rem; }.tf-ai-sources { border-top:1px solid var(--tf-border); padding-top:1rem; }.tf-ai-sources h3 { color:var(--tf-muted); font-size:.7rem; margin:0 0 .6rem; text-transform:uppercase; }.tf-ai-sources a { align-items:center; background:var(--tf-panel-alt); border:1px solid var(--tf-border); border-radius:5px; color:var(--tf-text); display:flex; gap:.7rem; margin-top:.45rem; padding:.65rem; text-decoration:none; }.tf-ai-sources a strong { color:#8dacfa; font-size:.7rem; }.tf-ai-sources a span,.tf-ai-sources p { color:var(--tf-muted); font-size:.68rem; }
.tf-kb-recommendations { border-top:1px solid var(--tf-border); padding:1.2rem; }.tf-kb-recommendations>p { color:var(--tf-faint); font-size:.68rem; }.tf-recommendation-list { display:flex; flex-direction:column; gap:.5rem; }.tf-recommendation-list a { background:var(--tf-panel-alt); border:1px solid var(--tf-border); border-radius:5px; color:var(--tf-text); padding:.7rem; text-decoration:none; }.tf-recommendation-list strong,.tf-recommendation-list span { display:block; }.tf-recommendation-list strong { color:#8dacfa; font-size:.72rem; }.tf-recommendation-list span { color:var(--tf-muted); font-size:.65rem; margin-top:.25rem; }.tf-ai-review-warning { background:#282238; border:1px solid #54466f; border-radius:6px; color:var(--tf-text); margin-bottom:1rem; padding:.85rem; }.tf-ai-review-warning strong { color:#c3a9f2; }.tf-ai-review-warning p { color:var(--tf-muted); font-size:.7rem; margin:.35rem 0 0; }
.tf-analytics-filter { margin-bottom:1rem; padding:1rem; }.tf-analytics-filter form { align-items:end; display:grid; gap:.8rem; grid-template-columns:1.2fr 1fr 1fr auto; }.tf-analytics-filter label { color:var(--tf-faint); display:block; font-size:.64rem; margin-bottom:.3rem; }.tf-analytics-filter select,.tf-analytics-filter input { background:var(--tf-panel-alt); border:1px solid var(--tf-border-light); border-radius:5px; color:var(--tf-text); padding:.55rem; width:100%; }.tf-analytics-summary { display:grid; gap:.75rem; grid-template-columns:repeat(5,1fr); margin-bottom:1rem; }.tf-analytics-summary article { background:linear-gradient(145deg,var(--tf-panel),#151e2b); border:1px solid var(--tf-border); border-radius:8px; padding:1rem; }.tf-analytics-summary span,.tf-analytics-summary small { color:var(--tf-faint); display:block; font-size:.62rem; }.tf-analytics-summary strong { color:var(--tf-text); display:block; font-size:1.45rem; margin:.4rem 0 .25rem; }.tf-analytics-grid { display:grid; gap:1rem; grid-template-columns:repeat(2,minmax(0,1fr)); }.tf-chart-card { min-width:0; padding:1rem; }.tf-chart-card header { margin-bottom:.8rem; }.tf-chart-card h2 { font-size:.85rem; margin:0; }.tf-chart-card header p { color:var(--tf-faint); font-size:.62rem; margin:.25rem 0 0; }.tf-chart-card>div { height:280px; position:relative; }.tf-chart-wide { grid-column:1/-1; }.tf-chart-wide>div { height:320px; }
@media (max-width:1100px) { .tf-analytics-summary { grid-template-columns:repeat(3,1fr); } }
@media (max-width:780px) { .tf-analytics-filter form,.tf-analytics-grid { grid-template-columns:1fr; }.tf-analytics-summary { grid-template-columns:repeat(2,1fr); }.tf-chart-wide { grid-column:auto; } }
@media (max-width:480px) { .tf-analytics-summary { grid-template-columns:1fr; } }

/* Phase 16 interaction, accessibility, and responsive polish */
* { scrollbar-color:var(--tf-border-light) transparent; }
html { color-scheme:dark; scroll-behavior:smooth; }
button,a,input,select,textarea { transition:border-color .15s,background-color .15s,color .15s,box-shadow .15s,transform .15s; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid rgba(108,151,247,.48); outline-offset:2px; }
.tf-skip-link { background:#fff; border-radius:0 0 6px 0; color:#14213a; font-size:.8rem; font-weight:700; left:0; padding:.7rem 1rem; position:fixed; top:-60px; z-index:1200; }
.tf-skip-link:focus { top:0; }
.tf-panel,.tf-stat-card,.tf-admin-summary article,.tf-analytics-summary article { box-shadow:0 12px 32px rgba(0,0,0,.08); }
.tf-primary-button:hover { background:#5b8ff2; transform:translateY(-1px); }
.tf-primary-button:active,.tf-secondary-button:active { transform:translateY(0); }
.tf-mobile-menu { align-items:center; background:var(--tf-panel-alt); border:1px solid var(--tf-border); border-radius:6px; color:var(--tf-text); display:none; flex:0 0 38px; height:38px; justify-content:center; }
.tf-nav-overlay { display:none; }
.tf-alert-stack { display:grid; gap:.55rem; margin:-.65rem 0 1rem; }
.tf-alert { border:1px solid var(--tf-border-light); border-left-width:3px; border-radius:6px; color:var(--tf-text); font-size:.76rem; padding:.75rem .9rem; }
.tf-alert-success { background:#11271f; border-color:#286348; }.tf-alert-error { background:#2c191b; border-color:#8d464a; }.tf-alert-warning { background:#2b2414; border-color:#866a2f; }.tf-alert-info { background:var(--tf-accent-soft); border-color:#365995; }
.tf-pagination { align-items:center; border-top:1px solid var(--tf-border); display:flex; flex-wrap:wrap; gap:1rem; justify-content:space-between; padding:.8rem 1rem; }
.tf-pagination p { color:var(--tf-faint); font-size:.65rem; margin:0; }
.tf-pagination ul { display:flex; gap:.3rem; list-style:none; margin:0; padding:0; }
.tf-pagination a,.tf-pagination li>span { align-items:center; border:1px solid var(--tf-border); border-radius:5px; color:var(--tf-muted); display:flex; font-size:.67rem; height:30px; justify-content:center; min-width:30px; padding:0 .5rem; text-decoration:none; }
.tf-pagination a:hover { background:var(--tf-panel-alt); border-color:var(--tf-border-light); color:var(--tf-text); }
.tf-pagination span.active { background:var(--tf-accent); border-color:var(--tf-accent); color:#fff; font-weight:700; }
.tf-pagination span[aria-disabled="true"] { opacity:.42; }
.tf-role-chip,.tf-account-status { border-radius:999px; display:inline-flex; font-size:.62rem; font-weight:600; padding:.2rem .48rem; white-space:nowrap; }
.tf-role-chip { background:var(--tf-accent-soft); color:#aac3fa; }
.tf-account-status { align-items:center; gap:.35rem; }.tf-account-status::before { border-radius:50%; content:""; height:6px; width:6px; }
.tf-account-status.is-active { background:#12291f; color:#78c99f; }.tf-account-status.is-active::before { background:#57b785; }
.tf-account-status.is-inactive { background:#272b33; color:#929baa; }.tf-account-status.is-inactive::before { background:#697385; }
.tf-form-field input:not([type="checkbox"]):not([type="radio"]),.tf-form-field textarea,.tf-form-field select { background:var(--tf-panel-alt); border:1px solid var(--tf-border-light); border-radius:6px; box-sizing:border-box; color:var(--tf-text); font:inherit; font-size:.8rem; min-height:42px; padding:.65rem .72rem; width:100%; }
.tf-form-field input:focus,.tf-form-field textarea:focus,.tf-form-field select:focus { border-color:var(--tf-accent); box-shadow:0 0 0 3px rgba(76,130,240,.14); outline:0; }
.tf-form-field>small { color:var(--tf-faint); display:block; font-size:.64rem; line-height:1.45; margin-top:.4rem; }
.tf-form-field .helptext { color:var(--tf-faint); font-size:.64rem; }
.tf-ticket-meta { align-self:start; position:sticky; top:1rem; }
.tf-history-list { position:relative; }.tf-history-list li { border-left:0; position:relative; }
.tf-history-list li::before { background:var(--tf-accent); border:3px solid var(--tf-panel); border-radius:50%; box-shadow:0 0 0 1px var(--tf-border-light); content:""; flex:0 0 10px; height:10px; margin-left:-.3rem; margin-top:.25rem; width:10px; }
.tf-history-list li:not(:last-child)::after { background:var(--tf-border-light); content:""; height:calc(100% + .65rem); left:.2rem; position:absolute; top:.85rem; width:1px; }
.tf-history-list time { flex-basis:40px; }
.tf-table-scroll,.table-responsive { scrollbar-gutter:stable; }
.tf-ticket-table tbody tr:focus-within { background:rgba(76,130,240,.06); }
.tf-kb-card { display:flex; flex-direction:column; min-height:205px; position:relative; isolation:isolate; }.tf-kb-card footer { margin-top:auto; }
.tf-kb-card:hover { border-color:#34445f; transform:translateY(-2px); }
/* Stretch the article link across the card; keep the separate delete action above it. */
.tf-kb-card-link::after { border-radius:inherit; content:""; cursor:pointer; inset:0; position:absolute; z-index:1; }
.tf-kb-card:focus-within { outline:2px solid var(--tf-accent); outline-offset:3px; }
.tf-kb-delete-link { align-self:center; background:transparent; border:0; border-radius:4px; color:var(--tf-muted); display:inline-flex; align-items:center; font-size:.68rem; font-weight:500; line-height:1.4; min-height:28px; padding:.25rem .35rem; position:relative; text-decoration:underline; text-underline-offset:3px; z-index:2; }
.tf-kb-delete-link:hover { color:var(--tf-text); background:var(--tf-panel-alt); }
.tf-kb-delete-link:focus-visible { outline:2px solid var(--tf-accent); outline-offset:2px; }
/* Compact, two-column ticket workspace; secondary content remains accessible. */
.tf-ticket-toolbar { position:sticky; top:.5rem; z-index:5; flex-wrap:wrap; padding:.6rem .8rem; }
.tf-ticket-toolbar form { align-items:center; flex-wrap:wrap; }
.tf-status-feedback { color:var(--tf-muted); font-size:.7rem; max-width:32rem; }
[data-status-fallback][hidden],[data-kb-generate][hidden],[data-history-refresh][hidden] { display:none!important; }
.tf-ticket-workspace { grid-template-columns:minmax(0,1fr) minmax(320px,.52fr); align-items:start; }
.tf-ticket-workspace .tf-detail-heading,.tf-ticket-workspace .tf-description,.tf-ticket-workspace .tf-detail-tags,.tf-ticket-workspace .tf-communications { padding:.85rem 1rem; }
.tf-ticket-workspace .tf-detail-heading h2 { margin:.5rem 0 0; }
.tf-ticket-workspace .tf-ticket-meta { position:static; padding:.8rem; min-width:0; }
.tf-ticket-workspace .tf-ticket-meta dl div { gap:.75rem; padding:.45rem 0; }
.tf-ticket-workspace .tf-ticket-meta dd { overflow-wrap:anywhere; }
.tf-ticket-workspace .tf-message-list { max-height:25rem; overflow:auto; padding:.15rem; }
.tf-ticket-workspace .tf-communication-form { margin-top:.5rem; padding-top:.5rem; }
.tf-ticket-workspace .tf-communication-form textarea { height:5rem; min-height:5rem; }
.tf-ticket-workspace .tf-workflow-form { margin-top:.65rem; padding-top:.65rem; }
.tf-ticket-disclosure { border-top:1px solid var(--tf-border); margin-top:.65rem; padding-top:.65rem; }
.tf-ticket-disclosure>summary { color:var(--tf-text); cursor:pointer; font-size:.8rem; font-weight:600; padding:.35rem 0; }
.tf-ticket-disclosure>summary small { color:var(--tf-muted); font-size:.66rem; font-weight:400; margin-left:.5rem; }
.tf-ticket-disclosure>summary:focus-visible { outline:2px solid var(--tf-accent); outline-offset:2px; }
.tf-ticket-workspace .tf-history { padding:.85rem 1rem; }
.tf-ticket-workspace .tf-history-list { max-height:22rem; overflow:auto; }
.tf-ticket-field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.6rem; }
.tf-ticket-field-grid .tf-tag-dropdown-field { grid-column:1 / -1; }
.tf-ticket-extra-field { margin-top:.6rem; }
.tf-ticket-workspace .tf-workflow-form textarea { min-height:5rem; }
.tf-ticket-workspace .tf-workflow-form input,.tf-ticket-workspace .tf-workflow-form select { font-size:.74rem; }
@media (max-width:1000px) { .tf-ticket-workspace { grid-template-columns:minmax(0,1fr); } }
@media (max-width:680px) { .tf-ticket-toolbar { position:static; align-items:stretch; flex-direction:column; }.tf-ticket-toolbar form { align-items:stretch; flex-direction:column; }.tf-ticket-field-grid { grid-template-columns:minmax(0,1fr); } }
.tf-chart-card canvas { max-width:100%; }
.tf-login-page { background:radial-gradient(circle at 20% 15%,rgba(145,158,171,.16),transparent 32%),linear-gradient(145deg,#111315 0%,#1b2025 52%,#252b31 100%); }
.tf-login-page::before { background:linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px); background-size:40px 40px; }
.tf-login-brand { align-items:center; display:flex; font-size:clamp(1rem,2vw,1.3rem); font-weight:600; gap:.7rem; justify-content:center; letter-spacing:.01em; }
.tf-login-logo { align-items:center; background:var(--tf-accent); border-radius:8px; display:inline-flex; font-size:.75rem; height:34px; justify-content:center; letter-spacing:.04em; width:34px; }
.tf-login-card { background:rgba(19,25,34,.9); border:1px solid rgba(255,255,255,.09); border-radius:14px; box-shadow:0 30px 80px rgba(0,0,0,.28); max-width:480px; padding:2rem 2.2rem; }
.tf-login-user-icon { background:var(--tf-accent-soft); border:1px solid #30497d; border-radius:50%; color:#a9c1f7; padding:.75rem; width:58px; }
.tf-login-card h1 { color:var(--tf-text); font-size:1.55rem; font-weight:650; letter-spacing:0; margin:0; }
.tf-login-intro { color:var(--tf-muted); font-size:.78rem; margin:.45rem 0 1.8rem; text-align:center; }
.tf-login-form { gap:1rem; }.tf-login-field { background:var(--tf-panel-alt); border:1px solid var(--tf-border-light); border-radius:7px; gap:.8rem; padding:.2rem .8rem; }
.tf-login-field:focus-within { border-color:var(--tf-accent); box-shadow:0 0 0 3px rgba(76,130,240,.15); }
.tf-login-field svg { height:20px; stroke:var(--tf-muted); width:20px; }.tf-login-field input { color:var(--tf-text); font-size:1rem; font-weight:500; letter-spacing:normal; min-height:44px; }.tf-login-field input::placeholder { color:var(--tf-faint); }
.tf-login-options { color:var(--tf-muted); font-size:.72rem; gap:.75rem; padding:0; }.tf-login-options input { flex:0 0 auto; height:15px; width:15px; }
.tf-login-access-help { color:var(--tf-muted); line-height:1.45; text-align:right; }
.tf-login-button { align-self:stretch; background:var(--tf-accent); border:0; border-radius:7px; box-shadow:none; font-size:.78rem; letter-spacing:.04em; max-width:none; padding:.78rem; text-transform:none; width:100%; }
.tf-login-microsoft { border-top:1px solid var(--tf-border); margin-top:1.1rem; padding-top:1.1rem; }
.tf-login-microsoft button { justify-content:center; width:100%; }
.tf-login-help { border-top:1px solid var(--tf-border); color:var(--tf-faint); font-size:.65rem; margin:1.4rem 0 0; padding-top:1rem; text-align:center; }

.tf-ai-fab { align-items:center; background:var(--tf-accent); border:1px solid rgba(255,255,255,.2); border-radius:999px; bottom:1.25rem; box-shadow:0 10px 28px rgba(0,0,0,.32); color:#fff; display:flex; font-size:.68rem; font-weight:700; gap:.35rem; padding:.6rem .75rem; position:fixed; right:1.25rem; text-decoration:none; z-index:900; }.tf-ai-fab:hover { background:#5b8ff2; color:#fff; transform:translateY(-2px); }.tf-ai-fab svg { fill:none; height:16px; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.8; width:16px; }
.tf-user-tabs { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1rem; }.tf-user-tabs a { background:var(--tf-panel); border:1px solid var(--tf-border); border-radius:6px; color:var(--tf-muted); font-size:.74rem; font-weight:600; padding:.6rem .85rem; text-decoration:none; }.tf-user-tabs a.active { background:var(--tf-accent); border-color:var(--tf-accent); color:#fff; }.tf-user-tabs span { background:rgba(255,255,255,.15); border-radius:999px; margin-left:.3rem; padding:.08rem .35rem; }
.tf-dashboard-messages { display:flex; flex-direction:column; }.tf-dashboard-messages article { border-top:1px solid var(--tf-border); padding:1rem; }.tf-dashboard-messages article:first-child { border-top:0; }.tf-dashboard-messages header { align-items:center; display:flex; gap:1rem; justify-content:space-between; }.tf-dashboard-messages header a { color:#8dacfa; font-size:.74rem; font-weight:600; text-decoration:none; }.tf-dashboard-messages time,.tf-dashboard-messages footer { color:var(--tf-faint); font-size:.62rem; }.tf-dashboard-messages p { color:var(--tf-text); font-size:.76rem; line-height:1.55; margin:.55rem 0; }

input,textarea,select { color-scheme:dark; }
html[data-theme="light"] input,html[data-theme="light"] textarea,html[data-theme="light"] select { color-scheme:light; }
input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,textarea:-webkit-autofill,select:-webkit-autofill { -webkit-box-shadow:0 0 0 1000px var(--tf-panel-alt) inset!important; -webkit-text-fill-color:var(--tf-text)!important; caret-color:var(--tf-text); }

/* Stronger light-theme contrast while retaining the page's text hierarchy. */
html[data-theme="light"] .tf-ticket-meta dt,
html[data-theme="light"] .tf-ticket-table th,
html[data-theme="light"] .tf-secondary-button { font-weight:600; }
html[data-theme="light"] .tf-ticket-table td,
html[data-theme="light"] .tf-field-help,
html[data-theme="light"] .tf-form-field>small,
html[data-theme="light"] .tf-form-field .helptext,
html[data-theme="light"] .tf-communication-form>p,
html[data-theme="light"] .tf-message-empty { font-weight:500; }
html[data-theme="light"] .dashboard-body input::placeholder,
html[data-theme="light"] .dashboard-body textarea::placeholder { color:var(--tf-faint); font-weight:500; opacity:1; }
html[data-theme="light"] .tf-ticket-id,
html[data-theme="light"] .tf-ticket-table a,
html[data-theme="light"] .tf-text-link,
html[data-theme="light"] .tf-text-button,
html[data-theme="light"] .tf-search button,
html[data-theme="light"] .tf-management-list a,
html[data-theme="light"] .tf-history-list time,
html[data-theme="light"] .tf-ai-sources a strong,
html[data-theme="light"] .tf-recommendation-list strong,
html[data-theme="light"] .tf-dashboard-messages header a { color:var(--tf-link); }
html[data-theme="light"] .tf-ticket-id:hover,
html[data-theme="light"] .tf-ticket-table a:hover,
html[data-theme="light"] .tf-text-link:hover,
html[data-theme="light"] .tf-text-button:hover { color:#173760; text-decoration:underline; }
html[data-theme="light"] .priority-high { color:#9a4617; }
html[data-theme="light"] .tf-pill.status-open { color:#184e9c; }
html[data-theme="light"] .status-closed { color:var(--tf-faint); }
html[data-theme="light"] .tf-role-chip,
html[data-theme="light"] .tf-kb-card .tf-kb-pending,
html[data-theme="light"] .tf-kb-status.status-pending { color:var(--tf-link); }
html[data-theme="light"] .tf-kb-card .tf-kb-rejected,
html[data-theme="light"] .tf-kb-status.status-rejected { color:#a5322b; }
html[data-theme="light"] .tf-ai-review-warning strong { color:#66508b; }
html[data-theme="light"] .tf-sidebar .tf-avatar { background:#30466f; color:#e1e9f8; }
html[data-theme="light"] .tf-role-badge { border-color:#aebfce; color:#405d76; }
html[data-theme="light"] .tf-stat-icon.blue { background:#e4edf5; }
html[data-theme="light"] .tf-stat-icon.amber { background:#f6eedc; }
html[data-theme="light"] .tf-stat-icon.purple { background:#ece8f7; }
html[data-theme="light"] .tf-stat-icon.green { background:#e1f0e8; }
html[data-theme="light"] .tf-stat-icon.gray { background:#e9edf0; }
html[data-theme="light"] .tf-internal-note-form { background:#f2eff8; border-color:#d1c7e5; }
html[data-theme="light"] .tf-admin-actions a,html[data-theme="light"] .tf-management-list>div { background:var(--tf-panel); }
html[data-theme="light"] .tf-admin-actions a { color:var(--tf-text); font-weight:600; }
html[data-theme="light"] .tf-admin-actions a:hover { background:var(--tf-panel-alt); color:var(--tf-text); text-decoration:underline; text-underline-offset:3px; }
html[data-theme="light"] .tf-admin-actions a:focus-visible { outline:2px solid var(--tf-text); outline-offset:3px; }
html[data-theme="light"] .tf-ai-review-warning { background:#f1edf8; border-color:#cfc3e4; }
html[data-theme="light"] .tf-analytics-summary article { background:linear-gradient(145deg,var(--tf-panel),var(--tf-panel-alt)); }
html[data-theme="light"] .tf-alert-success { background:#e6f3eb; }
html[data-theme="light"] .tf-alert-error { background:#f8e9ea; }
html[data-theme="light"] .tf-alert-warning { background:#f7f0de; }
html[data-theme="light"] .tf-alert-info { background:#e7eef4; }
html[data-theme="light"] .tf-panel,html[data-theme="light"] .tf-stat-card,html[data-theme="light"] .tf-admin-summary article,html[data-theme="light"] .tf-analytics-summary article { box-shadow:0 10px 28px rgba(42,52,61,.07); }

/* The navigation ribbon uses the sidebar palette in either page theme. */
.dashboard-body .tf-topbar .tf-role-badge { border-color:var(--tf-sidebar-border); color:var(--tf-sidebar-text); }
.dashboard-body .tf-topbar input { color-scheme:dark; }
.tf-topbar .tf-search button { color:var(--tf-link); font-weight:600; }
.tf-topbar .tf-status-dot i { background:#78c99f; }
.tf-topbar :is(input,button,a):focus-visible { outline:2px solid #c9d8f7; outline-offset:3px; }

@media (max-width:820px) {
  .tf-account-menu { margin-left:auto; }
  .tf-app-shell { display:block; }
  .tf-sidebar { border-bottom:0; border-right:1px solid var(--tf-sidebar-border); box-shadow:16px 0 45px rgba(0,0,0,.32); height:100vh; left:0; min-height:100vh; overflow-y:auto; position:fixed; top:0; transform:translateX(-105%); transition:transform .2s ease; width:min(290px,86vw); z-index:1001; }
  .tf-nav-open { overflow:hidden; }.tf-nav-open .tf-sidebar { transform:translateX(0); }
  .tf-nav { flex-direction:column; overflow-x:visible; padding:.75rem; }.tf-nav-link { flex:initial; }.tf-nav-link small,.tf-sidebar-profile { display:flex; }
  .tf-nav-overlay { background:rgba(0,0,0,.54); border:0; display:block; inset:0; opacity:0; pointer-events:none; position:fixed; transition:opacity .2s ease; z-index:1000; }.tf-nav-open .tf-nav-overlay { opacity:1; pointer-events:auto; }
  .tf-mobile-menu { display:inline-flex; }
  .tf-topbar { height:60px; padding:0 .85rem; }.tf-search { max-width:none; position:static; width:100%; }.tf-role-badge { display:none; }
  .tf-dashboard { padding:1.25rem .9rem 2rem; }
  .tf-page-heading { align-items:flex-start; flex-direction:column; gap:.9rem; }.tf-page-heading>[class$="button"] { width:100%; }
  .tf-ticket-meta { position:static; }
  .tf-admin-summary { grid-template-columns:repeat(2,1fr); }
  .tf-row-actions { min-width:165px; }
}
@media (max-width:520px) {
  .tf-topbar { flex-wrap:wrap; gap:.5rem; height:auto; min-height:60px; padding-top:.5rem; padding-bottom:.5rem; }
  .tf-topbar .tf-search { flex-basis:100%; order:3; }
  .tf-topbar>.tf-status-dot { font-size:.62rem; }
  .tf-topbar-controls { gap:.4rem; }
  .tf-search button { display:none; }.tf-status-dot { display:none; }
  .tf-dashboard { padding-left:.7rem; padding-right:.7rem; }.tf-panel { border-radius:7px; }
  .tf-form-panel,.tf-kb-article { padding:1rem; }.tf-form-actions { align-items:stretch; flex-direction:column-reverse; }.tf-form-actions>* { width:100%; }
  .tf-pagination { align-items:flex-start; flex-direction:column; }.tf-pagination ul { max-width:100%; overflow-x:auto; }
  .tf-admin-summary { grid-template-columns:1fr 1fr; }.tf-admin-summary article { padding:.75rem; }
  .tf-search-page form>div { flex-direction:column; }.tf-ai-search button { align-self:stretch; }
  .tf-message-header { gap:.4rem; }.tf-message-header time { white-space:normal; }
  .tf-login-page { padding:5.5rem .8rem 1.5rem; }.tf-login-card { padding:1.4rem 1.1rem; }.tf-login-brand { top:1.5rem; }
  .tf-login-options { align-items:flex-start; flex-direction:column; }.tf-login-access-help { padding-left:1.35rem; text-align:left; }
  .tf-status-toolbar,.tf-status-toolbar form { align-items:stretch; flex-direction:column; }.tf-status-toolbar form>* { width:100%; }
  .tf-theme-toggle span { display:none; }.tf-theme-toggle { height:34px; justify-content:center; padding:.35rem; width:34px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; } }

/* Small on-page tools use the existing theme palette, not external UI services. */
.tf-ai-chat[hidden],.tf-notification-popup[hidden] { display:none!important; }
.tf-widget-header { align-items:center; border-bottom:1px solid var(--tf-border); display:flex; flex:0 0 auto; gap:.75rem; justify-content:space-between; padding:.85rem 1rem; }
.tf-widget-header h2 { color:var(--tf-text); font-size:.95rem; margin:0; }
.tf-widget-header small { color:var(--tf-muted); font-size:.7rem; }
.tf-widget-header>button { background:transparent; border:0; border-radius:4px; color:var(--tf-muted); cursor:pointer; font-size:1.6rem; line-height:1; padding:.3rem .5rem; }
.tf-widget-header>button:hover { background:var(--tf-panel-alt); color:var(--tf-text); }
.tf-widget-intro { color:var(--tf-muted); font-size:.78rem; line-height:1.55; padding:.5rem; }
.tf-ai-chat { background:var(--tf-panel); border:1px solid var(--tf-border-light); border-radius:12px; bottom:5rem; box-shadow:0 18px 60px rgba(0,0,0,.35); color:var(--tf-text); display:flex; flex-direction:column; height:min(570px,calc(100dvh - 7rem)); min-height:0; position:fixed; right:1.25rem; width:min(410px,calc(100vw - 2rem)); z-index:950; }
.tf-ai-chat-log { flex:1; min-height:0; overflow-y:auto; padding:.75rem; }
.tf-chat-message { border:1px solid var(--tf-border); border-radius:8px; font-size:.8rem; line-height:1.55; margin-bottom:.7rem; overflow-wrap:anywhere; padding:.65rem .75rem; white-space:pre-wrap; }
.tf-chat-question { background:var(--tf-accent-soft); margin-left:1.5rem; }
.tf-chat-answer { background:var(--tf-panel-alt); margin-right:.5rem; }
.tf-chat-sources { display:flex; flex-direction:column; gap:.3rem; margin-top:.6rem; white-space:normal; }
.tf-chat-sources a { color:var(--tf-text); font-size:.72rem; text-decoration:underline; }
.tf-ai-chat form { border-top:1px solid var(--tf-border); flex:0 0 auto; padding:.75rem; }
.tf-ai-chat label { display:block; font-size:.72rem; font-weight:600; margin-bottom:.3rem; }
.tf-ai-chat textarea { background:var(--tf-panel-alt); border:1px solid var(--tf-border-light); border-radius:7px; color:var(--tf-text); font:inherit; font-size:.8rem; max-height:8rem; min-height:4rem; padding:.65rem; resize:vertical; width:100%; }
.tf-ai-chat-actions { display:flex; gap:.5rem; justify-content:space-between; margin-top:.5rem; }
.tf-ai-chat [role="status"] { color:var(--tf-muted); font-size:.7rem; line-height:1.4; margin:.45rem 0 0; }
.tf-ai-chat>footer { color:var(--tf-muted); flex:0 0 auto; font-size:.64rem; line-height:1.4; padding:0 .85rem .75rem; }
.tf-ai-chat :is(button,a,textarea):focus-visible,.tf-notification-popup :is(button,a):focus-visible { outline:2px solid var(--tf-accent); outline-offset:2px; }
.tf-notification-menu { position:relative; z-index:60; }
.tf-notification-popup { background:var(--tf-panel); border:1px solid var(--tf-border-light); border-radius:9px; box-shadow:0 14px 40px rgba(0,0,0,.35); color:var(--tf-text); position:absolute; right:0; top:calc(100% + .75rem); width:370px; }
.tf-notification-preview-list { max-height:min(430px,60dvh); overflow-y:auto; }
.tf-notification-preview-item { border-bottom:1px solid var(--tf-border); padding:.7rem 1rem; }
.tf-notification-preview-item strong { font-size:.76rem; }
.tf-notification-preview-item p { font-size:.76rem; line-height:1.45; margin:.25rem 0; overflow-wrap:anywhere; }
.tf-notification-preview-item small { color:var(--tf-muted); display:block; font-size:.65rem; margin-bottom:.3rem; }
.tf-notification-popup>footer { align-items:center; display:flex; gap:.5rem; justify-content:space-between; padding:.7rem; }
.tf-notification-popup>footer a { color:var(--tf-text); font-size:.7rem; }
.tf-asset-filters { align-items:end; display:flex; flex-wrap:wrap; gap:.65rem; padding:1rem; }
.tf-asset-filters>div { flex:1; min-width:160px; }
.tf-asset-filters label { display:block; font-size:.72rem; font-weight:600; margin-bottom:.3rem; }
.tf-asset-filters :is(input,select) { background:var(--tf-panel-alt); border:1px solid var(--tf-border-light); border-radius:5px; color:var(--tf-text); font:inherit; font-size:.78rem; padding:.55rem; width:100%; }
@media (max-width:520px) { .tf-ai-chat { right:.75rem; width:calc(100vw - 1.5rem); }.tf-notification-popup { left:.75rem; position:fixed; right:.75rem; top:4.5rem; width:auto; } }

/* Keep dense interface text readable without enlarging the layout at the same rate. */
.tf-nav-section>summary,
.tf-ticket-table th,
.tf-ticket-meta dt,
.tf-kb-card footer,
.tf-form-field :is(small,.helptext),
.tf-workflow-form label,
.tf-filter-form label,
.tf-login-options,
.tf-login-help { font-size:.8rem; }

.tf-nav-link,
.tf-ticket-table td,
.tf-desk-panel .tf-desk-table td,
.tf-kb-card p,
.tf-kb-content,
.tf-description p,
.tf-form-field label,
.tf-primary-button,
.tf-secondary-button { font-size:.9rem; }

.tf-ticket-age {
  border-top:1px solid var(--tf-border);
  color:var(--tf-muted);
  display:grid;
  font-size:.8rem;
  gap:.25rem;
  margin-top:1.25rem;
  padding-top:.85rem;
}
.tf-ticket-age time { color:var(--tf-text); font-weight:500; }

html[data-theme="light"] .tf-topbar {
  --tf-border-light:#778695;
  --tf-link:#254d84;
  color-scheme:light;
}
html[data-theme="light"] .dashboard-body .tf-topbar input { color-scheme:light; }
html[data-theme="light"] .tf-nav-link.active,
html[data-theme="light"] :is(.tf-brand,.tf-icon-button):hover { color:var(--tf-sidebar-text); }
html[data-theme="light"] .tf-nav-link.active::before { background:var(--tf-accent); }
html[data-theme="light"] :is(.tf-nav-link,.tf-nav-section>summary,.tf-account-trigger,.tf-account-logout):focus-visible,
html[data-theme="light"] .tf-topbar :is(input,button,a):focus-visible { outline-color:var(--tf-link); }
html[data-theme="light"] :is(.tf-primary-button,.tf-nav-new-ticket,.tf-ai-fab):hover { background:#304960; }
html[data-theme="light"] .tf-status-dot i { background:var(--tf-green); }
html[data-theme="light"] .tf-login-page { background:linear-gradient(145deg,var(--tf-bg),var(--tf-sidebar-bg)); }
html[data-theme="light"] .tf-login-brand { color:var(--tf-text); text-shadow:none; }
html[data-theme="light"] .tf-login-user-icon { color:var(--tf-link); border-color:var(--tf-border-light); }

.tf-admin-areas { display:grid; gap:1rem; }
.tf-admin-area { overflow:hidden; }
.tf-admin-area h2 {
  background:var(--tf-panel-alt);
  color:var(--tf-text);
  font-size:.95rem;
  font-weight:650;
  margin:0;
  padding:.7rem 1rem;
}
.tf-admin-area-row {
  align-items:center;
  border-top:1px solid var(--tf-border);
  color:var(--tf-text);
  display:flex;
  flex-wrap:wrap;
  font-size:.9rem;
  gap:.4rem 1.25rem;
  justify-content:space-between;
  padding:.6rem 1rem;
}
.tf-admin-area-row>span { font-weight:600; }
.tf-admin-area-actions { display:flex; flex-wrap:wrap; gap:.25rem 1rem; }
.tf-admin-area-actions a {
  color:var(--tf-link);
  font-weight:500;
  padding:.3rem 0;
  text-underline-offset:.2em;
}
.tf-admin-area-actions a:hover { color:var(--tf-text); }

.tf-pagination-large ul {
  flex-wrap: wrap;
  gap: .4rem;
  overflow: visible;
}

.tf-pagination-large a,
.tf-pagination-large li > span {
  box-sizing: border-box;
  font-size: .84rem;
  height: auto;
  min-height: 44px;
  min-width: 44px;
  padding: .45rem .75rem;
}
