:root {
  --bg: #071a2d;
  --bg-alt: #0d2342;
  --panel: rgba(15, 35, 58, 0.9);
  --panel-soft: rgba(22, 46, 73, 0.75);
  --primary: #7ec8ff;
  --primary-strong: #4ca6ff;
  --accent: #b5f1ff;
  --surface: #edf9ff;
  --text: #eaf5ff;
  --muted: #b7cae1;
  --success: #8fe3c8;
  --warning: #ffd98c;
  --danger: #ff8aa3;
  --shadow: 0 18px 36px rgba(4, 12, 24, 0.26);
  --radius: 22px;
  --card-radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #ffffff;
  color: #172b3a;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button, input, select {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  background: rgba(6, 18, 35, 0.76);
  border-bottom: 1px solid rgba(154, 193, 232, 0.12);
  color: var(--text);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(126, 200, 255, 0.45));
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 0.82rem 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #8dcaff);
  color: #062338;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: rgba(164, 206, 255, 0.12);
  color: var(--text);
  border: 1px solid rgba(164, 206, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(164, 206, 255, 0.18);
}

.hero {
  padding: 90px 0 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(126, 200, 255, 0.1);
  border: 1px solid rgba(126, 200, 255, 0.18);
  color: #17608f;
  font-size: 0.8rem;
  font-weight: 600;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  margin: 18px 0 16px;
  line-height: 1.1;
}

.lead {
  color: #526477;
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.metric {
  padding: 18px 16px;
  border-radius: var(--card-radius);
  background: rgba(12, 29, 48, 0.7);
  border: 1px solid rgba(170, 210, 255, 0.12);
  color: var(--text);
}

.metric strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.metric span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(9, 31, 53, 0.9), rgba(14, 32, 52, 0.8));
  border: 1px solid rgba(170, 210, 255, 0.12);
  border-radius: 26px;
  padding: 22px;
  box-shadow: var(--shadow);
  color: var(--text);
}

.sleep-card {
  background: linear-gradient(180deg, rgba(18, 51, 85, 0.86), rgba(12, 28, 44, 0.94));
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(156, 204, 255, 0.15);
  color: var(--text);
}

.time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.time-pill {
  background: rgba(164, 206, 255, 0.12);
  color: var(--accent);
  border: 1px solid rgba(164, 206, 255, 0.1);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.score-ring {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: conic-gradient(var(--success) 0 92%, rgba(255,255,255,0.05) 92% 100%);
  margin: 20px auto 10px;
}

.score-ring span {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(3, 13, 25, 0.9);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.4rem;
}

.panel-list {
  display: grid;
  gap: 12px;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(164, 206, 255, 0.04);
  border: 1px solid rgba(164, 206, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--muted);
}

.section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-header h2 {
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  margin-bottom: 8px;
}

.section-subtitle {
  color: #526477;
}

.feature-grid,
.summary-grid,
.history-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: rgba(12, 25, 40, 0.7);
  border: 1px solid rgba(170, 210, 255, 0.1);
  border-radius: var(--card-radius);
  padding: 22px;
  box-shadow: var(--shadow);
  color: var(--text);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(126, 200, 255, 0.16), rgba(181, 241, 255, 0.12));
  margin-bottom: 14px;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.app-shell {
  padding: 40px 0 80px;
}

.planner-shell {
  min-height: calc(100vh - 76px);
  background: #ffffff;
  color: #172b3a;
}

.page-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

.sidebar {
  background: rgba(11, 23, 38, 0.8);
  border-radius: 24px;
  padding: 18px;
  border: 1px solid rgba(170, 210, 255, 0.08);
  height: fit-content;
  position: sticky;
  top: 86px;
  color: var(--text);
}

.sidebar-nav {
  display: grid;
  gap: 12px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
}

.sidebar-link.active,
.sidebar-link:hover {
  color: var(--text);
  background: rgba(126, 200, 255, 0.08);
  border-color: rgba(126, 200, 255, 0.12);
}

.content-panel {
  background: rgba(12, 25, 40, 0.7);
  border: 1px solid rgba(170, 210, 255, 0.1);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  color: var(--text);
}

.planner-panel > h1 {
  margin: 20px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.planner-intro,
.planner-section-heading p,
.planner-panel small,
.planner-timeline > p {
  color: var(--muted);
}

.planner-intro {
  line-height: 1.6;
  max-width: 720px;
}

.planner-section {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid rgba(170, 210, 255, 0.14);
}

.planner-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.planner-section-heading h2 {
  margin: 0 0 5px;
  font-size: 1.35rem;
}

.planner-section-heading p {
  margin: 0;
  line-height: 1.5;
}

.section-number {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(126, 200, 255, 0.14);
  color: var(--accent);
  font-weight: 700;
}

.planner-panel .eyebrow {
  color: var(--accent);
}

.planner-panel .form-grid {
  gap: 22px;
}

.planner-panel .form-row {
  align-items: start;
}

.planner-panel .form-group small {
  font-size: 0.82rem;
  line-height: 1.45;
}

.input-suffix {
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-suffix span {
  color: var(--muted);
  white-space: nowrap;
}

.day-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.day-fieldset legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.day-checkboxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.compact-days {
  grid-template-columns: repeat(4, minmax(48px, 1fr));
}

.day-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid rgba(170, 210, 255, 0.14);
  border-radius: 10px;
  background: rgba(7, 21, 35, 0.45);
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
}

.day-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--primary-strong);
}

.day-option:has(input:checked) {
  border-color: rgba(126, 200, 255, 0.65);
  background: rgba(126, 200, 255, 0.1);
}

.planner-actions {
  display: flex;
  justify-content: flex-start;
}

.generate-button {
  min-width: 250px;
}

.planner-commitment-list {
  display: grid;
  gap: 12px;
}

.planner-commitment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(170, 210, 255, 0.13);
  border-radius: 16px;
  background: rgba(7, 21, 35, 0.48);
}

.planner-commitment-details h3 {
  margin: 0;
  font-size: 1rem;
}

.planner-commitment-details p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.commitment-card-title,
.planner-commitment-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.planner-commitment-actions {
  flex-shrink: 0;
}

.planner-commitment-actions .btn {
  padding: 0.62rem 0.9rem;
}

.commitment-editor {
  display: grid;
  gap: 18px;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid rgba(126, 200, 255, 0.24);
  border-radius: 18px;
  background: rgba(7, 21, 35, 0.58);
}

.commitment-editor h3 {
  margin: 0;
}

.add-commitment-button {
  margin-top: 16px;
}

.results-section {
  scroll-margin-top: 90px;
}

.result-box {
  margin-top: 0;
}

.result-box h3 {
  font-size: 1.35rem;
}

.result-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.result-facts > div {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(170, 210, 255, 0.12);
  border-radius: 14px;
  background: rgba(164, 206, 255, 0.05);
}

.result-facts span {
  color: var(--muted);
  font-size: 0.8rem;
}

.result-facts strong {
  overflow-wrap: anywhere;
}

.result-explanation {
  margin-top: 20px;
}

.result-explanation h4,
.planner-timeline h4 {
  margin-bottom: 8px;
}

.result-explanation p {
  color: var(--muted);
  line-height: 1.55;
}

.planner-warning,
.planner-success {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  line-height: 1.5;
}

.planner-warning {
  border: 1px solid rgba(255, 217, 140, 0.34);
  background: rgba(255, 217, 140, 0.08);
  color: #ffe3a9;
}

.planner-warning ul {
  margin: 10px 0;
  padding-left: 22px;
}

.planner-warning p {
  margin: 0;
}

.planner-success {
  border: 1px solid rgba(143, 227, 200, 0.24);
  background: rgba(143, 227, 200, 0.08);
  color: #b8f3dd;
}

.planner-timeline {
  margin-top: 24px;
}

.planner-timeline > p {
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.timeline-axis {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
}

.planner-timeline-track {
  position: relative;
  height: 30px;
  overflow: hidden;
  border: 1px solid rgba(170, 210, 255, 0.18);
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    rgba(164, 206, 255, 0.07) 0,
    rgba(164, 206, 255, 0.07) calc(25% - 1px),
    rgba(170, 210, 255, 0.22) calc(25% - 1px),
    rgba(170, 210, 255, 0.22) 25%
  );
}

.timeline-block {
  position: absolute;
  top: 0;
  height: 100%;
  min-width: 2px;
}

.timeline-sleep {
  background: linear-gradient(90deg, #4d9fff, #91d3ff);
}

.timeline-commitment {
  background: rgba(255, 165, 126, 0.9);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  border-right: 1px solid rgba(255, 255, 255, 0.6);
}

.timeline-legend {
  display: flex;
  gap: 18px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.timeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.timeline-legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
}

.legend-sleep {
  background: #4d9fff;
}

.legend-commitment {
  background: rgba(255, 165, 126, 0.9);
}

.save-schedule-button {
  margin-top: 16px;
}

.planner-panel .alert-error {
  color: #ffc1d0;
}

.planner-panel .alert-success {
  color: #b8f3dd;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

input, select {
  width: 100%;
  border: 1px solid rgba(170, 210, 255, 0.15);
  background: rgba(7, 21, 35, 0.7);
  color: var(--text);
  border-radius: 12px;
  padding: 0.82rem 0.9rem;
  outline: none;
}

input:focus, select:focus {
  border-color: rgba(126, 200, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(126, 200, 255, 0.12);
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.commitment-list,
.history-list,
.summary-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.commitment-item,
.history-item,
.summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(164, 206, 255, 0.04);
  border: 1px solid rgba(164, 206, 255, 0.08);
}

.commitment-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge.high { background: rgba(255, 138, 163, 0.12); color: #ffb8c7; }
.badge.medium { background: rgba(255, 217, 140, 0.12); color: #ffd98c; }
.badge.low { background: rgba(143, 227, 200, 0.12); color: #aaf0d5; }

.result-box {
  background: linear-gradient(180deg, rgba(13, 35, 59, 0.95), rgba(14, 26, 42, 0.92));
  border: 1px solid rgba(126, 200, 255, 0.18);
  border-radius: 24px;
  padding: 22px;
  margin-top: 18px;
}

.result-box h3 {
  margin-bottom: 14px;
}

.result-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
}

.result-line strong {
  color: var(--text);
}

.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
}

.timeline-label {
  color: var(--muted);
  font-weight: 600;
}

.timeline-bar {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: rgba(164, 206, 255, 0.08);
  overflow: hidden;
}

.timeline-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(126, 200, 255, 0.9), rgba(181, 241, 255, 0.72));
}

.timeline-fill.sleep { background: linear-gradient(90deg, rgba(80, 153, 255, 0.86), rgba(144, 210, 255, 0.8)); }
.timeline-fill.commitment { background: linear-gradient(90deg, rgba(255, 143, 163, 0.9), rgba(255, 199, 134, 0.82)); }
.timeline-fill.free { background: linear-gradient(90deg, rgba(143, 227, 200, 0.8), rgba(171, 226, 255, 0.7)); }

.empty-state {
  background: rgba(164, 206, 255, 0.03);
  border: 1px dashed rgba(164, 206, 255, 0.18);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  color: var(--muted);
}

.info-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(143, 227, 200, 0.08);
  border: 1px solid rgba(143, 227, 200, 0.12);
  color: var(--success);
  margin-bottom: 16px;
}

.alert {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  margin-bottom: 16px;
}

.alert-error {
  background: rgba(255, 138, 163, 0.07);
  border-color: rgba(255, 138, 163, 0.2);
  color: #ffc1d0;
}

.alert-success {
  background: rgba(143, 227, 200, 0.07);
  border-color: rgba(143, 227, 200, 0.2);
  color: #b8f3dd;
}

.admin-auth-page,
.admin-dashboard-page {
  min-height: 100vh;
  background: linear-gradient(160deg, #061623 0%, #0d2645 48%, #132f4d 100%);
  color: var(--text);
}

.admin-auth-main {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 16px;
}

.admin-auth-card {
  width: min(100%, 460px);
  padding: clamp(24px, 6vw, 42px);
  border: 1px solid rgba(170, 210, 255, 0.14);
  border-radius: 24px;
  background: rgba(12, 25, 40, 0.88);
  box-shadow: var(--shadow);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.admin-brand small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.admin-auth-eyebrow {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-auth-card h1,
.admin-dashboard-intro h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 5vw, 2.3rem);
}

.admin-auth-description,
.admin-dashboard-intro p,
.admin-dashboard-note {
  color: var(--muted);
  line-height: 1.6;
}

.admin-auth-form {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}

.admin-auth-page label {
  color: var(--text);
}

.admin-auth-page input {
  background: rgba(3, 13, 25, 0.72);
}

.admin-password-field {
  display: flex;
  gap: 8px;
}

.admin-password-field input {
  min-width: 0;
  flex: 1;
}

.admin-password-toggle {
  min-width: 62px;
  padding: 0 12px;
  border: 1px solid rgba(164, 206, 255, 0.2);
  border-radius: 12px;
  background: rgba(164, 206, 255, 0.1);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.admin-login-button {
  width: 100%;
  margin-top: 4px;
}

.admin-back-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--primary);
  font-size: 0.9rem;
}

.admin-auth-error {
  margin-top: 18px;
}

.admin-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(24px, calc((100% - 1160px) / 2));
  border-bottom: 1px solid rgba(154, 193, 232, 0.12);
  background: rgba(6, 18, 35, 0.82);
}

.admin-dashboard-header .admin-brand {
  margin: 0;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-header-actions form {
  margin: 0;
}

.admin-dashboard-main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.admin-dashboard-intro {
  margin-bottom: 28px;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.admin-stat-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(170, 210, 255, 0.13);
  border-radius: 18px;
  background: rgba(12, 25, 40, 0.78);
  box-shadow: var(--shadow);
}

.admin-stat-card span {
  color: var(--muted);
}

.admin-stat-card strong {
  font-size: 2rem;
}

.admin-dashboard-note {
  margin-top: 26px;
  font-size: 0.9rem;
}

.admin-users-section {
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid rgba(170, 210, 255, 0.13);
  border-radius: 18px;
  background: rgba(12, 25, 40, 0.78);
  box-shadow: var(--shadow);
}

.admin-users-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(170, 210, 255, 0.13);
}

.admin-users-heading h2 {
  margin: 0;
  font-size: 1.15rem;
}

.admin-users-heading span,
.admin-users-empty {
  color: var(--muted);
}

.admin-users-empty {
  margin: 0;
  padding: 24px;
}

.admin-users-table-wrap {
  overflow-x: auto;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-users-table th,
.admin-users-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid rgba(170, 210, 255, 0.09);
}

.admin-users-table th {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-users-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-users-table a {
  color: var(--accent-strong);
}

@media (max-width: 980px) {
  .hero-grid,
  .page-grid,
  .feature-grid,
  .summary-grid,
  .history-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 700px) {
  .site-header .container,
  .section-header,
  .nav,
  .actions,
  .hero-actions,
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header .container {
    gap: 12px;
  }

  .nav,
  .actions,
  .hero-actions {
    width: 100%;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }

  .btn {
    width: 100%;
  }

  .content-panel,
  .sidebar {
    padding: 18px;
  }

  .timeline-row {
    grid-template-columns: 1fr;
  }

  .planner-section {
    margin-top: 24px;
    padding-top: 22px;
  }

  .planner-panel .form-row {
    grid-template-columns: 1fr;
  }

  .planner-commitment-card,
  .commitment-card-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .planner-commitment-actions {
    width: 100%;
  }

  .result-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .day-checkboxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-days {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-dashboard-header,
  .admin-header-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-dashboard-header {
    padding: 16px;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-header-actions {
    gap: 10px;
  }

  .admin-header-actions .btn {
    width: auto;
  }
}
