:root {
  --bg: #f3eee5;
  --card: rgba(255, 251, 245, 0.92);
  --line: rgba(58, 45, 30, 0.12);
  --text: #241b13;
  --muted: #6f6255;
  --accent: #8a4c12;
  --accent-strong: #62330d;
  --danger: #962f34;
  --ok: #2b6a42;
  --shadow: 0 22px 50px rgba(79, 45, 16, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(228, 190, 140, 0.55), transparent 30%),
    linear-gradient(180deg, #f8f3ea 0%, #efe3cf 100%);
}
h1, h2, h3 { margin: 0; font-family: Georgia, serif; }
button, input, select, textarea { font: inherit; }
input, select, textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.86);
}
button {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  color: #fff8f1;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  cursor: pointer;
  font-weight: 700;
}
.ghost { background: transparent; color: var(--accent-strong); border: 1px solid var(--line); }
.danger { background: linear-gradient(135deg, #a3353b, #7f1f27); }
.page { display: grid; grid-template-columns: 330px 1fr; min-height: 100vh; }
.sidebar {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(255,248,236,0.9), rgba(247,235,213,0.85));
  border-right: 1px solid rgba(58,45,30,0.08);
}
.content { padding: 1.5rem; display: grid; gap: 1rem; }
.card, .hero {
  background: var(--card);
  border: 1px solid rgba(58,45,30,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem;
}
.hero { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.hero-actions { display: flex; align-items: center; gap: 0.75rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem; color: var(--accent); margin-bottom: 0.35rem; font-weight: 700; }
.muted, .hint, .label { color: var(--muted); }
.stack { display: grid; gap: 0.75rem; }
.grid.two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1rem; }
.grid.three { display: grid; grid-template-columns: 1.2fr 0.9fr 0.9fr; gap: 1rem; }
.section-head, .session-box { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.quick-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 0.9rem; }
.list, .metrics { display: grid; gap: 0.7rem; }
.list-item, .metric, .customer-summary {
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
}
.list-item button { margin-top: 0.65rem; }
.customer-summary { display: grid; gap: 0.55rem; }
.metrics { grid-template-columns: repeat(2, 1fr); }
.metric strong { display: block; font-size: 1.35rem; margin-top: 0.25rem; }
.pill, .status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(138,76,18,0.1);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
}
.status.active { background: rgba(43,106,66,0.12); color: var(--ok); }
.status.blocked, .status.inactive { background: rgba(150,47,52,0.12); color: var(--danger); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { text-align: left; padding: 0.75rem 0.65rem; border-bottom: 1px solid rgba(58,45,30,0.08); vertical-align: top; }
th { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }
.empty {
  padding: 1rem;
  border-radius: 18px;
  border: 1px dashed rgba(58,45,30,0.2);
  color: var(--muted);
  background: rgba(255,255,255,0.45);
}
.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  max-width: 360px;
  padding: 1rem;
  color: #fff8f1;
  background: rgba(29, 21, 14, 0.94);
  border-radius: 18px;
}
.hidden { display: none; }
@media (max-width: 1180px) {
  .page { grid-template-columns: 1fr; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: flex-start; }
}
