/* ── widget-pane (the binder: tabs to the right, sheet to the left) ──────── */

.widget-pane {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.widget-pane > .-body {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-top:    1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  border-left:   1px solid var(--border-soft);
  border-top-left-radius:    var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
  margin: 12px 0 12px 12px;
  box-shadow: var(--shadow-1);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* ── Widget panels ────────────────────────────────────────────────────────── */

.widget-pane > .-body > .-panel {
  flex: 1;
  display: none;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.widget-pane > .-body > .-panel.-active {
  display: flex;
}

/* ── Widget empty state (shared across widget panels) ─────────────────────── */

.widget-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px;
  text-align: center;
  flex: 1;
  justify-content: center;
}

.widget-empty-state > .-icon {
  color: var(--slate-300);
  margin-bottom: 6px;
}

.widget-empty-state > .-label {
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--slate-700);
  margin: 0;
}

.widget-empty-state > .-sub {
  font-family: var(--font-sans);
  font-size: var(--fs-13);
  color: var(--fg-3);
  margin: 0;
}

/* ── Binder tabs (right edge of the pane) ────────────────────────────────── */

.widget-pane > .-tabs {
  width: 46px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 12px;
  gap: 4px;
}

.widget-pane > .-tabs > .-tab {
  width: 42px;
  padding: 12px 6px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--paper-2);
  color: var(--slate-400);
  opacity: 0.55;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 240ms var(--ease-out),
              color 240ms var(--ease-out),
              opacity 240ms var(--ease-out);
  position: relative;
  z-index: 1;
}

.widget-pane > .-tabs > .-tab > .-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-3px);
  transition: max-height 280ms var(--ease-out),
              opacity 260ms var(--ease-out),
              transform 260ms var(--ease-out);
}

.widget-pane > .-tabs > .-tab:hover > .-label,
.widget-pane > .-tabs > .-tab.-active > .-label {
  max-height: 14px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 6px;
}

.widget-pane > .-tabs > .-tab:hover:not(.-active) {
  background: var(--slate-50);
  color: var(--slate-600);
  opacity: 0.8;
}

.widget-pane > .-tabs > .-tab.-active {
  width: 43px;
  padding: 14px 6px 12px;
  margin-left: -1px;
  border-color: var(--border-soft);
  border-left-color: #fff;
  background: #fff;
  color: var(--slate-700);
  opacity: 1;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
  z-index: 2;
}
