.desk-body { background:var(--page); color:var(--ink); }
.desk :is(button,input,textarea) { font-family:inherit; }
.desk [hidden] { display:none !important; }
.desk-header { min-height:62px; display:flex; align-items:center; gap:30px; padding:0 24px; background:var(--navy); color:#fff; }
.desk-header a { color:inherit; text-decoration:none; }
.desk-brand,.desk-account,.desk-nav,.desk-nav a,.desk button { display:inline-flex; align-items:center; gap:8px; }
.desk-brand { font-size:14px; font-weight:750; white-space:nowrap; }
.desk-account { margin-left:auto; font-size:13px; white-space:nowrap; }
.desk-nav { align-self:stretch; gap:4px; }
.desk-nav a { padding:0 14px; color:#d5e0ef; border-bottom:3px solid transparent; font-size:14px; }
.desk-nav a[aria-current="page"] { color:#fff; border-color:#83b0ff; background:#243955; }
.desk-section { max-width:1600px; margin:auto; padding:0 24px 24px; }
.desk-workbar { min-height:72px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.desk-workbar h1 { margin:0; font-size:27px; letter-spacing:-.03em; }
.desk button { justify-content:center; min-height:40px; padding:8px 14px; font-size:14px; }
.desk button.outline { background:var(--paper); border:1px solid var(--line); color:var(--ink); }
.desk button.outline:hover { background:#eef2f8; }
.desk :focus-visible { outline:2px solid #477bd0; outline-offset:2px; }
.desk .icon { width:1em; overflow:hidden; font-size:18px; }
.desk-columns { display:grid; grid-template-columns:minmax(245px, 310px) minmax(0, 1fr) minmax(190px, 240px); min-height:490px; height:calc(100dvh - 158px); border:1px solid var(--line); border-radius:10px; overflow:hidden; background:#fff; }
.desk-queue { display:flex; flex-direction:column; min-height:0; border-right:1px solid var(--line); }
.desk-queue-tools,.desk-filters { display:flex; align-items:center; gap:6px; padding:10px 12px; }
.desk-queue-tools { padding-bottom:0; }
.desk-search { display:flex; align-items:center; gap:7px; flex:1; min-width:0; padding:0 8px; border:1px solid var(--line); border-radius:7px; color:var(--muted); }
.desk .desk-search input { padding:8px 0; border:none; min-width:0; }
.desk-filters { border-bottom:1px solid var(--line); }
.desk .desk-filters button { min-height:30px; padding:5px 8px; color:var(--muted); background:transparent; font-size:13px; }
.desk .desk-filters button[aria-pressed="true"] { color:var(--ink); background:#eaf0fa; }
.desk ul { margin:0; padding:0; list-style:none; }
#desk-tickets { overflow:auto; }
#desk-tickets li { border-bottom:1px solid #edf0f4; }
#desk-tickets li:not(:has(button)) { padding:17px 14px; color:var(--muted); font-size:13px; }
#desk-tickets button { display:grid; justify-content:start; width:100%; min-height:62px; text-align:left; border:0; border-left:3px solid transparent; border-radius:0; padding:10px 12px; font-weight:650; overflow-wrap:anywhere; }
#desk-tickets button:hover { background:#f4f7fc; }
#desk-tickets button[aria-current="true"] { background:#eaf1fc; border-left-color:#3a67ad; }
#desk-tickets small { color:var(--muted); font-weight:400; }
.desk-thread { display:grid; grid-template-rows:auto minmax(0,1fr) auto; min-width:0; min-height:0; }
.desk-thread-head { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:15px 20px; border-bottom:1px solid var(--line); }
.desk-thread-head h2 { margin:0; font-size:19px; overflow-wrap:anywhere; }
.desk-status { border-radius:5px; background:#e9edf3; padding:4px 8px; color:#435571; white-space:nowrap; font-size:12px; }
.desk-status[data-state="open"] { background:#e4f3ec; color:#236044; }
#desk-messages { display:flex; flex-direction:column; align-items:flex-start; gap:16px; overflow:auto; padding:20px; background:#fbfcfe; }
#desk-messages article { max-width:88%; padding:11px 14px; border:1px solid var(--line); border-radius:8px; background:#fff; overflow-wrap:anywhere; }
#desk-messages article[data-role="support"] { align-self:flex-end; background:#eef4ff; border-color:#dbe7fd; }
#desk-messages strong { font-size:12px; color:var(--muted); }
#desk-messages p { margin:5px 0 0; white-space:pre-wrap; }
#desk-reply { padding:12px 20px; border-top:1px solid var(--line); }
.desk-compose-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.desk-context { border-left:1px solid var(--line); background:#f7f9fc; padding:16px; overflow:auto; }
.desk-context h2,.desk-billing h2 { margin:0; font-size:15px; }
.desk-context dl { margin:16px 0 0; border-top:1px solid var(--line); }
.desk-context dt { margin-top:12px; color:var(--muted); font-size:12px; }
.desk-context dd { margin:3px 0 0; overflow-wrap:anywhere; font-size:13px; }
#desk-registrar { margin-top:16px; }
#desk-registrar-check { width:100%; }
#desk-registrar-status:not(:empty) { margin-top:8px; font-size:13px; color:var(--muted); }
#desk-abuse-note { margin-top:14px; }
#desk-abuse-activity li { padding:8px 0; border-top:1px solid var(--line); font-size:13px; white-space:pre-wrap; overflow-wrap:anywhere; }
.desk .overdue { color:#a32b24 !important; }
.desk-empty { grid-column:2/-1; display:grid; place-content:center; justify-items:center; color:var(--muted); }
.desk-empty .icon { font-size:32px; }
.desk label:not(.desk-search) { display:grid; gap:5px; margin:0 0 10px; font-size:13px; }
.desk input,.desk textarea { width:100%; border:1px solid #b9c5d5; border-radius:7px; background:#fff; padding:9px; font:inherit; color:inherit; }
.desk textarea { resize:vertical; }
.desk input[type="file"] { padding:5px; font-size:13px; }
.desk dialog { width:min(520px, calc(100vw - 32px)); padding:20px; border:1px solid var(--line); border-radius:12px; color:inherit; }
.desk dialog::backdrop { background:#17263d80; }
.desk-dialog-head { display:flex; justify-content:space-between; margin-bottom:16px; }
.desk-dialog-head h2 { margin:0; font-size:20px; }
#desk-message:not(:empty) { margin:12px 24px 0; color:#6e301d; }
#desk-message:empty,#desk-abuse-error:empty { display:none; }
#desk-abuse-error { color:#a32b24; }
.desk-billing { display:grid; gap:14px; background:#fff; border:1px solid var(--line); border-radius:10px; padding:20px; }
.desk-billing li { border-bottom:1px solid var(--line); padding:10px 0; overflow-wrap:anywhere; }
#desk-payment-search { display:flex; align-items:end; gap:8px; }
#desk-payment-search label { margin:0; flex:1; max-width:400px; }
.desk .desk-back { display:none; }
.desk-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
@media (max-width:900px) {
  .desk-columns { grid-template-columns:minmax(225px, 260px) minmax(0,1fr); height:auto; }
  .desk-thread { min-height:440px; }
  #desk-messages,#desk-tickets { max-height:54dvh; }
  .desk-context { grid-column:2; border-left:0; border-top:1px solid var(--line); }
}
@media (max-width:620px) {
  .desk-header { gap:8px; flex-wrap:wrap; padding:8px 12px 0; }
  .desk-nav { order:3; width:100%; min-height:36px; }
  .desk-section { padding:0 10px 12px; }
  .desk-workbar h1 { font-size:22px; }
  .desk-columns { grid-template-columns:minmax(0,1fr); min-height:0; }
  .desk-queue { border:0; min-height:220px; }
  .desk-empty,.desk-context { grid-column:1; }
  .desk-empty,.desk-section.has-ticket .desk-queue { display:none; }
  .desk .desk-back { display:inline-flex; grid-column:1/-1; justify-self:start; }
  .desk-thread-head { display:grid; grid-template-columns:1fr auto; }
}
