:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #172620;
  background: #f5f6f1;
  font-size: 16px;
  --ink: #172620;
  --muted: #55665d;
  --line: #dee5dc;
  --paper: #fff;
  --accent: #196348;
  --soft: #e9f2e8;
  --shadow: 0 2px 4px #253a2710;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
button {
  min-height: 42px; padding: 9px 16px; border: 1px solid transparent; border-radius: 9px;
  background: var(--accent); color: white; cursor: pointer; font-weight: 650;
}
button:hover { filter: brightness(.94); }
:focus-visible { outline: 3px solid #368f69; outline-offset: 3px; }
button:disabled { opacity: .55; cursor: default; }
.hidden { display: none !important; }

.topbar { border-bottom: 1px solid var(--line); background: #fffefa; }
.topbar-inner {
  width: min(1200px, 100%); margin: auto; padding: 15px 28px; min-height: 72px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.brand, #account { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand strong { overflow-wrap: anywhere; font-size: 16px; font-weight: 750; }
#account { flex: 0 0 auto; color: var(--muted); font-size: 14px; }
#account span { max-width: 156px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#account button { min-height: 36px; font-size: 14px; }
.mark {
  flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; background: #173c2d;
}
.mark i {
  width: 19px; height: 17px; position: relative; border-radius: 3px;
  border: 2px solid #d6efc9; border-top-width: 6px;
}
.mark i::before { content: ""; position: absolute; top: -5px; left: 3px; width: 3px; height: 5px; background: #173c2d; transform: skew(-28deg); box-shadow: 6px 0 #173c2d; }
.mark i::after { content: ""; position: absolute; inset: 4px 4px auto; height: 2px; border-radius: 2px; background: #d6efc9; }

main { max-width: 1200px; margin: auto; padding: 22px 28px 64px; }
.tabs {
  width: fit-content; max-width: 100%; display: flex; gap: 4px; padding: 4px; margin: 0 0 20px;
  background: #e8ece4; border: 1px solid #dce3d9; border-radius: 12px;
}
.tab { background: transparent; color: #43574b; font-size: 15px; padding: 8px 18px; }
.tab.active { background: #fff; color: #194e38; box-shadow: var(--shadow); }

.hero {
  isolation: isolate; position: relative; overflow: hidden; display: flex; min-height: 218px;
  align-items: center; justify-content: space-between; gap: 24px; padding: 36px 42px; border-radius: 20px;
  background: radial-gradient(ellipse at 73% 4%, #2e6150, transparent 58%), linear-gradient(130deg, #122b23, #164031);
  color: #fff;
}
.hero-copy, .hero-number { position: relative; z-index: 1; }
.hero h1, .page-head h1 { font-size: clamp(29px, 4vw, 47px); line-height: 1.17; margin: 0; letter-spacing: -.035em; }
.hero p { margin: 14px 0 0; color: #d1dfd5; line-height: 1.65; }
.hero-number {
  display: grid; align-content: center; gap: 4px; flex: 0 0 auto;
  min-width: 158px; padding: 15px 22px; border: 1px solid #e1ffe237; border-radius: 13px;
  background: #102f27b0; color: #d6f4ba;
}
.hero-number strong { font-size: clamp(36px, 5vw, 55px); font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -.055em; }
.hero-number span { color: #e1efe2; font-size: 14px; }
.hero-motif {
  position: absolute; z-index: 0; top: 18%; right: 4%; width: 52%; height: 62%;
  transform: rotate(-12deg); opacity: .25; pointer-events: none;
  border: 1px solid #a9d6b6; border-radius: 9px; display: flex; gap: 9px; padding: 18px 12px;
  background: repeating-linear-gradient(90deg,#d0e9d4 0 9px,transparent 9px 18px) top 5px left 12px / calc(100% - 24px) 4px no-repeat,
    repeating-linear-gradient(90deg,#d0e9d4 0 9px,transparent 9px 18px) bottom 5px left 12px / calc(100% - 24px) 4px no-repeat;
}
.hero-motif i { flex: 1; border: 1px solid #c3eccf; border-radius: 5px; background: linear-gradient(150deg, #8bbb8e35, #d2edb308); }

.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 14px 0 36px; }
.stats article, .panel, .forms form, .show-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.stats article { padding: 17px 20px; }
.stats span, .stats strong { display: block; }
.stats span { color: var(--muted); font-size: 14px; }
.stats strong { margin-top: 4px; font-size: 32px; font-variant-numeric: tabular-nums; }
.stats .stat-green { background: #e7f1e4; border-color: #d7e5d2; }
.stats .stat-green strong { color: #1c6348; }

.section-head, .group-title, .show-top, .dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-head { margin-bottom: 16px; }
.section-head h2, .dialog-head h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 7px 0 0; font-size: 14px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend span::before { content: ""; flex: 0 0 10px; height: 10px; border-radius: 3px; background: #cdebcf; border: 1px solid #94c6a5; }
.legend span + span::before { background: #eaeee7; border-color: #d0d9cd; }
.quiet { color: #2b5140; background: #f1f5ee; border-color: #dce7db; }
.danger { color: #9a352d; background: #fff5f1; border-color: #f0d9d4; }

.groups { display: grid; gap: 24px; }
.group-card { border: 1px solid var(--line); border-radius: 17px; padding: 18px; background: #edf0e9; }
.group-title { margin-bottom: 13px; }
.group-title h3 { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.group-title span { color: var(--muted); font-size: 14px; }
.group-card > .quiet { margin: 0 0 12px; min-height: 34px; font-size: 14px; padding: 6px 10px; background: #f8faf6; }
.shows, .forms { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.show-card { padding: 18px; min-width: 0; }
.show-top { align-items: start; }
.show-top h4 { font-size: 19px; margin: 0 0 5px; overflow-wrap: anywhere; }
.show-top p { margin: 0; color: var(--muted); font-size: 14px; }
.rate { font-weight: 800; font-size: 22px; color: #166348; }
.bar { height: 7px; background: #e7ede4; border-radius: 10px; overflow: hidden; margin: 16px 0; }
.bar i { display: block; height: 100%; background: #388660; border-radius: inherit; }
.grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(38px,1fr)); gap: 6px; }
.episode { min-height: 38px; padding: 3px 2px; border: 1px solid #e0e6dc; border-radius: 7px; background: #f0f3ed; color: #56665b; font-size: 14px; }
.episode.done { background: #dbefdd; color: #176141; border-color: #bdddc5; }
.episode:disabled { opacity: 1; }
.episode.editable:not(:disabled):hover { outline: 2px solid #4f8e6d; }
.editbox { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; display: grid; gap: 10px; }
.editbox>div, .show-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.editbox input { flex: 1 1 135px; min-width: 0; margin: 0; }
.editbox > .quiet { justify-self: start; }
.editbox button, .show-actions button { font-size: 14px; }
.show-actions { margin-top: 12px; }
.page-head { margin: 10px 0 24px; }
.page-head h1 { font-size: clamp(26px,4vw,36px); }
.page-head p, .panel p, .empty { color: var(--muted); line-height: 1.6; }
.panel, .forms form { padding: 20px; }
.panel h3, .forms h2 { margin: 0; font-size: 19px; }
#grantPanel, #accessPanel { margin-top: 16px; }
#accessPanel h3:not(:first-child) { margin-top: 20px; }
.grant-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.grant-row span { overflow-wrap: anywhere; }
.grant-row select { width: auto; max-width: 58%; margin: 0; }
label { display: block; margin: 13px 0; font-weight: 600; font-size: 14px; }
input, select {
  display: block; width: 100%; min-height: 44px; border: 1px solid #c9d6ca; border-radius: 8px;
  padding: 9px 11px; margin-top: 6px; background: #fff; color: var(--ink); font-size: 16px;
}
small { color: var(--muted); }
.forms small { display: block; margin-top: 8px; }
.welcome { max-width: 490px; margin: clamp(24px,10vh,96px) auto; padding: clamp(24px,6vw,40px); }
.welcome h1 { margin: 17px 0 4px; font-size: clamp(25px,5vw,31px); }
.welcome button { width: 100%; margin-top: 10px; }
#firstProject { margin: 0 0 24px; }
dialog { border: 1px solid var(--line); border-radius: 17px; width: min(420px,calc(100% - 32px)); padding: 24px; color: var(--ink); box-shadow: 0 24px 72px #112f234d; }
dialog::backdrop { background: #10281fb0; }
dialog form > button { width: 100%; margin-top: 8px; }
#loginError { color: #a2352b; }
#loginError:empty { display: none; }
#toast { position: fixed; z-index: 3; bottom: 22px; left: 50%; transform: translateX(-50%); display: none; background: #1d3e30; color: #fff; padding: 12px 18px; border-radius: 9px; max-width: 90vw; }

@media (max-width: 790px) {
  .shows { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .topbar-inner, main { padding-left: 14px; padding-right: 14px; }
  .topbar-inner { min-height: 60px; padding-block: 12px; }
  #account span { display: none; }
  main { padding-top: 14px; }
  .tabs { display: flex; width: 100%; margin-bottom: 12px; }
  .tab { flex: 1; white-space: nowrap; padding-inline: 6px; }
  .hero { display: block; min-height: 0; padding: 24px 20px; border-radius: 14px; }
  .hero p { margin-top: 9px; }
  .hero-number { display: inline-flex; align-items: center; min-width: 0; margin-top: 16px; padding: 8px 11px; gap: 10px; }
  .hero-motif { top: 35%; right: -14%; width: 72%; height: 54%; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); margin-block: 12px 26px; gap: 8px; }
  .stats article { padding: 12px 13px; }
  .stats strong { font-size: 26px; }
  .section-head h2 { font-size: 21px; }
  .forms { grid-template-columns: 1fr; }
  .group-card, .show-card { padding: 12px; }
  .grid { grid-template-columns: repeat(auto-fill,minmax(34px,1fr)); }
  .episode { min-height: 36px; }
}
.group-card > .quiet + .quiet { margin-left: 7px; }
#setupError { color: #a2352b; }
#setupError:empty { display: none; }

.group-title h2 { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.show-top h3 { font-size: 19px; margin: 0 0 5px; overflow-wrap: anywhere; }
.summary-shows .bar { margin-bottom: 0; }
.group-page-heading { flex-wrap: wrap; }
.group-page-heading h1 { overflow-wrap: anywhere; }
.group-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.group-history { margin-top: 22px; }
.group-history summary { cursor: pointer; font-weight: 700; }
.group-history .shows { margin-top: 15px; }
.grid.selectable { position: relative; user-select: none; -webkit-user-select: none; }
.selection-box {
  position: absolute; z-index: 1; pointer-events: none; border: 1px solid var(--selection-line, #1f7351);
  background: var(--selection-fill, #34835b24); border-radius: 3px;
}
.episode.is-selected { box-shadow: inset 0 0 0 2px var(--selection-line, #1f7351); }
.selection-tools { align-items: center; gap: 8px; }
.selection-count { color: var(--selection-line, #1f7351); font-size: 14px; font-weight: 700; }
.selection-tools button { min-height: 32px; padding: 4px 9px; }
.tab[data-tab=editing].active { color: #a13040; background: #fff2f2; }
.editing-view { --accent: #a53245; --selection-line: #a53245; --selection-fill: #b3404928; }
.editing-view .group-card { border-color: #eadbdc; background: #f3e8e8; }
.editing-view .rate { color: #a13040; }
.editing-view .bar { background: #f1e5e5; }
.editing-view .bar i { background: #bf4e5a; }
.editing-view .episode.done { background: #f7dfe1; color: #9a293a; border-color: #e9b9bf; }
.editing-view .episode.editable:not(:disabled):hover { outline-color: #b64e5a; }
.editing-view .legend span:first-child::before { background: #f7dfe1; border-color: #d6949c; }
.editing-view .quiet { color: #853344; background: #fff5f5; border-color: #e7cdd2; }
.editing-view :focus-visible { outline-color: #a53245; }
.planner-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 16px; align-items: start; }
.planner-layout h2 { margin: 0; font-size: 20px; }
.planner-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 12px; }
.planner-check { display: flex; align-items: center; gap: 8px; }
.planner-check input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--accent); }
.planner-error { color: #a2352b !important; }
.planner-error:empty { display: none; }
.planner-result dl { display: grid; gap: 1px; margin-bottom: 0; }
.planner-result dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 10px; border-bottom: 1px solid var(--line); }
.planner-result dd { margin: 0; font-weight: 700; text-align: right; }
.planner-result .planner-highlight { border: 0; border-radius: 8px; background: var(--soft); color: var(--accent); }
@media (max-width: 760px) {
  .planner-layout { grid-template-columns: 1fr; }
}
@media (max-width: 415px) {
  .tab { min-width: 0; padding-inline: 3px; font-size: 13px; }
}
@media (max-width: 345px) {
  .tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .planner-fields { grid-template-columns: 1fr; }
}

.public-landing { background: #0d1613; }
.public-landing .topbar { display: none; }
.public-landing main { max-width: none; padding: 0; }
.landing {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0d1613;
  color: #f8f3e8;
}
.landing-photo, .landing-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}
.landing-photo {
  background: #111a15 url('./soundstage.jpg') 65% center / cover no-repeat;
  animation: soundstage-drift 9s ease-in-out infinite alternate;
}
.landing-light {
  z-index: -1;
  background:
    linear-gradient(90deg, #0a120ee8 0%, #0a120eb8 37%, #10191224 65%, #14190f08 100%),
    linear-gradient(0deg, #0b1512 0%, #0b151228 25%, transparent 60%),
    radial-gradient(ellipse at 77% 20%, #e8b45f24, transparent 49%);
}
.landing-effects { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.landing-beam {
  position: absolute;
  top: 0;
  right: -4%;
  width: 72%;
  height: 68%;
  transform-origin: 97% 13%;
  filter: blur(13px);
  mix-blend-mode: screen;
  animation: soundstage-beam 5.8s ease-in-out infinite alternate;
}
.landing-beam::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(100% 6%, 100% 23%, 3% 80%, 0 59%);
  background: linear-gradient(151deg, transparent 26%, #dfab6138 47%, #ffc683b5 74%, #ffdc9770 100%);
  -webkit-mask-image: radial-gradient(ellipse 76% 61% at 72% 39%, #000 18%, transparent 92%);
  mask-image: radial-gradient(ellipse 76% 61% at 72% 39%, #000 18%, transparent 92%);
}
.landing-glow {
  position: absolute;
  top: -12%;
  right: -13%;
  width: 46%;
  height: 65%;
  background: radial-gradient(ellipse at 55% 30%, #ffdca168 0, #eeaf4c28 30%, transparent 66%);
  mix-blend-mode: screen;
  animation: soundstage-glow 4.6s ease-in-out infinite alternate;
}
.landing-dust {
  position: absolute;
  inset: 7% 2% 17% 41%;
  background:
    radial-gradient(circle at 27% 22%, #fbd28aee 0 1px, transparent 3px),
    radial-gradient(circle at 66% 18%, #fedc9cee 0 1.2px, transparent 3px),
    radial-gradient(circle at 85% 32%, #f4d699ee 0 1.5px, transparent 4px),
    radial-gradient(circle at 54% 29%, #f4d699aa 0 1px, transparent 3px),
    radial-gradient(circle at 35% 42%, #ffcf88ee 0 1.2px, transparent 3px),
    radial-gradient(circle at 45% 61%, #ffe4a0aa 0 1px, transparent 3px),
    radial-gradient(circle at 62% 53%, #f6cd8cee 0 1.5px, transparent 4px),
    radial-gradient(circle at 95% 55%, #f6cd8cbb 0 1px, transparent 3px),
    radial-gradient(circle at 13% 67%, #f6cd8caa 0 1px, transparent 3px),
    radial-gradient(circle at 23% 52%, #ffd683aa 0 1px, transparent 3px),
    radial-gradient(circle at 72% 72%, #ffda9899 0 1px, transparent 3px);
  mix-blend-mode: screen;
  animation: soundstage-dust 6.8s linear infinite alternate;
}
.landing-shell {
  width: min(1320px, 100%);
  min-height: inherit;
  margin-inline: auto;
  padding-inline: clamp(27px, 5.6vw, 86px);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.landing-header {
  min-height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #eddfbb35;
}
.landing-header .brand strong { font-weight: 600; color: #f4ecdb; letter-spacing: .045em; }
.landing-header .mark { background: #ecdaac14; border: 1px solid #e7d7aa70; }
.landing-header .mark i { border-color: #e5cea0; }
.landing-header .mark i::before { background: #403c2b; box-shadow: 6px 0 #403c2b; }
.landing-header .mark i::after { background: #e5cea0; }
#landingMotion {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 10px;
  border-color: #f0dfae55;
  background: #151a1190;
  color: #f2e6c8;
  font-size: 13px;
}
.pause-icon { width: 10px; height: 10px; border-inline: 2px solid currentColor; }
.motion-paused .pause-icon { border: 0; background: currentColor; clip-path: polygon(10% 0,100% 50%,10% 100%); }
.landing-copy {
  align-self: center;
  max-width: 625px;
  padding: 44px 0 60px;
  animation: soundstage-enter .8s cubic-bezier(.2,.74,.23,1) both;
}
.landing-copy h1 {
  margin: 0;
  font-family: "Songti SC", "Noto Serif CJK SC", STSong, "Microsoft YaHei", serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-shadow: 0 3px 32px #060d09a3;
}
.landing-copy h1 span { color: #e5ca8f; }
.landing-copy p { max-width: 30em; color: #e5e0ca; margin: 23px 0 28px; font-size: 16px; line-height: 1.72; }
#welcomeLogin {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 50px;
  padding: 11px 18px;
  border-radius: 9px;
  background: #e8d3a2;
  border: 1px solid #f1ddad;
  color: #211c11;
}
#welcomeLogin:hover { background: #f3e0b5; filter: none; }
.landing-play { display: inline-block; width: 11px; height: 12px; background: currentColor; clip-path: polygon(8% 0,100% 50%,8% 100%); }
#landingSignInNote { display: inline-block; margin-left: 11px; color: #d8d1bb; font-size: 14px; }
.landing-features {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin: 0;
  padding: 19px 0 25px;
  border-top: 1px solid #e4d8b236;
  list-style: none;
  color: #efebdb;
  font-size: 14px;
}
.landing-features li { display: flex; align-items: center; gap: 8px; }
.landing-key { width: 7px; height: 7px; border-radius: 2px; background: #e5ca8f; }
.script-key { background: #93bfa0; }
.editing-key { background: #d7898d; }
.landing :focus-visible { outline-color: #f6df9b; }
.motion-paused :is(.landing-photo,.landing-beam,.landing-glow,.landing-dust) { animation-play-state: paused; }
@keyframes soundstage-drift {
  from { transform: scale(1.025) translateX(.25%); }
  to { transform: scale(1.09) translateX(-1.6%) translateY(-.5%); }
}
@keyframes soundstage-beam {
  0% { transform: rotate(7deg); opacity: .32; }
  22% { opacity: .82; }
  100% { transform: rotate(-13deg); opacity: .59; }
}
@keyframes soundstage-glow {
  from { transform: translateY(-7%) scale(.91); opacity: .38; }
  to { transform: translate(-5%, 6%) scale(1.24); opacity: .9; }
}
@keyframes soundstage-dust {
  0% { transform: translate(0, 4%); opacity: .22; }
  43% { opacity: .75; }
  100% { transform: translate(-13%, -10%); opacity: .38; }
}
@keyframes soundstage-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 660px) {
  .landing-shell { padding-inline: 22px; }
  .landing-header { min-height: 65px; }
  .landing-header .brand strong { font-size: 14px; letter-spacing: 0; }
  .landing-header .mark { flex-basis: 32px; width: 32px; height: 32px; }
  .landing-photo { bottom: 12%; background-position: 82% top; }
  .landing-beam { width: 108%; height: 50%; right: -10%; top: 4%; filter: blur(8px); }
  .landing-glow { right: -15%; top: -5%; width: 80%; height: 45%; }
  .landing-dust { inset: 7% 0 45% 12%; }
  .landing-light {
    background:
      linear-gradient(0deg, #0b1512 0%, #0c1512 28%, #0b1310d9 46%, #0b13102e 73%, #0d1613a8 100%),
      linear-gradient(90deg, #0a120e64, transparent 88%);
  }
  .landing-copy { align-self: end; padding: clamp(138px, 30vh, 340px) 0 38px; }
  .landing-copy h1 { font-size: clamp(35px, 9vw, 62px); }
  .landing-copy p { margin: 15px 0 19px; font-size: 15px; }
  .landing-features { padding-block: 16px 20px; gap: 11px 16px; font-size: 13px; }
}
@media (max-width: 355px) {
  .landing-shell { padding-inline: 16px; }
  #landingSignInNote { margin-top: 8px; margin-left: 0; display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .landing:not(.motion-opt-in) :is(.landing-photo,.landing-beam,.landing-glow,.landing-dust,.landing-copy) { animation: none; }
  .landing:not(.motion-opt-in) .landing-effects { opacity: .35; }
}

.workspace-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, .76fr);
  align-items: center;
  gap: 32px;
  padding: clamp(24px,4vw,48px);
  border-radius: 19px;
  color: #fbf5e7;
  background: #14241d;
}
.workspace-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg,#102019 12%,#13251ce0 43%,#201d12a0 100%),
    url('./soundstage.jpg') 72% 43% / cover no-repeat;
}
.workspace-title span { color: #e2d3ac; font-size: 14px; font-weight: 600; }
.workspace-title h1 { margin: 10px 0 6px; font-size: clamp(29px,4vw,47px); letter-spacing: -.028em; }
.workspace-title p { margin: 0; color: #e6dfcc; line-height: 1.6; }
.workspace-totals {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #fff6d433;
  border-radius: 12px;
  background: #101912ad;
}
.workspace-section { margin: 28px 0 14px; }
.workspace-group-title { gap: 10px; flex-wrap: wrap; }
.workspace-group-title .group-actions button { padding: 6px 11px; min-height: 36px; font-size: 14px; }
.workspace-group-title .editing-button { color: #853344; background: #fff5f5; border-color: #e7cdd2; }
.paired-show { display: grid; gap: 13px; }
.paired-show h3 { margin: 0 0 1px; overflow-wrap: anywhere; font-size: 19px; }
.track-heading { display: grid; grid-template-columns: 1fr auto 48px; align-items: baseline; gap: 9px; margin-bottom: 6px; }
.track-label { font-weight: 650; font-size: 14px; }
.track-count { font-size: 14px; color: #536458; font-variant-numeric: tabular-nums; }
.track-percent { text-align: right; color: #196348; font-variant-numeric: tabular-nums; }
.track-bar { height: 7px; border-radius: 8px; background: #e7ede4; overflow: hidden; }
.track-bar i { display: block; height: 100%; border-radius: inherit; background: #37865f; }
.workspace-track.editing .track-percent { color: #a13040; }
.workspace-track.editing .track-bar { background: #f3e7e7; }
.workspace-track.editing .track-bar i { background: #c55765; }
.workspace-totals .track-count { color: #e9e0cc; }
.workspace-totals .track-percent { color: #b1e7ba; }
.workspace-totals .track-bar, .workspace-totals .editing .track-bar { background: #f5e6c530; }
.workspace-totals .track-bar i { background: #84c595; }
.workspace-totals .editing .track-percent { color: #ffb3b8; }
.workspace-totals .editing .track-bar i { background: #e99198; }
@media (max-width: 680px) {
  .workspace-hero { grid-template-columns: minmax(0, 1fr); gap: 17px; padding: 21px; }
  .workspace-totals { gap: 12px; padding: 13px; }
}
@media (max-width: 535px) {
  .tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 315px) {
  .tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .paired-show .track-heading { gap: 5px; }
}

.workspace-section, .page-head.section-head { flex-wrap: wrap; }
.ownership-label { display: inline-block; vertical-align: middle; margin-inline-start: 8px; color: #225b43; background: #e0eee4; border-radius: 5px; padding: 2px 7px; font-size: 12px; font-weight: 600; }
#trashDialog { max-height: 85vh; }
#trashEntries { margin-top: 14px; }
.trash-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 10px 0; }
.trash-row strong { overflow-wrap: anywhere; }

#account button { padding-inline: 10px; white-space: nowrap; }
.member-access-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; }
.member-access-row .grant-row { margin-block: 0; min-width: 0; }
.member-access-row > button { font-size: 14px; min-height: 36px; padding-inline: 10px; }
@media (max-width: 520px) {
  #account { gap: 5px; }
  #account button { padding-inline: 7px; font-size: 13px; }
  .member-access-row { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); padding-bottom: 9px; }
  .member-access-row .grant-row { border: 0; }
  .member-access-row > button { justify-self: end; }
}
