/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 */
/* Hallmark · genre: atmospheric utility · theme: studied-DNA · macrostructure: Narrative Workflow · variance: 6 · motion: 3 · density: 7 · contrast: pass (40-41) · nav: inherited app shell · footer: method note · slop: pass (42-45) · honest: pass (46) · chrome: inherited · tokens: pass (48) · responsive: pass (34, 49, 50-57) at 320/375/414/768/1280 · icons: pass (30) Phosphor */
html, body { overflow-x: clip; }

.yc365ml {
  width: min(100%, 110rem);
  min-width: 0;
  margin-inline: auto;
  padding: clamp(.85rem, 2.4vw, 2rem);
  color: var(--yc365p-text);
}

.yc365ml [hidden] {
  display: none !important;
}

.yc365ml *, .yc365ml *::before, .yc365ml *::after { box-sizing: border-box; }
.yc365ml button, .yc365ml input, .yc365ml select, .yc365ml textarea { font: inherit; }
.yc365ml button, .yc365ml a { -webkit-tap-highlight-color: transparent; }
.yc365ml :is(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--yc365p-focus); outline-offset: 2px; }
.yc365ml :is(a, button):active { filter: brightness(.94); }
.yc365ml button:disabled { opacity: .55; cursor: not-allowed; }

.yc365ml__intro { display: grid; min-width: 0; gap: 1rem; padding: clamp(.5rem, 2vw, 1.5rem) 0 clamp(1.25rem, 4vw, 2.5rem); border-block-end: 1px solid var(--yc365p-border); }
.yc365ml__eyebrow { display: flex; align-items: center; gap: .5rem; margin: 0 0 .65rem; color: var(--yc365p-blue-strong); font: 700 .7rem/1.2 var(--yc365p-font-mono); letter-spacing: .08em; text-transform: uppercase; }
.yc365ml__intro h1 { min-width: 0; margin: 0; font: 800 clamp(1.85rem, 6vw, 4.25rem)/.95 var(--yc365p-font-display); letter-spacing: -.052em; overflow-wrap: anywhere; }
.yc365ml__intro h1 + p { max-width: 68ch; margin: .85rem 0 0; color: var(--yc365p-text-muted); line-height: 1.6; }
.yc365ml__library-link { display: inline-flex; width: fit-content; min-height: 2.75rem; align-items: center; gap: .45rem; padding-inline: .85rem; border: 1px solid var(--yc365p-border); border-radius: var(--yc365p-radius-md); color: var(--yc365p-text); font-weight: 800; text-decoration: none; white-space: nowrap; }

.yc365ml__workbench { display: grid; min-width: 0; gap: 1px; margin-block-start: 1px; background: var(--yc365p-border); border-block: 1px solid var(--yc365p-border); }
.yc365ml__input, .yc365ml__result, .yc365ml__finish { min-width: 0; padding: clamp(1rem, 3vw, 1.5rem); background: var(--yc365p-surface); color: var(--yc365p-text); }
.yc365ml__section-head { display: grid; grid-template-columns: minmax(0,1fr); gap: .5rem; align-items: start; margin-block-end: 1.15rem; }
.yc365ml__section-head > span { display: grid; width: 2.15rem; height: 2.15rem; place-items: center; border-radius: var(--yc365p-radius-sm); background: var(--yc365p-brand-ink); color: var(--yc365p-white); font: 700 .7rem/1 var(--yc365p-font-mono); }
.yc365ml__section-head h2 { margin: 0; font: 800 clamp(1.2rem, 3vw, 1.55rem)/1 var(--yc365p-font-display); letter-spacing: -.025em; }
.yc365ml__section-head p { margin: .35rem 0 0; color: var(--yc365p-text-muted); font-size: .84rem; line-height: 1.4; }

.yc365ml form { display: grid; gap: 1rem; }
.yc365ml__source-choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.yc365ml__source-choice legend { margin-block-end: .45rem; font-weight: 750; }
.yc365ml__source-choice > div { display: grid; grid-template-columns: minmax(0,1fr); gap: .55rem; }
.yc365ml__source-choice label { position: relative; display: grid; grid-template-columns: 1.25rem minmax(0,1fr); min-width: 0; min-height: 3rem; align-items: center; gap: .5rem; padding: .65rem .75rem; border: 1px solid var(--yc365p-border); border-radius: var(--yc365p-radius-md); outline: 2px solid transparent; outline-offset: 1px; background: var(--yc365p-surface-soft); color: var(--yc365p-text-muted); font-size: .78rem; font-weight: 800; cursor: pointer; }
.yc365ml__source-choice label:has(input:checked) { border-color: var(--yc365p-blue-strong); background: var(--yc365p-blue-wash); color: var(--yc365p-text); }
.yc365ml__source-choice label:focus-within { outline-color: var(--yc365p-focus); }
.yc365ml__source-choice input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.yc365ml__source-choice i { color: var(--yc365p-blue-strong); font-size: 1.15rem; }
.yc365ml__drop { display: grid; min-height: 10.5rem; place-items: center; align-content: center; gap: .4rem; padding: 1rem; border: 1px dashed var(--yc365p-border-strong); border-radius: var(--yc365p-radius-md); outline: 2px solid transparent; outline-offset: 1px; background: var(--yc365p-surface-soft); color: var(--yc365p-text); text-align: center; cursor: pointer; }
.yc365ml__drop.is-dragging, .yc365ml__drop:focus-within { outline-color: var(--yc365p-focus); background: var(--yc365p-blue-wash); }
.yc365ml__drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.yc365ml__drop i { color: var(--yc365p-blue-strong); font-size: 1.8rem; }
.yc365ml__drop strong { max-width: 100%; overflow-wrap: anywhere; }
.yc365ml__drop span { color: var(--yc365p-text-muted); font-size: .76rem; line-height: 1.45; }
.yc365ml__music-picker { display: grid; min-width: 0; gap: .65rem; }
.yc365ml__music-state { display: grid; grid-template-columns: 1.25rem minmax(0,1fr); min-height: 4rem; align-items: center; gap: .6rem; padding: .8rem; border: 1px solid var(--yc365p-border); border-radius: var(--yc365p-radius-md); background: var(--yc365p-surface-soft); color: var(--yc365p-text-muted); font-size: .78rem; line-height: 1.45; }
.yc365ml__music-state i { color: var(--yc365p-blue-strong); font-size: 1.15rem; animation: yc365ml-spin 1s linear infinite; }
.yc365ml__music-state.is-empty i { animation: none; }
.yc365ml__music-list { display: grid; max-height: 20rem; gap: .45rem; overflow-y: auto; overscroll-behavior: contain; }
.yc365ml__music-item { display: grid; grid-template-columns: 3.25rem minmax(0,1fr) 1.25rem; min-width: 0; min-height: 4.25rem; align-items: center; gap: .7rem; padding: .45rem .65rem .45rem .45rem; border: 1px solid var(--yc365p-border); border-radius: var(--yc365p-radius-md); outline: 2px solid transparent; outline-offset: 1px; background: var(--yc365p-surface); color: var(--yc365p-text); text-align: start; cursor: pointer; }
.yc365ml__music-item[aria-selected="true"] { border-color: var(--yc365p-blue-strong); background: var(--yc365p-blue-wash); }
.yc365ml__music-item__cover { display: grid; width: 3.25rem; height: 3.25rem; place-items: center; overflow: hidden; border-radius: var(--yc365p-radius-sm); background: var(--yc365p-brand-ink); color: var(--yc365p-white); }
.yc365ml__music-item__cover img { width: 100%; height: 100%; object-fit: cover; }
.yc365ml__music-item__cover i { font-size: 1.25rem; }
.yc365ml__music-item__copy { display: grid; min-width: 0; gap: .22rem; }
.yc365ml__music-item__copy strong { min-width: 0; overflow-wrap: anywhere; font-size: .82rem; line-height: 1.25; }
.yc365ml__music-item__copy small { color: var(--yc365p-text-muted); font-size: .68rem; line-height: 1.35; }
.yc365ml__music-item > i { color: var(--yc365p-blue-strong); font-size: 1.05rem; }
.yc365ml__music-more { min-height: 2.75rem; padding-inline: .8rem; border: 1px solid var(--yc365p-border); border-radius: var(--yc365p-radius-md); background: var(--yc365p-surface-soft); color: var(--yc365p-text); font-size: .76rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.yc365ml audio { width: 100%; height: 3rem; }
.yc365ml__fields { display: grid; gap: 1rem; }
.yc365ml__field { display: grid; min-width: 0; gap: .4rem; }
.yc365ml__field label { font-weight: 750; }
.yc365ml__field label span { color: var(--yc365p-text-muted); font-size: .72rem; font-weight: 500; }
.yc365ml__field :is(input, select, textarea) { width: 100%; min-width: 0; min-height: 2.875rem; padding: .7rem .8rem; border: 1px solid var(--yc365p-border); border-radius: var(--yc365p-radius-md); outline: 2px solid transparent; outline-offset: 1px; background: var(--yc365p-surface-soft); color: var(--yc365p-text); }
.yc365ml__field textarea { min-height: 5.8rem; resize: vertical; }
.yc365ml__field :is(input, select, textarea):focus { outline-color: var(--yc365p-focus); }
.yc365ml__field small { min-height: 1lh; color: var(--yc365p-text-muted); font-size: .72rem; line-height: 1.4; }
.yc365ml__rights { display: grid; grid-template-columns: 1.1rem minmax(0,1fr); gap: .65rem; align-items: start; color: var(--yc365p-text-muted); font-size: .78rem; line-height: 1.45; cursor: pointer; }
.yc365ml__rights input { width: 1.1rem; height: 1.1rem; margin: .05rem 0 0; accent-color: var(--yc365p-blue-strong); }
.yc365ml__preview { display: inline-flex; width: 100%; min-height: 3rem; align-items: center; justify-content: center; gap: .5rem; padding-inline: 1rem; border: 0; border-radius: var(--yc365p-radius-md); background: var(--yc365p-blue); color: var(--yc365p-black); font-weight: 850; cursor: pointer; white-space: nowrap; }
.yc365ml__preview:disabled { opacity: .55; cursor: not-allowed; }

.yc365ml__empty { display: grid; min-height: 20rem; place-content: center; justify-items: center; gap: .65rem; padding: 2rem 1rem; color: var(--yc365p-text-muted); text-align: center; }
.yc365ml__empty i { color: var(--yc365p-blue-strong); font-size: 2.25rem; }
.yc365ml__empty h3 { margin: 0; color: var(--yc365p-text); font: 800 clamp(1.25rem, 4vw, 1.7rem)/1 var(--yc365p-font-display); }
.yc365ml__empty p { max-width: 48ch; margin: 0; line-height: 1.55; }
.yc365ml__status { min-height: 18rem; padding: clamp(1rem, 5vw, 2rem); border: 1px solid var(--yc365p-border); border-radius: var(--yc365p-radius-md); background: var(--yc365p-surface-soft); color: var(--yc365p-text); }
.yc365ml__status-line { display: grid; grid-template-columns: 1.25rem minmax(0,1fr) auto; gap: .6rem; align-items: center; }
.yc365ml__status-line i { color: var(--yc365p-blue-strong); font-size: 1.2rem; animation: yc365ml-spin 1s linear infinite; }
.yc365ml__status-line span { color: var(--yc365p-text-muted); font: 700 .72rem/1 var(--yc365p-font-mono); }
.yc365ml__meter { height: .35rem; margin-block: 1rem; overflow: hidden; border-radius: var(--yc365p-radius-pill); background: var(--yc365p-border); }
.yc365ml__meter span { display: block; width: 0; height: 100%; background: var(--yc365p-blue-strong); }
.yc365ml__status p { margin: 0; color: var(--yc365p-text-muted); font-size: .8rem; line-height: 1.55; }
@keyframes yc365ml-spin { to { transform: rotate(360deg); } }

.yc365ml__editor { min-width: 0; }
.yc365ml__editor-meta { display: flex; min-width: 0; flex-wrap: wrap; gap: .45rem; margin-block-end: .85rem; }
.yc365ml__editor-meta span { padding: .3rem .5rem; border-radius: var(--yc365p-radius-pill); background: var(--yc365p-surface-soft); color: var(--yc365p-text-muted); font: 650 .68rem/1 var(--yc365p-font-mono); }
.yc365ml__tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-block-end: 1px solid var(--yc365p-border); }
.yc365ml__tabs button { min-width: 0; min-height: 2.875rem; padding-inline: .35rem; border: 0; border-block-end: 3px solid transparent; background: transparent; color: var(--yc365p-text-muted); font-size: .78rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.yc365ml__tabs button[aria-selected="true"] { border-block-end-color: var(--yc365p-blue-strong); color: var(--yc365p-blue-strong); }
.yc365ml__panel { padding-block-start: 1rem; }
.yc365ml__panel label { display: block; margin-block-end: .45rem; font-weight: 800; }
.yc365ml__panel textarea { width: 100%; min-height: 22rem; padding: 1rem; border: 1px solid var(--yc365p-border); border-radius: var(--yc365p-radius-md); outline: 2px solid transparent; outline-offset: 1px; resize: vertical; background: var(--yc365p-brand-ink); color: var(--yc365p-white); font: 500 .92rem/1.65 var(--yc365p-font-mono); }
.yc365ml__panel textarea:focus { outline-color: var(--yc365p-focus); }
.yc365ml__panel p { margin: .55rem 0 0; color: var(--yc365p-text-muted); font-size: .74rem; line-height: 1.5; }
.yc365ml__warnings { margin-block-start: 1rem; padding: .85rem; border-inline-start: 3px solid var(--yc365p-gold); background: var(--yc365p-surface-soft); color: var(--yc365p-text); }
.yc365ml__warnings h3 { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .85rem; }
.yc365ml__warnings ul { margin: .6rem 0 0; padding-inline-start: 1.25rem; color: var(--yc365p-text-muted); font-size: .76rem; line-height: 1.5; }
.yc365ml__save-row { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; margin-block-start: 1rem; padding-block-start: .85rem; border-block-start: 1px solid var(--yc365p-border); color: var(--yc365p-text-muted); font-size: .74rem; }
.yc365ml__save-row button { min-height: 2.75rem; padding-inline: .85rem; border: 1px solid var(--yc365p-border-strong); border-radius: var(--yc365p-radius-md); background: var(--yc365p-surface); color: var(--yc365p-text); font-weight: 800; cursor: pointer; white-space: nowrap; }
.yc365ml__save-row button:disabled { opacity: .55; cursor: not-allowed; }
.yc365ml__error { display: grid; grid-template-columns: 1.5rem minmax(0,1fr); gap: .75rem; padding: 1rem; border: 1px solid var(--yc365p-red); border-radius: var(--yc365p-radius-md); background: var(--yc365p-surface-soft); color: var(--yc365p-text); }
.yc365ml__error > i { color: var(--yc365p-red); font-size: 1.4rem; }
.yc365ml__error p { margin: .35rem 0 0; color: var(--yc365p-text-muted); line-height: 1.5; }

.yc365ml__tiers { display: grid; gap: .65rem; }
.yc365ml__tiers button { display: grid; grid-template-columns: minmax(0,1fr) auto; min-width: 0; min-height: 4.8rem; align-items: center; gap: .8rem; padding: .85rem; border: 1px solid var(--yc365p-border); border-radius: var(--yc365p-radius-md); background: var(--yc365p-surface-soft); color: var(--yc365p-text); text-align: start; cursor: pointer; }
.yc365ml__tiers button:disabled { opacity: .5; cursor: not-allowed; }
.yc365ml__tiers button span { display: grid; min-width: 0; gap: .25rem; }
.yc365ml__tiers button strong { font-size: .9rem; }
.yc365ml__tiers button span small { color: var(--yc365p-text-muted); font-size: .72rem; line-height: 1.35; }
.yc365ml__tiers button b { color: var(--yc365p-blue-strong); font: 800 1.25rem/1 var(--yc365p-font-display); white-space: nowrap; }
.yc365ml__tiers button b small { display: block; margin-block-start: .2rem; color: var(--yc365p-text-muted); font: 600 .6rem/1 var(--yc365p-font-mono); text-align: end; }
.yc365ml__pricing-note { display: grid; grid-template-columns: 1.25rem minmax(0,1fr); gap: .55rem; margin: 1rem 0 0; color: var(--yc365p-text-muted); font-size: .74rem; line-height: 1.5; }
.yc365ml__pricing-note i { color: var(--yc365p-blue-strong); font-size: 1.1rem; }
.yc365ml__complete { display: inline-flex; width: 100%; min-height: 3rem; align-items: center; justify-content: center; gap: .5rem; margin-block-start: 1rem; border-radius: var(--yc365p-radius-md); background: var(--yc365p-green); color: var(--yc365p-black); font-weight: 850; text-decoration: none; white-space: nowrap; }

.yc365ml__method { display: grid; gap: .6rem; padding-block: 1.25rem; color: var(--yc365p-text-muted); font-size: .74rem; line-height: 1.55; }
.yc365ml__method p { max-width: 72ch; margin: 0; }
.yc365ml__signin { display: grid; justify-items: start; gap: .75rem; padding-block: clamp(2rem, 10vw, 7rem); }
.yc365ml__signin > i { color: var(--yc365p-blue-strong); font-size: 2.5rem; }
.yc365ml__signin h2 { margin: 0; font: 800 clamp(1.5rem, 5vw, 2.5rem)/1 var(--yc365p-font-display); }
.yc365ml__signin p { max-width: 52ch; margin: 0; color: var(--yc365p-text-muted); line-height: 1.6; }
.yc365ml__signin a { display: inline-flex; min-height: 3rem; align-items: center; gap: .5rem; padding-inline: 1rem; border-radius: var(--yc365p-radius-md); background: var(--yc365p-blue); color: var(--yc365p-black); font-weight: 800; text-decoration: none; white-space: nowrap; }
.yc365ml__pay { position: fixed; inset: 0; width: min(calc(100% - 2rem), 30rem); height: fit-content; max-height: min(80dvh, 38rem); margin: auto; padding: clamp(1.25rem, 5vw, 2rem); overflow-y: auto; border: 1px solid var(--yc365p-border); border-radius: var(--yc365p-radius-lg); background: var(--yc365p-surface); color: var(--yc365p-text); box-shadow: var(--yc365p-shadow-lg); }
.yc365ml__pay::backdrop { background: var(--yc365p-overlay); }
.yc365ml__pay h2 { margin: 0; font: 800 clamp(1.5rem, 5vw, 2.25rem)/1 var(--yc365p-font-display); }
.yc365ml__pay h2 + p { color: var(--yc365p-text-muted); line-height: 1.6; }
.yc365ml__pay-close { position: absolute; inset-block-start: .65rem; inset-inline-end: .65rem; display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border: 0; border-radius: var(--yc365p-radius-md); background: transparent; color: var(--yc365p-text); cursor: pointer; }
.yc365ml__pay-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem; margin-block-start: 1.25rem; }
.yc365ml__pay-actions button { min-height: 2.875rem; padding-inline: .9rem; border: 1px solid var(--yc365p-border); border-radius: var(--yc365p-radius-md); background: var(--yc365p-surface-soft); color: var(--yc365p-text); font-weight: 800; cursor: pointer; white-space: nowrap; }
.yc365ml__pay-actions button:last-child { border-color: transparent; background: var(--yc365p-blue); color: var(--yc365p-black); }

@media (min-width: 40rem) {
  .yc365ml__intro { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
  .yc365ml__source-choice > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .yc365ml__fields { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); }
}
@media (min-width: 60rem) {
  .yc365ml__workbench { grid-template-columns: minmax(18rem,.8fr) minmax(24rem,1.2fr); }
  .yc365ml__finish { grid-column: 1 / -1; }
  .yc365ml__tiers { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width: 82rem) {
  .yc365ml__workbench { grid-template-columns: minmax(18rem,.82fr) minmax(28rem,1.25fr) minmax(18rem,.78fr); align-items: stretch; }
  .yc365ml__finish { grid-column: auto; }
  .yc365ml__tiers { grid-template-columns: 1fr; }
}
@media (hover:hover) and (pointer:fine) {
  .yc365ml__library-link:hover, .yc365ml__tiers button:not(:disabled):hover { border-color: var(--yc365p-blue-strong); color: var(--yc365p-blue-strong); }
  .yc365ml__drop:hover { background: var(--yc365p-blue-wash); }
}
@media (pointer:coarse) { .yc365ml :is(button,a,input,select) { min-height: 3rem; } }
@media (prefers-reduced-motion:reduce) { .yc365ml__status-line i, .yc365ml__music-state i { animation: none; } }
