/* Borrow the FLX4 (borrow.html). Same Spotify rules as style.css: greys + white, green only on the Book button. */
.borrow { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
@media (max-width: 1000px) { .borrow { grid-template-columns: 1fr; } .borrow .gear .art { display: none; } }
.banner-note { background: #181818; border-radius: 6px; padding: 12px 16px; color: var(--cloud); font-size: 13px; }
.banner-note b { color: var(--white); }

/* calendar */
.cal { max-width: 640px; }
.cal-dow, .cal-wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow span { font-size: 11px; font-weight: 600; color: var(--cloud); text-align: center; padding: 4px 0; }
.cal-wk { margin-bottom: 4px; }
.cal-m { font-size: 12px; font-weight: 700; color: var(--white); padding: 12px 2px 6px; }
.day { position: relative; height: 56px; border: 0; border-radius: 6px; background: var(--graphite); color: var(--white); font: 700 14px/1 var(--font); cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 8px; text-align: left; transition: background .1s; }
.day:hover:not([disabled]) { background: var(--hover); }
.day:focus-visible { outline: 2px solid var(--white); outline-offset: 1px; }
.day .t { font-size: 10px; font-weight: 600; color: var(--cloud); letter-spacing: .02em; }
.day.off { background: transparent; color: #535353; cursor: default; }
.day.taken { background: repeating-linear-gradient(135deg, #1a1a1a 0 6px, #232323 6px 12px); color: var(--steel); cursor: not-allowed; }
.day.mine { background: transparent; box-shadow: inset 0 0 0 2px var(--white); cursor: default; }
.day.mine .t { color: var(--white); }
.day.now .n::after { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--green); margin-left: 4px; vertical-align: middle; }
.day.sel { background: #e8e8e8; color: #000; }
.day.sel:hover { background: var(--white); }
.day.sel.a, .day.sel.b { background: var(--white); }
.cal-key { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0 0; }
.cal-key span { display: inline-flex; align-items: center; gap: 6px; }
.cal-key .k { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.k.free { background: var(--graphite); }
.k.taken { background: repeating-linear-gradient(135deg, #1a1a1a 0 3px, #2e2e2e 3px 6px); }
.k.mine { box-shadow: inset 0 0 0 2px var(--white); }
.k.sel { background: var(--white); }

/* booking form */
.bookform { max-width: 640px; margin-top: 24px; }
.pickline { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.pickline .kind, .mybook .kind, .gear .kind { font-size: 12px; font-weight: 600; color: var(--cloud); }
.pickline b { font-size: 18px; margin-right: 8px; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--cloud); margin: 4px 0 16px; cursor: pointer; }
.agree input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--steel); cursor: pointer; display: grid; place-items: center; }
.agree input:checked { background: var(--white); box-shadow: none; }
.agree input:checked::after { content: ""; width: 10px; height: 6px; border: solid #000; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.agree input:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.btn.go[disabled] { background: var(--steel); color: #000; }
.mybook { max-width: 640px; }
.mybook h2 { margin: 4px 0 8px; }

/* the controller card */
.gear { background: #181818; border-radius: 6px; overflow: hidden; position: sticky; top: 16px; }
.gear .art { aspect-ratio: 16 / 9; overflow: hidden; }
.gear .art svg { display: block; width: 100%; height: auto; margin-top: -22%; }
.gear .body { padding: 16px; }
.gear h3 { font-size: 20px; margin: 2px 0 8px; }
.gear h4 { font-size: 12px; font-weight: 700; margin: 16px 0 6px; }
.gear ul { margin: 0; padding-left: 18px; color: var(--cloud); font-size: 13px; }
.gear li { margin-bottom: 4px; }
.gear li b { color: var(--white); }
@media (max-width: 1000px) { .gear { position: static; } }
