:root {
  --ink: #172021;
  --muted: #758081;
  --teal: #09383c;
  --mint: #22ddc7;
  --orange: #ff652f;
  --line: #e7ecec;
  --card: #f3f5f5;
  --danger: #d9603d;
  font-family:
    Roboto,
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--ink);
  font-size: 15px;
  background: #fff;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  color: var(--teal);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 18px;
}
p {
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.right {
  text-align: right;
}
.grow {
  flex: 1;
  min-width: 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.spread {
  justify-content: space-between;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.space {
  height: 16px;
}
.section {
  padding: 20px 18px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.line {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.iconbutton {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.iconbutton:hover {
  background: #ffffff12;
}
.pageheader {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 20px 18px 12px;
  min-height: 70px;
}
.pageheader h1 {
  font-size: 24px;
  flex: 1;
}
.shell {
  max-width: 850px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 78px;
}
.hero {
  padding: 18px 18px 20px;
  background: linear-gradient(130deg, #103d40, #062f34);
  color: white;
  border-radius: 0 0 22px 22px;
}
.brand {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.5px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.brandlogo {
  width: 29px;
  height: 29px;
  object-fit: contain;
  border-radius: 7px;
}
.brandmark {
  color: var(--orange);
  font-size: 29px;
  font-weight: 900;
  line-height: 1;
}
.hero h2 {
  font-size: 19px;
  margin-top: 19px;
  margin-bottom: 17px;
}
.hero .day {
  color: #cee0df;
  font-size: 13px;
}
.moneygrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.moneygrid button {
  text-align: left;
  padding: 0 12px;
  border-right: 1px solid #41666a;
  min-width: 0;
  color: white;
}
.moneygrid button:first-child {
  padding-left: 0;
}
.moneygrid button:last-child {
  border: 0;
  padding-right: 0;
}
.moneygrid small {
  font-size: 12px;
  color: #bed4d4;
  display: block;
  margin-bottom: 7px;
}
.moneygrid strong {
  font-size: clamp(16px, 5.2vw, 25px);
  letter-spacing: -0.6px;
  white-space: nowrap;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar {
  height: 11px;
  border-radius: 20px;
  background: #486e72;
  overflow: hidden;
  margin-top: 20px;
}
.bar > span {
  display: block;
  height: 100%;
  border-radius: 20px;
  background: var(--mint);
  transition: width 0.3s;
}
.progresslabel {
  font-size: 12px;
  color: #c5dada;
  margin-top: 7px;
}
.toptools {
  gap: 2px;
}
.toptools .iconbutton {
  width: 34px;
  height: 36px;
}
.demo {
  font-size: 11px;
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: #fff0df;
  color: #b94e27;
  margin-top: 9px;
}
.local {
  font-size: 11px;
  background: #e4f2f1;
  border-radius: 7px;
  padding: 5px 8px;
  color: var(--teal);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}
.stats button {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0 4px;
}
.stats button:last-child {
  border: 0;
}
.stats strong {
  font-size: 30px;
  line-height: 1;
}
.stats small {
  color: var(--muted);
  font-size: 13px;
}
.tile {
  width: 100%;
  border-radius: 13px;
  background: var(--card);
  padding: 14px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  min-width: 0;
}
.tile .count {
  font-size: 21px;
}
.badge {
  font-size: 13px;
  color: var(--danger);
  background: #ffebe1;
  border-radius: 8px;
  padding: 4px 8px;
  font-weight: 650;
}
.rentalrow {
  width: 100%;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  min-height: 87px;
}
.rentalrow strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}
.rentalrow .muted {
  font-size: 13px;
  margin-top: 4px;
}
.bikephoto {
  width: 108px;
  height: 72px;
  object-fit: contain;
  border-radius: 9px;
  background: white;
  flex-shrink: 0;
}
.photoplace {
  width: 85px;
  height: 65px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #a4b5b6;
  flex-shrink: 0;
}
.late {
  color: var(--danger);
  font-weight: 650;
  white-space: nowrap;
}
.viewall {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 0 0;
  color: var(--teal);
  font-weight: 650;
}
.nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 850px;
  background: #fffffffa;
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 400;
  padding: 7px 4px max(9px, env(safe-area-inset-bottom));
}
.nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #7c8384;
  min-height: 51px;
  text-align: center;
}
.nav .active {
  color: var(--orange);
  font-weight: 600;
}
.nav .icon {
  width: 25px;
  height: 25px;
}
.primary,
.secondary,
.danger {
  border-radius: 13px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 650;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.primary {
  background: var(--orange);
  color: #fff;
}
.secondary {
  background: var(--card);
  color: var(--teal);
}
.danger {
  background: #ffede6;
  color: #a74122;
}
.full {
  width: 100%;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.actions > * {
  flex: 1;
  min-width: 110px;
}
.card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.listcard {
  padding: 14px;
  background: var(--card);
  border-radius: 13px;
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
}
.listcard strong {
  font-size: 16px;
}
.listcard small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 12px;
}
.tabs {
  background: var(--card);
  border-radius: 12px;
  padding: 4px;
  display: flex;
  gap: 3px;
  margin: 0 18px 14px;
  overflow-x: auto;
}
.tabs button {
  flex: 1;
  padding: 10px 8px;
  white-space: nowrap;
  font-size: 13px;
  border-radius: 9px;
  color: var(--muted);
}
.tabs .active {
  background: var(--orange);
  color: white;
}
.search {
  display: flex;
  align-items: center;
  background: var(--card);
  border-radius: 12px;
  padding: 0 13px;
  margin-bottom: 14px;
}
.search input {
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  padding: 13px 9px !important;
  min-width: 0;
  width: 100%;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.filters select {
  flex: 1;
  min-width: 90px;
  font-size: 12px;
  padding: 10px 8px;
}
.chip {
  padding: 7px 10px;
  border-radius: 8px;
  background: #e8f2f1;
  color: var(--teal);
  font-size: 12px;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty strong {
  font-size: 20px;
  color: var(--ink);
}
.empty .icon {
  width: 39px;
  height: 39px;
  color: #a8b9b9;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 15px;
}
.field > span {
  font-size: 13px;
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 13px 12px;
  outline: 0;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px #ff652f12;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--orange);
  flex-shrink: 0;
}
input[type="file"] {
  font-size: 12px;
  padding: 10px;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  margin: 9px 0;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hint {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  padding: 12px;
  border-radius: 10px;
  background: var(--card);
}
.error {
  color: #a64025;
  background: #fff0e9;
  border-radius: 11px;
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.backdrop {
  position: fixed;
  inset: 0;
  background: #102f3266;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  animation: fade 0.16s;
}
.sheet {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  background: white;
  border-radius: 23px;
  padding: 12px 20px 18px;
  box-shadow: 0 15px 80px #00202230;
  display: flex;
  flex-direction: column;
  animation: slide 0.18s;
}
.handle {
  width: 34px;
  height: 4px;
  border-radius: 5px;
  background: #dce2e2;
  flex-shrink: 0;
  margin: 0 auto 12px;
}
.sheetheader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.sheetheader h2 {
  flex: 1;
  line-height: 1.25;
  font-size: 21px;
}
.sheetheader .iconbutton {
  background: var(--card);
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.sheetbody {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 1px 4px;
}
.sheet form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sheetfooter {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.sheetfooter button {
  width: 100%;
}
#notice {
  position: fixed;
  z-index: 2500;
  bottom: 87px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: white;
  border-radius: 14px;
  padding: 15px 18px;
  max-width: calc(100% - 32px);
  width: max-content;
  font-size: 14px;
  box-shadow: 0 5px 20px #00373820;
  display: none;
}
.welcome {
  max-width: 480px;
  margin: auto;
  padding: 32px 22px;
}
.welcome .brand {
  color: var(--teal);
  margin-bottom: 28px;
}
.welcome h1 {
  font-size: 30px;
  margin: 18px 0 12px;
}
.welcome > p {
  color: var(--muted);
  margin-bottom: 25px;
}
.welcome .primary,
.welcome .secondary {
  margin: 10px 0;
  width: 100%;
}
.heroimage {
  width: 100%;
  height: 230px;
  object-fit: contain;
  border-radius: 15px;
  background: var(--card);
}
.keyvalue {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.keyvalue > span:first-child {
  color: var(--muted);
}
.keyvalue > span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
}
.timeline {
  border-left: 2px solid var(--line);
  padding: 0 0 0 15px;
  margin: 14px 0;
}
.timeline > div {
  padding: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
}
.avatar {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #ffede4;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.settingsitem {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.settingsitem strong {
  display: block;
  font-size: 15px;
}
.settingsitem small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.listtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.listtable td {
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.listtable .number {
  text-align: right;
  white-space: nowrap;
}
.map {
  height: 320px;
  border-radius: 15px;
  background: #edf3f1;
  z-index: 1;
}
.minimap {
  height: 185px;
}
.mapmarker {
  background: var(--orange);
  border: 3px solid white;
  box-shadow: 0 2px 6px #0003;
  border-radius: 50%;
  width: 19px;
  height: 19px;
}
.mapmarker.stale {
  background: #99a6a6;
}
.mapcaption {
  font-size: 12px;
  line-height: 1.5;
}
.reorder {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}
.reorder .label {
  flex: 1;
}
.reorder button {
  padding: 6px 10px;
  background: white;
  border-radius: 7px;
}
.loading {
  padding: 50px 25px;
  text-align: center;
  color: var(--muted);
}
.code {
  font-family: monospace;
  overflow-wrap: anywhere;
  padding: 15px;
  background: var(--card);
  border-radius: 12px;
  font-size: 13px;
  user-select: all;
}
.spinner {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--orange);
  width: 60%;
  z-index: 5000;
  animation: load 0.8s infinite;
}
.tag-online {
  color: #15917f;
}
.tag-stale,
.tag-offline {
  color: var(--danger);
}
.caption-image {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  border-radius: 9px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@keyframes slide {
  from {
    transform: translateY(25px);
    opacity: 0;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes load {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(200%);
  }
}
@media (min-width: 600px) {
  .section {
    padding: 24px 28px;
  }
  .hero {
    padding: 24px 28px;
  }
  .moneygrid strong {
    font-size: 28px;
  }
  .welcome {
    padding-top: 60px;
  }
  .backdrop {
    align-items: center;
  }
  .sheet {
    max-height: 90vh;
    max-height: 90dvh;
  }
  .stats strong {
    font-size: 35px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
