.ttt-rich-host {
  position: relative;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #e4e9f2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ttt-rich-host:focus-within {
  border-color: var(--navy, #0b2f6b);
  box-shadow: 0 0 0 3px rgba(11, 47, 107, 0.12);
}

.ttt-rich-host .ql-toolbar.ql-snow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  max-width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #eef1f6;
  border-radius: 15px 15px 0 0;
  background: #f6f8fb;
  font-family: inherit;
}

.ttt-rich-host .ql-toolbar.ql-snow::after,
.ttt-rich-host .ql-formats::after {
  content: none;
  display: none;
}

.ttt-rich-host .ql-container.ql-snow {
  height: auto;
  border: 0;
  border-radius: 0 0 15px 15px;
  background: #fff;
  font-family: inherit;
  font-size: 0.98rem;
  max-width: 100%;
}

.ttt-rich-host .ql-editor {
  min-height: 220px;
  max-height: 460px;
  height: auto;
  padding: 16px 18px 18px;
  color: #1f2937;
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.ttt-rich-host .ql-editor.ql-blank::before {
  color: #98a2b3;
  font-style: normal;
  left: 18px;
  right: 18px;
}

.ttt-rich-host .ql-editor p { margin: 0 0 0.7em; }

.ttt-rich-host .ql-editor h2 {
  margin: 0.85em 0 0.3em;
  color: #111827;
  font-size: 1.32rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.28;
}

.ttt-rich-host .ql-editor h3 {
  margin: 0.75em 0 0.25em;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.ttt-rich-host .ql-snow .ql-editor blockquote {
  margin: 0.35em 0 0.8em;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--gold, #c6a046);
  color: #374151;
}

.ttt-rich-host .ql-editor a {
  color: var(--navy, #0b2f6b);
  font-weight: 650;
}

.ttt-rich-host .ql-editor img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.6em 0;
  border-radius: 12px;
}

.ttt-rich-host .ql-formats {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1px;
  margin: 0 !important;
}

.ttt-rich-host .ql-formats:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 16px;
  margin: 0 7px;
  background: #e4e9f2;
  flex: 0 0 auto;
}

.ttt-rich-host .ql-snow.ql-toolbar button,
.ttt-rich-host .ql-snow .ql-toolbar button,
.ttt-rich-host .ttt-undo,
.ttt-rich-host .ttt-redo {
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475467;
  cursor: pointer;
}

.ttt-rich-host .ql-snow.ql-toolbar button svg,
.ttt-rich-host .ql-snow .ql-toolbar button svg,
.ttt-rich-host .ttt-undo svg,
.ttt-rich-host .ttt-redo svg {
  float: none;
  display: block;
  width: 18px;
  height: 18px;
}

.ttt-rich-host .ql-snow .ql-stroke { stroke: #475467; }
.ttt-rich-host .ql-snow .ql-fill,
.ttt-rich-host .ql-snow .ql-stroke.ql-fill { fill: #475467; }

.ttt-rich-host .ql-snow.ql-toolbar button:hover,
.ttt-rich-host .ql-snow .ql-toolbar button:hover,
.ttt-rich-host .ttt-undo:hover,
.ttt-rich-host .ttt-redo:hover,
.ttt-rich-host .ql-snow .ql-picker-label:hover {
  background: #fff;
  color: #0b2f6b;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

.ttt-rich-host .ql-snow.ql-toolbar button.ql-active,
.ttt-rich-host .ql-snow .ql-toolbar button.ql-active,
.ttt-rich-host .ql-snow .ql-picker-label.ql-active {
  background: #e7eef8;
  color: #0b2f6b;
  box-shadow: inset 0 0 0 1px rgba(11, 47, 107, 0.08);
}

.ttt-rich-host .ql-snow.ql-toolbar button:hover .ql-stroke,
.ttt-rich-host .ql-snow .ql-toolbar button:hover .ql-stroke,
.ttt-rich-host .ql-snow.ql-toolbar button:focus-visible .ql-stroke,
.ttt-rich-host .ql-snow.ql-toolbar button.ql-active .ql-stroke,
.ttt-rich-host .ql-snow .ql-picker-label:hover .ql-stroke,
.ttt-rich-host .ql-snow .ql-picker-label.ql-active .ql-stroke {
  stroke: #0b2f6b;
}

.ttt-rich-host .ql-snow.ql-toolbar button:hover .ql-fill,
.ttt-rich-host .ql-snow .ql-toolbar button:hover .ql-fill,
.ttt-rich-host .ql-snow.ql-toolbar button.ql-active .ql-fill,
.ttt-rich-host .ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,
.ttt-rich-host .ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,
.ttt-rich-host .ql-snow .ql-picker-label:hover .ql-fill,
.ttt-rich-host .ql-snow .ql-picker-label.ql-active .ql-fill {
  fill: #0b2f6b;
}

.ttt-rich-host .ql-snow.ql-toolbar button:focus-visible,
.ttt-rich-host .ttt-undo:focus-visible,
.ttt-rich-host .ttt-redo:focus-visible,
.ttt-rich-host .ql-snow .ql-picker-label:focus-visible {
  outline: 2px solid #0b2f6b;
  outline-offset: 1px;
}

.ttt-rich-host .ql-snow .ql-picker {
  float: none;
  height: 30px;
  color: #475467;
  font-family: inherit;
}

.ttt-rich-host .ql-snow .ql-color-picker,
.ttt-rich-host .ql-snow .ql-icon-picker { width: 30px; }

.ttt-rich-host .ql-snow .ql-picker-label {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border-color: transparent;
}

.ttt-rich-host .ql-snow .ql-picker.ql-expanded .ql-picker-label {
  background: #fff;
  border-color: transparent;
  color: #0b2f6b;
  z-index: 3;
}

.ttt-rich-host .ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke { stroke: #0b2f6b; }
.ttt-rich-host .ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill { fill: #0b2f6b; }

.ttt-rich-host .ql-toolbar.ql-snow .ql-picker-options,
.ttt-rich-host .ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
  z-index: 30;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid #e5e9f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  max-width: min(280px, calc(100vw - 32px));
}

.ttt-rich-host .ql-color-picker .ql-picker-options { width: 168px; }

.ttt-rich-host .ql-color-picker.ql-expanded .ql-picker-options,
.ttt-rich-host .ql-background.ql-expanded .ql-picker-options {
  left: 0;
  right: auto;
}

.ttt-rich-host .ql-picker-options input,
.ttt-rich-host .ql-color-picker input[type="color"] {
  display: none !important;
}

.ttt-rich-host .ql-color-picker .ql-picker-item {
  width: 18px;
  height: 18px;
  margin: 3px;
  border-radius: 6px;
  border: 1px solid rgba(17, 24, 39, 0.16);
}

.ttt-rich-host .ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,
.ttt-rich-host .ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {
  border-color: #0b2f6b;
}

.ttt-rich-host .ql-snow .ql-tooltip {
  z-index: 24;
  padding: 8px 12px;
  border: 1px solid #e5e9f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  color: #1f2937;
  font-family: inherit;
}

.ttt-rich-host.is-invalid,
.ttt-rich-host.is-invalid:focus-within {
  border-color: var(--danger, #e11d48);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.ttt-rich-host.is-uploading .ql-image {
  opacity: 0.45;
  pointer-events: none;
}

.ttt-rich-status {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #0b2f6b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1.3;
}

.ttt-rich-status:empty { display: none; }

.ttt-rich-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  background: #fff1f2;
  color: #9f1239;
  line-height: 1.45;
}

.ttt-rich-mirror {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ttt-rich-content {
  color: #374151;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 100%;
}

.ttt-rich-content > :first-child { margin-top: 0; }
.ttt-rich-content > :last-child { margin-bottom: 0; }

.ttt-rich-content p {
  margin: 0 0 0.85em;
}

.ttt-rich-content h2 {
  margin: 1.15em 0 0.4em;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink, #111827);
}

.ttt-rich-content h3 {
  margin: 1em 0 0.35em;
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink, #111827);
}

.ttt-rich-content ul,
.ttt-rich-content ol {
  margin: 0 0 0.85em;
  padding-left: 1.35em;
}

.ttt-rich-content li { margin: 0.2em 0; }
.ttt-rich-content li > p { margin: 0; }

.ttt-rich-content blockquote {
  margin: 0 0 0.85em;
  padding: 0.15em 0 0.15em 0.9em;
  border-left: 3px solid var(--gold, #c6a046);
  color: #374151;
}

.ttt-rich-content a {
  color: var(--navy, #0b2f6b);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ttt-rich-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.8em 0;
  border-radius: 16px;
}

.ttt-rich-content .ql-align-center { text-align: center; }
.ttt-rich-content .ql-align-right { text-align: right; }
.ttt-rich-content .ql-align-justify { text-align: justify; }

.profile-live-about.ttt-rich-content { white-space: normal; }

.camp-card-body > h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: -0.03em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.camp-card .ttt-rich-content {
  width: 100%;
  font-size: 0.92rem;
}

.camp-card .ttt-rich-content h2,
.camp-card .ttt-rich-content h3 {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

html[data-theme="dark"] .ttt-rich-host {
  background: #0c1220;
  border-color: #314056;
  box-shadow: none;
}

html[data-theme="dark"] .ttt-rich-host:focus-within {
  border-color: #9eb6e8;
  box-shadow: 0 0 0 3px rgba(158, 182, 232, 0.18);
}

html[data-theme="dark"] .ttt-rich-host.is-invalid,
html[data-theme="dark"] .ttt-rich-host.is-invalid:focus-within {
  border-color: #fb7185;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.2);
}

html[data-theme="dark"] .ttt-rich-host .ql-toolbar.ql-snow {
  background: #101826;
  border-bottom-color: #243044;
}

html[data-theme="dark"] .ttt-rich-host .ql-formats:not(:last-child)::after { background: #314056; }

html[data-theme="dark"] .ttt-rich-host .ql-container.ql-snow,
html[data-theme="dark"] .ttt-rich-host .ql-editor { background: #0c1220; color: #e8edf5; }

html[data-theme="dark"] .ttt-rich-host .ql-editor.ql-blank::before { color: #8b97ab; }

html[data-theme="dark"] .ttt-rich-host .ql-editor h2,
html[data-theme="dark"] .ttt-rich-host .ql-editor h3 { color: #e8edf5; }

html[data-theme="dark"] .ttt-rich-host .ql-snow .ql-editor blockquote {
  color: #d5deec;
  border-left-color: #c6a046;
}

html[data-theme="dark"] .ttt-rich-host .ttt-undo,
html[data-theme="dark"] .ttt-rich-host .ttt-redo,
html[data-theme="dark"] .ttt-rich-host .ql-snow .ql-picker { color: #d5deec; }

html[data-theme="dark"] .ttt-rich-host .ql-snow .ql-stroke { stroke: #d5deec; }
html[data-theme="dark"] .ttt-rich-host .ql-snow .ql-fill,
html[data-theme="dark"] .ttt-rich-host .ql-snow .ql-stroke.ql-fill { fill: #d5deec; }

html[data-theme="dark"] .ttt-rich-host .ql-snow.ql-toolbar button:hover,
html[data-theme="dark"] .ttt-rich-host .ql-snow .ql-toolbar button:hover,
html[data-theme="dark"] .ttt-rich-host .ttt-undo:hover,
html[data-theme="dark"] .ttt-rich-host .ttt-redo:hover,
html[data-theme="dark"] .ttt-rich-host .ql-snow .ql-picker-label:hover,
html[data-theme="dark"] .ttt-rich-host .ql-snow .ql-picker.ql-expanded .ql-picker-label {
  background: #1c2740;
  color: #e8edf5;
  box-shadow: none;
}

html[data-theme="dark"] .ttt-rich-host .ql-snow.ql-toolbar button.ql-active,
html[data-theme="dark"] .ttt-rich-host .ql-snow .ql-toolbar button.ql-active {
  background: #243044;
  color: #fff;
}

html[data-theme="dark"] .ttt-rich-host .ql-snow.ql-toolbar button:hover .ql-stroke,
html[data-theme="dark"] .ttt-rich-host .ql-snow.ql-toolbar button.ql-active .ql-stroke,
html[data-theme="dark"] .ttt-rich-host .ql-snow .ql-picker-label:hover .ql-stroke,
html[data-theme="dark"] .ttt-rich-host .ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {
  stroke: #e8edf5;
}

html[data-theme="dark"] .ttt-rich-host .ql-snow.ql-toolbar button:hover .ql-fill,
html[data-theme="dark"] .ttt-rich-host .ql-snow.ql-toolbar button.ql-active .ql-fill,
html[data-theme="dark"] .ttt-rich-host .ql-snow .ql-picker-label:hover .ql-fill,
html[data-theme="dark"] .ttt-rich-host .ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {
  fill: #e8edf5;
}

html[data-theme="dark"] .ttt-rich-host .ql-snow .ql-picker-options,
html[data-theme="dark"] .ttt-rich-host .ql-snow .ql-tooltip {
  background: #101826;
  border-color: #314056;
  color: #e8edf5;
}

html[data-theme="dark"] .ttt-rich-host .ttt-rich-status { background: #e8edf5; color: #111827; }

html[data-theme="dark"] .ttt-rich-content,
html[data-theme="dark"] .ttt-rich-content blockquote { color: #d5deec; }

html[data-theme="dark"] .ttt-rich-content h2,
html[data-theme="dark"] .ttt-rich-content h3 { color: #e8edf5; }

html[data-theme="dark"] .ttt-rich-content a { color: #9eb6e8; }

html[data-theme="dark"] .ttt-rich-error {
  background: #3b1720;
  border-color: #7f1d1d;
  color: #fecdd3;
}

@media (max-width: 480px) {
  .ttt-rich-host .ql-toolbar.ql-snow { padding: 6px 8px; }
  .ttt-rich-host .ql-formats:not(:last-child)::after { margin: 0 4px; }
  .ttt-rich-host .ql-snow.ql-toolbar button,
  .ttt-rich-host .ql-snow .ql-toolbar button,
  .ttt-rich-host .ttt-undo,
  .ttt-rich-host .ttt-redo,
  .ttt-rich-host .ql-snow .ql-picker,
  .ttt-rich-host .ql-snow .ql-color-picker { width: 28px; height: 28px; }
  .ttt-rich-host .ql-editor { min-height: 160px; padding: 14px; }
  .ttt-rich-host .ql-editor.ql-blank::before { left: 14px; right: 14px; }
  .ttt-rich-host .ql-snow .ql-picker.ql-expanded .ql-picker-options {
    left: 0;
    right: auto;
    max-width: calc(100vw - 28px);
  }
}
