/* Admin portal styles */
:root {
  --bg: #08182f;
  --bg-2: #0c2444;
  --panel: #0f2a4d;
  --panel-2: #123259;
  --line: rgba(255, 255, 255, .13);
  --text: #eef5fd;
  --muted: #a2b6cd;
  --blue: #1f6fd0;
  --sky: #5cc0f5;
  --orange: #ff7a1a;
  --amber: #ffab2e;
  --green: #3ddc97;
  --red: #ff7b7b;
  --grey: #7f8ea3;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter Variable', 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.adm { color-scheme: dark; margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--body); }
body.adm h1, body.adm h2, body.adm h3, body.adm h4 { font-family: var(--head); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; margin: 0; }
body.adm p { margin: 0; }
body.adm button, body.adm input, body.adm select, body.adm textarea { font: inherit; color: inherit; }
body.adm a { color: var(--sky); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: 12px; border: 2px solid var(--line); background: transparent; color: var(--text); font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, var(--orange), var(--amber)); border-color: transparent; color: #1a0b00; font-weight: 700; }
.btn.primary:hover { filter: brightness(1.06); background: linear-gradient(135deg, var(--orange), var(--amber)); }
.btn.danger { color: var(--red); border-color: rgba(255, 123, 123, .4); }
.btn.danger:hover { background: rgba(255, 123, 123, .12); }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
.btn.icon { width: 42px; padding: 0; }
.btn.sm.icon { width: 36px; }
.btn.ghost { border-color: transparent; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* Forms */
.field { display: grid; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea, .inp { width: 100%; padding: 11px 13px; border-radius: 11px; border: 2px solid var(--line); background: rgba(8, 24, 47, .75); color: var(--text); font-size: 1rem; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 122, 26, .2); }
.field select option { background: var(--bg-2); }
.field textarea { min-height: 84px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: .95rem; color: var(--text); }
.check input { width: 20px; height: 20px; accent-color: var(--orange); margin: 0; }
.msg { min-height: 1.3em; font-size: .9rem; color: var(--red); }
.msg.ok { color: var(--green); }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(800px circle at 80% 0%, rgba(31, 111, 208, .3), transparent 60%), radial-gradient(700px circle at 0% 100%, rgba(255, 122, 26, .16), transparent 55%), var(--bg); }
.login-card { width: min(100%, 400px); padding: 30px 26px; border-radius: 24px; border: 2px solid var(--line); background: var(--panel); display: grid; gap: 16px; }
.login-card .logo { justify-self: center; }
.login-card h1 { font-size: 2.2rem; text-align: center; }
.login-card .sub { text-align: center; color: var(--muted); margin-top: -6px; }
.pw { position: relative; }
.pw input { padding-right: 70px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--sky); cursor: pointer; font-weight: 600; padding: 8px; }

/* App shell */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1280px; margin: 0 auto; padding: 10px 18px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { height: 44px; width: auto; }
.brand b { font: 800 1.35rem/1 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.brand small { display: block; font: 600 .7rem var(--body); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.tabs { display: flex; gap: 6px; margin-left: 10px; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); font: 700 1.1rem var(--head); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.tab:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.tab[aria-selected='true'] { color: #1a0b00; background: linear-gradient(135deg, var(--orange), var(--amber)); }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--orange); color: #1a0b00; font: 800 .8rem var(--body); }
.tab[aria-selected='true'] .badge { background: #1a0b00; color: var(--amber); }
.tab .short { display: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.who { color: var(--muted); font-size: .85rem; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

main.page { max-width: 1280px; margin: 0 auto; padding: 20px 18px 80px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h2 { font-size: 2.2rem; }
.page-head .sp { flex: 1; }
.updated { color: var(--muted); font-size: .8rem; }

/* Toast */
.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 12px; background: #fff; color: #0a1f3d; font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); animation: toast-in .2s ease-out; }
.toast.err { background: #ffe3e3; color: #7a1010; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* Calendar */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 20px; align-items: start; }
.cal { border-radius: 20px; border: 2px solid var(--line); background: var(--panel); padding: 14px; }
.cal-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-title { font: 800 1.9rem/1 var(--head); text-transform: uppercase; min-width: 190px; text-align: center; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(8, 24, 47, .7); border: 2px solid var(--line); }
.seg button { min-height: 34px; padding: 4px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 10px; color: var(--muted); font-size: .8rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.st-new { --st: var(--orange); }
.st-confirmed { --st: var(--sky); }
.st-completed { --st: var(--green); }
.st-cancelled { --st: var(--grey); }
.legend .st-new i, .dot.st-new { background: var(--orange); }
.legend .st-confirmed i, .dot.st-confirmed { background: var(--sky); }
.legend .st-completed i, .dot.st-completed { background: var(--green); }
.legend .st-cancelled i, .dot.st-cancelled { background: var(--grey); }
.dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.dow span { text-align: center; font: 700 .85rem var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.grid7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { position: relative; min-height: 108px; padding: 6px; border-radius: 12px; border: 2px solid transparent; background: rgba(255, 255, 255, .04); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; overflow: hidden; }
.day:hover { background: rgba(255, 255, 255, .09); }
.day.out { opacity: .42; }
.day.today .num { background: var(--orange); color: #1a0b00; }
.day.sel { border-color: var(--sky); background: rgba(92, 192, 245, .12); }
.num { align-self: flex-start; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; font: 700 .9rem var(--body); }
.chip { display: flex; align-items: center; gap: 5px; width: 100%; padding: 2px 6px; border-radius: 7px; border-left: 4px solid var(--st, var(--sky)); background: rgba(255, 255, 255, .08); font-size: .74rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip b { font-weight: 700; color: var(--st); flex: none; }
.chip span { overflow: hidden; text-overflow: ellipsis; }
.chip.st-cancelled { opacity: .55; text-decoration: line-through; }
.more { font-size: .72rem; color: var(--muted); padding-left: 4px; }
.dots { display: none; gap: 3px; flex-wrap: wrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; }

.panel { position: sticky; top: 76px; border-radius: 20px; border: 2px solid var(--line); background: var(--panel); padding: 16px; display: grid; gap: 14px; max-height: calc(100vh - 96px); overflow-y: auto; }
.panel h3 { font-size: 1.7rem; }
.panel .sub { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.empty { padding: 26px 14px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: 14px; }

/* Booking cards */
.bk { border-radius: 16px; border: 2px solid var(--line); border-left: 6px solid var(--st, var(--sky)); background: var(--panel-2); padding: 14px; display: grid; gap: 10px; }
.bk-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: rgba(255, 255, 255, .1); color: var(--text); }
.pill.st { background: color-mix(in srgb, var(--st) 22%, transparent); color: var(--st); }
.bk h4 { font-size: 1.55rem; }
.bk .svc { color: var(--amber); font-weight: 600; }
.lines { display: grid; gap: 6px; font-size: .93rem; }
.lines a, .lines span.ln { display: flex; gap: 8px; align-items: flex-start; color: var(--text); text-decoration: none; word-break: break-word; }
.lines a:hover { color: var(--sky); }
.lines svg { flex: none; width: 17px; height: 17px; margin-top: 2px; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quote { padding: 9px 12px; border-radius: 10px; background: rgba(8, 24, 47, .6); color: var(--muted); font-size: .9rem; white-space: pre-wrap; word-break: break-word; }
.meta { color: var(--muted); font-size: .78rem; }
.bk .seg { display: grid; grid-template-columns: repeat(4, 1fr); }
.bk .seg button { padding: 4px 2px; font-size: .8rem; }
.bk .seg button[aria-pressed='true'] { background: var(--st); color: #07121f; }
.bk-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.bk details { border-top: 1px solid var(--line); padding-top: 8px; }
.bk summary { cursor: pointer; color: var(--sky); font-weight: 600; font-size: .88rem; min-height: 32px; display: flex; align-items: center; }
.bk details > div { display: grid; gap: 10px; padding-top: 8px; }
.bk textarea { width: 100%; min-height: 64px; padding: 10px 12px; border-radius: 11px; border: 2px solid var(--line); background: rgba(8, 24, 47, .75); color: var(--text); font-size: .95rem; resize: vertical; }
.bk textarea:focus, .bk input:focus, .bk select:focus { outline: 0; border-color: var(--orange); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* List view */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pillbtn { min-height: 38px; padding: 6px 16px; border-radius: 99px; border: 2px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.pillbtn[aria-pressed='true'] { background: var(--panel-2); color: var(--text); border-color: var(--sky); }
.list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; }
.list-head { grid-column: 1 / -1; font: 800 1.5rem var(--head); text-transform: uppercase; color: var(--amber); margin-top: 8px; }
.list-head small { font: 500 .85rem var(--body); color: var(--muted); text-transform: none; margin-left: 8px; }

/* Messages */
.msgs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; }

/* Dialog */
dialog { width: min(94vw, 560px); max-height: 92vh; padding: 0; border: 2px solid var(--line); border-radius: 22px; background: var(--panel); color: var(--text); overflow: hidden; }
dialog.wide { width: min(94vw, 880px); }
dialog::backdrop { background: rgba(3, 10, 22, .82); }
.dlg { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: 92vh; }
.dlg-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dlg-h h3 { font-size: 1.7rem; flex: 1; }
.dlg-b { padding: 18px; overflow-y: auto; display: grid; gap: 14px; align-content: start; }
.dlg-f { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); }
.dlg-f .sp { flex: 1; }

/* Media */
.drop { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 26px 18px; border-radius: 18px; border: 2px dashed rgba(92, 192, 245, .5); background: rgba(92, 192, 245, .06); }
.drop.over { background: rgba(92, 192, 245, .18); border-color: var(--sky); }
.drop h3 { font-size: 1.6rem; }
.drop p { color: var(--muted); font-size: .9rem; max-width: 520px; }
.targets { display: flex; gap: 6px 20px; flex-wrap: wrap; justify-content: center; }
.ups { display: grid; gap: 8px; margin-top: 14px; }
.up { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: .88rem; }
.up .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up .stt { color: var(--muted); }
/* an error message can be a sentence or two: it gets its own line so it never pushes the file name out of the row */
.up .stt.err { grid-column: 1 / -1; color: var(--red); }
.up .stt.ok { color: var(--green); }
.bar { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--amber)); transition: width .2s; }
.sub-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 14px; }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.tile { position: relative; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); background: var(--panel-2); cursor: pointer; text-align: left; display: block; }
.tile:hover { border-color: var(--sky); }
.tile .th { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #0a1f3d; }
.tile .ph { display: grid; place-items: center; width: 100%; aspect-ratio: 1; background: linear-gradient(135deg, #0a1f3d, #123259); color: var(--muted); font-size: 2rem; }
.tile .cap { display: block; padding: 8px 10px 4px; font-size: .82rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .on { display: flex; gap: 4px; padding: 0 10px 9px; min-height: 28px; flex-wrap: wrap; }
.tile .on span { font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: rgba(255, 171, 46, .2); color: var(--amber); text-transform: uppercase; letter-spacing: .04em; }
.tile .on span.none { background: rgba(255, 255, 255, .08); color: var(--muted); }
.tile .play { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(3, 10, 22, .78); font-size: .72rem; font-weight: 700; }
/* Library: each photo is a cell with a tick box on top of the card (a box cannot sit inside the card's button) */
.cell { position: relative; display: block; }
.cell .tile { width: 100%; height: 100%; }
.cell.picked .tile { border-color: var(--sky); box-shadow: 0 0 0 2px var(--sky); }
.pick { position: absolute; top: 6px; left: 6px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(3, 10, 22, .72); border: 2px solid rgba(255, 255, 255, .45); cursor: pointer; }
.pick input { width: 22px; height: 22px; margin: 0; accent-color: var(--orange); cursor: pointer; }
.cell.picked .pick { border-color: var(--sky); }
.tile .jobtag { display: block; padding: 0 10px 9px; margin-top: -3px; font-size: .72rem; font-weight: 600; color: var(--sky); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pickbar { position: sticky; bottom: 14px; z-index: 20; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 16px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--sky); background: var(--panel); box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.pickbar b { margin-right: auto; }
/* Jobs view */
.jobs { display: grid; gap: 14px; }
.job { display: grid; gap: 10px; padding: 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--panel-2); }
.job-h { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.job .msg { min-height: 0; }
.jobph { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.jp { position: relative; width: 88px; height: 88px; }
.jt { display: block; width: 100%; height: 100%; padding: 0; border-radius: 12px; border: 2px solid var(--line); overflow: hidden; background: #0a1f3d; cursor: pointer; }
.jt:hover { border-color: var(--sky); }
.jt .th, .jt .ph { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.jx { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0 0 2px; border-radius: 50%; border: 2px solid var(--panel-2); background: #3a4f6b; color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.jx:hover { background: var(--red); color: #2a0606; }
.job-f { display: flex; justify-content: flex-end; }
.newjob, .jobfield { display: grid; gap: 10px; }
.note { padding: 12px 14px; border-radius: 12px; background: rgba(92, 192, 245, .1); border: 1px solid rgba(92, 192, 245, .3); color: var(--text); font-size: .9rem; margin-bottom: 14px; }
.how { margin: 0 0 20px; font-size: .85rem; line-height: 1.5; max-width: 760px; }
.order { display: grid; gap: 10px; }
/* One block per place on the page (grid, each carousel); --g is the block's colour */
.blk { --g: var(--sky); margin-bottom: 22px; }
.blk.g1 { --g: var(--orange); }
.blk.g2 { --g: var(--green); }
.blk.g3 { --g: #b58cff; }
.blk.g4 { --g: #ff7bb0; }
.blk.g5 { --g: #4fd6d6; }
.blk.auto, .blk.feat { --g: var(--amber); }
.blk-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; padding: 2px 0 2px 12px; border-left: 6px solid var(--g); }
.blk-h b { font: 800 1.45rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .03em; }
.blk-h small { color: var(--muted); font-size: .85rem; }
.blk .row { border-left: 6px solid var(--g); }
.grp { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.grp select { min-height: 36px; padding: 4px 8px; border-radius: 10px; border: 2px solid var(--line); background: rgba(8, 24, 47, .75); color: var(--text); font-size: .88rem; }
.grp select:focus { outline: 0; border-color: var(--orange); }
.grp select option { background: var(--bg-2); }
.row { display: grid; grid-template-columns: 28px 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--panel-2); }
.row .n { font: 800 1.3rem var(--head); color: var(--amber); text-align: center; }
.row img, .row .ph { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: #0a1f3d; display: grid; place-items: center; color: var(--muted); }
.row .t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .t small { color: var(--muted); }
.row .acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.stackwrap { display: grid; gap: 8px; }
.row .stk { position: relative; display: block; width: 72px; height: 72px; }
.row .stk > * { position: absolute; width: 56px; height: 56px; border-radius: 8px; border: 2px solid var(--panel-2); object-fit: cover; }
.row .stk > :nth-last-child(1) { left: 14px; top: 14px; }
.row .stk > :nth-last-child(2) { left: 7px; top: 7px; }
.row .stk > :nth-last-child(3) { left: 0; top: 0; }
.inner { display: grid; gap: 6px; margin-left: 24px; }
.row.sub { grid-template-columns: 24px 48px minmax(0, 1fr) auto; gap: 10px; padding: 6px 8px; border-radius: 12px; border-width: 1px; border-left-width: 4px; background: rgba(255, 255, 255, .04); }
.row.sub img, .row.sub .ph { width: 48px; height: 48px; border-radius: 8px; }
.row.sub .n { font-size: 1.05rem; }
.prev { display: block; width: 100%; max-height: 46vh; object-fit: contain; border-radius: 14px; background: #050f20; }
.about-q { padding: 0 2px; }

/* Responsive */
@media (max-width: 1000px) {
  .cal-wrap { grid-template-columns: 1fr; }
  .panel { position: static; max-height: none; }
}
@media (max-width: 700px) {
  .top-in { padding: 8px 12px; gap: 10px; }
  .tabs { order: 3; width: 100%; margin: 0; }
  .tab { flex: 1; justify-content: center; padding: 8px 6px; font-size: 1rem; }
  .tab .long { display: none; }
  .tab .short { display: inline; }
  .who { display: none; }
  main.page { padding: 14px 12px 70px; }
  .page-head h2 { font-size: 1.9rem; }
  .cal { padding: 10px; }
  .cal-title { min-width: 0; flex: 1 1 calc(100% - 110px); font-size: 1.6rem; white-space: nowrap; }
  .grid7, .dow { gap: 3px; }
  .day { min-height: 58px; padding: 4px; align-items: center; gap: 3px; }
  .day .chip, .day .more { display: none; }
  .dots { display: flex; justify-content: center; }
  .num { align-self: center; }
  .row { grid-template-columns: 24px 56px minmax(0, 1fr); }
  .row img, .row .ph { width: 56px; height: 56px; }
  .row .stk { width: 56px; height: 56px; }
  .row .stk > * { width: 42px; height: 42px; }
  .row .stk > :nth-last-child(1) { left: 12px; top: 12px; }
  .row .stk > :nth-last-child(2) { left: 6px; top: 6px; }
  .row.sub { grid-template-columns: 22px 44px minmax(0, 1fr); }
  .row.sub img, .row.sub .ph { width: 44px; height: 44px; }
  .inner { margin-left: 10px; }
  .row .acts { grid-column: 1 / -1; justify-content: flex-end; }
  .job-h { grid-template-columns: 1fr; }
  .job-h .btn { justify-self: start; }
  .list, .msgs { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .lib { grid-template-columns: repeat(2, 1fr); }
}
