[hidden] {
  display: none !important;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (min-width: 961px) {
  .content-layout[data-v-ceb1638c] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .content-layout[data-v-ceb1638c] > .panel:first-child {
    height: auto;
  }

  .content-layout[data-v-ceb1638c] > .panel:first-child .panel-title {
    margin-bottom: 14px;
  }

  .content-layout[data-v-ceb1638c] > .panel:first-child .guide-list {
    gap: 12px;
  }

  .content-layout[data-v-ceb1638c] > .panel:first-child .guide-item {
    margin-bottom: 0 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}

.auto-notice {
  max-width: 100%;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

#gpt-fast-cdk:disabled,
#gpt-fast-session:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.session-recognized {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.session-recognized input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #10a37f;
  pointer-events: none;
}

.session-plan {
  padding: 1px 6px;
  border-radius: 4px;
  color: #2563eb;
  background: #dbeafe;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11px;
}

.parsed.is-error {
  color: #b42318;
  border-color: #fecaca;
  background: #fef2f2;
}

.gpt-fast-status {
  border: 1px solid rgba(76, 125, 255, 0.24);
  color: #334155;
  background: #f8faff;
}

.gpt-fast-status strong,
.gpt-fast-status p {
  display: block;
  margin: 0;
}

.gpt-fast-status p {
  margin-top: 4px;
}

.gpt-fast-status.is-loading {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.gpt-fast-status.is-success {
  padding: 18px;
  border-color: #86efac;
  color: #067647;
  background: #ecfdf3;
  text-align: center;
  font-size: 18px;
}

.gpt-fast-status.is-error {
  border-color: #fecaca;
  color: #b42318;
  background: #fef2f2;
}

.cdk-query-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 18px;
  color: #122033;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.cdk-query-dialog,
.cdk-query-dialog * {
  box-sizing: border-box;
}

.cdk-query-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
}

.cdk-query-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 0 !important;
  padding: 24px;
}

.cdk-query-shell > * {
  flex: none;
  margin-top: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  transform: none !important;
  translate: none !important;
}

.cdk-query-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 4px !important;
}

.cdk-query-heading h2,
.cdk-query-heading p {
  margin: 0;
}

.cdk-query-heading h2 {
  font-size: 20px;
}

.cdk-query-heading p {
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
}

.cdk-query-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #475569;
  background: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.cdk-query-shell label {
  display: block;
  margin-bottom: -4px !important;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

#cdk-query-input {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  background: #fff;
  outline: none;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  transform: none !important;
}

#cdk-query-input:focus {
  border-color: #4c7dff;
  box-shadow: 0 0 0 3px rgba(76, 125, 255, 0.14);
}

.cdk-query-message {
  min-height: 21px;
  margin: 0 !important;
  color: #64748b;
  font-size: 13px;
}

.cdk-query-message.is-success {
  color: #067647;
}

.cdk-query-message.is-error {
  color: #b42318;
}

.cdk-query-submit {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  cursor: pointer;
  font-weight: 700;
  transform: none !important;
}

.cdk-query-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.cdk-query-results {
  margin-top: 6px !important;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.cdk-query-results table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.cdk-query-results th,
.cdk-query-results td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  white-space: nowrap;
}

.cdk-query-results th {
  color: #475569;
  background: #f8fafc;
}

.cdk-query-results tbody tr:last-child td {
  border-bottom: 0;
}

.cdk-query-results tr[data-state="valid"] td:nth-child(2) {
  color: #067647;
}

.cdk-query-results tr[data-state="used"] td:nth-child(2),
.cdk-query-results tr[data-state="missing"] td:nth-child(2) {
  color: #b42318;
}

@media (max-width: 768px) {
  *,
  *::before,
  *::after {
    box-sizing: border-box !important;
  }

  html,
  body,
  #app,
  .n-config-provider,
  .app-container,
  .redeem-view,
  .redeem-shell,
  .hero-card,
  .content-layout,
  .panel,
  .n-card-content,
  .gpt-stable-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body {
    margin: 0 !important;
  }

  .redeem-view {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  .hero-card__content {
    width: 100% !important;
    min-width: 0 !important;
    padding: 26px 20px !important;
  }

  .hero-card .title,
  .hero-card .subtitle {
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .hero-card .title {
    font-size: 28px !important;
    line-height: 1.18 !important;
  }

  .auto-notice {
    width: 100% !important;
    align-items: flex-start !important;
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .gpt-stat {
    flex: 1 1 calc(50% - 8px) !important;
    min-width: 0 !important;
  }

  #dr-badge {
    max-width: calc(100% - 20px) !important;
  }

  #dr-badge .tab.gpt .label-full {
    display: inline !important;
  }

  .cdk-query-shell {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
