@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Work+Sans:wght@400;500;600;700&display=swap");

:root {
  --toolshare-teal: #000000;
  --toolshare-teal-light: #000000;
  --toolshare-teal-dark: #000000;
  --toolshare-yellow: #f2bd4b;
  --toolshare-yellow-hover: #f2bd4b;
  --toolshare-bg: #ffffff;
  --toolshare-white: #ffffff;
  --toolshare-border: rgba(0, 0, 0, 0.16);
  --toolshare-text: #000000;
  --toolshare-muted: rgba(0, 0, 0, 0.72);
  --toolshare-price: #000000;
  --toolshare-link: #000000;
  --toolshare-success: #f2bd4b;
  --toolshare-danger: #000000;
  --toolshare-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
  --toolshare-shadow-hover: 0 10px 26px rgba(0, 0, 0, 0.13);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --header-h: 72px;
  --font: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--toolshare-text);
  background: var(--toolshare-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.3;
}

h1, h2, h3, h4 { font-family: "Outfit", var(--font); }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ── Site links bar (About, Contact, Terms, Privacy) ── */

.site-links-bar {
  background: var(--toolshare-white);
  border-bottom: 1px solid var(--toolshare-border);
}

.site-links-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 16px;
  flex-wrap: wrap;
}

.site-links-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--toolshare-muted);
}

.site-links-bar a {
  font-size: 14px;
  font-weight: 500;
  color: var(--toolshare-teal);
  padding: 4px 0;
}

.site-links-bar a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .site-links-inner {
    gap: 12px 16px;
  }
}

/* ── Layout ── */

.page-wrap {
  flex: 1;
  min-height: calc(100vh - var(--header-h) - 120px);
  padding-bottom: 48px;
}

.container {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 16px;
}

.container-narrow { max-width: 480px; margin: 0 auto; padding: 0 16px; }
.container-medium { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.container-wide { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.muted { color: var(--toolshare-muted); }
.small { font-size: 12px; }
.link { color: var(--toolshare-teal); text-decoration: underline; }

/* ── Header (marketplace-style) ── */

.site-header {
  background: var(--toolshare-teal);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.header-center {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-actions-guest {
  grid-column: 3;
  justify-self: end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--toolshare-white);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--toolshare-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.header-search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  background: var(--toolshare-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--toolshare-shadow);
}

.header-search input {
  flex: 1;
  border: none;
  padding: 12px 16px;
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.header-search button {
  border: none;
  background: var(--toolshare-teal);
  color: var(--toolshare-white);
  padding: 0 20px;
  cursor: pointer;
  font-weight: 500;
  white-space: nowrap;
}

.header-search button:hover { background: var(--toolshare-teal-dark); }

.header-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--toolshare-white);
  font-size: 13px;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  flex-shrink: 0;
}

.btn-sell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--toolshare-yellow);
  color: var(--toolshare-teal);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-sell:hover { background: var(--toolshare-yellow-hover); }

.btn-sell.active {
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.header-nav-link {
  color: var(--toolshare-white);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.header-nav-link:hover { background: rgba(255, 255, 255, 0.1); }

.header-nav-link.active {
  background: rgba(255, 255, 255, 0.16);
  font-weight: 600;
}

.header-logout-form {
  display: inline;
  margin: 0;
}

.header-logout-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.header-badge {
  background: var(--toolshare-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  margin-left: 4px;
}

.header-user-menu {
  position: relative;
  flex-shrink: 0;
}

.header-user-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--toolshare-white);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.header-user-btn:hover,
.header-user-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.6);
}

.header-user-avatar {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

img.header-user-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.header-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  padding: 8px 0;
  z-index: 200;
}

.header-user-dropdown-name {
  margin: 0;
  padding: 8px 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--toolshare-teal);
}

.header-user-dropdown-email {
  margin: 0;
  padding: 2px 16px 8px;
  font-size: 12px;
  color: var(--toolshare-muted);
}

.header-user-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--toolshare-text, #000000);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.header-user-dropdown-item:hover,
.header-user-dropdown-item.active {
  background: rgba(0, 0, 0, 0.06);
}

.header-user-dropdown-admin {
  color: #000000;
  font-weight: 600;
}

.header-user-dropdown-divider {
  height: 1px;
  background: var(--toolshare-border, #e5e5e5);
  margin: 6px 0;
}

.header-user-dropdown-logout {
  margin: 0;
}

.header-user-dropdown-logout-btn {
  color: var(--toolshare-danger, #c0392b);
  font-weight: 600;
}

.header-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--toolshare-white);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav {
  display: none;
  background: var(--toolshare-teal-dark);
  padding: 8px 16px 16px;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  color: var(--toolshare-white);
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.mobile-nav-divider {
  padding: 16px 8px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--toolshare-white);
  color: var(--toolshare-teal);
  transition: background 0.15s, box-shadow 0.15s;
}

.btn:hover { box-shadow: var(--toolshare-shadow); }

.btn-primary {
  background: var(--toolshare-teal);
  color: var(--toolshare-white);
  border-color: var(--toolshare-teal);
}

.btn-primary:hover { background: var(--toolshare-teal-dark); }

.btn-accent {
  background: var(--toolshare-yellow);
  color: var(--toolshare-teal);
  border-color: var(--toolshare-yellow);
}

.btn-accent:hover { background: var(--toolshare-yellow-hover); }

.btn-outline {
  background: transparent;
  border-color: var(--toolshare-border);
  color: var(--toolshare-teal);
}

.btn-danger {
  background: var(--toolshare-danger);
  color: #fff;
  border-color: var(--toolshare-danger);
}

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ── Home hero (marketplace-style) ── */

.home-hero {
  background: var(--toolshare-teal);
  padding: 48px 16px 64px;
  text-align: center;
}

.home-hero h1 {
  color: var(--toolshare-white);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
}

.home-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 28px;
}

.home-search {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  background: var(--toolshare-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.home-search input {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 16px;
  outline: none;
}

.home-search button {
  border: none;
  background: var(--toolshare-teal);
  color: var(--toolshare-white);
  padding: 0 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.home-categories {
  padding: 24px 0;
  background: var(--toolshare-white);
  border-bottom: 1px solid var(--toolshare-border);
}

.category-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  min-width: 80px;
  border-radius: var(--radius-md);
  background: var(--toolshare-bg);
  color: var(--toolshare-text);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  transition: background 0.15s;
}

.category-chip:hover,
.category-chip.active {
  background: rgba(0, 0, 0, 0.08);
  color: var(--toolshare-teal);
}

.category-chip-icon {
  width: 48px;
  height: 48px;
  background: var(--toolshare-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--toolshare-shadow);
}

.home-section {
  padding: 32px 0;
}

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

.section-head h2 {
  font-size: 20px;
  font-weight: 700;
}

.section-head a {
  color: var(--toolshare-teal);
  font-weight: 600;
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature-box {
  background: var(--toolshare-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--toolshare-shadow);
}

.feature-box h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.feature-box p {
  color: var(--toolshare-muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

/* ── Listing cards (marketplace-style) ── */

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.listing-card {
  background: var(--toolshare-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--toolshare-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.listing-card:hover {
  box-shadow: var(--toolshare-shadow-hover);
  transform: translateY(-2px);
}

.listing-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  overflow: hidden;
}

.listing-card-visual { position: relative; }
.listing-card-image-link { display: block; }
.listing-card-body {
  color: inherit;
  text-decoration: none;
}
.tool-distance-badge {
  position: absolute;
  z-index: 2;
  right: 9px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  max-width: calc(100% - 18px);
  padding: 7px 11px;
  overflow: hidden;
  border: 1px solid rgba(18, 35, 45, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 10px rgba(12, 25, 32, .18);
  color: #173d38;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.tool-distance-badge svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tool-distance-badge:hover:not(:disabled) { background: #fff; box-shadow: 0 3px 12px rgba(12, 25, 32, .24); }
.tool-distance-badge:focus-visible { outline: 3px solid var(--toolshare-yellow); outline-offset: 2px; }
.tool-distance-badge:disabled { cursor: not-allowed; opacity: .85; }
.tool-distance-attribution { margin: 4px 0 12px; color: var(--toolshare-muted); font-size: 12px; }
.tool-distance-attribution a { text-decoration: underline; text-underline-offset: 2px; }

.listing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, rgba(0, 0, 0, 0.16) 100%);
  color: var(--toolshare-muted);
  font-size: 48px;
}

.listing-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.listing-badge-free {
  background: var(--toolshare-success);
  color: var(--toolshare-teal);
}

.listing-badge-unlisted {
  background: var(--toolshare-muted);
  color: #fff;
}

.listing-card-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.listing-category-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(36, 92, 80, .14);
  border-radius: 999px;
  background: #fff7e4;
  color: var(--toolshare-teal-dark);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 2px 8px rgba(25, 35, 32, .12);
}

.listing-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--toolshare-price);
}

.listing-card-price-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.listing-rent-badge { display: inline-flex; min-height: 24px; align-items: center; padding: 3px 9px; border: 1px solid rgba(36, 92, 80, .18); border-radius: 999px; background: #e8f0ed; color: var(--toolshare-teal-dark); font-size: 11px; font-weight: 700; line-height: 1; }

.listing-price-free { color: #000000; }

.listing-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--toolshare-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  margin: 0;
}

.listing-meta {
  font-size: 12px;
  color: var(--toolshare-muted);
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.listing-meta-dot::before {
  content: "·";
  margin: 0 4px;
}

/* ── Browse / filters ── */

.browse-bar {
  background: var(--toolshare-white);
  border-bottom: 1px solid var(--toolshare-border);
  padding: 16px 0;
  margin-bottom: 20px;
}

.browse-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.breadcrumb {
  font-size: 13px;
  color: var(--toolshare-muted);
  margin-bottom: 4px;
}

.browse-breadcrumb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.browse-current-location { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; color: var(--toolshare-muted); font-size: 12px; }
.browse-current-location-value { max-width: min(42vw, 460px); overflow: hidden; padding: 4px 0; border: 0; background: transparent; color: var(--toolshare-muted); font: inherit; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.browse-current-location-value:not(:disabled) { cursor: pointer; }
.browse-current-location-value:hover:not(:disabled) { color: var(--toolshare-teal); }
.browse-current-location-value:focus-visible { outline: 2px solid var(--toolshare-yellow); outline-offset: 2px; }
.browse-current-location-value:disabled { opacity: 1; }
.browse-location-attribution { flex: 0 0 auto; color: var(--toolshare-muted); font-size: 11px; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 600px) {
  .browse-breadcrumb-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .browse-current-location { width: 100%; justify-content: flex-start; }
}

.vehicle-document-checklist { margin: 12px 0; padding: 14px; border: 1px solid var(--toolshare-border); border-radius: 12px; background: #fbfaf7; }
.vehicle-rental-document-note { margin: 12px 0; padding: 12px 14px; border-left: 3px solid var(--toolshare-yellow); border-radius: 8px; background: #fff9e9; color: var(--toolshare-text); font-size: 13px; }
.vehicle-rental-document-note p { margin: 5px 0 0; color: var(--toolshare-muted); }
.vehicle-document-checklist h4 { margin: 0 0 5px; color: var(--toolshare-text); font-size: 15px; }
.vehicle-document-checklist > p { margin: 0 0 10px; }
.vehicle-document-list { display: grid; gap: 7px; margin-bottom: 12px; }
.vehicle-document-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 1px solid var(--toolshare-border); border-radius: 8px; background: #fff; }
.vehicle-document-row label { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; color: var(--toolshare-text); font-size: 13px; }
.vehicle-document-row label input { flex: 0 0 auto; }
.vehicle-document-row label small { color: var(--toolshare-muted); }
.vehicle-document-status { flex: 0 0 auto; color: var(--toolshare-muted); font-size: 11px; text-align: right; }
.vehicle-documents-ready { margin: 10px 0 0; color: var(--toolshare-teal); font-weight: 700; }
@media (max-width: 640px) {
  .vehicle-document-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .vehicle-document-status { text-align: left; padding-left: 23px; }
}

/* Product gallery: keep the thumbnail rail beside the image on wider screens. */
.detail-gallery-stack { display: flex; align-items: stretch; gap: 12px; }
.detail-gallery-stack > .detail-gallery { flex: 1 1 auto; min-width: 0; }
.detail-gallery-stack > .detail-gallery-thumbnails { order: -1; display: flex; flex: 0 0 76px; flex-direction: column; gap: 10px; max-height: min(78vh, 720px); overflow-x: hidden; overflow-y: auto; padding: 0; }
.detail-gallery-stack > .detail-gallery-thumbnails .detail-gallery-thumbnail { flex: 0 0 64px; width: 64px; height: 64px; }
@media (max-width: 700px) {
  .detail-gallery-stack { flex-direction: column; }
  .detail-gallery-stack > .detail-gallery-thumbnails { order: 0; flex: 0 0 auto; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; }
}

.breadcrumb strong { color: var(--toolshare-text); }

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--toolshare-border);
  background: var(--toolshare-white);
  font-size: 13px;
  color: var(--toolshare-text);
  cursor: pointer;
}

.filter-pill:hover,
.filter-pill.active {
  border-color: var(--toolshare-teal);
  background: rgba(0, 0, 0, 0.06);
  color: var(--toolshare-teal);
  font-weight: 500;
}

.filter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}

.filter-form select,
.filter-form input[type="number"],
.filter-form input[type="search"],
.filter-form input[name="postal_code"] {
  padding: 8px 12px;
  border: 1px solid var(--toolshare-border);
  border-radius: var(--radius-sm);
  background: var(--toolshare-white);
  font-size: 13px;
  outline: none;
}

.filter-form select:focus,
.filter-form input:focus {
  border-color: var(--toolshare-teal);
}

.results-count {
  font-size: 13px;
  color: var(--toolshare-muted);
  margin-bottom: 16px;
}

/* ── Product detail (marketplace-style) ── */

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
  padding-top: 24px;
}

.detail-gallery {
  background: var(--toolshare-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--toolshare-shadow);
}

.detail-gallery-main {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #ffffff;
}

.detail-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-gallery-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px;
  scrollbar-width: thin;
}

.detail-gallery-thumbnail {
  flex: 0 0 76px;
  width: 76px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f0efe9;
  cursor: pointer;
}

.detail-gallery-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-gallery-thumbnail.active { border-color: var(--toolshare-yellow); }
.detail-gallery-thumbnail:focus-visible { outline: 2px solid var(--toolshare-teal); outline-offset: 2px; }

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-price-box {
  background: var(--toolshare-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--toolshare-shadow);
}

.detail-price {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.detail-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.35;
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--toolshare-muted);
  margin-bottom: 16px;
}

.detail-meta-tag {
  background: var(--toolshare-bg);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.seller-box {
  background: var(--toolshare-white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--toolshare-shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.seller-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--toolshare-teal);
  color: var(--toolshare-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.seller-name { font-weight: 600; font-size: 15px; }
.seller-sub { font-size: 12px; color: var(--toolshare-muted); }

.detail-panel {
  background: var(--toolshare-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--toolshare-shadow);
}

.detail-panel h3 {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--toolshare-border);
}

.detail-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--toolshare-text);
  white-space: pre-wrap;
}

/* ── Forms ── */

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--toolshare-muted);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--toolshare-border);
  border-radius: var(--radius-sm);
  background: var(--toolshare-white);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.field input[type="checkbox"],
.field input[type="radio"],
.checkbox-row input[type="checkbox"],
.checkbox-row input[type="radio"] {
  width: auto;
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
  accent-color: var(--toolshare-teal);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--toolshare-teal);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-hint {
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.terms-accept-row label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--toolshare-text);
}

.terms-accept-row input {
  margin-top: 3px;
  flex-shrink: 0;
}

/* ── Auth pages ── */

.auth-page {
  min-height: calc(100vh - var(--header-h) - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--toolshare-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--toolshare-shadow);
}

.auth-card h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.auth-card .subtitle {
  color: var(--toolshare-muted);
  margin-bottom: 24px;
  font-size: 14px;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--toolshare-muted);
}

.auth-legal-links {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--toolshare-muted);
  line-height: 1.6;
}

.home-links-section {
  padding-top: 0;
}

.home-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-link-card {
  display: block;
  background: var(--toolshare-white);
  border: 1px solid var(--toolshare-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--toolshare-shadow);
  transition: box-shadow 0.15s ease;
}

.home-link-card:hover {
  box-shadow: var(--toolshare-shadow-hover);
}

.home-link-card strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--toolshare-teal);
}

.profile-help-panel {
  margin-top: 24px;
  padding: 20px;
  background: var(--toolshare-white);
  border: 1px solid var(--toolshare-border);
  border-radius: var(--radius-md);
}

.profile-help-panel h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.profile-help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Page sections ── */

.page-title-bar {
  background: var(--toolshare-white);
  border-bottom: 1px solid var(--toolshare-border);
  padding: 20px 0;
  margin-bottom: 24px;
}

.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.page-title-bar h1 {
  font-size: 22px;
}

.page-title-bar .subtitle {
  font-size: 14px;
  color: var(--toolshare-muted);
  margin-top: 4px;
}

.tabs-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--toolshare-border);
  margin-bottom: 24px;
}

.tab-item {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--toolshare-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-item:hover { color: var(--toolshare-teal); }

.tab-item.active {
  color: var(--toolshare-teal);
  border-bottom-color: var(--toolshare-teal);
  font-weight: 600;
}

/* ── Request cards ── */

.request-card {
  background: var(--toolshare-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--toolshare-shadow);
  margin-bottom: 12px;
}

.request-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.request-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.request-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--toolshare-border);
}

.inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.request-card-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--toolshare-border);
  border-radius: var(--radius-sm);
  margin: 8px 0;
  resize: vertical;
}

/* ── Badges ── */

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: capitalize;
}

.badge-pending { background: #fff3cd; color: #856404; }
.badge-approved, .badge-completed { background: #d4edda; color: #155724; }
.badge-active { background: #cce5ff; color: #004085; }
.badge-denied, .badge-cancelled, .badge-no_show { background: var(--toolshare-bg); color: var(--toolshare-muted); }
.badge-damaged, .badge-overdue { background: #f8d7da; color: #721c24; }

/* ── Alerts / flash ── */

.flash-stack {
  width: 100%;
  margin: 0 auto;
  padding: 0 0 12px;
}

.alert {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.45;
}

.inline-feedback-stack { display: block; }
.inline-feedback { width: 100%; }
.page-wrap > .inline-feedback-stack { max-width: 1280px; padding: 0 16px 12px; }
.auth-card > .inline-feedback-stack,
.detail-panel > .inline-feedback-stack,
.request-card > .inline-feedback-stack,
.work-form-card > .inline-feedback-stack { max-width: none; padding: 0 0 12px; }

.alert-error { background: var(--toolshare-error-bg, #fbefed); color: var(--toolshare-danger, #a33b32); border: 1px solid var(--toolshare-error-border, #e8bcb6); }
.alert-success { background: var(--toolshare-success-bg, #eaf3ee); color: var(--toolshare-teal-dark, #19483f); border: 1px solid var(--toolshare-success-border, #b9d2c5); }
.alert-info { background: var(--toolshare-info-bg, #edf1ef); color: var(--toolshare-text, #263238); border: 1px solid var(--toolshare-info-border, #cbd8d2); }

/* ── Notifications ── */

.notif-list { display: flex; flex-direction: column; gap: 8px; }

.notif-item {
  background: var(--toolshare-white);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--toolshare-shadow);
}

.notif-item.unread {
  border-left: 4px solid var(--toolshare-yellow);
}

.notif-icon { font-size: 24px; flex-shrink: 0; }
.notif-body { flex: 1; min-width: 0; }
.notif-time { font-size: 12px; color: var(--toolshare-muted); margin-top: 4px; }
.notification-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 20px 0; }
.notification-pagination-actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 520px) {
  .notification-pagination { align-items: flex-start; flex-direction: column; }
  .notification-pagination-actions { width: 100%; justify-content: space-between; }
}

/* ── Profile ── */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.profile-stat {
  background: var(--toolshare-white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--toolshare-shadow);
}

.profile-stat label {
  font-size: 12px;
  color: var(--toolshare-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}

.transaction-overview-breakdown {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--toolshare-border, #e8e5df);
  font-size: 13px;
}

.transaction-overview-breakdown strong {
  font-weight: 600;
  text-align: right;
}

.profile-stat value,
.profile-stat p {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.member-profile-header {
  align-items: stretch;
}

.profile-stat-highlight {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-payout-trigger {
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.profile-payout-trigger:hover {
  transform: translateY(-2px);
  box-shadow: var(--toolshare-shadow-hover);
}

.profile-payout-trigger:focus-visible,
.payout-dialog button:focus-visible,
.payout-dialog input:focus-visible {
  outline: 3px solid var(--toolshare-teal);
  outline-offset: 3px;
}

.profile-payout-trigger .small { display: block; margin-top: 8px; }

.payout-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 24px;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--toolshare-text);
  background: var(--toolshare-white);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.payout-dialog::backdrop { background: rgba(15, 23, 42, 0.52); }
.payout-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.payout-dialog-header h2 { margin: 0 0 6px; font-size: 20px; }
.payout-dialog-header p { margin: 0; font-size: 14px; }
.payout-dialog-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--toolshare-text); font-size: 28px; line-height: 1; cursor: pointer; }
.payout-dialog-close:hover { background: rgba(15, 23, 42, 0.07); }
.payout-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.member-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--toolshare-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.member-avatar-lg img,
.item-chat-avatar img,
.profile-picture-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-picture-editor {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 24px 0 20px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--toolshare-white);
  box-shadow: var(--toolshare-shadow);
}

.profile-overall-rating {
  position: absolute;
  right: 20px;
  bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--toolshare-teal);
  font-size: 13px;
}
.profile-overall-rating-label,
.profile-overall-rating-count { color: var(--toolshare-muted, #718087); }
.profile-overall-rating strong { font-size: 14px; }

.profile-picture-avatar {
  display: grid;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--toolshare-teal);
  color: #fff;
  font-size: 32px;
  font-weight: 700;
}

.profile-picture-controls { min-width: 0; }
.profile-picture-controls h2 { margin: 0 0 4px; font-size: 18px; }
.profile-picture-controls p { margin: 0 0 12px; }
.profile-picture-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.profile-picture-upload input[type="file"] { max-width: 100%; }
.profile-picture-remove { margin-top: 10px; }

@media (max-width: 520px) {
  .profile-picture-editor { align-items: flex-start; flex-direction: column; padding-bottom: 48px; }
  .profile-overall-rating { right: 16px; bottom: 14px; }
}

.seller-profile-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
}

.header-nav-pass {
  color: var(--toolshare-teal);
  font-weight: 600;
}

.subscription-plan-card,
.subscription-active-card {
  text-align: center;
}

.subscription-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--toolshare-teal);
}

.subscription-price span {
  font-size: 16px;
  font-weight: 400;
  color: var(--toolshare-muted);
}

.subscription-features {
  text-align: left;
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--toolshare-text);
}

.subscription-features li {
  margin-bottom: 8px;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--toolshare-border);
}

.review-item:last-child {
  border-bottom: none;
}

.review-stars {
  color: #f2bd4b;
  margin-bottom: 4px;
}

.reviewer-identity { display: inline-flex; min-width: 0; align-items: center; gap: 9px; }
.reviewer-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; overflow: hidden; border-radius: 50%; background: var(--toolshare-yellow); color: var(--toolshare-text); font-size: 13px; font-weight: 700; }
.reviewer-avatar img { width: 100%; height: 100%; object-fit: cover; }

.listing-card-compact {
  min-height: auto;
}

@media (max-width: 768px) {
  .profile-stat-highlight {
    grid-column: span 1;
  }
}

/* ── Empty state ── */

.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--toolshare-white);
  border-radius: var(--radius-md);
  box-shadow: var(--toolshare-shadow);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--toolshare-muted);
  margin-bottom: 20px;
}

/* ── Footer ── */

.site-footer {
  background: var(--toolshare-teal);
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding: 40px 16px 32px;
}

.footer-brand strong {
  display: block;
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
}

.footer-brand p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  max-width: 280px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  padding: 6px 0;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a { color: rgba(255, 255, 255, 0.8); }
.footer-links a:hover { color: #fff; }

/* ── Info / legal pages ── */

.info-page {
  background: var(--toolshare-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--toolshare-shadow);
  margin-bottom: 32px;
}

.info-section {
  margin-bottom: 28px;
}

.info-section:last-of-type {
  margin-bottom: 0;
}

.info-section h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--toolshare-teal);
}

.info-section p {
  margin: 0 0 12px;
  color: var(--toolshare-text);
  line-height: 1.65;
}

.info-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.65;
}

.info-list li {
  margin-bottom: 8px;
}

.info-links {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--toolshare-border);
  font-size: 14px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

.contact-card,
.contact-info-card {
  background: var(--toolshare-white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--toolshare-shadow);
}

.contact-card h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.contact-info-card h3 {
  font-size: 16px;
  margin-bottom: 16px;
}

.contact-info-card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
}

.contact-aside .small {
  margin-top: 16px;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .info-page {
    padding: 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
}

/* ── Payment card ── */

.payment-strip {
  background: var(--toolshare-bg);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.payment-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

.payment-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.payment-summary-total {
  padding-top: 8px;
  border-top: 1px solid var(--toolshare-border);
  font-size: 15px;
}

.listing-badge-promoted {
  background: #fff3cd;
  color: #856404;
}

.boost-panel {
  margin-top: 16px;
}

.boost-price {
  font-size: 22px;
  font-weight: 700;
  margin: 12px 0;
}

.boost-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--toolshare-muted);
}

.header-nav-admin {
  color: #000000;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.admin-stat-card {
  background: #fff;
  border: 1px solid var(--toolshare-border);
  border-radius: 8px;
  padding: 16px;
}

.admin-stat-card-total {
  background: linear-gradient(135deg, #000000, #000000);
  color: #fff;
}

.admin-stat-card-total .admin-stat-label,
.admin-stat-card-total .admin-stat-meta {
  color: rgba(255, 255, 255, 0.85);
}

.admin-stat-label {
  font-size: 13px;
  color: var(--toolshare-muted);
  margin-bottom: 6px;
}

.admin-stat-value {
  font-size: 24px;
  font-weight: 700;
}

.admin-stat-meta {
  font-size: 12px;
  color: var(--toolshare-muted);
  margin-top: 4px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--toolshare-border);
  text-align: left;
}

.admin-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--toolshare-muted);
}

.transactions-table {
  min-width: 820px;
  table-layout: fixed;
}

.transactions-table .txn-date-column { width: 16%; }
.transactions-table .txn-type-column { width: 16%; }
.transactions-table .txn-item-column { width: 23%; }
.transactions-table .txn-amount-column { width: 13%; }
.transactions-table .txn-details-column { width: 32%; }

.transactions-table th.txn-amount,
.transactions-table td.txn-amount {
  white-space: nowrap;
  text-align: right;
}

.admin-body {
  background: #ffffff;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #000000;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-brand {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
}

.admin-brand a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 12px;
  flex: 1;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-nav-icon {
  width: 20px;
  text-align: center;
}

.admin-sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-logout-btn {
  color: #f2bd4b;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 28px 0;
}

.admin-page-title {
  margin: 0;
  font-size: 28px;
}

.admin-subtitle {
  margin: 4px 0 0;
  color: var(--toolshare-muted);
  font-size: 14px;
}

.admin-topbar-user {
  text-align: right;
  font-size: 14px;
}

.admin-content {
  padding: 16px 28px 32px;
}

.admin-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.admin-user-create { padding: 18px 20px; }
.admin-user-create-summary { cursor: pointer; font-weight: 700; }
.admin-user-create-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-items: end; gap: 0 16px; margin-top: 16px; }
.admin-user-create-form button { justify-self: start; margin-bottom: 16px; }

.admin-toolbar input[type="search"],
.admin-toolbar select {
  padding: 8px 12px;
  border: 1px solid var(--toolshare-border);
  border-radius: 6px;
  font-size: 14px;
  min-width: 220px;
}

.admin-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.admin-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.admin-actions-cell {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-user-role-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.admin-user-role-form select { min-width: 86px; max-width: 110px; padding: 7px 8px; border: 1px solid var(--toolshare-border); border-radius: 8px; background: var(--toolshare-white); color: var(--toolshare-text); }
.admin-user-password-reset { flex-basis: 100%; font-size: 13px; }
.admin-user-password-reset summary { cursor: pointer; color: var(--toolshare-teal); font-weight: 600; }
.admin-user-password-reset form { display: grid; gap: 7px; min-width: 220px; margin-top: 8px; }
.admin-user-password-reset input[type="password"] { width: 100%; min-width: 0; padding: 7px 8px; border: 1px solid var(--toolshare-border); border-radius: 7px; }
.admin-user-password-confirm { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; }
.admin-user-password-confirm input { margin-top: 3px; }

.skill-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

/* ── Work marketplace ── */

.work-page {
  padding-bottom: 32px;
}

.work-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--toolshare-border);
}

.work-tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--toolshare-muted);
  text-decoration: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  margin-bottom: -1px;
  transition: color 0.15s, background 0.15s;
}

.work-tab:hover {
  color: var(--toolshare-teal);
  background: rgba(0, 0, 0, 0.04);
}

.work-tab.active {
  color: var(--toolshare-teal);
  background: var(--toolshare-white);
  border-color: var(--toolshare-border);
  border-bottom-color: var(--toolshare-white);
}

.work-form-card {
  padding: 24px;
}

.work-form-intro {
  font-size: 14px;
  color: var(--toolshare-muted);
  line-height: 1.55;
  margin: 0 0 24px;
}

.work-fieldset {
  border: none;
  margin: 0 0 24px;
  padding: 0;
}

.work-legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--toolshare-text);
  margin-bottom: 12px;
  padding: 0;
}

.field-optional {
  font-weight: 400;
  color: var(--toolshare-muted);
}

.skill-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.skill-group {
  margin-bottom: 20px;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--toolshare-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.skill-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--toolshare-border);
  border-radius: var(--radius-sm);
  background: var(--toolshare-white);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  min-height: 48px;
}

.skill-chip:hover {
  border-color: var(--toolshare-teal);
}

.skill-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.skill-chip-label {
  font-size: 14px;
  line-height: 1.35;
  color: var(--toolshare-text);
  flex: 1;
}

.skill-chip::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--toolshare-border);
  border-radius: 4px;
  background: var(--toolshare-white);
  transition: border-color 0.15s, background 0.15s;
}

.skill-chip:has(input:checked),
.skill-chip-selected {
  border-color: var(--toolshare-teal);
  background: rgba(0, 0, 0, 0.04);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.skill-chip:has(input:checked)::before,
.skill-chip-selected::before {
  border-color: var(--toolshare-teal);
  background: var(--toolshare-teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1 5l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.work-availability-card {
  padding: 16px;
  border: 1px solid var(--toolshare-border);
  border-radius: var(--radius-sm);
  background: #f8fafb;
  margin-bottom: 20px;
}

.work-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  margin: 0;
}

.work-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.work-toggle-copy strong {
  font-size: 15px;
  color: var(--toolshare-text);
}

.work-toggle-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.work-toggle-switch {
  flex-shrink: 0;
  width: 48px;
  height: 28px;
  border-radius: 14px;
  background: #cbd5dc;
  position: relative;
  transition: background 0.2s;
}

.work-toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.work-toggle-row:has(.work-toggle-input:checked) .work-toggle-switch {
  background: var(--toolshare-teal);
}

.work-toggle-row:has(.work-toggle-input:checked) .work-toggle-switch::after {
  transform: translateX(20px);
}

.work-submit-btn {
  margin-top: 4px;
  min-height: 48px;
  font-size: 15px;
}

.work-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.work-filter-bar select {
  flex: 1;
  min-width: 160px;
  max-width: 280px;
  padding: 10px 12px;
  border: 1px solid var(--toolshare-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--toolshare-white);
}

.work-filter-bar input[name="postal_code"] {
  min-height: 46px;
  flex: 1;
  min-width: 170px;
  max-width: 240px;
  padding: 10px 12px;
  border: 1px solid var(--toolshare-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--toolshare-white);
}

.work-job-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-job-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 16px 18px;
  border: 1px solid var(--toolshare-border);
  border-radius: var(--radius-sm);
  background: var(--toolshare-white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.work-rating-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--toolshare-border); }
.work-rating-section h3 { margin: 0 0 12px; }
.work-rating-form { display: grid; max-width: 520px; gap: 8px; }
.work-rating-form label { margin-top: 4px; font-size: 13px; font-weight: 700; }
.work-rating-form select, .work-rating-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--toolshare-border); border-radius: 10px; background: #fff; color: var(--toolshare-text); font: inherit; }
.work-rating-form textarea { resize: vertical; }
.work-rating-form .btn { justify-self: start; margin-top: 4px; }
.work-rating-received { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #f5f7f6; }
.work-rating-received p { margin: 6px 0 0; }

.work-job-card:hover {
  border-color: var(--toolshare-teal);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.work-job-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.work-job-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--toolshare-teal);
}

.work-job-meta {
  font-size: 13px;
  color: var(--toolshare-muted);
  line-height: 1.45;
}

.work-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.work-panel-title {
  font-size: 16px;
  margin: 0 0 12px;
}

.work-fee-note {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #f0f7f8;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 13px;
  color: var(--toolshare-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ── Hindi voice mode (labour) ── */

.voice-labour-page {
  padding-bottom: 40px;
}

.voice-title-bar {
  background: linear-gradient(135deg, #000000, #000000);
  color: #fff;
}

.voice-title-bar .subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.voice-h1 {
  font-size: clamp(22px, 5vw, 28px);
  margin: 0;
}

.voice-h2 {
  font-size: 18px;
  margin: 0 0 14px;
}

.voice-container {
  max-width: 520px;
}

.voice-panel {
  text-align: center;
  padding: 24px 16px;
  margin: 20px 0;
  background: #fff;
  border: 2px solid var(--toolshare-teal);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.voice-mic-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(145deg, #f2bd4b, #f2bd4b);
  color: #000000;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.45);
  transition: transform 0.15s;
}

.voice-mic-btn:active {
  transform: scale(0.96);
}

.voice-mic-icon {
  font-size: 36px;
}

.voice-mic-label {
  font-size: 16px;
  font-weight: 700;
}

.voice-status {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--toolshare-text);
}

.voice-help-box {
  font-size: 13px;
  line-height: 1.55;
  padding: 12px 14px;
  background: rgba(242, 189, 75, .22);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.voice-section {
  margin-bottom: 28px;
}

.voice-job-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--toolshare-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.voice-active-card {
  border-color: var(--toolshare-teal);
  border-width: 2px;
}

.voice-job-num {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--toolshare-teal);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.voice-job-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  padding-right: 44px;
}

.voice-job-pay {
  font-size: 22px;
  font-weight: 700;
  color: var(--toolshare-teal);
  margin: 8px 0;
}

.voice-job-meta {
  font-size: 14px;
  color: var(--toolshare-muted);
}

.voice-big-btn {
  min-height: 52px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 12px;
}

.voice-skill-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.voice-skill-tile {
  display: block;
  padding: 16px;
  border: 2px solid var(--toolshare-border);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  background: #fff;
}

.voice-skill-tile.selected {
  border-color: var(--toolshare-teal);
  background: rgba(0, 0, 0, 0.06);
}

.voice-skill-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.voice-skill-hi {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.header-nav-voice {
  color: #000000;
  font-weight: 600;
}

.work-tab-voice {
  color: #000000;
}

.voice-footer-link {
  text-align: center;
  margin-top: 24px;
}

.voice-job-focus {
  border: 2px solid #f2bd4b;
  box-shadow: 0 0 0 3px rgba(242, 189, 75, 0.35);
}

.voice-alert-banner {
  margin-bottom: 16px;
}

.voice-mic-setup {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--toolshare-border, #ddd);
}

.voice-panel-inline {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--toolshare-bg-soft, #f7f7f7);
  border-radius: 8px;
}

.voice-mic-setup-title {
  margin: 0 0 8px;
  font-size: 14px;
}

.voice-permit-btn {
  margin-bottom: 8px;
}

.voice-mic-help {
  margin-top: 10px;
  padding: 10px;
  background: rgba(242, 189, 75, .22);
  border: 1px solid #f2bd4b;
  border-radius: 8px;
  text-align: left;
}

.voice-mic-steps {
  margin: 8px 0;
  padding-left: 20px;
}

.voice-text-fallback {
  margin-top: 12px;
  text-align: left;
}

.voice-text-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.voice-text-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid var(--toolshare-border, #ccc);
  border-radius: 8px;
}

.voice-embedded-warn {
  margin-bottom: 12px;
  padding: 12px;
  background: #fef2f2;
  border: 1px solid #f87171;
  border-radius: 8px;
  text-align: left;
}

.voice-perm-denied {
  margin-bottom: 12px;
  padding: 12px;
  background: #fff1f2;
  border: 2px solid #ef4444;
  border-radius: 8px;
  text-align: left;
}

.voice-chrome-settings-url {
  display: block;
  word-break: break-all;
  font-size: 11px;
  margin: 6px 0;
  padding: 6px;
  background: #f3f4f6;
  border-radius: 4px;
}

.voice-diag-log {
  margin-top: 8px;
  padding: 8px;
  background: #111;
  color: #0f0;
  border-radius: 6px;
  white-space: pre-wrap;
  max-height: 160px;
  overflow: auto;
}

.voice-open-chrome {
  margin-top: 8px;
}

.work-applicant-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 14px;
  margin: 14px 0 0;
}

.work-applicant-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: space-between;
  align-content: start;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--toolshare-border, #e5e5e5);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(22, 35, 31, 0.06);
}

.work-applicant-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
}

.work-applicant-heading h4 {
  margin: 0;
}

.work-applicant-rating {
  color: #8a5b00;
  font-size: 0.9rem;
  font-weight: 700;
}

.work-applicant-history {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--toolshare-border, #e5e5e5);
}

.work-applicant-history ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.work-applicant-history li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--toolshare-border, #e5e5e5);
  font-size: 0.9rem;
}

.work-applicant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--toolshare-border, #e5e5e5);
}

.voice-panel-inline .voice-mic-setup {
  border-bottom: none;
  padding-bottom: 0;
}

.voice-mic-btn-sm {
  padding: 12px 16px;
  min-height: auto;
}

.voice-mic-btn-sm .voice-mic-icon {
  font-size: 22px;
}

.notif-open-link {
  display: flex;
  flex: 1;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.notif-cta {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--toolshare-teal);
}

.work-chat-section {
  margin: 20px 0;
  padding: 16px;
  background: var(--toolshare-bg-soft, #f7f7f7);
  border-radius: 8px;
}

.work-chat-thread {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.work-chat-bubble {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--toolshare-border, #e5e5e5);
  max-width: 92%;
}

.work-chat-bubble.mine {
  align-self: flex-end;
  background: #e6f4f1;
}

.work-chat-bubble p {
  margin: 4px 0 0;
  font-size: 14px;
}

.work-chat-form textarea {
  width: 100%;
  margin-bottom: 8px;
  resize: vertical;
}

@media (min-width: 480px) {
  .voice-skill-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.work-list-compact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.work-list-compact li {
  padding: 8px 0;
  border-bottom: 1px solid var(--toolshare-border);
}

.admin-login-body {
  background: linear-gradient(135deg, #000000, #000000);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-login-wrap {
  width: 100%;
  max-width: 420px;
}

.admin-login-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.admin-login-brand {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
  color: #000000;
}

.admin-login-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

/* ── Modern ToolShare home ── */

.home-page {
  --home-ink: #000000;
  --home-muted: rgba(0, 0, 0, 0.72);
  --home-green: #000000;
  --home-mint: #ffffff;
  --home-paper: #ffffff;
  color: var(--home-ink);
  background: #fff;
  font-family: "Work Sans", var(--font);
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page strong {
  font-family: "Outfit", "Work Sans", var(--font);
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 8vw, 104px) 0 clamp(58px, 8vw, 96px);
  text-align: left;
  color: var(--home-ink);
  background:
    radial-gradient(ellipse at 78% 10%, rgba(242, 189, 75, .2), transparent 36%),
    linear-gradient(118deg, #ffffff 0%, #ffffff 100%);
}

.home-hero::after {
  position: absolute;
  right: -95px;
  bottom: -220px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, .96fr);
  align-items: center;
  gap: clamp(24px, 6vw, 88px);
}

.home-hero-copy { max-width: 620px; }

.home-eyebrow,
.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #000000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-eyebrow { margin-bottom: 20px; }

.home-eyebrow-dot,
.home-live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #f2bd4b;
  box-shadow: 0 0 0 4px rgba(242, 189, 75, .24);
}

.home-hero h1 {
  max-width: 650px;
  margin: 0 0 18px;
  color: #000000;
  font-size: clamp(44px, 6.2vw, 76px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .99;
}

.home-hero h1 span { color: #000000; background: linear-gradient(transparent 72%, #f2bd4b 72%); }

.home-hero-copy > p:not(.home-join-note) {
  max-width: 520px;
  margin: 0 0 30px;
  color: var(--home-muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
}

.home-search {
  display: flex;
  align-items: center;
  max-width: 600px;
  min-height: 62px;
  margin: 0;
  padding: 6px;
  overflow: visible;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .1);
}

.home-search-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  margin: 0 12px 0 13px;
  fill: none;
  stroke: rgba(0, 0, 0, 0.72);
  stroke-width: 1.8;
}

.home-search input {
  min-width: 0;
  min-height: 48px;
  padding: 10px 0;
  color: var(--home-ink);
  font-size: 15px;
  outline: none;
}

.home-search input::placeholder { color: rgba(0, 0, 0, 0.72); opacity: 1; }

.home-search button,
.home-primary-cta {
  display: inline-flex;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  color: #000000;
  background: #f2bd4b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.home-search button:hover,
.home-primary-cta:hover {
  transform: translateY(-2px);
  background: #f2bd4b;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
}

.home-search button:focus-visible,
.home-primary-cta:focus-visible,
.home-secondary-cta:focus-visible,
.home-text-link:focus-visible,
.home-page a:focus-visible {
  outline: 3px solid #f2bd4b;
  outline-offset: 3px;
}

.home-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: #000000;
  font-size: 14px;
  font-weight: 600;
}

.home-hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.home-primary-cta { min-height: 54px; padding: 0 24px; }

.home-secondary-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 12px;
  color: var(--home-green);
  font-size: 14px;
  font-weight: 700;
}

.home-join-note { margin: 16px 0 0; color: var(--home-muted); font-size: 13px; }

.home-hero-art {
  position: relative;
  display: flex;
  min-height: 350px;
  align-items: center;
  justify-content: center;
}

.home-art-glow {
  position: absolute;
  width: min(88%, 390px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(242, 189, 75, .2);
}

.home-art-orbit {
  position: absolute;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 50%;
}

.home-art-orbit-one { width: 108%; aspect-ratio: 1; }
.home-art-orbit-two { width: 125%; aspect-ratio: 1; border-style: dashed; opacity: .55; }

.home-tool-card {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  padding: 18px 20px 15px;
  transform: rotate(-3deg);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .2);
}

.home-tool-card-top { display: flex; align-items: center; justify-content: space-between; color: rgba(0, 0, 0, 0.72); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.home-live-dot { width: 9px; height: 9px; flex-basis: 9px; background: #f2bd4b; }
.home-tool-illustration { display: grid; height: 218px; place-items: center; margin: 8px 0; overflow: hidden; border-radius: 13px; background: rgba(242, 189, 75, .18); }
.home-tool-illustration svg { width: min(88%, 260px); height: auto; filter: drop-shadow(0 13px 7px rgba(0,0,0,.12)); }
.home-tool-card-bottom { display: flex; align-items: center; gap: 11px; }
.home-tool-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; color: #fff; background: #000000; font-family: "Outfit", sans-serif; font-size: 17px; font-weight: 700; }
.home-tool-card-bottom strong, .home-tool-card-bottom small { display: block; }
.home-tool-card-bottom strong { color: #000000; font-size: 13px; }
.home-tool-card-bottom small { margin-top: 2px; color: rgba(0, 0, 0, 0.72); font-size: 11px; }
.home-tool-arrow { margin-left: auto; color: #000000; font-size: 20px; }

.home-floating-note {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 9px 28px rgba(0, 0, 0, .12);
  color: #000000;
  font-size: 12px;
  font-weight: 700;
}

.home-floating-note-top { top: 12%; right: -1%; }
.home-floating-note-bottom { bottom: 10%; left: -3%; }
.home-note-check, .home-note-spark { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 8px; color: #000000; background: #f2bd4b; }
.home-note-spark { color: #000000; background: #f2bd4b; }

.home-categories { padding: 42px 0 40px; background: #fff; border: 0; }
.home-category-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.home-category-heading h2 { margin-top: 5px; color: var(--home-ink); font-size: clamp(22px, 3vw, 28px); letter-spacing: -.03em; }
.home-category-hint { padding-bottom: 4px; color: rgba(0, 0, 0, 0.72); font-size: 13px; }
.category-scroll { gap: 10px; padding: 4px 2px 12px; scroll-snap-type: x proximity; }
.category-chip { min-width: 130px; min-height: 76px; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 12px; border: 1px solid rgba(0, 0, 0, 0.16); border-radius: 13px; background: #fff; color: #000000; font-size: 12px; text-align: left; scroll-snap-align: start; }
.category-chip:hover, .category-chip.active { border-color: rgba(0, 0, 0, 0.2); background: rgba(242, 189, 75, .22); color: #000000; }
.home-category-mark { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border-radius: 11px; color: #000000; background: #f2bd4b; font-family: "Outfit", sans-serif; font-size: 12px; font-weight: 700; }
.category-chip.active .home-category-mark { color: #fff; background: #000000; }

.home-benefits { padding: 70px 0 78px; background: rgba(0, 0, 0, .025); }
.home-section-intro { max-width: 620px; margin: 0 auto 34px; text-align: center; }
.home-section-intro h2 { margin: 9px 0 9px; color: #000000; font-size: clamp(30px, 4.3vw, 45px); letter-spacing: -.045em; line-height: 1.08; }
.home-section-intro p { margin: 0; color: rgba(0, 0, 0, 0.72); font-size: 15px; line-height: 1.6; }
.home-mobile-break { display: none; }
.home-page .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-page .feature-box { min-height: 205px; padding: 24px; border: 1px solid rgba(0, 0, 0, 0.16); border-radius: 15px; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .045); transition: transform .2s ease, box-shadow .2s ease; }
.home-page .feature-box:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0, 0, 0, .09); }
.home-feature-number { display: inline-flex; min-width: 38px; min-height: 30px; align-items: center; justify-content: center; margin-bottom: 17px; border-radius: 8px; color: #000000; background: #f2bd4b; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.home-page .feature-box h3 { margin-bottom: 8px; color: #000000; font-size: 19px; letter-spacing: -.02em; }
.home-page .feature-box p { color: rgba(0, 0, 0, 0.72); font-size: 14px; line-height: 1.7; }

.home-join-section { padding: 48px 0 12px; background: #fff; }
.home-join-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(26px, 5vw, 48px); border-radius: 20px; background: #f2bd4b; }
.home-join-panel h2 { margin: 7px 0 7px; color: #000000; font-size: clamp(24px, 3.5vw, 36px); letter-spacing: -.04em; }
.home-join-panel p { margin: 0; color: rgba(0, 0, 0, 0.72); font-size: 14px; line-height: 1.6; }
.home-join-panel .home-primary-cta { white-space: nowrap; }
.home-links-section { padding: 34px 0 42px; background: #fff; }
.home-page .home-links-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-page .home-link-card { display: flex; min-height: 84px; flex-direction: column; justify-content: center; gap: 5px; padding: 14px 16px; border: 1px solid rgba(0, 0, 0, 0.16); border-radius: 12px; background: #fff; transition: border-color .18s ease, background .18s ease; }
.home-page .home-link-card:hover { border-color: rgba(0, 0, 0, 0.2); background: #ffffff; }
.home-page .home-link-card strong { color: #000000; font-size: 14px; }
.home-page .home-link-card span { color: rgba(0, 0, 0, 0.72); font-size: 12px; }
.home-page .home-link-card span span { color: #000000; }
.home-page a { cursor: pointer; }
.home-page .home-search button { min-height: 48px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.home-trust-strip { padding: 18px 0; border-top: 1px solid rgba(0, 0, 0, .1); border-bottom: 1px solid rgba(0, 0, 0, .1); background: #fff; }
.home-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-trust-grid > div { display: flex; align-items: center; justify-content: center; gap: 11px; }
.home-trust-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 11px; background: #f2bd4b; color: #000; font-size: 11px; font-weight: 700; }
.home-trust-grid strong, .home-trust-grid small { display: block; }
.home-trust-grid strong { color: #000; font-size: 13px; }
.home-trust-grid small { margin-top: 2px; color: rgba(0, 0, 0, .68); font-size: 11px; }

.listing-card { border: 1px solid rgba(0, 0, 0, .13); border-radius: 14px; }
.listing-card:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
.listing-card-image { background: rgba(0, 0, 0, .035); }
.listing-card-image img { transition: transform .25s ease; }
.listing-card:hover .listing-card-image img { transform: scale(1.025); }
.browse-bar { background: #fff; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.filter-pills { gap: 9px; }
.filter-pill { min-height: 40px; display: inline-flex; align-items: center; padding: 7px 13px; border-radius: 999px; }
.filter-pill:hover, .filter-pill.active { border-color: #000; background: rgba(242, 189, 75, .28); color: #000; }
.detail-gallery-main { overflow: hidden; border: 1px solid rgba(0, 0, 0, .12); border-radius: 16px; }
.seller-avatar { background: #f2bd4b; color: #000; }
.detail-meta-tag { border-radius: 999px; }
.detail-meta-tag-unlisted { background: rgba(242, 189, 75, .32); color: #000; }
.home-page .home-link-card:hover { background: rgba(242, 189, 75, .14); }

.badge-pending { background: #f2bd4b; color: #000; }
.badge-approved, .badge-completed { background: rgba(242, 189, 75, .32); color: #000; }
.badge-active { background: #000; color: #fff; }
.badge-denied, .badge-cancelled, .badge-no_show { background: rgba(0, 0, 0, .06); color: #000; }
.badge-damaged, .badge-overdue { background: #000; color: #fff; }
.alert-error { background: var(--toolshare-error-bg, #fbefed); color: var(--toolshare-danger, #a33b32); border-color: var(--toolshare-error-border, #e8bcb6); border-left: 4px solid var(--toolshare-danger, #a33b32); }
.alert-success { background: var(--toolshare-success-bg, #eaf3ee); color: var(--toolshare-teal-dark, #19483f); border-color: var(--toolshare-success-border, #b9d2c5); border-left: 4px solid var(--toolshare-teal, #245c50); }
.alert-info { background: var(--toolshare-info-bg, #edf1ef); color: var(--toolshare-text, #263238); border-color: var(--toolshare-info-border, #cbd8d2); border-left: 4px solid var(--toolshare-teal-light, #36796b); }
.listing-badge-free { background: #f2bd4b; color: #000; }
.voice-help-box, .voice-mic-help { background: rgba(242, 189, 75, .22); border-color: #f2bd4b; color: #000; }
.voice-embedded-warn, .voice-perm-denied { background: #fff; border-color: #000; color: #000; }
.voice-diag-log { background: #000; color: #f2bd4b; }
.admin-actions .btn-danger, .request-card-actions .btn-danger { background: #000; color: #fff; border-color: #000; }
.work-fee-note, .work-availability-card, .voice-panel-inline, .voice-chrome-settings-url { background: #fff; }
.work-toggle-switch { background: rgba(0, 0, 0, .22); }
.work-chat-bubble.mine { background: rgba(242, 189, 75, .22); }

@media (max-width: 900px) {
  .home-hero-inner { grid-template-columns: minmax(0, 1fr) minmax(270px, .8fr); gap: 22px; }
  .home-hero-art { min-height: 310px; }
  .home-tool-illustration { height: 190px; }
  .home-page .home-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .home-hero { padding: 48px 0 55px; }
  .home-hero-inner { grid-template-columns: 1fr; gap: 12px; }
  .home-hero-copy { max-width: none; }
  .home-hero h1 { font-size: clamp(43px, 12vw, 62px); }
  .home-hero-copy > p:not(.home-join-note) { max-width: 570px; margin-bottom: 23px; font-size: 16px; }
  .home-hero-art { min-height: 300px; margin: 2px auto 0; width: min(100%, 420px); }
  .home-tool-card { width: min(86%, 340px); padding: 14px; }
  .home-tool-illustration { height: 174px; }
  .home-floating-note-top { top: 7%; right: 0; }
  .home-floating-note-bottom { bottom: 5%; left: 0; }
  .home-categories { padding: 33px 0 28px; }
  .home-category-heading { align-items: flex-start; }
  .home-category-hint { display: none; }
  .category-chip { min-width: 124px; }
  .home-benefits { padding: 54px 0; }
  .home-section-intro { margin-bottom: 25px; text-align: left; }
  .home-section-intro h2 { font-size: 34px; }
  .home-page .feature-grid { grid-template-columns: 1fr; gap: 10px; }
  .home-page .feature-box { min-height: 0; padding: 18px; }
  .home-feature-number { float: right; margin: 0; }
  .home-page .feature-box h3 { padding-top: 2px; }
  .home-mobile-break { display: initial; }
  .home-join-section { padding-top: 28px; }
  .home-join-panel { align-items: flex-start; flex-direction: column; gap: 19px; border-radius: 15px; }
  .home-join-panel .home-primary-cta { width: 100%; }
  .home-page .home-links-grid { gap: 9px; }
  .home-page .home-link-card { min-height: 78px; padding: 12px; }
  .home-trust-grid { grid-template-columns: 1fr; gap: 12px; }
  .home-trust-grid > div { justify-content: flex-start; }
}

@media (max-width: 380px) {
  .home-hero { padding-top: 38px; }
  .home-eyebrow { font-size: 10px; }
  .home-hero h1 { font-size: 42px; }
  .home-search { min-height: 56px; }
  .home-search-icon { margin-right: 8px; margin-left: 8px; }
  .home-search input { font-size: 13px; }
  .home-search button { gap: 6px; padding: 0 11px; font-size: 12px; }
  .home-page .home-links-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (min-width: 900px) {
  .skill-chip-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px;
  }

  .brand {
    grid-row: 1;
    grid-column: 1;
  }

  .header-actions {
    grid-row: 1;
    grid-column: 3;
  }

  .header-center {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .header-location {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-toggle { display: block; }
  .header-actions .header-nav-link { display: none; }
  .header-actions .btn-sell span:last-child { display: none; }
  .header-actions-guest .header-nav-link { display: none; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .home-links-grid {
    grid-template-columns: 1fr 1fr;
  }

  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .listing-card-body { padding: 10px; }
  .listing-price { font-size: 16px; }
  .listing-title { font-size: 13px; }

  .field-row { grid-template-columns: 1fr; }
  .home-hero { padding: 32px 16px 48px; }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-two-col {
    grid-template-columns: 1fr;
  }

  .skill-chip-grid {
    grid-template-columns: 1fr;
  }

  .work-hub-grid {
    grid-template-columns: 1fr;
  }

  .work-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .work-tab {
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    border: 1px solid var(--toolshare-border);
    margin-bottom: 0;
  }

  .work-tab.active {
    border-color: var(--toolshare-teal);
  }

  .work-form-card {
    padding: 18px 16px;
  }

  .work-toggle-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .listings-grid { grid-template-columns: 1fr; }
}

/* Keep the homepage's own mobile spacing after the shared page rules above. */
@media (max-width: 768px) {
  .home-hero { padding: 48px 0 55px; }
}

/* ── Shared site-wide theme and responsive controls ── */

.site-header {
  background: linear-gradient(110deg, #000000, #000000);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .16);
}

.brand { font-family: "Outfit", var(--font); letter-spacing: -.025em; }
.brand-icon { color: #000000; }
.mobile-nav { background: #000000; }

.btn,
.btn-sell,
.header-search button,
.admin-toolbar button,
.work-form-card button,
.home-search button {
  min-height: 44px;
  border-radius: 10px;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn:hover,
.btn-sell:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; }
.btn-outline { background: #fff; }

.field label {
  margin-bottom: 7px;
  color: #000000;
  font-size: 14px;
  font-weight: 600;
}

.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea,
.header-search input,
.admin-toolbar input[type="search"],
.admin-toolbar select,
.work-filter-bar select,
.work-filter-bar input[name="postal_code"],
.voice-text-input {
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  background-color: #fff;
  color: #000000;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder,
.header-search input::placeholder { color: rgba(0, 0, 0, 0.72); opacity: 1; }

.field input:focus,
.field select:focus,
.field textarea:focus,
.header-search input:focus,
.admin-toolbar input:focus,
.admin-toolbar select:focus,
.work-filter-bar select:focus,
.work-filter-bar input[name="postal_code"]:focus,
.voice-text-input:focus {
  border-color: #000000;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .16);
}

.field input[type="checkbox"],
.field input[type="radio"],
.checkbox-row input[type="checkbox"],
.checkbox-row input[type="radio"] { accent-color: #000000; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f2bd4b;
  outline-offset: 2px;
}

.page-title-bar {
  padding: 25px 0;
  background: linear-gradient(110deg, #ffffff, #ffffff);
  border-bottom-color: rgba(0, 0, 0, 0.16);
}

.page-title-bar h1 { color: #000000; font-size: clamp(23px, 3vw, 30px); letter-spacing: -.025em; }
.page-title-bar .subtitle { max-width: 720px; color: rgba(0, 0, 0, 0.72); line-height: 1.55; }

.detail-panel,
.detail-price-box,
.seller-box,
.auth-card,
.contact-card,
.contact-info-card,
.info-page,
.admin-stat-card,
.admin-login-card,
.work-panel,
.work-form-card,
.work-job-card {
  border: 1px solid var(--toolshare-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--toolshare-shadow);
}

.tabs-bar { gap: 6px; border-bottom-width: 1px; }
.tab-item { min-height: 44px; padding: 11px 16px; border-radius: 9px 9px 0 0; }
.tab-item.active { padding: 11px 16px; }

.admin-sidebar { background: linear-gradient(180deg, #000000, #000000); }
.admin-stat-card-total { background: linear-gradient(135deg, #000000, #000000); }
.admin-body { background: #ffffff; }
.admin-nav-link { min-height: 44px; border-radius: 10px; }
.admin-table th { color: rgba(0, 0, 0, 0.72); }
.admin-table td { color: #000000; }

.site-footer { background: #000000; }
.footer-col a,
.mobile-nav a { min-height: 40px; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-content { padding-right: 20px; padding-left: 20px; }
  .admin-topbar { padding-right: 20px; padding-left: 20px; }
  .admin-two-col { grid-template-columns: 1fr; }
  .admin-actions { align-items: stretch; }
}

@media (max-width: 768px) {
  .container { padding-right: 18px; padding-left: 18px; }
  .header-inner { gap: 10px; }
  .header-center { gap: 8px; }
  .header-search { min-height: 44px; }
  .header-search input { padding: 10px 12px; }
  .header-search button { padding: 0 13px; }
  .header-toggle { min-width: 44px; min-height: 44px; border-radius: 10px; }
  .mobile-nav { padding: 8px 18px 16px; }
  .mobile-nav a { padding: 12px 10px; }
  .page-title-bar { padding: 21px 0; margin-bottom: 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .auth-card, .contact-card, .contact-info-card { padding: 24px; }
  .detail-layout { gap: 18px; }
  .detail-gallery-main { min-height: 260px; }
  .detail-sidebar { gap: 12px; }
  .tabs-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab-item { flex: 0 0 auto; white-space: nowrap; }
  .footer-grid { gap: 22px; padding-top: 32px; }
}

@media (max-width: 520px) {
  .container { padding-right: 16px; padding-left: 16px; }
  .header-inner { grid-template-columns: auto 1fr auto; padding: 10px 12px; }
  .brand { gap: 6px; font-size: 19px; }
  .brand-icon { width: 32px; height: 32px; font-size: 16px; }
  .header-actions { gap: 5px; }
  .btn-sell { min-height: 40px; padding: 8px 12px; font-size: 13px; }
  .header-user-btn { width: 38px; height: 38px; }
  .header-search input { font-size: 16px; }
  .header-search button { min-height: 42px; padding: 0 10px; font-size: 13px; }
  .page-title-bar { padding: 18px 0; }
  .auth-page { padding: 22px 14px; }
  .auth-card, .contact-card, .contact-info-card, .info-page { padding: 20px 17px; border-radius: 14px; }
  .detail-panel, .detail-price-box, .seller-box { padding: 17px; }
  .detail-gallery-main { min-height: 220px; }
  .field input:not([type="checkbox"]):not([type="radio"]),
  .field select,
  .field textarea { font-size: 16px; }
  .btn { padding: 10px 15px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .footer-brand { grid-column: 1 / -1; }
  .admin-topbar { align-items: flex-start; flex-direction: column; padding: 18px 16px 0; }
  .admin-topbar-user { text-align: left; }
  .admin-content { padding: 14px 16px 28px; }
  .admin-toolbar { align-items: stretch; }
  .admin-toolbar input[type="search"], .admin-toolbar select { width: 100%; min-width: 0; }
  .admin-table-wrap { margin-right: -16px; }
  .admin-table { min-width: 580px; }
  .work-applicant-item { align-items: stretch; flex-direction: column; }
  .listing-card { border-radius: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Previous theme defaults retained for component-specific legacy selectors. */
.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .06);
}

.site-header .brand,
.site-header .header-nav-link,
.site-header .header-location,
.site-header .header-toggle,
.site-header .header-user-btn { color: #000; }

.site-header .header-nav-link:hover,
.site-header .header-nav-link.active { background: rgba(242, 189, 75, .3); }
.site-header .header-nav-link { display: inline-flex; min-height: 44px; align-items: center; }
.site-header .header-user-btn { border-color: rgba(0, 0, 0, .24); background: rgba(255, 255, 255, .45); }
.site-header .header-user-btn:hover,
.site-header .header-user-btn[aria-expanded="true"] { border-color: #000; background: #fff; }
.site-header .header-toggle { border: 1px solid rgba(0, 0, 0, .25); }

.header-search {
  min-height: 50px;
  gap: 0;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.header-search:focus-within {
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(242, 189, 75, .48), 0 4px 14px rgba(0, 0, 0, .1);
}

.header-search::before {
  display: block;
  width: 19px;
  /* height: 19px; */
  flex: 0 0 19px;
  margin-left: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
}

.header-search input {
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
  font-size: 15px;
  box-shadow: none;
}

.header-search input:focus { border: 0; box-shadow: none; }
.header-search button { min-height: 42px; padding: 0 21px; border-radius: 10px; background: #f2bd4b; color: #000; font-weight: 700; }
.header-search button:hover { background: #f2bd4b; box-shadow: inset 0 0 0 1px #000; }
.filter-form .filter-search {
  min-width: min(200px, 100%);
  min-height: 46px;
  flex: 1 1 240px;
  padding: 10px 15px 10px 42px;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E") no-repeat 14px center / 18px 18px;
  color: #000;
  font-size: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .06);
}
.filter-form .filter-search:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px rgba(242, 189, 75, .48); }
.filter-form input[name="postal_code"] {
  min-width: min(170px, 100%);
  min-height: 46px;
  flex: 0 1 190px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: 12px;
  background: #fff;
  color: #000;
  font-size: 15px;
}
.filter-form select { min-height: 46px; border-radius: 12px; color: #000; }
.browse-filter-actions { display: flex; flex: 0 0 82px; align-items: stretch; }
.browse-filter-actions .btn { width: 100%; min-height: 46px; }
.browse-location-notice { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.browse-location-notice p { margin: 8px 0 0; }
.browse-clear-filters { display: inline-flex; min-height: 32px; align-items: center; justify-content: center; padding: 3px 8px; border-radius: 7px; color: var(--toolshare-muted); font-size: 12px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: color .15s ease, background-color .15s ease; }
.browse-clear-filters:hover { background: #f3f5f4; color: var(--toolshare-teal); }
.browse-results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.browse-results-toolbar .results-count { margin-bottom: 0; }
.browse-price-sort { display: flex; justify-content: flex-end; align-items: center; gap: 9px; color: var(--toolshare-muted); font-size: 13px; }
.browse-price-sort label { font-weight: 600; }
.browse-price-sort select { min-width: 168px; min-height: 42px; padding: 8px 32px 8px 12px; border: 1px solid var(--toolshare-border); border-radius: 10px; background: #fff; color: var(--toolshare-text); font: inherit; }
.browse-price-sort select:focus { outline: 3px solid rgba(36, 92, 80, .2); border-color: var(--toolshare-teal); }
.btn-sell, .btn-accent { background: #f2bd4b; color: #000; border-color: #f2bd4b; }
.btn-sell:hover, .btn-accent:hover { background: #f2bd4b; color: #000; box-shadow: inset 0 0 0 1px #000; }
.btn-primary { background: #000; color: #fff; border-color: #000; }
.btn-primary:hover { background: #000; }
.btn-danger { background: #000; color: #fff; border-color: #000; }
.btn-outline { color: #000; border-color: rgba(0, 0, 0, .35); }
.btn-outline:hover { border-color: #000; background: #f2bd4b; }

.home-hero { background: radial-gradient(ellipse at 78% 10%, rgba(242, 189, 75, .22), transparent 36%), #fff; }
.home-hero h1 span { background: linear-gradient(transparent 72%, #f2bd4b 72%); }
.home-search { border-color: rgba(0, 0, 0, .22); }
.home-search button, .home-primary-cta { background: #f2bd4b; color: #000; }
.home-search button:hover, .home-primary-cta:hover { background: #f2bd4b; color: #000; }
.home-join-panel { background: #f2bd4b; }
.home-art-glow, .home-tool-illustration { background: rgba(242, 189, 75, .2); }
.home-eyebrow-dot, .home-live-dot { background: #f2bd4b; box-shadow: 0 0 0 4px rgba(242, 189, 75, .28); }
.home-category-mark, .home-feature-number, .home-note-check, .home-note-spark { background: #f2bd4b; color: #000; }
.category-chip.active .home-category-mark { background: #000; color: #fff; }
.admin-sidebar { background: #000; }
.admin-stat-card-total { background: #f2bd4b; color: #000; }
.admin-stat-card-total .admin-stat-label, .admin-stat-card-total .admin-stat-meta { color: #000; }
.admin-nav-link:hover, .admin-nav-link.active { background: #f2bd4b; color: #000; }
.site-footer { background: #000; }

@media (max-width: 520px) {
  .header-search { min-height: 44px; padding: 3px; }
  .header-search::before { width: 17px; height: 17px; flex-basis: 17px; margin-left: 7px; }
  .header-search input { min-height: 38px; padding: 8px; font-size: 16px; }
  .header-search button { min-height: 38px; padding: 0 12px; font-size: 13px; }
  .filter-pill { min-height: 44px; }
}

/* ToolShare's shared visual system: amber, pine, slate, and warm ivory. */
:root {
  --toolshare-teal: #245c50;
  --toolshare-teal-light: #36796b;
  --toolshare-teal-dark: #19483f;
  --toolshare-yellow: #f2bd4b;
  --toolshare-yellow-hover: #e7ae35;
  --toolshare-bg: #f7f6f2;
  --toolshare-white: #ffffff;
  --toolshare-border: #e5e3dc;
  --toolshare-text: #263238;
  --toolshare-muted: #59666a;
  --toolshare-price: #245c50;
  --toolshare-link: #245c50;
  --toolshare-success: #245c50;
  --toolshare-danger: #a33b32;
  --toolshare-error-bg: #fbefed;
  --toolshare-error-border: #e8bcb6;
  --toolshare-success-bg: #eaf3ee;
  --toolshare-success-border: #b9d2c5;
  --toolshare-info-bg: #edf1ef;
  --toolshare-info-border: #cbd8d2;
  --toolshare-shadow: 0 5px 18px rgba(38, 50, 56, .07);
  --toolshare-shadow-hover: 0 14px 32px rgba(38, 50, 56, .13);
  --home-ink: #263238;
  --home-muted: #59666a;
  --home-green: #245c50;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

body { color: var(--toolshare-text); background: var(--toolshare-bg); }
.page-wrap { background: var(--toolshare-bg); }
.site-links-bar { background: #fff; border-color: var(--toolshare-border); }
.site-links-bar a, .link { color: var(--toolshare-teal); }

/* Consistent navigation and clear primary actions. */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--toolshare-border);
  box-shadow: 0 4px 18px rgba(38, 50, 56, .06);
}
.site-header .brand, .site-header .header-nav-link,
.site-header .header-location, .site-header .header-toggle,
.site-header .header-user-btn { color: var(--toolshare-text); }
.brand-icon { color: var(--toolshare-text); }
.site-header .header-nav-link:hover,
.site-header .header-nav-link.active { background: #f8edcf; color: var(--toolshare-teal-dark); }
.site-header .header-user-btn { border-color: var(--toolshare-border); background: #fff; }
.site-header .header-user-btn:hover,
.site-header .header-user-btn[aria-expanded="true"] { border-color: var(--toolshare-teal); background: #f3f7f5; }
.mobile-nav { background: var(--toolshare-teal-dark); }
.btn-sell, .btn-accent, .header-search button,
.home-search button, .home-primary-cta {
  background: var(--toolshare-yellow);
  border-color: var(--toolshare-yellow);
  color: #263238;
}
.btn-sell:hover, .btn-accent:hover, .header-search button:hover,
.home-search button:hover, .home-primary-cta:hover {
  background: var(--toolshare-yellow-hover);
  border-color: var(--toolshare-yellow-hover);
  color: #263238;
}
.btn-primary { background: var(--toolshare-teal); border-color: var(--toolshare-teal); color: #fff; }
.btn-primary:hover { background: var(--toolshare-teal-dark); border-color: var(--toolshare-teal-dark); }
.btn-danger { background: #a33b32; border-color: #a33b32; color: #fff; }
.btn-outline { color: var(--toolshare-teal); border-color: #9eb7b0; }
.btn-outline:hover { color: var(--toolshare-teal-dark); border-color: var(--toolshare-teal); background: #edf4f1; }

/* Shared page, form, listing, and dashboard surfaces. */
.page-title-bar { background: linear-gradient(110deg, #fffdf8, #f1f5f2); border-bottom-color: var(--toolshare-border); }
.page-title-bar h1 { color: var(--toolshare-text); }
.listing-card, .request-card, .notif-item, .auth-card, .contact-card,
.contact-info-card, .info-page, .detail-panel, .detail-price-box,
.seller-box, .profile-stat, .profile-help-panel, .subscription-active-card,
.subscription-plan-card, .review-item, .work-form-card, .work-job-card,
.work-availability-card, .boost-panel, .voice-panel, .work-card, .work-panel, .admin-card,
.admin-stat-card, .empty-state, .home-page .feature-box, .home-link-card {
  border-color: var(--toolshare-border);
  border-radius: var(--radius-md);
  background-color: #fff;
  box-shadow: var(--toolshare-shadow);
}
.listing-card:hover, .home-page .feature-box:hover, .home-link-card:hover {
  border-color: #cbd8d2;
  box-shadow: var(--toolshare-shadow-hover);
}
.listing-card-image, .detail-gallery-main { background-color: #f0efe9; border-color: var(--toolshare-border); }

/* Product detail gallery: large contained image with a distinct thumbnail rail. */
.detail-gallery {
  padding: 0 0 8px;
  background: #f7f9fc;
  border: 1px solid #dfe6ef;
  border-radius: 18px;
  box-shadow: none;
}
.detail-gallery-main {
  aspect-ratio: 1.65 / 1;
  min-height: 300px;
  max-height: min(64vh, 620px);
  background: #fff;
  border: 0;
  border-radius: 17px 17px 0 0;
}
.detail-gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-gallery-thumbnails {
  gap: 10px;
  padding: 12px 14px;
  overscroll-behavior-x: contain;
}
.detail-gallery-thumbnail {
  flex-basis: 64px;
  width: 64px;
  height: 64px;
  border: 2px solid #dfe6ef;
  border-radius: 11px;
  background: #fff;
  transition: border-color .16s ease, transform .16s ease;
}
.detail-gallery-thumbnail:hover { transform: translateY(-1px); }
.detail-gallery-thumbnail.active { border-color: var(--toolshare-yellow); }
@media (max-width: 700px) {
  .detail-gallery-main {
    aspect-ratio: 1.25 / 1;
    min-height: 220px;
    max-height: 52vh;
  }
  .detail-gallery-thumbnails { padding: 10px; }
}
.listing-title, .request-card-title, .detail-title, .seller-name,
.auth-card h1, .admin-page-title { color: var(--toolshare-text); }
.listing-price, .subscription-price, .seller-profile-link { color: var(--toolshare-teal); }
.muted, .small, .listing-meta, .profile-stat label { color: var(--toolshare-muted); }
.work-tabs { border-bottom-color: var(--toolshare-border); }
.work-tab:hover, .work-tab.active, .tab-item:hover, .tab-item.active { color: var(--toolshare-teal); }
.work-tab.active, .tab-item.active { border-color: var(--toolshare-border); background: #fff; }
.filter-pill.active, .filter-pill:hover { border-color: var(--toolshare-teal); background: #e8f0ed; color: var(--toolshare-teal-dark); }
.category-chip.active .home-category-mark { background: var(--toolshare-teal); color: #fff; }
.home-category-mark, .home-feature-number, .home-note-check, .home-note-spark,
.home-trust-icon { background: #faedcc; color: var(--toolshare-teal-dark); }
.home-page {
  --home-ink: #263238;
  --home-muted: #59666a;
  --home-green: #245c50;
  --home-mint: #e8f0ed;
  --home-paper: #fffdf8;
  color: var(--home-ink);
  background: #fff;
}
.home-hero { background: radial-gradient(ellipse at 78% 10%, rgba(242, 189, 75, .22), transparent 36%), #fffdf8; }
.home-hero h1, .home-hero h1 span, .home-eyebrow, .home-kicker,
.home-text-link, .home-category-hint, .home-section-intro h2,
.home-page .feature-box h3 { color: var(--toolshare-text); }
.home-hero-copy > p:not(.home-join-note), .home-join-note,
.home-category-hint, .home-section-intro p,
.home-page .feature-box p { color: var(--toolshare-muted); }
.home-hero h1 span { background: linear-gradient(transparent 72%, rgba(242, 189, 75, .72) 72%); }
.home-benefits { background: #f1f3ef; }
.home-join-panel { background: var(--toolshare-teal); color: #fff; }
.home-join-panel h2, .home-join-panel p, .home-join-panel .home-kicker { color: #fff; }
.home-tool-avatar { background: var(--toolshare-teal); }
.home-page .home-link-card:hover { background: #fff9e9; }

input:not([type="checkbox"]):not([type="radio"]), select, textarea,
.filter-form input[type="search"], .admin-toolbar input[type="search"],
.admin-toolbar select {
  border-color: #d7d9d4;
  border-radius: 10px;
  color: var(--toolshare-text);
  background-color: #fff;
}
input:focus, select:focus, textarea:focus,
.header-search:focus-within, .filter-form .filter-search:focus {
  border-color: var(--toolshare-teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 92, 80, .16);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--toolshare-teal); }
.header-search { border-color: var(--toolshare-border); box-shadow: 0 3px 12px rgba(38, 50, 56, .06); }
.header-search button { color: #263238; }
.header-badge, .seller-avatar, .member-avatar-lg { background: var(--toolshare-teal); color: #fff; }
.badge-pending { background: #faedcc; color: #67480e; }
.badge-approved, .badge-completed { background: #e5f0eb; color: #245c50; }
.badge-active { background: #e8edf0; color: #263238; }
.badge-denied, .badge-cancelled, .badge-no_show { background: #efeeea; color: #59666a; }
.badge-damaged, .badge-overdue { background: #f8e7e4; color: #8d3029; }
.alert-error { color: var(--toolshare-danger); background: var(--toolshare-error-bg); border-color: var(--toolshare-error-border); }
.alert-success { color: var(--toolshare-teal-dark); background: var(--toolshare-success-bg); border-color: var(--toolshare-success-border); }
.alert-info { color: var(--toolshare-text); background: var(--toolshare-info-bg); border-color: var(--toolshare-info-border); }

/* Admin tools use the same palette as the public app. */
.admin-body { background: var(--toolshare-bg); }
.admin-login-body { background: radial-gradient(ellipse at top right, rgba(242, 189, 75, .24), transparent 38%), var(--toolshare-bg); }
.admin-login-card { border: 1px solid var(--toolshare-border); border-radius: var(--radius-lg); box-shadow: var(--toolshare-shadow-hover); }
.admin-login-brand { color: var(--toolshare-teal); }
.admin-sidebar { background: var(--toolshare-teal-dark); }
.admin-stat-card-total { background: var(--toolshare-yellow); color: var(--toolshare-text); }
.admin-stat-card-total .admin-stat-label, .admin-stat-card-total .admin-stat-meta { color: var(--toolshare-text); }
.admin-nav-link:hover, .admin-nav-link.active { background: var(--toolshare-yellow); color: var(--toolshare-text); }
.admin-table th { color: var(--toolshare-muted); }
.admin-table td { color: var(--toolshare-text); }
.site-footer { background: var(--toolshare-teal-dark); }

a, button, .btn, .listing-card, .home-link-card, .work-job-card {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
:focus-visible { outline: 3px solid var(--toolshare-yellow); outline-offset: 3px; }

@media (max-width: 768px) {
  .home-join-panel { gap: 22px; }
  .home-hero { background-color: #fffdf8; }
}

/* Two clear, three-step journeys for borrowing and sharing. */
.home-how-it-works { padding: clamp(56px, 7vw, 88px) 0; background: #f7f6f2; }
.home-how-it-works { scroll-margin-top: calc(var(--header-h) + 16px); }
.site-header .header-how-link,
.site-header .header-how-link:hover,
.site-header .header-how-link.active { background: transparent; }
.site-header .mobile-nav .header-how-link:hover { background: transparent; }
.site-header .header-plain-link,
.site-header .header-plain-link:hover,
.site-header .header-plain-link.active { background: transparent; }
.site-header .header-nav-link,
.site-header .header-nav-link:hover,
.site-header .header-nav-link.active { background: transparent; }
.home-how-it-works .home-section-intro { max-width: 700px; margin-bottom: 38px; }
.home-how-it-works .home-kicker { color: var(--toolshare-teal); }
.home-how-it-works .home-section-intro h2 { font-size: clamp(32px, 4.5vw, 48px); }
.home-how-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.home-how-path {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--toolshare-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--toolshare-shadow);
}
.home-how-path-share { background: #fffdf8; }
.home-how-path-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 23px; }
.home-how-path-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 14px; background: #faedcc; color: var(--toolshare-teal); font-size: 24px; font-weight: 600; }
.home-how-path-share .home-how-path-icon { background: #e7f0eb; }
.home-how-label { color: var(--toolshare-muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.home-how-path-heading h3 { margin-top: 3px; color: var(--toolshare-text); font-size: 22px; letter-spacing: -.025em; }
.home-how-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.home-how-steps li { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 13px; min-height: 84px; padding-bottom: 17px; }
.home-how-steps li:not(:last-child)::after { position: absolute; top: 37px; bottom: 4px; left: 18px; width: 1px; background: var(--toolshare-border); content: ""; }
.home-how-number { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #faedcc; color: #263238; font-size: 12px; font-weight: 700; }
.home-how-path-share .home-how-number { background: #e7f0eb; color: var(--toolshare-teal-dark); }
.home-how-steps h4 { margin: 1px 0 4px; color: var(--toolshare-text); font-size: 15px; font-weight: 700; }
.home-how-steps p { max-width: 340px; margin: 0; color: var(--toolshare-muted); font-size: 13px; line-height: 1.55; }
.home-how-link { display: inline-flex; min-height: 44px; align-items: center; gap: 9px; align-self: flex-start; margin-top: auto; padding: 0 14px; border-radius: 10px; color: #fff; background: var(--toolshare-teal); font-size: 13px; font-weight: 700; }
.home-how-link:hover { color: #fff; background: var(--toolshare-teal-dark); }

.home-listings-section { padding: clamp(44px, 6vw, 72px) 0; background: #fff; }
.home-listings-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.home-listings-heading h2 { margin: 6px 0; color: var(--toolshare-text); font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -.035em; }
.home-listings-heading p { margin: 0; color: var(--toolshare-muted); font-size: 14px; }
.home-listings-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 0 14px; border-radius: 10px; color: var(--toolshare-teal); font-weight: 700; white-space: nowrap; }
.home-listings-link:hover { background: #e8f0ed; }
.home-listings-grid { margin-top: 0; }
.home-listings-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 0 0 22px; }
.home-listings-filters label:last-of-type { margin-left: 10px; padding-left: 18px; border-left: 1px solid var(--toolshare-border); }
.home-listings-filters label { display: grid; gap: 5px; color: var(--toolshare-muted); font-size: 12px; font-weight: 600; }
.home-listings-filters select { min-width: 180px; min-height: 44px; padding: 9px 34px 9px 12px; border: 1px solid var(--toolshare-border); border-radius: 10px; background: #fff; color: var(--toolshare-text); font: inherit; font-size: 14px; }
.home-listings-filters select:focus { outline: 3px solid rgba(36, 92, 80, .2); border-color: var(--toolshare-teal); }
.home-filter-reset { display: inline-flex; min-height: 44px; align-items: center; padding: 0 8px; color: var(--toolshare-teal); font-size: 13px; }
.home-listings-load-more { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.home-pagination-summary { margin: 0; color: var(--toolshare-muted); font-size: 13px; }
.home-pagination-step { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid var(--toolshare-border); border-radius: 9px; background: #fff; color: var(--toolshare-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.home-pagination-step:hover:not(:disabled) { border-color: var(--toolshare-teal); color: var(--toolshare-teal); }
.home-pagination-step:disabled { cursor: wait; opacity: .6; }
.home-pagination-step:focus-visible { outline: 3px solid rgba(36, 92, 80, .25); outline-offset: 2px; }
.home-listings-load-more[hidden], #home-listings-scroll-sentinel[hidden] { display: none; }
#home-listings-scroll-sentinel { width: 100%; height: 1px; }
.home-listings-empty { padding: 28px; border: 1px solid var(--toolshare-border); border-radius: var(--radius-lg); background: #fffdf8; }
.home-listings-empty h3 { margin-bottom: 6px; color: var(--toolshare-text); font-size: 18px; }
.home-listings-empty p { margin: 0 0 16px; color: var(--toolshare-muted); }
.home-listings-section:target { scroll-margin-top: calc(var(--header-h) + 16px); }

@media (max-width: 760px) {
  .home-how-paths { grid-template-columns: 1fr; gap: 14px; }
  .home-how-it-works .home-section-intro { margin-bottom: 25px; }
  .home-how-path { padding: 22px; }
}

@media (max-width: 680px) {
  .home-listings-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .home-listings-link { padding-left: 0; }
  .home-listings-empty { padding: 22px 18px; }
  .home-listings-filters label:last-of-type { margin-left: 0; padding-left: 0; border-left: 0; }
  .home-listings-load-more { align-items: flex-start; flex-direction: column; }
  .browse-results-toolbar { align-items: flex-start; }
  .browse-price-sort { justify-content: flex-end; }
  .browse-location-notice { align-items: flex-start; }
}

/* Jobs for me: show each opportunity as a compact, scannable card. */
.work-job-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}
.work-job-card {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 168px;
  padding: 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--toolshare-shadow);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.work-job-card:hover {
  transform: translateY(-3px);
  border-color: #9eb7b0;
  box-shadow: var(--toolshare-shadow-hover);
}
.work-job-card-top { min-height: 122px; }
.work-job-title { font-size: 19px; letter-spacing: -.02em; }
.work-job-meta { margin: 10px 0 0; line-height: 1.65; }

@media (max-width: 680px) {
  .work-job-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .work-job-card { max-width: none; min-height: 144px; padding: 19px; }
  .work-job-card-top { min-height: 104px; }
}

@media (min-width: 681px) and (max-width: 1100px) {
  .work-job-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Responsive safety net shared by public, work, account, and admin pages. */
img, video, canvas, svg { max-width: 100%; }
.container, .page-wrap, .admin-main, .admin-content,
.detail-main, .detail-sidebar, .work-page { min-width: 0; }
input, select, textarea { max-width: 100%; }
.admin-table-wrap { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.admin-table td, .admin-table th { overflow-wrap: anywhere; }
.detail-title, .listing-title, .work-job-title, .notif-body,
.request-card-title, .seller-sub { overflow-wrap: anywhere; }
.payment-summary-row { gap: 12px; min-width: 0; }
.payment-summary-row > * { min-width: 0; }

@media (max-width: 900px) {
  /* Switch the desktop navigation to its menu before tablet widths get cramped. */
  .header-toggle { display: block; }
  .header-actions .header-nav-link { display: none; }
  .admin-content { padding-right: 20px; padding-left: 20px; }
  .admin-topbar { padding-right: 20px; padding-left: 20px; }
}

@media (max-width: 768px) {
  .page-title-row { align-items: flex-start; }
  .request-card-top { flex-wrap: wrap; }
  .request-card-top > :first-child { min-width: 0; flex: 1 1 220px; }
  .request-card-actions, .admin-actions, .work-applicant-actions { align-items: stretch; }
  .request-card-actions > form, .admin-actions-cell > form { max-width: 100%; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-main, .detail-sidebar { width: 100%; }
  .profile-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
  .profile-stat-highlight { grid-column: auto; }
  .home-category-heading { flex-wrap: wrap; }
  .admin-two-col { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .container { padding-right: 16px; padding-left: 16px; }
  .container-narrow, .container-medium, .container-wide { padding-right: 16px; padding-left: 16px; }
  .page-title-bar { padding: 18px 0; }
  .page-title-row { align-items: flex-start; }
  .page-title-row > .btn { flex: 0 0 auto; }
  .auth-card, .contact-card, .contact-info-card, .info-page { padding: 20px 16px; }
  .detail-panel, .detail-price-box, .seller-box, .request-card { padding: 16px; }
  .payment-summary-row { align-items: flex-start; flex-wrap: wrap; }
  .payment-summary-row > :last-child { text-align: left; }
  .admin-content { padding: 14px 16px 26px; }
  .admin-topbar { padding-right: 16px; padding-left: 16px; }
  .admin-topbar-user { text-align: left; }
  .admin-stat-value { font-size: clamp(20px, 7vw, 24px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Compact listing summary and description card, based on the supplied reference. */
.detail-info-card {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid #dfe6ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(25, 45, 70, .06);
}
.detail-gallery-stack { min-width: 0; }
.detail-gallery {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dfe6ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(25, 45, 70, .06);
}
.detail-gallery-main {
  width: 100%;
  height: clamp(320px, 68vh, 680px);
  min-height: 0;
  max-height: min(78vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  padding: 12px;
  box-sizing: border-box;
  background: #f0efe9;
}
.detail-gallery-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-gallery-main:has(.listing-placeholder) { min-height: 300px; display: grid; place-items: center; }
.detail-gallery-thumbnails {
  padding: 12px 0 0;
  background: transparent;
}
.detail-gallery-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.detail-gallery-stack > .detail-gallery { flex: 0 0 auto; width: 100%; }
.detail-gallery-stack > .detail-gallery-thumbnails {
  order: 0;
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  justify-content: safe center;
  width: 100%;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
}
.detail-category-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.detail-gallery-category-badge { position: absolute; z-index: 2; top: 14px; left: 14px; display: inline-flex; min-height: 32px; align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid rgba(36, 92, 80, .14); border-radius: 999px; background: rgba(255, 247, 228, .96); box-shadow: 0 2px 8px rgba(25, 35, 32, .12); color: var(--toolshare-teal-dark); font-size: 12px; font-weight: 700; line-height: 1.2; }
.detail-rent-badge, .detail-extra-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: #f2a51f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: capitalize;
}
.detail-extra-badge { background: #eef2f6; color: var(--toolshare-text); }
.detail-info-card > .detail-title {
  margin: 0 0 10px;
  color: var(--toolshare-text);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
}
.detail-rating-line { margin-bottom: 10px; }
.detail-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  background: #078b68;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.detail-rating-count { font-weight: 500; }
.detail-location {
  margin: 0 0 12px;
  color: var(--toolshare-muted);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.detail-location span { margin-right: 4px; font-size: 17px; }
.detail-host-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 0;
  padding: 12px 14px;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  background: #f7f9fc;
}
.detail-host-name { color: var(--toolshare-muted); font-size: 14px; }
.detail-host-name strong { color: var(--toolshare-text); }
.detail-host-location { margin-top: 4px; color: var(--toolshare-text); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.detail-host-location-trigger { display: block; margin-top: 4px; padding: 0; border: 0; background: transparent; color: var(--toolshare-teal-dark); font: inherit; font-size: 13px; line-height: 1.45; text-align: left; text-decoration: underline; text-decoration-color: rgba(36, 92, 80, .4); text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; }
.detail-host-location-trigger:hover { color: var(--toolshare-teal); text-decoration-color: currentColor; }
.detail-host-location-trigger:focus-visible { outline: 3px solid rgba(36, 92, 80, .25); outline-offset: 3px; border-radius: 3px; }
.pickup-map-dialog { width: min(880px, calc(100vw - 32px)); max-width: 880px; max-height: calc(100dvh - 32px); padding: 20px; border: 1px solid var(--toolshare-border); border-radius: 18px; background: #fff; color: var(--toolshare-text); box-shadow: 0 20px 70px rgba(18, 35, 45, .28); }
.pickup-map-dialog::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); }
.pickup-map-dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.pickup-map-dialog-header h2 { margin: 0 0 5px; font-size: 20px; }
.pickup-map-dialog-header p { margin: 0; overflow-wrap: anywhere; }
.pickup-map-dialog-close { flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f3f5f4; color: var(--toolshare-text); font-size: 26px; line-height: 1; cursor: pointer; }
.pickup-map-dialog-close:hover { background: #e8f0ed; }
.pickup-map-location-card { display: flex; align-items: flex-start; gap: 14px; padding: 22px; border: 1px solid var(--toolshare-border); border-radius: 12px; background: #f7f9fc; }
.pickup-map-location-icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #e6f1ee; color: var(--toolshare-teal-dark); font-size: 24px; }
.pickup-map-location-card p { margin: 7px 0 0; color: var(--toolshare-text); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.pickup-map-frame { display: block; width: 100%; height: min(52vh, 440px); min-height: 260px; margin-top: 14px; border: 1px solid var(--toolshare-border); border-radius: 12px; background: #f7f9fc; }
.pickup-map-open-link { display: inline-flex; margin-top: 12px; color: var(--toolshare-teal-dark); font-weight: 700; }
.detail-host-rating { margin-top: 3px; color: var(--toolshare-muted); font-size: 13px; }
.detail-host-rating span { color: #d99d1d; }
.detail-host-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #dce4ee;
  border-radius: 10px;
  background: #fff;
  color: var(--toolshare-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.detail-host-action:hover { border-color: var(--toolshare-teal); color: var(--toolshare-teal); }
.detail-host-actions { display: flex; flex: 0 0 190px; flex-direction: column; gap: 8px; }
.detail-host-actions .detail-host-action { justify-content: center; }
.detail-host-profile-action { background: #f7fbfa; border-color: #b8d3cb; }
.owner-contact-panel { margin-top: 24px; }
.owner-contact-panel h3 { margin: 0 0 14px; }
.owner-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.owner-contact-item { display: flex; min-width: 0; flex-direction: column; gap: 5px; padding: 14px; border: 1px solid var(--toolshare-border); border-radius: 10px; background: #f8faf9; overflow-wrap: anywhere; }
.owner-contact-item a { color: var(--toolshare-teal-dark); font-weight: 600; }
#borrow-message { scroll-margin-top: 110px; }
.item-chat-page { max-width: 860px; padding-top: 24px; padding-bottom: 40px; }
.item-chat-back { display: inline-block; margin-bottom: 12px; }
.item-chat-card, .item-chat-conversation-list {
  overflow: hidden;
  border: 1px solid var(--toolshare-border);
  border-radius: 18px;
  background: var(--toolshare-white);
  box-shadow: var(--toolshare-shadow);
}
.item-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--toolshare-border);
}
.item-chat-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--toolshare-yellow);
  color: var(--toolshare-text);
  font-weight: 700;
}
.item-chat-header-copy { min-width: 0; flex: 1; }
.item-chat-header-copy h1 { margin: 0; font-size: 17px; }
.item-chat-current-tool { max-width: 170px; overflow: hidden; color: var(--toolshare-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.item-chat-switcher { position: relative; flex: 0 0 auto; }
.item-chat-switcher summary { max-width: 170px; overflow: hidden; padding: 8px 11px; border: 1px solid var(--toolshare-border); border-radius: 8px; color: var(--toolshare-text); cursor: pointer; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.item-chat-switcher-menu { position: absolute; z-index: 10; top: calc(100% + 8px); left: 0; width: min(320px, 75vw); max-height: 300px; overflow-y: auto; border: 1px solid var(--toolshare-border); border-radius: 10px; background: #fff; box-shadow: 0 10px 28px rgba(20, 35, 45, .16); }
.item-chat-switcher-menu a { display: block; padding: 10px 12px; color: inherit; text-decoration: none; }
.item-chat-switcher-menu a + a { border-top: 1px solid var(--toolshare-border); }
.item-chat-switcher-menu a:hover, .item-chat-switcher-menu a.current { background: #f7f9fc; }
.item-chat-switcher-menu strong, .item-chat-switcher-menu span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-chat-switcher-menu span { margin-top: 3px; color: var(--toolshare-muted); font-size: 12px; }
.item-chat-live { display: inline-flex; align-items: center; gap: 6px; color: var(--toolshare-muted); font-size: 12px; white-space: nowrap; }
.item-chat-live span { width: 8px; height: 8px; border-radius: 50%; background: #22a06b; }
.item-chat-thread {
  display: flex;
  min-height: min(420px, calc(100vh - 260px));
  min-height: min(420px, calc(100dvh - 260px));
  max-height: min(calc(100vh - 250px), 760px);
  max-height: min(calc(100dvh - 250px), 760px);
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 18px;
  background: #f7f9fc;
  scroll-behavior: smooth;
}
.item-chat-message {
  max-width: min(78%, 560px);
  align-self: flex-start;
  padding: 10px 13px;
  border: 1px solid #e4e9f0;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  overflow-wrap: anywhere;
}
.item-chat-message.mine { align-self: flex-end; border-color: rgba(242, 189, 75, .55); border-radius: 14px 14px 4px 14px; background: rgba(242, 189, 75, .18); }
.item-chat-message strong { display: block; margin-bottom: 3px; font-size: 12px; }
.item-chat-message p { margin: 0; white-space: pre-wrap; line-height: 1.45; }
.item-chat-message time { display: block; margin-top: 5px; color: var(--toolshare-muted); font-size: 10px; text-align: right; }
.item-chat-empty { align-self: center; margin: auto; color: var(--toolshare-muted); font-size: 14px; text-align: center; }
.item-chat-form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px 8px; border-top: 1px solid var(--toolshare-border); }
.item-chat-form textarea { box-sizing: border-box; height: 46px; min-height: 46px; max-height: 140px; flex: 1; padding: 11px 14px; line-height: 22px; resize: none; overflow-y: auto; }
.item-chat-form button { min-height: 44px; }
.item-chat-status { min-height: 18px; margin: 0; padding: 0 16px 4px; }
.item-chat-inbox { padding-top: 20px; padding-bottom: 40px; }
.messages-dashboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.messages-panel { min-width: 0; padding: 18px; border: 1px solid var(--toolshare-border); border-radius: 18px; background: var(--toolshare-white); box-shadow: var(--toolshare-shadow); }
.messages-panel-heading { display: flex; min-height: 48px; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.messages-panel-heading h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 19px; }
.messages-panel-heading p { margin: 4px 0 0; }
.messages-unread-count { display: inline-grid; min-width: 22px; height: 22px; place-items: center; padding: 0 6px; border-radius: 999px; background: var(--toolshare-yellow); color: var(--toolshare-text); font-size: 12px; }
.messages-empty-state { padding: 28px 16px; color: var(--toolshare-muted); text-align: center; }
.messages-empty-state h3 { margin: 0 0 8px; color: var(--toolshare-text); font-size: 16px; }
.messages-empty-state p { margin: 0 0 14px; font-size: 14px; }
.inbox-pagination { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; }
.inbox-pagination-actions { display: flex; align-items: center; gap: 8px; }
.alerts-panel .notif-list { gap: 8px; }
.alerts-panel .notif-item { padding: 12px; }
.alerts-panel .notif-open-link { min-width: 0; }
@media (max-width: 900px) {
  .messages-dashboard { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .messages-panel { padding: 14px; }
  .messages-panel-heading { align-items: center; }
  .inbox-pagination { align-items: flex-start; flex-direction: column; }
  .inbox-pagination-actions { width: 100%; justify-content: space-between; }
}
.item-chat-conversation { display: flex; align-items: center; gap: 12px; padding: 16px; color: inherit; text-decoration: none; }
.item-chat-conversation + .item-chat-conversation { border-top: 1px solid var(--toolshare-border); }
.item-chat-conversation:hover { background: #f7f9fc; }
.item-chat-conversation-copy { min-width: 0; flex: 1; }
.item-chat-conversation-top { display: flex; justify-content: space-between; gap: 10px; }
.item-chat-conversation-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-chat-preview { overflow: hidden; margin-top: 4px; color: var(--toolshare-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) {
  .item-chat-page { padding-top: 14px; }
  .item-chat-header { display: flex; flex-wrap: wrap; padding: 14px; }
  .item-chat-live { order: 3; margin-left: auto; }
  .item-chat-switcher { order: 4; width: 100%; }
  .item-chat-switcher-menu { left: auto; right: 0; width: min(320px, 85vw); }
  .item-chat-switcher summary { max-width: none; }
  .item-chat-current-tool { order: 4; max-width: 100%; }
  .item-chat-thread { min-height: min(260px, calc(100dvh - 260px)); max-height: calc(100dvh - 250px); padding: 12px; }
  .item-chat-message { max-width: 88%; }
  .item-chat-form { align-items: stretch; flex-direction: column; }
  .item-chat-form button { width: 100%; }
}
.detail-description-section { margin-top: 22px; }
.detail-description-section h2 {
  margin: 0 0 12px;
  color: var(--toolshare-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.detail-description-row { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; align-items: start; }
.detail-description-check {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  margin-top: 4px;
  border: 1.5px solid #f2a51f;
  border-radius: 50%;
  color: #e99a00;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
.detail-description-row .detail-description { font-size: 15px; line-height: 1.65; color: #273852; }
@media (max-width: 520px) {
  .detail-info-card { padding: 20px 16px; }
  .detail-host-row { align-items: flex-start; flex-direction: column; }
  .detail-host-action, .detail-host-actions { width: 100%; }
  .detail-host-action { justify-content: center; }
  .owner-contact-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Admin operations workspace */
.admin-body { --admin-ink:#17231f; --admin-muted:#74817c; --admin-border:#e4eae6; --admin-canvas:#f5f7f5; --admin-green:#176b51; --admin-green-dark:#10543e; --admin-lime:#dff2df; background:var(--admin-canvas); color:var(--admin-ink); }
.admin-shell { grid-template-columns:252px minmax(0,1fr); }
.admin-sidebar { background:#142e27; padding:22px 14px 14px; border-right:1px solid rgba(255,255,255,.08); }
.admin-brand { display:flex; align-items:center; gap:11px; padding:0 10px 22px; margin:0; border:0; color:#fff; text-decoration:none; }
.admin-brand strong { display:block; font-size:16px; letter-spacing:-.02em; }
.admin-brand small { display:block; margin-top:3px; color:#9ab3a7; font-size:9px; letter-spacing:.16em; }
.admin-brand-mark { display:grid; place-items:center; width:36px; height:36px; border-radius:11px; background:#d8ecb4; color:#17382d; font-size:19px; font-weight:800; }
.admin-workspace { display:flex; align-items:center; gap:8px; padding:11px 12px; margin-bottom:17px; border:1px solid rgba(255,255,255,.12); border-radius:9px; color:#d8e6df; font-size:12px; }
.admin-workspace-dot,.admin-secure-label span { width:7px; height:7px; display:inline-block; border-radius:50%; background:#7cdb9f; box-shadow:0 0 0 3px rgba(124,219,159,.14); }
.admin-nav { display:flex; flex-direction:column; gap:3px; padding:0; }
.admin-nav-heading { padding:13px 11px 5px; color:#86a196; font-size:9px; font-weight:700; letter-spacing:.15em; text-transform:uppercase; }
.admin-nav-link { min-height:42px; gap:11px; padding:8px 10px; border-radius:8px; color:#c8d7d0; font-size:13px; font-weight:500; transition:background .18s ease,color .18s ease; }
.admin-nav-link:hover,.admin-nav-link.active { background:#24483c; color:#fff; }
.admin-nav-link.active { box-shadow:inset 2px 0 #d8ecb4; }
.admin-nav-icon { display:grid; place-items:center; width:23px; height:23px; flex:0 0 23px; border:1px solid rgba(255,255,255,.11); border-radius:6px; color:#c1d4ca; font-size:8px; font-weight:700; letter-spacing:.02em; }
.admin-nav-link.active .admin-nav-icon { background:#d8ecb4; border-color:#d8ecb4; color:#17382d; }
.admin-nav-count { display:grid; place-items:center; min-width:20px; height:20px; margin-left:auto; padding:0 5px; border-radius:10px; background:#e7b76a; color:#26332b; font-size:10px; font-weight:700; }
.admin-sidebar-footer { padding:12px 0 0; border-top:1px solid rgba(255,255,255,.12); }
.admin-sidebar-footer>.admin-nav-link { margin-bottom:7px; }
.admin-profile { display:flex; align-items:center; gap:10px; padding:12px 8px 2px; border-top:1px solid rgba(255,255,255,.1); }
.admin-avatar { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border-radius:50%; background:#d8ecb4; color:#17382d; font-size:13px; font-weight:800; }
.admin-profile-copy { min-width:0; flex:1; }
.admin-profile-copy strong,.admin-profile-copy small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-profile-copy strong { color:#f5faf6; font-size:12px; }
.admin-profile-copy small { margin-top:3px; color:#9ab3a7; font-size:10px; }
.admin-profile form { margin-left:auto; }
.admin-logout-btn { display:grid; place-items:center; width:34px; height:34px; border:1px solid rgba(255,255,255,.14); border-radius:8px; background:transparent; color:#d2dfd8; cursor:pointer; }
.admin-main { display:flex; flex-direction:column; min-height:100vh; }
.admin-topbar { min-height:116px; align-items:center; padding:20px clamp(20px,3.3vw,48px); border-bottom:1px solid var(--admin-border); background:#fff; }
.admin-eyebrow { color:#83918a; font-size:9px; font-weight:700; letter-spacing:.15em; }
.admin-page-title { margin-top:7px; color:var(--admin-ink); font-size:25px; line-height:1.15; letter-spacing:-.04em; }
.admin-subtitle { margin-top:5px; color:var(--admin-muted); font-size:12px; }
.admin-topbar-actions { display:flex; align-items:center; gap:20px; }
.admin-secure-label { display:flex; align-items:center; gap:8px; color:#63736b; font-size:11px; white-space:nowrap; }
.admin-secure-label span { width:6px; height:6px; }
.admin-topbar-user { text-align:right; font-size:12px; }
.admin-topbar-user strong,.admin-topbar-user small { display:block; }
.admin-topbar-user small { margin-top:4px; color:var(--admin-muted); font-size:10px; }
.admin-avatar-top { width:36px; height:36px; flex-basis:36px; }
.admin-content { width:100%; max-width:1520px; flex:1; padding:25px clamp(20px,3.3vw,48px) 36px; }
.admin-footer { display:flex; justify-content:space-between; gap:12px; padding:15px clamp(20px,3.3vw,48px); border-top:1px solid var(--admin-border); color:#8b9791; font-size:10px; }
.admin-stat-grid { grid-template-columns:repeat(auto-fit,minmax(165px,1fr)); gap:12px; }
.admin-stat-card,.detail-panel { border:1px solid var(--admin-border); border-radius:12px; background:#fff; box-shadow:0 2px 8px rgba(27,51,39,.025); }
.admin-stat-card { padding:17px 18px; }
.admin-stat-card-total { background:#e2efcf; border-color:#d6e5bf; }
.admin-stat-label { color:#74817c; font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.admin-stat-value { margin-top:12px; color:#1d3028; font-size:25px; font-weight:750; letter-spacing:-.04em; }
.admin-stat-meta { margin-top:7px; color:#718078; font-size:11px; }
.admin-stat-card-total .admin-stat-label,.admin-stat-card-total .admin-stat-meta { color:#61714f; }
.admin-two-col { gap:15px; margin-top:16px; }
.detail-panel { padding:19px; }
.detail-panel h3 { margin:0 0 14px; font-size:14px; letter-spacing:-.01em; }
.admin-toolbar,.admin-search-form { padding:12px; border:1px solid var(--admin-border); border-radius:10px; background:#fff; }
.admin-toolbar input[type="search"],.admin-toolbar select,.admin-search-form input[type="search"],.admin-search-form select { min-height:40px; border-color:var(--admin-border); border-radius:8px; background:#fff; color:var(--admin-ink); }
.admin-search-form { display:flex; align-items:center; gap:9px; margin:0 0 13px; }
.admin-search-form input[type="search"] { flex:1; min-width:180px; padding:8px 12px; }
.admin-search-form select { min-width:155px; padding:8px 10px; }
.admin-table-wrap { border:1px solid #edf0ed; border-radius:9px; }
.admin-table { font-size:12px; }
.admin-table th { padding:11px 12px; background:#f7f9f7; color:#74817c; font-size:9px; letter-spacing:.08em; text-transform:uppercase; }
.admin-table td { padding:12px; border-bottom-color:#edf0ed; vertical-align:middle; }
.admin-table tr:last-child td { border-bottom:0; }
.admin-actions-cell { gap:6px; }
.admin-actions-cell .btn { min-height:34px; }
.admin-user-create-summary { color:var(--admin-green); }
.admin-pagination { display:flex; justify-content:center; align-items:center; gap:18px; padding:17px 0 0; color:var(--admin-muted); font-size:12px; }
.admin-pagination a { color:var(--admin-green); font-weight:700; }
.admin-body .btn-primary,.admin-body .btn-accent { background:var(--admin-green); border-color:var(--admin-green); color:#fff; }
.admin-body .btn-primary:hover,.admin-body .btn-accent:hover { background:var(--admin-green-dark); border-color:var(--admin-green-dark); }
.admin-body .link,.admin-body a.link { color:var(--admin-green); }
.admin-body :focus-visible { outline:3px solid #e7b76a; outline-offset:2px; }
.admin-login-brand { color:var(--admin-green); }
@media (max-width:900px) { .admin-shell { grid-template-columns:1fr; } .admin-sidebar { position:static; height:auto; padding:12px; } .admin-brand { padding:3px 7px 13px; } .admin-workspace,.admin-sidebar-footer { display:none; } .admin-nav { flex-direction:row; flex-wrap:nowrap; overflow-x:auto; padding:0 0 4px; } .admin-nav-heading { display:none; } .admin-nav-link { flex:0 0 auto; min-height:40px; } .admin-nav-link.active { box-shadow:inset 0 -2px #d8ecb4; } .admin-nav-count { margin-left:0; } .admin-topbar { min-height:100px; } }
@media (max-width:600px) { .admin-topbar { align-items:flex-start; padding:17px 16px; } .admin-topbar-actions { gap:9px; } .admin-secure-label,.admin-topbar-user { display:none; } .admin-content { padding:16px; } .admin-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; } .admin-stat-card { padding:14px; } .admin-stat-value { font-size:21px; } .admin-two-col { grid-template-columns:1fr; } .admin-search-form { align-items:stretch; flex-direction:column; } .admin-search-form input[type="search"],.admin-search-form select { width:100%; } .admin-footer { padding:13px 16px; flex-direction:column; gap:4px; } }
@media (prefers-reduced-motion:reduce) { .admin-body *, .admin-body *::before,.admin-body *::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; } }
.admin-quick-actions { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin:14px 0 16px; padding:13px 15px; border:1px solid var(--admin-border); border-radius:11px; background:#fff; }
.admin-quick-actions>div { display:grid; gap:4px; margin-right:auto; padding-right:12px; }
.admin-quick-actions>div strong { font-size:12px; }
.admin-quick-link { display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:0 10px; border:1px solid var(--admin-border); border-radius:8px; color:#40544a; font-size:11px; text-decoration:none; }
.admin-quick-link:hover { background:#f2f7ef; border-color:#cdddc2; color:#173c2e; }
.admin-quick-link>span { display:grid; place-items:center; width:19px; height:19px; border-radius:6px; background:#eff5e7; color:#356346; font-weight:700; }
.admin-quick-link b { display:grid; place-items:center; min-width:18px; height:18px; padding:0 4px; border-radius:9px; background:#e7b76a; color:#26332b; }
.admin-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.admin-panel-heading h3 { margin:4px 0 0; }
.admin-inquiry-list { display:grid; }
.admin-inquiry-row { display:flex; align-items:center; gap:10px; padding:11px 0; border-top:1px solid #edf0ed; }
.admin-inquiry-avatar { display:grid; place-items:center; width:30px; height:30px; flex:0 0 30px; border-radius:50%; background:#edf4e6; color:#356346; font-size:11px; font-weight:700; }
.admin-inquiry-copy { min-width:0; flex:1; }
.admin-inquiry-copy strong,.admin-inquiry-copy span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-inquiry-copy strong { color:#26382f; font-size:11px; }
.admin-inquiry-copy span { margin-top:4px; color:#87938c; font-size:10px; }
.admin-inquiry-status-form { display:flex; align-items:center; gap:6px; min-width:152px; }
.admin-inquiry-status-form select { min-width:0; width:100px; min-height:34px; padding:5px 7px; border:1px solid var(--admin-border); border-radius:7px; background:#fff; color:var(--admin-ink); font-size:11px; }
.admin-inquiry-status-form .btn { min-height:34px; padding:6px 9px; }
@media(max-width:720px) { .admin-quick-actions>div { flex-basis:100%; } .admin-quick-link { flex:1 1 calc(50% - 8px); justify-content:center; } .admin-inquiry-status-form { min-width:0; flex-direction:column; align-items:stretch; } .admin-inquiry-status-form select { width:100%; } }
/* Keep every admin control reachable, including the session controls. */
.admin-sidebar { min-height:100vh; height:100vh; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
.admin-sidebar::-webkit-scrollbar { width:8px; }
.admin-sidebar::-webkit-scrollbar-track { background:#142e27; }
.admin-sidebar::-webkit-scrollbar-thumb { border:2px solid #142e27; border-radius:8px; background:#456257; }
.admin-sidebar { scrollbar-color:#456257 #142e27; scrollbar-width:thin; }
@media (max-width:900px) {
  .admin-sidebar { min-height:0; height:auto; max-height:none; overflow:visible; scrollbar-gutter:auto; }
  .admin-sidebar-footer { display:block; padding:8px 0 0; }
  .admin-sidebar-footer>.admin-nav-link { width:auto; display:inline-flex; min-height:36px; margin:0 0 6px; }
  .admin-profile { margin-top:5px; }
}
.admin-profile .admin-logout-btn { width:auto; min-width:56px; padding:0 9px; font-size:10px; }
/* Professional admin finishing pass */
.admin-body { font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif; background:#f3f5f4; }
.admin-shell { grid-template-columns:264px minmax(0,1fr); }
.admin-sidebar { padding:24px 16px 16px; box-shadow:4px 0 18px rgba(15,35,27,.035); }
.admin-brand { padding:0 9px 20px; }
.admin-brand-mark { border-radius:10px; box-shadow:0 3px 8px rgba(0,0,0,.12); }
.admin-workspace { background:rgba(255,255,255,.035); }
.admin-nav { gap:4px; }
.admin-nav-heading { margin-top:6px; padding:12px 11px 7px; }
.admin-nav-link { min-height:43px; border:1px solid transparent; }
.admin-nav-link.active { background:#24483c; border-color:rgba(216,236,180,.08); box-shadow:inset 3px 0 #d8ecb4; }
.admin-nav-link:not(.active):hover { background:rgba(255,255,255,.07); }
.admin-sidebar-footer { padding-top:14px; }
.admin-profile { margin-top:8px; padding-top:14px; }
.admin-logout-btn { font-weight:650; transition:background .18s ease,border-color .18s ease; }
.admin-logout-btn:hover { border-color:rgba(255,255,255,.3); background:rgba(255,255,255,.08); color:#fff; }
.admin-topbar { min-height:124px; box-shadow:0 1px 0 rgba(22,40,31,.02); }
.admin-page-title { font-size:27px; letter-spacing:-.045em; }
.admin-content { padding-top:27px; }
.admin-stat-grid { gap:14px; }
.admin-stat-card,.detail-panel { border-color:#e3e9e5; border-radius:13px; box-shadow:0 2px 6px rgba(24,45,34,.025),0 10px 28px rgba(24,45,34,.018); }
.admin-stat-card { min-height:120px; padding:17px 18px; transition:transform .18s ease,box-shadow .18s ease; }
.admin-stat-card:hover { transform:translateY(-2px); box-shadow:0 7px 18px rgba(24,45,34,.07); }
.admin-stat-card-total { background:linear-gradient(145deg,#e8f1dc,#dcebc9); }
.admin-stat-value { font-variant-numeric:tabular-nums; }
.admin-quick-actions { gap:8px; padding:14px 16px; border-color:#e3e9e5; box-shadow:0 2px 6px rgba(24,45,34,.02); }
.admin-quick-actions>div { min-width:175px; }
.admin-quick-link { min-height:38px; padding:0 11px; background:#fff; font-weight:600; transition:background .15s ease,border-color .15s ease,transform .15s ease; }
.admin-quick-link:hover { transform:translateY(-1px); }
.detail-panel { padding:21px; }
.detail-panel h3 { font-size:15px; }
.admin-table-wrap { overflow-x:auto; border-color:#e9eeeb; }
.admin-table { border-collapse:separate; border-spacing:0; }
.admin-table th { position:sticky; top:0; z-index:1; background:#f5f8f6; }
.admin-table tbody tr { transition:background .12s ease; }
.admin-table tbody tr:hover { background:#fafcfb; }
.admin-table td { line-height:1.45; }
.admin-table a { font-weight:600; text-decoration:none; }
.admin-table a:hover { text-decoration:underline; }
.admin-toolbar,.admin-search-form { gap:10px; padding:13px; border-color:#e3e9e5; box-shadow:0 2px 6px rgba(24,45,34,.02); }
.admin-body input:not([type=checkbox]):not([type=radio]),.admin-body select,.admin-body textarea { font:inherit; }
.admin-toolbar input[type="search"],.admin-toolbar select,.admin-search-form input[type="search"],.admin-search-form select,.admin-inquiry-status-form select { border-color:#dbe3de; }
.admin-body input:focus,.admin-body select:focus,.admin-body textarea:focus { border-color:#4a9278; box-shadow:0 0 0 3px rgba(23,107,81,.1); outline:0; }
.admin-body .btn { min-height:38px; border-radius:8px; font-weight:650; transition:transform .15s ease,background .15s ease,border-color .15s ease; }
.admin-body .btn:hover { transform:translateY(-1px); }
.admin-body .btn-sm { min-height:34px; }
.admin-body .badge { display:inline-flex; align-items:center; min-height:22px; padding:3px 9px; border-radius:999px; font-size:10px; font-weight:700; letter-spacing:.015em; }
.admin-body .badge-pending,.admin-body .badge-new { background:#fff2d8; color:#79520d; }
.admin-body .badge-approved,.admin-body .badge-completed,.admin-body .badge-active,.admin-body .badge-contacted { background:#e4f3e9; color:#226640; }
.admin-body .badge-denied,.admin-body .badge-cancelled,.admin-body .badge-closed,.admin-body .badge-inactive { background:#fce9e7; color:#8f3730; }
.admin-body .badge-reviewing,.admin-body .badge-overdue { background:#e8eff8; color:#365a83; }
.admin-pagination a { min-height:36px; display:inline-flex; align-items:center; padding:0 12px; border:1px solid #dfe8e2; border-radius:8px; background:#fff; text-decoration:none; }
.admin-pagination a:hover { background:#f2f7f4; }
.admin-inquiry-row { padding:13px 0; }
.admin-login-body { background:radial-gradient(ellipse at 78% 15%,rgba(216,236,180,.34),transparent 37%),#f3f5f4; }
.admin-login-card { border-color:#e3e9e5; box-shadow:0 18px 50px rgba(24,45,34,.12); }
@media (max-width:1100px) { .admin-shell { grid-template-columns:232px minmax(0,1fr); } .admin-stat-grid { grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); } }
@media (max-width:900px) { .admin-shell { grid-template-columns:minmax(0,1fr); } .admin-sidebar { box-shadow:0 4px 18px rgba(15,35,27,.09); } .admin-nav-link { padding-inline:9px; } }
@media (max-width:600px) { .admin-topbar { min-height:unset; } .admin-page-title { font-size:24px; } .admin-content { padding:16px; } .admin-stat-card { min-height:106px; } .detail-panel { padding:15px; } }
@media (prefers-reduced-motion:reduce) { .admin-stat-card,.admin-body .btn,.admin-quick-link { transition:none; } .admin-stat-card:hover,.admin-body .btn:hover,.admin-quick-link:hover { transform:none; } }
/* AdminLTE-inspired operations layout */
.admin-body { --admin-green:#3c8dbc; --admin-green-dark:#367fa9; --admin-lime:#d9edf7; --admin-canvas:#ecf0f5; --admin-border:#d2d6de; --admin-ink:#333; --admin-muted:#777; background:#ecf0f5; color:#333; }
.admin-shell { grid-template-columns:230px minmax(0,1fr); }
.admin-sidebar { background:#222d32; border-right:0; padding:0 0 12px; box-shadow:2px 0 5px rgba(0,0,0,.12); }
.admin-brand { height:57px; justify-content:center; gap:9px; padding:0 12px; background:#367fa9; }
.admin-brand-mark { width:30px; height:30px; border-radius:4px; background:#fff; color:#367fa9; box-shadow:none; }
.admin-brand strong { font-size:17px; }
.admin-brand small { display:none; }
.admin-workspace { margin:14px 10px 4px; border:0; padding:8px 12px; background:transparent; color:#9ba7ad; font-size:11px; }
.admin-nav { gap:0; }
.admin-nav-heading { margin:0; padding:13px 15px 7px; color:#4b646f; font-size:10px; }
.admin-nav-link { min-height:40px; padding:8px 12px; border-radius:0; color:#b8c7ce; font-size:13px; }
.admin-nav-link:hover,.admin-nav-link:not(.active):hover { background:#1e282c; color:#fff; }
.admin-nav-link.active { border:0; border-left:3px solid #3c8dbc; padding-left:9px; background:#1e282c; color:#fff; box-shadow:none; }
.admin-nav-icon { width:21px; height:21px; flex-basis:21px; border:0; border-radius:3px; background:rgba(255,255,255,.08); color:#d2dbe0; font-size:8px; }
.admin-nav-link.active .admin-nav-icon { background:#3c8dbc; border-color:#3c8dbc; color:#fff; }
.admin-nav-count { border-radius:3px; background:#f39c12; color:#fff; }
.admin-sidebar-footer { margin-top:auto; padding:10px 10px 0; border-top:1px solid rgba(255,255,255,.08); }
.admin-sidebar-footer>.admin-nav-link { border-radius:3px; }
.admin-profile { margin-top:8px; border-color:rgba(255,255,255,.08); }
.admin-avatar { border-radius:50%; background:#3c8dbc; color:#fff; }
.admin-logout-btn { border-radius:3px; }
.admin-main { min-height:100vh; }
.admin-topbar { min-height:57px; height:57px; flex:0 0 57px; padding:0 20px; border:0; background:#fff; box-shadow:0 1px 1px rgba(0,0,0,.1); }
.admin-topbar-heading { display:flex; align-items:center; gap:9px; color:#444; font-size:15px; }
.admin-topbar-heading strong { font-weight:500; }
.admin-topbar-heading strong span { color:#777; font-weight:400; }
.admin-topbar-mark { display:grid; place-items:center; width:27px; height:27px; border-radius:4px; background:#3c8dbc; color:#fff; font-weight:750; }
.admin-secure-label { color:#777; font-size:11px; }
.admin-secure-label span { background:#00a65a; box-shadow:none; }
.admin-avatar-top { border-radius:50%; background:#3c8dbc; }
.admin-content { max-width:none; padding:0 20px 28px; }
.admin-content-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; min-height:92px; padding:20px 0 16px; }
.admin-page-title { margin:0; color:#333; font-size:24px; font-weight:400; letter-spacing:-.025em; }
.admin-subtitle { margin:5px 0 0; color:#777; font-size:13px; }
.admin-eyebrow { color:#8a969c; }
.admin-breadcrumb { display:flex; align-items:center; gap:8px; margin:4px 0 0; padding:0; color:#777; font-size:12px; list-style:none; }
.admin-breadcrumb li+li:before { content:"/"; margin-right:8px; color:#bbb; }
.admin-breadcrumb a { color:#3c8dbc; text-decoration:none; }
.admin-breadcrumb [aria-current="page"] { color:#777; }
.admin-stat-grid { gap:14px; }
.admin-stat-card,.detail-panel { border:0; border-radius:2px; background:#fff; box-shadow:0 1px 1px rgba(0,0,0,.1); }
.admin-stat-card { min-height:108px; padding:16px 17px; }
.admin-stat-card:hover { transform:none; box-shadow:0 2px 5px rgba(0,0,0,.14); }
.admin-stat-card-total { border-top:3px solid #3c8dbc; background:#fff; }
.admin-stat-card-total .admin-stat-label,.admin-stat-card-total .admin-stat-meta { color:#777; }
.admin-stat-label { color:#777; font-size:11px; }
.admin-stat-value { margin-top:10px; color:#333; font-size:24px; font-weight:600; }
.admin-stat-meta { color:#777; }
.admin-quick-actions { border:0; border-radius:2px; box-shadow:0 1px 1px rgba(0,0,0,.1); }
.admin-quick-actions>div { min-width:190px; }
.admin-quick-link { border-radius:2px; }
.detail-panel { padding:0 15px 15px; }
.detail-panel>h3,.admin-panel-heading { min-height:45px; margin:0 -15px 12px; padding:13px 15px 10px; border-bottom:1px solid #f4f4f4; color:#444; font-size:16px; font-weight:500; }
.admin-panel-heading { display:flex; }
.admin-panel-heading h3 { margin:2px 0 0; font-size:15px; }
.admin-panel-heading .admin-eyebrow { display:none; }
.admin-table-wrap { border:1px solid #f4f4f4; border-radius:2px; }
.admin-table th { background:#f9fafc; color:#666; font-size:10px; }
.admin-table td { color:#444; }
.admin-table tbody tr:hover { background:#f5fafd; }
.admin-toolbar,.admin-search-form { border:0; border-radius:2px; box-shadow:0 1px 1px rgba(0,0,0,.1); }
.admin-toolbar input[type="search"],.admin-toolbar select,.admin-search-form input[type="search"],.admin-search-form select,.admin-inquiry-status-form select { border-radius:2px; }
.admin-body .btn { border-radius:3px; }
.admin-body .btn-primary,.admin-body .btn-accent { background:#3c8dbc; border-color:#367fa9; color:#fff; }
.admin-body .btn-primary:hover,.admin-body .btn-accent:hover { background:#367fa9; border-color:#204d74; }
.admin-body .btn-outline { border-radius:3px; }
.admin-body .badge { border-radius:3px; }
.admin-body .badge-pending,.admin-body .badge-new { background:#f39c12; color:#fff; }
.admin-body .badge-approved,.admin-body .badge-completed,.admin-body .badge-active,.admin-body .badge-contacted { background:#00a65a; color:#fff; }
.admin-body .badge-denied,.admin-body .badge-cancelled,.admin-body .badge-closed,.admin-body .badge-inactive { background:#dd4b39; color:#fff; }
.admin-body .badge-reviewing,.admin-body .badge-overdue { background:#3c8dbc; color:#fff; }
.admin-inquiry-row { border-color:#f4f4f4; }
.admin-inquiry-avatar { border-radius:50%; background:#3c8dbc; color:#fff; }
.admin-footer { background:#fff; }
.admin-login-brand { color:#3c8dbc; }
@media (max-width:1100px) { .admin-shell { grid-template-columns:220px minmax(0,1fr); } }
@media (max-width:900px) { .admin-shell { grid-template-columns:minmax(0,1fr); } .admin-sidebar { padding:0 10px 10px; } .admin-brand { justify-content:flex-start; } .admin-workspace { display:none; } .admin-sidebar-footer { display:block; } .admin-content-header { min-height:84px; } }
@media (max-width:600px) { .admin-topbar { padding:0 14px; } .admin-content { padding:0 14px 22px; } .admin-content-header { flex-direction:column; min-height:0; gap:7px; padding:17px 0 13px; } .admin-page-title { font-size:22px; } .admin-breadcrumb { margin:0; } .admin-stat-card { min-height:98px; } .detail-panel { padding:0 12px 12px; } .detail-panel>h3,.admin-panel-heading { margin-right:-12px; margin-left:-12px; padding-right:12px; padding-left:12px; } }
/* Keep identifiers and compact values intact; let table wrappers scroll instead. */
.admin-table { width:100%; min-width:760px; table-layout:auto; }
.admin-table th,.admin-table td { overflow-wrap:normal; word-break:normal; }
.admin-table th:not(:last-child),.admin-table td:not(:last-child) { white-space:nowrap; }
.admin-table .badge { white-space:nowrap; word-break:keep-all; }
.admin-users-table { min-width:1120px; }
.admin-users-table td:last-child { min-width:165px; white-space:normal; }
.admin-users-table .admin-actions-cell { align-items:flex-start; }
.admin-users-table .admin-actions-cell form,.admin-users-table .admin-actions-cell details { flex:0 0 100%; }
.admin-users-table .admin-actions-cell .btn { white-space:nowrap; }
/* Long free-form descriptions should wrap at spaces, never split words mid-character. */
.admin-table td[style*="white-space: pre-wrap"] { white-space:pre-wrap!important; overflow-wrap:break-word; word-break:normal; }
@media(max-width:600px) { .admin-table-wrap { max-width:100%; } .admin-table { min-width:760px; } .admin-users-table { min-width:1120px; } }
/* Prevent dashboard tables from widening the entire page. */
.admin-main,.admin-content { min-width:0; }
.admin-two-col { grid-template-columns:repeat(2,minmax(0,1fr)); min-width:0; }
.admin-two-col>.detail-panel { min-width:0; }
.admin-two-col .admin-table-wrap { width:100%; min-width:0; }
.admin-two-col .admin-table { width:100%; min-width:0; table-layout:fixed; }
.admin-two-col .admin-table th,.admin-two-col .admin-table td { white-space:normal; overflow-wrap:break-word; word-break:normal; }
@media(max-width:900px) { .admin-two-col { grid-template-columns:minmax(0,1fr); } }
/* Work marketplace admin controls */
.admin-work-stats { margin-bottom:16px; }
.admin-work-tabs { display:flex; gap:3px; overflow-x:auto; margin-bottom:12px; padding:4px 4px 0; border-bottom:1px solid #d2d6de; background:#fff; box-shadow:0 1px 1px rgba(0,0,0,.06); }
.admin-work-tabs a { display:flex; align-items:center; gap:8px; min-height:42px; flex:0 0 auto; padding:0 13px; border-bottom:3px solid transparent; color:#555; font-size:12px; font-weight:600; text-decoration:none; }
.admin-work-tabs a:hover { background:#f7f9fb; color:#367fa9; }
.admin-work-tabs a.active { border-bottom-color:#3c8dbc; color:#367fa9; }
.admin-work-tabs a span { display:grid; place-items:center; min-width:20px; height:20px; padding:0 5px; border-radius:3px; background:#f39c12; color:#fff; font-size:10px; }
.admin-work-result-count { margin-left:auto; color:#777; font-size:11px; white-space:nowrap; }
.admin-work-table-panel { padding:0 12px 12px; }
.admin-work-table { min-width:1180px; }
.admin-work-subline { display:block; margin-top:4px; color:#777; font-size:10px; line-height:1.4; white-space:normal; }
.admin-work-term { display:block; white-space:nowrap; }
.admin-work-note summary { color:#367fa9; cursor:pointer; font-size:11px; font-weight:600; }
.admin-work-note p { max-width:260px; margin:6px 0 0; color:#555; font-size:11px; line-height:1.5; white-space:pre-wrap; }
.admin-work-empty { display:grid; justify-items:center; gap:6px; padding:42px 15px; color:#777; text-align:center; }
.admin-work-empty strong { color:#444; font-size:14px; }
.admin-work-empty span { font-size:12px; }
@media(max-width:600px) { .admin-work-result-count { flex-basis:100%; margin-left:0; } .admin-work-tabs a { padding:0 10px; font-size:11px; } }
.admin-pagination { justify-content:flex-end; flex-wrap:wrap; gap:9px; margin:4px 0 18px; padding:12px; border:1px solid #d2d6de; border-radius:2px; background:#fff; }
.admin-pagination-summary { margin-right:auto; color:#777; font-size:11px; }
.admin-pagination-page { color:#555; font-size:11px; }
.admin-pagination a,.admin-pagination-disabled { min-height:34px; display:inline-flex; align-items:center; padding:0 10px; border:1px solid #d2d6de; border-radius:3px; background:#fff; color:#3c8dbc; font-size:11px; text-decoration:none; }
.admin-pagination a:hover { background:#f4f8fb; }
.admin-pagination-disabled { color:#aaa; background:#f7f7f7; }
@media(max-width:600px) { .admin-pagination { justify-content:center; } .admin-pagination-summary { flex-basis:100%; margin:0; text-align:center; } }
.admin-dashboard-pagination { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-top:12px; padding-top:10px; border-top:1px solid #f4f4f4; color:#777; font-size:10px; }
.admin-dashboard-pagination>div { display:flex; align-items:center; gap:8px; }
.admin-dashboard-pagination a,.admin-dashboard-pagination .disabled { display:inline-flex; align-items:center; min-height:30px; padding:0 8px; border:1px solid #d2d6de; border-radius:3px; background:#fff; color:#3c8dbc; font-size:10px; text-decoration:none; }
.admin-dashboard-pagination a:hover { background:#f4f8fb; }
.admin-dashboard-pagination .disabled { background:#f7f7f7; color:#aaa; }
.admin-dashboard-pagination b { color:#555; font-size:10px; font-weight:600; white-space:nowrap; }
@media(max-width:520px) { .admin-dashboard-pagination { align-items:flex-start; flex-direction:column; } }
