/**
 * Tema Tosca — OPAC + login (palet tosca gelap seragam)
 */

:root {
  --tosca: #0a7a74;
  --tosca-deep: #065f5b;
  --tosca-mid: #1ab3ab;
  --tosca-soft: #9fd9d4;
  --tosca-mist: #d8efec;
  --tosca-ink: #0c2e2c;
  --tosca-muted: #4d6b68;
  --tosca-line: #b5d4cf;
  --tosca-white: #f2faf8;
  --tosca-sand: #d8efec;
  --tosca-surface: #ffffff;
  --tosca-hero-1: #043836;
  --tosca-hero-2: #0a7a74;
  --tosca-hero-3: #3aada5;
  --tosca-accent: #ff7a59;
  --tosca-accent-deep: #e85d3a;
  --tosca-gold: #f0c14a;
  --tosca-page-1: #d8efec;
  --tosca-page-2: #a8d9d4;
  --tosca-page-3: #3aada5;
  --tosca-page-4: #0a6e69;
  --tosca-mark-end: #083d3b;
  --tosca-shadow: 6, 95, 91;
  --tosca-overlay: 6, 40, 38;
  --tosca-radius: 18px;
  --tosca-radius-sm: 12px;
  --tosca-shell: 480px;
  --tosca-nav-h: 72px;
  --font-display: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
  --tosca-touch: 44px;
}

html { scroll-behavior: smooth; color-scheme: light; }

/* Sembunyikan bilah merah #vio (sisa injeksi lama) */
#vio { display: none !important; height: 0 !important; padding: 0 !important; margin: 0 !important; overflow: hidden !important; }

body.tosca-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  color: var(--tosca-ink);
  background: linear-gradient(135deg, var(--tosca-page-1, #d8efec) 0%, var(--tosca-page-2, #a8d9d4) 38%, var(--tosca-page-3, #3aada5) 72%, var(--tosca-page-4, #0a6e69) 100%);
  background-attachment: scroll;
  min-height: 100vh;
  min-height: 100dvh;
}

.tosca-shell h1,
.tosca-shell h2,
.tosca-shell h3,
.tosca-shell h4,
.tosca-shell .title-section,
.tosca-shell .subtitle-section {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.tosca-shell {
  width: 100%;
  max-width: var(--tosca-shell);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--tosca-white);
  box-shadow: 0 0 0 1px rgba(6, 95, 91, 0.1), 0 24px 60px rgba(6, 95, 91, 0.22);
  position: relative;
  padding-bottom: calc(var(--tosca-nav-h) + env(safe-area-inset-bottom, 0px) + 16px);
  overflow-x: hidden;
}

@media (min-width: 900px) {
  body.tosca-body { padding: 24px 0; }
  .tosca-shell {
    border-radius: 28px;
    min-height: calc(100vh - 48px);
  }
}

.tosca-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 248, 246, 0.97);
  border-bottom: 1px solid var(--tosca-line);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (min-width: 900px) {
    .tosca-header {
      background: rgba(242, 248, 246, 0.88);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }
  }
}

.tosca-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 8px;
}

.tosca-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tosca-ink);
  min-width: 0;
}

.tosca-brand__mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--tosca-mid) 0%, var(--tosca-deep) 70%, var(--tosca-mark-end, #083d3b) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 6px 16px rgba(10, 122, 116, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.tosca-brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tosca-brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  hyphens: auto;
}

.tosca-search-bar {
  padding: 0 16px 12px;
}

.tosca-search-bar form {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--tosca-mist);
  border: 1px solid var(--tosca-line);
  border-radius: 999px;
  overflow: hidden;
}

.tosca-search-bar__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px; /* cegah zoom iOS */
  padding: 11px 8px 11px 16px;
  color: var(--tosca-ink);
}

.tosca-search-bar__input::placeholder {
  color: #8aa09e;
}

.tosca-search-bar__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--tosca-deep);
  cursor: pointer;
  font-size: 0.95rem;
}

.tosca-search-bar__btn:hover {
  color: var(--tosca);
}

.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;
}

/* legacy search (jika masih ada) */
.tosca-search { flex: 1; min-width: 0; }

.tosca-search form,
.tosca-search .card-body {
  padding: 0 !important;
  margin: 0;
}

.tosca-search .card {
  border: none !important;
  box-shadow: none !important;
  background: var(--tosca-mist) !important;
  border-radius: 999px !important;
  background-image: none !important;
}

.tosca-search .input-transparent,
.tosca-search input[type="text"] {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  padding: 11px 42px 11px 16px;
  color: var(--tosca-ink);
}

.tosca-search .input-transparent::placeholder {
  color: #8aa09e;
  font-weight: 400;
}

.tosca-shell .c-header { min-height: 0 !important; background: none !important; display: none; }
.tosca-shell #search-wraper.search { margin-top: 0 !important; display: none; }
.tosca-shell.tosca-inner-page #search-wraper.search { display: block; margin: 12px 16px 0 !important; }

.tosca-hero {
  margin: 12px 16px 0;
  border-radius: 22px;
  min-height: 168px;
  padding: 24px 20px;
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--tosca-gold) 35%, transparent), transparent 32%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--tosca-accent) 28%, transparent), transparent 38%),
    linear-gradient(125deg, rgba(var(--tosca-overlay, 6, 40, 38), 0.25), transparent 42%),
    linear-gradient(155deg, var(--tosca-hero-1) 0%, var(--tosca-hero-2) 48%, var(--tosca-hero-3) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(var(--tosca-shadow, 6, 95, 91), 0.28);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tosca-hero::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  right: -48px;
  top: -60px;
}

.tosca-hero::after {
  content: '';
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(94, 200, 196, 0.35);
  right: 36px;
  bottom: -48px;
}

.tosca-hero__eyebrow {
  display: none;
}

.tosca-hero__logo {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #eaf8f6);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--tosca);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.35);
}

.tosca-hero__logo.has-logo {
  background: #fff;
  padding: 8px;
}

.tosca-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.tosca-hero__logo.has-logo img { display: block; }
.tosca-hero__logo.has-logo .tosca-hero__logo-fallback { display: none; }

.tosca-hero__title {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 3.6vw, 1.2rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
  max-width: 22ch;
  text-align: center;
  letter-spacing: -0.01em;
}

.tosca-hero__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.88rem;
  opacity: 0.92;
  max-width: 28ch;
  position: relative;
  z-index: 1;
  font-weight: 400;
}

.tosca-calc {
  margin: 10px 16px 0;
  position: relative;
  z-index: 2;
  background: var(--tosca-white);
  border: 1px solid var(--tosca-line);
  border-radius: var(--tosca-radius);
  padding: 14px 14px 12px;
  box-shadow: 0 12px 30px rgba(10, 92, 90, 0.12);
}

.tosca-visitor {
  margin-top: -4px;
}

.tosca-visitor__hint {
  margin: -4px 0 12px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--tosca-muted);
  line-height: 1.4;
}

.tosca-visitor__note {
  display: block;
  margin-top: 5px;
  font-size: 0.72rem;
  color: var(--tosca-muted);
  line-height: 1.35;
}

.tosca-visitor__msg {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--tosca-radius-sm);
  font-size: 0.85rem;
  line-height: 1.4;
  background: var(--tosca-mist);
  color: var(--tosca-ink);
  border: 1px solid var(--tosca-line);
}

.tosca-visitor__msg--ok {
  background: rgba(10, 122, 116, 0.1);
  border-color: rgba(10, 122, 116, 0.28);
  color: var(--tosca-deep);
}

.tosca-visitor__msg--error {
  background: rgba(212, 77, 46, 0.1);
  border-color: rgba(212, 77, 46, 0.28);
  color: #9a2f1a;
}

.tosca-visitor__msg--wait {
  opacity: 0.85;
}

.tosca-visitor .tosca-btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.tosca-visitor__input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.tosca-visitor__input-row input {
  flex: 1;
  min-width: 0;
}

.tosca-visitor__cam {
  flex: 0 0 auto;
  width: 48px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tosca-line);
  border-radius: var(--tosca-radius-sm);
  background: var(--tosca-mist);
  color: var(--tosca-deep);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tosca-visitor__cam:hover,
.tosca-visitor__cam:focus-visible {
  background: rgba(10, 122, 116, 0.12);
  border-color: var(--tosca);
  color: var(--tosca);
  outline: none;
}

.tosca-visitor__cam:active {
  transform: scale(0.97);
}

.tosca-visitor__cam[aria-pressed="true"] {
  background: rgba(10, 122, 116, 0.16);
  border-color: var(--tosca);
  color: var(--tosca);
}

.tosca-visitor-scan[hidden] {
  display: none !important;
}

.tosca-visitor-scan {
  margin: 0 0 14px;
  padding: 8px;
  border: 1px solid var(--tosca-line);
  border-radius: var(--tosca-radius-sm);
  background: var(--tosca-mist);
}

.tosca-visitor-scan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.tosca-visitor-scan__head strong {
  font-size: 0.82rem;
  color: var(--tosca-ink);
  font-weight: 600;
}

.tosca-visitor-scan__close {
  width: 36px;
  height: 36px;
  border: 0;
  background: #fff;
  border-radius: 10px;
  color: var(--tosca-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.tosca-visitor-scan__view {
  position: relative;
  width: 100%;
  min-height: 240px;
  aspect-ratio: 16 / 9;
  max-height: 360px;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1f1e;
}

.tosca-visitor-scan__view video,
.tosca-visitor-scan__view #toscaHtml5Qr,
.tosca-visitor-scan__view #toscaHtml5Qr video {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 240px;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
}

.tosca-visitor-scan__view #toscaHtml5Qr {
  height: 100% !important;
  min-height: 240px;
}

.tosca-visitor-scan__view #toscaHtml5Qr > img,
.tosca-visitor-scan__view #toscaHtml5Qr canvas {
  display: none !important;
}

.tosca-visitor-scan__status {
  margin: 6px 0 0;
  min-height: 1em;
  text-align: center;
  font-size: 0.75rem;
  color: var(--tosca-deep);
  line-height: 1.3;
}

.tosca-calc__title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 10px;
  background: linear-gradient(90deg, var(--tosca-deep), var(--tosca-mid));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tosca-calc label {
  display: block;
  font-size: 0.78rem;
  color: var(--tosca-muted);
  margin-bottom: 4px;
}

.tosca-calc__row { margin-bottom: 10px; }

.tosca-calc select,
.tosca-calc input[type="text"] {
  width: 100%;
  border: 1px solid var(--tosca-line);
  background: var(--tosca-mist);
  border-radius: var(--tosca-radius-sm);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 16px; /* cegah zoom iOS */
  color: var(--tosca-ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tosca-calc select:focus,
.tosca-calc input[type="text"]:focus {
  border-color: var(--tosca);
  box-shadow: 0 0 0 3px rgba(10, 122, 116, 0.18);
  background: #fff;
}

.tosca-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
}

.tosca-btn:hover { text-decoration: none; transform: translateY(-1px); }

.tosca-btn--primary {
  background: linear-gradient(135deg, var(--tosca-accent) 0%, var(--tosca-accent-deep) 55%, #d44d2e 100%);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(232, 93, 58, 0.38);
}

.tosca-btn--primary:hover {
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(232, 93, 58, 0.5);
}

.tosca-section { padding: 28px 16px 8px; }

.tosca-section__head { margin-bottom: 14px; }

.tosca-section__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--tosca-deep);
  margin: 0 0 4px;
}

.tosca-section__sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--tosca-muted);
}

.tosca-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tosca-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--tosca-ink);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.25;
  gap: 8px;
  transition: transform 0.2s ease;
}

.tosca-menu a:hover {
  transform: translateY(-3px);
  color: var(--tosca-deep);
  text-decoration: none;
}

.tosca-menu__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffffff 0%, var(--tosca-mist) 100%);
  border: 1px solid var(--tosca-soft);
  display: grid;
  place-items: center;
  color: var(--tosca-deep);
  font-size: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 12px rgba(10, 122, 116, 0.14);
}

.tosca-menu li:nth-child(3n) .tosca-menu__icon {
  color: var(--tosca-accent-deep);
  border-color: #ffd5cb;
  background: linear-gradient(160deg, #fff 0%, #fff1ed 100%);
}

.tosca-menu li:nth-child(4n) .tosca-menu__icon {
  color: #b8860b;
  border-color: #f5e6b8;
  background: linear-gradient(160deg, #fff 0%, #fff8e6 100%);
}

.tosca-section .subtitle-section {
  display: block;
  font-size: 0.85rem;
  color: var(--tosca-muted);
  font-weight: 400;
  margin-top: 4px;
}

.tosca-shell #slims-home > section.container,
.tosca-shell #slims-home > section.mt-5 {
  max-width: none;
  padding-left: 16px !important;
  padding-right: 16px !important;
  margin-top: 1.5rem !important;
}

.tosca-shell #slims-home h4 {
  font-family: var(--font-display);
  color: var(--tosca-deep);
  font-size: 1.2rem;
}

.tosca-shell .s-card,
.tosca-shell .card {
  border-radius: var(--tosca-radius-sm) !important;
  border-color: var(--tosca-line) !important;
  background: var(--tosca-surface) !important;
  color: var(--tosca-ink);
}

.tosca-shell .card-body,
.tosca-shell .list-group-item {
  background: transparent !important;
  color: var(--tosca-ink);
  border-color: var(--tosca-line) !important;
}

.tosca-shell .text-muted,
.tosca-shell .text-secondary {
  color: var(--tosca-muted) !important;
}

.tosca-shell .btn-light,
.tosca-shell .btn-outline-secondary {
  background: var(--tosca-mist) !important;
  border-color: var(--tosca-line) !important;
  color: var(--tosca-ink) !important;
}

.tosca-shell .form-control,
.tosca-shell select,
.tosca-shell input[type="text"],
.tosca-shell input[type="search"],
.tosca-shell input[type="password"],
.tosca-shell textarea {
  background: var(--tosca-mist) !important;
  border-color: var(--tosca-line) !important;
  color: var(--tosca-ink) !important;
}

.tosca-shell .btn-primary,
.tosca-shell .btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--tosca-accent), var(--tosca-accent-deep)) !important;
  border-color: var(--tosca-accent-deep) !important;
}

.tosca-shell .btn-outline-primary {
  color: var(--tosca-deep) !important;
  border-color: var(--tosca) !important;
}

.tosca-shell a { color: var(--tosca-deep); }
.tosca-shell .text-primary { color: var(--tosca) !important; }

.tosca-bottomnav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--tosca-shell);
  min-height: var(--tosca-nav-h);
  height: auto;
  background: #c8deda;
  border-top: 1px solid rgba(149, 184, 178, 0.85);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 50;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 18px rgba(20, 53, 52, 0.1);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (min-width: 900px) {
    .tosca-bottomnav {
      background: rgba(200, 222, 218, 0.94);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
    }
  }
}

@media (min-width: 900px) {
  .tosca-bottomnav {
    bottom: 24px;
    border-radius: 0 0 28px 28px;
    padding-bottom: 10px;
  }
}

.tosca-bottomnav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: #55706c;
  font-size: 0.74rem;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
  min-height: var(--tosca-touch);
  border-radius: 12px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tosca-bottomnav a .tosca-ico {
  width: 22px;
  height: 22px;
}

.tosca-bottomnav a.active,
.tosca-bottomnav a:hover {
  color: var(--tosca);
  text-decoration: none;
  background: rgba(10, 122, 116, 0.12);
}

.tosca-footer {
  margin: 24px 16px 8px;
  padding: 20px 16px;
  border-radius: var(--tosca-radius);
  background: var(--tosca-mist);
  color: var(--tosca-muted);
  font-size: 0.8rem;
  text-align: center;
}

.tosca-footer__brand {
  font-family: var(--font-display);
  color: var(--tosca-ink);
  font-size: 1rem;
  margin-bottom: 6px;
}

.tosca-shell .container { max-width: 100%; }
.tosca-shell > footer.py-4 { display: none !important; }

/* --- Slider koleksi (sampul kecil, horizontal) --- */
.tosca-slider {
  position: relative;
  margin: 0 -4px;
}

.tosca-slider__track {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 36px 10px;
  scrollbar-width: none;
}

.tosca-slider__track::-webkit-scrollbar {
  display: none;
}

.tosca-slider__nav {
  position: absolute;
  top: 42%;
  z-index: 5;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--tosca-deep);
  box-shadow: 0 4px 12px rgba(10, 92, 90, 0.22);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.8rem;
  pointer-events: auto;
}

.tosca-slider__nav--prev { left: 2px; }
.tosca-slider__nav--next { right: 2px; }

.tosca-slider__nav:hover {
  background: var(--tosca);
  color: #fff;
}

#slims-home .collection,
.tosca-slider .collection,
#slims-home {
  display: block;
}

#slims-home .collection,
.tosca-slider .collection {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
  width: max-content;
  min-height: 0 !important;
}

#slims-home .collection > div,
.tosca-slider .collection > div {
  flex: 0 0 88px;
  width: 88px !important;
  max-width: 88px;
  padding: 0 !important;
  scroll-snap-align: start;
}

#slims-home .collection .card,
.tosca-slider .collection .card {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  height: auto !important;
}

#slims-home .collection .card-body,
.tosca-slider .collection .card-body {
  padding: 0 !important;
}

#slims-home .collection .card-image,
#slims-home .collection .card-image.fit-height,
.tosca-slider .collection .card-image {
  width: 88px !important;
  height: 120px !important;
  min-height: 0 !important;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--tosca-line);
  background: var(--tosca-mist);
  box-shadow: 0 4px 10px rgba(10, 92, 90, 0.12);
}

#slims-home .collection .card-image img,
.tosca-slider .collection .card-image img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
  display: block;
}

#slims-home .collection .card-text,
.tosca-slider .collection .card-text {
  margin-top: 8px !important;
  font-size: 0.72rem !important;
  line-height: 1.3 !important;
  color: var(--tosca-ink) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0 !important;
  max-height: 2.6em;
}

/* --- Halaman hasil pencarian --- */
.tosca-search-page {
  padding-bottom: 8px;
}

.tosca-search-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 8px;
}

.tosca-search-found {
  font-size: 0.88rem;
  color: var(--tosca-muted);
  line-height: 1.4;
}

.tosca-search-found strong {
  color: var(--tosca-ink);
}

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

.tosca-chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--tosca-line);
  background: var(--tosca-white);
  color: var(--tosca-ink);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: var(--tosca-touch);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.tosca-chip-btn:hover {
  border-color: var(--tosca);
  color: var(--tosca-deep);
}

.tosca-sort-select {
  flex: 1;
  min-width: 140px;
  min-height: var(--tosca-touch);
  border: 1px solid var(--tosca-line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 16px; /* cegah zoom iOS */
  background: var(--tosca-sand);
  color: var(--tosca-ink);
}

.tosca-filter-panel {
  margin: 0 16px 12px;
}

.tosca-filter-panel__inner {
  background: var(--tosca-mist);
  border: 1px solid var(--tosca-line);
  border-radius: var(--tosca-radius);
  padding: 14px;
  max-height: 55vh;
  overflow: auto;
}

.tosca-filter-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tosca-filter-panel .s-sidebar,
.tosca-filter-panel .facet,
.tosca-filter-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tosca-filter-panel h4 {
  display: none;
}

.tosca-filter-panel .facet-header,
.tosca-filter-panel .list-group-item,
.tosca-filter-panel label {
  font-size: 0.85rem;
}

.tosca-search-results {
  padding: 4px 16px 20px;
}

.tosca-search-results .biblioPaging {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--tosca-line);
}

.tosca-search-results .biblioPaging .pagingList a,
.tosca-search-results .biblioPaging .pagingList b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tosca-touch);
  min-height: var(--tosca-touch);
  margin: 2px;
  border-radius: 10px;
  border: 1px solid var(--tosca-line);
  padding: 0 10px;
  text-decoration: none;
  color: var(--tosca-ink);
  font-size: 0.88rem;
  background: var(--tosca-surface);
  touch-action: manipulation;
}

.tosca-search-results .biblioPaging .pagingList b {
  background: var(--tosca);
  border-color: var(--tosca);
  color: #fff;
}

.tosca-empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--tosca-muted);
  display: grid;
  gap: 6px;
  justify-items: center;
}

.tosca-empty i {
  font-size: 2rem;
  color: var(--tosca);
  margin-bottom: 6px;
}

/* Kartu buku hasil pencarian */
.tosca-book-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--tosca-surface);
  border: 1px solid var(--tosca-line);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(10, 92, 90, 0.07);
  content-visibility: auto;
  contain-intrinsic-size: auto 140px;
}

.tosca-book-card__cover {
  display: block;
  width: 78px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--tosca-mist);
  border: 1px solid var(--tosca-line);
}

.tosca-book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tosca-book-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tosca-book-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tosca-avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}

.tosca-avail-badge.is-available {
  background: rgba(10, 122, 116, 0.14);
  color: var(--tosca-deep);
}

.tosca-avail-badge.is-empty {
  background: rgba(232, 93, 58, 0.12);
  color: var(--tosca-accent-deep);
}

.tosca-book-card__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}

.tosca-book-card__title a {
  color: var(--tosca-ink);
  text-decoration: none;
}

.tosca-book-card__title a:hover {
  color: var(--tosca-deep);
}

.tosca-book-card__authors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.tosca-author-chip {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  color: var(--tosca-deep);
  background: var(--tosca-mist);
  border-radius: 999px;
  padding: 2px 8px;
  text-decoration: none;
}

.tosca-author-more {
  font-size: 0.72rem;
  color: var(--tosca-muted);
}

.tosca-book-card__notes {
  margin: 0;
  font-size: 0.78rem;
  color: var(--tosca-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tosca-book-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.tosca-mini-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  font-size: 0.75rem;
  color: var(--tosca);
  text-decoration: none;
  font-weight: 600;
  touch-action: manipulation;
}

.tosca-mini-link:hover {
  color: var(--tosca-deep);
}

.tosca-mini-link .tosca-ico {
  flex-shrink: 0;
}

.tosca-search-results .biblioResult {
  display: block;
}

/* Grid view — CSS grid (tanpa Masonry / Bootstrap col) */
.tosca-search-results.is-grid-view .biblioResult {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 2px 0 8px;
  align-items: stretch;
}

.tosca-search-results.is-grid-view .biblioResult > :not(.tosca-grid-card) {
  grid-column: 1 / -1;
}

/* Form keranjang: anak ikut grid induk */
.tosca-search-results.is-grid-view .biblioMarkForm {
  display: contents;
}

.tosca-search-results.is-grid-view .biblioMarkFormAction {
  grid-column: 1 / -1;
}

@media (min-width: 520px) {
  .tosca-search-results.is-grid-view .biblioResult {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 860px) {
  .tosca-search-results.is-grid-view .biblioResult {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.tosca-grid-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(165deg, #e8f3f1 0%, #dceeea 55%, #d2e8e4 100%);
  border: 1px solid rgba(10, 92, 90, 0.14);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(10, 92, 90, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
}

.tosca-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(10, 92, 90, 0.16);
}

.tosca-grid-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--tosca-mist, #cfe6e2);
  overflow: hidden;
}

.tosca-grid-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.tosca-grid-card:hover .tosca-grid-card__cover img {
  transform: scale(1.04);
}

.tosca-grid-card__cover img.not-available {
  filter: grayscale(0.55) brightness(0.92);
}

.tosca-grid-card__badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: rgba(6, 78, 74, 0.88);
  backdrop-filter: blur(4px);
}

.tosca-grid-card__badge.is-empty {
  background: rgba(140, 40, 40, 0.88);
}

.tosca-grid-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 12px;
  min-width: 0;
  flex: 1;
}

.tosca-grid-card__title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--tosca-ink, #0a3d3a);
}

.tosca-grid-card__title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tosca-grid-card__title a:hover {
  color: var(--tosca-deep, #0a5c5a);
}

.tosca-grid-card__authors {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 0;
}

.tosca-grid-card__authors .tosca-author-chip,
.tosca-grid-card__authors .tosca-author-more {
  font-size: 0.68rem;
  padding: 2px 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tosca-grid-card__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 4px;
}

.tosca-grid-card__actions .tosca-mini-link {
  width: var(--tosca-touch);
  height: var(--tosca-touch);
  min-height: var(--tosca-touch);
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(10, 92, 90, 0.12);
}

.tosca-grid-card__actions .tosca-mini-link:hover {
  background: #fff;
  color: var(--tosca-deep, #0a5c5a);
}

/* --- Detail bibliografi (mobile-first) --- */
.tosca-detail {
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tosca-detail__cover-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tosca-detail__cover {
  width: min(200px, 52vw);
  aspect-ratio: 5 / 7;
  border-radius: 14px;
  overflow: hidden;
  background: var(--tosca-mist);
  border: 1px solid var(--tosca-line);
  box-shadow: 0 10px 24px rgba(10, 92, 90, 0.14);
}

.tosca-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tosca-detail__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.tosca-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--tosca-touch);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--tosca-line);
  background: var(--tosca-surface);
  color: var(--tosca-ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  touch-action: manipulation;
}

.tosca-detail__btn.is-bookmarked,
.tosca-detail__btn.bg-success {
  background: var(--tosca);
  border-color: var(--tosca);
  color: #fff;
}

.tosca-detail__gmd {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  color: var(--tosca);
  font-weight: 700;
  font-size: 0.9rem;
}

.tosca-detail__title {
  margin: 0 0 6px;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--tosca-ink);
  letter-spacing: -0.02em;
}

.tosca-detail__authors {
  margin: 0 0 12px;
  color: var(--tosca-muted);
  font-size: 0.9rem;
}

.tosca-detail__notes {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--tosca-ink);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.tosca-detail__h {
  margin: 18px 0 8px;
  font-size: 1rem;
  color: var(--tosca-deep);
}

.tosca-detail__block {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 0.9rem;
}

.tosca-detail__muted {
  color: var(--tosca-muted);
}

.tosca-detail__dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--tosca-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--tosca-surface);
}

.tosca-detail__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--tosca-line);
}

.tosca-detail__row:last-child {
  border-bottom: 0;
}

.tosca-detail__row dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--tosca-muted);
}

.tosca-detail__row dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--tosca-ink);
  overflow-wrap: anywhere;
}

@media (min-width: 560px) {
  .tosca-detail {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: start;
    gap: 20px;
  }

  .tosca-detail__cover-wrap {
    position: sticky;
    top: 72px;
  }

  .tosca-detail__row {
    grid-template-columns: 140px 1fr;
    gap: 10px;
    align-items: start;
  }
}

/* --- Berita & konten ringan --- */
.tosca-news-card {
  margin: 0 16px 12px;
  padding: 14px;
  background: var(--tosca-surface);
  border: 1px solid var(--tosca-line);
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(10, 92, 90, 0.06);
}

.tosca-news-card__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--tosca-muted);
  margin-bottom: 8px;
}

.tosca-news-card__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--tosca-ink);
}

.tosca-news-card__summary {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--tosca-muted);
  line-height: 1.45;
}

.tosca-content-page {
  padding-bottom: 8px;
}

.tosca-content-page__body {
  padding: 12px 16px 20px;
}

.tosca-content-page__title {
  margin: 0 0 14px;
  font-size: 1.3rem;
  color: var(--tosca-ink);
}

.tosca-content-page__html {
  font-size: 0.95rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.tosca-content-page__html img {
  max-width: 100%;
  height: auto;
}

.tosca-librarian-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tosca-ico--xs {
  width: 14px;
  height: 14px;
}

.tosca-search-results .item.card,
.tosca-search-results .elevation-1 {
  box-shadow: none !important;
}

/* Sembunyikan layout lama yang merusak di dalam shell */
.tosca-shell.tosca-inner-page .result-search .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* Hanya sidebar filter lama — jangan sentuh kartu hasil */
.tosca-shell.tosca-inner-page .result-search > .container > .row > .col-md-3:first-child {
  display: none;
}

/* --- Halaman login admin (sedikit lebih gelap dari sebelumnya) --- */
body.tosca-login-page {
  --brand: var(--tosca);
  --brand-dark: var(--tosca-deep);
  --brand-light: var(--tosca-hero-3);
  --ink: var(--tosca-ink);
  --muted: var(--tosca-muted);
  --line: var(--tosca-line);
  --card-bg: rgba(236, 245, 243, 0.94);
  margin: 0;
  font-family: var(--font-body), system-ui, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  background: linear-gradient(135deg, var(--tosca-page-2, #9fc9c4) 0%, var(--tosca-mid, #6fb3ac) 38%, var(--tosca, #2a8f88) 72%, var(--tosca-deep, #064e4a) 100%);
  background-attachment: scroll;
}

.tosca-login-page .login-shell {
  width: 100%;
  max-width: 420px;
}

.tosca-login-page .login-card {
  width: 100%;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 24px 60px -18px rgba(4, 56, 54, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 32px 28px 28px;
  position: relative;
  text-align: center;
}

.tosca-login-page .login-head {
  text-align: center;
  margin-bottom: 22px;
}

.tosca-login-page .brand-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.tosca-login-page .brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #eaf8f6);
  border: 1px solid var(--line);
  color: var(--brand);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  letter-spacing: 0.5px;
  overflow: hidden;
  box-shadow: 0 8px 24px -12px rgba(10, 92, 90, 0.4);
  margin: 0 auto;
}

.tosca-login-page .brand-logo.has-logo {
  background: #fff;
  padding: 8px;
}

.tosca-login-page .brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.tosca-login-page .brand-logo.has-logo .brand-logo-img { display: block; }
.tosca-login-page .brand-logo.has-logo .brand-logo-fallback { display: none; }

.tosca-login-page .login-head .sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.tosca-login-page #loginForm {
  margin: 0;
  text-align: center;
}

.tosca-login-page #loginForm form {
  margin: 0;
  text-align: center;
}

.tosca-login-page #loginForm .heading1 {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #2f524f;
  text-align: center;
}

.tosca-login-page #loginForm .login_input {
  margin-bottom: 16px;
  text-align: center;
}

.tosca-login-page #loginForm .login_input input,
.tosca-login-page #loginForm input.login_input,
.tosca-login-page #loginForm input[type="text"],
.tosca-login-page #loginForm input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #b5d4cf;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  background: #eef7f5;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 48px;
  box-sizing: border-box;
  text-align: center;
}

.tosca-login-page #loginForm .input-wrap {
  position: relative;
  text-align: center;
}

.tosca-login-page #loginForm .input-wrap input {
  padding-right: 8.5rem;
  padding-left: 8.5rem;
}

.tosca-login-page #loginForm .toggle-pass {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--brand);
  cursor: pointer;
  padding: 10px 10px;
  min-width: 44px;
  min-height: 44px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;
  max-width: 7.5rem;
  -webkit-tap-highlight-color: transparent;
}

.tosca-login-page #loginForm input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(10, 122, 116, 0.18);
  background: #fff;
}

.tosca-login-page #loginForm .loginButton,
.tosca-login-page #loginForm input.loginButton {
  width: 100%;
  padding: 14px 18px;
  min-height: 48px;
  border: none;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
  box-shadow: 0 8px 20px -8px rgba(6, 95, 91, 0.55);
  margin-top: 4px;
  background-image: none !important;
  text-align: center;
}

.tosca-login-page #loginForm .loginButton:hover {
  background: var(--brand-dark);
  box-shadow: 0 10px 24px -10px rgba(6, 95, 91, 0.65);
  filter: none;
}

.tosca-login-page #loginForm .loginButton:active {
  transform: translateY(1px);
}

.tosca-login-page #loginForm .homeButton {
  display: none !important;
}

.tosca-login-page #loginForm .remember_forgot {
  margin: 4px 0 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.tosca-login-page #loginForm .remember {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tosca-login-page #loginForm .captchaAdmin {
  margin-bottom: 16px;
  padding: 14px;
  border: 1.5px dashed #b5d4cf;
  border-radius: 12px;
  background: #eaf8f6;
  text-align: center;
}

.tosca-login-page #loginForm .alert {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
  text-align: center;
}

.tosca-login-page .hint {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

.tosca-login-page .login-links {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.tosca-login-page .login-links a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.tosca-login-page .login-links a:hover {
  color: var(--brand-dark);
}

@media (max-width: 640px) {
  body.tosca-login-page {
    align-items: flex-start;
    padding: 12px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .tosca-login-page .login-shell {
    max-width: none;
    margin: auto 0;
  }

  .tosca-login-page .login-card {
    padding: 22px 18px 20px;
    border-radius: 18px;
    box-shadow: 0 16px 40px -16px rgba(10, 92, 90, 0.25);
  }

  .tosca-login-page .brand-logo {
    width: 64px;
    height: 64px;
    font-size: 20px;
    border-radius: 14px;
  }

  .tosca-login-page #loginForm .input-wrap input {
    padding-right: 7.5rem;
    padding-left: 1rem;
    text-align: left;
  }
}



/* --- Halaman Informasi Perpustakaan (layout portal, warna tosca) --- */
.tosca-info-page {
  padding: 12px 16px 8px;
}

.tosca-info-hero {
  border-radius: 22px;
  padding: 22px 18px 20px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.2), transparent 36%),
    linear-gradient(115deg, var(--tosca-hero-1) 0%, var(--tosca-hero-2) 48%, var(--tosca-hero-3) 100%);
  box-shadow: 0 14px 32px rgba(6, 95, 91, 0.28);
}

.tosca-info-hero__logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #eaf8f6);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--tosca);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
}

.tosca-info-hero__logo.has-logo {
  background: #fff;
  padding: 7px;
}

.tosca-info-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.tosca-info-hero__logo.has-logo img { display: block; }
.tosca-info-hero__logo.has-logo .tosca-info-hero__logo-fallback { display: none; }

.tosca-info-hero__title {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.tosca-info-hero__sub {
  margin: 0 auto 16px;
  max-width: 34ch;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.94;
  position: relative;
  z-index: 1;
}

.tosca-info-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.tosca-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.tosca-info-btn:hover { text-decoration: none; transform: translateY(-1px); }

.tosca-info-btn--solid {
  background: #fff;
  color: var(--tosca-deep) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.tosca-info-btn--outline {
  background: transparent;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
}

.tosca-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.tosca-info-card {
  background: var(--tosca-surface);
  border: 1px solid var(--tosca-line);
  border-radius: 20px;
  padding: 16px 14px 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 20px rgba(6, 95, 91, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 148px;
}

.tosca-info-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(6, 95, 91, 0.14);
}

.tosca-info-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--tosca-deep);
}

.tosca-info-card__icon--a { background: linear-gradient(145deg, #d8efec, #b8e2dc); }
.tosca-info-card__icon--b { background: linear-gradient(145deg, #d6eef8, #b7dceb); }
.tosca-info-card__icon--c { background: linear-gradient(145deg, #c8ebe6, #9fd9d4); }
.tosca-info-card__icon--d { background: linear-gradient(145deg, #dff3ef, #c5e8e1); }

.tosca-info-card h2 {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--tosca-ink);
  line-height: 1.3;
}

.tosca-info-card p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--tosca-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tosca-info-detail {
  margin-top: 16px;
  background: var(--tosca-surface);
  border: 1px solid var(--tosca-line);
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 8px 20px rgba(6, 95, 91, 0.08);
}

.tosca-info-detail__title {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tosca-ink);
}

.tosca-info-detail__body {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--tosca-ink);
  line-height: 1.6;
}

.tosca-info-detail__body h3,
.tosca-info-detail__body h4 {
  font-family: var(--font-body);
  color: var(--tosca-deep);
  font-size: 1rem;
  margin-top: 1rem;
}

.tosca-info-detail__body a {
  color: var(--tosca);
  word-break: break-word;
}

.tosca-info-detail__body .p-5 {
  padding: 0 !important;
}

@media (max-width: 380px) {
  .tosca-info-grid { gap: 10px; }
  .tosca-info-card { padding: 14px 12px; min-height: 140px; border-radius: 16px; }
  .tosca-info-card h2 { font-size: 0.92rem; }
  .tosca-info-card p { font-size: 0.75rem; }
}

/* --- Login anggota (gaya kartu sama login admin) --- */
.tosca-member-login {
  padding: 16px 12px 8px;
}

.tosca-member-login .login-shell {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.tosca-member-login .login-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 16px 40px -16px rgba(6, 95, 91, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 28px 22px 22px;
  text-align: center;
}

.tosca-member-login .login-head {
  margin-bottom: 18px;
}

.tosca-member-login .brand-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.tosca-member-login .brand-logo {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #eaf8f6);
  border: 1px solid var(--tosca-line);
  color: var(--tosca);
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px -12px rgba(10, 92, 90, 0.4);
}

.tosca-member-login .brand-logo.has-logo {
  background: #fff;
  padding: 8px;
}

.tosca-member-login .brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.tosca-member-login .brand-logo.has-logo img { display: block; }
.tosca-member-login .brand-logo.has-logo .brand-logo-fallback { display: none; }

.tosca-member-login .login-head .sub {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--tosca-ink);
}

.tosca-member-login .tagline,
.tosca-member-login .loginInfo > p.mt-3 {
  display: none !important;
}

.tosca-member-login .loginInfo {
  text-align: center;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--tosca-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.tosca-member-login .loginInfo:has(form) {
  text-align: center;
  margin-bottom: 0;
}

.tosca-member-login .fieldLabel {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #2f524f;
  text-align: center;
}

.tosca-member-login .fieldLabel.marginTop {
  margin-top: 14px;
}

.tosca-member-login .login_input {
  margin-bottom: 4px;
}

.tosca-member-login .login_input input,
.tosca-member-login input.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--tosca-line);
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  background: #eef7f5;
  color: var(--tosca-ink);
  min-height: 48px;
  text-align: center;
  box-shadow: none !important;
}

.tosca-member-login .input-wrap {
  position: relative;
}

.tosca-member-login .input-wrap input {
  padding-right: 8.5rem;
  padding-left: 8.5rem;
}

.tosca-member-login .toggle-pass {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--tosca);
  cursor: pointer;
  padding: 10px;
  min-height: 44px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  max-width: 7.5rem;
  line-height: 1.2;
}

.tosca-member-login .login_input input:focus,
.tosca-member-login input.form-control:focus {
  outline: none;
  border-color: var(--tosca);
  box-shadow: 0 0 0 4px rgba(10, 122, 116, 0.18) !important;
  background: #fff;
}

.tosca-member-login .memberButton,
.tosca-member-login input.memberButton {
  width: 100%;
  margin-top: 14px;
  padding: 14px 18px;
  min-height: 48px;
  border: none;
  border-radius: 999px;
  background: var(--tosca);
  color: #fff !important;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(6, 95, 91, 0.55);
}

.tosca-member-login .memberButton:hover {
  background: var(--tosca-deep);
}

.tosca-member-login .captchaMember {
  margin: 14px 0;
  padding: 14px;
  border: 1.5px dashed var(--tosca-line);
  border-radius: 12px;
  background: var(--tosca-mist);
  text-align: center;
}

.tosca-member-login .alert,
.tosca-member-login .loginInfo .alert {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 12px;
  text-align: center;
}

.tosca-member-login .hint {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--tosca-line);
  font-size: 12.5px;
  color: var(--tosca-muted);
  line-height: 1.7;
  text-align: center;
}

.tosca-member-login .login-links {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--tosca-line);
  text-align: center;
  font-size: 12.5px;
  color: var(--tosca-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.tosca-member-login .login-links a {
  color: var(--tosca);
  font-weight: 600;
  text-decoration: none;
}

.tosca-member-login .login-links a:hover {
  color: var(--tosca-deep);
}

/* ========== Mode ringan + dashboard HP ========== */
.tosca-ico {
  display: block;
  flex-shrink: 0;
}

.tosca-ico--sm {
  width: 18px;
  height: 18px;
}

.tosca-light {
  --font-display: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
}

.tosca-shell--home .tosca-hero {
  margin-top: max(10px, env(safe-area-inset-top, 0px));
  min-height: 148px;
  padding: 20px 18px;
}

.tosca-shell--home .tosca-section {
  padding-left: 16px;
  padding-right: 16px;
}

.tosca-menu a {
  min-height: 52px;
  -webkit-tap-highlight-color: transparent;
}

.tosca-menu__icon .tosca-ico {
  width: 20px;
  height: 20px;
  color: inherit;
}

.tosca-collection {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 8px 0 0;
}

.tosca-collection__item {
  flex: 0 0 auto;
  width: 118px;
  scroll-snap-align: start;
}

.tosca-collection__card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(10, 122, 116, 0.12);
  box-shadow: 0 6px 16px rgba(6, 95, 91, 0.08);
  transition: transform 0.15s ease;
}

.tosca-collection__card:active {
  transform: scale(0.98);
}

.tosca-collection__cover {
  aspect-ratio: 65 / 83;
  background: var(--tosca-mist);
  overflow: hidden;
}

.tosca-collection__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tosca-collection__title {
  padding: 8px 9px 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--tosca-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.tosca-collection__empty {
  padding: 8px 4px;
  color: var(--tosca-muted);
  font-size: 0.9rem;
}

.tosca-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tosca-sheet[hidden] {
  display: none !important;
}

.tosca-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(6, 40, 38, 0.45);
  cursor: pointer;
}

.tosca-sheet__panel {
  position: relative;
  width: 100%;
  max-width: var(--tosca-shell);
  max-height: min(82vh, 640px);
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  overflow: auto;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
  animation: toscaSheetUp 0.28s ease;
}

@keyframes toscaSheetUp {
  from { transform: translateY(24px); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}

.tosca-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tosca-sheet__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tosca-ink);
  line-height: 1.35;
}

.tosca-sheet__close {
  border: 0;
  background: var(--tosca-mist);
  color: var(--tosca-deep);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.tosca-sheet__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tosca-sheet__grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  color: var(--tosca-ink);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 12px 8px;
  border-radius: 14px;
  background: #f4fbf9;
  border: 1px solid rgba(10, 122, 116, 0.12);
  min-height: 112px;
}

.tosca-sheet__grid a:active {
  background: var(--tosca-mist);
}

.tosca-sheet__grid img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

body.tosca-sheet-open {
  overflow: hidden;
}

.tosca-footer__copy {
  margin-top: 8px;
}

/* --- Area akun anggota (dashboard / profil) --- */
.tosca-dash .member-area,
.tosca-dash .tosca-member-dash {
  padding: 0 0 12px;
}

/* Utilitas sisa HTML core (pengganti potongan Tailwind) */
.tosca-dash .text-sm,
.tosca-member-dash .text-sm {
  font-size: 0.875rem;
}

.tosca-dash .mt-8,
.tosca-member-dash .mt-8 {
  margin-top: 2rem;
}

.tosca-dash .text-muted,
.tosca-member-dash .text-muted {
  color: var(--tosca-muted) !important;
}

.tosca-dash .fa,
.tosca-dash .fas,
.tosca-dash .far,
.tosca-dash .fab {
  display: none !important;
}

.tosca-dash .memberBasketAction {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 14px;
}

.tosca-dash .memberBasketAction .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tosca-touch, 44px);
  width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
  touch-action: manipulation;
}

.tosca-dash .deleteBookmark {
  min-width: var(--tosca-touch, 44px);
  min-height: 36px;
  touch-action: manipulation;
}

.tosca-dash .tosca-profile {
  padding: 0 4px 8px;
  max-width: 100%;
}

/* Avatar overlapping white card — 1cm clearance above pop-out avatar */
.tosca-dash .tosca-profile__card {
  position: relative;
  margin: calc(48px + 1cm) 0 18px;
  padding: 56px 18px 20px;
  text-align: center;
  background: var(--tosca-surface);
  border: 1px solid var(--tosca-line);
  border-radius: var(--tosca-radius);
  box-shadow: 0 14px 36px -20px rgba(6, 95, 91, 0.4);
}

.tosca-dash .tosca-profile__avatar-wrap {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 4px;
  background: #fff;
  box-shadow: 0 10px 28px -12px rgba(6, 95, 91, 0.45);
}

.tosca-dash .tosca-profile__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Prioritaskan bagian atas wajah/kepala agar tidak terpotong */
  object-position: top center;
  border-radius: 50%;
  border: 3px solid var(--tosca-mist);
  background: var(--tosca-mist);
}

.tosca-dash .tosca-profile__name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + 1.8vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--tosca-ink);
}

.tosca-dash .tosca-profile__sub {
  margin: 0 0 4px;
  font-size: clamp(0.82rem, 0.76rem + 0.7vw, 0.95rem);
  font-weight: 600;
  color: var(--tosca-deep);
}

.tosca-dash .tosca-profile__meta {
  margin: 0;
  font-size: clamp(0.74rem, 0.7rem + 0.55vw, 0.86rem);
  line-height: 1.45;
  color: var(--tosca-muted);
}

.tosca-dash .tosca-profile__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 12px;
  padding: 6px 2px;
  font-size: clamp(0.8rem, 0.74rem + 0.6vw, 0.9rem);
  font-weight: 600;
  color: var(--tosca);
  text-decoration: none;
}

.tosca-dash .tosca-profile__back:hover {
  color: var(--tosca-deep);
  text-decoration: underline;
}

.tosca-dash .tosca-profile__section {
  margin: 0 0 16px;
}

.tosca-dash .tosca-profile__section-title {
  margin: 0 0 8px 4px;
  font-size: clamp(0.72rem, 0.68rem + 0.5vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tosca-muted);
}

.tosca-dash .tosca-profile__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--tosca-surface);
  border: 1px solid var(--tosca-line);
  border-radius: var(--tosca-radius-sm);
  box-shadow: 0 10px 28px -18px rgba(6, 95, 91, 0.32);
  overflow: hidden;
}

.tosca-dash .tosca-profile__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  text-decoration: none !important;
  color: inherit;
  border-bottom: 1px solid rgba(181, 212, 207, 0.55);
  transition: background 0.15s ease;
}

.tosca-dash .tosca-profile__row:last-child {
  border-bottom: none;
}

.tosca-dash .tosca-profile__row:hover {
  background: rgba(216, 239, 236, 0.45);
}

.tosca-dash .tosca-profile__row.is-active {
  background: linear-gradient(90deg, rgba(10, 122, 116, 0.1) 0%, rgba(216, 239, 236, 0.35) 100%);
}

.tosca-dash .tosca-profile__row.is-active .tosca-profile__row-title {
  color: var(--tosca-deep);
}

.tosca-dash .tosca-profile__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--tosca-deep);
  background: var(--tosca-mist);
}

.tosca-dash .tosca-profile__icon .tosca-ico {
  width: 20px;
  height: 20px;
}

.tosca-dash .tosca-profile__icon--loan {
  color: #fff;
  background: linear-gradient(135deg, var(--tosca) 0%, var(--tosca-deep) 100%);
}

.tosca-dash .tosca-profile__icon--mark {
  color: var(--tosca-deep);
  background: rgba(26, 179, 171, 0.18);
}

.tosca-dash .tosca-profile__icon--basket {
  color: #fff;
  background: linear-gradient(135deg, var(--tosca-accent) 0%, var(--tosca-accent-deep) 100%);
}

.tosca-dash .tosca-profile__icon--hist {
  color: var(--tosca-deep);
  background: rgba(10, 122, 116, 0.14);
}

.tosca-dash .tosca-profile__icon--account {
  color: var(--tosca-deep);
  background: rgba(240, 193, 74, 0.28);
}

.tosca-dash .tosca-profile__icon--card {
  color: var(--tosca-deep);
  background: rgba(159, 217, 212, 0.55);
}

.tosca-dash .tosca-profile__icon--logout {
  color: #b42318;
  background: rgba(180, 35, 24, 0.1);
}

.tosca-dash .tosca-profile__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tosca-dash .tosca-profile__row-title {
  font-size: clamp(0.88rem, 0.82rem + 0.7vw, 1rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--tosca-ink);
}

.tosca-dash .tosca-profile__row-desc {
  font-size: clamp(0.72rem, 0.68rem + 0.5vw, 0.82rem);
  line-height: 1.35;
  color: var(--tosca-muted);
}

.tosca-dash .tosca-profile__chev {
  flex: 0 0 auto;
  color: var(--tosca-soft);
  opacity: 0.9;
}

.tosca-dash .tosca-profile__row--danger .tosca-profile__row-title {
  color: #b42318;
}

.tosca-dash .tosca-profile__row--danger:hover {
  background: rgba(180, 35, 24, 0.06);
}

.tosca-dash .tosca-profile__row--danger .tosca-profile__chev {
  color: rgba(180, 35, 24, 0.45);
}

/* Hide default SLiMS chrome inside main_content */
.tosca-dash .tosca-member-dash #member_sidebar,
.tosca-dash .tosca-member-dash__inner > .d-flex > #member_sidebar,
.tosca-dash .tosca-member-dash__inner #member_sidebar {
  display: none !important;
}

.tosca-dash .tosca-member-dash__inner > .d-flex {
  display: block !important;
  width: 100%;
}

.tosca-dash .tosca-member-dash__inner #member_content {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding: 0 !important;
}

.tosca-dash .tosca-member-dash__inner #member_content > .text-sm,
.tosca-dash .tosca-member-dash__inner #member_content > h1,
.tosca-dash .tosca-member-dash__inner #member_content > #info,
.tosca-dash .tosca-member-dash__inner #member_content > p#info,
.tosca-dash .tosca-member-dash__inner .nav-tabs,
.tosca-dash .tosca-member-dash__inner .nav.nav-tabs {
  display: none !important;
}

/* Content panel under menu */
.tosca-dash .tosca-member-dash__panel {
  margin: 4px 4px 0;
}

.tosca-dash .tosca-preview {
  overflow: hidden;
  border-radius: var(--tosca-radius);
  border: 1px solid var(--tosca-line);
  background: var(--tosca-surface);
  box-shadow: 0 14px 36px -22px rgba(6, 95, 91, 0.4);
}

.tosca-dash .tosca-preview__hero {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 16px 14px;
  color: #fff;
  flex-wrap: wrap;
}

.tosca-dash .tosca-preview__hero-text {
  flex: 1 1 160px;
}

.tosca-dash .tosca-preview__hero-btn {
  margin-left: auto;
  align-self: center;
  border: 0;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f766e;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.35);
}
.tosca-dash .tosca-preview__hero-btn:hover {
  filter: brightness(1.05);
}

.tosca-dash .tosca-preview--loan .tosca-preview__hero {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}
.tosca-dash .tosca-preview--mark .tosca-preview__hero {
  background: linear-gradient(135deg, #0e7490 0%, #38bdf8 100%);
}
.tosca-dash .tosca-preview--basket .tosca-preview__hero {
  background: linear-gradient(135deg, #c2410c 0%, #fb923c 100%);
}
.tosca-dash .tosca-preview--account .tosca-preview__hero {
  background: linear-gradient(135deg, #a16207 0%, #fbbf24 100%);
  color: #1c1917;
  gap: 10px;
  padding: 12px 12px 10px;
}

/* Panel ubah kata sandi: kompak + label tidak putus di tengah kata */
.tosca-dash .tosca-preview--account {
  max-width: 28rem;
  margin-inline: auto;
}

.tosca-dash .tosca-preview--account .tosca-preview__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.tosca-dash .tosca-preview--account .tosca-preview__icon .tosca-ico {
  width: 18px;
  height: 18px;
}

.tosca-dash .tosca-preview--account .tosca-preview__title {
  font-size: clamp(0.95rem, 0.9rem + 0.8vw, 1.15rem);
}

.tosca-dash .tosca-preview--account .tosca-preview__desc {
  font-size: 0.78rem;
  line-height: 1.35;
}

.tosca-dash .tosca-preview--account .tosca-preview__body.tosca-member-dash__inner {
  padding: 10px 10px 12px;
}

.tosca-dash .tosca-preview--account .memberDetail,
.tosca-dash .tosca-preview--account #memberChangePassword .memberDetail {
  width: 100%;
  margin: 0 0 10px;
  border: 1px solid var(--tosca-line);
  border-radius: 10px !important;
  overflow: hidden;
  background: #fff;
  font-size: 0.8rem;
}

.tosca-dash .tosca-preview--account .memberDetail + .memberDetail,
.tosca-dash .tosca-preview--account #memberChangePassword {
  margin-top: 0;
}

.tosca-dash .tosca-preview--account #memberChangePassword .memberDetail {
  margin-bottom: 0;
}

/* Stacked label-above-value (panel kecil) — hindari wrap di tengah kata */
.tosca-dash .tosca-preview--account .memberDetail,
.tosca-dash .tosca-preview--account .memberDetail tbody,
.tosca-dash .tosca-preview--account .memberDetail tr {
  display: block;
  width: 100%;
}

.tosca-dash .tosca-preview--account .memberDetail tr {
  padding: 8px 10px 6px;
  border-bottom: 1px solid var(--tosca-line);
}

.tosca-dash .tosca-preview--account .memberDetail tr:last-child {
  border-bottom: 0;
}

.tosca-dash .tosca-preview--account .memberDetail td,
.tosca-dash .tosca-preview--account .memberDetail .alterCell,
.tosca-dash .tosca-preview--account .memberDetail .alterCell2 {
  display: block;
  width: 100% !important;
  max-width: 100%;
  padding: 2px 0 !important;
  border: 0 !important;
  background: transparent !important;
  vertical-align: top;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: manual;
  font-size: 0.8rem;
  line-height: 1.35;
}

.tosca-dash .tosca-preview--account .memberDetail .key,
.tosca-dash .tosca-preview--account .memberDetail td.key {
  min-width: 0;
  white-space: normal;
  color: var(--tosca-muted);
  font-weight: 600;
  padding-bottom: 1px !important;
  font-size: 0.7rem;
  letter-spacing: 0.01em;
}

.tosca-dash .tosca-preview--account .memberDetail .key strong {
  font-weight: 600;
}

.tosca-dash .tosca-preview--account .memberDetail .value,
.tosca-dash .tosca-preview--account .memberDetail td.value {
  color: var(--tosca-deep);
  font-weight: 500;
  padding-bottom: 6px !important;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tosca-dash .tosca-preview--account #memberChangePassword .memberDetail tr {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
}

.tosca-dash .tosca-preview--account #memberChangePassword .memberDetail td.alterCell2:not(.value) {
  padding-top: 4px !important;
}

.tosca-dash .tosca-preview--account #memberChangePassword .form-control {
  width: 100%;
  min-height: 44px !important;
  padding: 10px 12px !important;
  font-size: 16px !important;
  border-radius: 8px !important;
}

.tosca-dash .tosca-preview--account #memberChangePassword .btn-primary,
.tosca-dash .tosca-preview--account #memberChangePassword #loginButton {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px !important;
  font-size: 1rem !important;
  border-radius: 8px !important;
}

@media (max-width: 640px) {
  .tosca-dash .tosca-preview--account {
    max-width: none;
  }

  .tosca-dash .tosca-preview--account .tosca-preview__hero {
    padding: 10px 10px 8px;
  }

  .tosca-dash .tosca-preview--account .tosca-preview__desc {
    font-size: 0.74rem;
  }
}
.tosca-dash .tosca-preview--card .tosca-preview__hero {
  background: linear-gradient(135deg, #115e59 0%, #2dd4bf 55%, #f97316 120%);
}

.tosca-dash .tosca-preview__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.22);
}

.tosca-dash .tosca-preview__icon .tosca-ico {
  width: 24px;
  height: 24px;
}

.tosca-dash .tosca-preview__eyebrow {
  margin: 0 0 2px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.tosca-dash .tosca-preview__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.95rem + 1.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tosca-dash .tosca-preview__desc {
  margin: 0;
  font-size: clamp(0.78rem, 0.72rem + 0.7vw, 0.9rem);
  line-height: 1.45;
  opacity: 0.92;
}

.tosca-dash .tosca-preview__body.tosca-member-dash__inner {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 14px 12px 16px;
}

/* Sembunyikan sidebar SLiMS bawaan di dalam panel Tosca */
.tosca-dash .tosca-preview__body #member_sidebar,
.tosca-dash .tosca-preview__body .d-flex > div[style*="16rem"] {
  display: none !important;
}
.tosca-dash .tosca-preview__body .d-flex {
  display: block !important;
}
.tosca-dash .tosca-preview__body #member_content {
  padding: 0 !important;
}

/* Hindari judul ganda: hero sudah menjelaskan konteks */
.tosca-dash .tosca-preview__body .memberInfoHead,
.tosca-dash .tosca-preview__body .tagline {
  display: none !important;
}

/* Pratinjau kartu anggota */
.tosca-dash .tosca-libcard {
  display: grid;
  gap: 14px;
}
.tosca-dash .tosca-libcard__face {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.18), transparent 40%),
    linear-gradient(135deg, #0f766e 0%, #134e4a 55%, #ea580c 140%);
  color: #fff;
  box-shadow: 0 16px 40px -20px rgba(15, 118, 110, 0.55);
  overflow: hidden;
}
.tosca-dash .tosca-libcard__brand {
  margin: 0 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}
.tosca-dash .tosca-libcard__row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.tosca-dash .tosca-libcard__photo {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  border: 3px solid rgba(255,255,255,0.85);
  background: #fff;
}
.tosca-dash .tosca-libcard__name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
}
.tosca-dash .tosca-libcard__line {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.92;
  line-height: 1.4;
}
.tosca-dash .tosca-libcard__hint {
  margin: 14px 0 0;
  font-size: 0.75rem;
  opacity: 0.85;
}
.tosca-dash .tosca-libcard__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e, #f97316);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none !important;
  box-shadow: 0 10px 24px -12px rgba(249, 115, 22, 0.55);
}
.tosca-dash .tosca-libcard__btn:hover {
  filter: brightness(1.05);
  color: #fff !important;
}

.tosca-dash .tosca-member-dash__inner {
  padding: 14px 12px;
  background: var(--tosca-surface);
  border: 1px solid var(--tosca-line);
  border-radius: var(--tosca-radius-sm);
  box-shadow: 0 10px 28px -18px rgba(6, 95, 91, 0.32);
}

.tosca-dash .tosca-member-dash__inner .memberInfoHead,
.tosca-dash .tosca-member-dash__inner .tagline .memberInfoHead {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.88rem + 1vw, 1.12rem);
  font-weight: 700;
  color: var(--tosca-deep);
  letter-spacing: -0.01em;
}

.tosca-dash .tosca-member-dash__inner .memberLoanListInfo,
.tosca-dash .tosca-member-dash__inner .memberInfo {
  font-size: clamp(0.78rem, 0.72rem + 0.8vw, 0.9rem);
  color: var(--tosca-muted);
  line-height: 1.45;
}

/* Hilangkan tombol unduh — hanya pratinjau */
.tosca-dash .tosca-preview__body a[href*="download_current_loan"],
.tosca-dash .tosca-preview__body a[href*="download_member_loan_report"],
.tosca-dash .tosca-preview__body a[href*="download_loan_history"] {
  display: none !important;
}

.tosca-dash .tosca-loan-preview-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px !important;
}

.tosca-dash .tosca-loan-count {
  font-weight: 600;
  color: var(--tosca-deep);
}

.tosca-dash .tosca-loan-page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 12px;
  padding: 10px 12px;
  background: var(--tosca-surface);
  border: 1px solid var(--tosca-line);
  border-radius: var(--tosca-radius-sm);
}
.tosca-dash .tosca-loan-page-bar .tosca-profile__back {
  margin: 0;
}
.tosca-dash .tosca-loan-page-bar__name {
  margin: 0;
  font-weight: 700;
  color: var(--tosca-deep);
  font-size: 0.9rem;
}

.tosca-dash .tosca-loan-history-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 2px solid var(--tosca-mist);
}
.tosca-dash .tosca-loan-history-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.92rem + 1vw, 1.2rem);
  font-weight: 700;
  color: var(--tosca-deep);
}
.tosca-dash .tosca-loan-history-desc {
  margin: 0 0 12px;
  font-size: 0.85rem;
  color: var(--tosca-muted);
}
.tosca-dash .tosca-loan-hist-info {
  margin-bottom: 10px !important;
}

/* Sembunyikan tombol pratinjau lama bila masih ada di cache */
.tosca-dash .tosca-loan-preview-badge,
.tosca-dash .tosca-preview__hero-btn {
  display: none !important;
}

.tosca-dash .tosca-member-dash__inner .s-member-account,
.tosca-dash .tosca-member-dash__inner .card,
.tosca-dash .tosca-member-dash__inner .s-card,
.tosca-dash .tosca-member-dash__inner .list-group,
.tosca-dash .tosca-member-dash__inner table {
  border-radius: 12px !important;
  overflow: hidden;
  font-size: clamp(0.75rem, 0.7rem + 0.75vw, 0.88rem);
}

.tosca-dash .tosca-member-dash__inner table.dataList,
.tosca-dash .tosca-member-dash__inner .memberLoanList,
.tosca-dash .tosca-member-dash__inner .table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--tosca-line);
  background: #fff;
}

/* Loan tables: scroll on narrow screens so code/dates never clip or overlap */
.tosca-dash .tosca-loan-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--tosca-line);
  background: #fff;
  margin-bottom: 4px;
}

.tosca-dash .tosca-member-dash__inner .tosca-loan-table-wrap .memberLoanList,
.tosca-dash .tosca-member-dash__inner .tosca-loan-table-wrap table#loanlist,
.tosca-dash .tosca-member-dash__inner .tosca-loan-table-wrap table#loanhist,
.tosca-dash .tosca-member-dash__inner .memberLoanList,
.tosca-dash .tosca-member-dash__inner table#loanlist,
.tosca-dash .tosca-member-dash__inner table#loanhist {
  table-layout: fixed;
  width: 100%;
  min-width: 44rem;
  font-size: 0.78rem;
  margin-bottom: 0;
  border: 0;
  border-radius: 0 !important;
  overflow: visible !important;
}

.tosca-dash .tosca-member-dash__inner .memberLoanList th,
.tosca-dash .tosca-member-dash__inner .memberLoanList td,
.tosca-dash .tosca-member-dash__inner table#loanlist th,
.tosca-dash .tosca-member-dash__inner table#loanlist td,
.tosca-dash .tosca-member-dash__inner table#loanhist th,
.tosca-dash .tosca-member-dash__inner table#loanhist td {
  font-size: 0.78rem;
  line-height: 1.35;
  vertical-align: middle;
  word-break: normal;
  overflow-wrap: normal;
}

/* Kode eksemplar — full code visible */
.tosca-dash .tosca-member-dash__inner .memberLoanList th:nth-child(1),
.tosca-dash .tosca-member-dash__inner .memberLoanList td:nth-child(1),
.tosca-dash .tosca-member-dash__inner table#loanlist th:nth-child(1),
.tosca-dash .tosca-member-dash__inner table#loanlist td:nth-child(1),
.tosca-dash .tosca-member-dash__inner table#loanhist th:nth-child(1),
.tosca-dash .tosca-member-dash__inner table#loanhist td:nth-child(1) {
  width: 16%;
  min-width: 6.5rem;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

/* Judul — wrap full title within column */
.tosca-dash .tosca-member-dash__inner .memberLoanList th:nth-child(2),
.tosca-dash .tosca-member-dash__inner .memberLoanList td:nth-child(2),
.tosca-dash .tosca-member-dash__inner table#loanlist th:nth-child(2),
.tosca-dash .tosca-member-dash__inner table#loanlist td:nth-child(2),
.tosca-dash .tosca-member-dash__inner table#loanhist th:nth-child(2),
.tosca-dash .tosca-member-dash__inner table#loanhist td:nth-child(2) {
  width: 46%;
  min-width: 12rem;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Tanggal pinjam / jatuh tempo / kembali — never truncate */
.tosca-dash .tosca-member-dash__inner .memberLoanList th:nth-child(3),
.tosca-dash .tosca-member-dash__inner .memberLoanList td:nth-child(3),
.tosca-dash .tosca-member-dash__inner .memberLoanList th:nth-child(4),
.tosca-dash .tosca-member-dash__inner .memberLoanList td:nth-child(4),
.tosca-dash .tosca-member-dash__inner table#loanlist th:nth-child(3),
.tosca-dash .tosca-member-dash__inner table#loanlist td:nth-child(3),
.tosca-dash .tosca-member-dash__inner table#loanlist th:nth-child(4),
.tosca-dash .tosca-member-dash__inner table#loanlist td:nth-child(4),
.tosca-dash .tosca-member-dash__inner table#loanhist th:nth-child(3),
.tosca-dash .tosca-member-dash__inner table#loanhist td:nth-child(3),
.tosca-dash .tosca-member-dash__inner table#loanhist th:nth-child(4),
.tosca-dash .tosca-member-dash__inner table#loanhist td:nth-child(4) {
  width: 19%;
  min-width: 10.5rem;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.tosca-dash .tosca-member-dash__inner table th,
.tosca-dash .tosca-member-dash__inner .dataListHeader,
.tosca-dash .tosca-member-dash__inner .table thead th {
  background: var(--tosca-mist) !important;
  color: var(--tosca-deep) !important;
  font-size: clamp(0.7rem, 0.66rem + 0.6vw, 0.8rem);
  font-weight: 700;
  padding: 8px 10px !important;
  border-bottom: 1px solid var(--tosca-line) !important;
  white-space: nowrap;
}

.tosca-dash .tosca-member-dash__inner table td,
.tosca-dash .tosca-member-dash__inner .table td {
  padding: 8px 10px !important;
  vertical-align: top;
  border-color: var(--tosca-line) !important;
  color: var(--tosca-ink);
  word-break: break-word;
}

.tosca-dash .tosca-member-dash__inner .btn,
.tosca-dash .tosca-member-dash__inner button,
.tosca-dash .tosca-member-dash__inner .btn-sm,
.tosca-dash .tosca-member-dash__inner .btn-outline-primary {
  min-height: 0 !important;
  border-radius: 10px !important;
  font-size: clamp(0.72rem, 0.68rem + 0.7vw, 0.84rem) !important;
  padding: 0.4em 0.75em !important;
  line-height: 1.3;
}

.tosca-dash .tosca-member-dash__inner .btn-outline-primary {
  color: var(--tosca-deep) !important;
  border-color: var(--tosca) !important;
  background: transparent !important;
}

.tosca-dash .tosca-member-dash__inner .btn-outline-primary:hover {
  color: #fff !important;
  background: var(--tosca) !important;
}

.tosca-dash .tosca-member-dash__inner .btn-primary {
  background: var(--tosca) !important;
  border-color: var(--tosca) !important;
}

.tosca-dash .tosca-member-dash__inner form .form-control,
.tosca-dash .tosca-member-dash__inner input.form-control,
.tosca-dash .tosca-member-dash__inner textarea.form-control {
  border-radius: 10px !important;
  border: 1.5px solid var(--tosca-line) !important;
  font-size: clamp(0.85rem, 0.8rem + 0.7vw, 0.95rem) !important;
  min-height: 42px;
}

.tosca-dash .tosca-member-dash__inner .alterCell,
.tosca-dash .tosca-member-dash__inner .alterCell2 {
  font-size: clamp(0.8rem, 0.74rem + 0.7vw, 0.92rem);
}

.tosca-dash .tosca-member-dash__inner .nav-tabs + .bg-white,
.tosca-dash .tosca-member-dash__inner .border-left.border-right.border-bottom,
.tosca-dash .tosca-member-dash__inner > .d-flex #member_content > .bg-white,
.tosca-dash .tosca-member-dash__inner #member_content > .my-4 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

@media (min-width: 420px) {
  .tosca-dash .tosca-profile__card {
    margin-top: calc(52px + 1cm);
    padding: 60px 22px 22px;
  }

  .tosca-dash .tosca-profile__avatar-wrap {
    width: 104px;
    height: 104px;
  }

  .tosca-dash .tosca-member-dash__inner {
    padding: 16px 14px;
  }
}


@media (min-width: 900px) {
  body.tosca-body {
    background-attachment: scroll;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tosca-sheet__panel { animation: none; }
  .tosca-collection__card { transition: none; }
  .tosca-grid-card { transition: none; }
  .tosca-grid-card:hover { transform: none; }
  .tosca-grid-card:hover .tosca-grid-card__cover img { transform: none; }
}

/* Advanced search modal — stacked & readable on HP */
@media (max-width: 640px) {
  #adv-modal .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  #adv-modal .modal-dialog.modal-lg {
    max-width: calc(100% - 1rem);
  }
  #adv-modal .row > .col,
  #adv-modal .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  #adv-modal .form-control {
    font-size: 16px;
    min-height: 44px;
  }
  #adv-modal .modal-footer .btn {
    min-height: 44px;
  }
}

