:root {
  color-scheme: light;
  --bg: #f4f5f1;
  --surface: #ffffff;
  --surface-soft: #eef3ee;
  --ink: #14201b;
  --muted: #62706a;
  --line: #d9ded7;
  --green: #21745e;
  --green-dark: #174d42;
  --green-soft: #dcefe8;
  --blue: #3d6e8c;
  --blue-dark: #16415a;
  --blue-soft: #dceaf2;
  --blue-wash: #eef6fa;
  --amber: #c78926;
  --amber-dark: #8b5d12;
  --amber-soft: #f6ead1;
  --rust: #b84c3e;
  --rust-dark: #8f2f25;
  --rust-soft: #f3dfdc;
  --rust-wash: #fbefed;
  --red: var(--rust);
  --admin-ink: #13242d;
  --shadow: 0 18px 48px rgba(24, 32, 29, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #fbfbf7;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
  object-position: center;
}


.mode-context {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.mode-context span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mode-context strong {
  color: var(--ink);
  font-size: 15px;
}

.mode-context p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.brand-mark,
.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.brand small,
.plan-box small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item,
.user-chip,
.filter,
.primary,
.secondary,
.icon-button {
  border: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: #405049;
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  background: #e8efe9;
  color: var(--green-dark);
}

.icon {
  display: grid;
  place-items: center;
}

.plan-box {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.plan-box span {
  color: var(--green);
  font-weight: 800;
}

.main {
  min-width: 0;
  padding: 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(420px, 0.78fr) minmax(280px, 1fr) auto;
  align-items: end;
  gap: 16px;
  margin: -24px -24px 28px;
  padding: 14px 24px 0;
  border-bottom: 1px solid #cfd8d1;
  background:
    linear-gradient(180deg, rgba(251, 251, 247, 0.98), rgba(244, 245, 241, 0.96));
  box-shadow: 0 10px 28px rgba(24, 32, 29, 0.08);
  backdrop-filter: blur(14px);
}

.topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 77, 66, 0.28), transparent);
  pointer-events: none;
}

.mode-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  min-width: 0;
  height: 58px;
  gap: 0;
  padding: 0 8px;
}

.mode-tab {
  position: relative;
  min-height: 46px;
  min-width: 138px;
  padding: 0 18px;
  border: 1px solid #cfd8d1;
  border-bottom-color: #bdc9c1;
  border-radius: 13px 13px 0 0;
  background: linear-gradient(180deg, #eef2ed, #dfe8e1);
  color: #52645b;
  font-weight: 900;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 -1px 0 rgba(255, 255, 255, 0.7),
    0 4px 12px rgba(24, 32, 29, 0.08);
  transform: translateY(7px);
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}

.mode-tab + .mode-tab {
  margin-left: -8px;
}

.mode-tab:hover {
  color: var(--green-dark);
  background: linear-gradient(180deg, #f4f7f3, #e8f0ea);
  transform: translateY(3px);
}

.mode-tab.active {
  z-index: 3;
  min-height: 56px;
  border-color: #cfd8d1;
  border-bottom-color: var(--bg);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbf8 44%, var(--bg) 100%);
  color: var(--green-dark);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 -8px 20px rgba(255, 255, 255, 0.72),
    10px 0 18px rgba(24, 32, 29, 0.08),
    -10px 0 18px rgba(24, 32, 29, 0.06);
  transform: translateY(1px);
}

.mode-tab.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 4px;
  background: var(--bg);
}

.search-box {
  position: relative;
  z-index: 4;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  margin-bottom: 9px;
  padding: 0 16px;
  border: 1px solid #cfd8d1;
  border-radius: 10px;
  background: var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 6px 18px rgba(24, 32, 29, 0.06);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.top-actions {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px 0 8px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

.user-chip span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #dce9e2;
  color: var(--green-dark);
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.primary {
  background: var(--green);
  color: #fff;
}

.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.secondary.danger {
  color: var(--rust);
  border-color: rgba(184, 76, 62, 0.44);
  background: var(--surface);
}

.full {
  width: 100%;
}

.hero-strip {
  min-height: 154px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 22px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(20, 32, 27, 0.84), rgba(20, 32, 27, 0.28)),
    url("/assets/hero-rental-marketplace.png") center/cover;
  color: #fff;
}

.catalog-hero {
  min-height: 132px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid rgba(33, 116, 94, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.66)),
    url("/assets/hero-rental-marketplace.png") center/cover;
}

.catalog-hero strong {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
}

.catalog-hero span {
  display: block;
  max-width: 620px;
  color: #405049;
  line-height: 1.5;
}

.catalog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


.mode-insight {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -8px 0 16px;
  padding: 16px 18px;
  border: 1px solid #cfd8d1;
  border-radius: 0 8px 8px 8px;
  background: linear-gradient(180deg, #ffffff, var(--surface));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    var(--shadow);
}

.mode-insight::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(270px, 36%);
  height: 1px;
  background: var(--bg);
}

.mode-insight article {
  display: grid;
  gap: 4px;
}

.mode-insight span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mode-insight strong {
  color: var(--ink);
  font-size: 18px;
}

.mode-insight p {
  margin: 0;
  max-width: 720px;
  font-size: 14px;
}

.mode-insight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quick-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.category-tile {
  min-height: 98px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  align-items: center;
  gap: 2px 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.category-tile.active,
.category-tile:hover {
  border-color: rgba(33, 116, 94, 0.42);
  background: #edf5ef;
}

.tile-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.category-tile small {
  color: var(--muted);
}

.hero-copy {
  display: grid;
  gap: 8px;
  max-width: 560px;
}

.hero-copy strong {
  font-size: 26px;
}

.hero-copy span,
.hero-stats span {
  color: rgba(255, 255, 255, 0.82);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stats span {
  min-width: 132px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero-stats b {
  display: block;
  color: #fff;
  font-size: 22px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface);
  color: #405049;
  border: 1px solid var(--line);
  font-weight: 700;
}

.filter.active {
  background: #dce9e2;
  color: var(--green-dark);
}

.date-filter,
.sort-filter {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #405049;
  font-size: 14px;
  font-weight: 800;
}

.date-filter input,
.sort-filter select {
  width: auto;
  min-height: 30px;
  border: 0;
  padding: 0 4px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.catalog-results {
  display: grid;
  gap: 14px;
}

.result-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.result-toolbar small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.compact {
  min-height: 36px;
  padding: 0 12px;
}

.item-card,
.panel,
.booking-card,
.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.item-card {
  overflow: hidden;
}

.item-card.featured {
  border-color: rgba(33, 116, 94, 0.34);
}

.item-visual {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 42px;
  font-weight: 900;
}

.item-visual span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.tool {
  background: linear-gradient(135deg, #285c50, #d3a348);
}

.tech {
  background: linear-gradient(135deg, #275a88, #79a8bd);
}

.sport {
  background: linear-gradient(135deg, #203f69, #77a173);
}

.garden {
  background: linear-gradient(135deg, #527442, #c3b15d);
}

.item-body,
.booking-card,
.panel,
.metric {
  padding: 18px;
}

.item-row,
.price-row,
.booking-meta,
.booking-actions,
.score-row,
.usage,
.moderation-row,
.pin-box,
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pricing-box,
.availability-box {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #f2f7f3;
}

.pricing-box span,
.availability-box span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.badge,
.quiet-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.green {
  background: var(--green-soft);
  color: #17604e;
}

.blue,
.pending {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.amber {
  background: var(--amber-soft);
  color: var(--amber-dark);
}

.rust,
.action-needed {
  background: var(--rust-soft);
  color: var(--rust-dark);
}

.neutral,
.quiet-pill {
  background: #edf0ed;
  color: #4e5e56;
}

.rating {
  color: var(--amber);
  font-weight: 900;
}

.price-row {
  align-items: baseline;
  margin: 14px 0;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.trust-row span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: #f0f3ef;
  color: #4e5e56;
  font-size: 12px;
  font-weight: 800;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 10px;
}

.price-row span,
.booking-meta,
.moderation-row b {
  color: var(--muted);
  font-size: 14px;
}

.map-panel {
  position: sticky;
  top: 24px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map-header {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.map-header span {
  color: var(--muted);
  font-size: 14px;
}

.map-notice,
.side-panel-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.map-canvas {
  position: relative;
  min-height: 380px;
  background:
    linear-gradient(90deg, rgba(33, 116, 94, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(33, 116, 94, 0.1) 1px, transparent 1px),
    #eef3ee;
  background-size: 44px 44px;
}

.pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 34px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(23, 77, 66, 0.22);
}

.p1 {
  left: 34%;
  top: 28%;
}

.p2 {
  left: 58%;
  top: 44%;
  background: var(--blue);
}

.p3 {
  left: 20%;
  top: 62%;
  background: var(--amber);
}

.p4 {
  left: 66%;
  top: 70%;
}

.side-panel-section {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.side-panel-section ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.side-panel-section li + li {
  margin-top: 6px;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 180px;
  border: 1px dashed #b7c2ba;
  border-radius: 8px;
  background: #f7f9f6;
  color: var(--muted);
}

.empty-state strong {
  color: var(--ink);
  font-size: 20px;
}

.form-layout,
.protocol-layout,
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.form-panel,
.upload-panel,
.protocol-card,
.stats-panel {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #34413b;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfbf7;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.switch {
  width: 52px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: #cbd3ce;
  position: relative;
}

.switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.switch.on {
  background: var(--green);
}

.switch.on::after {
  transform: translateX(22px);
}

.upload-tile,
.photo-grid div {
  display: grid;
  place-items: center;
  min-height: 190px;
  border: 1px dashed #b7c2ba;
  border-radius: 8px;
  background: #f4f7f4;
  color: var(--green);
  font-weight: 900;
}

.upload-tile {
  gap: 10px;
  cursor: pointer;
  text-align: center;
}

.upload-tile small {
  color: var(--muted);
  font-weight: 700;
}

.file-input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-preview-list {
  display: grid;
  gap: 10px;
}

.photo-preview {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf7;
}

.photo-preview img {
  width: 76px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.photo-preview strong,
.photo-preview span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-preview span {
  color: var(--muted);
  font-size: 13px;
}

.form-status {
  min-height: 22px;
  color: var(--green);
  font-weight: 800;
  line-height: 1.45;
}

.form-status.error {
  color: var(--red);
}

.item-photo {
  min-height: 150px;
  background-position: center;
  background-size: cover;
}

.item-photo::after {
  content: "";
  display: block;
  min-height: 150px;
  background: linear-gradient(0deg, rgba(20, 32, 27, 0.34), rgba(20, 32, 27, 0.02));
}

.booking-board,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.booking-card {
  display: grid;
  gap: 12px;
}

.booking-card[data-status="pending"] {
  border-left: 4px solid var(--blue);
  background: linear-gradient(90deg, var(--blue-wash), var(--surface) 38%);
}

.booking-card[data-status="approved"] {
  border-left: 4px solid var(--green);
}

.booking-card[data-status="rejected"],
.booking-card[data-status="cancelled"],
.booking-card[data-status="dispute"] {
  border-left: 4px solid var(--rust);
  background: linear-gradient(90deg, var(--rust-wash), var(--surface) 40%);
}

.booking-card[data-status="completed"],
.booking-card.muted {
  border-left: 4px solid #aab4ad;
}

.booking-card.muted {
  box-shadow: none;
}

.protocol-layout {
  grid-template-columns: 360px minmax(0, 1fr);
}

.timeline-panel {
  display: grid;
  gap: 18px;
  align-self: start;
}

.step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
}

.step > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e2e7e3;
  color: #53635b;
  font-weight: 900;
}

.step.done > span {
  background: var(--green);
  color: #fff;
}

.step.active > span {
  background: var(--blue);
  color: #fff;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.photo-grid div {
  min-height: 110px;
  background: #eef3ee;
}

.pin-box {
  align-items: end;
  padding: 14px;
  border-radius: 8px;
  background: var(--blue-soft);
  border: 1px solid rgba(61, 110, 140, 0.22);
}

.pin-box span {
  color: var(--blue-dark);
  font-weight: 900;
}

.profile-card {
  text-align: center;
}

.profile-card .avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 14px;
  font-size: 24px;
}

.score-row {
  margin-top: 18px;
}

.score-row span,
.usage {
  padding: 12px;
  border-radius: 8px;
  background: #f3f5f1;
}

.usage {
  position: relative;
  overflow: hidden;
  min-height: 54px;
}

.usage::before {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 8px;
  left: 12px;
  height: 7px;
  border-radius: 999px;
  background: #e1e5df;
}

.usage::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 12px;
  width: var(--usage, 0%);
  max-width: calc(100% - 24px);
  height: 7px;
  border-radius: 999px;
  background: var(--amber);
}

.usage span,
.usage b {
  position: relative;
  z-index: 1;
}

.stats-panel h2,
.moderation-panel h2 {
  margin-bottom: 0;
}

.admin-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.metric {
  display: grid;
  gap: 4px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.metric span,
.metric small {
  color: var(--muted);
}

.metric strong {
  color: var(--admin-ink);
  font-size: 28px;
  line-height: 1;
}

.metric:last-child {
  border-right: 0;
}

.moderation-panel {
  display: grid;
  gap: 7px;
  border-radius: 0 0 8px 8px;
  background: #eef1ec;
  box-shadow: none;
}

.moderation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: var(--surface);
}

.moderation-row[data-priority="high"] {
  border-left-color: var(--rust);
  background: linear-gradient(90deg, var(--rust-wash), var(--surface) 34%);
}

.moderation-row b {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.moderation-row[data-priority="high"] b {
  background: var(--rust-soft);
  color: var(--rust-dark);
}

.admin-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.admin-data-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  box-shadow: none;
}

.admin-list {
  display: grid;
  gap: 6px;
}

.admin-record,
.admin-empty {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.admin-record strong {
  font-size: 14px;
  line-height: 1.18;
}

.admin-record small,
.admin-empty {
  color: var(--muted);
  font-size: 12px;
}

.admin-record-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.admin-record-row .badge {
  min-height: 20px;
  padding: 0 8px;
  font-size: 11px;
}

.detail-dialog {
  width: min(860px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 30px 90px rgba(15, 24, 20, 0.28);
}

.detail-dialog::backdrop {
  background: rgba(10, 18, 14, 0.45);
}

.close-dialog {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
}

.dialog-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
}

.dialog-visual {
  min-height: 420px;
  background:
    linear-gradient(135deg, rgba(40, 92, 80, 0.8), rgba(211, 163, 72, 0.75)),
    url("/assets/hero-rental-marketplace.png") center/cover;
}

.dialog-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 34px;
}

.detail-facts,
.reservation-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail-facts div {
  padding: 12px;
  border-radius: 8px;
  background: #f3f5f1;
}

.detail-facts span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-facts strong {
  display: block;
}

.reservation-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reservation-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reservation-summary div {
  padding: 12px;
  border-radius: 8px;
  background: #f3f5f1;
}

.reservation-summary span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.calendar-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf7;
}

.calendar-head {
  display: grid;
  gap: 7px;
}

.calendar-navigation {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
}

.calendar-navigation strong {
  text-align: center;
}

.calendar-nav-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  font-size: 26px;
  line-height: 1;
}

.calendar-nav-button:hover,
.calendar-nav-button:focus-visible {
  border-color: var(--green);
  background: #edf5ef;
}

.calendar-head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekday {
  padding: 3px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-weekday.is-weekend {
  color: #9a6819;
}

.calendar-placeholder {
  min-height: 40px;
}

.calendar-day {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf5ef;
  color: var(--green-dark);
  font-weight: 900;
}

.calendar-day.is-weekend:not(.is-selected):not(.is-pending):not(.is-blocked):not(.is-unavailable) {
  border-color: #e6c987;
  background: #fff4d8;
  color: #80550f;
}

.calendar-day.is-unavailable {
  background: #f4f5f3;
  color: #a4aca7;
  cursor: not-allowed;
}

.calendar-day.is-selected {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.calendar-day.is-pending {
  background: var(--blue-soft);
  color: var(--blue-dark);
  border-color: rgba(61, 110, 140, 0.44);
  cursor: not-allowed;
}

.calendar-day.is-blocked {
  background: #edf0ed;
  color: #8b9690;
  text-decoration: line-through;
  cursor: not-allowed;
}

.calendar-day.is-start {
  box-shadow: inset 0 0 0 2px #fff;
}

.detail-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #dce7df;
  border-radius: 8px;
  background: #f2f7f3;
}

.detail-note span {
  color: var(--muted);
  line-height: 1.45;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .content-grid,
  .form-layout,
  .protocol-layout,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .map-panel {
    position: static;
  }

  .admin-grid,
  .booking-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
  }

  .nav-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-item {
    justify-content: center;
    min-height: 42px;
    padding: 0 8px;
    font-size: 13px;
  }

  .nav-item .icon,
  .plan-box {
    display: none;
  }

  .main {
    padding: 14px;
  }

  .topbar,
  .page-head,
  .hero-strip,
  .pin-box,
  .mode-insight {
    align-items: stretch;
    flex-direction: column;
  }

  .moderation-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .mode-insight {
    margin: 0 0 16px;
    border-radius: 8px;
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: -14px -14px 18px;
    padding: 12px 14px 0;
  }

  .mode-tabs {
    min-width: 0;
    width: 100%;
    height: 54px;
    overflow-x: auto;
    padding: 0 2px;
  }

  .mode-tab {
    min-width: 122px;
    padding: 0 12px;
    font-size: 13px;
  }

  .top-actions {
    justify-content: space-between;
  }

  .listing-grid,
  .quick-categories,
  .admin-grid,
  .admin-sections,
  .booking-board,
  .two-cols,
  .photo-grid,
  .dialog-grid,
  .detail-facts,
  .reservation-panel,
  .reservation-summary {
    grid-template-columns: 1fr;
  }

  .category-tile {
    min-height: 78px;
  }

  .dialog-visual {
    min-height: 240px;
  }
}

.admin-users-panel {
  grid-column: 1 / -1;
}

.admin-panel-head,
.admin-dialog-head,
.admin-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-panel-head h2 {
  font-size: 18px;
}

.admin-data-panel .secondary,
.admin-data-panel .primary {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-user-filters {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 128px 128px 128px auto;
  gap: 6px;
}

.admin-user-filters input,
.admin-user-filters select {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 13px;
}

.admin-user-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.admin-user-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) 90px 92px 74px 110px minmax(152px, 0.75fr);
  align-items: center;
  column-gap: 10px;
  min-height: 42px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.admin-user-row:last-child {
  border-bottom: 0;
}

.admin-user-row.header {
  min-height: 30px;
  background: #eef1ec;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-user-row > * {
  min-width: 0;
}

.admin-user-row.header span:last-child {
  text-align: right;
}

.admin-user-main {
  min-width: 0;
}

.admin-user-main strong,
.admin-user-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-main small,
.admin-user-cell-muted {
  color: var(--muted);
  font-size: 12px;
}

.admin-user-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.admin-user-row .badge {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.admin-user-row .compact {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-user-dialog {
  width: min(760px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 30px 90px rgba(15, 24, 20, 0.28);
}

.admin-user-dialog::backdrop {
  background: rgba(10, 18, 14, 0.45);
}

.admin-user-editor {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
}

.admin-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.admin-checks input {
  width: auto;
}

.admin-message-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9f6;
}

.admin-user-status-text.error {
  color: var(--rust);
}

@media (max-width: 980px) {
  .admin-user-filters,
  .admin-user-row {
    grid-template-columns: 1fr;
  }

  .admin-user-row.header {
    display: none;
  }

  .admin-user-actions {
    justify-content: flex-start;
  }
}
