:root {
  /* Allen Artist Agency brand (from allenartistagency.com) */
  --bg: #e8f1fa;         /* light sky */
  --card: #ffffff;
  --ink: #0f2a4a;        /* navy text */
  --muted: #5b6b80;
  --line: #d5e2f0;
  --brand: #0f2a4a;      /* navy */
  --blue: #1f5f9e;
  --accent: #c9a24a;     /* gold */
  --ok: #2f855a;
  --ok-bg: #e3f4e9;
  --no: #b54141;
  --no-bg: #f9e3e3;
  --book: #1f5f9e;
  --book-bg: #dce9f7;
  --away: #7c5cb5;
  --away-bg: #ece6f7;
  --radius: 12px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
a { color: var(--brand); }
h1 { font-size: 1.6rem; margin: 0 0 .25rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* top bar */
.topbar { display: flex; align-items: center; gap: 1.5rem; padding: .6rem 1.5rem; background: linear-gradient(90deg, var(--brand), var(--blue)); color: #fff; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; }
.brand small { display: block; font-size: .75rem; opacity: .75; }
.brand-logo { height: 44px; width: auto; background: #fff; border-radius: 8px; padding: 3px 6px; display: block; }
.nav { display: flex; gap: .25rem; flex: 1; flex-wrap: wrap; }
.nav a { color: #dbe7ec; text-decoration: none; padding: .45rem .8rem; border-radius: 8px; }
.nav a:hover { background: rgba(255,255,255,.08); }
.nav a.on { background: rgba(255,255,255,.16); color: #fff; }
.me { display: flex; align-items: center; gap: .75rem; }
.me a { color: #c8d7de; }
.pill { background: var(--accent); color: var(--brand); border-radius: 999px; padding: 0 .45rem; font-size: .75rem; font-weight: 700; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 2rem 1rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }

.stat { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .85rem; }

/* forms */
label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .3rem; }
.hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #9ec5d3; border-color: transparent; }
.field { margin-bottom: 1rem; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .35rem .75rem; }
.checks label { font-weight: 400; display: flex; gap: .45rem; align-items: center; margin: 0; }
.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; padding: .6rem 1.1rem; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.12); }
.btn.accent { background: var(--accent); color: var(--brand); }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn.danger { background: var(--no); }
.btn.sm { padding: .35rem .7rem; font-size: .85rem; }
button.link { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

.flash { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.error { background: var(--no-bg); color: var(--no); }

/* auth pages */
.auth { max-width: 420px; margin: 3rem auto; }
.auth h1 { text-align: center; }
.auth .sub { text-align: center; color: var(--muted); margin-bottom: 1.5rem; }

/* tags */
.tag { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; background: #efece6; color: #4b5563; margin: 0 .25rem .25rem 0; }
.tag.available { background: var(--ok-bg); color: var(--ok); }
.tag.unavailable { background: var(--no-bg); color: var(--no); }
.tag.booked { background: var(--book-bg); color: var(--book); }
.tag.open { background: #fdecdf; color: #b4541b; }
.tag.resolved { background: var(--ok-bg); color: var(--ok); }
.tag.urgent { background: var(--no); color: #fff; }

/* progress */
.bar { height: 8px; background: #ece7df; border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }

/* tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

/* avatar */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #dfe8ec; display: inline-grid; place-items: center; font-weight: 700; color: var(--brand); flex: none; }
.avatar.lg { width: 110px; height: 110px; font-size: 2rem; }

/* calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; gap: .5rem; flex-wrap: wrap; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { min-width: 0; }
.cal .dow { font-size: .75rem; color: var(--muted); text-align: center; font-weight: 600; text-transform: uppercase; }
.day { min-height: 74px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: .35rem .45rem; text-align: left; font: inherit; color: inherit; position: relative; display: flex; flex-direction: column; }
button.day { cursor: pointer; }
button.day:hover { border-color: #9ec5d3; }
.day .num { font-weight: 700; font-size: .9rem; }
.day .lbl { font-size: .72rem; margin-top: auto; }
.day .note { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day.other { opacity: .35; }
.day.past { background: #f3f1ec; color: #a3a3a3; cursor: default; }
.day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.day.available { background: var(--ok-bg); border-color: #b9dfc6; }
.day.unavailable { background: var(--no-bg); border-color: #efc4c4; }
.day.booked { background: var(--book-bg); border-color: #bcd3ef; }
.day.selected { outline: 3px solid var(--brand); outline-offset: -1px; }
a.day { text-decoration: none; }
.counts { font-size: .72rem; margin-top: auto; line-height: 1.3; }
.counts b { color: var(--ok); }

.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.mode { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.mode button { border: 0; background: none; padding: .5rem .85rem; font: inherit; cursor: pointer; display: flex; align-items: center; gap: .4rem; }
.mode button.on { background: var(--brand); color: #fff; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.available { background: var(--ok); } .dot.unavailable { background: var(--no); } .dot.booked { background: var(--book); } .dot.clear { background: #d1d5db; }
.legend { display: flex; gap: 1rem; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.legend span { display: flex; gap: .35rem; align-items: center; }

.report { border-left: 4px solid var(--line); }
.report.urgent { border-left-color: var(--no); }
.reply { background: #f4f8fa; border-radius: 8px; padding: .75rem; margin-top: .75rem; }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 1.4rem; letter-spacing: .12em; background: #f3efe8; padding: .35rem .75rem; border-radius: 8px; display: inline-block; }

@media (max-width: 640px) {
  .wrap { padding: 1rem; }
  .day { min-height: 54px; padding: .25rem; }
  .day .note, .day .lbl { display: none; }
  .topbar { gap: .75rem; }
}
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.gallery .ph { position: relative; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.gallery .ph .btn { position: absolute; bottom: 6px; right: 6px; }
a.gallery-link img:hover { filter: brightness(.9); }
dl.facts { display: grid; grid-template-columns: 170px 1fr; gap: .4rem 1rem; margin: 0; }
dl.facts dt { color: var(--muted); font-size: .85rem; }
dl.facts dd { margin: 0; white-space: pre-line; }
.cell-names { font-size: .7rem; line-height: 1.25; margin-top: .2rem; }
.cell-names div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-names .more { color: var(--muted); }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: end; }
.filters select { width: auto; min-width: 150px; }
.cal-layout { grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr); align-items: start; }
@media (max-width: 860px) { .cal-layout { grid-template-columns: 1fr; } .cell-names { display: none; } }
@media (max-width: 640px) {
  .topbar { padding: .6rem 1rem; gap: .5rem; }
  .brand { flex: 1; }
  .me { order: 2; }
  .me a { display: none; }
  .nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; gap: .15rem; }
  .nav a { white-space: nowrap; padding: .4rem .65rem; font-size: .9rem; }
  .grid.g3 { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .grid.g3 .card { padding: .75rem; }
  .stat { font-size: 1.5rem; }
  .stat-label { font-size: .75rem; }
  .page-head .btn { width: 100%; text-align: center; }
}
@media (max-width: 640px) {
  .mode { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
  .mode button { justify-content: center; padding: .55rem .5rem; }
  #note { max-width: none !important; }
}

/* time off / away */
.tag.away { background: var(--away-bg); color: var(--away); }
.day.away { background: var(--away-bg); border-color: #d3c6ec; }
.dot.away { background: var(--away); }
.tag.has_gig, .tag.confirmed, .tag.offered { background: var(--book-bg); color: var(--book); }
.tag.unknown { background: #eef2f6; color: var(--muted); }
.tag.partial { background: #fdf3d8; color: #8a6200; }
.tag.outside { background: #eef2f6; color: var(--muted); }
.tag.inquiry { background: #fdf3dc; color: #8a6a14; }
.tag.quoted { background: #fdecdf; color: #b4541b; }
.tag.played { background: #e6eef8; color: var(--brand); }
.tag.paid { background: var(--ok-bg); color: var(--ok); }
.tag.cancelled { background: #eee; color: #777; text-decoration: line-through; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.tight { background: #fdf3dc; color: #8a6a14; }
.tag.no { background: var(--no-bg); color: var(--no); }

/* pipeline tabs */
.tabs { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a { padding: .4rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: .88rem; color: var(--ink); }
.tabs a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.tabs a .n { opacity: .7; margin-left: .25rem; }
.next { background: #fff8e6; border: 1px solid #f0dca8; border-radius: 10px; padding: .6rem .8rem; font-size: .9rem; }
.price-box { background: #f4f8fc; border-radius: 10px; padding: .75rem 1rem; }
.price-box .row { justify-content: space-between; }
.price-box .total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: .4rem; margin-top: .3rem; }
.cand { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .4rem; border-bottom: 1px solid var(--line); }
.cand:last-child { border-bottom: 0; }
.cand input[type=radio] { margin-top: .3rem; }
.cand.dim { opacity: .55; }
.timeline { list-style: none; padding: 0; margin: .4rem 0 0; font-size: .82rem; }
.timeline li { display: flex; gap: .6rem; padding: .1rem 0; }
.timeline li b { min-width: 68px; font-weight: 600; color: var(--muted); }
.checklist label { display: flex; gap: .5rem; align-items: center; font-weight: 400; margin: .3rem 0; }
.inline { display: inline; }
.events { font-size: .82rem; max-height: 320px; overflow: auto; }
.events div { padding: .25rem 0; border-bottom: 1px dashed var(--line); }
.secret-note { font-size: .78rem; color: var(--ok); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.detail-layout { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 860px) { .detail-layout { grid-template-columns: 1fr; } }
.grid > * { min-width: 0; }
select { max-width: 100%; text-overflow: ellipsis; }

/* ---- availability: time windows ---- */
.mini { position: relative; display: block; height: 7px; margin-top: auto; border-radius: 3px; background: rgba(0,0,0,.06); overflow: hidden; }
.mini i { position: absolute; top: 0; bottom: 0; background: var(--ok); border-radius: 3px; }
.day.past .mini i { background: #b9b9b9; }
body.sheet-open { overflow: hidden; }
.sheet-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 50; display: flex; align-items: center; justify-content: center; }
.sheet-back[hidden] { display: none; }
.sheet { position: relative; background: #fff; width: min(440px, 100%); height: min(92vh, 780px); border-radius: 16px; padding: 1rem 1rem .75rem; display: flex; flex-direction: column; gap: .5rem; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.sheet-note { background: var(--book-bg); color: var(--book); border-radius: 8px; padding: .4rem .6rem; }
#sheet-hint.warn { color: var(--no); font-weight: 600; }
.ok-text { color: var(--ok); font-weight: 600; }
.sheet-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding-top: .25rem; }
.tl { flex: 1; min-height: 300px; display: flex; gap: .4rem; padding: .5rem 0; }
.tl-hours { position: relative; width: 2.4rem; flex: none; font-size: .68rem; color: var(--muted); }
.tl-hours span { position: absolute; right: 0; transform: translateY(-50%); }
.tl-track { position: relative; flex: 1; border: 1px solid var(--line); border-radius: 10px; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; background: #fafaf8; }
.tl-track .ln { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid #d5dbe3; pointer-events: none; }
.tl-track .ln.half { border-top: 1px dashed #ebe8e1; }
.win { position: absolute; left: 4px; right: 4px; background: var(--ok-bg); border: 2px solid var(--ok); border-radius: 8px; z-index: 1; cursor: grab;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center; overflow: hidden; min-height: 10px; }
.win.active { box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: grabbing; }
.win .grip { width: 28px; height: 4px; border-radius: 2px; background: var(--ok); opacity: .55; margin: 3px 0; flex: none; }
.win .wlbl { font-size: .8rem; font-weight: 700; color: var(--ok); pointer-events: none; white-space: nowrap; }
.win .wdel { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; color: var(--no);
  font-size: 1.1rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
@media (max-width: 600px) {
  .sheet-back { align-items: stretch; }
  .sheet { width: 100%; height: 100%; height: 100dvh; border-radius: 0; padding: .9rem .9rem calc(.75rem + env(safe-area-inset-bottom)); }
}

.win.weekly { background: #e4f0ea; border-style: dashed; }
.win .rep { font-weight: 600; font-size: .7rem; opacity: .8; }
.win.dim { opacity: .35; }
.win.editing { border-color: var(--accent); background: #fff6df; box-shadow: 0 4px 14px rgba(0,0,0,.18); z-index: 2; cursor: grab; }
.win.editing .wlbl, .win.editing .grip { color: #7a5600; background-color: transparent; }
.win.editing .grip { background: #c9962b; opacity: .8; width: 40px; height: 5px; margin: 5px 0; }
.win:not(.editing) { cursor: pointer; justify-content: center; }
.wlist { display: flex; flex-direction: column; gap: .35rem; }
.wlist[hidden] { display: none; }
.wrow { border: 1px solid var(--line); border-radius: 10px; padding: .4rem .6rem; }
.wrow-time { border: 0; background: none; padding: .15rem 0; font: inherit; font-weight: 700; color: var(--ok); cursor: pointer; text-align: left; width: 100%; }
.wcheck { display: flex; align-items: center; gap: .45rem; font-weight: 400; font-size: .85rem; margin: .15rem 0 0; }
.wcheck input { width: 20px; height: 20px; margin: 0; }
.editbar { display: flex; justify-content: flex-end; gap: .5rem; }
.editbar[hidden] { display: none; }
.menu-back { position: absolute; inset: 0; background: rgba(15, 23, 42, .35); display: flex; align-items: flex-end; border-radius: inherit; z-index: 5; }
.menu-back[hidden] { display: none; }
.menu { background: #fff; width: 100%; border-radius: 16px 16px 0 0; padding: 1rem; box-shadow: 0 -8px 30px rgba(0,0,0,.2); }
.menu-title { font-weight: 700; font-size: 1.05rem; }
.menu-btns { display: flex; flex-direction: column; gap: .45rem; margin-top: .75rem; }
.menu-btns .btn { width: 100%; justify-content: center; padding: .7rem; }
.btn.danger { background: var(--no-bg); color: var(--no); border-color: #efc4c4; }

/* ---- multi-artist offers ---- */
.cand-box { max-height: 460px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 0 .5rem; margin-bottom: .6rem; }
.cand-group { position: sticky; top: 0; background: #fff; padding: .45rem 0 .3rem; font-weight: 700; font-size: .85rem; border-bottom: 1px solid var(--line); z-index: 1; }
.offer-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .6rem; }
.offer-row { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; }
.tag.offer-sent { background: var(--book-bg); color: var(--book); }
.tag.offer-accepted { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
.tag.offer-booked { background: var(--ok); color: #fff; }
.tag.offer-passed, .tag.offer-withdrawn, .tag.offer-filled { background: #eef2f6; color: var(--muted); }
.tag.draft { background: #fdf3d8; color: #8a6200; }
.warn-text { color: #8a6200; }
.mode-pick { border: 1px solid var(--line); border-radius: 10px; padding: .4rem .7rem .55rem; margin: .4rem 0 0; }
.mode-pick label { font-weight: 400; display: flex; gap: .45rem; align-items: center; margin: .2rem 0; }
.draft-card { background: #fffaf0; border-color: #f0dca8; }
.offer-chips { display: flex; flex-wrap: wrap; gap: .2rem; margin-top: .2rem; }
.tabs .n.badge { background: var(--no); color: #fff; }

.tag.sound { background: #e6f0fa; color: var(--book); margin-top: .2rem; }

/* per-window settings: sound + areas they won't play */
.nogo-box { margin-top: .25rem; }
.nogo-box summary { cursor: pointer; padding: .2rem 0; }
.win .rep.nogo { display: block; font-size: .68rem; }
@media (max-width: 600px) {
  .sheet { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .tl { flex: none; height: max(320px, 58vh); }
}

/* main photo crop tool */
.crop-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .6); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.crop-back[hidden] { display: none; }
.crop-box { background: #fff; border-radius: 16px; padding: 1rem; width: min(460px, 100%); display: flex; flex-direction: column; gap: .6rem; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.crop-stage { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #111; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-mask { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 100vmax rgba(0,0,0,.55); outline: 2px solid rgba(255,255,255,.85); pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.crop-zoom input { flex: 1; }
@media (max-width: 600px) {
  .crop-back { padding: 0; align-items: stretch; }
  .crop-box { width: 100%; height: 100%; height: 100dvh; border-radius: 0; justify-content: center; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
}
.wcheck input { flex: none; }
.wcheck { align-items: flex-start; } .wcheck input { margin-top: .1rem; }

/* availability: green dot handles + save bar */
.win { touch-action: pan-y; }
.win .handle { position: absolute; left: 50%; width: 36px; height: 36px; margin-left: -18px; border: 0; padding: 0; background: transparent; cursor: grab; touch-action: none; z-index: 3; }
.win .handle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px #fff, 0 1px 4px rgba(0,0,0,.3); }
.win .handle.mid { top: 50%; margin-top: -18px; }
.win .handle.top { top: -18px; }
.win .handle.bot { bottom: -18px; }
.win.editing { overflow: visible; }
.win .wlbl { position: relative; z-index: 1; }
.win:not(.editing) .wlbl { margin-bottom: 1.6rem; }
.confirmbar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: .5rem; background: #fff8e6; border: 1px solid #f0dca8; border-radius: 10px; padding: .5rem .7rem; z-index: 4; }
.confirmbar[hidden] { display: none; }
.win { overflow: visible; }
.news-item { padding: .55rem 0; border-bottom: 1px solid var(--line); } .news-item:last-child { border-bottom: 0; }

/* gallery editing */
.gallery-edit .ph { display: flex; flex-direction: column; gap: .35rem; border: 1px solid var(--line); border-radius: 12px; padding: .4rem; background: #fff; }
.gallery-edit .ph .btn { position: static; }
.gallery-edit .ph.dragging { opacity: .6; outline: 2px dashed var(--accent); }
.ph-img { position: relative; }
.ph-handle { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(255,255,255,.92); font-size: 1.3rem; line-height: 1; cursor: grab; touch-action: none; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.switch { display: flex; align-items: center; gap: .4rem; font-weight: 600; margin: 0; }
.switch input { width: 20px; height: 20px; accent-color: var(--ok); }
.win:not(.editing) { justify-content: flex-start; }
.win:not(.editing) .wlbl { margin: 3px 0 0; }
.win .wlbl { font-size: .74rem; }

/* venues */
a.venue-card { text-decoration: none; color: inherit; display: block; }
a.venue-card:hover { border-color: #9ec5d3; }
.issue-alert { background: #fff6e5; border-color: #f0d49a; margin-bottom: 1rem; }
.sop { margin-bottom: 1rem; }
.sop-list { margin: .6rem 0 0; }
.sop-list dt { font-weight: 700; margin-top: .6rem; }
.sop-list dd { margin: .15rem 0 0; white-space: pre-line; }
.staff-row { display: flex; justify-content: space-between; gap: .6rem; padding: .45rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.staff-form { display: grid; gap: .4rem; margin-top: .4rem; max-width: 460px; }
.post-form { display: grid; gap: .4rem; margin: .6rem 0 .4rem; }
.post-form .btn { justify-self: start; }
.feed-item { padding: .55rem 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
#updates, #issues { margin-bottom: 1rem; }

/* availability handles v2: dots on the top/bottom edges resize, ↕ in the middle moves */
.win { justify-content: flex-start !important; }
.win .wlbl { align-self: flex-start; margin: 4px 0 0 10px !important; text-align: left; }
.win .handle.top { top: -18px; bottom: auto; }
.win .handle.bot { bottom: -18px; top: auto; }
.win .handle.move { top: 50%; margin-top: -18px; }
.win .handle.move::after { content: none; }
.win .handle.move { color: var(--ok); font-size: 1rem; font-weight: 700; line-height: 36px; }
.win .handle.move::before { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: #fff; border: 2px solid var(--ok); box-shadow: 0 1px 4px rgba(0,0,0,.25); z-index: -1; }
.win .handle.move.side { left: auto; right: 4px; margin-left: 0; }
