[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: 16px;
  width: 100%;
  margin: 0 !important;
  padding: 28px 22px 22px;
}

.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-actions { display: flex; align-items: center; gap: 10px; }
.cdk-query-home { color: #3b72dc; font-size: 12px; font-weight: 700; white-space: nowrap; }
.cdk-query-home:hover { color: #2459bf; text-decoration: underline; }

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

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

.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: 170px;
  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;
}

.tool-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 1080px);
  margin: 0 auto;
}

.tool-entry {
  display: flex;
  min-height: 50px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 5px 14px rgba(59, 130, 246, 0.28);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tool-entry:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.38);
}

.tool-entry:active {
  transform: translateY(0) scale(0.985);
}

.tool-entry:focus-visible {
  outline: 3px solid rgba(76, 125, 255, 0.28);
  outline-offset: 2px;
}

.tool-entry-title {
  color: inherit;
  font-size: 14px;
  font-weight: 800;
}

.tool-entry-hint {
  display: none;
}

.tool-entry--refresh {
  background: linear-gradient(135deg, #10a37f, #0d8a6b);
  box-shadow: 0 5px 14px rgba(16, 163, 127, 0.28);
}

.tool-entry--status {
  border-color: rgba(245, 158, 11, 0.28);
}

.external-tool-dialog {
  width: min(860px, calc(100% - 32px));
  height: min(780px, calc(100dvh - 64px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  color: #122033;
  background: #f8fafc;
  box-shadow: 0 30px 100px rgba(15, 23, 42, 0.28);
}

.external-tool-dialog::backdrop {
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(5px);
}

.external-tool-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
}

.external-tool-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 14px;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.94);
}

.external-tool-heading h2,
.external-tool-heading p {
  margin: 0;
}

.external-tool-heading h2 {
  font-size: 19px;
}

.external-tool-heading p {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.external-tool-close {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #475569;
  background: #fff;
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

.external-tool-frame-wrap {
  position: relative;
  min-height: 0;
  background: #fff;
}

.external-tool-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.external-tool-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #64748b;
  background: #fff;
  font-size: 14px;
  pointer-events: none;
}

.external-tool-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  color: #7a8597;
  background: #f8fafc;
  font-size: 11px;
}

.external-tool-footer a {
  flex: 0 0 auto;
  color: #2563eb;
  font-weight: 700;
}

@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;
  }

  .tool-entry-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tool-entry {
    min-height: 50px;
    padding: 12px 16px;
  }

  .external-tool-dialog {
    width: calc(100% - 20px);
    height: calc(100dvh - 36px);
    border-radius: 18px;
  }

  .external-tool-heading {
    padding: 15px 16px 12px;
  }

  .external-tool-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 9px 14px;
  }
}

/* Override the SingleFile/third-party iframe defaults: the tool must own the full modal body. */
#external-tool-dialog .external-tool-shell { width: 100% !important; height: 100% !important; margin: 0 !important; padding: 0 !important; }
#external-tool-dialog .external-tool-heading { height: 64px !important; min-height: 64px !important; padding: 12px 18px !important; align-items: center !important; overflow: hidden !important; }
#external-tool-dialog .external-tool-heading > div { height: auto !important; min-height: 0 !important; max-height: 40px !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
#external-tool-dialog .external-tool-heading h2 { margin: 0 !important; font-size: 20px !important; line-height: 1.25 !important; }
#external-tool-dialog .external-tool-heading p { display: none !important; }
#external-tool-dialog .external-tool-frame-wrap { position: relative !important; width: 100% !important; height: 100% !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
#external-tool-dialog #external-tool-frame { position: absolute !important; inset: 0 !important; display: block !important; width: 100% !important; height: 100% !important; min-width: 0 !important; min-height: 0 !important; max-width: none !important; max-height: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; transform: none !important; }
#external-tool-dialog .external-tool-loading { inset: 0 !important; margin: 0 !important; }

@media (prefers-reduced-motion: no-preference) {
  .external-tool-dialog[open] {
    animation: external-tool-in 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@keyframes external-tool-in {
  from { opacity: 0; transform: translateY(12px) scale(0.965); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@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;
  }
}

/* Scoped refinement from the supplied button/modal references. */
.tool-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tool-entry { min-height: 48px; padding: 11px 20px; flex-direction: row; align-items: center; justify-content: center; gap: 8px; border: 0; color: #fff; background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 8px 20px rgba(59,130,246,.24); }
.tool-entry:hover { border-color: transparent; background: linear-gradient(135deg, #4b8cff, #2f6ff0); box-shadow: 0 11px 24px rgba(59,130,246,.32); }
.tool-entry-title { color: inherit; font-size: 14px; }
.tool-entry-hint { display: none; }
.tool-entry--refresh { background: linear-gradient(135deg, #10a37f, #0d8a6b); box-shadow: 0 8px 20px rgba(16,163,127,.24); }
.tool-entry--refresh:hover { background: linear-gradient(135deg, #18b58d, #0f9876); box-shadow: 0 11px 24px rgba(16,163,127,.32); }
.site-controls { position: fixed; top: 14px; right: 18px; z-index: 999993; display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 5px 6px 5px 12px; border: 1px solid rgba(15,23,42,.12); border-radius: 14px; color: #475569; background: rgba(255,255,255,.94); box-shadow: 0 6px 22px rgba(15,23,42,.1), 0 1px 4px rgba(15,23,42,.05); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); font-family: "PingFang SC","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif; }
.beijing-clock { min-width: 150px; color: #526072; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.language-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; border-radius: 9px; background: #eef2f7; }
.language-option { min-width: 38px; height: 28px; padding: 0 8px; border: 0; border-radius: 7px; color: #64748b; background: transparent; cursor: pointer; font: inherit; font-size: 11px; font-weight: 700; transition: color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.language-option:hover { color: #1e3a5f; }
.language-option[aria-pressed="true"] { color: #2563eb; background: #fff; box-shadow: 0 1px 4px rgba(15,23,42,.12); }
.language-option:focus-visible { outline: 2px solid #4c7dff; outline-offset: 2px; }
.cdk-query-dialog { width: min(760px, calc(100% - 32px)); height: auto; max-height: min(760px, calc(100dvh - 32px)); }
.cdk-query-shell { gap: 16px; padding: 26px 28px 24px; }
.cdk-query-heading h2 { font-size: 22px; }
.cdk-query-heading { position: relative; padding-bottom: 18px; border-bottom: 1px solid #eef2f7; }
.cdk-query-heading::before { content: ""; position: absolute; left: 0; top: 1px; width: 4px; height: 27px; border-radius: 999px; background: linear-gradient(180deg,#4c7dff,#7b5cff); }
.cdk-query-heading h2, .cdk-query-heading p { padding-left: 14px; }
.cdk-query-note { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 10px 12px; border: 1px solid rgba(76,125,255,.14); border-radius: 12px; background: linear-gradient(90deg, rgba(239,246,255,.9), rgba(248,250,252,.92)); color: #52627a; font-size: 12px; }
.cdk-query-note-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cdk-query-note-item + .cdk-query-note-item { padding-left: 10px; border-left: 1px solid #dbe5f4; }
.cdk-query-note-item i { display: inline-grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: #2563eb; background: #e0ecff; font-size: 11px; font-style: normal; font-weight: 800; }
.cdk-query-heading label { letter-spacing: .01em; }
.cdk-query-shell label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #334155; letter-spacing: .01em; }
.cdk-query-shell label::after { content: attr(data-hint); color: #94a3b8; font-size: 11px; font-weight: 500; }
.gpt-fast-form .hint a { color: #4c7dff; text-underline-offset: 2px; }
#cdk-query-input { min-height: 190px; }
.cdk-query-submit { min-height: 48px; border-radius: 12px; background: linear-gradient(135deg,#4c7dff 0%,#356fe8 100%); box-shadow: 0 10px 22px rgba(59,130,246,.22); font-size: 14px; letter-spacing: .02em; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.cdk-query-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 13px 26px rgba(59,130,246,.3); filter: saturate(1.08); }
.external-tool-dialog { width: min(1240px, calc(100% - 28px)); height: min(900px, calc(100dvh - 28px)); }
.external-tool-heading { padding: 14px 20px 10px; }
.external-tool-footer { display: none; }
@media (max-width: 768px) {
  .tool-entry-grid { grid-template-columns: 1fr; }
  .tool-entry { min-height: 52px; padding: 12px 14px; }
  .cdk-query-dialog { width: calc(100% - 20px); height: auto; max-height: calc(100dvh - 24px); }
  .cdk-query-shell { padding: 22px 18px 20px; }
  #cdk-query-input { min-height: 170px; }
  .cdk-query-shell label::after { display: none; }
  .cdk-query-note { gap: 8px; font-size: 11px; }
  .cdk-query-note-item + .cdk-query-note-item { padding-left: 8px; }
  .external-tool-dialog { width: calc(100% - 20px); height: calc(100dvh - 20px); }
}
@media (max-width: 760px) {
  .site-controls { top: 10px; right: 10px; min-height: 38px; padding: 4px 5px 4px 9px; border-radius: 12px; gap: 6px; }
  .beijing-clock { min-width: auto; font-size: 10px; }
  .language-option { height: 26px; min-width: 34px; padding: 0 6px; }
}
@media (max-width: 480px) {
  .site-controls { top: 58px; }
}

/* Selected Product Design option 1: compact, balanced CDK query dialog. */
.cdk-query-dialog {
  width: min(700px, calc(100% - 32px));
  height: min(520px, calc(100dvh - 40px));
  max-height: min(520px, calc(100dvh - 40px));
  margin: auto;
  display: flex;
  flex-direction: column;
  border: 1px solid #dbe7f8;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .20);
}

.cdk-query-dialog:not([open]) {
  display: none !important;
}

.cdk-query-dialog,
.cdk-query-dialog * {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif !important;
  white-space: normal !important;
}

.cdk-query-dialog textarea {
  white-space: pre-wrap !important;
}

.cdk-query-shell {
  flex: 0 0 auto;
  gap: 14px;
  padding: 24px 24px 22px;
  font-size: 14px;
}

.cdk-query-heading {
  position: relative;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f8;
}

.cdk-query-heading::before {
  top: 1px;
  height: 28px;
}

.cdk-query-heading h2 {
  color: #122033;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
}

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

.cdk-query-close {
  width: 36px;
  height: 36px;
  border-color: #dbe5f1;
  border-radius: 10px;
  color: #52627a;
  font-size: 23px;
}

.cdk-query-close:hover {
  border-color: #b8cdf0;
  color: #1f4fae;
  background: #f7faff;
}

.cdk-query-note {
  gap: 8px;
  padding: 10px 12px;
  border-color: rgba(76, 125, 255, .16);
  background: linear-gradient(90deg, rgba(239, 246, 255, .92), rgba(248, 250, 252, .96));
  color: #52627a;
  font-size: 12px;
  line-height: 1.3;
}

.cdk-query-shell label {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}

.cdk-query-shell label[for="cdk-query-input"] {
  margin-bottom: -2px !important;
}

.cdk-query-shell label::after {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
}

#cdk-query-input {
  height: 176px;
  min-height: 176px;
  padding: 14px;
  border-color: #c8d7ef;
  border-radius: 11px;
  color: #122033;
  background: #fbfdff;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

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

.cdk-query-message {
  min-height: 18px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.cdk-query-submit {
  min-height: 48px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 10px 22px rgba(59, 130, 246, .22);
}

@media (max-width: 768px) {
  .cdk-query-dialog {
    width: calc(100% - 20px);
    height: min(520px, calc(100dvh - 24px));
    max-height: calc(100dvh - 24px);
  }

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

  #cdk-query-input {
    min-height: 164px;
  }
}
