html.chp-project-shell,
body.chp-project-shell {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

body.chp-project-shell {
  margin: 0;
  padding: 0;
  background: #ffffff;
}

body.chp-project-shell .site-main.chp-project-main {
  display: block;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

body.chp-project-shell .skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 8px 10px;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-150%);
}

body.chp-project-shell .skip-link:focus {
  transform: translateY(0);
}

html.chp-board-page,
body.chp-board-page {
  height: 100%;
  overflow: hidden;
}

body.chp-board-page {
  margin: 0;
}

html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
}

.chp-board {
  --chp-bg: #000000;
  --chp-paper: #ffffff;
  --chp-text: #111111;
  --chp-muted: #444444;
  --chp-line: transparent;
  --chp-strong-line: #111111;
  --chp-focus: #111111;
  --chp-glass: rgba(255, 255, 255, 0.56);
  --chp-glass-strong: rgba(255, 255, 255, 0.72);
  --chp-glass-field: rgba(255, 255, 255, 0.5);
  --chp-script-width: 480px;
  --chp-note-gap: 18px;
  --chp-note-width: clamp(132px, calc((100vw - var(--chp-script-width)) / 2 - var(--chp-note-gap) - 8px), 260px);
  height: 100dvh;
  overflow: hidden;
  background: var(--chp-bg);
  color: var(--chp-text);
  font-size: 14px;
}

.chp-board *,
.chp-board *::before,
.chp-board *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

.chp-board button,
.chp-board input,
.chp-board select,
.chp-board textarea {
  font: inherit;
}

.chp-board button {
  cursor: pointer;
}

.chp-board button:focus-visible,
.chp-board input:focus-visible,
.chp-board select:focus-visible,
.chp-board textarea:focus-visible {
  outline: 2px solid var(--chp-focus);
  outline-offset: 3px;
}

.chp-board [hidden] {
  display: none !important;
}

.chp-board__app {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  background: var(--chp-bg);
}

.chp-board__app > * {
  transition: filter .2s ease, opacity .2s ease;
}

.chp-board.is-profile-gate .chp-board__app > :not(.chp-modal) {
  filter: blur(8px);
  opacity: .72;
  pointer-events: none;
  user-select: none;
}

.chp-menu-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 90;
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  border: 0;
  background: var(--chp-paper);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background-color .2s ease, transform .2s ease;
}

.chp-menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--chp-text);
}

.chp-notes-add {
  position: fixed;
  top: 16px;
  right: 56px;
  z-index: 90;
  min-height: 30px;
  max-width: 140px;
  overflow: hidden;
  padding: 0 9px;
  border: 0;
  background: var(--chp-paper);
  color: var(--chp-text);
  font-size: 14px;
  line-height: 30px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chp-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: block;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.chp-board.is-menu-open .chp-menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.chp-controls {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  width: min(320px, 84vw);
  align-items: stretch;
  flex-direction: column;
  gap: 10px;
  padding: 68px 18px 18px;
  background: var(--chp-glass);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  transform: translateX(100%);
  transition: transform .2s ease;
}

.chp-controls > .chp-feature-nav,
.chp-controls > .chp-scenes--menu,
.chp-controls > .chp-schedule-list {
  width: min(200px, 100%);
  max-width: 200px;
}

.chp-board.is-menu-open .chp-controls {
  transform: translateX(0);
}

.chp-profile-chip,
.chp-feature-nav button,
.chp-mode-trigger,
.chp-mode-options,
.chp-media-filter,
.chp-scenes button {
  background: var(--chp-paper);
  color: var(--chp-text);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, opacity .2s ease, transform .2s ease;
}

.chp-profile-chip {
  display: inline-flex;
  max-width: 200px;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  font-size: 14px;
}

.chp-profile-chip [data-profile-label] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chp-feature-nav {
  display: grid;
  gap: 6px;
  width: min(200px, 100%);
  margin-bottom: 4px;
}

.chp-feature-nav button {
  display: block;
  min-height: 30px;
  max-width: 200px;
  overflow: hidden;
  padding: 0 9px;
  border: 0;
  font-size: 14px;
  line-height: 30px;
  text-overflow: ellipsis;
  text-align: left;
  white-space: nowrap;
}

.chp-feature-nav button:hover,
.chp-feature-nav button.is-active {
  background: var(--chp-text);
  color: var(--chp-paper);
}

.chp-schedule-list {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}

.chp-schedule-list--desktop {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 40;
  width: min(200px, calc((100vw - 760px) / 2 - 32px));
  max-width: 200px;
  margin-top: 0;
  align-content: start;
}

.chp-schedule-list--menu {
  display: none;
}

.chp-schedule-list__title {
  color: var(--chp-muted);
  font-size: 12px;
}

.chp-schedule-list button {
  display: flex;
  width: 100%;
  max-width: 200px;
  min-height: 26px;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  padding: 2px 8px 0;
  border: 0;
  background: var(--chp-paper);
  color: var(--chp-text);
  font-size: 14px;
  line-height: 24px;
  text-overflow: ellipsis;
  text-align: left;
  white-space: nowrap;
}

.chp-schedule-list__date {
  flex: 0 0 auto;
  overflow: hidden;
  color: #8f8f8f;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chp-schedule-list button strong {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chp-schedule-list p {
  margin: 0;
  color: var(--chp-muted);
  font-size: 11px;
}

.chp-profile-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--profile-color, transparent);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.chp-mode-dropdown {
  position: relative;
  z-index: 3;
}

.chp-mode-trigger {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: inherit;
  font-size: 14px;
}

.chp-mode-trigger span {
  color: var(--chp-muted);
}

.chp-mode-trigger strong {
  font-weight: 600;
}

.chp-mode-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  min-width: 128px;
  overflow: hidden;
  padding: 4px;
  background: var(--chp-glass-strong);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
}

.chp-mode-dropdown.is-open .chp-mode-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chp-mode-options button {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  text-align: left;
  transition: background-color .2s ease, color .2s ease;
}

.chp-mode-options button:hover,
.chp-mode-options button.is-active {
  background: var(--chp-text);
  color: var(--chp-paper);
}

.chp-media-filter {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  font-size: 14px;
}

.chp-media-filter span {
  color: var(--chp-muted);
}

.chp-media-filter select {
  border: 0;
  background: transparent;
  color: inherit;
}

.chp-scenes {
  display: flex;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 40;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.chp-scenes--menu {
  position: static;
  display: none;
}

.chp-scenes button {
  min-height: 26px;
  flex: 0 0 auto;
  max-width: 200px;
  overflow: hidden;
  padding: 2px 8px 0px;
  background: var(--chp-paper);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1;
}

.chp-stage {
  position: relative;
  box-sizing: border-box;
  width: min(var(--chp-script-width), 100%);
  height: 100dvh;
  margin: 0 auto;
  overflow-x: visible;
  overflow-y: scroll;
  padding: 0 16px 120px;
  background: var(--chp-paper);
  scrollbar-gutter: stable;
  font-family: "BookK";
}

.chp-board.is-schedule-page .chp-stage {
  width: min(760px, 100%);
  padding: 0 20px 44px;
  overflow-y: auto;
}

.chp-board.is-notes-page .chp-stage {
  padding-bottom: 44px;
  overflow-y: auto;
}

.chp-stage-title {
  margin: 0;
  padding: 100px 0 10px;
  color: var(--chp-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: center;
}

.chp-board.is-schedule-page .chp-stage-title,
.chp-board.is-notes-page .chp-stage-title {
  padding: 100px 0 54px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: center;
}

.chp-script {
  width: 100%;
  margin: 0;
  padding: 100px 0 80px;
  background: var(--chp-paper);
  box-shadow: none;
  line-height: 1.72;
  letter-spacing: .4px;
  word-break: auto-phrase;
}

.chp-schedule-page {
  width: 100%;
  min-height: 0;
  background: var(--chp-paper);
}

.chp-notes-page {
  width: 100%;
  min-height: 0;
  background: var(--chp-paper);
  font-family: "ABCDiatype", "NotoSansCJKkr", Arial, -apple-system, BlinkMacSystemFont, sans-serif;
}

.chp-notes {
  min-height: 0;
  padding-bottom: 0;
}

.chp-notes-empty {
  display: grid;
  min-height: 180px;
  align-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--chp-muted);
  font-size: 14px;
}

.chp-notes-empty p {
  margin: 0;
}

.chp-notes-empty button,
.chp-notes-list button,
.chp-notes-pagination button,
.chp-note-detail-nav button,
.chp-note-detail__actions button,
.chp-notes-editor button {
  border: 0;
  background: var(--chp-paper);
  color: var(--chp-text);
  font-size: 14px;
}

.chp-notes-empty button,
.chp-note-detail-nav button,
.chp-note-detail__actions button,
.chp-notes-editor button {
  min-height: 28px;
  padding: 0 8px;
}

.chp-notes-list {
  display: grid;
  border-top: 1px solid #d8d8d8;
}

.chp-notes-list__item {
  border-bottom: 1px solid #d8d8d8;
}

.chp-notes-list button {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 18px;
  padding: 14px 0 13px;
  text-align: left;
}

.chp-notes-list__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: baseline;
  gap: 2px;
}

.chp-notes-list__main span,
.chp-note-detail header span,
.chp-note-detail header p {
  color: var(--chp-muted);
  font-size: 12px;
}

.chp-notes-list__meta {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 6px;
}

.chp-notes-list__meta span {
  flex: 0 0 auto;
}

.chp-notes-list__main strong {
  overflow: hidden;
  color: var(--chp-text);
  font-size: 15px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chp-notes-list button small {
  flex: 0 0 auto;
  color: var(--chp-muted);
  font-size: 12px;
}

.chp-notes-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.chp-notes-pagination button {
  min-width: 24px;
  min-height: 24px;
  padding: 0 6px;
  color: var(--chp-muted);
}

.chp-notes-pagination button.is-active {
  color: var(--chp-text);
  text-decoration: underline;
}

.chp-notes-pagination button:disabled {
  opacity: .32;
  cursor: default;
}

.chp-note-detail {
  color: var(--chp-text);
}

.chp-note-detail-nav {
  display: flex;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 45;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.chp-note-detail-nav button {
  min-height: 26px;
  max-width: 200px;
  overflow: hidden;
  padding: 2px 8px 0;
  background: var(--chp-paper);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: 14px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chp-note-detail-nav button:hover {
  background: var(--chp-text);
  color: var(--chp-paper);
}

.chp-note-detail header {
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e5e5e5;
  text-align: center;
}

.chp-note-detail header h2 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}

.chp-note-detail header p {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 0;
}

.chp-note-detail__body {
  font-size: 15px;
  line-height: 1.72;
  word-break: auto-phrase;
}

.chp-note-detail__body p,
.chp-note-detail__body figure {
  margin: 0 0 16px;
}

.chp-note-detail__body img {
  display: block;
  width: 100%;
  height: auto;
}

.chp-note-detail__body a,
.chp-notes-editor__body a {
  color: #38bdf8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chp-note-detail__body strong,
.chp-notes-editor__body strong {
  font-weight: 700;
}

.chp-note-detail__body em,
.chp-notes-editor__body em {
  font-style: italic;
}

.chp-note-detail__actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 30px;
}

.chp-note-comments {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid #d8d8d8;
}

.chp-note-comments__head,
.chp-note-comment__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.chp-note-comments__head {
  margin-bottom: 16px;
}

.chp-note-comments__head strong {
  font-size: 14px;
  font-weight: 600;
}

.chp-note-comments__head span,
.chp-note-comment__author span,
.chp-note-comments__empty {
  color: var(--chp-muted);
  font-size: 12px;
}

.chp-note-comments__list {
  display: grid;
}

.chp-note-comment {
  padding: 14px 0;
  border-top: 1px solid #e5e5e5;
}

.chp-note-comment__meta strong {
  font-size: 13px;
  font-weight: 500;
}

.chp-note-comment__author,
.chp-note-comment__actions {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.chp-note-comment__actions {
  flex: 0 0 auto;
  gap: 4px;
}

.chp-note-comment__actions button,
.chp-note-comment-form--edit button {
  min-height: 24px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--chp-muted);
  font-family: inherit;
  font-size: 12px;
}

.chp-note-comment__body {
  margin-top: 8px;
  color: var(--chp-text);
  font-size: 14px;
  line-height: 1.6;
  word-break: auto-phrase;
}

.chp-note-comment__body p,
.chp-note-comments__empty {
  margin: 0;
}

.chp-note-comment-form {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.chp-note-comment-form--edit {
  margin-top: 10px;
}

.chp-note-comment-form textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 10px;
  border: 0;
  background: #f5f5f5;
  color: var(--chp-text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
}

.chp-note-comment-form button {
  justify-self: end;
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  background: var(--chp-paper);
  color: var(--chp-text);
  font-size: 14px;
}

.chp-note-comment-form--edit > div {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.chp-note-comment-form--edit button {
  min-height: 24px;
  padding: 0 4px;
  background: transparent;
  color: var(--chp-muted);
  font-size: 12px;
}

.chp-notes-overlay {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 18px;
}

.chp-notes-overlay__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.chp-notes-editor {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  max-height: min(760px, calc(100dvh - 36px));
  overflow-y: auto;
  padding: 12px;
  background: var(--chp-glass-strong);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  font-family: "ABCDiatype", "NotoSansCJKkr", Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
}

.chp-notes-editor__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.chp-notes-editor__top span {
  color: var(--chp-muted);
  font-size: 12px;
}

.chp-notes-editor form,
.chp-notes-editor label {
  display: grid;
  gap: 8px;
}

.chp-notes-editor label span {
  color: var(--chp-muted);
  font-size: 12px;
}

.chp-notes-editor input[type="text"] {
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  background: var(--chp-paper);
  color: var(--chp-text);
}

.chp-notes-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.chp-notes-editor__toolbar button {
  min-width: 32px;
  border: 1px solid transparent;
}

.chp-notes-editor__body {
  min-height: 300px;
  padding: 12px;
  border: 0;
  background: var(--chp-paper);
  color: var(--chp-text);
  font-size: 15px;
  line-height: 1.72;
  outline: none;
}

.chp-notes-editor__body p,
.chp-notes-editor__body figure {
  margin: 0 0 14px;
}

.chp-notes-editor__body img {
  display: block;
  width: 100%;
  height: auto;
}

.chp-notes-editor__actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.chp-notes-editor__actions button[type="submit"] {
  background: var(--chp-text);
  color: var(--chp-paper);
}

.chp-schedule {
  position: relative;
  padding-bottom: 0;
  color: var(--chp-text);
}

.chp-schedule__toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
}

.chp-schedule__toolbar h2 {
  margin: 0;
  min-width: 76px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-align: center;
}

.chp-schedule__toolbar button,
.chp-schedule-modal button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--chp-strong-line);
  background: var(--chp-paper);
  color: var(--chp-text);
  font-family: inherit;
  font-size: 14px;
}

.chp-schedule__toolbar button {
  width: 28px;
  border-color: transparent;
}

.chp-schedule__toolbar button:disabled {
  opacity: .32;
  cursor: default;
}

.chp-calendar {
  background: var(--chp-paper);
  font-family: "ABCDiatype", "NotoSansCJKkr", Arial, -apple-system, BlinkMacSystemFont, sans-serif;
}

.chp-calendar__weekdays,
.chp-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.chp-calendar__weekdays span {
  min-height: 30px;
  padding: 9px 7px 0;
  border-right: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
  color: var(--chp-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}

.chp-calendar__weekdays span:nth-child(7n) {
  border-right: 0;
}

.chp-calendar__cell {
  min-height: 92px;
  padding: 6px;
  border-right: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
  background: var(--chp-paper);
  transition: background-color .16s ease;
}

.chp-calendar__cell:nth-child(7n) {
  border-right: 0;
}

.chp-calendar__cell:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.chp-calendar__cell:not(.is-disabled) {
  cursor: pointer;
}

.chp-calendar__cell:not(.is-disabled):hover {
  background: #f7f7f7;
}

.chp-calendar__cell.is-outside-month {
  background: var(--chp-paper);
  color: #9a9a9a;
}

.chp-calendar__cell.is-disabled {
  background: var(--chp-paper);
  color: #b7b7b7;
}

.chp-calendar__date {
  display: inline-flex;
  width: 24px;
  height: 22px;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
}

.chp-calendar__cell.has-schedule .chp-calendar__date {
  font-weight: 700;
}

.chp-calendar__items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.chp-calendar__item {
  display: block;
  width: 9px;
  height: 9px;
  min-width: 9px;
  min-height: 0;
  flex: 0 0 9px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  background: var(--tag-color, #111111);
  border-radius: 50% !important;
  font-size: 0;
  line-height: 0;
}

.chp-schedule-overlay {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 18px;
}

.chp-schedule-overlay__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.chp-schedule-modal {
  position: relative;
  z-index: 2;
  width: min(360px, 100%);
  padding: 12px;
  border: 1px solid var(--chp-line);
  background: var(--chp-glass-strong);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  font-family: "ABCDiatype", "NotoSansCJKkr", Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  pointer-events: auto;
}

.chp-schedule-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.chp-schedule-modal__top span {
  color: var(--chp-muted);
  font-size: 13px;
}

.chp-schedule-modal__top button {
  border-color: transparent;
  background: var(--chp-text);
  color: var(--chp-paper);
}

.chp-schedule-modal h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.chp-schedule-form {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.chp-schedule-form label {
  display: grid;
  gap: 4px;
}

.chp-schedule-form label span,
.chp-schedule-form legend {
  color: var(--chp-muted);
  font-size: 13px;
}

.chp-schedule-form input[type="text"] {
  width: 100%;
  min-height: 30px;
  padding: 4px 7px;
  border: 1px solid var(--chp-line);
  background: var(--chp-glass-field);
  color: inherit;
  font-family: inherit;
  font-size: 13px;
}

.chp-schedule-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.chp-schedule-form legend {
  margin-bottom: 5px;
}

.chp-schedule-form__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chp-schedule-tag input {
  position: absolute;
  opacity: 0;
}

.chp-schedule-tag span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border: 1px solid var(--chp-line);
  background: var(--chp-glass-field);
  color: inherit;
  font-size: 13px;
}

.chp-schedule-tag span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--tag-color);
}

.chp-schedule-tag input:checked + span {
  border-color: var(--tag-color);
  box-shadow: inset 0 0 0 1px var(--tag-color);
}

.chp-schedule-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 8px;
}

.chp-schedule-form__actions button[type="submit"],
.chp-schedule-form__actions button[data-schedule-edit] {
  border-color: var(--chp-text);
  background: var(--chp-text);
  color: var(--chp-paper);
}

.chp-schedule-detail-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -4px 0 14px;
}

.chp-schedule-detail-nav button {
  width: 24px;
  min-height: 24px;
  border-color: transparent;
}

.chp-schedule-detail-nav span {
  color: var(--chp-muted);
  font-size: 12px;
}

.chp-schedule-modal dl {
  display: grid;
  gap: 7px;
  margin: 16px 0 0;
}

.chp-schedule-modal dl div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
}

.chp-schedule-modal dt {
  color: var(--chp-muted);
}

.chp-schedule-modal dd {
  margin: 0;
}

.chp-schedule-modal p {
  margin: 16px 0 0;
  line-height: 1.5;
}

.chp-scene {
  margin: 0 0 120px;
}

.chp-scene:last-child {
  margin-bottom: 0;
}

.chp-scene h2 {
  margin: 0 0 48px;
  color: var(--chp-muted);
  font-size: 14px;
  font-weight: 700;
  margin-left: 52px;
}

.chp-block {
  position: relative;
  margin: 0 0 12px;
  font-size: 14px;
  transition: background-color .2s ease;
}

.chp-block--dialogue {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
}

.chp-block--stage {
  display: block;
  padding-right: 28px;
  color: var(--chp-text);
}

.chp-block--margin {
  display: block;
  height: var(--chp-margin, 48px);
  margin: 0;
  pointer-events: none;
}

.chp-block:hover,
.chp-block.is-active {
  background: rgba(0, 0, 0, 0.035);
}

.chp-block__speaker {
  color: var(--chp-muted);
  font-size: 14px;
  font-weight: 600;
}

.chp-block__text {
  display: block;
  min-width: 0;
}

.chp-block__text mark {
  background: rgba(0, 0, 238, 0.12);
  color: inherit;
}

.chp-block__count {
  min-width: 16px;
  height: 16px;
  align-self: start;
  background: rgba(21, 21, 21, 0.88);
  color: #ffffff;
  font-size: 10px;
  line-height: 17px;
  text-align: center;
  font-family: "ABCDiatype";
  font-weight: 500;
}

.chp-block--stage .chp-block__count {
  position: absolute;
  top: 6px;
  right: 4px;
}

.chp-note-layer {
  display: none;
}

@media (min-width: 801px) {
  .chp-note-layer {
    position: fixed;
    inset: 0;
    display: block;
    pointer-events: none;
  }
}

.chp-note-card {
  position: absolute;
  top: var(--note-top);
  width: var(--chp-note-width);
  padding: 8px;
  border: 1px solid var(--chp-line);
  background: var(--chp-glass);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: none;
  font-size: 14px;
  line-height: 1.45;
  pointer-events: auto;
  font-family: "ABCDiatype", "NotoSansCJKKr", Arial, -apple-system, BlinkMacSystemFont, sans-serif;
}

.chp-note-card--left {
  right: calc(50% + (var(--chp-script-width) / 2) + var(--chp-note-gap));
  transform: translateX(var(--note-x));
}

.chp-note-card--right {
  left: calc(50% + (var(--chp-script-width) / 2) + var(--chp-note-gap));
  transform: translateX(var(--note-x));
}

.chp-note-card.is-dragging {
  z-index: 20;
  cursor: grabbing;
}

.chp-note-card__drag {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--chp-line);
  background: transparent;
}

.chp-note-card__drag::before {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--chp-muted);
}

.chp-note-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding-right: 24px;
  margin-bottom: 6px;
}

.chp-note-card__meta strong {
  font-size: 13px;
}

.chp-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 19px;
  padding: 0 6px;
  border: 1px solid var(--chp-line);
  font-size: 13px;
  line-height: 1;
}

.chp-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--tag-color);
}

.chp-note-card blockquote {
  margin: 0 0 8px;
  padding-left: 8px;
  border-left: 1px solid #666666;
  color: var(--chp-muted);
  font-size: 11px;
}

.chp-note-card p {
  margin: 12px 1px 8px;
}

.chp-note-card figure {
  margin: 8px 0;
}

.chp-note-card img {
  width: 100%;
}

.chp-note-card__actions {
  display: flex;
  gap: 4px;
  margin: 6px 0;
}

.chp-note-card__actions button,
.chp-comments button,
.chp-composer__actions button,
.chp-mobile-sheet button {
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--chp-line);
  background: #111111;
  color: #ffffff;
  font-size: 12px;
}

.chp-comments {
  border-top: 1px solid var(--chp-line);
}

.chp-comments ul {
  display: grid;
  gap: 4px;
  margin: 0 0 7px;
  padding: 0;
  list-style: none;
}

.chp-comments li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  color: var(--chp-muted);
  font-size: 13px;
}

.chp-comments li strong {
  color: var(--chp-text);
  font-weight: 400;
}

.chp-comments form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
}

.chp-comments textarea,
.chp-composer textarea,
.chp-composer input,
.chp-profile-modal input {
  width: 100%;
  padding: 5px 12px 4px 6px;
  border: 1px solid var(--chp-line);
  background: var(--chp-glass-field);
  color: inherit;
  font-size: 12px;
}

.chp-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 18px;
}

.chp-modal.is-open {
  display: grid;
}

.chp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.chp-modal--entry .chp-modal__backdrop {
  background: rgba(0, 0, 0, 0.38);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.chp-profile-modal {
  position: relative;
  z-index: 1;
  width: min(320px, 100%);
  padding: 12px;
  border: 1px solid var(--chp-line);
  background: var(--chp-glass-strong);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: none;
  font-size: 14px;
}

.chp-modal--entry .chp-profile-modal {
  width: min(360px, 100%);
}

.chp-profile-modal h2 {
  margin: 0 0 10px;
  font-size: 14px;
}

.chp-profile-modal label {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.chp-profile-modal label span {
  color: var(--chp-muted);
  font-size: 14px;
}

.chp-profile-list {
  display: grid;
  gap: 5px;
  max-height: 320px;
  overflow: auto;
}

.chp-profile-list button {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border: 1px solid var(--chp-line);
  background: var(--chp-glass-field);
  color: inherit;
  font-size: 14px;
  text-align: left;
}

.chp-composer {
  position: fixed;
  z-index: 70;
  display: none;
  padding: 0 10px 10px;
  border: 1px solid var(--chp-line);
  background: var(--chp-glass);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: none;
  font-size: 14px;
  transition: opacity .2s ease, transform .2s ease;
}

.chp-composer.is-open {
  display: block;
}

.chp-composer.is-dragging,
.chp-composer.is-dragging .chp-composer__drag {
  cursor: grabbing;
}

.chp-composer__drag {
  position: relative;
  display: block;
  width: 100%;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
}

.chp-composer__drag::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 44px;
  height: 1px;
  background: var(--chp-text);
  transform: translateX(-50%);
}

.chp-composer form {
  display: grid;
  gap: 8px;
}

.chp-composer fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.chp-composer legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.chp-composer [data-composer-media] {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chp-composer__image {
  display: grid;
  gap: 4px;
}

.chp-composer__image span {
  color: var(--chp-muted);
  font-size: 14px;
}

.chp-media-option input {
  position: absolute;
  opacity: 0;
}

.chp-media-option span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--chp-line);
  background: var(--chp-glass-field);
  font-size: 14px;
}

.chp-media-option input:checked + span {
  border-color: var(--tag-color);
  box-shadow: inset 0 0 0 1px var(--tag-color);
}

.chp-composer__tag {
  position: relative;
}

.chp-composer__tag-trigger {
  display: flex;
  width: 100%;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border: 1px solid var(--chp-line);
  background: var(--chp-glass-field);
  color: inherit;
  font-size: 14px;
  transition: background-color .2s ease;
}

.chp-composer__tag-trigger span {
  color: var(--chp-muted);
}

.chp-composer__tag-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  left: 0;
  z-index: 2;
  padding: 8px;
  background: var(--chp-glass-strong);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}

.chp-composer__tag.is-open .chp-composer__tag-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chp-composer__actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.chp-composer__actions button[type="submit"] {
  border-color: var(--chp-text);
  background: var(--chp-text);
  color: var(--chp-paper);
}

.chp-form-note,
.chp-form-error,
.chp-status {
  margin: 0;
  color: var(--chp-muted);
  font-size: 14px;
}

.chp-form-error,
.chp-status.is-error {
  color: #b91c1c;
}

.chp-status {
  position: fixed;
  right: 12px;
  bottom: 10px;
  z-index: 90;
}

.chp-status:empty {
  display: none;
}

.chp-load-error {
  max-width: 420px;
  margin: 32px auto;
  color: var(--chp-muted);
  font-size: 14px;
  line-height: 1.5;
}

.chp-load-error strong {
  display: block;
  margin-bottom: 6px;
  color: var(--chp-text);
}

.chp-mobile-sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 45;
  max-height: 34vh;
  overflow: auto;
  padding: 8px 12px 16px;
  border-top: 1px solid var(--chp-line);
  background: var(--chp-glass-strong);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  font-size: 14px;
  transition: max-height .2s ease, transform .2s ease;
}

.chp-mobile-sheet.is-expanded {
  max-height: 72vh;
}

.chp-mobile-sheet__handle {
  position: relative;
  display: block;
  width: 52px;
  height: 18px;
  margin: 0 auto 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.chp-mobile-sheet__handle::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--chp-text);
}

.chp-mobile-sheet__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.chp-mobile-sheet__top span {
  overflow: hidden;
  color: var(--chp-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chp-mobile-sheet__list {
  display: grid;
  gap: 8px;
}

.chp-mobile-note {
  padding: 9px;
  border: 1px solid var(--chp-line);
  background: var(--chp-glass-field);
}

.chp-mobile-note > div {
  display: flex;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 14px;
}

.chp-mobile-note > div span {
  color: var(--chp-muted);
}

.chp-mobile-note p {
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 1000px) {
  .chp-schedule-list--desktop {
    display: none;
  }

  .chp-schedule-list--menu {
    display: grid;
  }
}

@media (max-width: 800px) {
  .chp-scenes--desktop {
    display: none;
  }

  .chp-scenes--menu {
    display: flex;
    position: static;
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
  }

  .chp-scenes--menu button {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .chp-menu-toggle {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 90;
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    border: 0;
    background: var(--chp-paper);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background-color .2s ease, transform .2s ease;
  }

  .chp-menu-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background: var(--chp-text);
  }

  .chp-notes-add {
    top: 12px;
    right: 56px;
    max-width: 124px;
    min-height: 36px;
    line-height: 36px;
  }

  .chp-note-detail-nav {
    position: sticky;
    top: 0;
    z-index: 35;
    align-items: center;
    flex-direction: row;
    width: 100%;
    margin: -6px 0 24px;
    padding: 10px 0;
    background: var(--chp-paper);
  }

  .chp-note-detail-nav button {
    min-height: 36px;
    padding: 0 9px;
    line-height: 36px;
  }

  .chp-notes-list button {
    align-items: flex-start;
  }

  .chp-notes-list__main {
    flex-direction: column;
    gap: 4px;
  }

  .chp-menu-toggle span + span {
    margin-top: 0;
  }

  .chp-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .chp-board.is-menu-open .chp-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .chp-controls {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    width: min(300px, 82vw);
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 68px 18px 18px;
    background: var(--chp-glass);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    transform: translateX(100%);
    transition: transform .2s ease;
  }

  .chp-board.is-menu-open .chp-controls {
    transform: translateX(0);
  }

  .chp-mode-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .chp-mode-options {
    right: auto;
    left: 0;
    width: 100%;
  }

  .chp-stage {
    width: 100%;
    height: 100dvh;
    padding: 0 16px 180px;
  }

  .chp-board.is-schedule-page .chp-stage {
    width: 100%;
    padding: 0 10px 120px;
  }

  .chp-board.is-schedule-page .chp-stage-title,
  .chp-board.is-notes-page .chp-stage-title {
    padding: 80px 0 36px;
    font-size: 14px;
  }

  .chp-script {
    padding: 20px 0 70px;
  }

  .chp-schedule__toolbar {
    align-items: center;
    flex-direction: row;
    gap: 14px;
    margin-bottom: 20px;
  }

  .chp-schedule__toolbar h2 {
    font-size: 14px;
  }

  .chp-calendar__weekdays span {
    min-height: 26px;
    padding: 8px 4px 0;
    font-size: 10px;
  }

  .chp-calendar__cell {
    min-height: 72px;
    padding: 4px;
  }

  .chp-calendar__date {
    width: 20px;
    height: 18px;
    font-size: 11px;
  }

  .chp-calendar__item {
    width: 9px;
    height: 9px;
    min-width: 9px;
    min-height: 0;
    flex: 0 0 9px;
    aspect-ratio: 1 / 1;
    padding: 0;
    font-size: 0;
    line-height: 0;
  }

  .chp-calendar__item span {
    display: none;
  }

  .chp-block--dialogue {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .chp-composer {
    display: none !important;
  }
}
