/* =====================================================================
   Diginotes — create flow, result, reader, editor, landing pages
   ===================================================================== */

/* ---------- create flow ---------- */
.flow-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px var(--gutter); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.flow-steps { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(8px, 3vw, 40px); }
.flow-steps button { background: none; border: 0; padding: 8px 2px; cursor: pointer; font: 400 14px/1 var(--sans); color: var(--ink-3); display: inline-flex; gap: 8px; align-items: baseline; border-bottom: 1px solid transparent; }
.flow-steps button:disabled { cursor: default; }
.flow-steps .n { font: 12px var(--mono); letter-spacing: .08em; }
.flow-steps .is-done button { color: var(--ink-2); }
.flow-steps .is-current button { color: var(--ink); border-bottom-color: var(--ink); }
.flow-steps .is-current .n { color: var(--accent); }
.flow-close { font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 8px 0; }
.flow-close:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 620px) {
  .flow-steps li:not(.is-current) button { font-size: 0; gap: 0; }
  .flow-steps li:not(.is-current) .n { font-size: 12px; }
  .logo { font-size: 26px; }
}

.step { padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(64px, 8vw, 120px); max-width: 1440px; margin: 0 auto; animation: step-in .6s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 56px); max-width: 820px; }
.step-head h1:focus { outline: none; }
.step-sub { color: var(--ink-2); font-size: 1.1rem; margin: 0; max-width: 44ch; }
.step-back { margin-top: 36px; }

/* occasion cards: image-led rows on phones, a gallery on larger screens */
.occ-grid { display: grid; gap: 10px; }
.occ { position: relative; display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; text-align: left; padding: 8px; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .25s, background .25s, transform .35s var(--ease); }
.occ-img { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--paper-2); }
.occ-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(.85); }
.occ-txt { display: grid; gap: 4px; min-width: 0; }
.occ-name { font-family: var(--display); font-size: 1.75rem; line-height: 1; }
.occ-line { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.occ-tick { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper-3); transition: background .25s, border-color .25s; }
.occ:hover { border-color: color-mix(in srgb, var(--ink) 40%, transparent); background: var(--paper-3); }
.occ:hover .occ-img img { transform: scale(1.05); filter: saturate(1); }
.occ[aria-checked="true"] { border-color: var(--ink); background: var(--paper-3); box-shadow: inset 0 0 0 1px var(--ink); }
.occ[aria-checked="true"] .occ-tick { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 5px var(--paper-3); }
@media (min-width: 700px) {
  .occ-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
  .occ { grid-template-columns: 1fr; padding: 0; border: 0; gap: 14px; align-content: start; }
  .occ:hover, .occ[aria-checked="true"] { background: transparent; box-shadow: none; }
  .occ-img { aspect-ratio: 4 / 3; }
  .occ-name { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
  .occ-txt { padding-right: 34px; }
  .occ-tick { top: auto; bottom: 4px; right: 0; }
  .occ[aria-checked="true"] .occ-img { outline: 2px solid var(--ink); outline-offset: 4px; }
}

/* style choice */
.style-grid { display: grid; gap: 48px; }
@media (max-width: 760px) {
  .style-grid { grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
  .style-choice { scroll-snap-align: center; }
}
@media (min-width: 761px) { .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); } }
.style-choice { display: grid; gap: 20px; align-content: start; }
.sc-stack { position: relative; display: block; width: 100%; padding: 0 16px 16px 0; background: none; border: 0; cursor: pointer; }
.sc-stack .mini-holder { border-radius: 2px; box-shadow: 0 20px 44px -26px rgba(28, 26, 23, .7); }
.sc-back { position: absolute !important; top: 16px; left: 16px; right: 0; transform: rotate(2.4deg); opacity: .96; transition: transform .6s var(--ease); }
.sc-front { position: relative; transition: transform .6s var(--ease); }
.sc-stack:hover .sc-front, .sc-stack:focus-visible .sc-front { transform: translate(-4px, -6px) rotate(-1.2deg); }
.sc-stack:hover .sc-back { transform: rotate(4deg) translate(6px, 4px); }
.style-choice.is-chosen .sc-front { outline: 2px solid var(--ink); outline-offset: 6px; }
.sc-meta { display: grid; gap: 6px; }
.sc-meta h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 2.6vw, 2.5rem); line-height: 1; margin: 0; }
.sc-blurb { margin: 0; color: var(--ink-2); }
.sc-use { justify-self: start; }
.style-choice.is-chosen .sc-use { background: var(--ink); color: var(--paper-3); }

/* memories form */
.mem-layout { display: grid; gap: 56px; }
@media (min-width: 1080px) { .mem-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: clamp(48px, 6vw, 110px); align-items: start; } }
.mem-form { display: grid; gap: clamp(36px, 4.5vw, 52px); max-width: 680px; }
.mem-form .step-head { margin-bottom: 0; }
.form-foot { display: grid; gap: 14px; justify-items: start; padding-top: 8px; }
.btn-big { min-height: 60px; padding: 0 34px; font-size: 16px; }
.form-error { color: var(--bad); margin: 0; }

.photo-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.photo-list:empty { display: none; }
.photo-item { display: grid; gap: 8px; animation: pi-in .45s var(--ease) both; }
@keyframes pi-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.pi-img { position: relative; aspect-ratio: 4 / 5; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.pi-img img { width: 100%; height: 100%; object-fit: cover; }
.pi-badge { position: absolute; left: 8px; top: 8px; font: 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; background: var(--paper-3); color: var(--ink); padding: 6px 8px; border-radius: 2px; }
.pi-spin { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pi-tools { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.pi-tools button { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.pi-tools button[data-dir] { text-decoration: none; font-size: 16px; min-width: 32px; border: 1px solid var(--line); border-radius: 2px; padding: 2px 8px; }
.pi-tools button:disabled { opacity: .3; cursor: default; }
.pi-tools button:hover:not(:disabled) { color: var(--ink); }

.drop { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 18px; row-gap: 2px; align-items: center; padding: 26px 24px; border: 1px dashed color-mix(in srgb, var(--ink) 40%, transparent); border-radius: var(--radius); background: var(--paper-3); cursor: pointer; transition: background .25s, border-color .25s; }
.drop:hover, .drop.is-over, .drop:focus-visible { background: #fff; border-color: var(--ink); }
.drop-plus { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper-3); font: 400 28px/1 var(--sans); transition: transform .35s var(--ease); }
.drop:hover .drop-plus { transform: rotate(90deg); }
.drop-main { font-family: var(--display); font-size: 1.7rem; line-height: 1; }
.drop-sub { font-size: 14px; color: var(--ink-2); }
.drop-sm { padding: 14px 16px; }
.drop-sm .drop-plus { width: 34px; height: 34px; font-size: 20px; grid-row: auto; }
.drop-sm .drop-main { font-size: 1.25rem; }

.live { display: none; }
@media (min-width: 1080px) {
  .live { display: block; position: sticky; top: 96px; }
  .live-sticky { display: grid; gap: 14px; }
  .live-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .live-style { margin: 0; font-size: 14px; color: var(--ink-2); }
  .live-frame { max-width: none; aspect-ratio: 3 / 4; }
}

/* generation */
.gen { position: fixed; inset: 0; z-index: 40; background: var(--paper); display: grid; place-items: center; padding: 24px var(--gutter); animation: step-in .5s var(--ease) both; }
.gen-in { display: grid; gap: 30px; width: min(560px, 100%); }
.gen-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gen-steps li { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: 1.05rem; transition: color .4s; }
.gen-steps li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1px solid currentColor; flex: none; transition: background .4s, border-color .4s; }
.gen-steps li.now { color: var(--ink); }
.gen-steps li.now::before { background: var(--accent); border-color: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.gen-steps li.done { color: var(--ink-2); }
.gen-steps li.done::before { background: var(--ink); border-color: var(--ink); }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .6; } }
.gen-bar { height: 1px; background: var(--line); overflow: hidden; }
.gen-bar span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.gen-error { display: grid; gap: 16px; justify-items: start; }
.gen-error p { margin: 0; color: var(--bad); font-size: 1.05rem; }

/* result */
.result { display: grid; gap: 48px; padding: clamp(32px, 5vw, 72px) var(--gutter) 96px; max-width: 1440px; margin: 0 auto; align-items: center; }
@media (min-width: 1000px) { .result { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.result-copy { display: grid; gap: 26px; align-content: start; }
.result-copy h1:focus { outline: none; }
.result-copy .display em { color: var(--accent); }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.r-share { max-width: 520px; }
.keep-note { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-3); max-width: 560px; }
.keep-note p { margin: 0; font-size: 15px; color: var(--ink-2); }
.keep-note strong { color: var(--ink); }
.result-book { display: grid; justify-items: center; }
.result .book-frame { opacity: 0; transform: translateY(24px) scale(.97); transition: opacity 1s var(--ease) .15s, transform 1.2s var(--ease) .15s; }
.result.reveal .book-frame { opacity: 1; transform: none; }

/* ---------- reader ---------- */
body.reader { background: #0D0C0B; height: 100%; overflow: hidden; }
html:has(body.reader) { height: 100%; }
.rd-book { position: fixed; inset: 0; }
.rd-head { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px)); pointer-events: none; transition: opacity .5s; }
.rd-head > * { pointer-events: auto; }
.rd-head.idle { opacity: 0; }
.rd-head.idle:focus-within { opacity: 1; }
.rd-head .logo { font-size: 24px; }
.rd-actions { display: flex; gap: 8px; }
.rd-btn { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; font: 700 14px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: color-mix(in srgb, var(--rd-bg, #F4F0E8) 55%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
body.reader { --rd-bg: #ECE2CF; color: #2C251D; }
body.reader[data-theme="cinematic"] { --rd-bg: #0D0C0B; color: #F2ECE3; }
body.reader[data-theme="elegant"] { --rd-bg: #FAF8F4; color: #1D1C1A; }
@media (max-width: 520px) { .rd-head .logo { display: none; } .rd-head { justify-content: flex-end; } .rd-head .rd-actions { position: absolute; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } body.reader .vw-row { justify-content: flex-start; padding-left: 12px; } }
.rd-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(12, 11, 10, .45); display: grid; align-items: end; justify-items: center; }
.rd-sheet-in { width: min(560px, 100%); background: var(--paper); color: var(--ink); padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px)); border-radius: 10px 10px 0 0; display: grid; gap: 18px; animation: sheet-in .4s var(--ease) both; }
@media (min-width: 700px) { .rd-sheet { align-items: center; } .rd-sheet-in { border-radius: 6px; padding: 28px; } }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.rd-sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rd-sheet-head .display-3 { font-size: 1.9rem; }
.rd-missing { position: absolute; inset: 0; display: grid; place-content: center; justify-items: start; gap: 16px; padding: 24px; background: var(--paper); color: var(--ink); max-width: none; }
.rd-missing p { margin: 0; max-width: 40ch; }

/* ---------- editor ---------- */
.ed-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 16px; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ed-status { margin: 0 auto 0 0; font-size: 14px; color: var(--ink-3); }
.ed-head-actions { display: flex; gap: 8px; }
.ed { display: grid; gap: 28px; padding: 24px var(--gutter) 96px; grid-template-areas: "stage" "fields" "side"; }
.ed-stage { grid-area: stage; }
.ed-fields { grid-area: fields; }
.ed-side { grid-area: side; display: grid; gap: 28px; align-content: start; }
@media (min-width: 1100px) {
  .ed { grid-template-columns: 280px minmax(0, 1fr) minmax(340px, 420px); grid-template-areas: "side stage fields"; align-items: start; }
  .ed-stage { position: sticky; top: 90px; }
  .ed-side { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 4px; }
}
@media (min-width: 760px) and (max-width: 1099px) {
  .ed { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "stage fields" "side fields"; align-items: start; }
}
.ed-preview { display: grid; justify-items: center; }
.ed-frame { max-width: 520px; aspect-ratio: 3 / 4; }
.ed-panel { display: grid; gap: 14px; align-content: start; }
.ed-panel-head { display: grid; gap: 6px; }
.ed-h { font: 400 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
.ed-themes { justify-self: start; }
.ed-form { display: grid; gap: 26px; }
.ed-field > label, .ed-field > .label { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.ed-field .input { font-size: 1.05rem; padding: 8px 0 10px; }
.ed-field .textarea { font-size: 1rem; min-height: 5em; }
.label-sm { font-size: 13px; font-weight: 700; }
.ed-moment { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0; display: grid; gap: 14px; }
.ed-moment legend { font: 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding: 0 6px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-opt { position: relative; width: 64px; height: 64px; border-radius: 2px; overflow: hidden; cursor: pointer; background: var(--paper-2); outline: 1px solid var(--line); }
.pick-opt img { width: 100%; height: 100%; object-fit: cover; }
.pick-none { display: grid; place-items: center; height: 100%; font-size: 13px; color: var(--ink-2); }
.pick-opt:has(input:checked) { outline: 2px solid var(--ink); outline-offset: 2px; }
.pick-opt:has(input:checked)::after { content: ""; position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--paper-3); }
.pick-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ed-pages { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.ed-page { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.ed-page-main { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; text-align: left; background: none; border: 0; padding: 12px 4px; cursor: pointer; }
.ed-page-n { font: 12px var(--mono); color: var(--ink-3); }
.ed-page-txt { display: grid; min-width: 0; }
.ed-page-txt strong { font-weight: 700; font-size: 14px; }
.ed-page-txt span { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-page.is-sel { background: var(--paper-3); box-shadow: inset 3px 0 0 var(--ink); }
.ed-page.is-sel .ed-page-n { color: var(--accent); }
.ed-page-tools { display: flex; gap: 2px; }
.ed-page-tools button { width: 32px; height: 32px; background: none; border: 1px solid transparent; border-radius: 2px; cursor: pointer; color: var(--ink-2); }
.ed-page-tools button:hover:not(:disabled) { border-color: var(--line); color: var(--ink); }
.ed-page-tools button:disabled { opacity: .25; cursor: default; }
.ed-page-fixed { font-size: 12px; color: var(--ink-3); padding-right: 6px; white-space: nowrap; }
.ed-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ed-photo { position: relative; aspect-ratio: 1; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.ed-photo img { width: 100%; height: 100%; object-fit: cover; }
.ed-photo-x { position: absolute; top: 3px; right: 3px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(28, 26, 23, .7); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.ed-photo-x:disabled { display: none; }
.ed-gate { min-height: 70vh; display: grid; place-content: center; gap: 12px; padding: 24px var(--gutter); max-width: 640px; margin: 0 auto; }
.ed-gate p { margin: 0; }

/* ---------- landing pages ---------- */
.landing .hero { padding-bottom: clamp(48px, 6vw, 96px); }
.landing-points { display: grid; gap: 28px; }
@media (min-width: 860px) { .landing-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.landing-points h3 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1.05; margin: 0 0 8px; }
.landing-points p { margin: 0; color: var(--ink-2); }
.landing-pages { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.landing-pages li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--ink-2); }

/* ---------- 404 ---------- */
.nf { min-height: 80vh; display: grid; align-content: center; gap: 24px; padding: 48px var(--gutter); max-width: 900px; }
.nf p { margin: 0; color: var(--ink-2); font-size: 1.1rem; max-width: 40ch; }

/* ---------- story form sections ---------- */
.fs { display: grid; gap: 26px; padding-top: 34px; border-top: 1px solid var(--line); }
.fs-h { display: flex; align-items: baseline; gap: 14px; margin: 0; font: 400 clamp(1.9rem, 3.6vw, 2.6rem)/1.05 var(--display); }
.fs-n { font: 12px var(--mono); letter-spacing: .1em; color: var(--accent); transform: translateY(-.35em); }
.fs-hint { margin: -12px 0 0; color: var(--ink-2); max-width: 52ch; }
.opt { font: 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-style: normal; }
.fs .field > label, .fs .field > .label { font-family: var(--sans); font-size: 15px; font-weight: 700; line-height: 1.3; }
.rep { display: grid; gap: 16px; }
.rep-card { position: relative; display: grid; gap: 18px; margin: 0; padding: 22px 20px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-3); min-width: 0; }
.rep-card legend { font: 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding: 0 6px; }
.rep-card.thing { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 16px; }
.rep-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink-3); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
fieldset.rep-card .rep-x { top: -2px; background: var(--paper-3); }
.rep-x:hover { color: var(--bad); }
.rep-grid { display: grid; gap: 18px; }
@media (min-width: 560px) { .rep-grid { grid-template-columns: 1.6fr 1fr; } }
.textarea-sm { min-height: 3.6em; }
.add-btn { justify-self: start; }
.pick-opt { position: relative; }
.pick-auto-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.pick-opt:has(.pick-auto-img) .pick-none { position: relative; z-index: 1; color: #fff; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.music-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.music-row label.btn { cursor: pointer; }
.music-name { font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.ed-check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.ed-check input { width: 18px; height: 18px; accent-color: var(--ink); }
.ed-music-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ed-music-row label.btn { cursor: pointer; }
.ed-field .input:disabled { opacity: .45; }
.ed-add { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ed-select { font: 14px var(--sans); color: var(--ink); background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 10px; min-height: 40px; }
.preview-fab { position: fixed; z-index: 25; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 10px 24px -10px rgba(28, 26, 23, .6); }
@media (min-width: 1080px) { .preview-fab { display: none; } }

/* skip a page */
.fs-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.skip-btn { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; min-height: 36px; cursor: pointer; font: 400 13px/1 var(--sans); color: var(--ink-2); white-space: nowrap; transition: border-color .2s, color .2s, background .2s; }
.skip-btn:hover { border-color: var(--ink); color: var(--ink); }
.skip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper-3); }
.fs.is-skipped > :not(.fs-top):not(.fs-skipped) { display: none; }
.fs.is-skipped .fs-h { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.fs-skipped { margin: -8px 0 0; color: var(--ink-2); font-size: 15px; }
