/* schedule.css */
.container {
  max-width: var(--wrap, 1280px);
  margin: 28px auto;
  padding: 0 16px 60px;
}

.page-title {
  margin: 6px 0 18px;
  text-align: center;
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: -0.2px;
}

.card {
  background: var(--card, #fff);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: var(--radius, 18px);
  box-shadow: 0 8px 30px rgba(17, 24, 39, 0.06);
  padding: 18px;
}

.top {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 12px;
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0.08),
    rgba(255, 255, 255, 0.8)
  );
}
.top-title {
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: -0.3px;
}
.top-sub {
  margin-top: 8px;
  color: var(--muted, #6b7280);
  font-weight: 800;
}
.mini {
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.06);
  padding: 12px;
}
.mini-k {
  font-weight: 1000;
  margin-bottom: 6px;
}
.mini-v {
  color: #111827;
  font-weight: 800;
  line-height: 1.5;
}

.controls .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.seg {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line, #e5e7eb);
  background: rgba(255, 255, 255, 0.7);
}
.seg-btn {
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-weight: 1000;
  color: #111827;
}
.seg-btn.active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent, #2563eb);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.select {
  display: flex;
  align-items: center;
  gap: 10px;
}
.label {
  font-weight: 1000;
}
select {
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line, #e5e7eb);
  padding: 0 10px;
  font-weight: 900;
  outline: none;
  background: #fff;
}
select:focus {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.note {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(212, 162, 77, 0.22);
  background: rgba(212, 162, 77, 0.08);
  font-weight: 900;
  line-height: 1.55;
}

.grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sec-title {
  font-weight: 1000;
  font-size: 16px;
  margin-bottom: 10px;
}

.week {
  display: grid;
  gap: 8px;
}
.week-item {
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.week-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.week-day {
  font-weight: 1000;
}
.week-meta {
  font-size: 12px;
  color: var(--muted, #6b7280);
  font-weight: 800;
}
.week-badge {
  font-size: 12px;
  font-weight: 1000;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent, #2563eb);
  white-space: nowrap;
}

.bullets {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
  color: #111827;
  font-weight: 800;
}

.actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-btn,
.ghost-btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.primary-btn {
  background: var(--accent, #2563eb);
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.ghost-btn {
  background: #fff;
  color: #111827;
  border: 1px solid var(--line, #e5e7eb);
}
.ghost-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.06);
}

.table-card {
  margin-top: 16px;
}
.muted {
  color: var(--muted, #6b7280);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 10px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid var(--line, #e5e7eb);
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
}
.tbl th,
.tbl td {
  padding: 12px;
  border-bottom: 1px solid var(--line, #e5e7eb);
  text-align: left;
  font-weight: 900;
}
.tbl thead th {
  background: rgba(17, 24, 39, 0.03);
}
.tbl td {
  font-weight: 800;
}

.bottom-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

/* responsive */
@media (max-width: 980px) {
  .top {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .page-title {
    font-size: 22px;
  }
}
