
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sidebar-w: 224px;
  --bg:        #fafaf8;
  --surface:   #ffffff;
  --surface2:  #f4f4f1;
  --surface3:  #eceae5;
  --text-1:    #1c1c1a;
  --text-2:    #6a6a65;
  --text-3:    #a8a8a2;
  --border:    rgba(0,0,0,0.07);
  --border-md: rgba(0,0,0,0.13);
  --border-hv: rgba(0,0,0,0.20);
  --accent:    #1c1c1a;
  --radius:    10px;
  --radius-lg: 14px;
}

html, body { height: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  display: flex;
  min-height: 100vh;
  font-size: 14px;
}

/* ── SIDEBAR ─────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 50;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.logo-img {
  width: 100%;
  max-width: 130px;
  height: auto;
  display: block;
}

.nav-section { padding: 1rem 0.75rem 0.5rem; }
.nav-section-label {
  font-size: 10px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3);
  padding: 0 0.5rem; margin-bottom: 4px;
}

.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .12s;
  font-size: 13px;
  color: var(--text-2);
  user-select: none;
  position: relative;
}
.nav-item:hover { background: var(--surface2); color: var(--text-1); }
.nav-item.active { background: var(--surface2); color: var(--text-1); font-weight: 500; }
.nav-item.active::before {
  content: '';
  position: absolute; left: -12px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px;
  background: var(--text-1);
  border-radius: 0 2px 2px 0;
}
.nav-item.coming-soon { opacity: .5; cursor: default; }
.nav-item.coming-soon:hover { background: transparent; color: var(--text-2); }
.nav-icon {
  width: 16px; height: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1;
}
.nav-badge {
  margin-left: auto;
  font-size: 10px; font-weight: 500;
  background: var(--surface3); color: var(--text-3);
  padding: 2px 6px; border-radius: 10px;
  font-family: 'DM Mono', monospace;
}

.sidebar-footer {
  margin-top: auto;
  padding: 1rem 0.75rem;
  border-top: 1px solid var(--border);
}
.sidebar-footer-text {
  font-size: 11px; color: var(--text-3); padding: 0 0.5rem;
  line-height: 1.5;
}

/* ── MAIN CONTENT ────────────────────────── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 56px;
  display: flex; align-items: center; gap: 12px;
  position: sticky; top: 0; z-index: 40;
}
.topbar-title { font-size: 14px; font-weight: 500; color: var(--text-1); }
.topbar-sep { color: var(--text-3); font-size: 13px; }
.topbar-sub { font-size: 13px; color: var(--text-2); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar-date {
  font-size: 12px; color: var(--text-3);
  font-family: 'DM Mono', monospace;
}

.content { padding: 2rem; flex: 1; }

/* ── PAGE: NICHES ────────────────────────── */
.page { display: none; }
.page.active { display: block; }

.sec-label {
  font-size: 10px; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 12px;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 2rem;
}

.wcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  transition: border-color .15s, transform .1s;
}
.wcard:hover { border-color: var(--border-hv); transform: translateY(-1px); }
.wcard[data-accent="teal"]   { border-top-color: #1D9E75; }
.wcard[data-accent="amber"]  { border-top-color: #BA7517; }
.wcard[data-accent="purple"] { border-top-color: #7F77DD; }
.wcard[data-accent="coral"]  { border-top-color: #D85A30; }
.wcard[data-accent="blue"]   { border-top-color: #378ADD; }
.wcard-icon  { font-size: 22px; margin-bottom: 9px; display: block; }
.wcard-name  { font-size: 14px; font-weight: 500; color: var(--text-1); margin-bottom: 3px; }
.wcard-tag   { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 20px;
}
.p-running { background: #E1F5EE; color: #0F6E56; }
.p-testing  { background: #FAEEDA; color: #854F0B; }
.p-paused   { background: #F1EFE8; color: #5F5E5A; }
.p-stopped  { background: #FCEBEB; color: #A32D2D; }
.p-soon     { background: #E6F1FB; color: #185FA5; }
.pdot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

hr.div { border: none; border-top: 1px solid var(--border); margin: 0 0 1.5rem; }

/* Filter bar */
.filter-bar { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.fbtn {
  font-size: 12px; font-weight: 400; padding: 5px 12px; border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-2); cursor: pointer; transition: all .1s;
}
.fbtn:hover { background: var(--surface2); color: var(--text-1); }
.fbtn.active { background: var(--surface2); color: var(--text-1); border-color: var(--border-md); font-weight: 500; }
.search-wrap { margin-left: auto; position: relative; }
.search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; stroke: var(--text-3); fill: none; }
.search {
  padding: 5px 12px 5px 30px; font-size: 13px; font-family: 'DM Sans', sans-serif;
  border-radius: 20px; border: 1px solid var(--border-md);
  background: var(--surface); color: var(--text-1); width: 200px;
}
.search:focus { outline: none; border-color: var(--border-hv); }
.search::placeholder { color: var(--text-3); }

/* Niche list */
.nlist { display: flex; flex-direction: column; }
.nrow {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius);
  cursor: pointer; transition: background .1s;
  border-bottom: 1px solid var(--border);
}
.nrow:last-child { border-bottom: none; }
.nrow:hover { background: var(--surface2); }
.nrow-icon { font-size: 15px; width: 26px; text-align: center; flex-shrink: 0; }
.nrow-name { font-size: 13px; font-weight: 500; color: var(--text-1); flex: 1; }
.nrow-tag  { font-size: 12px; color: var(--text-3); margin-right: 6px; }
.empty { font-size: 13px; color: var(--text-3); padding: 2rem 10px; text-align: center; }

/* ── DETAIL OVERLAY ──────────────────────── */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.18); z-index: 200;
  align-items: flex-start; justify-content: flex-end;
  overflow: hidden;
}
.overlay.open { display: flex; }

.panel {
  background: var(--surface);
  border-left: 1px solid var(--border);
  width: 100%; max-width: 480px; height: 100%;
  padding: 0;
  display: flex; flex-direction: column;
  animation: slideIn .2s ease;
  overflow: hidden;
}
@keyframes slideIn {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

.panel-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.panel-topbar-left { display: flex; align-items: center; gap: 10px; }
.panel-emoji { font-size: 22px; line-height: 1; }
.panel-title { font-size: 16px; font-weight: 500; color: var(--text-1); }
.close-btn {
  background: none; border: 1px solid var(--border-md);
  border-radius: var(--radius); width: 30px; height: 30px;
  cursor: pointer; font-size: 14px; color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: background .1s;
}
.close-btn:hover { background: var(--surface2); }

.panel-body { padding: 1.5rem; overflow-y: auto; flex: 1; }

.panel-desc { font-size: 13px; color: var(--text-2); line-height: 1.7; margin-bottom: 1.5rem; }

.sub-label {
  font-size: 10px; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 10px;
}

/* Bullet checklist */
.checklist { margin-bottom: 1.5rem; }
.chk-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 5px 0;
  font-size: 13px; color: var(--text-1); line-height: 1.55;
}
.chk-bullet {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--border-hv);
  flex-shrink: 0; margin-top: 6px;
}

/* Resource links */
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lnk {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 13px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface2);
  text-decoration: none; font-size: 13px; font-weight: 500;
  color: var(--text-1); transition: border-color .1s, background .1s;
}
.lnk:hover { border-color: var(--border-hv); background: var(--surface3); }
.lnk-ico { font-size: 15px; }
.lnk-arr { margin-left: auto; font-size: 11px; color: var(--text-3); }


/* ── ADD NICHE BUTTON ────────────────────── */
.add-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius);
  background: var(--text-1); color: #fff;
  font-size: 13px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  border: none; cursor: pointer; transition: opacity .15s;
}
.add-btn:hover { opacity: .85; }

/* ── ADD NICHE MODAL ─────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.22); z-index: 300;
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  padding: 1.5rem;
  animation: fadeUp .2s ease;
}
@keyframes fadeUp {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-title { font-size: 16px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-full { margin-bottom: 12px; }
.form-label {
  display: block; font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-3); margin-bottom: 5px;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 8px 11px;
  font-size: 13px; font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--border-md); border-radius: var(--radius);
  background: var(--surface); color: var(--text-1);
  transition: border-color .1s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--border-hv);
}
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }
.checklist-builder { margin-bottom: 12px; }
.checklist-items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.checklist-row {
  display: flex; align-items: center; gap: 8px;
}
.checklist-row .form-input { flex: 1; }
.remove-chk {
  width: 26px; height: 26px; flex-shrink: 0;
  border: 1px solid var(--border-md); border-radius: 6px;
  background: none; cursor: pointer; font-size: 13px;
  color: var(--text-3); display: flex; align-items: center; justify-content: center;
  transition: all .1s;
}
.remove-chk:hover { border-color: #E24B4A; color: #E24B4A; }
.add-chk-btn {
  font-size: 12px; font-weight: 500; color: var(--text-2);
  background: none; border: 1px dashed var(--border-md);
  border-radius: var(--radius); padding: 6px 12px;
  cursor: pointer; width: 100%; transition: all .1s;
  font-family: 'DM Sans', sans-serif;
}
.add-chk-btn:hover { border-color: var(--border-hv); color: var(--text-1); }
.week-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer; user-select: none;
  margin-bottom: 1.5rem;
}
.toggle-track {
  width: 32px; height: 18px; border-radius: 20px;
  background: var(--surface3); transition: background .15s;
  position: relative; flex-shrink: 0;
}
.toggle-track.on { background: #1D9E75; }
.toggle-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; position: absolute;
  top: 3px; left: 3px; transition: left .15s;
}
.toggle-track.on .toggle-thumb { left: 17px; }
.toggle-label { font-size: 13px; color: var(--text-1); }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.btn-cancel {
  padding: 8px 16px; border-radius: var(--radius);
  border: 1px solid var(--border-md); background: none;
  font-size: 13px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  color: var(--text-2); cursor: pointer; transition: all .1s;
}
.btn-cancel:hover { background: var(--surface2); }
.btn-save {
  padding: 8px 20px; border-radius: var(--radius);
  background: var(--text-1); color: #fff;
  font-size: 13px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  border: none; cursor: pointer; transition: opacity .15s;
}
.btn-save:hover { opacity: .85; }
.btn-danger {
  padding: 8px 16px; border-radius: var(--radius);
  background: none; border: 1px solid #E24B4A;
  font-size: 13px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  color: #E24B4A; cursor: pointer; transition: all .1s;
}
.btn-danger:hover { background: #FCEBEB; }
.panel-actions {
  display: flex; gap: 8px;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.btn-edit {
  flex: 1; padding: 8px 0; border-radius: var(--radius);
  border: 1px solid var(--border-md); background: none;
  font-size: 13px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  color: var(--text-1); cursor: pointer; transition: all .1s;
}
.btn-edit:hover { background: var(--surface2); }
.btn-delete {
  padding: 8px 14px; border-radius: var(--radius);
  border: 1px solid var(--border-md); background: none;
  font-size: 13px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  color: #A32D2D; cursor: pointer; transition: all .1s;
}
.btn-delete:hover { background: #FCEBEB; border-color: #E24B4A; }

/* ── PLACEHOLDER PAGES ───────────────────── */
.placeholder-page {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 60vh; text-align: center; gap: 12px;
}
.placeholder-icon { font-size: 36px; margin-bottom: 4px; }
.placeholder-title { font-size: 18px; font-weight: 500; color: var(--text-1); }
.placeholder-desc  { font-size: 13px; color: var(--text-2); max-width: 300px; line-height: 1.6; }
.placeholder-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500;
  background: var(--surface2); color: var(--text-3);
  border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 12px; margin-top: 4px;
}



/* Laravel view helpers */
.logo-text{font-size:18px;font-weight:500;color:var(--text-1)}
.topbar-right{margin-left:auto;display:flex;align-items:center;gap:12px}
.topbar-date{color:var(--text-3);font-size:13px}
a{text-decoration:none}
.page-shell{padding:0}
.section-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.section-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 18px;border-bottom:1px solid var(--border);
}
.section-title{font-size:16px;font-weight:500;color:var(--text-1)}
.section-sub{font-size:13px;color:var(--text-3)}
.table-wrap{overflow:auto}
.table-ui{width:100%;border-collapse:collapse}
.table-ui th,.table-ui td{
  padding:14px 16px;border-bottom:1px solid var(--border);text-align:left;font-size:14px
}
.table-ui th{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);font-weight:500;background:#fafaf8}
.table-ui td{color:var(--text-2)}
.form-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  padding:20px;
}
.form-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.form-stack{display:flex;flex-direction:column;gap:14px}
.form-group{display:flex;flex-direction:column;gap:8px}
.form-label{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3)}
.form-help{font-size:12px;color:var(--text-3)}
.form-input,.form-select,.form-textarea{
  width:100%;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  color:var(--text-1);
  padding:12px 14px;
  font:inherit;
  outline:none;
}
.form-textarea{min-height:120px;resize:vertical}
.form-input:focus,.form-select:focus,.form-textarea:focus{
  border-color:#d7d2c8;
  box-shadow:0 0 0 4px rgba(28,28,26,.04);
}
.inline-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.btn-primary,.btn-secondary,.btn-danger-ui{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border-radius:12px;padding:11px 14px;font:inherit;cursor:pointer;border:1px solid transparent;
}
.btn-primary{background:var(--text-1);color:#fff}
.btn-secondary{background:#fff;color:var(--text-1);border-color:var(--border)}
.btn-danger-ui{background:#fff3f2;color:#9a2d1f;border-color:#f1c8c1}
.status-chip{
  display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border-radius:999px;
  border:1px solid var(--border);font-size:12px;color:var(--text-2);background:#fff
}
.kv-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.kv{
  background:var(--card);border:1px solid var(--border);border-radius:16px;padding:18px;box-shadow:var(--shadow)
}
.kv-label{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--text-3);margin-bottom:10px}
.kv-value{font-size:26px;color:var(--text-1)}
.alert-ui{
  margin-bottom:16px;padding:14px 16px;border-radius:14px;border:1px solid var(--border);background:#fff
}
.alert-success-ui{border-color:#d3eadf;background:#f6fcf9;color:#1f5a42}
.alert-error-ui{border-color:#f1c8c1;background:#fff7f6;color:#8b2b20}
.field-error{font-size:12px;color:#8b2b20}
.auth-wrap {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  max-width: 460px;
}
.auth-title{font-size:28px;color:var(--text-1);margin-bottom:6px}
.auth-sub{font-size:14px;color:var(--text-3);margin-bottom:22px}
.auth-logo{display:flex;align-items:center;gap:10px;margin-bottom:20px}
.auth-logo-badge{
  width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#fff;border:1px solid var(--border)
}
.profile-grid{display:grid;grid-template-columns:320px 1fr;gap:16px}
.profile-aside,.profile-main{
  background:var(--card);border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow);padding:20px
}
.avatar-lg{
  width:72px;height:72px;border-radius:20px;background:#fff;border:1px solid var(--border);
  display:grid;place-items:center;font-size:28px;color:var(--text-1);margin-bottom:12px
}
.checkbox-row{display:flex;align-items:center;gap:10px}
.muted{color:var(--text-3)}
.spacer-16{height:16px}
@media (max-width: 980px){
  .form-grid-2,.kv-grid,.profile-grid{grid-template-columns:1fr}
}
.reorder-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:30px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--text-1);
  color:#fff;
  font:inherit;
  cursor:pointer;
  transition:all .18s ease;
  white-space:nowrap;
}

.reorder-btn:hover{
  opacity:.92;
}

.reorder-btn.active{
  background:#fff3e8;
  color:#8a4b08;
  border-color:#e7c9a7;
}

#sort-help{
  margin:10px 0 14px;
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
  border:1px dashed var(--border);
  color:var(--text-3);
  font-size:13px;
}

.rte-wrap {
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.rte-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  background: var(--surface2);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.rte-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .1s, color .1s;
}

.rte-btn:hover {
  background: var(--surface3);
  color: var(--text-1);
}

.rte-sep {
  width: 1px;
  height: 18px;
  background: var(--border-md);
  margin: 0 4px;
  flex-shrink: 0;
}

.rte-color-btn {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  cursor: pointer;
  border: 1px solid var(--border-md);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: none;
  color: var(--text-2);
}

.rte-color-btn input[type=color] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.rte-body {
  min-height: 120px;
  max-height: 300px;
  overflow-y: auto;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-1);
  line-height: 1.7;
  outline: none;
  background: var(--surface);
}

.rte-body:empty::before {
  content: attr(data-placeholder);
  color: var(--text-3);
}

.rte-body b, .rte-body strong { font-weight: 600; }
.rte-body u { text-decoration: underline; }
.rte-body i, .rte-body em { font-style: italic; }
.rte-body mark { border-radius: 2px; padding: 0 2px; }
.rte-body p, .rte-body div { margin-bottom: 0.5em; }
.rte-body p:last-child, .rte-body div:last-child { margin-bottom: 0; }
.rte-body ul { padding-left: 1.2em; list-style: disc; margin-bottom: 0.5em; }
.rte-body ol { padding-left: 1.2em; list-style: decimal; margin-bottom: 0.5em; }
.rte-body li { margin-bottom: 0.2em; }