/* ============================================================
   clienti-apple.css — Page-specific overrides for clienti.html
   Layered on top of vnss-apple.css
   ============================================================ */

/* ── Login Screen ─────────────────────────────────────────── */
#login-screen {
  min-height: 100vh;
  background: var(--bg-grouped);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: var(--material-glass-thick);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border: var(--glass-border);
  border-radius: var(--radius-panel);
  padding: 44px 36px 36px;
  width: min(400px, 100%);
  text-align: center;
  box-shadow: var(--shadow-float);
  animation: tahoeScaleIn 0.5s var(--ease-spring) both;
  position: relative;
}

/* macOS traffic lights */
.login-card::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FF5F57;
  box-shadow: 20px 0 0 #FEBC2E, 40px 0 0 #28C840;
}

.login-logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.04em;
}

.login-logo-icon {
  display: inline-block;
  color: var(--apple-blue);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

.login-sub {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 28px;
  line-height: 1.5;
}

.login-card .form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--separator-opaque);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-system);
  outline: none;
  transition:
    border-color var(--dur-fast) var(--ease-default),
    box-shadow var(--dur-fast) var(--ease-default),
    background var(--dur-fast) var(--ease-default);
  margin-bottom: 10px;
}

.login-card .form-input:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
  background: var(--bg-primary);
}

.login-card .form-input::placeholder {
  color: var(--text-quaternary);
}

.btn-accent {
  width: 100%;
  padding: 11px;
  background: var(--apple-blue);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-system);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-default),
    transform 0.1s var(--ease-spring);
}

.btn-accent:hover { background: #0066D6; }
.btn-accent:active { transform: scale(0.98); }
.btn-accent:disabled { opacity: 0.4; cursor: not-allowed; }

.form-error {
  color: var(--apple-red);
  font-size: 12px;
  margin-top: 8px;
  min-height: 16px;
}

.login-card.shake {
  animation: shake 0.5s var(--ease-default);
}

/* ── Portal Shell ─────────────────────────────────────────── */
#portal { display: none; height: 100vh; }
#portal.active { display: flex; }

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100vh;
  background: var(--material-sidebar);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-right: 0.5px solid var(--separator);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  transform: translateX(0);
  transition: transform 0.35s var(--ease-spring);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

/* sidebar always visible on desktop — no ws-mode needed */
.sidebar.open { transform: translateX(0); }

/* Sidebar brand */
.sidebar-brand {
  padding: var(--space-4) var(--space-4) var(--space-3);
  border-bottom: 0.5px solid var(--separator);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--toolbar-height);
}

.sidebar-brand-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  background: var(--apple-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.35);
}

.sidebar-brand-text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.sidebar-brand-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-top: 1px;
}

/* Sidebar site selector */
.sidebar-site-selector {
  padding: var(--space-2) var(--space-3);
  border-bottom: 0.5px solid var(--separator);
}

.site-select-btn {
  width: 100%;
  padding: 7px 10px;
  background: var(--fill-quaternary);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-default),
    border-color var(--dur-fast) var(--ease-default);
  text-align: left;
  font-family: var(--font-system);
}

.site-select-btn:hover {
  background: var(--fill-tertiary);
}

.site-select-btn .chevron {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-tertiary);
}

.site-select-dropdown {
  margin-top: 4px;
  display: none;
  background: var(--material-popover);
  border: 0.5px solid var(--separator);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.site-select-dropdown.open { display: block; animation: tahoeScaleIn 0.25s var(--ease-spring) both; }

.site-option {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-system);
  text-align: left;
  transition: background var(--dur-fast) var(--ease-default);
}

.site-option:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.site-option.active {
  background: var(--bg-active);
  color: var(--apple-blue);
  font-weight: 600;
}

/* Sidebar Nav */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-2) var(--space-2);
}

.sidebar-nav::-webkit-scrollbar { width: 0; }

.nav-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  padding: var(--space-3) var(--space-2) var(--space-1);
  user-select: none;
}

.nav-item {
  width: 100%;
  padding: 7px var(--space-3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-primary);
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-default),
    color var(--dur-fast) var(--ease-default);
  margin-bottom: 1px;
  text-align: left;
  font-family: var(--font-system);
  background: none;
  border: none;
}

.nav-item:hover {
  background: var(--bg-hover);
}

.nav-item.active {
  background: var(--bg-active);
  color: var(--apple-blue);
  font-weight: 500;
}

.nav-item i, .nav-item .ph {
  width: 18px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-item.active i,
.nav-item.active .ph {
  opacity: 1;
}

.nav-item .nav-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(0, 122, 255, 0.1);
  color: var(--apple-blue);
}

.nav-item.active .nav-badge {
  background: rgba(0, 122, 255, 0.2);
}

.nav-item.tier-locked { opacity: 0.4; }

.nav-item.nav-item-upgrade {
  color: var(--apple-blue);
  border: 1px dashed rgba(0, 122, 255, 0.25);
  margin: 3px 4px;
  border-radius: var(--radius-sm);
}

/* Workspace sections */
.ws-section { margin-top: var(--space-1); }

.ws-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  padding: var(--space-3) var(--space-2) var(--space-1);
  display: flex;
  align-items: center;
  gap: 5px;
}

.ws-header::before {
  content: '';
  flex: 0 0 3px;
  height: 12px;
  border-radius: 2px;
}

.ws-header.ws-hub::before     { background: var(--apple-blue); }
.ws-header.ws-tools::before   { background: var(--apple-green); }
.ws-header.ws-food::before    { background: var(--apple-orange); }
.ws-header.ws-bb::before      { background: var(--apple-green); }
.ws-header.ws-barbiere::before{ background: var(--apple-purple); }
.ws-header.ws-account::before { background: var(--text-tertiary); }

.ws-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 var(--space-2) var(--space-1);
  padding: 6px var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--fill-quaternary);
  cursor: pointer;
  position: relative;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition:
    background var(--dur-fast) var(--ease-default),
    border-color var(--dur-fast) var(--ease-default);
  border: 1px solid transparent;
}

.ws-switcher:hover {
  background: var(--fill-tertiary);
  border-color: var(--separator);
}

.ws-switcher .ws-chevron {
  margin-left: auto;
  font-size: 10px;
  color: var(--text-tertiary);
  transition: transform var(--dur-fast) var(--ease-spring);
}

.ws-switcher.open .ws-chevron { transform: rotate(180deg); }

.ws-switcher-dropdown {
  display: none;
  margin: 0 var(--space-2) var(--space-1);
  background: var(--material-popover);
  border: 0.5px solid var(--separator);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ws-switcher-dropdown.open { display: block; animation: tahoeScaleIn 0.25s var(--ease-spring) both; }

.ws-switcher-dropdown button {
  width: 100%;
  padding: 7px 12px;
  font-size: 13px;
  text-align: left;
  color: var(--text-secondary);
  background: none;
  border: none;
  font-family: var(--font-system);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-default);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.ws-switcher-dropdown button:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.ws-switcher-dropdown button.active {
  color: var(--apple-blue);
  font-weight: 600;
  background: var(--bg-active);
}

/* Sidebar Footer */
.sidebar-footer {
  border-top: 0.5px solid var(--separator);
  padding: var(--space-3) var(--space-4);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.sidebar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fill-tertiary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.sidebar-user-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
}

.sidebar-user-email {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logout {
  width: 100%;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-system);
  transition:
    background var(--dur-fast) var(--ease-default),
    color var(--dur-fast) var(--ease-default);
}

.sidebar-logout:hover {
  background: rgba(255, 59, 48, 0.08);
  color: var(--apple-red);
}

/* ── Main Area ────────────────────────────────────────────── */
.workspace-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.35s var(--ease-spring);
}

/* Topbar (Tahoe 26 Floating) */
.workspace-topbar {
  position: fixed;
  top: var(--bar-inset);
  right: var(--bar-inset);
  left: calc(var(--sidebar-width) + var(--bar-inset));
  z-index: 100;
  height: var(--toolbar-height);
  background: var(--material-glass-thick);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: var(--glass-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-float);
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: left 0.35s var(--ease-spring);
  will-change: transform;
}

/* topbar always offset by sidebar on desktop */
.workspace-topbar { left: calc(var(--sidebar-width) + var(--bar-inset)); }

.topbar-hamburger {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  transition: background var(--dur-fast) var(--ease-default);
  flex-shrink: 0;
}

.topbar-hamburger:hover { background: var(--bg-hover); }

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.topbar-spacer { flex: 1; }

.topbar-search-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 12px;
  border-radius: var(--radius-md);
  background: var(--fill-quaternary);
  border: 1px solid transparent;
  font-size: 13px;
  color: var(--text-tertiary);
  cursor: pointer;
  font-family: var(--font-system);
  transition:
    background var(--dur-fast) var(--ease-default),
    border-color var(--dur-fast) var(--ease-default);
}

.topbar-search-btn:hover {
  border-color: var(--separator);
  background: var(--fill-tertiary);
}

.topbar-search-btn kbd {
  font-size: 11px;
  padding: 1px 5px;
  border-radius: var(--radius-xs);
  background: var(--bg-primary);
  border: 0.5px solid var(--separator);
  font-family: var(--font-system);
  color: var(--text-tertiary);
}

/* ── Workspace Pill (Tahoe 26) ─────────────────────────────── */
.ws-pill-bar {
  position: fixed;
  top: calc(var(--bar-inset) + var(--toolbar-height) + var(--float-gap));
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px var(--space-4);
  pointer-events: none;
  transition: left 0.35s var(--ease-spring);
}

/* pill bar always offset by sidebar on desktop */
.ws-pill-bar { left: var(--sidebar-width); }

.ws-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--material-glass-thick);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: var(--glass-border);
  box-shadow: var(--shadow-float);
  cursor: pointer;
  position: relative;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  transition:
    box-shadow 0.2s var(--ease-spring),
    border-color 0.2s var(--ease-spring),
    transform 0.2s var(--ease-spring);
  user-select: none;
  letter-spacing: -0.01em;
  will-change: transform;
}

.ws-pill:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.ws-pill.open {
  box-shadow: var(--shadow-lg);
  border-color: var(--apple-blue);
  transform: scale(1.02);
}

.ws-pill-icon {
  font-size: 13px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-active);
  color: var(--apple-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ws-pill-label {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-pill-chevron {
  font-size: 10px;
  color: var(--text-tertiary);
  transition: transform var(--dur-fast) var(--ease-spring);
  margin-left: 2px;
}

.ws-pill.open .ws-pill-chevron { transform: rotate(180deg); }

/* Workspace dropdown — Tahoe 26 floating glass panel */
.ws-dropdown {
  pointer-events: auto;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 300px;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border: var(--glass-border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-float);
  padding: 6px;
  /* Use visibility instead of display:none so CSS animations fire on first open
     (display:none→block in same rule causes browsers to skip the keyframe animation) */
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform-origin: top center;
  z-index: 1001;
  will-change: transform, opacity;
}

.ws-pill.open .ws-dropdown {
  pointer-events: auto;
  visibility: visible;
  animation: tahoeWsDropIn var(--dur-dropdown) var(--ease-spring) both;
}

.ws-dropdown.closing {
  pointer-events: none;
  visibility: visible;
  animation: tahoeWsDropOut 0.2s var(--ease-out) forwards !important;
}

@keyframes tahoeWsDropIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes tahoeWsDropOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-4px) scale(0.95);
  }
}

.ws-dd-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-system);
  text-align: left;
  transition: background var(--dur-fast) var(--ease-default);
}

.ws-dd-item:hover {
  background: var(--bg-hover);
}

.ws-dd-item.active {
  background: var(--bg-active);
  color: var(--apple-blue);
  font-weight: 600;
}

.ws-dd-item.locked { opacity: 0.45; }
.ws-dd-item.locked:hover { opacity: 0.65; }

.ws-dd-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.ws-dd-icon.tools    { background: rgba(52, 199, 89, 0.1); color: var(--apple-green); }
.ws-dd-icon.food     { background: rgba(255, 149, 0, 0.1); color: var(--apple-orange); }
.ws-dd-icon.bb       { background: rgba(52, 199, 89, 0.1); color: var(--apple-green); }
.ws-dd-icon.barbiere { background: rgba(175, 82, 222, 0.1); color: var(--apple-purple); }

.ws-dd-info { flex: 1; min-width: 0; }
.ws-dd-name { font-size: 13px; font-weight: 600; }
.ws-dd-sub  { font-size: 11px; color: var(--text-tertiary); margin-top: 1px; }

.ws-dd-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.ws-dd-badge.active-badge {
  background: rgba(52, 199, 89, 0.1);
  color: var(--apple-green);
}

.ws-dd-badge.locked-badge {
  background: var(--fill-quaternary);
  color: var(--text-tertiary);
}

.ws-dd-sep {
  height: 0.5px;
  background: var(--separator);
  margin: var(--space-1) var(--space-2);
}

/* ── Workspace dropdown interior: macOS per-site layout ─── */
.ws-dd-popover-header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px 7px;
  border-bottom: 0.5px solid var(--separator);
  margin-bottom: 4px;
}
.ws-dd-popover-hicon {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(0,113,227,0.1);
  color: var(--apple-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.ws-dd-popover-htitle { font-size: 12px; font-weight: 700; letter-spacing: -0.01em; color: var(--text-primary); }
.ws-dd-popover-hsub   { font-size: 10px; color: var(--text-tertiary); margin-top: 1px; }

.ws-dd-category         { padding: 0; }         /* Tahoe: accordion, no overflow clip here */
.ws-dd-category.locked  { opacity: 1; }         /* Tahoe: locked handled via .coming-soon */

/* Tahoe 26 override: .ws-dd-cat-header is now a button — reset base styles */
.ws-dd-cat-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;           /* Tahoe: larger tap target */
  border-radius: var(--radius-md);
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  font-family: var(--font-system);
  color: var(--text-primary);
  text-align: left;
}
.ws-dd-cat-icon {
  width: 24px; height: 24px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.ws-dd-cat-icon.food     { background: rgba(255,149,0,0.14); }
.ws-dd-cat-icon.bb       { background: rgba(52,199,89,0.14); }
.ws-dd-cat-icon.barbiere { background: rgba(175,82,222,0.14); }

.ws-dd-cat-info  { flex: 1; min-width: 0; }
.ws-dd-cat-name  { font-size: 10px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }
.ws-dd-cat-count { font-size: 10px; color: var(--text-tertiary); }
.ws-dd-lock-badge {
  font-size: 9px; color: var(--text-quaternary);
  padding: 1px 5px; border-radius: 5px;
  background: var(--fill-quaternary);
}
.ws-dd-site-row {
  width: 100%;
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px 5px 22px;
  border-radius: var(--radius-md);
  background: none; border: none; cursor: pointer;
  text-align: left; font-family: var(--font-system);
  color: var(--text-primary);
  transition: background var(--dur-fast) var(--ease-default);
}
.ws-dd-site-row:hover  { background: var(--bg-hover); }
.ws-dd-site-row.active { background: var(--bg-active); }

.ws-dd-site-dot          { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.ws-dd-site-dot.online   { background: var(--apple-green); }
.ws-dd-site-dot.warning  { background: #ff9f0a; }

.ws-dd-site-info { flex: 1; min-width: 0; }
.ws-dd-site-name { font-size: 12px; font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-dd-site-url  { font-size: 10px; color: var(--text-tertiary); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ws-dd-cat-desc {
  font-size: 11px; color: var(--text-tertiary);
  padding: 1px 8px 3px 22px; line-height: 1.4;
}
.ws-dd-upgrade-row {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 8px 6px 22px;
  font-size: 11px; font-weight: 600; color: var(--apple-blue);
  background: none; border: none; cursor: pointer;
  font-family: var(--font-system); text-align: left;
}
.ws-dd-upgrade-row:hover { opacity: 0.75; }

/* Mobile: pill bar centrata, dropdown max-width ridotto */
@media (max-width: 480px) {
  .ws-dropdown { min-width: 260px; max-width: calc(100vw - 32px); }
}

/* ── Back-to-hub button nel workspace sidebar ─────────────── */
.ws-back-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  margin: 0 8px 10px;
  border-radius: var(--radius-md);
  background: var(--fill-quaternary);
  border: 0.5px solid var(--separator);
  color: var(--text-secondary);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  width: calc(100% - 16px);
  font-family: var(--font-system);
  transition: all var(--dur-fast) var(--ease-default);
  letter-spacing: -0.01em;
}
.ws-back-btn:hover {
  background: rgba(0,113,227,0.08);
  color: var(--apple-blue);
  border-color: rgba(0,113,227,0.25);
}

/* ── Bottom Nav — REMOVED (navigation via sidebar + pill) ── */
.bottom-nav { display: none !important; }

/* ── Content Area (Tahoe 26 — offset for floating topbar + pill) ── */
.workspace-content {
  flex: 1;
  padding: var(--space-5);
  padding-top: calc(var(--toolbar-height) + var(--bar-inset) * 2 + 56px + var(--space-3));
  padding-bottom: var(--space-5);
  max-width: var(--content-max-width);
  width: 100%;
  margin: 0 auto;
}

/* Page header */
.page-header { margin-bottom: var(--space-5); }

.page-header-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.page-header-sub {
  font-size: 15px;
  color: var(--text-secondary);
}

/* ── Cards (Tahoe 26 — glass material) ────────────────────── */
.glass-card {
  background: var(--material-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: var(--glass-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-3);
  transition:
    box-shadow 0.25s var(--ease-spring),
    transform 0.25s var(--ease-spring);
  will-change: transform;
}

.glass-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.card-header-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.card-header-icon.green  { background: rgba(52, 199, 89, 0.1); color: var(--apple-green); }
.card-header-icon.purple { background: rgba(0, 122, 255, 0.1); color: var(--apple-blue); }
.card-header-icon.yellow { background: rgba(255, 149, 0, 0.1); color: var(--apple-orange); }

/* Info grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.info-item {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 0.5px solid var(--separator);
  transition: border-color var(--dur-fast) var(--ease-default);
}

.info-item:hover { border-color: var(--separator-opaque); }

.info-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-tertiary);
  margin-bottom: 3px;
}

.info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Badges */
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-green  { background: rgba(52, 199, 89, 0.12); color: var(--apple-green); }
.badge-yellow { background: rgba(255, 149, 0, 0.12); color: var(--apple-orange); }
.badge-red    { background: rgba(255, 59, 48, 0.12); color: var(--apple-red); }

/* Quick links */
.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.quick-link {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition:
    background var(--dur-fast) var(--ease-default),
    transform 0.1s var(--ease-spring),
    border-color var(--dur-fast) var(--ease-default);
  border: 0.5px solid transparent;
  text-decoration: none;
}

.quick-link:active { transform: scale(0.97); }

.quick-link.primary {
  background: var(--apple-blue);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
}

.quick-link.primary:hover { background: #0066D6; }

.quick-link.secondary {
  background: var(--bg-primary);
  border-color: var(--separator);
  color: var(--text-primary);
}

.quick-link.secondary:hover {
  border-color: var(--apple-blue);
  background: var(--bg-active);
}

/* Renew banner */
.renew-banner {
  background: rgba(255, 149, 0, 0.06);
  border: 0.5px solid rgba(255, 149, 0, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.renew-icon { font-size: 22px; flex-shrink: 0; }
.renew-text { flex: 1; font-size: 13px; color: var(--apple-orange); line-height: 1.5; }

.renew-btn {
  padding: 7px 14px;
  border-radius: var(--radius-md);
  background: var(--apple-orange);
  color: white;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: var(--font-system);
  transition:
    background var(--dur-fast) var(--ease-default),
    transform 0.1s var(--ease-spring);
}

.renew-btn:hover { background: #E68800; }
.renew-btn:active { transform: scale(0.97); }

/* Buttons */
.btn-primary {
  padding: 9px 16px;
  border-radius: var(--radius-md);
  background: var(--apple-blue);
  color: white;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: none;
  cursor: pointer;
  font-family: var(--font-system);
  transition:
    background var(--dur-fast) var(--ease-default),
    transform 0.1s var(--ease-spring);
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.2);
}

.btn-primary:hover { background: #0066D6; }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

/* ── KPI Cards (Tahoe 26 — glass) ───────────────── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.kpi-card {
  background: var(--material-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: var(--glass-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.25s var(--ease-spring),
    transform 0.25s var(--ease-spring);
  will-change: transform;
}

.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.kpi-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.kpi-card.kpi-green::after  { background: var(--apple-green); }
.kpi-card.kpi-blue::after   { background: var(--apple-blue); }
.kpi-card.kpi-purple::after { background: var(--apple-purple); }
.kpi-card.kpi-orange::after { background: var(--apple-orange); }

.kpi-icon { font-size: 18px; opacity: 0.6; margin-bottom: 2px; }

.kpi-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.kpi-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

/* ── Hub / Panoramica ─────────────────────────────────────── */
.hub-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-1);
  letter-spacing: -0.02em;
}

.hub-sub {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: var(--space-4);
}

.site-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.site-card {
  background: var(--material-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: var(--glass-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.3s var(--ease-spring),
    transform 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.site-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--apple-blue);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-default);
}

.site-card:hover {
  box-shadow: var(--shadow-float);
  transform: translateY(-3px);
}

.site-card:hover::before { opacity: 1; }
.site-card:active { transform: scale(0.98); }

/* Hub site cards */
.hub-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.hub-site-card {
  background: var(--material-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: var(--glass-border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.3s var(--ease-spring),
    transform 0.3s var(--ease-spring);
  will-change: transform;
}

.hub-site-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.hub-site-actions { display: flex; gap: var(--space-2); margin-top: var(--space-3); }

.hub-site-actions a {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 8px var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition:
    background var(--dur-fast) var(--ease-default),
    transform 0.1s var(--ease-spring);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hub-site-actions .act-primary {
  background: var(--apple-blue);
  color: white;
  box-shadow: 0 2px 6px rgba(0, 122, 255, 0.2);
}

.hub-site-actions .act-primary:hover { background: #0066D6; }

.hub-site-actions .act-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 0.5px solid var(--separator);
}

.hub-site-actions .act-secondary:hover {
  border-color: var(--apple-blue);
  color: var(--apple-blue);
  background: var(--bg-active);
}

/* Notification banners */
.hub-notif-banner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: 13px;
  margin-bottom: var(--space-3);
  border: 0.5px solid;
}

.hub-notif-banner.warn {
  background: rgba(255, 149, 0, 0.06);
  border-color: rgba(255, 149, 0, 0.2);
  color: var(--apple-orange);
}

.hub-notif-banner.danger {
  background: rgba(255, 59, 48, 0.06);
  border-color: rgba(255, 59, 48, 0.2);
  color: var(--apple-red);
}

.hub-notif-banner.info {
  background: rgba(0, 122, 255, 0.06);
  border-color: rgba(0, 122, 255, 0.15);
  color: var(--apple-blue);
}

/* Tier chips */
.tier-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tier-chip.t0 { background: var(--fill-quaternary); color: var(--text-tertiary); }
.tier-chip.t1 { background: var(--fill-quaternary); color: var(--text-secondary); }
.tier-chip.t2 { background: rgba(0, 122, 255, 0.1); color: var(--apple-blue); }
.tier-chip.t3 { background: rgba(175, 82, 222, 0.1); color: var(--apple-purple); }
.tier-chip.hub { background: rgba(48, 209, 88, 0.1); color: #30d158; }

/* ── Tickets ──────────────────────────────────────────────── */
.ticket-card {
  background: var(--bg-secondary);
  border: 0.5px solid var(--separator);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  transition: border-color var(--dur-fast) var(--ease-default);
}

.ticket-card:hover { border-color: var(--separator-opaque); }

.ticket-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
  gap: var(--space-2);
}

.ticket-subject {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}

/* Chat bubbles — iMessage style */
.chat-bubble {
  margin-bottom: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border-radius: 18px;
  font-size: 14px;
  max-width: 85%;
  line-height: 1.45;
  animation: tahoeSlideUp 0.25s var(--ease-spring) both;
}

.chat-bubble.mine {
  background: var(--apple-blue);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-bubble.admin {
  background: var(--fill-quaternary);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-sender {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 3px;
}

.chat-time {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 3px;
  text-align: right;
}

.ticket-waiting {
  font-size: 12px;
  color: var(--apple-blue);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0 2px;
  font-weight: 600;
  animation: pulse-dot 2s infinite;
}

.ticket-resolved-banner {
  background: rgba(52, 199, 89, 0.07);
  border: 0.5px solid rgba(52, 199, 89, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: 13px;
  color: var(--apple-green);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.ticket-reply-bar {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-2);
}

.ticket-reply-bar input {
  flex: 1;
  padding: 8px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--separator-opaque);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-system);
  outline: none;
  transition:
    border-color var(--dur-fast) var(--ease-default),
    box-shadow var(--dur-fast) var(--ease-default);
}

.ticket-reply-bar input:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--apple-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-default),
    transform 0.1s var(--ease-spring);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 122, 255, 0.25);
}

.send-btn:hover { background: #0066D6; }
.send-btn:active { transform: scale(0.9); }

.new-ticket-form {
  border-top: 0.5px solid var(--separator);
  padding-top: var(--space-3);
  margin-top: var(--space-2);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: var(--space-2);
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
  padding: var(--space-2) var(--space-3);
  background: var(--bg-primary);
  border: 1px solid var(--separator-opaque);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-system);
  outline: none;
  line-height: 1.5;
  transition:
    border-color var(--dur-fast) var(--ease-default),
    box-shadow var(--dur-fast) var(--ease-default);
}

textarea.form-input:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

select.form-input {
  appearance: none;
  padding: 9px 32px 9px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--separator-opaque);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-system);
  outline: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z' fill='%238E8E93'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  transition:
    border-color var(--dur-fast) var(--ease-default),
    box-shadow var(--dur-fast) var(--ease-default);
}

select.form-input:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.char-counter {
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: right;
  margin-top: 2px;
  transition: color var(--dur-fast);
}

.char-counter.warn { color: var(--apple-orange); }
.char-counter.limit { color: var(--apple-red); font-weight: 700; }

/* ── Documents ────────────────────────────────────────────── */
.doc-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 0.5px solid var(--separator);
  transition:
    border-color var(--dur-fast) var(--ease-default),
    background var(--dur-fast) var(--ease-default);
}

.doc-item:hover { border-color: var(--separator-opaque); }

.doc-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 149, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.doc-meta { flex: 1; }
.doc-name { font-weight: 600; font-size: 14px; }
.doc-type { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }

.doc-dl {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--separator);
  font-size: 12px;
  font-weight: 600;
  color: var(--apple-blue);
  background: none;
  cursor: pointer;
  font-family: var(--font-system);
  transition:
    background var(--dur-fast) var(--ease-default),
    border-color var(--dur-fast) var(--ease-default);
}

.doc-dl:hover {
  background: var(--bg-active);
  border-color: var(--apple-blue);
}

/* ── Toast (Tahoe 26 — glass pill + spring) ──────────── */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px) scale(0.95);
  z-index: 9999;
  background: var(--material-glass-ultra);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: var(--glass-border);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  transition:
    transform var(--dur-spring) var(--ease-spring),
    opacity 0.2s var(--ease-default);
  pointer-events: none;
  box-shadow: var(--shadow-float);
  white-space: nowrap;
  will-change: transform, opacity;
}

.toast.show {
  transform: translateX(-50%) translateY(0) scale(1);
  opacity: 1;
}

.toast.success i { color: var(--apple-green); }
.toast.error i   { color: var(--apple-red); }
.toast.info i    { color: var(--apple-blue); }
.toast.warning i { color: var(--apple-orange); }

/* ── Skeleton Loaders ─────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--fill-quaternary) 50%, var(--bg-secondary) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
}

.sk-title  { height: 22px; width: 50%; margin-bottom: 12px; }
.sk-text   { height: 14px; width: 90%; margin-bottom: 8px; }
.sk-text.short { width: 60%; }
.sk-block  { height: 68px; width: 100%; margin-bottom: 10px; border-radius: var(--radius-lg); }
.sk-card   {
  padding: var(--space-4);
  background: var(--bg-secondary);
  border: 0.5px solid var(--separator);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
}

.loading-screen {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
  color: var(--text-tertiary);
  font-size: 14px;
}

/* ── Inventory Module ─────────────────────────────────────── */
.inv-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  padding: 2px;
  background: var(--fill-quaternary);
  border-radius: var(--radius-md);
}

.inv-tab {
  padding: 7px var(--space-4);
  border-radius: calc(var(--radius-md) - 2px);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  white-space: nowrap;
  font-family: var(--font-system);
  transition:
    color var(--dur-fast) var(--ease-default),
    background var(--dur-fast) var(--ease-default),
    box-shadow var(--dur-fast) var(--ease-default);
}

.inv-tab.active {
  color: var(--text-primary);
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
}

.inv-tab:hover:not(.active) {
  color: var(--text-primary);
}

.inv-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.inv-kpi {
  padding: var(--space-3);
  background: var(--bg-primary);
  border: 0.5px solid var(--separator);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.inv-kpi-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.inv-kpi-label {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

.inv-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.inv-tag.ok  { background: rgba(52, 199, 89, 0.12); color: var(--apple-green); }
.inv-tag.low { background: rgba(255, 149, 0, 0.12); color: var(--apple-orange); }
.inv-tag.out { background: rgba(255, 59, 48, 0.12); color: var(--apple-red); }

.inv-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-primary);
  border: 0.5px solid var(--separator);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-fast) var(--ease-default);
  margin-bottom: var(--space-1);
}

.inv-row:hover { border-color: var(--separator-opaque); }

.inv-name {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inv-barcode {
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}

.inv-stock {
  font-size: 18px;
  font-weight: 700;
  min-width: 40px;
  text-align: right;
  letter-spacing: -0.02em;
}

.inv-actions {
  display: flex;
  gap: 3px;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-default);
}

.inv-row:hover .inv-actions { opacity: 1; }
@media (hover: none) { .inv-actions { opacity: 1; } }

.inv-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--separator);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 12px;
  transition:
    background var(--dur-fast) var(--ease-default),
    color var(--dur-fast) var(--ease-default),
    border-color var(--dur-fast) var(--ease-default);
}

.inv-icon-btn:hover {
  background: var(--apple-blue);
  color: white;
  border-color: var(--apple-blue);
}

.inv-icon-btn.danger:hover {
  background: var(--apple-red);
  border-color: var(--apple-red);
}

.inv-scan-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--apple-blue);
  color: white;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 122, 255, 0.35);
  transition:
    transform var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-fast) var(--ease-default);
  display: flex;
  align-items: center;
  justify-content: center;
}

.inv-scan-fab:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 26px rgba(0, 122, 255, 0.45);
}

.inv-scan-fab:active { transform: scale(0.95); }

.inv-scanner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.inv-scanner-box {
  position: relative;
  width: min(340px, 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1.5px rgba(0, 122, 255, 0.4);
}

.inv-scanner-box video {
  width: 100%;
  display: block;
  max-height: 270px;
  object-fit: cover;
}

.inv-scanner-line {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, var(--apple-blue) 40%, var(--apple-teal) 60%, transparent 100%);
  box-shadow: 0 0 8px rgba(0, 122, 255, 0.7);
  animation: invScanLine 2.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes invScanLine { 0%, 100% { top: 18%; } 50% { top: 80%; } }

.inv-scanner-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: var(--apple-blue);
  border-style: solid;
  pointer-events: none;
}

.inv-scanner-corner.tl { top: 10px; left: 10px; border-width: 2.5px 0 0 2.5px; border-radius: 5px 0 0 0; }
.inv-scanner-corner.tr { top: 10px; right: 10px; border-width: 2.5px 2.5px 0 0; border-radius: 0 5px 0 0; }
.inv-scanner-corner.bl { bottom: 10px; left: 10px; border-width: 0 0 2.5px 2.5px; border-radius: 0 0 0 5px; }
.inv-scanner-corner.br { bottom: 10px; right: 10px; border-width: 0 2.5px 2.5px 0; border-radius: 0 0 5px 0; }

.inv-scanner-result {
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  width: min(340px, 100%);
}

.mov-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  text-transform: capitalize;
}

.mov-badge.carico   { background: rgba(52, 199, 89, 0.12); color: var(--apple-green); }
.mov-badge.scarico  { background: rgba(255, 59, 48, 0.12); color: var(--apple-red); }
.mov-badge.rettifica{ background: rgba(0, 122, 255, 0.1); color: var(--apple-blue); }

/* ── Empty States ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--text-tertiary);
}

.empty-state-icon {
  font-size: 40px;
  margin-bottom: var(--space-3);
  opacity: 0.3;
}

.empty-state-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.empty-state-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 300px;
  margin: 0 auto;
}

.empty-state .btn-primary {
  margin-top: var(--space-4);
}

/* ── Onboarding Tour ──────────────────────────────────────── */
.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: tahoeFadeIn var(--dur-normal) var(--ease-default);
}

.tour-card {
  background: var(--material-glass-ultra);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-float);
  max-width: 400px;
  width: 100%;
  padding: var(--space-8) var(--space-6);
  position: relative;
  text-align: center;
  animation: tahoeScaleIn 0.4s var(--ease-spring) both;
  border: var(--glass-border);
}

.tour-card-emoji { font-size: 44px; margin-bottom: var(--space-3); }

.tour-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.tour-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-5);
}

.tour-progress {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: var(--space-5);
}

.tour-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fill-tertiary);
  transition: all 0.2s var(--ease-spring);
}

.tour-dot.active {
  background: var(--apple-blue);
  width: 20px;
  border-radius: 3px;
}

.tour-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

.tour-btn-primary {
  flex: 1;
  min-width: 130px;
}

.tour-btn-skip {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 13px;
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-system);
  transition: color var(--dur-fast) var(--ease-default);
}

.tour-btn-skip:hover { color: var(--text-secondary); }

/* ── Locked Workspace ─────────────────────────────────────── */
.ws-locked-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: var(--space-8) var(--space-5);
  animation: tahoeSlideUp 0.4s var(--ease-spring) both;
}

.ws-locked-preview {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-bottom: var(--space-7);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.5px solid var(--separator);
  box-shadow: var(--shadow-md);
}

.ws-locked-preview-inner {
  padding: 20px;
  opacity: 0.25;
  filter: blur(3px);
  pointer-events: none;
}

.ws-locked-preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 10%, var(--bg-grouped) 65%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--space-6) var(--space-7);
}

.ws-locked-icon { font-size: 48px; margin-bottom: var(--space-3); }

.ws-locked-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.ws-locked-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-5);
  max-width: 360px;
}

.ws-locked-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  text-align: left;
}

.ws-locked-feat {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--text-secondary);
}

.ws-locked-feat i, .ws-locked-feat .ph {
  color: var(--apple-blue);
  font-size: 12px;
  width: 18px;
  text-align: center;
}

.ws-locked-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

.ws-locked-actions .btn-ghost {
  font-size: 13px;
  padding: 8px 16px;
  color: var(--text-tertiary);
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  background: none;
  cursor: pointer;
  font-family: var(--font-system);
  transition:
    border-color var(--dur-fast) var(--ease-default),
    color var(--dur-fast) var(--ease-default);
}

.ws-locked-actions .btn-ghost:hover {
  border-color: var(--apple-blue);
  color: var(--apple-blue);
}

/* ── Sidebar overlay ──────────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sidebar-overlay.active { display: block; }

/* ── Responsive (Tahoe 26 — floating layout adjustments) ── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  }
  .sidebar.open { transform: translateX(0); }
  .workspace-main { margin-left: 0; }

  /* Floating topbar — full width on mobile with float-gap insets */
  .workspace-topbar {
    left: var(--float-gap) !important;
    right: var(--float-gap) !important;
    top: var(--float-gap) !important;
  }

  .ws-pill-bar {
    left: 0 !important;
    top: calc(var(--float-gap) + var(--toolbar-height) + var(--float-gap)) !important;
  }

  .topbar-hamburger { display: flex; }

  .workspace-content {
    padding: var(--space-4);
    padding-top: calc(var(--toolbar-height) + var(--float-gap) * 2 + 56px + var(--space-2));
    padding-bottom: var(--space-4);
  }

  .ws-pill { font-size: 12px; padding: 5px 12px 5px 8px; }
  .ws-dropdown { min-width: 220px; max-width: calc(100vw - 32px); }
  .info-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: 1fr; }
  .renew-banner { flex-direction: column; text-align: center; }
  .renew-btn { width: 100%; }
  .login-card { padding: 36px 20px 28px; }
  .site-cards { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 600px) {
  .topbar-search-text { display: inline !important; }
}

/* ============================================================
   macOS Tahoe 26 Design System — v2  (June 2025)
   Floating glass refinements layer
   ============================================================ */

/* ── Sidebar: Tahoe 26 glass ───────────────────────────────── */
.sidebar {
  background: var(--material-glass-thick);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
}

[data-theme="dark"] .sidebar {
  background: var(--material-glass-thick);
}

/* ── Sidebar Brand: icona gradient vivida ───────────────────── */
.sidebar-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(145deg, #0077ED 0%, #005BB5 100%);
  box-shadow: 0 2px 10px rgba(0, 113, 227, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ── Nav items: macOS Sonoma sidebar feel ───────────────────── */
.nav-item {
  border-radius: 7px;
  height: 32px;
  padding: 0 var(--space-3);
  transition: background 0.1s ease, color 0.1s ease, transform 0.1s var(--ease-spring);
  font-size: 13px;
  letter-spacing: -0.01em;
}

.nav-item:hover {
  background: var(--fill-quaternary);
}

.nav-item.active {
  background: rgba(0, 122, 255, 0.13);
  color: var(--apple-blue);
  font-weight: 500;
  box-shadow: inset 0 0 0 0.5px rgba(0, 122, 255, 0.2);
}

.nav-item:active:not(.active) {
  transform: scale(0.97);
  background: var(--fill-tertiary);
}

.nav-item i, .nav-item .ph {
  opacity: 0.6;
}

.nav-item.active i,
.nav-item.active .ph {
  opacity: 1;
  color: var(--apple-blue);
}

/* Sezione dell'area workspace (etichetta colorata) */
.ws-back-btn:hover {
  background: rgba(0, 113, 227, 0.1);
  color: var(--apple-blue);
  border-color: rgba(0, 113, 227, 0.25);
  transform: translateX(1px);
}

/* ── Topbar: Tahoe 26 floating toolbar ──────────────────────── */
.workspace-topbar {
  background: var(--material-glass-thick);
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  border: var(--glass-border);
  border-bottom: none;
  box-shadow: var(--shadow-float);
}

/* ── Pill: Tahoe 26 glass capsule ───────────────────────────── */
.ws-pill {
  padding: 5px 12px 5px 8px;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  background: var(--material-glass-thick);
  border: var(--glass-border);
  box-shadow: var(--shadow-float);
  transition: box-shadow 0.2s var(--ease-spring), transform 0.2s var(--ease-spring);
}

.ws-pill:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.ws-pill.open {
  box-shadow: var(--shadow-lg);
  border-color: var(--apple-blue);
  transform: scale(1.02);
}

.ws-pill-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 12px;
}

/* ── Cards: Tahoe 26 glass elevated surfaces ────────────────── */
.glass-card {
  border: none;
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  background: var(--material-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-sm), 0 0 0 0.5px rgba(0,0,0,0.05);
  transition: box-shadow 0.25s var(--ease-spring), transform 0.25s var(--ease-spring);
}

.glass-card:hover {
  box-shadow: var(--shadow-md), 0 0 0 0.5px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}

[data-theme="dark"] .glass-card {
  box-shadow: 0 1px 5px rgba(0,0,0,0.35), 0 0 0 0.5px rgba(255,255,255,0.06);
}
[data-theme="dark"] .glass-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.5), 0 0 0 0.5px rgba(255,255,255,0.08);
}

/* Info items: same shadow treatment */
.info-item {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.07);
  background: var(--bg-secondary);
  transition: box-shadow 0.15s ease, background 0.1s ease;
}

.info-item:hover {
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.12);
  background: var(--bg-primary);
}

/* ── Page header ────────────────────────────────────────────── */
.page-header-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* ── Section entry animation (Tahoe 26) ─────────────────────── */
@keyframes sectionEnter {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.portal-section-enter {
  animation: sectionEnter 0.35s var(--ease-spring) both;
}

/* ── Buttons: press haptic feel ─────────────────────────────── */
.btn-primary {
  transition: background 0.12s ease, transform 0.1s var(--ease-spring), box-shadow 0.12s ease;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.btn-primary:active { transform: scale(0.965); }

.btn-secondary {
  font-size: 14px;
  letter-spacing: -0.01em;
  transition: background 0.12s ease, transform 0.1s var(--ease-spring), border-color 0.12s ease;
}

.btn-secondary:active { transform: scale(0.965); }

/* ── Toast: Tahoe 26 glass notification ─────────────────────── */
.toast {
  border-radius: var(--radius-pill);
  padding: 11px 18px 11px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-float);
  gap: var(--space-2);
  background: var(--material-glass-ultra);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: var(--glass-border);
}

.toast .ph {
  font-size: 16px;
}

/* ── Workspace dropdown: refined item rows ──────────────────── */
.ws-dd-popover-header {
  border-bottom: 0.5px solid var(--separator);
  margin: 0 -2px 2px;
  padding: 9px 10px 8px;
  border-radius: 0 0 0 0;
}

.ws-dd-site-row {
  border-radius: 8px;
  transition: background 0.1s ease, transform 0.1s var(--ease-spring);
}

.ws-dd-site-row:active { transform: scale(0.97); }

.ws-dd-upgrade-row { border-radius: 8px; padding: 4px 10px 6px 24px; }
.ws-dd-upgrade-row:hover { background: var(--bg-active); }

/* ── Hub card: Tahoe 26 glass ───────────────────────────────── */
.hub-card {
  border-radius: var(--radius-xl);
  border: var(--glass-border-subtle);
  background: var(--material-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-sm);
}

/* ── Sidebar overlay backdrop blur ─────────────────────────── */
.sidebar-overlay {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── Sidebar section labels ─────────────────────────────────── */
.nav-section-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-quaternary);
  text-transform: uppercase;
  padding: var(--space-3) var(--space-2) var(--space-1);
}

/* ── Quick links - more Apple grid ─────────────────────────── */
.quick-link {
  border-radius: var(--radius-lg);
  padding: 14px var(--space-4);
  transition: opacity 0.12s ease, transform 0.12s var(--ease-spring);
}

.quick-link:active { transform: scale(0.96) !important; }

/* ── Login card: Tahoe 26 glass window ─────────────────────── */
.login-card {
  box-shadow: var(--shadow-float);
}

/* ── Sidebar footer ─────────────────────────────────────────── */
.sidebar-avatar {
  background: linear-gradient(135deg, var(--fill-secondary), var(--fill-tertiary));
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ── Workspace header label ─────────────────────────────────── */
.ws-header {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-quaternary);
  padding: var(--space-3) var(--space-2) var(--space-1);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── Workspace switcher refinement ──────────────────────────── */
.ws-switcher {
  border-radius: 9px;
  background: var(--fill-quaternary);
  border: 0.5px solid var(--separator);
}

.ws-switcher:hover {
  background: var(--fill-tertiary);
}

/* ── Scrollbar: ultra thin like macOS ───────────────────────── */
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb {
  background: var(--fill-tertiary);
  border-radius: 2px;
}

/* ── Fix inline styles for form elements ───────────────────── */
.form-input {
  font-size: 14px;
  background: var(--bg-primary);
  border: 1px solid var(--separator-opaque);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  color: var(--text-primary);
  font-family: var(--font-system);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.16);
}

/* ── Dark mode: Tahoe 26 glass separation ───────────────────── */
[data-theme="dark"] .workspace-topbar {
  background: var(--material-glass-thick);
  box-shadow: var(--shadow-float);
  border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .ws-pill {
  background: rgba(58, 58, 60, 0.85);
  border-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .sidebar {
  border-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .toast {
  background: var(--material-glass-ultra);
  border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .ws-dropdown {
  background: rgba(30, 30, 35, 0.97);
  border-color: rgba(255,255,255,0.1);
}

/* ── Pill bar: reduce pill bar height slightly ──────────────── */
.ws-pill-bar {
  padding: 5px var(--space-4);
}

