:root {
  /* 기본 팔레트: 밝은 쿨화이트 배경 + 네이비 텍스트 + 부드러운 골드 포인트.
     --ivory/--line 값만 여기서 바꾸면 전체 화면(배경/카드/입력창/보조버튼)의
     톤이 한 번에 바뀝니다 - 개별 규칙을 하나씩 고치지 않기 위해 일부러 변수
     하나로 몰아뒀습니다. 예전에는 따뜻한 아이보리(#faf8f3)였던 걸 노란기를
     뺀 아주 옅은 쿨그레이로 바꿨습니다(2026-09 화면 밝기 개선). */
  --ivory: #f6f7f9;
  --paper: #ffffff;
  --line: #e5e7ec;
  --navy: #16213a;
  --navy-2: #3a4664;
  --muted: #8a8f9c;

  --gold: #b9902c;
  --gold-dark: #93711f;
  --gold-tint: #f6ecd2;

  --day: #4a7fc0;
  --day-dark: #33619f;
  --day-tint: #eaf2fb;

  --night: #1c2b4a;
  --night-dark: #101a30;
  --night-tint: #e7eaf1;

  --danger: #b4574c;
  --danger-tint: #f8e9e7;

  --ok-tint: #eaf3ea;
  --ok-text: #2f6b3d;

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 3px 14px rgba(22, 33, 58, 0.06);
  --shadow-btn: 0 4px 12px rgba(22, 33, 58, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  background: var(--ivory);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
}

body.has-bottom-nav {
  padding-bottom: 76px;
}

.wrap {
  max-width: 460px;
  margin: 0 auto;
  padding: 18px 18px 40px;
}

.wrap-wide {
  max-width: 920px;
}

/* 상단 브랜드바 */
.brand-bar {
  background: var(--navy);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  font-size: 12.5px;
  letter-spacing: 0.2px;
}

.brand-mark strong {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--gold-tint);
  margin-right: 6px;
}

.brand-system {
  opacity: 0.72;
  font-weight: 300;
}

/* 관리자 전용 보조 링크 */
.admin-link-row {
  text-align: right;
  margin: 2px 0 12px;
}

.admin-link-row a {
  color: var(--navy-2);
  font-size: 12.5px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

/* 로그인 화면 */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 36px 28px 30px;
}

.login-brand {
  text-align: center;
  margin-bottom: 26px;
}

.login-brand img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  margin-bottom: 14px;
}

.login-brand .company {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.2px;
}

.login-brand .system {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}

/* 홈 화면 헤더: 인사말 / 날짜 / 실시간 시계 */
.home-header {
  text-align: center;
  padding: 22px 0 4px;
}

.home-greeting {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.2px;
}

.home-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}

.home-clock {
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  margin-top: 10px;
}

.card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.status-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: none;
}

h1 {
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
  margin: 20px 0 18px;
}

h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 14px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 2px;
  font-size: 14px;
  color: var(--navy-2);
}

.top-bar a {
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 600;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--navy-2);
}

input[type="text"],
input[type="password"],
input[type="time"],
select {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--ivory);
  color: var(--navy);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="time"]:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--paper);
}

button,
.btn {
  display: block;
  width: 100%;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-top: 12px;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.1px;
}

.btn-checkin {
  background: var(--navy);
  color: #ffffff;
  box-shadow: var(--shadow-btn);
}

.btn-checkout {
  background: var(--gold);
  color: #ffffff;
  box-shadow: var(--shadow-btn);
}

.btn-secondary {
  background: var(--ivory);
  color: var(--navy-2);
  border: 1px solid var(--line);
}

.btn-danger-soft {
  background: var(--danger-tint);
  color: var(--danger);
  box-shadow: none;
}

/* 출근 취소 (작고 눈에 덜 띄게 - 되돌리기 성격의 보조 동작) */
.cancel-checkin-btn {
  display: block;
  width: fit-content;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: normal;
  margin: 4px auto 0;
  color: var(--muted);
  background: transparent;
  text-decoration: underline;
}

/* 첫 화면 출근/퇴근 4버튼 */
.big-action-btn {
  min-height: 58px;
  font-size: 15.5px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-btn);
}

.btn-day-in {
  background: var(--day);
  color: #ffffff;
}

.btn-day-out {
  background: var(--day-dark);
  color: #ffffff;
}

.btn-night-in {
  background: var(--night);
  color: #ffffff;
}

.btn-night-out {
  background: var(--night-dark);
  color: #ffffff;
}

/* 출퇴근 버튼을 누른 뒤 나오는 완료 안내 카드 (3초 후 자동으로 사라짐) */
.toast-success {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  max-width: 320px;
  background: var(--navy);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 26px rgba(22, 33, 58, 0.28);
  padding: 14px 18px;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  color: #ffffff;
  white-space: pre-line;
  z-index: 50;
  pointer-events: none;
  animation: toast-fade-out 3s ease forwards;
}

@keyframes toast-fade-out {
  0% { opacity: 0; transform: translate(-50%, -8px); }
  10% { opacity: 1; transform: translate(-50%, 0); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* 주간/야간 버튼 2x2 배치 */
.shift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.shift-grid form {
  margin: 0;
}

.shift-grid .big-action-btn {
  width: 100%;
  margin-top: 0;
}

button:disabled {
  background: #e8eaed;
  color: #a4a8b1;
  cursor: not-allowed;
  box-shadow: none;
}

.status-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  font-size: 14.5px;
  color: var(--navy-2);
  border-bottom: 1px solid var(--line);
}

.status-line strong {
  color: var(--navy);
  font-weight: 700;
}

.status-line:last-child {
  border-bottom: none;
}

.msg {
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 13.5px;
  font-weight: 600;
}

.msg-ok {
  background: var(--ok-tint);
  color: var(--ok-text);
}

.msg-error {
  background: var(--danger-tint);
  color: var(--danger);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

th,
td {
  padding: 10px 6px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

th {
  background: transparent;
  font-weight: 600;
  color: var(--muted);
  font-size: 12.5px;
}

.filter-row {
  display: flex;
  gap: 8px;
}

.filter-row select {
  flex: 1;
}

.muted {
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

/* 직원 순서 변경 버튼 */
.order-btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-btns form {
  margin: 0;
}

.order-btn {
  display: block;
  width: 40px;
  height: 36px;
  padding: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--ivory);
  color: var(--navy-2);
  cursor: pointer;
  box-shadow: none;
}

.order-btn:disabled {
  background: #edeff2;
  color: #c9cbcf;
  cursor: not-allowed;
}

.role-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.role-tag.is-admin {
  background: var(--gold-tint);
  color: var(--gold-dark);
}

.role-tag.is-staff {
  background: var(--night-tint);
  color: var(--navy-2);
}

.btn-delete-employee {
  margin: 0;
  padding: 8px 14px;
  font-size: 12.5px;
  width: auto;
  display: inline-block;
}

/* iOS(Safari/홈 화면 PWA)에서 window.confirm()이 표시되지 않거나 제출을 씹는 경우가 있어,
   삭제류 폼([data-confirm])의 확인창을 네이티브 confirm() 대신 이 팝업으로 그립니다.
   (Android/PC는 지금까지처럼 네이티브 confirm()을 그대로 씁니다 - app.js 참고) */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 33, 58, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.confirm-box {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(22, 33, 58, 0.25);
  padding: 20px;
  width: 100%;
  max-width: 320px;
}

.confirm-msg {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--navy);
  white-space: pre-line;
}

.confirm-actions {
  display: flex;
  gap: 10px;
}

.confirm-actions button {
  margin-top: 0;
  flex: 1;
}

.confirm-cancel {
  background: var(--ivory);
  color: var(--navy-2);
  border: 1px solid var(--line);
}

.confirm-ok {
  background: var(--danger);
  color: #ffffff;
}

/* 하단 메뉴 */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 8px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(22, 33, 58, 0.05);
  z-index: 10;
}

.bottom-nav .nav-item {
  flex: 1;
  text-align: center;
  padding: 6px 2px 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.bottom-nav .nav-icon {
  color: var(--muted);
}

.bottom-nav .nav-item.active {
  color: var(--gold-dark);
  font-weight: 700;
}

.bottom-nav .nav-item.active .nav-icon {
  color: var(--navy);
}

/* =====================================================================
   2026-10 개편 추가분 (현황 화면, 직원 관리, 홈 요약 카드 등)
   ===================================================================== */

.brand-role {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  opacity: 1;
}
.brand-system { opacity: 0.9; }

.wrap-flash { padding-top: 12px; padding-bottom: 0; }
.wrap-flash .msg { margin-bottom: 0; }
.msg-link { display: block; text-decoration: none; }
.msg-info {
  background: var(--day-tint);
  color: var(--day-dark);
  text-align: left;
  font-weight: 500;
  line-height: 1.5;
}

.login-hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.label-hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
  margin-left: 4px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.check-label input { width: auto; }

/* 홈 화면 */
.holiday-chip {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--danger-tint);
  color: var(--danger);
  font-size: 11.5px;
  font-weight: 700;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 6px;
}
.status-cell {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.status-cell span { font-size: 12.5px; color: var(--muted); }
.status-cell strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.status-cell.status-night { background: var(--night-tint); }
.status-cell:not(.status-night) { background: var(--day-tint); }
.status-grid .status-cell:nth-child(1) { border-radius: 12px 0 0 0; }
.status-grid .status-cell:nth-child(2) { border-radius: 0 12px 0 0; }
.status-grid .status-cell:nth-child(3) { border-radius: 0 0 0 12px; }
.status-grid .status-cell:nth-child(4) { border-radius: 0 0 12px 0; }

.big-action-btn { min-height: 64px; font-size: 17px; }
.big-action-btn.is-sending { opacity: 0.7; }

.shift-hint {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 18px;
}

.month-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.month-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.month-card-link { font-size: 12.5px; color: var(--gold-dark); font-weight: 600; }
.month-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  text-align: center;
}
.month-stats div {
  background: var(--ivory);
  border-radius: var(--radius-sm);
  padding: 10px 2px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.month-stats strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.month-stats span { font-size: 11.5px; color: var(--muted); }

/* 섹션 제목 (왼쪽 정렬 + 보조 설명) */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 2px 12px;
}
.h1-left { text-align: left; margin: 0; }
.section-sub { font-size: 13px; color: var(--muted); }
.section-title { font-size: 15px; margin: 24px 2px 12px; }
.page-hint {
  font-size: 12.5px;
  color: var(--navy-2);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  line-height: 1.55;
  margin: -6px 0 14px;
}
.small-note { font-size: 12px; margin: 10px 2px 0; }
.pad { padding: 16px 18px; margin: 0; }

/* 현황: 숫자 칩 */
.count-chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.count-chip {
  background: var(--paper);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 10px 2px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 3px solid var(--line);
}
.count-chip strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.count-chip span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.chip-working { border-top-color: var(--day); }
.chip-night { border-top-color: var(--night); }
.chip-done { border-top-color: #5c9a6b; }
.chip-text { border-top-color: var(--gold); }
.chip-none { border-top-color: var(--danger); }

/* 현황: 직원별 오늘 상태 줄 */
.card-flush { padding: 4px 0; overflow: hidden; }
.board-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.board-row:last-child { border-bottom: none; }
.board-row:active { background: var(--ivory); }
.board-name { font-weight: 700; font-size: 15px; min-width: 64px; }
.board-detail {
  flex: 1;
  font-size: 13px;
  color: var(--navy-2);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.state-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.state-working { background: var(--day-tint); color: var(--day-dark); }
.state-night { background: var(--night); color: #fff; }
.state-done { background: var(--ok-tint); color: var(--ok-text); }
.state-text { background: var(--gold-tint); color: var(--gold-dark); }
.state-none { background: var(--danger-tint); color: var(--danger); }

/* 현황: 월 합계 표 */
.month-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.month-form { flex: 1; display: flex; gap: 8px; margin: 0; }
.month-form select { padding: 10px 12px; }
.month-arrow {
  flex: 0 0 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ivory);
  color: var(--navy);
  font-size: 22px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -6px; }
.summary-table { width: 100%; min-width: 420px; font-size: 13.5px; border-collapse: collapse; }
.summary-table th { font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.summary-table td { padding: 11px 4px; border-bottom: 1px solid var(--line); text-align: center; font-variant-numeric: tabular-nums; }
.summary-table .col-name { text-align: left; padding-left: 6px; white-space: nowrap; position: sticky; left: 0; background: var(--paper); }
.summary-table .col-name a { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.summary-table tr:last-child td { border-bottom: none; }
.sub-days { display: block; font-size: 10.5px; color: var(--muted); }
.dl-link {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--ok-tint);
  color: var(--ok-text);
  text-decoration: none;
  font-weight: 700;
}
.tag-retired {
  display: inline-block;
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #eceef2;
  color: var(--muted);
  margin-left: 4px;
  vertical-align: middle;
}

/* 직원 관리 */
.add-card { padding: 0; }
.add-card[open] { padding-bottom: 20px; }
.add-summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}
.add-summary::-webkit-details-marker { display: none; }
.add-card form { padding: 0 20px; }

.emp-row { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.emp-row:last-child { border-bottom: none; }
.emp-main { display: flex; align-items: center; gap: 12px; }
.emp-main .order-btns { flex: 0 0 auto; }
.emp-info { flex: 1; min-width: 0; }
.emp-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.emp-id { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.emp-manage { margin-top: 6px; }
.emp-manage > summary {
  list-style: none;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-dark);
  padding: 4px 0 2px 52px;
}
.emp-manage > summary::-webkit-details-marker { display: none; }
.emp-manage > summary::after { content: ' ▾'; }
.emp-manage[open] > summary::after { content: ' ▴'; }
.emp-manage-body {
  margin-top: 8px;
  background: var(--ivory);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.inline-form { display: flex; gap: 8px; align-items: stretch; }
.inline-form input { flex: 1; min-width: 0; background: var(--paper); }
.inline-form button { width: auto; margin-top: 0; padding: 0 14px; white-space: nowrap; font-size: 13px; }
.emp-manage-body .btn-danger-soft { margin-top: 10px; }
.emp-retired .emp-main { opacity: 0.75; }
.emp-actions { display: flex; gap: 8px; margin-top: 10px; }
.emp-actions form { flex: 1; margin: 0; }
.btn-small { margin-top: 0; padding: 10px; font-size: 13px; }

/* 데스크톱: 화면을 넓게 써서 근무 기록부 표가 덜 잘리도록 */
@media (min-width: 1100px) {
  .wrap-wide { max-width: 1180px; }
}

@media (max-width: 380px) {
  .count-chip strong { font-size: 17px; }
  .count-chip span { font-size: 10px; }
  .board-name { min-width: 54px; }
}
@media (max-width: 520px) {
  .summary-table { min-width: 0; font-size: 13px; }
  .summary-table .col-off { display: none; }
  .summary-table td, .summary-table th { padding-left: 2px; padding-right: 2px; }
  .table-scroll { margin: 0; }
}

/* 월 마감 (2026-10 추가) */
.lock-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
}
.lock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--ivory);
}
.lock-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lock-text strong { font-size: 14px; }
.lock-text span { font-size: 12px; color: var(--muted); line-height: 1.45; }
.lock-row form { margin: 0; flex: 0 0 auto; }
.lock-row .btn-small { width: auto; padding: 10px 14px; white-space: nowrap; }
.lock-banner {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 13px 16px;
  margin: -4px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
}
.lock-banner span { font-size: 12.5px; opacity: 0.8; }

/* 저장 결과 안내(오류): 성공 토스트보다 오래, 누르면 닫힘 */
.toast-error {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 360px;
  background: var(--danger);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 26px rgba(22, 33, 58, 0.28);
  padding: 14px 18px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
  z-index: 50;
  cursor: pointer;
  animation: toast-error-fade 7s ease forwards;
}
@keyframes toast-error-fade {
  0% { opacity: 0; transform: translate(-50%, -8px); }
  5% { opacity: 1; transform: translate(-50%, 0); }
  90% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
.toast-success { animation-fill-mode: forwards; }

/* 2026-10-18: 설정 - 글씨 크기, 현황 - 확인 열 */
.font-setting-row { display: flex; align-items: center; gap: 12px; }
.font-step-btn { flex: 1; margin: 0; font-size: 16px; }
.font-step-btn:disabled { opacity: 0.4; }
.font-preview { flex: 0 0 64px; text-align: center; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.summary-table .col-ok { width: 40px; }
.ok-mark { color: var(--ok-text); font-weight: 800; font-size: 16px; }
.issue-mark { color: var(--danger); font-weight: 700; font-size: 12px; white-space: nowrap; }
/* 확인 열이 생겨 칸이 하나 늘어난 만큼 휴대폰에서는 줄바꿈 없이 좁게 */
.summary-table th, .summary-table td { white-space: nowrap; }
@media (max-width: 520px) {
  .summary-table { font-size: 12.5px; }
  .summary-table th { font-size: 11px; }
  .summary-table .dl-link { width: 28px; height: 28px; }
  .summary-table .col-name { max-width: 64px; overflow: hidden; text-overflow: ellipsis; }
  .summary-table .tag-retired { display: none; }
}
