/*
 * Staff pages: the public site's dark sidebar on the left, a wide working area on the
 * right. Same idiom as everywhere else -- uppercase futura for structure, minion-pro for
 * content, weights 400/500 only (the Typekit kit has no heavier Futura). Everything is
 * scoped to body.staff or #admin, so the venue-facing upload page is untouched.
 *
 * Page anatomy, for new pages:
 *   section#admin > .container > .page-head (h2, p, .actions, .tabs), then content:
 *   tables (in .table-scroll), .stats, .banner, .empty, or a .form-column of .field rows.
 */

/* ---- Shell ---------------------------------------------------------------------- */

body.staff main {
  margin-top: 0;
  min-height: 100%;
}

body.staff.signed-in main {
  margin-left: 220px;
}

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 220px;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  z-index: 4;
}

.sidebar h1 {
  padding: 28px 24px 26px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.sidebar h1 a {
  color: #fff;
  text-decoration: none;
}

.sidebar nav {
  flex: 1;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 24px 13px 21px;
  font-size: 13px;
  line-height: 16px;
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-left: 3px solid transparent;
}

.sidebar nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .04);
}

.sidebar nav a.current {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border-left-color: var(--accent);
}

.sidebar .badge {
  min-width: 20px;
  padding: 4px 6px;
  font-size: 11px;
  line-height: 12px;
  letter-spacing: 0;
  text-align: center;
  color: #fff;
  background: var(--error);
  border-radius: 10px;
  box-sizing: border-box;
}

.sidebar .account {
  padding: 18px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.sidebar .account .who,
.sidebar .account .signout button {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  letter-spacing: 1px;
}

.sidebar .account .who {
  word-break: break-all;
}

/* Sign out is a DELETE, so it has to be a button -- but it should read as a link. */
.sidebar .account .signout button {
  margin-top: 8px;
  padding: 0;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
}

.sidebar .account .who:hover,
.sidebar .account .signout button:hover {
  color: #fff;
}

/* ---- Page ------------------------------------------------------------------------ */

#admin {
  padding: 36px 40px 80px;
}

#admin .container {
  max-width: 1120px;
}

/* Signed out (sign in, password reset): a single narrow column in the middle. */
body.staff:not(.signed-in) #admin .container {
  max-width: 440px;
  margin: 60px auto 0;
}

#admin a:not(.button) {
  color: var(--accent);
  text-decoration: none;
}

#admin a:not(.button):hover {
  text-decoration: underline;
}

/* `#admin a` (1-0-1) outranks `.button` (0-1-0), so link-buttons restate their colours. */
#admin a.button { color: #fff; }
#admin a.button.secondary { color: var(--text); }
#admin a.button.secondary:hover { color: var(--accent); }
#admin a.button.danger { color: var(--error); }
#admin a.button.danger:hover { color: #fff; }

#admin .page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}

#admin .page-head h2 {
  order: 1;
  flex: 1 1 auto;
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#admin .page-head .actions {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#admin .page-head .actions form {
  display: inline-block;
}

#admin .page-head p {
  order: 3;
  flex-basis: 100%;
  font-size: 16px;
  line-height: 22px;
  font-family: var(--font-body);
  color: var(--text-muted);
}

/* A section's pages, e.g. Listings / Page text */
#admin .page-head .tabs {
  order: 4;
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 6px;
}

#admin .tabs a:not(.button) {
  padding-bottom: 6px;
  font-size: 13px;
  line-height: 16px;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid transparent;
}

#admin .tabs a:not(.button):hover,
#admin .tabs a.current {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Years, as a row of small toggles */
#admin .years {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}

#admin .years a:not(.button) {
  padding: 7px 12px;
  font-size: 13px;
  line-height: 13px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 1px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

#admin .years a.current {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

#admin .section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-bottom: 10px;
  font-size: 18px;
  line-height: 22px;
  font-weight: 400;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}

#admin .section-title small {
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
}

/* ---- Status ---------------------------------------------------------------------- */

#admin .pill {
  display: inline-block;
  padding: 4px 9px;
  font-size: 11px;
  line-height: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  vertical-align: middle;
}

#admin .pill.open    { color: #fff; background: var(--accent); }
#admin .pill.draft   { color: var(--text-muted); background: var(--bg-placeholder); }
#admin .pill.closed  { color: #fff; background: var(--text-muted); }
#admin .pill.done    { color: #fff; background: #3a9a5c; }
#admin .pill.waiting { color: var(--text-muted); background: var(--bg-placeholder); }
#admin .pill.failed  { color: #fff; background: var(--error); }
#admin .pill.sending { color: #fff; background: var(--accent); }

/* Standing warnings about the state of the app itself -- distinct from a flash, which
   reports what your last click did and then goes away. */
#admin .banner {
  margin-top: 24px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 21px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-tint);
  border-left: 3px solid var(--text-muted);
}

#admin .banner.sending { color: var(--accent); border-left-color: var(--accent); }
#admin .banner.error { color: var(--error); border-left-color: var(--error); }

#admin .banner code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

#admin .banner .button,
#admin .banner form {
  margin-left: 10px;
  vertical-align: middle;
}

#admin .banner form {
  display: inline-block;
}

#admin .stats {
  display: flex;
  gap: 2px;
  margin-top: 24px;
}

#admin .stats .stat {
  flex: 1;
  padding: 18px 20px;
  background: var(--bg-tint);
}

#admin .stats .stat strong {
  display: block;
  font-size: 30px;
  line-height: 34px;
  font-weight: 500;
  color: var(--text);
}

#admin .stats .stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#admin .empty {
  margin-top: 24px;
  padding: 44px 20px;
  font-size: 16px;
  line-height: 24px;
  font-family: var(--font-body);
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-tint);
  border-radius: 5px;
}

#admin .empty form {
  display: inline-block;
  margin-top: 14px;
}

/* ---- Tables ---------------------------------------------------------------------- */

#admin .table-scroll {
  overflow-x: auto;
}

#admin table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
}

#admin table th {
  padding: 10px 12px;
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

#admin table td {
  padding: 12px;
  font-size: 15px;
  line-height: 20px;
  font-family: var(--font-body);
  color: var(--text);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  vertical-align: middle;
}

#admin table tbody tr:hover td {
  background: #fafcfd;
}

#admin table td.name {
  font-family: var(--font-ui);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

#admin table td.name small,
#admin table td small.muted {
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
}

/* Prices and counts line up */
#admin table td.numbers,
#admin table th.numbers {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#admin table td.muted {
  color: var(--text-muted);
}

#admin table td.actions {
  text-align: right;
  white-space: nowrap;
}

#admin table td.actions form,
#admin table td.actions a,
#admin table td.actions button {
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}

#admin table tr.inactive td { opacity: .5; }

#admin table td .error-note {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 17px;
  color: var(--error);
}

/* The copyable venue link */
#admin .link-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-all;
}

/* ---- Forms ----------------------------------------------------------------------- */

#admin .form-column {
  max-width: 640px;
  margin-top: 8px;
}

#admin .form-wide {
  max-width: 920px;
}

#admin .field { margin-top: 18px; }

#admin .field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  line-height: 14px;
  font-weight: 500;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#admin .field input[type=text],
#admin .field input[type=email],
#admin .field input[type=url],
#admin .field input[type=date],
#admin .field input[type=number],
#admin .field input[type=password],
#admin .field select,
#admin .field textarea {
  display: block;
  width: 100%;
  padding: 7px 8px;
  font-size: 16px;
  line-height: 20px;
  color: var(--text);
  font-family: var(--font-body);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12);
  box-sizing: border-box;
}

/* Selects draw taller than inputs by default; match them. */
#admin .field select {
  height: 36px;
}

#admin .field input[type=file] {
  font-family: var(--font-body);
  font-size: 14px;
}

#admin .field textarea { min-height: 90px; resize: vertical; }
#admin .field textarea.tall { min-height: 260px; }
#admin .field textarea.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 19px;
}

#admin .field .hint,
#admin .hint {
  margin-top: 6px;
  font-size: 13px;
  line-height: 18px;
  font-family: var(--font-body);
  color: var(--text-muted);
}

#admin .field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
}

#admin .field-row .field {
  flex: 1 1 180px;
}

/* One label per radio, so the whole line is a click target. */
#admin .field.choices label.choice {
  display: block;
  margin: 0 0 6px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  cursor: pointer;
}

#admin .field.choices label.choice input { margin-right: 7px; }

#admin .field.checkbox label {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
}

/* A stored photo or file, with its remove button */
#admin .attachment {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 15px;
}

#admin .attachment img {
  max-width: 150px;
  max-height: 100px;
  border-radius: 3px;
}

#admin .attachment form {
  display: inline-block;
}

/* Lunch and dinner per day, min and max */
#admin table.price-grid {
  width: auto;
  margin-top: 4px;
}

#admin table.price-grid th,
#admin table.price-grid td {
  padding: 6px 8px 6px 0;
  border-bottom: none;
}

#admin table.price-grid tbody tr:hover td {
  background: none;
}

#admin table.price-grid th.day {
  padding-right: 16px;
  text-align: left;
}

#admin table.price-grid input {
  width: 86px;
  padding: 6px 7px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 3px;
  box-sizing: border-box;
  font-variant-numeric: tabular-nums;
}

#admin table.price-grid .to {
  padding: 0 6px 0 0;
  color: var(--text-muted);
}

/* Reviewing new prices: changed boxes stand out, the current price sits underneath */
#admin table.price-grid.review td.changed input {
  border-color: var(--accent);
  background: #f0f8fd;
}

#admin table.price-grid.review tr.now td {
  padding: 0 8px 10px 0;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
}

#admin table tr.unused td { opacity: .45; }

#admin .banner .warning-list {
  margin-left: 18px;
}

#admin .banner .warning-list li + li {
  margin-top: 4px;
}

#admin .errors {
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid var(--error);
  border-radius: 3px;
}

#admin .errors li {
  list-style: none;
  font-size: 15px;
  line-height: 20px;
  font-family: var(--font-body);
  color: var(--error);
}

#admin .form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

#admin .form-actions a:not(.button) { font-size: 14px; }

#admin .form-actions .danger-zone {
  margin-left: auto;
}

/* ---- Small screens: the sidebar becomes a bar across the top -------------------- */

@media (max-width: 899px) {
  body.staff.signed-in main {
    margin-left: 0;
  }

  .sidebar {
    position: static;
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .sidebar h1 {
    padding: 14px 20px;
    font-size: 16px;
  }

  .sidebar nav {
    display: flex;
    flex-basis: 100%;
    order: 3;
    overflow-x: auto;
  }

  .sidebar nav a {
    padding: 12px 14px;
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  .sidebar nav a.current {
    border-bottom-color: var(--accent);
  }

  .sidebar .account {
    margin-left: auto;
    padding: 10px 20px;
    border-top: none;
    text-align: right;
  }

  #admin {
    padding: 24px 20px 60px;
  }

  #admin .table-scroll table {
    min-width: 720px;
  }

  #admin .stats {
    flex-direction: column;
  }
}

/* Settings -> Link venues (venue_links/show): one venue at a time, a question and its
   answer -- ticked suggestions, a dropdown for anything else -- then the decision. */
#admin h3.question {
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  color: var(--ink);
}
#admin .decision-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
#admin .decision-actions form { display: inline-block; }
#admin ul.linked-entries { list-style: none; margin: 14px 0 0; padding: 0; max-width: 640px; }
#admin ul.linked-entries li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
#admin .link-another { margin-top: 22px; }
#admin ul.unasked {
  columns: 2 260px;
  column-gap: 32px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 26px;
}

/* ---- The price list screen (listings/_screen): years across the top, the year's
   venues down the side as a to-do list, the chosen venue's entry beside them --------- */

#admin.workspace { padding: 28px 32px 60px; }

#admin .workspace-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}

#admin .workspace-head h2 {
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#admin .workspace-head .years { margin-top: 0; flex: 1 1 auto; align-items: center; }
#admin .workspace-head .actions { display: flex; gap: 8px; }

#admin .older-years { position: relative; }
#admin .older-years summary {
  padding: 7px 12px;
  font-size: 13px;
  line-height: 13px;
  letter-spacing: 1px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  list-style: none;
}
#admin .older-years summary::-webkit-details-marker { display: none; }
#admin .older-years summary::after { content: " ▾"; }
#admin .older-years > div {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 6px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

#admin .workspace-body {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 36px;
}

#admin .workspace-list {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
  padding: 18px 16px 32px 0;
  border-right: 1px solid rgba(0, 0, 0, .1);
}

/* The list's controls -- kind tabs, search, filters -- as one block above the names */
#admin .list-controls {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}

#admin .workspace-list .tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 14px;
}

#admin .workspace-list .venue-search {
  width: 100%;
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Filters as a row of toggles, each with its count */
#admin .list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
#admin .list-filters a:not(.button) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: .5px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
}
#admin .list-filters a:not(.button):hover { color: var(--accent); border-color: var(--accent); }
#admin .list-filters a.current { color: #fff; background: var(--ink); border-color: var(--ink); }
#admin .list-filters .count { opacity: .65; }

#admin .venue-items { list-style: none; margin: 0 0 16px; padding: 0; }

/* A-Z headings, so a long alphabetical list has landmarks */
#admin .venue-items li.letter {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 16px 12px 5px;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}

/* Each venue: its name, and under it where it stands */
#admin .venue-items a:not(.button) {
  display: block;
  padding: 9px 12px 10px;
  text-decoration: none;
  border-left: 3px solid transparent;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
#admin .venue-items a:not(.button):hover { background: var(--bg-tint); }
#admin .venue-items a.current { background: var(--bg-placeholder); border-left-color: var(--accent); }

#admin .venue-items .venue-name {
  display: block;
  font-size: 15px;
  line-height: 20px;
  color: var(--ink);
}

#admin .venue-items .state {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 15px;
  letter-spacing: .3px;
  color: var(--text-muted);
}
#admin .venue-items .state.new { color: var(--accent); }
#admin .venue-items .state.new::before { content: "\25CF  "; }
#admin .venue-items .state.failed { color: var(--error); }
#admin .venue-items .state.quiet { color: #98a3a9; }

#admin .venue-none { margin: 14px 12px; color: var(--text-muted); font-size: 15px; }
#admin .workspace-list .empty { margin-top: 0; }

#admin .workspace-detail { min-width: 0; max-width: 920px; padding-top: 16px; }

#admin .detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}
#admin .detail-head h2 {
  order: 1;
  flex: 1 1 auto;
  font-size: 22px;
  line-height: 30px;
  font-weight: 400;
  color: var(--ink);
}
#admin .detail-head .detail-nav { order: 2; display: flex; gap: 16px; font-size: 14px; }
#admin .detail-head p {
  order: 3;
  flex-basis: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
}
#admin .detail-head .tabs { order: 4; flex-basis: 100%; display: flex; gap: 28px; margin-top: 8px; }
#admin .detail-head .tabs .dot { color: var(--accent); }

#admin .detail-empty { padding-top: 8px; }
#admin .detail-empty h2 { font-size: 22px; line-height: 30px; font-weight: 400; color: var(--ink); }
#admin .detail-empty p { margin-top: 8px; font-family: var(--font-body); font-size: 16px; }
#admin .year-summary { margin: 14px 0 0 18px; font-family: var(--font-body); font-size: 16px; line-height: 26px; }

#admin .package-source p { margin-top: 14px; font-family: var(--font-body); font-size: 16px; }
#admin .change-venue, #admin details.by-hand { margin-top: 10px; }
#admin .change-venue summary, #admin details.by-hand summary { cursor: pointer; color: var(--accent); font-size: 14px; }
#admin details.by-hand { margin-top: 28px; padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, .1); }
#admin details.by-hand > .hint, #admin details.by-hand > .form-column { margin-top: 12px; }
#admin .venue-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
#admin .venue-form select { max-width: 420px; }
#admin table.package-files td.pick { width: 32px; }
#admin .package-notes { margin-top: 8px; white-space: pre-wrap; }
#admin .review-intro { margin-top: 14px; font-family: var(--font-body); font-size: 15px; color: var(--text-muted); }

@media (max-width: 899px) {
  #admin.workspace { padding: 20px 16px 48px; }
  #admin .workspace-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #admin .workspace-list {
    position: static;
    max-height: 45vh;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
  }
}

/* Beside the list, the price grid shares the pane's width rather than fixing each box */
#admin .workspace-detail table.price-grid { width: 100%; }
#admin .workspace-detail table.price-grid input { width: 100%; min-width: 58px; }
#admin .workspace-detail table.price-grid .to { width: 1%; white-space: nowrap; }
#admin table.package-files td.file { font-family: var(--font-body); font-size: 15px; }

/* Packages (rounds/_screen): the same screen as the price list, rounds for years */
#admin .years.rounds .open-mark { font-size: 11px; }
#admin .detail-head .round-actions { align-items: center; gap: 8px; }
#admin .detail-head .round-actions form { display: inline-block; }
#admin .contact-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 6px; }
#admin .contact-actions form { display: inline-block; }
#admin .workspace-detail table td.actions { white-space: normal; }
#admin .workspace-detail table td.actions form,
#admin .workspace-detail table td.actions button,
#admin .workspace-detail table td.actions a { margin: 3px 0 3px 6px; }
#admin .workspace-detail table td.name small.link-cell { font-size: 12px; word-break: break-all; text-transform: none; letter-spacing: 0; }
#admin .stats a.stat { text-decoration: none; }
#admin .stats a.stat:hover { background: var(--bg-placeholder); }

/* A list whose rows open their item when clicked anywhere (row_link_controller.js) */
#admin table.row-links tbody tr { cursor: pointer; }
#admin table.row-links tbody tr:hover td { background: var(--bg-tint); }

/* A page's explanation, under its heading and tabs rather than between them */
#admin p.lead {
  max-width: 760px;
  margin-top: 18px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 23px;
  color: var(--text-muted);
}

/* ---- Panels: how a chosen venue's details are laid out (Package, Contacts, Price list).
   A bordered group with a small label, a fact beside it and any action on the right, then
   one tidy line per item. Labels and buttons are in the heading face; names and text in
   the body face, never shouting in capitals. ------------------------------------------ */

#admin .panel {
  margin-top: 20px;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 6px;
  overflow: hidden;
}

#admin .panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  padding: 11px 16px;
  background: var(--bg-tint);
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}
#admin .panel-head h3 {
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
}
#admin .panel-head .meta {
  flex: 1 1 auto;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-muted);
}
#admin .panel-head .panel-action { flex: none; }
#admin .panel-head .panel-action form { display: inline-block; }

#admin .panel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}
#admin .panel-row:last-child { border-bottom: none; }
#admin .panel-row input[type=checkbox] { flex: none; margin: 0; }

#admin .panel-row .kind-tag {
  flex: none;
  width: 42px;
  padding: 3px 0;
  font-size: 10px;
  line-height: 12px;
  letter-spacing: 1px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg-placeholder);
  border-radius: 3px;
}

#admin .panel-row .item {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 21px;
  color: var(--ink);
}
#admin .panel-row .item a,
#admin .panel-row .item .line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#admin .panel-row .item small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  line-height: 19px;
  color: var(--text-muted);
}

#admin .panel-row .aside {
  flex: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  text-align: right;
}
#admin .panel-row .row-actions { flex: none; display: flex; gap: 8px; align-items: center; }
#admin .panel-row .row-actions form { display: inline-block; }

#admin .panel-note {
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 21px;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 0, 0, .07);
  white-space: pre-wrap;
}
#admin .panel-note strong { color: var(--text); font-weight: 400; }

/* What to do next, under a panel: the main action, then a sentence saying what it does */
#admin .next-step { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
#admin .next-step .hint { flex: 1 1 260px; margin: 0; }

/* Small, quiet controls that open something (a <details>), styled as buttons rather than
   a bare triangle and a sentence */
#admin details.reveal { margin-top: 16px; }
#admin details.reveal > summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
}
#admin details.reveal > summary::-webkit-details-marker { display: none; }
#admin details.reveal[open] > summary { margin-bottom: 12px; }

#admin p.source {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
}
#admin p.source .quiet { color: var(--text-muted); }
#admin .next-step details.reveal { margin-top: 0; }
#admin .next-step details.reveal[open] { flex: 1 1 100%; }
#admin .panel-note.prompt {
  max-height: 280px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 19px;
  color: var(--text);
}
#admin .panel-row .venue-form { margin-top: 0; }
/* In panels, data (names, emails, sizes, statuses, facts) is in the heading face like the
   venue lists; only sentences (notes, explanations) are in the body face. */
#admin .panel-head .meta,
#admin .panel-row .item,
#admin .panel-row .aside { font-family: var(--font-ui); }
#admin .panel-row .item { font-size: 15px; line-height: 20px; }
#admin .panel-row .item small { font-size: 13px; line-height: 18px; }
#admin .panel-row .aside { font-size: 13px; }
#admin .panel-head .meta { font-size: 13px; letter-spacing: .3px; }
