/* The sketchbook is a start screen, with the current music as its only preview. */
.home-view { min-height: 100dvh; color: var(--ink); background: var(--bg); }
.home-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1080px; margin: 0 auto; padding: 24px 30px; }
.home-brand { display: inline-flex; align-items: center; gap: 9px; }
.home-brand .brand-mark { width: 31px; height: 31px; border-radius: 9px; border: 1px solid color-mix(in srgb,var(--accent) 24%,var(--border)); background: var(--surface); color: var(--accent); }
.home-brand .brand-name { font-size: 25px; font-weight: 720; letter-spacing: -1.2px; }
.home-private { color: var(--muted); font-size: 11px; }
.home-top-actions { display: flex; align-items: center; gap: 4px; }
.home-top-actions .home-private { margin-right: 10px; }
.home-top-actions .home-utility { width: 34px; height: 34px; padding: 8px; border-radius: 7px; color: var(--muted); }
.home-top-actions .home-utility:hover { color: var(--ink); background: var(--hover); }
.home-top-actions .home-utility .icon { width: 17px; height: 17px; }
.home-main { width: 100%; max-width: 1080px; margin: 0 auto; padding: 34px 30px 42px; }
.home-heading { margin-bottom: 24px; }
.home-heading h1 { margin: 0 0 7px; color: var(--ink); font-size: 28px; font-weight: 600; line-height: 1.3; letter-spacing: -.65px; }
.home-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.home-primary { display: flex; align-items: center; gap: 28px; width: 100%; min-height: 151px; padding: 27px 29px; border: 1px solid color-mix(in srgb,var(--accent) 45%,var(--border)); border-radius: 12px; background: color-mix(in srgb,var(--guitar-bg) 45%,var(--panel)); color: var(--ink); text-align: left; white-space: normal; box-shadow: var(--shadow); }
.home-primary:hover { border-color: var(--accent); background: color-mix(in srgb,var(--guitar-bg) 65%,var(--panel)); }
.home-primary-copy { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.home-primary-label { color: var(--accent); font-size: 11px; font-weight: 600; line-height: 1.5; }
.home-primary-copy > strong { color: var(--ink); font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -.45px; overflow-wrap: anywhere; }
.home-primary-meta { color: var(--muted); font-size: 12px; line-height: 1.6; }
.home-primary-arrow { display: grid; place-items: center; flex-shrink: 0; width: 35px; height: 35px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); }
.home-primary-arrow > .icon { width: 18px; height: 18px; }
.home-new-icon { display: grid; place-items: center; width: 77px; height: 77px; flex-shrink: 0; color: var(--accent); }
.home-new-icon > .icon { width: 52px; height: 52px; stroke-width: 1.2; }
.home-activity { display: block; width: 34%; max-width: 320px; flex-shrink: 0; overflow: visible; }
.home-activity-line { stroke: var(--line); stroke-width: .7; opacity: .3; }
.home-activity-note { fill: var(--accent); }
.home-activity-guitar { fill: var(--guitar); }
.home-activity-bass { fill: var(--bass); }
.home-activity-drums { fill: var(--drums); }
.home-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 19px; list-style: none; margin: 23px 0 26px; padding: 0 2px; }
.home-steps li { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.home-step-icon { display: grid; place-items: center; width: 27px; height: 28px; flex-shrink: 0; color: var(--muted); }
.home-step-icon > .icon { width: 17px; height: 17px; }
.home-steps li > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.home-steps strong { font-size: 12px; font-weight: 600; line-height: 1.5; }
.home-steps li > span:last-child > span { color: var(--muted); font-size: 11px; line-height: 1.65; }
.home-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.home-action { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; min-width: 0; min-height: 156px; padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); text-align: left; white-space: normal; }
.home-action:hover { border-color: var(--line); background: color-mix(in srgb,var(--surface) 30%,var(--panel)); }
.home-action-icon { display: grid; place-items: center; color: var(--accent); min-height: 22px; }
.home-action-icon > .icon { width: 21px; height: 21px; }
.home-action > strong { color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.4; }
.home-action-description { max-width: 25ch; color: var(--muted); font-size: 12px; line-height: 1.65; }
.home-action > .home-action-arrow { position: absolute; top: 21px; right: 18px; width: 14px; height: 14px; color: var(--muted); }
.home-refresher { margin-top: 23px; color: var(--muted); font-size: 11px; }
.home-refresher > summary { width: fit-content; padding: 5px 0; cursor: pointer; }
.home-refresher .home-steps { margin-top: 15px; margin-bottom: 5px; color: var(--ink); }
.home-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 24px; color: var(--muted); font-size: 11px; }
.home-example { min-height: 34px; padding: 6px 0; color: var(--muted); font-size: 11px; }
.home-example > .icon { width: 15px; height: 15px; }
.home-example:hover { color: var(--ink); background: transparent; }
.home-footer > span { margin-left: auto; font-size: 10px; line-height: 1.6; }
.home-view :is(button,summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (min-width:1500px) { .home-main { padding-top: 55px; } }
@media (max-width:760px) {
  .home-topbar { padding: 21px 24px; }
  .home-main { padding: 25px 24px 35px; }
  .home-heading h1 { font-size: 26px; }
  .home-primary { padding: 23px; gap: 20px; }
  .home-primary-copy > strong { font-size: 22px; }
  .home-activity { width: 30%; }
  .home-actions { gap: 11px; }
  .home-action { padding: 17px; min-height: 158px; }
  .home-action > .home-action-arrow { top: 18px; right: 14px; }
  .home-steps { gap: 13px; }
}
@media (max-width:560px) {
  .home-topbar { padding: 20px; }
  .home-main { padding: 22px 20px 30px; }
  .home-heading { margin-bottom: 19px; }
  .home-heading h1 { font-size: 25px; }
  .home-primary { min-height: 142px; padding: 21px; gap: 15px; }
  .home-primary-copy > strong { font-size: 21px; }
  .home-continue { flex-wrap: wrap; }
  .home-continue .home-primary-copy { flex-basis: calc(100% - 55px); }
  .home-continue .home-primary-arrow { order: 1; }
  .home-continue .home-activity { order: 2; width: 100%; max-width: none; margin-top: 5px; }
  .home-new-icon { display: none; }
  .home-actions { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .home-action { display: grid; grid-template-columns: 25px minmax(0,1fr); gap: 4px 12px; min-height: 88px; padding: 16px 37px 16px 16px; }
  .home-action-icon { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .home-action > strong, .home-action-description { grid-column: 2; }
  .home-action-description { max-width: none; }
  .home-action > .home-action-arrow { top: 36px; right: 15px; }
  .home-steps { grid-template-columns: minmax(0,1fr); gap: 13px; margin-block: 22px; }
  .home-steps li > span:last-child { gap: 2px; }
  .home-footer { gap: 8px; margin-top: 18px; }
  .home-footer > span { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion:reduce) { .home-view button { transition: none; } }

/* Keep the current writing action ahead of occasional file and example tasks. */
.home-next { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px 22px; margin-top: 22px; }
.home-library-link { min-height: 36px; font-size: 12px; }
.home-options { min-width: 0; color: var(--muted); font-size: 12px; }
.home-options > summary { width: fit-content; padding: 9px 0; cursor: pointer; }
.home-options[open] { flex-basis: 100%; }
.home-options .home-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.home-options .home-action { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 3px 10px; flex: 1 1 190px; min-height: 0; padding: 13px 15px; }
.home-options .home-action-icon { grid-column: 1; grid-row: 1 / 3; align-self: center; }
.home-options .home-action-icon > .icon { width: 17px; height: 17px; }
.home-options .home-action > strong, .home-options .home-action-description { grid-column: 2; }
.home-options .home-action > strong { font-size: 12px; }
.home-options .home-action-description { max-width: none; font-size: 11px; }
.home-options .home-action-arrow { display: none; }
