@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(../fonts/archivo.woff2) format("woff2"); }
@font-face { font-family: "Archivo"; font-style: italic; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(../fonts/archivo-italic.woff2) format("woff2"); }

:root {
  --blue: #0f1217; --blue-dk: #232a34; --blue-lt: #fff4cc;
  --navy: #0f1217; --gold: #ffc20e; --gold-lt: #fff4cc; --flame: #ff6a13; --flame-dk: #b9440b;
  --ink: #0f1217; --text: #1d2129; --muted: #575e6b;
  --bg: #f1efea; --card: #fff; --line: #e3ded3; --line-2: #cfc8b9;
  --ok: #157f3b; --ok-lt: #dcfce7; --warn: #a15c00; --warn-lt: #fff3d6; --bad: #b42318; --bad-lt: #fde8e7;
  --head: "Archivo", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 12px; --side: 248px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.5 var(--body); font-stretch: 100%; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.05; margin: 0; letter-spacing: 0; }
h1, h2 { font-style: italic; font-stretch: 65%; }
h3 { font-stretch: 85%; }
h1 { font-size: clamp(2.2rem, 7vw, 3rem); font-weight: 900; text-transform: uppercase; }
h2 { font-size: 1.6rem; font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.3rem; font-weight: 800; }
p { margin: 0 0 .8em; }
code { background: var(--blue-lt); color: var(--blue-dk); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Shell */
.side { display: none; }
.main { padding: 18px 16px 110px; max-width: 1240px; margin: 0 auto; }
.tabbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--navy); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px rgba(0, 0, 0, .18); }
.tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; color: #c9d2e3; text-decoration: none; font: 600 .72rem/1.1 var(--body); background: none; border: 0; cursor: pointer; }
.tabbar .ic { width: 1.45em; height: 1.45em; }
.tabbar [aria-current="page"], .tabbar [aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .1); }
.tabbar [aria-current="page"] .ic { color: var(--gold); }
.more-sheet { position: fixed; z-index: 59; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); background: #fff; border-radius: 16px; box-shadow: 0 16px 40px rgba(10, 25, 51, .3); padding: 8px; display: grid; }
.more-sheet a { display: flex; align-items: center; gap: 12px; padding: 13px 12px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 10px; }
.more-sheet a:hover { background: var(--bg); }
@media (min-width: 960px) {
  .tabbar, .more-sheet { display: none !important; }
  .side { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--navy); color: #fff; padding: 0 12px 16px; overflow-y: auto; }
  .side::before { content: ""; display: block; height: 6px; margin: 0 -12px 14px; background: linear-gradient(90deg, var(--gold) 0 70%, var(--flame) 70%); }
  .side-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 6px 8px 18px; }
  .side-logo { height: 38px; width: auto; }
  .side-brand > span:not(.brand) { font: 800 1.05rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 10px; }
  .side nav { display: grid; gap: 2px; }
  .side a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #cdd5e5; text-decoration: none; font-weight: 600; }
  .side a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
  .side a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
  .side a[aria-current="page"] .ic { color: var(--gold); }
  .side-foot { margin-top: auto; display: grid; gap: 2px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); }
  .me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; }
  .me small { display: block; color: #9aa6bd; font-size: .78rem; line-height: 1.2; }
  .main { margin-left: var(--side); padding: 28px 36px 60px; }
  .main { max-width: calc(1240px + var(--side)); }
}
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font: 900 1.2rem/1 var(--head); flex: none; }

/* Page top */
.page-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin: 4px 0 22px; }
.page-top p { margin: 6px 0 0; color: var(--muted); }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; margin-bottom: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); font: 700 .95rem/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, transform .15s; }
.btn:hover { background: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: none; }
.btn-primary .ic { color: var(--gold); }
.btn-primary:hover { background: var(--blue-dk); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: none; }
.btn-gold:hover { background: #ffbe2e; }
.btn-danger { color: var(--bad); }
.btn-danger:hover { background: var(--bad-lt); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .88rem; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.linkish { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Cards & lists */
.card { background: var(--card); border-radius: var(--r); box-shadow: 0 1px 0 var(--line), 0 1px 3px rgba(17, 24, 39, .04); padding: 18px; }
.card + .card { margin-top: 16px; }
.card > h2 { margin-bottom: 12px; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 1100px) { .grid2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: 0 1px 0 var(--line); text-decoration: none; color: var(--text); display: grid; gap: 2px; }
.tile b { font: 900 2.3rem/1 var(--head); color: var(--ink); }
.tile span { font-weight: 600; font-size: .9rem; }
.tile small { color: var(--muted); }
a.tile:hover { box-shadow: 0 0 0 2px var(--blue-lt), 0 1px 0 var(--line); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.rows > li:first-child { border-top: 0; }
.rows .grow { flex: 1; min-width: 0; }
.rows b { color: var(--ink); }
.rows small { display: block; color: var(--muted); }
.rows a.row-link { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; flex: 1; min-width: 0; }
.rows a.row-link:hover b { color: var(--blue); text-decoration: underline; }
.thumb { width: 44px; flex: none; border-radius: 6px; overflow: hidden; background: var(--bg); aspect-ratio: 2 / 3; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.round { border-radius: 50%; aspect-ratio: 1; width: 42px; display: grid; place-items: center; font: 900 1.1rem/1 var(--head); color: #fff; background: var(--blue); }
.thumb.wide { aspect-ratio: 16 / 9; width: 72px; }
.empty { padding: 26px; text-align: center; color: var(--muted); }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--bg); color: var(--muted); white-space: nowrap; line-height: 1.6; }
.pill.live { background: var(--ok-lt); color: var(--ok); }
.pill.draft { background: #eceff4; color: #4b5563; }
.pill.ended { background: #eceff4; color: #6b7280; }
.pill.soon { background: var(--blue-lt); color: var(--blue); }
.pill.example { background: #efe7fd; color: #5b21b6; }
.pill.agile { background: var(--blue-lt); color: var(--blue); }
.pill.here { background: var(--gold-lt); color: #7a4d00; }
.pill.sold { background: var(--bad-lt); color: var(--bad); }
.pill.warn { background: var(--warn-lt); color: var(--warn); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; }

/* Attention list */
.attn { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.attn li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--warn-lt); }
.attn li.info { background: var(--blue-lt); }
.attn .ic { color: var(--warn); margin-top: 2px; }
.attn li.info .ic { color: var(--blue); }
.attn a { font-weight: 700; }
.all-good { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--ok-lt); color: var(--ok); font-weight: 700; }

/* Sync */
.sync { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.sync-dot { width: 14px; height: 14px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34, 197, 94, .2); flex: none; }
.sync-dot.stale { background: #f59e0b; box-shadow: 0 0 0 5px rgba(245, 158, 11, .2); }
.sync .grow { flex: 1; min-width: 200px; }
.sync b { color: var(--ink); }
.spin .ic { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Agenda + activity */
.agenda-day { font: 800 1.05rem/1 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 4px; }
.agenda-day:first-child { margin-top: 0; }
.time { font: 800 1.15rem/1 var(--head); color: var(--ink); min-width: 62px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feed li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.feed .avatar { width: 28px; height: 28px; font-size: .95rem; }
.feed small { display: block; color: var(--muted); }

/* Forms */
.stack { display: grid; gap: 14px; }
.fld { display: grid; gap: 5px; min-width: 0; align-content: start; }
.fld label, .fld-label, legend { font-weight: 700; color: var(--ink); font-size: .93rem; }
.opt { font-weight: 500; color: var(--muted); font-size: .85em; margin-left: 4px; }
.help, .fld small { color: var(--muted); font-size: .84rem; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]), textarea, select { font: inherit; font-size: 1rem; color: var(--ink); width: 100%; min-height: 44px; padding: 9px 12px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(255, 194, 14, .45); border-color: var(--ink); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--bad); background: #fff8f8; }
.err { color: var(--bad); font-weight: 700; font-size: .9rem; margin: 0; }
.row2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks legend { margin-bottom: 6px; }
.chk { position: relative; display: inline-flex; }
.chk input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chk span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2); background: #fff; font-weight: 600; font-size: .9rem; color: var(--text); }
.chk span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chk input:checked + span { background: var(--c); color: #fff; box-shadow: none; }
.chk input:checked + span::before { background: #fff; }
.chk input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 6px 0; }
.toggle input { position: absolute; opacity: 0; }
.toggle .sw { flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; transition: background-color .15s; margin-top: 1px; }
.toggle .sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.toggle input:checked + .sw { background: var(--ok); }
.toggle input:checked + .sw::after { transform: translateX(20px); }
.toggle input:focus-visible + .sw { outline: 3px solid var(--gold); outline-offset: 2px; }
.toggle b { display: block; color: var(--ink); }
.toggle small { display: block; color: var(--muted); font-size: .85rem; }
.savebar { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); box-shadow: 0 6px 24px rgba(10, 25, 51, .14); }
.savebar .grow { flex: 1; color: var(--muted); font-size: .9rem; min-width: 140px; }
.savebar.dirty .grow { color: var(--warn); font-weight: 700; }
@media (min-width: 960px) { .savebar { bottom: 14px; } }

/* Drop zones */
.drop { display: flex; gap: 14px; align-items: center; padding: 14px; border: 2px dashed var(--line-2); border-radius: 14px; background: #fafbfd; transition: border-color .15s, background-color .15s; }
.drop.over { border-color: var(--blue); background: var(--blue-lt); }
.drop-prev { flex: none; width: 84px; border-radius: 8px; overflow: hidden; background: #e8ebf1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b2' stroke-width='1.6'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E") center / 34% no-repeat; }
.drop.tall .drop-prev { aspect-ratio: 2 / 3; }
.drop.round .drop-prev { aspect-ratio: 1; border-radius: 50%; }
.drop.wide .drop-prev { aspect-ratio: 16 / 9; width: 120px; }
.drop-prev img { width: 100%; height: 100%; object-fit: cover; }
.drop.wide .drop-prev img { object-fit: contain; background: #fff; }
.drop-body { display: grid; gap: 3px; min-width: 0; }
.drop-body b { color: var(--ink); }
.drop-body small { color: var(--muted); }
.drop-status { font-size: .88rem; font-weight: 700; color: var(--blue); }
.drop-status.bad { color: var(--bad); }
.drop.busy .drop-prev { opacity: .5; }

/* Showtimes */
.week-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.week-nav h2 { font-size: 1.5rem; margin-right: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.week { display: grid; gap: 12px; }
.wday { background: var(--card); border-radius: var(--r); box-shadow: 0 1px 0 var(--line); padding: 10px; min-width: 0; }
.wday.today { box-shadow: 0 0 0 2px var(--blue); }
.wday h3 { display: flex; align-items: baseline; gap: 8px; font-size: 1.15rem; text-transform: uppercase; padding: 2px 4px 8px; }
.wday h3 small { font: 600 .82rem/1 var(--body); color: var(--muted); text-transform: none; }
.wday .none { color: var(--muted); font-size: .85rem; padding: 4px; }
.slot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; width: 100%; text-align: left; padding: 9px 10px; margin-top: 6px; border: 0; border-radius: 10px; background: var(--blue-lt); color: var(--ink); font: inherit; cursor: pointer; border-left: 4px solid var(--blue); }
.slot.here { background: var(--gold-lt); border-left-color: var(--gold); }
.slot:hover { filter: brightness(.97); }
.slot .t { font: 800 1.05rem/1.2 var(--head); }
.slot .n { font-weight: 700; font-size: .9rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.slot .m { grid-column: 2; font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.slot .m .note { color: #7a4d00; font-weight: 700; }
@media (min-width: 1100px) {
  .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .wday { padding: 8px; }
  .slot { grid-template-columns: 1fr; padding: 8px; }
  .slot .m { grid-column: 1; }
}
dialog { border: 0; border-radius: 18px; padding: 0; width: min(520px, calc(100% - 24px)); box-shadow: 0 24px 60px rgba(10, 25, 51, .35); color: var(--text); }
dialog::backdrop { background: rgba(10, 25, 51, .55); }
.dlg-head { display: flex; gap: 14px; padding: 18px 18px 0; }
.dlg-head .thumb { width: 64px; }
.dlg-head h2 { font-size: 1.5rem; }
.dlg-body { padding: 16px 18px; display: grid; gap: 14px; }
.dlg-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 0 18px 18px; }
.dlg-close { margin-left: auto; align-self: flex-start; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--muted); border-radius: 8px; }
.info-line { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.info-line .ic { color: var(--blue); margin-top: 1px; }

/* Films grid */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; align-items: center; }
.filters a { padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .9rem; }
.filters a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; }
.filters .search { margin-left: auto; position: relative; min-width: 220px; flex: 1; max-width: 320px; }
.filters .search input { padding-left: 38px; border-radius: 999px; }
.filters .search .ic { position: absolute; left: 12px; top: 12px; color: var(--muted); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.fcard { display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--text); }
.fcard .pf { position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: var(--navy); box-shadow: 0 6px 16px rgba(10, 25, 51, .14); transition: transform .15s; }
.fcard .pf img { width: 100%; height: 100%; object-fit: cover; }
.fcard .pf.wide img { object-fit: contain; }
.fcard:hover .pf { transform: translateY(-3px); }
.fcard .tags { position: absolute; left: 6px; top: 6px; right: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.fcard b { color: var(--ink); font-size: .95rem; line-height: 1.25; }
.fcard small { color: var(--muted); font-size: .82rem; }
.fcard .sers { display: flex; gap: 4px; }

/* Editor layout */
.editor { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1100px) { .editor { grid-template-columns: minmax(0, 1fr) 360px; } .editor .preview-col { position: sticky; top: 20px; } }
.section-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin-bottom: 14px; }
.section-card h2 .num { width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-size: 1rem; }
.from-agile { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--blue-lt); font-size: .92rem; }
.from-agile b { color: var(--blue-dk); }
.from-agile .ic { color: var(--blue); }

/* Live preview (mini versions of the website) */
.pv { border-radius: 14px; overflow: hidden; background: #f6f3ec; box-shadow: 0 1px 0 var(--line); }
.pv-label { font: 800 .9rem/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.pv-hero { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: end; padding: 16px; background: var(--navy); color: #fff; overflow: hidden; }
.pv-hero::before { content: ""; position: absolute; inset: -30px; background: var(--bg-img, none) center / cover; filter: blur(22px) brightness(.4); }
.pv-hero > * { position: relative; }
.pv-poster { aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: #1f2a44; box-shadow: 0 8px 18px rgba(0, 0, 0, .4); }
.pv-poster img { width: 100%; height: 100%; object-fit: cover; }
.pv-tag { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffbe2e; margin: 0 0 2px; }
.pv-title { font: 900 1.7rem/1 var(--head); text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
.pv-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pv-badges span { font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--c); }
.pv-body { padding: 14px 16px 16px; font-size: .9rem; color: #232b3a; }
.pv-body p { margin: 0 0 10px; }
.pv-stub { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--ink); border-radius: 7px; padding: 7px 12px; font: 800 1rem/1 var(--head); }
.pv-stub small { font: 700 .72rem/1 var(--body); }
.pv-note { font-size: .82rem; font-weight: 700; color: #8a5a00; margin: 6px 0 0; }
.pv-card { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 10px; margin: 10px; }

/* Repeatable rows */
.rep { display: grid; gap: 8px; }
.rep-row { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; align-items: start; padding: 10px; border-radius: 12px; background: var(--bg); }
.rep-row .fields { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.rep-row .tools { display: flex; gap: 2px; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: #fff; color: var(--ink); }
.icon-btn.del:hover { color: var(--bad); background: var(--bad-lt); }

/* Festival program */
.prog { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prog > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--bg); }
.prog .when { font: 800 1rem/1.15 var(--head); color: var(--ink); min-width: 92px; }
.prog .when small { display: block; font: 600 .75rem/1.2 var(--body); color: var(--muted); }
.prog details { grid-column: 1 / -1; }
.prog summary { cursor: pointer; font-weight: 700; color: var(--blue); font-size: .9rem; }
.prog .item-fields { display: grid; gap: 10px; margin-top: 10px; }
.picker { max-height: 360px; overflow-y: auto; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; }
.picker label { display: grid; grid-template-columns: auto 34px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); cursor: pointer; }
.picker label:first-child { border-top: 0; }
.picker label:hover { background: var(--bg); }
.picker input { width: 20px; height: 20px; accent-color: var(--blue); }
.picker .thumb { width: 34px; }
.picker small { display: block; color: var(--muted); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.swatches label { position: relative; }
.swatches input[type=radio] { position: absolute; opacity: 0; }
.swatches span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .1); cursor: pointer; }
.swatches input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.swatches input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 4px; }
.swatches input[type=color] { width: 44px; height: 38px; padding: 2px; border-radius: 10px; }

/* Toast */
.toast { position: fixed; z-index: 120; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); translate: -50% 0; display: flex; gap: 10px; align-items: center; max-width: calc(100% - 32px); background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); font-weight: 700; animation: toast 4.5s forwards; }
.toast .ic { color: #4ade80; }
.toast.bad .ic { color: #fca5a5; }
@keyframes toast { 0% { opacity: 0; transform: translateY(10px); } 6%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; visibility: hidden; } }
@media (min-width: 960px) { .toast { bottom: 24px; margin-left: calc(var(--side) / 2); } }

/* Login */
.login-page { background: var(--navy); min-height: 100vh; }
.login { min-height: 100vh; display: grid; place-content: center; gap: 16px; padding: 24px 16px; grid-template-columns: minmax(0, 420px); }
.login-card { background: #fff; border-radius: 20px; padding: 28px 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.login-brand { color: var(--blue); margin-bottom: 18px; }
.login-logo { height: 54px; width: auto; }
.login h1 { font-size: 2.4rem; margin-bottom: 4px; }
.login .err { margin-bottom: 10px; }
.demo-card { background: rgba(255, 255, 255, .08); border-radius: 16px; padding: 16px; color: #dbe2ee; display: grid; gap: 8px; }
.demo-card p { margin: 0 0 4px; font-size: .92rem; }
.demo-card code { background: rgba(255, 255, 255, .15); color: #fff; }
.demo-user { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: rgba(255, 255, 255, .08); border: 0; border-radius: 12px; padding: 10px 12px; color: #fff; font: inherit; cursor: pointer; }
.demo-user:hover { background: rgba(255, 255, 255, .16); }
.demo-user small { display: block; color: #aab5cb; font-size: .8rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Festivals */
.fest-list { display: grid; gap: 12px; }
.fest-card { padding: 0; overflow: hidden; }
.fest-link { display: flex; align-items: center; gap: 16px; padding: 12px 16px 12px 12px; color: inherit; text-decoration: none; }
.fest-link:hover b { color: var(--blue); text-decoration: underline; }
.fest-link > .ic { color: var(--muted); }
.fest-band { flex: none; width: 92px; height: 72px; border-radius: 10px; background: var(--fc); display: grid; place-items: center; color: #fff; padding: 8px; }
.fest-logo { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.fest-band img.fest-logo { object-fit: contain; }
.fest-initial { font: 900 2.2rem/1 var(--head); }
.fest-link .grow { display: grid; gap: 3px; min-width: 0; flex: 1; }
.fest-link b { color: var(--ink); font-size: 1.05rem; line-height: 1.25; }
.fest-link small { color: var(--muted); }
.fest-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.logo-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.logo-choice { position: relative; }
.logo-choice input { position: absolute; opacity: 0; }
.logo-choice > span { display: grid; place-items: center; min-width: 96px; height: 56px; padding: 8px 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--blue); font-weight: 700; font-size: .88rem; cursor: pointer; }
.lc-svg { height: 38px; width: auto; max-width: 110px; }
.logo-choice input:checked + span { box-shadow: inset 0 0 0 3px var(--blue); background: var(--blue-lt); }
.logo-choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.pv-fest { background: var(--fc, var(--blue)); color: #fff; padding: 20px 16px; }
.pv-fest .pv-title { font-size: 1.9rem; }
.pv-ed { font: 800 .85rem/1 var(--head); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 6px; opacity: .9; }
.pv-dates { font-weight: 700; margin: 8px 0 4px; }
.pv-tagline { margin: 0; opacity: .9; font-size: .92rem; }
.pv-person { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; }
.pv-face { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--blue); color: #fff; display: grid; place-items: center; font: 900 2rem/1 var(--head); }
.pv-face img { width: 100%; height: 100%; object-fit: cover; }
.pv-name { font: 800 1.5rem/1 var(--head); color: var(--ink); margin: 0 0 4px; }
.pv-mail { color: var(--blue); font-weight: 700; font-size: .9rem; margin: 4px 0 0; }

.search input[type=search] { padding-left: 40px; }
.swatches input[type=color] { width: 46px; height: 40px; padding: 2px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; }
@media (max-width: 640px) {
  .savebar { flex-wrap: nowrap; gap: 8px; padding: 8px 10px; }
  .savebar .grow { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .84rem; }
  .savebar .btn { min-height: 40px; padding: 0 14px; }
  .savebar .btn-danger { padding: 0 10px; }
  .week-nav h2 { flex-basis: 100%; }
}

/* ---------- Text editor ---------- */
.rte { border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; overflow: hidden; }
.rte:focus-within { border-color: var(--blue); outline: 3px solid rgba(255, 194, 14, .35); }
.rte-bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: #f7f8fb; border-bottom: 1px solid var(--line); }
.rte-bar button { display: inline-flex; align-items: center; gap: 6px; min-width: 38px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: 700 .88rem/1 var(--body); cursor: pointer; }
.rte-bar button:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.rte-bar button.on { background: var(--blue-lt); color: var(--blue); }
.rte-bar button b, .rte-bar button i { font-size: 1.05rem; }
.rte-bar .sep { width: 1px; margin: 6px 4px; background: var(--line-2); }
.rte-area { min-height: 180px; max-height: 60vh; overflow-y: auto; padding: 14px 16px; line-height: 1.6; color: var(--text); outline: none; }
.rte-area { position: relative; }
.rte-area.is-empty::before { content: attr(data-placeholder); color: #9aa3b2; position: absolute; left: 16px; top: 14px; pointer-events: none; }
.rte-area p { margin: 0 0 .8em; }
.rte-area h2, .rte-area h3 { font: 800 1.5rem/1.1 var(--head); text-transform: uppercase; margin: 1em 0 .4em; color: var(--ink); }
.rte-area ul, .rte-area ol { margin: 0 0 .8em; padding-left: 24px; }
.rte-area a { color: var(--blue); font-weight: 600; }
.rte-area figure { margin: 0 0 .8em; }
.rte-area img { max-width: 100%; max-height: 320px; border-radius: 8px; }
.rte-area .file-link, .prose-mini .file-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: var(--blue-lt); text-decoration: none; }
.rte-area .file-link::before { content: "PDF"; font: 800 .7rem/1 var(--body); background: #b42318; color: #fff; padding: 3px 5px; border-radius: 4px; }

/* ---------- Picker windows ---------- */
.media-dlg { width: min(760px, calc(100% - 20px)); max-height: calc(100vh - 40px); }
.media-dlg.small { width: min(480px, calc(100% - 20px)); }
.media-dlg[open] { display: flex; flex-direction: column; }
.media-dlg form { display: contents; }
.md-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; }
.md-head h2 { font-size: 1.5rem; }
.md-head .dlg-close { margin-left: auto; }
.md-body { padding: 10px 18px; overflow-y: auto; display: grid; gap: 10px; }
.md-or { margin: 4px 0 0; font-weight: 700; color: var(--muted); font-size: .9rem; }
.md-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.md-item { display: grid; gap: 4px; padding: 6px; border: 0; border-radius: 10px; background: var(--bg); cursor: pointer; text-align: left; font: inherit; font-size: .8rem; color: var(--ink); }
.md-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: #fff; }
.md-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-item.doc { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px; grid-column: 1 / -1; }
.md-item.doc b { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; }
.md-item.doc small { color: var(--muted); }
.md-item[aria-selected="true"] { box-shadow: 0 0 0 3px var(--blue); background: var(--blue-lt); }
.md-foot { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px 18px 18px; border-top: 1px solid var(--line); }
.md-foot .md-alt { flex: 1 1 260px; }
.md-foot .actions { margin-left: auto; }

/* ---------- Files & pictures ---------- */
.big-drop { justify-content: center; padding: 28px 16px; margin-bottom: 16px; background: #fff; }
.doc-ico { flex: none; display: grid; place-items: center; width: 44px; height: 52px; border-radius: 6px; background: #5b6474; color: #fff; font: 800 .72rem/1 var(--body); letter-spacing: .04em; position: relative; }
.doc-ico::after { content: ""; position: absolute; right: 0; top: 0; border: 7px solid; border-color: var(--bg) var(--bg) rgba(0, 0, 0, .25) rgba(0, 0, 0, .25); }
.doc-pdf { background: #b42318; } .doc-docx { background: #2b579a; } .doc-xlsx { background: #217346; } .doc-pptx { background: #c43e1c; }
.lib .rename { border-color: transparent; background: transparent; font-weight: 700; padding: 4px 8px; margin-left: -8px; min-height: 36px; }
.lib .rename:hover { border-color: var(--line-2); background: #fff; }
.lib .used { color: var(--ok); }
.lib-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pic-grid figure { margin: 0; display: grid; gap: 6px; }
.pic-grid .pic { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg) repeating-conic-gradient(#e7eaf0 0 25%, #f4f6f9 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; }
.pic-grid img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pic-grid figcaption { display: grid; gap: 2px; font-size: .82rem; }
.pic-grid b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.pic-grid small { color: var(--muted); }
.linkish.danger { color: var(--bad); }

/* ---------- Team & access ---------- */
.pill.acc-admin { background: #fde7c2; color: #7a4d00; }
.pill.acc-editor { background: var(--blue-lt); color: var(--blue); }
.pill.acc-writer { background: #e6f6ee; color: #146c3b; }
.levels { display: grid; gap: 10px; margin-bottom: 16px; }
@media (min-width: 900px) { .levels { grid-template-columns: repeat(3, 1fr); } }
.level { background: var(--card); border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 0 var(--line); }
.level p { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }
.sect-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.sect-chips span { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--text); }
.sect-chips .none { color: var(--warn); background: var(--warn-lt); }
.rows li.inactive { opacity: .6; }
.access-cards { display: grid; gap: 8px; }
@media (min-width: 760px) { .access-cards { grid-template-columns: repeat(3, 1fr); } }
.access-card { position: relative; cursor: pointer; }
.access-card input { position: absolute; opacity: 0; }
.access-card > span { display: grid; gap: 4px; height: 100%; padding: 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.access-card b { font: 800 1.3rem/1 var(--head); text-transform: uppercase; color: var(--ink); }
.access-card small { color: var(--muted); font-size: .86rem; }
.access-card input:checked + span { box-shadow: inset 0 0 0 3px var(--blue); background: var(--blue-lt); }
.access-card input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.access-cards[disabled] .access-card { cursor: not-allowed; opacity: .75; }
.sections-pick .admin-note, .sections-pick .writer-note { display: none; margin: 0 0 6px; }
.sections-pick.is-admin .admin-note, .sections-pick.is-writer .writer-note { display: block; }
.chk.dim { opacity: .4; }
.pw-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 10px; }
.pw-row .fld { flex: 1 1 260px; }
.pw-row .btn { margin-top: 28px; }
a.me { color: inherit; text-decoration: none; border-radius: 10px; padding: 8px; }
a.me:hover, a.me[aria-current="page"] { background: rgba(255, 255, 255, .08); }
.row3 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.list-h { font-size: 1.35rem; margin: 22px 0 10px; color: var(--muted); }
.fam-list { display: grid; gap: 10px; }
.fam { padding: 0; overflow: hidden; }
.fam > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; cursor: pointer; }
.fam > summary::-webkit-details-marker { display: none; }
.fam > summary::after { content: ""; width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(-45deg); margin: 0 4px 0 6px; transition: transform .15s; flex: none; }
.fam[open] > summary::after { transform: rotate(45deg); }
.fam > summary .grow { display: grid; gap: 2px; flex: 1; min-width: 0; }
.fam > summary b { color: var(--ink); font-size: 1.05rem; line-height: 1.25; }
.fam > summary small { color: var(--muted); }
.fam > .fest-list { padding: 0 12px 12px; gap: 8px; }
.fam .fest-card { box-shadow: none; background: var(--bg); }
.fest-band.small { width: 64px; height: 50px; }
.fest-band.has-poster { padding: 0; width: 56px; height: 76px; overflow: hidden; background: var(--fc); }
.fest-band.has-poster img { width: 100%; height: 100%; object-fit: cover; }
.fam .fest-band.has-poster { width: 44px; height: 60px; }
.fam .fest-link { padding: 8px 12px 8px 8px; }
.search input { padding-left: 40px !important; }

.mq-card { margin-bottom: 18px; border-left: 6px solid #f5a300; }
.mq-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-top: 10px; }
.mq-form .fld { flex: 1 1 320px; margin: 0; }

/* Website pages */
.page-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.page-card { display: grid; grid-template-rows: 1fr auto; gap: 12px; padding: 0; overflow: hidden; }
.page-grid > .card { margin-top: 0; }
.page-card-main { display: grid; align-content: start; color: inherit; text-decoration: none; }
.page-thumb { display: block; aspect-ratio: 16 / 7; background: var(--bg); overflow: hidden; }
.page-thumb img { width: 100%; height: 100%; object-fit: cover; }
.page-thumb.none { display: grid; place-items: center; color: var(--muted); }
.page-thumb.none .ic { width: 34px; height: 34px; }
.page-card-text { display: grid; gap: 4px; padding: 14px 16px 0; }
.page-card-text b { font-size: 1.15rem; }
.page-card-text span { color: var(--muted); font-size: .92rem; }
.page-card-text small { color: var(--muted); font-size: .8rem; }
.page-card-main:hover b { color: var(--blue); text-decoration: underline; }
.page-card-tools { display: flex; gap: 8px; padding: 0 16px 16px; }
.rows-fld h3 { font-size: 1.05rem; margin: 0 0 4px; }
.rows-fld > .muted { margin: 0 0 8px; }
.fld-colour input[type=color] { width: 64px; height: 42px; padding: 2px; border-radius: 8px; }
.tip-card ul { margin: 6px 0 12px; padding-left: 18px; display: grid; gap: 6px; font-size: .92rem; }
.tip-card code { font-size: .82rem; background: var(--bg); padding: 1px 5px; border-radius: 4px; }
.page-editor .rep-row .drop { padding: 10px; }
@media (max-width: 559px) {
  .rep-row { grid-template-columns: minmax(0, 1fr); }
  .rep-row .tools { grid-row: 1; justify-self: end; margin: -4px -4px -6px 0; }
  .rows.lib > li { flex-wrap: wrap; }
  .rows.lib > li > .grow { flex: 1 1 calc(100% - 60px); min-width: 0; }
  .rows.lib .rename { width: 100%; }
  .rows.lib .lib-tools { margin-left: 56px; }
}
/* Festival winners */
.podium-places { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
.pp { display: grid; gap: 8px; align-content: start; padding: 10px 12px 12px; border-radius: 10px; background: var(--card); border-top: 5px solid var(--pc); }
.pp-1 { --pc: #f5a300; } .pp-2 { --pc: #b9c2cc; } .pp-3 { --pc: #c47a3d; }
.pp-place { font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Site additions ---------- */
.side-brand .brand { color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { width: 40px; height: 26px; overflow: visible; }
.bm-trail { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 8.5; }
.bm-head { fill: var(--flame); }
.brand-word { display: grid; line-height: .82; }
.brand-word b { font-style: italic; font-weight: 900; font-stretch: 62%; font-size: 1.6rem; text-transform: uppercase; }
.brand-word small { font-size: .52rem; font-weight: 700; letter-spacing: .43em; text-transform: uppercase; color: var(--gold); padding-left: 2px; margin-top: 3px; }
.login-brand .brand { color: var(--ink); }
.login-brand .brand-word small { color: var(--flame-dk); }
.login-brand .brand-word b { font-size: 2.2rem; }
.login-brand .brand-mark { width: 54px; height: 34px; }
.count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--flame); color: #fff; font-size: .75rem; font-weight: 800; display: inline-grid; place-items: center; }
.tabbar a { position: relative; }
.tabbar .count { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; font-size: .68rem; }
.tile.hot { box-shadow: inset 0 0 0 2px var(--flame), 0 1px 0 var(--line); }
.tile.hot b { color: var(--flame-dk); }
.list-h { font-size: 1.3rem; margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.pill.acc-owner { background: var(--ink); color: var(--gold); }
.pill.acc-manager { background: #fff4cc; color: #6b4a00; }
.pill.acc-dispatch { background: #e0ecff; color: #1d4ed8; }
.pill.acc-driver { background: #ffe6d5; color: var(--flame-dk); }
.info-line.warn { background: var(--warn-lt); }
.info-line.warn .ic { color: var(--warn); }

/* Quote inbox */
.segs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.segs a { flex: none; display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); text-decoration: none; font-weight: 700; color: var(--ink); }
.segs a span { color: var(--muted); font-weight: 600; }
.segs a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; }
.segs a[aria-current="page"] span { color: var(--gold); }
.qrows > li { align-items: flex-start; }
.qrows .unread b { position: relative; }
.qrows .unread .q-ic { background: var(--flame); color: #fff; }
.q-ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--muted); }
.q-route { display: flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink) !important; }
.q-route .ic { width: 1em; height: 1em; color: var(--flame); }
.q-side { display: grid; justify-items: end; gap: 4px; text-align: right; }
.q-side small { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 0; }
.facts dt { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.facts .wide { grid-column: 1 / -1; }
.q-map { margin-top: 14px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.seg-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-pick label { position: relative; cursor: pointer; }
.seg-pick input { position: absolute; opacity: 0; }
.seg-pick .pill { font-size: .88rem; padding: 6px 12px; box-shadow: inset 0 0 0 1.5px transparent; }
.seg-pick input:checked + .pill { box-shadow: inset 0 0 0 2px var(--ink); }
.seg-pick input:focus-visible + .pill { outline: 3px solid var(--gold); outline-offset: 2px; }
.log { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Search preview */
.seo { display: grid; gap: 14px; }
.serp { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-family: Arial, sans-serif; }
.serp-url { font-size: .8rem; color: #4d5156; }
.serp-t { color: #1a0dab; font-size: 1.15rem; line-height: 1.3; }
.serp-d { color: #4d5156; font-size: .88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meter { font-weight: 700; }
.meter.good { color: var(--ok); }
.meter.short { color: var(--warn); }
.meter.over { color: var(--bad); }

/* Maps in the admin */
.map { display: block; width: 100%; height: auto; font-family: var(--body); --sea: #dfe6ec; --land: #fff; --land2: #f7f4ec; --other: #ebe7dd; --edge: #b8b2a4; --route: #d4cdbf; --dot: var(--ink); --lbl: #323843; --halo: #fff; }
.m-sea { fill: var(--sea); } .m-bc { fill: var(--land); stroke: var(--edge); stroke-width: 1; vector-effect: non-scaling-stroke; } .m-ab { fill: var(--land2); stroke: var(--edge); stroke-width: 1; vector-effect: non-scaling-stroke; } .m-other { fill: var(--other); stroke: var(--edge); stroke-width: .6; vector-effect: non-scaling-stroke; }
.m-lbl { font-weight: 800; letter-spacing: .3em; fill: var(--lbl); opacity: .3; text-anchor: middle; font-size: 15px; } .m-lbl-big { font-size: 19px; } .m-lbl-sea { font-style: italic; letter-spacing: .1em; } .m-lbl-edge { font-size: 11px; }
.m-route { fill: none; stroke: var(--route); stroke-width: 1.3; vector-effect: non-scaling-stroke; } .m-route.on { stroke: var(--flame); stroke-width: 3; }
.m-arc { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-dasharray: 2 6; stroke-linecap: round; }
.m-dot { fill: var(--dot); stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; } .m-hit { fill: transparent; } .m-town.on .m-dot { fill: var(--flame); }
.m-tl { fill: var(--lbl); font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; } .m-tl-hide { display: none; } .m-dim .m-dot { opacity: .35; }
.m-home-dot { fill: var(--gold); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; } .m-home-ring { fill: none; stroke: var(--flame); stroke-width: 2; vector-effect: non-scaling-stroke; } .m-tl-home { fill: var(--ink); font-weight: 900; text-transform: uppercase; }
.area-map { padding: 8px; overflow: hidden; }
.area-map .map { border-radius: 8px; max-height: 420px; }
.pin-map { position: relative; border-radius: 12px; overflow: hidden; border: 1.5px solid var(--line-2); cursor: crosshair; }
.pin-map .m-town { pointer-events: none; }
.pin-mark .pm-ring { fill: rgba(255, 106, 19, .2); stroke: var(--flame); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pin-mark .pm-dot { fill: var(--flame); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.pin-zoom { position: absolute; right: 8px; top: 8px; display: grid; gap: 4px; }
.pin-zoom .icon-btn { background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); color: var(--ink); }

/* Gallery manager */
.drop.bulk { min-height: 150px; justify-content: center; margin-bottom: 8px; background: #fff; }
.ggrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.gcard { background: var(--card); border-radius: var(--r); box-shadow: 0 1px 0 var(--line), 0 1px 3px rgba(17, 24, 39, .05); overflow: hidden; display: flex; flex-direction: column; }
.gcard.pending { box-shadow: inset 0 0 0 2px var(--gold); }
.gimg { position: relative; aspect-ratio: 4 / 3; background: var(--bg); }
.gimg img { width: 100%; height: 100%; object-fit: cover; }
.star { position: absolute; top: 8px; left: 8px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; }
.star .ic { fill: var(--ink); stroke: var(--ink); width: 1em; height: 1em; }
.gbody { padding: 14px; display: grid; gap: 10px; flex: 1; align-content: start; }
.tagpick .chk span { padding: 5px 10px; font-size: .82rem; }
.gtools { display: flex; gap: 4px; align-items: center; margin-top: auto; }
.gtools .del { margin-left: auto; }
.sections-pick .help[hidden] { display: none; }
.chk.dim { opacity: .45; }
.order-btns { display: flex; gap: 2px; }
.side .brand-word b { font-size: 1.38rem; }
.side .brand-mark { width: 34px; height: 22px; }
.side-brand > span:not(.brand) { font-size: .82rem !important; padding-left: 8px !important; }
@media (min-width: 700px) { .access-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.brand-img { display: block; width: auto; }
.side-logo.brand-img { height: 46px; }
.login-logo.brand-img { height: 92px; margin: 0 auto; }
.logo-drop .drop-prev { background-color: #0f1217; }
.logo-drop .drop-prev img { object-fit: contain; background: transparent; }
/* Job photos in the town editor */
.town-drop { min-height: 130px; margin: 6px 0 14px; }
.jgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.jcard { display: grid; gap: 10px; align-content: start; background: var(--bg); border-radius: 12px; padding: 10px; }
.jcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.jfoot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; font-size: .88rem; }
.jfoot .linkish { color: var(--bad); font-size: .88rem; }
.jempty { margin: 10px 0 0; }

.concept-bar { display: flex; flex-wrap: wrap; gap: 2px 10px; justify-content: center; margin: 0 0 16px; padding: 7px 14px; border-radius: 8px; background: #ff6a13; color: #0f1217; font-size: .84rem; font-weight: 700; text-align: center; text-decoration: none; }
.concept-bar span { text-decoration: underline; }
