/*
 * CONSIGNMENT PAGE — PREMIUM DARK TIMBER MILL
 * #141816 base, green accents, gold highlights
 * DM Serif Display / Outfit / JetBrains Mono
 */

/* ═══════════════════════════════════════════════════════════
   SKIP LINK
   ═══════════════════════════════════════════════════════════ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  z-index: 99999;
  background: #668971;
  color: #f0ece4;
  padding: 8px 16px;
  border-radius: 6px;
}

/* ═══════════════════════════════════════════════════════════
   PAGE BASE
   ═══════════════════════════════════════════════════════════ */

html, body {
  background: #141816;
  color: rgba(255, 255, 255, 0.88);
}

body::before {
  display: none;
}

/* Topographic contour lines overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cellipse cx='300' cy='300' rx='60' ry='40' transform='rotate(-15 300 300)'/%3E%3Cellipse cx='300' cy='300' rx='110' ry='75' transform='rotate(-12 300 300)'/%3E%3Cellipse cx='300' cy='300' rx='165' ry='115' transform='rotate(-8 300 300)'/%3E%3Cellipse cx='300' cy='300' rx='225' ry='160' transform='rotate(-4 300 300)'/%3E%3Cellipse cx='300' cy='300' rx='290' ry='210' transform='rotate(0 300 300)'/%3E%3Cellipse cx='140' cy='160' rx='45' ry='30' transform='rotate(20 140 160)'/%3E%3Cellipse cx='140' cy='160' rx='90' ry='60' transform='rotate(18 140 160)'/%3E%3Cellipse cx='140' cy='160' rx='140' ry='95' transform='rotate(14 140 160)'/%3E%3Cellipse cx='480' cy='420' rx='55' ry='35' transform='rotate(-25 480 420)'/%3E%3Cellipse cx='480' cy='420' rx='100' ry='65' transform='rotate(-22 480 420)'/%3E%3Cellipse cx='480' cy='420' rx='150' ry='100' transform='rotate(-18 480 420)'/%3E%3Cpath d='M0 200 Q150 180 300 220 Q450 260 600 230'/%3E%3Cpath d='M0 350 Q100 320 250 360 Q400 400 600 370'/%3E%3Cpath d='M0 500 Q200 470 350 510 Q500 550 600 520'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 600px 600px;
}

/* Fade-in on load */
.main {
  animation: pageFadeIn 0.4s ease both;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════ */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh;
  background: #0f1210;
  display: flex;
  flex-direction: column;
  z-index: 50;
  transition: width 0.3s ease;
  overflow: hidden;
  border-right: 1px solid rgba(102, 137, 113, 0.1);
}

.sidebar.collapsed {
  width: 64px;
}

.sidebar.collapsed .brand h1,
.sidebar.collapsed .nav-item span:not(.icon),
.sidebar.collapsed .sidebar-toggle-label,
.sidebar.collapsed .sidebar-footer .user-info div:not(.user-avatar) {
  display: none;
}

.sidebar-toggle {
  padding: 16px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s ease;
  font-size: 13px;
}

.sidebar-toggle:hover {
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-toggle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-toggle-label {
  white-space: nowrap;
}

.brand {
  padding: 24px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.brand h1 {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-family: var(--font-ui);
  white-space: nowrap;
}

nav {
  padding: 8px 0;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  padding: 10px 16px;
  margin: 2px 8px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  transition: all 0.15s ease;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  transform: none;
  box-shadow: none;
}

.nav-item.active {
  background: rgba(102, 137, 113, 0.15);
  color: var(--ro-green);
}

.nav-item .icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--ro-green);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

.user-name {
  font-weight: 600;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.user-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */

.main {
  margin-left: 240px;
  min-height: 100vh;
  background: transparent;
  transition: margin-left 0.3s ease;
  position: relative;
  z-index: 2;
}

.main.sidebar-collapsed {
  margin-left: 64px;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */

.header {
  background: rgba(15, 18, 16, 0.9);
  color: rgba(255, 255, 255, 0.88);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(102, 137, 113, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.header-brand-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding-right: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.header-time .time {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.header-time .date {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.header-btn {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  font-family: var(--font-ui);
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.header-btn.primary {
  background: var(--ro-green);
  color: white;
  border-color: transparent;
  font-weight: 600;
}

.header-btn.primary:hover {
  background: #5a7b64;
}

.header-btn i {
  font-size: 16px;
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.15s ease;
  font-family: var(--font-ui);
  font-weight: 500;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

#themeIcon {
  display: flex;
  align-items: center;
  width: 16px;
  height: 16px;
}

#themeIcon svg {
  width: 16px;
  height: 16px;
}

/* ═══════════════════════════════════════════════════════════
   EDITORIAL SECTION NUMBERING
   ═══════════════════════════════════════════════════════════ */

.section-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.2);
  margin-right: 8px;
  letter-spacing: 0.06em;
  font-style: normal;
}

html[data-theme='light'] .section-number {
  color: rgba(45, 58, 46, 0.25);
}

/* ═══════════════════════════════════════════════════════════
   SECTION CONTAINERS
   ═══════════════════════════════════════════════════════════ */

.card-section {
  background: rgba(26, 30, 27, 0.85);
  border: 1px solid rgba(102, 137, 113, 0.15);
  border-radius: 8px;
  padding: 24px;
  margin: 0 24px 16px;
}

.partners-section {
  margin-top: 16px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(102, 137, 113, 0.1);
}

.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.add-partner-btn {
  background: var(--ro-green);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  font-family: var(--font-ui);
}

.add-partner-btn:hover {
  background: #5a7b64;
}

.add-partner-btn:focus-visible {
  outline: 2px solid var(--ro-green);
  outline-offset: 2px;
}

.add-partner-btn i {
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════
   CONSIGNMENT SUMMARY — Aggregate totals strip
   ═══════════════════════════════════════════════════════════ */

.consignment-summary {
  display: flex;
  gap: 24px;
  padding: 16px 20px;
  background: rgba(26, 30, 27, 0.7);
  border: 1px solid rgba(102, 137, 113, 0.15);
  border-radius: 8px;
  margin-bottom: 16px;
  grid-column: 1 / -1;
}

.summary-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
}

.summary-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.summary-value.owed {
  color: #e4aa4f;
}

/* ═══════════════════════════════════════════════════════════
   PARTNER CARDS — Inventory-first layout
   ═══════════════════════════════════════════════════════════ */

.partner-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.partner-card {
  background: rgba(26, 30, 27, 0.6);
  border: 1px solid rgba(102, 137, 113, 0.12);
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.15s ease;
  position: relative;
}

.partner-card:hover {
  border-color: rgba(102, 137, 113, 0.3);
  transform: translateY(-2px);
}

.partner-card:active {
  transform: scale(0.98);
}

/* Dominant partner card — full width on wider screens */
@media (min-width: 641px) {
  .partner-card--dominant {
    grid-column: 1 / -1;
  }
}

.partner-card--dominant .card-hero-number {
  font-size: 48px;
}

/* Inventory fill bars */
.inventory-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  margin-top: 12px;
  overflow: hidden;
}

.partner-card--dominant .inventory-bar {
  height: 8px;
}

.inventory-bar-fill {
  height: 100%;
  background: var(--ro-green);
  border-radius: 3px;
  transition: width 0.6s ease;
}

html[data-theme='light'] .inventory-bar {
  background: rgba(0, 0, 0, 0.04);
}

.partner-card.active {
  border-color: var(--ro-green);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.partner-name {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  color: rgba(240, 236, 228, 0.88);
  margin: 0;
}

.card-expand-icon {
  color: rgba(240, 236, 228, 0.25);
  font-size: 18px;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.partner-card:hover .card-expand-icon {
  color: rgba(240, 236, 228, 0.5);
}

.card-hero-number {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: #f0ece4;
  line-height: 1;
  letter-spacing: -0.02em;
}

.card-hero-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  color: rgba(240, 236, 228, 0.4);
  margin-top: 4px;
}

.card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: rgba(240, 236, 228, 0.35);
}

.card-bottom-row .card-balance {
  font-family: var(--font-mono);
  font-weight: 500;
}

.card-balance.high {
  color: var(--danger);
}

.card-balance.medium {
  color: var(--ro-gold);
}

.card-balance.low {
  color: rgba(240, 236, 228, 0.4);
}

/* Legacy classes kept for detail panel compatibility */
.balance {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  margin: 8px 0;
  line-height: 1;
  letter-spacing: -0.02em;
}

.balance.low,
.balance.positive {
  color: var(--ro-green);
}

.balance.medium,
.balance.warning {
  color: var(--ro-gold);
}

.balance.high,
.balance.negative {
  color: var(--danger);
}

.card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
  display: block;
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.meta div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta i {
  font-size: 14px;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════
   QUICK ACTIONS — Large prominent CTA cards
   ═══════════════════════════════════════════════════════════ */

.quick-actions-section {
  margin-top: 16px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.quick-action-card {
  background: rgba(26, 30, 27, 0.6);
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 8px;
  padding: 32px 24px;
  min-height: 160px;
  cursor: pointer;
  transition: background 0.15s ease, border-bottom-width 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-ui);
  color: rgba(240, 236, 228, 0.7);
  position: relative;
}

.quick-action-card:hover {
  background: rgba(36, 42, 37, 0.7);
  transform: translateY(-2px);
}

.quick-action-card:focus-visible {
  outline: 2px solid var(--ro-green);
  outline-offset: 2px;
}

.quick-action-card.intake {
  border-bottom-color: #668971;
}

.quick-action-card.intake:hover {
  border-bottom-width: 3px;
}

.quick-action-card.sale {
  border-bottom-color: #e4aa4f;
}

.quick-action-card.sale:hover {
  border-bottom-width: 3px;
}

.quick-action-card.payment {
  border-bottom-color: #62758d;
}

.quick-action-card.payment:hover {
  border-bottom-width: 3px;
}

.quick-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quick-action-card:hover .quick-action-icon {
  transform: scale(1.15);
}

.quick-action-card:active .quick-action-icon {
  transform: scale(0.95);
}

.quick-action-card.intake .quick-action-icon {
  color: #668971;
}

.quick-action-card.sale .quick-action-icon {
  color: #e4aa4f;
}

.quick-action-card.payment .quick-action-icon {
  color: #62758d;
}

.quick-action-card.sync {
  border-bottom-color: rgba(98, 117, 141, 0.6);
}

.quick-action-card.sync:hover {
  border-bottom-width: 3px;
}

.quick-action-card.sync .quick-action-icon {
  color: #62758d;
}

.quick-action-card.syncing {
  opacity: 0.6;
  pointer-events: none;
}

.quick-action-card.syncing .quick-action-icon i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.quick-action-label {
  font-size: 16px;
  font-weight: 600;
  color: #f0ece4;
  line-height: 1;
}

.quick-action-hint {
  display: block;
  font-size: 13px;
  color: rgba(240, 236, 228, 0.35);
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════
   ACTIVITY FEED — Timeline with colored dots
   ═══════════════════════════════════════════════════════════ */

.filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 560px;
  overflow-y: auto;
  position: relative;
  padding-left: 24px;
}

.activity-feed::-webkit-scrollbar {
  width: 4px;
}

.activity-feed::-webkit-scrollbar-track {
  background: transparent;
}

.activity-feed::-webkit-scrollbar-thumb {
  background: rgba(102, 137, 113, 0.3);
  border-radius: 2px;
}

/* Vertical timeline line */
.activity-feed::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.activity-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0;
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: background 0.15s ease;
  position: relative;
}

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

.activity-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Timeline dot */
.activity-dot {
  position: absolute;
  left: -22px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #141816;
}

.activity-dot.intake {
  background: #668971;
}

.activity-dot.sale {
  background: #e4aa4f;
}

.activity-dot.payment {
  background: #62758d;
}

/* Hide the old badge — replaced by dot */
.activity-badge {
  display: none;
}

.activity-detail {
  flex: 1;
  min-width: 0;
}

.activity-detail strong {
  font-size: 13px;
  font-weight: 600;
  color: rgba(240, 236, 228, 0.88);
  display: inline;
}

.activity-detail span {
  font-size: 13px;
  font-weight: 400;
  color: rgba(240, 236, 228, 0.55);
}

.activity-detail p {
  font-size: 12px;
  color: rgba(240, 236, 228, 0.4);
  margin: 0;
  line-height: 1.4;
}

.activity-detail .mono {
  font-family: var(--font-mono);
  font-weight: 600;
  color: rgba(240, 236, 228, 0.88);
}

.activity-date {
  font-size: 11px;
  color: rgba(240, 236, 228, 0.3);
  font-family: var(--font-mono);
  flex-shrink: 0;
  text-align: right;
  padding-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Activity feed staggered entrance */
.activity-enter {
  opacity: 0;
  transform: translateY(8px);
  animation: activityEnter 0.3s ease forwards;
}

@keyframes activityEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════
   PARTNER DETAIL PANEL
   ═══════════════════════════════════════════════════════════ */

.partner-detail {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 520px;
  max-width: 100vw;
  background: #181c19;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid rgba(102, 137, 113, 0.15);
}

.partner-detail.active {
  transform: translateX(0);
}

.detail-header {
  padding: 24px;
  border-bottom: 1px solid rgba(102, 137, 113, 0.1);
  background: #0f1210;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.detail-header h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.detail-contact {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
}

.close-detail-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.close-detail-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

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

.delete-partner-btn {
  background: rgba(196, 92, 74, 0.08);
  border: 1px solid rgba(196, 92, 74, 0.15);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 15px;
  color: rgba(196, 92, 74, 0.5);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delete-partner-btn:hover {
  background: rgba(196, 92, 74, 0.15);
  color: var(--danger);
}

.row-delete-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 13px;
  opacity: 0;
  transition: all 0.15s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.history-table-row:hover .row-delete-btn,
.inv-table-row:hover .row-delete-btn {
  opacity: 1;
}

.row-delete-btn:hover {
  color: var(--danger);
  background: rgba(196, 92, 74, 0.1);
}

.detail-body {
  overflow-y: auto;
  flex: 1;
  padding: 0;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-stat {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 14px 16px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.2;
}

.stat-value small {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
}

.stat-value.positive { color: var(--ro-green); }
.stat-value.warning { color: var(--ro-gold); }

/* Stock vs Owed Bar */
.stock-vs-owed-bar {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.4);
}

.bar-label strong {
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-mono);
  font-weight: 600;
}

.bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.bar-stock {
  background: var(--ro-green);
}

.bar-hint {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 4px;
}

.detail-section {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-section:last-child {
  border-bottom: none;
}

.detail-section h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-section h3 i {
  color: var(--ro-green);
  font-size: 18px;
}

/* Inventory table */
.inv-table {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.inv-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
}

.inv-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  align-items: center;
}

.inv-table-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.inv-strain {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.inv-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.type-tops { color: var(--ro-green); }
.type-smalls { color: var(--ro-gold); }

.inv-lbs {
  font-family: var(--font-mono);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  text-align: right;
}

/* History tables */
.history-table {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.history-table-row {
  display: grid;
  grid-template-columns: 56px 1fr auto 32px;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  align-items: center;
  gap: 12px;
}

.history-table-row:first-child {
  border-top: none;
}

.history-table-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.history-date {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.history-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.history-strain {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.history-type.type-tops {
  background: rgba(102, 137, 113, 0.12);
  color: var(--ro-green);
}

.history-type.type-smalls {
  background: rgba(228, 170, 79, 0.12);
  color: var(--ro-gold);
}

.history-numbers {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}

.history-weight {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.history-price,
.history-method {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.history-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.history-ref {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-mono);
}

.history-channel {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
}

.empty-hint {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  padding: 8px 0;
}

/* ═══════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: #1a1e1b;
  border-radius: 8px;
  border: 1px solid rgba(102, 137, 113, 0.15);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.25s ease;
  position: relative;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
  padding: 24px;
  border-bottom: 2px solid rgba(102, 137, 113, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
}

.modal h2 i {
  font-size: 22px;
  color: var(--ro-green);
}

#payment-modal h2 i {
  color: var(--info);
}

#intake-modal .modal h2 { border-bottom-color: #668971; }
#count-modal .modal h2 { border-bottom-color: #e4aa4f; }
#payment-modal .modal h2 { border-bottom-color: #62758d; }
#partner-modal .modal h2 { border-bottom-color: #668971; }

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.modal form {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════════════════ */

select,
.partner-select,
.strain-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23668971' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding: 10px 36px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  line-height: 1.5;
}

select:hover,
.partner-select:hover,
.strain-select:hover {
  border-color: rgba(102, 137, 113, 0.3);
}

select:focus,
.partner-select:focus,
.strain-select:focus {
  outline: none;
  border-color: var(--ro-green);
  box-shadow: 0 0 0 2px rgba(102, 137, 113, 0.15);
}

select option {
  background: #1a1e1b;
  color: rgba(255, 255, 255, 0.88);
}

input[type="number"],
input[type="date"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
  appearance: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  transition: all 0.15s ease;
  width: 100%;
  line-height: 1.5;
}

input:hover, textarea:hover {
  border-color: rgba(102, 137, 113, 0.3);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--ro-green);
  box-shadow: 0 0 0 2px rgba(102, 137, 113, 0.15);
}

/* Date input color-scheme for dark */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.form-group textarea {
  resize: vertical;
  min-height: 72px;
  font-family: var(--font-ui);
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
  display: block;
}

.auto-filled {
  border-color: var(--ro-green) !important;
  background: rgba(102, 137, 113, 0.06) !important;
}

/* Toggle Group */
.toggle-group {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.toggle-option {
  padding: 8px 24px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-option:last-child {
  border-right: none;
}

.toggle-option.active {
  background: var(--ro-green);
  color: white;
}

.toggle-option:hover:not(.active) {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
}

/* Inventory Count - Expected Display */
.count-expected {
  background: rgba(102, 137, 113, 0.06);
  border: 1px solid rgba(102, 137, 113, 0.15);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.count-expected-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.count-expected-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--ro-green);
}

/* Submit Buttons */
.submit-btn {
  width: 100%;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 8px;
}

.submit-btn.intake {
  background: var(--ro-green);
  color: white;
}

.submit-btn.intake:hover {
  background: #5a7b64;
}

.submit-btn.sale {
  background: var(--ro-gold);
  color: #141816;
}

.submit-btn.sale:hover {
  background: #d9a048;
}

.submit-btn.payment {
  background: var(--info);
  color: white;
}

.submit-btn.payment:hover {
  background: #556c82;
}

/* ═══════════════════════════════════════════════════════════
   LINE ITEMS (Multi-line intake)
   ═══════════════════════════════════════════════════════════ */

.modal-wide {
  max-width: 680px;
}

.flex-1 {
  flex: 1;
}

.line-items-header {
  display: grid;
  grid-template-columns: 2fr 80px 96px 96px 40px;
  gap: 8px;
  padding: 0 0 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}

.line-items-header span {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
}

.line-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.line-item {
  display: grid;
  grid-template-columns: 2fr 80px 96px 96px 40px;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  animation: lineItemIn 0.15s ease;
}

@keyframes lineItemIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.line-item select,
.line-item input {
  padding: 8px 10px;
  font-size: 13px;
}

.line-item .toggle-compact {
  gap: 0;
}

.line-item .toggle-compact .toggle-option {
  padding: 6px 12px;
  font-size: 12px;
  min-width: unset;
}

.remove-line-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.15s ease;
  font-size: 16px;
}

.remove-line-btn:hover {
  color: var(--danger);
  background: rgba(196, 92, 74, 0.08);
}

.add-line-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px dashed rgba(102, 137, 113, 0.2);
  border-radius: 6px;
  padding: 10px 16px;
  color: var(--ro-green);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  width: 100%;
  justify-content: center;
  margin-bottom: 16px;
}

.add-line-btn:hover {
  border-color: var(--ro-green);
  background: rgba(102, 137, 113, 0.04);
}

.add-line-btn i {
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════
   EMPTY STATES
   ═══════════════════════════════════════════════════════════ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.empty-state-icon {
  font-size: 56px;
  color: rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.empty-state-text {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.empty-state-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  max-width: 360px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════ */

.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  font-family: var(--font-ui);
  background: #1a1e1b;
  border: 1px solid rgba(102, 137, 113, 0.15);
  border-radius: 6px;
  padding: 14px 18px;
  min-width: 300px;
  max-width: 440px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: all;
  animation: toastSlideIn 0.25s ease;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

.toast-success {
  border-left: 3px solid var(--ro-green);
}

.toast-error {
  border-left: 3px solid var(--danger);
}

.toast i {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-success i {
  color: var(--ro-green);
}

.toast-error i {
  color: var(--danger);
}

.toast p {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

@keyframes toastSlideIn {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.show {
  display: flex;
}

/* ═══════════════════════════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════════════════════════ */

.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

.skeleton-text {
  display: block;
}

.skeleton-circle {
  border-radius: 6px;
}

.skeleton-block {
  border-radius: 6px;
  width: 100%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════════════════════
   AUTH OVERLAY — Editorial Login
   ═══════════════════════════════════════════════════════════ */

#auth-overlay {
  position: fixed;
  inset: 0;
  background: #141816;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

#auth-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cellipse cx='300' cy='300' rx='60' ry='40' transform='rotate(-15 300 300)'/%3E%3Cellipse cx='300' cy='300' rx='110' ry='75' transform='rotate(-12 300 300)'/%3E%3Cellipse cx='300' cy='300' rx='165' ry='115' transform='rotate(-8 300 300)'/%3E%3Cellipse cx='300' cy='300' rx='225' ry='160' transform='rotate(-4 300 300)'/%3E%3Cellipse cx='300' cy='300' rx='290' ry='210' transform='rotate(0 300 300)'/%3E%3Cellipse cx='140' cy='160' rx='45' ry='30' transform='rotate(20 140 160)'/%3E%3Cellipse cx='140' cy='160' rx='90' ry='60' transform='rotate(18 140 160)'/%3E%3Cellipse cx='140' cy='160' rx='140' ry='95' transform='rotate(14 140 160)'/%3E%3Cellipse cx='480' cy='420' rx='55' ry='35' transform='rotate(-25 480 420)'/%3E%3Cellipse cx='480' cy='420' rx='100' ry='65' transform='rotate(-22 480 420)'/%3E%3Cellipse cx='480' cy='420' rx='150' ry='100' transform='rotate(-18 480 420)'/%3E%3Cpath d='M0 200 Q150 180 300 220 Q450 260 600 230'/%3E%3Cpath d='M0 350 Q100 320 250 360 Q400 400 600 370'/%3E%3Cpath d='M0 500 Q200 470 350 510 Q500 550 600 520'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 600px 600px;
}

#auth-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.login-container {
  background: rgba(26, 30, 27, 0.9);
  border: 1px solid rgba(102, 137, 113, 0.15);
  border-radius: 8px;
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.login-lock-icon {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.12);
  display: block;
  margin-bottom: 16px;
}

.login-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 16px;
  display: block;
}

.login-container h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.login-container h2 i {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.12);
  display: block;
  margin-bottom: 8px;
}

.login-container p {
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 32px;
  font-size: 14px;
  font-family: var(--font-ui);
}

.login-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 16px;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.login-input:focus {
  outline: none;
  border-color: var(--ro-green);
  box-shadow: 0 0 0 2px rgba(102, 137, 113, 0.15);
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: var(--ro-green);
  color: white;
  border: none;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s ease;
}

.login-btn:hover {
  background: #5a7b64;
}

.login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.login-error {
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
  display: none;
}

.login-error.visible {
  display: block;
}

body.auth-required .sidebar,
body.auth-required .main {
  opacity: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .main,
  .main.sidebar-collapsed {
    margin-left: 0 !important;
  }

  .mobile-menu-btn {
    display: flex !important;
  }
}

@media (max-width: 640px) {
  .header {
    padding: 12px 16px;
  }

  .header-brand-text {
    display: none;
  }

  .header-time {
    display: none !important;
  }

  .card-section {
    margin: 0 8px 8px;
    padding: 16px;
  }

  .section-title {
    font-size: 20px;
  }

  .consignment-summary {
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .partner-cards {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .quick-action-card {
    min-height: 120px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .partner-detail {
    width: 100%;
  }

  .detail-stats {
    grid-template-columns: 1fr;
  }

  .balance {
    font-size: 28px;
  }

  .card-hero-number {
    font-size: 28px;
  }

  .partner-card--dominant .card-hero-number {
    font-size: 32px;
  }

  .modal {
    margin: 8px;
  }

  .modal h2 {
    font-size: 20px;
    padding: 16px;
  }

  .modal form {
    padding: 16px;
  }

  /* Stack line items */
  .line-items-header {
    display: none;
  }

  .line-item {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .li-col-strain {
    grid-column: 1 / -1;
  }

  .li-col-remove {
    grid-column: 2;
    justify-self: end;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ═══════════════════════════════════════════════════════════
   LIGHT MODE
   ═══════════════════════════════════════════════════════════ */

[data-theme='light'] body,
html[data-theme='light'] body {
  background: #faf8f5;
  color: #2d3a2e;
}

/* Topo contour — slightly more present in light mode */
html[data-theme='light'] body::after {
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%232d3a2e' stroke-width='1'%3E%3Cellipse cx='300' cy='300' rx='60' ry='40' transform='rotate(-15 300 300)'/%3E%3Cellipse cx='300' cy='300' rx='110' ry='75' transform='rotate(-12 300 300)'/%3E%3Cellipse cx='300' cy='300' rx='165' ry='115' transform='rotate(-8 300 300)'/%3E%3Cellipse cx='300' cy='300' rx='225' ry='160' transform='rotate(-4 300 300)'/%3E%3Cellipse cx='300' cy='300' rx='290' ry='210' transform='rotate(0 300 300)'/%3E%3Cellipse cx='140' cy='160' rx='45' ry='30' transform='rotate(20 140 160)'/%3E%3Cellipse cx='140' cy='160' rx='90' ry='60' transform='rotate(18 140 160)'/%3E%3Cellipse cx='140' cy='160' rx='140' ry='95' transform='rotate(14 140 160)'/%3E%3Cellipse cx='480' cy='420' rx='55' ry='35' transform='rotate(-25 480 420)'/%3E%3Cellipse cx='480' cy='420' rx='100' ry='65' transform='rotate(-22 480 420)'/%3E%3Cellipse cx='480' cy='420' rx='150' ry='100' transform='rotate(-18 480 420)'/%3E%3Cpath d='M0 200 Q150 180 300 220 Q450 260 600 230'/%3E%3Cpath d='M0 350 Q100 320 250 360 Q400 400 600 370'/%3E%3Cpath d='M0 500 Q200 470 350 510 Q500 550 600 520'/%3E%3C/g%3E%3C/svg%3E");
}

/* Sidebar */
html[data-theme='light'] .sidebar {
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme='light'] .sidebar-toggle {
  color: rgba(45, 58, 46, 0.4);
}

html[data-theme='light'] .sidebar-toggle:hover {
  color: rgba(45, 58, 46, 0.7);
}

html[data-theme='light'] .brand {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

html[data-theme='light'] .brand h1 {
  color: #2d3a2e;
}

html[data-theme='light'] .nav-item {
  color: #2d3a2e;
}

html[data-theme='light'] .nav-item:hover {
  background: rgba(0, 0, 0, 0.03);
  color: #2d3a2e;
}

html[data-theme='light'] .nav-item.active {
  background: rgba(102, 137, 113, 0.1);
  color: var(--ro-green);
}

html[data-theme='light'] .sidebar-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

html[data-theme='light'] .user-name {
  color: #2d3a2e;
}

html[data-theme='light'] .user-role {
  color: rgba(45, 58, 46, 0.4);
}

/* Header */
html[data-theme='light'] .header {
  background: #ffffff;
  color: #2d3a2e;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme='light'] .header-brand-text {
  color: #2d3a2e;
}

html[data-theme='light'] .mobile-menu-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: rgba(45, 58, 46, 0.7);
}

html[data-theme='light'] .mobile-menu-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

html[data-theme='light'] .header-time .time {
  color: #2d3a2e;
}

html[data-theme='light'] .header-time .date {
  color: #2d3a2e;
}

html[data-theme='light'] .header-time {
  border-right-color: rgba(0, 0, 0, 0.08);
}

html[data-theme='light'] .header-btn {
  background: rgba(0, 0, 0, 0.03);
  color: rgba(45, 58, 46, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme='light'] .header-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme='light'] .header-btn.primary {
  background: var(--ro-green);
  color: white;
  border-color: transparent;
}

html[data-theme='light'] .header-btn.primary:hover {
  background: #5a7b64;
}

html[data-theme='light'] .theme-toggle {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: rgba(45, 58, 46, 0.7);
}

html[data-theme='light'] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* Section containers */
html[data-theme='light'] .card-section {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme='light'] .section-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

html[data-theme='light'] .section-title {
  color: #2d3a2e;
}

/* Quick Actions */
html[data-theme='light'] .quick-action-card {
  background: #ffffff;
  color: rgba(45, 58, 46, 0.7);
}

html[data-theme='light'] .quick-action-card:hover {
  background: rgba(0, 0, 0, 0.02);
}

html[data-theme='light'] .quick-action-label {
  color: #2d3a2e;
}

html[data-theme='light'] .quick-action-hint {
  color: rgba(45, 58, 46, 0.5);
}

html[data-theme='light'] .quick-action-card.sync:hover {
  background: rgba(98, 117, 141, 0.06);
}

/* Consignment Summary */
html[data-theme='light'] .consignment-summary {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme='light'] .summary-label {
  color: rgba(45, 58, 46, 0.5);
}

html[data-theme='light'] .summary-value {
  color: #2d3a2e;
}

html[data-theme='light'] .summary-value.owed {
  color: #c48a2a;
}

/* Partner Cards */
html[data-theme='light'] .partner-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme='light'] .partner-card:hover {
  border-color: rgba(102, 137, 113, 0.3);
  transform: translateY(-2px);
}

html[data-theme='light'] .partner-name {
  color: #2d3a2e;
}

html[data-theme='light'] .card-expand-icon {
  color: rgba(45, 58, 46, 0.2);
}

html[data-theme='light'] .partner-card:hover .card-expand-icon {
  color: rgba(45, 58, 46, 0.4);
}

html[data-theme='light'] .card-hero-number {
  color: #2d3a2e;
}

html[data-theme='light'] .card-hero-label {
  color: rgba(45, 58, 46, 0.4);
}

html[data-theme='light'] .card-bottom-row {
  border-top-color: rgba(0, 0, 0, 0.06);
  color: rgba(45, 58, 46, 0.4);
}

html[data-theme='light'] .card-balance.low {
  color: rgba(45, 58, 46, 0.4);
}

html[data-theme='light'] .card-label {
  color: rgba(45, 58, 46, 0.4);
}

html[data-theme='light'] .meta {
  color: rgba(45, 58, 46, 0.4);
  border-top-color: rgba(0, 0, 0, 0.06);
}

/* Activity Feed */
html[data-theme='light'] .activity-feed::before {
  background: rgba(0, 0, 0, 0.08);
}

html[data-theme='light'] .activity-item {
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

html[data-theme='light'] .activity-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

html[data-theme='light'] .activity-dot {
  border-color: #ffffff;
}

html[data-theme='light'] .activity-detail strong {
  color: #2d3a2e;
}

html[data-theme='light'] .activity-detail span {
  color: rgba(45, 58, 46, 0.55);
}

html[data-theme='light'] .activity-detail p {
  color: rgba(45, 58, 46, 0.4);
}

html[data-theme='light'] .activity-detail .mono {
  color: #2d3a2e;
}

html[data-theme='light'] .activity-date {
  color: rgba(45, 58, 46, 0.35);
}

html[data-theme='light'] .activity-feed::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
}

/* Partner Detail Panel */
html[data-theme='light'] .partner-detail {
  background: #ffffff;
  border-left-color: rgba(0, 0, 0, 0.08);
}

html[data-theme='light'] .detail-header {
  background: #faf8f5;
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

html[data-theme='light'] .detail-header h2 {
  color: #2d3a2e;
}

html[data-theme='light'] .detail-contact {
  color: rgba(45, 58, 46, 0.45);
}

html[data-theme='light'] .close-detail-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: rgba(45, 58, 46, 0.5);
}

html[data-theme='light'] .close-detail-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #2d3a2e;
}

html[data-theme='light'] .delete-partner-btn {
  background: rgba(196, 92, 74, 0.05);
  border-color: rgba(196, 92, 74, 0.12);
}

html[data-theme='light'] .detail-stats {
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

html[data-theme='light'] .detail-stat {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.04);
}

html[data-theme='light'] .stat-label {
  color: rgba(45, 58, 46, 0.4);
}

html[data-theme='light'] .stat-value {
  color: #2d3a2e;
}

html[data-theme='light'] .stat-value small {
  color: rgba(45, 58, 46, 0.4);
}

html[data-theme='light'] .bar-label {
  color: rgba(45, 58, 46, 0.4);
}

html[data-theme='light'] .bar-label strong {
  color: #2d3a2e;
}

html[data-theme='light'] .bar-track {
  background: rgba(0, 0, 0, 0.04);
}

html[data-theme='light'] .bar-hint {
  color: rgba(45, 58, 46, 0.3);
}

html[data-theme='light'] .stock-vs-owed-bar {
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

html[data-theme='light'] .detail-section {
  border-bottom-color: rgba(0, 0, 0, 0.04);
}

html[data-theme='light'] .detail-section h3 {
  color: rgba(45, 58, 46, 0.7);
}

/* Detail tables */
html[data-theme='light'] .inv-table,
html[data-theme='light'] .history-table {
  border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme='light'] .inv-table-header {
  background: rgba(0, 0, 0, 0.02);
  color: rgba(45, 58, 46, 0.4);
}

html[data-theme='light'] .inv-table-row {
  border-top-color: rgba(0, 0, 0, 0.04);
}

html[data-theme='light'] .inv-table-row:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

html[data-theme='light'] .inv-strain {
  color: #2d3a2e;
}

html[data-theme='light'] .inv-lbs {
  color: #2d3a2e;
}

html[data-theme='light'] .history-table-row {
  border-top-color: rgba(0, 0, 0, 0.04);
}

html[data-theme='light'] .history-table-row:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

html[data-theme='light'] .history-date {
  color: rgba(45, 58, 46, 0.4);
}

html[data-theme='light'] .history-strain {
  color: #2d3a2e;
}

html[data-theme='light'] .history-weight {
  color: #2d3a2e;
}

html[data-theme='light'] .history-amount {
  color: #2d3a2e;
}

html[data-theme='light'] .history-price,
html[data-theme='light'] .history-method,
html[data-theme='light'] .history-ref,
html[data-theme='light'] .history-channel {
  color: rgba(45, 58, 46, 0.4);
}

html[data-theme='light'] .empty-hint {
  color: rgba(45, 58, 46, 0.35);
}

html[data-theme='light'] .row-delete-btn {
  color: rgba(45, 58, 46, 0.2);
}

/* Modals */
html[data-theme='light'] .modal-overlay {
  background: rgba(0, 0, 0, 0.4);
}

html[data-theme='light'] .modal {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme='light'] .modal h2 {
  color: #2d3a2e;
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

html[data-theme='light'] .modal-close {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: rgba(45, 58, 46, 0.4);
}

html[data-theme='light'] .modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #2d3a2e;
}

/* Form Elements */
html[data-theme='light'] select,
html[data-theme='light'] .partner-select,
html[data-theme='light'] .strain-select {
  background-color: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #2d3a2e;
}

html[data-theme='light'] select option {
  background: #ffffff;
  color: #2d3a2e;
}

html[data-theme='light'] select:hover,
html[data-theme='light'] .partner-select:hover,
html[data-theme='light'] .strain-select:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

html[data-theme='light'] select:focus,
html[data-theme='light'] .partner-select:focus,
html[data-theme='light'] .strain-select:focus {
  border-color: #668971;
  box-shadow: 0 0 0 2px rgba(102, 137, 113, 0.15);
}

html[data-theme='light'] input[type="number"],
html[data-theme='light'] input[type="date"],
html[data-theme='light'] input[type="text"],
html[data-theme='light'] input[type="email"],
html[data-theme='light'] input[type="tel"],
html[data-theme='light'] input[type="password"],
html[data-theme='light'] textarea {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #2d3a2e;
}

html[data-theme='light'] input:hover,
html[data-theme='light'] textarea:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

html[data-theme='light'] input:focus,
html[data-theme='light'] textarea:focus {
  border-color: #668971;
  box-shadow: 0 0 0 2px rgba(102, 137, 113, 0.15);
}

html[data-theme='light'] input[type="date"]::-webkit-calendar-picker-indicator {
  filter: none;
}

html[data-theme='light'] .form-group label {
  color: rgba(45, 58, 46, 0.55);
}

html[data-theme='light'] .field-hint {
  color: rgba(45, 58, 46, 0.35);
}

html[data-theme='light'] .toggle-group {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

html[data-theme='light'] .toggle-option {
  color: rgba(45, 58, 46, 0.4);
  border-right-color: rgba(0, 0, 0, 0.08);
}

html[data-theme='light'] .toggle-option:hover:not(.active) {
  background: rgba(0, 0, 0, 0.03);
  color: #2d3a2e;
}

html[data-theme='light'] .count-expected {
  background: rgba(102, 137, 113, 0.04);
  border-color: rgba(102, 137, 113, 0.12);
}

html[data-theme='light'] .count-expected-label {
  color: rgba(45, 58, 46, 0.45);
}

html[data-theme='light'] .line-items-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

html[data-theme='light'] .line-items-header span {
  color: rgba(45, 58, 46, 0.4);
}

html[data-theme='light'] .line-item {
  border-bottom-color: rgba(0, 0, 0, 0.03);
}

html[data-theme='light'] .remove-line-btn {
  color: rgba(45, 58, 46, 0.3);
}

html[data-theme='light'] .add-line-btn {
  border-color: rgba(102, 137, 113, 0.2);
}

html[data-theme='light'] .add-line-btn:hover {
  border-color: var(--ro-green);
  background: rgba(102, 137, 113, 0.04);
}

/* Empty States */
html[data-theme='light'] .empty-state-icon {
  color: rgba(0, 0, 0, 0.06);
}

html[data-theme='light'] .empty-state-text {
  color: rgba(45, 58, 46, 0.5);
}

html[data-theme='light'] .empty-state-hint {
  color: rgba(45, 58, 46, 0.35);
}

/* Toast Notifications */
html[data-theme='light'] .toast {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #2d3a2e;
}

html[data-theme='light'] .toast p {
  color: #2d3a2e;
}

/* Skeleton Loading */
html[data-theme='light'] .skeleton {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.03) 25%, rgba(0, 0, 0, 0.06) 50%, rgba(0, 0, 0, 0.03) 75%);
  background-size: 200% 100%;
}

/* Auth Overlay */
html[data-theme='light'] #auth-overlay {
  background: #faf8f5;
}

html[data-theme='light'] #auth-overlay::before {
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%232d3a2e' stroke-width='1'%3E%3Cellipse cx='300' cy='300' rx='60' ry='40' transform='rotate(-15 300 300)'/%3E%3Cellipse cx='300' cy='300' rx='110' ry='75' transform='rotate(-12 300 300)'/%3E%3Cellipse cx='300' cy='300' rx='165' ry='115' transform='rotate(-8 300 300)'/%3E%3Cellipse cx='300' cy='300' rx='225' ry='160' transform='rotate(-4 300 300)'/%3E%3Cellipse cx='300' cy='300' rx='290' ry='210' transform='rotate(0 300 300)'/%3E%3Cellipse cx='140' cy='160' rx='45' ry='30' transform='rotate(20 140 160)'/%3E%3Cellipse cx='140' cy='160' rx='90' ry='60' transform='rotate(18 140 160)'/%3E%3Cellipse cx='140' cy='160' rx='140' ry='95' transform='rotate(14 140 160)'/%3E%3Cellipse cx='480' cy='420' rx='55' ry='35' transform='rotate(-25 480 420)'/%3E%3Cellipse cx='480' cy='420' rx='100' ry='65' transform='rotate(-22 480 420)'/%3E%3Cellipse cx='480' cy='420' rx='150' ry='100' transform='rotate(-18 480 420)'/%3E%3Cpath d='M0 200 Q150 180 300 220 Q450 260 600 230'/%3E%3Cpath d='M0 350 Q100 320 250 360 Q400 400 600 370'/%3E%3Cpath d='M0 500 Q200 470 350 510 Q500 550 600 520'/%3E%3C/g%3E%3C/svg%3E");
}

html[data-theme='light'] .login-container {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme='light'] .login-eyebrow {
  color: rgba(45, 58, 46, 0.25);
}

html[data-theme='light'] .login-lock-icon {
  color: rgba(0, 0, 0, 0.08);
}

html[data-theme='light'] .login-container h2 {
  color: #2d3a2e;
}

html[data-theme='light'] .login-container p {
  color: rgba(45, 58, 46, 0.45);
}

html[data-theme='light'] .login-input {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #2d3a2e;
}

html[data-theme='light'] .login-input:focus {
  border-color: #668971;
  box-shadow: 0 0 0 2px rgba(102, 137, 113, 0.15);
}

/* ═══════════════════════════════════════════════════════════
   COMMAND PALETTE
   ═══════════════════════════════════════════════════════════ */

.cmd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 5000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
}
.cmd-overlay.active { display: flex; }
.cmd-container {
  background: #1a1e1b;
  border: 1px solid rgba(102, 137, 113, 0.2);
  border-radius: 8px;
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  animation: modalSlideIn 0.15s ease;
}
.cmd-input-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cmd-slash {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--ro-green);
  flex-shrink: 0;
}
.cmd-input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.88);
  outline: none;
  width: 100%;
}
.cmd-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
  font-style: italic;
}
.cmd-hints {
  padding: 12px 20px;
}
.cmd-hint {
  padding: 8px 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.cmd-hint:last-child { border-bottom: none; }
.cmd-key {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ro-green);
  min-width: 60px;
}
.cmd-desc {
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-ui);
}

/* Light mode */
html[data-theme='light'] .cmd-container {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}
html[data-theme='light'] .cmd-input {
  color: #2d3a2e;
}
html[data-theme='light'] .cmd-input::placeholder {
  color: rgba(45, 58, 46, 0.25);
}
html[data-theme='light'] .cmd-input-row {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
html[data-theme='light'] .cmd-hint {
  border-bottom-color: rgba(0, 0, 0, 0.03);
}
html[data-theme='light'] .cmd-desc {
  color: rgba(45, 58, 46, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   STRAIN BREAKDOWN ON PARTNER CARDS
   ═══════════════════════════════════════════════════════════ */

.card-strains {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(240, 236, 228, 0.35);
  margin-top: 8px;
  letter-spacing: 0.02em;
  min-height: 14px;
}
html[data-theme='light'] .card-strains {
  color: rgba(45, 58, 46, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */

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

  .partner-detail {
    transition: none;
  }

  .modal {
    animation: none;
  }

  .toast {
    animation: none;
  }
}
