@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", Roboto, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: #f8fafd;
  color: #111111;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #1848b2;
  text-decoration: none;
}

.container {
  padding: 14px;
  padding-left: 42px;
  padding-right: 42px;
  box-sizing: border-box;
}

.btn-light,
.btn-outline,
.btn-danger,
.btn-success,
.btn-restrict,
.btn-restore {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
}

.btn-light {
  background: #d3e3fd;
  color: #5188df;
  border-color: #c8dbfb;
}

.btn-light:visited {
  color: #5188df;
}

.btn-light:hover {
  background: #e6ebf6;
  color: #5e5e5e;
}

.btn-outline {
  background: transparent;
  color: #5e5e5e;
  border-color: #cbd5e1;
}

.btn-outline:hover {
  background: #f1f5f9;
  color: #111111;
}

.btn-danger {
  background: #f2d7d9;
  color: #9f1239;
  border-color: #f0c9cc;
}

.btn-danger:hover {
  background: #ecc4c7;
  color: #8a0f32;
}

.btn-success {
  background: #d9f2e3;
  color: #166534;
  border-color: #c2ebd2;
}

.btn-success:hover {
  background: #bfe8cf;
  color: #14532d;
}

.btn-restrict {
  background: #fff3cd;
  color: #9a6700;
  border-color: #f4d58d;
}

.btn-restrict:hover {
  background: #ffe8a3;
  color: #7a5100;
}

.btn-restore {
  background: #ede9fe;
  color: #5b21b6;
  border-color: #ddd6fe;
}

.btn-restore:hover {
  background: #ddd6fe;
  color: #4c1d95;
}


.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #111111;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}

.form-control::placeholder {
  color: #9aa3b2;
}

.form-control:focus {
  outline: none;
  border-color: #5188df;
  box-shadow: 0 0 0 3px rgba(81, 136, 223, 0.18);
}

textarea.form-control {
  font-size: 1rem;
}

.ticket-create {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: min(420px, 100%);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.auth-card h1 {
  margin: 0;
  margin-top: 12px;
  font-size: 1.4rem;
  color: #1f2937;
}

.auth-card p {
  color: #6b7280;
  font-size: 0.95rem;
}

.panel-title {
  display: block;
  width: 100%;
  border-bottom: 1px #eee solid;
}

.panel-title > h2 {
  margin: 12px 12px 23px 0;
  color: #666;
  font-size: 1.1rem;
}

.ticket-create > .form
{
  display: block;
  padding: 0;
  padding-top: 4px;
  box-sizing: border-box;
}

.ticket-create form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ticket-create .field > label,
.admin-filters label,
.ticket-filters label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #9ca3af;
}

.ticket-create fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}

.ticket-create .field legend {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: #9ca3af;
  padding: 0;
}

.ticket-create .md-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.ticket-create .md-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: #e6ebf6;
  color: #5e5e5e;
  padding: 6px 10px;
  height: 34px;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
}
.ticket-create .md-btn-preview
{
  min-width: 90px;
}

.ticket-create .md-btn-icon {
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ticket-create .md-btn-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.ticket-create .md-divider {
  width: 1px;
  height: 22px;
  background: #cbd5e1;
  align-self: center;
  margin: 0 6px;
}

.ticket-create .md-btn:hover {
  background: #d3e3fd;
  color: #5188df;
}

.ticket-create .md-btn.active {
  background: #d3e3fd;
  color: #5188df;
}

.ticket-create .md-preview {
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 22px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #111111;
  min-height: 330px;
}

.ticket-create .md-preview-content,
.msg-body {
  font-size: 0.8rem;
  line-height: 1.8;
}

.ticket-create .md-preview-content pre,
.msg-body pre {
  background: #e6ebf6;
  border-radius: 10px;
  padding: 12px 14px;
  overflow-x: auto;
  line-height: 1.5;
}

.ticket-create .md-preview-content pre code,
.msg-body pre code {
  background: #e6ebf6;
  border: 0;
  padding: 0;
  color: inherit;
  display: block;
  white-space: pre;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ticket-create .md-preview-content code,
.msg-body code {
  background: #e2e8f0;
  border-radius: 6px;
  padding: 2px 6px;
}

.ticket-create .md-preview-content ul,
.ticket-create .md-preview-content ol,
.msg-body ul,
.msg-body ol {
  margin: 8px 0 8px 18px;
}

.ticket-create .file-inputs {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.ticket-create .field .file-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  box-sizing: border-box;
  width: auto;
  flex: 1 1 0;
  min-width: 180px;
}

.ticket-create .file-input::file-selector-button {
  border: 1px solid #cbd5e1;
  background: #e6ebf6;
  color: #5e5e5e;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 10px;
}

.ticket-create .file-input::file-selector-button:hover {
  background: #d3e3fd;
  color: #5188df;
}

.ticket-create .help {
  margin-top: 6px;
  margin-right: 12px;
  font-size: 12px;
  color: #6b7280;
}

.service-reason-counter {
  text-align: right;
  font-size: 11px;
  opacity: 0.85;
  margin: 0;
}

.service-reason-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  margin-bottom: 21px;
}

.service-reason-head > label {
  margin: 0;
  min-width: 0;
  font-size: 14px;
  color: #9ca3af;
}

.ticket-create .form-errors {
  margin-top: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.ticket-view .conversation-form-errors {
  margin-top: 10px;
}

.ticket-create .form-error,
.ticket-view .conversation-form-errors .form-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}

.alert-error {
  margin-top: 12px;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.empty-state {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #6b7280;
  font-size: 14px;
}

.pagination-bar {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination-summary {
  color: #6b7280;
  font-size: 13px;
}

.pagination-page {
  color: #4b5563;
  font-size: 13px;
  font-weight: 600;
}

.pagination-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination-link,
.pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-sizing: border-box;
}

.pagination-link {
  border: 1px solid #d8e1f0;
  background: #ffffff;
  color: #4b5563;
}

.pagination-link:hover {
  background: #eef4ff;
  color: #1848b2;
}

.pagination-link.is-current {
  background: #d3e3fd;
  border-color: #c8dbfb;
  color: #1848b2;
}

.pagination-link.is-disabled {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #9ca3af;
}

.pagination-ellipsis {
  min-width: auto;
  padding: 0 4px;
  color: #9ca3af;
}

.service-page-notice-page .admin-filters {
  padding-top: 12px;
}

.service-inline-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #d9e2f1;
  border-left: 3px solid #c8dbfb;
  border-radius: 10px;
  background: #f8fafc;
}

.service-inline-notice-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #5188df;
  margin-top: 1px;
}

.service-inline-notice-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.service-inline-notice .empty-state {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #334155;
  line-height: 1.45;
}

.service-inline-notice-error {
  background: #fee2e2;
  border-color: #fecaca;
  border-left-color: #ef4444;
}

.service-inline-notice-error .service-inline-notice-icon {
  color: #991b1b;
}

.service-inline-notice-error .empty-state {
  color: #991b1b;
}

.service-submit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 28px;
}

.service-submit-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid #d9e2f1;
  background: #ffffff;
  color: inherit;
  box-sizing: border-box;
  min-height: 124px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.service-submit-card:hover {
  background: #f8fbff;
  border-color: #c8dbfb;
  text-decoration: none;
}

.service-submit-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e6ebf6;
  color: #5188df;
  flex: 0 0 42px;
}

.service-submit-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.service-submit-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.service-submit-title {
  color: #1f2937;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.service-submit-desc {
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.45;
}

.service-gifts-page .service-check-panel {
  margin-top: 18px;
}

.service-gifts-intro {
  margin-top: 24px;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.45;
}

.service-gift-list {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-gift-row {
  border: 1px solid #d9e2f1;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px 8px 8px 22px;
  box-shadow: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.service-gift-row:hover {
  background: #f8fbff;
  border-color: #c8dbfb;
}

.service-gift-row-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-gift-row-text {
  min-width: 0;
}

.service-gift-row-title {
  flex: 1.1 1 240px;
  padding-right: 16px;
  border-right: 1px solid #e2e8f0;
}

.service-gift-row-text h3 {
  margin: 0;
  color: #1f2937;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}

.service-gift-row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
  flex: 1 1 180px;
  padding-right: 16px;
  border-right: 1px solid #e2e8f0;
}

.service-gift-row-meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #374151;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.4;
}

.service-gift-row-meta-item .label {
  color: #6b7280;
}

.service-gift-row-meta-item strong {
  color: inherit;
  font-size: inherit;
}

.service-gift-items {
  display: block;
  min-width: 0;
  flex: 2 1 320px;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  padding-right: 16px;
  border-right: 1px solid #e2e8f0;
}

.service-gift-items-muted {
  color: #6b7280;
}

.service-gift-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 120px;
  margin-left: auto;
}

.service-gift-actions .btn-success {
  min-width: 120px;
  min-height: 38px;
  justify-content: center;
}

.service-gift-status {
  width: 120px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: #6b7280;
}

.service-gift-status-claimed {
  color: #0f766e;
}

.service-gift-status-expired {
  color: #a16207;
}

.service-gift-status-unavailable {
  color: #9a3412;
}

@media (max-width: 1200px) {
  .service-gift-row {
    padding: 14px;
  }

  .service-gift-row-main {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }

  .service-gift-row-title {
    width: 100%;
    flex-basis: auto;
    margin-left: 0;
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 14px;
    margin-bottom: 12px;
  }

  .service-gift-items {
    width: 100%;
    flex-basis: auto;
    margin-left: 0;
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px #e2e8f0 solid;
    padding-bottom: 20px;
    margin-bottom: 4px;
  }

  .service-gift-row-meta,
  .service-gift-actions {
    width: auto;
    flex-basis: auto;
    margin-left: 0;
    padding-right: 0;
    border-right: 0;
    padding-top: 0;
    border-top: 0;
  }

  .service-gift-row-meta {
    flex: 1 1 auto;
    align-items: center;
    align-self: center;
  }

  .service-gift-actions {
    flex: 0 0 auto;
    margin-left: auto;
    justify-content: flex-end;
    align-items: center;
    align-self: center;
  }

  .service-gift-actions .btn-success,
  .service-gift-status {
    width: auto;
    min-width: 120px;
    text-align: center;
  }

  .service-gift-status-expired {
    text-align: center;
    justify-content: center;
  }
}

.dashboard-sections {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 28px;
}

.dashboard-divider {
  width: 100%;
  height: 1px;
  background: #e2e8f0;
}

.dashboard-grid {
  padding-top: 0;
  align-items: stretch;
}

.dashboard-grid .service-submit-card {
  min-height: 0;
  height: 100%;
}

.service-request-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.service-request-col,
.service-rename-col,
.service-migration-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.service-request-col:last-child,
.service-rename-col:last-child,
.service-migration-col:last-child {
  padding-left: 12px;
}

.service-name-field {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  background: #ffffff;
}

.service-section-head {
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.service-migration-create .service-section-head {
  margin-bottom: 18px;
  padding-bottom: 0;
  border-bottom: 0;
}

.service-section-title {
  display: block;
  margin: 0;
  margin-bottom: 6px;
  font-size: 14px;
  color: #9ca3af;
}

.service-migration-create .service-section-title {
  margin-top: 4px;
  margin-bottom: 9px;
}

.service-section-note {
  font-size: 12px;
  line-height: 1.35;
  color: #6b7280;
  padding-top: 10px;
  padding-bottom: 10px;
}

.service-name-rules {
  margin-top: 18px;
  padding-top: 0;
  padding-bottom: 2px;
}

.service-char-head {
  margin-top: 8px;
  margin-bottom: 22px;
}

.service-char-title {
  display: block;
  margin: 0;
  font-size: 14px;
  color: #9ca3af;
}

.service-limitations {
  border: 1px solid #f2deb1;
  border-radius: 12px;
  background: #fffaf0;
  padding: 16px;
}

.service-limitations-title {
  font-size: 13px;
  font-weight: 700;
  color: #9a6700;
  margin-bottom: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.service-limitations-list {
  margin: 0;
  padding-left: 18px;
  color: #7c5a10;
  font-size: 13px;
  line-height: 1.4;
}

.service-limitations-list li + li {
  margin-top: 6px;
}

.service-limitations-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f2deb1;
  color: #7c5a10;
  font-size: 12px;
  line-height: 1.4;
}

.service-char-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-char-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 18ch) minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  border: 1px solid #d9e2f1;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ticket-create .service-char-item {
  display: grid;
  margin-bottom: 0;
}

.service-char-item > * {
  min-width: 0;
}

.service-char-item:hover {
  background: #f8fbff;
  border-color: #c8dbfb;
}

.service-char-item input[type="radio"] {
  margin: 0;
  accent-color: #5188df;
}

.service-char-cell-name {
  min-width: 0;
  padding-right: 10px;
  border-right: 1px solid #e2e8f0;
}

.service-char-name {
  font-weight: 700;
  color: #1f2937;
  line-height: 1.2;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.service-char-meta {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
}

.service-char-state {
  min-width: 0;
  white-space: nowrap;
}

.service-char-right {
  min-width: 0;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-char-promo {
  min-width: 0;
  padding: 5px 9px;
  font-size: 11px;
}

.service-char-price {
  min-width: 72px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
}

.service-char-note {
  font-size: 11px;
  line-height: 1.35;
  color: #6b7280;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.service-char-state[data-tooltip]:focus-visible {
  outline: 2px solid #5188df;
  outline-offset: 2px;
}

.service-char-tooltip {
  position: fixed;
  z-index: 1200;
  max-width: min(340px, calc(100vw - 24px));
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d9e2f1;
  background: #ffffff;
  color: #374151;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  pointer-events: none;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.service-char-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-char-item:has(input[type="radio"]:checked) {
  border-color: #c8dbfb;
  background: #f8fbff;
}

.service-char-item:has(input[type="radio"]:focus-visible) {
  box-shadow: 0 0 0 3px rgba(81, 136, 223, 0.18);
}

.service-char-item.is-blocked,
.service-char-item:has(input[type="radio"]:disabled) {
  opacity: 0.88;
  cursor: not-allowed;
}

.service-char-item:has(input[type="radio"]:disabled):hover {
  background: #ffffff;
  border-color: #d9e2f1;
}

.service-name-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-restoration-level-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.service-restoration-level-input {
  flex: 0 0 112px;
  min-width: 112px;
  max-width: 112px;
  text-align: center;
}

.service-restoration-cost {
  min-width: 156px;
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid #d9e2f1;
  border-radius: 10px;
  background: #f8fafc;
}

.service-restoration-cost .label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.service-restoration-cost strong {
  color: #1f2937;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.service-name-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.service-name-status {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  flex: 0 0 26px;
  user-select: none;
}

.service-name-status.is-idle {
  color: #94a3b8;
}

.service-name-status.is-valid {
  background: #eefcf6;
  border-color: #b7ead2;
  color: #166534;
}

.service-name-status.is-warn {
  background: #fff8e6;
  border-color: #f4d58d;
  color: #9a6700;
}

.service-name-status.is-error {
  background: #fff1f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.service-check-panel {
  border: 1px solid #d9e2f1;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  background: #ffffff;
}

.service-char-list + .service-check-panel {
  margin-top: 10px;
}

.service-check-panel + .service-limitations {
  margin-top: 10px;
}

.service-check-panel strong {
  color: #1f2937;
}

.service-check-panel-muted {
  color: #6b7280;
  background: #f8fafc;
  border-style: dashed;
}

.service-check-panel-ok {
  background: #eefcf6;
  border-color: #b7ead2;
  color: #166534;
}

.service-check-panel-error {
  background: #fff1f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.service-inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px #e2e8f0 solid;
}

.service-payment-success-actions a.is-busy,
.service-payment-success-actions button.is-busy,
.service-resume-panel a.is-busy,
.service-resume-panel button.is-busy {
  pointer-events: none;
  opacity: 0.65;
}

.service-request-form.is-busy,
#service-rename-form.is-busy,
#service-migration-form.is-busy {
  cursor: progress;
  pointer-events: none;
  opacity: 0.92;
}

.service-inline-mini {
  min-height: 40px;
  min-width: 100px;
  white-space: nowrap;
}

.service-inline-actions .btn-light,
.service-inline-actions .btn-outline,
.ticket-create .actions .btn-light,
.ticket-create .actions .btn-outline,
.ticket-create .actions .btn-success {
  min-height: 40px;
}

.ticket-create textarea.form-control {
  resize: none;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235e5e5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  padding-right: 44px;
}

select::-ms-expand {
  display: none;
}


.ticket-create .actions {
  margin-top: 6px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.ticket-create .actions > .form-errors {
  order: 2;
}

.ticket-create .actions > .btn-light,
.ticket-create .actions > .btn-outline,
.ticket-create .actions > .btn-success {
  flex: 0 0 auto;
  order: 1;
  align-self: stretch;
  min-height: 42px;
}

@media (max-width: 780px) {
  .ticket-create .actions {
    flex-wrap: wrap;
  }

  .ticket-create .form-errors {
    flex: 1 1 100%;
    order: 2;
  }

  .ticket-create .actions > .btn-light,
  .ticket-create .actions > .btn-outline,
  .ticket-create .actions > .btn-success {
    order: 1;
  }

  .service-restoration-level-row {
    align-items: stretch;
  }

  .service-restoration-cost {
    min-width: 148px;
    flex: 0 0 auto;
  }
}

.service-payment-row {
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 12px;
}

.service-payment-row .service-check-panel {
  margin: 0;
}

.service-payment-actions {
  display: flex;
  height: 100%;
  margin-top: 0;
  align-items: stretch;
}

.service-payment-actions .btn-success {
  height: 100%;
  min-height: 0;
  white-space: nowrap;
}

.service-payment-success {
  border: 1px solid #d9e2f1;
  border-radius: 14px;
  background: #ffffff;
  padding: 18px;
}

.service-payment-card {
  width: 100%;
  box-sizing: border-box;
  max-width: 780px;
  margin: 0;
  margin-top: 32px;
}

.service-payment-success .label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.service-payment-success-head,
.service-request-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.service-payment-success-icon,
.service-request-card-icon {
  width: 55px;
  height: 55px;
  border-radius: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 55px;
  background: #dcfce7;
  color: #166534;
}

.service-payment-success-icon svg,
.service-request-card-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.service-payment-header-text h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #1f2937;
}

.service-request-card-text {
  margin-top: 4px;
}
.service-request-card-text h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #1f2937;
}

.service-request-character-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.service-request-character-row h3 {
  min-width: 0;
}

.service-payment-header-text p {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.45;
}

.service-request-card-text p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.45;
}

.service-request-view .service-request-card-text {
  flex: 1 1 auto;
  min-width: 0;
}

.service-request-view {
  --service-request-divider: #e2e8f0;
}

.service-payment-success-amount {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.service-payment-success-amount strong {
  color: #5188df;
  font-size: 1.1rem;
}

.service-payment-meta-bubbles {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.service-request-view .service-payment-meta-bubbles {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.service-payment-failed .service-payment-meta-bubbles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-payment-meta-bubble {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #1f2937;
  font-size: 0.9rem;
}

.service-payment-meta-bubble strong {
  display: block;
  line-height: 1.35;
  color: #1f2937;
  overflow-wrap: anywhere;
}

.icon-copy-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #dbe3f2;
  border-radius: 4px;
  background: #ffffff;
  color: #5a6473;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex: 0 0 28px;
}

.icon-copy-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}

.icon-copy-btn:hover {
  background: #eef2ff;
  color: #3b4f80;
}

.icon-copy-btn:focus-visible {
  outline: 2px solid #7aa2ff;
  outline-offset: 2px;
}

.icon-copy-btn.is-copied {
  border-color: #9ad0a9;
  color: #1f6a38;
  background: #eaf7ee;
}

.icon-copy-btn-inline {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.icon-copy-btn-inline svg {
  width: 13px;
  height: 13px;
}

.service-payment-inline-status {
  display: inline-flex;
}

.service-payment-cost-row {
  position: relative;
  display: block;
  width: 100%;
}

.service-payment-cost-row strong {
  display: block;
  min-width: 0;
  padding-right: 90px;
}

.service-payment-cost-row .service-payment-inline-status {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding-bottom: 18px;
}

.service-payment-amount-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.service-payment-bubble-promo {
  margin-bottom: 8px;
}

.service-payment-details {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

.service-payment-detail {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
  min-width: 0;
}

.service-payment-detail .label {
  display: block;
  margin-bottom: 10px;
}

.service-restoration-pending-details {
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  grid-template-areas:
    "date reason"
    "alternate reason";
}

.service-restoration-pending-date {
  grid-area: date;
}

.service-restoration-pending-alternate {
  grid-area: alternate;
}

.service-restoration-pending-reason {
  grid-area: reason;
}

.service-payment-inline-list {
  margin: 0;
  padding-left: 18px;
  color: #1f2937;
}

.service-payment-inline-list li {
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.service-payment-inline-list li::marker {
  color: #6b7280;
}

.service-payment-inline-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.service-payment-inline-copy-row .service-name-copy-btn {
  margin-left: auto;
}

.service-restoration-request-details {
  display: grid;
  gap: 12px;
}

.service-restoration-request-detail {
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.service-payment-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.service-payment-detail-head .label {
  margin-bottom: 0;
}

.service-payment-name-list {
  counter-reset: serviceNameIndex;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #1f2937;
}

.service-payment-name-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 14px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  background: transparent;
}

.service-payment-name-list li::before {
  counter-increment: serviceNameIndex;
  content: counter(serviceNameIndex) ".";
  color: #6b7280;
  font-weight: 700;
  flex: 0 0 auto;
}

.service-payment-name-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.service-name-copy-btn {
  margin-left: 0;
}

.service-migration-code-block {
  border-top: 1px solid #d8e1ef;
  padding: 18px 0px 4px;
}

.service-migration-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-migration-code-value {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #cfd8e6;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
  font-family: "Cascadia Code", "Consolas", "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

.service-migration-code-note {
  margin: 12px 0 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.46;
}

.service-payment-name-list li:last-child {
  border-bottom: 0;
}

.service-applied-name-picker {
  margin: 0;
}

.service-applied-name-picker[data-busy="1"] {
  pointer-events: none;
  opacity: 0.82;
}

.service-applied-name-picker-state {
  min-height: 16px;
  margin-top: 0;
  font-size: 12px;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.service-applied-name-picker-state::before {
  content: "";
  width: 12px;
  height: 12px;
  display: inline-block;
  opacity: 0;
}

.service-applied-name-picker-state.is-saving {
  color: #6b7280;
}

.service-applied-name-picker-state.is-saving::before {
  opacity: 1;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  animation: service-autosave-spin 0.8s linear infinite;
}

.service-applied-name-picker-state.is-ok {
  color: #166534;
}

.service-applied-name-picker-state.is-ok::before {
  opacity: 1;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.2l3.4 3.5 7.6-7.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.2l3.4 3.5 7.6-7.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.service-applied-name-picker-state.is-error {
  color: #b91c1c;
}

.service-applied-name-picker-state.is-error::before {
  opacity: 1;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7.2'/%3E%3Cpath d='M10 6.3v4.9'/%3E%3Ccircle cx='10' cy='13.8' r='0.8' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7.2'/%3E%3Cpath d='M10 6.3v4.9'/%3E%3Ccircle cx='10' cy='13.8' r='0.8' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}

@keyframes service-autosave-spin {
  to { transform: rotate(360deg); }
}

.service-payment-name-choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
  border-radius: 8px;
  padding: 2px 4px;
}

.service-payment-name-choice:hover {
  background: #f8fafc;
}

.service-payment-name-radio {
  margin: 0;
  accent-color: #5188df;
  flex: 0 0 auto;
}

.service-payment-name-radio:checked + .service-payment-name-text {
  color: #111111;
  font-weight: 700;
}

.service-applied-name-picker-actions {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}

.service-applied-name-picker-actions .btn-light {
  min-width: 120px;
  justify-content: center;
}

.service-payment-reason {
  margin-top: 0;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #c8dbfb;
  border-radius: 10px;
  background: #ffffff;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.service-payment-reason::first-letter {
  text-transform: uppercase;
}

.service-payment-success-actions {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.service-payment-success-actions .service-inline-form {
  margin: 0;
  display: inline-flex;
}

.service-payment-success-actions .btn-light {
  text-decoration: none;
}

.service-applied-log {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.service-applied-log-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
  background: #f8fafc;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.service-applied-log-item + .service-applied-log-item {
  margin-top: 8px;
}

.service-applied-log-item-note,
.service-applied-log-item-error {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-template-columns: none;
  text-align: center;
}

.service-applied-log-note {
  font-size: 0.82rem;
  line-height: 1.4;
}

.service-applied-log-item-error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b91c1c;
}

.service-applied-log-field {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  border-right: 1px solid #e2e8f0;
  font-size: 0.82rem;
  color: #374151;
}

.service-applied-log-field:last-child {
  border-right: 0;
}

.service-applied-log-field .label {
  margin: 0;
  white-space: nowrap;
}

.service-applied-log-field strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1f2937;
}

.service-payment-pending .service-payment-success-icon {
  background: #eef2ff;
  color: #4338ca;
}

.service-payment-pending .service-payment-header-text h3,
.service-payment-pending .service-payment-success-amount strong {
  color: #4338ca;
}

.service-payment-pending .service-payment-success-amount {
  border-top-color: #c7d2fe;
}

.service-payment-failed .service-payment-success-icon {
  background: #fff1f2;
  color: #b91c1c;
}

.service-payment-failed .service-payment-header-text h3,
.service-payment-failed .service-payment-success-amount strong {
  color: #b91c1c;
}

.service-payment-failed .service-payment-success-amount {
  border-top-color: #fecaca;
}

.service-request-detail-card .service-request-card-icon {
  background: #e6ebf6;
  color: #5188df;
}

.service-request-view .service-request-details-card {
  max-width: none;
  margin-top: 0;
}

.service-request-view .service-request-card-separator {
  margin-top: 12px;
  border-top: 1px solid var(--service-request-divider);
}

.service-request-view .service-request-meta-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  min-width: 0;
}

.service-request-view .service-request-meta-pair {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
}

.service-request-view .service-request-meta-pair + .service-request-meta-pair {
  border-left: 1px solid var(--service-request-divider);
  padding-left: 12px;
}

.service-request-view .service-request-meta-pair .meta-label {
  margin: 0;
  font-size: 11px;
  line-height: 1;
}

.service-request-view .service-request-meta-text {
  color: #6b7280;
  font-weight: 600;
}

.attachment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attachment-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 180px;
}

.attachment-item a {
  font-size: 0.8rem;
  color: #1f2937;
  font-weight: 600;
}

.attachment-meta {
  font-size: 11px;
  color: #6b7280;
}

.ticket-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ticket-actions .btn-success {
  min-width: 120px;
  justify-content: center;
}

.ticket-create .priority-group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  font-size: 14px;
}

.ticket-create .priority-option {
  position: relative;
  display: block;
  cursor: pointer;
  user-select: none;
  margin-right: 22px;
}

.ticket-create .priority-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ticket-create .priority-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #e5e7eb;
  color: #1f2937;
  transition: box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ticket-create .priority-check {
  width: 16px;
  height: 16px;
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}

.ticket-create .priority-check svg {
  width: 16px;
  height: 16px;
  display: block;
}

.ticket-create .priority-option.normal .priority-pill {
  background: #e6ebf6;
  color: #5e5e5e;
}

.ticket-create .priority-option.high .priority-pill {
  background: #fde9c6;
  color: #8a5a00;
}

.ticket-create .priority-option.critical .priority-pill {
  background: #ffd6d3;
  color: #a11f1f;
}

.ticket-create .priority-option:hover .priority-pill {
  box-shadow: 0 0 0 2px rgba(81, 136, 223, 0.15);
}

.ticket-create .priority-option input:focus-visible + .priority-pill {
  outline: none;
  box-shadow: 0 0 0 3px rgba(81, 136, 223, 0.25);
}

.ticket-create .priority-option input:checked + .priority-pill .priority-check {
  display: inline-flex;
}

.ticket-create .priority-option.normal input:checked + .priority-pill {
  background: #d3e3fd;
  color: #5188df;
  font-weight: 700;
}

.ticket-create .priority-option.high input:checked + .priority-pill {
  background: #f6b65b;
  color: #3c2400;
  font-weight: 700;
}

.ticket-create .priority-option.critical input:checked + .priority-pill {
  background: #ef6363;
  color: #ffffff;
  font-weight: 700;
}



.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 6px 10px;
  text-align: left;
  font-size: 0.85rem;
  color: #111111;
}
.table th {
  padding: 12px 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b7280;
}

.table tbody tr:hover {
  background: #f8f8f8;
}

.table tbody tr.is-last-reply-self {
  opacity: 0.56;
  transition: opacity 0.15s ease;
}

.table tbody tr.is-last-reply-self:hover {
  opacity: 0.8;
}

.status,
.priority-badge,
.tag-badge {
  padding: 6px 10px;
  border-radius: 64px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-width: 64px;
  justify-content: center;
}

.open {
  background: #e6fff7;
  color: #0f766e;
}

.closed {
  background: #ffe4e8;
  color: #9f1239;
}

.archived {
  background: #e2e8f0;
  color: #475569;
}

.priority-normal {
  background: #eef4ff;
  color: #3b5bdb;
}

.priority-high {
  background: #ffefcc;
  color: #b45309;
}

.priority-critical {
  background: #ffe4e6;
  color: #be123c;
}

.tag-neutral {
  background: #e6ebf6;
  color: #5e5e5e;
}


.tag-restricted {
  background: #e2e8f0;
  color: #475569;
}

.tag-eligible {
  background: #dff7e7;
  color: #14532d;
}

.tag-not-eligible {
  background: #fff1f2;
  color: #b91c1c;
}

.tag-check {
  background: #fff8e6;
  color: #9a6700;
}

.tag-pending {
  background: #eef2ff;
  color: #4338ca;
}

.tag-promo {
  background: #fff4d6;
  color: #a16207;
}

.restricted-flag {
  margin-left: 6px;
}

.ticket-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ticket-view .ticket-summary h2 {
  font-size: 1.1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 22px;
  margin-bottom: 11px;
}

.ticket-view .ticket-panel h3 {
  font-size: calc(1.05rem + 1px);
}

.ticket-view .ticket-meta {
  font-size: 14px;
}

.ticket-view .msg-meta {
  font-size: 13px;
  position: relative;
  border-bottom: 1px solid #d6deea;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.ticket-view .msg-body {
  font-size: calc(0.8rem + 1px);
}

.ticket-panel {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  padding-bottom: 14px;
  background: #ffffff;
}

.ticket-panel.ticket-summary {
  border: 0;
  padding: 0;
  padding-top: 12px;
}

.ticket-summary h2 {
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 1.2rem;
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #6b7280;
}

.ticket-assign-actions {
  border-top: 1px solid #e2e8f0;
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 14px;
}

.ticket-requester-meta-bubbles {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.ticket-requester-meta-bubble {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #1f2937;
  font-size: 0.9rem;
}

.ticket-requester-meta-bubble .label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ticket-requester-meta-bubble strong {
  display: block;
  line-height: 1.35;
  color: #1f2937;
  overflow-wrap: anywhere;
}

.ticket-requester-meta-bubble strong .ticket-requester-character-refs {
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
}

.ticket-assign {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  padding-right: 18px;
  margin-right: 10px;
}

.ticket-assign-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ticket-assign .form-control {
  min-width: 220px;
  max-width: 320px;
}

.ticket-assign-actions .form-control,
.ticket-assign-actions .btn-light {
  height: 41px;
}

.service-admin-actions .ticket-assign {
  padding-right: 0;
  margin-right: 0;
}

.service-admin-actions .ticket-assign .btn-light {
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: 120px;
  justify-content: center;
}

.ticket-meta .meta-label {
  font-weight: 600;
  color: #6b7280;
}

.ticket-panel h3 {
  margin: 0 0 12px;
  color: #1f2937;
  font-size: 1.05rem;
}

.ticket-conversation textarea.form-control {
  width: 100%;
  height: 134px;
  resize: none;
}
.msg {
  border: 1px solid #e2e8f0;
  border-left: 4px solid #cbd5e1;
  padding: 18px 20px;
  margin: 12px 0;
  background: #f8fafc;
  border-radius: 12px;
}

.msg-meta {
  font-size: 12px;
  line-height: 1.35;
  color: #9ca3af;
  margin-bottom: 6px;
  position: relative;
}

.msg-author {
  color: #1f2937;
  font-weight: 700;
}

.msg-author-id {
  color: #9ca3af;
  font-weight: 500;
  margin-left: 6px;
}

.msg-meta-actions {
  display: block;
  position: absolute;
  right: 0;
  top: -25%;
}

.msg.admin .msg-author {
  color: #0b57d0;
}

.msg.admin {
  border-left-color: #e2e8f0;
  border-right: 4px solid #5188df;
  background: #eef4ff;
}

.msg-action-link {
  color: #5188df;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  line-height: inherit;
  vertical-align: baseline;
}

.msg-action-link:hover {
  text-decoration: underline;
}

.msg-action-form {
  margin: 0;
  display: inline;
}

.msg-action-delete {
  border: 0;
  background: transparent;
  color: #c04a4a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  line-height: inherit;
  vertical-align: baseline;
}

.msg-action-delete:hover {
  text-decoration: underline;
}

.msg-action-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
}

.msg-action-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.msg-action-link.msg-action-icon:hover,
.msg-action-delete.msg-action-icon:hover {
  text-decoration: none;
}

.msg-edit-form {
  margin-top: 10px;
}

.msg-edit-form textarea.form-control {
  min-height: 96px;
  resize: vertical;
}

.msg-edit-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.msg-edit-actions .btn-light {
  height: 36px;
  padding: 0 14px;
}

.layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  width: 100%;
  margin: 0;
}

.sidebar {
  width: 260px;
  grid-column: 1;
  grid-row: 1;
}

.sidebar-inner {
  position: sticky;
  top: 0;
}

.sidebar-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  padding-top: 32px;
  border-bottom: 1px #e6ebf6 solid;
  margin-bottom: 14px;
}

.sidebar-title {
  font-size: 1.1rem;
  color: #2f80ed;
  text-decoration: none;
  font-weight: 700;
}

.sidebar-user {
  color: #5e5e5e;
  font-size: 14px;
}


.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.nav-section {
  padding: 12px 18px 6px;
}

.nav-section span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b95a5;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  padding-bottom: 10px;
  border-radius: 0 18px 18px 0;
  color: #5e5e5e;
  font-size: 0.9rem;
  font-weight: 600;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.nav-text {
  min-width: 0;
}

.nav-link.active {
  background: #d3e3fd;
  color: #0b57d0;
}

.nav-link:hover {
  background: #e6ebf6;
  color: #5e5e5e;
}

.nav-link.active:hover {
  background: #d3e3fd;
  color: #0b57d0;
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  flex: 0 28px;
  padding-top: 2px;
}

.icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-form {
  display: block;
  margin: 0;
}

  .nav-form .nav-link {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    line-height: 1.2;
  }

  .nav-item-logout .nav-link {
    min-height: 42px;
  }

.nav-item-logout {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e6ebf6;
}

.main {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-bottom: 0;
  border-radius: 14px;
  background-color: #fff;
  grid-column: 2;
  grid-row: 1;
  box-sizing: border-box;
  margin: 24px;
  position: relative;
  min-width: 0;
}

.main.main-align-left {
  max-width: 1280px;
}

.main.main-align-full {
  max-width: none;
}

.main-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  position: absolute;
  top: 12px;
  right: 24px;
  padding: 0;
  margin: 0;
  z-index: 2;
}

.main-align-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #5e5e5e;
  cursor: pointer;
}

.main-align-btn svg {
  width: 18px;
  height: 18px;
}

.main-align-btn:hover {
  background: #e6ebf6;
  color: #5188df;
}

.main-align-btn.active {
  background: #d3e3fd;
  color: #5188df;
  border-color: #c8dbfb;
}

.layout > footer {
  grid-column: 1 / -1;
  grid-row: 2;
  box-sizing: border-box;
}
footer {
  margin: 0;
  padding: 18px;
  padding-top: 0px;
  color: #6b7280;
  font-size: 12px;
  text-align: center;
}
footer p {
  margin: 0;
}

footer a {
  color: #1848b2;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  color: #0b57d0;
}

.footer-links {
  margin-left: 8px;
  display: inline-flex;
  gap: 10px;
}

.footer-links .footer-theme-toggle {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: #1848b2;
  cursor: pointer;
}

.footer-links .footer-theme-toggle:hover {
  color: #0b57d0;
}

.main .content {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.admin-filters-grid,
.ticket-filters-grid {
  display: grid;
  width: 100%;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 32px;
  align-items: stretch;
}

.admin-filters-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ticket-filters-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.admin-filters-grid > *,
.ticket-filters-grid > * {
  min-width: 0;
}

.filter-actions {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
}

.admin-filters .btn-light,
.ticket-filters .btn-light {
  min-width: 128px;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.filter-actions .btn-light {
  width: 100%;
}

@media (min-width: 901px) {
  .service-requests-filters .filter-actions .btn-light {
    max-width: 240px;
  }
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
  }

  .sidebar {
    width: 100%;
    grid-column: 1;
    grid-row: 1;
    box-sizing: border-box;
  }

  .sidebar-inner {
    position: static;
    padding: 0;
  }

  .sidebar-head {
    padding: 14px 16px 10px;
    margin-bottom: 6px;
    border-bottom: 0;
    gap: 2px;
  }

  .sidebar-user {
    font-size: 13px;
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0 16px 2px;
  }

  .nav-list > li {
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-list > li.nav-item-logout {
    grid-column: 1 / -1;
    margin-left: 0;
    padding-left: 0;
    margin-top: 4px;
    border-top: 1px solid #e6ebf6;
    border-left: 0;
  }

  .nav-list > li.nav-section {
    display: none;
  }

  .nav-link {
    min-height: 24px;
    font-size: 0.86rem;
    border-radius: 999px;
    padding: 8px 12px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    text-align: left;
    white-space: normal;
    border: 1px solid #d9e2f1;
    background: #ffffff;
    gap: 6px;
  }

  .nav-link .nav-text {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.2;
  }

  .nav-link .icon {
    width: 18px;
    height: 18px;
    flex: none;
    padding-top: 0;
    justify-content: center;
  }

  .nav-link.active,
  .nav-link.active:hover,
  .nav-link:hover {
    border-radius: 999px;
  }

  .nav-form .nav-link {
    width: 100%;
  }

  .ticket-panel.ticket-summary {
    padding-top: 0;
  }

  .ticket-view .ticket-summary h2 {
    padding-top: 11px;
  }

  .main,
  .main.main-align-left,
  .main.main-align-full {
    grid-column: 1;
    grid-row: 2;
    margin: 16px;
    max-width: none;
  }

  .main-controls {
    display: none;
  }

  .layout > footer {
    grid-column: 1;
    grid-row: 3;
  }

  .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

}

@media (max-width: 1200px) {
  .admin-filters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .table thead {
    display: none;
  }

  .table tbody {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 10px;
  }

  .table tbody tr {
    display: block;
    border: 1px solid #d9e2f1;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px 12px;
  }

  .table tbody td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border: 0;
    padding: 5px 0;
    white-space: normal;
    word-break: break-word;
    font-size: 0.82rem;
  }

  .table tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #8b95a5;
  }

  .table tbody td[data-label="Subject"] {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    border-top: 1px dashed #d9e2f1;
    border-bottom: 1px dashed #d9e2f1;
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .table tbody td[data-label="Subject"]::before {
    display: none;
  }

  .table tbody td[data-label="Subject"] a {
    font-weight: 700;
  }

  .table tbody td[data-label="ID"]::before {
    content: "Ticket";
  }

  .service-requests-table tbody td[data-label="ID"]::before {
    content: "Request";
  }

  .table tbody td[data-label="Status"] .status,
  .table tbody td[data-label="Priority"] .priority-badge,
  .table tbody td[data-label="Status"] .tag-badge,
  .table tbody td[data-label="Payment"] .tag-badge {
    max-width: 190px;
    width: 100%;
    justify-self: start;
  }

  .pagination-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-meta {
    justify-content: space-between;
  }

  .pagination-links {
    justify-content: flex-start;
  }

  .service-submit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1130px) {
  .ticket-create .priority-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1560px) {
  .service-request-col:last-child,
  .service-rename-col:last-child,
  .service-migration-col:last-child {
    padding-left: 0;
  }

  .service-char-note {
    display: none;
  }

  .service-char-cell-name {
    border-right: 0;
  }

  .service-char-state[data-tooltip] {
    cursor: help;
  }

  .service-char-state[data-tooltip]::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 5px;
    vertical-align: -1px;
    background-color: currentColor;
    opacity: 0.85;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='8'/%3E%3Cpath d='M7.6 7.3a2.7 2.7 0 0 1 5 1.3c0 1.6-1.7 2.1-2.4 2.8-.3.3-.5.7-.5 1.1'/%3E%3Ccircle cx='10' cy='14.7' r='0.8' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='8'/%3E%3Cpath d='M7.6 7.3a2.7 2.7 0 0 1 5 1.3c0 1.6-1.7 2.1-2.4 2.8-.3.3-.5.7-.5 1.1'/%3E%3Ccircle cx='10' cy='14.7' r='0.8' fill='black' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
  }
}

@media (max-width: 1280px) {
  .service-request-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .ticket-create .priority-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .ticket-create .priority-group {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 430px) {
  .service-admin-actions .ticket-assign .btn-light {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (max-width: 780px) {
  .admin-filters-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .ticket-filters-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .service-char-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
  }

  .service-char-item input[type="radio"],
  .service-char-item .service-char-cell-name {
    align-self: center;
  }
}

@media (max-width: 1200px) {
  .service-applied-log-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-applied-log-item-note,
  .service-applied-log-item-error {
    grid-template-columns: none;
  }

  .service-applied-log-field {
    padding-top: 6px;
    padding-bottom: 6px;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
  }

  .service-applied-log-field:last-child {
    border-bottom: 0;
  }

  html[data-theme="dark"] .service-applied-log-field {
    border-bottom-color: #3a3c3d;
  }
}

@media (max-width: 800px) {
  .ticket-assign-actions {
    margin-top: 6px;
  }

  .service-request-view .service-request-meta-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-left: 0;
    margin-top: 6px;
    gap: 6px;
    border-top: 1px solid var(--service-request-divider);
    padding-top: 6px;
  }

  .service-request-view .service-request-meta-pair {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .service-request-view .service-request-meta-pair + .service-request-meta-pair {
    border-left: 0;
    padding-left: 0;
    border-top: 1px dashed var(--service-request-divider);
    padding-top: 6px;
  }

  .service-request-view .service-request-meta-pair .meta-label {
    font-size: 11px;
    line-height: 1.1;
    margin: 0;
  }

  .service-request-view .service-request-meta-text {
    font-size: 0.8rem;
    text-align: right;
  }

}

@media (max-width: 1100px) {
  .service-request-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .service-request-col:last-child,
  .service-rename-col:last-child,
  .service-migration-col:last-child {
    padding-left: 0;
    padding-top: 14px;
    border-top: 0;
  }

  .service-payment-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-payment-actions {
    width: 100%;
    height: auto;
  }

  .service-payment-actions .btn-success {
    width: 100%;
    min-height: 40px;
    height: auto;
    justify-content: center;
  }

  .service-payment-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-restoration-pending-details {
    grid-template-areas:
      "date"
      "alternate"
      "reason";
  }

  .service-payment-meta-bubbles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .ticket-requester-meta-bubbles {
    grid-template-columns: minmax(0, 1fr);
  }

  .container {
    width: auto;
    margin: 0;
  }

  .main,
  .main.main-align-left,
  .main.main-align-full {
    margin-left: 8px;
    margin-right: 8px;
  }

  .ticket-view .ticket-meta {
    display: block;
    line-height: 1.75;
  }

  .ticket-view .ticket-meta > *:not(.service-request-meta-right) {
    display: inline-flex;
    vertical-align: middle;
    margin-right: 6px;
    margin-bottom: 6px;
  }

  .ticket-view .ticket-meta .meta-label-status,
  .ticket-view .ticket-meta .meta-label-priority,
  .ticket-view .ticket-meta .meta-label-assigned {
    display: none;
  }

  .ticket-view .ticket-panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0 0 12px;
    border-bottom: 1px solid #e2e8f0;
  }

  .ticket-view .ticket-panel:last-of-type {
    border-bottom: 0;
  }

  .ticket-view .ticket-summary h2 {
    padding-top: 0;
    padding-bottom: 14px;
  }

  .ticket-assign-actions {
    align-items: stretch;
    width: 100%;
    padding-bottom: 3px;
  }

  .ticket-assign {
    flex-wrap: wrap;
    flex: 1 1 100%;
    min-width: 0;
    border-right: 0;
    padding-right: 0;
    margin-right: 0;
  }

  .ticket-assign .form-control {
    flex: 1 1 220px;
    min-width: 0;
    max-width: none;
  }

  .ticket-assign .btn-light,
  .ticket-assign .btn-outline,
  .ticket-assign .btn-danger {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .ticket-view .msg-body,
  .ticket-view .msg-meta {
    font-size: 0.80rem;
  }

  .sidebar-head {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nav-link {
    padding: 8px 10px;
  }

  .nav-list {
    padding-left: 12px;
    padding-right: 12px;
    grid-template-columns: minmax(0, 1fr);
  }

  .icon {
    flex-basis: 24px;
  }

  .table tbody td {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
    font-size: 0.8rem;
  }

  .msg {
    padding: 14px;
  }

  .ticket-actions {
    width: 100%;
    align-items: stretch;
  }

  .ticket-actions > * {
    flex: 1 1 160px;
    min-width: 0;
    justify-content: center;
  }

  .admin-filters-grid,
  .ticket-filters-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-payment-success {
    padding: 14px;
  }

  .service-payment-success-head,
  .service-request-card-head {
    align-items: center;
  }

  .service-payment-success-amount {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .service-payment-meta-bubbles {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-payment-detail-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .service-payment-detail-head .service-applied-name-picker-state {
    margin-left: auto;
  }

  html[data-theme="dark"] .ticket-view .ticket-panel {
    border-bottom-color: #3a3c3d;
  }

}

html[data-theme="dark"] body {
  background: #1c1c1d;
  color: #f8fafc;
}

html[data-theme="dark"] a {
  color: #8ab4f8;
}

html[data-theme="dark"] a:hover {
  color: #aecbfa;
}

html[data-theme="dark"] .main {
  background-color: #252728;
}

html[data-theme="dark"] .sidebar-head {
  border-bottom-color: #3a3c3d;
}

html[data-theme="dark"] .sidebar-title {
  color: #8ab4f8;
}

html[data-theme="dark"] .sidebar-user {
  color: #cbd5e1;
}

html[data-theme="dark"] .nav-link {
  color: #cbd5e1;
}

html[data-theme="dark"] .nav-item-logout {
  border-top-color: #3a3c3d;
}

html[data-theme="dark"] .nav-section span {
  color: #8b96a8;
}

html[data-theme="dark"] .nav-link:hover {
  background: #2f3133;
  color: #ffffff;
}

html[data-theme="dark"] .nav-link.active,
html[data-theme="dark"] .nav-link.active:hover {
  background: #2f3a4a;
  color: #8ab4f8;
}

@media (max-width: 1200px) {
  html[data-theme="dark"] .table tbody tr {
    background: #252728;
    border-color: #3a3c3d;
  }

  html[data-theme="dark"] .table tbody td::before {
    color: #8b96a8;
  }

  html[data-theme="dark"] .table tbody td[data-label="Subject"] {
    border-top-color: #3a3c3d;
    border-bottom-color: #3a3c3d;
  }
}

@media (max-width: 900px) {
  html[data-theme="dark"] .nav-link {
    background: #252728;
    border-color: #3a3c3d;
  }
}

html[data-theme="dark"] .main-align-btn {
  background: #252728;
  border-color: #3a3c3d;
  color: #cbd5e1;
}

html[data-theme="dark"] .main-align-btn:hover {
  background: #2f3133;
  color: #ffffff;
}

html[data-theme="dark"] .main-align-btn.active {
  background: #2f3a4a;
  color: #8ab4f8;
  border-color: #3a3c3d;
}

html[data-theme="dark"] .auth-card {
  background: #252728;
  border-color: #3a3c3d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .auth-card h1 {
  color: #f8fafc;
}

html[data-theme="dark"] .auth-card p {
  color: #cbd5e1;
}

html[data-theme="dark"] .ticket-panel {
  background: #252728;
  border-color: #3a3c3d;
}

html[data-theme="dark"] .ticket-summary h2,
html[data-theme="dark"] .ticket-panel h3 {
  color: #f8fafc;
}

html[data-theme="dark"] .ticket-view .ticket-summary h2 {
  border-bottom-color: #3a3c3d;
}

html[data-theme="dark"] .ticket-meta,
html[data-theme="dark"] .ticket-meta .meta-label {
  color: #9ca3af;
}

html[data-theme="dark"] .panel-title {
  border-bottom-color: #3a3c3d;
}

html[data-theme="dark"] .panel-title > h2 {
  color: #cbd5e1;
}

html[data-theme="dark"] .ticket-create .field > label,
html[data-theme="dark"] .admin-filters label,
html[data-theme="dark"] .ticket-filters label,
html[data-theme="dark"] .ticket-create .field legend {
  color: #9ca3af;
}

html[data-theme="dark"] .form-control {
  background-color: #1f2022;
  border-color: #3a3c3d;
  color: #f8fafc;
  box-shadow: none;
}

html[data-theme="dark"] .form-control::placeholder {
  color: #9ca3af;
}

html[data-theme="dark"] .form-control:focus {
  border-color: #8ab4f8;
  box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.25);
}

html[data-theme="dark"] select.form-control {
  background-color: #1f2022;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .btn-light {
  background: #2f3a4a;
  color: #8ab4f8;
  border-color: #3a3c3d;
}

html[data-theme="dark"] .btn-light:visited {
  color: #8ab4f8;
}

html[data-theme="dark"] .btn-light:hover {
  background: #38404d;
  color: #dbeafe;
}

html[data-theme="dark"] .btn-outline {
  border-color: #3a3c3d;
  color: #cbd5e1;
}

html[data-theme="dark"] .btn-outline:hover {
  background: #2f3133;
  color: #f8fafc;
}

html[data-theme="dark"] .btn-danger {
  background: #3f1d2b;
  color: #fda4af;
  border-color: #5b2335;
}

html[data-theme="dark"] .btn-danger:hover {
  background: #5b2335;
  color: #fecdd3;
}

html[data-theme="dark"] .btn-success {
  background: #14532d;
  color: #bbf7d0;
  border-color: #166534;
}

html[data-theme="dark"] .btn-success:hover {
  background: #166534;
  color: #dcfce7;
}

html[data-theme="dark"] .btn-restrict {
  background: #4a3a19;
  color: #fcd34d;
  border-color: #665128;
}

html[data-theme="dark"] .btn-restrict:hover {
  background: #5b4720;
  color: #fde68a;
}

html[data-theme="dark"] .btn-restore {
  background: #31214a;
  color: #c4b5fd;
  border-color: #4c3670;
}

html[data-theme="dark"] .btn-restore:hover {
  background: #3b285a;
  color: #ddd6fe;
}

html[data-theme="dark"] .ticket-create .md-btn {
  background: #2f3133;
  color: #cbd5e1;
}

html[data-theme="dark"] .ticket-create .md-btn:hover,
html[data-theme="dark"] .ticket-create .md-btn.active {
  background: #2f3a4a;
  color: #8ab4f8;
}

html[data-theme="dark"] .ticket-create .md-divider {
  background: #3a3c3d;
}

html[data-theme="dark"] .ticket-create .md-preview {
  background: #1f2022;
  border-color: #3a3c3d;
  color: #f8fafc;
}

html[data-theme="dark"] .ticket-create .md-preview-content pre,
html[data-theme="dark"] .msg-body pre {
  background: #2f3133;
}

html[data-theme="dark"] .ticket-create .md-preview-content pre code,
html[data-theme="dark"] .msg-body pre code {
  background: #2f3133;
}

html[data-theme="dark"] .ticket-create .md-preview-content code,
html[data-theme="dark"] .msg-body code {
  background: #3a3c3d;
  color: #f8fafc;
}

html[data-theme="dark"] .ticket-create .field .file-input,
html[data-theme="dark"] .attachment-item {
  background: #1f2022;
  border-color: #3a3c3d;
}

html[data-theme="dark"] .ticket-create .file-input::file-selector-button {
  background: #2f3133;
  border-color: #3a3c3d;
  color: #cbd5e1;
}

html[data-theme="dark"] .ticket-create .file-input::file-selector-button:hover {
  background: #2f3a4a;
  color: #8ab4f8;
}

html[data-theme="dark"] .attachment-item a {
  color: #e5e7eb;
}

html[data-theme="dark"] .attachment-meta {
  color: #9ca3af;
}

html[data-theme="dark"] .ticket-create .help {
  color: #9ca3af;
}

html[data-theme="dark"] .ticket-create .form-error,
html[data-theme="dark"] .ticket-view .conversation-form-errors .form-error,
html[data-theme="dark"] .alert-error {
  background: #3f1d2b;
  border-color: #5b2335;
  color: #fda4af;
}

html[data-theme="dark"] .empty-state {
  background: #1f2022;
  border-color: #3a3c3d;
  color: #9ca3af;
}

html[data-theme="dark"] .pagination-summary {
  color: #9ca3af;
}

html[data-theme="dark"] .pagination-page {
  color: #d1d5db;
}

html[data-theme="dark"] .pagination-link {
  background: #1f2022;
  border-color: #3a3c3d;
  color: #e5e7eb;
}

html[data-theme="dark"] .pagination-link:hover {
  background: #2b2d2e;
  color: #dbeafe;
}

html[data-theme="dark"] .pagination-link.is-current {
  background: #264b8f;
  border-color: #3463bc;
  color: #eff6ff;
}

html[data-theme="dark"] .pagination-link.is-disabled {
  background: #1a1b1d;
  border-color: #2c2f31;
  color: #6b7280;
}

html[data-theme="dark"] .pagination-ellipsis {
  color: #6b7280;
}

html[data-theme="dark"] .service-inline-notice {
  background: #1f2022;
  border-color: #3a3c3d;
  border-left-color: #4b6385;
}

html[data-theme="dark"] .service-inline-notice-error {
  background: #3f1d2b;
  border-color: #5b2335;
  border-left-color: #fda4af;
}

html[data-theme="dark"] .service-inline-notice-error .service-inline-notice-icon,
html[data-theme="dark"] .service-inline-notice-error .empty-state {
  color: #fecdd3;
}

html[data-theme="dark"] .service-inline-notice-icon {
  color: #8ab4f8;
}

html[data-theme="dark"] .service-inline-notice .empty-state {
  color: #e5e7eb;
}

html[data-theme="dark"] .service-submit-card {
  background: #252728;
  border-color: #3a3c3d;
}

html[data-theme="dark"] .service-submit-card:hover {
  background: #2b2d2e;
  border-color: #4b5563;
}

html[data-theme="dark"] .service-submit-icon {
  background: #2f3a4a;
  color: #8ab4f8;
}

html[data-theme="dark"] .service-submit-title {
  color: #f8fafc;
}

html[data-theme="dark"] .service-submit-desc {
  color: #cbd5e1;
}

html[data-theme="dark"] .service-gifts-intro {
  color: #9ea9bb;
}

html[data-theme="dark"] .service-gift-row {
  background: #252728;
  border-color: #3a3c3d;
}

html[data-theme="dark"] .service-gift-row:hover {
  background: #2b2d2f;
  border-color: #4b6385;
  box-shadow: none;
}

html[data-theme="dark"] .service-gift-row-text h3 {
  color: #f8fafc;
}

html[data-theme="dark"] .service-gift-row-meta-item,
html[data-theme="dark"] .service-gift-status {
  color: #cbd5e1;
}

html[data-theme="dark"] .service-gift-row-meta-item .label {
  color: #9ea9bb;
}

html[data-theme="dark"] .service-gift-row-title,
html[data-theme="dark"] .service-gift-row-meta,
html[data-theme="dark"] .service-gift-items {
  border-right-color: #3a3c3d;
}

@media (max-width: 1200px) {
  html[data-theme="dark"] .service-gift-row-title {
    border-bottom-color: #3a3c3d;
  }

  html[data-theme="dark"] .service-gift-items {
    border-bottom-color: #3a3c3d;
  }
}

html[data-theme="dark"] .service-gift-items {
  color: #9ea9bb;
}

html[data-theme="dark"] .service-gift-row-meta-item strong {
  color: #f8fafc;
}

html[data-theme="dark"] .service-gift-status-claimed {
  color: #6ee7b7;
}

html[data-theme="dark"] .service-gift-status-expired {
  color: #fcd34d;
}

html[data-theme="dark"] .service-gift-status-unavailable {
  color: #fdba74;
}

html[data-theme="dark"] .dashboard-divider {
  background: #3a3c3d;
}

html[data-theme="dark"] .service-name-field {
  background: #252728;
  border-color: #3a3c3d;
}

html[data-theme="dark"] .service-section-head {
  border-bottom-color: #3a3c3d;
}

html[data-theme="dark"] .service-char-head {
  border-bottom-color: #3a3c3d;
}

html[data-theme="dark"] .service-char-title {
  color: #9ca3af;
}

html[data-theme="dark"] .service-limitations {
  background: #201e1b;
  border-color: #544a33;
}

html[data-theme="dark"] .service-limitations-title,
html[data-theme="dark"] .service-limitations-list {
  color: #dbcaa0;
}

html[data-theme="dark"] .service-limitations-note {
  border-top-color: #544a33;
  color: #cfbf96;
}

html[data-theme="dark"] .service-section-note {
  color: #9ca3af;
}

html[data-theme="dark"] .service-inline-actions {
  border-top-color: #3a3c3d;
}

html[data-theme="dark"] .service-section-title {
  color: #9ca3af;
}

html[data-theme="dark"] .service-char-item {
  background: #252728;
  border-color: #3a3c3d;
}

html[data-theme="dark"] .service-char-item:hover {
  background: #2b2d2e;
  border-color: #4b5563;
}

html[data-theme="dark"] .service-char-name {
  color: #f8fafc;
}

html[data-theme="dark"] .service-char-cell-name {
  border-right-color: #3a3c3d;
}

html[data-theme="dark"] .service-char-meta,
html[data-theme="dark"] .service-char-note {
  color: #cbd5e1;
}

html[data-theme="dark"] .service-char-state[data-tooltip]:focus-visible {
  outline-color: #8ab4f8;
}

html[data-theme="dark"] .service-char-tooltip {
  background: #252728;
  border-color: #3a3c3d;
  color: #e5e7eb;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .service-char-price {
  color: #cbd5e1;
}

html[data-theme="dark"] .service-char-item:has(input[type="radio"]:checked) {
  background: #2f3a4a;
  border-color: #3a3c3d;
}

html[data-theme="dark"] .service-char-item:has(input[type="radio"]:disabled):hover {
  background: #252728;
  border-color: #3a3c3d;
}

html[data-theme="dark"] .service-name-status {
  background: #1f2022;
  border-color: #3a3c3d;
  color: #9ca3af;
}

html[data-theme="dark"] .service-name-status.is-valid {
  background: #13291f;
  border-color: #1f5f41;
  color: #86efac;
}

html[data-theme="dark"] .service-name-status.is-warn {
  background: #342a14;
  border-color: #665128;
  color: #fcd34d;
}

html[data-theme="dark"] .service-name-status.is-error {
  background: #351a21;
  border-color: #5b2335;
  color: #fca5a5;
}

html[data-theme="dark"] .service-check-panel {
  background: #252728;
  border-color: #3a3c3d;
  color: #cbd5e1;
}

html[data-theme="dark"] .service-check-panel strong {
  color: #f8fafc;
}

html[data-theme="dark"] .service-check-panel-muted {
  background: #1f2022;
  border-color: #3a3c3d;
  color: #9ca3af;
}

html[data-theme="dark"] .service-check-panel-ok {
  background: #13291f;
  border-color: #1f5f41;
  color: #bbf7d0;
}

html[data-theme="dark"] .service-check-panel-error {
  background: #351a21;
  border-color: #5b2335;
  color: #fecdd3;
}

html[data-theme="dark"] .service-payment-success {
  background: #252728;
  border-color: #3a3c3d;
}

html[data-theme="dark"] .service-payment-success-icon,
html[data-theme="dark"] .service-request-card-icon {
  background: #1f5f41;
  color: #bbf7d0;
}

html[data-theme="dark"] .service-payment-header-text h3,
html[data-theme="dark"] .service-payment-success-amount strong {
  color: #8ab4f8;
}

html[data-theme="dark"] .service-request-card-text h3 {
  color: #8ab4f8;
}

html[data-theme="dark"] .service-payment-header-text p {
  color: #cbd5e1;
}

html[data-theme="dark"] .service-request-card-text p {
  color: #cbd5e1;
}

html[data-theme="dark"] .service-payment-success .label {
  color: #9ca3af;
}

html[data-theme="dark"] .service-payment-inline-list {
  color: #e5e7eb;
}

html[data-theme="dark"] .service-payment-inline-list li::marker {
  color: #9ca3af;
}

html[data-theme="dark"] .service-restoration-request-detail {
  border-top-color: #3a3c3d;
}

html[data-theme="dark"] .service-payment-success-amount {
  border-top-color: #3a3c3d;
}

html[data-theme="dark"] .service-payment-meta-bubble {
  background: #1f2022;
  border-color: #3a3c3d;
}

html[data-theme="dark"] .icon-copy-btn {
  background: #252728;
  border-color: #3a3c3d;
  color: #9ca3af;
}

html[data-theme="dark"] .icon-copy-btn:hover {
  background: #2f3133;
  color: #cbd5e1;
}

html[data-theme="dark"] .icon-copy-btn:focus-visible {
  outline-color: #8ab4f8;
}

html[data-theme="dark"] .icon-copy-btn.is-copied {
  border-color: #2f6f51;
  color: #86efac;
  background: #173126;
}

html[data-theme="dark"] .service-payment-name-list {
  color: #e5e7eb;
}

html[data-theme="dark"] .service-payment-name-list li {
  border-color: #3a3c3d;
  background: transparent;
}

html[data-theme="dark"] .service-migration-code-block {
  border-top-color: #3a3c3d;
  background: #1f2022;
}

html[data-theme="dark"] .service-migration-code-value {
  border-color: #3a3c3d;
  background: #17191a;
  color: #f3f4f6;
}

html[data-theme="dark"] .service-migration-code-note {
  color: #cbd5e1;
}

html[data-theme="dark"] .service-payment-name-choice:hover {
  background: #2f3133;
}

html[data-theme="dark"] .service-payment-name-radio:checked + .service-payment-name-text {
  color: #f8fafc;
}

html[data-theme="dark"] .service-applied-name-picker-actions {
  border-top-color: #3a3c3d;
}

html[data-theme="dark"] .service-applied-name-picker-state {
  color: #9ca3af;
}

html[data-theme="dark"] .service-applied-name-picker-state.is-ok {
  color: #86efac;
}

html[data-theme="dark"] .service-applied-name-picker-state.is-error {
  color: #fecdd3;
}

html[data-theme="dark"] .service-payment-reason {
  color: #e5e7eb;
  border-color: #3a3c3d;
  background: #1f2022;
  border-left-color: #4b6385;
}

html[data-theme="dark"] .service-payment-detail {
  background: #252728;
  border-color: #3a3c3d;
}

html[data-theme="dark"] .service-payment-name-list li::before {
  color: #9ca3af;
}

html[data-theme="dark"] .service-payment-meta-bubble,
html[data-theme="dark"] .service-payment-meta-bubble strong {
  color: #e5e7eb;
}

html[data-theme="dark"] .ticket-requester-meta-bubble {
  background: #252728;
  border-color: #3a3c3d;
  color: #e5e7eb;
}

html[data-theme="dark"] .ticket-requester-meta-bubble .label {
  color: #9ca3af;
}

html[data-theme="dark"] .ticket-requester-meta-bubble strong {
  color: #e5e7eb;
}

html[data-theme="dark"] .ticket-requester-meta-bubble strong .ticket-requester-character-refs {
  color: #8b96a8;
}

html[data-theme="dark"] .service-payment-success-actions {
  border-top-color: #3a3c3d;
}

html[data-theme="dark"] .service-applied-log {
  border-top-color: #3a3c3d;
}

html[data-theme="dark"] .service-applied-log-item {
  border-color: #3a3c3d;
  background: #1f2022;
}

html[data-theme="dark"] .service-applied-log-item-error {
  border-color: #5b2335;
  background: #351a21;
  color: #fecdd3;
}

html[data-theme="dark"] .service-applied-log-field {
  color: #cbd5e1;
  border-right-color: #3a3c3d;
}

html[data-theme="dark"] .service-applied-log-field strong {
  color: #e5e7eb;
}

html[data-theme="dark"] .service-payment-pending .service-payment-success-icon {
  background: #1f2340;
  color: #c7d2fe;
}

html[data-theme="dark"] .service-payment-pending .service-payment-header-text h3,
html[data-theme="dark"] .service-payment-pending .service-payment-success-amount strong {
  color: #c7d2fe;
}

html[data-theme="dark"] .service-payment-pending .service-payment-success-amount {
  border-top-color: #3a3c3d;
}

html[data-theme="dark"] .service-payment-failed .service-payment-success-icon {
  background: #351a21;
  color: #fecdd3;
}

html[data-theme="dark"] .service-payment-failed .service-payment-header-text h3,
html[data-theme="dark"] .service-payment-failed .service-payment-success-amount strong {
  color: #fecdd3;
}

html[data-theme="dark"] .service-payment-failed .service-payment-success-amount {
  border-top-color: #5b2335;
}

html[data-theme="dark"] .service-request-detail-card .service-request-card-icon {
  background: #243041;
  color: #8ab4f8;
}

html[data-theme="dark"] .service-request-view .service-request-meta-text {
  color: #cbd5e1;
}

html[data-theme="dark"] .service-request-view {
  --service-request-divider: #3a3c3d;
}

html[data-theme="dark"] .table th,
html[data-theme="dark"] .table td {
  border-bottom-color: #3a3c3d;
  color: #e5e7eb;
}

html[data-theme="dark"] .table th {
  color: #9ca3af;
}

html[data-theme="dark"] .table tbody tr:hover {
  background: #2b2d2e;
}

html[data-theme="dark"] .table tbody tr.is-last-reply-self {
  opacity: 0.58;
}

html[data-theme="dark"] .table tbody tr.is-last-reply-self:hover {
  opacity: 0.82;
}

html[data-theme="dark"] .msg {
  background: #1f2022;
  border-color: #3a3c3d;
  border-left-color: #3a3c3d;
}

html[data-theme="dark"] .msg-meta {
  color: #9ca3af;
}

html[data-theme="dark"] .ticket-view .msg-meta {
  border-bottom-color: #3f4652;
}

html[data-theme="dark"] .msg-author {
  color: #e5e7eb;
}

html[data-theme="dark"] .msg-author-id {
  color: #94a3b8;
}

html[data-theme="dark"] .msg-meta-actions {
  color: #9ca3af;
}

html[data-theme="dark"] .msg.admin .msg-author {
  color: #8ab4f8;
}

html[data-theme="dark"] .msg.admin {
  background: #1f2a44;
  border-left-color: #3a3c3d;
  border-right: 4px solid #8ab4f8;
}

html[data-theme="dark"] .msg-action-link {
  color: #8ab4f8;
}

html[data-theme="dark"] .msg-action-delete {
  color: #f39aa1;
}

html[data-theme="dark"] .status,
html[data-theme="dark"] .priority-badge,
html[data-theme="dark"] .tag-badge {
  color: #e5e7eb;
}

html[data-theme="dark"] .open {
  background: #134e4a;
  color: #5eead4;
}

html[data-theme="dark"] .closed {
  background: #3f1d2b;
  color: #fda4af;
}

html[data-theme="dark"] .archived {
  background: #2f3133;
  color: #9ca3af;
}

html[data-theme="dark"] .priority-normal {
  background: #1e3a8a;
  color: #bfdbfe;
}

html[data-theme="dark"] .priority-high {
  background: #4b2e0b;
  color: #facc15;
}

html[data-theme="dark"] .priority-critical {
  background: #4a1d2a;
  color: #fda4af;
}

html[data-theme="dark"] .tag-neutral {
  background: #2f3133;
  color: #cbd5e1;
}

html[data-theme="dark"] .tag-restricted {
  background: #2f3133;
  color: #9ca3af;
}

html[data-theme="dark"] .tag-eligible {
  background: #163823;
  color: #86efac;
}

html[data-theme="dark"] .tag-not-eligible {
  background: #351a21;
  color: #fecdd3;
}

html[data-theme="dark"] .tag-check {
  background: #342a14;
  color: #fde68a;
}

html[data-theme="dark"] .tag-pending {
  background: #1f2340;
  color: #c7d2fe;
}

html[data-theme="dark"] .tag-promo {
  background: #3a2d12;
  color: #fcd34d;
}

html[data-theme="dark"] .ticket-create .priority-option.normal .priority-pill {
  background: #2a313a;
  color: #dbeafe;
}

html[data-theme="dark"] .ticket-create .priority-option.high .priority-pill {
  background: #3a2f1d;
  color: #fcd34d;
}

html[data-theme="dark"] .ticket-create .priority-option.critical .priority-pill {
  background: #3a1f21;
  color: #fca5a5;
}

html[data-theme="dark"] .ticket-create .priority-option.normal input:checked + .priority-pill {
  background: #3b82f6;
  color: #0b1120;
}

html[data-theme="dark"] .ticket-create .priority-option.high input:checked + .priority-pill {
  background: #d97706;
  color: #0b1120;
}

html[data-theme="dark"] .ticket-create .priority-option.critical input:checked + .priority-pill {
  background: #ef4444;
  color: #0b1120;
}

html[data-theme="dark"] .ticket-assign-actions {
  border-top-color: #3a3c3d;
}

html[data-theme="dark"] footer {
  color: #9ca3af;
}

html[data-theme="dark"] footer a {
  color: #8ab4f8;
}

html[data-theme="dark"] footer a:hover {
  color: #aecbfa;
}

html[data-theme="dark"] .footer-links .footer-theme-toggle {
  color: #8ab4f8;
}

html[data-theme="dark"] .footer-links .footer-theme-toggle:hover {
  color: #aecbfa;
}
