/* Shot Tracker: dark neutral theme for image review. Large type, roomy spacing. */
:root {
  --bg: #17181b;
  --panel: #212328;
  --panel-2: #2a2d33;
  --line: #3a3d45;
  --text: #eceef2;
  --muted: #a9aeb9;
  --accent: #7cb7ff;
  --danger: #ff8a7a;
  --radius: 12px;
  --gap: 1.25rem;
}

* { box-sizing: border-box; }
html { font-size: 112.5%; } /* 18px base for easy reading */
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.55;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #ffd479; outline-offset: 2px;
}
h1 { font-size: 1.9rem; margin: .4rem 0 1rem; line-height: 1.25; }
h2 { font-size: 1.35rem; margin: 0 0 1rem; }
h3 { font-size: 1.1rem; margin: 1.25rem 0 .5rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.lead { color: var(--muted); font-size: 1.05rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* layout */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem;
  padding: .9rem 1rem; background: var(--panel); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; flex: 1; }
.nav a { color: var(--text); text-decoration: none; padding: .35rem .2rem; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent); }
.whoami { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.who-name { font-weight: 600; }
.page { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 0 0 var(--gap); }
.panel.narrow, .narrow { max-width: 34rem; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.panel-head h2 { margin: 0; }
.group { margin: 0 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* forms */
label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .95rem; }
input[type=text], input[type=password], input[type=search], select, textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 2px solid var(--line);
  border-radius: 8px; padding: .55rem .7rem; min-width: 0; width: 100%;
}
input[type=file] { font: inherit; color: var(--text); }
textarea { resize: vertical; }
.hint { font-weight: 400; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.stack > .panel { margin: 0; }
.row-form { display: flex; flex-wrap: wrap; gap: .9rem; align-items: flex-end; }
.row-form label { flex: 1 1 11rem; }
.row-form label.grow { flex: 3 1 16rem; }
.inline-form { display: inline-flex; gap: .5rem; align-items: center; margin: 0; }
.check { flex-direction: row; align-items: center; gap: .5rem; flex: 0 0 auto; }
.check input { width: 1.2rem; height: 1.2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .9rem; align-items: flex-end; }
.filters label { flex: 1 1 10rem; }
.filters a { padding-bottom: .6rem; }

.btn {
  font: inherit; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.1rem; border-radius: 8px; border: 2px solid var(--line);
  background: var(--panel-2); color: var(--text); text-decoration: none; cursor: pointer; min-height: 2.75rem;
}
.btn:hover { border-color: var(--accent); }
.btn-primary { background: #2f5d94; border-color: #4f86c6; }
.btn-quiet { background: transparent; }
.btn-choice { flex-direction: column; align-items: flex-start; gap: .1rem; text-align: left; width: 100%; padding: 1rem; }
.choice-name { font-size: 1.2rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .8rem; }

.flash { background: #1f3b2b; border: 2px solid #4fae72; border-radius: 8px; padding: .75rem 1rem; }
.error { background: #3d2220; border: 2px solid var(--danger); border-radius: 8px; padding: .75rem 1rem; color: #ffd9d3; }
.toast { background: #3d2220; border: 2px solid var(--danger); border-radius: 8px; padding: .75rem 1rem; margin-bottom: 1rem; }

/* lists, cards */
.list { list-style: none; margin: 0; padding: 0; }
.list-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.list-row .row-form { flex: 1 1 28rem; }
.grow { flex: 1 1 12rem; }
.is-inactive { opacity: .6; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--gap); }
.card { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.card h3 { margin: 0; font-size: 1.2rem; }
.card p { margin: 0; }
.thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #101114; }
.thumb-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); border: 2px dashed var(--line); }
.thumb-link { display: block; }
/* Small picture at the start of a list row (My tasks). Fixed width so the rows line up. */
.row-thumb { flex: 0 0 6rem; }
.row-thumb .thumb-empty { font-size: .7rem; text-align: center; border-width: 1px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: .5rem 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.description, .note-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.shot-top { display: grid; grid-template-columns: minmax(12rem, 22rem) 1fr; gap: var(--gap); }
.task { border-top: 1px solid var(--line); padding: .6rem 0; }
.task summary { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; cursor: pointer; padding: .4rem 0; }
.task-step { font-weight: 700; font-size: 1.05rem; }
.task > .status-line, .task > .row-form { margin: .6rem 0; }

/* status chips: colour + symbol + words */
.status-line { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.status-select { width: auto; min-width: 9rem; padding: .35rem .5rem; font-size: .9rem; }
.chip {
  --c: #9aa0aa; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  padding: .2rem .75rem; border-radius: 999px; border: 2px solid var(--c); color: var(--c);
  background: rgba(0, 0, 0, .25); font-weight: 700; font-size: .95rem;
}
/* Status emoji: name the colour emoji fonts so they never fall back to a plain outline. */
.chip .glyph { font-size: 1rem; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.st-waiting { --c: #aab0bb; }
.st-ready { --c: #5ccbff; }
.st-in-progress { --c: #ffb74d; }
.st-pending-review { --c: #c3a6ff; }
.st-approved { --c: #6fe39a; }
.st-final { --c: #4ae3d6; }
.st-on-hold { --c: #ff9fc0; }
.st-omitted { --c: #8a8f98; text-decoration: line-through; }
.st-needs-changes { --c: #ff8a7a; }

.due-late { color: var(--danger); font-weight: 600; }
.late-tag { background: var(--danger); color: #1a0b09; border-radius: 6px; padding: 0 .4rem; font-size: .8rem; letter-spacing: .04em; }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 46rem; }
th, td { text-align: left; padding: .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .9rem; }
td.status-line { display: table-cell; }

/* notes */
.notes { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-direction: column; gap: .8rem; }
.note { background: var(--panel-2); border-left: 4px solid var(--accent); border-radius: 8px; padding: .8rem 1rem; }
.note-meta { margin: 0 0 .3rem; }
.note-body { margin: 0; }

/* viewer */
.viewer { text-align: center; background: #0f1012; }
.viewer-media { max-width: 100%; max-height: 75vh; border-radius: 8px; }

/* schedule */
.schedule-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: var(--gap); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { color: var(--muted); font-weight: 700; padding: .3rem; }
.cal-day { background: var(--panel-2); border-radius: 8px; min-height: 7rem; padding: .4rem; display: flex; flex-direction: column; gap: .3rem; }
.cal-other { opacity: .5; }
.cal-today { outline: 3px solid var(--accent); }
.cal-date { font-size: .8rem; color: var(--muted); }
.cal-item { display: block; font-size: .85rem; text-decoration: none; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .3rem .4rem; overflow-wrap: anywhere; }
.cal-late { border-color: var(--danger); }
.cal-kind { color: var(--muted); }
.cal-item .chip { font-size: .75rem; padding: 0 .4rem; margin-top: .2rem; }
.list-row .cal-item { background: transparent; border: 0; font-size: 1rem; }

/* phone width */
@media (max-width: 760px) {
  html { font-size: 106.25%; }
  .shot-top { grid-template-columns: 1fr; }
  .cal { grid-template-columns: 1fr; }
  .cal-head, .cal-empty, .cal-other.cal-empty { display: none; }
  .cal-day { min-height: 0; }
  .cal-date { font-size: .95rem; }
  .facts { grid-template-columns: 1fr; }
  .facts dd { margin-bottom: .4rem; }
}
@media (min-width: 761px) {
  .cal-date { font-size: .8rem; }
}

/* inline "Edit" disclosures under notes and version descriptions */
.edit-inline { margin-top: .6rem; }
.edit-inline > summary { cursor: pointer; color: var(--muted); }
.edit-inline > form { margin-top: .6rem; }
