/* ---------------------------------------------------------------------------
   creator.matrixmgmt.xyz. Mobile first: creators use it on their phones.
   Base copied from sites/workspace/creator/creator.css; this app's own
   additions are at the bottom.
--------------------------------------------------------------------------- */
:root {
  --text: #1f2328;
  --muted: #656d76;
  --faint: #8c959f;
  --line: #e4e7eb;
  --bg: #f4f5f7;
  --card: #fff;
  --accent: #2383e2;
  --accent-hover: #0f72d0;
  --accent-soft: rgba(35, 131, 226, .1);
  --danger: #d1242f;
  --danger-soft: #fff1f0;
  --good: #1a7f37;
  --good-soft: #e9f7ee;
  --bar: #161b22;
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}
.c-default { --opt-bg: rgba(227, 226, 224, .6); --opt-fg: #32302c; }
.c-gray    { --opt-bg: #e3e2e0; --opt-fg: #32302c; }
.c-brown   { --opt-bg: #eee0da; --opt-fg: #442a1e; }
.c-orange  { --opt-bg: #fadec9; --opt-fg: #49290e; }
.c-yellow  { --opt-bg: #fdecc8; --opt-fg: #402c1b; }
.c-green   { --opt-bg: #dbeddb; --opt-fg: #1c3829; }
.c-blue    { --opt-bg: #d3e5ef; --opt-fg: #183347; }
.c-purple  { --opt-bg: #e8deee; --opt-fg: #412454; }
.c-pink    { --opt-bg: #f5e0e9; --opt-fg: #4c2337; }
.c-red     { --opt-bg: #ffe2dd; --opt-fg: #5d1715; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.45 var(--sans); }
a { color: var(--accent); }
img, video { max-width: 100%; }
button { font: inherit; }
.hidden { display: none !important; }

/* ---- top bar ---- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--bar); color: #e6edf3;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
}
.brand { color: #e6edf3; text-decoration: none; font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand span { color: #58a6ff; font-weight: 500; }
.bar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bar-name { color: #8b949e; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.bar-btn { background: none; border: 1px solid #30363d; color: #c9d1d9; border-radius: 8px; padding: 5px 10px; font-size: 13px; cursor: pointer; }

.banner { background: #fff8c5; color: #4d2d00; padding: 10px 16px; font-size: 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.banner button { background: none; border: 1px solid rgba(0,0,0,.2); border-radius: 8px; padding: 4px 10px; cursor: pointer; }

.app { max-width: 680px; margin: 0 auto; padding: 16px 14px calc(96px + env(safe-area-inset-bottom)); }
.loading { color: var(--muted); text-align: center; padding: 48px 0; }

/* ---- sign in / invite ---- */
.auth { max-width: 380px; margin: 8vh auto 0; background: var(--card); border-radius: var(--radius); padding: 28px 22px; box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 14px; }
.auth h1 { margin: 0; font-size: 22px; text-align: center; }
.auth p { margin: 0; color: var(--muted); font-size: 15px; text-align: center; }
.auth label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.auth input { font: inherit; font-size: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; color: var(--text); }
.auth input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: #fff; }
.err { color: var(--danger); font-size: 14px; text-align: center; margin: 0; min-height: 1em; }
.err:empty { display: none; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 10px; padding: 10px 14px; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:active { background: var(--accent-hover); }
.btn.big { width: 100%; padding: 16px; font-size: 17px; border-radius: 14px; }
.btn.good { background: var(--good); border-color: var(--good); color: #fff; }
.btn:disabled { opacity: .55; cursor: default; }

/* ---- dashboard ---- */
.hello { margin: 4px 2px 14px; }
.hello h1 { margin: 0; font-size: 24px; }
.hello p { margin: 2px 0 0; color: var(--muted); }
.stats { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.stat { background: var(--card); border-radius: 12px; padding: 8px 12px; font-size: 14px; color: var(--muted); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.stat b { color: var(--text); font-size: 17px; margin-right: 4px; }
.stat.bad b { color: var(--danger); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px 14px; padding: 0 14px 2px; scrollbar-width: none; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer; color: var(--text); }
.chip.on { background: var(--text); border-color: var(--text); color: #fff; }

.note { background: var(--accent-soft); color: #0b4a8b; border-radius: 12px; padding: 12px 14px; font-size: 15px; margin: 0 0 14px; }
.note.soon { background: #fff8e6; color: #5c3b00; }
.note b { display: block; margin-bottom: 2px; }

.sec { margin: 22px 0 10px; display: flex; align-items: baseline; gap: 8px; }
.sec h2 { margin: 0; font-size: 18px; }
.sec .n { color: var(--faint); font-size: 15px; }
details.more { margin: 14px 0; }
details.more > summary { cursor: pointer; color: var(--muted); font-size: 15px; font-weight: 600; padding: 8px 2px; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "▸ "; }
details.more[open] > summary::before { content: "▾ "; }
.empty { background: var(--card); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); }

.cards { display: flex; flex-direction: column; gap: 10px; }
.card { display: flex; gap: 12px; background: var(--card); border-radius: var(--radius); padding: 14px; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(0,0,0,.06); border-left: 4px solid transparent; }
.card:active { background: #fafbfc; }
.card.overdue { border-left-color: var(--danger); }
.card.today { border-left-color: var(--accent); }
.card.muted { opacity: .8; }
.cdate { flex: none; width: 48px; text-align: center; line-height: 1.1; padding-top: 2px; }
.cdate .wd { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .03em; }
.cdate .dd { font-size: 24px; font-weight: 700; }
.cdate .mm { font-size: 12px; color: var(--muted); }
.card.overdue .cdate .dd { color: var(--danger); }
.cmain { flex: 1; min-width: 0; }
.ctitle { font-weight: 650; font-size: 16px; overflow-wrap: anywhere; }
.cmeta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; font-size: 13px; color: var(--muted); align-items: center; }
.due { font-weight: 600; }
.due.bad { color: var(--danger); }
.due.now { color: var(--accent); }
.csum { margin: 6px 0 0; color: #3d444d; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thumbs { display: flex; gap: 6px; margin-top: 8px; }
.thumbs .th { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #e9ecef; flex: none; }
.thumbs .more-n { width: 56px; height: 56px; border-radius: 8px; background: #eef0f3; color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.cfoot { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; font-size: 13px; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 13px; background: var(--opt-bg, #eee); color: var(--opt-fg, #333); white-space: nowrap; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; background: #eef0f3; color: var(--muted); }
.got { color: var(--good); font-weight: 600; }
.nid { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---- detail ---- */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 15px; padding: 4px 0 10px; }
.dhead h1 { margin: 0 0 6px; font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
.dmeta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.panel { background: var(--card); border-radius: var(--radius); padding: 16px; margin: 14px 0; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.panel h2 { margin: 0 0 10px; font-size: 17px; }
.panel.upl { border: 2px solid var(--accent-soft); }
.hint { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

.queue { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.qrow { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.qtop { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.qname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; min-width: 0; }
.qsize { color: var(--faint); flex: none; }
.qbar { height: 8px; background: #eef0f3; border-radius: 99px; overflow: hidden; margin: 8px 0 6px; }
.qbar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .25s; }
.qrow.ok .qbar i { background: var(--good); }
.qrow.bad .qbar i { background: var(--danger); }
.qmsg { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.qrow.bad .qmsg { color: var(--danger); }
.qrow.ok .qmsg { color: var(--good); }
.qmsg button { border: 1px solid currentColor; background: none; color: inherit; border-radius: 8px; padding: 3px 10px; font-size: 13px; cursor: pointer; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tile { position: relative; border-radius: 10px; overflow: hidden; background: #eef0f3; aspect-ratio: 1; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile video { object-fit: contain; background: #000; }
.tile .fname { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.tile.file { display: flex; align-items: center; justify-content: center; padding: 10px; text-align: center; font-size: 13px; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }

/* body blocks */
.body { font-size: 16px; overflow-wrap: anywhere; }
.body p { margin: 0 0 8px; }
.body h3, .body h4 { margin: 14px 0 6px; font-size: 16px; }
.body ul, .body ol { margin: 0 0 8px; padding-left: 22px; }
.body blockquote { margin: 0 0 8px; padding-left: 12px; border-left: 3px solid var(--line); color: #3d444d; }
.body .callout { display: flex; gap: 8px; background: #f6f7f9; border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; }
.body pre { background: #f6f8fa; padding: 10px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
.body hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.body figure { margin: 0 0 10px; }
.body figure img { border-radius: 10px; display: block; cursor: zoom-in; }
.body figure video { width: 100%; border-radius: 10px; background: #000; display: block; max-height: 70vh; }
.body figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.body table { border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; margin-bottom: 8px; }
.body td, .body th { border: 1px solid var(--line); padding: 6px 8px; }
.body .todo { display: flex; gap: 8px; margin-bottom: 6px; }
.linkcard { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; text-decoration: none; color: var(--accent); font-size: 14px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }

.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(244,245,247,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line); z-index: 15; }
.sticky-cta .inner { max-width: 680px; margin: 0 auto; }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 50; display: flex; align-items: center; justify-content: center; }
.lb img, .lb video { max-width: 100vw; max-height: 100vh; }
.lb button { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 999px; width: 40px; height: 40px; font-size: 20px; cursor: pointer; }

.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: #24292f; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.picker { display: flex; flex-direction: column; gap: 8px; }
.picker button { text-align: left; }

@media (min-width: 700px) {
  .app { padding-top: 24px; }
  .hello h1 { font-size: 28px; }
}


/* ===== creator-portal additions ===== */
.app.wide { max-width: 1100px; }
.small { font-size: 13px; }
.auth p.small { font-size: 13px; }

/* staff top bar (mm-nav) */
.staffbar { position: sticky; top: 0; z-index: 20; background: var(--bar); padding: 0; padding-top: env(safe-area-inset-top); }
.staffbar .nav { margin: 0; border-radius: 0; border: 0; border-bottom: 1px solid #30363d; }

.banner { flex-wrap: wrap; }
.banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.linkbtn { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 6px 4px; font-size: 15px; text-decoration: underline; }

/* week header */
.weeknav { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.weeknav .arrow { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--card); border-radius: 12px; text-decoration: none; color: var(--text); font-size: 26px; line-height: 1; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.weeknav .wlabel { flex: 1; min-width: 120px; text-align: center; display: flex; flex-direction: column; line-height: 1.2; }
.weeknav .wlabel b { font-size: 18px; }
.weeknav .wlabel span { font-size: 13px; color: var(--muted); min-height: 1em; }
.weeknav .thisweek { flex-basis: 100%; }
/* the date range doubles as the timeframe picker: an invisible native select
   covers it, the pill under the dates says what's picked */
.weeknav .wlabel.picker { position: relative; align-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.weeknav .wlabel.picker .range { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; padding: 4px 10px 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; min-height: 0; }
.weeknav .wlabel.picker .range i { font-style: normal; font-size: 11px; }
.weeknav .wlabel.picker select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: pointer; -webkit-appearance: none; appearance: none; }
.weeknav .wlabel.picker:focus-within .range { box-shadow: 0 0 0 2px var(--accent); }
@media (hover: hover) { .weeknav .wlabel.picker:hover .range { background: var(--accent); color: #fff; } }
.stats .stat { flex: 1; text-align: center; display: flex; flex-direction: column; padding: 10px 8px; }
.stats .stat b { margin: 0; font-size: 22px; }

.overdue-strip { background: var(--danger-soft); border: 1px solid #ffcdc9; border-radius: var(--radius); margin: 0 0 14px; }
.overdue-strip > summary { cursor: pointer; padding: 14px 16px; font-weight: 650; color: var(--danger); list-style: none; }
.overdue-strip > summary::-webkit-details-marker { display: none; }
.overdue-strip > summary::after { content: " ▸"; }
.overdue-strip[open] > summary::after { content: " ▾"; }
.overdue-strip .cards { padding: 0 10px 12px; }
.odate { font-size: 12px; color: var(--danger); font-weight: 600; margin: 0 4px 4px; }

.day { margin: 0 0 14px; }
.dayhead { display: flex; align-items: baseline; gap: 8px; margin: 0 2px 6px; }
.dayhead b { font-size: 16px; }
.dayhead span { color: var(--muted); font-size: 14px; }
.day.is-today .dayhead b { color: var(--accent); }
.day.is-today .cards .card { border-left-color: var(--accent); }
.nothing { color: var(--faint); font-size: 14px; padding: 10px 14px; background: rgba(255,255,255,.55); border-radius: 12px; }
.day.empty-day { opacity: .85; }
.card { align-items: center; min-height: 64px; }
.chev { color: var(--faint); font-size: 26px; line-height: 1; flex: none; }
.cfoot { margin-top: 6px; }
.pill.b-todo { background: #eef0f3; color: #32302c; }
.pill.b-submitted { background: #d3e5ef; color: #183347; }
.pill.b-done { background: #dbeddb; color: #1c3829; }
.warn { color: #9a6700; font-weight: 600; }
.tag.warn { background: #fff8c5; color: #7d4e00; }

/* item page */
.staffinfo { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--accent-soft); color: #0b4a8b; border-radius: 12px; padding: 10px 12px; margin: 12px 0 0; font-size: 14px; }
.staffinfo.bad { background: #fff8c5; color: #4d2d00; }
.panel.submit { text-align: center; }
.submitted { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 18px; font-weight: 700; color: var(--good); padding: 6px 0; }
.subdrive { font-size: 14px; margin: 2px 0 6px; }
.subdrive a.drivelink { color: var(--accent, #0969da); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.subdrive a.drivelink:hover { text-decoration: underline; }
.subdrive ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 3px; }
.subdrive p { margin: 4px 0 0; }
.done-note { margin: 0; color: var(--good); font-weight: 600; }
.needcount { margin: 0 0 12px; font-size: 16px; color: #9a6700; }
.needcount.ok { color: var(--good); }
h3.sub { margin: 16px 0 8px; font-size: 15px; }
.files { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.file { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.file .fn { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.fname { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fsize { color: var(--faint); flex: none; font-size: 13px; }
.file .fs { font-size: 13px; color: var(--muted); margin-top: 2px; }
.file .fdel { flex: none; background: none; border: 0; color: var(--danger); font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 6px 0 6px 10px; margin: -6px 0; }
.file .fn .fname { flex: 1; }
.file .fdel:disabled { opacity: .4; }
.file.s-delivered .fs { color: var(--good); }
.file.s-failed .fs { color: var(--danger); }
.ferr { color: var(--danger); }
.linkcard .lt { overflow-wrap: anywhere; }

/* staff: creators list */
.pagehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 4px 0 16px; }
.pagehead h1 { margin: 0; font-size: 24px; }
.pagehead p { margin: 2px 0 0; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ccard { background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 10px; }
.cchead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cchead h2 { margin: 0; font-size: 18px; }
.ccounts { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); min-height: 21px; }
.ccounts b { color: var(--text); font-size: 16px; }
.ccounts .bad b, .ccounts .bad { color: var(--danger); }
.cinfo { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.cactions { display: flex; gap: 8px; flex-wrap: wrap; }

/* staff: uploads */
.uplist { display: flex; flex-direction: column; gap: 8px; }
.uprow { background: var(--card); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.05); flex-wrap: wrap; }
.upmain { min-width: 0; flex: 1; }
.upname { font-weight: 600; overflow-wrap: anywhere; }
.upmeta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.upstate { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14px; }
.uprow.s-failed .state { color: var(--danger); font-weight: 600; }
.uprow.s-delivered .state { color: var(--good); }

/* modal, staff portal style */
.modal { position: fixed; inset: 0; background: rgba(1,4,9,.75); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal-card { background: #161b22; color: #e6edf3; border: 1px solid #30363d; border-radius: 12px; padding: 24px; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; }
.modal-card h3 { font-size: 1.05rem; margin: 0 0 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.modal-err { color: #ff7b72; font-size: 14px; min-height: 0; margin: 8px 0 0; }
.modal-err:empty { display: none; }
.mfield { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; color: #8b949e; }
.mfield small { color: #8b949e; font-size: 12px; }
.mfield input, input.copy { font: inherit; font-size: 15px; padding: 9px 10px; background: #0d1117; border: 1px solid #30363d; border-radius: 8px; color: #e6edf3; width: 100%; }
.mfield input:focus, input.copy:focus { outline: none; border-color: #58a6ff; }
.mbtn { background: #21262d; color: #e6edf3; border: 1px solid #30363d; border-radius: 8px; padding: 8px 14px; font-size: 14px; cursor: pointer; text-decoration: none; display: inline-block; }
.mbtn.primary { background: #238636; border-color: #2ea043; color: #fff; }
.mbtn.danger { color: #ff7b72; }
.mbtn:disabled { opacity: .6; }
.mtabs { display: flex; gap: 6px; margin-bottom: 14px; background: #0d1117; border-radius: 8px; padding: 4px; }
.mtabs button { flex: 1; background: none; border: 0; color: #8b949e; padding: 7px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.mtabs button.on { background: #21262d; color: #e6edf3; font-weight: 600; }
.mhint, .mtext { color: #8b949e; font-size: 13px; margin: 0 0 12px; }
.mtext { color: #c9d1d9; font-size: 14px; }
.msub { margin: 18px 0 10px; font-size: 14px; }
.mrow { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.mrow .btn.small { background: #21262d; color: #e6edf3; border-color: #30363d; }
.copyrow { display: flex; gap: 8px; }
.copyrow input { flex: 1; font-size: 13px; }
.accts { display: flex; flex-direction: column; gap: 8px; }
.acct { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #30363d; border-radius: 8px; padding: 10px; flex-wrap: wrap; }
.acct > div:first-child { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.acct small { color: #8b949e; }
.acct.off { opacity: .6; }
.acct-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.acct .acct-flag { color: #9a6700; font-weight: 600; }
.resetdot { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #fff8c5; color: #7d4e00; font-size: 11px; font-weight: 600; }
.auth a.forgot { font-weight: 600; }
/* Template order arrows: stacked at the left of the row, the name takes the rest. */
.asg-tpl { flex-wrap: nowrap; }
.asg-tpl > div:not(.acct-actions) { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.tpl-move { display: flex; flex-direction: column; gap: 4px; flex: none; }
.tpl-move .mbtn { padding: 2px 10px; font-size: 12px; line-height: 1.4; }
.tpl-move .mbtn:disabled { opacity: .3; cursor: default; }
/* Phones: Edit and Delete drop under the name so the name gets the width. */
@media (max-width: 520px) {
  .asg-tpl { flex-wrap: wrap; }
  .asg-tpl > div:not(.acct-actions) { flex: 1 1 calc(100% - 60px); }
  .asg-tpl .acct-actions { width: 100%; justify-content: flex-end; }
}
.modal .loading { color: #8b949e; padding: 12px 0; }

/* type filter, next/previous */
.chips.kinds { margin-top: 2px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.pager .step { padding: 10px 14px; min-width: 104px; }
.pager .step.off { opacity: .35; pointer-events: none; }
.pager .pos { display: flex; flex-direction: column; align-items: center; font-size: 14px; font-weight: 600; text-align: center; min-width: 0; }
.pager .pos small { color: var(--muted); font-weight: 500; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.btn.nextup { margin-top: 12px; }
.staffinfo a:not(.btn) { color: inherit; font-weight: 600; }
.mtext + .accts { margin-top: 8px; }

/* skip */
.btn.skipbtn { margin-top: 10px; background: transparent; color: var(--muted); }
.skipped { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 18px; font-weight: 700; color: var(--muted); padding: 6px 0; }
.skipwhy { margin: 4px 0 0; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.pill.b-skipped { background: #eef0f3; color: #656d76; }
.mfield textarea { font: inherit; font-size: 15px; padding: 9px 10px; background: #0d1117; border: 1px solid #30363d; border-radius: 8px; color: #e6edf3; width: 100%; resize: vertical; min-height: 96px; }
.mfield textarea:focus { outline: none; border-color: #58a6ff; }

/* Language picker (top bar for creators, banner for staff previews). */
.langwrap { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #30363d; border-radius: 8px; padding: 0 4px 0 7px; font-size: 13px; color: #c9d1d9; background: #0d1117; cursor: pointer; }
.langwrap span { font-size: 14px; line-height: 1; }
.langpick { appearance: none; -webkit-appearance: none; background: none; border: 0; color: inherit; font: inherit; padding: 6px 4px; cursor: pointer; }
.langpick:focus { outline: none; }
.langwrap:focus-within { border-color: #58a6ff; }
.langpick option { background: #161b22; color: #c9d1d9; }
/* The page already says "Hi <name>", so phones drop the name to fit the picker. */
.bar-btn { white-space: nowrap; }
@media (max-width: 420px) {
  .bar-name { display: none; }
  .bar-right { gap: 6px; }
  .bar-btn { padding: 5px 8px; }
}
@media (max-width: 380px) { .langwrap span { display: none; } .langwrap { padding-left: 4px; } }

/* ---- home: section tiles (2026-10-14). Not .tile: that's the upload thumbnails. ---- */
.stiles { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.stile { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--radius); padding: 18px 16px; min-height: 76px; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(0,0,0,.06); border-left: 4px solid var(--accent); }
a.stile:active { background: #fafbfc; }
.stile .ticon { flex: none; font-size: 28px; width: 40px; text-align: center; }
.stile .tbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.stile .tbody b { font-size: 17px; font-weight: 650; }
.stile .tbody small { font-size: 14px; color: var(--muted); }
.stile.soon { border-left-color: var(--line); background: #fafbfc; cursor: default; user-select: none; }
.stile.soon .ticon { filter: grayscale(1); opacity: .5; }
.stile.soon .tbody b { color: var(--muted); }
.stile.soon .tbody small { color: var(--faint); font-style: italic; }
.banner-sub { display: block; font-size: 12px; opacity: .8; margin-top: 2px; }
.seclist { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.secrow { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; }
.secrow:last-child { border-bottom: 0; }
.secrow input { width: 18px; height: 18px; flex: none; }
.secrow small { color: var(--faint); font-style: italic; }

/* ===== visual polish (2026-10-14). CSS only: nothing moved, renamed or reordered.
   Surfaces get a hairline ring (box-shadow, so the coloured left stripes on
   .card/.stile keep working), one radius scale, hover and focus-visible states. ===== */
:root {
  --ring: 0 0 0 1px rgba(31, 35, 40, .07);
  --lift: 0 1px 2px rgba(31, 35, 40, .05);
  --lift-hover: 0 4px 14px rgba(31, 35, 40, .09);
  --focus: #388bfd;
  --r-sm: 8px;
  --r-md: 10px;
}
.card, .stile, .panel, .ccard, .uprow, .stat, .empty, .weeknav .arrow, .auth {
  box-shadow: var(--ring), var(--lift);
}
.card, .stile, .ccard, .weeknav .arrow, .chip, .btn, .linkcard, .bar-btn, .back {
  transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s;
}
@media (hover: hover) {
  a.card:hover, a.stile:hover { box-shadow: 0 0 0 1px rgba(35, 131, 226, .35), var(--lift-hover); }
  a.card:hover .chev, a.stile:hover .chev { color: var(--accent); }
  .ccard:hover { box-shadow: var(--ring), var(--lift-hover); }
  .weeknav .arrow:hover { color: var(--accent); box-shadow: 0 0 0 1px rgba(35, 131, 226, .35), var(--lift); }
  .btn:not(:disabled):hover { background: #f6f8fa; border-color: #d0d7de; }
  .btn.primary:not(:disabled):hover { background: var(--accent-hover); border-color: var(--accent-hover); }
  .btn.good:not(:disabled):hover { filter: brightness(.94); background: var(--good); border-color: var(--good); }
  .btn.skipbtn:not(:disabled):hover { color: var(--text); }
  .chip:not(.on):hover { background: #f6f8fa; border-color: #d0d7de; }
  .linkcard:hover { border-color: rgba(35, 131, 226, .45); background: #f8fbff; }
  .back:hover { color: var(--text); }
  .bar-btn:hover { border-color: #8b949e; color: #fff; }
  .linkbtn:hover { color: var(--accent-hover); }
  .modal .mrow .btn.small:not(:disabled):hover { background: #30363d; border-color: #8b949e; }
}
.modal .mrow .btn.small { box-shadow: none; }
.btn:focus-visible, .chip:focus-visible, .card:focus-visible, .stile:focus-visible,
.weeknav .arrow:focus-visible, .back:focus-visible, .linkbtn:focus-visible, .linkcard:focus-visible,
.bar-btn:focus-visible, .banner button:focus-visible, .qmsg button:focus-visible,
.file .fdel:focus-visible, details > summary:focus-visible, .tile.file:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.secrow:focus-within { background: var(--accent-soft); border-radius: var(--r-sm); }

/* buttons: one radius per size, crisper weight */
.btn { border-radius: var(--r-md); border-color: #d8dde3; box-shadow: 0 1px 0 rgba(31, 35, 40, .04); }
.btn.primary, .btn.good { box-shadow: 0 1px 0 rgba(31, 35, 40, .08); }
.btn.small { border-radius: var(--r-sm); font-weight: 600; }
.pagehead .btn { white-space: nowrap; }

/* headings */
.pagehead h1, .hello h1, .dhead h1 { letter-spacing: -.02em; font-weight: 700; }
.pagehead p { font-size: 15px; }
.panel h2 { letter-spacing: -.01em; }
.dayhead b { letter-spacing: -.01em; }

/* status pills and tags: one badge shape */
.pill, .tag { border-radius: 999px; padding: 1px 9px; font-weight: 500; line-height: 1.5; }
.pill.b-todo, .pill.b-skipped, .tag { box-shadow: inset 0 0 0 1px rgba(31, 35, 40, .06); }
.nid { color: var(--faint); }

/* chips (type filter) */
.chip { font-weight: 500; }
.chip.on { box-shadow: 0 1px 2px rgba(31, 35, 40, .15); }

/* stat tiles */
.stats .stat { border-radius: 12px; }
.stats .stat b { letter-spacing: -.02em; }

/* staff: creator cards. Counts read as compact badges; actions sit on a divider. */
.ccard { padding: 18px; gap: 12px; }
.cchead h2 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.ccounts { gap: 6px; font-size: 13px; }
.ccounts .cn { display: inline-flex; align-items: baseline; gap: 4px; background: #f6f8fa; border-radius: 999px; padding: 2px 10px; box-shadow: inset 0 0 0 1px rgba(31, 35, 40, .06); white-space: nowrap; }
.ccounts .cn b { font-size: 14px; font-variant-numeric: tabular-nums; }
.ccounts .cn.bad { background: var(--danger-soft); box-shadow: inset 0 0 0 1px #ffcdc9; }
.cinfo { gap: 4px 14px; font-size: 12.5px; }
.cactions { padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto; }

/* week header + day groups */
.weeknav .arrow { border-radius: 12px; }
.overdue-strip > summary { border-radius: var(--radius); }
.nothing { box-shadow: inset 0 0 0 1px rgba(31, 35, 40, .05); }

/* item page */
.panel.upl { border: 0; box-shadow: 0 0 0 2px rgba(35, 131, 226, .18), var(--lift); }
.linkcard { border-radius: var(--r-md); }
.file, .qrow { border-radius: var(--r-md); }
.staffinfo { border-radius: 12px; }

/* staff uploads list */
.uprow { border-radius: 12px; }

/* Request Edit (2026-10-14): the note the creator sees, and the staff box. */
.pill.editreq { background: #fff1e5; color: #8a4b00; }
.panel.editnote { background: #fff8f0; border: 1px solid #f5c99b; }
.editnote h2 { color: #8a4b00; }
.editnote .enlead { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.editnote .entext { margin: 0; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.editnote .hint { margin-top: 8px; }
.panel.reqedit h2 small.staffonly { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.panel.reqedit textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line, #d0d7de); border-radius: 10px; resize: vertical; }
.btn.editbtn { margin-top: 10px; background: #bc4c00; border-color: #bc4c00; color: #fff; }
.btn.editbtn:disabled { opacity: .6; }
.file .oldtag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: #eef0f3; color: #656d76; font-size: 12px; }
.file .fdrive { margin-top: 3px; font-size: 13px; }
.file .fdrive a.drivelink { color: var(--accent, #0969da); font-weight: 600; text-decoration: none; }
.file .fdrive a.drivelink:hover { text-decoration: underline; }
.file .fdrive .dname { color: var(--muted, #6b7280); overflow-wrap: anywhere; }

/* Items sent back with Request Edit: own box above the overdue one (2026-10-14). */
.edits-strip { background: #fff8f0; border: 1px solid #f5c99b; border-radius: var(--radius); margin: 0 0 14px; }
.edits-strip > summary { cursor: pointer; padding: 14px 16px; font-weight: 650; color: #8a4b00; list-style: none; border-radius: var(--radius); }
.edits-strip > summary::-webkit-details-marker { display: none; }
.edits-strip > summary::after { content: " ▸"; }
.edits-strip[open] > summary::after { content: " ▾"; }
.edits-strip .cards { padding: 0 10px 12px; }
.edits-strip .odate { color: #8a4b00; }

/* 3 day view: big cards with the item's panels inline */
.bigcard { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0,0,0,.06); overflow: hidden; }
.bigcard > .card { box-shadow: none; border-radius: 0; }
.bigcard .cbody { padding: 2px 14px 14px; border-top: 1px solid var(--line); }
.bigcard .panel { box-shadow: none; margin: 12px 0 0; padding: 0; }
.bigcard .panel h2 { font-size: 15px; margin-bottom: 6px; }
.bigcard .panel.upl { padding: 12px; }
.bigcard .panel.submit { padding-top: 4px; }
.bigcard .cload { margin: 12px 0 0; }
.bigcard .openfull { display: block; text-align: center; margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }

/* "Expand assignments" switch, top right of the week page next to "Hi name". */
.hello.withswitch { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.hello.withswitch h1 { flex: 1 1 auto; min-width: 0; }
/* Label stacked over the toggle in a narrow column, so it fits beside long names on a phone. */
.xswitch { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; flex: none; max-width: 92px; margin-left: auto; font-size: 11px; line-height: 1.15; text-align: center; font-weight: 600; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.xswitch .xlabel { order: 1; }
.xswitch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.xswitch .track { order: 2; position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: #d0d7de; transition: background-color .15s; }
.xswitch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.xswitch input:checked + .track { background: var(--accent); }
.xswitch input:checked + .track::after { transform: translateX(16px); }
.xswitch input:checked ~ .xlabel { color: var(--text); }
.xswitch input:focus-visible + .track { box-shadow: 0 0 0 2px var(--focus); }

/* Expanded cards: a soft shadow and a bit more room so each stands apart. */
.cards.big { gap: 16px; }
.bigcard { box-shadow: var(--ring), 0 2px 10px rgba(31, 35, 40, .10), 0 1px 2px rgba(31, 35, 40, .06); }

/* staff Uploads filters (2026-10-15) */
.upfilters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin: 0 0 12px; }
.upf { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.upf select, .upf input { font: inherit; font-size: 16px; font-weight: 400; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; min-width: 150px; }
.upf.fdates { flex-direction: row; align-items: center; gap: 6px; }
.upf.fdates input { min-width: 0; }
.uprow .drivelink { text-decoration: none; white-space: nowrap; }
@media (max-width: 600px) {
  .upfilters { flex-direction: column; align-items: stretch; }
  .upf select { width: 100%; }
  .upf.fdates { flex-wrap: wrap; }
}

/* ---- Content Assignments options (2026-10-19) ---- */
/* Sections modal tabs */
.mtabs { display: flex; gap: 6px; margin: 0 0 12px; border-bottom: 1px solid #30363d; }
.mtab { font: inherit; font-size: 14px; font-weight: 600; background: none; border: 0; border-bottom: 2px solid transparent; color: #8b949e; padding: 8px 10px; margin-bottom: -1px; cursor: pointer; }
.mtab.on { color: #e6edf3; border-bottom-color: #58a6ff; }
.optrow { align-items: flex-start; }
.optrow input { margin-top: 3px; }
.optrow > span { display: flex; flex-direction: column; gap: 2px; }
.secrow small.ohint { font-style: normal; font-size: 13px; line-height: 1.35; }
.inboxbox { margin-top: 12px; padding-top: 10px; border-top: 1px solid #30363d; }
.inboxbox .mtext.bad { color: #f2cc60; }
/* Group By Content Type */
.csub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.groupcard { border-left: 4px solid var(--accent); }
.groupcard.muted { border-left-color: var(--line); }
.pill.b-late { background: var(--danger-soft); color: var(--danger); }
.day.groups { margin-bottom: 18px; }
.gpart + .gpart { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
h3.gfor { font-size: 14px; color: var(--muted); font-weight: 650; margin: 0 0 6px; }
.fto, .qto { color: var(--muted); }
.qto { font-size: 13px; margin: 2px 0 4px; }
.gmembers .cards { display: flex; flex-direction: column; gap: 8px; }
/* Self Directed Uploads */
p.lead { color: var(--muted); margin: -4px 0 14px; }
.panel.lane h2 { margin-bottom: 10px; }
details.recent { margin-top: 12px; }
details.recent > summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; }
.hint.center { text-align: center; }

/* ---- MatrixMGMT Assignment System (2026-10-19) ------------------------------------ */
/* creator week: one list for the whole week */
.day.weekly .weekhint { margin: -2px 0 10px; }
/* staff item page */
.staffinfo .asgmeta { display: block; font-size: 12px; opacity: .8; margin-top: 3px; font-weight: 400; }
.panel.approve .btn { width: 100%; }
/* wide modal (assignment form, templates) */
.modal.wide .modal-card { max-width: 640px; }
.mfield select { font: inherit; font-size: 15px; padding: 9px 10px; background: #0d1117; border: 1px solid #30363d; border-radius: 8px; color: #e6edf3; width: 100%; }
.mfield select:focus { outline: none; border-color: #58a6ff; }
.mfield .secrow { color: #e6edf3; border-bottom-color: #30363d; padding: 8px 2px; }
.mfield .secrow small { color: #8b949e; }
.asg-desc { min-height: 150px !important; }
.asg-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 12px; }
.asg-boxes .secrow { border-bottom: 0; }
.asg-weekpick, .asg-weeklypick { padding: 4px 0 10px 28px; display: flex; flex-direction: column; gap: 8px; }
.asg-weeks { display: flex; flex-wrap: wrap; gap: 6px; }
.asg-weeks .chip { background: #21262d; border-color: #30363d; color: #e6edf3; font-size: 13px; padding: 5px 10px; }
.asg-weeks .chip:not(.on):hover { background: #30363d; border-color: #8b949e; }
.asg-weeks .chip.on { background: #e6edf3; border-color: #e6edf3; color: #0d1117; }
.asg-addweek { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: #8b949e; }
.asg-addweek input { width: auto !important; }
.asg-picked { color: #8b949e; }
.asg-weeklypick .mfield { margin: 0; }
.asg-examples { display: flex; flex-direction: column; gap: 6px; }
.asg-ex { display: flex; align-items: center; gap: 8px; }
.asg-ex img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; }
.asg-exicon { width: 44px; text-align: center; font-size: 22px; flex: none; }
.asg-exname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e6edf3; font-size: 14px; }
.asg-ex input { flex: 1; min-width: 0; }
.asg-ex input.asg-exlabel { flex: .8; }
.asg-exdel { flex: none; padding: 6px 10px; }
.asg-exstatus:empty { display: none; }
.asg-batch { color: #e6edf3; border-bottom: 0; }
/* the Content Assignments tab */
.asg-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.asg-weeknav { max-width: 520px; margin-left: auto; margin-right: auto; }
.asg-creators { margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Creator multi-select: a button that drops a tick-box list over the page. */
.asg-csel { position: relative; }
.asg-csel > summary { list-style: none; cursor: pointer; display: inline-block; }
.asg-csel > summary::-webkit-details-marker { display: none; }
.asg-cpanel { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(320px, calc(100vw - 32px)); max-height: 60vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.asg-cbar { display: flex; justify-content: space-between; gap: 8px; padding: 2px 2px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.asg-cbar .btn:disabled { opacity: .4; cursor: default; }
.asg-copt { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.asg-copt:hover { background: var(--accent-soft); }
.asg-copt input { width: 18px; height: 18px; margin: 0; flex: none; }
.asg-copt span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.asg-copt small { color: var(--muted); }
.asg-cnames { font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.asg-creator, .asg-series { background: var(--card); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.asg-chead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.asg-chead h2, .asg-series h2 { margin: 0; font-size: 18px; }
.asg-series h2 { margin-bottom: 10px; }
.asg-clinks { margin-left: auto; display: flex; gap: 6px; }
.asg-badge { font-size: 12px; }
.asg-badge.on { background: var(--good-soft, #dbeddb); color: var(--good, #1c3829); }
.asg-badge.off { background: var(--accent-soft); color: var(--muted); }
.asg-warn { background: #fff8c5; color: #4d2d00; border-radius: 10px; padding: 8px 10px; font-size: 13px; margin: 0 0 10px; }
.asg-none { margin: 4px 0; font-size: 14px; }
.asg-list { display: flex; flex-direction: column; gap: 8px; }
.asg-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.asg-item.st-done, .asg-item.st-skipped { opacity: .7; }
.asg-main { min-width: 0; flex: 1 1 260px; }
.asg-title { font-weight: 600; font-size: 15px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.asg-rep { font-weight: 400; font-size: 12px; color: var(--accent); }
.asg-meta { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); margin-top: 4px; }
.asg-side { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.btn.small.danger { color: var(--danger, #cf222e); }

/* Per Creator Requirements tally on Content Assignments, the requirements
   page and the Creative Director feed (Manix 2026-10-30). */
.asg-noreq { margin: 0 0 10px; font-size: 13px; }
.asg-tally { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg); }
.asg-tallyhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; font-size: 14px; }
.asg-reqnote { font-size: 13px; }
.asg-tallies { display: flex; flex-wrap: wrap; gap: 6px; }
.asg-tl { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: inherit; font-size: 13px; border: 1px solid transparent; line-height: 1.5; }
.asg-tl b { font-variant-numeric: tabular-nums; }
.asg-tl.short { background: #fff1e5; color: #8a4b00; border-color: #f5d0a9; }
.asg-tl.met { background: #dbeddb; color: #1c3829; }
.asg-tl.over { background: #d3e5ef; color: #183347; }
.asg-tl.extra { background: transparent; color: var(--muted); border-color: var(--line); }
button.asg-tl { cursor: pointer; }
button.asg-tl.short:hover { border-color: #8a4b00; }
.req-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.req-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); white-space: pre-line; }
.req-rows { display: flex; flex-direction: column; gap: 8px; }
.req-row { display: flex; align-items: center; gap: 6px; }
.req-row input.req-n { width: 64px !important; flex: none; }
.req-x { color: #8b949e; flex: none; }
.req-row .req-kind { flex: 1.3; min-width: 0; }
.req-row input.req-rnote { flex: 1; min-width: 0; }
.inspo { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.limits-list { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.limits-list > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.limits-list dt { color: var(--muted); font-size: 14px; }
.limits-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.limits-list .limits-text { flex-basis: 100%; white-space: pre-line; }
.limits-yn.yes { color: var(--good); }
.limits-yn.no { color: var(--danger); }
.limits-yn.unset { opacity: .7; }
.limits-who { margin-left: 6px; }
.limits-pick { display: flex; gap: 8px; }
.limits-pick .limits-opt { min-width: 72px; }
.limits-pick .limits-opt.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.inspo-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.inspo-head h3 { margin: 0; font-size: 15px; }
.inspo-head .btn { margin-left: auto; }
.inspo-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.inspo-list li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.inspo-list a { overflow-wrap: anywhere; }
.inspo-plat { font-size: 12px; flex: none; }
.req-row select.inspo-psel { width: 118px; flex: none; }
.req-row input.inspo-acct { flex: 1.3; min-width: 0; }
@media (max-width: 560px) {
  .req-row { flex-wrap: wrap; }
  .req-row .req-kind { flex: 1 1 calc(100% - 140px); }
  .req-row input.req-rnote { flex: 1 1 calc(100% - 50px); order: 5; }
  .inspo-row input.inspo-acct { flex: 1 1 calc(100% - 130px); }
  .subs-row input.inspo-acct { flex: 1 1 calc(100% - 50px); }
}
.cd-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 0 0 16px; }
.cd-stat { background: var(--card); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.cd-stat b { font-size: 24px; line-height: 1.2; color: var(--muted); }
.cd-stat.hot b { color: var(--text); }
.cd-stat span { font-size: 13px; color: var(--muted); }
.cd-sec { background: var(--card); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.cd-sec h2 { margin: 0 0 10px; font-size: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cd-count { font-size: 13px; font-weight: 500; padding: 1px 9px; border-radius: 999px; background: var(--good-soft); color: var(--good); }
.cd-count.hot { background: #fff1e5; color: #8a4b00; }
.cd-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.cd-row:first-of-type { border-top: 0; }
.cd-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.cd-title { font-weight: 600; }
.cd-title span { font-weight: 400; }
.cd-done { margin: 8px 0 0; font-size: 13px; }
.cd-noreq { font-size: 13px; }

/* Content Uploads > Needs Human Rating (2026-10-31) */
.subtabs { display: flex; gap: 6px; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.subtab { padding: 8px 12px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.subtab.on { color: var(--text); border-bottom-color: var(--text); }
.subtab .badge { background: var(--danger); color: #fff; border-radius: 999px; font-size: 12px; line-height: 1; padding: 3px 7px; font-weight: 600; }
.ratehelp { background: var(--card); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ratehelp summary { cursor: pointer; font-weight: 600; }
.ratehelp ul { margin: 8px 0; padding-left: 18px; }
.ratehelp p { margin: 6px 0 0; font-size: 13px; }
.ratelist { display: grid; gap: 10px; }
.ratecard { background: var(--card); border-radius: 12px; padding: 12px; display: flex; gap: 12px; align-items: flex-start; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.rthumb { flex: none; width: 120px; height: 120px; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: #eef1f4; cursor: pointer; position: relative; display: flex; align-items: center; justify-content: center; }
.rthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rnothumb { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); }
.rplay { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; border-radius: 999px; font-size: 11px; padding: 3px 6px; }
.rmain { flex: 1; min-width: 0; }
.rmain .upname { word-break: break-word; }
.rstate { font-size: 13px; color: var(--muted); margin: 6px 0; }
.ratebtns { display: flex; flex-wrap: wrap; gap: 6px; }
.ratebtns .btn.on { background: var(--text); border-color: var(--text); color: #fff; }
.rpreview { width: 100%; height: min(70vh, 560px); border: 0; border-radius: 8px; background: #000; }
@media (max-width: 560px) {
  .ratecard { flex-direction: column; }
  .rthumb { width: 100%; height: 220px; }
  .ratebtns .btn { flex: 1 1 calc(50% - 6px); }
}

/* Needs Human Rating: R2 previews + quick rate (2026-11-02) */
.rthumb .rimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.rnoprev { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; text-align: center; font-size: 13px; color: var(--muted); min-height: 100%; }
.rmodalprev { background: #111; border-radius: 8px; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.rmodalprev .rimg { max-width: 100%; max-height: 72vh; object-fit: contain; display: block; }
.rmodalprev .rnoprev { color: #ccc; }
.rmodalprev .rnoprev a { color: #9cc9ff; }
.upfilters .rviews { margin: 0; align-self: flex-end; }
.quick { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.qmeta .upmeta { font-size: 13px; }
.qtop { display: flex; align-items: center; gap: 12px; }
.qprog { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.qprog b { font-size: 16px; }
.qbar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.qbar span { display: block; height: 100%; background: var(--good); transition: width .2s; }
.qundo { flex: none; min-height: 40px; }
.qstage { position: relative; background: #111; border-radius: 12px; display: flex; align-items: center; justify-content: center; height: 50vh; overflow: hidden; }
.qstage .rimg { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.qstage .rnoprev { color: #ccc; font-size: 15px; }
.qstage .rnoprev a { color: #9cc9ff; }
.qstage .rplay { right: 10px; bottom: 10px; font-size: 12px; padding: 4px 8px; }
.qmeta .upname { word-break: break-word; font-weight: 600; }
.qmeta .rstate { margin: 4px 0 0; }
.qbtns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qbtn { min-height: 64px; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 12px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 8px; row-gap: 2px; padding: 8px 6px; touch-action: manipulation; }
.qbtn small { flex-basis: 100%; text-align: center; font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.25; }
.qbtn.on small { color: inherit; opacity: .8; }
.qbtn:hover:not(:disabled) { border-color: var(--text); }
.qbtn:disabled { opacity: .5; cursor: default; }
.qbtn kbd { font: inherit; font-size: 12px; font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--muted); }
.qbtn.rate-sfw { border-bottom: 4px solid var(--good); }
.qbtn.rate-suggestive { border-bottom: 4px solid #d4a72c; }
.qbtn.rate-implied_nude { border-bottom: 4px solid #e16f24; }
.qbtn.rate-explicit { border-bottom: 4px solid var(--danger); }
.qbtn.on { background: var(--text); border-color: var(--text); color: #fff; }
.qbtn.on kbd { color: inherit; border-color: currentColor; }
.qnav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qkeys { font-size: 13px; }
.quick .ratehelp { margin: 0; }
.qdone { background: var(--card); border-radius: 12px; padding: 24px; text-align: center; }
@media (max-width: 560px) {
  .qbtns { grid-template-columns: 1fr 1fr; }
  .qbtn { min-height: 64px; }
  .qkeys { display: none; }
}

/* ---- MatrixMGMT weekly list: one fold per content type (2026-11-02) ---------------- */
.folds { display: flex; flex-direction: column; gap: 10px; }
details.fold { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0,0,0,.06); border-left: 4px solid transparent; }
details.fold.late { border-left-color: var(--danger); }
details.fold > summary { display: flex; align-items: center; gap: 8px; padding: 14px 16px; min-height: 52px; cursor: pointer; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "▸"; color: var(--muted); width: 12px; flex: none; }
details.fold[open] > summary::before { content: "▾"; }
details.fold > summary b { font-size: 16px; flex: 1 1 auto; min-width: 0; }
details.fold .fcount { color: var(--muted); font-size: 14px; font-weight: 600; }
details.fold .fstate { flex: none; }
details.fold > .cards { padding: 0 10px 12px; }
details.fold .card { box-shadow: none; background: var(--bg); }

/* Content Assignments time frame (Manix 2026-11-02): 2 weeks to 2 months at
   once, with a creators x weeks overview grid on top. */
.asg-overview { background: var(--card); border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.asg-ovt { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.asg-ovt th, .asg-ovt td { padding: 3px 2px; text-align: center; }
.asg-ovt thead th { font-weight: 600; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asg-ovt thead th:first-child, .asg-ovt tbody th { text-align: left; width: 26%; }
.asg-ovt thead th.now { color: var(--accent); }
.asg-ovt thead th small, .asg-ovt thead th span { display: block; line-height: 1.2; }
.asg-ovt thead th small { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }
.asg-ovt thead th:first-child { vertical-align: bottom; }
.asg-ovt tbody th { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 6px; }
.asg-ov { display: block; padding: 5px 0; border-radius: 8px; text-decoration: none; font-variant-numeric: tabular-nums; font-weight: 600; border: 1px solid transparent; }
.asg-ov.met { background: #dbeddb; color: #1c3829; }
.asg-ov.short { background: #fff1e5; color: #8a4b00; border-color: #f5d0a9; }
.asg-ov.none { background: #ffe2dd; color: #8a1f11; }
.asg-ov.free { background: var(--bg); color: var(--text); border-color: var(--line); }
.asg-ov.empty { color: var(--muted); font-weight: 400; }
@media (hover: hover) { .asg-ov:hover { border-color: var(--accent); } }
.asg-ovnote { margin: 8px 0 0; font-size: 12px; }
.asg-wk { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.asg-chead + .asg-wk { border-top: 0; padding-top: 0; margin-top: 0; }
.asg-wkhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.asg-wkhead h3 { margin: 0; font-size: 15px; }
@media (max-width: 560px) {
  .asg-ovt { font-size: 12px; }
  .asg-ovt thead th { font-size: 11px; }
  .asg-ov { padding: 4px 0; }
  .asg-ovt tbody th { width: 30%; font-size: 12px; }
  .asg-ovt thead th:first-child { width: 30%; }
  .asg-ov .ovneed { display: none; }
}

/* Content Types (Manix 2026-11-16): bottom of Creative Direction */
.ctypes { margin-top: 26px; }
.ctypes-intro { margin: 0 0 10px; }
.ctypes-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ctype { border-bottom: 1px solid var(--line); }
.ctype > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 12px 2px; font-weight: 600; font-size: 15px; }
.ctype > summary::-webkit-details-marker { display: none; }
.ctype > summary::before { content: "▸"; color: var(--muted); width: 12px; flex: none; }
.ctype[open] > summary::before { content: "▾"; }
.ctype-empty { font-weight: 400; font-size: 13px; }
.ctype-body { padding: 0 2px 14px 22px; min-width: 0; }
.ctype-desc { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.ctype-desc p { margin: 0 0 8px; }
.ctype-desc ul { margin: 0 0 8px; padding-left: 20px; }
.ctype-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
textarea.ctype-text { min-height: 220px; }
.ctype-h { margin: 6px 0 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ctype-h + .ctype-desc, .ctype-h + .asg-none { margin-bottom: 10px; }
.ctype-meta { margin: 0 0 6px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.ctype-actions { align-items: center; }
.ctype-actions .tpl-move { flex-direction: row; margin-left: auto; }
textarea.cd-text { min-height: 160px; }
.cd-split { margin: 14px 0 4px; font-weight: 600; border-top: 1px solid var(--line); padding-top: 12px; }

/* Biography (#/c/<id>/bio, Manix 2026-11-17) */
.bio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; align-items: start; }
.bio-sec { background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 1px 2px rgba(0,0,0,.06); border: 1px solid var(--line); }
.bio-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.bio-head h2 { margin: 0; font-size: 17px; }
.bio-list { margin: 0; display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 8px 12px; font-size: 15px; }
.bio-list dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
.bio-list dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.bio-none { margin: 0; font-size: 14px; }
.bio-empty { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.bio-xrows { display: flex; flex-direction: column; gap: 8px; }
.bio-xrow { display: flex; align-items: flex-start; gap: 6px; }
.bio-xrow input.bio-xlabel { flex: 0 0 34%; min-width: 0; }
.bio-xrow textarea.bio-xvalue { flex: 1; min-width: 0; min-height: 42px; }
.mfield input[type="date"] { color-scheme: dark; }
@media (max-width: 600px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-list { grid-template-columns: 1fr; gap: 2px; }
  .bio-list dd { margin-bottom: 8px; }
  .bio-xrow { flex-wrap: wrap; }
  .bio-xrow input.bio-xlabel { flex: 1 1 calc(100% - 44px); }
  .bio-xrow textarea.bio-xvalue { flex: 1 1 100%; order: 3; }
}

/* Short Form Video Replacements on Content Assignments, Replace on the item
   page (Manix 2026-11-17). */
.asg-repl { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.asg-repl > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; list-style: none; }
.asg-repl > summary::-webkit-details-marker { display: none; }
.asg-repl > summary::before { content: "▸"; color: var(--muted); font-size: 12px; }
.asg-repl[open] > summary::before { content: "▾"; }
.asg-repl-n { font-size: 12px; font-weight: 400; }
.asg-repl-n.empty { background: #fff1e5; color: #8a4b00; }
.asg-repl-help { font-size: 13px; margin: 8px 0; }
.asg-repl-list { margin: 0 0 10px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.asg-repl-list li { padding: 6px 0 8px; border-bottom: 1px solid var(--line); }
.asg-repl-list li:last-child { border-bottom: 0; }
.asg-repl-list li { display: list-item; }
.asg-repl-list li > .asg-repl-main, .asg-repl-list li > .asg-repl-acts { display: inline-block; vertical-align: top; }
.asg-repl-main { width: calc(100% - 96px); min-width: 0; }
.asg-repl-acts { width: 92px; text-align: right; white-space: nowrap; }
.asg-repl-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.asg-repl-list a { overflow-wrap: anywhere; }
.asg-repl-desc { font-size: 13px; margin-top: 2px; white-space: pre-line; overflow-wrap: anywhere; }
.asg-repl-meta { margin-top: 3px; }
.asg-repl-adds { display: flex; flex-wrap: wrap; gap: 8px; }
.asg-repl-x { color: #8b949e; }
.asg-repl-none { margin: 0 0 10px; }
textarea.asg-repl-links { width: 100%; font: inherit; font-size: 14px; }
.tag.asg-replaced { background: #d3e5ef; color: #183347; }
.btn.replacebtn:not(:disabled) { color: var(--accent); }
.hint.replacewhy { margin-top: 4px; }

/* Import from a sheet, inside the inspo Edit windows (2026-11-17) */
.import-box { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #30363d; border-radius: 8px; background: #0d1117; }
.import-box summary { cursor: pointer; color: #58a6ff; font-size: 14px; }
.import-box[open] summary { margin-bottom: 10px; }
.import-box .mrow { margin-bottom: 8px; }
.import-box textarea.import-paste { font: inherit; font-size: 14px; padding: 8px 10px; background: #161b22; border: 1px solid #30363d; border-radius: 8px; color: #e6edf3; width: 100%; resize: vertical; min-height: 64px; box-sizing: border-box; margin-bottom: 8px; }
.import-box textarea.import-paste:focus { outline: none; border-color: #58a6ff; }
.import-msg { margin: 0; font-size: 13px; color: #3fb950; }
.import-msg:empty { display: none; }
.import-msg.bad { color: #f2cc60; }

/* Creative Direction: each creator folds open (2026-11-19) */
.req-creator > summary.asg-chead { cursor: pointer; list-style: none; margin-bottom: 0; }
.req-creator[open] > summary.asg-chead { margin-bottom: 10px; }
.req-creator > summary::-webkit-details-marker { display: none; }
.req-creator > summary::before { content: "▸"; color: var(--muted); width: 12px; flex: none; }
.req-creator[open] > summary::before { content: "▾"; }

/* Contract page (Manix 2026-11-19), reuses the Biography cards. */
.ct-flist { display: flex; flex-direction: column; gap: 8px; }
.ct-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.ct-fmain { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ct-fmain b { overflow-wrap: anywhere; font-size: 15px; }
.ct-fmain small { font-size: 12px; }
.ct-factions { display: flex; gap: 6px; flex-shrink: 0; }
.ct-busy { margin: 0 0 10px; font-size: 14px; }
.ct-salrow { display: flex; gap: 8px; }
.ct-salrow input { flex: 1; min-width: 0; }
.ct-salrow select { flex: 0 0 auto; }
.invrow { align-items: center; margin-top: 10px; }
.invrow small { font-size: 12px; }
@media (max-width: 640px) {
  .ct-file { flex-direction: column; align-items: stretch; }
  .ct-factions { justify-content: flex-end; }
}

/* Creator Feedback (2026-11-19): end-of-week pop up, week page box, and the
   staff list on Creative Direction */
.fbmodal .modal-card h3 { font-size: 16px; line-height: 1.45; font-weight: 600; }
.fbmodal textarea.fbtext { font: inherit; font-size: 15px; padding: 9px 10px; background: #0d1117; border: 1px solid #30363d; border-radius: 8px; color: #e6edf3; width: 100%; box-sizing: border-box; resize: vertical; min-height: 120px; }
.fbmodal textarea.fbtext:focus { outline: none; border-color: #58a6ff; }
.fbbox { margin-top: 22px; }
.fbbox textarea.fbtext { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line, #d0d7de); border-radius: 10px; resize: vertical; min-height: 96px; }
.fbactions { display: flex; justify-content: flex-end; margin-top: 10px; }
.fbsent-head { margin: 14px 0 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.fbsent { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.fbsent li { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; padding: 8px 10px; border-left: 3px solid var(--line); }
details.inspo.feedback > summary.inspo-head { cursor: pointer; list-style: none; }
details.inspo.feedback > summary::-webkit-details-marker { display: none; }
details.inspo.feedback > summary::before { content: "▸"; color: var(--muted); width: 12px; flex: none; }
details.inspo.feedback[open] > summary::before { content: "▾"; }
.feedback-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feedback-when { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; font-size: 14px; }
.feedback-body { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
