/*
 * hidden 속성이 걸린 요소는 무조건 숨는다.
 *
 * hidden 의 기본값은 display:none 인데, 클래스에 display 를 주면(예:
 * `.정보칸 { display: flex }`) 그쪽이 이겨서 hidden 이 무시된다. 실제로
 * 예약 링크 칸이 "안 넣음" 상태에서도 화면에 떠 있었다. 화면 코드는
 * el.hidden 만 만지므로, 여기서 한 번 못박아 다시 생기지 않게 한다.
 */
[hidden] { display: none !important; }

:root {
  --배경: #faf8f5;
  --표면: #ffffff;
  --표면약: #f5f2ed;
  --선: #e8e3dc;
  --글: #1f1d1a;
  --글약: #7a736a;
  --강조: #2f6f4f;
  --강조약: #eaf2ed;
  --경고배경: #fffaeb;
  --경고선: #f5c94b;
  --경고글: #7a5b00;
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 20px;
  /* 두 겹으로 겹쳐 아주 흐리게 퍼뜨린다. 한 겹짜리 진한 그림자는 값싸 보인다. */
  --그림자: 0 2px 8px -4px rgba(80, 64, 44, .14), 0 10px 24px -12px rgba(80, 64, 44, .16);
  --전환: 220ms cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0; padding: 16px 16px calc(84px + env(safe-area-inset-bottom));
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--글); background: var(--배경);
  /* 한글은 라틴보다 글자 속이 빽빽해서 줄 사이를 더 벌려야 읽힌다. */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all; /* 한글 단어가 줄 끝에서 쪼개지지 않게 */
}

main { max-width: 560px; margin: 0 auto; }

.머리말 { margin-bottom: 12px; }
h1 {
  font-size: 27px; font-weight: 700; margin: 0 0 6px;
  letter-spacing: -0.03em; line-height: 1.25;
}
.안내 { margin: 0; font-size: 12px; color: var(--글약); }

/* 부가 정보 — 위계상 가장 약하게: 카드도 테두리도 없이 얇은 구분선만.
   라벨을 입력 위에 올려 두 칸의 좌우 끝이 항상 정확히 맞게 한다
   (라벨 글자 수가 달라도 입력칸은 둘 다 컨테이너 전체 폭을 그대로 쓴다). */
.부가정보 {
  display: flex; flex-direction: column; gap: 10px;
  margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--선);
  font-size: 12px; color: var(--글약);
}
.정보칸 { display: flex; flex-direction: column; gap: 4px; }
.정보칸 label { font-size: 12px; color: var(--글); }
.부가정보 input[type="text"] {
  width: 100%;
  font-size: 16px; /* 16px 미만이면 iOS가 화면을 확대한다 */
  padding: 8px 10px; border: 1px solid var(--선); border-radius: var(--radius-s);
  background: var(--표면); color: var(--글); margin: 0;
}
.부가정보 input[type="text"]:focus-visible { outline: 2px solid var(--강조); outline-offset: 1px; }
.부가정보 .저장안내 { flex-basis: 100%; margin: 0; font-size: 11px; }

/* 단계 번호 — 작고 흐리게, 본문 h2와 분리 */
/* 작은 회색 숫자로는 단계가 안 읽힌다. 강조색 배지로 세워 순서를 보이게 한다. */
.단계번호 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin: 0 0 8px;
  font-size: 12px; font-weight: 700; line-height: 1;
  color: var(--강조); background: var(--강조약);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
h2 {
  font-size: 18px; font-weight: 600; margin: 0 0 12px;
  letter-spacing: -0.02em; line-height: 1.3;
}

/* ── 에디터 레이아웃: 모바일은 세로 스택, 데스크톱은 2분할 ── */
.에디터 { display: block; }

/* 작업 영역(사진, 미리보기) — 카드 없이 배경 위에 바로 */
.작업영역 { margin-bottom: 4px; }
.작업단 { margin-bottom: 12px; }

.사진줄 { display: flex; gap: 10px; }
.사진칸 {
  /* 3/4 는 폰에서 화면을 다 먹는다. 정사각에 가깝게 줄이고 높이도 묶는다 —
     여기는 고르는 자리이지 보는 자리가 아니다. 결과는 아래 미리보기에서 본다. */
  position: relative; flex: 1; aspect-ratio: 4/3; max-height: 96px;
  border: 1px dashed var(--선); border-radius: var(--radius-m);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--표면약); cursor: pointer;
  transition: border-color var(--전환), background-color var(--전환);
  min-height: 44px;
}
.사진칸:hover { border-color: var(--강조); background: var(--강조약); }
.사진칸:active { transform: scale(.98); }
.사진칸:focus-within { outline: 2px solid var(--강조); outline-offset: 2px; }
.사진칸 img { width: 100%; height: 100%; object-fit: cover; display: none; }
.사진칸 img[src] { display: block; }
.사진칸 .라벨 {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: 12px; padding: 2px 7px; border-radius: 4px;
}
.사진칸 .고르기 { font-size: 14px; color: var(--글약); }
.사진칸 img[src] ~ .고르기 { display: none; }

/* 미리보기 — 폰에서는 맨 아래에 둔다. 단계를 다 밟고 내려오면 결과가 있다.
   데스크톱에서는 아래 media 규칙이 왼쪽 칸으로 옮기고 붙박아 둔다. */
.미리보기영역 {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--선);
}
/* 결과물이 이 화면의 주인공이다. 바깥 껍데기 안에 안쪽 판이 앉은 모양으로
   한 겹 깊이를 줘서, 나머지 카드보다 한 단 위로 보이게 한다. */
.미리보기틀 {
  position: relative; display: flex; justify-content: center;
  background: var(--표면약);
  border: 1px solid var(--선);
  border-radius: 20px;
  padding: 10px;
  box-shadow: inset 0 1px 2px rgba(80, 64, 44, .05);
}
#결과 {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 28vh;
  border-radius: var(--radius-m); background: var(--표면);
}
/* 결과물이 들어올 자리. 점선 네모는 "아직 안 됐다"만 말하고 끝나므로,
   무엇을 하면 채워지는지를 대신 둔다. */
.빈상태 {
  position: absolute; inset: 10px; margin: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center;
  font-size: 14px; line-height: 1.55; color: var(--글약);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(47, 111, 79, .05), transparent 70%),
    var(--표면);
  border: 1px solid var(--선); border-radius: var(--radius-m);
  pointer-events: none;
}
.빈상태[hidden] { display: none; }
.미리보기영역 .저장안내 { text-align: center; margin: 8px 0 0; }

/* 컨트롤 그룹 — 테두리 대신 옅은 배경색으로 구분 */
.컨트롤영역 { display: flex; flex-direction: column; gap: 12px; }
.컨트롤그룹 {
  background: var(--표면);
  border: 1px solid var(--선);
  border-radius: var(--radius-l);
  padding: 16px; margin: 0;
  /* 그림자는 검정이 아니라 배경의 따뜻한 색을 띤다. 검은 그림자는
     크림색 배경 위에서 때가 탄 것처럼 보인다. */
  box-shadow: var(--그림자);
}

.선택줄 { display: flex; gap: 8px; }
.선택줄 select { margin-bottom: 0; }

select, textarea, button {
  width: 100%; font-size: 16px; /* 16px 미만이면 iOS가 화면을 확대한다 */
  padding: 10px 12px; border: 1px solid var(--선); border-radius: var(--radius-s);
  margin-bottom: 8px; font-family: inherit; background: var(--표면); color: var(--글);
  min-height: 44px;
  transition: border-color var(--전환), background-color var(--전환), transform var(--전환), opacity var(--전환);
}
select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--글약) 50%),
    linear-gradient(135deg, var(--글약) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 32px;
}
select:hover, textarea:hover { border-color: var(--글약); }
select:focus-visible, textarea:focus-visible, input:focus-visible {
  outline: 2px solid var(--강조); outline-offset: 1px; border-color: var(--강조);
}
button:focus-visible, .후보:focus-visible, .틀칸:focus-visible {
  outline: 2px solid var(--강조); outline-offset: 2px;
}

.후보목록 { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.후보 {
  text-align: left; padding: 12px; border: 1px solid var(--선);
  border-radius: var(--radius-s); background: var(--표면); font-size: 14px;
  cursor: pointer; min-height: 44px; margin-bottom: 0;
  transition: border-color var(--전환), background-color var(--전환), transform var(--전환);
}
.후보:hover { border-color: var(--강조); background: var(--강조약); }
.후보:active { transform: scale(.98); }
.후보[aria-pressed="true"] { border-color: var(--강조); background: var(--강조약); font-weight: 600; }

.검사알림 { margin: 4px 0 0; font-size: 13px; color: #b42318; }

.틀줄 {
  display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden;
  padding: 2px 2px 8px; -webkit-overflow-scrolling: touch;
}
.틀칸 {
  flex: 0 0 auto; width: 88px; min-height: 44px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--표면); border: 2px solid var(--선); border-radius: var(--radius-m);
  padding: 6px; font-family: inherit; cursor: pointer; margin-bottom: 0;
  transition: border-color var(--전환), background-color var(--전환), transform var(--전환);
}
.틀칸:hover { border-color: var(--강조); }
.틀칸:active { transform: scale(.98); }
.틀칸[aria-pressed="true"] { border-color: var(--강조); background: var(--강조약); }
.틀칸 canvas { width: 72px; height: 72px; border-radius: 6px; background: var(--표면약); display: block; }
.틀칸 span { font-size: 11px; color: var(--글); line-height: 1.2; }
.틀안내 { font-size: 10px; color: var(--글약); line-height: 1.2; text-align: center; }

.저장안내 { font-size: 12px; color: var(--글약); margin: 8px 0; }

#글본문 { font-size: 15px; line-height: 1.6; resize: vertical; }
#글복사 {
  background: var(--강조); color: #fff; border: none; font-weight: 600; min-height: 44px;
}
#글복사:hover { background: #275c41; }
#글복사:active { transform: scale(.98); }

/* 확인안내 — 규제 방어의 마지막 층. 절대 약하게 만들지 않는다 */
.확인안내 {
  margin: 4px 0 10px; padding: 12px 14px; border-radius: var(--radius-s);
  background: var(--경고배경); border: 1px solid var(--경고선);
  color: var(--경고글); font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.확인안내::before { content: "⚠"; font-size: 15px; }
/* 최신 지침을 직접 보라는 안내. 확인안내보다 한 단계 약하게, 그러나 읽히게 둔다. */
.지침안내 {
  margin: 0 0 10px; padding: 10px 14px; border-radius: var(--radius-s);
  background: var(--표면약); border: 1px solid var(--선);
  color: var(--글); font-size: 13px; line-height: 1.6;
}

/* ── 하단 고정 액션 바 ── */
.액션바 {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 8px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--표면); border-top: 1px solid var(--선);
  box-shadow: 0 -8px 16px -12px rgba(31,29,26,.2);
}
/* 버튼이 왜 안 눌리는지 — 회색으로 죽이는 것만으로는 부족해서 이유를 글로 둔다 */
.액션안내 {
  margin: 0 0 6px; font-size: 12px; text-align: center;
  color: var(--글약);
}
/* 아직 안 한 일은 안내, 고쳐야 할 일만 경고. 열자마자 경고색이 뜨면
   아무것도 안 한 원장이 실패 안내부터 읽는다. */
.액션안내[data-종류="경고"] { color: var(--경고글); }
/* 둘이 같은 크기로 나란히 있으면 무엇이 주 동작인지 안 보인다.
   저장이 이 도구의 목적이므로 더 넓게 준다. */
/* 버튼이 셋이 되면 좁은 화면에서 넘친다. 줄을 바꾼다. */
.액션버튼줄 { display: flex; gap: 10px; flex-wrap: wrap; }
.액션버튼줄 #내려받기 { flex: 1.5; }
.액션버튼줄 #글만들기 { flex: 1; }
.액션버튼줄 #사진복사 { flex: 1.2; }
#사진복사 { background: var(--표면); border: 1px solid var(--강조); color: var(--강조); }
#사진복사:hover { background: var(--강조약); }
#사진복사:active { transform: scale(.98); }
#사진복사[aria-disabled="true"] { border-color: var(--선); color: #9ca3af; }
.액션버튼줄 button {
  margin: 0; min-height: 48px; font-weight: 600;
}
#내려받기 { background: var(--강조); color: #fff; border: none; }
#내려받기:hover { background: #275c41; }
#내려받기:active { transform: scale(.98); }
#내려받기:disabled,
#내려받기[aria-disabled="true"] { background: #bcb6ab; cursor: not-allowed; }
#글만들기 { background: var(--표면); border: 1px solid var(--강조); color: var(--강조); }
#글만들기:hover { background: var(--강조약); }
#글만들기:active { transform: scale(.98); }
#글만들기:disabled,
#글만들기[aria-disabled="true"] { border-color: var(--선); color: #9ca3af; }

/* 잠긴 버튼을 눌렀을 때. 안내는 버튼 바로 위에 이미 떠 있으므로
   스크롤이 아니라 깜박임으로 「저기를 보라」고 가리킨다. */
@keyframes 안내깜박 { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.액션안내.깜박 { animation: 안내깜박 0.45s ease-in-out 2; }

/* ── 데스크톱: 2분할 에디터 ── */
@media (min-width: 960px) {
  main { max-width: 1080px; }
  /* 왼쪽은 결과물, 오른쪽은 설정. 청첩장 편집기들이 쓰는 배치다.
     DOM 에서는 미리보기가 맨 끝이지만(폰에서 맨 아래여야 하므로)
     여기서는 자리를 지정해 왼쪽으로 보낸다. */
  .에디터 {
    display: grid;
    grid-template-columns: minmax(340px, 440px) 1fr;
    grid-template-rows: auto 1fr;
    align-items: start; gap: 24px;
  }
  .미리보기영역 {
    grid-column: 1; grid-row: 1 / span 2;
    position: sticky; top: 16px; align-self: start;
    margin-top: 0; padding-top: 0; border-top: none;
    max-height: calc(100dvh - 120px); overflow-y: auto;
  }
  .작업영역 { grid-column: 2; grid-row: 1; margin-bottom: 0; }
  .컨트롤영역 { grid-column: 2; grid-row: 2; gap: 14px; }
  /* 왼쪽 칸이 넓어졌으니 결과물도 크게 본다. */
  #결과 { max-height: 46vh; }
  .글뼈대 { max-height: none; }
  .액션바 { left: 50%; transform: translateX(-50%); max-width: 1080px; width: 100%; border-radius: var(--radius-l) var(--radius-l) 0 0; }
}

/* 틀은 다섯 가지인데 폰 폭에 넷까지만 들어간다. 오른쪽 끝을 흐리게 해서
   더 있다는 것을 보이고, 끝까지 밀면 흐림을 걷는다. */
.틀단 { position: relative; }
.틀단::after {
  content: ''; position: absolute; right: 0; bottom: 0;
  width: 40px; height: 100%;
  background: linear-gradient(to left, var(--배경) 20%, transparent);
  pointer-events: none;
  transition: opacity var(--전환);
}
.틀단.끝까지::after { opacity: 0; }
.틀줄 { scroll-snap-type: x proximity; }
.틀칸 { scroll-snap-align: start; }

/* 접힌 샵 프로필 — 한 줄로 눌러두되 눌러서 펼 수 있다는 것이 보여야 한다. */
.프로필요약 {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; margin: 0 0 16px; padding: 12px 14px;
  background: var(--표면); border: 1px solid var(--선);
  border-radius: var(--radius-m); cursor: pointer;
  font-family: inherit; font-size: 15px; color: var(--글);
  text-align: left; min-height: 48px;
  transition: border-color var(--전환), background-color var(--전환), transform var(--전환);
}
.프로필요약:hover { border-color: var(--강조); background: var(--강조약); }
.프로필요약:active { transform: scale(.99); }
.프로필요약 .요약글 {
  font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.프로필요약 .고치기 {
  flex: 0 0 auto; font-size: 13px; font-weight: 500; color: var(--강조);
}

/* 칩 — 드롭다운을 대신한다. 한 번 눌러 고른다. */
.칩라벨 { margin: 0 0 8px; font-size: 13px; color: var(--글약); }
.칩줄 { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.칩줄:last-child { margin-bottom: 0; }
.칩 {
  width: auto; margin: 0; min-height: 42px;
  padding: 9px 15px;
  font-size: 15px; font-weight: 500; font-family: inherit; line-height: 1.2;
  color: var(--글); background: var(--표면);
  border: 1px solid var(--선); border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  transition: border-color var(--전환), background-color var(--전환),
    color var(--전환), transform var(--전환);
}
.칩:hover { border-color: var(--강조); }
.칩:active { transform: scale(.96); }
.칩[aria-pressed="true"] {
  background: var(--강조); border-color: var(--강조); color: #fff; font-weight: 600;
}
/* 부위는 시술에 딸린 것이라 한 단 낮춰 보이게 한다. */
.부위칩 .칩 { font-size: 14px; padding: 8px 13px; min-height: 38px; }
/* 고를 부위가 하나뿐이라 칩을 안 그리면 빈 줄의 아래 여백까지 사라지게 한다. */
.부위칩:empty { display: none; }



/* 블로그 글 미리보기 — 네이버에 올라갈 차례 그대로. 글이 없으면 뼈대만.
   진짜 네이버 화면과 똑같지는 않다. 무엇이 어떤 차례로 들어가는지를 보인다. */
.글뼈대 {
  background: var(--표면); border: 1px solid var(--선);
  border-radius: var(--radius-m); padding: 18px 16px;
  max-height: 46vh; overflow-y: auto;
}
.글뼈대 p { margin: 0 0 12px; }
.글뼈대 p:last-child { margin-bottom: 0; }

.뼈제목 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.뼈소제목 { font-size: 16px; font-weight: 600; margin-top: 18px !important; }
.뼈본문 { font-size: 15px; color: #3d3831; }
.뼈FAQ머리 {
  font-size: 15px; font-weight: 700; margin-top: 22px !important;
  padding-top: 14px; border-top: 1px solid var(--선);
}
.뼈질문 { font-size: 15px; font-weight: 600; }
.뼈질문::before { content: 'Q. '; color: var(--강조); }
.뼈답 { font-size: 15px; color: #3d3831; margin-top: -6px !important; }
.뼈답::before { content: 'A. '; color: var(--글약); font-weight: 600; }
.뼈해시태그 { font-size: 14px; color: var(--강조); margin-top: 18px !important; }

/* 사진이 들어갈 자리 */
.뼈사진 {
  display: flex; align-items: center; justify-content: center;
  min-height: 92px; margin: 0 0 16px;
  font-size: 13px; color: var(--글약);
  background: var(--표면약); border: 1px dashed var(--선);
  border-radius: var(--radius-s);
}
.뼈사진.채움 { border-style: solid; border-color: var(--강조); color: var(--강조); }

/* 값이 아직 없는 자리 — 글자 대신 옅은 줄로 길이만 보인다. */
.뼈줄 {
  display: block; height: 11px; border-radius: 999px;
  background: linear-gradient(90deg, var(--표면약), #ece7df, var(--표면약));
}
.뼈제목 .뼈줄 { height: 17px; width: 78%; }
.뼈소제목 .뼈줄 { height: 13px; width: 56%; }
.뼈본문 .뼈줄 { width: 100%; }
.뼈본문 .뼈줄 + .뼈줄 { margin-top: 6px; }
.뼈해시태그 .뼈줄 { height: 10px; width: 62%; }
.글뼈대.뼈대만 { color: var(--글약); }

/* 사진 위치 고르기 — 뼈대 바로 위에 둬서 고르는 즉시 자리가 움직이는 게 보인다. */
.사진위치줄 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.사진위치줄 .칩라벨 { margin: 0; flex: 0 0 auto; }
.사진위치줄 .칩줄 { margin: 0; }
.사진위치줄 .칩 { font-size: 13px; padding: 6px 12px; min-height: 34px; }

/* 이미지 바로 아래 이어지는 글 영역. 탭으로 가르지 않는다 —
   갈라두면 글이 있는 줄도 모르고 지나친다. */
.글영역 {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--선);
}

/* 액션바의 복사 버튼 — 글이 나왔을 때만 보인다. */
.액션버튼줄 #글복사 {
  flex: 1; margin: 0; min-height: 48px; font-weight: 600;
  background: var(--강조); color: #fff; border: none;
}
.액션버튼줄 #글복사:hover { background: #275c41; }
.액션버튼줄 #글복사:active { transform: scale(.98); }

/* 목록에 없는 관리를 직접 쓰는 칸. 「직접 쓰기」를 골랐을 때만 보인다. */
#직접칸 { display: flex; gap: 8px; margin-top: 4px; }
#직접칸 input {
  flex: 1; min-width: 0;
  font-size: 16px; /* 16px 미만이면 iOS가 화면을 확대한다 */
  padding: 10px 12px; border: 1px solid var(--강조);
  border-radius: var(--radius-s); background: var(--표면); color: var(--글);
  min-height: 44px;
}
#직접칸 input:focus-visible { outline: 2px solid var(--강조); outline-offset: 1px; }

/* 글을 쓰는 동안. 뼈대 줄이 좌우로 흐르게 해서 "돌고 있다"를 보인다.
   빙글빙글 도는 동그라미 대신 결과가 들어올 자리 그대로를 쓴다. */
.글뼈대.쓰는중 { border-color: var(--강조); }
.글뼈대.쓰는중 .뼈줄 {
  background: linear-gradient(90deg, var(--표면약) 25%, #e3ddd3 50%, var(--표면약) 75%);
  background-size: 300% 100%;
  animation: 뼈줄흐름 1.4s ease-in-out infinite;
}
@keyframes 뼈줄흐름 {
  from { background-position: 150% 0; }
  to { background-position: -150% 0; }
}
.글뼈대.쓰는중::before {
  content: '글을 쓰는 중입니다…';
  display: block; margin-bottom: 12px;
  font-size: 13px; font-weight: 600; color: var(--강조);
}

/* 글 쓰는 동안 덮는 창. 다 되면 스스로 사라진다. */
.쓰는중창 {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(31, 29, 26, .42);
  backdrop-filter: blur(3px);
}
.쓰는중속 {
  width: 100%; max-width: 320px; padding: 28px 24px;
  text-align: center;
  background: var(--표면); border-radius: var(--radius-l);
  box-shadow: 0 8px 20px -8px rgba(31,29,26,.3), 0 24px 48px -24px rgba(31,29,26,.4);
}
.쓰는중제목 { margin: 14px 0 6px; font-size: 17px; font-weight: 700; }
.쓰는중말 { margin: 0; font-size: 13px; color: var(--글약); }

/* 점 세 개가 차례로 부푼다. 빙글빙글 도는 원보다 조용하다. */
.쓰는중점 { display: flex; gap: 7px; justify-content: center; }
.쓰는중점 span {
  width: 9px; height: 9px; border-radius: 999px; background: var(--강조);
  animation: 점부품 1.1s ease-in-out infinite;
}
.쓰는중점 span:nth-child(2) { animation-delay: .16s; }
.쓰는중점 span:nth-child(3) { animation-delay: .32s; }
@keyframes 점부품 {
  0%, 70%, 100% { transform: scale(.7); opacity: .4; }
  35% { transform: scale(1); opacity: 1; }
}

/* 글 완료 팝업. 덮는 틀은 쓰는중창을 그대로 쓰고, 속만 왼쪽 정렬로 바꾼다
   (고친 말이 한 줄씩 읽혀야 해서 가운데 정렬이면 들쭉날쭉하다). */
.완료속 { max-width: 360px; text-align: left; }
.완료속 .쓰는중제목 { margin: 0 0 12px; text-align: center; }
.완료목록 {
  margin: 0 0 18px; padding: 0; list-style: none;
  font-size: 14px; line-height: 1.55; color: var(--글);
}
.완료목록 li { padding: 8px 0; border-top: 1px solid var(--선); }
.완료목록 li:first-child { border-top: 0; }
.완료확인 {
  display: block; width: 100%; min-height: 48px;
  font-size: 16px; font-weight: 700; color: #fff;
  background: var(--강조); border: 0; border-radius: var(--radius-m);
  cursor: pointer;
}
.완료확인:focus-visible { outline: 3px solid var(--강조약); outline-offset: 2px; }

/* 걷어낸 말 안내 — 실패가 아니라 알림이다. 옅게 둔다. */
#글안내 {
  margin: 10px 0 0; padding: 10px 12px;
  font-size: 13px; line-height: 1.5; color: var(--경고글);
  background: var(--경고배경); border: 1px solid var(--경고선);
  border-radius: var(--radius-s);
}

/* 칸 이름 옆에 붙는 작은 귀띔. 안내문을 읽지 않는 사람에게도 보인다. */
.칸힌트 {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
  color: var(--글약);
}

/* 이름·번호로 들어오는 칸. 링크를 잃어버린 원장만 여기까지 온다.
   들어오기 전에는 나머지를 전부 감춘다 — 못 쓰는 화면을 보여주면
   원장은 고장 난 줄 안다. */
body.로그인필요 #프로필요약,
body.로그인필요 #부가정보,
body.로그인필요 .에디터,
body.로그인필요 .액션바 { display: none; }

.로그인칸 {
  background: var(--표면); border: 1px solid var(--선); border-radius: 12px;
  padding: 20px; margin: 16px 0; display: flex; flex-direction: column; gap: 6px;
}
.로그인칸 h2 { margin: 0 0 4px; font-size: 18px; }
.로그인칸 label { font-size: 12px; color: var(--글); margin-top: 8px; }
.로그인칸 input { font-size: 16px; padding: 12px; min-height: 48px; }
.로그인칸 button {
  margin-top: 14px; min-height: 48px; font-weight: 600;
  background: var(--강조); color: #fff; border: none;
}
.로그인칸 button:active { transform: scale(.98); }
.로그인칸 button:disabled { background: #bcb6ab; }
