:root {
  --ink:      #f5f5fb;
  --ink2:     #ffffff;
  --ink3:     #eef0ff;
  --line:     #dde0ea;
  --line2:    #c6cad9;
  --gold:     #c58f1f;
  --gold2:    #e0b44a;
  --gold-dim: rgba(197,143,31,0.10);
  --teal:     #17a28a;
  --text:     #111827;
  --muted:    #6b7280;
  --soft:     #9ca3af;
  --good:     #16a34a;
  --warn:     #eab308;
  --bad:      #dc2626;
  --r:        10px;
}

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

body {
  background: var(--ink);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: hidden;
}

/* ── LANDING ─────────────────────────────────────────────── */
#landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  position: relative;
  height: 100vh;
  overflow-y: auto;
}

#landing::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 400px at 50% 40%, rgba(201,168,76,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 400px 600px at 80% 80%, rgba(62,207,176,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.landing-hero {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 2rem 3rem;
  position: relative;
  z-index: 1;
}

.land-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.1s forwards;
}

.land-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.08;
  text-align: center;
  color: var(--text);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.land-title em {
  font-style: italic;
  color: var(--gold2);
}

.land-sub {
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
  font-weight: 300;
  margin-bottom: 3rem;
  max-width: 420px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.6s 0.3s forwards;
}

.land-input-wrap {
  width: 100%;
  max-width: 580px;
  opacity: 0;
  animation: fadeUp 0.6s 0.4s forwards;
}

.land-key-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.land-key-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 10px 30px rgba(15,23,42,0.08);
}

.land-key-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(197,143,31,0.45);
  box-shadow: 0 14px 40px rgba(15,23,42,0.12);
}

.land-input-box {
  display: flex;
  background: var(--ink2);
  border: 1.5px solid var(--line2);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.land-input-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.1);
}

#landKeyword {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  padding: 1.1rem 1.4rem;
}

#landKeyword::placeholder { color: var(--muted); }

/* ── API KEY MODAL ───────────────────────────────────────── */
.yk-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.yk-modal.open { display: block; }
.yk-backdrop {
  position: absolute; inset: 0;
  background: rgba(17,24,39,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.yk-dialog {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 32px));
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 30px 90px rgba(15,23,42,0.35);
  overflow: hidden;
}
.yk-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; padding:18px 18px 12px; }
.yk-title { font-family:'Instrument Serif', serif; font-size:1.6rem; line-height:1.15; color:var(--text); }
.yk-sub { margin-top:6px; font-size:0.92rem; color:var(--muted); line-height:1.5; }
.yk-x { border:none; background:transparent; cursor:pointer; color:var(--muted); padding:8px; border-radius:10px; transition:background 0.15s,color 0.15s; }
.yk-x:hover { background: rgba(0,0,0,0.06); color: var(--text); }
.yk-body { padding: 0 18px 14px; }
.yk-label { display:block; font-size:0.82rem; font-weight:700; color:var(--text); margin-bottom:8px; }
.yk-input { display:flex; align-items:center; gap:8px; background: rgba(255,255,255,0.9); border:1.5px solid rgba(0,0,0,0.12); border-radius:14px; padding:8px 10px; }
.yk-input:focus-within { border-color: rgba(197,143,31,0.75); box-shadow: 0 0 0 4px rgba(201,168,76,0.12); }
#modalApiKey { flex:1; border:none; outline:none; background:transparent; font-family:'JetBrains Mono', monospace; font-size:0.9rem; color:var(--text); padding:10px 8px; }
#modalApiKey::placeholder { color: var(--muted); }
.yk-ico { border:none; background:transparent; color:var(--muted); padding:10px 10px; border-radius:12px; cursor:pointer; transition:background 0.15s,color 0.15s; }
.yk-ico:hover { background: rgba(0,0,0,0.06); color: var(--text); }
.yk-help { margin-top:10px; font-size:0.86rem; color:var(--muted); line-height:1.5; }
.yk-actions { display:flex; align-items:center; justify-content:space-between; padding:14px 18px 18px; border-top:1px solid rgba(0,0,0,0.06); background: rgba(255,255,255,0.65); }
.yk-actions-right { display:inline-flex; gap:10px; }
.yk-btn { border:1px solid rgba(0,0,0,0.12); background: rgba(255,255,255,0.9); color: var(--text); border-radius:12px; padding:10px 14px; font-weight:700; font-size:0.9rem; cursor:pointer; transition:transform 0.15s, box-shadow 0.2s, border-color 0.2s; }
.yk-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 35px rgba(15,23,42,0.14); border-color: rgba(0,0,0,0.18); }
.yk-btn.primary { border:none; background: linear-gradient(135deg, var(--gold), #b8892a); color:#0e0f13; }
.yk-btn.ghost { background: transparent; }

.yk-ta {
  width: 100%;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  padding: 12px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text);
  background: rgba(255,255,255,0.92);
  outline: none;
  resize: vertical;
}

.yk-ta:focus {
  border-color: rgba(197,143,31,0.75);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.12);
}

.hl-long { background: rgba(234,179,8,0.22); border-radius: 4px; padding: 0 2px; }
.hl-passive { background: rgba(220,38,38,0.18); border-radius: 4px; padding: 0 2px; }

#landBtn {
  background: linear-gradient(135deg, var(--gold), #b8892a);
  border: none;
  color: #0e0f13;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
  white-space: nowrap;
  margin: 6px;
  border-radius: 10px;
}

#landBtn:hover { opacity: 0.9; }
#landBtn:disabled { opacity: 0.5; cursor: not-allowed; }

.land-hints {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.2rem;
}

.hint-pill {
  background: var(--ink2);
  border: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.75rem;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.hint-pill:hover {
  border-color: var(--gold);
  color: var(--gold2);
}

/* Landing long-form SEO copy */
.landing-seo-copy {
  max-width: 760px;
  margin: 2.5rem auto 1rem;
  padding: 2.2rem 2rem;
  background: var(--ink2);
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 18px 45px rgba(15,23,42,0.10);
  position: relative;
  z-index: 1;
}

.landing-seo-copy::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(201,168,76,0.18), transparent 55%);
  opacity: 0.6;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.landing-seo-copy h2 {
  position: relative;
  font-family: 'Instrument Serif', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: color-mix(in srgb, var(--text) 88%, var(--muted) 12%);
  margin: 1.8rem 0 0.9rem;
}

.landing-seo-copy h2:first-of-type {
  margin-top: 0;
}

.landing-seo-copy p {
  position: relative;
  font-size: 0.96rem;
  line-height: 1.85;
  color: color-mix(in srgb, var(--text) 85%, var(--muted) 15%);
  margin-bottom: 1rem;
}

.landing-seo-copy p + p {
  margin-top: 0.2rem;
}

.landing-seo-copy strong {
  color: var(--gold2);
}

@media (max-width: 768px) {
  .landing-seo-copy {
    margin-top: 2.4rem;
    padding: 1.6rem 1.4rem;
  }

  .landing-seo-copy h2 {
    font-size: 1.28rem;
  }

  .landing-seo-copy p {
    font-size: 0.9rem;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── APP SHELL ───────────────────────────────────────────── */
#app {
  display: none;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* NAV */
.topbar {
  height: 52px;
  background: var(--ink2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.8rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.tb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Instrument Serif', serif;
  font-size: 1.1rem;
  color: var(--text);
  cursor: pointer;
}

.tb-logo-mark {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--gold), #b8892a);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: #0e0f13;
}

.tb-keyword {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 0.82rem;
  color: var(--soft);
  cursor: pointer;
  transition: border-color 0.15s;
}

.tb-keyword:hover { border-color: var(--gold); color: var(--text); }
.tb-keyword strong { color: var(--text); font-weight: 500; }

.tb-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}

.tb-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tb-new-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--ink3);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.tb-new-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(197,143,31,0.55);
  box-shadow: 0 10px 26px rgba(15,23,42,0.10);
}

.tb-new-btn:active { transform: translateY(0); }

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 6px var(--good);
}

.tb-theme{
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--line2);
  background:var(--ink3);
  color:var(--text);
  padding:3px 10px;
  border-radius:999px;
  font-size:0.72rem;
  cursor:pointer;
}
.tb-theme:hover{border-color:var(--gold);}

/* WORKSPACE */
.workspace {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 54px); /* topbar(52) + progress-strip(2) */
  min-height: 0;
}

/* ── EDITOR COLUMN ───────────────────────────────────────── */
.editor-col {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  min-height: 0;
}

/* TOOLBAR */
.toolbar {
  background: var(--ink2);
  border-bottom: 1px solid var(--line);
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 5;
}

.tb-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }

.tb-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  width: 28px; height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem;
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}

.tb-btn:hover { background: var(--line); color: var(--text); }
.tb-btn.is-on { background: rgba(201,168,76,0.12); color: var(--gold); }

.tb-select {
  background: transparent;
  border: none;
  color: var(--soft);
  font-size: 0.78rem;
  outline: none;
  cursor: pointer;
  padding: 2px 4px;
  font-family: 'DM Sans', sans-serif;
}

.tb-select option { background: #1e2028; }

/* EDITOR BODY */
.editor-body {
  flex: 1;
  padding: 2.8rem 3rem;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.html-editor {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100%;
  height: 100%;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  resize: none;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text);
  caret-color: var(--gold);
  outline: none;
  box-sizing: border-box;
  flex: 1;
}

#editor {
  min-height: 100%;
  outline: none;
  font-size: 0.97rem;
  line-height: 1.9;
  color: var(--text);
  caret-color: var(--gold);
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
}

#editor h1 { font-family: 'Instrument Serif', serif; font-size: 2.2rem; font-weight: 400; color: var(--text); line-height: 1.22; margin-bottom: 1.2rem; }
#editor h2 { font-family: 'Instrument Serif', serif; font-size: 1.5rem; font-weight: 400; color: color-mix(in srgb, var(--text) 80%, var(--muted) 20%); margin: 2rem 0 0.8rem; }
#editor h3 { font-size: 1.1rem; font-weight: 600; color: var(--text); margin: 1.5rem 0 0.6rem; }
#editor p  { margin-bottom: 1.1rem; }
#editor ul, #editor ol { margin: 0.6rem 0 1rem 1.6rem; }
#editor li { margin-bottom: 0.4rem; }
#editor strong { color: var(--text); }
#editor em { color: #b8c0d8; }
#editor a  { color: var(--gold2); }
#editor blockquote { border-left: 3px solid var(--gold); padding-left: 1.2rem; color: var(--soft); margin: 1rem 0; }

/* PLACEHOLDER */
.ph-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60vh;
  text-align: center;
  color: var(--muted);
}

.ph-wrap .ph-icon { font-size: 2.5rem; opacity: 0.2; }

/* SKELETON */
.sk { background: linear-gradient(90deg, var(--ink3) 25%, var(--line) 50%, var(--ink3) 75%); background-size: 200%; animation: shimmer 1.4s infinite; border-radius: 5px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* STATUS BAR */
.statusbar {
  background: var(--ink2);
  border-top: 1px solid var(--line);
  padding: 0 1.6rem;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted);
  flex-shrink: 0;
}

.sb-left, .sb-right { display: flex; align-items: center; gap: 16px; }

/* Small spacing between icon and text (words/read time) */
.sb-left i { margin-right: 6px; }

.sb-btn {
  background: var(--ink3);
  border: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.72rem;
  font-family: 'DM Sans', sans-serif;
  padding: 3px 12px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: border-color 0.15s, color 0.15s;
}

.sb-btn:hover { border-color: var(--teal); color: var(--teal); }
.sb-btn.done  { border-color: var(--good); color: var(--good); }

/* PROGRESS STRIP */
.progress-strip { height: 2px; background: var(--line); }
.progress-fill  { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--teal)); transition: width 0.35s; }

/* ── SEO SIDEBAR ─────────────────────────────────────────── */
.seo-col {
  background: var(--ink2);
  display: flex;
  flex-direction: column;
  align-self: stretch;
  overflow-y: auto;
  min-height: 0;
}

.seo-score-area {
  padding: 1.6rem 1.4rem 1.2rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.ring-wrap { position: relative; flex-shrink: 0; }
.ring-wrap svg { display: block; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--line2); stroke-width: 6; }
.ring-fg { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 0.9s cubic-bezier(0.4,0,0.2,1), stroke 0.4s; }
.ring-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  line-height: 1;
}

.ring-num .n { font-size: 1.4rem; font-weight: 700; }
.ring-num .l { font-size: 0.55rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

.score-meta { flex: 1; }
.score-meta .grade { font-size: 0.8rem; font-weight: 600; padding: 3px 12px; border-radius: 20px; display: inline-block; margin-bottom: 4px; }
.g-good { background: rgba(62,207,142,0.13); color: var(--good); }
.g-ok   { background: rgba(232,165,58,0.13); color: var(--warn); }
.g-bad  { background: rgba(224,92,92,0.13); color: var(--bad); }

.score-meta p { font-size: 0.72rem; color: var(--muted); line-height: 1.4; }

/* ACCORDION */
.acc-header {
  padding: 0.85rem 1.4rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 500;
  user-select: none;
  transition: background 0.12s;
}

.acc-header:hover { background: rgba(255,255,255,0.02); }
.acc-header span i{
  margin-right:10px; 
}
.acc-body { display: none; }
.acc-body.open { display: block; }
.chevron { font-size: 0.7rem; color: var(--muted); transition: transform 0.2s; }
.chevron.open { transform: rotate(180deg); }

.badge-sm {
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

/* META FIELDS */
.meta-fields { padding: 1rem 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; }

.field-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.35rem;
  display: flex;
  justify-content: space-between;
}

.seo-inp, .seo-ta {
  width: 100%;
  background: var(--ink);
  border: 1.5px solid var(--line);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  padding: 0.55rem 0.85rem;
  border-radius: 7px;
  outline: none;
  transition: border-color 0.18s;
  resize: none;
}

.seo-inp:focus, .seo-ta:focus { border-color: var(--gold); }
.seo-inp::placeholder, .seo-ta::placeholder { color: var(--muted); }

.len-bar { height: 3px; background: var(--line); border-radius: 2px; margin-top: 5px; overflow: hidden; }
.len-fill { height: 100%; border-radius: 2px; transition: width 0.4s, background 0.4s; }

/* SNIPPET */
.snippet-box {
  margin: 1rem 1.4rem 1rem;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

.snip-url   { color: var(--teal); font-size: 0.68rem; margin-bottom: 3px; }
.snip-title { color: #7eb8f7; font-size: 0.85rem; font-weight: 500; margin-bottom: 3px; cursor: pointer; }
.snip-title:hover { text-decoration: underline; }
.snip-desc  { color: #8a91a8; font-size: 0.73rem; line-height: 1.5; }

/* CHECKS */
.checks-wrap { padding: 0.6rem 1.4rem 1rem; }
.checks-group-title {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0.8rem 0 0.4rem;
  display: flex;
  justify-content: space-between;
}

.chk {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0.45rem 0;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.chk:last-child { border-bottom: none; }

.chk-icon {
  width: 17px; height: 17px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.i-good { background: rgba(62,207,142,0.15); color: var(--good); }
.i-warn { background: rgba(232,165,58,0.15); color: var(--warn); }
.i-bad  { background: rgba(224,92,92,0.15); color: var(--bad); }

.chk-body { line-height: 1.35; color: var(--text); }
.chk-sub  { color: var(--muted); font-size: 0.67rem; display: block; margin-top: 1px; }

/* READABILITY */
.read-row {
  padding: 0.8rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.read-dots { display: flex; gap: 3px; }
.rd { width: 9px; height: 9px; border-radius: 50%; background: var(--line2); transition: background 0.35s; }

/* ADVANCED */
.adv-fields { padding: 1rem 1.4rem; display: flex; flex-direction: column; gap: 0.8rem; }

/* TOAST */
#toasts { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }

.toast-item {
  background: var(--ink2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--good);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  animation: toastIn 0.25s ease;
}

.toast-item.err { border-left-color: var(--bad); }
@keyframes toastIn { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:none; } }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .workspace { grid-template-columns: 1fr; }
  .seo-col { border-top: 1px solid var(--line); }
  .editor-body { padding: 2rem 1.6rem; }
  .workspace { height: auto; }
  .editor-body { overflow: visible; }
  .seo-col { overflow: visible; }
  body { overflow-y: auto; }
  #landing { height: auto; }
  #app { height: auto; overflow: visible; }
}

@media (max-width: 600px) {
  .topbar { padding: 0 1rem; }
  .tb-keyword { display: none; }
  #editor h1 { font-size: 1.7rem; }
}

#editor img{
  width:100%;
}
/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 3px; }