/* Lead Sheet Studio: the one CSS base. The design tokens and the component look come from the curate app
   (sync-score-scribe: src/styles.css, shadcn "new-york" on slate, MSMT cream / slate / brand orange + teal), written as
   plain CSS here (no build step). The left sidebar (shell.js) and the shell's own pages (app.js) use the classes
   below; the editor and the curation pages add their own sheet on top (editor/style.css, curation/style.css) and take
   the same tokens. Light only for now: the score and the waveforms are drawn on light backgrounds. */
:root {
  --radius: 0.375rem;
  --radius-sm: calc(var(--radius) - 4px); --radius-md: calc(var(--radius) - 2px); --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --background: oklch(0.973 0.012 85);          /* #FAF8F5 cream */
  --foreground: oklch(0.36 0.015 270);          /* #43444E slate */
  --card: oklch(1 0 0); --card-foreground: oklch(0.129 0.042 264.695);
  --popover: oklch(1 0 0); --popover-foreground: oklch(0.129 0.042 264.695);
  --primary: oklch(0.36 0.015 270); --primary-foreground: oklch(0.985 0.012 85);
  --secondary: oklch(0.968 0.007 247.896); --secondary-foreground: oklch(0.208 0.042 265.755);
  --muted: oklch(0.968 0.007 247.896); --muted-foreground: oklch(0.554 0.046 257.417);
  --accent: oklch(0.968 0.007 247.896); --accent-foreground: oklch(0.208 0.042 265.755);
  --destructive: oklch(0.577 0.245 27.325); --destructive-foreground: oklch(0.984 0.003 247.858);
  --border: oklch(0.929 0.013 255.508); --input: oklch(0.929 0.013 255.508); --ring: oklch(0.704 0.04 256.788);
  --coral: oklch(0.708 0.134 50.852);           /* MSMT brand orange #EC8A1B: primary calls to action only */
  --coral-bg: oklch(0.985 0.013 70);
  --brand-secondary: oklch(0.646 0.106 227.4);  /* MSMT teal #219EBC: links, labels, icons, selection */
  --brand-secondary-foreground: oklch(0.985 0.002 247);
  --sidebar: oklch(0.984 0.003 247.858); --sidebar-foreground: oklch(0.129 0.042 264.695);
  --sidebar-primary: oklch(0.208 0.042 265.755); --sidebar-accent: oklch(0.968 0.007 247.896);
  --sidebar-accent-foreground: oklch(0.208 0.042 265.755); --sidebar-border: oklch(0.929 0.013 255.508);
  --sidebar-ring: oklch(0.704 0.04 256.788);
  /* status tones (StatusBadge.tsx: tailwind sky / amber / emerald / red 100 + 800) */
  --info-bg: #e0f2fe; --info-fg: #075985; --warn-bg: #fef3c7; --warn-fg: #78350f;
  --ok-bg: #d1fae5; --ok-fg: #065f46; --bad-bg: #fee2e2; --bad-fg: #991b1b;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* The names the editor's and the curation page's own sheets use, mapped onto the tokens above. */
  --bg: var(--background); --panel: var(--card); --ink: var(--foreground); --line: var(--border);
  --hl: var(--brand-secondary); --hl-soft: oklch(0.646 0.106 227.4 / 0.12); --hl-ink: oklch(0.42 0.08 227.4);
  --ok: #059669; --warn: #b45309; --bad: var(--destructive); --chip: var(--muted);
}
* { box-sizing: border-box; border-color: var(--border); }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 14px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased; }
code { font: 12px var(--font-mono); background: var(--muted); border-radius: var(--radius-sm); padding: 1px 4px; }
button, input, select, textarea { font: inherit; }

/* ------------------------------------------------------------------------------------------- the sidebar */
body.has-side { --side-w: 16rem; padding-left: var(--side-w); }
body.has-side.side-mini { --side-w: 3rem; }
.side-nav { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w); background: var(--sidebar);
  color: var(--sidebar-foreground); border-right: 1px solid var(--sidebar-border); display: flex; flex-direction: column;
  z-index: 40; overflow-y: auto; overflow-x: hidden; font-size: 14px; }
.side-nav a { color: inherit; text-decoration: none; }
.side-head { display: flex; align-items: center; gap: 8px; padding: 8px; min-height: 56px; }
.side-brand { display: flex; align-items: center; height: 40px; padding: 0 8px; flex: 1; min-width: 0; }
.side-brand img.logo { height: 24px; user-select: none; }
.side-brand img.iso { display: none; width: 24px; height: 24px; object-fit: contain; }
.side-app { padding: 0 16px 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand-secondary); white-space: nowrap; }
.side-app .env { margin-left: 6px; color: var(--muted-foreground); font-weight: 500; text-transform: none; letter-spacing: 0; }
.side-nav .side-toggle { display: inline-flex; box-shadow: none; padding: 0; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none;
  background: none; border: 0; border-radius: var(--radius-md); color: var(--muted-foreground); cursor: pointer; }
.side-nav .side-toggle:hover { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); }
.side-group { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.side-group > .g { height: 32px; display: flex; align-items: center; padding: 0 8px; font-size: 12px; font-weight: 500;
  color: color-mix(in oklch, var(--sidebar-foreground) 70%, transparent); white-space: nowrap; }
.side-item { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px; border-radius: var(--radius-md);
  white-space: nowrap; overflow: hidden; font-size: 14px; }
.side-item:hover { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); }
.side-item[aria-current="page"] { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); font-weight: 500; }
.side-item.off { color: var(--muted-foreground); }
.side-item svg, .side-foot svg, .side-toggle svg { width: 16px; height: 16px; flex: none; }
.side-item .soon { margin-left: auto; font-size: 11px; color: var(--muted-foreground); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0 6px; }
.side-foot { margin-top: auto; padding: 8px; border-top: 1px solid var(--sidebar-border); }
.side-user { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--radius-md); }
.avatar { width: 32px; height: 32px; border-radius: 999px; flex: none; display: inline-flex; align-items: center;
  justify-content: center; border: 1px solid var(--sidebar-border); background: oklch(0.646 0.106 227.4 / 0.15);
  color: var(--brand-secondary); font-size: 12px; font-weight: 600; }
.side-user .who { min-width: 0; flex: 1; }
.side-user .who b { display: block; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .who span { display: block; font-size: 12px; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav .side-out { display: flex; box-shadow: none; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 8px; background: none; border: 0;
  border-radius: var(--radius-md); color: var(--muted-foreground); cursor: pointer; font-size: 13px; }
.side-nav .side-out:hover { background: var(--sidebar-accent); color: var(--sidebar-accent-foreground); }
body.side-mini .side-brand img.logo, body.side-mini .side-app, body.side-mini .side-group > .g, body.side-mini .side-item .lab,
body.side-mini .side-item .soon, body.side-mini .side-user .who, body.side-mini .side-out .lab { display: none; }
body.side-mini .side-brand { display: none; }
body.side-mini .side-head { justify-content: center; padding: 14px 0; }
body.side-mini .side-group, body.side-mini .side-foot { padding: 8px 6px; }
body.side-mini .side-item, body.side-mini .side-out { justify-content: center; padding: 0; }
body.side-mini .side-user { justify-content: center; padding: 4px 0; }
@media (max-width: 760px) {
  body.has-side { --side-w: 3rem; }
  .side-brand, .side-app, .side-group > .g, .side-item .lab, .side-item .soon, .side-user .who, .side-out .lab, .side-toggle { display: none; }
  .side-item, .side-out { justify-content: center; padding: 0; }
  .side-group, .side-foot { padding: 8px 6px; }
}

/* ------------------------------------------------------------------------------------------- shell pages */
/* Scoped to .page so nothing leaks into the editor or the curation page. */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px;
  border-bottom: 1px solid var(--border); background: color-mix(in oklch, var(--background) 80%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.topbar h1 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--foreground); }
.topbar .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.page { max-width: 72rem; margin: 0 auto; padding: 24px 24px 48px; }
.page h2 { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.page .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand-secondary); }
.page .muted { color: var(--muted-foreground); }
.small { font-size: 12px; }
.page .stack { display: flex; flex-direction: column; gap: 24px; }
.page .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.page .grow { flex: 1; }
.page a { color: var(--brand-secondary); text-underline-offset: 4px; }

/* card (shadcn Card) */
.page .card { background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow); }
.page .card-head { padding: 20px 24px 0; display: flex; flex-direction: column; gap: 4px; }
.page .card-title { font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--foreground); font-size: 15px; }
.page .card-desc { font-size: 14px; color: var(--muted-foreground); }
.page .card-body { padding: 20px 24px 24px; }
.page .card-foot { padding: 0 24px 20px; display: flex; gap: 8px; align-items: center; }
.page .narrow { max-width: 42rem; }

/* buttons (shadcn Button: default / brand / outline / secondary / ghost / link / destructive) */
:is(.page, .topbar) .btn, .studio-block .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px;
  padding: 0 16px; border-radius: var(--radius-md); border: 1px solid transparent; font-size: 14px; font-weight: 500;
  white-space: nowrap; cursor: pointer; text-decoration: none; transition: background-color 0.15s, color 0.15s;
  background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow); }
:is(.page, .topbar) .btn:hover { background: color-mix(in oklch, var(--primary) 90%, transparent); }
:is(.page, .topbar) .btn:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--ring); }
:is(.page, .topbar) .btn:disabled { opacity: 0.5; cursor: not-allowed; }
:is(.page, .topbar) .btn svg { width: 16px; height: 16px; flex: none; }
:is(.page, .topbar) .btn.brand { background: var(--coral); color: #fff; }
:is(.page, .topbar) .btn.brand:hover { background: color-mix(in oklch, var(--coral) 90%, transparent); }
:is(.page, .topbar) .btn.outline { background: var(--background); color: var(--foreground); border-color: var(--input); box-shadow: var(--shadow-sm); }
:is(.page, .topbar) .btn.outline:hover, :is(.page, .topbar) .btn.ghost:hover { background: var(--accent); color: var(--accent-foreground); }
:is(.page, .topbar) .btn.secondary { background: var(--secondary); color: var(--secondary-foreground); box-shadow: var(--shadow-sm); }
:is(.page, .topbar) .btn.ghost { background: transparent; color: var(--foreground); box-shadow: none; }
:is(.page, .topbar) .btn.link { background: none; box-shadow: none; color: var(--brand-secondary); padding: 0; height: auto; }
:is(.page, .topbar) .btn.link:hover { text-decoration: underline; text-underline-offset: 4px; }
:is(.page, .topbar) .btn.sm { height: 32px; padding: 0 12px; font-size: 12px; }
:is(.page, .topbar) .btn.icon { width: 36px; padding: 0; }
:is(.page, .topbar) .btn.small { font-size: 12px; }
.page details.card > summary { list-style: none; } .page details.card > summary::-webkit-details-marker { display: none; }

/* form controls (shadcn Input, Select, Textarea, Label) */
.page .field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--foreground); }
.page .field .hint { font-weight: 400; font-size: 12px; color: var(--muted-foreground); }
.page .input, .page select, .page textarea { width: 100%; height: 36px; padding: 4px 12px; border: 1px solid var(--input);
  border-radius: var(--radius-md); background: transparent; color: var(--foreground); font-size: 14px; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s; }
.page select { background: var(--background); padding-right: 28px; }
.page textarea { height: auto; padding: 8px 12px; resize: vertical; }
.page .input::placeholder, .page textarea::placeholder { color: var(--muted-foreground); }
.page .input:focus-visible, .page select:focus-visible, .page textarea:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--ring); }
.page select.sm { height: 32px; font-size: 13px; width: auto; min-width: 150px; }
.page .check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-foreground); cursor: pointer; }
.page .check input { accent-color: var(--primary); width: 15px; height: 15px; margin: 0; }
.page .form { display: flex; flex-direction: column; gap: 16px; }
.page .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .page .form-grid { grid-template-columns: 1fr; } }

/* tabs (shadcn Tabs / the segmented control) */
.seg-tabs { display: inline-flex; align-items: center; height: 36px; padding: 4px; gap: 2px; border-radius: var(--radius-xl);
  background: var(--muted); color: var(--muted-foreground); }
.seg-tabs > a, .seg-tabs > button { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--radius-md);
  border: 0; background: transparent; color: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.seg-tabs > a:hover, .seg-tabs > button:hover { color: var(--foreground); }
.seg-tabs > .on, .seg-tabs > [aria-current="page"], .seg-tabs > [aria-pressed="true"] { background: var(--background); color: var(--foreground); box-shadow: var(--shadow); }
.seg-tabs .count { margin-left: 6px; font-size: 12px; color: var(--muted-foreground); }

/* table (the admin tables of the curate app) */
.page .table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.page table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.page table.tbl thead { background: color-mix(in oklch, var(--muted) 50%, transparent); }
.page table.tbl th { text-align: left; padding: 8px 12px; font-size: 12px; font-weight: 500; color: var(--muted-foreground); white-space: nowrap; }
.page table.tbl td { padding: 10px 12px; border-top: 1px solid var(--border); vertical-align: middle; }
.page table.tbl tbody tr:hover { background: color-mix(in oklch, var(--muted) 50%, transparent); }
.page table.tbl td.title { font-weight: 500; color: var(--foreground); }
.page table.tbl td.title .sub { display: block; font-weight: 400; font-size: 12px; color: var(--muted-foreground); }
.page table.tbl .right { text-align: right; }

/* status badge (StatusBadge.tsx) */
.page .badge { display: inline-flex; align-items: center; gap: 4px; border-radius: var(--radius-md); border: 1px solid var(--border);
  padding: 2px 8px; font-size: 12px; font-weight: 500; line-height: 1.4; white-space: nowrap; background: var(--muted); color: var(--muted-foreground); }
.page .badge.info { background: var(--info-bg); color: var(--info-fg); border-color: transparent; }
.page .badge.warn { background: var(--warn-bg); color: var(--warn-fg); border-color: transparent; }
.page .badge.success { background: var(--ok-bg); color: var(--ok-fg); border-color: transparent; }
.page .badge.danger { background: var(--bad-bg); color: var(--bad-fg); border-color: transparent; }
.page .badge.outline { background: transparent; }

/* empty state, notes, drop zone */
.page .empty { border: 1px dashed var(--border); border-radius: var(--radius-lg); padding: 40px 16px; text-align: center;
  font-size: 14px; color: var(--muted-foreground); background: transparent; }
.page .note { border: 1px solid var(--border); background: color-mix(in oklch, var(--muted) 40%, transparent); border-radius: var(--radius-md);
  padding: 8px 12px; font-size: 13px; }
.page .note.warn { border-color: #fde68a; background: #fffbeb; color: #78350f; }
.page .drop { border: 1px dashed var(--input); border-radius: var(--radius-lg); padding: 24px 16px; text-align: center;
  color: var(--muted-foreground); font-size: 14px; cursor: pointer; }
.page .drop.over { border-color: var(--brand-secondary); background: var(--hl-soft); color: var(--foreground); }
.page .drop b { color: var(--foreground); font-weight: 500; }
.page .or { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; }
.page .or::before, .page .or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.page .seg { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.page .seg label { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; cursor: pointer; }
.page .seg input { accent-color: var(--primary); margin: 0; }
.page .seg label.off { color: var(--muted-foreground); cursor: not-allowed; }

/* project groups on Songs */
.page .group-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.page .group-head h2 { display: flex; align-items: center; gap: 8px; }
.page .group-head .meta { font-size: 13px; color: var(--muted-foreground); }
.page .progress { height: 6px; width: 120px; border-radius: 999px; background: var(--muted); overflow: hidden; }
.page .progress > i { display: block; height: 100%; background: var(--brand-secondary); }
.page .err-line { display: block; font-size: 12px; color: var(--bad-fg); margin-top: 2px; max-width: 360px; }

/* sign-in (HostedShell: a slim logo header and a centred card) */
.signin { min-height: 100%; display: flex; flex-direction: column; }
.signin-head { height: 56px; display: flex; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--border); }
.signin-head img { height: 24px; }
.signin .page { width: 100%; max-width: 44rem; padding-top: 48px; }
.page .people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.page .people button { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: var(--card);
  color: var(--foreground); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 10px 12px; cursor: pointer; box-shadow: var(--shadow-sm); }
.page .people button:hover:not(:disabled) { background: var(--accent); }
.page .people button:disabled { opacity: 0.5; cursor: not-allowed; }
.page .people .avatar { border-color: var(--border); }
.page .people b { display: block; font-weight: 500; }
.page .people span.r { display: block; font-size: 12px; color: var(--muted-foreground); }

/* curator tasks */
.page .task-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .page .task-grid { grid-template-columns: 1fr; } }
.page .answers { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.page .answers .btn { height: 40px; }
.page kbd { font: 11px var(--font-mono); color: var(--muted-foreground); border: 1px solid var(--border); border-radius: 4px;
  padding: 0 4px; background: var(--background); }
.page .facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 12px 0; font-size: 14px; }
.page .facts dt { color: var(--muted-foreground); } .page .facts dd { margin: 0; overflow-wrap: anywhere; }
.page .instructions { background: color-mix(in oklch, var(--muted) 60%, transparent); border-radius: var(--radius-lg); padding: 12px 16px; margin: 12px 0; font-size: 14px; }
.page .instructions ol { margin: 6px 0 6px 18px; padding: 0; }
.page audio { width: 100%; margin: 8px 0; }
.page .yt { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); background: #000; margin: 8px 0; }
.page .kind { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--border); }
.page .kind:first-child { border-top: 0; padding-top: 0; }
.page .kind .progress { width: 100%; }
.page .msg { font-size: 13px; } .msg.err, .err { color: var(--bad-fg); } .msg.ok { color: var(--ok-fg); }

/* toast (sonner) and the "not available" overlay */
#toast.studio-toast { position: fixed; right: 16px; bottom: 16px; max-width: 420px; background: var(--popover); color: var(--popover-foreground);
  border: 1px solid var(--border); padding: 12px 16px; border-radius: var(--radius-lg); font-size: 14px; z-index: 50; box-shadow: var(--shadow-lg); }
#toast.studio-toast.err { border-color: #fecaca; color: var(--bad-fg); } #toast.studio-toast.ok { color: var(--ok-fg); }
.studio-block { position: fixed; inset: 0 0 0 var(--side-w, 0); background: color-mix(in oklch, var(--background) 96%, transparent);
  z-index: 35; display: flex; align-items: flex-start; justify-content: center; padding: 16px; }
.studio-block-card { margin-top: 12vh; max-width: 28rem; text-align: center; }
.studio-block-card h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--foreground); }
.studio-block-card p { color: var(--muted-foreground); font-size: 14px; margin: 0 0 20px; }
.studio-block-card a { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: var(--radius-md);
  background: var(--primary); color: var(--primary-foreground); text-decoration: none; font-weight: 500; font-size: 14px; }

/* Curate: one list of work (16 Nov) */
.page .cur-next { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.page .cur-next .what { flex: 1; min-width: 16rem; }
.page .cur-next .card-title { font-size: 18px; margin: 4px 0; }
.page .btn.start { height: 44px; padding: 0 22px; font-size: 15px; }
.page .worklist { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.page .work { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 9rem auto; gap: 4px 16px; align-items: center; padding: 12px 16px;
  border-top: 1px solid var(--border); }
.page .work:first-child { border-top: 0; }
.page .work.is-next { background: var(--coral-bg); }
.page .work .no { color: var(--muted-foreground); font-size: 13px; text-align: right; }
.page .work .t { font-weight: 500; color: var(--foreground); }
.page .work .why { font-size: 13px; color: var(--muted-foreground); margin-top: 2px; }
.page .work .count { font-size: 13px; text-align: right; }
.page .work .count b { font-size: 15px; font-weight: 600; color: var(--foreground); }
.page .work .count .progress { width: 100%; margin-top: 4px; }
.page .work .give { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.page .work .give input.n { width: 4.5rem; height: 32px; }
.page .work .give select.sm { min-width: 10rem; }
.page .chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 999px; padding: 2px 4px 2px 10px;
  background: var(--background); font-size: 12px; }
.page .chip .btn.link { font-size: 12px; }
.page .chip select { height: 24px; font-size: 12px; min-width: 0; width: auto; padding: 0 20px 0 6px; box-shadow: none; }
.page details.fold > summary { cursor: pointer; color: var(--muted-foreground); font-size: 14px; padding: 4px 0; }
.page details.fold[open] > summary { margin-bottom: 8px; }
@media (max-width: 700px) { .page .work { grid-template-columns: minmax(0, 1fr) auto; } .page .work .no { display: none; }
  .page .work .count { grid-column: 1; text-align: left; } }
