:root {
  --paper: #f7f7f5;
  --ink: #1a1d21;
  --muted: #6b7178;
  --blue: #14467d;
  --line: #e3e3df;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 "IBM Plex Sans",
    sans-serif;
  font-variant-numeric: tabular-nums;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 2px;
}
button:hover {
  border-color: var(--blue);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
/* Room for the fixed navbar; its styles are shared in static/navbar.css. */
body {
  padding-top: var(--nav-h, 64px);
}
main {
  max-width: 1220px;
  margin: auto;
  padding: 0 32px;
}
.intro {
  padding: 68px 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.eyebrow {
  color: var(--blue);
  font-size: 14px;
  margin: 0 0 14px;
}
h1 {
  font-weight: 500;
  letter-spacing: -1.4px;
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 20px;
}
.intro p:last-child {
  color: var(--muted);
  margin: 0;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.primary:hover {
  background: #103860;
}
.intro button,
.intro a.primary {
  min-width: 190px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
}
.intro a.primary {
  border: 1px solid var(--blue);
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
}
.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 12px 0;
  color: var(--muted);
}
.tabs button[aria-selected="true"] {
  border-color: var(--blue);
  color: var(--blue);
}
section {
  padding-top: 24px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.section-heading span,
.muted,
.hint {
  color: var(--muted);
}
.section-heading span {
  font-size: 14px;
}
h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
}
h3 {
  font-size: 17px;
  font-weight: 500;
  margin-top: 30px;
}
.muted {
  font-size: 14px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 32px;
}
.empty {
  grid-column: 1/-1;
  padding: 44px 24px;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  text-align: center;
  margin: 0;
}
.card {
  min-width: 0;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card h3 {
  font-size: 21px;
  margin: 0;
}
.card p {
  margin: 0;
  overflow-wrap: anywhere;
}
.card .description {
  white-space: pre-wrap;
  font-size: 14px;
  color: var(--muted);
}
.badge {
  align-self: flex-start;
  font-size: 12px;
  color: var(--blue);
  padding: 3px 8px;
  background: #edf2f7;
}
.card .meta {
  font-size: 14px;
  color: var(--muted);
}
.rates {
  font-size: 18px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.actions button {
  font-size: 14px;
  padding: 8px 12px;
}
.bike-art {
  height: 100px;
  width: 100%;
  color: var(--blue);
  background: #f4f6f7;
  padding: 12px;
}
.error {
  color: #a32128;
  font-size: 14px;
}
#notice {
  padding: 14px 18px;
  background: #edf2f7;
  border-left: 3px solid var(--blue);
}
#notice.error {
  background: #fff0f0;
  border-color: #a32128;
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
  font-size: 12px;
  color: var(--muted);
  max-width: 850px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 28px;
  max-width: 620px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  color: var(--ink);
}
dialog::backdrop {
  background: #1a1d2166;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.close {
  border: 0;
  font-size: 26px;
  padding: 0 8px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 16px;
}
label span {
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #bfc3c6;
  border-radius: 2px;
  background: white;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.hint {
  font-size: 13px;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0;
}
.check span {
  color: var(--ink);
  font-size: 16px;
}
.check small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 580px) {
  main {
    padding: 0 20px;
  }
  .intro {
    padding: 36px 0;
    display: block;
  }
  .intro button,
  .intro a.primary {
    margin-top: 24px;
  }
  h1 {
    font-size: 34px;
  }
  .desktop {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .tabs {
    gap: 22px;
  }
  .tabs button {
    font-size: 14px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dialog {
    padding: 20px;
  }
}

.bike-photo {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f4f6f7;
}
.photo-preview {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  background: #f4f6f7;
  margin: 12px 0;
}
#bike-photo {
  margin-top: -8px;
}
