/* 웹판에서만 쓰는 것. Dr.PEA 에서 가져온 style.css 위에 얹는다.
   거기 있는 것과 이름이 겹치면 여기가 이긴다(뒤에 읽히므로). */

/* ---- 기능 띠 ----
   앱(PM)의 첫 화면과 같은 모양이다(`lib/main.dart` 의 `_BannerCard`).
   사진을 깔고 글자를 얹는다. 비율 358:150 은 앱이 사진을 구운 비율이라
   어기면 사람이 잘린다. 바탕색까지 사진에 들어 있어 따로 칠하지 않는다. */
.banner-list { display: grid; gap: 12px; margin: 4px 0 14px; }

.banner {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  aspect-ratio: 358 / 150;
  padding: 0 18px;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: inherit; text-decoration: none;
  transition: transform .14s ease;
}
.banner:active { transform: scale(.99); }

.banner-text { flex: 1; min-width: 0; }
.banner-text b { display: block; font-size: 21px; font-weight: 800; color: #1A2230; }
.banner-text small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.banner-text em {
  display: block; margin-top: 6px; font-style: normal;
  font-size: 11.5px; font-weight: 600; color: #6B7684;
}

.banner-go {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(26, 34, 48, .1); color: #1A2230; font-size: 16px;
}

/* 아직 안 연 것. **보이되 눌리지 않는다.** 무엇을 하는 것인지 한눈에
   들어오고, 열렸을 때 다시 찾아올 까닭이 된다. 사진을 지우지 않고 흰 막을
   덮어 바래게 한다 — 그림이 사라지면 무엇인지 알아볼 수 없다. */
.banner.soon { cursor: default; }
.banner.soon::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(243, 245, 248, .62);
  border-radius: 18px;
}
.banner.soon > * { position: relative; z-index: 1; }
.banner.soon .banner-text b { color: #5A6470; }
.banner.soon .banner-go { background: rgba(26, 34, 48, .06); color: #8C96A3; }
.banner-tag {
  position: absolute; top: 12px; right: 14px;
  padding: 2px 9px; border-radius: 9px;
  background: rgba(26, 34, 48, .72); color: #fff;
  font-size: 11px; font-weight: 700;
}

/* 띠 아래 기록 줄과 한 줄 고지 — 앱도 같은 차례다. */
.rec-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  color: inherit; text-decoration: none;
  box-shadow: var(--shadow);
}
.rec-row > span:nth-child(2) { flex: 1; }
.rec-row b { display: block; font-size: 15px; }
.rec-row small { display: block; color: var(--muted); font-size: 12.5px; }
.rec-row .kind {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 11px; background: #E8EEF6; color: var(--navy); font-size: 19px;
}
.limit-note {
  margin: 14px 4px 0; text-align: center;
  font-size: 12px; line-height: 1.6; color: var(--muted);
}

/* ---- 아래 탭 ----
   앱(PM)이 아래 탭으로 다닌다. 웹에서도 같은 자리에 두어야 "같은 것의 웹
   판"으로 읽힌다. 화면 아래 띠는 폰에서 엄지가 닿는 자리이기도 하다. */
#tabbar {
  position: fixed; inset: auto 0 0; z-index: 50;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface, #fff);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
#tabbar a {
  display: grid; justify-items: center; gap: 2px;
  padding: 8px 0 7px;
  color: var(--muted); text-decoration: none;
  font-size: 11px; font-weight: 600;
}
#tabbar a i { font-size: 22px; }
#tabbar a.on { color: var(--navy); }
#tabbar a.on i { font-weight: 700; }

/* 탭 띠에 가려 마지막 줄을 못 읽는 일이 없게 바닥을 띄운다. */
body:has(#tabbar:not([hidden])) .wrap { padding-bottom: 76px; }
body:has(#tabbar:not([hidden])) #busy { bottom: 60px; }

/* ---- 알림 띠 ---- */
.notice.warn { background: #FFFBEB; border: 1px solid #FDE68A; }
.notice.ok { background: #ECFDF3; border: 1px solid #BBF7D0; }
.save-mark { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.save-mark .btn { margin-left: auto; }

/* ---- 진행 표시 ---- */
#busy {
  position: fixed; inset: auto 0 0; z-index: 90;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #243447; color: #fff; font-size: 14px;
}
#busy progress { flex: 1; height: 6px; }

/* ---- 공유·인쇄용 A4 ----
   화면은 폰에 맞춰 세로 한 줄로 둔다. 그 상태로 그림을 뜨면 아주 길쭉한
   한 장이 나와 받아 보는 쪽에서 읽기 나쁘다. 그림으로 만들 때만 이 클래스를
   잠깐 붙여 종이 한 장 모양(세 방향 나란히)으로 바꾼다.
   style.css 의 `@media (min-width: 1000px)` 와 같은 모양이다. */
.a4 { width: 1000px; max-width: none; }
.a4 .views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.a4 .views .view-body { grid-template-columns: 1fr; }
.a4 .table-wrap { overflow: visible; }

/* ---- 가입 칸 ---- */
#signupOnly .field-row { display: flex; gap: 10px; flex-wrap: wrap; }
#signupOnly .field-row > label { flex: 1; min-width: 130px; }
.check-line { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; }
.msg { min-height: 1.2em; color: #B42318; font-size: 13px; margin: 8px 0; }
.btn.wide { width: 100%; }

/* ---- 설정의 이름:값 줄 ---- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; font-size: 14px; font-weight: 600; }

/* ---- 기록 목록 ---- */
.rec-list { margin-top: 6px; }
.rec-open .kind {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; background: var(--accent-soft, #E8EEF6);
  color: var(--navy, #243447); font-size: 18px;
}
.rec-open small { display: block; color: var(--muted); font-size: 12px; }
.rec-open { gap: 12px; }
.rec-open > span:nth-child(2) { flex: 1; }
