:root {
  --brand: #1f74e8;
  --brand-2: #1687ff;
  --brand-dark: #0c4fb5;
  --brand-soft: #e8f1ff;
  --action: #1f74e8;
  --action-hover: #1564d6;
  --accent: var(--brand);
  --bg: #eef5ff;
  --bg-2: #e3edfb;
  --text: #0d1117;
  --muted: #667085;
  --line: #cfe0f7;
  --panel: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f5f8ff;
  --shadow: 0 18px 44px rgba(31, 116, 232, 0.1);
  --radius: 18px;
  font-family: Inter, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-weight: 400;
  background:
    radial-gradient(circle at 48% 12%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 34%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 52%, #edf4ff 100%);
  -webkit-font-smoothing: antialiased;
}

body.theme-claude {
  --brand: #d77a3d;
  --brand-2: #e9a343;
  --brand-dark: #8f4a22;
  --brand-soft: #fff1e7;
  --accent: #d77a3d;
  --action: #d77a3d;
  --action-hover: #be6630;
  --bg: #fff4ea;
  --bg-2: #faeadc;
  --line: #eed6c4;
  --surface-muted: #fff8f2;
  --shadow: 0 18px 44px rgba(215, 122, 61, 0.11);
  background:
    radial-gradient(circle at 48% 12%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 34%),
    linear-gradient(180deg, #fffaf5 0%, var(--bg) 52%, #fff1e6 100%);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  flex: 0 0 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 clamp(18px, 3vw, 48px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  backdrop-filter: blur(14px);
}

.brand-menu {
  position: relative;
  display: inline-block;
}

.service-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.locale-menu {
  position: relative;
}

.brand-pill,
.locale-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: none;
  font: inherit;
}

.brand-pill {
  padding: 0 10px 0 7px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--brand) 20%, transparent);
  cursor: pointer;
  appearance: none;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.locale-pill {
  cursor: pointer;
}

.locale-pill:hover,
.secondary:hover,
.ghost-button:hover {
  border-color: color-mix(in srgb, var(--accent) 54%, var(--line));
  background: var(--surface);
}

.locale-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  padding: 6px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 30px color-mix(in srgb, var(--brand) 12%, transparent);
  backdrop-filter: blur(12px);
}

.locale-option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.locale-option:hover,
.locale-option.active {
  color: var(--brand-dark);
  background: color-mix(in srgb, var(--brand-soft) 58%, #ffffff);
}

.locale-option strong {
  font-size: 13px;
  font-weight: 500;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.brand-name {
  font-weight: 500;
}

.brand-chevron {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.brand-pill:hover,
.brand-menu.is-open .brand-pill {
  color: #ffffff;
  background: linear-gradient(135deg, var(--action-hover), var(--brand));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--brand) 26%, transparent);
}

.brand-pill:active {
  transform: scale(0.98);
}

.brand-menu.is-open .brand-chevron {
  transform: rotate(180deg);
}

.service-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
  padding: 8px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line));
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(31, 54, 88, 0.14);
  backdrop-filter: blur(14px);
}

.service-option {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 10px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.service-option + .service-option {
  margin-top: 3px;
}

.service-option:hover {
  background: #f5f7fa;
  transform: translateX(2px);
}

.service-option.active {
  background: color-mix(in srgb, var(--brand-soft) 66%, #ffffff);
}

.service-option-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #ffffff;
  background: #2477e8;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
}

.service-option[data-product="claude"] .service-option-mark {
  background: linear-gradient(135deg, #d77a3d, #e9a343);
}

.service-option-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 32px;
  gap: 2px;
}

.service-option-copy strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-option-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-option-status {
  padding: 4px 7px;
  color: var(--muted);
  background: #f2f4f7;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1;
}

.service-option.active .service-option-status {
  color: var(--brand-dark);
  background: color-mix(in srgb, var(--brand-soft) 70%, #ffffff);
}

@media (prefers-reduced-motion: reduce) {
}

.top-actions,
.button-row,
.tool-grid,
.guide-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-shell {
  display: grid;
  gap: 18px;
  flex: 1 0 auto;
  min-height: calc(100vh - 62px);
  min-height: calc(100dvh - 62px);
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  align-content: center;
  align-items: stretch;
  justify-items: center;
}

.page-shell > .panel,
.page-shell > .site-footer {
  width: 100%;
}

.page-intro {
  width: min(760px, calc(100vw - 40px));
  margin: 0 auto;
  text-align: center;
}

.page-intro h1 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
}

.page-intro p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 400;
  line-height: 1.6;
}

.intro-details {
  margin-top: 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.panel {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.site-footer {
  color: #98a2b3;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 8px 10px;
  background: rgba(245, 248, 255, 0.88);
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  height: 40px;
  color: #6f7178;
  font-weight: 500;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: none;
  outline: 0;
}

.tab.active::after {
  display: none;
}

.tab-page {
  display: none;
  padding: clamp(20px, 2.3vw, 26px);
}

.tab-page.active,
.form-view.active {
  display: block;
}

.form-view {
  display: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 500px;
  margin: 0 auto 22px;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 400;
}

.step::before {
  position: absolute;
  top: 17px;
  left: -50%;
  width: 100%;
  height: 2px;
  content: "";
  background: #e2e8f2;
}

.step:first-child::before {
  display: none;
}

.step-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.step.active {
  color: var(--text);
}

.step.active .step-number {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

.step.done::before,
.step.active::before {
  background: color-mix(in srgb, var(--accent) 58%, #e2e8f2);
}

.section-title {
  margin-bottom: 14px;
}

.section-title.centered {
  text-align: center;
}

.section-title h2 {
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.section-title p {
  color: var(--muted);
  line-height: 1.5;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 500;
}

.field small {
  color: var(--muted);
  font-weight: 400;
}

.field-error {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin: 0 0 18px;
  padding: 14px 18px;
  color: #7f1d1d;
  font-weight: 400;
  background: #fff3ea;
  border: 1px solid #f2c8b8;
  border-radius: 14px;
}

.field-error::before {
  display: inline-grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  content: "!";
  font-size: 12px;
  line-height: 1;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.field-error[hidden] {
  display: none;
}

input,
textarea {
  width: 100%;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  transition: border-color 0.2s, background 0.2s;
}

input {
  height: 50px;
  padding: 0 16px;
}

textarea {
  min-height: 126px;
  padding: 14px 16px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line));
  box-shadow: none;
  background: #ffffff;
}

.primary,
.secondary,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 0;
  box-shadow: 0 14px 26px color-mix(in srgb, var(--brand) 16%, transparent);
}

.primary:hover {
  background: linear-gradient(135deg, var(--action-hover), var(--brand));
  transform: translateY(-1px);
}

.primary.small {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
}

.secondary,
.ghost-button {
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
}

.wide {
  width: 100%;
}

.button-row {
  align-items: stretch;
}

.button-row > * {
  flex: 1;
}

.tool-grid,
.guide-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
}

.guide-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-actions .ghost-button,
.guide-actions .primary {
  color: var(--brand-dark);
  background: color-mix(in srgb, var(--accent) 10%, #ffffff);
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  box-shadow: none;
}

.guide-actions .ghost-button:hover,
.guide-actions .primary:hover {
  color: var(--brand-dark);
  background: color-mix(in srgb, var(--accent) 16%, #ffffff);
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line));
}

.guide-actions .primary {
  border: 1px solid color-mix(in srgb, var(--accent) 62%, var(--line));
}

.guide-step-button {
  gap: 10px;
}

.guide-step-button span {
  display: inline-grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #ffffff;
  background: var(--brand);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
}

.guide-step-button.primary span {
  color: var(--brand-dark);
  background: #ffffff;
}

.guide-actions .guide-step-button:nth-child(1) span {
  color: #ffffff;
  background: #f5c98f;
}

.guide-actions .guide-step-button:nth-child(2) span {
  color: #ffffff;
  background: #e59942;
}

.guide-actions .guide-step-button:nth-child(3) span {
  color: #ffffff;
  background: #b96f24;
}

.guide-step-button strong {
  font-weight: 500;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.claude-only,
.gpt-only {
  display: none;
}

.mode-gpt .gpt-only,
.mode-claude .claude-only {
  display: grid;
}

.mode-gpt .tool-grid.gpt-only {
  display: grid;
}

.mode-gpt .force-row.gpt-only {
  display: flex;
}

.product-card,
.query-item,
.example-box,
.warning {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.product-card {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px;
  color: var(--muted);
}

.product-card strong {
  color: var(--text);
}

.inline-success {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: color-mix(in srgb, var(--brand) 82%, #0f172a);
  background: color-mix(in srgb, var(--brand) 8%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  border-radius: 12px;
  font-size: 14px;
  font-weight: 400;
}

.inline-success.error {
  color: #b42318;
  background: #fff4f1;
  border-color: #f1b7ad;
}

.inline-success.error::before {
  display: inline-grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-right: 9px;
  place-items: center;
  content: "!";
  font-size: 11px;
  line-height: 1;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.readonly-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
}

.readonly-field input {
  color: #98a2b3;
  text-align: center;
  background: var(--surface-muted);
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-label-row a {
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.force-row {
  align-items: center;
  gap: 10px;
  margin: -4px 0 18px;
  color: #b42318;
  font-weight: 500;
}

.force-row input {
  width: 16px;
  height: 16px;
}

.result-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  place-items: center;
  color: #ffffff;
  font-size: 34px;
  font-weight: 500;
  background: var(--accent);
  border-radius: 50%;
}

.result-icon.pending {
  background: var(--brand);
}

.result-icon.error {
  background: #dc3f3f;
}

.result-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.result-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: var(--surface-muted);
  border-radius: 12px;
}

.result-list dt {
  color: var(--muted);
}

.result-list dd {
  margin: 0;
  text-align: right;
  word-break: break-all;
}

.query-results {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.query-item {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.query-item.mismatch {
  background: #fff8f7;
  border-color: #ffcbc7;
}

.query-item strong,
.query-item p {
  margin: 0;
}

.query-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.query-meta {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.2fr) minmax(180px, 0.8fr);
  gap: 10px;
  margin: 0;
}

.query-meta div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  background: var(--surface-muted);
  border-radius: 12px;
}

.query-meta dt {
  color: #8a94a6;
  font-size: 13px;
}

.query-meta dd {
  margin: 0;
  color: var(--text);
  word-break: break-all;
}

.query-warning {
  margin-top: 6px;
  color: #b42318;
  font-size: 14px;
  font-weight: 400;
}

.status-pill {
  align-self: start;
  flex: 0 0 auto;
  padding: 5px 10px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 500;
  background: var(--brand-soft);
  border-radius: 999px;
}

.status-pill.error {
  color: #b42318;
  background: #fff1f0;
}

.guide-content {
  line-height: 1.62;
}

.guide-panel {
  display: none;
}

.mode-gpt .guide-panel-gpt,
.mode-claude .guide-panel-claude {
  display: block;
}

.guide-content h2,
.guide-content h3 {
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
}

.num-emoji {
  font-size: 19px;
}

#tab-guide {
  padding-top: 34px;
  padding-bottom: 34px;
}

.guide-content h2 {
  margin-bottom: 22px;
}

.guide-content h3 {
  margin: 24px 0 12px;
}

.guide-content ol {
  margin: 0 0 18px;
}

.guide-content li {
  margin: 4px 0;
}

.guide-lead {
  margin: -8px 0 24px;
  color: var(--muted);
  font-size: 15px;
}

.claude-guide-card {
  margin: 0 0 18px;
  padding: 18px 20px;
  color: #334155;
  background: rgba(255, 251, 247, 0.74);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 18px;
}

.claude-guide-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-size: 17px;
  font-weight: 500;
}

.claude-guide-card h3 span:first-child {
  display: inline-grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--brand-dark);
  background: color-mix(in srgb, var(--accent) 13%, #ffffff);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.claude-guide-card h3 span:last-child {
  min-width: 0;
  line-height: 1.35;
}

.claude-guide-card ol {
  margin: 0;
  padding-left: 20px;
}

.claude-guide-card li {
  margin: 8px 0;
}

.claude-guide-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: min(100%, 760px);
  gap: 24px;
  align-items: end;
}

.claude-guide-row .claude-guide-link {
  min-height: 34px;
  margin: 0 0 6px;
  padding: 0 13px;
  font-size: 13px;
  white-space: nowrap;
}

.claude-guide-image {
  width: min(100%, 760px);
  margin: 16px 0 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: 12px;
}

.claude-guide-image img {
  display: block;
  width: 100%;
  height: auto;
}

.claude-guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 14px;
  padding: 0 16px;
  color: var(--brand-dark);
  font-weight: 500;
  text-decoration: none;
  background: color-mix(in srgb, var(--accent) 10%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 999px;
}

.claude-warning {
  margin-top: 22px;
  padding: 16px 18px;
  color: var(--brand-dark);
  background: color-mix(in srgb, var(--accent) 7%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 14px;
  font-weight: 400;
}

.guide-actions {
  margin-bottom: 18px;
}

.guide-actions .ghost-button,
.guide-actions .primary {
  min-height: 42px;
  padding: 0 16px;
}

.example-box {
  margin-top: 18px;
  padding: 14px 16px;
}

.example-box code {
  display: block;
  overflow-x: auto;
  margin: 10px 0;
  padding: 12px 14px;
  color: #e6f0ff;
  background: #111827;
  border-radius: 10px;
  white-space: nowrap;
}

.example-box p {
  margin: 8px 0;
}

.ok {
  color: #237447;
}

.bad {
  color: #bb2f24;
}

.warning {
  margin-top: 16px;
  padding: 12px 16px;
  color: var(--brand-dark);
  background: color-mix(in srgb, var(--brand-soft) 70%, #ffffff);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(360px, calc(100% - 44px));
  padding: 13px 16px;
  color: #fff;
  background: rgba(20, 31, 48, 0.94);
  border-radius: 10px;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .topbar {
    height: auto;
    padding: 12px 14px;
  }

  .brand-name {
    display: none;
  }

  .locale-pill {
    padding: 0 12px;
  }

  .service-dropdown {
    width: 100%;
    min-width: 100%;
    padding: 6px;
  }

  .service-option {
    grid-template-columns: 32px;
    justify-content: center;
    padding: 8px;
  }

  .service-option-copy,
  .service-option-status {
    display: none;
  }

  .page-shell {
    width: min(100% - 22px, 880px);
    padding-top: 34px;
  }

  .tabs {
    padding: 8px;
  }

  .tab-page {
    padding: 24px 18px;
  }

  .steps {
    grid-template-columns: repeat(4, minmax(66px, 1fr));
    overflow-x: auto;
    margin-bottom: 30px;
  }

  .step {
    min-width: 66px;
    font-size: 12px;
  }

  .tool-grid,
  .guide-actions,
  .button-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .guide-actions {
    gap: 8px;
    margin: 18px 0 22px;
    padding: 8px;
    background: color-mix(in srgb, var(--accent) 8%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
    border-radius: 16px;
  }

  .guide-actions .ghost-button,
  .guide-actions .primary {
    justify-content: flex-start;
    min-height: 42px;
    padding: 0 12px;
    color: var(--brand-dark);
    background: transparent;
    border-color: transparent;
    border-radius: 10px;
    box-shadow: none;
  }

  .guide-actions .primary {
    border-width: 1px;
  }

  .guide-actions .ghost-button:hover,
  .guide-actions .primary:hover {
    background: rgba(255, 255, 255, 0.72);
    transform: none;
  }

  .guide-step-button {
    gap: 9px;
  }

  .guide-step-button span {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .guide-step-button strong {
    font-size: 15px;
    line-height: 1.2;
  }

  .query-item {
    grid-template-columns: 1fr;
  }

  .query-item-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .query-meta {
    grid-template-columns: 1fr;
  }

  .claude-guide-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .claude-guide-row .claude-guide-link {
    justify-self: start;
    margin: 0;
  }
}

.account-confirm {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.account-confirm[hidden] {
  display: none;
}

.account-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.44);
  border: 0;
  cursor: default;
  backdrop-filter: blur(2px);
}

.account-confirm-dialog {
  position: relative;
  width: min(430px, 100%);
  padding: 26px 24px 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(13, 32, 64, 0.22);
}

.account-confirm-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.account-confirm-close:hover {
  color: var(--text);
  background: #f2f4f7;
}

.account-confirm-kicker {
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.account-confirm-dialog h2 {
  margin: 6px 0;
  font-size: 20px;
  font-weight: 600;
}

.account-confirm-dialog > p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.account-confirm-details {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
}

.account-confirm-details div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  font-size: 14px;
  background: var(--surface-muted);
  border-radius: 12px;
}

.account-confirm-details dt {
  flex: 0 0 auto;
  color: var(--muted);
}

.account-confirm-details dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.account-confirm-warning {
  margin-bottom: 16px;
  padding: 10px 13px;
  color: var(--brand-dark);
  font-size: 13px;
  background: color-mix(in srgb, var(--brand-soft) 70%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line));
  border-radius: 12px;
}

.account-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
