/* ══════════════════════════════════════════
   DESIGN TOKENS
   변경: :root CSS 커스텀 프로퍼티(CSS Variables)로 디자인 토큰 중앙관리
   참조: https://developer.mozilla.org/ko/docs/Web/CSS/Using_CSS_custom_properties
══════════════════════════════════════════ */
:root {
  --c-bg:      #f7f3ec;
  --c-ivory:   #fdfaf5;
  --c-cream:   #ede8dd;
  --c-sage:    #3d5c35;
  --c-sage-lt: #5a7e50;
  --c-sage-xs: rgba(61,92,53,0.08);
  --c-earth:   #7a5c38;
  --c-ink:     #1a1a18;
  --c-muted:   #6b6560;
  --c-border:  rgba(61,92,53,0.14);
  --c-white:   #ffffff;

  --f-display: 'Nanum Myeongjo', 'Cormorant Garamond', Georgia, serif;
  --f-body:    'Noto Sans KR', 'DM Sans', sans-serif;

  --shadow-sm: 0 2px 12px rgba(26,26,24,0.07);
  --shadow-md: 0 8px 40px rgba(26,26,24,0.1);
  --t: 0.38s cubic-bezier(0.4,0,0.2,1);

  --edit-ring: 2px dashed rgba(196,154,30,0.8);
  --edit-fill: rgba(255,240,120,0.18);
}

/* ══════════════════════════════════════════
   BASE RESET
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-ink);
  overflow-x: hidden;
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--f-body); }

/* ══════════════════════════════════════════
   ① ADMIN BAR
   변경: edit-mode 진입 시 top:48px offset 적용
   참조: https://developer.mozilla.org/ko/docs/Web/CSS/position
══════════════════════════════════════════ */
#admin-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9000;
  height: 48px;
  background: var(--c-ink);
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.03em;
  gap: 16px;
}
#admin-bar.on { display: flex; }
body.edit-mode { padding-top: 48px; }
body.edit-mode nav { top: 48px; }

.ab-badge {
  background: var(--c-sage); color: #fff;
  padding: 2px 10px; border-radius: 99px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  flex-shrink: 0;
}
.ab-hint { opacity: 0.5; font-size: 12px; }
.ab-actions { display: flex; gap: 10px; margin-left: auto; }
.ab-btn {
  padding: 5px 16px;
  border-radius: 3px;
  font-size: 12px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  transition: background var(--t);
}
.ab-btn:hover { background: rgba(255,255,255,0.18); }
.ab-btn.save { background: var(--c-sage); border-color: var(--c-sage); }
.ab-btn.save:hover { background: var(--c-sage-lt); }

/* ══════════════════════════════════════════
   ② NAVIGATION
   변경: anchor(#) → HTML 파일 링크 방식으로 전환
         .nav-active 클래스 추가로 현재 페이지 하이라이트
   참조: https://developer.mozilla.org/ko/docs/Web/HTML/Element/nav
══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 6vw;
  transition: background var(--t), padding var(--t), box-shadow var(--t);
}
nav.stuck {
  background: rgba(247,243,236,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 13px 6vw;
  box-shadow: 0 1px 0 var(--c-border);
}

.nav-brand {
  font-family: var(--f-display);
  font-size: 21px; font-weight: 700;
  letter-spacing: 0.04em; color: var(--c-ink); flex-shrink: 0;
}
.nav-brand span { color: var(--c-sage); }

.nav-list {
  display: flex; gap: 30px; list-style: none; align-items: center;
}
.nav-list a {
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-ink); opacity: 0.65;
  transition: opacity var(--t);
  position: relative;
}
.nav-list a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 100%;
  height: 1px; background: var(--c-sage);
  transition: right var(--t);
}
.nav-list a:hover { opacity: 1; }
.nav-list a:hover::after,
.nav-list a.nav-active::after { right: 0; }
.nav-list a.nav-active { opacity: 1; }

.nav-mgr {
  font-size: 12px !important; opacity: 1 !important;
  background: var(--c-ink); color: #fff !important;
  padding: 8px 18px; border-radius: 2px;
  transition: background var(--t) !important;
}
.nav-mgr:hover { background: var(--c-sage) !important; }
.nav-mgr::after { display: none !important; }

/* mobile hamburger */
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.burger span { width: 22px; height: 1.5px; background: var(--c-ink); display: block; }
@media (max-width: 760px) {
  .burger { display: flex; }
  .nav-list {
    position: fixed; top: 0; right: -100%; width: 270px; height: 100vh;
    background: var(--c-ivory); flex-direction: column; justify-content: center;
    gap: 28px; padding: 48px 36px;
    box-shadow: -6px 0 28px rgba(0,0,0,0.08);
    transition: right var(--t); z-index: 799;
  }
  .nav-list.open { right: 0; }
  .nav-list a { font-size: 15px; }
  .nav-mgr { padding: 10px 20px !important; }
}

/* ══════════════════════════════════════════
   SHARED SECTION UTILITIES
══════════════════════════════════════════ */
.wrap { max-width: 1340px; margin: 0 auto; padding: 0 6vw; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--c-sage); font-weight: 500; margin-bottom: 16px;
}
.sec-tag::before { content: ''; width: 28px; height: 1px; background: var(--c-sage); }
.sec-h {
  font-family: var(--f-display);
  font-size: clamp(34px, 4.5vw, 62px);
  font-weight: 700; line-height: 1.1; word-break: keep-all;
}
.sec-h em { font-style: italic; color: var(--c-sage); font-weight: 400; }
.sec-sub {
  font-size: 16px; line-height: 1.85;
  color: var(--c-muted); font-weight: 300; word-break: keep-all;
}

/* scroll reveal
   변경: IntersectionObserver API 활용 스크롤 애니메이션
   참조: https://developer.mozilla.org/ko/docs/Web/API/Intersection_Observer_API */
.sr { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.sr.in { opacity: 1; transform: translateY(0); }
.sr.d1 { transition-delay: 0.1s; }
.sr.d2 { transition-delay: 0.22s; }
.sr.d3 { transition-delay: 0.34s; }
.sr.d4 { transition-delay: 0.46s; }

/* ══════════════════════════════════════════
   BUTTON UTILITIES
══════════════════════════════════════════ */
.btn-solid {
  display: inline-block;
  background: var(--c-ink); color: #fff;
  padding: 13px 30px; border-radius: 2px;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: background var(--t), transform var(--t);
}
.btn-solid:hover { background: var(--c-sage); transform: translateY(-1px); }
.btn-line {
  display: inline-block;
  background: transparent; color: var(--c-ink);
  padding: 12px 30px; border-radius: 2px;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--c-ink);
  transition: background var(--t), color var(--t), transform var(--t);
}
.btn-line:hover { background: var(--c-ink); color: #fff; transform: translateY(-1px); }

/* ══════════════════════════════════════════
   PAGE HERO  (공통 히어로 레이아웃)
   변경: 각 페이지 공통 히어로 섹션 클래스 추가
══════════════════════════════════════════ */
.page-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.page-hero-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px 4vw 80px 8vw;
  position: relative; z-index: 2;
}
.page-eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--c-sage); font-weight: 500; margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
  animation: fadeUp 0.9s ease 0.1s both;
}
.page-eyebrow::before { content:''; width:28px; height:1px; background:var(--c-sage); }
.page-h1 {
  font-family: var(--f-display);
  font-size: clamp(44px, 5vw, 78px);
  font-weight: 700; line-height: 1.08;
  word-break: keep-all; margin-bottom: 24px;
  animation: fadeUp 0.9s ease 0.22s both;
}
.page-h1 em { font-style: italic; color: var(--c-sage); font-weight: 400; }
.page-hero-body {
  font-size: 17px; line-height: 1.85;
  color: var(--c-muted); font-weight: 300;
  max-width: 420px; margin-bottom: 44px;
  word-break: keep-all;
  animation: fadeUp 0.9s ease 0.34s both;
}
.page-hero-btns {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeUp 0.9s ease 0.46s both;
}
.page-hero-photo {
  position: relative; overflow: hidden;
}
.page-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform 0.9s ease;
}
.page-hero-photo:hover img { transform: scale(1.03); }

@media (max-width: 860px) {
  .page-hero { grid-template-columns: 1fr; min-height: auto; }
  .page-hero-content { padding: 120px 6vw 56px; }
  .page-hero-photo { height: 55vw; }
}

/* ══════════════════════════════════════════
   CTA STRIP  (다음 페이지 유도 띠)
   변경: 각 페이지 하단 Next Step CTA 공통 컴포넌트 신규 추가
══════════════════════════════════════════ */
.cta-strip {
  padding: 80px 0;
  background: var(--c-sage);
  text-align: center;
}
.cta-strip-label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 14px;
}
.cta-strip-h {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700; color: #fff; margin-bottom: 10px;
}
.cta-strip-sub {
  font-size: 16px; color: rgba(255,255,255,0.72);
  font-weight: 300; margin-bottom: 36px;
  word-break: keep-all;
}
.btn-cta {
  display: inline-block;
  background: #fff; color: var(--c-sage);
  padding: 14px 36px; border-radius: 2px;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500;
  transition: background var(--t), transform var(--t);
}
.btn-cta:hover { background: var(--c-ivory); transform: translateY(-2px); }

/* ══════════════════════════════════════════
   CARDS
══════════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.card {
  background: var(--c-ivory);
  padding: 28px 26px;
  border-left: 3px solid var(--c-sage);
}
.card-icon { font-size: 28px; margin-bottom: 14px; }
.card h4 {
  font-family: var(--f-display);
  font-size: 20px; font-weight: 700;
  margin-bottom: 9px;
}
.card p { font-size: 14px; color: var(--c-muted); line-height: 1.7; font-weight: 300; }

/* ══════════════════════════════════════════
   STEP FLOW  (절차 스텝)
   변경: process.html 전용 단계 표시 컴포넌트 신규 추가
══════════════════════════════════════════ */
.steps {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 52px;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px; align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--c-border);
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--f-display);
  font-size: 52px; font-weight: 700;
  color: var(--c-sage); opacity: 0.25;
  line-height: 1; padding-top: 4px;
}
.step-body h4 {
  font-family: var(--f-display);
  font-size: 22px; font-weight: 700; margin-bottom: 8px;
}
.step-body p { font-size: 15px; color: var(--c-muted); font-weight: 300; line-height: 1.75; }

@media (max-width: 600px) {
  .step { grid-template-columns: 50px 1fr; gap: 16px; }
  .step-num { font-size: 36px; }
}

/* ══════════════════════════════════════════
   CBT TRIANGLE  (생각-감정-행동)
   변경: process.html 전용 CBT 삼각 관계 시각화 신규 추가
══════════════════════════════════════════ */
.triangle-wrap {
  display: flex; justify-content: center; align-items: center;
  padding: 60px 0; gap: 0;
}
.tri-node {
  background: var(--c-ivory);
  border: 2px solid var(--c-border);
  border-radius: 2px;
  padding: 24px 28px;
  text-align: center;
  min-width: 160px;
}
.tri-node .t-label {
  font-family: var(--f-display); font-size: 22px; font-weight: 700;
}
.tri-node .t-desc {
  font-size: 12px; color: var(--c-muted); margin-top: 6px;
}
.tri-arrow {
  font-size: 22px; color: var(--c-sage); padding: 0 14px;
}

@media (max-width: 640px) {
  .triangle-wrap { flex-direction: column; gap: 8px; }
  .tri-arrow { transform: rotate(90deg); padding: 8px 0; }
}

/* ══════════════════════════════════════════
   FEES TABLE
   변경: fees.html 전용 비용 표시 테이블 신규 추가
══════════════════════════════════════════ */
.fee-table {
  width: 100%; border-collapse: collapse; margin-top: 36px;
}
.fee-table th {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-sage); font-weight: 500;
  text-align: left; padding: 12px 16px;
  border-bottom: 2px solid var(--c-border);
}
.fee-table td {
  padding: 18px 16px;
  font-size: 15px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}
.fee-table tr:last-child td { border-bottom: none; }
.fee-table td:first-child { font-weight: 500; color: var(--c-ink); }
.fee-table td:last-child { color: var(--c-muted); font-weight: 300; }

.policy-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.policy-item {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14px; color: var(--c-muted); line-height: 1.7; font-weight: 300;
}
.policy-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-sage); flex-shrink: 0; margin-top: 8px;
}

/* ══════════════════════════════════════════
   LOCATION (fees.html 재사용)
══════════════════════════════════════════ */
#location-info {
  padding: 100px 0;
  background: var(--c-ivory);
}
.loc-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: start;
}
.loc-body {
  font-size: 16px; line-height: 1.85;
  color: var(--c-muted); font-weight: 300;
  margin: 22px 0 40px; word-break: keep-all;
}
.loc-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.loc-item { display: flex; gap: 14px; align-items: flex-start; }
.loc-ico {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--c-sage-xs);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-sage); font-size: 17px; flex-shrink: 0;
}
.loc-meta { display: flex; flex-direction: column; gap: 3px; }
.loc-lbl {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-sage); font-weight: 500;
}
.loc-val { font-size: 15px; color: var(--c-ink); line-height: 1.6; }
.map-box {
  width: 100%; height: 380px;
  border-radius: 2px; overflow: hidden;
  border: 1px solid var(--c-border);
}
.map-box iframe { width: 100%; height: 100%; border: none; display: block; }

@media (max-width: 860px) {
  .loc-grid { grid-template-columns: 1fr; }
  .map-box  { height: 260px; }
}

/* ══════════════════════════════════════════
   CONTACT FORM
══════════════════════════════════════════ */
.con-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: start;
}
.con-body {
  font-size: 16px; line-height: 1.85;
  color: var(--c-muted); font-weight: 300;
  margin: 22px 0; word-break: keep-all;
}
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg  { display: flex; flex-direction: column; gap: 7px; }
.fg label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-sage); font-weight: 500;
}
.fg input, .fg textarea, .fg select {
  width: 100%; padding: 12px 15px;
  background: var(--c-ivory);
  border: 1px solid var(--c-border);
  border-radius: 2px;
  font-family: var(--f-body); font-size: 15px; color: var(--c-ink);
  outline: none; appearance: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color: var(--c-sage);
  box-shadow: 0 0 0 3px rgba(61,92,53,0.1);
}
.fg textarea { height: 130px; resize: vertical; }
.form-note { font-size: 12px; color: var(--c-muted); text-align: center; margin-top: 4px; font-weight: 300; }

@media (max-width: 860px) {
  .con-grid  { grid-template-columns: 1fr; }
  .form-row  { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   FAQ
   변경: faq.html 전용 FAQ 아코디언 신규 추가
   참조: https://developer.mozilla.org/ko/docs/Web/HTML/Element/details
══════════════════════════════════════════ */
.faq-list { margin-top: 48px; display: flex; flex-direction: column; gap: 4px; }
.faq-item {
  border-bottom: 1px solid var(--c-border);
}
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-body); font-size: 16px; font-weight: 500; color: var(--c-ink);
  cursor: pointer;
  gap: 16px;
}
.faq-q .faq-ico { font-size: 20px; color: var(--c-sage); flex-shrink: 0; transition: transform var(--t); }
.faq-item.open .faq-ico { transform: rotate(45deg); }
.faq-a {
  font-size: 15px; color: var(--c-muted); font-weight: 300; line-height: 1.8;
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s;
  word-break: keep-all;
}
.faq-item.open .faq-a { max-height: 600px; padding-bottom: 20px; }

/* 위기 안내 배너
   변경: faq.html 및 contact.html 하단 위기상담 안내 신규 추가 */
.crisis-banner {
  background: #fff8f0;
  border: 1.5px solid #e09060;
  border-radius: 4px;
  padding: 24px 28px;
  margin-top: 40px;
}
.crisis-banner h4 {
  font-family: var(--f-display); font-size: 18px; font-weight: 700;
  color: #a05020; margin-bottom: 8px;
}
.crisis-banner p { font-size: 14px; color: #6b4020; line-height: 1.75; }
.crisis-banner a { color: #a05020; text-decoration: underline; }

/* ══════════════════════════════════════════
   INDEX LANDING  (요약 랜딩)
   변경: index.html 전용 4-card 흐름 레이아웃 신규 추가
══════════════════════════════════════════ */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 60px;
}
.flow-card {
  padding: 44px 32px;
  border-right: 1px solid var(--c-border);
  position: relative; overflow: hidden;
  transition: background var(--t);
}
.flow-card:last-child { border-right: none; }
.flow-card:hover { background: var(--c-ivory); }
.flow-num {
  font-family: var(--f-display); font-size: 72px; font-weight: 700;
  color: var(--c-sage); opacity: 0.12; line-height: 1;
  margin-bottom: 16px;
}
.flow-card h3 {
  font-family: var(--f-display); font-size: 22px; font-weight: 700;
  margin-bottom: 12px;
}
.flow-card p { font-size: 14px; color: var(--c-muted); font-weight: 300; line-height: 1.7; margin-bottom: 28px; }
.flow-link {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-sage); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.flow-link::after { content: '→'; transition: transform var(--t); }
.flow-card:hover .flow-link::after { transform: translateX(4px); }

@media (max-width: 900px) {
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-card { border-right: none; border-bottom: 1px solid var(--c-border); }
  .flow-card:last-child { border-bottom: none; }
}
@media (max-width: 520px) {
  .flow-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--c-ink); color: rgba(255,255,255,0.4);
  padding: 44px 6vw 28px;
}
.foot-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.foot-brand {
  font-family: var(--f-display); font-size: 18px; font-weight: 700;
  color: rgba(255,255,255,0.72); letter-spacing: 0.04em;
}
.foot-links {
  display: flex; gap: 28px; list-style: none;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.foot-links a:hover { color: rgba(255,255,255,0.7); }
.foot-copy { font-size: 12px; letter-spacing: 0.03em; }

/* ══════════════════════════════════════════
   EDIT MODE  – photo drag & drop zones
   참조: https://developer.mozilla.org/ko/docs/Web/API/HTML_Drag_and_Drop_API
══════════════════════════════════════════ */
.drop-zone { position: relative; cursor: default; }
.drop-zone .drop-overlay {
  display: none;
  position: absolute; inset: 0; z-index: 10;
  background: rgba(61,92,53,0.55);
  border: 3px dashed rgba(255,255,255,0.7);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  color: #fff; pointer-events: none;
  transition: background 0.2s;
}
.drop-zone .drop-overlay .drop-icon { font-size: 38px; }
.drop-zone .drop-overlay .drop-txt  { font-family: var(--f-body); font-size: 14px; letter-spacing: 0.08em; }
body.edit-mode .drop-zone .drop-overlay { display: flex; }
body.edit-mode .drop-zone { cursor: copy; }
body.edit-mode .drop-zone.dragging .drop-overlay { background: rgba(61,92,53,0.75); }

/* EDIT MODE – text editable
   변경: contenteditable 활성화 시 시각적 피드백(outline + fill)
   참조: https://developer.mozilla.org/ko/docs/Web/HTML/Global_attributes/contenteditable */
body.edit-mode [contenteditable="true"] {
  outline: var(--edit-ring);
  background: var(--edit-fill);
  border-radius: 2px;
  cursor: text;
  transition: outline 0.2s, background 0.2s;
  display: inline-block;
}
body.edit-mode [contenteditable="true"]:focus {
  outline: 2px dashed rgba(196,154,30,1);
  background: rgba(255,240,120,0.3);
}
.edit-badge {
  display: none;
  position: fixed; bottom: 20px; right: 20px; z-index: 8999;
  background: #e0bc4a; color: var(--c-ink);
  padding: 8px 18px; border-radius: 4px;
  font-size: 12px; letter-spacing: 0.06em; font-weight: 500;
  box-shadow: var(--shadow-md);
  font-family: var(--f-body);
}
body.edit-mode .edit-badge { display: block; }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(22px); }
  to   { opacity:1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   TOAST
══════════════════════════════════════════ */
#toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(72px);
  background: var(--c-ink); color: #fff;
  padding: 11px 22px; border-radius: 4px;
  font-size: 14px; z-index: 99999;
  transition: transform 0.3s ease;
  white-space: nowrap; box-shadow: var(--shadow-md);
  font-family: var(--f-body);
  pointer-events: none;
}
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.ok   { border-left: 3px solid var(--c-sage); }
#toast.err  { border-left: 3px solid #e57373; }
