/* Create PDF page */
.cr-page { max-width: 1240px; margin: 0 auto; padding: 28px 20px 48px; }
.cr-head h1 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; margin: 6px 0 6px; }
.cr-head .sub { color: var(--muted); margin: 0 0 22px; max-width: 680px; }
.cr-starts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cr-start { display: grid; gap: 6px; text-align: left; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; font: inherit; color: var(--text); transition: border-color .12s, box-shadow .12s; }
.cr-start:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.cr-start .tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 6px; }
.cr-start b { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.cr-start > span:last-child { color: var(--muted); font-size: 14px; line-height: 1.5; }
.cr-start .badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.cr-templates { margin-top: 24px; }
.cr-templates h3 { font-size: 15px; margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 13.5px; cursor: pointer; color: var(--text-2); min-height: 36px; }
.chip:hover { border-color: var(--accent); color: var(--accent-text); }

.cr-ai { padding: 22px; display: grid; gap: 14px; max-width: 760px; }
.cr-ai h2 { margin: 0; }
.cr-ai > .btn.ghost { justify-self: start; }
.cr-form { display: flex; gap: 12px; flex-wrap: wrap; }
.cr-form .field { flex: 1 1 200px; margin: 0; }
.small { font-size: 12.5px; }

.cr-busy { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(16, 24, 40, .32); }
.cr-busy .card { display: flex; gap: 12px; align-items: center; padding: 18px 26px; font-weight: 600; }

@media (max-width: 960px) {
  .cr-starts { grid-template-columns: minmax(0, 1fr); }
}
.cr-templates-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cr-templates-head h3 { margin: 0; }
.cr-popular { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-top: 14px; }
.cr-tpl { display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; color: var(--text); text-align: left; }
.cr-tpl:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.cr-tpl img { width: 100%; height: auto; aspect-ratio: 595 / 600; object-fit: cover; object-position: top; border-radius: 4px; background: var(--surface-2); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
