/* Editor de texto page. Site header, footer and tools bar stay untouched. */
body.page-editor-de-texto-online {
  --edt-ink: #172033;
  --edt-blue: #2563eb;
  --edp-rule: #e6edf5;
}

.edt-page {
  display: grid;
  grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
  gap: 16px 18px;
  align-items: start;
  margin: 2px 0 28px;
  color: var(--edt-ink);
}

.edt-title {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 2.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--edt-ink);
}

.article .edt-lede {
  margin: 0 0 16px;
  color: #3d4658;
  font-size: 0.95rem;
  line-height: 1.45;
}

.edt-perks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.edt-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--edt-ink);
}

.edt-perks li:first-child {
  font-size: 0.8rem;
  color: #475569;
}

.edt-perks strong {
  display: block;
  color: var(--edt-ink);
  font-size: 0.92rem;
  font-weight: 750;
}

.edt-perk {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  background: #fff center / 21px no-repeat;
  box-shadow: 0 4px 12px rgba(20, 40, 80, 0.06);
}

.edt-perk.is-doc { background-color: #e8f1ff; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232563eb' d='M6 2h8l4 4v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm7 1.5V8h4.5M8 12h8v2H8zm0 4h6v2H8z'/%3E%3C/svg%3E"); }
.edt-perk.is-cloud { background-color: #dcfce7; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2316a34a' d='M19.35 10.04A7.49 7.49 0 0 0 12 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 0 0 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z'/%3E%3C/svg%3E"); }
.edt-perk.is-chart { background-color: #f3e8ff; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%237c3aed' d='M4 19h16v2H4zm2-4h3v4H6zm5-6h3v10h-3zm5-4h3v14h-3z'/%3E%3C/svg%3E"); }
.edt-perk.is-find { background-color: #fff4d6; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='m15.2 15.2 5 5'/%3E%3C/svg%3E"); }
.edt-perk.is-gear { background-color: #ffe8ee; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e11d48' d='M12 8a4 4 0 1 1 0 8 4 4 0 0 1 0-8zm8.2 3.2-.9-1.6 1.2-2-1.7-1.7-2 1.2-1.6-.9L14.6 4h-5.2L8.8 6.2l-1.6.9-2-1.2L3.5 7.6l1.2 2-.9 1.6L2 12.4v2.4l2 1.2.9 1.6-1.2 2 1.7 1.7 2-1.2 1.6.9.6 2.2h5.2l.6-2.2 1.6-.9 2 1.2 1.7-1.7-1.2-2 .9-1.6 2-1.2v-2.4z'/%3E%3C/svg%3E"); }

.article .edt-art img {
  display: block;
  width: min(108%, 290px);
  height: auto;
  margin: 10px 0 0 -4%;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.page-editor-de-texto-online .edt-app {
  height: auto;
  min-height: 0;
  border-radius: 22px;
  border: 1px solid var(--edp-rule);
  background: #f7f9fc;
  box-shadow: 0 12px 32px rgba(30, 50, 90, 0.06);
  overflow: hidden;
}

body.page-editor-de-texto-online .edt-menubar {
  background: #fff;
  border-bottom: 1px solid var(--edp-rule);
  padding: 6px 8px;
}

body.page-editor-de-texto-online .edt-toolbar {
  background: #fff;
  border-bottom: 1px solid var(--edp-rule);
  gap: 8px;
  padding: 10px 12px;
}

body.page-editor-de-texto-online .edt-toolbar .edt-btn,
body.page-editor-de-texto-online .edt-caret-btn {
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--edp-rule);
  color: var(--edt-ink);
  min-height: 36px;
  font-weight: 700;
  box-shadow: none;
}

body.page-editor-de-texto-online .edt-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.page-editor-de-texto-online .edt-tool-btn svg,
body.page-editor-de-texto-online #edt-btn-restore svg,
body.page-editor-de-texto-online #edt-btn-dismiss svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: none;
}

body.page-editor-de-texto-online .edt-toolbar .edt-ico {
  width: 18px;
  height: 18px;
}

body.page-editor-de-texto-online .edt-toolbar .edt-btn-icon {
  color: #334155;
}

.edt-split {
  display: inline-flex;
  align-items: stretch;
  position: relative;
}

.edt-split > .edt-tool-btn {
  border-radius: 10px 0 0 10px;
  border-right: 0;
}

body.page-editor-de-texto-online .edt-caret-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 10px 10px 0;
  padding: 0 8px;
  min-width: 30px;
  color: #475569;
}

body.page-editor-de-texto-online .edt-caret-btn svg {
  width: 15px;
  height: 15px;
}

body.page-editor-de-texto-online #edt-btn-save.is-clean { opacity: 1; }

body.page-editor-de-texto-online #edt-btn-restore {
  background: var(--edt-blue);
  border-color: #1d4ed8;
  color: #fff;
}

body.page-editor-de-texto-online #edt-btn-dismiss {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
}

body.page-editor-de-texto-online #edt-btn-copy[hidden] { display: none !important; }

body.page-editor-de-texto-online .edt-font-size {
  background: #fff;
  border: 1px solid var(--edp-rule);
  border-radius: 10px;
}

body.page-editor-de-texto-online .edt-font-size .edt-btn {
  border: 0;
  background: transparent;
  min-width: 32px;
  font-size: 1.05rem;
}

.edt-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px;
  background: #eef3fb;
  border-bottom: 1px solid var(--edp-rule);
}

.edt-tab {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 220px;
  padding: 2px 4px 2px 8px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dbe4f0;
}

body.page-editor-de-texto-online .edt-filename {
  border: 0;
  background: transparent;
  border-radius: 6px;
  box-shadow: none;
  max-width: 140px;
  padding: 4px 2px;
}

.edt-tab-x,
.edt-tab-add {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.edt-tab-add {
  background: #fff;
  border: 1px solid #dbe4f0;
}

body.page-editor-de-texto-online .edt-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-weight: 650;
}

body.page-editor-de-texto-online .edt-status.is-saved::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex: none;
}

body.page-editor-de-texto-online .edt-stage {
  flex: 1 1 400px;
  min-height: 400px;
  background: #fff;
}

body.page-editor-de-texto-online .edt-empty-hint {
  left: 18px;
  top: 16px;
  transform: none;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  font-size: 0.95rem;
}

body.page-editor-de-texto-online .edt-draft-badge { display: none !important; }

body.page-editor-de-texto-online .edt-stats {
  background: #f7f9fc;
  gap: 8px;
}

body.page-editor-de-texto-online .edt-stat strong {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--edt-blue);
  color: #fff;
  font-size: 0.75rem;
}

body.page-editor-de-texto-online .edt-stat-cursor {
  margin-left: auto;
  background: #fff;
}

body.page-editor-de-texto-online .edt-stat-hint {
  color: #64748b;
  font-weight: 650;
}

.edt-foot {
  display: grid;
  grid-template-columns: minmax(180px, 0.95fr) minmax(0, 2fr) minmax(190px, 1.1fr);
  gap: 12px;
  margin-top: 14px;
}

.edt-note,
.edt-quick,
.edt-where {
  border-radius: 16px;
  padding: 16px;
  border: 1px solid transparent;
}

.edt-note { background: #fff6dc; border-color: #fbe8b4; }
.edt-quick { background: #f1f6ff; border-color: #dfe9fa; }
.edt-where { background: #edfaf2; border-color: #d3f0de; }

.article .edt-foot h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--edt-ink);
}

.article .edt-foot p {
  margin: 0;
  color: #3d4658;
  font-size: 0.88rem;
  line-height: 1.4;
}

.edt-note-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
  background: #fff center / 14px no-repeat;
}

.edt-note-ico.is-bulb { background-color: #fde68a; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d97706' d='M9 21h6v-1H9zm3-19a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E"); }
.edt-note-ico.is-plus { background-color: #dbeafe; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232563eb' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E"); }
.edt-note-ico.is-cloud { background-color: #bbf7d0; background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2316a34a' d='M7 18a4 4 0 0 1-.4-8 5.5 5.5 0 0 1 10.6-1.2A3.5 3.5 0 0 1 17 18H7z'/%3E%3C/svg%3E"); }

.edt-quick-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.edt-quick-row button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 74px;
  padding: 10px 4px 8px;
  border: 1px solid #e3e9f1;
  border-radius: 12px;
  background: #fff;
  color: var(--edt-ink);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 40, 80, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.edt-quick-row button:hover {
  border-color: #bfd3f5;
  box-shadow: 0 6px 14px rgba(30, 60, 120, 0.08);
  transform: translateY(-1px);
}

.edt-quick-row button svg {
  width: 20px;
  height: 20px;
  fill: #1e293b;
}

.edt-quick-row button.is-danger svg {
  fill: #e11d48;
}

.edt-quick-row button b {
  color: #1e293b;
  font-size: 1.05rem;
  line-height: 20px;
  font-weight: 800;
}

.edt-devices {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.edt-devices span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 36px;
  border: 1px solid #d6e9dd;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 16, 16, 0.04);
}

.edt-devices svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #1e293b;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 1360px) {
  .edt-page {
    --edt-stage-w: min(1640px, calc(100vw - 96px));
    width: var(--edt-stage-w);
    margin-left: calc((100% - var(--edt-stage-w)) / 2);
    grid-template-columns: clamp(250px, 15vw, 290px) minmax(0, 1fr);
    gap: 18px clamp(22px, 1.6vw, 30px);
  }
}

@media (max-width: 1180px) {
  .edt-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .edt-quick { grid-column: 1 / -1; order: -1; }
}

@media (max-width: 980px) {
  .edt-page { grid-template-columns: 1fr; }
  .edt-perks,
  .edt-art { display: none; }
  .edt-quick-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .edt-foot { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body.page-editor-de-texto-online .edt-stage { min-height: 280px; flex-basis: 280px; }
  body.page-editor-de-texto-online .edt-status { width: 100%; margin-left: 0; order: 5; }
  .edt-quick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

html[data-theme="dark"] .edt-title,
html[data-theme="dark"] .edt-perks strong,
html[data-theme="dark"] .article .edt-foot h2 { color: #f8fafc; }

html[data-theme="dark"] .article .edt-lede,
html[data-theme="dark"] .edt-perks li,
html[data-theme="dark"] .article .edt-foot p { color: #cbd5e1; }

html[data-theme="dark"] body.page-editor-de-texto-online .edt-app,
html[data-theme="dark"] .edt-tabs { background: #111827; border-color: #334155; }

html[data-theme="dark"] .edt-tab,
html[data-theme="dark"] .edt-tab-add,
html[data-theme="dark"] body.page-editor-de-texto-online .edt-toolbar .edt-btn,
html[data-theme="dark"] .edt-quick-row button { background: #1e293b; color: #f8fafc; border-color: #334155; }

html[data-theme="dark"] .edt-note { background: #2a2416; border-color: #4a3d1c; }
html[data-theme="dark"] .edt-quick { background: #152033; border-color: #243452; }
html[data-theme="dark"] .edt-where { background: #13261c; border-color: #1f4030; }

html[data-theme="dark"] .edt-perks li { color: #e2e8f0; }
html[data-theme="dark"] .edt-perks li:first-child { color: #94a3b8; }

html[data-theme="dark"] .edt-devices svg { stroke: #e2e8f0; }
html[data-theme="dark"] .edt-quick-row button svg { fill: #e2e8f0; }
html[data-theme="dark"] .edt-quick-row button.is-danger svg { fill: #fb7185; }
html[data-theme="dark"] .edt-quick-row button b { color: #e2e8f0; }

html[data-theme="dark"] .edt-devices span { background: #1e293b; border-color: #334155; }

html[data-theme="dark"] body.page-editor-de-texto-online .edt-empty-hint {
  background: transparent;
  border: 0;
}
