.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.cal-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.cal-nav {
  display: flex;
  gap: 8px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(6px, 0.55vw, 10px);
}

.cal-weekday {
  padding-bottom: 2px;
  font-size: 10px;
  font-weight: 600;
  color: var(--tx3);
  text-align: center;
}

.cal-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  height: clamp(74px, 5.2vw, 92px);
  padding: 9px 10px;
  border: 1px solid var(--bd);
  border-radius: var(--r2);
  background: var(--sf);
  color: var(--tx2);
  text-align: left;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.cal-cell:hover {
  border-color: var(--bd-strong);
}

.cal-day {
  font-size: 14px;
  font-weight: 600;
}

.cal-status {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.cal-cell.is-outside {
  background: transparent;
  border-color: transparent;
}

.cal-cell.is-outside .cal-day {
  color: var(--tx3);
  opacity: 0.28;
}

.cal-cell.is-future {
  background: transparent;
}

.cal-cell.is-future .cal-day {
  color: var(--tx3);
  opacity: 0.45;
}

.cal-cell.is-sunday {
  background: transparent;
}

.cal-cell.is-sunday .cal-day {
  color: var(--tx3);
  opacity: 0.55;
}

.cal-cell.is-sunday .cal-status {
  color: var(--tx3);
  font-weight: 500;
}

.cal-cell.is-partial {
  border-color: var(--ac2-line);
}

.cal-cell.is-partial .cal-status {
  color: var(--ac2);
}

.cal-cell.is-zero .cal-day {
  color: var(--tx3);
}

.cal-cell.is-zero .cal-status {
  color: var(--dn);
}

.cal-cell.is-full {
  background: var(--sf2);
  border-color: var(--ac);
}

.cal-cell.is-full .cal-status {
  color: var(--ac);
}

.cal-cell.is-today {
  box-shadow: inset 0 0 0 2px var(--ac);
}

.cal-cell.is-today .cal-day {
  color: var(--ac);
}

.cal-cell.is-selected {
  background: var(--ac-soft);
  border-color: var(--ac);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--tx3);
}

.legend-swatch {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border: 1px solid var(--bd);
  border-radius: 3px;
  background: var(--sf);
}

.legend-swatch.is-full {
  background: var(--ac);
  border-color: var(--ac);
}

.legend-swatch.is-partial {
  background: var(--ac2);
  border-color: var(--ac2);
}

.legend-swatch.is-zero {
  background: var(--dn);
  border-color: var(--dn);
}

.legend-swatch.is-sunday {
  background: var(--sf2);
}

.legend-swatch.is-future {
  background: transparent;
  border-color: var(--bd-strong);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-head-text {
  min-width: 0;
}

.panel-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.panel-sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--tx3);
}

.panel-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--bd);
}

.section-title {
  margin-bottom: 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--tx3);
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--bd);
  border-radius: var(--r2);
  background: var(--sf);
}

.detail-row.is-done {
  border-color: var(--ac-line);
}

.detail-state {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 5px;
  background: var(--sf2);
  color: var(--tx3);
}

.detail-state .icon {
  width: 12px;
  height: 12px;
}

.detail-row.is-done .detail-state {
  background: var(--ac);
  color: var(--bg);
}

.detail-name {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
}

.detail-row.is-done .detail-name {
  color: var(--ac);
}

.detail-phone {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--tx3);
}

.is-revealed .detail-phone {
  color: var(--ac);
  letter-spacing: 0.2px;
}

.account-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.account-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid var(--bd);
  border-radius: var(--r2);
  background: var(--sf);
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.account-row:hover {
  border-color: var(--bd-strong);
}

.order-num {
  width: 20px;
  flex: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tx3);
}

.account-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.account-name {
  font-size: 13px;
  font-weight: 600;
}

.account-phone {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--tx2);
}

.account-pass {
  width: 74px;
  flex: 0 0 74px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 1px;
  color: var(--tx3);
  text-align: center;
}

.account-tag {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 400;
  color: var(--tx3);
}

.account-row.is-paused {
  background: transparent;
  border-style: dashed;
}

.account-row.is-paused .order-num,
.account-row.is-paused .account-name,
.account-row.is-paused .account-phone,
.account-row.is-paused .account-pass {
  color: var(--tx3);
}

.is-revealed .account-pass {
  color: var(--ac);
  letter-spacing: 0.2px;
}

.switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex: 0 0 40px;
  border: 1px solid var(--bd);
  border-radius: 99px;
  background: var(--sf2);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tx3);
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease);
}

.switch.is-on {
  background: var(--ac);
  border-color: var(--ac);
}

.switch.is-on .switch-knob {
  transform: translateX(18px);
  background: var(--bg);
}

.form-account {
  margin-bottom: 4px;
}

.setting-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid var(--bd);
  border-radius: var(--r2);
  background: var(--sf);
}

.setting-name {
  font-size: 12.5px;
  font-weight: 600;
}

@media (min-width: 1600px) {
  .cal-grid {
    gap: 10px;
  }

  .cal-cell {
    padding: 11px 12px;
  }

  .cal-status {
    font-size: 11px;
  }

  .account-row {
    padding: 12px 16px;
  }

  .account-pass {
    width: 86px;
    flex: 0 0 86px;
  }

  .legend {
    gap: 8px 26px;
  }
}

@media (max-width: 1439px) {
  .cal-cell {
    padding: 8px 9px;
  }

  .account-row {
    gap: 9px;
  }

  .account-pass {
    width: 66px;
    flex: 0 0 66px;
  }

  .legend {
    gap: 7px 14px;
  }
}
