/* Navigation leaves the existing content in place until the next view is ready. */
.navigation-status,
.app-confirm {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 40px));
  margin: 0;
  padding: 10px 16px;
  border: 1px solid #e4e2de;
  border-radius: 12px;
  background: #fff;
  color: #45443f;
  box-shadow: 0 2px 12px #0000000d;
  font-size: 13.5px;
  font-weight: 600;
}
.app-confirm {
  z-index: 110;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.app-main:focus { outline: none; }
html { scrollbar-gutter: stable; }

/* Signed-in pages. Loaded after pages.css. */
body.account-page [hidden] { display: none !important; }
body.account-page { min-height: 100vh; }
html:has(body.app) { background: #fbf9f4; }
html.app-pending body.app:not(.app-ready) { visibility: hidden; }
body.account-page a,
body.account-page button,
body.account-page summary,
body.account-page select,
body.account-page [role="button"] { cursor: pointer; }
body.account-page button:disabled { cursor: default; }
body.account-page .btn { border-radius: 12px; }
body.account-page .btn:disabled,
body.account-page .btn-primary:disabled,
body.account-page .btn-ghost:disabled,
body.account-page .btn-danger:disabled {
  background: var(--bg-2);
  color: var(--muted);
  border-color: transparent;
  opacity: 1;
  box-shadow: none;
  pointer-events: none;
}
body.account-page .btn-primary:disabled:hover,
body.account-page .btn-ghost:disabled:hover,
body.account-page .btn-danger:disabled:hover {
  background: var(--bg-2);
  color: var(--muted);
}
body.account-page textarea,
body.account-page input[type="text"],
body.account-page input[type="email"],
body.account-page input[type="password"],
body.account-page input[type="url"] { cursor: text; }
body.account-page nav .wrap { height: auto; min-height: 68px; padding-top: 14px; padding-bottom: 14px; }
body.account-page nav .btn { padding: 8px 14px; }
@media (max-width: 860px) {
  body.account-page nav .btn-ghost { display: inline-flex; }
  body.account-page nav .actions { flex-wrap: wrap; justify-content: flex-end; }
}
.account-page h1 {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.page-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-bar h1 { margin: 0; font-size: 32px; }
.lede { margin: 8px 0 24px; color: var(--muted); font-size: 14.5px; line-height: 1.45; max-width: 62ch; }
.account-auth { background: #f7f4ed; }
.narrow { max-width: 480px; padding: 48px 0 96px; }
.wide { padding: 40px 0 96px; }
form.stack, .stack { display: grid; gap: 16px; }
label.field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label.field span { font-weight: 400; color: var(--muted); }
input, textarea, button { font: inherit; color: inherit; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 16px;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
textarea.code {
  min-height: 420px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  tab-size: 2;
  border-radius: 16px;
}
textarea.voice {
  min-height: 280px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 16px;
}
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 19, 15, 0.08); }
.form-error { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 15px; }
.form-error a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.form-error a:hover { color: var(--ink); }
.form-error:empty, .form-error[hidden] { display: none; }
.hint { margin: 0; color: var(--muted); font-size: 14px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.demo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.demo-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 128px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #ebe9e5;
  border-radius: 14px;
  color: inherit;
  box-shadow: 0 1px 2px rgba(20, 19, 15, 0.04);
  content-visibility: auto;
  contain-intrinsic-size: auto 128px;
}
.demo-skeleton {
  min-height: 128px;
  border: 1px solid #ebe9e5;
  border-radius: 14px;
  background: linear-gradient(105deg, #fff 20%, #f5f3ee 40%, #fff 60%);
  background-size: 220% 100%;
  animation: demo-loading 1.2s ease-in-out infinite;
}
@keyframes demo-loading { to { background-position-x: -220%; } }
@media (prefers-reduced-motion: reduce) { .demo-skeleton { animation: none; } }
.demo-row:hover { text-decoration: none; border-color: #ddd9d2; box-shadow: 0 4px 14px rgba(20, 19, 15, 0.06); }
.demo-row strong { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; }
.demo-row .meta { color: var(--muted); font-size: 13px; margin-top: auto; }
.pill {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
}
.pill[data-status="published"] { background: #e5f4ea; color: #1d6b3a; }
.pill[data-status="failed"] { background: var(--accent-soft); color: var(--accent-ink); }
.pill[data-status="generating"] { background: #fff4d6; color: #8a5a00; }
.editor {
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.editor-stage {
  flex: 1 1 0;
  min-width: 0;
}
.editor-stage > .portal-card { margin: 0; }
.editor .notes {
  box-sizing: border-box;
  display: grid;
  align-content: start;
  flex: 0 0 340px;
  width: 340px;
  gap: 12px;
  margin: 0;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}
@media (max-width: 980px) {
  .editor { flex-direction: column; }
  .editor .notes { flex: none; width: auto; overflow: visible; }
}
.editor-head { align-items: flex-start; gap: 12px 20px; margin-bottom: 16px; }
.editor-head > div:first-child { min-width: 0; flex: 1; }
.editor-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}
.editor-kicker .portal-kicker { margin: 0; }
.editor-head .pill {
  grid-row: auto;
  padding: 2px 7px;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.editor-head h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.editor-toolbar { flex: none; }
@media (max-width: 860px) {
  .editor-toolbar { width: 100%; }
}
.editor-id {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.3;
}
.editor-id #meta-slug {
  flex: none;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
}
.editor-id #meta-source {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}
.editor-id #meta-source:not([hidden])::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 8px 2px;
  border-radius: 50%;
  background: #cfc9bc;
  vertical-align: middle;
}
.editor-id #meta-source:hover { color: var(--ink); text-decoration: none; }
.editor-more { position: relative; flex: none; }
.editor-toolbar .editor-more__btn {
  justify-content: center;
  width: 40px;
  min-width: 40px;
  padding: 0;
  letter-spacing: 0.12em;
  color: var(--ink-2);
}
.editor-more__menu {
  top: calc(100% + 6px);
  right: 0;
  left: auto;
}
.editor-toolbar { margin: 0; }
.editor-toolbar .view-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex-wrap: nowrap;
  gap: 0;
  margin-left: 4px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid #ddd8cd;
  border-radius: 12px;
  background: #eeeae2;
  box-shadow: inset 0 1px 2px rgba(20, 19, 15, 0.06);
}
.editor-toolbar .view-switch::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 2);
  border-radius: 9px;
  background: var(--ink);
  box-shadow: 0 1px 3px rgba(20, 19, 15, 0.2);
  transition: transform 180ms ease;
}
.editor-toolbar .view-switch[data-active="edit"]::before { transform: translateX(100%); }
.editor-toolbar .view-switch button,
.editor-toolbar .view-switch button[aria-selected="true"] {
  position: relative;
  z-index: 1;
  min-width: 78px;
  padding: 7px 14px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  transition: color 180ms ease;
}
.editor-toolbar .view-switch button[aria-selected="true"] { color: #fff; }
.editor-toolbar .view-switch button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}
@media (prefers-reduced-motion: reduce) {
  .editor-toolbar .view-switch::before,
  .editor-toolbar .view-switch button { transition: none; }
}
.editor-toolbar .btn { padding: 10px 16px; font-size: 14px; }
.editor[data-view="preview"] {
  display: block;
  max-width: min(100%, 1040px);
  margin-inline: auto;
}
.editor[data-view="preview"] .notes { display: none; }
.share {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  padding: 12px 16px 14px;
  border-top: 1px solid #eceae6;
  background: #faf9f7;
}
.share #live-line { margin: 0; color: var(--ink-2); font-size: 13.5px; min-width: 0; }
.share #live-line a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.share #copy { justify-self: end; padding: 8px 14px; font-size: 13.5px; }
.share-code {
  grid-column: 1 / -1;
  margin: 0;
}
.share-code summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.share-code .embed {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 11.5px;
}
.preview {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  /* Same proportion as the homepage showcase: a 16:9 stage plus the 44px control strip. A plain 16:9 box shrinks the stage and leaves the strip across the picture. */
  padding-top: calc(56.25% + 44px);
}
.preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.preview .empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--ink-2);
}
.preview-wait {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 28px 24px;
  background: rgba(245, 244, 242, 0.86);
  text-align: center;
}
.preview-wait[hidden] { display: none; }
.preview-wait__kicker {
  margin: 0;
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.preview-wait__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 28px;
  letter-spacing: -0.03em;
}
.preview-wait .hint { margin: 0; max-width: 36ch; }
.preview-wait__track {
  width: min(280px, 70%);
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e5e1;
}
.preview-wait__bar {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  animation: preview-wait-slide 1.2s ease-in-out infinite;
}
@keyframes preview-wait-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(350%); }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.preview-marks {
  position: absolute;
  inset: 0 0 44px 0;
  z-index: 2;
  pointer-events: none;
}
.preview-hit {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: crosshair;
}
body.account-page .preview-hit { cursor: crosshair; }
.preview-hit { touch-action: none; }
.preview-pins { position: absolute; inset: 0; pointer-events: none; }
.preview-selection {
  position: absolute;
  box-sizing: border-box;
  min-width: 4px;
  min-height: 4px;
  border: 2px solid var(--accent-ink);
  border-radius: 6px;
  background: rgba(255, 75, 32, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}
.preview-pin {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -4px 0 0 -11px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #14130f;
  box-shadow: 0 4px 10px rgba(20, 19, 15, 0.25);
  transform: rotate(-45deg);
  pointer-events: auto;
  cursor: pointer;
}
.preview-pin[data-status="pending"] { background: #8a5a00; }
.preview-pin[data-status="error"] { background: var(--accent-ink); }
.preview-pin[aria-current="true"] { box-shadow: 0 0 0 4px rgba(20, 19, 15, 0.16); }
.note-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.note-thumbs:empty { display: none; }
.note-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-2);
}
.note-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.note-thumb button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 19, 15, 0.8);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
}
.notes { min-height: 100%; }
.notes h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 22px;
  letter-spacing: -0.03em;
}
.notes .hint {
  min-height: 1.5em;
}
.editor-panel-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}
.editor-panel-tabs button {
  min-height: 36px;
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.editor-panel-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1px 3px rgba(20, 19, 15, 0.18);
}
.editor-panel-tabs button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.editor-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}
.editor-panel[hidden] { display: none; }
.audio-pane {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}
.audio-pane[hidden] { display: none; }
.audio-pane #voice-script {
  min-height: 140px;
  margin: 0;
  font-size: 14px;
}
.music-picker {
  display: grid;
  gap: 10px;
}
.music-list {
  display: grid;
  gap: 6px;
}
#music-list {
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.music-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 7px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.music-track:has(input:checked) {
  border-color: var(--ink);
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--ink);
}
.music-track__choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  cursor: pointer;
}
.music-track__choice input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ink);
}
.music-track__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.music-track__text strong {
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.music-track__text small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.music-track__play {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.music-track__play:hover { border-color: var(--ink); }
.music-track__play[aria-pressed="true"] { background: var(--ink); color: #fff; }
.music-track__play svg { width: 13px; height: 13px; fill: currentColor; }
.music-picker__apply {
  position: sticky;
  bottom: -16px;
  z-index: 2;
  display: grid;
  gap: 8px;
  margin: 0 -4px -4px;
  padding: 12px 4px 4px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 14px);
}
.music-picker__apply .btn { width: 100%; }
.music-picker .hint { margin: 0; font-size: 11.5px; }
.music-level {
  display: grid;
  gap: 6px;
  padding: 8px 2px 2px;
  font-size: 13px;
  font-weight: 600;
}
.music-level__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.music-level input[type="range"] {
  width: 100%;
  accent-color: var(--ink);
}
.music-level.is-off {
  opacity: 0.45;
  pointer-events: none;
}
#note-form {
  display: grid;
  gap: 10px;
  min-height: 0;
}
.note-field-label { font-size: 13px; font-weight: 700; }
.notes-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.notes-list:empty { display: none; }
.note-item {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-2);
}
.note-item p { margin: 0; font-size: 13.5px; }
.note-item .hint { margin: 4px 0 0; font-size: 12.5px; }
.note-item__top { display: flex; align-items: flex-start; gap: 10px; }
.note-item__top p { flex: 1; min-width: 0; }
.note-item__remove {
  flex: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.note-item__remove:hover { color: var(--ink); }
.note-item[data-status="queued"] { background: #fff; border: 1px solid #e7e5e1; }
.note-item[data-status="pending"] { background: #fff4d6; }
.note-item[data-status="error"] { background: var(--accent-soft); }
.notes-apply { margin: 4px 0 2px; }
.notes-apply .btn { width: 100%; }
.notes-apply:not([hidden]) { animation: notes-apply-in 0.35s ease; }
.notes-toggle {
  justify-self: start;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.notes-toggle:hover { color: var(--ink); text-decoration: underline; }
.edit-status {
  margin: 0;
  padding: 9px 11px;
  border-radius: 10px;
  background: #e5f4ea;
  color: #1d6b3a;
  font-size: 13px;
  font-weight: 700;
}
@keyframes notes-apply-in {
  from { opacity: 0.6; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.preview-pin[data-status="queued"] { background: var(--accent-ink); }
.note-form__row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
}
.note-form__row .hint { margin: 0; flex: 1; min-width: 0; }
.note-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 12.5px;
}
.note-location__cancel {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.note-location__cancel:hover { text-decoration: underline; }
.note-location__cancel:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.attach-menu { position: relative; }
.attach-menu__list {
  position: absolute;
  z-index: 8;
  right: 0;
  top: calc(100% + 6px);
  display: grid;
  min-width: 188px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 19, 15, 0.12);
}
.attach-menu__list[hidden] { display: none; }
.attach-menu__list button {
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.attach-menu__list button:hover { background: var(--bg-2); }
.notes #note {
  min-height: 140px;
  margin: 0;
}
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button {
  border: 1.5px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs button .n { margin-left: 6px; font-weight: 500; opacity: 0.72; }
.shot[hidden] { display: none; }
.embed {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.people { display: grid; gap: 14px; }
.person {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #e7e5e1;
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(20, 19, 15, 0.04);
}
.person h2 { font-family: var(--font-sans); font-size: 22px; margin: 0 0 4px; letter-spacing: -0.02em; }
.person .meta { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.person ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.person li a { color: var(--ink); font-weight: 600; }
.building { padding: 22px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.build-wait {
  max-width: 640px;
  display: grid;
  gap: 14px;
}
.build-wait h1 { margin: 0; }
.build-wait .lede { margin: 0; }
.build-wait__track {
  height: 14px;
  border-radius: 999px;
  background: #eceae6;
  overflow: hidden;
}
.build-wait__bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--ink);
}
.build-wait__time {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 15px;
}
.panel[data-mode="building"] > .create-stage,
.panel[data-mode="building"] > #picker { display: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.shot {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
}
.shot:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 19, 15, 0.08); }
.shot input { justify-self: start; width: 18px; height: 18px; margin: 0; }
.shot__open { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; background: var(--bg-2); cursor: zoom-in; }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 10px; background: var(--bg-2); }
.shot span { font-size: 13px; font-weight: 500; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.shot .shot__saved {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 64px 20px 28px;
  background: rgba(20, 19, 15, 0.9);
}
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 14px; min-width: 0; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100vh - 180px); width: auto; height: auto; object-fit: contain; background: #fff; border-radius: 12px; }
.lightbox figcaption { margin: 0; color: #fff; font-size: 14px; text-align: center; max-width: 72ch; }
.lightbox__nav {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close { position: absolute; top: 16px; right: 16px; background: #fff; }
@media (max-width: 720px) {
  .lightbox { padding-top: 72px; }
  .lightbox__nav { width: 40px; height: 40px; }
}
#picker h2 { font-family: var(--font-sans); font-size: 28px; letter-spacing: -0.03em; margin: 0; }

/* Signed-in app shell: top bar on every page. */
.app { background: #f5f4f2; }
.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  align-content: start;
}
.app-side {
  view-transition-name: app-side;
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: start;
  width: 100%;
  gap: 12px 18px;
  padding: 8px 18px;
  background: rgba(240, 239, 237, 0.94);
  border-bottom: 1px solid #e4e2de;
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
}
.app-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; color: var(--ink); cursor: pointer; }
.app-brand:hover { text-decoration: none; }
.app-brand strong { display: block; font-family: var(--font-display); font-size: 16px; letter-spacing: -0.03em; line-height: 1.1; }
.app-brand small { display: none; }
.app-nav { display: flex; flex: 1; flex-wrap: wrap; gap: 4px; position: static; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.app-label { display: none; }
.app-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #3c3a36;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}
.app-nav a svg { flex: none; }
.app-nav a:hover { text-decoration: none; background: rgba(255, 255, 255, 0.65); }
.app-nav a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20, 19, 15, 0.06); }
.app-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.app-user strong,
.app-user span { display: none; }
.app-user strong:empty,
.app-user span:empty { display: none; }
.app-credit {
  display: block;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
}
a.app-credit { color: inherit; }
a.app-credit:hover { color: var(--accent-ink); text-decoration: none; }
.app-credit:empty { display: none; }
.credit-balance { margin: 18px 0 0; font-size: 16px; color: var(--ink-2); }
.credit-balance:has(b:empty) { visibility: hidden; }
#credit-note { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
#credit-note:empty { display: none; }
.credit-balance b { color: var(--ink); font-variant-numeric: tabular-nums; font-size: 22px; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.pack {
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 14px 16px;
  border: 1.5px solid #e7e5e1;
  border-radius: 16px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pack b { font-family: var(--font-sans); font-size: 20px; letter-spacing: -0.03em; }
.pack span { color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
.pack:hover { border-color: var(--ink); }
.pack:disabled { opacity: 0.6; cursor: wait; }
.app-buy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  color: #3c3a36;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.app-buy svg { flex: none; }
.app-buy:hover { text-decoration: none; background: rgba(255, 255, 255, 0.65); }
.app-buy[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20, 19, 15, 0.06); }
.app-user button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.app-user button:hover { color: var(--ink); }
.app-menu { position: relative; }
.app-user .app-settings {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #3c3a36;
  font-size: 14.5px;
}
.app-user .app-settings:hover,
.app-user .app-settings[aria-expanded="true"] { color: var(--ink); background: rgba(255, 255, 255, 0.7); }
.app-settings__chevron { transition: transform 140ms ease; }
.app-settings[aria-expanded="true"] .app-settings__chevron { transform: rotate(180deg); }
.app-menu-popover {
  position: absolute;
  z-index: 80;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  overflow: hidden;
  border: 1px solid #dedbd5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(20, 19, 15, 0.14), 0 2px 8px rgba(20, 19, 15, 0.06);
}
.app-menu-popover[hidden] { display: none; }
.app-menu-identity { padding: 16px 16px 13px; border-bottom: 1px solid var(--line); }
.app-menu-identity p { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-menu-name { color: var(--ink); font-size: 14px; font-weight: 700; }
.app-menu-email { margin-top: 3px !important; color: var(--muted); font-size: 12.5px; }
.app-menu-workspace { padding: 13px 12px; border-bottom: 1px solid var(--line); }
.app-menu-workspace-label {
  display: block;
  margin: 0 4px 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.app-menu-workspace-current { margin: 0 4px; color: var(--ink); font-size: 14px; font-weight: 600; }
.app-menu-actions { padding: 6px; }
.app-menu-actions a,
.app-user .app-menu-actions button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  box-sizing: border-box;
  padding: 9px 10px;
  border-radius: 8px;
  color: #3c3a36;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.app-menu-actions a:hover,
.app-user .app-menu-actions button:hover { color: var(--ink); background: var(--paper); text-decoration: none; }
.app-user .app-menu-actions button { border: 0; background: none; cursor: pointer; }
.app-main { padding: 24px 28px 72px; min-width: 0; overflow-x: clip; }
body[data-page="edit"] .app-main { padding: 18px 20px 20px; }
body[data-page="edit"] .editor-head { margin-bottom: 14px; }
.welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: center;
  padding: 36px;
  background: #fff;
  border: 1px solid #e7e5e1;
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(20, 19, 15, 0.04);
}
.welcome .portal-kicker,
.welcome__hi { margin: 0 0 12px; }
.welcome h1 { font-size: clamp(26px, 3vw, 32px); max-width: 14ch; }
.welcome p:not(.portal-kicker):not(.welcome__hi) { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; max-width: 42ch; }
.welcome .actions-row { margin-top: 22px; }
.welcome__preview {
  background: #f3f0ff;
  border-radius: 18px;
  padding: 22px;
}
.mock { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(40, 30, 80, 0.08); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #fafafa; border-bottom: 1px solid #eee; }
.mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: #e4e2de; }
.mock__bar span { margin-left: 8px; color: var(--muted); font-size: 12px; }
.mock__stage { display: grid; gap: 8px; justify-items: start; padding: 28px 22px 32px; }
.mock__stage strong { font-family: var(--font-sans); font-size: 18px; letter-spacing: -0.02em; }
.mock__stage span { color: var(--ink-2); font-size: 13.5px; max-width: 28ch; }
.mock__stage em { margin-top: 8px; padding: 6px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-style: normal; font-size: 12.5px; font-weight: 600; }
.panel {
  max-width: 720px;
  padding: 28px;
  background: #fff;
  border: 1px solid #e7e5e1;
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(20, 19, 15, 0.04);
}
.panel h1 { font-size: clamp(22px, 2.4vw, 28px); }
.portal.panel {
  max-width: 1080px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.portal.panel > #picker { max-width: none; }
.picked {
  display: grid;
  gap: 12px;
  margin: 4px 0 8px;
  padding: 16px 16px 14px;
  background: #faf9f7;
  border: 1px dashed #d8d4cc;
  border-radius: 18px;
}
.picked__head h2 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 20px;
  letter-spacing: -0.03em;
}
.picked__head .hint { margin: 4px 0 0; }
.picked__list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 8px;
}
.picked__shot {
  position: relative;
  flex: 0 0 168px;
  margin: 0;
  padding: 8px 8px 10px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 19, 15, 0.04);
  cursor: grab;
}
.picked__shot:active { cursor: grabbing; }
.picked__shot.is-dragging { opacity: 0.45; }
.picked__shot.is-over { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 19, 15, 0.08); }
.picked__shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  background: var(--bg-2);
  pointer-events: none;
}
.picked__shot figcaption {
  margin: 8px 2px 0;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.picked__n {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.picked__remove {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(20, 19, 15, 0.18);
}
.picked__moves {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.picked__move {
  flex: 1;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.picked__move:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 860px) {
  .app-side { gap: 10px; padding: 10px 12px; }
  .app-nav { overflow-x: auto; flex-wrap: nowrap; }
  .app-credit { font-size: 12.5px; }
  .app-main { padding: 20px 16px 64px; }
  .packs { grid-template-columns: 1fr; }
  .welcome { grid-template-columns: 1fr; padding: 22px; }
  .welcome__preview { display: none; }
  .picked__shot { flex-basis: 148px; }
}

/* Monthly usage and subscription billing. */
.usage-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--white, #fff); margin: 20px 0; }
.usage-heading, .billing-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.usage-card h2 { margin: 0 0 12px; font-size: 21px; }
.usage-card p { margin: 12px 0; }
.usage-card progress { display: block; width: 100%; height: 14px; margin: 18px 0; accent-color: var(--accent); border: 0; border-radius: 20px; overflow: hidden; }
.usage-card progress::-webkit-progress-bar { background: #eee9e2; }
.usage-card progress::-webkit-progress-value { background: var(--accent); }
.billing-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.billing-plans .usage-card { margin: 8px 0 16px; }
.billing-price { font-size: 22px; font-weight: 700; }
.billing-price span { font-size: 13px; font-weight: 400; }
.extra-heading { margin-top: 0; }
@media(max-width:600px) { .billing-plans { grid-template-columns: 1fr; } }

/* App portal: tiles on the canvas instead of one nested form card. */
.portal { max-width: 1080px; container-type: inline-size; }
.portal--wide { max-width: none; }
.portal-card--flush { padding: 0; overflow: hidden; }
.portal-card--flush .preview { border: 0; border-radius: 0; }
.portal .form-error { margin: 16px 0; }
.portal .editor { margin-top: 8px; }
.portal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.portal-kicker {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}
.portal-head h1 { font-size: 22px; }
.portal .lede { margin: 4px 0 0; max-width: none; font-size: 13px; }
.portal #library .demo-list { margin-top: 0; }
.library-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 12px 16px;
  align-items: start;
}
.folder-nav.portal-card {
  display: grid;
  align-content: start;
  gap: 2px;
  margin: 0;
  padding: 16px 12px 10px;
  min-width: 0;
}
.folder-nav h2 { margin: 0 6px 10px; }
.folder-nav__tree {
  display: grid;
  gap: 2px;
  margin: 0 0 2px 18px;
}
.folder-nav__item,
.folder-nav__new,
.folder-nav__save {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 7px 8px 7px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 550;
  text-align: left;
}
.folder-nav__item.is-nested { font-weight: 500; }
.folder-nav__twist {
  flex: none;
  width: 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  text-align: center;
}
.folder-nav__item:hover,
.folder-nav__new:hover { background: #f6f4f0; text-decoration: none; }
.folder-nav__item.is-active { background: #f3f1ec; font-weight: 600; }
.folder-nav__item.is-drop { background: #e5f4ea; }
.folder-nav__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.folder-nav__count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.folder-nav__more {
  display: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}
.folder-nav__item:hover .folder-nav__more,
.folder-nav__item.is-active .folder-nav__more,
.folder-nav__item.is-menu .folder-nav__more { display: grid; place-items: center; }
.folder-nav__more:hover { background: #e7e4de; color: var(--ink); }
.folder-nav__new {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 600;
}
.folder-nav__new .folder-nav__twist { color: inherit; font-size: 13.5px; font-weight: 650; }
.folder-nav__new:hover { color: var(--ink); }
.folder-nav__form {
  display: flex;
  gap: 6px;
  margin: 6px 4px 2px;
}
.folder-nav__form input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}
.folder-nav__save {
  width: auto;
  padding: 7px 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.folder-empty {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.library-main { min-width: 0; }
.demo-row { position: relative; }
.demo-row__move {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid #ebe9e5;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
}
.demo-row:hover .demo-row__move,
.demo-row:focus-within .demo-row__move {
  opacity: 1;
  pointer-events: auto;
}
.demo-row__move:hover { border-color: #ddd9d2; color: var(--ink); }
.folder-menu {
  position: absolute;
  z-index: 40;
  min-width: 188px;
  padding: 6px;
  border: 1px solid #dedbd5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 19, 15, 0.12);
}
.folder-menu button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px 8px calc(10px + (var(--depth, 0) * 16px));
  border: 0;
  border-radius: 8px;
  background: none;
  color: #3c3a36;
  font-size: 13px;
  font-weight: 550;
  text-align: left;
}
.folder-menu button:hover,
.folder-menu button:focus-visible { background: #f6f4f0; color: var(--ink); }
.folder-menu button.is-current { font-weight: 650; }
.folder-menu button.is-danger { color: #b42318; }
.folder-menu button.is-danger:hover,
.folder-menu button.is-danger:focus-visible { background: #fef3f2; color: #912018; }
.folder-menu button:disabled { color: var(--muted); font-weight: 500; }
.app-dialog {
  width: min(400px, calc(100vw - 32px));
  padding: 20px 20px 16px;
  border: 1px solid #e7e5e1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(20, 19, 15, 0.14), 0 2px 8px rgba(20, 19, 15, 0.06);
}
.app-dialog::backdrop { background: rgba(20, 19, 15, 0.32); }
.app-dialog h2 {
  margin: 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.app-dialog p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}
.app-dialog input[type="text"] {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
}
.app-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.app-dialog__actions .btn { padding: 8px 12px; font-size: 13px; }
@media (max-width: 860px) {
  .library-layout { grid-template-columns: 1fr; }
  .folder-nav.portal-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 12px;
  }
  .folder-nav h2 { width: 100%; margin: 0 4px 4px; }
  .folder-nav__tree {
    flex: 1 0 100%;
    width: 100%;
    margin-left: 12px;
  }
  .folder-nav__item,
  .folder-nav__new { width: auto; flex: none; white-space: nowrap; }
  .folder-nav__new { margin-top: 0; }
  .folder-nav__more { display: grid; place-items: center; }
  .folder-nav__form { flex: 1; margin: 0; }
  .demo-row__move { opacity: 1; pointer-events: auto; }
}
.portal .btn { padding: 8px 12px; font-size: 13px; }
.portal .billing-actions { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.portal-banner {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff4d6;
  color: #8a5a00;
  font-size: 13.5px;
  font-weight: 500;
}
.portal-banner:empty { display: none; }
.portal-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 14px;
}
.kpi {
  min-height: 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e7e5e1;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20, 19, 15, 0.04);
}
.kpi span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kpi strong {
  display: block;
  margin: 8px 0 4px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.kpi p { margin: 0; color: var(--ink-2); font-size: 12.5px; line-height: 1.4; }
.kpi p:empty { display: none; }
.portal .credit-balance { margin: 8px 0 4px; visibility: visible; }
.portal .credit-balance b { font-size: inherit; font-family: inherit; }
.portal .credit-balance b:empty::before { content: "£0.00"; color: var(--muted); }
.portal-card {
  margin: 0 0 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e7e5e1;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20, 19, 15, 0.04);
}
.portal-card .usage-heading { margin-bottom: 12px; }
.portal-card h2 {
  margin: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.portal-card .portal-card-lead { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; }
.usage-meter {
  --usage: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.usage-ring {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--usage) * 1%), #eee9e2 0);
}
.usage-ring::before {
  content: "";
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  grid-area: 1 / 1;
}
.usage-ring b {
  grid-area: 1 / 1;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  z-index: 1;
}
.usage-meter-copy progress { margin: 0; height: 10px; }
.usage-meter-copy .meta { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; }
.portal-section { margin: 8px 0 24px; }
.portal-section-head { margin-bottom: 12px; }
.portal-section-head h2,
.portal .extra-heading {
  margin: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.portal-section-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }
.plan-card {
  display: grid;
  align-content: start;
  gap: 0;
  margin: 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e7e5e1;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20, 19, 15, 0.04);
}
.plan-card h2 {
  margin: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.plan-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan-card .billing-price { margin: 6px 0 0; font-family: var(--font-display); letter-spacing: -0.03em; }
.plan-card-lead { margin: 6px 0 10px; color: var(--ink-2); font-size: 13px; }
.plan-card ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; }
.plan-card li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 13px;
}
.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.plan-card .btn { justify-self: start; }
.plan-badge {
  flex: none;
  margin: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan-card--featured { border-color: #d8cfc4; box-shadow: 0 6px 18px rgba(20, 19, 15, 0.05); }
.plan-card[data-current] { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 19, 15, 0.08); }
.plan-card .btn:disabled { background: var(--bg-2); color: var(--ink); border-color: transparent; }
.portal-footnote { margin: 12px 0 0; color: var(--muted); font-size: 12.5px; }
.portal #credit-note { margin: 0 0 12px; }
.portal .packs { margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) {
  .portal .packs { grid-template-columns: 1fr; }
}
@container (max-width: 900px) {
  .portal-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 720px) {
  .usage-meter { grid-template-columns: 1fr; justify-items: start; }
}
@container (max-width: 540px) {
  .billing-plans { grid-template-columns: 1fr; }
  .portal-kpis { grid-template-columns: 1fr; }
}

/* New demo: split form and guide, with a step rail. */
.create-head { margin-bottom: 14px; }
.create-head .lede { margin-bottom: 10px; }
.create-steps {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.create-steps li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.create-steps li span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eceae6;
  color: var(--ink-2);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.panel[data-step="website"] [data-step-item="website"],
.panel[data-step="screens"] [data-step-item="screens"],
.panel[data-step="build"] [data-step-item="build"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 19, 15, 0.06);
}
.panel[data-step="website"] [data-step-item="website"] span,
.panel[data-step="screens"] [data-step-item="screens"] span,
.panel[data-step="build"] [data-step-item="build"] span {
  background: var(--ink);
  color: #fff;
}
.create-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 14px;
  align-items: start;
}
.create-stage:has(#form[hidden]) { display: none; }
.create-form { margin: 0; gap: 12px; }
.field--lead input { padding: 8px 12px; font-size: 14px; }
.create-form textarea { min-height: 72px; padding: 8px 12px; font-size: 14px; }
.create-form input[type="url"],
.create-form input[type="text"] {
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
}
.create-form input::placeholder,
.create-form textarea::placeholder,
.browser-capture input::placeholder {
  font-size: 13px;
  color: #aaa398;
}
.create-form label.field,
.browser-capture label.field { gap: 4px; font-size: 13px; }
.create-guide {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e7e5e1;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20, 19, 15, 0.04);
}
.create-guide h2 {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.create-guide ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.create-guide li { display: grid; gap: 2px; padding-left: 30px; position: relative; }
.create-guide li::before {
  counter-increment: create;
  content: counter(create);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
}
.create-guide ol { counter-reset: create; }
.create-guide strong { font-size: 13.5px; }
.create-guide li span { color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.create-guide__preview { margin-top: 14px; padding: 12px; background: #f3f0ff; border-radius: 12px; }
.create-picker { margin: 0; }
.browser-capture { display: grid; gap: 12px; margin: 0; padding: 16px 18px; }
.browser-capture[hidden] { display: none; }
.browser-capture__head { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.browser-capture__head h2 { margin: 2px 0 4px; }
.browser-capture__head .hint { margin: 0; max-width: 68ch; font-size: 13px; }
.browser-capture__meta { display: grid; justify-items: end; gap: 6px; flex: none; }
.browser-capture__count {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
}
.browser-capture__time {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.browser-capture__frame-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  border: 1px solid #d9d6cf;
  border-radius: 16px;
  background: #171717;
}
.browser-capture__frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.browser-capture__loading { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 600; }
.browser-capture__frame-wrap[data-ready] .browser-capture__loading { display: none; }
.browser-capture__controls { display: grid; grid-template-columns: minmax(280px, 1fr) auto; gap: 12px; align-items: end; }
.browser-capture__controls input[type="text"] {
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
}
.browser-capture__controls .field { margin: 0; }
.browser-capture__saved { display: flex; gap: 10px; overflow-x: auto; }
.browser-capture__saved:empty { display: none; }
.browser-capture__saved img { width: 148px; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); border-radius: 10px; }
.create-picker__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.create-picker__head h2 { margin: 0; }
.create-picker__head .hint { margin-top: 4px; font-size: 13px; }
.build-action { position: relative; display: inline-flex; }
.build-credit-popover {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  right: 0;
  width: min(300px, calc(100vw - 40px));
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid #dedbd5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(20, 19, 15, 0.14), 0 2px 8px rgba(20, 19, 15, 0.06);
}
.build-credit-popover[hidden] { display: none; }
.build-credit-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 28px;
  width: 10px;
  height: 10px;
  border-top: 1px solid #dedbd5;
  border-left: 1px solid #dedbd5;
  background: #fff;
  transform: rotate(45deg);
}
.build-credit-popover strong { display: block; font-size: 14px; font-weight: 600; }
.build-credit-popover p { margin: 6px 0 12px; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.build-credit-popover .btn { width: 100%; box-sizing: border-box; }
.create-build {
  max-width: 560px;
  margin: 0;
  padding: 18px 20px;
}
.create-build h1 { font-size: 22px; }
.create-build .lede { margin: 6px 0 14px; font-size: 13px; }
.create-build .build-wait__time {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.03em;
}
@media (max-width: 980px) {
  .create-stage { grid-template-columns: 1fr; }
  .create-guide__preview { display: none; }
  .browser-capture__controls { grid-template-columns: 1fr; }
  .browser-capture__frame-wrap { min-height: 300px; }
}

.app-switch {
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}
.team-card { display: grid; gap: 12px; }
.portal-card-head { display: grid; gap: 2px; }
body[data-page="team"] .portal { max-width: 720px; }
body[data-page="team"] .portal-card .meta { margin: 4px 0 0; font-size: 12.5px; }
body[data-page="team"] .team-control-row input,
body[data-page="team"] .team-invite input,
body[data-page="team"] .team-invite select,
body[data-page="team"] .member-row select {
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
}
body[data-page="team"] input::placeholder {
  font-size: 13px;
  color: #aaa398;
}
body[data-page="team"] .team-invite select,
body[data-page="team"] .member-row select {
  padding-right: 32px;
  background-position: right 10px center;
}
body[data-page="team"] label.field { gap: 4px; font-size: 13px; }
body[data-page="team"] .btn { padding: 8px 12px; font-size: 13px; }
.team-control-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.team-control-row input { flex: 1; min-width: 0; }
.team-control-row .btn { flex: none; }
.team-invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px auto;
  gap: 10px;
  align-items: end;
}
.member-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e7e5e1;
  border-radius: 12px;
  background: #fff;
}
.member-list:empty { display: none; }
.member-skeleton {
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(105deg, transparent 20%, #f5f3ee 40%, transparent 60%);
  background-size: 220% 100%;
  animation: demo-loading 1.2s ease-in-out infinite;
}
.member-skeleton:last-child { border-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .member-skeleton { animation: none; } }
.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #eeeae4;
}
.member-row:last-child { border-bottom: 0; }
.member-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.member-row div { display: grid; flex: 1; min-width: 0; }
.member-row strong { font-size: 13.5px; }
.member-row span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-role {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}
.member-row select, .member-row .btn { flex: none; }
.field select, .member-row select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2314130f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5 6 6l4.5-4.5'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 36px 12px 14px;
  font: inherit;
}
.field select { width: 100%; }
.member-row select { width: auto; min-width: 118px; }
.field select:focus, .member-row select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(20, 19, 15, 0.08);
}
@media (max-width: 720px) {
  .member-row { flex-wrap: wrap; }
  .team-invite { grid-template-columns: 1fr; }
  .team-invite .btn { justify-self: start; }
}

/* Login and signup */
.account-auth {
  background:
    radial-gradient(circle at 12% 88%, rgba(240, 81, 43, 0.07), transparent 26rem),
    #f7f4ed;
}
.account-auth nav { background: rgba(247, 244, 237, 0.88); }
.account-auth nav .wrap { min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.account-auth nav .actions { align-items: center; }
.nav-prompt { color: var(--muted); font-size: 13.5px; }
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.82fr);
  gap: clamp(56px, 8vw, 112px);
  align-items: center;
  min-height: calc(100vh - 77px);
  padding-top: 52px;
  padding-bottom: 72px;
}
.auth-story { max-width: 540px; }
.auth-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}
.auth-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.auth-story h2 {
  max-width: 500px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 62px);
  font-weight: 800;
  letter-spacing: -0.048em;
  line-height: 0.98;
}
.auth-story > p:not(.auth-eyebrow, .auth-note) {
  max-width: 500px;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
}
.auth-steps {
  display: grid;
  gap: 15px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.auth-steps li { display: flex; align-items: center; gap: 14px; }
.auth-steps li > span {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d9d2c6;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.auth-steps div { display: grid; line-height: 1.3; }
.auth-steps strong { font-size: 14.5px; }
.auth-steps small { margin-top: 2px; color: var(--muted); font-size: 13px; }
.auth-preview {
  width: min(460px, 92%);
  margin: 34px 0 0 28px;
  overflow: hidden;
  border: 1px solid #dcd6ca;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(55, 43, 27, 0.13);
  transform: rotate(-1.3deg);
}
.auth-preview__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid #ebe7df;
  background: #f8f6f1;
}
.auth-preview__bar i { width: 6px; height: 6px; border-radius: 50%; background: #d8d3c9; }
.auth-preview__bar i:first-child { background: var(--accent); }
.auth-preview__bar span {
  margin-left: 7px;
  color: #989286;
  font-family: var(--font-mono);
  font-size: 8px;
}
.auth-preview__body {
  display: grid;
  gap: 9px;
  min-height: 148px;
  align-content: center;
  padding: 25px 32px;
  background: linear-gradient(120deg, #fff 60%, #f9e2da 60%);
}
.auth-preview__body b { max-width: 250px; font-family: var(--font-display); font-size: 21px; letter-spacing: -0.03em; line-height: 1.1; }
.auth-preview__body span { width: 53%; height: 5px; border-radius: 4px; background: #e8e4dc; }
.auth-preview__body span + span { width: 38%; }
.auth-preview__body em { margin-top: 5px; color: var(--accent-ink); font-size: 10px; font-style: normal; font-weight: 600; }
.auth-form-panel {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  padding: 38px 40px 34px;
  border: 1px solid #e1dcd2;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 56px rgba(55, 43, 27, 0.09);
}
.auth-form-panel .auth-eyebrow { margin-bottom: 13px; }
.account-page .auth-form-panel h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.auth-form-panel .lede { margin: 11px 0 26px; font-size: 15px; line-height: 1.5; }
.auth-card { gap: 17px; }
.auth-card label.field { gap: 7px; font-size: 13.5px; }
.auth-card .field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 600;
}
.auth-card .field-label a { color: var(--accent-ink); font-size: 12.5px; font-weight: 600; }
.auth-card .field-label a:hover { color: var(--ink); }
.auth-card .field-label small { color: var(--muted); font-size: 11.5px; font-weight: 400; }
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  min-height: 49px;
  padding: 11px 13px;
  border-color: #dcd6ca;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
}
.auth-card input::placeholder { color: #aaa398; }
.auth-submit {
  justify-content: space-between;
  width: 100%;
  margin-top: 3px;
  padding: 13px 17px;
  border-radius: 10px;
}
.auth-submit span { color: inherit; font-size: 18px; font-weight: 400; transition: transform 0.15s; }
.auth-submit:hover span { transform: translateX(3px); }
.auth-terms { margin: 15px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.auth-terms a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.auth-switch { margin-top: 24px; text-align: center; }
.auth-switch a { font-weight: 600; }
.auth-form-panel .form-error { margin: -8px 0 18px; font-size: 13.5px; }
.auth-workspace {
  width: min(475px, 94%);
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid #ddd7cc;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 60px rgba(55, 43, 27, 0.12);
}
.auth-workspace__head,
.auth-workspace__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.auth-workspace__head { padding: 15px 17px; border-bottom: 1px solid #ebe7df; font-size: 12px; font-weight: 600; }
.auth-workspace__head i { padding: 5px 9px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 9px; font-style: normal; }
.auth-workspace__row { padding: 13px 17px; border-bottom: 1px solid #eeeae3; font-size: 11.5px; }
.auth-workspace__row:last-child { border-bottom: 0; }
.auth-workspace__row b { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.auth-workspace__row b em { width: 30px; height: 22px; border-radius: 5px; background: linear-gradient(135deg, #f6c7b8, #f8e9d7); }
.auth-workspace__row:nth-child(3) b em { background: linear-gradient(135deg, #bfcde9, #ece9f8); }
.auth-workspace__row:nth-child(4) b em { background: linear-gradient(135deg, #bfdbc5, #e5f0df); }
.auth-workspace__row > span { color: var(--muted); font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; }
.auth-note { display: flex; align-items: center; gap: 9px; margin: 18px 0 0; color: var(--ink-2); font-size: 13px; }
.auth-note span { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #e0efe3; color: #26713e; font-size: 10px; font-weight: 700; }

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; gap: 42px; max-width: 600px; min-height: 0; padding-top: 42px; }
  .auth-form-panel { grid-row: 1; justify-self: center; }
  .auth-story { grid-row: 2; max-width: 100%; }
  .auth-story h2 { font-size: 40px; }
  .auth-preview, .auth-workspace { width: 100%; margin-left: 0; }
}
@media (max-width: 560px) {
  .account-auth nav .wrap { min-height: 64px; }
  .nav-prompt { display: none; }
  .auth-shell { gap: 36px; padding: 28px 18px 56px; }
  .auth-form-panel { padding: 29px 24px 26px; border-radius: 19px; }
  .account-page .auth-form-panel h1 { font-size: 30px; }
  .auth-story h2 { font-size: 36px; }
  .auth-story > p:not(.auth-eyebrow, .auth-note) { font-size: 15.5px; }
  .auth-preview { margin-top: 28px; transform: none; }
  .auth-terms { font-size: 11px; }
}
