.try-page {
  min-height: 100vh;
  color: var(--text-primary);
  background: var(--page-bg);
}

.try-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: var(--surface-primary);
  border-bottom: 1px solid var(--border);
}

.try-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.try-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--on-primary);
  background: var(--primary);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.try-public-nav { display: flex; align-items: center; gap: 22px; }
.try-public-nav a { color: var(--text-muted); font-size: 12px; text-decoration: none; }
.try-public-nav a:last-child { padding: 8px 11px; color: var(--text-primary); border: 1px solid var(--border-strong); border-radius: 8px; }
.try-public-nav a:hover { color: var(--text-primary); }

.try-main { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 38px 0 36px; }
.try-intro { max-width: 800px; margin: 0 auto 25px; text-align: center; }
.try-eyebrow { margin: 0 0 9px; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.try-intro h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 6vw, 58px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; }
.try-intro > p:last-child { max-width: 720px; margin: 14px auto 0; color: var(--text-muted); font-size: clamp(15px, 2vw, 18px); line-height: 1.55; }

.try-workspace {
  overflow: hidden;
  background: var(--surface-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.try-form { padding: 24px; }
.try-task-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.try-task-heading label { font-size: 15px; font-weight: 800; }
.try-task-heading span, .try-character-count { color: var(--text-muted); font-size: 11px; }
.try-form textarea, .try-form select { width: 100%; color: var(--text-primary); background: var(--surface-secondary); border: 1px solid var(--border-strong); border-radius: 10px; }
.try-form textarea { min-height: 104px; padding: 13px 14px; resize: vertical; line-height: 1.5; }
.try-character-count { margin-top: 6px; text-align: right; }
.try-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: start; margin-top: 15px; }
.try-controls label > span { display: block; margin: 0 0 6px; color: var(--text-muted); font-size: 11px; font-weight: 700; }
.try-form select { min-height: 43px; padding: 0 34px 0 11px; }
.try-form select:disabled { cursor: not-allowed; opacity: 0.78; }
.try-control-note { margin: 7px 0 0 !important; font-weight: 500 !important; line-height: 1.35; }

.try-build, .try-copy, .try-cta {
  min-height: 43px;
  padding: 0 17px;
  color: var(--on-primary);
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 9px;
  font-weight: 800;
  text-decoration: none;
}

.try-build, .try-copy { cursor: pointer; }
.try-build { margin-top: 17px; }
.try-build.is-conversion { min-width: 190px; }
.try-build:hover, .try-copy:hover, .try-cta:hover { filter: brightness(1.08); }
.try-build:disabled, .try-copy:disabled { opacity: 0.45; cursor: not-allowed; }
.try-exhausted-offer { grid-column: 1 / -1; padding: 12px 14px; color: var(--text-muted); background: var(--accent-soft); border: 1px solid var(--border-strong); border-radius: 10px; font-size: 11px; line-height: 1.45; }
.try-exhausted-offer[hidden] { display: none; }
.try-exhausted-offer strong, .try-exhausted-offer span { display: block; }
.try-exhausted-offer strong { color: var(--text-primary); font-size: 12px; }
.try-exhausted-offer span { margin-top: 3px; }
.try-exhausted-offer a { display: inline-block; margin-top: 5px; color: var(--primary); font-weight: 800; }
.try-form-status { min-height: 18px; margin-top: 9px; color: var(--text-muted); font-size: 11px; }
.try-form-status.is-error { color: var(--danger); }
.try-copy-buffer { position: fixed; left: -10000px; top: 0; width: 1px; height: 1px; opacity: 0; }

.try-result-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(275px, 0.8fr); border-top: 1px solid var(--border); }
.try-result { min-width: 0; padding: 24px; }
.try-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.try-result-heading > div:first-child > span { color: var(--success); font-size: 11px; font-weight: 700; }
.try-result-heading h2, .try-added h2 { margin: 3px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 21px; line-height: 1.16; }
.try-output-actions { display: flex; align-items: center; gap: 8px; }
.try-copy { min-height: 35px; padding: 0 12px; }
.try-view-toggle { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; background: var(--surface-secondary); border: 1px solid var(--border); border-radius: 9px; }
.try-view-toggle button { min-height: 29px; padding: 0 9px; color: var(--text-muted); background: transparent; border: 0; border-radius: 6px; cursor: pointer; font-size: 10px; font-weight: 800; }
.try-view-toggle button[aria-pressed="true"] { color: var(--text-primary); background: var(--accent-soft); }
.try-view-toggle button:disabled { cursor: not-allowed; opacity: 0.45; }

.try-output-placeholder, .try-output-formatted, .try-result > pre {
  min-height: 300px;
  margin: 0;
  padding: 17px;
  color: var(--text-primary);
  background: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.try-output-placeholder { display: grid; place-items: center; color: var(--text-muted); line-height: 1.55; text-align: center; }
.try-result > pre { max-height: 470px; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
.try-output-formatted { max-height: 470px; overflow: auto; font-size: 13px; line-height: 1.62; }
.try-output-formatted h1, .try-output-formatted h2, .try-output-formatted h3, .try-output-formatted h4, .try-output-formatted h5, .try-output-formatted h6 { margin: 1.3em 0 0.45em; color: var(--text-primary); font-family: Georgia, "Times New Roman", serif; line-height: 1.2; }
.try-output-formatted h1:first-child, .try-output-formatted h2:first-child { margin-top: 0; }
.try-output-formatted h1 { font-size: 24px; }
.try-output-formatted h2 { font-size: 20px; }
.try-output-formatted h3 { font-size: 17px; }
.try-output-formatted h4, .try-output-formatted h5, .try-output-formatted h6 { font-size: 14px; }
.try-output-formatted p { margin: 0 0 0.85em; color: var(--text-muted); }
.try-output-formatted ul, .try-output-formatted ol { margin: 0 0 1em; padding-left: 24px; color: var(--text-muted); }
.try-output-formatted li + li { margin-top: 0.35em; }
.try-output-formatted strong { color: var(--text-primary); }
.try-output-formatted code { padding: 0.1em 0.3em; color: var(--text-primary); background: var(--surface-secondary); border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.try-output-formatted pre { margin: 0 0 1em; padding: 13px; overflow: auto; background: var(--surface-secondary); border: 1px solid var(--border); border-radius: 8px; }
.try-output-formatted pre code { padding: 0; background: transparent; }
.try-output-formatted blockquote { margin: 0 0 1em; padding: 4px 0 4px 13px; color: var(--text-muted); border-left: 3px solid var(--primary); }
.try-output-formatted hr { margin: 1.25em 0; border: 0; border-top: 1px solid var(--border); }
.try-output-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; color: var(--text-muted); font-size: 11px; }
.try-output-meta code { color: var(--text-primary); }

.try-added { padding: 24px; background: var(--surface-secondary); border-left: 1px solid var(--border); }
.try-map-eyebrow { margin: 0; color: var(--primary); font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.try-workspace-map { display: grid; gap: 13px; margin: 18px 0 0; padding: 0; list-style: none; }
.try-workspace-map li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 9px; align-items: start; }
.try-workspace-map li > span { display: grid; place-items: center; width: 22px; height: 22px; color: var(--text-muted); border: 1px solid var(--border-strong); border-radius: 50%; font-size: 10px; font-weight: 800; }
.try-workspace-map li.is-current > span { color: var(--on-primary); background: var(--primary); border-color: var(--primary); }
.try-workspace-map strong, .try-workspace-map small { display: block; }
.try-workspace-map strong { font-size: 12px; }
.try-workspace-map small { margin-top: 3px; color: var(--text-muted); font-size: 10px; line-height: 1.4; }
.try-has-result .try-map-eyebrow { color: var(--success); }
.try-has-result .try-workspace-map li > span { color: var(--on-primary); background: var(--primary); border-color: var(--primary); }

.try-build-additions { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--border); }
.try-build-additions > strong { font-size: 11px; }
.try-build-additions ul { display: grid; gap: 9px; margin: 11px 0 0; padding: 0; list-style: none; }
.try-build-additions li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 7px; align-items: start; }
.try-build-additions li > span { display: grid; place-items: center; width: 17px; height: 17px; color: var(--primary); background: var(--accent-soft); border-radius: 50%; font-size: 9px; font-weight: 800; }
.try-build-additions li strong, .try-build-additions li small { display: block; }
.try-build-additions li strong { font-size: 10px; }
.try-build-additions li small { margin-top: 2px; color: var(--text-muted); font-size: 9px; line-height: 1.35; }

.try-conversion { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 16px; padding: 14px 15px; background: var(--surface-primary); border: 1px solid var(--border); border-radius: 11px; }
.try-conversion > div { display: grid; gap: 4px; }
.try-conversion strong { color: var(--text-primary); font-size: 13px; }
.try-conversion span { color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.try-cta { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }

@media (max-width: 820px) {
  .try-main { padding-top: 32px; }
  .try-controls { grid-template-columns: 1fr 1fr; }
  .try-build { width: 100%; }
  .try-result-layout { grid-template-columns: 1fr; }
  .try-added { border-top: 1px solid var(--border); border-left: 0; }
  .try-workspace-map { grid-template-columns: 1fr 1fr; }
  .try-result-heading { align-items: flex-start; flex-direction: column; }
  .try-output-actions { width: 100%; }
}

@media (max-width: 560px) {
  .try-header { padding: 11px 15px; }
  .try-public-nav a:not(:last-child) { display: none; }
  .try-main { width: min(100% - 22px, 1080px); padding: 26px 0 24px; }
  .try-form, .try-result, .try-added { padding: 17px; }
  .try-task-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .try-controls { grid-template-columns: 1fr; }
  .try-build { margin-top: 0; }
  .try-output-actions { align-items: stretch; flex-direction: column; }
  .try-copy { width: 100%; }
  .try-workspace-map { grid-template-columns: 1fr; }
  .try-conversion { align-items: stretch; flex-direction: column; }
  .try-cta { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .try-page * { scroll-behavior: auto !important; transition: none !important; }
}
