@font-face {font-family:"DM Sans";src:url(assets/dm-sans-400.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap;}
@font-face {font-family:"DM Sans";src:url(assets/dm-sans-500.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap;}
@font-face {font-family:"DM Sans";src:url(assets/dm-sans-600.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap;}
@font-face {font-family:"DM Sans";src:url(assets/dm-sans-700.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap;}
:root {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  color: #eeeef4;
  background: #111218;
  color-scheme: dark;
  --bg: #111218;
  --panel: #1a1b22;
  --border: #2b2d38;
  --muted: #a7afc5;
  --blue: #9de6ff;
  --button: #092d3e;
  --hover: #103f53;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
.connection-status {
  margin: 20px auto 0;
  width: min(1120px, calc(100% - 48px));
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
}
p {
  line-height: 1.65;
  color: var(--muted);
}
.icon {
  height: 20px;
  width: 20px;
  vertical-align: middle;
  flex-shrink: 0;
}
img {
  max-width: 100%;
  display: block;
}
[hidden] {
  display: none !important;
}



.brand {
  height: 52px;
  min-width: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}


.top-link {
  font-size: 0.875rem;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.top-link .icon {
  width: 15px;
  height: 15px;
  color: #b7b8c7;
}
.top-link:hover {
  color: var(--blue);
}

.home-link {
  color: #e2e3ed;
}
.account {
  position: relative;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #22232d;
  padding: 6px 11px 6px 7px;
  border-radius: 9px;
  min-height: 34px;
  font-size: 0.875rem;
  font-weight: 700;
}
.account-button > .icon:first-child {
  color: #a6afc6;
  width: 23px;
  height: 23px;
}
.account-button > .icon:last-child {
  width: 13px;
  height: 13px;
  color: #b2b6c5;
}
.avatar {
  width: 29px;
  height: 29px;
  border-radius: 7px;
  background: #334051;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  color: #d1efff;
  font-size: 0.8rem;
  font-weight: 750;
}
.account-menu {
  position: absolute;
  right: 0;
  top: 46px;
  min-width: 210px;
  background: #20212a;
  border: 1px solid #353744;
  border-radius: 10px;
  padding: 7px;
  z-index: 20;
  box-shadow: 0 10px 30px #0005;
}
.account-menu button,
.account-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  text-align: left;
  font-size: 0.875rem;
  border-radius: 6px;
}
.account-menu button:hover,
.account-menu a:hover {
  background: #2c2d39;
}
.account-menu .icon {
  width: 17px;
  height: 17px;
  color: #a8b1c7;
}










.search-box {
  position: relative;
  margin-top: 25px;
}
.search-box > .icon {
  position: absolute;
  left: 13px;
  top: 12px;
  width: 17px;
  height: 17px;
  color: #7e8399;
}
.search-box input {
  padding-left: 40px;
  background: #191a20;
  border-color: #42434f;
  height: 41px;
  min-height: 41px;
  font-size: 15px;
}
.search-box input::placeholder {
  color: #7b849d;
}
.article-list {
  margin-top: 15px;
}
.article-link {
  display: flex;
  width: 100%;
  text-align: left;
  justify-content: space-between;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-radius: 5px;
}
.article-link h3 {
  font-size: 16px;
  letter-spacing: -0.02em;
  font-weight: 620;
  line-height: 1.4;
}
.article-link p {
  font-size: 14px;
  line-height: 1.55;
  color: #a9b5d5;
  margin-top: 3px;
}
.article-link > .icon {
  height: 13px;
  width: 13px;
  color: #82869b;
}
.article-link:hover h3 {
  color: var(--blue);
}
.browse-link {
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: 26px;
  padding: 0;
}
.browse-link .icon {
  width: 16px;
}


.contact-note {
  border-top: 1px solid #181c25;
  margin-top: 24px;
  padding-top: 24px;
  color: #7786a4;
  font-size: 14px;
  line-height: 1.5;
}
.contact-note a,
.contact-note button {
  color: var(--blue);
  padding: 0;
  font-size: inherit;
}
.contact-note strong {
  font-weight: 550;
}
.ticket-graphic {
  height: 39px;
  width: 39px;
  margin-bottom: 19px;
  color: #7d90aa;
  display: none;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--button);
  color: #9fe6ff;
  min-height: 41px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  transition: background 0.15s;
}
.button:hover {
  background: var(--hover);
}
.button.secondary {
  background: #252733;
  color: #d7deed;
  border-color: #363948;
}
.button.secondary:hover {
  background: #303444;
}
.button.danger {
  background: #39252c;
  color: #f5c1cb;
  border-color: #69404b;
}
.button.danger:hover {
  background: #4b2d36;
}
.button.quiet {
  background: transparent;
  border-color: #343744;
  color: #b9c3d9;
}
.text-button {
  font-size: 14px;
  color: var(--blue);
  padding: 0;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.text-button .icon {
  width: 16px;
  height: 16px;
}










.page {
  max-width: 1210px;
  width: calc(100% - 64px);
  margin: auto;
  padding: 50px 0 100px;
  min-height: calc(100vh - 240px);
}
.page.narrow {
  max-width: 900px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.page-head h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
}
.page-head p {
  margin-top: 9px;
  font-size: 15px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #939fb9;
  margin-bottom: 28px;
}
.breadcrumb .icon {
  height: 14px;
  width: 14px;
}
.breadcrumb a:hover {
  color: var(--blue);
}
.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.filters .search-box {
  margin: 0;
  flex: 1;
}
.filters select {
  max-width: 190px;
}
.panel {
  background: #191b23;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 22px;
}
.panel h2 {
  font-size: 20px;
  margin-bottom: 18px;
}
.table-scroll {
  overflow-x: auto;
  background: #181a22;
  border: 1px solid #2b2e3b;
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 14px;
}
th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 550;
  color: #8b96ae;
  background: #1c1e29;
  padding: 15px 18px;
}
td {
  padding: 19px 18px;
  border-top: 1px solid #292c39;
  color: #bcc7de;
}
td a {
  color: #e4e9f5;
  font-weight: 550;
}
td a:hover {
  color: var(--blue);
}
.ticket-subject {
  display: block;
  margin-top: 5px;
  color: #e3e7f0;
  font-size: 14px;
  font-weight: 550;
  max-width: 360px;
  white-space: normal;
  line-height: 1.5;
}
.ticket-number {
  font-size: 12px;
  color: #7f8ba5;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 6px;
  background: #223742;
  color: #9ed9ed;
}
.status:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-paused {
  background: #3a3325;
  color: #d8c597;
}
.status-closed {
  background: #292d3a;
  color: #b2b9cc;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 13px;
  color: #9aa8c2;
}
.empty-state {
  text-align: center;
  padding: 70px 24px;
  border: 1px solid #2c2f3c;
  border-radius: 12px;
  background: #191b23;
}
.empty-state > .icon {
  width: 34px;
  height: 34px;
  color: #8496b4;
  margin-bottom: 18px;
}
.empty-state h2 {
  font-size: 24px;
}
.empty-state p {
  font-size: 15px;
  max-width: 420px;
  margin: 12px auto 22px;
}
.empty-state.compact {
  border: 0;
  background: none;
  padding: 30px 10px;
  font-size: 14px;
  color: #939fb9;
}
.staff-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
}
.staff-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.staff-sidebar > a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #a6b2c9;
  white-space: nowrap;
}
.staff-sidebar > a .icon {
  width: 17px;
  height: 17px;
}
.staff-sidebar > a:hover {
  background: #1b1e28;
}
.staff-sidebar > a.active {
  background: #202e3b;
  color: #b9e8ff;
}
.sidebar-label {
  font-size: 11px;
  color: #71809b;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 22px 14px 9px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  background: #1b1e28;
  border: 1px solid #2d3241;
  border-radius: 10px;
  padding: 21px;
}
.stat strong {
  display: block;
  font-size: 29px;
  font-weight: 650;
  margin-bottom: 8px;
}
.stat span {
  font-size: 13px;
  color: #93a3bf;
}
.staff-content {
  min-width: 0;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 19px;
}
.toolbar h2 {
  font-size: 21px;
}
.thread-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 25px;
  align-items: start;
}
.thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.message {
  padding: 24px;
  background: #1a1c25;
  border: 1px solid #2c3040;
  border-radius: 12px;
}
.message.internal {
  border-color: #60533a;
  background: #242218;
}
.message-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.message-header strong {
  font-size: 14px;
  font-weight: 600;
}
.message-header time {
  font-size: 12px;
  color: #8593ad;
  margin-left: auto;
  text-align: right;
}
.message-header .staff-badge {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 4px 6px;
  background: #173746;
  color: #a7dff4;
  border-radius: 4px;
}
.message-text {
  font-size: 15px;
  line-height: 1.8;
  color: #c1c9da;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message-content {
  min-width: 0;
}
.attachments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 17px;
}
.attachment {
  padding: 0;
  border: 1px solid #3a4052;
  border-radius: 7px;
  overflow: hidden;
  text-align: left;
  background: #151720;
}
.attachment img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}
.attachment span {
  font-size: 11px;
  color: #93a0ba;
  padding: 7px;
  display: block;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.event {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12px;
  color: #8491aa;
  padding: 4px 14px;
  line-height: 1.6;
}
.event .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
}
.ticket-sidebar .panel {
  padding: 22px;
}
.ticket-sidebar h2 {
  font-size: 16px;
  margin-bottom: 17px;
}
.ticket-facts {
  display: grid;
  gap: 19px;
}
.ticket-facts dt {
  font-size: 12px;
  color: #7d8ca7;
  margin-bottom: 5px;
}
.ticket-facts dd {
  font-size: 14px;
  margin: 0;
  overflow-wrap: anywhere;
  color: #d0d9eb;
  line-height: 1.5;
}
.ticket-actions {
  display: grid;
  gap: 9px;
}
.ticket-actions .button {
  width: 100%;
  justify-content: flex-start;
}
.ticket-actions .icon {
  width: 16px;
  height: 16px;
}
.ticket-actions hr {
  border: 0;
  border-top: 1px solid #313746;
  width: 100%;
  margin: 5px 0;
}
.ticket-sidebar .info {
  font-size: 13px;
  line-height: 1.7;
  color: #8493ae;
}
.ticket-sidebar .info strong {
  color: #bdc9dd;
  font-weight: 600;
}
.reply-form {
  padding: 24px;
  background: #181b24;
  border: 1px solid #2e3444;
  border-radius: 12px;
}
.reply-form textarea {
  background: #12151e;
  min-height: 135px;
  border: 0;
  padding: 0;
  resize: vertical;
}
.reply-form textarea:focus {
  outline: none;
}
.reply-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #2b3141;
  padding-top: 16px;
  margin-top: 16px;
}
.reply-toolbar label {
  font-size: 13px;
  color: #9bacc9;
}
.inline-check {
  display: flex;
  gap: 8px;
  align-items: center;
}
.closed-notice {
  padding: 25px;
  border: 1px solid #394152;
  border-radius: 10px;
  background: #1b202c;
}
.closed-notice h3 {
  font-size: 17px;
  margin-bottom: 9px;
}
.closed-notice p {
  font-size: 14px;
  color: #a8b6ce;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.closed-notice .button {
  margin-top: 20px;
}
.notice {
  padding: 15px 18px;
  border: 1px solid #344755;
  border-radius: 8px;
  background: #172631;
  color: #a6c7db;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.muted {
  color: #8594af;
}
.small {
  font-size: 13px;
}
.article-page h1 {
  font-size: 34px;
  margin-bottom: 18px;
}
.article-page .article-summary {
  font-size: 18px;
  color: #aebdd7;
  margin-bottom: 30px;
}
.article-body {
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.9;
  color: #b8c3d9;
}
.article-page .panel {
  margin-top: 40px;
}
input,
select,
textarea {
  background: #13151d;
  border: 1px solid #3b4050;
  border-radius: 7px;
  color: #e1e6f0;
  padding: 11px 13px;
  width: 100%;
  min-height: 43px;
  font-size: 15px;
}
input::placeholder,
textarea::placeholder {
  color: #65738e;
}
textarea {
  resize: vertical;
  min-height: 125px;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2396a5bf'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
input[type="checkbox"] {
  width: 15px;
  min-height: 15px;
  height: 15px;
  accent-color: #8ad7f4;
  flex-shrink: 0;
}
.form {
  display: grid;
  gap: 19px;
}
.form.two-cols {
  grid-template-columns: 1fr 1fr;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field > span {
  font-size: 14px;
  font-weight: 550;
  color: #c2cde1;
}
.field small,
.form-help {
  font-size: 12px;
  color: #8695b1;
  line-height: 1.6;
  font-weight: 400;
}
.full {
  grid-column: 1/-1;
}
.form-error:empty {
  display: none;
}
.form-error {
  border: 1px solid #70505a;
  background: #30212a;
  color: #e5bcc9;
  padding: 12px 15px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.6;
}
.form-success {
  border: 1px solid #3e5863;
  background: #162b35;
  color: #a7d8e8;
  padding: 12px 15px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.6;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.checkbox {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
  color: #94a4bf;
  line-height: 1.6;
}
.checkbox input {
  margin-top: 3px;
}
.upload-zone {
  border: 1px dashed #434e64;
  border-radius: 8px;
  padding: 19px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  font-size: 14px;
  color: #a5b6d1;
  background: #171c27;
}
.upload-zone > .icon {
  width: 23px;
  height: 23px;
  color: #7d9ab4;
}
.upload-zone strong {
  color: #afdff1;
  font-weight: 550;
}
.upload-zone small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6e829f;
}
.upload-zone.dragover {
  background: #1c3041;
  border-color: #8bd4f2;
}
.file-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.upload-zone:has(+ input:focus-visible) {
  outline: 2px solid var(--blue);
}
.previews {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.preview {
  position: relative;
  border: 1px solid #3e4a60;
  border-radius: 7px;
  overflow: hidden;
  background: #101721;
}
.preview > button:first-child {
  padding: 0;
  width: 100%;
}
.preview img {
  height: 85px;
  width: 100%;
  object-fit: cover;
}
.preview small {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 6px;
  color: #8a9bb6;
}
.preview .remove {
  position: absolute;
  right: 3px;
  top: 3px;
  background: #10131dcc;
  border-radius: 4px;
  padding: 4px;
  display: grid;
  place-items: center;
}
.preview .remove .icon {
  width: 14px;
  height: 14px;
}
dialog {
  color: #edf1f7;
  background: #191c26;
  border: 1px solid #353c4e;
  border-radius: 14px;
  width: min(610px, calc(100% - 32px));
  max-height: 90dvh;
  padding: 0;
  box-shadow: 0 25px 100px #0008;
}
dialog::backdrop {
  background: #080a12b8;
  backdrop-filter: blur(3px);
}
.modal-inner {
  padding: 33px;
  position: relative;
}
dialog h2 {
  font-size: 26px;
  margin-right: 25px;
  font-weight: 700;
  line-height: 1.3;
}
dialog .intro {
  font-size: 14px;
  line-height: 1.7;
  color: #98a9c6;
  margin: 12px 0 25px;
}
.close-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  position: absolute;
  top: 13px;
  right: 13px;
  color: #8999b4;
  z-index: 1;
}
.close-button:hover {
  color: #e0ecff;
  background: #30394a;
}
.close-button .icon {
  width: 18px;
  height: 18px;
}
#lightbox {
  width: auto;
  max-width: 95vw;
  background: #0b0e15;
  border: 0;
  padding: 42px 18px 18px;
}
#lightbox img {
  max-height: 77dvh;
  max-width: 90vw;
  object-fit: contain;
}
#lightbox > a {
  display: block;
  color: #a7deef;
  font-size: 14px;
  text-align: center;
  margin-top: 15px;
}
.auth-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid #343b4e;
  margin: 20px 0;
}
.auth-tabs button {
  padding: 11px 0;
  color: #8293b1;
  font-size: 14px;
}
.auth-tabs button.active {
  color: #c0ecff;
  border-bottom: 2px solid #95dff8;
}
.providers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.provider {
  border: 1px solid #3b4458;
  background: #222936;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px;
  font-size: 14px;
}
.provider:hover {
  background: #2d394b;
}
.provider .icon {
  width: 18px;
  height: 18px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #6d809f;
  font-size: 12px;
  margin: 23px 0;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: #343c4f;
  flex: 1;
}
.auth-forgot {
  display: block;
  font-size: 13px;
  color: #91cde9;
  margin: 15px 0 0 auto;
  padding: 0;
}
.auth-note {
  font-size: 12px;
  color: #6f839e;
  text-align: center;
  line-height: 1.7;
  margin-top: 22px;
}
.transcript-reason {
  background: #202b39;
  border: 1px solid #3d4a60;
  padding: 18px;
  border-radius: 8px;
  margin: 24px 0;
}
.transcript-reason p {
  font-size: 14px;
  white-space: pre-wrap;
  color: #bfccdf;
  margin-top: 9px;
}
#toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  max-width: min(420px, calc(100vw - 40px));
  background: #222e40;
  border: 1px solid #405773;
  border-radius: 10px;
  color: #c7dff3;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 8px 35px #0006;
  z-index: 100;
}
.skeleton {
  height: 160px;
  background: linear-gradient(90deg, #1a1e29, #252c3c, #1a1e29);
  background-size: 200% 100%;
  animation: loading 1.4s infinite;
  border-radius: 10px;
}
.skip {
  position: fixed;
  top: -60px;
  left: 10px;
  background: #a2ddf5;
  color: #152332;
  padding: 12px;
  z-index: 200;
}
.skip:focus {
  top: 10px;
}
.progress {
  font-size: 13px;
  color: #9bc7dd;
  min-height: 0;
}
.progress:empty {
  display: none;
}
.auth-gate {
  max-width: 700px;
  margin: 90px auto;
}
.success-box {
  text-align: center;
  padding: 12px 0;
}
.success-box > .icon {
  width: 38px;
  height: 38px;
  color: var(--blue);
  margin-bottom: 16px;
}
.success-box h2 {
  margin: 0;
}
.ticket-reference {
  font-size: 20px;
  letter-spacing: 0.04em;
  color: #b1e6fc;
  font-weight: 600;
  padding: 15px;
  background: #142b3b;
  border: 1px solid #324c60;
  border-radius: 8px;
  margin: 23px 0;
}
.event-reason {
  display: block;
  color: #a3b4ce;
}
.inline-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.ticket-title {
  max-width: 790px;
  overflow-wrap: anywhere;
}
.staff-view-title {
  font-size: 24px;
  margin-bottom: 22px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.article-editor textarea {
  min-height: 170px;
}
.internal-note-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #cbb789;
  margin-bottom: 14px;
}
.internal-note-label .icon {
  width: 14px;
  height: 14px;
}
.reply-upload {
  width: auto;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
}
.reply-upload strong {
  font-weight: 500;
}
.reply-upload .icon {
  width: 18px;
  height: 18px;
}
.back-link {
  font-size: 14px;
  color: #94a7c7;
}
.count-label {
  color: #8ea3c3;
  font-size: 13px;
}
.ticket-header-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  color: #7f91af;
  font-size: 13px;
}
.attachment-error {
  font-size: 12px;
  color: #bdaeba;
  margin-top: 10px;
}
.list-heading {
  font-size: 23px;
  margin-bottom: 20px;
}
.refresh-button {
  font-size: 13px;
  color: #94a8ca;
  display: flex;
  align-items: center;
  gap: 7px;
}
.refresh-button .icon {
  width: 15px;
  height: 15px;
}
@keyframes loading {
  to {
    background-position: -200% 0;
  }
}
@media (min-width: 1450px) {



}
@media (max-width: 1100px) {







  .thread-layout {
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 20px;
  }
  .staff-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 800px) {








  .thread-layout {
    grid-template-columns: 1fr;
  }
  .ticket-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    grid-row: 1;
  }
  .ticket-sidebar .panel {
    margin: 0;
  }
  .ticket-sidebar > .info-panel {
    display: none;
  }
  .staff-layout {
    display: block;
  }
  .staff-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 23px;
    gap: 6px;
  }
  .staff-sidebar > a {
    padding: 10px 12px;
  }
  .sidebar-label {
    display: none;
  }
  .page {
    width: calc(100% - 40px);
  }
  .page-head h1 {
    font-size: 28px;
  }



  .staff-sidebar .divider-line {
    display: none;
  }
}
@media (max-width: 600px) {



  .top-link {
    font-size: 13px;
    gap: 6px;
  }
  .top-link .icon {
    width: 13px;
    height: 13px;
  }
  .staff-link {
    font-size: 0;
    gap: 0;
  }
  .staff-link .icon {
    width: 18px;
    height: 18px;
  }
  .account-button {
    font-size: 12px;
    gap: 7px;
    max-width: 150px;
  }
  .account-button > span:not(.avatar) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .account-button > .icon:first-child {
    width: 20px;
    height: 20px;
  }
  .account-button > .icon:last-child {
    width: 11px;
    height: 11px;
  }
  .home-link .icon {
    width: 18px;
    height: 18px;
  }
  
  .brand {
    min-width: 44px;
    height: 44px;
  }
  .brand img {
    width: 44px;
    height: 44px;
  }








  .article-link p {
    font-size: 14px;
  }
  .search-box {
    margin-top: 23px;
  }
  .search-box input {
    font-size: 14px;
  }
  .browse-link {
    margin: 20px 0 5px;
    font-size: 14px;
  }


  .contact-note {
    margin-top: 23px;
    padding-top: 22px;
  }




  .page {
    padding-top: 29px;
    width: calc(100% - 32px);
  }
  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
    margin-bottom: 25px;
  }
  .page-head h1 {
    font-size: 26px;
  }
  .page-head p {
    font-size: 14px;
  }
  .filters {
    gap: 10px;
    flex-wrap: wrap;
  }
  .filters > .search-box {
    width: 100%;
    flex: auto;
  }
  .filters select {
    max-width: none;
  }
  .panel {
    padding: 21px 18px;
  }
  .toolbar {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 19px;
  }
  .stat strong {
    font-size: 26px;
  }
  .stat span {
    font-size: 12px;
  }
  .ticket-sidebar {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ticket-sidebar .panel:first-child .ticket-facts {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .ticket-actions {
    grid-template-columns: 1fr 1fr;
  }
  .ticket-actions .button {
    font-size: 12px;
    padding: 10px;
  }
  .ticket-actions hr {
    grid-column: 1/-1;
  }
  .message {
    padding: 21px 18px;
  }
  .message-header {
    gap: 8px;
  }
  .message-header strong {
    font-size: 13px;
  }
  .message-header time {
    font-size: 10px;
    max-width: 110px;
  }
  .message-text {
    font-size: 14px;
  }
  .attachments {
    grid-template-columns: 1fr 1fr;
  }
  .attachment img {
    height: 105px;
  }
  .reply-form {
    padding: 20px;
  }
  .reply-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .reply-toolbar > .button {
    margin-left: auto;
  }
  .reply-toolbar .inline-check {
    font-size: 12px;
  }
  .modal-inner {
    padding: 29px 23px;
  }
  .form.two-cols {
    grid-template-columns: 1fr;
  }
  .form.two-cols > .full {
    grid-column: auto;
  }
  dialog h2 {
    font-size: 24px;
  }
  .previews {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .upload-zone {
    padding: 17px;
    font-size: 13px;
  }
  .providers {
    gap: 8px;
  }
  .provider {
    font-size: 13px;
    padding: 10px 8px;
  }
  .ticket-header-bottom {
    flex-wrap: wrap;
    font-size: 12px;
  }
  .ticket-reference {
    font-size: 18px;
  }
  .auth-gate {
    margin-top: 40px;
  }
  .article-page h1 {
    font-size: 28px;
  }
  .article-page .article-summary {
    font-size: 16px;
  }
  .article-body {
    font-size: 15px;
  }
  .breadcrumb {
    font-size: 13px;
    flex-wrap: wrap;
  }
  .pagination {
    font-size: 12px;
  }
  #toast {
    right: 16px;
    bottom: 16px;
    font-size: 13px;
  }
  .empty-state {
    padding: 45px 20px;
  }
  .empty-state h2 {
    font-size: 23px;
  }
  .empty-state p {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.language-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: min(676px, calc(100dvh - 48px));
  padding: 24px;
  border: 0;
  border-radius: 8px;
  background: #111218;
  overflow: hidden;
  text-align: left;
}
.language-dialog::backdrop { background: #0009; backdrop-filter: blur(4px); }
.language-dialog[open] { display: flex; flex-direction: column; }
.language-heading,.language-search { flex-shrink: 0; }
.language-list { min-height: 0; flex: 1 1 auto; }
.language-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.language-heading>.icon { color: #b6b8c5; width: 22px; height: 22px; flex-shrink: 0; }
.language-dialog h2 { flex: 1; margin: 0; font-size: 25px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
.language-close { display: grid; place-items: center; padding: 0; width: 24px; height: 28px; color: #b1b2bf; flex-shrink: 0; }
.language-close:hover { color: white; }
.language-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px; background: #24252e; border-radius: 8px; margin-bottom: 16px; }
.language-search .icon { width: 16px; height: 16px; color: #858795; }
.language-search input { border: 0; background: transparent; border-radius: 0; padding: 0; min-height: 0; height: 100%; font-size: 16px; }
.language-search input:focus-visible { outline: 0; }
.language-search:focus-within { box-shadow: 0 0 0 1px #5b6377; }
.language-search input::placeholder { color: #aab8da; }
.language-search input::-webkit-search-cancel-button { display: none; }
.language-list { list-style: none; padding: 0 8px 0 0; margin: 0; max-height: min(524px, calc(100dvh - 190px)); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #34353e transparent; overscroll-behavior: contain; }
.language-list::-webkit-scrollbar { width: 4px; }
.language-list::-webkit-scrollbar-thumb { background: #34353e; border-radius: 4px; }
.language-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 9px 8px; border-radius: 8px; text-align: left; }
.language-option:hover,.language-option.selected { background: #202127; }
.language-option img { width: 28px; height: 20px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.language-description { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.language-name { font-size: 14px; line-height: 18px; font-weight: 400; align-self: flex-start; }
.language-option.selected .language-name,.language-option[data-language="en"] .language-name { font-weight: 700; }
.language-progress { font-size: 12px; line-height: 16px; color: #aab8da; }
.language-option>.icon { width: 18px; height: 18px; flex-shrink: 0; color: #eeeef4; }
.language-empty { padding: 24px 8px; color: var(--muted); font-size: 14px; }
[dir="rtl"] .field,[dir="rtl"] .form-error { text-align: right; }
[dir="rtl"] input[type="email"],[dir="rtl"] input[name="discord_id"] { direction: ltr; text-align: left; }
.draft-status { margin-bottom: 16px; line-height: 1.6; min-height: 3.2em; }
@media(max-width:600px) { .draft-status { min-height: 6.4em; } }
#ticket-sidebar, #ticket-workspace { display: contents; }
.filters { flex-wrap: wrap; }
#ticket-label { width: 160px; }
.triage-summary { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.priority-high { color: #f6ce80; }
.priority-urgent { color: #ffa6ab; }
.template-row,.notification-row { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; text-align: left; width: 100%; padding: 18px; border-bottom: 1px solid var(--border); }
.template-row:hover,.notification-row:hover { background: var(--hover); }
.template-row span,.notification-row time { font-size: 14px; color: var(--muted); }
.notification-row.unread { border-left: 3px solid var(--blue); }
.notification-row>span { font-size: 13px; color: var(--blue); }
.notification-list { margin-top: 20px; }
.notifications-button { display: flex; align-items: center; gap: 5px; padding: 8px; }
.notifications-button [data-notification-count]:not(:empty) { background: var(--button); color: var(--blue); padding: 2px 5px; border-radius: 5px; font-size: 12px; }
.recovery-code-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 20px 0; }
.recovery-code-grid code { font: 14px/1.5 monospace; overflow-wrap: anywhere; padding: 10px; border: 1px solid var(--border); border-radius: 6px; }
.account { display: flex; align-items: center; gap: 8px; }
.discard-confirmation {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}
.discard-confirmation h3 { font-size: 18px; }
.discard-confirmation p { margin: 8px 0 16px; font-size: 14px; }
.discard-confirmation .inline-actions { flex-wrap: wrap; }

/* Support reference geometry, shared by desktop and mobile. */
body {display:flex;flex-direction:column;min-height:100dvh;}
#main {flex:1;}
.topbar {height:74px;min-height:74px;padding:0 32px;border-bottom:1px solid #282a34;background:var(--bg);}
.topbar-inner {height:100%;max-width:1280px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px;}
.topbar-left,.topbar-right {display:flex;align-items:center;gap:32px;}
.topbar-right {gap:24px;}
.home-page .topbar .staff-link {display:none;}
.landing {width:calc(100% - 64px);max-width:1280px;margin:0 auto;padding-bottom:128px;}
.hero {padding-top:96px;margin-bottom:78px;text-align:center;}
.hero h1 {font-size:48px;font-weight:700;line-height:1.25;letter-spacing:-.025em;}
.hero h1 span {color:var(--blue);}
.hero p {max-width:720px;margin:16px auto 0;font-size:18px;line-height:1.6;color:#aebad7;}
.support-grid {display:grid;grid-template-columns:3fr 2fr;gap:24px;align-items:stretch;}
.help-card,.create-card {min-width:0;min-height:496px;padding:32px;border:1px solid var(--border);border-radius:16px;}
.help-card {display:flex;flex-direction:column;align-items:flex-start;background:#1a1b21;}
.help-card h2,.create-card h2 {font-size:25px;line-height:1.3;font-weight:700;letter-spacing:-.02em;}
.help-card>p,.create-card>p {margin-top:8px;font-size:16px;line-height:1.55;color:#aab8da;}
.help-card .search-box,.help-card .article-list {width:100%;}
.help-card .search-box {margin-top:24px;}
.help-card .browse-link {margin-top:auto;padding-top:24px;}
.create-card {position:relative;padding-top:128px;background:linear-gradient(145deg,#0b0c11 50%,#0c1119);}
.create-card>.button {width:100%;margin-top:24px;}

.footer {width:100%;max-width:none;margin:auto 0 0;padding:24px 48px;display:grid;grid-template-columns:1fr auto;gap:8px 32px;align-items:center;font-size:14px;line-height:1.6;color:#a9b6d0;}
.footer>div {display:flex;gap:15px;align-items:center;}
.footer strong {font-size:14px;font-weight:700;}
.footer button {padding:0;font-size:14px;color:inherit;}
.footer button:hover {color:#d5ecfc;}
.footer>div>button {display:flex;gap:6px;align-items:center;}
.footer .icon {width:14px;height:14px;}
.footer>p {grid-column:1;font-size:14px;color:#a9b6d0;}
.footer nav {grid-column:2;grid-row:1 / span 2;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;align-items:center;color:#74819d;}
.footer nav span {font-size:10px;}
@media(max-width:1100px){.hero h1{font-size:46px;}.help-card,.create-card{padding-inline:30px;}.footer{padding-inline:32px;grid-template-columns:1fr;}.footer nav{grid-column:1;grid-row:3;justify-content:flex-start;margin-top:12px;}}
@media(max-width:1000px){.topbar{padding-inline:24px;}.topbar-left{gap:24px;}.landing{width:calc(100% - 48px);}.hero{padding-top:80px;margin-bottom:96px;}.hero h1{font-size:40px;}.hero p{font-size:17px;}.support-grid{grid-template-columns:1fr;gap:96px;}.help-card,.create-card{min-height:0;padding:28px;}.help-card .browse-link{margin-top:12px;}.create-card{padding-top:80px;}}
@media(max-width:600px){.topbar{height:72px;min-height:72px;padding:0 20px;}.topbar-left{gap:20px;}.topbar-right{gap:16px;}.landing{width:calc(100% - 40px);padding-bottom:96px;}.hero{padding-top:64px;margin-bottom:64px;}.hero h1{font-size:36px;line-height:1.2;}.hero p{font-size:16px;line-height:1.6;max-width:340px;}.help-card,.create-card{padding:24px;border-radius:16px;}.help-card h2,.create-card h2{font-size:24px;}.support-grid{gap:88px;}.create-card{padding-top:80px;}.footer{padding:24px;font-size:14px;gap:8px;}.footer>div{flex-wrap:wrap;gap:12px;}.footer nav{font-size:14px;gap:10px;}}

body.home-page #main{display:flex;flex-direction:column;justify-content:center;}
.landing{padding-bottom:96px;}
.topbar{position:sticky;top:0;z-index:30;backdrop-filter:blur(8px);}
.topbar-left{gap:36px;}
.account-button{font-size:16px;min-height:32px;padding:4px 10px 4px 6px;gap:8px;border-radius:8px;}
.account-button .avatar{width:24px;height:24px;border-radius:4px;font-size:11px;}

@media(max-width:800px){.topbar-left{gap:24px;}}
@media(max-width:600px){.topbar-left{gap:20px;}.account-button{font-size:14px;}.landing{padding-bottom:96px;}}
