/* QUIVER BRAND LAYER (v32.37, Billy 2026-10-06 - "make it sexier"). Loaded LAST on every page so it
   restyles the existing markup without touching any page's own rules. One place for the look;
   delete this file's <link> and a page falls back to its old plain style. */
:root { --brand: #2f2a9c; --brand-dark: #1e1a6b; --brand-tint: #efeefb; --line: #e4e4ef; --bg: #f5f5fa; --ink: #16162a; --muted: #67677d;
        --ring: 0 0 0 3px rgba(47,42,156,.18); --shadow: 0 1px 2px rgba(22,22,42,.04), 0 8px 28px rgba(22,22,42,.07); }
/* Fonts match the sell sheets (Billy 2026-10-06): Montserrat for body, Bebas Neue for headings. */
body { font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
       -webkit-font-smoothing: antialiased; }
input, select, textarea, button { font-family: inherit; }
header h1.brand span, h2, a.tile b, .req .title {
  font-family: "Bebas Neue", "Montserrat", Impact, sans-serif; font-weight: 400; letter-spacing: .04em; }
header h1.brand span { font-size: 22px; line-height: 1; padding-top: 2px; }
h2 { font-size: 18px; color: var(--ink); }
h2 > span:not(:first-child), h2 label { font-family: "Montserrat", sans-serif; letter-spacing: 0; font-size: 12px; }
a.tile b { font-size: 26px; line-height: 1.05; }
.req .title { font-size: 20px; line-height: 1.1; }

/* header: logo + page name, nav as pills */
header { background: linear-gradient(120deg, #1b1760 0%, #2f2a9c 55%, #4a3fd1 100%); padding: 14px 20px; box-shadow: 0 2px 14px rgba(22,22,60,.25); }
header .wrap { align-items: center !important; }
header h1.brand { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 15px; font-weight: 500; }
header h1.brand a { display: flex; line-height: 0; }
header h1.brand img { height: 30px; width: auto; display: block; }
header h1.brand span { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.88); letter-spacing: .01em; white-space: nowrap; }
header nav { display: flex; gap: 4px; flex-wrap: wrap; }
header nav a { margin-left: 0 !important; padding: 6px 11px; border-radius: 999px; color: rgba(255,255,255,.78) !important; font-size: 13.5px; transition: background .15s, color .15s; }
header nav a:hover { background: rgba(255,255,255,.12); color: #fff !important; }
header nav a.here { background: rgba(255,255,255,.18); color: #fff !important; text-decoration: none !important; font-weight: 600; }

/* cards, fields, buttons */
.card, a.tile { border-color: var(--line); border-radius: 14px; box-shadow: var(--shadow); }
a.tile { transition: transform .15s, box-shadow .15s, border-color .15s; }
a.tile:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(22,22,42,.05), 0 14px 34px rgba(47,42,156,.14); }
input[type=text], input[type=date], input[type=month], input[type=password], select, textarea { border-radius: 10px !important; border-color: var(--line); transition: border-color .15s, box-shadow .15s; }
input[type=text]:focus, input[type=date]:focus, input[type=month]:focus, input[type=password]:focus, select:focus, textarea:focus { outline: none !important; border-color: var(--brand) !important; box-shadow: var(--ring); }
.btn { background: linear-gradient(120deg, #2f2a9c, #4a3fd1); border-radius: 12px; letter-spacing: .01em;
       box-shadow: 0 6px 18px rgba(47,42,156,.28); transition: transform .12s, box-shadow .12s, filter .12s; }
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(47,42,156,.34); }
.btn:active { transform: translateY(0); }
.btn[disabled] { box-shadow: none; transform: none; filter: none; }

/* tabs / choice buttons */
.modes span, .versions span { border-radius: 10px; transition: border-color .15s, background .15s; }
.modes label:hover span, .versions label:hover span { border-color: #c9c6ef; }
.modes.sections input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }

/* request rows */
.req { border-radius: 12px; box-shadow: 0 1px 2px rgba(22,22,42,.04); }
.pill { letter-spacing: .04em; }
h2 > span:first-child { font-size: 18px; font-weight: 400; color: var(--ink); }
@media (min-width: 700px) {
  header .wrap { flex-wrap: nowrap !important; }
  header nav { flex-wrap: nowrap; }
  header nav a { padding: 5px 9px; font-size: 12.5px; white-space: nowrap; }
}

/* TWO-PANEL LAYOUT (Billy 2026-10-06: "a left frame and a right frame", left 75% / right 25% - no more scrolling down to
   the list and back up to the form). Wide screens: the form stays put on the left while the file
   list scrolls on the right. Below 1000px it stacks exactly as before. Pages opt in with
   <main class="split"> and two wrappers, .col-left (form) and .col-right (list). */
@media (min-width: 1000px) {
  main.split { max-width: 1240px; padding: 22px 28px; }
  main.split #app:not([hidden]) { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); column-gap: 28px; align-items: start; }
  main.split .col-left { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 4px 18px 40px 18px; margin: -4px -18px 0 -18px; scrollbar-width: thin; }
  main.split .col-right > h2:first-child { margin-top: 2px; flex-wrap: wrap; row-gap: 4px; }
  main.split .col-right > h2 > span:first-child { flex: 1 0 100%; }
  main.split .col-right > h2 > label, main.split .col-right > h2 > span:not(:first-child) { white-space: nowrap; }
  main.split ~ footer { max-width: 1240px; padding-left: 28px; padding-right: 28px; }
  body:has(main.split) header .wrap { max-width: 1184px !important; }
}

/* Field headings bold (Billy 2026-10-06: "All the headers for any fields should be bolded, like
   Add titles, Name the file yourself"). Covers every label.lbl on every page; "(optional)" stays light. */
label.lbl { font-weight: 700; color: var(--ink); font-size: 13.5px; }
label.lbl .opt { font-weight: 400; color: var(--muted); }

/* READY ROWS (Billy 2026-10-06): a finished file reads green with one big Download button; count
   and link expiry share one line; the file name sits underneath, cut short with "..." if long. */
.req.ready { border-left: 3px solid #1f9d55 !important; background: linear-gradient(90deg, #eefaf2 0%, #ffffff 70%); }
.dl { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; margin-top: 10px; }
.dlbtn { display: inline-flex; align-items: center; gap: 6px; background: #1f9d55; color: #fff !important; text-decoration: none !important;
         font-weight: 700; font-size: 13px; padding: 8px 15px; border-radius: 999px; box-shadow: 0 4px 12px rgba(31,157,85,.28); white-space: nowrap;
         transition: filter .12s, transform .12s; }
.dlbtn::before { content: "\2193"; font-weight: 700; }
.dlbtn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.dlmeta { font-size: 12px; color: var(--muted); }
.dlfile { font-size: 11.5px; color: var(--muted); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.againbtn { background: #fff; color: var(--brand); border: 1px solid #cfcbf3; font: inherit; font-weight: 600; font-size: 12.5px;
            padding: 7px 12px; border-radius: 999px; cursor: pointer; transition: border-color .12s, background .12s; white-space: nowrap; }
.againbtn:hover { border-color: var(--brand); background: var(--brand-tint); }
.againbtn[disabled] { opacity: .6; cursor: default; }
.dlmeta { flex: 1 0 100%; }
.listq { width: 100%; box-sizing: border-box; margin: 0 0 10px; padding: 9px 12px 9px 34px; font: inherit; font-size: 13.5px;
         border: 1px solid var(--line); border-radius: 999px !important; background: #fff no-repeat 12px center / 15px
         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2367677d' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); }
.listq:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }

/* TITLE LIST BESIDE THE FORM (v32.45, Billy 2026-10-06 - use the empty left space). Avails page:
   when a provider's title list is showing, it sits to the right of the form on wide screens. */
.formrow > .preview { margin-top: 14px; }
@media (min-width: 1280px) {
  .formrow:has(> .preview:not([hidden])) { display: grid; grid-template-columns: minmax(420px, 1.3fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
  .formrow > .preview { margin-top: 0; border-radius: 14px; box-shadow: var(--shadow); padding: 18px 20px; }
  .formrow > .preview ol, .formrow > .preview ul { max-height: calc(100vh - 300px); }
}

/* THUMBNAILS (v32.46, Billy 2026-10-06): a picture of the first slide on finished sell sheets and
   decks (made on Billy's laptop after the file is done - can appear a few seconds after "done"). */
.rowthumb { display: block; margin-top: 10px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.rowthumb img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover; background: #eceaf6; }
.rowthumb:hover { border-color: var(--brand); }
/* Smaller thumbnails (Billy 2026-10-06: "The thumbnail is too big"). */
.rowthumb { width: 150px; }

/* PHONE-READY (v32.51, Billy 2026-10-06 - "phone-ready for AFM"). Phones only (under 700 px).
   1. Header: one slim row - smaller logo, menu scrolls sideways instead of wrapping to two lines.
   2. "Make a file / Your files" jump bar on the two working pages, so a finished file is one tap away.
   3. Fields at 16 px so the iPhone does not zoom in on every tap. */
.phonejump { display: none; }
@media (max-width: 699px) {
  header { padding: 8px 14px; }
  header .wrap { flex-wrap: nowrap !important; gap: 10px !important; align-items: center !important; }
  header h1.brand { gap: 8px; flex: 0 0 auto; }
  header h1.brand img { height: 22px; }
  header h1.brand span { display: none; }
  header nav { flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 2px; }
  header nav::-webkit-scrollbar { display: none; }
  header nav a { white-space: nowrap; padding: 6px 10px; font-size: 13px; }
  main { padding: 12px 14px !important; }
  input[type=text], input[type=search], input[type=date], input[type=month], input[type=password], select, textarea, .listq { font-size: 16px !important; }
  .phonejump { display: flex; gap: 8px; margin: 0 0 12px; }
  .phonejump a { flex: 1; text-align: center; padding: 10px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
                 color: var(--brand); font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 1px 2px rgba(22,22,42,.05); }
  #app, #files { scroll-margin-top: 60px; }
  .card { padding: 16px; }
  .btn { font-size: 16px; padding: 14px; }
  .dlbtn, .againbtn { padding: 10px 16px; font-size: 14px; }
}

/* FORM FITS THE SCREEN (v32.69, Billy 2026-10-06: "Make sure that the left pane menu fits at 100%
   frame size, fully within frame"). Wide screens only (1000 px+, the two-panel layout): tighter
   spacing, paired fields side by side, avails tabs on one row, providers four across. A list of
   titles that keeps growing (deck titles, "Only these titles") scrolls inside its own box - Billy:
   "it's okay if that list scrolls inside its own box." Phones and narrow windows are unchanged. */
@media (min-width: 1000px) {
  main.split .col-left .card { padding: 16px 20px; }
  main.split .col-left label.lbl { margin: 10px 0 4px; }
  main.split .col-left input[type=text], main.split .col-left input[type=date], main.split .col-left select,
  main.split .col-left .mp-btn { padding: 8px 10px; font-size: 15px; }
  main.split .col-left .hint { margin-top: 3px; font-size: 12px; }
  main.split .col-left .modes { margin-bottom: 8px; }
  main.split .col-left .modes span { padding: 7px 8px; }
  main.split .col-left .versions { margin-top: 10px; gap: 6px; }
  main.split .col-left .versions span { padding: 7px 10px; }
  main.split .col-left .versions span b { font-size: 14px; }
  main.split .col-left .versions span em { margin-top: 1px; font-size: 12px; }
  main.split .col-left .btn { margin-top: 12px; padding: 11px 16px; font-size: 16px; }
  main.split .col-left .basket { margin-top: 6px; max-height: clamp(44px, calc(100vh - var(--fixed-h, 680px)), 420px); overflow-y: auto; scrollbar-width: thin; }
  main.split .col-left .basket li { padding: 3px 10px; margin-bottom: 4px; }
  main.split .col-left .basket li span { font-size: 13.5px; }
  main.split .col-left .pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; align-items: start; }
  main.split .col-left .tabrow { display: flex; gap: 12px; margin-bottom: 4px; }
  main.split .col-left .tabrow > .modes { margin-bottom: 0; }
  main.split .col-left .tabrow > #sections { flex: 3 1 0; }
  main.split .col-left .tabrow > #modes { flex: 2 1 0; }
  main.split .col-left .providers { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  main.split .col-left .providers span { padding: 7px 6px; font-size: 13px; }
  main.split .col-left .pnote { margin-top: 4px; min-height: 0; font-size: 12px; }
  main.split .col-left .notice { margin-bottom: 10px; }
  main.split .col-left select#deckOrder, main.split .col-left select#round, main.split .col-left select#terr { padding: 8px 10px; font-size: 15px; }
  main.split .col-left .pair.three { grid-template-columns: 1.2fr 1fr 1fr; }
  main.split .col-left #optsWrap .pair.three { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  main.split .col-left .chosen:empty { min-height: 0; margin: 0; }
  main.split .col-left .youare { margin: -8px 0 8px; }
  main.split .col-left .providers span { padding: 5px 4px; font-size: 12.5px; letter-spacing: -.01em; }
  main.split .col-left #titlesWrap .basket { --fixed-h: 740px; }
  main.split .col-left .msg { margin-top: 8px; }
  main.split .col-left .link { margin-top: 4px !important; }
  main.split { padding-top: 14px; }
  main.split .col-left { top: 70px; max-height: calc(100vh - 78px); padding-bottom: 12px; }
  /* EVEN BOXES (v32.69, Billy 2026-10-06: "they're different sizes, different-size boxes"). Every
     one-line control on the form is the same height; tabs are equal width; provider buttons are
     all one size and never wrap to two lines. */
  main.split .col-left input[type=text], main.split .col-left input[type=date], main.split .col-left select,
  main.split .col-left .mp-btn, main.split .col-left .modes span, main.split .col-left .providers span {
    box-sizing: border-box; height: 38px; min-height: 38px; }
  main.split .col-left .modes span, main.split .col-left .providers span {
    display: flex; align-items: center; justify-content: center; padding-top: 0; padding-bottom: 0; }
  main.split .col-left .tabrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
  main.split .col-left .tabrow > .modes { display: contents; }
  main.split .col-left .tabrow > .modes[hidden] { display: none !important; }
  main.split .col-left .providers { grid-template-columns: repeat(auto-fill, minmax(min(155px, 100%), 1fr)); grid-auto-rows: 36px; }
  main.split .col-left .providers span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 6px; padding-right: 6px; font-size: 13px; }
  main.split .col-left .providers span { display: block; line-height: 36px; text-align: center; }
  main.split .col-left #basketWrap .basket { --fixed-h: 700px; }
  main.split .col-left .providers span { height: 36px; min-height: 36px; line-height: 34px; }
  /* A side-by-side pair whose left half has nothing showing (metadata: no month, no round) collapses, so File type moves left. */
  main.split .col-left .pair > div:not(:has(> :not([hidden]))) { display: none; }
}
/* SETTINGS ALWAYS OPEN, KEPT SMALL (v32.72, Billy 2026-10-06: no "More options" click; "ok" to the
   compact layout). The 20 Generic sub-rights flow as small tags with each group's name inline. */
@media (min-width: 1000px) {
  main.split .col-left .srgrid { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; padding: 8px 10px; }
  main.split .col-left .srgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
  main.split .col-left .srhead { margin: 0 2px 0 0; font-size: 10.5px; }
  main.split .col-left .srrow { gap: 4px; }
  main.split .col-left .srrow span { padding: 2px 8px !important; font-size: 12px !important; }
  main.split .col-left .modes.chips span { height: 30px; min-height: 30px; font-size: 12.5px; }
  main.split .col-left .srtools { margin: -20px 0 4px; }
  main.split .col-left #countryBasket { max-height: 70px; overflow-y: auto; }
  /* "paste a list instead" sits on the heading's line, not under the hints */
  main.split .col-left #titlesWrap { position: relative; }
  main.split .col-left #titlesWrap > #pasteOpen { position: absolute; top: 0; right: 0; margin: 0 !important; }
}
/* When the title list sits beside the form, the form is narrow: providers three across. A name too
   long for its button is cut with "..." and shows in full on hover. */
@media (min-width: 1280px) {
  main.split .col-left .formrow:has(> .preview:not([hidden])) .providers { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 32px; gap: 5px; }
  main.split .col-left .formrow:has(> .preview:not([hidden])) .providers span { height: 32px; min-height: 32px; line-height: 30px; padding-left: 4px; padding-right: 4px; }
  /* AVOD full slate has too many settings to sit beside the list: the list goes under the form (v32.72). */
  main.split .col-left .formrow.stack { display: block !important; }
  main.split .col-left .formrow.stack > .preview { margin-top: 14px; }
  main.split .col-left .formrow.stack .providers { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  main.split .col-left .formrow:has(> .preview:not([hidden])) .providers span { font-size: 12px; }
}
