:root {
  color-scheme: light;
  --ink: #171321;
  --muted: #756f80;
  --line: #e8e3ef;
  --paper: #ffffff;
  --canvas: #f5f3f8;
  --purple: #6d39e7;
  --purple-deep: #4d1daf;
  --purple-soft: #f0eaff;
  --shadow: 0 18px 50px rgba(48, 36, 69, 0.09);
  --font: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
input[type="checkbox"] {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(109, 57, 231, 0.26);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 10px clamp(18px, 3vw, 46px);
  border-bottom: 1px solid rgba(225, 219, 234, 0.9);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: block;
  overflow: hidden;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #df5b5a;
  box-shadow: 0 7px 16px rgba(208, 73, 73, 0.22);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: -0.04em;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.top-actions,
.preview-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.saved-state {
  margin-right: 8px;
  color: #827b8c;
  font-size: 0.78rem;
  font-weight: 700;
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button:active,
.icon-button:active {
  transform: translateY(0);
}

.button {
  gap: 7px;
  padding: 0 17px;
  font-size: 0.88rem;
}

.button svg,
.icon-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #7b43ed, #5725c4);
  box-shadow: 0 8px 20px rgba(97, 46, 210, 0.24);
}

.button-primary:hover {
  box-shadow: 0 10px 24px rgba(97, 46, 210, 0.32);
}

.button-ghost {
  border: 1px solid var(--line);
  background: #fff;
}

.button-dark {
  color: #fff;
  background: var(--ink);
}

.icon-button {
  width: 44px;
  padding: 0;
  border: 1px solid #ded8e7;
  background: #fff;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(600px, 1.18fr);
  min-height: calc(100vh - 72px);
}

.editor {
  padding: 40px clamp(24px, 3.2vw, 52px) 72px;
  border-right: 1px solid #e4dfeb;
  background: #fbfafc;
}

.section-heading {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.section-heading h1,
.preview-toolbar h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

.section-heading h1 {
  font-size: clamp(1.7rem, 2.2vw, 2.25rem);
  line-height: 1.18;
}

.step-pill {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 100px;
  color: #6a6172;
  background: #ebe7ef;
  font-size: 0.72rem;
  font-weight: 800;
}

.panel,
.schedule-editor {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(36, 25, 54, 0.035);
}

.panel {
  margin-bottom: 18px;
  padding: 22px;
}

.panel-title-row {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.panel-title-row h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.panel-title-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.panel-number {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: var(--purple);
  background: var(--purple-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.field > span,
.time-label {
  color: #4e4857;
  font-size: 0.78rem;
  font-weight: 800;
}

.field input,
.field select,
.time-input {
  width: 100%;
  min-width: 0;
  height: 45px;
  border: 1px solid #ddd7e5;
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  padding: 0 12px;
  font-size: 0.87rem;
  font-weight: 650;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input:hover,
.field select:hover,
.time-input:hover {
  border-color: #bdb4c9;
}

.field input:focus,
.field select:focus,
.time-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(109, 57, 231, 0.1);
  outline: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.select-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.field-action {
  min-width: 62px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--ink);
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.field-action-danger {
  color: #bd3448;
  background: #fff0f2;
}

.field-action:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.confirm-panel {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 17px 18px;
  border: 1px solid #d8cee7;
  border-radius: 18px;
  background: linear-gradient(120deg, #f6f1ff, #fff);
}

.confirm-panel > div {
  display: flex;
  gap: 11px;
  align-items: center;
}

.confirm-panel strong,
.confirm-panel p {
  display: block;
  margin: 0;
}

.confirm-panel strong {
  font-size: 0.92rem;
}

.confirm-panel p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.confirm-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f0a528;
  box-shadow: 0 0 0 6px rgba(240, 165, 40, 0.13);
}

.button-confirm {
  flex: 0 0 auto;
  color: #fff;
  background: #6d39e7;
}

.editor.is-confirmed .confirm-panel {
  border-color: #b8dfd2;
  background: linear-gradient(120deg, #ebfaf5, #fff);
}

.editor.is-confirmed .confirm-dot {
  background: #18a477;
  box-shadow: 0 0 0 6px rgba(24, 164, 119, 0.13);
}

.editor.is-confirmed .button-confirm {
  color: #0b7256;
  background: #d9f4ea;
}

.editor.is-confirmed .basics-panel,
.editor.is-confirmed .schedule-editor-section,
.editor.is-confirmed .notice-panel,
.editor.is-confirmed .mobile-reset {
  opacity: 0.52;
  pointer-events: none;
  filter: grayscale(0.25);
}

.schedule-editor-section {
  margin: 30px 0 18px;
}

.schedule-section-title {
  padding: 0 3px;
}

.button-add-schedule {
  min-height: 38px;
  margin-left: auto;
  padding-inline: 13px;
  border: 1px solid #d9d0e6;
  color: #5f32bd;
  background: #f4efff;
  font-size: 0.75rem;
}

.schedule-creator {
  display: grid;
  gap: 14px;
  margin: -5px 0 18px;
  padding: 18px;
  border: 1px solid #d7cbe9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(76, 45, 112, 0.06);
}

.schedule-creator[hidden] {
  display: none;
}

.creator-heading strong,
.creator-heading span {
  display: block;
}

.creator-heading strong {
  font-size: 0.95rem;
}

.creator-heading span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.weekday-picker {
  margin: 0;
  padding: 0;
  border: 0;
}

.weekday-picker legend {
  margin-bottom: 7px;
  color: #4e4857;
  font-size: 0.78rem;
  font-weight: 800;
}

.weekday-picker > div {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.weekday-picker label {
  position: relative;
}

.weekday-picker input {
  position: absolute;
  opacity: 0;
}

.weekday-picker span {
  display: grid;
  min-height: 40px;
  place-items: center;
  border: 1px solid #ddd6e6;
  border-radius: 10px;
  color: #655e6e;
  background: #faf9fb;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.weekday-picker input:checked + span {
  border-color: #6d39e7;
  color: #fff;
  background: #6d39e7;
}

.creator-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.creator-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.custom-schedule-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #776e7f;
  background: #f8f6fa;
  font-size: 0.68rem;
  font-weight: 750;
}

.mini-action-danger {
  color: #c63b4d;
}

.schedule-editors {
  display: grid;
  gap: 12px;
}

.holiday-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: -5px 0 14px;
  padding: 13px 15px;
  border: 1px solid #f0d2d5;
  border-radius: 15px;
  background: #fff7f7;
}

.holiday-summary > strong {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #b83241;
  font-size: 0.76rem;
  white-space: nowrap;
}

.holiday-summary > strong i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #e04653;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 950;
}

.holiday-summary > div {
  display: flex;
  flex: 1 1 260px;
  flex-wrap: wrap;
  gap: 5px;
}

.holiday-summary > div span {
  padding: 4px 8px;
  border: 1px solid #f0d5d8;
  border-radius: 100px;
  color: #7a4a50;
  background: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}

.holiday-summary > div b {
  color: #d53d4a;
  font-weight: 950;
}

.holiday-summary > p {
  width: 100%;
  margin: 0;
  color: #9a6d72;
  font-size: 0.64rem;
  font-weight: 700;
}

.schedule-editor {
  overflow: hidden;
}

.schedule-summary {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 12px 15px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.schedule-swatch {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 23%, transparent);
  font-size: 0.74rem;
  font-weight: 900;
}

.schedule-summary-copy {
  min-width: 0;
}

.schedule-summary-copy strong,
.schedule-summary-copy small {
  display: block;
}

.schedule-summary-copy strong {
  overflow: hidden;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-summary-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.selected-count {
  padding: 6px 9px;
  border-radius: 100px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.chevron {
  width: 20px;
  color: #81788b;
  transition: transform 180ms ease;
}

.schedule-editor.is-open .chevron {
  transform: rotate(180deg);
}

.schedule-editor-body {
  display: none;
  padding: 0 15px 16px;
  border-top: 1px solid #eeeaf2;
}

.schedule-editor.is-open .schedule-editor-body {
  display: block;
}

.schedule-settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
  gap: 12px;
  padding: 14px 0 12px;
}

.schedule-rule-note {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 1px 0 12px;
  padding: 9px 11px;
  border-radius: 10px;
  color: #625a69;
  background: color-mix(in srgb, var(--accent) 7%, #fff);
  font-size: 0.69rem;
  font-weight: 750;
}

.schedule-rule-note b {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  font-size: 0.61rem;
  font-weight: 950;
}

.time-control {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 7px;
  align-items: center;
}

.time-control .time-label {
  grid-column: 1 / -1;
}

.time-control em {
  color: #958e9d;
  font-style: normal;
  font-weight: 800;
}

.enable-control {
  display: flex;
  align-items: flex-end;
}

.switch-label {
  display: flex;
  width: 100%;
  height: 45px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid #ddd7e5;
  border-radius: 11px;
  color: #514a59;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.switch-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 50px;
  background: #cbc5d1;
  transition: background 150ms ease;
}

.switch-track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(23, 19, 33, 0.2);
  content: "";
  transition: transform 150ms ease;
}

.switch-label input:checked + .switch-track {
  background: var(--accent);
}

.switch-label input:checked + .switch-track::after {
  transform: translateX(16px);
}

.date-picker-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 5px 0 10px;
}

.date-picker-heading strong {
  font-size: 0.78rem;
}

.date-state-legend {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: -2px 0 10px;
  color: #635c6c;
  font-size: 0.68rem;
  font-weight: 800;
}

.date-state-legend > span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.date-state-legend i {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 950;
}

.date-state-legend .legend-selected {
  background: var(--accent);
}

.date-state-legend .legend-cancelled {
  background: #ec4c58;
}

.date-state-legend .legend-holiday {
  background: #bd2f3e;
}

.date-state-legend small {
  margin-left: auto;
  color: #948d9b;
  font-size: 0.64rem;
}

.mini-actions {
  display: flex;
  gap: 6px;
}

.mini-action {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #dfd9e6;
  border-radius: 9px;
  color: #5f5868;
  background: #fff;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 800;
}

.date-chip-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.date-chip-calendar {
  overflow: hidden;
  padding: 7px;
  border: 1px solid #e9e4ed;
  border-radius: 13px;
  background: #fcfbfd;
}

.date-chip-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin: -7px -7px 7px;
  padding: 8px 7px;
  border-bottom: 1px solid #e8e2eb;
  background: color-mix(in srgb, var(--accent) 7%, #fff);
}

.date-chip-weekdays span {
  color: #665e6d;
  font-size: 0.66rem;
  font-weight: 900;
  text-align: center;
}

.date-chip-weekdays span:first-child {
  color: #e54555;
}

.date-chip-weekdays span:last-child {
  color: #2d76d9;
}

.date-chip-placeholder {
  display: block;
  aspect-ratio: 1;
  border-radius: 8px;
}

.date-chip {
  position: relative;
  display: flex;
  min-width: 0;
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #ece8f0;
  border-radius: 8px;
  color: #867f8e;
  background: #faf9fb;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
}

.date-chip .chip-number {
  line-height: 1.05;
}

.date-chip small {
  margin-top: 2px;
  color: inherit;
  font-size: 0.58rem;
  font-weight: 800;
  opacity: 0.68;
}

.date-chip.is-sunday:not(.is-selected, .is-cancelled) {
  color: #e54555;
}

.date-chip.is-saturday:not(.is-selected, .is-cancelled) {
  color: #2d76d9;
}

.date-chip.is-holiday:not(.is-selected, .is-cancelled) {
  color: #d62f40;
  border-color: #efb5ba;
  background: #fff4f5;
}

.holiday-flag {
  position: absolute;
  z-index: 3;
  top: 3px;
  right: 3px;
  display: grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #d93443;
  box-shadow: 0 1px 4px rgba(184, 41, 54, 0.2);
  font-size: 0.44rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.chip-x {
  display: none;
}

.date-chip.is-default {
  color: #49414f;
  border-color: color-mix(in srgb, var(--accent) 25%, #ece8f0);
}

.date-chip.is-selected {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 4px 9px color-mix(in srgb, var(--accent) 20%, transparent);
}

.date-chip.is-cancelled {
  color: #8d858f;
  border-color: #f0b8bd;
  background: #fff1f2;
  box-shadow: 0 4px 9px rgba(224, 60, 72, 0.08);
}

.date-chip.is-cancelled .chip-number,
.date-chip.is-cancelled small {
  opacity: 0.42;
}

.date-chip.is-cancelled .chip-x {
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  color: #e33f4c;
  font-size: 1.65rem;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.date-chip:disabled,
.schedule-editor.is-disabled .schedule-editor-body {
  opacity: 0.5;
}

.notice-panel {
  margin-top: 18px;
}

.mobile-reset,
.mobile-tabs {
  display: none;
}

.preview-pane {
  min-width: 0;
  padding: 31px clamp(22px, 3vw, 48px) 44px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.46) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.46) 1px, transparent 1px),
    #ebe8ef;
  background-size: 28px 28px;
}

.preview-toolbar {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.preview-toolbar h2 {
  font-size: 1.12rem;
}

.preview-stage {
  position: sticky;
  top: 101px;
  display: flex;
  overflow: hidden;
  width: 100%;
  justify-content: center;
  border-radius: 18px;
  background: #dcd8e2;
  box-shadow: inset 0 0 0 1px rgba(42, 33, 52, 0.06);
}

.poster-frame {
  position: relative;
  width: 1080px;
  height: 1080px;
  flex: 0 0 auto;
  transform-origin: top left;
}

.poster {
  --poster-ink: #171222;
  --theme-primary: #7038d9;
  --theme-secondary: #a66bea;
  --theme-deep: #4d229e;
  --theme-footer: #5b27b2;
  --theme-line: #d9cce9;
  --theme-paper-a: #fff;
  --theme-paper-b: #faf6ff;
  --theme-shadow-rgb: 112, 56, 217;
  --theme-secondary-rgb: 166, 107, 234;
  --theme-card-radius: 25px;
  --theme-pill-radius: 100px;
  --season-pattern:
    radial-gradient(circle at 9% 8%, rgba(112, 56, 217, 0.11), transparent 23%),
    radial-gradient(circle at 91% 17%, rgba(227, 170, 44, 0.1), transparent 21%);
  position: relative;
  display: grid;
  overflow: hidden;
  width: 1080px;
  height: 1080px;
  grid-template-rows: 245px 1fr 220px;
  color: var(--poster-ink);
  background: var(--season-pattern), linear-gradient(145deg, var(--theme-paper-a), var(--theme-paper-b) 52%, #fff);
  font-family: var(--font);
  isolation: isolate;
}

.poster[data-theme-month="1"] {
  --theme-primary: #2d68a2;
  --theme-secondary: #6bb9d1;
  --theme-deep: #183f6b;
  --theme-footer: #245783;
  --theme-line: #c4dce8;
  --theme-paper-a: #f8fdff;
  --theme-paper-b: #edf7fb;
  --theme-shadow-rgb: 45, 104, 162;
  --theme-secondary-rgb: 107, 185, 209;
  --theme-card-radius: 18px;
  --theme-pill-radius: 16px;
  --season-pattern:
    repeating-linear-gradient(135deg, rgba(45, 104, 162, 0.035) 0 2px, transparent 2px 27px),
    radial-gradient(circle at 88% 9%, rgba(107, 185, 209, 0.17), transparent 24%);
}

.poster[data-theme-month="2"] {
  --theme-primary: #d95078;
  --theme-secondary: #ef8d93;
  --theme-deep: #92304f;
  --theme-footer: #ae3a5b;
  --theme-line: #f0cad5;
  --theme-paper-a: #fffafb;
  --theme-paper-b: #fff0f3;
  --theme-shadow-rgb: 217, 80, 120;
  --theme-secondary-rgb: 239, 141, 147;
  --theme-card-radius: 31px;
  --theme-pill-radius: 100px;
  --season-pattern:
    radial-gradient(circle, rgba(217, 80, 120, 0.07) 0 5px, transparent 6px) 0 0 / 34px 34px,
    radial-gradient(circle at 8% 12%, rgba(239, 141, 147, 0.16), transparent 25%);
}

.poster[data-theme-month="3"] {
  --theme-primary: #2c9964;
  --theme-secondary: #8bbc52;
  --theme-deep: #176445;
  --theme-footer: #287b4f;
  --theme-line: #c9e3d1;
  --theme-paper-a: #fbfff9;
  --theme-paper-b: #f0faed;
  --theme-shadow-rgb: 44, 153, 100;
  --theme-secondary-rgb: 139, 188, 82;
  --theme-card-radius: 20px;
  --theme-pill-radius: 20px;
  --season-pattern:
    linear-gradient(90deg, rgba(44, 153, 100, 0.035) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(rgba(139, 188, 82, 0.035) 1px, transparent 1px) 0 0 / 30px 30px,
    radial-gradient(circle at 91% 10%, rgba(139, 188, 82, 0.16), transparent 24%);
}

.poster[data-theme-month="4"] {
  --theme-primary: #dc6d8d;
  --theme-secondary: #eea077;
  --theme-deep: #9b405d;
  --theme-footer: #bd526e;
  --theme-line: #f0d1d9;
  --theme-paper-a: #fffdfc;
  --theme-paper-b: #fff3f5;
  --theme-shadow-rgb: 220, 109, 141;
  --theme-secondary-rgb: 238, 160, 119;
  --theme-card-radius: 28px 16px;
  --theme-pill-radius: 100px 22px;
  --season-pattern:
    radial-gradient(circle at 0 0, transparent 0 18px, rgba(220, 109, 141, 0.045) 19px 21px, transparent 22px) 0 0 / 54px 54px,
    radial-gradient(circle at 88% 10%, rgba(238, 160, 119, 0.14), transparent 25%);
}

.poster[data-theme-month="5"] {
  --theme-primary: #2789ae;
  --theme-secondary: #58bdad;
  --theme-deep: #135d7b;
  --theme-footer: #1b718b;
  --theme-line: #c4e3e4;
  --theme-paper-a: #f9feff;
  --theme-paper-b: #edfafa;
  --theme-shadow-rgb: 39, 137, 174;
  --theme-secondary-rgb: 88, 189, 173;
  --theme-card-radius: 22px;
  --theme-pill-radius: 100px;
  --season-pattern:
    repeating-linear-gradient(0deg, rgba(39, 137, 174, 0.032) 0 2px, transparent 2px 24px),
    radial-gradient(circle at 11% 8%, rgba(88, 189, 173, 0.15), transparent 24%);
}

.poster[data-theme-month="6"] {
  --theme-primary: #3a9b6f;
  --theme-secondary: #d5a936;
  --theme-deep: #21664d;
  --theme-footer: #2d7b59;
  --theme-line: #d4e4c9;
  --theme-paper-a: #fffffa;
  --theme-paper-b: #f3faec;
  --theme-shadow-rgb: 58, 155, 111;
  --theme-secondary-rgb: 213, 169, 54;
  --theme-card-radius: 17px 29px;
  --theme-pill-radius: 18px 100px;
  --season-pattern:
    repeating-linear-gradient(45deg, rgba(58, 155, 111, 0.034) 0 10px, transparent 10px 22px),
    repeating-linear-gradient(-45deg, rgba(213, 169, 54, 0.025) 0 10px, transparent 10px 22px);
}

.poster[data-theme-month="7"] {
  --theme-primary: #2675cc;
  --theme-secondary: #24a9c4;
  --theme-deep: #174b91;
  --theme-footer: #155eaa;
  --theme-line: #c4deed;
  --theme-paper-a: #f8fdff;
  --theme-paper-b: #edf8ff;
  --theme-shadow-rgb: 38, 117, 204;
  --theme-secondary-rgb: 36, 169, 196;
  --theme-card-radius: 30px 16px 30px 16px;
  --theme-pill-radius: 100px;
  --season-pattern:
    radial-gradient(ellipse at 20px 0, transparent 19px, rgba(38, 117, 204, 0.045) 20px 22px, transparent 23px) 0 0 / 80px 35px,
    radial-gradient(circle at 90% 11%, rgba(36, 169, 196, 0.16), transparent 25%);
}

.poster[data-theme-month="8"] {
  --theme-primary: #ed7b3b;
  --theme-secondary: #e95469;
  --theme-deep: #a8462c;
  --theme-footer: #c35536;
  --theme-line: #f0d2c5;
  --theme-paper-a: #fffdf8;
  --theme-paper-b: #fff2e9;
  --theme-shadow-rgb: 237, 123, 59;
  --theme-secondary-rgb: 233, 84, 105;
  --theme-card-radius: 16px;
  --theme-pill-radius: 15px;
  --season-pattern:
    repeating-conic-gradient(from 15deg at 92% 8%, rgba(237, 123, 59, 0.055) 0 8deg, transparent 8deg 18deg),
    radial-gradient(circle at 92% 8%, rgba(233, 84, 105, 0.12), transparent 24%);
}

.poster[data-theme-month="9"] {
  --theme-primary: #7038d9;
  --theme-secondary: #a66bea;
  --theme-deep: #4d229e;
  --theme-footer: #5b27b2;
  --theme-line: #d9cce9;
  --theme-paper-a: #fff;
  --theme-paper-b: #faf6ff;
  --theme-shadow-rgb: 112, 56, 217;
  --theme-secondary-rgb: 166, 107, 234;
  --theme-card-radius: 25px;
  --theme-pill-radius: 100px;
}

.poster[data-theme-month="10"] {
  --theme-primary: #c06b32;
  --theme-secondary: #c99a35;
  --theme-deep: #7c3f23;
  --theme-footer: #96502a;
  --theme-line: #ead5bc;
  --theme-paper-a: #fffdf8;
  --theme-paper-b: #fbf2e5;
  --theme-shadow-rgb: 192, 107, 50;
  --theme-secondary-rgb: 201, 154, 53;
  --theme-card-radius: 14px 26px;
  --theme-pill-radius: 14px;
  --season-pattern:
    repeating-linear-gradient(90deg, rgba(192, 107, 50, 0.035) 0 2px, transparent 2px 32px),
    repeating-linear-gradient(0deg, rgba(201, 154, 53, 0.03) 0 2px, transparent 2px 32px);
}

.poster[data-theme-month="11"] {
  --theme-primary: #8c4e62;
  --theme-secondary: #aa7556;
  --theme-deep: #59313d;
  --theme-footer: #6d3c4a;
  --theme-line: #e2d3d2;
  --theme-paper-a: #fffcfb;
  --theme-paper-b: #f8f1ef;
  --theme-shadow-rgb: 140, 78, 98;
  --theme-secondary-rgb: 170, 117, 86;
  --theme-card-radius: 12px;
  --theme-pill-radius: 9px;
  --season-pattern:
    repeating-linear-gradient(90deg, rgba(89, 49, 61, 0.032) 0 1px, transparent 1px 14px),
    radial-gradient(circle at 9% 11%, rgba(170, 117, 86, 0.13), transparent 24%);
}

.poster[data-theme-month="12"] {
  --theme-primary: #26765c;
  --theme-secondary: #c84d57;
  --theme-deep: #174c3b;
  --theme-footer: #8e3741;
  --theme-line: #cadfd7;
  --theme-paper-a: #fbfffd;
  --theme-paper-b: #edf7f3;
  --theme-shadow-rgb: 38, 118, 92;
  --theme-secondary-rgb: 200, 77, 87;
  --theme-card-radius: 24px 8px;
  --theme-pill-radius: 100px 18px;
  --season-pattern:
    conic-gradient(from 45deg, rgba(38, 118, 92, 0.04) 25%, transparent 0 75%, rgba(200, 77, 87, 0.035) 0) 0 0 / 34px 34px,
    radial-gradient(circle at 89% 10%, rgba(200, 77, 87, 0.14), transparent 24%);
}

.poster-noise {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.36;
  background-image: radial-gradient(rgba(var(--theme-shadow-rgb), 0.12) 0.7px, transparent 0.7px);
  background-size: 11px 11px;
  mask-image: linear-gradient(to bottom, #000, transparent 60%);
}

.poster-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(1px);
}

.poster-orb-one {
  top: -85px;
  left: -115px;
  width: 290px;
  height: 290px;
  border: 52px solid rgba(var(--theme-shadow-rgb), 0.075);
}

.poster-orb-two {
  top: 52px;
  right: -85px;
  width: 205px;
  height: 205px;
  border: 39px solid rgba(var(--theme-secondary-rgb), 0.075);
}

.poster-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 25px;
}

.poster-logo {
  position: absolute;
  top: 25px;
  left: 46px;
  overflow: hidden;
  width: 92px;
  height: 92px;
  padding: 4px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 27px;
  background: #fff;
  box-shadow: 0 11px 27px rgba(var(--theme-shadow-rgb), 0.2);
  transform: rotate(-3deg);
}

.poster-logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 21px;
  object-fit: cover;
}

.coach-label {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  min-width: 275px;
  min-height: 47px;
  justify-content: center;
  padding: 0 26px;
  border-radius: var(--theme-pill-radius);
  color: #fff;
  background: linear-gradient(110deg, var(--theme-deep), var(--theme-primary) 56%, var(--theme-secondary));
  box-shadow: 0 9px 24px rgba(var(--theme-shadow-rgb), 0.22);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.coach-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f4d7ff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}

.poster-title-row {
  display: flex;
  align-items: center;
  margin-top: 13px;
}

.month-badge {
  position: relative;
  display: flex;
  align-items: baseline;
  padding-right: 25px;
  color: var(--theme-primary);
  line-height: 0.9;
}

.month-badge::after {
  position: absolute;
  top: 9px;
  right: 0;
  width: 3px;
  height: 67px;
  border-radius: 100px;
  background: var(--theme-line);
  content: "";
}

.month-badge > span {
  font-size: 93px;
  font-weight: 950;
  letter-spacing: -0.075em;
}

.month-badge small {
  margin-left: 8px;
  font-size: 42px;
  font-weight: 950;
}

.poster-title-copy {
  padding-left: 25px;
}

.poster-title-copy p {
  margin: 0 0 2px;
  color: var(--theme-deep);
  opacity: 0.68;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.poster-title-copy h2 {
  margin: 0;
  font-size: 53px;
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 1;
}

.greeting-ribbon {
  display: flex;
  width: 820px;
  gap: 15px;
  align-items: center;
  margin-top: 12px;
}

.greeting-ribbon p {
  flex: 0 0 auto;
  margin: 0;
  color: #4f465e;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.ribbon-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--theme-line));
}

.ribbon-line:last-child {
  background: linear-gradient(90deg, var(--theme-line), transparent);
}

.poster-schedules {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 16px;
  padding: 0 46px 18px;
}

.poster-schedules[data-count="3"] {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.poster-schedules[data-count="3"] .poster-schedule-card:last-child {
  grid-column: 1 / -1;
}

.poster-schedules[data-count="2"] {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, 1fr);
}

.poster-schedules[data-count="1"] {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.poster-schedule-card {
  --accent: #6d39e7;
  --accent-dark: #4c20a8;
  --accent-soft: #f2ecff;
  position: relative;
  display: grid;
  overflow: hidden;
  min-width: 0;
  grid-template-columns: 1.08fr 0.92fr;
  grid-template-rows: 72px 1fr;
  border: 2px solid color-mix(in srgb, var(--accent) 24%, white);
  border-radius: var(--theme-card-radius);
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 9%, transparent);
}

.poster-schedules[data-count="1"] .poster-schedule-card {
  grid-template-columns: 1.28fr 0.72fr;
  grid-template-rows: 96px 1fr;
}

.card-heading {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(125deg, var(--accent-dark), var(--accent));
}

.card-title-wrap {
  min-width: 0;
}

.card-kicker {
  display: block;
  margin-bottom: 1px;
  opacity: 0.7;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.card-heading h3 {
  overflow: hidden;
  margin: 0;
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.time-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.13);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.poster-calendar {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(7, 1fr);
  padding: 12px 16px 10px;
  border-right: 1px solid #eee9f2;
}

.poster-weekday,
.poster-date {
  display: grid;
  place-items: center;
  font-weight: 800;
}

.poster-weekday {
  height: 22px;
  color: #88808f;
  font-size: 10px;
}

.poster-weekday:first-child,
.poster-date.is-sunday {
  color: #ef4852;
}

.poster-weekday:last-child,
.poster-date.is-saturday {
  color: #3278da;
}

.poster-date {
  position: relative;
  width: 27px;
  height: 27px;
  justify-self: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.poster-date.is-empty {
  pointer-events: none;
}

.poster-date.is-selected {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 25%, transparent);
}

.poster-date.is-selected::after {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  content: "";
}

.poster-date > span {
  position: relative;
  z-index: 1;
}

.poster-date.is-cancelled {
  color: #98919b;
  background: #f1eef3;
}

.poster-date.is-cancelled > span {
  opacity: 0.45;
}

.poster-date.is-cancelled > b {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  color: #e44250;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  transform: translate(-50%, -53%);
}

.poster-date.is-holiday:not(.is-selected, .is-cancelled) {
  color: #dd3243;
  font-weight: 950;
}

.poster-holiday-mark {
  position: absolute;
  z-index: 4;
  top: -1px;
  right: -2px;
  display: grid;
  width: 12px;
  height: 12px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #d93443;
  box-shadow: 0 1px 4px rgba(184, 41, 54, 0.2);
  font-size: 7px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.lesson-summary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 15px 18px;
  background: linear-gradient(150deg, #fff, var(--accent-soft));
}

.lesson-summary-label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.lesson-summary-label i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 11px;
  font-style: normal;
}

.lesson-days {
  margin: 10px 0 0;
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.015em;
  line-height: 1.48;
  word-break: keep-all;
}

.lesson-days.is-dense {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.35;
}

.cancelled-summary {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 14%, #e7e2e9);
  color: #dd3d4c;
  font-size: 10px;
  line-height: 1.35;
}

.cancelled-summary span {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  align-items: center;
  font-weight: 900;
}

.cancelled-summary i {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #e34a57;
  font-size: 10px;
  font-style: normal;
}

.cancelled-summary b {
  font-size: 11px;
  font-weight: 900;
}

.lesson-count {
  margin-top: 9px;
  color: #837c89;
  font-size: 10px;
  font-weight: 800;
}

.poster-schedules[data-count="1"] .card-heading {
  padding-inline: 34px;
}

.poster-schedules[data-count="1"] .card-heading h3 {
  font-size: 34px;
}

.poster-schedules[data-count="1"] .time-badge {
  padding: 10px 17px;
  font-size: 17px;
}

.poster-schedules[data-count="1"] .poster-calendar {
  align-content: center;
  padding: 28px 34px;
}

.poster-schedules[data-count="1"] .poster-weekday {
  height: 34px;
  font-size: 14px;
}

.poster-schedules[data-count="1"] .poster-date {
  width: 48px;
  height: 48px;
  font-size: 17px;
}

.poster-schedules[data-count="1"] .poster-date.is-cancelled > b {
  font-size: 45px;
}

.poster-schedules[data-count="1"] .poster-holiday-mark {
  top: 1px;
  right: 1px;
  width: 17px;
  height: 17px;
  font-size: 9px;
}

.poster-schedules[data-count="1"] .lesson-summary {
  padding: 36px;
}

.poster-schedules[data-count="1"] .lesson-summary-label {
  font-size: 17px;
}

.poster-schedules[data-count="1"] .lesson-summary-label i {
  width: 28px;
  height: 28px;
  font-size: 15px;
}

.poster-schedules[data-count="1"] .lesson-days {
  font-size: 29px;
  line-height: 1.55;
}

.poster-schedules[data-count="1"] .lesson-days.is-dense {
  font-size: 22px;
  line-height: 1.45;
}

.poster-schedules[data-count="1"] .cancelled-summary {
  margin-top: 17px;
  padding-top: 15px;
  font-size: 15px;
}

.poster-schedules[data-count="1"] .cancelled-summary b {
  font-size: 16px;
}

.poster-schedules[data-count="1"] .lesson-count {
  margin-top: 16px;
  font-size: 13px;
}

.empty-poster-schedules {
  display: flex;
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #d7cfe2;
  border-radius: 28px;
  color: #777080;
  background: rgba(255, 255, 255, 0.75);
}

.empty-poster-schedules strong {
  color: #4f4659;
  font-size: 26px;
}

.empty-poster-schedules p {
  margin: 6px 0 0;
  font-size: 15px;
}

.poster-footer {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: 155px 65px;
  margin: 0 46px;
  border-top: 2px solid var(--theme-line);
}

.footer-kicker {
  display: flex;
  gap: 15px;
  align-items: center;
  padding-left: 10px;
}

.footer-symbol {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 21px;
  color: #fff;
  background: var(--theme-deep);
  box-shadow: 0 9px 20px rgba(var(--theme-shadow-rgb), 0.2);
  transform: rotate(-5deg);
}

.footer-symbol svg {
  width: 46px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.7;
}

.footer-symbol .symbol-ring {
  fill: none;
}

.footer-symbol .symbol-dot {
  fill: currentColor;
  stroke: none;
}

.footer-kicker small,
.footer-kicker strong {
  display: block;
}

.footer-kicker small {
  color: #8a8390;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.footer-kicker strong {
  margin-top: 3px;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.notice-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid #e5dfea;
  padding-left: 30px;
}

.notice-list p {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 5px 0;
  font-size: 14px;
  letter-spacing: -0.025em;
}

.notice-list p span {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--theme-primary);
  font-size: 11px;
  font-weight: 950;
}

.notice-list p b {
  font-weight: 750;
}

.footer-band {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
  margin-inline: -46px;
  padding: 0 46px;
  color: #fff;
  background: linear-gradient(100deg, var(--theme-deep), var(--theme-primary) 52%, var(--theme-footer));
}

.footer-band span {
  opacity: 0.48;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.footer-band span:last-child {
  text-align: right;
}

.footer-band strong {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

/* 세로형 모바일 공유 이미지 */
.preview-stage {
  position: relative;
  top: 0;
  align-items: flex-start;
}

.poster-frame {
  height: auto;
}

.poster {
  display: flex;
  height: auto;
  min-height: 1920px;
  flex-direction: column;
}

.poster-header {
  min-height: 330px;
  flex: 0 0 330px;
  padding-top: 32px;
}

.poster-logo {
  top: 31px;
  width: 108px;
  height: 108px;
}

.coach-label {
  min-height: 55px;
  font-size: 26px;
}

.greeting-ribbon p {
  font-size: 21px;
}

.poster-status-badge {
  margin-top: 17px;
  padding: 8px 18px;
  border: 1px solid #ddd5e6;
  border-radius: 100px;
  color: #706879;
  background: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 900;
}

.poster-status-badge.is-confirmed {
  border-color: color-mix(in srgb, var(--theme-primary) 34%, #fff);
  color: var(--theme-deep);
  background: color-mix(in srgb, var(--theme-primary) 9%, #fff);
}

.poster-schedules,
.poster-schedules[data-count="1"],
.poster-schedules[data-count="2"],
.poster-schedules[data-count="3"] {
  display: flex;
  min-height: 0;
  flex: 1 0 auto;
  flex-direction: column;
  gap: 32px;
  padding: 10px 56px 44px;
}

.poster-schedules[data-count="3"] .poster-schedule-card:last-child {
  grid-column: auto;
}

.poster-schedules[data-count] .poster-schedule-card {
  display: grid;
  min-height: 850px;
  grid-template-columns: 1fr;
  grid-template-rows: 108px 555px minmax(185px, auto);
  flex: 0 0 auto;
  border-width: 3px;
  border-radius: 32px;
}

.poster-schedules[data-count="1"] .poster-schedule-card {
  min-height: 1050px;
  flex: 1 0 auto;
  grid-template-columns: 1fr;
  grid-template-rows: 118px 620px minmax(240px, auto);
}

.poster-schedules[data-count] .card-heading {
  padding-inline: 36px;
}

.poster-schedules[data-count] .card-kicker {
  font-size: 14px;
}

.poster-schedules[data-count] .card-heading h3 {
  font-size: 40px;
}

.poster-schedules[data-count] .time-badge {
  padding: 12px 20px;
  font-size: 23px;
}

.poster-schedules[data-count] .poster-calendar {
  align-content: center;
  padding: 24px 46px 30px;
  border-right: 0;
  border-bottom: 2px solid #eee9f2;
}

.poster-schedules[data-count] .poster-weekday {
  height: 46px;
  font-size: 23px;
}

.poster-schedules[data-count] .poster-date {
  width: 67px;
  height: 67px;
  font-size: 28px;
}

.poster-schedules[data-count] .poster-date.is-cancelled > b {
  font-size: 62px;
}

.poster-schedules[data-count] .poster-holiday-mark {
  top: 0;
  right: -1px;
  width: 23px;
  height: 23px;
  font-size: 12px;
}

.poster-schedules[data-count] .lesson-summary {
  justify-content: center;
  padding: 28px 38px 32px;
}

.poster-schedules[data-count] .lesson-summary-label {
  font-size: 23px;
}

.poster-schedules[data-count] .lesson-summary-label i {
  width: 35px;
  height: 35px;
  font-size: 19px;
}

.poster-schedules[data-count] .lesson-days,
.poster-schedules[data-count] .lesson-days.is-dense {
  margin-top: 14px;
  font-size: 32px;
  line-height: 1.48;
}

.poster-schedules[data-count] .lesson-days.is-dense {
  font-size: 27px;
}

.poster-schedules[data-count] .cancelled-summary {
  margin-top: 17px;
  padding-top: 15px;
  font-size: 21px;
}

.poster-schedules[data-count] .cancelled-summary i {
  width: 27px;
  height: 27px;
  font-size: 18px;
}

.poster-schedules[data-count] .cancelled-summary b {
  font-size: 22px;
}

.poster-schedules[data-count] .lesson-count {
  margin-top: 16px;
  font-size: 16px;
}

.empty-poster-schedules {
  min-height: 1080px;
}

.poster-footer {
  min-height: 260px;
  flex: 0 0 260px;
  grid-template-rows: 185px 75px;
}

.footer-kicker strong {
  font-size: 24px;
}

.notice-list p {
  font-size: 17px;
}

.footer-band strong {
  font-size: 20px;
}

.preview-hint {
  margin: 12px 0 0;
  color: #756e7c;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 13px 17px;
  border-radius: 13px;
  color: #fff;
  background: #171222;
  box-shadow: 0 15px 38px rgba(23, 18, 34, 0.25);
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: minmax(385px, 0.92fr) minmax(480px, 1.08fr);
  }

  .editor {
    padding-inline: 24px;
  }

  .saved-state {
    display: none;
  }
}

@media (max-width: 860px) {
  body {
    background: #fbfafc;
  }

  .topbar {
    min-height: 64px;
    padding-inline: 16px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .brand small,
  .desktop-only {
    display: none;
  }

  .button-primary {
    min-height: 42px;
    padding-inline: 13px;
  }

  .mobile-tabs {
    position: sticky;
    z-index: 45;
    top: 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 8px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(15px);
  }

  .mobile-tab {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    color: #7e7687;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 900;
    cursor: pointer;
  }

  .mobile-tab.is-active {
    color: #fff;
    background: var(--ink);
  }

  .workspace {
    display: block;
    min-height: 0;
  }

  .editor,
  .preview-pane {
    width: 100%;
  }

  .editor {
    padding: 27px 16px 50px;
    border-right: 0;
  }

  .workspace[data-mobile-view="preview"] .editor,
  .workspace[data-mobile-view="edit"] .preview-pane {
    display: none;
  }

  .section-heading {
    display: block;
    margin-bottom: 20px;
  }

  .section-heading h1 {
    font-size: 1.65rem;
  }

  .step-pill {
    display: inline-block;
    margin-top: 12px;
  }

  .panel {
    padding: 18px;
    border-radius: 18px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: auto;
  }

  .mobile-reset {
    display: inline-flex;
    width: 100%;
  }

  .preview-pane {
    min-height: calc(100vh - 122px);
    padding: 24px 12px 38px;
  }

  .preview-toolbar {
    padding-inline: 4px;
  }

  .preview-stage {
    position: relative;
    top: 0;
    border-radius: 13px;
  }

  .preview-hint {
    padding: 0 12px;
  }
}

@media (max-width: 520px) {
  .top-actions .button svg {
    display: none;
  }

  .schedule-summary {
    grid-template-columns: auto 1fr auto;
  }

  .selected-count {
    display: none;
  }

  .schedule-settings-row {
    grid-template-columns: 1fr;
  }

  .schedule-settings-row .enable-control {
    align-items: initial;
  }

  .preview-toolbar {
    align-items: flex-end;
  }

  .preview-toolbar .eyebrow {
    display: none;
  }

  .preview-toolbar h2 {
    font-size: 1rem;
  }

  .preview-actions {
    gap: 6px;
  }

  .button-dark {
    padding-inline: 12px;
  }

  .date-chip-grid {
    gap: 4px;
  }

  .date-state-legend {
    flex-wrap: wrap;
  }

  .date-state-legend small {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* 공유 조회와 관리자 편집은 동일한 월별 캘린더를 사용합니다. */
[hidden] { display: none !important; }
.cloud-panel { max-width: 1320px; margin: 24px auto; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.cloud-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.cloud-heading h1 { font-size: 1.45rem; margin: 0 0 6px; letter-spacing: -.04em; }
.cloud-heading p { font-size: .95rem; margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.cloud-heading .is-error { color: #b52d3e; }
.cloud-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cloud-controls .field { min-width: 180px; }
.cloud-panel .field > span { font-size: .875rem; }
.cloud-panel input, .cloud-panel select { font-size: 1rem; }
.public-link-row { display: flex; align-items: flex-end; gap: 10px; margin-top: 18px; }
.public-link-row .field { flex: 1; }
.public-link-row input { color: #656071; font-size: .875rem; }
#authArea { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
#authDetails summary { font-weight: 800; cursor: pointer; padding-block: 8px; }
.login-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 12px; }
.login-form p { grid-column: 1 / -1; font-size: .875rem; color: var(--muted); margin: 0; }
.signed-in-area { display: flex; justify-content: space-between; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.admin-cloud-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.public-empty { max-width: 760px; margin: 30px auto; padding: 50px 24px; text-align: center; color: var(--muted); background: #fff; border-radius: 18px; }
body[data-mode="public"] .editor, body[data-mode="public"] .mobile-tabs, body[data-mode="public"] #resetButton { display: none; }
body[data-mode="public"] .workspace { display: block; min-height: 0; max-width: 760px; margin-inline: auto; }
body[data-mode="public"] .workspace .preview-pane { display: block; padding: 24px 16px; }
body[data-mode="public"][data-public-ready="false"] .workspace { display: none; }
body[data-mode="public"] .poster-date:disabled { cursor: default; opacity: 1; }
.editor.is-confirmed .basics-panel { pointer-events: auto; }
@media (max-width: 860px) {
  .cloud-panel { margin: 14px 12px; padding: 18px; }
  .cloud-heading { flex-wrap: wrap; }
  .cloud-heading h1 { font-size: 1.3rem; }
  .cloud-controls .field { flex: 1; min-width: 140px; }
  .login-form { grid-template-columns: 1fr; }
  .login-form p { grid-column: auto; }
  .admin-cloud-actions .button { flex: 1 1 42%; }
  .public-empty { margin-inline: 12px; }
  .public-link-row { flex-wrap: wrap; }
  .public-link-row .field { min-width: 200px; }
  .confirm-panel { flex-wrap: wrap; }
}
