/* editor */
.editor-page {
  padding: 42px 12px 0;
}

.editor-page.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 20;
  width: 100vw;
  height: 100vh;
  padding: 18px 24px;
  overflow: auto;
  background: #07090a;
}

.editor-page.is-fullscreen .editor-heading {
  max-width: 1500px;
  margin: auto;
}

.editor-page.is-fullscreen form {
  max-width: 1500px;
  margin: auto;
}

.editor-heading {
  display: flex;
  align-items: end;
  padding: 0 6px 22px;
}

.editor-heading h2 {
  font-size: 29px;
}

.editor-heading > div > p:last-child {
  margin: 10px 0 0;
  color: #7a8485;
  font-size: 12px;
}

.autosave {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 10px 13px;
  border: 1px solid #2f393a;
  background: #0c1011;
}

.autosave > span {
  color: #55c4a8;
  font-size: 9px;
}

.autosave small,
.autosave strong {
  display: block;
}

.autosave small {
  color: #5d6768;
  font: 700 8px/1 var(--serif);
  letter-spacing: 0.12em;
}

.autosave strong {
  margin-top: 5px;
  color: #a0aaa8;
  font-size: 10px;
  font-weight: 400;
}

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

.editor-main {
  min-width: 0;
}

.title-field {
  position: relative;
  padding: 19px 21px;
  border: 1px solid var(--line);
  background: #0e1213;
}

.title-field label {
  display: block;
  margin-bottom: 9px;
  color: #8a9495;
  font-size: 11px;
}

.title-field label span {
  color: #d46666;
}

.title-field input {
  width: 100%;
  height: 50px;
  padding: 0 55px 0 15px;
  color: #eff0e9;
  font-size: 16px;
  outline: none;
  border: 1px solid #3b4547;
  background: #080b0c;
}

.title-field input:focus {
  border-color: #6c6039;
  box-shadow: inset 3px 0 0 var(--gold);
}

.title-field > small {
  position: absolute;
  right: 35px;
  bottom: 38px;
  color: #596263;
  font-size: 9px;
}

.editor-card {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: #0b0e0f;
}

.paste-guide {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  padding: 10px 14px;
  border-bottom: 1px solid #384041;
  background:
    linear-gradient(90deg, rgba(75, 173, 181, 0.08), transparent), #101617;
}

.clean-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.clean-indicator span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #081011;
  font-size: 11px;
  border-radius: 50%;
  background: #66c6b6;
}

.clean-indicator strong {
  color: #89ddd0;
  font: 700 10px/1 var(--serif);
  letter-spacing: 0.06em;
}

.paste-guide p {
  margin: 0;
  color: #859091;
  font-size: 11px;
}

.paste-guide p strong {
  color: #c5ccc8;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid #3a4345;
  background: #151a1b;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.editor-toolbar button,
.editor-toolbar select,
.color-tool {
  display: grid;
  height: 32px;
  place-items: center;
  min-width: 32px;
  padding: 0 8px;
  color: #b6bdbb;
  font-size: 11px;
  cursor: pointer;
  border: 1px solid #343d3f;
  background: #0e1213;
}

.editor-toolbar button:hover,
.editor-toolbar button.is-active,
.editor-toolbar select:hover,
.color-tool:hover {
  color: #f0d987;
  border-color: #6a5b31;
  background: #1b190f;
}

.editor-toolbar select {
  display: block;
  min-width: 86px;
  outline: none;
}

.tool-divider {
  width: 1px;
  height: 23px;
  margin: 0 3px;
  background: #354042;
}

.toolbar-break {
  flex-basis: 100%;
  height: 0;
}

.toolbar-spacer {
  flex: 1;
}

.editor-toolbar button[title^="굵게"] {
  font-weight: 700;
}

.editor-toolbar button[title^="기울임"] {
  font-style: italic;
}

.editor-toolbar button[title^="밑줄"] {
  text-decoration: underline;
}

.color-tool {
  position: relative;
  padding: 0;
}

.color-tool span {
  display: grid;
  width: 33px;
  height: 30px;
  place-items: center;
  font-weight: 700;
  border-bottom: 3px solid #eee9dc;
}

.color-tool.highlight span {
  border-color: #66531f;
}

.color-tool input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.content-editor {
  min-height: 590px;
  padding: 42px 48px;
  color: #d3d7d2;
  font-size: 15px;
  line-height: 1.85;
  outline: none;
  background:
    radial-gradient(
      circle at 50% 0,
      rgba(255, 255, 255, 0.018),
      transparent 28%
    ),
    #0b0e0f;
}

.content-editor:focus {
  box-shadow: inset 0 0 0 1px #4b5556;
}

.content-editor h1,
.content-editor h2,
.content-editor h3 {
  color: #f0ece1;
}

.content-editor h2 {
  margin: 30px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #384143;
}

.content-editor h3 {
  margin: 22px 0 10px;
}

.content-editor p {
  margin: 10px 0;
}

.content-editor blockquote {
  margin: 22px 0;
  padding: 15px 18px;
  border-left: 3px solid var(--gold);
  background: #15150f;
}

.content-editor img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border: 1px solid #3a4344;
}

.content-editor figure {
  margin: 25px 0;
}

.content-editor figcaption {
  color: #687273;
  font-size: 11px;
  text-align: center;
}

.content-editor table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

.content-editor th,
.content-editor td {
  min-width: 80px;
  padding: 10px;
  border: 1px solid #465052;
}

.content-editor a {
  color: #68c7d3;
  text-decoration: underline;
}

.content-editor hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid #40494a;
}

.editor-status {
  display: flex;
  justify-content: space-between;
  padding: 9px 13px;
  color: #596364;
  font-size: 9px;
  border-top: 1px solid #2d3536;
  background: #0d1112;
}

.attachment-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding: 17px 20px;
  border: 1px solid var(--line);
  background: #0e1213;
}

.attachment-card > div strong,
.attachment-card > div span {
  display: block;
}

.attachment-card > div strong {
  color: #c9ceca;
  font-size: 12px;
}

.attachment-card > div span {
  margin-top: 5px;
  color: #616b6c;
  font-size: 9px;
}

.attachment-card > button {
  margin-left: auto;
  height: 33px;
  padding: 0 13px;
  color: #aeb6b4;
  cursor: pointer;
  border: 1px solid #3a4445;
  background: #0a0e0f;
}

.attachment-card ul {
  flex-basis: 100%;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.attachment-card li {
  display: flex;
  justify-content: space-between;
  padding: 9px 11px;
  color: #9fa8a6;
  font-size: 10px;
  border-top: 1px solid #252d2e;
}

.attachment-card li button {
  color: #a76868;
  cursor: pointer;
  border: 0;
  background: transparent;
}

.editor-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setting-card {
  padding: 20px;
  border: 1px solid var(--line);
  background: #0e1213;
}

.setting-title {
  margin-bottom: 20px;
}

.setting-title small,
.setting-title strong {
  display: block;
}

.setting-title small {
  color: var(--cyan);
  font: 700 8px/1 var(--serif);
  letter-spacing: 0.15em;
}

.setting-title strong {
  margin-top: 8px;
  color: #e2dfd6;
  font-size: 16px;
}

.setting-card > label {
  display: block;
  margin-top: 15px;
  color: #858f90;
  font-size: 10px;
}

.setting-card select {
  width: 100%;
  height: 39px;
  margin-top: 7px;
  padding: 0 10px;
  color: #bbc3c0;
  outline: none;
  border: 1px solid #394345;
  background: #090d0e;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid #283031;
}

.toggle-row strong,
.toggle-row small {
  display: block;
}

.toggle-row strong {
  color: #b6bebb;
  font-size: 11px;
}

.toggle-row small {
  margin-top: 5px;
  color: #5d6768;
  font-size: 9px;
}

.toggle-row > button {
  position: relative;
  width: 38px;
  height: 20px;
  padding: 0;
  cursor: pointer;
  border: 1px solid #3c4647;
  border-radius: 20px;
  background: #191e1f;
}

.toggle-row > button span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #697273;
  transition: 0.18s;
}

.toggle-row > button.is-on {
  border-color: #766430;
  background: #282313;
}

.toggle-row > button.is-on span {
  left: 21px;
  background: var(--gold-bright);
}

.checklist p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0;
  color: #717b7c;
  font-size: 10px;
}

.checklist p span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #818a8b;
  border: 1px solid #3a4344;
  border-radius: 50%;
}

.checklist p.done {
  color: #9fb0aa;
}

.checklist p.done span {
  color: #66c5aa;
  border-color: #396b5e;
}

.editor-help {
  padding: 17px 18px;
  border: 1px solid #4b4329;
  background: #15140e;
}

.editor-help strong {
  color: #dac479;
  font: 700 9px/1 var(--serif);
  letter-spacing: 0.1em;
}

.editor-help p {
  margin: 9px 0 0;
  color: #77766e;
  font-size: 10px;
  line-height: 1.7;
}

.editor-actions {
  display: flex;
  gap: 7px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #101415;
}

.editor-actions span {
  flex: 1;
}

.editor-actions button {
  height: 40px;
  padding: 0 18px;
  color: #9ca5a4;
  cursor: pointer;
  border: 1px solid #3a4345;
  background: #0a0e0f;
}

.editor-actions button:hover {
  color: #e0d5ad;
  border-color: #625732;
}

.editor-actions .publish {
  min-width: 125px;
  color: #f0dc96;
  border-color: #726231;
  background: linear-gradient(#252113, #17160f);
}

/* =========================================================
   NEON Editor v10 - 내부 팔레트 / 저장되는 표 크기
   ========================================================= */
.color-picker {
  position: relative;
}

.editor-toolbar .color-tool {
  position: relative;
  display: grid;
  min-width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
}

.editor-toolbar .color-tool > span {
  display: grid;
  width: 36px;
  height: 29px;
  place-items: center;
  border: 0;
}

.editor-toolbar .color-tool > i {
  position: absolute;
  right: 5px;
  bottom: 4px;
  left: 5px;
  height: 3px;
  background: #eee9dc;
  content: "";
}

.editor-toolbar .color-tool.highlight > i {
  background: #66531f;
}

.color-palette {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 90;
  display: grid;
  width: 230px;
  grid-template-columns: repeat(6, 28px);
  gap: 6px;
  padding: 11px;
  border: 1px solid #4a5455;
  background: #111617;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.58);
}

.color-palette[hidden] {
  display: none !important;
}

.editor-toolbar .color-swatch {
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.editor-toolbar .color-swatch:hover {
  border-color: #f0d987;
  transform: scale(1.08);
}

.editor-toolbar .color-swatch--clear {
  color: #d8d8d2;
  font-size: 18px;
  background:
    linear-gradient(135deg, transparent 46%, #b85c61 47% 53%, transparent 54%),
    #f4f4f1;
}

.content-editor table {
  position: relative;
  table-layout: fixed;
}

.content-editor table col {
  min-width: 0;
}

.content-editor tr {
  min-height: 34px;
}

.content-editor th,
.content-editor td {
  position: relative;
  min-width: 0 !important;
  height: inherit;
  vertical-align: middle;
}

.content-editor table.is-selected-table {
  outline: 2px solid rgba(80, 207, 225, 0.78);
  outline-offset: 3px;
}

.content-editor.is-resizing-table {
  user-select: none;
}

.content-editor.is-resizing-table iframe,
.content-editor.is-resizing-table img {
  pointer-events: none;
}

.table-dialog-body {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
