/* ============================================================================
   장사PT 회원 화면 공통 스타일  ·  2026-08-06 전면 교체
   ----------------------------------------------------------------------------
   ★정본은 메인 홈페이지(jangsapt_v2_1.html) 디자인이다.
     색·글자크기·자간·여백을 그 파일에서 그대로 가져왔다.
     회원 화면이 홈페이지와 같은 얼굴이어야 사장님이 "같은 곳"이라고 느낀다.

   ★이전 버전은 어두운 바탕 + 라임색이었다. 폐기했다. 되살리지 말 것.

   이 디자인의 정체성은 색이 아니라 이 셋이다 —
     ① 크고 바짝 조인 제목(굵기 700 · 자간 마이너스)
     ② 조용한 회색 본문(#737373)
     ③ 넉넉한 여백
   하나만 줄여도 톤이 무너진다.
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  color-scheme: light;

  /* ── 바탕과 판 ── */
  --bg: #ffffff;
  --panel: #f7f8fa;         /* 틴티드 패널 */
  --card: #f5f5f5;          /* 회색 카드 */
  --line: #e5e5e5;          /* 기본 선 */

  /* ── 글자 ── */
  --fg: #000000;
  --fg-2: #525252;
  --muted: #737373;         /* 본문 회색 — 이 디자인의 기본 본문색 */
  --faint: #a1a1a1;

  /* ── 단추 ── */
  --btn: #000000;
  --btn-fg: #ffffff;

  /* ── 강조색 ──
     --accent    : 24px 이상 큰 글자·채움용
     --accent-ink: 작은 글자용(흰 배경에서 대비 확보)
     둘을 섞어 쓰지 말 것. 강조색을 바꾸려면 이 세 줄만 고치면 전체가 따라온다. */
  --accent: #2b8bcf;
  --accent-ink: #1a6fb5;
  --accent-soft: #eef6fd;

  /* ── 뜻이 있는 색 ── */
  --pos: #0f9d6b;
  --neg: #dc2626;
  --warn-ink: #b45309;
  --warn-soft: #fffbeb;
  --warn-line: #fcd9a4;

  /* ── 모서리 ── */
  --r-sm: 8px;
  --r-md: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* ── 짜임새 ── */
  --wrap: 1200px;
  --maxw: 1200px;
  --gap: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .10);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .04);
  --ring: 0 0 0 3px rgba(0, 0, 0, .07);

  /* ★글꼴은 프리텐다드 한 벌만 쓴다.
     예전엔 제목에 'Black Han Sans'를 썼는데, 그 글꼴은 굵기가 하나뿐이라
     굵게 지시하면 획이 서로 붙어 글자가 흰 네모로 보였다.
     지금 디자인은 글꼴을 바꿔서 제목을 세우지 않는다 — 크기와 자간으로 세운다.
     그래서 제목도 본문과 같은 글꼴이고, 굵기 700 이 정상이다. */
  --font-title: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", system-ui, -apple-system, sans-serif;
  --font-body: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", system-ui, -apple-system, sans-serif;

  /* ── 예전 이름 되받기 ────────────────────────────────────────────────
     화면마다 자기 스타일 안에서 아래 이름들을 쓰고 있다.
     이름을 지우면 그 화면들이 한꺼번에 깨지므로, 이름은 남기고
     가리키는 값만 새 밝은 색으로 바꾼다. 새 화면에서는 위쪽 이름을 쓸 것. */
  --bg-2: #fafafa;
  --panel-2: #f5f5f5;
  --line-2: #d4d4d4;        /* 입력칸·단추 테두리처럼 '보여야 하는 선' */
  --text: #000000;
  --text-2: #525252;
  --text-3: #737373;
  --lime: #1a6fb5;          /* 예전 라임 자리 → 강조색(작은 글자용) */
  --lime-deep: #155a94;
  --amber: #b45309;
}

/* ---------- 바탕 ---------- */
* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.006em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

/* ★★★ 숨김은 무조건 지켜져야 한다 (2026-08-01 추가) ★★★
   화면에서 어떤 칸을 감출 때 hidden 을 붙인다. 그런데 그 칸에 붙은 꾸밈 이름이
   "이렇게 보여라(display)"를 정해 두면 그 지시가 숨김을 이겨서 **감춰야 할 것이 그대로 보인다.**
   실제로 로그인 화면에서 '로그아웃' 단추가 감춰진 상태인데도 화면에 보이고 있었다.
   아래 한 줄이 그 사고를 전 화면에서 원천 차단한다. 지우지 말 것. */
[hidden] { display: none !important; }

/* ★가짜 굵게 금지 — 지금 글꼴은 굵은 판을 진짜로 갖고 있어 손해가 없고,
   나중에 굵기가 하나뿐인 글꼴이 섞여 들어와도 획이 뭉개지지 않게 막아 준다. */
* {
  font-synthesis-weight: none;
  font-synthesis: none;
}

/* ---------- 제목 ----------
   크기와 자간이 이 디자인의 정체성이다. 자간(letter-spacing)을 지우지 말 것. */
h1, h2, h3, h4 { margin: 0 0 .4em; }
h1 {
  font-family: var(--font-title);
  font-size: 30px; font-weight: 700;
  letter-spacing: -.04em; line-height: 1.25;
}
h2 {
  font-family: var(--font-title);
  font-size: 22px; font-weight: 700;
  letter-spacing: -.035em; line-height: 1.3;
}
h3 { font-size: 18px; font-weight: 600; letter-spacing: -.025em; line-height: 1.35; }
h4 { font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1.4; }

p { margin: 0 0 .8em; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #000; color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- 자주 쓰는 조각 ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.page { padding: 26px 0 96px; }
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-end { justify-content: flex-end; }
.row-between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.dim { color: var(--faint); }
.small { font-size: 13.5px; }
.big { font-size: 19px; font-weight: 700; letter-spacing: -.025em; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--line); border: 0; margin: 20px 0; }

/* 눈썹 글자 — 제목 위에 붙는 작은 강조줄 */
.eyebrow {
  font-size: 14px; font-weight: 600; color: var(--accent-ink);
  letter-spacing: -.01em; margin-bottom: 10px;
}

/* ---------- 맨 위 막대 (홈페이지의 떠 있는 알약 내비와 같은 모양) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  padding: 14px 0 0;
  background: transparent;
}
.topbar-inner {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  height: 62px; padding: 10px 20px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid #ededed;
  border-radius: var(--r-lg);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .05);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-title); font-size: 17px; font-weight: 800;
  letter-spacing: -.04em; color: var(--fg); white-space: nowrap;
  background: none; border: 0; padding: 0; cursor: pointer; flex: none;
}
.brand:hover { text-decoration: none; color: var(--fg); opacity: .78; }
/* 브랜드 이름 앞에 붙는 검은 네모 딱지 — 홈페이지 로고와 같은 얼굴.
   예전엔 'PT' 두 글자를 라임색으로 쓰거나 이름 뒤에 라임 점을 찍었다. 둘 다 폐기.
   ※ .brand-dot 은 예전 이름이다. shared.js 가 만들어 붙이므로 함께 살려 둔다. */
.mk,
.brand-dot {
  width: 26px; height: 26px; border-radius: var(--r-sm);
  background: #000; color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.topbar-sub {
  font-size: 13px; color: var(--muted); letter-spacing: -.01em;
  padding-left: 12px; margin-left: 2px; border-left: 1px solid var(--line);
}
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar-who {
  font-size: 13.5px; color: var(--muted); letter-spacing: -.01em;
  max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- 제목 묶음 ---------- */
.page-head { margin: 8px 0 26px; max-width: 820px; }
.page-head h1 { margin-bottom: 10px; }
.page-head .sub { color: var(--muted); font-size: 16px; letter-spacing: -.01em; }

/* ---------- 카드 ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.card-title { font-size: 18px; font-weight: 700; letter-spacing: -.03em; margin: 0; }
.card-sub { font-size: 14px; color: var(--muted); margin: 3px 0 0; letter-spacing: -.01em; }
.card-quiet { background: var(--card); border-color: transparent; }
.card-line { border-color: var(--line); }

/* ============================================================================
   로그인·승인대기·추가정보 화면 (auth-*)
   ----------------------------------------------------------------------------
   ★이 덩이는 예전에 login.html · pending.html · profile.html 세 파일에
     **똑같이 복사돼** 있었다. 한 곳만 고치면 나머지 둘이 어긋나므로
     2026-08-06 에 여기 한 곳으로 합쳤다. 세 화면은 이제 이 정의를 물려받는다.
     화면 전용 모양만 각 파일에 남아 있다. 다시 복사해 흩뜨리지 말 것.
   ========================================================================== */

.auth-page {
  min-height: 100vh; margin: 0;
  /* 흰 바탕 위에 아주 옅은 파랑 번짐 — 메인 홈페이지 첫 화면과 같은 인상을 준다.
     이게 있어야 "같은 곳에 들어왔다"는 느낌이 이어진다. */
  background:
    radial-gradient(1100px 520px at 50% -200px, rgba(43, 139, 207, .07), transparent 62%),
    var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ★display 는 반드시 block. 예전에 flex 였다가 맨 위 막대·본문·연락처가
   가로로 나란히 서면서 글자가 한 자씩 쪼개진 사고가 있었다(2026-08-01). */
.auth-wrap {
  display: block;
  width: 100%; max-width: 480px; margin: 0 auto;
  padding: 26px 18px 72px;
}
.auth-wrap--wide { max-width: 620px; }

/* 맨 윗줄 — 홈페이지의 '떠 있는 알약 내비'와 같은 얼굴 */
.auth-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 30px; padding: 11px 16px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border: 1px solid #ededed; border-radius: var(--r);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .05);
}
.auth-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-title); font-size: 16.5px; font-weight: 800;
  letter-spacing: -.04em; color: var(--fg); text-decoration: none; white-space: nowrap;
}
.auth-brand:hover { text-decoration: none; opacity: .78; }
.auth-brand .mk { width: 25px; height: 25px; font-size: 10px; }

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  margin-bottom: 16px;
}
.auth-card[hidden] { display: none; }
/* ★굵기 700 이 정상이다. 예전엔 굵기가 하나뿐인 제목 글꼴을 써서 400 으로 묶어 뒀는데,
   그 글꼴을 폐기했으므로 이제 제목은 크기와 자간으로 세운다(2026-08-06). */
.auth-title { font-size: 28px; font-weight: 700; letter-spacing: -.04em; line-height: 1.25; margin: 0 0 8px; }
.auth-sub, .auth-desc { margin: 0 0 22px; color: var(--muted); font-size: 15px; letter-spacing: -.01em; }

.auth-field { margin-bottom: 16px; }
.auth-label { display: block; font-size: 14.5px; font-weight: 600; color: var(--fg); letter-spacing: -.015em; margin-bottom: 8px; }
.auth-input {
  width: 100%; box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 15px;
  color: var(--fg);
  font-size: 16px; /* 휴대폰에서 화면이 확대되지 않게 16px 유지 */
  font-family: inherit; letter-spacing: -.01em;
  transition: border-color .12s, box-shadow .12s;
}
.auth-input::placeholder { color: #bdbdbd; }
.auth-input:focus { outline: none; border-color: #000; box-shadow: var(--ring); }
.auth-input:disabled { opacity: .6; background: #fafafa; }
.auth-input[readonly] { color: var(--fg-2); background: #fafafa; }
.auth-help { margin: 8px 2px 0; font-size: 13px; color: var(--muted); letter-spacing: -.01em; }

.auth-pw { position: relative; }
.auth-pw .auth-input { padding-right: 66px; }
.auth-pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--muted);
  font-size: 13.5px; font-family: inherit; padding: 8px 10px; cursor: pointer; border-radius: var(--r-sm);
}
.auth-pw-toggle:hover { color: var(--fg); background: #f5f5f5; }

/* 으뜸 단추는 검정이다(홈페이지와 동일). 색으로 세우지 않는다. */
.auth-btn {
  width: 100%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: var(--r-md);
  padding: 15px 16px; font-size: 15.5px; font-weight: 600; font-family: inherit;
  letter-spacing: -.015em; white-space: nowrap;
  cursor: pointer; transition: background .15s, border-color .15s, opacity .15s;
}
.auth-btn:disabled { opacity: .5; cursor: default; }
.auth-btn--main { background: var(--btn); color: var(--btn-fg); border-color: var(--btn); }
.auth-btn--main:hover:not(:disabled) { background: #222; border-color: #222; }
.auth-btn--line { background: #fff; border-color: var(--line); color: var(--fg); }
.auth-btn--line:hover:not(:disabled) { background: #fafafa; border-color: #d4d4d4; }
.auth-btn--ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.auth-btn--ghost:hover:not(:disabled) { background: #fafafa; color: var(--fg); border-color: #d4d4d4; }
.auth-btn--small { width: auto; padding: 10px 15px; font-size: 13.5px; }
.auth-btn + .auth-btn { margin-top: 10px; }

.auth-textlink {
  background: none; border: 0; padding: 6px 2px; margin: 0;
  color: var(--muted); font-size: 13.5px; font-family: inherit; cursor: pointer;
  letter-spacing: -.01em; text-decoration: underline; text-underline-offset: 3px;
}
.auth-textlink:hover { color: var(--fg); }
a.auth-textlink { display: inline-block; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* '또는' 은 읽으라고 있는 글자다 — 흐린 회색(#a1a1a1)은 흰 배경에서 2.6:1 밖에 안 나와
   나이 드신 사장님 눈에 잘 안 보인다. 본문 회색(4.7:1)으로 올렸다. */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; color: var(--muted); font-size: 13px; letter-spacing: -.01em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-note {
  border-radius: var(--r-md); padding: 14px 16px; margin: 0 0 18px;
  font-size: 14.5px; line-height: 1.65; letter-spacing: -.01em;
  border: 1px solid var(--line); background: var(--panel); color: var(--fg-2);
}
.auth-note[hidden] { display: none; }
.auth-note--good { border-color: #cfe6da; background: #f2f8f5; color: #0b5c40; }
.auth-note--warn { border-color: var(--warn-line); background: var(--warn-soft); color: #7c4408; }
.auth-note strong { color: inherit; font-weight: 700; }

/* 승인제 안내 — 로그인 화면에 늘 떠 있는 설명(경고가 아니라 안내라 먹색 계열로 둔다).
   .auth-note 와 달리 감췄다 켰다 하지 않는다. 항상 보여야 하는 글이다. */
.auth-gate {
  border-radius: var(--r-md); padding: 14px 16px; margin: 0 0 18px;
  border: 1px solid var(--line); background: var(--panel);
  font-size: 13.5px; line-height: 1.7; letter-spacing: -.01em; color: var(--fg-2);
}
.auth-gate b { display: block; margin-bottom: 3px; color: var(--fg); font-weight: 700; font-size: 14.5px; }
.auth-gate b + b, .auth-gate b:not(:first-child) { display: inline; margin: 0; font-size: inherit; }

/* 로봇 차단 상자 자리 — 열쇠가 없으면 hidden 이라 자리도 안 차지한다 */
.auth-captcha { margin: 0 0 18px; }
.auth-captcha[hidden] { display: none; }

.auth-foot { margin-top: 26px; text-align: center; font-size: 13.5px; color: var(--muted); letter-spacing: -.01em; }
.auth-foot a { color: var(--fg-2); text-decoration: none; }
.auth-foot a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.auth-foot p { margin: 5px 0; }

.auth-bottom { text-align: center; margin-top: 20px; font-size: 14.5px; color: var(--muted); letter-spacing: -.01em; }
.auth-bottom a { color: var(--fg); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.auth-gicon { width: 18px; height: 18px; flex: 0 0 18px; }

@media (max-width: 420px) {
  .auth-card { padding: 24px 20px; border-radius: var(--r); }
  .auth-title { font-size: 24px; }
}

/* ---------- 입력 ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > label { font-size: 14.5px; font-weight: 600; color: var(--fg); letter-spacing: -.015em; }
.field .hint { font-size: 13px; color: var(--muted); letter-spacing: -.01em; }
.field .required { color: var(--accent-ink); font-size: 12.5px; font-weight: 700; margin-left: 4px; }

input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="search"], input[type="date"],
select, textarea {
  width: 100%;
  padding: 14px 15px;
  font-family: inherit;
  font-size: 16px; /* 휴대폰에서 화면이 확대되지 않게 16px 이상 유지 */
  letter-spacing: -.01em;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .12s, box-shadow .12s;
  min-height: 50px;
}
textarea { min-height: 100px; resize: vertical; line-height: 1.6; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) 22px, calc(100% - 13px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}
input::placeholder, textarea::placeholder { color: #bdbdbd; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #000;
  box-shadow: var(--ring);
}
input:disabled, select:disabled, textarea:disabled {
  opacity: .6; cursor: not-allowed; background: #fafafa;
}
.field-error { color: var(--neg); font-size: 13.5px; letter-spacing: -.01em; }
input.is-wrong, select.is-wrong, textarea.is-wrong {
  border-color: var(--neg); box-shadow: 0 0 0 3px rgba(220, 38, 38, .1);
}

.check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px; color: var(--fg-2); cursor: pointer; letter-spacing: -.01em;
}
.check input[type="checkbox"] {
  width: 18px; height: 18px; margin: 2px 0 0; accent-color: #000; flex: none;
}

/* ---------- 단추 ----------
   으뜸 단추는 검정이다(홈페이지와 동일). 색으로 세우지 않는다. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 14px 24px;
  font-family: inherit; font-size: 15.5px; font-weight: 600; line-height: 1;
  letter-spacing: -.015em; white-space: nowrap;
  color: var(--fg);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background .15s, border-color .15s, opacity .15s;
  text-decoration: none;
}
.btn:hover { background: #fafafa; border-color: #d4d4d4; text-decoration: none; }
.btn:disabled, .btn.is-busy { opacity: .5; cursor: not-allowed; }

.btn-primary {
  color: var(--btn-fg);
  background: var(--btn);
  border-color: var(--btn);
}
.btn-primary:hover { background: #222; border-color: #222; }

.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f5f5f5; color: var(--fg); border-color: transparent; }

.btn-line { background: #fff; border-color: var(--line); color: var(--fg); }
.btn-line:hover { background: #fafafa; border-color: #d4d4d4; }

.btn-warn { background: #fff; border-color: var(--warn-line); color: var(--warn-ink); }
.btn-warn:hover { background: var(--warn-soft); border-color: var(--warn-ink); }

.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 10px 16px; font-size: 13.5px; border-radius: var(--r-sm); }
.btn-lg { min-height: 56px; font-size: 16.5px; }

/* 다른 곳에서 로그인하는 단추 자리 (구글 등) */
.btn-social { background: #fff; color: var(--fg); border-color: var(--line); }
.btn-social:hover { background: #fafafa; border-color: #d4d4d4; }
.btn-social .ico { width: 18px; height: 18px; flex: none; }
.btn-soon { opacity: .4; cursor: not-allowed; }
.btn-soon:hover { background: #fff; border-color: var(--line); }
.soon-tag {
  font-size: 11.5px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 2px 8px;
}

.or-line {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 13px; margin: 20px 0 16px; letter-spacing: -.01em;
}
.or-line::before, .or-line::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

/* ---------- 표시(배지) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; line-height: 1; letter-spacing: -.01em;
  padding: 6px 11px; border-radius: var(--r-pill);
  border: 1px solid var(--line); color: var(--fg-2); background: #fff;
  white-space: nowrap;
}
.badge-wait { color: var(--warn-ink); border-color: var(--warn-line); background: var(--warn-soft); }
.badge-ok { color: #0b6b4a; border-color: #b9e0cf; background: #f2f8f5; }
.badge-off { color: var(--faint); background: #fafafa; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- 알림 상자 ---------- */
.alert {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--panel);
  font-size: 14.5px; color: var(--fg-2); line-height: 1.65; letter-spacing: -.01em;
}
.alert strong { color: var(--fg); font-weight: 700; }
.alert-ok { border-color: #cfe6da; background: #f2f8f5; color: #0b5c40; }
.alert-ok strong { color: #08462f; }
.alert-warn { border-color: var(--warn-line); background: var(--warn-soft); color: #7c4408; }
.alert-warn strong { color: #5c3206; }
.alert-info { border-color: #cfe4f5; background: var(--accent-soft); color: #14568c; }
.alert-info strong { color: #0d3f68; }
.alert .alert-close {
  margin-left: auto; background: none; border: 0; color: inherit;
  font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; opacity: .6;
}
.alert .alert-close:hover { opacity: 1; }

/* 화면 위에 잠깐 뜨는 알림 */
.alert-stack {
  position: fixed; z-index: 60;
  left: 50%; transform: translateX(-50%);
  top: 88px; width: min(560px, calc(100vw - 24px));
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.alert-stack .alert {
  pointer-events: auto;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
  animation: pop-in .18s ease-out;
}
.alert-stack .alert-ok { background: #f2f8f5; }
.alert-stack .alert-warn { background: var(--warn-soft); }
.alert-stack .alert-info { background: var(--accent-soft); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- 기다리는 중 ---------- */
.loading-veil {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(2px);
  color: var(--muted); font-size: 14.5px; letter-spacing: -.01em;
}
.spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: #000;
  animation: spin .8s linear infinite;
}
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 비어 있음 ---------- */
.empty {
  padding: 56px 20px; text-align: center;
  border: 1px dashed #dcdcdc; border-radius: var(--r-lg);
  background: #fcfcfc;
}
.empty .empty-title { font-size: 17px; font-weight: 700; color: var(--fg); margin-bottom: 8px; letter-spacing: -.025em; }
.empty .empty-desc { font-size: 14.5px; color: var(--muted); letter-spacing: -.01em; }

/* ---------- 목록 ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 18px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  color: var(--fg); font-family: inherit; font-size: 15.5px; letter-spacing: -.015em;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.list-item:hover { border-color: #c9c9c9; background: #fafafa; text-decoration: none; }
.list-item.is-open { border-color: #000; }
.list-item .item-title { font-weight: 600; letter-spacing: -.025em; }
.list-item .item-meta { font-size: 13px; color: var(--muted); margin-top: 4px; letter-spacing: -.01em; }
.list-item .item-go { margin-left: auto; color: var(--faint); flex: none; }

/* ---------- 표 ---------- */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table {
  width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px;
  letter-spacing: -.01em;
}
table.table th, table.table td {
  padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle;
}
table.table th {
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  background: #fafafa; white-space: nowrap;
  position: sticky; top: 0;
}
table.table tbody tr:hover { background: #fafafa; }
table.table td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* 휴대폰에서 표 대신 쓰는 카드형 줄 */
.rec { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.rec + .rec { margin-top: 10px; }
.rec-line { display: flex; gap: 10px; font-size: 14.5px; padding: 4px 0; letter-spacing: -.01em; }
.rec-line .k { color: var(--muted); flex: none; min-width: 88px; font-size: 13.5px; }
.rec-line .v { color: var(--fg); font-weight: 600; }
.rec-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }

/* 크게 확인시켜야 하는 값 */
.callout {
  padding: 16px 18px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--panel);
}
.callout .k { font-size: 12.5px; color: var(--muted); letter-spacing: -.01em; }
.callout .v { font-size: 21px; font-weight: 700; color: var(--fg); line-height: 1.35; letter-spacing: -.035em; }
.callout-strong { border-color: var(--warn-line); background: var(--warn-soft); }

/* ---------- 보고서 보기 ---------- */
.report-view {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #fff; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .06);
}
.report-view-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fafafa;
}
.report-view-head .t {
  font-weight: 600; font-size: 15px; letter-spacing: -.025em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.report-frame {
  display: block; width: 100%; border: 0; background: #fff;
  height: min(1600px, calc(100vh - 230px)); min-height: 420px;
}
.report-view.is-full {
  position: fixed; inset: 0; z-index: 70; border-radius: 0; border: 0; box-shadow: none;
}
.report-view.is-full .report-frame { height: calc(100vh - 56px); }

/* ---------- 물어보는 창 ---------- */
.modal-veil {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0, 0, 0, .38); backdrop-filter: blur(3px);
  animation: pop-in .15s ease-out;
}
.modal {
  width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}
.modal h2 { font-size: 22px; font-weight: 700; letter-spacing: -.035em; margin-bottom: 10px; }
.modal .modal-msg { color: var(--muted); font-size: 15px; letter-spacing: -.01em; }
.modal .modal-details { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 4px; }
.modal .modal-actions { display: flex; gap: 10px; margin-top: 24px; }
.modal .modal-actions .btn { flex: 1; }

/* ---------- 넓은 화면 ---------- */
@media (min-width: 760px) {
  h1 { font-size: 38px; letter-spacing: -.045em; }
  h2 { font-size: 26px; }
  .page { padding: 34px 0 110px; }
  .wrap { padding: 0 32px; }
  .topbar-inner { padding: 12px 22px; height: 66px; }
  .topbar-who { max-width: 320px; }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .btn-auto { width: auto; }
  .auth-title { font-size: 32px; }
  .page-head { margin: 12px 0 34px; }
}

@media (min-width: 1000px) {
  .report-frame { height: min(1800px, calc(100vh - 250px)); }
}

/* 좁은 화면 */
@media (max-width: 480px) {
  .topbar { padding: 10px 0 0; }
  .topbar-inner { height: 58px; padding: 10px 14px; border-radius: var(--r); }
  .topbar-sub { display: none; }
  .card { padding: 20px; border-radius: var(--r); }
  .modal { padding: 22px; border-radius: var(--r-lg); }
}

/* 움직임을 줄여 달라고 설정한 분들 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 인쇄할 때는 화면 장치들을 감춘다 */
@media print {
  .topbar, .alert-stack, .loading-veil, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}
