:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --ink: #172332;
  --muted: #667386;
  --line: #e3e8ef;
  --surface: #f7f9fc;
  --light-blue: #edf4ff;
  --radius: 12px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--ink);
  min-width: 0;
}
textarea {
  resize: vertical;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 550;
}
label input,
label select {
  margin-top: 7px;
}
small,
.fine {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
p {
  color: var(--muted);
  margin: 0 0 20px;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
h1 {
  font-size: 52px;
  font-weight: 650;
}
h2 {
  font-size: 36px;
  font-weight: 600;
}
h3 {
  font-size: 21px;
  font-weight: 600;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid #8cb4ff;
  outline-offset: 3px;
}
button {
  border: 0;
}
button svg {
  flex-shrink: 0;
}
svg {
  vertical-align: middle;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 7px;
  min-height: 46px;
  padding: 11px 19px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition:
    background 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}
.primary {
  background: var(--blue);
  color: white;
  border: 1px solid var(--blue);
}
.primary:hover {
  background: var(--blue-dark);
}
.secondary {
  background: white;
  border: 1px solid #dce2ea;
  color: var(--ink);
}
.secondary:hover {
  background: var(--surface);
  border-color: #bbc8d9;
}
.small {
  min-height: 37px;
  padding: 8px 13px;
  font-size: 13px;
}
.text-link,
.text-button {
  color: var(--blue);
  font-size: 14px;
  font-weight: 550;
}
.text-button {
  background: transparent;
  padding: 0;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 32px;
}
.icon-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--light-blue);
  color: var(--blue);
}
.container {
  max-width: 1280px;
  width: calc(100% - 96px);
  margin-inline: auto;
}
.brand {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.7px;
  font-weight: 700;
  white-space: nowrap;
}
.brand span {
  font-weight: 450;
  margin-left: -8px;
}
.site-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
}
.site-header nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: #49586b;
}
.site-header nav a:hover {
  color: var(--blue);
}
.mobile-menu {
  display: none;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-top: 76px;
  padding-bottom: 68px;
  align-items: center;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 650;
  color: #68778a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(44px, 4.2vw, 62px);
  letter-spacing: -2.8px;
  line-height: 1.08;
  margin-bottom: 23px;
}
.hero h1 span {
  color: var(--blue);
}
.hero-copy > p {
  font-size: 17px;
  line-height: 1.7;
  max-width: 480px;
}
.quick-start {
  border: 1px solid #d9e1eb;
  border-radius: 12px;
  padding: 15px;
  background: white;
  box-shadow: 0 5px 24px #152d4c06;
}
.quick-start label {
  font-size: 13px;
}
.quick-start textarea {
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
  min-height: 96px;
  outline-offset: 0;
  line-height: 1.6;
}
.quick-start > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.quick-start > div > span {
  font-size: 12px;
  color: var(--muted);
}
.quick-start > small {
  display: block;
  margin-top: 12px;
  font-size: 11px;
}
.hero-foot {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
}
.hero-drawing {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 55px #1c3e7510;
  overflow: hidden;
  transform: rotate(1deg);
}
.drawing-top {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.pill {
  font-size: 10px;
  letter-spacing: 0.7px;
  font-weight: 600;
  padding: 3px 7px;
  background: #f1f5f9;
  border-radius: 4px;
  color: #64748b;
  white-space: nowrap;
}
.drawing-top .pill {
  margin-left: auto;
}
#hero-plan {
  padding: 16px 5px;
  background: #fff;
}
.plan-svg {
  display: block;
  width: 100%;
  height: auto;
}
.drawing-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}
.drawing-bottom strong {
  font-size: 14px;
  display: block;
}
.drawing-bottom span {
  font-size: 11px;
  color: var(--muted);
}
.drawing-bottom a {
  background: var(--light-blue);
  color: var(--blue);
  padding: 5px 14px;
  border-radius: 7px;
  font-size: 24px;
}
.feature-strip {
  display: flex;
  gap: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  align-items: center;
  justify-content: space-between;
}
.feature-strip > span {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.feature-strip a {
  font-size: 13px;
  font-weight: 550;
}
.section {
  padding-block: 85px;
}
.section-heading {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading .eyebrow {
  margin-bottom: 12px;
}
.section-intro {
  font-size: 15px;
  margin: 18px 0 30px;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.template-card {
  display: block;
  min-width: 0;
}
.template-image {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  overflow: hidden;
  aspect-ratio: 1.35;
  display: flex;
  align-items: center;
  justify-content: center;
}
.template-image svg {
  width: 100%;
  max-height: 100%;
}
.template-action {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: white;
  box-shadow: 0 2px 10px #0001;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.15s;
}
.template-card:hover .template-action,
.template-card:focus-visible .template-action {
  opacity: 1;
}
.template-meta {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.template-meta h3 {
  font-size: 16px;
  letter-spacing: -0.3px;
  margin-bottom: 7px;
}
.template-meta p {
  font-size: 12px;
  margin: 0;
}
.template-meta > svg {
  color: var(--blue);
  flex-shrink: 0;
}
.steps-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding: 70px 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 40px;
}
.steps article > span {
  color: var(--blue);
  font-size: 13px;
  display: inline-block;
  margin-bottom: 20px;
}
.steps h3 {
  margin-bottom: 12px;
}
.steps p {
  font-size: 14px;
  margin: 0;
  max-width: 310px;
}
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  align-items: center;
}
.split-section h2 {
  font-size: 38px;
}
.split-section p {
  font-size: 15px;
}
.blue-panel {
  background: #eef4ff;
  padding: 44px;
  border-radius: 14px;
  border: 1px solid #dce8ff;
}
.blue-panel > span {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--blue);
}
.blue-panel h3 {
  font-size: 36px;
  margin-top: 28px;
  font-weight: 600;
}
.blue-panel a {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.faq-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  border-top: 1px solid var(--line);
}
details summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 550;
  list-style: none;
}
details summary:after {
  content: "+";
  float: right;
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
}
details[open] summary:after {
  content: "−";
}
.faq details {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.faq details:first-child {
  padding-top: 0;
}
.faq details p {
  font-size: 14px;
  margin: 12px 24px 0 0;
}
.site-footer {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.3fr 1fr;
  gap: 36px;
  border-top: 1px solid var(--line);
  padding-block: 52px;
}
.site-footer p {
  font-size: 13px;
  margin-top: 16px;
}
.site-footer small {
  font-size: 11px;
}
.site-footer strong {
  font-size: 12px;
  display: block;
  margin-bottom: 16px;
}
.site-footer > div > a:not(.brand) {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 9px;
}
.page-intro {
  text-align: center;
  padding-top: 72px;
  padding-bottom: 48px;
  max-width: 860px;
}
.page-intro .eyebrow {
  justify-content: center;
}
.page-intro h1 {
  font-size: 46px;
}
.page-intro p {
  max-width: 640px;
  margin-inline: auto;
}
.tight {
  padding-top: 16px;
}
.article {
  max-width: 800px;
  margin-inline: auto;
  padding-block: 64px;
}
.article h1 {
  font-size: 42px;
}
.article h2 {
  font-size: 25px;
  margin-top: 38px;
  margin-bottom: 14px;
}
.article p {
  line-height: 1.9;
  font-size: 16px;
}
.article a,
.fine a,
.muted a,
.workspace-help a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.converter-section {
  max-width: 900px;
  padding-bottom: 70px;
}
.converter-card {
  display: flex;
  align-items: center;
  gap: 25px;
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 12px;
  background: var(--surface);
}
.converter-card > label,
.converter-card > div {
  flex: 1;
  min-width: 0;
}
.converter-card input,
.converter-card output {
  font-size: 30px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: block;
  min-height: 65px;
}
.converter-card output {
  margin-top: 7px;
  padding-block: 10px;
  overflow-wrap: anywhere;
  color: var(--blue);
}
.convert-arrow {
  color: var(--muted);
  font-size: 25px;
}
.converter-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.converter-links > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}
.converter-links b {
  color: var(--blue);
}
.conversion-table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 28px;
  text-align: left;
}
.conversion-table caption {
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.conversion-table td,
.conversion-table th {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.conversion-table th {
  background: var(--surface);
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  padding-bottom: 36px;
}
.pricing-grid article {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.pricing-grid h2 {
  margin-top: 22px;
  font-size: 24px;
}
.price {
  color: var(--ink);
  font-size: 34px;
  font-weight: 600;
}
.pricing-grid ul {
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2.2;
  margin-bottom: 28px;
}
.muted {
  color: var(--muted);
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 10px;
  background: white;
  z-index: 100;
}
.skip:focus {
  top: 5px;
}
/* Working surfaces: reference-inspired rail, controls and canvas. */
body:has(.workspace-page) {
  background: var(--surface);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 216px;
  display: flex;
  flex-direction: column;
  background: white;
  border-right: 1px solid var(--line);
  z-index: 10;
}
.sidebar .brand {
  padding: 23px 18px 26px;
  font-size: 18px;
  gap: 8px;
}
.sidebar .brand img {
  width: 29px;
  height: 29px;
}
.sidebar .brand span {
  margin-left: -8px;
}
.new-plan {
  border: 1px solid #b5ccf8;
  border-radius: 7px;
  text-align: center;
  color: var(--blue);
  font-size: 13px;
  font-weight: 550;
  margin: 0 15px 15px;
  padding: 8px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  padding-inline: 12px;
  gap: 4px;
}
.sidebar nav a {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 7px;
  color: #697585;
}
.sidebar nav a span {
  font-size: 13px;
}
.sidebar nav a:hover,
.sidebar nav a[aria-current] {
  color: var(--blue);
  background: var(--light-blue);
}
.sidebar nav small {
  font-size: 10px;
  letter-spacing: 1px;
  color: #8d96a3;
  padding: 23px 12px 5px;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 20px 18px;
  font-size: 12px;
}
.side-bottom p {
  font-size: 12px;
  margin-bottom: 6px;
}
.side-bottom > a {
  color: var(--blue);
  font-weight: 550;
}
#account-chip {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 11px;
}
.workspace-page {
  margin-left: 216px;
}
.workspace-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 16px;
}
.workspace-header h1 {
  font-size: 18px;
  letter-spacing: -0.4px;
  margin: 0;
  font-weight: 600;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
.preview-badge {
  border: 1px solid #e0e6ed;
  border-radius: 5px;
  font-size: 10px;
  padding: 3px 8px;
  letter-spacing: 0.2px;
  background: white;
}
.tool-layout {
  display: grid;
  grid-template-columns: minmax(285px, 360px) minmax(0, 1fr);
  gap: 20px;
  padding: 0 26px 24px;
  align-items: start;
}
.control-panel,
.result-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 2px #0f172a03;
  min-width: 0;
}
.control-panel {
  padding: 21px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  min-height: 680px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}
.panel-title svg {
  color: var(--blue);
}
.segmented {
  display: flex;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #edf0f5;
  background: #f6f8fb;
  gap: 3px;
}
.segmented button {
  flex: 1;
  padding: 8px;
  font-size: 12px;
  color: var(--muted);
  border-radius: 6px;
  background: transparent;
  white-space: nowrap;
}
.segmented button.active {
  color: var(--blue);
  background: white;
  box-shadow: 0 1px 4px #17233212;
}
.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: -12px;
}
.label-row label {
  font-size: 13px;
}
.label-row button {
  font-size: 11px;
}
.prompt-wrap {
  border: 1px solid #dce2ea;
  border-radius: 8px;
  overflow: hidden;
}
.prompt-wrap textarea {
  border: 0;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.8;
  min-height: 170px;
}
.prompt-wrap > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 9px;
  background: #fafbfc;
  border-top: 1px solid #f2f4f8;
  font-size: 10px;
  color: #8791a0;
  gap: 6px;
}
.prompt-wrap > div > span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.prompt-wrap .icon-button {
  width: 25px;
  height: 28px;
  border: 0;
  background: transparent;
}
.section-label {
  font-size: 13px;
  margin-bottom: -10px;
}
.style-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.style-card {
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}
.style-card.selected {
  border: 2px solid var(--blue);
  padding: 2px;
  box-shadow: 0 0 0 2px #dce9ff;
}
.style-card svg {
  aspect-ratio: 1;
  object-fit: cover;
}
.style-card > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  padding: 5px 0;
  color: #657182;
}
.style-card.selected > span {
  color: var(--blue);
}
.subtle-box {
  display: flex;
  gap: 12px;
  background: #f6f9ff;
  border: 1px solid #e7eefb;
  border-radius: 8px;
  padding: 15px;
}
.subtle-box > svg {
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 3px;
}
.subtle-box strong {
  font-size: 12px;
}
.subtle-box p {
  font-size: 11px;
  margin: 3px 0 4px;
}
.subtle-box button {
  font-size: 11px;
}
.generate-bottom {
  margin-top: auto;
  padding-top: 20px;
  display: grid;
  gap: 11px;
}
.generate-bottom p {
  margin: 0;
  text-align: center;
  font-size: 10px;
}
.generate {
  width: 100%;
  font-size: 13px;
}
.model-status {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.muted-dot {
  background: #97a3b2;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-row label {
  font-size: 12px;
}
.field-row input,
.field-row select {
  font-size: 13px;
  padding: 8px;
}
.result-panel {
  min-height: 680px;
}
.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 13px 18px;
  gap: 12px;
}
.compact {
  border: 0;
}
.compact button {
  padding: 6px 12px;
  font-size: 11px;
}
.credit-pill {
  font-size: 11px;
  color: var(--blue);
  background: var(--light-blue);
  padding: 6px 10px;
  border-radius: 6px;
}
.result-body {
  padding: 22px;
}
.canvas-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 9px 9px 0 0;
  padding: 12px 14px;
}
.canvas-meta > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.canvas-meta strong {
  font-size: 12px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.canvas-icon {
  background: var(--light-blue);
  color: var(--blue);
  padding: 3px;
  border-radius: 4px;
}
.canvas-area {
  position: relative;
  border-inline: 1px solid var(--line);
  min-height: 380px;
  display: flex;
  align-items: center;
  overflow: auto;
  background-color: #f9fafb;
  background-image: radial-gradient(#d9e1ea 0.6px, transparent 0.6px);
  background-size: 16px 16px;
}
.drawing-view {
  min-width: 60%;
  flex-shrink: 0;
  padding: 26px 10px;
  margin: auto;
}
.drawing-view .plan-svg {
  max-height: 540px;
}
.zoom-tools {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  gap: 5px;
  z-index: 1;
}
.zoom-tools .icon-button {
  box-shadow: 0 2px 4px #0001;
}
.canvas-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-top: 0;
  padding: 13px 14px;
  border-radius: 0 0 9px 9px;
  font-size: 10px;
  color: var(--muted);
}
.check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  white-space: nowrap;
}
.check-label input {
  width: 13px;
  margin: 0;
}
.export-bar {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.download-actions {
  display: flex;
  gap: 6px;
}
.export-bar .button {
  font-size: 11px;
  padding: 7px 10px;
}
.result-footnote {
  font-size: 11px;
  line-height: 1.7;
  margin: 16px 0 0;
  color: #8590a0;
}
.workspace-help {
  padding: 30px 36px 60px;
  max-width: 900px;
}
.workspace-help h2 {
  font-size: 24px;
}
.workspace-help p {
  font-size: 14px;
}
.notice {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: block;
  font-size: 12px;
  margin-bottom: 16px;
  line-height: 1.6;
  background: var(--surface);
}
.error {
  color: #9f3030;
  background: #fff4f3;
  border-color: #f2d6d1;
}
.success {
  color: #25604b;
  background: #f0f8f4;
  border-color: #cfe7dc;
}
.workspace-templates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.template-pick {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 14px;
  text-align: left;
  min-width: 0;
}
.template-pick strong {
  display: block;
  font-size: 12px;
  margin-top: 12px;
}
.template-pick > span {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}
.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 12px;
  border: 1px dashed #cbd6e6;
  border-radius: 8px;
  background: #fafcff;
  color: var(--blue);
}
.upload-box strong {
  font-size: 13px;
}
.upload-box span {
  font-size: 11px;
  color: var(--muted);
}
.upload-box small {
  font-size: 10px;
}
.control-panel > label {
  font-size: 12px;
}
.control-panel > label input,
.control-panel > label select {
  font-size: 13px;
}
.control-panel > label small {
  display: block;
  margin-top: 7px;
  font-size: 10px;
}
.annotation-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  padding: 6px 0;
  gap: 8px;
}
.account-content {
  padding: 0 30px 40px;
}
.account-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 30px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.account-summary > div:first-child {
  flex: 1;
  min-width: 180px;
}
.account-summary h2 {
  font-size: 24px;
  overflow-wrap: anywhere;
}
.account-summary p {
  font-size: 13px;
  margin: 0;
}
.credit-total {
  font-size: 36px;
  line-height: 1;
  text-align: center;
}
.credit-total small {
  display: block;
  margin-top: 6px;
}
.account-content > h2 {
  font-size: 22px;
  margin-top: 38px;
}
.saved-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.saved-list > div > div {
  flex: 1;
  min-width: 0;
}
.saved-list strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.saved-list small {
  display: block;
  font-size: 11px;
}
.empty-state {
  padding: 70px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.empty-state > svg {
  color: #a1b0c5;
  margin-bottom: 25px;
}
.empty-state h3 {
  font-size: 21px;
}
.empty-state p {
  font-size: 13px;
}
.auth-dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  width: min(440px, calc(100% - 32px));
  padding: 30px;
  color: var(--ink);
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: 0 20px 100px #15263a30;
}
.auth-dialog::backdrop {
  background: #13223866;
  backdrop-filter: blur(3px);
}
.auth-dialog .close {
  position: absolute;
  right: 12px;
  top: 8px;
  background: transparent;
  font-size: 28px;
  color: var(--muted);
  width: 36px;
  height: 36px;
}
.auth-dialog h2 {
  font-size: 27px;
  margin-top: 22px;
}
.auth-dialog p {
  font-size: 14px;
}
.auth-dialog form {
  display: grid;
  gap: 14px;
}
.auth-dialog form small {
  font-size: 11px;
}
.auth-dialog > .text-button {
  margin-top: 18px;
}
.auth-dialog > .fine {
  font-size: 11px;
  margin-top: 12px;
  margin-bottom: 0;
}
@media (min-width: 1650px) {
  .tool-layout {
    grid-template-columns: 420px minmax(0, 1fr);
  }
  .control-panel {
    padding: 26px;
    min-height: 750px;
  }
  .result-panel {
    min-height: 750px;
  }
  .canvas-area {
    min-height: 480px;
  }
  .result-body {
    padding: 30px;
  }
  .drawing-view {
    padding: 35px;
  }
  .style-card svg {
    max-height: 125px;
  }
}
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 48px);
  }
  .site-header {
    padding: 0 24px;
  }
  .site-header nav {
    gap: 16px;
    font-size: 12px;
  }
  .hero {
    gap: 30px;
    padding-top: 50px;
  }
  .hero h1 {
    font-size: 46px;
  }
  .quick-start > div > span {
    display: none;
  }
  .quick-start .button {
    width: 100%;
  }
  .split-section {
    gap: 45px;
  }
  .sidebar {
    width: 185px;
  }
  .sidebar .brand {
    font-size: 16px;
    padding-inline: 12px;
  }
  .workspace-page {
    margin-left: 185px;
  }
  .tool-layout {
    grid-template-columns: 285px minmax(0, 1fr);
    gap: 14px;
    padding-inline: 16px;
  }
  .control-panel {
    padding: 16px;
  }
  .workspace-header {
    padding-inline: 18px;
  }
  .result-body {
    padding: 12px;
  }
  .result-toolbar {
    padding: 12px 10px;
    flex-wrap: wrap;
  }
  .canvas-meta .pill {
    display: none;
  }
  .canvas-area {
    min-height: 320px;
  }
  .canvas-caption {
    align-items: start;
    flex-direction: column;
  }
  .result-panel {
    min-height: 680px;
  }
  .header-right > a {
    display: none;
  }
  .export-bar .button {
    font-size: 10px;
    padding: 6px 8px;
  }
  .sidebar nav a {
    padding-inline: 9px;
  }
  .template-meta p {
    font-size: 10px;
  }
}
@media (max-width: 800px) {
  .site-header {
    height: 68px;
    gap: 12px;
  }
  .site-header > nav {
    display: none;
  }
  .site-header > .button {
    margin-left: auto;
  }
  .mobile-menu {
    display: block;
  }
  .mobile-menu summary {
    font-size: 12px;
    list-style: none;
  }
  .mobile-menu summary:after {
    display: none;
  }
  .mobile-menu nav {
    position: absolute;
    top: 60px;
    right: 20px;
    z-index: 20;
    flex-direction: column !important;
    background: white;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px #0001;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    max-width: 620px;
  }
  .hero h1 {
    font-size: 54px;
  }
  .hero-copy > p {
    max-width: 100%;
  }
  .hero-drawing {
    transform: none;
  }
  .hero-drawing .plan-svg {
    max-height: 380px;
  }
  .feature-strip {
    flex-wrap: wrap;
    gap: 15px;
  }
  .feature-strip > span {
    width: 100%;
  }
  .feature-strip a {
    font-size: 11px;
  }
  .section {
    padding-block: 55px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }
  .template-grid {
    gap: 16px;
  }
  .template-image {
    padding: 8px;
  }
  .template-meta h3 {
    font-size: 13px;
  }
  .template-meta p {
    font-size: 10px;
  }
  .template-meta > svg {
    width: 15px;
  }
  .steps {
    gap: 25px;
  }
  .steps p {
    font-size: 13px;
  }
  .split-section,
  .faq-section {
    gap: 35px;
  }
  .split-section h2 {
    font-size: 30px;
  }
  .blue-panel {
    padding: 27px;
  }
  .blue-panel h3 {
    font-size: 28px;
  }
  .site-footer {
    grid-template-columns: 1fr 1fr;
  }
  .page-intro h1 {
    font-size: 38px;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 8px 16px;
    border-bottom: 1px solid var(--line);
    border-right: 0;
    gap: 18px;
    overflow-x: auto;
  }
  .sidebar .brand {
    padding: 4px 0;
  }
  .sidebar nav {
    flex-direction: row;
    padding: 0;
    gap: 4px;
  }
  .sidebar nav small,
  .sidebar .new-plan,
  .sidebar .side-bottom,
  .sidebar nav a:first-child,
  .sidebar nav a:nth-last-child(-n + 2) {
    display: none;
  }
  .sidebar nav a {
    white-space: nowrap;
    padding: 8px;
    font-size: 14px;
    gap: 6px;
  }
  .sidebar nav a span {
    font-size: 11px;
  }
  .workspace-page {
    margin-left: 0;
  }
  .workspace-header {
    height: 62px;
  }
  .workspace-header h1 {
    font-size: 17px;
  }
  .tool-layout {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .canvas-area {
    min-height: 250px;
  }
  .result-toolbar {
    gap: 10px;
  }
  .compact button {
    padding: 6px 8px;
  }
  .result-panel {
    min-height: 660px;
  }
  .download-actions {
    flex-wrap: wrap;
  }
  .workspace-help {
    padding-inline: 22px;
  }
}
@media (max-width: 620px) {
  .container {
    width: calc(100% - 36px);
  }
  .site-header {
    padding-inline: 18px;
  }
  .brand {
    font-size: 18px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .site-header > .button {
    font-size: 11px;
    padding: 7px 10px;
    min-height: 35px;
  }
  .hero {
    padding-top: 35px;
    padding-bottom: 40px;
  }
  .hero h1 {
    font-size: 45px;
    letter-spacing: -2px;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 1.2px;
  }
  .hero-copy > p {
    font-size: 15px;
  }
  .hero-foot {
    font-size: 10px;
    gap: 18px;
  }
  .drawing-top {
    font-size: 10px;
    padding: 12px;
  }
  .drawing-bottom {
    padding: 15px;
  }
  .drawing-bottom strong {
    font-size: 12px;
  }
  .drawing-bottom span {
    font-size: 10px;
  }
  .section h2,
  .steps-section h2 {
    font-size: 30px;
  }
  .section-intro {
    font-size: 14px;
  }
  .template-grid {
    grid-template-columns: 1fr;
  }
  .template-image {
    padding: 15px;
    aspect-ratio: 1.5;
  }
  .template-meta h3 {
    font-size: 16px;
  }
  .template-meta p {
    font-size: 12px;
  }
  .template-action {
    opacity: 1;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .steps article > span {
    margin-bottom: 9px;
  }
  .steps h3 {
    font-size: 19px;
    margin-bottom: 8px;
  }
  .steps p {
    max-width: none;
  }
  .steps-section {
    padding-block: 46px;
  }
  .split-section,
  .faq-section {
    grid-template-columns: 1fr;
  }
  .faq-section h2 br {
    display: none;
  }
  .site-footer {
    gap: 32px 20px;
    padding-block: 40px;
  }
  .site-footer > div:first-child {
    grid-column: 1/-1;
  }
  .site-footer > div > a:not(.brand) {
    font-size: 11px;
  }
  .site-footer p {
    margin-bottom: 6px;
  }
  .page-intro {
    padding-top: 42px;
    padding-bottom: 24px;
  }
  .page-intro h1 {
    font-size: 34px;
  }
  .page-intro p {
    font-size: 14px;
  }
  .article {
    padding-block: 38px;
  }
  .article h1 {
    font-size: 32px;
  }
  .article h2 {
    font-size: 23px;
  }
  .article p {
    font-size: 14px;
  }
  .converter-card {
    gap: 12px;
    padding: 20px;
    flex-wrap: wrap;
  }
  .converter-card > label,
  .converter-card > div {
    flex-basis: calc(50% - 30px);
  }
  .converter-card input,
  .converter-card output {
    font-size: 24px;
  }
  .converter-card > button {
    margin-left: auto;
  }
  .converter-links {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid article {
    padding: 25px;
  }
  .sidebar {
    gap: 12px;
    padding: 10px 14px;
  }
  .sidebar .brand {
    font-size: 16px;
  }
  .sidebar .brand img {
    width: 24px;
    height: 24px;
  }
  .sidebar nav a {
    padding: 6px;
  }
  .sidebar nav a span {
    font-size: 10px;
  }
  .sidebar nav a:nth-of-type(4),
  .sidebar nav a:nth-of-type(5) {
    display: none;
  }
  .workspace-header {
    height: auto;
    min-height: 68px;
    align-items: start;
    padding-top: 17px;
    padding-bottom: 13px;
    flex-wrap: wrap;
    gap: 5px;
  }
  .workspace-header h1 {
    font-size: 18px;
  }
  .preview-badge {
    font-size: 9px;
  }
  .tool-layout {
    display: flex;
    flex-direction: column;
    padding: 0 12px 20px;
    gap: 16px;
  }
  .control-panel,
  .result-panel {
    width: 100%;
    min-height: 0;
  }
  .control-panel {
    gap: 18px;
    padding: 18px;
  }
  .prompt-wrap textarea {
    min-height: 140px;
  }
  .style-grid {
    gap: 12px;
  }
  .style-card svg {
    max-height: 110px;
  }
  .style-card > span {
    font-size: 12px;
  }
  .generate-bottom {
    padding-top: 5px;
  }
  .subtle-box {
    padding: 12px;
  }
  .result-body {
    padding: 12px;
  }
  .result-toolbar {
    flex-wrap: nowrap;
  }
  .canvas-area {
    min-height: 280px;
  }
  .drawing-view {
    padding: 22px 0;
  }
  .canvas-caption {
    font-size: 9px;
    flex-direction: row;
  }
  .canvas-meta strong {
    font-size: 11px;
  }
  .export-bar {
    gap: 10px;
  }
  .export-bar .button {
    font-size: 10px;
    padding: 7px;
  }
  .workspace-help {
    padding: 25px 20px;
  }
  .workspace-help h2 {
    font-size: 22px;
  }
  .workspace-templates {
    gap: 10px;
  }
  .template-pick {
    padding: 10px;
  }
  .account-content {
    padding-inline: 14px;
  }
  .account-summary {
    padding: 20px;
    gap: 16px;
  }
  .account-summary > div:first-child {
    flex-basis: 100%;
  }
  .account-summary h2 {
    font-size: 21px;
  }
  .empty-state {
    padding: 40px 12px;
  }
  .header-right {
    margin-left: auto;
  }
  .auth-dialog {
    padding: 26px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 360px) {
  .result-toolbar {
    flex-wrap: wrap;
  }
  .result-toolbar .result-actions {
    margin-left: auto;
  }
  .canvas-caption {
    flex-direction: column;
  }
  .download-actions {
    gap: 4px;
  }
  .site-header > .button {
    display: none;
  }
  .feature-strip {
    align-items: start;
    flex-direction: column;
  }
  .sidebar {
    gap: 8px;
  }
  .sidebar nav a {
    padding: 5px 3px;
  }
}
