/* 광영개발 업무노트 — 폰 우선.
   글자·버튼을 크게 잡아 장갑 낀 손으로도 누를 수 있게 한다.
   광영개발 홈페이지와 같은 색 계열을 쓴다. */

:root {
  /* ── 글자·강조 ──
     색을 옅게 가더라도 글자 대비는 4.5:1 을 지킨다. 파스텔은 바탕에만 쓴다. */
  --navy: #16263f;
  --accent: #0b6fa4;          /* 흰 글자 대비 5.49:1 */
  --accent-dark: #08587f;
  --label: #1a56d6;
  /* 전화 버튼용 초록. 홈페이지의 #0f9b6c 는 흰 글자 대비가 3.54:1 로
     '전화' 같은 글자를 올리기에 부족해서 조금 진하게 잡았다 (5.35:1). */
  --call: #0b7a54;
  --danger: #b3261e;
  --text: #1e2632;
  --text-mute: #5b6472;

  /* ── 파스텔 바탕 (하늘 + 연두 + 아주 옅은 크림) ── */
  --sky-50:  #f7fbff;
  --sky-100: #e9f3fb;
  --sky-200: #d6e9f7;
  --mint-50: #f5fcf8;
  --mint-100:#e7f6ee;
  --mint-200:#d3edde;
  --cream:   #fffaf2;

  --bg: var(--sky-50);
  --card: #ffffff;
  --border: #e3edf6;
  --border-soft: #eef4fa;

  --radius: 16px;
  --radius-sm: 11px;
  /* 그림자는 얕게 두 겹으로. 한 겹으로 진하게 주면 촌스러워진다. */
  --shadow-sm: 0 1px 2px rgba(22,38,63,0.04), 0 6px 16px -8px rgba(22,38,63,0.12);
  --shadow-md: 0 2px 6px rgba(22,38,63,0.05), 0 16px 32px -14px rgba(22,38,63,0.20);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* hidden 속성이 반드시 이기게 한다.
   브라우저는 [hidden] 을 display:none 으로 감추는데, 그건 우선순위가 가장 낮아서
   .gate { display:flex } 처럼 display 를 정해두면 감춰지지 않는다.
   그 때문에 로그인해도 첫 화면이 계속 덮여 있는 문제가 있었다. (2026-08-12 고침)
   감춰야 하는 것 : .gate .gate__form .hint .toast, 그리고 hidden 붙은 .btn 들 */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  letter-spacing: -0.005em;
  /* 아이폰 노치·홈바 피하기 */
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

/* 파스텔 바탕. 스크롤해도 따라오지 않게 고정된 층에 깔아둔다.
   body 에 background-attachment:fixed 를 주면 아이폰에서 덜컹거린다. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1000px 480px at 6% -8%,  var(--mint-100), transparent 62%),
    radial-gradient(900px  460px at 104% 0%, var(--sky-100),  transparent 64%),
    radial-gradient(700px  420px at 50% 106%, var(--cream),   transparent 70%),
    var(--bg);
}

/* ── 상단 고정 영역 ───────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  /* 뒤의 파스텔이 살짝 비쳐 보이게 반투명 + 흐림 */
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(227,237,246,0.9);
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 11px;
}
.top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.top h1 {
  margin: 0;
  font-size: 19.5px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.search { position: relative; }
.search input {
  width: 100%;
  /* 16px 미만이면 아이폰에서 입력할 때 화면이 확대된다 */
  font-size: 16px;
  padding: 12px 42px 12px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  box-shadow: inset 0 1px 2px rgba(22,38,63,0.03);
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: #8b95a3; }
.search input:focus {
  outline: none;
  border-color: #9dc9e6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11,111,164,0.14);
}
.search__clear {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border: none; background: none;
  color: var(--text-mute);
  font-size: 15px;
  cursor: pointer;
}

/* ── 추천 목록 (자동완성) ─────────────────────── */
.ac-wrap { position: relative; }
.ac {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  max-height: 47vh;
  overflow-y: auto;
}
.ac__item {
  min-height: 46px;              /* 손가락으로 누를 수 있게 */
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--navy);
  cursor: pointer;
  word-break: break-all;
}
.ac__item.is-on, .ac__item:active { background: var(--sky-100); }
.ac__item mark {
  background: none;
  color: var(--label);
  font-weight: 800;
}

.chips { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  color: var(--text-mute);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chip:active { background: #fff; }
/* 고른 것은 채워서 확실히 구분한다. 파스텔로만 구분하면 눈에 안 들어온다. */
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(11,111,164,0.5);
}

/* ── 목록 ─────────────────────────────────────── */
main { padding: 12px 14px 0; }

/* 홈 화면 추가 안내. 아직 추가 안 한 폰에서만 보이고, 닫으면 다시 안 뜬다 */
.hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  padding: 12px 13px;
  background: linear-gradient(135deg, var(--mint-100), var(--sky-100));
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}
.hint strong { display: block; color: #0b4f78; }
.hint span { color: var(--text-mute); }
/* 글자는 작아 보이지만 누르는 면적은 44px 을 지킨다 (장갑 낀 손) */
.hint button {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  margin: -10px -10px 0 auto;
  background: none;
  border: 0;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1;
  color: var(--text-mute);
  cursor: pointer;
}
.hint button:active { background: rgba(11, 79, 120, 0.12); }

.count { margin: 2px 0 10px; font-size: 13px; color: var(--text-mute); font-weight: 600; }

.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }

.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 15px 16px;
  box-shadow: var(--shadow-sm);
  /* 위쪽에 아주 옅은 하늘빛을 얹어 종이처럼 보이게 한다 */
  background-image: linear-gradient(180deg, rgba(233,243,251,0.55), rgba(255,255,255,0) 42%);
  transition: box-shadow .18s, transform .18s;
}
.card:active { transform: translateY(1px); box-shadow: var(--shadow-sm); }

.card__top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card__company {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
}
.card__kind {
  flex: none;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--sky-100);
  color: #0b4f78;
  box-shadow: inset 0 0 0 1px var(--sky-200);
}
.card__kind[data-kind="협력사"] {
  background: var(--mint-100); color: #085a3b;
  box-shadow: inset 0 0 0 1px var(--mint-200);
}
.card__kind[data-kind="기타"] {
  background: #f2f4f7; color: #4d5665;
  box-shadow: inset 0 0 0 1px #e5e9ef;
}

.card__person { margin: 4px 0 0; font-size: 14.5px; color: var(--text-mute); }
.card__memo {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--text-mute);
  /* 메모가 길어도 두 줄까지만 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 검색해서 찾은 부분은 두 줄 자르기를 풀어 찾은 자리가 보이게 한다 */
.card__memo--hit {
  display: block;
  -webkit-line-clamp: none;
  overflow: visible;
}

/* 카드에 안 보이는 곳(주소·이메일 등)에서 찾았을 때 알려주는 줄 */
.card__hit {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-mute);
}
.card__hit > span {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: #e6f2fc;
  color: #0b4f78;
  font-size: 11.5px;
  font-weight: 800;
}
.card__memo mark, .card__hit mark {
  background: #fff3bf;
  color: var(--text);
  font-weight: 800;
  border-radius: 3px;
  padding: 0 1px;
}

.card__actions { display: flex; gap: 8px; margin-top: 12px; }
.card__actions .btn { flex: 1 1 0; min-width: 0; }

/* ── 버튼 ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  /* 손가락으로 누르기 편한 최소 높이 */
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 14.5px; border-radius: 999px; }
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 5px 14px -6px rgba(11,111,164,0.65);
}
.btn--primary:active { background: var(--accent-dark); box-shadow: none; }
.btn--call {
  background: var(--call);
  color: #fff;
  box-shadow: 0 5px 14px -6px rgba(11,122,84,0.6);
}
.btn--call:active { box-shadow: none; }
.btn--line {
  background: rgba(255,255,255,0.9);
  border-color: var(--border);
  color: var(--navy);
  box-shadow: inset 0 1px 2px rgba(22,38,63,0.03);
}
.btn--line:active { background: var(--sky-100); }
.btn--danger { background: #fff; border-color: rgba(179,38,30,0.35); color: var(--danger); }
.btn--danger:active { background: #fdf2f1; }
.btn[disabled] { opacity: 0.45; pointer-events: none; box-shadow: none; }

.empty {
  margin: 40px 0;
  text-align: center;
  color: var(--text-mute);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ── 입력 시트 ────────────────────────────────── */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s, visibility 0.2s;
}
.sheet.is-open { visibility: visible; opacity: 1; }
.sheet__backdrop {
  position: absolute; inset: 0;
  background: rgba(22,38,63,0.32);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.sheet__panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 92dvh;
  overflow-y: auto;
  background: #fff;
  background-image: linear-gradient(180deg, var(--sky-50), #fff 120px);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -14px 40px -16px rgba(22,38,63,0.3);
  transform: translateY(14px);
  transition: transform 0.22s ease;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.sheet.is-open .sheet__panel { transform: translateY(0); }
.sheet__head {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 16px 13px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
}
/* 시트 위쪽에 잡고 내릴 수 있게 생긴 손잡이 (폰에서만) */
.sheet__panel::before {
  content: '';
  display: block;
  width: 38px; height: 4px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: #d3dfea;
}
.sheet__close {
  width: 44px; height: 44px;
  border: none; background: none;
  color: var(--text-mute);
  font-size: 16px;
  cursor: pointer;
}

.form { padding: 14px 16px 0; display: grid; gap: 12px; }
.form label { display: grid; gap: 5px; }
.form label > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mute);
}
.form label > span em {
  font-style: normal;
  color: var(--danger);
  font-size: 11.5px;
  margin-left: 4px;
}
.form input, .form select, .form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;          /* 아이폰 확대 방지 */
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fdfeff;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(22,38,63,0.03);
  transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; min-height: 78px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: #9dc9e6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11,111,164,0.14);
}
.form input::placeholder, .form textarea::placeholder { color: #99a3b1; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* 이미 적어둔 회사 정보 (눌러서 채우기) */
.known {
  padding: 11px 12px 9px;
  background: #f3fbf6;
  border: 1px solid #cbe9d8;
  border-radius: 12px;
}
.known__lead {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: #0a5c3e;
}
.known__lead span { font-weight: 600; color: var(--text-mute); }
.known__group { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 7px; }
.known__tag {
  flex: 0 0 auto;
  margin-top: 11px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-mute);
}
.known__chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.known__chip {
  min-height: 44px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbe9d8;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  word-break: break-all;
}
.known__chip:active { background: #e6f6ec; }
.known__hint { margin: 2px 0 0; font-size: 11.5px; color: var(--text-mute); }

/* 입력칸 + 옆에 붙는 버튼 (주소 찾기) */
.with-btn { display: flex; gap: 8px; }
.with-btn input { min-width: 0; }
.with-btn .btn { flex: 0 0 auto; }

/* 주소 찾기 창 — 시트 안에서 펼쳐진다 */
.addr-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.addr-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--navy);
}
#addr-embed { width: 100%; min-height: 320px; }
#addr-embed > div { width: 100% !important; }
.form__msg {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(179,38,30,0.08);
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
}
.form__actions {
  display: flex;
  gap: 8px;
  padding: 4px 0 8px;
  position: sticky;
  bottom: 0;
  background: #fff;
}
.form__actions .btn { flex: 1 1 0; }

/* ── 안내 문구 (짧게 떴다 사라짐) ─────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  max-width: calc(100vw - 32px);
  background: rgba(22,38,63,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: 0 12px 24px -10px rgba(11,23,48,0.5);
  display: flex;
  align-items: center;
  gap: 12px;
}
.toast button {
  border: none;
  background: none;
  color: #7fd8ff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

/* ── 첫 화면 (로그인) ─────────────────────────── */

/* 로그인 확인이 끝나기 전에는 명부가 한 순간도 보이지 않게 한다 */
body.is-locked > .top,
body.is-locked > main,
body.is-locked > .sheet,
body.is-locked > .menu { display: none !important; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  padding: 24px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(720px 380px at 12% -4%,  var(--mint-100), transparent 64%),
    radial-gradient(680px 360px at 100% 8%,  var(--sky-200),  transparent 62%),
    radial-gradient(600px 380px at 50% 104%, var(--cream),    transparent 70%),
    var(--sky-50);
  overflow-y: auto;
}
/* align-items:center 를 쓰면 화면이 짧을 때(가로로 눕힌 폰) 위쪽이 잘려서
   스크롤해도 안 보인다. margin:auto 는 가운데 두면서도 잘리지 않는다. */
.gate__box {
  width: 100%;
  max-width: 380px;
  margin: auto;
  text-align: center;
  /* 파스텔 바탕 위에 흰 종이를 한 장 올린 느낌 */
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 30px 22px 26px;
}
.lock__icon { font-size: 40px; line-height: 1; margin-bottom: 10px; }
.gate__logo {
  border-radius: 16px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px -8px rgba(22,38,63,0.35);
}
.gate h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.035em;
}
.gate__sub { margin: 7px 0 24px; font-size: 14px; color: var(--text-mute); }

.btn--big { width: 100%; min-height: 52px; font-size: 16px; }

.gate__note {
  margin: 9px 0 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-mute);
  text-align: left;
}
.gate__note strong { color: var(--navy); }

.gate__form { display: grid; gap: 12px; text-align: left; }
.gate__what {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}
.gate__form label { display: grid; gap: 5px; }
.gate__form label > span { font-size: 13px; font-weight: 700; color: var(--text-mute); }
.gate__form input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;          /* 아이폰 확대 방지 */
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fdfeff;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(22,38,63,0.03);
}
.gate__form input:focus {
  outline: none;
  border-color: #9dc9e6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11,111,164,0.14);
}
.gate__tiny { margin: -6px 0 0; font-size: 12px; color: var(--text-mute); }
.gate__back {
  min-height: 44px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--label);
  cursor: pointer;
}
.gate__msg {
  margin: 4px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(179,38,30,0.08);
  color: var(--danger);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  white-space: pre-line;
}

/* ── 햄버거 버튼 · 메뉴 ───────────────────────── */
.icon-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow-sm);
  color: var(--navy);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.icon-btn:active { background: var(--sky-100); box-shadow: none; }

.menu { position: fixed; inset: 0; z-index: 50; }
.menu__backdrop {
  position: absolute; inset: 0;
  background: rgba(22,38,63,0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.menu__panel {
  position: absolute;
  top: calc(8px + env(safe-area-inset-top, 0px));
  right: 12px;
  width: min(278px, calc(100vw - 24px));
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 7px;
}
.menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}
.menu__item:active { background: var(--sky-100); }
.menu__item--quiet { color: var(--text-mute); font-weight: 600; }
.menu__icon {
  flex: 0 0 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--sky-100);
  font-size: 14px;
  color: var(--accent-dark);
}
.menu__item--quiet .menu__icon { background: #f2f4f7; color: var(--text-mute); }
.menu hr { border: 0; border-top: 1px solid var(--border-soft); margin: 6px 4px; }
.menu__who {
  margin: 2px 12px 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-mute);
  word-break: break-all;
}

/* 안내 띠 안의 '방법 보기' 버튼 */
.hint__go {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 4px;
  padding: 0 2px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--label);
  text-decoration: underline;
  cursor: pointer;
}

/* ── CSV 올리기 · 바로가기 시트 안쪽 ──────────── */
.csv { padding: 14px 16px 0; display: grid; gap: 12px; }
.csv__lead { margin: 0; font-size: 14px; line-height: 1.65; }
.csv__lead code {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 5px;
  font-size: 12.5px;
}
.csv__hint {
  margin: -4px 0 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-mute);
}
.csv__file { display: block; }
.csv__file .btn { width: 100%; }
.csv__msg {
  margin: 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(179,38,30,0.08);
  color: var(--danger);
  font-size: 13.5px;
  font-weight: 600;
  white-space: pre-line;
}
.csv__summary {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}
/* 표가 넓어도 화면 전체가 옆으로 밀리지 않게 표 안에서만 스크롤 */
.csv__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.csv__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.csv__table th, .csv__table td {
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.csv__table th { background: var(--bg); color: var(--text-mute); font-size: 12px; }
.csv__table tr:last-child td { border-bottom: 0; }

.pin__steps {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.pin__steps:empty { display: none; }

/* ── PC 화면 ──────────────────────────────────── */
@media (min-width: 760px) {
  .top, main { max-width: 900px; margin-left: auto; margin-right: auto; }
  .list { grid-template-columns: repeat(2, 1fr); }
  .sheet__panel {
    left: 50%; right: auto; bottom: auto; top: 50%;
    width: 560px;
    transform: translate(-50%, -46%);
    border-radius: 18px;
    max-height: 88vh;
  }
  .sheet.is-open .sheet__panel { transform: translate(-50%, -50%); }
  /* PC 에서는 아래에서 올라오는 시트가 아니라 가운데 창이므로 손잡이를 없앤다 */
  .sheet__panel::before { display: none; }
  .menu__panel { right: calc(50% - 450px + 12px); }
}
@media (max-width: 959px) and (min-width: 760px) {
  /* 화면이 900px 틀보다 좁으면 메뉴를 그냥 오른쪽에 붙인다 */
  .menu__panel { right: 12px; }
}
