/* Home (home.html): a wide, warm page: sidebar, header row, Continue + Quick Start, Your Scores, and the right column.
   Built to the approved mockup. Never a narrow column: the page fills the window; only paragraphs keep a readable width. */
:root {
  --h-bg: #fcf4e6;
  --h-card: #fffdf9;
  --h-line: #eadfca;
  --h-orange: #d9531e;
  --h-orange2: #bf4414;
  --h-peach: #fdeacf;
  --h-navy: #1f2350;
  --h-muted: #5b607f;
  --h-shadow: 0 2px 4px #5a3a1410, 0 8px 22px #5a3a1410;
}
html { background: var(--h-bg); }
body.home { display: block; overflow: auto; height: auto; min-height: 100vh; background: var(--h-bg); color: var(--h-navy); font: 16px/1.5 var(--ui); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--h-navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.sm { width: 16px; height: 16px; }
body.home button, body.home .btn { min-height: 44px; }
body.home button.small { min-height: 44px; }

.shell { display: flex; align-items: flex-start; min-height: 100vh; }

/* ---------------------------------------------------------------- sidebar */
.side { position: sticky; top: 0; align-self: flex-start; flex: none; width: 245px; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 0;
  background: linear-gradient(180deg, #fdf3e3 0%, #fbeede 55%, #f7e4d0 100%); border-right: 1px solid var(--h-line); overflow: hidden; z-index: 5; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 0 6px 18px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo .mark { width: 38px; height: 38px; border-radius: 10px; }
.logo .word { height: 24px; width: auto; }
.navbtn { display: none; }
.nav { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 2; }
.nav a, .nav button { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 11px 16px; min-height: 48px; border: 0; border-radius: 14px; background: transparent;
  color: var(--h-navy); font: 700 16.5px/1.2 var(--ui); text-decoration: none; cursor: pointer; box-shadow: none; }
.nav a:hover, .nav button:hover { background: #f8e3c8; }
.nav .on { background: #fbdcb4; color: #a8400f; box-shadow: inset 0 0 0 1px #f3c58f; }
.nav .ic { color: #5b607f; }
.nav .on .ic { color: var(--h-orange); }
.nav hr { border: 0; border-top: 1px solid #ecd9bd; margin: 8px 12px; }
.nav [hidden] { display: none; }
.side-ws { margin-top: 22px; padding: 0 8px; position: relative; z-index: 2; }
.side-label { font: 700 15px/1 var(--ui); color: var(--h-muted); margin: 0 6px 10px; padding-top: 14px; border-top: 1px solid #ecd9bd; }
.side-storage { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: transparent; padding: 6px; border-radius: 12px; color: var(--h-navy); box-shadow: none; cursor: pointer; }
.side-storage:hover { background: #f8e3c8; }
.side-storage .ic { color: var(--h-muted); }
.ss-text { display: flex; flex-direction: column; line-height: 1.25; }
.ss-text b { font: 700 16.5px var(--ui); }
.ss-text small { font: 600 13px var(--ui); color: var(--h-muted); }
.meter { height: 8px; border-radius: 99px; background: #ecdcc6; overflow: hidden; margin: 8px 6px 0; }
.meter i { display: block; height: 100%; min-width: 3px; background: linear-gradient(90deg, #7c5cf0, #a58cf7); border-radius: 99px; }
.side-settings { display: flex; align-items: center; gap: 14px; margin: 16px 8px 0; padding: 11px 10px; min-height: 48px; border-radius: 12px; color: var(--h-navy); font: 700 16.5px var(--ui); text-decoration: none; position: relative; z-index: 2; }
.side-settings:hover { background: #f8e3c8; }
.side-settings .ic { color: var(--h-muted); }
.trees { position: absolute; left: 0; bottom: 0; width: 100%; height: 340px; z-index: 1; pointer-events: none; }

/* ---------------------------------------------------------------- page, scenery */
.page { position: relative; flex: 1 1 auto; min-width: 0; padding: 0 24px 56px 38px; }
.mountains { position: absolute; top: 0; right: 0; width: min(560px, 46%); height: 228px; pointer-events: none; z-index: 0; }
.top, .cols { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- header row */
.top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 500px) auto; align-items: center; gap: 22px; padding: 14px 0 12px; min-height: 100px; }
.greet h1 { margin: 0; font: 800 clamp(30px, 2.4vw, 42px)/1.1 var(--ui); letter-spacing: -.01em; color: var(--h-navy); }
.greet .wave { font-size: .86em; }
.tagline { margin: 4px 0 0; font: 600 17px/1.3 var(--ui); color: var(--h-muted); }
.tagline i { font-style: normal; margin: 0 7px; color: #b2a98f; }
.gsearch { position: relative; }
.gs-box { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 14px 0 18px; background: #fffdf9; border: 1px solid var(--h-line); border-radius: 999px; box-shadow: var(--h-shadow); color: var(--h-muted); cursor: text; }
.gs-box:focus-within { border-color: var(--h-orange); box-shadow: 0 0 0 3px #d9531e33, var(--h-shadow); }
.gs-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 16px var(--ui); color: var(--h-navy); height: 100%; padding: 0; }
.gs-box input::placeholder { color: #7b7f99; }
.gs-box input::-webkit-search-cancel-button { display: none; }
.gs-hint { flex: none; font: 700 13px var(--ui); color: var(--h-muted); background: #f1e8d6; border: 1px solid #e4d7bd; border-radius: 9px; padding: 4px 9px; }
.gs-hint b { font-weight: 800; }
.gs-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; max-height: min(70vh, 520px); overflow-y: auto; padding: 8px; background: #fffdf9; border: 1px solid var(--h-line); border-radius: 18px; box-shadow: 0 18px 44px #3a24104a; }
.gs-results[hidden] { display: none; }
.gs-group { font: 800 12px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--h-muted); padding: 12px 12px 6px; }
.gs-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 12px; min-height: 48px; border-radius: 12px; color: var(--h-navy); cursor: pointer; box-shadow: none; }
.gs-item:hover, .gs-item.on { background: #fbeacf; }
.gs-item .ic { color: var(--h-orange); }
.gs-item span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.gs-item b { font: 800 15.5px var(--ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-item small { font: 600 13px var(--ui); color: var(--h-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-none { margin: 0; padding: 14px; color: var(--h-muted); font-size: 15px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.round { width: 48px; height: 48px; min-height: 48px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: #fffdf9; border: 1px solid var(--h-line); color: var(--h-navy); box-shadow: var(--h-shadow); }
.hprofile { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 10px 4px 4px; border: 0; border-radius: 999px; background: transparent; color: var(--h-navy); font: 700 15px/1 var(--ui); max-width: 230px; box-shadow: none; cursor: pointer; }
.hprofile:hover { background: #fbeacf; }
.hprofile img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #fff; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--h-line), var(--h-shadow); }
.hprofile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }

/* ---------------------------------------------------------------- columns */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.right { display: flex; flex-direction: column; gap: 16px; margin-top: 62px; }
.card { background: var(--h-card); border: 1px solid var(--h-line); border-radius: 20px; padding: 18px 20px; box-shadow: var(--h-shadow); }
.card h2 { margin: 0; font: 800 20px/1.2 var(--ui); color: var(--h-navy); }
.note { margin: 6px 0 0; font-size: 14px; color: var(--h-muted); }
.row-end { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pill { font: 800 12.5px/1 var(--ui); padding: 6px 11px; border-radius: 999px; background: #e9f3e4; color: #2f6b22; border: 1px solid #c7e0bd; white-space: nowrap; }
.pill.gold { background: #fbf0d6; color: var(--accent2); border-color: #ecd29a; }
.pill.grey { background: var(--panel2); color: var(--muted); border-color: var(--line); }
button.danger { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 800; }
button.danger:hover { background: #a92f18; }
.linkbtn { border: 0; background: none; padding: 0; min-height: 0; color: var(--h-orange2); font: 800 14px var(--ui); text-decoration: underline; cursor: pointer; box-shadow: none; }
body.home button.primary, .btn-lg { background: var(--h-orange); border-color: var(--h-orange); color: #fff; font-weight: 800; border-radius: 12px; box-shadow: 0 2px 0 #a8400f55; }
body.home button.primary:hover { background: var(--h-orange2); border-color: var(--h-orange2); }
body.home button { border-radius: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--h-line); border-radius: 12px; background: #fffdf9; color: var(--h-navy); font: 700 15px var(--ui); text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px #5a3a1410; }
.btn:hover { background: #fbeacf; border-color: #e6cfa6; }
.btn .ic { color: var(--h-orange); width: 19px; height: 19px; }
.btn-lg { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 20px; font-size: 16px; }
.btn-lg .ic { width: 19px; height: 19px; }

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 196px minmax(0, 1fr) 330px; gap: 14px; align-items: stretch; margin-bottom: 30px; }
.hero-mascot { display: flex; align-items: flex-end; justify-content: center; position: relative; }
.hero-mascot img { width: 190px; height: auto; max-height: 260px; object-fit: contain; filter: drop-shadow(0 8px 10px #5a3a1428); position: relative; z-index: 1; margin-bottom: -4px; }
.hero .card { padding: 20px 22px; }
.hero-continue { position: relative; display: flex; flex-direction: column; border-left: 4px solid var(--h-orange); gap: 0; }
.cont-label { margin: 0 0 3px; font: 600 16px/1.2 var(--ui); color: var(--h-muted); }
.hero-continue h3 { margin: 0; font: 800 clamp(20px, 1.35vw, 26px)/1.2 var(--ui); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pwhen { display: none; }
.cmeta, .pmeta { margin: 4px 0 0; font: 600 14.5px/1.4 var(--ui); color: var(--h-muted); }
.cmeta i, .pmeta i { font-style: normal; margin: 0 5px; opacity: .7; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--h-orange); margin-right: 8px; vertical-align: middle; position: relative; top: -1px; }
.hero-continue .cthumb { margin: 10px 0 12px; height: 74px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: #fffaf0; }
.hero-continue .cthumb svg { width: 100%; height: 100%; }
.cacts { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: auto; }
.cacts button { padding: 9px 18px; font: 800 16px var(--ui); min-height: 46px; }
.cacts button.primary { display: inline-flex; align-items: center; gap: 8px; }
.cacts button:not(.primary):not(.more) { background: #f2ece2; border-color: #e6dccb; color: var(--h-navy); }
.cacts .more { margin-left: auto; width: 46px; padding: 0; display: grid; place-items: center; background: #fff; border-color: var(--h-line); }
.hero-continue.empty { justify-content: center; }
.hero-start h2 { font-size: 24px; margin-bottom: 14px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 14px 6px; min-height: 126px; text-align: center; white-space: normal; border: 1px solid transparent; border-radius: 16px; color: var(--h-navy); text-decoration: none; font: 800 15.5px/1.2 var(--ui); cursor: pointer; box-shadow: none; }
.tile .ti { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; }
.tile .ti .ic { width: 34px; height: 34px; stroke-width: 1.7; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 18px #5a3a1418; }
.t-new { background: #fdecd0; } .t-new .ti { color: var(--h-orange); }
.t-tpl { background: #ece3fa; } .t-tpl .ti { color: #6d3fd0; }
.t-imp { background: #dcebfa; } .t-imp .ti { color: #2a6fc4; }
.t-new:hover { background: #fbe2bb; } .t-tpl:hover { background: #e2d5f6; } .t-imp:hover { background: #cde3f6; }
.open-file { margin: 14px 0 0; font-size: 14px; color: var(--h-muted); }

/* ---------------------------------------------------------------- Your Scores */
.sec-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-head h2 { margin: 0; font: 800 clamp(24px, 1.8vw, 28px)/1.2 var(--ui); display: flex; align-items: center; gap: 10px; }
.sec-head .count { font: 800 15px/1 var(--ui); background: #efe4d0; color: var(--h-muted); border-radius: 999px; padding: 7px 12px; }
.sec-head .count[hidden] { display: none; }
.sec-spacer { flex: 1; }
.seg { display: inline-flex; align-items: center; padding: 4px; gap: 2px; background: #fffdf9; border: 1px solid var(--h-line); border-radius: 14px; box-shadow: 0 1px 2px #5a3a1410; }
.seg button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 8px 18px; min-height: 44px; border-radius: 11px; font: 700 15.5px var(--ui); color: var(--h-navy); box-shadow: none; cursor: pointer; }
.seg button:hover { background: #fbeacf; }
.seg button.on { background: var(--h-navy); color: #fff; }
.viewtog button { padding: 8px 14px; }
.sort select { min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--h-line); background: #fffdf9; font: 700 15px var(--ui); color: var(--h-navy); }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.piece { display: flex; flex-direction: column; background: var(--h-card); border: 1px solid var(--h-line); border-radius: 18px; overflow: hidden; box-shadow: var(--h-shadow); transition: box-shadow .15s, transform .15s; }
.piece:hover { box-shadow: 0 12px 28px #5a3a1422; transform: translateY(-1px); }
.piece.cur { border: 2px solid var(--h-orange); }
.piece .thumb { display: block; width: 100%; height: 76px; padding: 4px 10px 0; border: 0; border-bottom: 1px solid #f0e6d2; border-radius: 0; background: #fffaf0; cursor: pointer; box-shadow: none; min-height: 0; }
.piece .thumb:hover { background: #fff5e2; }
.piece .thumb svg { width: 100%; height: 100%; display: block; }
.pbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ptitle { display: flex; align-items: center; gap: 8px; }
.piece h3 { margin: 0; flex: 1; min-width: 0; font: 800 18px/1.25 var(--ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.star { flex: none; width: 44px; height: 44px; min-height: 44px; margin: -6px -8px -6px 0; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: #4a4f74; box-shadow: none; cursor: pointer; }
.star .ic { width: 22px; height: 22px; }
.star:hover { background: #fbeacf; }
.star.on { color: #e8a21d; }
.star.on .ic { fill: #f5b83a; }
.pwhen { margin: 0; font: 600 13px/1.3 var(--ui); color: #7a7d96; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font: 700 13.5px/1 var(--ui); padding: 6px 13px; border-radius: 999px; white-space: nowrap; background: #e9eefc; color: #2b4aa5; }
.tag .ic { width: 14px; height: 14px; }
.tag.c0 { background: #dfeafc; color: #26559e; } .tag.c1 { background: #ece3fa; color: #6035b8; } .tag.c2 { background: #fbe3ee; color: #a8315f; }
.tag.c3 { background: #dff3e6; color: #1f7142; } .tag.c4 { background: #fdeccf; color: #93560a; } .tag.c5 { background: #dcf1f4; color: #1d6a78; }
.tag.t-kind { background: #f1ebde; color: #5b607f; } .tag.t-fb { background: #fbf0d6; color: #8a5a00; } .tag.t-file { background: #eef2ff; color: #2b3f8f; }
.tag.t-ok { background: #e4f3dd; color: #2f6b22; } .tag.t-warn { background: #fbf0d6; color: #8a5a00; } .tag.t-err { background: #fbe4de; color: #a92f18; }
.pacts { display: flex; gap: 10px; margin-top: auto; padding-top: 12px; }
.open { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 8px 20px; border: 0; border-radius: 12px; background: var(--h-orange); color: #fff; font: 800 16px var(--ui); cursor: pointer; box-shadow: 0 2px 0 #a8400f55; }
.open:hover { background: var(--h-orange2); }
.open .ic { width: 19px; height: 19px; }
.more { margin-left: auto; width: 46px; min-height: 44px; padding: 0; display: grid; place-items: center; background: #fff; border: 1px solid var(--h-line); border-radius: 12px; color: var(--h-navy); box-shadow: none; cursor: pointer; }
.more:hover { background: #fbeacf; }
/* list layout */
.pgrid.list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.pgrid.list .piece { flex-direction: row; align-items: stretch; }
.pgrid.list .thumb { width: 260px; height: auto; flex: none; border-bottom: 0; border-right: 1px solid #f0e6d2; }
.pgrid.list .pbody { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; }
.pgrid.list .ptitle, .pgrid.list .pmeta, .pgrid.list .pwhen, .pgrid.list .tags { grid-column: 1; }
.pgrid.list .pacts { grid-column: 2; grid-row: 1 / span 4; padding: 0; margin: 0; align-items: center; }
.pempty { padding: 36px; text-align: center; color: var(--h-muted); background: var(--h-card); border: 1px dashed #e0cfae; border-radius: 18px; font-size: 16px; }
.pempty.small { padding: 18px; font-size: 15px; }
.trash { margin-top: 18px; background: var(--h-card); border: 1px solid var(--h-line); border-radius: 16px; padding: 12px 18px; }
.trash summary { cursor: pointer; font-weight: 800; color: var(--h-muted); }
.trash ul { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.trash li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.trash li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trash li small { color: var(--h-muted); }

/* the shared little menu */
.pop { position: absolute; z-index: 80; min-width: 240px; max-height: 70vh; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 1px;
  background: #fffdf9; border: 1px solid var(--h-line); border-radius: 16px; box-shadow: 0 18px 44px #3a24104a; }
.pop[hidden] { display: none; }
.pop button { display: flex; width: 100%; text-align: left; border-color: transparent; background: transparent; padding: 9px 12px; min-height: 42px; border-radius: 10px; box-shadow: none; font: 600 15px var(--ui); }
.pop button:hover, .pop button:focus-visible { background: #fbeacf; }
.pop .plabel { font: 800 11.5px/1 var(--ui); letter-spacing: .07em; text-transform: uppercase; color: var(--h-muted); padding: 10px 12px 4px; }
.pop hr { border: 0; border-top: 1px solid #f0e6d2; margin: 5px 2px; }
.pop button.danger { background: transparent; color: #a92f18; border-color: transparent; font-weight: 700; }
.pop button.danger:hover { background: #fbe4de; }

/* ---------------------------------------------------------------- right column */
.ws-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ws-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fdecd0; color: var(--h-orange); }
.ws-head h2 { font-size: 19px; }
.ws-head small { display: block; font: 600 14px/1.3 var(--ui); color: var(--h-muted); overflow-wrap: anywhere; }
.ws-links { list-style: none; margin: 0; padding: 0; }
.ws-links button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 8px 4px; text-align: left; border: 0; border-radius: 12px; background: transparent; color: var(--h-navy); font: 600 16px var(--ui); box-shadow: none; cursor: pointer; }
.ws-links button:hover { background: #fbeacf; }
.ws-links .ic { color: #4a4f74; }
.ws-links span { flex: 1; }
.wsb { font: 800 12.5px/1 var(--ui); font-style: normal; padding: 5px 10px; border-radius: 999px; background: #efe4d0; color: var(--h-muted); }
.wsb:empty { display: none; }
.wsb.ok { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; background: #d6efdc; color: #1f7142; }
.wsb.warn { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; background: #fdeccf; color: #93560a; font-size: 15px; }
.week h2, .activity h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.week h2 .ic, .activity h2 .ic { color: #4a4f74; }
.week-nums { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.week-nums div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 2px 4px; border-left: 1px solid #efe4d0; }
.week-nums div:first-child { border-left: 0; }
.week-nums b { font: 800 34px/1.1 var(--ui); }
.week-nums span { font: 600 14px/1.25 var(--ui); color: var(--h-muted); }
.act-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
.act-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #f3eadb; font: 600 15px/1.3 var(--ui); }
.act-list li:first-child { border-top: 0; }
.act-list .ai { color: var(--h-orange); display: grid; place-items: center; flex: none; }
.act-list .at { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-list time { flex: none; font: 600 13.5px var(--ui); color: #7a7d96; }
.act-list .act-none { color: var(--h-muted); font-size: 15px; display: block; }

/* ---------------------------------------------------------------- Bandstand page */
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.band-title { margin: 0; font: 800 clamp(26px, 2vw, 32px)/1.15 var(--ui); }
.band-sub { margin: 4px 0 0; max-width: 60ch; color: var(--h-muted); font: 600 16px/1.4 var(--ui); }
.band-links { display: flex; gap: 10px; flex-wrap: wrap; }
.fbsearch { padding: 22px 24px 20px; margin-bottom: 28px; border-top: 4px solid var(--h-orange); }
.fb-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.fb-top h3 { margin: 0; display: flex; align-items: center; gap: 10px; font: 800 22px var(--ui); }
.fb-top h3 .ic { color: var(--h-orange); }
.fb-n { color: var(--h-muted); font: 700 15px var(--ui); flex: 1; }
.fb-target { display: flex; align-items: center; gap: 8px; font: 700 15px var(--ui); color: var(--h-muted); }
.fb-target select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--h-line); border-radius: 12px; background: #fff; font: 700 15px var(--ui); color: var(--h-navy); max-width: 240px; }
.fb-big { display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 20px; background: #fff; border: 2px solid #e6d3ae; border-radius: 18px; color: var(--h-muted); cursor: text; }
.fb-big:focus-within { border-color: var(--h-orange); box-shadow: 0 0 0 4px #d9531e26; }
.fb-big .ic { width: 26px; height: 26px; color: var(--h-orange); }
.fb-big input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 100%; font: 700 20px var(--ui); color: var(--h-navy); padding: 0; }
.fb-big input::placeholder { color: #8d90a8; font-weight: 600; }
.fb-chips { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 6px; }
.fc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fc-l { width: 56px; flex: none; font: 800 12px var(--ui); letter-spacing: .07em; text-transform: uppercase; color: var(--h-muted); }
.fchip { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 15px; border: 1px solid var(--h-line); border-radius: 999px; background: #fffdf9; color: var(--h-navy); font: 700 14.5px var(--ui); cursor: pointer; box-shadow: none; }
.fchip em { font-style: normal; font-size: 12.5px; color: var(--h-muted); }
.fchip:hover { background: #fbeacf; }
.fchip.on { background: var(--h-navy); border-color: var(--h-navy); color: #fff; }
.fchip.on em { color: #d5d8ee; }
.fb-results { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.fb-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid #efe4d0; border-radius: 14px; }
.fb-row:hover { border-color: #e6cfa6; }
.fb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.fb-info b { font: 800 17px var(--ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-info small { font: 600 14px var(--ui); color: var(--h-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpd { flex: none; font: 700 12.5px/1 var(--ui); padding: 6px 11px; border-radius: 999px; }
.pd-yes { background: #e4f3dd; color: #2f6b22; } .pd-check { background: #fdeccf; color: #93560a; } .pd-no { background: #ece8df; color: #5b5648; }
.fact { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 8px 16px; border-radius: 12px; font: 800 15px var(--ui); cursor: pointer; border: 1px solid transparent; box-shadow: none; }
.fact .ic { width: 18px; height: 18px; }
.st-bundled { background: #e4f3dd; border-color: #c4e2b8; color: #1f6a32; }
.st-mine { background: #dfeafc; border-color: #bfd3f4; color: #26559e; }
.st-stand { background: #fffdf9; border-color: var(--h-line); color: var(--h-navy); }
.st-stand:hover { background: #f4ecdc; }
.st-needs { background: #fdeccf; border-color: #f2d3a0; color: #8a4f06; }
.fadd { display: inline-flex; align-items: center; gap: 7px; flex: none; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 12px; background: var(--h-orange); color: #fff; font: 800 15px var(--ui); cursor: pointer; box-shadow: 0 2px 0 #a8400f55; }
.fadd .ic { width: 18px; height: 18px; }
.fadd:hover { background: var(--h-orange2); }
.fadd.in { background: #e4f3dd; color: #1f6a32; box-shadow: none; cursor: default; }
.fb-none { margin: 8px 0; padding: 22px; text-align: center; color: var(--h-muted); font-size: 16px; }
.fmore { align-self: center; min-height: 44px; padding: 8px 22px; border: 1px solid var(--h-line); border-radius: 12px; background: #fffdf9; font: 700 15px var(--ui); color: var(--h-navy); cursor: pointer; }
.fb-foot { margin: 8px 0 0; color: var(--h-muted); font: 600 14px var(--ui); min-height: 1em; }
.fb-foot:empty { display: none; }
.sets { margin-bottom: 28px; }
.setgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.setcard { background: var(--h-card); border: 1px solid var(--h-line); border-radius: 18px; padding: 16px 18px 18px; box-shadow: var(--h-shadow); }
.setcard.flash { box-shadow: 0 0 0 3px var(--h-orange), var(--h-shadow); }
.sc-head { display: flex; align-items: center; gap: 12px; }
.sc-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fdecd0; color: var(--h-orange); flex: none; }
.sc-name { flex: 1; min-width: 0; }
.sc-name h3 { margin: 0; font: 800 19px/1.25 var(--ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-name small { font: 600 14px var(--ui); color: var(--h-muted); }
.sc-songs, .sc-order { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.sc-songs li { display: flex; align-items: center; gap: 9px; font: 600 15px/1.35 var(--ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-songs li .ic, .sc-order li .ic { color: #7a7d96; }
.n { flex: none; width: 22px; text-align: right; color: #8d90a8; font: 700 13px var(--ui); }
.gone, .sc-songs .gone { color: #9a8f7a; text-decoration: line-through; }
.kind { font: 800 11px/1 var(--ui); font-style: normal; text-transform: uppercase; letter-spacing: .05em; padding: 3px 7px; border-radius: 99px; background: #efe4d0; color: var(--h-muted); }
.sc-songs .more-n, .sc-songs .none, .sc-order .none { color: var(--h-muted); font-style: italic; }
.sc-acts { display: flex; gap: 10px; margin-top: 14px; }
.ghost { min-height: 44px; padding: 8px 18px; border: 1px solid var(--h-line); border-radius: 12px; background: #fff; color: var(--h-navy); font: 700 15px var(--ui); cursor: pointer; box-shadow: none; display: inline-flex; align-items: center; gap: 7px; }
.ghost:hover { background: #fbeacf; }
.open:disabled { opacity: .45; cursor: default; }
.sc-edit { margin-top: 12px; padding-top: 10px; border-top: 1px solid #f0e6d2; }
.sc-order li { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.sc-order .t { flex: 1; min-width: 0; font: 700 15px var(--ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib { display: grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border: 1px solid var(--h-line); border-radius: 12px; background: #fff; color: var(--h-navy); cursor: pointer; box-shadow: none; flex: none; }
.ib:hover:not(:disabled) { background: #fbeacf; }
.ib:disabled { opacity: .35; cursor: default; }
.ib .ic { width: 18px; height: 18px; }
.sc-addrow { margin-top: 10px; }
.sc-add { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; font: 700 13.5px var(--ui); color: var(--h-muted); }
.sc-add select { min-height: 44px; padding: 8px 10px; border: 1px solid var(--h-line); border-radius: 12px; background: #fff; font: 600 15px var(--ui); color: var(--h-navy); }
.played { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.played button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 16px; text-align: left; border: 1px solid var(--h-line); border-radius: 14px; background: var(--h-card); color: var(--h-navy); box-shadow: var(--h-shadow); cursor: pointer; }
.played button:hover { background: #fbeacf; }
.played .ic { color: var(--h-orange); }
.played span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.played b { font: 800 15.5px var(--ui); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.played small { font: 600 13px var(--ui); color: var(--h-muted); }

/* ---------------------------------------------------------------- dialogs and toast */
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rows li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #f0e6d2; font-size: 15px; }
.rows li:first-child { border-top: 0; padding-top: 2px; }
.rows .rname { flex: 1; min-width: 0; }
.rows .rname b { display: block; font-weight: 800; }
.rows .rname small { color: var(--h-muted); font-size: 13.5px; }
.account h3, .storage h3 { margin: 0 0 6px; font: 800 17px var(--ui); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0; }
.account p, .storage p { margin: 0 0 8px; font-size: 15px; }
.account .facts { margin: 8px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--h-muted); display: flex; flex-direction: column; gap: 4px; }
.account .facts b { color: var(--h-navy); }
.storage { margin-top: 16px; padding-top: 12px; border-top: 1px solid #f0e6d2; }
.storage .meter { margin: 6px 0 6px; }
.bk-status { font-weight: 700; color: var(--h-navy); }
.patterns ol { margin: 0; padding-left: 20px; font-size: 15px; display: flex; flex-direction: column; gap: 8px; }
.patterns ol small { color: var(--h-muted); display: block; }
.patterns p { margin: 0; font-size: 15px; color: var(--h-muted); }
.news { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--h-muted); line-height: 1.4; }
.news b { color: var(--h-navy); }
.prof-form { display: flex; flex-direction: column; gap: 10px; }
.prof-form label, .hdlg label { display: flex; flex-direction: column; gap: 4px; font: 700 14px var(--ui); color: var(--h-muted); }
.hdlg input:not([type=file]), .hdlg select { padding: 10px 12px; min-height: 44px; border: 1px solid var(--h-line); border-radius: 12px; font: 600 16px var(--ui); color: var(--h-navy); background: #fff; }
.prof-photo { display: flex; gap: 12px; align-items: center; }
.prof-photo img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; box-shadow: 0 0 0 1px var(--h-line); }
.prof-photo div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.prof-photo small { width: 100%; color: var(--h-muted); font-size: 12.5px; }
.hdlg { border: 1px solid var(--h-line); border-radius: 22px; padding: 22px 24px; width: min(480px, 94vw); background: #fffdf9; color: var(--h-navy); box-shadow: 0 24px 60px #3a241055; }
.hdlg.wide { width: min(760px, 94vw); }
.hdlg h2 { margin: 0 0 10px; font: 800 22px/1.2 var(--ui); }
.hdlg p { margin: 0 0 10px; font-size: 15px; }
.hdlg::backdrop { background: #3a241066; }
.dlg-mascot { width: 56px; height: 56px; border-radius: 14px; float: right; margin-left: 12px; }
.tlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; max-height: 60vh; overflow-y: auto; }
.tlist button { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; white-space: normal; padding: 12px 14px; border-radius: 14px; }
.tlist button b { font-weight: 800; font-size: 15.5px; }
.tlist button small { color: var(--h-muted); font-size: 13px; font-weight: 600; }
.tlist .tcat { font: 800 11px/1 var(--ui); letter-spacing: .07em; text-transform: uppercase; color: var(--accent2); }
.htoast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3000; display: flex; align-items: center; gap: 12px; background: var(--h-navy); color: #fff;
  padding: 10px 12px 10px 18px; border-radius: 14px; box-shadow: 0 12px 30px #1f235055; font: 700 15px/1.35 var(--ui); max-width: min(620px, 92vw); }
.htoast[hidden] { display: none; }
.htoast button { background: var(--gold); border-color: var(--gold); color: var(--h-navy); font-weight: 800; }

/* ---------------------------------------------------------------- narrower windows */
@media (max-width: 1500px) {
  .hero { grid-template-columns: 170px minmax(0, 1fr) 300px; }
  .hero-mascot img { width: 168px; }
  .cols { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 1280px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .right { margin-top: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
  .mountains { opacity: .8; }
}
@media (max-width: 1100px) {
  .hero { grid-template-columns: 150px minmax(0, 1fr); }
  .hero-start { grid-column: 1 / -1; }
  .top { grid-template-columns: minmax(0, 1fr) auto; }
  .gsearch { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 900px) {
  .shell { display: block; }
  .side { position: sticky; top: 0; width: auto; height: auto; padding: 8px 12px; flex-direction: column; border-right: 0; border-bottom: 1px solid var(--h-line); overflow: visible; }
  .side-top { padding: 0; }
  .logo .mark { width: 36px; height: 36px; }
  .navbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--h-line); border-radius: 12px; background: #fffdf9; font: 800 15px var(--ui); color: var(--h-navy); box-shadow: none; }
  .nav, .side-ws, .side-settings, .trees { display: none; }
  .side.open .nav { display: flex; padding-top: 8px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .side.open .side-ws, .side.open .side-settings { display: block; }
  .side.open .side-settings { display: flex; }
  .page { padding: 0 16px 40px; }
  .mountains { height: 150px; width: 70%; }
  .top { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px 0 10px; min-height: 0; }
  .greet h1 { font-size: 27px; }
  .tagline { font-size: 15px; }
  .gs-hint { display: none; }
  .gs-box { height: 52px; }
  .hprofile span, .hprofile .ic { display: none; }
  .hprofile { padding: 2px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 24px; }
  .hero-mascot { justify-content: flex-start; order: -1; margin-bottom: -6px; }
  .hero-mascot img { width: 120px; }
  .hero-continue h3 { white-space: normal; }
  .tiles { gap: 8px; }
  .tile { min-height: 110px; font-size: 14px; }
  .sec-head { gap: 10px; }
  .sec-head h2 { width: 100%; }
  .seg { max-width: 100%; overflow-x: auto; }
  .seg button { padding: 8px 12px; font-size: 14.5px; }
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .pgrid.list .piece { flex-direction: column; }
  .pgrid.list .thumb { width: 100%; height: 92px; border-right: 0; border-bottom: 1px solid #f0e6d2; }
  .pgrid.list .pbody { display: flex; }
  .pgrid.list .pacts { padding-top: 12px; }
  .right { grid-template-columns: minmax(0, 1fr); }
  .band-head { align-items: flex-start; }
  .band-links { width: 100%; }
  .band-links .btn { flex: 1 1 100%; justify-content: center; }
  .fbsearch { padding: 16px 14px; }
  .fb-big { height: 58px; padding: 0 14px; }
  .fb-big input { font-size: 18px; }
  .fb-target { width: 100%; }
  .fb-target select { flex: 1; max-width: none; }
  .fc-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .fc-l { width: auto; margin-right: 2px; }
  .fchip { white-space: nowrap; }
  .fb-row { flex-wrap: wrap; row-gap: 8px; }
  .fb-info { flex: 1 1 100%; }
  .fb-info b, .fb-info small { white-space: normal; }
  .fact { flex: 1 1 auto; justify-content: center; }
  .fadd { flex: 0 0 auto; }
  .fpd { order: 3; }
  .setgrid { grid-template-columns: minmax(0, 1fr); }
  .hdlg { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { .piece, .tile { transition: none; } .tile:hover, .piece:hover { transform: none; } }
