:root {
  --felt: #2457c9;
  --felt-deep: #1a43a3;
  --ink: #1d1a16;
  --ink-soft: #5b5245;
  --cream: #f5e9cf;
  --cream-hi: #fff8ea;
  --tan: #f0a23a;
  --tan-deep: #d9821a;
  --sky: #69c8ef;
  --red: #e2553f;
  --green: #3f9b5a;
  --bar: rgba(9, 16, 30, 0.86);
  --hair: rgba(29, 26, 22, 0.14);
  --radius: 20px;
  --shadow: 0 6px 0 rgba(10, 20, 50, 0.22), 0 14px 30px rgba(10, 20, 50, 0.18);
  --font-fun: "ZCOOL KuaiLe", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font: "PingFang SC", "Hiragino Sans GB", "Avenir Next", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--felt) url(assets/felt-blue.webp) center / 900px auto repeat;
  padding-bottom: 120px;
}
button, input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: min(1080px, 100%); margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  background: var(--felt-deep) url(assets/felt-blue.webp) center / 900px auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream-hi); }
.brand img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(0,0,0,.25)); }
.brand > span { display: flex; flex-direction: column; line-height: 1.1; }
.brand small { font-size: 12px; letter-spacing: .6px; opacity: .78; font-weight: 600; }
.brand b { font-family: var(--font-fun); font-size: 30px; font-weight: 400; letter-spacing: 2px; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.top .me {
  margin-left: 0; display: flex; align-items: center; gap: 8px;
  background: rgba(255, 248, 234, .16); border: 1px solid rgba(255,255,255,.28);
  color: var(--cream-hi); border-radius: 999px; padding: 4px 16px 4px 4px; min-height: 52px;
  cursor: pointer;
}
.top .me img { width: 44px; height: 44px; border-radius: 50%; background: var(--cream); object-fit: contain; padding: 3px; }

/* ---------- paper ---------- */
.paper {
  background: var(--cream) url(assets/paper-cream.webp) center / 360px auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card { padding: 24px; margin: 18px 0; }
h1, h2, h3 { font-family: var(--font-fun); font-weight: 400; margin: 0 0 8px; letter-spacing: 1px; }
h1 { font-size: 40px; line-height: 1.2; }
h2 { font-size: 30px; }
.hint { color: var(--ink-soft); margin: 0 0 14px; }
.on-felt { color: var(--cream-hi); text-shadow: 0 2px 0 rgba(0,0,0,.2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 64px; padding: 0 28px; border-radius: 999px; border: 0;
  font-size: 22px; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--cream-hi); color: var(--ink);
  box-shadow: 0 5px 0 rgba(0,0,0,.22);
  transition: transform .12s, box-shadow .12s;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(0,0,0,.22); }
.btn.primary { background: var(--tan); color: var(--ink); }
.btn.dark { background: var(--ink); color: var(--cream-hi); }
.btn.big { min-height: 80px; font-size: 26px; padding: 0 40px; }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn svg { width: 28px; height: 28px; flex: none; }
.back {
  display: inline-flex; align-items: center; gap: 4px; margin: 10px 0 8px; min-height: 44px; padding: 0 18px 0 10px;
  border-radius: 999px; text-decoration: none; font-size: 18px; font-weight: 700; color: var(--cream-hi);
  background: rgba(255, 248, 234, .16); border: 1px solid rgba(255, 255, 255, .32);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .15s;
}
.back:active { background: rgba(255, 248, 234, .28); }
.back svg { width: 22px; height: 22px; }
.btn.mini-light {
  min-height: 40px; padding: 0 16px; font-size: 16px; box-shadow: none;
  background: rgba(255, 248, 234, .16); color: var(--cream-hi); border: 1px solid rgba(255, 255, 255, .32);
}
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
:focus-visible { outline: 4px solid var(--sky); outline-offset: 3px; }

/* ---------- home ---------- */
.hello { display: flex; align-items: flex-end; gap: 18px; margin: 18px 0 8px; }
.hello img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 6px 0 rgba(0,0,0,.2)); }
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 22px 0 34px; }
.choice {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 260px; padding: 26px; text-decoration: none; overflow: hidden;
  transition: transform .15s;
}
.choice:active { transform: scale(.98); }
.choice .icon {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--felt); color: var(--cream-hi); margin-bottom: auto;
  box-shadow: 0 4px 0 rgba(0,0,0,.2);
}
.choice .icon svg { width: 44px; height: 44px; }
.choice b { font-family: var(--font-fun); font-weight: 400; font-size: 30px; line-height: 1.2; }
.choice span { color: var(--ink-soft); font-size: 18px; }
.choice .peek { position: absolute; right: 6px; top: 12px; width: 104px; transform: rotate(6deg); }
.choice:nth-child(2) .peek { transform: rotate(-6deg) scaleX(-1); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.songs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin: 16px 0 26px; }
.song-card { text-decoration: none; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.song-card .t { font-weight: 700; font-size: 21px; line-height: 1.3; }
.song-card .n { color: var(--ink-soft); font-size: 17px; }
.cover {
  position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: var(--felt) url(assets/felt-blue.webp) center / 500px auto;
  display: grid; place-items: center;
}
.cover > img { width: 100%; height: 100%; object-fit: contain; background: #fffaf0; }
.cover > img.dog { background: none; }
.cover > img.photo { object-fit: cover; }
.cover > img.dog { width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(0,0,0,.25)); }
.cover .badge { position: absolute; left: 8px; top: 8px; }
.chip-status {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 2px 12px;
  font-size: 16px; font-weight: 700; background: var(--cream-hi); color: var(--ink);
}
.chip-status.done { background: var(--green); color: #fff; }
.chip-status.queued { background: var(--tan); }

.find { margin: 0 0 26px; }
.find-pill {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border-radius: 999px;
  background: rgba(255, 248, 234, .9); border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 8px 24px rgba(10, 20, 50, .18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.find-pill:focus-within { box-shadow: 0 0 0 3px var(--sky), 0 8px 24px rgba(10, 20, 50, .18); }
.find-pill input[type=text] {
  flex: 1; min-width: 0; height: 52px; border: 0; border-radius: 999px; background: none; outline: none;
  padding: 0 16px; font-size: 24px; font-weight: 700; letter-spacing: 4px; color: var(--ink);
}
.find-pill input[type=text]::placeholder { letter-spacing: 0; font-weight: 400; font-size: 19px; color: var(--ink-soft); }
.find-go {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--cream-hi); font-size: 19px; font-weight: 700; cursor: pointer;
}
.find-go:active { transform: scale(.97); }
.find-go svg { width: 20px; height: 20px; }
.empty { padding: 26px; text-align: center; color: var(--ink-soft); }

/* ---------- inputs ---------- */
input[type=text], input[type=number], input[type=password], textarea {
  width: 100%; border: 2px solid var(--hair); border-radius: 14px; background: var(--cream-hi);
  padding: 14px 16px; font-size: 22px; line-height: 1.6; outline: none;
}
input:focus, textarea:focus { border-color: var(--felt); }
input:focus-visible, textarea:focus-visible { outline: none; }
textarea { min-height: 220px; resize: vertical; }
.talk { display: grid; gap: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.chip {
  min-height: 56px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--hair);
  background: var(--cream-hi); font-size: 20px; font-weight: 700; cursor: pointer;
}
.chip.ghost { background: none; border-style: dashed; }
.chips .more { display: contents; }
.chips .more[hidden] { display: none; }
.chip[aria-pressed=true] { background: var(--ink); color: var(--cream-hi); border-color: var(--ink); }

/* ---------- welcome ---------- */
.dogs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin: 10px 0 20px; }
.dog-pick {
  border: 3px solid transparent; border-radius: 18px; background: var(--cream-hi); padding: 8px 6px 4px;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 18px;
}
.dog-pick img { width: 92px; height: 92px; object-fit: contain; }
.dog-pick[aria-pressed=true] { border-color: var(--felt); background: #dfe9ff; }
.parade { display: flex; justify-content: center; gap: 4px; margin: 10px 0 0; }
.parade img { width: 90px; height: 90px; object-fit: contain; animation: hop 2.4s ease-in-out infinite; }
.parade img:nth-child(2) { animation-delay: .3s; } .parade img:nth-child(3) { animation-delay: .6s; }
.parade img:nth-child(4) { animation-delay: .9s; } .parade img:nth-child(5) { animation-delay: 1.2s; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-14px); } }

/* ---------- lyrics ---------- */
.lyrics-card h1 { margin-bottom: 4px; }
.lyrics { white-space: pre-wrap; font-size: 22px; line-height: 1.8; margin: 14px 0; }
.lyrics .tag {
  display: inline-block; margin: 14px 0 2px; padding: 0 12px; border-radius: 999px;
  background: var(--felt); color: var(--cream-hi); font-size: 15px; line-height: 1.8; font-weight: 700;
}
.saw { background: rgba(36,87,201,.08); border-radius: 14px; padding: 12px 16px; margin: 10px 0; }

/* ---------- drawing ---------- */
.draw-layout { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; margin-top: 10px; }
.pad-frame { padding: 12px; }
#pad {
  display: block; width: min(100%, calc((100dvh - 250px) * 4 / 3)); aspect-ratio: 4 / 3; margin: 0 auto;
  border-radius: 12px; background: #fffaf0; touch-action: none; cursor: crosshair;
}
.tools { display: flex; flex-direction: column; gap: 16px; padding: 14px; width: 150px; }
.palette { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; justify-items: center; }
.swatch {
  width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--cream-hi);
  box-shadow: 0 0 0 1px var(--hair); cursor: pointer; transition: transform .12s;
}
.swatch[aria-pressed=true] { box-shadow: 0 0 0 3px var(--ink); transform: scale(1.08); }
.tool-row { display: flex; flex-direction: column; gap: 12px; }
.seg { display: flex; padding: 4px; border-radius: 999px; background: var(--cream-hi); border: 1px solid var(--hair); }
.seg button {
  flex: 1; height: 44px; border: 0; border-radius: 999px; background: none; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.seg button[aria-pressed=true] { background: var(--ink); color: var(--cream-hi); }
.seg .dot { display: block; border-radius: 50%; background: currentColor; }
.acts { display: flex; flex-direction: column; gap: 8px; }
.act {
  display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 14px;
  border: 1px solid var(--hair); background: var(--cream-hi); font-size: 17px; font-weight: 700; cursor: pointer;
}
.act svg { width: 24px; height: 24px; flex: none; }
.act[aria-pressed=true] { background: var(--ink); color: var(--cream-hi); }

/* ---------- song page ---------- */
.song-hero { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 26px; align-items: center; padding: 22px; }
.song-no { font-family: var(--font-fun); font-size: 26px; color: var(--felt); }
.waiting { display: flex; align-items: center; gap: 14px; margin: 14px 0; padding: 14px 18px; border-radius: 16px; background: rgba(240,162,58,.18); }
.waiting img { width: 72px; height: 72px; object-fit: contain; animation: hop 1.6s ease-in-out infinite; }
.big-no {
  font-family: var(--font-fun); font-size: 64px; line-height: 1; color: var(--felt);
  background: var(--cream-hi); border-radius: 18px; padding: 10px 22px; display: inline-block;
  border: 3px dashed var(--felt);
}

/* ---------- player (Suno-style dock) ---------- */
.player {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center;
  padding: 10px 14px; border-radius: 22px; color: var(--cream-hi);
  background: var(--bar); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transform: translateY(140%); transition: transform .25s;
  max-width: 1040px; margin: 0 auto;
}
.player.show { transform: none; }
.player .thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--felt); display: grid; place-items: center; }
.player .thumb img { width: 100%; height: 100%; object-fit: cover; }
.player .thumb img.dog { width: 80%; height: 80%; object-fit: contain; }
.player .meta { min-width: 0; }
.player .meta b { display: block; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .bar { display: flex; align-items: center; gap: 10px; font-size: 15px; opacity: .9; font-variant-numeric: tabular-nums; }
.player input[type=range] { flex: 1; accent-color: var(--tan); height: 28px; }
.player .pp {
  width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--tan); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}
.player .pp svg { width: 30px; height: 30px; }

/* ---------- toast & misc ---------- */
.toast {
  position: fixed; left: 50%; top: 20px; z-index: 50; transform: translate(-50%, -150%);
  background: var(--ink); color: var(--cream-hi); padding: 14px 24px; border-radius: 999px;
  font-size: 20px; font-weight: 700; transition: transform .25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.loading { display: flex; align-items: center; gap: 14px; padding: 18px 0; font-size: 22px; }
.loading img { width: 64px; height: 64px; object-fit: contain; animation: hop 1s ease-in-out infinite; }
[hidden] { display: none !important; }

@media (max-width: 760px) {
  body { font-size: 18px; }
  .wrap { padding: 0 16px; }
  h1 { font-size: 32px; }
  .choices { grid-template-columns: 1fr 1fr; gap: 12px; }
  .choice { min-height: 176px; padding: 16px; }
  .choice .icon { width: 56px; height: 56px; }
  .choice .icon svg { width: 30px; height: 30px; }
  .choice b { font-size: 24px; }
  .choice span { font-size: 15px; line-height: 1.35; }
  .choice .peek { width: 74px; top: 8px; right: 4px; }
  .draw-layout { grid-template-columns: 1fr; }
  .tools { order: -1; width: auto; gap: 12px; }
  .palette { grid-template-columns: repeat(5, 1fr); }
  .swatch { width: 44px; height: 44px; }
  .tool-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
  .seg { width: 124px; flex: none; }
  .seg button { height: 44px; }
  .acts { flex-direction: row; gap: 6px; }
  .act { flex-direction: column; justify-content: center; gap: 0; width: 54px; height: 56px; padding: 0; font-size: 12px; }
  .song-hero { grid-template-columns: 1fr; }
  .songs { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brand b { font-size: 24px; }
  .player { grid-template-columns: 52px 1fr auto; }
  .player .thumb, .player .pp { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- style picker ---------- */
.style-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; margin: 4px 0 6px; scrollbar-width: none; }
.style-tabs::-webkit-scrollbar { display: none; }
.style-tabs button {
  flex: none; height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: none;
  font-size: 18px; font-weight: 700; color: var(--ink-soft); cursor: pointer;
}
.style-tabs button[aria-selected=true] { background: var(--ink); color: var(--cream-hi); }
.style-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.style-chip {
  min-height: 54px; padding: 0 22px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--c); color: var(--ink); font-size: 19px; font-weight: 700;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .16); transition: transform .12s, box-shadow .12s;
}
.style-chip:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .16); }
.style-chip[aria-pressed=true] { box-shadow: 0 0 0 3px var(--ink), 0 4px 0 rgba(0, 0, 0, .16); }
.style-chip[aria-pressed=true]::before { content: '✓ '; }
.voice-row { display: flex; align-items: center; gap: 16px; border-top: 2px dashed var(--hair); padding-top: 16px; }
.voice-row > span { font-weight: 700; white-space: nowrap; }
.voice-row .chips {
  display: inline-flex; flex-wrap: nowrap; gap: 0; margin: 0; padding: 4px;
  border-radius: 999px; background: rgba(29, 26, 22, .09);
}
.voice-row .chip {
  min-height: 46px; min-width: 84px; padding: 0 20px; border: 0; border-radius: 999px;
  background: none; color: var(--ink); font-size: 18px; transition: background .15s, color .15s, box-shadow .15s;
}
.voice-row .chip[aria-pressed=true] {
  background: var(--cream-hi); color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
}

/* ---------- share switch & cover ---------- */
.share { display: flex; align-items: center; gap: 12px; margin: 16px 0; cursor: pointer; font-size: 18px; }
.share input { position: absolute; opacity: 0; pointer-events: none; }
.share .switch {
  flex: none; position: relative; width: 58px; height: 34px; border-radius: 999px; background: rgba(29, 26, 22, .22);
  transition: background .15s;
}
.share .switch::after {
  content: ''; position: absolute; left: 3px; top: 3px; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25); transition: transform .15s;
}
.share input:checked + .switch { background: var(--felt); }
.share input:checked + .switch::after { transform: translateX(24px); }
.share input:focus-visible + .switch { outline: 3px solid var(--sky); outline-offset: 2px; }
.cover-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; min-height: 48px;
  border-radius: 14px; border: 2px dashed var(--hair); font-weight: 700; font-size: 17px; cursor: pointer; color: var(--ink-soft);
}
.cover-btn svg { width: 22px; height: 22px; }
.song-hero { margin-top: 4px; }

@media (max-width: 760px) {
  .find-pill input[type=text]::placeholder { font-size: 16px; }
  .find-go { padding: 0 18px; }
  .style-chip { min-height: 48px; padding: 0 16px; font-size: 17px; }
}

/* ---------- song title ---------- */
.title-input { margin-bottom: 12px; font-weight: 700; }
.title-edit {
  display: flex; align-items: center; gap: 10px; padding: 6px 16px; border-radius: 16px;
  background: var(--cream-hi); border: 2px solid var(--hair); cursor: text;
}
.title-edit:focus-within { border-color: var(--felt); }
.title-edit > span { flex: none; font-size: 16px; font-weight: 700; color: var(--ink-soft); }
.title-edit input[type=text] {
  flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 6px 0;
  font-family: var(--font-fun); font-size: 32px; color: var(--ink);
}
.title-edit svg { flex: none; width: 24px; height: 24px; color: var(--ink-soft); }

/* ---------- "busy" notices ---------- */
.busy { display: flex; align-items: center; gap: 16px; border-left: 8px solid var(--tan); }
.busy > img { flex: none; width: 84px; height: 84px; object-fit: contain; animation: hop 1.8s ease-in-out infinite; }

/* ---------- photo page ---------- */
.photo-box { margin: 4px 0 14px; border-radius: 16px; overflow: hidden; background: var(--cream-hi); border: 2px solid var(--hair); }
.photo-box img { width: 100%; max-height: 60dvh; object-fit: contain; }
.photo-pick { cursor: pointer; }
@media (min-width: 761px) and (max-width: 980px) {
  .choices { grid-template-columns: 1fr 1fr; }
}

/* ---------- monthly allowance pill ---------- */
.quota {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 14px 0 10px;
  border-radius: 999px; color: var(--cream-hi); font-size: 15px; white-space: nowrap;
  background: rgba(255, 248, 234, .16); border: 1px solid rgba(255, 255, 255, .28);
}
.quota, .top .me, .brand { flex: none; }
.quota svg { width: 18px; height: 18px; opacity: .85; }
.quota b { font-family: var(--font-fun); font-weight: 400; font-size: 22px; line-height: 1; margin: 0 1px; }
.quota.low { background: rgba(240, 162, 58, .9); border-color: transparent; color: var(--ink); }
.quota.empty { background: var(--cream-hi); border-color: transparent; color: var(--ink); font-weight: 700; }
.quota[hidden] + .me { margin-left: auto; }
@media (max-width: 760px) {
  .top { gap: 8px; padding: 10px 12px; }
  .brand img { width: 40px; height: 40px; }
  .brand small { display: none; }
  .quota { height: 36px; padding: 0 10px 0 8px; font-size: 14px; }
  .quota .lbl { display: none; }
  .quota b { font-size: 19px; }
  .top .me { min-height: 44px; padding: 3px 10px 3px 3px; }
  .top .me img { width: 36px; height: 36px; }
  .top .me { padding: 3px; }
  .top .me span { display: none; }
  .brand b { font-size: 22px; white-space: nowrap; }
}

/* File inputs stay in the layout (1px, invisible): display:none stops the picker opening in some in-app browsers. */
.file-hide { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.photo-pick, .cover-btn { position: relative; }

/* ---------- "cannot reach the server" notice ---------- */
.netwarn {
  width: min(1040px, calc(100% - 32px)); margin: 10px auto 0; padding: 12px 16px; border-radius: 16px;
  background: var(--tan); color: var(--ink); font-size: 17px; line-height: 1.5; box-shadow: 0 4px 0 rgba(0, 0, 0, .18);
}
.netwarn b { display: block; }
.netwarn .btn { display: flex; margin-top: 10px; min-height: 52px; font-size: 18px; box-shadow: none; }
