.cal-plan-stick {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #fff;
  margin: -18px -18px 12px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--line);
}

.cal-plan-stick .cal-card-head {
  margin-bottom: 8px;
}

.cal-head-side {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.cal-chip-key {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.cal-chip-key span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cal-chip-key i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}

.cal-chip-key .is-guest {
  background: #d64545;
}

.cal-chip-key .is-free {
  background: color-mix(in srgb, var(--gold) 38%, #fff);
}

.cal-proposed {
  border: 1px solid var(--line);
  background: var(--chip-on);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cal-facts {
  display: flex;
  flex-direction: column;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.cal-facts div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.cal-facts div:first-child {
  border-top: 0;
}

.cal-facts dt {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cal-facts dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.cal-facts div.is-problem {
  background: var(--paper);
}

.cal-facts div.is-problem dd {
  font-size: 18px;
}

.cal-notice .cal-choice {
  gap: 8px;
  margin: 0 0 4px;
}

.cal-notice .cal-choice button {
  padding: 8px 14px;
  background: #fff;
}

.cal-notice .cal-choice button.is-urgent.is-on {
  background: #ffa3c3;
  border-color: #ffa3c3;
  color: var(--ink);
}

.cal-send-rule {
  margin: 40px 0 12px;
  border: 0;
  border-top: 1px solid var(--line);
}

.cal-send-box {
  margin-top: 0;
  padding: 8px;
  border-radius: 18px;
  border: 2px solid var(--ink);
  background: #fff;
}

.cal-send {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
}

.cal-send svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.cal-send:disabled {
  opacity: 0.55;
  cursor: default;
}

.cal-find {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: auto;
  max-width: 100%;
  margin: 4px 0 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 600;
  cursor: default;
}

.cal-find-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cal-find .cal-hint {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cal-find .cal-choice {
  margin: 0;
  gap: 6px;
}

.cal-find.is-card {
  width: fit-content;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cal-head);
}

.cal-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 4px 0 0;
}

.cal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 16px;
  min-height: 16px;
  padding: 0 4px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border: 1px solid color-mix(in srgb, var(--gold) 70%, #fff);
  color: var(--ink);
  background: color-mix(in srgb, var(--gold) 38%, #fff);
}

.cal-num.is-in {
  border-color: #d64545;
  background: #d64545;
  color: #fff;
}

.cal-plan button.cal-room {
  border: 0;
  background: none;
  border-radius: 0;
  padding: 0 1px;
  font-size: inherit;
  font-weight: 700;
  color: inherit;
  line-height: inherit;
}

.cal-plan button.cal-num.cal-room {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 16px;
  min-height: 16px;
  padding: 0 4px;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1;
  border: 1px solid color-mix(in srgb, var(--gold) 70%, #fff);
  color: var(--ink);
  background: color-mix(in srgb, var(--gold) 38%, #fff);
}

.cal-plan button.cal-num.cal-room.is-in {
  border-color: #d64545;
  background: #d64545;
  color: #fff;
}

.cal-room-marks {
  margin: 2px 0 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.cal-stay-pop {
  position: fixed;
  z-index: 30;
  top: 72px;
  right: 24px;
  width: min(340px, calc(100% - 32px));
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(28, 24, 20, 0.14);
}

.cal-stay-pop .cal-card-head {
  align-items: center;
}

.cal-stay-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.cal-stay-time input {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 8px;
  font: inherit;
}

.cal-plan .cal-find-nums button.is-num {
  width: 32px;
  height: 32px;
  padding: 0;
}

.cal-weeks .cal-find {
  width: auto;
  margin: 8px 0 4px;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  font: inherit;
  font-weight: inherit;
  color: inherit;
}

.cal-find .cal-hint {
  margin: 6px 0 0;
}

.cal-foot {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 13px;
}

.cal-handoff .cal-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cal-handoff .cal-table td {
  font-weight: 600;
}

.cal-stay .cal-sheet {
  overflow-x: auto;
}

.cal-stay .cal-stay-who {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cal-stay .cal-rhythm {
  margin-top: 4px;
}

.cal-stay .cal-guest {
  top: 50%;
  margin-top: -9px;
}
