@import "tailwindcss";

:root {
  --background: #eff5fb;
  --foreground: #0f172a;
  --surface: #ffffff;
  --muted: #5f7187;
  --primary: #2563eb;
  --primary-strong: #163ea5;
  --primary-soft: #dbeafe;
  --line: rgba(148, 163, 184, 0.24);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-pretendard);
  --font-mono: var(--font-pretendard);
}

@layer base {
  * {
    box-sizing: border-box;
  }

  html {
    background:
      radial-gradient(circle at top left, rgba(96, 165, 250, 0.25), transparent 32%),
      radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 26%),
      linear-gradient(180deg, #f7fbff 0%, #eef4fa 48%, #f7fbff 100%);
  }

  body {
    background: transparent;
    color: var(--foreground);
    font-family: var(--font-pretendard), sans-serif;
  }

  button {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    color: inherit;
  }

  a {
    text-decoration: none;
  }

  button,
  a,
  [role="button"] {
    -webkit-tap-highlight-color: transparent;
  }

  button:focus,
  button:focus-visible,
  a:focus,
  a:focus-visible,
  [role="button"]:focus,
  [role="button"]:focus-visible {
    outline: none;
  }

  button::-moz-focus-inner {
    border: 0;
    padding: 0;
  }

  ::selection {
    background: rgba(37, 99, 235, 0.18);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes review-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes toast-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@layer utilities {
  .text-balance {
    text-wrap: balance;
  }

  .om-page-title {
    font-size: 28px;
    line-height: 1.14;
    font-weight: 600;
    letter-spacing: -0.05em;
  }

  @media (min-width: 640px) {
    .om-page-title {
      font-size: 32px;
    }
  }

  .om-btn-primary {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    border-radius: 14px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, #2f6df6, #245de3);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 18px 40px rgba(47, 109, 246, 0.22);
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      filter 0.2s ease,
      opacity 0.2s ease;
  }

  .om-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 50px rgba(47, 109, 246, 0.28);
    filter: saturate(1.03);
  }

  .om-btn-primary:disabled,
  .om-btn-primary[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    filter: none;
    box-shadow: 0 18px 40px rgba(47, 109, 246, 0.16);
  }

  .om-btn-secondary {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 0.65rem;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    border-radius: 14px;
    border: 1px solid #d7e3fb;
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    color: #2f6df6;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(25, 38, 72, 0.06);
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease,
      background 0.2s ease,
      opacity 0.2s ease;
  }

  .om-btn-secondary:hover {
    transform: translateY(-1px);
    border-color: #bfd4ff;
    background: linear-gradient(180deg, #ffffff 0%, #f0f6ff 100%);
    box-shadow: 0 16px 34px rgba(25, 38, 72, 0.08);
    color: #245de3;
  }

  .om-btn-secondary:disabled,
  .om-btn-secondary[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: 0 10px 24px rgba(25, 38, 72, 0.04);
  }

  .om-btn-danger {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 0.65rem;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    border-radius: 14px;
    border: 1px solid #f0cfd7;
    background: linear-gradient(180deg, #ffffff 0%, #fff7f8 100%);
    color: #b24c64;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(25, 38, 72, 0.06);
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      border-color 0.2s ease,
      color 0.2s ease,
      background 0.2s ease,
      opacity 0.2s ease;
  }

  .om-btn-danger:hover {
    transform: translateY(-1px);
    border-color: #ebb8c6;
    background: linear-gradient(180deg, #ffffff 0%, #fff1f4 100%);
    box-shadow: 0 16px 34px rgba(178, 76, 100, 0.12);
    color: #a13d57;
  }

  .om-btn-danger:disabled,
  .om-btn-danger[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: 0 10px 24px rgba(25, 38, 72, 0.04);
  }

  .om-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    white-space: nowrap;
    border-radius: 10px;
    border: 1px solid #e2e9f4;
    background: #fff;
    color: #536783;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
  }

  .om-badge-sm {
    min-height: 24px;
    padding: 0 10px;
    font-size: 11px;
  }

  .om-badge-md {
    min-height: 28px;
    padding: 0 11px;
    font-size: 12px;
  }

  .om-badge-lg {
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
  }

  .om-badge-info {
    border-color: #dce5f7;
    background: #f8fbff;
    color: #4568b0;
  }

  .om-badge-muted {
    border-color: #e4eaf4;
    background: #fff;
    color: #5a6f95;
  }

  .om-badge-soft {
    border-color: #eef2f8;
    background: #f6f8fc;
    color: #60728f;
  }

  .om-badge-glass {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
  }

  .om-badge-success {
    border-color: #dceadf;
    background: #f7fbf8;
    color: #2d8153;
  }

  .om-badge-warning {
    border-color: #f0dfbc;
    background: #fff9ef;
    color: #9b690d;
  }

  .om-badge-danger {
    border-color: #efd8de;
    background: #fff6f8;
    color: #b04c63;
  }

  .panel-surface {
    @apply rounded-[32px] border border-white/70 bg-white/85 shadow-[0_20px_70px_rgba(15,23,42,0.08)] backdrop-blur-xl;
  }

  .panel-muted {
    @apply rounded-[28px] border bg-slate-50/90 shadow-[0_16px_50px_rgba(37,99,235,0.08)];
  }

  .om-setup-page {
    background: #ffffff;
    padding: 0 !important;
    width: 100%;
    min-width: 0;
  }

  .om-setup-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    min-width: 0;
  }

  .om-settings-layout {
    display: block;
    min-height: 100%;
    height: 100%;
    min-width: 0;
    width: 100%;
    background: #f6f8fc;
    overflow: hidden;
  }

  .om-settings-sidebar {
    border-bottom: 1px solid #e7edf8;
    background: #ffffff;
    padding: 24px 20px;
  }

  .om-settings-sidebar-nav {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .om-settings-sidebar-link {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 9px;
    border-radius: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1;
    transition:
      color 0.18s ease,
      opacity 0.18s ease;
  }

  .om-settings-sidebar-link-icon {
    display: inline-flex;
    height: 20px;
    width: 20px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    opacity: 0.88;
  }

  .om-settings-sidebar-link-idle {
    color: #5b6e8d;
  }

  .om-settings-sidebar-link-idle:hover {
    color: #2f6df6;
  }

  .om-settings-sidebar-link-active {
    color: #2f6df6;
    font-weight: 600;
  }

  .om-settings-main {
    min-width: 0;
    min-height: 0;
    height: 100%;
    background: white;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .om-settings-main-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    min-width: 0;
    min-height: 100%;
  }

  .om-setup-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid #e4ebf8;
    padding: 28px 20px 24px;
    width: 100%;
    min-width: 0;
  }

  .om-setup-header-copy {
    min-width: 0;
  }

  .om-setup-header-description {
    margin-top: 12px;
    max-width: 760px;
    font-size: 15px;
    line-height: 1.85;
    color: #6a7b98;
    text-wrap: balance;
  }

  .om-setup-content {
    padding: 24px 20px 36px;
    width: 100%;
    min-width: 0;
  }

  .om-settings-main-inner-compact .om-setup-header {
    gap: 8px;
    border-bottom-color: #edf1f6;
    padding: 16px 12px 12px;
  }

  .om-settings-main-inner-compact .om-page-title {
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #111a33;
  }

  .om-settings-main-inner-compact .om-setup-header-description {
    margin-top: 6px;
    max-width: none;
    font-size: 13px;
    line-height: 1.55;
    color: #7c879b;
    text-wrap: initial;
  }

  .om-settings-main-inner-compact .om-setup-content {
    padding: 0;
  }

  .om-settings-main-inner-compact .om-setup-panel {
    border-width: 0 0 1px;
    border-color: #edf1f6;
    border-radius: 0;
    box-shadow: none;
  }

  .om-settings-main-inner-compact .om-setup-subpanel {
    border-top: 0;
  }

  .om-settings-main-inner-compact .om-setup-subpanel-box:first-child {
    border-top: 0;
  }

  .om-setup-panel {
    border: 1px solid #e3ebf8;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(20, 34, 64, 0.05);
  }

  .om-setup-subpanel {
    border: 0;
    border-top: 1px solid #edf2fb;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .om-setup-subpanel-box {
    border: 0;
    border-top: 1px solid #edf2fb;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  @media (min-width: 640px) {
    .om-settings-sidebar {
      padding: 28px 24px;
    }

    .om-setup-header {
      padding: 32px 24px 24px;
    }

    .om-setup-content {
      padding: 24px 24px 40px;
    }

    .om-settings-main-inner-compact .om-setup-header {
      padding: 16px 16px 12px;
    }
  }

  @media (min-width: 1280px) {
    .om-settings-layout {
      display: grid;
      grid-template-columns: 280px minmax(0, 1fr);
      align-items: stretch;
    }

    .om-settings-sidebar {
      min-height: 100%;
      border-right: 1px solid #e7edf8;
      border-bottom: 0;
      padding: 24px 20px 12px;
    }

    .om-setup-header {
      padding: 36px 32px 28px;
    }

    .om-setup-content {
      padding: 28px 32px 44px;
    }

    .om-settings-main-inner-compact .om-setup-header {
      padding: 24px 20px 12px;
    }
  }

  .fade-up {
    animation: fade-up 0.7s ease-out both;
  }

  .review-marquee-mask {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  }

  .review-marquee-track {
    animation: review-marquee 86s linear infinite;
    will-change: transform;
  }

  .review-marquee-mask:hover .review-marquee-track {
    animation-play-state: paused;
  }

  .toast-rise {
    animation: toast-rise 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-marquee-mask {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
  }

  .review-marquee-track {
    animation: none;
    transform: none;
  }
}

.mail-workspace .om-btn-primary,
.mail-workspace .om-btn-secondary,
.mail-workspace .om-btn-danger {
  height: 40px;
  min-height: 40px;
  font-size: 13px;
}

.mail-workspace .om-auto-send-submit.om-btn-primary,
.mail-workspace .om-auto-send-submit.om-btn-primary:hover,
.mail-workspace .om-auto-send-submit.om-btn-primary:disabled {
  box-shadow: none;
}

.official-compose-editor .ql-toolbar.ql-snow {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  font-family: var(--font-pretendard), sans-serif;
  position: relative;
  z-index: 20;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background: #fcfdff;
  background-clip: padding-box;
}

.official-compose-editor .ql-toolbar .ql-formats {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 0;
  padding-right: 8px;
  border-right: 1px solid #edf2fb;
}

.official-compose-editor .ql-toolbar .ql-formats:last-child {
  padding-right: 0;
  border-right: 0;
}

.official-compose-editor .ql-toolbar.ql-snow button {
  display: inline-flex;
  height: 32px;
  width: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0;
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.official-compose-editor .ql-toolbar.ql-snow button svg {
  height: 18px;
  width: 18px;
}

.official-compose-editor .ql-picker {
  color: #5d6e8a;
}

.official-compose-editor .ql-toolbar .ql-picker {
  display: inline-flex;
  float: none;
  height: 32px;
  align-items: center;
  min-width: 0;
  vertical-align: middle;
}

.official-compose-editor .ql-toolbar .ql-picker.ql-font {
  min-width: 136px;
}

.official-compose-editor .ql-snow .ql-picker-label {
  box-sizing: border-box;
  display: inline-flex;
  height: 32px;
  min-width: 0;
  align-items: center;
  border-radius: 10px;
  border: 1px solid #e2eaf8;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  padding: 0 30px 0 12px;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.official-compose-editor .ql-snow .ql-picker-label svg {
  right: 10px;
}

.official-compose-editor .ql-snow .ql-picker.ql-font .ql-picker-label {
  min-width: 136px;
}

.official-compose-editor .ql-snow .ql-picker.ql-expanded {
  position: relative;
  z-index: 24;
}

.official-compose-editor .ql-snow .ql-picker-options {
  margin-top: 8px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid #e2eaf7;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 48px rgba(20, 34, 64, 0.14);
}

.official-compose-editor .ql-snow .ql-picker.ql-expanded .ql-picker-options {
  z-index: 25;
}

.official-compose-editor .ql-snow .ql-picker-item {
  display: flex;
  min-height: 36px;
  align-items: center;
  border-radius: 10px;
  padding: 0 10px;
  color: #344767;
}

.official-compose-editor .ql-snow .ql-picker.ql-font .ql-picker-label::before,
.official-compose-editor .ql-snow .ql-picker.ql-font .ql-picker-item::before,
.official-compose-editor .ql-snow .ql-picker.ql-size .ql-picker-label::before,
.official-compose-editor .ql-snow .ql-picker.ql-size .ql-picker-item::before {
  content: attr(data-label);
}

.official-compose-editor .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="Pretendard"]::before,
.official-compose-editor .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="Pretendard"]::before {
  font-family: var(--font-pretendard), sans-serif;
}

.official-compose-editor .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="Arial"]::before,
.official-compose-editor .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="Arial"]::before {
  font-family: Arial, sans-serif;
}

.official-compose-editor .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="Malgun Gothic"]::before,
.official-compose-editor .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="Malgun Gothic"]::before {
  content: "맑은 고딕";
  font-family: "Malgun Gothic", sans-serif;
}

.official-compose-editor .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="Nanum Gothic"]::before,
.official-compose-editor .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="Nanum Gothic"]::before {
  content: "나눔고딕";
  font-family: "Nanum Gothic", sans-serif;
}

.official-compose-editor .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="Georgia"]::before,
.official-compose-editor .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="Georgia"]::before {
  content: "Georgia";
  font-family: Georgia, serif;
}

.official-compose-editor .ql-snow .ql-picker.ql-font .ql-picker-label[data-value="monospace"]::before,
.official-compose-editor .ql-snow .ql-picker.ql-font .ql-picker-item[data-value="monospace"]::before {
  content: "Monospace";
  font-family: monospace;
}

.official-compose-editor .ql-snow .ql-picker.ql-font .ql-picker-label::before,
.official-compose-editor .ql-snow .ql-picker.ql-font .ql-picker-item::before {
  content: attr(data-label);
}

.official-compose-editor .compose-toolbar-size-control {
  display: inline-flex;
  height: 32px;
  min-width: 78px;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  border: 1px solid #e2eaf8;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  padding: 0 10px;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.official-compose-editor .compose-toolbar-size-control:focus-within {
  border-color: #c8dafd;
  background: #f7faff;
  box-shadow: 0 10px 24px rgba(25, 38, 72, 0.06);
}

.official-compose-editor .compose-toolbar-size-input {
  width: 28px;
  border: 0;
  background: transparent;
  color: #344767;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  outline: none;
}

.official-compose-editor .compose-toolbar-size-suffix {
  color: #7b8ca7;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.official-compose-editor .compose-toolbar-swatch-button {
  position: relative;
  display: inline-flex;
  height: 32px;
  width: auto;
  min-width: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid #e2eaf8;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  padding: 0 10px;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.official-compose-editor .compose-toolbar-swatch-button:hover,
.official-compose-editor .compose-toolbar-swatch-button:focus-within {
  border-color: #c8dafd;
  background: #f7faff;
  box-shadow: 0 10px 24px rgba(25, 38, 72, 0.06);
}

.official-compose-editor .compose-toolbar-swatch-input {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
  opacity: 0;
}

.official-compose-editor .compose-toolbar-swatch-label {
  color: #344767;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.official-compose-editor .compose-toolbar-swatch-chip {
  height: 12px;
  width: 12px;
  border-radius: 999px;
  border: 1px solid rgba(79, 98, 128, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.official-compose-editor .compose-toolbar-swatch-chip-wide {
  width: 18px;
  border-radius: 999px;
}

.official-compose-editor .ql-snow .ql-picker.ql-expanded .ql-picker-label,
.official-compose-editor .ql-snow .ql-picker-label:hover,
.official-compose-editor .ql-snow .ql-picker-label.ql-active {
  border-color: #c8dafd;
  background: #f7faff;
  box-shadow: 0 10px 24px rgba(25, 38, 72, 0.06);
}

.official-compose-editor .ql-snow .ql-picker-item:hover,
.official-compose-editor .ql-snow .ql-picker-item.ql-selected {
  background: #eef4ff;
  color: #2f6df6;
}

.official-compose-editor .ql-toolbar.ql-snow button:hover,
.official-compose-editor .ql-toolbar.ql-snow button:focus,
.official-compose-editor .ql-toolbar.ql-snow button.ql-active {
  background: #eef4ff;
  box-shadow: inset 0 0 0 1px rgba(47, 109, 246, 0.08);
}

.official-compose-editor .ql-container.ql-snow {
  border: 0;
  font-family: var(--font-pretendard), sans-serif;
  position: relative;
  z-index: 1;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background: #fcfdff;
}

.official-compose-editor .ql-editor {
  min-height: 360px;
  padding: 20px;
  color: #223250;
  font-size: 15px;
  line-height: 2;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background: #fcfdff;
}

.official-compose-editor .ql-editor.ql-blank::before {
  left: 20px;
  right: 20px;
  color: #a0adc2;
  font-style: normal;
}

.official-compose-editor .ql-snow .ql-stroke {
  stroke: #5d6e8a;
}

.official-compose-editor .ql-snow .ql-fill {
  fill: #5d6e8a;
}

.official-compose-editor .ql-snow button:hover,
.official-compose-editor .ql-snow button:focus,
.official-compose-editor .ql-snow button.ql-active,
.official-compose-editor .ql-snow .ql-picker-label:hover,
.official-compose-editor .ql-snow .ql-picker-label.ql-active {
  color: #2f6df6;
}

.official-compose-editor .ql-snow button:hover .ql-stroke,
.official-compose-editor .ql-snow button:focus .ql-stroke,
.official-compose-editor .ql-snow button.ql-active .ql-stroke,
.official-compose-editor .ql-snow .ql-picker-label:hover .ql-stroke,
.official-compose-editor .ql-snow .ql-picker-label.ql-active .ql-stroke {
  stroke: #2f6df6;
}

.official-compose-editor .ql-snow button:hover .ql-fill,
.official-compose-editor .ql-snow button:focus .ql-fill,
.official-compose-editor .ql-snow button.ql-active .ql-fill,
.official-compose-editor .ql-snow .ql-picker-label:hover .ql-fill,
.official-compose-editor .ql-snow .ql-picker-label.ql-active .ql-fill {
  fill: #2f6df6;
}

.official-compose-editor .ql-tooltip {
  display: flex;
  min-width: 280px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  z-index: 30;
  border: 1px solid #dfe8f8;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 40px rgba(18, 32, 65, 0.14);
}

.official-compose-editor .ql-tooltip.ql-hidden {
  display: none;
}

.official-compose-editor .ql-tooltip .ql-preview {
  max-width: 220px;
  overflow: hidden;
  color: #2f6df6;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.official-compose-editor .ql-tooltip input[type="text"] {
  height: 38px;
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid #e2eaf8;
  background: #fbfcff;
  padding: 0 12px;
  color: #223250;
  font-size: 13px;
  outline: none;
}

.official-compose-editor .ql-tooltip input[type="text"]:focus {
  border-color: #cbdcff;
  background: #ffffff;
}

.official-compose-editor .ql-tooltip .ql-action,
.official-compose-editor .ql-tooltip .ql-remove {
  display: inline-flex;
  height: 32px;
  min-width: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f7faff;
  color: #5d6e8a;
  padding: 0 10px;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.official-compose-editor .ql-tooltip .ql-action:hover,
.official-compose-editor .ql-tooltip .ql-remove:hover {
  background: #eef4ff;
  color: #2f6df6;
}

.official-blog-editor .ql-container.ql-snow {
  border: 0;
  font-family: var(--font-pretendard), sans-serif;
}

.official-blog-editor .ql-editor {
  min-height: 520px;
  padding: 30px 18px 72px 72px;
  color: #344767;
  font-size: 16px;
  line-height: 1.9;
  outline: none;
}

.official-blog-editor .ql-editor.ql-blank::before {
  left: 72px;
  right: 18px;
  color: #9aa8ba;
  font-style: normal;
}

.official-blog-editor .ql-editor h1,
.official-blog-editor .ql-editor h2,
.official-blog-editor .ql-editor h3 {
  margin: 2.25rem 0 0.8rem;
  color: #16233c;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.28;
}

.official-blog-editor .ql-editor h1 {
  font-size: 30px;
}

.official-blog-editor .ql-editor h2 {
  font-size: 24px;
}

.official-blog-editor .ql-editor h3 {
  font-size: 20px;
}

.official-blog-editor .ql-editor p,
.official-blog-editor .ql-editor ol,
.official-blog-editor .ql-editor ul {
  margin: 0 0 0.95rem;
}

.official-blog-editor .ql-editor p,
.official-blog-editor .ql-editor h1,
.official-blog-editor .ql-editor h2,
.official-blog-editor .ql-editor h3,
.official-blog-editor .ql-editor blockquote,
.official-blog-editor .ql-editor li,
.official-blog-editor .ql-editor .ql-code-block,
.official-blog-editor .ql-editor pre.ql-syntax {
  border-radius: 8px;
  transition: background-color 0.14s ease, box-shadow 0.14s ease;
}

.official-blog-editor .ql-editor .blog-editor-active-block {
  background: linear-gradient(90deg, rgba(237, 244, 255, 0.88), rgba(247, 250, 255, 0.28));
  box-shadow: inset 2px 0 0 #8eb5ff;
}

.official-blog-editor .ql-editor ol,
.official-blog-editor .ql-editor ul {
  padding-left: 1.55rem;
}

.official-blog-editor .ql-editor li {
  padding-left: 0.15rem;
}

.official-blog-editor .ql-editor blockquote {
  margin: 1.6rem 0;
  border-left: 2px solid #8cb4ff;
  padding: 0.2rem 0 0.2rem 1rem;
  color: #526784;
}

.official-blog-editor .ql-editor pre.ql-syntax,
.official-blog-editor .ql-editor .ql-code-block-container {
  margin: 1.6rem 0;
  border-radius: 10px;
  background: #f5f8fd;
  color: #31425e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
}

.official-blog-editor .ql-editor pre.ql-syntax {
  padding: 16px;
  white-space: pre-wrap;
}

.official-blog-editor .ql-editor .ql-code-block {
  padding-left: 16px;
  padding-right: 16px;
}

.official-blog-editor .ql-editor .ql-code-block:first-child {
  padding-top: 16px;
  border-radius: 10px 10px 0 0;
}

.official-blog-editor .ql-editor .ql-code-block:last-child {
  padding-bottom: 16px;
  border-radius: 0 0 10px 10px;
}

.official-blog-editor .ql-editor a {
  color: #2f6df6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.official-blog-editor .ql-editor code {
  border-radius: 5px;
  background: #f0f4fa;
  padding: 0.12em 0.36em;
  color: #30527f;
  font-size: 0.88em;
}

.official-blog-editor .blog-editor-table-divider {
  color: #afbdd0;
}

.blog-editor-block-controls {
  position: absolute;
  left: 15px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid #dfe8f8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(30, 58, 104, 0.1);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.blog-editor-block-controls button {
  display: inline-flex;
  height: 26px;
  width: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #7586a2;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.blog-editor-block-controls button:hover,
.blog-editor-block-controls button:focus-visible {
  background: #edf4ff;
  color: #2f6df6;
  outline: none;
}

.blog-editor-block-controls-visible,
.blog-editor-block-controls:focus-within {
  opacity: 1;
  transform: translateX(0);
}

.blog-editor-grip {
  display: grid;
  grid-template-columns: repeat(2, 3px);
  gap: 2px;
}

.blog-editor-grip i {
  height: 3px;
  width: 3px;
  border-radius: 999px;
  background: currentColor;
}

.blog-editor-inline-menu,
.blog-editor-block-menu {
  position: fixed;
  z-index: 80;
  border: 1px solid #dfe8f8;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(18, 32, 65, 0.16);
  backdrop-filter: blur(16px);
}

.blog-editor-inline-menu {
  display: flex;
  align-items: center;
  gap: 1px;
  padding: 4px;
}

.blog-editor-block-menu {
  width: 232px;
  padding: 5px;
}

@media (max-width: 639px) {
  .official-blog-editor .ql-editor {
    min-height: 420px;
    padding: 24px 12px 60px 52px;
    font-size: 15px;
  }

  .official-blog-editor .ql-editor.ql-blank::before {
    left: 52px;
    right: 12px;
  }

  .official-blog-editor .ql-editor h1 {
    font-size: 27px;
  }

  .official-blog-editor .ql-editor h2 {
    font-size: 22px;
  }

  .blog-editor-block-controls {
    left: 8px;
  }
}
