.home-copy { width: min(80%, 34rem); }
.home-copy h1 { width: min(100%, 32rem); margin-inline: auto; }
.home-copy :is(h1, .slogan) { position: relative; left: clamp(-1.15rem, -1.45vw, -.45rem); }
.home-copy .slogan { font-size: clamp(.875rem, 1.5vw, 1rem); }
.secondary, .collection-filters button, .small-action { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--stroke); border-radius: 999px; padding: .4rem .85rem; cursor: pointer; }
.create-area { width: min(100%, 45rem); margin: 0 auto 1.85rem; text-align: start; }
.explore-stage { width: min(100%, 58rem); margin-inline: auto; }
.orbit-view { min-width: 0; }
.explore-stage .orbit-deck { margin-top: 0; }
.orbit-next { display: grid; place-items: center; width: 3rem; aspect-ratio: 1; margin: 1.2rem auto 0; border: 1px solid #bfa6d5; border-radius: 50%; background: #f1e3f8; color: var(--action); }
.orbit-next span { width: .72rem; height: .85rem; translate: .06rem 0; background: currentColor; clip-path: polygon(10% 0, 100% 50%, 10% 100%); }
.orbit-next:hover { background: var(--action); color: white; }
.form-actions .primary:disabled { opacity: .7; cursor: progress; }
.picture-more { background: radial-gradient(circle at 73% 21%, #fff9f7 0 4%, transparent 5%), linear-gradient(143deg, #e8e2f9, #ebcfe9); }
.picture-more i { display: grid; place-items: center; width: 48%; aspect-ratio: 1; border: 1px solid #a889c2; border-radius: 50%; color: #765694; background: #fbf1fc; font: 500 1.2rem/1 system-ui; }
.card-launch { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .42em; padding: inherit; border-radius: inherit; text-decoration: none; }
.card:focus-within { z-index: 20 !important; }
.card-launch:hover { color: #503766; }

.workspace { width: min(100% - 2rem, 56rem); padding: clamp(2rem, 6vw, 4rem) 0 3rem; text-align: start; }
.workspace h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0; }
.workspace h2 { font-size: 1.2rem; margin: 0 0 .9rem; }
.workspace-intro { color: var(--muted); margin: .65rem 0 1.45rem; }
.studio-area { width: 100%; }
.work-field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.work-field-heading a, .result-heading a { font-size: .85rem; text-underline-offset: .22em; }
.small-action { font-size: .8125rem; padding: .3rem .65rem; }
.work-panel { border: 1px solid #dbccec; border-radius: 1rem; background: var(--surface); padding: clamp(1rem, 4vw, 1.65rem); }
.work-panel fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.work-panel legend, .writing-label { font-weight: 650; margin-bottom: .45rem; }
.choices { display: flex; flex-wrap: wrap; gap: .45rem; }
.choices label { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .67rem; border: 1px solid var(--stroke); border-radius: 999px; font-size: .875rem; cursor: pointer; }
.choices label:has(input:checked) { background: #f0dff8; border-color: var(--action); }
.choices input { margin: 0; accent-color: var(--action); }
.writing-label { display: block; }
.writing-label small { font-size: .78rem; font-weight: 400; color: var(--muted); }
.work-panel :is(input[type="text"], textarea) { width: 100%; padding: .55rem .8rem; color: var(--ink); font: inherit; border: 1px solid var(--stroke); background: #fffaff; border-radius: .75rem; }
.work-panel input[type="text"] { margin-bottom: .9rem; }
.work-panel textarea { min-height: 4rem; resize: vertical; }
.creative-references { margin-top: .6rem; padding: .55rem .75rem; border: 1px solid #dbcceb; border-radius: .75rem; color: var(--ink); }
.creative-references summary, .result-evidence summary { padding: .18rem 0; cursor: pointer; }
.creative-references p, .creative-references label, .result-evidence { font-size: .875rem; }
.creative-references label { display: block; margin: .45rem 0 .2rem; }
.creative-references label small, .creative-references p { color: var(--muted); }
.creative-references input[type="text"] { margin-bottom: .35rem; }
.result-evidence { margin: 0 0 .6rem; color: var(--muted); }
.result-evidence ul { padding-inline-start: 1.25rem; margin: .2rem 0 .4rem; overflow-wrap: anywhere; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .55rem; margin-top: .7rem; }
.form-actions .primary { font: inherit; font-weight: 650; border: 0; cursor: pointer; min-height: 2.65rem; }
.work-status { font-size: .875rem; margin: .55rem 0 0; color: var(--muted); }
.work-status:empty { display: none; }
.result-section { margin-top: 1.35rem; padding: clamp(.85rem, 3vw, 1.35rem); background: linear-gradient(145deg, #fbf1fa, #f1ebfa); border: 1px solid #dfcfea; border-top: 3px solid #c7addc; border-radius: 1rem; }
.result-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .45rem; }
.result-heading h2 { margin-bottom: .25rem; }
.result-section > p { font-size: .875rem; margin: 0 0 .9rem; color: var(--muted); }
.result-section .collection-grid { grid-template-columns: 1fr; }
.result-section .saved-card { background: #fffaff; border-color: #e5d6ee; }
.card-actions button:disabled { opacity: .55; cursor: default; }
.result-footer { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.result-footer .back { margin-inline-start: auto; font-size: .875rem; }
.card-actions button[aria-pressed="true"] { background: #ede0f6; border-color: var(--action); }
.collection-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .95rem; }
.collection-filters button { font-size: .875rem; }
.collection-filters button[aria-pressed="true"] { background: var(--action); border-color: var(--action); color: white; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.saved-card { display: grid; grid-template-columns: 2.35rem minmax(0, 1fr); gap: .7rem; align-items: start; background: #f1eefb; border: 1px solid #ded4f0; border-radius: .8rem; padding: .85rem; }
.saved-card:nth-child(even) { background: #faedf6; border-color: #efd7e8; }
.saved-card[data-kind="material"] { background: #eef4eb; border-color: #d9e6d4; }
.saved-card[data-kind="draft"] { background: #eef3fb; border-color: #d9e2f4; }
.saved-emblem { display: grid; place-items: center; width: 2.35rem; aspect-ratio: 1; border-radius: 50%; background: #e5d7f3; font-size: 1.15rem; }
.saved-card small { display: block; color: var(--muted); font-size: .8rem; }
.saved-card p { overflow-wrap: anywhere; margin: .2rem 0 .45rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.empty-collection { grid-column: 1 / -1; margin: 0; padding: 1.6rem; border: 1px dashed var(--stroke); border-radius: .8rem; color: var(--muted); background: var(--surface); }
.empty-collection p { margin: 0 0 .55rem; }
.empty-collection a { text-underline-offset: .23em; }
#older-materials { margin-top: 1.4rem; }
#older-materials summary { margin-bottom: .65rem; cursor: pointer; }
:is(.workspace, .create-area) button:focus-visible, .work-panel :is(input, textarea):focus-visible, #older-materials summary:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }

@media (max-width: 40rem) {
  .header-row { flex-wrap: wrap; gap: .25rem; padding-top: .65rem; }
  .header-row nav { width: 100%; justify-content: space-between; gap: .45rem; }
  .header-row nav a { font-size: .875rem; }
  .home-copy { width: min(84%, 23rem); }
  .home-copy h1 { width: 100%; }
  .collection-grid { grid-template-columns: 1fr; }
}

