/* Paper & Rose (2026-11-23, owner chose "A"): the app's design system in one place, loaded last.
   Warm paper page, white cards, warm hairlines; ink-black pill for the main action; rose (the
   "Heart" in HeartMuLa) only for music moments: play, selection, progress. The logo stays ink.
   Type: Onest (OFL, self-hosted in ./fonts), medium weight for interface text.
   Warm light base, hairlines, pills and quiet motion,
   with our own rose brand colour, radii and type scale.
   NOT converted by scripts/paper_theme_convert.py (it is already light). */
@font-face { font-family: "Onest"; src: url("./fonts/onest-cyrillic-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; src: url("./fonts/onest-cyrillic.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("./fonts/onest-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; src: url("./fonts/onest-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root, body:has(.studio-shell) {
  --pr-page: #faf8f5; --pr-card: #ffffff; --pr-sunken: #f5f2ee; --pr-raised: #f3efe9;
  --pr-line: #ebe5dd; --pr-line-strong: #ddd5cb; --pr-hover: rgba(27, 22, 19, .045); --pr-press: rgba(27, 22, 19, .08);
  --pr-ink: #1b1613; --pr-ink-2: #4f4741; --pr-ink-3: #756c64; --pr-ink-4: #a89f97;
  --pr-rose: #e23d5b; --pr-rose-hover: #cc2f4d; --pr-rose-deep: #b3243f; --pr-rose-soft: #fdecef; --pr-rose-line: #f4a3b2;
  --pr-red: #c0392b;
  --pr-r-panel: 18px; --pr-r-card: 16px; --pr-r-input: 12px; --pr-r-pill: 999px;
  --pr-shadow-card: 0 0 0 1px var(--pr-line), 0 1px 2px rgba(27, 22, 19, .04);
  --pr-shadow-pop: 0 0 0 1px var(--pr-line), 0 12px 32px -12px rgba(27, 22, 19, .18);
  --pr-ease: cubic-bezier(.16, 1, .3, 1); --pr-ease-quick: cubic-bezier(.4, 0, .2, 1);
  --pr-font: "Onest", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hm-blue: var(--pr-rose); --hm-blue-fill: var(--pr-ink); --hm-blue-fill-hover: #2e2722;
  --hm-blue-edge: 0 1px 2px rgba(27, 22, 19, .18); --hm-blue-soft: var(--pr-rose-soft); --hm-blue-line: var(--pr-rose-line); --hm-blue-ring: var(--pr-rose-line);
  --paper: var(--pr-page); --paper-deep: var(--pr-page); --panel: var(--pr-card); --panel-bg: var(--pr-card); --surface: var(--pr-card); --surface-solid: var(--pr-card);
  --ink: var(--pr-ink); --muted: var(--pr-ink-3); --line: var(--pr-line); --line-strong: var(--pr-line-strong);
  --blue: var(--pr-rose); --violet: var(--pr-rose); --mint: var(--pr-rose); --panel-radius: var(--pr-r-panel);
  color-scheme: light;
}
html, body:has(.studio-shell) { background: var(--pr-page); color: var(--pr-ink); }
body, body:has(.studio-shell), body:has(.studio-shell) button, body:has(.studio-shell) input, body:has(.studio-shell) textarea, body:has(.studio-shell) select { font-family: var(--pr-font); }
body:has(.studio-shell) { -webkit-font-smoothing: antialiased; }
html:has(.workspace-startup) { background: var(--pr-page); }

.studio-shell { background: var(--pr-page); }
.studio-shell > .sidebar, .studio-shell > .main, .studio-shell .creation-results-pane, body.has-track-details .track-details-pane {
  background: var(--pr-card); border-radius: var(--pr-r-panel); box-shadow: var(--pr-shadow-card); }
body:has(.studio-shell) .playback-dock { background: rgba(255, 255, 255, .92); box-shadow: 0 -1px 0 var(--pr-line); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); }
.playback-dock .playback-subtitle, .playback-dock time { color: var(--pr-ink-3); }

body:has(.studio-shell) h1, body:has(.studio-shell) h2, body:has(.studio-shell) h3 { color: var(--pr-ink); letter-spacing: -.015em; }
body:has(.studio-shell) .project-track-name, body:has(.studio-shell) .plaza-title, body:has(.studio-shell) .creation-form-card-head,
body:has(.studio-shell) .track-details-heading h2 { font-weight: 600; color: var(--pr-ink); }
body:has(.studio-shell) .nav-button, body:has(.studio-shell) .button, body:has(.studio-shell) .style-chip, body:has(.studio-shell) .plaza-genre { font-weight: 500; }
body:has(.studio-shell) .work-style, body:has(.studio-shell) .project-track-meta, body:has(.studio-shell) .meta, .plaza-author-name, .studio-settings-hint,
.track-details-section h3, .track-details-pane .track-details-eyebrow, .sidebar-plan-detail, .billing-fine-print { color: var(--pr-ink-3) !important; }
.studio-shell .creation-type-tabs button, .studio-shell [role="tablist"] button, .studio-shell .creation-tab { color: var(--pr-ink-3); }

.studio-shell .sidebar .nav-button, .studio-shell .sidebar .sidebar-create { color: var(--pr-ink-2) !important; border-radius: 12px; transition: background-color .15s var(--pr-ease-quick), color .15s var(--pr-ease-quick); }
.studio-shell .sidebar .nav-button:hover, .studio-shell .sidebar .sidebar-create:hover { background: var(--pr-hover); color: var(--pr-ink) !important; }
.studio-shell .sidebar .nav-button.active, .studio-shell .sidebar .sidebar-create.active { background: var(--pr-raised) !important; color: var(--pr-ink) !important; }
.studio-shell .sidebar .nav-button.active *, .studio-shell .sidebar .sidebar-create.active * { color: var(--pr-ink) !important; }

.hm-primary, .studio-shell .control-plan-actions .button.accent, .track-details-pane .button.accent.track-details-remix,
.studio-shell .billing-page .billing-plan.recommended .button.block, .billing-pay-dialog .billing-pay-continue, button.invite-copy,
body:has(.studio-shell) .button.primary {
  background: var(--pr-ink) !important; color: #fff !important; border: 0; border-radius: var(--pr-r-pill) !important; box-shadow: 0 1px 2px rgba(27, 22, 19, .18) !important; }
.hm-primary *, .studio-shell .control-plan-actions .button.accent *, .track-details-pane .button.accent.track-details-remix *, body:has(.studio-shell) .button.primary * { color: #fff !important; }
.studio-shell .control-plan-actions .button.accent:hover:not(:disabled), .track-details-pane .button.accent.track-details-remix:hover,
.billing-pay-dialog .billing-pay-continue:hover, button.invite-copy:hover, body:has(.studio-shell) .button.primary:hover:not(:disabled) { background: #2e2722 !important; }
.studio-shell .control-plan-actions .button.accent:disabled { background: var(--pr-raised) !important; color: #8a8079 !important; box-shadow: none !important; opacity: 1; filter: none; }
.studio-shell .control-plan-actions .button.accent:disabled * { color: #8a8079 !important; }
body:has(.studio-shell) .button.secondary, body:has(.studio-shell) .button.ghost, .track-details-pane .track-details-actions .button:not(.accent) {
  background: var(--pr-card); color: var(--pr-ink); border: 1px solid var(--pr-line-strong); border-radius: var(--pr-r-pill); box-shadow: none; }
body:has(.studio-shell) .button.secondary:hover, body:has(.studio-shell) .button.ghost:hover { background: var(--pr-sunken); }
.studio-shell .card-head-actions button, .studio-shell .lyrics-import-action, .studio-shell .lyrics-generate-action, .batch-generation-control, .batch-generation-control * { color: var(--pr-ink-2) !important; }

.studio-shell textarea, .studio-shell input[type="text"], .studio-shell input[type="search"], .studio-shell input[type="email"], .plaza-search-input, .studio-shell .mula-select-trigger, body:has(.studio-shell) .mula-select-trigger {
  background: var(--pr-sunken); border: 1px solid var(--pr-line); color: var(--pr-ink); border-radius: var(--pr-r-input); }
body:has(.studio-shell) .mula-select-value, body:has(.studio-shell) .mula-select-trigger * { color: var(--pr-ink) !important; }
.studio-shell textarea::placeholder, .studio-shell input::placeholder, .plaza-search-input::placeholder { color: var(--pr-ink-4); }
.studio-shell textarea:focus, .studio-shell input:focus, .plaza-search-input:focus { outline: none; border-color: var(--pr-rose-line); box-shadow: 0 0 0 3px var(--pr-rose-soft); background: var(--pr-card); }
.studio-shell .creation-form-card-direction, .studio-shell .creation-form-card-lyrics, .studio-shell .simple-description-card {
  background: var(--pr-card); border: 1px solid var(--pr-line); border-radius: var(--pr-r-card); }
.studio-shell .creation-form-card-direction textarea, .studio-shell .creation-form-card-lyrics textarea, .studio-shell .simple-description-card textarea { background: transparent; border: 0; box-shadow: none; }

.studio-shell .style-chip, .plaza-genre { background: var(--pr-card); border: 1px solid var(--pr-line-strong); color: var(--pr-ink-2); border-radius: var(--pr-r-pill); }
/* The seasonal idea (Christmas with a name, until 26 December): the rose accent marks it as the one to try. */
.studio-shell .style-chip.style-chip-season { border-color: #f4a3b2; background: #fdf1f3; color: #b8264a; }
.studio-shell .style-chip:hover:not(:disabled), .plaza-genre:hover { background: var(--pr-sunken); color: var(--pr-ink); }
.studio-shell .style-chip.on, .plaza-genre.on { background: var(--pr-rose-soft); border-color: var(--pr-rose-line); color: var(--pr-rose-deep); }
body:has(.studio-shell) :focus-visible { outline: 2px solid var(--pr-rose-line); outline-offset: 2px; }
.model-tag, .track-kind-model { background: var(--pr-rose-soft) !important; color: var(--pr-rose-deep) !important; }
.plaza-publish-status { background: var(--pr-raised) !important; color: var(--pr-ink-2) !important; }
.plaza-publish.is-published .plaza-publish-status::before, .plaza-publish-status::before { background: var(--pr-rose) !important; }
.plaza-publish-action { color: var(--pr-ink-2) !important; border-color: var(--pr-line-strong) !important; }
.credit-generations, .credit-positive { color: var(--pr-ink-2) !important; }

.track-details-play, .plaza-tile:hover .plaza-play { background: var(--pr-rose) !important; color: #fff !important; }
body:has(.studio-shell) input[type="range"] { accent-color: var(--pr-rose); }

.studio-shell .work-row, .starter-card, .starter-song, .plaza-tile { transition: background-color .15s var(--pr-ease-quick), box-shadow .2s var(--pr-ease-quick), transform .35s var(--pr-ease); }
.studio-shell .work-row:hover, .starter-song:hover { background: var(--pr-hover); }
.starter-card { background: var(--pr-card); border-color: var(--pr-line); }
.starter-card:hover { background: var(--pr-sunken); border-color: var(--pr-line-strong); }
.starter-card-icon { background: var(--pr-rose-soft); color: var(--pr-rose-deep); }
.starter-plaza-link { color: var(--pr-rose-deep); }
.starter-guide h3, .starter-card-copy strong, .starter-song-copy strong { color: var(--pr-ink); }
.starter-guide-lead, .starter-card-copy span, .starter-song-copy span, .starter-trending h4 { color: var(--pr-ink-3); }

body:has(.studio-shell) dialog, .mula-select-menu, .work-menu, .notifications-panel { background: var(--pr-card); color: var(--pr-ink); border: 0; box-shadow: var(--pr-shadow-pop); border-radius: var(--pr-r-card); }
body:has(.studio-shell) dialog::backdrop { background: rgba(27, 22, 19, .28); }
.toast-region .toast, .generation-status-dock { background: var(--pr-ink); color: #fff; border: 0; box-shadow: 0 12px 32px -12px rgba(27, 22, 19, .45); }
.toast-region .toast *, .generation-status-dock * { color: #fff; }
html:has(.studio-shell), body:has(.studio-shell) * { scrollbar-color: #d9d1c7 transparent; }

/* ---- Motion (fish.audio-like timing: 150 ms colour, ~300–500 ms reveals on a soft ease-out).
   Entrance only where content really appears; the create form redraws often, so rows do not animate. */
@keyframes pr-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pr-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pr-slide-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes pr-fade { from { opacity: 0; } to { opacity: 1; } }
body:has(.studio-shell) dialog[open] { animation: pr-pop .32s var(--pr-ease) both; }
/* A phone's bottom sheets rise from the edge; they never scale. */
@media (max-width: 767px) { body:has(.studio-shell) dialog.share-sheet[open] { animation-name: pr-rise; } }
body:has(.studio-shell) dialog[open]::backdrop { animation: pr-fade .2s var(--pr-ease-quick) both; }
.mula-select-menu:not([hidden]), .work-menu:not([hidden]), .notifications-panel { animation: pr-pop .22s var(--pr-ease) both; transform-origin: top; }
body.has-track-details .track-details-pane { animation: pr-slide-in .38s var(--pr-ease) both; }
.toast-region .toast { animation: pr-rise .32s var(--pr-ease) both; }
.starter-guide > * { animation: pr-rise .5s var(--pr-ease) both; }
.starter-guide > :nth-child(2) { animation-delay: .04s; } .starter-guide > :nth-child(3) { animation-delay: .08s; }
.starter-guide > :nth-child(4) { animation-delay: .12s; } .starter-guide > :nth-child(5) { animation-delay: .16s; }
.plaza-grid > .plaza-tile { animation: pr-rise .45s var(--pr-ease) both; }
.plaza-grid > .plaza-tile:nth-child(2) { animation-delay: .03s; } .plaza-grid > .plaza-tile:nth-child(3) { animation-delay: .06s; }
.plaza-grid > .plaza-tile:nth-child(4) { animation-delay: .09s; } .plaza-grid > .plaza-tile:nth-child(n+5) { animation-delay: .12s; }

/* Hover lift on things you pick up; press feedback on everything you press. */
.plaza-tile .plaza-cover, .plaza-tile img { transition: transform .5s var(--pr-ease); }
.plaza-tile:hover img { transform: scale(1.035); }
.starter-card:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -12px rgba(27, 22, 19, .35); }
body:has(.studio-shell) .button, .style-chip, .plaza-genre, .starter-card, .project-track-play, .plaza-play, .track-details-play {
  transition: background-color .15s var(--pr-ease-quick), color .15s var(--pr-ease-quick), border-color .15s var(--pr-ease-quick), transform .15s var(--pr-ease-quick), box-shadow .2s var(--pr-ease-quick); }
body:has(.studio-shell) .button:active:not(:disabled), .style-chip:active:not(:disabled), .plaza-genre:active, .starter-card:active,
.project-track-play:active, .plaza-play:active, .track-details-play:active { transform: scale(.97); }

@media (prefers-reduced-motion: reduce) {
  body:has(.studio-shell) *, body:has(.studio-shell) *::before, body:has(.studio-shell) *::after { animation: none !important; transition-duration: 0s !important; }
  .plaza-tile:hover img, .starter-card:hover { transform: none; }
}

/* Billing: the recommended plan is a white card with a rose outline and a soft rose glow (its old
   dark gradient does not belong on paper). */
.studio-shell .billing-page .billing-plan { background: var(--pr-card); border: 1px solid var(--pr-line); border-radius: 20px; box-shadow: none; }
.studio-shell .billing-page .billing-plan.recommended {
  background: radial-gradient(120% 70% at 50% 0, rgba(226, 61, 91, .07), transparent 62%), var(--pr-card) !important;
  border: 1.5px solid var(--pr-rose-line) !important; box-shadow: 0 18px 40px -24px rgba(226, 61, 91, .45) !important; }
.studio-shell .billing-page .billing-plan.recommended { color: var(--pr-ink); }
.studio-shell .billing-page .billing-plan.recommended .billing-plan-description, .studio-shell .billing-page .billing-plan .billing-plan-description,
.studio-shell .billing-page .billing-plan .meta { color: var(--pr-ink-3) !important; }
.studio-shell .billing-page .billing-plan.recommended .button.block:disabled { background: var(--pr-rose-soft) !important; color: var(--pr-rose-deep) !important; border-color: var(--pr-rose-line) !important; }
.studio-shell .billing-page .billing-plan.current:not(.recommended) { border-color: var(--pr-line-strong); }

/* Publish status: green only when the song is published; "Not published" is plain text. */
.plaza-publish:not(.is-published) .plaza-publish-status, .track-details-pane .plaza-publish:not(.is-published) .plaza-publish-status { background: none !important; color: var(--pr-ink-3) !important; }

/* Badges: "Recommended" is an ink pill with white text; the MCP tag is a soft green chip. */
.studio-shell .billing-page .billing-plan .status, .studio-shell .billing-page .billing-plan.recommended .status { background: var(--pr-ink) !important; color: #fff !important; border: 0 !important; }
.studio-shell .billing-page .billing-plan.recommended h3, .studio-shell .billing-page .billing-plan.recommended .billing-price { color: var(--pr-ink) !important; }
.nav-mcp-tag { background: none !important; color: var(--pr-ink-3) !important; border: 1px solid var(--pr-line-strong) !important; }

/* Toasts are ink pills whatever their kind; the sidebar's upgrade link reads in deep rose. */
body .toast-region .toast, body .toast-region .toast.success, body .toast-region .toast.info, body .toast-region .toast.error {
  background: var(--pr-ink) !important; color: #fff !important; border: 0 !important; }
body .toast-region .toast * { color: #fff !important; }
body .toast-region .toast .toast-action { color: #ffd0d9 !important; }
.sidebar-plan a, .sidebar-plan .sidebar-plan-link, .sidebar-plan button.link { color: var(--pr-rose-deep) !important; }
body:has(.studio-shell) .sidebar-plan-link { color: var(--pr-ink-2) !important; }
body:has(.studio-shell) .sidebar-plan-link.sidebar-plan-next, body:has(.studio-shell) .sidebar-plan-next * { color: var(--pr-rose-deep) !important; }

/* Logo (2026-11-23, from the MuLa logo pack). The old lockup PNG has a white wordmark, which vanishes
   on paper: the sidebar and the phone's top bar use the ink lockup (tile + "HeartMuLa", cropped, no
   padding to offset); empty cover slots use the bare monogram, faint. Favicon/app icon stay the tile. */
.studio-shell .studio-brand { height:auto; min-height:0; max-width:none; overflow:visible; margin:4px 12px 28px; }
.studio-shell .studio-brand img,
.studio-brand img { position:static; display:block; width:auto; max-width:100%; height:30px; transform:none; filter:none; mix-blend-mode:normal; }
@media (max-width: 767px) {
  .studio-shell header.topbar::before { width:84px !important; height:26px !important; background:url("./home/heartmula-assets/heartmula-lockup-ink.svg") left center / contain no-repeat !important; }
}
.plaza-placeholder { background:url("./home/heartmula-assets/mula-monogram-2026.svg") center / 46% no-repeat !important; opacity:.16 !important; }

/* One type family: the billing headings were a system serif. */
.studio-shell .billing-page { --bill-serif: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif; }
.studio-shell .billing-page .billing-plans h3,
.studio-shell .billing-page .billing-faq h3,
.studio-shell .billing-page .billing-compare-head { font-weight: 600; letter-spacing: -.025em; }

/* Batch generation: a plain checkbox row, not a floating card. */
.studio-shell .batch-generation-control .check-row { box-shadow: none; background: none; }
