
.hdx { --hdx-ease: cubic-bezier(.3, .7, .3, 1); --hdx-list: 380px; --hdx-h: clamp(560px, calc(100dvh - var(--header-h, 72px) - 112px), 1240px);
  display: grid; grid-template-columns: var(--hdx-list) minmax(0, 1fr); gap: var(--sp-5); height: var(--hdx-h); min-width: 0; }
.hdx > * { min-width: 0; min-height: 0; }
.hdx :is(a, button, input, [tabindex]):focus-visible { outline: 2px solid var(--lantern); outline-offset: 2px; }
.hdx-list { display: flex; flex-direction: column; gap: var(--sp-3); container: hdxl / inline-size; }
.hdx-detail { position: relative; container: hdxd / inline-size; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: var(--sp-0-5) var(--sp-1) var(--sp-1-5); margin: -2px -4px -6px; }
.hdx-back { display: none; margin: 0 0 var(--sp-3); }
@media (max-width: 1180px) { .hdx { --hdx-list: 340px; } }
@container hdxl (max-width: 379px) { .hdx-new span { display: none; } .hdx-new { padding: 0 var(--sp-3-5); } }
@container hdxl (max-width: 299px) { .hdx-tabs em { display: none; } }
.hdx.is-focus { grid-template-columns: minmax(0, 1fr); }
.hdx.is-focus .hdx-list { display: none; }

.hdx-bar { flex: none; display: grid; gap: var(--sp-3); padding: var(--sp-3-5); border-radius: var(--r-lg); }
.hdx-bar-r { display: flex; align-items: center; gap: var(--sp-2-5); }
.hdx-new { flex: none; }
.hdx-tabs { flex: 1; min-width: 0; }   
.hdx-tabs > button { gap: 7px; }
.hdx-tabs em { padding: 1px var(--sp-1-5); border-radius: var(--r-field-sm); background: var(--wash-3); color: var(--ink-2); font: 700 var(--fs-ui-xs)/1.5 var(--font-mono); font-style: normal; }
.hdx-tabs em:empty { display: none; }
.hdx-tabs [aria-selected="true"] em { background: rgb(var(--lantern-rgb) / .16); color: var(--lantern); }
.hdx-q.hd-q { flex: none; padding-right: var(--sp-1); }   
.hdx-q .hd-qx { width: 32px; height: 32px; }
.hdx-types { display: flex; flex-wrap: wrap; gap: var(--sp-1-5); }
.hdx-types[hidden] { display: none; }
.hdx-types .sk-chip svg { width: 15px; height: 15px; flex: none; }
.hdx-types .sk-chip em:empty { display: none; }
.hdx-resp { flex: none; display: flex; gap: var(--sp-2); margin: 0; padding: 0 var(--sp-1-5); font-size: var(--fs-ui); line-height: 1.45; color: var(--ink-3); }
.hdx-resp svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }

.hdx-items { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: 0 -6px; padding: var(--sp-1-5); display: grid; gap: var(--sp-2); align-content: start; list-style: none; }
.hdx-items.is-turn > .hdx-row { animation: mo-rise .5s var(--hdx-ease) calc(min(var(--i, 0), 6) * 40ms) both; }
.hdx-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic t" "ic m"; align-items: center; column-gap: var(--sp-3-5); row-gap: 9px; padding: var(--sp-3-5); border-radius: var(--r-tile); cursor: pointer;
  background: var(--l1); border: var(--border); box-shadow: var(--edge);
  transition: transform var(--dur-base) var(--hdx-ease), border-color var(--dur-fast), background-color var(--dur-fast), box-shadow var(--dur-base) var(--hdx-ease); }
@media (hover: hover) { .hdx .hdx-row:hover:not([aria-selected="true"]) { transform: translateY(var(--lift-s)); border-color: var(--line-2); background: var(--l2); box-shadow: var(--edge), var(--elev-2); } .hdx-row:hover .hdx-ric { transform: rotate(-6deg) scale(1.07); } }
.hdx-row:active { transform: scale(.99); }
.hdx-row[aria-selected="true"] { border-color: rgb(var(--lantern-rgb) / .5); background: linear-gradient(180deg, rgb(var(--lantern-rgb) / .05), rgb(var(--lantern-rgb) / .02)), var(--l1); box-shadow: var(--edge), 0 0 0 3px rgb(var(--lantern-rgb) / .09); }
.hdx-row:focus-visible { outline: 2px solid var(--lantern); outline-offset: 3px; }
.hdx-ric { grid-area: ic; grid-row: 1 / span 2; align-self: start; display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-field); color: var(--ink-2); background: var(--wash-3); box-shadow: var(--ring);
  transition: transform var(--dur-slow) var(--ease-spring), color var(--dur-fast), background-color var(--dur-fast); }
.hdx-ric svg { width: 20px; height: 20px; }
.hdx-row[aria-selected="true"] .hdx-ric { color: var(--lantern); background: rgb(var(--lantern-rgb) / .13); box-shadow: inset 0 0 0 1px rgb(var(--lantern-rgb) / .2); }
.hdx-rt { grid-area: t; display: grid; gap: var(--sp-0-5); min-width: 0; align-self: end; }
.hdx-rt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-card-title); font-weight: var(--fw-bold); letter-spacing: -.01em; color: var(--ink); }
.hdx-rt small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-ui); color: var(--ink-3); }
.hdx-rt code { font: 600 var(--fs-ui) var(--font-mono); letter-spacing: .02em; color: var(--ink-3); background: none; padding: 0; }
.hdx-rm { grid-area: m; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-width: 0; align-self: start; }
.hdx-rm time { flex: none; font: 600 12px var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.hdx-row.is-new { border-color: rgb(var(--online-rgb) / .35); }
.hdx-row.is-new .hdx-ric { color: var(--online); background: rgb(var(--online-rgb) / .12); box-shadow: inset 0 0 0 1px rgb(var(--online-rgb) / .2); }
.hdx-row.is-new .hdx-rt b { font-weight: var(--fw-heavy); }
.hdx-empty { list-style: none; }
.hdx-part { margin: var(--sp-3) 0 0; font-size: var(--fs-ui); color: var(--ink-3); }

.hdx-chat { height: 100%; }
.hdx-chat .ss-tkc { gap: var(--sp-4); height: 100%; }
.hdx-chat .ss-tkc-bar { align-items: center; gap: var(--sp-3) var(--sp-4); }
.hdx-chat .ss-tkc-head { flex: 1 1 320px; gap: var(--sp-2); }
.hdx-chat .ss-tkc-head > .hd-k { margin: 0 0 -2px; }
.hdx-chat .ss-tkc-subj { font-size: 26px; font-weight: var(--fw-heavy); letter-spacing: -.02em; line-height: 1.2; }
.hdx-chat .ss-tkc-meta { gap: var(--sp-1-5) var(--sp-2-5); font-size: var(--fs-ui-lg); color: var(--ink-2); }
.hdx-chat .ss-tkc-bact { order: 3; } .hdx-chat .hdx-focus { order: 4; }
.hdx-chat .ss-tkc-body { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
.hdx-chat .ss-tkc-side { display: none; }
.hdx-chat .ss-tk-win { height: 100%; border: var(--border); border-radius: var(--r-lg); background: var(--l1); box-shadow: var(--edge); }
.hdx-chat .ss-tk-scroll { height: auto; flex: 1; min-height: 0; padding: var(--sp-4-5) 22px var(--sp-2); }
.hdx-chat .ss-tk-chat { gap: var(--sp-1-5); }
.hdx-chat .ss-tk-group { gap: var(--sp-3); margin-top: var(--sp-3-5); }
.hdx-chat .ss-tk-av { width: 40px; height: 40px; }
.hdx-chat .ss-tk-gbody { max-width: min(80%, 760px); }
.hdx-chat .ss-tk-bubble { padding: 11px var(--sp-4); border-radius: var(--r-tile); }
.hdx-chat .ss-tk-text { font-size: var(--fs-body); line-height: var(--lh-body); }
.hdx-chat .ss-tk-pics { max-width: min(100%, 520px); }
.hdx-chat .ss-tk-input { font-size: var(--fs-body); }
.hdx-chat .ss-tk-comp { background: none; }
.hdx-chat .ss-tk-group--me .ss-tk-bubble { border-color: rgb(var(--lantern-rgb) / .32); background: rgb(var(--lantern-rgb) / .09); }
.hdx-chat .ss-tkc-side { border: var(--border); border-radius: var(--r-lg); background: var(--l1); box-shadow: var(--edge); }
.hdx-chat .ss-tkc-facts { padding: var(--sp-5); gap: var(--sp-5); }
.hdx-chat .ss-tkc-h { font: 700 var(--fs-ui-xs)/1.4 var(--font-mono); letter-spacing: .12em; }
.hdx-chat .ss-tkc-dl dt { color: var(--ink-3); }
@container hdxd (min-width: 940px) { .hdx-chat .ss-tkc-side { display: block; } .hdx-chat .ss-tkc-body { grid-template-columns: minmax(0, 1fr) 300px; } }
@container hdxd (min-width: 1240px) { .hdx-chat .ss-tkc-body { grid-template-columns: minmax(0, 1fr) 340px; } }
.hdx .ss-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border: 0; font-size: var(--fs-ui); font-weight: var(--fw-bold); background: var(--wash-3); }
.hdx .ss-pill--wait { color: var(--lantern); background: rgb(var(--lantern-rgb) / .12); }
.hdx .ss-pill--ok { color: var(--hd-staff-ink); background: rgb(var(--hd-discord-rgb) / .14); }
.hdx .ss-pill--bad { color: var(--hd-bad); background: rgb(var(--hd-bad-rgb) / .12); }
.hdx .ss-sdot--ok { background: var(--hd-staff-ink); }
.hdx .ss-tkc-refbtn { height: 28px; }

.hdx-item { display: grid; gap: var(--sp-4); max-width: 880px; align-content: start; }
.hdx-item > * { animation: mo-rise .45s var(--hdx-ease) both; }
.hdx-item > :nth-child(2) { animation-delay: 60ms; } .hdx-item > :nth-child(3) { animation-delay: 120ms; } .hdx-item > :nth-child(4) { animation-delay: 180ms; }
.hdx-ih { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-4); }
.hdx-iic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md); color: var(--lantern); background: rgb(var(--lantern-rgb) / .12); box-shadow: inset 0 0 0 1px rgb(var(--lantern-rgb) / .16); }
.hdx-iic svg { width: 24px; height: 24px; }
.hdx-ih-t { display: grid; gap: var(--sp-1-5); min-width: 0; }
.hdx-ih-t .hd-k { margin: 0 0 -2px; }
.hdx-ih-t h2 { margin: 0; font-size: 26px; font-weight: var(--fw-heavy); letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.hdx-ih-m { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1-5) var(--sp-2-5); margin: 0; font-size: var(--fs-ui-lg); color: var(--ink-2); }
.hdx-sep { color: var(--ink-3); }
.hdx-ih-m .hdx-pill { height: 26px; padding: 0 11px; }
.hdx-card { display: grid; gap: var(--sp-4-5); padding: 22px 22px var(--sp-5); border-radius: var(--r-lg); }
.hdx-track { padding: 0 var(--sp-1); }
.hdx-track .ss-track { max-width: none; }          
.hdx-next { display: flex; gap: var(--sp-2-5); margin: 0; font-size: var(--fs-ui-2xl); line-height: var(--lh-ui); color: var(--ink-2); }
.hdx-next svg { width: 18px; height: 18px; flex: none; margin-top: var(--sp-0-5); color: var(--ink-3); }
.hdx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; border-radius: var(--r-lg); overflow: hidden; }
.hdx-facts > div { display: grid; gap: var(--sp-1); padding: var(--sp-4) var(--sp-5); border-top: var(--border); }
.hdx-facts > div:nth-child(-n+2) { border-top: 0; }
.hdx-facts > div:nth-child(odd) { border-right: var(--border); }
.hdx-facts > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.hdx-facts dt { font: 700 var(--fs-ui-xs)/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.hdx-facts dd { margin: 0; font-size: var(--fs-card-title); font-weight: var(--fw-medium); color: var(--ink); overflow-wrap: anywhere; }
.hdx-facts code { font: 600 14px var(--font-mono); letter-spacing: .02em; }
.hdx-acts { display: flex; flex-wrap: wrap; gap: var(--sp-2-5); }

.hdx-sk { pointer-events: none; }
.hdx-sk .hdx-bar { height: 112px; align-content: start; }
.hdx-sk .hdx-bar i { display: block; height: 44px; border-radius: var(--r-pill); background: var(--skel-fill); animation: skel 1.4s ease-in-out infinite; }
.hdx-sk .hdx-items li { height: 98px; border-radius: var(--r-tile); background: var(--skel-fill); animation: skel 1.4s ease-in-out infinite; }
.hdx-sk .hdx-detail { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: var(--sp-4); overflow: hidden; }
.hdx-sk-h { display: block; width: min(60%, 420px); height: 44px; border-radius: var(--r-field); background: var(--skel-fill); animation: skel 1.4s ease-in-out infinite; }
.hdx-sk-c { min-height: 320px; border-radius: var(--r-lg); }
@media (max-width: 900px) {
  .hdx { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 480px; }
  .hdx-items { overflow: visible; margin: 0 -6px; }
  .hdx[data-pane="detail"] .hdx-list, .hdx[data-pane="list"] .hdx-detail { display: none; }
  .hdx-detail { overflow: visible; container-type: normal; }
  .hdx .hdx-back { display: inline-flex; }
  .hdx.is-focus .hdx-list { display: flex; }
  .hdx-bar { padding: var(--sp-3); border-radius: var(--r-tile); }
  .hdx-chat { height: auto; }
  .hdx-chat .ss-tkc { height: calc(100dvh - var(--header-h, 64px) - 150px); min-height: 480px; }
  .hdx-chat .ss-tkc-subj, .hdx-ih-t h2 { font-size: 22px; }
  .hdx-chat .ss-tkc-side { display: none; }
  .hdx-chat .ss-tk-scroll { padding: var(--sp-3) var(--sp-2-5) var(--sp-1-5); }
  .hdx-chat .ss-tk-gbody { max-width: 86%; }
  .hdx-chat .ss-tk-text { font-size: var(--fs-card-title); }
  .hdx-chat .ss-tk-av { width: 32px; height: 32px; }
  .hdx-focus { display: none; }
  .hdx-ih { grid-template-columns: auto minmax(0, 1fr); } .hdx-ih-a { grid-column: 1 / -1; }
  .hdx-facts { grid-template-columns: minmax(0, 1fr); }
  .hdx-facts > div:nth-child(odd) { border-right: 0; } .hdx-facts > div:nth-child(2) { border-top: var(--border); }
  .hdx-card { padding: var(--sp-4-5) var(--sp-4); }
}
@media (max-width: 700px) { .hdx-types { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 var(--sp-3); } .hdx-types::-webkit-scrollbar { display: none; } .hdx-types > * { flex: none; } }
@media (max-width: 520px) { .hdx-tabs > button { padding: 0 var(--sp-1); gap: 5px; } }
@media (prefers-reduced-motion: reduce) {
  .hdx-items.is-turn > .hdx-row, .hdx-item > *, .hdx-sk .hdx-bar i, .hdx-sk .hdx-items li, .hdx-sk-h { animation: none; }
  .hdx-row, .hdx-ric { transition: none; }
  .hdx .hdx-row:hover:not([aria-selected="true"]), .hdx-row:hover .hdx-ric { transform: none; }
}
html[data-fx="lite"] :is(.hdx-items.is-turn > .hdx-row, .hdx-item > *) { animation-duration: .2s; animation-delay: 0s; }
html[data-fx="lite"] :is(.hdx-sk .hdx-bar i, .hdx-sk .hdx-items li, .hdx-sk-h) { animation: none; }
