@charset "UTF-8";

.write-page-main {
  padding: 18px 0 80px;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.write-page-main .write-shell.page-inner {
  width: min(100%, 1260px);
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
}

.write-form {
  margin: 0 auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.write-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0 18px;
  border-bottom: 1px solid #ececec;
}

.write-toolbar-left,
.write-toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.write-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d8dce2;
  border-radius: 999px;
  background: #ffffff;
  color: #3a3f45;
}

.write-pill input,
.write-pill select {
  border: 0;
  background: transparent;
  font-size: 0.79rem;
  color: #2b3137;
  outline: none;
  padding: 0 0 0 5px;
  min-width: 120px;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.write-subcategory-pill {
  gap: 6px;
  min-width: 168px;
}

.write-subcategory-label {
  color: #6a7380;
  font-size: 0.73rem;
  font-weight: 600;
}

.write-subcategory-pill select {
  min-width: 124px;
}

.write-subcategory-pill select:disabled {
  color: #9aa3af;
  cursor: not-allowed;
}

.write-pill select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.write-pill input {
  min-width: 170px;
}

.write-quick-publish-btn {
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d8dce2;
  background: #ffffff;
  color: #2e333a;
  font-size: 0.79rem;
  font-weight: 600;
  line-height: 1;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  padding: 0 14px;
  cursor: pointer;
}

.write-quick-publish-btn.is-active {
  background: #8c4141;
  border-color: #8c4141;
  color: #ffffff;
  font-weight: 600;
}

.write-quick-publish-btn:focus-visible {
  outline: 2px solid rgba(140, 65, 65, 0.3);
  outline-offset: 1px;
}

.write-schedule-pill {
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d8dce2;
  background: #ffffff;
  color: #2e333a;
  font-size: 0.79rem;
  font-weight: 600;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.write-schedule-caption {
  font-size: 0.75rem;
  color: #697380;
  font-weight: 600;
}

.write-schedule-pill.is-selected .write-schedule-caption {
  color: #8c4141;
  font-weight: 600;
}

.write-schedule-icon {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1px solid #7d8792;
  border-radius: 3px;
  box-sizing: border-box;
}

.write-schedule-pill .write-schedule-icon {
  margin-left: auto;
  flex: 0 0 14px;
}

.write-schedule-icon::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 14px;
  height: 4px;
  border-radius: 3px 3px 0 0;
  background: #7d8792;
}

.write-schedule-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 8px;
  height: 1px;
  background: #7d8792;
}

.write-schedule-pill:hover {
  border-color: #cbd2db;
  background: #fbfcfe;
}

.write-schedule-pill.is-selected {
  border-color: #b9c4d1;
  background: #f8fbff;
}

.write-schedule-pill:focus-visible {
  outline: 2px solid rgba(64, 97, 156, 0.22);
  outline-offset: 1px;
}

.write-schedule-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.write-schedule-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
}

.write-schedule-modal.is-open {
  display: flex;
}

.write-schedule-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 22, 28, 0.42);
}

.write-schedule-modal-panel {
  position: relative;
  width: min(92vw, 360px);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(18, 24, 34, 0.24);
  border: 1px solid rgba(140, 65, 65, 0.12);
  overflow: hidden;
}

.write-schedule-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  background: linear-gradient(180deg, #8c4141 0%, #9d5656 100%);
  color: #ffffff;
}

.write-schedule-modal-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.write-schedule-modal-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
}

.write-schedule-modal-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.write-schedule-field {
  display: grid;
  gap: 7px;
  font-size: 0.78rem;
  color: #56606b;
}

.write-schedule-field input {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #d8dce2;
  background: #ffffff;
  color: #2e333a;
  padding: 0 12px;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.write-schedule-field input:focus {
  outline: none;
  border-color: #8c4141;
  box-shadow: 0 0 0 3px rgba(140, 65, 65, 0.12);
}

.write-schedule-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 18px 18px;
}

.write-schedule-modal-button {
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d8dce2;
  padding: 0 14px;
  font-size: 0.78rem;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  cursor: pointer;
}

.write-schedule-modal-button.is-secondary {
  background: #ffffff;
  color: #4c5560;
}

.write-schedule-modal-button.is-primary {
  border-color: #8c4141;
  background: #8c4141;
  color: #ffffff;
  font-weight: 600;
}

.write-video-source-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 125;
}

.write-video-source-modal.is-open {
  display: flex;
}

.write-video-source-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 22, 28, 0.42);
}

.write-video-source-panel {
  position: relative;
  width: min(92vw, 420px);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(18, 24, 34, 0.24);
  border: 1px solid rgba(140, 65, 65, 0.12);
  overflow: hidden;
}

.write-video-source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  background: linear-gradient(180deg, #8c4141 0%, #9d5656 100%);
  color: #ffffff;
}

.write-video-source-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.write-video-source-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
}

.write-video-source-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.write-video-source-local {
  height: 42px;
  border-radius: 10px;
  border: 1px solid #d8dce2;
  background: #f8fbff;
  color: #304455;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.write-video-source-url-field {
  display: grid;
  gap: 7px;
  font-size: 0.78rem;
  color: #56606b;
}

.write-video-source-url-field input {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #d8dce2;
  background: #ffffff;
  color: #2e333a;
  padding: 0 12px;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.write-video-source-url-field input:focus {
  outline: none;
  border-color: #8c4141;
  box-shadow: 0 0 0 3px rgba(140, 65, 65, 0.12);
}

.write-video-source-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 18px 18px;
}

.write-video-source-button {
  height: 34px;
  border-radius: 999px;
  border: 1px solid #d8dce2;
  padding: 0 14px;
  font-size: 0.78rem;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  cursor: pointer;
}

.write-video-source-button.is-secondary {
  background: #ffffff;
  color: #4c5560;
}

.write-video-source-button.is-primary {
  border-color: #8c4141;
  background: #8c4141;
  color: #ffffff;
  font-weight: 600;
}

.write-map-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 126;
}

.write-map-modal.is-open {
  display: flex;
}

.write-map-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 22, 28, 0.42);
}

.write-map-panel {
  position: relative;
  width: min(92vw, 360px);
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(18, 24, 34, 0.24);
  border: 3px solid #8c4141;
  overflow: hidden;
}

.write-map-link-row {
  padding: 10px 12px;
}

.write-map-link-input {
  width: 100%;
  height: 38px;
  border: 1px solid #dbe0e6;
  background: #ffffff;
  color: #333333;
  padding: 0 9px;
  font-size: 0.77rem;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.write-map-link-input:focus {
  outline: none;
  border-color: #9ea7b3;
  box-shadow: none;
}

.write-map-actions {
  margin-top: -5px;
  padding: 0 12px 14px;
}

.write-link-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 8px;
}

.write-link-actions.is-single {
  display: block;
  padding: 0;
}

.write-link-actions.is-single .write-map-attach-button {
  display: block;
  width: 100%;
}

.write-link-secondary-button {
  height: 40px;
  border: 1px solid #d7dde5;
  background: #ffffff;
  color: #4b5663;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  cursor: pointer;
}

.write-link-secondary-button:hover {
  background: #f6f8fb;
}

.write-map-attach-button {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: #8c4141;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  cursor: pointer;
}

.write-map-attach-button:focus-visible {
  outline: 2px solid rgba(64, 97, 156, 0.22);
  outline-offset: 2px;
}

.write-map-link-input:focus-visible {
  outline: none;
}

.write-pill-select {
  position: relative;
  padding-right: 26px;
}

.write-pill-select::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid #666c73;
  border-bottom: 1px solid #666c73;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

.write-category-custom {
  position: relative;
  min-width: 160px;
  padding-right: 10px;
}

.write-category-custom::after {
  right: 12px;
}

.write-category-trigger {
  border: 0;
  background: transparent;
  font-size: 0.79rem;
  font-weight: 600;
  color: #2b3137;
  outline: none;
  padding: 0 22px 0 5px;
  min-width: 0;
  width: 100%;
  text-align: left;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  cursor: pointer;
}

.write-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.write-category-menu {
  position: absolute;
  left: -1px;
  top: calc(100% + 8px);
  min-width: calc(100% + 2px);
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid #d8dce2;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 30;
}

.write-category-custom.is-open .write-category-menu {
  display: block;
}

.write-category-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 7px 12px;
  font-size: 0.86rem;
  color: #242a31;
  cursor: pointer;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.write-category-option:hover,
.write-category-option.is-selected {
  background: #f3f6fb;
}

.write-actions-custom {
  position: relative;
  min-width: 120px;
  padding-right: 10px;
}

.write-actions-custom::after {
  right: 12px;
}

.write-actions-trigger {
  border: 0;
  background: transparent;
  font-size: 0.79rem;
  font-weight: 600;
  color: #2b3137;
  outline: none;
  padding: 0 22px 0 5px;
  min-width: 0;
  width: 100%;
  text-align: left;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  cursor: pointer;
}

.write-actions-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 118px;
  margin: 0;
  padding: 10px 0;
  background: #ffffff;
  border: 1px solid #d8dce2;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 30;
}

.write-actions-custom.is-open .write-actions-menu {
  display: block;
}

.write-actions-custom.is-open.has-links .write-actions-menu {
  min-width: 240px;
}

.write-actions-menu .write-actions-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  font-size: 0.84rem;
  line-height: 1.2;
  color: #242a31;
  padding: 8px 14px 8px 15px;
  cursor: pointer;
  user-select: none;
  text-align: left;
  writing-mode: horizontal-tb;
}

.write-actions-menu .write-actions-checkbox {
  width: 14px;
  height: 14px;
  max-width: 14px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  flex: 0 0 14px;
  order: 0;
  accent-color: #8c4141;
}

.write-actions-menu .write-actions-option span {
  display: inline-block;
  order: 1;
  margin: 0;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
  text-align: left;
}

.write-actions-links {
  margin-top: 6px;
  padding: 6px 12px 10px;
  border-top: 1px solid #eef1f4;
}

.write-actions-links:empty {
  display: none;
}

.write-actions-link-item {
  padding: 6px 0;
}

.write-actions-link-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.write-actions-link-name {
  font-size: 0.78rem;
  color: #4f5863;
}

.write-actions-link-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.write-actions-link-edit {
  height: 22px;
  border: 1px solid #d0d6dd;
  border-radius: 999px;
  background: #ffffff;
  color: #38404a;
  font-size: 0.72rem;
  padding: 0 8px;
  cursor: pointer;
}

.write-actions-link-badge {
  font-size: 0.72rem;
  color: #8c4141;
  font-weight: 600;
}

.write-actions-link-editor {
  display: none;
  margin-top: 6px;
  gap: 6px;
}

.write-actions-link-item.is-editing .write-actions-link-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}

.write-actions-link-input {
  width: 100%;
  border: 1px solid #d0d6dd;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.74rem;
  color: #2c333b;
  outline: none;
}

.write-actions-link-input:focus {
  border-color: #8c4141;
}

.write-actions-link-save,
.write-actions-link-cancel {
  height: 30px;
  border-radius: 8px;
  border: 1px solid #d0d6dd;
  background: #ffffff;
  color: #38404a;
  font-size: 0.72rem;
  padding: 0 8px;
  cursor: pointer;
}

.write-actions-link-save {
  border-color: #8c4141;
  color: #8c4141;
}

.write-btn {
  height: 34px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.write-btn-light {
  border-color: #cfd4dc;
  color: #2e333a;
  background: #ffffff;
}

.write-btn-primary {
  border-color: #8c4141;
  color: #ffffff;
  background: #8c4141;
}

.write-draft-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 92px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.75rem;
  font-weight: 600;
  color: #697380;
  opacity: 0;
  transition: opacity 0.18s ease, color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.write-draft-status.is-visible {
  opacity: 1;
  color: #8c4141;
  border-color: rgba(140, 65, 65, 0.18);
  background: rgba(140, 65, 65, 0.06);
}

.write-draft-status.is-saved {
  color: #2e333a;
  border-color: rgba(207, 212, 220, 0.9);
  background: #ffffff;
}

.write-title-block {
  position: relative;
  width: min(100%, 888px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding: 26px 108px 28px 0;
  border-bottom: 1px solid #ececec;
}

.write-title-emoji-anchor {
  position: absolute;
  top: 24px;
  right: 0;
  z-index: 20;
  width: min(92vw, 340px);
}

.write-title-emoji-trigger {
  height: 34px;
  border: 1px solid #cfd6df;
  border-radius: 0;
  background: #ffffff;
  color: #34404d;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0 12px;
  cursor: pointer;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.write-title-emoji-trigger:hover {
  border-color: #b9c3cf;
  background: #f8fafc;
}

.write-title-emoji-trigger:focus-visible {
  outline: 2px solid rgba(52, 64, 77, 0.24);
  outline-offset: 1px;
}

.write-title-emoji-panel {
  position: fixed;
  top: 88px;
  right: 16px;
  width: min(92vw, 560px);
  border: 1px solid #d7dde5;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(18, 24, 34, 0.16);
  padding: 8px;
  display: none;
  z-index: 180;
}

.write-title-emoji-panel.is-open {
  display: block;
}

.write-title-emoji-compose {
  border: 1px solid #dbe1ea;
  background: #f7f9fc;
  padding: 8px;
  margin-bottom: 8px;
}

.write-title-emoji-compose-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  width: 100%;
}

.write-title-emoji-compose-row:last-child {
  margin-bottom: 0;
}

.write-title-emoji-compose-input {
  width: 100%;
  min-width: 0;
  height: 32px;
  border: 1px solid #d2dae5;
  background: #ffffff;
  padding: 0 9px;
  font-size: 0.76rem;
  color: #2a3139;
  outline: none;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.write-title-emoji-compose-btn,
.write-title-emoji-position-btn,
.write-title-emoji-apply-btn {
  flex: 1;
  height: 32px;
  border: 1px solid #d2dae5;
  background: #ffffff;
  color: #2f3a47;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0 10px;
  cursor: pointer;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.write-title-emoji-compose-btn {
  min-width: 0;
  padding: 0;
  font-size: 0.95rem;
}

.write-title-emoji-compose-row.is-control-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.write-title-emoji-position-btn.is-active {
  border-color: #8c4141;
  color: #8c4141;
  background: #fff6f6;
}

.write-title-emoji-apply-btn {
  min-width: 0;
  border-color: #8c4141;
  color: #ffffff;
  background: #8c4141;
}

.write-title-emoji-compose-preview {
  border: 1px dashed #cfd8e3;
  background: #ffffff;
  color: #4a5767;
  min-height: 28px;
  padding: 6px 8px;
  font-size: 0.75rem;
  line-height: 1.35;
}

.write-sticker-compose {
  border: 1px solid #dbe1ea;
  background: #f7f9fc;
  padding: 8px;
  margin-bottom: 8px;
}

.write-sticker-compose-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px 28px 102px;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.write-sticker-compose-preview {
  min-width: 0;
  height: 32px;
  border: 1px solid #d2dae5;
  background: #ffffff;
  color: #8a94a3;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.76rem;
  line-height: 1;
}

.write-sticker-compose-row .write-title-emoji-compose-btn {
  width: 28px;
  min-width: 28px;
  height: 32px;
  padding: 0;
  flex: none;
}

.write-sticker-compose-row .write-title-emoji-apply-btn {
  width: 100%;
  min-width: 0;
  height: 32px;
  flex: none;
}

.write-title-emoji-categories {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #dbe1ea;
  background: #f6f8fb;
}

.write-title-emoji-category-btn {
  height: 50px;
  border: 0;
  border-right: 1px solid #dbe1ea;
  background: #f2f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.write-title-emoji-category-btn:nth-child(10n) {
  border-right: 0;
}

.write-title-emoji-category-btn.is-active {
  background: #ffffff;
}

.write-title-emoji-category-thumb {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.write-title-emoji-search {
  width: 100%;
  height: 34px;
  border: 1px solid #d5dce5;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.78rem;
  color: #2a3139;
  outline: none;
  margin-bottom: 8px;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.write-title-emoji-search:focus {
  border-color: #8c4141;
  box-shadow: 0 0 0 3px rgba(140, 65, 65, 0.14);
}

.write-title-emoji-results {
  max-height: 348px;
  margin-top: 8px;
  padding-right: 2px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 1px;
}

.write-title-emoji-item {
  border: 1px solid #e5e9ef;
  border-radius: 0;
  background: #ffffff;
  height: 54px;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.write-title-emoji-item:hover {
  background: #f6f9ff;
  border-color: #b8c8dd;
}

.write-title-emoji-thumb {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.write-title-emoji-empty {
  border: 1px dashed #d8dee6;
  border-radius: 8px;
  background: #fbfcfe;
  color: #657181;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 9px 10px;
  text-align: center;
}

.write-title-input,
.write-subtitle-input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  color: #222222;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

.write-title-input {
  font-size: 3.333rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 21px;
  resize: none;
  overflow: hidden;
  word-wrap: break-word;
  white-space: pre-wrap;
  padding: 0;
}

.write-title-input::placeholder {
  color: #cccccc;
}

.write-subtitle-input {
  font-size: 1.167rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.023em;
  color: #222222;
  resize: none;
  overflow: hidden;
  word-wrap: break-word;
  white-space: pre-wrap;
  padding: 0;
}

.write-subtitle-input::placeholder {
  color: #cccccc;
}

.write-editor-area {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 780px) 28px;
  column-gap: 80px;
  justify-content: center;
  align-items: start;
  min-height: 860px;
  padding: 22px 0 48px;
}

.write-editor-textarea {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  width: 780px;
  max-width: 100%;
  min-height: 760px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 1rem;
  line-height: 1.8;
  color: #1e2329;
  text-align: left;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

body.is-image-dragging,
body.is-image-dragging * {
  cursor: grabbing !important;
}

body.is-area-deleting,
body.is-area-deleting * {
  cursor: crosshair !important;
}

body.is-area-deleting::before {
  content: "영역 선택 삭제 중";
  position: fixed;
  top: 68px;
  right: 28px;
  z-index: 191;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(213, 85, 43, 0.7);
  background: rgba(255, 243, 237, 0.96);
  color: #b4491b;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(20, 26, 34, 0.12);
  pointer-events: none;
}

body.is-area-delete-selected::before {
  content: "선택 완료 · Del 키로 삭제";
  position: fixed;
  top: 68px;
  right: 28px;
  z-index: 191;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(213, 85, 43, 0.78);
  background: rgba(255, 240, 232, 0.98);
  color: #ab3f17;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(20, 26, 34, 0.12);
  pointer-events: none;
}

body.is-image-drag-primed,
body.is-image-drag-primed * {
  cursor: grab !important;
}

body.is-image-drag-primed::after {
  content: "이미지 드래그 준비";
  position: fixed;
  top: 100px;
  right: 28px;
  z-index: 189;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 116, 197, 0.58);
  background: rgba(238, 246, 255, 0.96);
  color: #1f5c9d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(20, 26, 34, 0.12);
  pointer-events: none;
}

body.is-image-dragging::after {
  content: "이미지 이동 중";
  position: fixed;
  top: 100px;
  right: 28px;
  z-index: 190;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 52, 0.7);
  background: rgba(255, 247, 236, 0.96);
  color: #b6591f;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(20, 26, 34, 0.12);
  pointer-events: none;
}

.write-editor-textarea.is-empty::before,
.write-editor-textarea:empty::before {
  content: attr(data-placeholder);
  color: #c6ccd3;
}

.write-editor-textarea h3 {
  margin: 12px 0;
  font-size: 1.35rem;
  line-height: 1.45;
  font-weight: 700;
  color: #232a31;
  text-align: left;
}

.write-editor-textarea h3.write-editor-title-heading,
.write-editor-textarea h3[data-title-emoji-heading='true'] {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 8px 10px;
  box-sizing: border-box;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.write-editor-textarea h3.write-editor-title-heading:hover,
.write-editor-textarea h3[data-title-emoji-heading='true']:hover {
  border-color: rgba(140, 65, 65, 0.42);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(140, 65, 65, 0.1);
}

.write-editor-textarea blockquote,
.write-editor-textarea .write-editor-quote {
  --write-quote-open-icon: url("../img/icons/write/read/read_01_u.svg");
  --write-quote-close-icon: url("../img/icons/write/read/read_01_d.svg");
  --write-quote-color: #111111;
  --write-quote-text-color: #111111;
  --write-quote-mark-height: 15px;
  --write-quote-mark-width: 20px;
  position: relative;
  display: block;
  margin: 24px auto;
  width: min(100%, 780px);
  padding: 20px 22px;
  font-size: 1.667rem;
  color: var(--write-quote-text-color);
  font-style: italic;
  text-align: center;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.write-editor-textarea blockquote:hover,
.write-editor-textarea .write-editor-quote:hover {
  border-color: rgba(140, 65, 65, 0.42);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 0 3px rgba(140, 65, 65, 0.1);
}

.write-editor-textarea .write-editor-quote::before,
.write-editor-textarea .write-editor-quote::after,
.write-editor-textarea blockquote::before,
.write-editor-textarea blockquote::after {
  content: none;
}

.write-editor-textarea .write-editor-quote::before,
.write-editor-textarea blockquote::before {
  content: none;
}

.write-editor-textarea .write-editor-quote::after,
.write-editor-textarea blockquote::after {
  content: none;
}

.write-editor-textarea .write-editor-quote--style-1,
.write-editor-textarea blockquote[data-quote-style='style-1'] {
  --write-quote-open-icon: url("../img/icons/write/read/read_01_u.svg");
  --write-quote-close-icon: url("../img/icons/write/read/read_01_d.svg");
}

.write-editor-textarea .write-editor-quote--style-2,
.write-editor-textarea blockquote[data-quote-style='style-2'] {
  --write-quote-open-icon: url("../img/icons/write/read/read_02_u.svg");
  --write-quote-close-icon: url("../img/icons/write/read/read_02_d.svg");
}

.write-editor-textarea .write-editor-quote--style-3,
.write-editor-textarea blockquote[data-quote-style='style-3'] {
  --write-quote-open-icon: url("../img/icons/write/read/read_03_u.svg");
  --write-quote-close-icon: url("../img/icons/write/read/read_03_d.svg");
}

.write-editor-textarea .write-editor-quote--style-4,
.write-editor-textarea blockquote[data-quote-style='style-4'] {
  --write-quote-open-icon: url("../img/icons/write/read/read_04_u.svg");
  --write-quote-close-icon: url("../img/icons/write/read/read_04_d.svg");
}

.write-editor-textarea .write-editor-quote--style-5,
.write-editor-textarea blockquote[data-quote-style='style-5'] {
  --write-quote-open-icon: url("../img/icons/write/read/read_05_u.svg?v=20260724-001");
  --write-quote-close-icon: url("../img/icons/write/read/read_05_d.svg?v=20260724-001");
}

.write-editor-textarea .write-editor-quote--style-6,
.write-editor-textarea blockquote[data-quote-style='style-6'] {
  --write-quote-open-icon: url("../img/icons/write/read/read_06_u.svg");
  --write-quote-close-icon: url("../img/icons/write/read/read_06_d.svg");
}

.write-editor-textarea hr {
  border: 0;
  border-top: 1px solid #d7dde6;
  margin: 16px 0;
}

.write-editor-textarea hr.is-divider-solid {
  border-top: 1px solid #d7dde6;
}

.write-editor-textarea hr.is-divider-line {
  border-top: 1px solid #8d95a1;
  margin: 18px 0;
}

.write-editor-textarea hr.is-divider-dotted {
  border-top: 1px dashed #8d95a1;
  margin: 18px 0;
}

.write-editor-textarea hr.is-divider-line-2 {
  border: 0;
  height: 1px;
  margin: 18px 0;
  background: linear-gradient(90deg, rgba(141, 149, 161, 0) 0%, rgba(141, 149, 161, 0.95) 18%, rgba(141, 149, 161, 0.95) 82%, rgba(141, 149, 161, 0) 100%);
}

.write-editor-textarea hr.is-divider-line-3 {
  border: 0;
  height: 8px;
  margin: 16px 0;
  background:
    linear-gradient(180deg, transparent 0 2px, #c9d0d9 2px 3px, transparent 3px 5px, #c9d0d9 5px 6px, transparent 6px 8px),
    linear-gradient(90deg, rgba(201, 208, 217, 0) 0%, rgba(201, 208, 217, 0.95) 20%, rgba(201, 208, 217, 0.95) 80%, rgba(201, 208, 217, 0) 100%);
}

.write-editor-textarea hr:hover,
.write-editor-textarea hr:focus-visible {
  border-top-color: #8c4141;
  background-color: #8c4141;
  box-shadow: 0 0 0 1px rgba(140, 65, 65, 0.14);
}

.write-editor-textarea hr.is-divider-line-2:hover,
.write-editor-textarea hr.is-divider-line-2:focus-visible {
  background: linear-gradient(90deg, rgba(140, 65, 65, 0) 0%, rgba(140, 65, 65, 0.98) 18%, rgba(140, 65, 65, 0.98) 82%, rgba(140, 65, 65, 0) 100%);
}

.write-editor-textarea hr.is-divider-line-3:hover,
.write-editor-textarea hr.is-divider-line-3:focus-visible {
  background:
    linear-gradient(180deg, transparent 0 2px, #8c4141 2px 3px, transparent 3px 5px, #8c4141 5px 6px, transparent 6px 8px),
    linear-gradient(90deg, rgba(140, 65, 65, 0) 0%, rgba(140, 65, 65, 0.98) 20%, rgba(140, 65, 65, 0.98) 80%, rgba(140, 65, 65, 0) 100%);
}

.write-divider-tool {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.write-divider-toggle-btn {
  width: 22px;
  height: 34px;
  border: 1px solid #d8dce2;
  background: #ffffff;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}

.write-divider-toggle-btn::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid #6b7280;
  border-bottom: 1px solid #6b7280;
  transform: translate(-50%, -68%) rotate(45deg);
}

.write-divider-toggle-btn:focus-visible,
.write-divider-style-option:focus-visible {
  outline: 2px solid rgba(64, 97, 156, 0.22);
  outline-offset: 1px;
}

.write-divider-style-palette {
  position: absolute;
  left: auto;
  right: calc(100% + 12px);
  top: 0;
  display: none;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: 238px;
  padding: 12px;
  border: 3px solid #8c4141;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(18, 24, 34, 0.14);
  z-index: 35;
}

.write-divider-style-palette.is-open {
  display: grid;
}

.write-divider-style-option {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8dce2;
  background: #ffffff;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.write-divider-style-option.is-active {
  border-color: #8c4141;
  background: #8c4141;
  box-shadow: inset 0 0 0 1px rgba(140, 65, 65, 0.18);
}

.write-divider-style-option:hover,
.write-divider-style-option:focus-visible {
  border-color: #8c4141;
  background: #fff8f8;
  box-shadow: inset 0 0 0 1px rgba(140, 65, 65, 0.08);
  transform: translateY(-1px);
}

.write-divider-style-option.is-active:hover,
.write-divider-style-option.is-active:focus-visible {
  background: #8c4141;
  box-shadow: inset 0 0 0 1px rgba(140, 65, 65, 0.18);
}

.write-divider-style-icon {
  display: block;
  width: 100%;
  height: 24px;
  object-fit: contain;
  opacity: 0.98;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.write-divider-style-option[data-line-style="dotted"] .write-divider-style-icon,
.write-divider-style-option[data-line-style="line"] .write-divider-style-icon {
  display: none;
}

.write-divider-style-option[data-line-style="dotted"]::before,
.write-divider-style-option[data-line-style="line"]::before {
  content: "";
  display: block;
  width: 100%;
  height: 24px;
}

.write-divider-style-option[data-line-style="dotted"]::before {
  background-image: repeating-linear-gradient(
    to right,
    #49505a 0 6px,
    transparent 6px 12px
  );
  background-size: 12px 1px;
  background-repeat: repeat-x;
  background-position: left center;
}

.write-divider-style-option[data-line-style="line"]::before {
  background-image: linear-gradient(#2f3742, #2f3742);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: left center;
}

.write-divider-style-icon.is-dotted {
  position: relative;
  width: 100%;
  height: 20px;
}

.write-divider-style-icon.is-dotted::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 0;
  border-top: 3px dotted #8c4141;
  transform: translateY(-50%);
}

.write-divider-style-icon.is-solid {
  position: relative;
  width: 100%;
  height: 20px;
}

.write-divider-style-icon.is-solid::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 3px;
  background: #8c4141;
  transform: translateY(-50%);
}

.write-divider-style-option:hover .write-divider-style-icon,
.write-divider-style-option:focus-visible .write-divider-style-icon,
.write-divider-style-option.is-active .write-divider-style-icon {
  filter: brightness(0) saturate(100%) sepia(25%) hue-rotate(314deg) saturate(660%) brightness(87%) contrast(93%);
}

.write-divider-style-option.is-active .write-divider-style-icon {
  filter: brightness(0) invert(1);
}

.write-divider-style-option:hover .write-divider-style-label,
.write-divider-style-option:focus-visible .write-divider-style-label,
.write-divider-style-option.is-active .write-divider-style-label {
  color: #8c4141;
}

.write-divider-style-option.is-active .write-divider-style-label {
  color: #ffffff;
}

.write-divider-style-option.is-active .write-divider-style-icon.is-dotted::before {
  border-top-color: #ffffff;
}

.write-divider-style-option.is-active .write-divider-style-icon.is-solid::before {
  background: #ffffff;
}

.write-divider-style-option.is-active[data-line-style="dotted"]::before {
  background-image: repeating-linear-gradient(
    to right,
    #ffffff 0 6px,
    transparent 6px 12px
  );
}

.write-divider-style-option.is-active[data-line-style="line"]::before {
  background-image: linear-gradient(#ffffff, #ffffff);
}

.write-divider-style-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  color: #4a4f57;
  text-align: center;
}

.write-divider-tool:has(.write-divider-style-palette.is-open) #write-divider-insert,
.write-divider-tool:has(#write-divider-insert.is-active) #write-divider-insert {
  border-color: #8c4141;
  background: #8c4141;
  box-shadow: inset 0 0 0 1px rgba(140, 65, 65, 0.18);
}

.write-divider-tool:has(.write-divider-style-palette.is-open) #write-divider-insert .write-tool-icon,
.write-divider-tool:has(#write-divider-insert.is-active) #write-divider-insert .write-tool-icon {
  filter: brightness(0) invert(1);
}

.write-editor-textarea p {
  margin: 0;
  min-height: 1.8em;
  text-align: left;
}

.write-editor-textarea a,
.write-editor-textarea a:visited {
  color: #1457b8;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

.write-editor-textarea a:hover,
.write-editor-textarea a:focus-visible {
  color: #0f458f;
}

.write-editor-textarea > img[data-block-type='image'][data-image-size='left'] + p,
.write-editor-textarea > img[data-block-type='image'][data-image-size='right'] + p {
  padding-top: 0;
  position: relative;
  top: 10px;
}

.write-editor-textarea > img[data-block-type='image'][data-image-size='left'] + p + p,
.write-editor-textarea > img[data-block-type='image'][data-image-size='right'] + p + p {
  clear: both;
  position: static;
  top: auto;
}

.write-editor-textarea img[data-block-type='image'] {
  display: block;
  width: 780px;
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  margin-left: 0;
  margin-right: 0;
  transition: opacity 0.12s ease, outline-color 0.12s ease, box-shadow 0.12s ease;
}

.write-editor-textarea video[data-block-type='video'],
.write-editor-textarea iframe[data-block-type='video-embed'] {
  display: block;
  width: 780px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 12px 0;
  border: 0;
  background: #0d1117;
}

.write-editor-textarea iframe[data-block-type='video-embed'] {
  min-height: 260px;
}

.write-editor-textarea .write-video-fallback {
  width: 780px;
  max-width: 100%;
  margin: 6px 0 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #7a8491;
  font-size: 0.74rem;
  line-height: 1.4;
}

.write-editor-textarea .write-video-fallback-label {
  color: #7a8491;
}

.write-editor-textarea .write-video-fallback-link {
  color: #1a5fb4;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.write-editor-textarea .write-video-fallback-link:hover {
  color: #154b8f;
}

.write-editor-textarea .write-editor-map-embed {
  position: relative;
  width: 780px;
  max-width: 100%;
  margin: 12px 0;
  border: 1px solid #d9dfe8;
  background: #f8fafd;
}

.write-editor-textarea .write-editor-map-controls {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  display: grid;
  gap: 4px;
}

.write-editor-textarea .write-editor-map-zoom-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #c7cfda;
  background: #ffffff;
  color: #2f3a48;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.write-editor-textarea .write-editor-map-zoom-btn:hover {
  background: #f3f6fb;
}

.write-editor-textarea .write-editor-map-frame {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
  background: #edf1f6;
}

.write-editor-textarea .write-editor-map-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid #d9dfe8;
}

.write-editor-textarea .write-editor-map-title {
  font-size: 0.78rem;
  color: #2f3742;
  font-weight: 700;
}

.write-editor-textarea .write-editor-map-link {
  font-size: 0.75rem;
  color: #245db5;
  text-decoration: underline;
}

.write-editor-textarea.is-image-dragging img[data-block-type='image'] {
  cursor: grabbing;
}

.write-editor-textarea.is-image-dragging {
  box-shadow: inset 0 0 0 2px rgba(255, 154, 82, 0.6);
  border-radius: 8px;
}

.write-editor-textarea.is-area-deleting {
  box-shadow: inset 0 0 0 2px rgba(208, 76, 31, 0.48);
  border-radius: 8px;
}

.write-editor-textarea.is-area-delete-selected {
  box-shadow: inset 0 0 0 2px rgba(208, 76, 31, 0.58);
  border-radius: 8px;
}

.write-editor-textarea.is-image-drag-primed {
  box-shadow: inset 0 0 0 2px rgba(47, 116, 197, 0.36);
  border-radius: 8px;
}

.write-editor-textarea.is-image-dragging::after {
  content: "드래그 중 · 원하는 위치에 놓으세요";
  position: absolute;
  right: 10px;
  top: 8px;
  z-index: 18;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47, 116, 197, 0.92);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.write-editor-textarea img[data-block-type='image'].is-dragging-image {
  opacity: 0.44;
  transform: scale(0.985);
  outline: 3px dashed rgba(47, 116, 197, 0.98);
  outline-offset: 2px;
}

.write-editor-textarea img[data-block-type='image'].is-drag-prime-image {
  outline: 3px solid rgba(47, 116, 197, 0.82);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(47, 116, 197, 0.2);
}

.write-editor-textarea img[data-block-type='image'].is-drop-target-image {
  outline: 2px solid rgba(255, 138, 59, 0.98);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(255, 184, 122, 0.4);
}

.write-editor-textarea > img[data-block-type='image'].is-area-delete-target,
.write-editor-textarea > .write-image-pair.is-area-delete-target {
  outline: 3px solid rgba(219, 89, 38, 0.98);
  outline-offset: 1px;
  box-shadow: 0 0 0 4px rgba(219, 89, 38, 0.2);
}

.write-editor-textarea > img[data-block-type='image'].is-area-delete-target {
  opacity: 0.56;
  filter: saturate(0.72) brightness(0.86);
}

.write-editor-textarea > .write-image-pair.is-area-delete-target img[data-block-type='image'] {
  opacity: 0.56;
  filter: saturate(0.72) brightness(0.86);
}

.write-area-delete-rect {
  position: absolute;
  display: none;
  z-index: 170;
  border: 2px dashed rgba(212, 83, 34, 0.95);
  background: rgba(255, 161, 116, 0.2);
  pointer-events: none;
}

.write-editor-textarea .write-image-pair {
  --write-image-pair-height: 320px;
  --write-image-pair-columns: 2;
  width: 780px;
  max-width: 100%;
  margin: 10px 0 0;
  padding: 0;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(var(--write-image-pair-columns), minmax(0, 1fr));
  gap: 0;
  justify-items: center;
  align-items: end;
}

.write-editor-textarea .write-image-pair + .write-image-pair {
  margin-top: 10px;
}

.write-editor-textarea .write-image-pair[data-image-pair-count='2'] {
  width: 780px;
  grid-template-columns: 385px 385px;
  column-gap: 10px;
}

.write-editor-textarea .write-image-pair[data-image-pair-count='3'] {
  width: 780px;
  grid-template-columns: 254px 252px 254px;
  column-gap: 10px;
}

.write-editor-textarea .write-image-pair img[data-block-type='image'] {
  width: 100% !important;
  max-width: 100% !important;
  height: var(--write-image-pair-height) !important;
  margin: 0;
  object-fit: cover !important;
}

.write-editor-textarea img[data-block-type='image'][data-image-size='full'] {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.write-editor-textarea img[data-block-type='image'][data-image-size='fixed'] {
  width: 780px;
  height: auto;
  object-fit: contain;
}

.write-editor-textarea img[data-block-type='image'][data-image-crop-shape='circle'] {
  width: var(--write-circle-size, 150px) !important;
  height: var(--write-circle-size, 150px) !important;
  max-width: 100%;
  object-fit: cover !important;
  border-radius: 999px !important;
  display: block;
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.write-editor-textarea img[data-block-type='image'].is-linked-image {
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(42, 98, 181, 0.32);
}

.write-editor-textarea .write-image-pair img[data-block-type='image'][data-image-crop-shape='circle'] {
  width: var(--write-circle-size, 150px) !important;
  height: var(--write-circle-size, 150px) !important;
  object-fit: cover !important;
  border-radius: 999px !important;
}

.write-editor-textarea img[data-block-type='image'].is-size-target {
  outline: 2px solid rgba(47, 116, 197, 0.5);
  outline-offset: 2px;
}

.write-editor-textarea video[data-block-type='video'].is-video-target,
.write-editor-textarea iframe[data-block-type='video-embed'].is-video-target {
  outline: 2px solid rgba(47, 116, 197, 0.5);
  outline-offset: 2px;
}

.write-video-action-menu {
  position: fixed;
  z-index: 141;
  display: none;
  align-items: center;
  gap: 0;
  padding: 4px 6px;
  border: 1px solid #e3e7ed;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(14, 20, 31, 0.14);
}

.write-video-action-menu.is-open {
  display: inline-flex;
}

.write-video-action-option {
  min-width: 54px;
  height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #aaaaaa;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.write-video-action-option:hover {
  background: #f7fafc;
  color: #8c4141;
}

.write-image-size-menu {
  position: fixed;
  z-index: 140;
  display: none;
  align-items: center;
  gap: 0;
  padding: 4px 6px;
  border: 1px solid #e3e7ed;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(14, 20, 31, 0.14);
}

.write-image-size-menu.is-open {
  display: inline-flex;
}

.write-image-size-option {
  width: 46px;
  min-width: 46px;
  height: 34px;
  border: 0;
  border-right: 1px solid #eceff3;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.write-image-size-option:last-child {
  border-right: 0;
}

.write-image-size-option[hidden] {
  display: none !important;
}

.write-image-size-icon {
  display: block;
  width: 22px;
  height: 15px;
  object-fit: contain;
  transition: filter 0.18s ease, opacity 0.18s ease;
}

.write-image-size-label {
  display: inline-block;
  color: #aaaaaa;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}

.write-image-size-option:hover {
  background: #f7fafc;
}

.write-image-size-option.is-active {
  background: #fbf3f1;
  box-shadow: inset 0 -2px 0 #8c4141;
}

.write-image-size-option.is-active .write-image-size-icon {
  filter: brightness(0) saturate(100%) invert(31%) sepia(22%) saturate(1126%) hue-rotate(314deg) brightness(92%) contrast(90%);
}

.write-image-size-option:hover .write-image-size-icon {
  filter: brightness(0) saturate(100%) invert(31%) sepia(22%) saturate(1126%) hue-rotate(314deg) brightness(92%) contrast(90%);
}

.write-image-size-option.is-active .write-image-size-label,
.write-image-size-option:hover .write-image-size-label {
  color: #8c4141;
}

.write-image-size-option.is-delete {
  width: 54px;
  min-width: 54px;
}

.write-image-size-option.is-replace {
  width: 54px;
  min-width: 54px;
}

.write-image-size-option.is-replace:hover {
  background: #f7fafc;
}

.write-image-size-option.is-delete:hover {
  background: #fff4f1;
}

.write-image-size-option.is-delete:hover .write-image-size-label {
  color: #8c4141;
}

.write-image-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  align-items: center;
  justify-content: center;
}

.write-image-crop-modal.is-open {
  display: flex;
}

.write-image-crop-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 30, 0.56);
}

.write-image-crop-panel {
  position: relative;
  width: min(92vw, 980px);
  max-height: 92vh;
  border: 1px solid #d6dde7;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 20px 44px rgba(12, 18, 28, 0.3);
  overflow: hidden;
}

.write-image-crop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e4e9f0;
}

.write-image-crop-head h2 {
  margin: 0;
  font-size: 0.95rem;
  color: #26313d;
}

.write-image-crop-close {
  width: 30px;
  height: 30px;
  border: 1px solid #d3dae4;
  border-radius: 8px;
  background: #ffffff;
  color: #425466;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.write-image-crop-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  padding: 14px;
}

.write-image-crop-viewport {
  position: relative;
  background: #f2f5f9;
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  min-height: 340px;
  overflow: hidden;
}

.write-image-crop-work-image {
  width: 100%;
  height: auto;
  max-height: 62vh;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

.write-image-crop-frame {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border: 2px solid rgba(43, 128, 199, 0.94);
  box-shadow: 0 0 0 9999px rgba(16, 22, 34, 0.42);
  pointer-events: auto;
}

.write-image-crop-frame.is-dragging {
  border-color: rgba(35, 108, 168, 0.98);
}

.write-image-crop-hit {
  position: absolute;
  inset: 8px;
  cursor: move;
}

.write-image-crop-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #2f74c5;
  box-shadow: 0 0 0 1px rgba(22, 70, 112, 0.7);
  padding: 0;
}

.write-image-crop-handle.is-top {
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.write-image-crop-handle.is-right {
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.write-image-crop-handle.is-bottom {
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ns-resize;
}

.write-image-crop-handle.is-left {
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  cursor: ew-resize;
}

.write-image-crop-handle.is-top-left {
  left: -7px;
  top: -7px;
  cursor: nwse-resize;
}

.write-image-crop-handle.is-top-right {
  right: -7px;
  top: -7px;
  cursor: nesw-resize;
}

.write-image-crop-handle.is-bottom-right {
  right: -7px;
  bottom: -7px;
  cursor: nwse-resize;
}

.write-image-crop-handle.is-bottom-left {
  left: -7px;
  bottom: -7px;
  cursor: nesw-resize;
}

.write-image-crop-controls {
  display: grid;
  gap: 12px;
  align-content: start;
}

.write-image-crop-shape,
.write-image-crop-circle-controls {
  display: grid;
  gap: 8px;
}

.write-image-crop-circle-controls[hidden] {
  display: none;
}

.write-image-crop-shape-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.write-image-crop-shape-option {
  height: 30px;
  border: 1px solid #d3dae4;
  border-radius: 8px;
  background: #ffffff;
  color: #2f3741;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.write-image-crop-shape-option:hover {
  background: #f4f7fb;
}

.write-image-crop-shape-option.is-active {
  border-color: #2f74c5;
  background: #eef5ff;
  color: #1f5d9e;
}

.write-image-crop-circle-controls input[type='range'] {
  width: 100%;
}

.write-image-crop-modal.is-circle-mode .write-image-crop-circle-controls {
  display: grid;
}

.write-image-crop-modal.is-circle-mode .write-image-crop-frame {
  border-style: dashed;
  border-radius: 999px;
}

.write-image-crop-modal.is-circle-mode .write-image-crop-handle,
.write-image-crop-modal.is-circle-mode .write-image-crop-nudge {
  display: none;
}

.write-image-crop-modal.is-circle-mode .write-image-crop-hit {
  display: block;
  cursor: grab;
}

.write-image-crop-modal.is-circle-mode .write-image-crop-frame.is-dragging .write-image-crop-hit {
  cursor: grabbing;
}

.write-image-crop-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3a4553;
}

.write-image-crop-help {
  margin: 0;
  font-size: 0.72rem;
  color: #687586;
  line-height: 1.45;
}

.write-image-crop-zoom,
.write-image-crop-nudge {
  display: grid;
  gap: 8px;
}

.write-image-crop-zoom-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
}

.write-image-crop-zoom-row input[type='range'] {
  width: 100%;
}

.write-image-crop-zoom-value {
  margin: 0;
  font-size: 0.74rem;
  color: #4b5a6a;
  font-weight: 700;
}

.write-image-crop-nudge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  align-items: center;
}

.write-image-crop-mini-btn {
  height: 30px;
  border: 1px solid #d3dae4;
  border-radius: 8px;
  background: #ffffff;
  color: #2f3741;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.write-image-crop-mini-btn:hover {
  background: #f4f7fb;
}

.write-image-crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 14px 14px;
}

.write-image-crop-btn {
  min-width: 72px;
  height: 32px;
  border: 1px solid #d3dae4;
  border-radius: 8px;
  background: #ffffff;
  color: #2f3741;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.write-image-crop-btn.is-apply {
  border-color: #2f74c5;
  background: #2f74c5;
  color: #ffffff;
}

@media (max-width: 840px) {
  .write-image-crop-body {
    grid-template-columns: 1fr;
  }

  .write-image-crop-panel {
    width: min(96vw, 680px);
  }
}

.write-editor-map-embed.is-naver-map-cropped {
  overflow: hidden;
}

.write-editor-map-frame.is-naver-map-cropped-frame {
  width: calc(100% + 320px);
  max-width: none;
  margin-left: -320px;
}

@media (max-width: 860px) {
  .write-editor-map-frame.is-naver-map-cropped-frame {
    width: calc(100% + 250px);
    margin-left: -250px;
  }
}

.write-editor-tools {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  z-index: 25;
}

.write-quote-style-palette {
  position: absolute;
  top: 0;
  right: calc(100% + 10px);
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 298px;
  padding: 8px;
  border: 1px solid #d7dde5;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(14, 20, 31, 0.14);
}

.write-quote-style-palette.is-open {
  display: grid;
}

.write-quote-style-option {
  --write-style-option-color: #2f3741;
  --write-style-option-icon: url("../img/icons/write/read/read_01_u.svg");
  border: 1px solid #d9dfe7;
  background: #ffffff;
  padding: 8px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.write-quote-style-option::before {
  content: "";
  width: 24px;
  height: 18px;
  display: block;
  background: var(--write-style-option-color);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-image: var(--write-style-option-icon);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  mask-image: var(--write-style-option-icon);
}

.write-quote-style-option > img,
.write-quote-style-option > span {
  display: none;
}

.write-quote-style-option[data-quote-style='style-1'] {
  --write-style-option-icon: url("../img/icons/write/read/read_01_u.svg");
}

.write-quote-style-option[data-quote-style='style-2'] {
  --write-style-option-icon: url("../img/icons/write/read/read_02_u.svg");
}

.write-quote-style-option[data-quote-style='style-3'] {
  --write-style-option-icon: url("../img/icons/write/read/read_03_u.svg");
}

.write-quote-style-option[data-quote-style='style-4'] {
  --write-style-option-icon: url("../img/icons/write/read/read_04_u.svg");
}

.write-quote-style-option[data-quote-style='style-5'] {
  --write-style-option-icon: url("../img/icons/write/read/read_05_u.svg?v=20260724-001");
}

.write-quote-style-option[data-quote-style='style-6'] {
  --write-style-option-icon: url("../img/icons/write/read/read_06_u.svg");
}

.write-quote-style-option:hover {
  background: #f5f7fa;
}

.write-quote-style-option.is-active {
  border-color: var(--write-style-option-color);
  box-shadow: inset 0 0 0 1px var(--write-style-option-color);
  background: #fbf3f1;
}

.write-quote-color-title {
  grid-column: 1 / -1;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2f3741;
}

.write-quote-size-title {
  grid-column: 1 / -1;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2f3741;
}

.write-quote-size-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.write-quote-size-option {
  height: 30px;
  border: 1px solid #d5dce5;
  background: #ffffff;
  color: #3d4650;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  line-height: 1;
}

.write-quote-size-option:hover {
  background: #f6f8fb;
}

.write-quote-size-option.is-active {
  border-color: #8c4141;
  color: #8c4141;
  box-shadow: inset 0 0 0 1px #8c4141;
  background: #fff7f5;
}

.write-quote-color-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(8, 30px);
  gap: 6px;
}

.write-quote-text-color-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(8, 30px);
  gap: 6px;
}

.write-quote-color-swatch,
.write-quote-text-color-swatch {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f3741;
  font-size: 0.75rem;
  font-weight: 700;
}

.write-quote-color-swatch span,
.write-quote-text-color-swatch span {
  display: none;
}

.write-quote-color-swatch.is-active::after,
.write-quote-text-color-swatch.is-active::after {
  content: "✓";
  font-size: 0.72rem;
  line-height: 1;
}

.write-quote-color-swatch[data-quote-color='#ffffff'].is-active::after,
.write-quote-text-color-swatch[data-quote-text-color='#ffffff'].is-active::after {
  color: #2f3741;
}

.write-quote-color-swatch[data-quote-color='#2f3741'] { background: #2f3741; color: #ffffff; }
.write-quote-color-swatch[data-quote-color='#ffffff'] { background: #ffffff; border-color: #cfd4dc; box-shadow: inset 0 0 0 1px #e7eaef; }
.write-quote-color-swatch[data-quote-color='#8a8f96'] { background: #8a8f96; color: #ffffff; }
.write-quote-color-swatch[data-quote-color='#f4b400'] { background: #f4b400; }
.write-quote-color-swatch[data-quote-color='#1ea362'] { background: #1ea362; color: #ffffff; }
.write-quote-color-swatch[data-quote-color='#f15b5b'] { background: #f15b5b; color: #ffffff; }
.write-quote-color-swatch[data-quote-color='#13b3b3'] { background: #13b3b3; color: #ffffff; }
.write-quote-color-swatch[data-quote-color='#e64f77'] { background: #e64f77; color: #ffffff; }
.write-quote-color-swatch[data-quote-color='#2f86c6'] { background: #2f86c6; color: #ffffff; }
.write-quote-color-swatch[data-quote-color='#5a56b5'] { background: #5a56b5; color: #ffffff; }
.write-quote-color-swatch[data-quote-color='#8c4141'] { background: #8c4141; color: #ffffff; }

.write-quote-text-color-swatch[data-quote-text-color='#2f3741'] { background: #2f3741; color: #ffffff; }
.write-quote-text-color-swatch[data-quote-text-color='#ffffff'] { background: #ffffff; border-color: #cfd4dc; box-shadow: inset 0 0 0 1px #e7eaef; }
.write-quote-text-color-swatch[data-quote-text-color='#8a8f96'] { background: #8a8f96; color: #ffffff; }
.write-quote-text-color-swatch[data-quote-text-color='#f4b400'] { background: #f4b400; }
.write-quote-text-color-swatch[data-quote-text-color='#1ea362'] { background: #1ea362; color: #ffffff; }
.write-quote-text-color-swatch[data-quote-text-color='#f15b5b'] { background: #f15b5b; color: #ffffff; }
.write-quote-text-color-swatch[data-quote-text-color='#13b3b3'] { background: #13b3b3; color: #ffffff; }
.write-quote-text-color-swatch[data-quote-text-color='#e64f77'] { background: #e64f77; color: #ffffff; }
.write-quote-text-color-swatch[data-quote-text-color='#2f86c6'] { background: #2f86c6; color: #ffffff; }
.write-quote-text-color-swatch[data-quote-text-color='#5a56b5'] { background: #5a56b5; color: #ffffff; }
.write-quote-text-color-swatch[data-quote-text-color='#8c4141'] { background: #8c4141; color: #ffffff; }

.write-quote-action-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.write-quote-apply-btn,
.write-quote-delete-btn {
  margin-top: 4px;
  height: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.write-quote-apply-btn {
  border: 1px solid #8c4141;
  background: #8c4141;
  color: #ffffff;
}

.write-quote-apply-btn:hover {
  background: #7d3a3a;
}

.write-quote-delete-btn {
  border: 1px solid #d6dbe2;
  background: #ffffff;
  color: #5a6470;
}

.write-quote-delete-btn:hover {
  border-color: #bf5151;
  color: #bf5151;
}

.write-quote-preview {
  --write-quote-open-icon: url("../img/icons/write/read/read_01_u.svg");
  --write-quote-close-icon: url("../img/icons/write/read/read_01_d.svg");
  --write-quote-color: #111111;
  --write-quote-text-color: #111111;
  --write-quote-mark-height: 15px;
  --write-quote-mark-width: 20px;
  position: relative;
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  margin: 4px 0 0;
  min-height: 0;
  padding: 0 8px;
  border: 1px solid #eceff3;
  background: #fbfcfe;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--write-quote-text-color);
  font-style: italic;
  text-align: center;
}

.write-editor-quote,
.write-quote-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.write-editor-quote .write-editor-quote-text,
.write-quote-preview .write-editor-quote-text {
  display: block;
  width: 100%;
  margin: 0;
  color: var(--write-quote-text-color);
  font-style: inherit;
  line-height: 1.4;
  text-align: center;
}

.write-editor-quote .write-editor-quote-mark,
.write-quote-preview .write-editor-quote-mark {
  display: block;
  line-height: 0;
  margin-left: auto;
  margin-right: auto;
}

.write-editor-quote .write-editor-quote-mark-open,
.write-quote-preview .write-editor-quote-mark-open {
  margin: 0 0 40px;
}

.write-editor-quote .write-editor-quote-mark-close,
.write-quote-preview .write-editor-quote-mark-close {
  margin: 40px 0 0;
}

.write-editor-quote .write-editor-quote-mark-icon,
.write-quote-preview .write-editor-quote-mark-icon {
  display: block;
  width: 100%;
  height: 100%;
  background-color: var(--write-quote-color);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-image: var(--write-quote-mask-icon);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  mask-image: var(--write-quote-mask-icon);
}

.write-quote-preview::before,
.write-quote-preview::after {
  content: none;
}

.write-quote-style-palette .write-quote-preview::before,
.write-quote-style-palette .write-quote-preview::after {
  content: none;
}

.write-quote-style-palette .write-quote-preview::before {
  content: none;
}

.write-quote-style-palette .write-quote-preview::after {
  content: none;
}

.write-quote-preview.write-editor-quote--style-1 {
  --write-quote-open-icon: url("../img/icons/write/read/read_01_u.svg");
  --write-quote-close-icon: url("../img/icons/write/read/read_01_d.svg");
}

.write-quote-preview.write-editor-quote--style-2 {
  --write-quote-open-icon: url("../img/icons/write/read/read_02_u.svg");
  --write-quote-close-icon: url("../img/icons/write/read/read_02_d.svg");
}

.write-quote-preview.write-editor-quote--style-3 {
  --write-quote-open-icon: url("../img/icons/write/read/read_03_u.svg");
  --write-quote-close-icon: url("../img/icons/write/read/read_03_d.svg");
}

.write-quote-preview.write-editor-quote--style-4 {
  --write-quote-open-icon: url("../img/icons/write/read/read_04_u.svg");
  --write-quote-close-icon: url("../img/icons/write/read/read_04_d.svg");
}

.write-quote-preview.write-editor-quote--style-5 {
  --write-quote-open-icon: url("../img/icons/write/read/read_05_u.svg?v=20260724-001");
  --write-quote-close-icon: url("../img/icons/write/read/read_05_d.svg?v=20260724-001");
}

.write-quote-preview.write-editor-quote--style-6 {
  --write-quote-open-icon: url("../img/icons/write/read/read_06_u.svg");
  --write-quote-close-icon: url("../img/icons/write/read/read_06_d.svg");
}

.write-selection-toolbar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  display: none;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 1px solid #d7dce4;
  border-top: 2px solid #2f3338;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(14, 20, 31, 0.12);
}

.write-selection-toolbar.is-visible {
  display: inline-flex;
}

.write-selection-btn {
  min-width: 42px;
  height: 40px;
  border: 0;
  border-right: 1px solid #e1e6ed;
  border-radius: 0;
  background: #ffffff;
  color: #2f3741;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.write-selection-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.write-selection-btn:hover {
  background: #f5f7fa;
}

.write-selection-btn[data-cmd='bold'] {
  font-weight: 700;
}

.write-selection-btn[data-cmd='underline'] {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.write-selection-btn[data-cmd='strikeThrough'] {
  text-decoration: line-through;
}

.write-selection-btn-highlight {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 0;
  border: 0;
  border-right: 1px solid #e1e6ed;
  background: #ffffff;
  font-weight: 400;
}

.write-selection-btn-highlight.is-active {
  background: #ffffff;
}

.write-highlight-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid #2f3741;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f3741;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 0.87rem;
  font-weight: 500;
  line-height: 1;
  transform: none;
}

.write-selection-btn-highlight.is-highlight-active .write-highlight-icon {
  background: var(--write-highlight-active, #fff1a8);
  border-color: #2f3741;
}

.write-selection-btn-align {
  min-width: 40px;
  width: 40px;
}

.write-align-icon {
  --line-width-1: 16px;
  --line-width-2: 12px;
  --line-width-3: 16px;
  --line-width-4: 12px;
  --line-pos-1: left;
  --line-pos-2: left;
  --line-pos-3: left;
  --line-pos-4: left;
  display: block;
  width: 18px;
  height: 14px;
  color: currentColor;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-size:
    var(--line-width-1) 1.8px,
    var(--line-width-2) 1.8px,
    var(--line-width-3) 1.8px,
    var(--line-width-4) 1.8px;
  background-position:
    var(--line-pos-1) 0,
    var(--line-pos-2) 4px,
    var(--line-pos-3) 8px,
    var(--line-pos-4) 12px;
}

.write-align-icon.is-left {
  --line-pos-1: left;
  --line-pos-2: left;
  --line-pos-3: left;
  --line-pos-4: left;
}

.write-align-icon.is-center {
  --line-pos-1: center;
  --line-pos-2: center;
  --line-pos-3: center;
  --line-pos-4: center;
}

.write-align-icon.is-right {
  --line-pos-1: right;
  --line-pos-2: right;
  --line-pos-3: right;
  --line-pos-4: right;
}

.write-align-icon.is-justify {
  --line-width-1: 16px;
  --line-width-2: 16px;
  --line-width-3: 16px;
  --line-width-4: 16px;
  --line-pos-1: left;
  --line-pos-2: left;
  --line-pos-3: left;
  --line-pos-4: left;
}

.write-align-palette {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  display: none;
  grid-template-columns: repeat(4, 40px);
  gap: 0;
  padding: 0;
  border: 1px solid #d7dde5;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(14, 20, 31, 0.14);
}

.write-align-palette.is-open {
  display: grid;
}

.write-align-option {
  width: 40px;
  height: 38px;
  border: 0;
  border-right: 1px solid #e1e6ed;
  background: #ffffff;
  color: #2f3741;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.write-align-option:last-child {
  border-right: 0;
}

.write-align-option:hover,
.write-align-option.is-active {
  background: #f5f7fa;
  color: #8c4141;
}

.write-selection-btn:last-of-type {
  border-right: 0;
}

.write-list-style-palette {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  display: none;
  grid-template-columns: repeat(10, 1fr);
  grid-auto-rows: 30px;
  gap: 6px;
  width: auto;
  padding: 8px;
  border: 1px solid #d7dde5;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(14, 20, 31, 0.14);
  z-index: 95;
}

.write-list-style-palette.is-open {
  display: grid;
}

.write-list-style-option {
  width: auto;
  min-width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 5px;
  background: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #2f3741;
  overflow: hidden;
  box-sizing: border-box;
}

.write-list-style-option:hover,
.write-list-style-option.is-active {
  background: #f5f7fa;
  border-color: #8c4141;
  color: #8c4141;
}

.write-list-style-marker {
  font-size: 0.92rem;
  line-height: 1;
  font-family: "Segoe UI Symbol", "Apple Symbols", "Arial Unicode MS", sans-serif;
  font-variant-emoji: text;
}

.write-selection-btn-color {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 8px;
  line-height: 1;
}

.write-color-drop {
  width: 8.5px;
  height: 8.5px;
  display: block;
  overflow: visible;
  margin: 0;
}

.write-color-letter {
  font-size: 0.95rem;
  line-height: 1;
  margin: 0;
}

.write-color-drop-fill {
  fill: transparent;
  stroke: transparent;
  stroke-width: 1.2;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.write-color-drop-stroke {
  fill: transparent;
  stroke: #2f3741;
  stroke-width: 1.4;
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.write-selection-btn-color.is-color-active .write-color-drop-fill {
  fill: var(--write-color-active, #2f3741);
  stroke: var(--write-color-active, #2f3741);
}

.write-selection-btn-color.is-color-active .write-color-drop-stroke {
  stroke: var(--write-color-active, #2f3741);
  opacity: 0;
}

.write-color-palette {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  display: none;
  grid-template-columns: repeat(8, 30px);
  gap: 6px;
  width: 298px;
  padding: 8px;
  border: 1px solid #d7dde5;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(14, 20, 31, 0.14);
}

.write-color-palette.is-open {
  display: grid;
}

.write-highlight-palette {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  display: none;
  grid-template-columns: repeat(8, 30px);
  gap: 6px;
  width: 298px;
  padding: 8px;
  border: 1px solid #d7dde5;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(14, 20, 31, 0.14);
}

.write-highlight-palette.is-open {
  display: grid;
}

.write-highlight-swatch {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f3741;
  font-size: 0.75rem;
  font-weight: 700;
}

.write-highlight-swatch span {
  opacity: 0;
}

.write-highlight-swatch.is-active span {
  opacity: 1;
}

.write-highlight-swatch[data-color='#fff1a8'] { background: #fff1a8; }
.write-highlight-swatch[data-color='#ffffff'] { background: #ffffff; border-color: #cfd4dc; box-shadow: inset 0 0 0 1px #e7eaef; }
.write-highlight-swatch[data-color='#ffffff'] span { color: #2f3741; }
.write-highlight-swatch[data-color='#8a8f96'] { background: #8a8f96; }
.write-highlight-swatch[data-color='#f4b400'] { background: #f4b400; }
.write-highlight-swatch[data-color='#1ea362'] { background: #1ea362; }
.write-highlight-swatch[data-color='#f15b5b'] { background: #f15b5b; }
.write-highlight-swatch[data-color='#13b3b3'] { background: #13b3b3; }
.write-highlight-swatch[data-color='#e64f77'] { background: #e64f77; }
.write-highlight-swatch[data-color='#2f86c6'] { background: #2f86c6; }
.write-highlight-swatch[data-color='#5a56b5'] { background: #5a56b5; }
.write-highlight-swatch[data-color='#8c4141'] { background: #8c4141; }

.write-editor-textarea ul.write-list-style-custom {
  list-style: none;
  margin: 0 0 12px;
  padding-left: 1.4rem;
}

.write-editor-textarea ul.write-list-style-custom > li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 0;
  display: flex;
  align-items: baseline;
  gap: 0.42rem;
}

.write-editor-textarea ul.write-list-style-custom > li::before {
  flex-shrink: 0;
  display: inline-block;
  min-width: 1em;
  text-align: center;
  font-size: 0.88em;
  line-height: inherit;
  color: currentColor;
  position: static;
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="circle-fill"] > li::before {
  content: "●";
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="circle-empty"] > li::before {
  content: "○";
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="square-fill"] > li::before {
  content: "■";
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="square-empty"] > li::before {
  content: "□";
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="diamond-fill"] > li::before {
  content: "◆";
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="diamond-empty"] > li::before {
  content: "◇";
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="star-fill"] > li::before {
  content: "★";
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="star-empty"] > li::before {
  content: "☆";
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="heart-fill"] > li::before {
  content: "♥";
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="heart-empty"] > li::before {
  content: "♡";
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="clover-fill"] > li::before {
  content: "♣";
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="clover-empty"] > li::before {
  content: "♧";
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="triangle-fill"] > li::before {
  content: "▶";
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="triangle-empty"] > li::before {
  content: "▷";
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="hourglass-fill"] > li::before {
  content: "⧗︎";
  font-family: "Segoe UI Symbol", "Apple Symbols", "Arial Unicode MS", sans-serif;
  font-variant-emoji: text;
  line-height: calc(1em + 2px);
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="hourglass-empty"] > li::before {
  content: "⧖︎";
  font-family: "Segoe UI Symbol", "Apple Symbols", "Arial Unicode MS", sans-serif;
  font-variant-emoji: text;
  line-height: calc(1em + 2px);
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="check"] > li::before {
  content: "✓";
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="arrow-slim"] > li::before {
  content: "→";
}

.write-editor-textarea ul.write-list-style-custom[data-list-style="arrow-double"] > li::before {
  content: "⇒";
}

.write-color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

.write-color-swatch span {
  opacity: 0;
}

.write-color-swatch.is-active span {
  opacity: 1;
}

.write-color-swatch[data-color='#ffffff'] {
  background: #ffffff;
  border-color: #cfd4dc;
  box-shadow: inset 0 0 0 1px #e7eaef;
}

.write-color-swatch[data-color='#ffffff'] span {
  color: #2f3741;
}

.write-color-swatch[data-color='#2f3741'] { background: #2f3741; }
.write-color-swatch[data-color='#ffffff'] { background: #ffffff; border-color: #cfd4dc; box-shadow: inset 0 0 0 1px #e7eaef; }
.write-color-swatch[data-color='#8a8f96'] { background: #8a8f96; }
.write-color-swatch[data-color='#f4b400'] { background: #f4b400; }
.write-color-swatch[data-color='#1ea362'] { background: #1ea362; }
.write-color-swatch[data-color='#f15b5b'] { background: #f15b5b; }
.write-color-swatch[data-color='#13b3b3'] { background: #13b3b3; }
.write-color-swatch[data-color='#e64f77'] { background: #e64f77; }
.write-color-swatch[data-color='#2f86c6'] { background: #2f86c6; }
.write-color-swatch[data-color='#5a56b5'] { background: #5a56b5; }
.write-color-swatch[data-color='#8c4141'] { background: #8c4141; }

.write-highlight-mark {
  padding: 0 0.08em;
  border-radius: 0.18em;
  background: #fff1a8;
}

.write-selection-sep {
  width: 1px;
  height: 24px;
  background: #d7dde5;
}

.write-tool-btn {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 8px;
  cursor: pointer;
}

.write-tool-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: block;
  transition: filter 0.18s ease;
}

.write-tool-btn[aria-label="위치"] {
  height: 34px;
}

.write-tool-btn[aria-label="위치"] .write-tool-icon {
  width: 22px;
  height: 30px;
  flex-basis: 22px;
}

.write-tool-btn:hover {
  background: #f2f4f7;
}

.write-tool-btn:hover .write-tool-icon {
  filter: brightness(0) saturate(100%) invert(31%) sepia(22%) saturate(1126%) hue-rotate(314deg) brightness(92%) contrast(90%);
}

.write-actions {
  width: min(100%, 780px);
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
  padding-bottom: 16px;
}

.write-count {
  display: inline-block;
  color: #767e88;
  font-size: 0.84rem;
  font-weight: 500;
}

/* Open palette/modal frame rule: top 2px logo color, other sides 1px #aaa, no radius */
.write-title-emoji-panel,
.write-quote-style-palette,
.write-divider-style-palette,
.write-video-source-panel,
.write-map-panel,
.write-video-action-menu,
.write-selection-toolbar,
.write-color-palette,
.write-highlight-palette {
  border: 1px solid #aaaaaa;
  border-top: 2px solid #8c4141;
  border-radius: 0;
}

@media (max-width: 900px) {
  .write-page-main {
    padding: 12px 0 48px;
  }

  .write-toolbar {
    display: block;
  }

  .write-toolbar-right {
    margin-top: 10px;
    justify-content: flex-start;
  }

  .write-title-block {
    width: 100%;
    padding-right: 0;
  }

  .write-editor-area {
    min-height: 620px;
    display: block;
  }

  .write-editor-textarea {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    min-height: 560px;
  }

  .write-editor-tools {
    grid-column: auto;
    grid-row: auto;
  }

  .write-editor-tools {
    position: static;
    margin-top: 12px;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
