:root {
  --주색: #145D59;
  --바탕: #F7F3EA;
  --옅은: #DCECE6;
  --먹: #203330;
  --선: #C9D3CE;
  --흰: #FFFFFF;
  --문제: #A2352B;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: var(--바탕);
  color: var(--먹);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
a { color: var(--주색); }
h1, h2, h3 { margin: 0 0 .6rem; line-height: 1.3; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea {
  width: 100%;
  padding: .6rem .7rem;
  border: 1px solid var(--선);
  border-radius: 6px;
  background: var(--흰);
  min-height: 44px;
}
textarea { min-height: 6rem; resize: vertical; }
label { display: block; margin: .6rem 0 .25rem; font-weight: 600; }
button {
  min-height: 44px;
  padding: .55rem 1.1rem;
  border: 1px solid var(--주색);
  border-radius: 6px;
  background: var(--흰);
  color: var(--주색);
  cursor: pointer;
  font-weight: 600;
}
button.주 { background: var(--주색); color: #fff; }
button.위험 { border-color: var(--문제); color: var(--문제); }
button:disabled { opacity: .55; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #265A91;
  outline-offset: 2px;
}
.줄 { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.줄.끝 { justify-content: flex-end; }
.작게 { font-size: .9rem; color: #4a5c58; }
.굵게 { font-weight: 700; }
.숨김 { display: none; }

/* 머리와 이동 */
.머리 {
  background: var(--주색);
  color: #fff;
  padding: .6rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  align-items: center;
}
.머리 .제품 { font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; gap: .5rem; }
.머리 img { height: 28px; width: auto; }
.머리 nav { display: flex; flex-wrap: wrap; gap: .3rem; flex: 1; }
.머리 nav a {
  color: #fff;
  text-decoration: none;
  padding: .45rem .8rem;
  border-radius: 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.머리 nav a.현재 { background: rgba(255, 255, 255, .22); font-weight: 700; }
.머리 button { background: transparent; color: #fff; border-color: #fff; }
.본문 { max-width: 1180px; margin: 0 auto; padding: 1rem; }
.판 {
  background: var(--흰);
  border: 1px solid var(--선);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.판.안내 { background: var(--옅은); }
.판.경고 { border-color: var(--문제); }

/* 로그인 */
.로그인 { max-width: 420px; margin: 8vh auto 0; padding: 0 1rem; }
.비밀상자 { font-family: Consolas, "Courier New", monospace; word-break: break-all; background: var(--옅은); padding: .6rem; border-radius: 6px; user-select: all; }

/* 상태 칩 */
.칩 {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .1rem .6rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  background: var(--흰);
  white-space: nowrap;
}
.칩 .모양 { font-size: 1rem; line-height: 1; }
.칩.기획 { color: #526171; }
.칩.제작중 { color: #89500F; }
.칩.검수대기 { color: #265A91; }
.칩.재제작중 { color: #89500F; }
.칩.원장확인대기 { color: #526171; }
.칩.심의대기 { color: #265A91; }
.칩.컨펌대기 { color: #236044; }
.칩.예약됨 { color: #006779; }
.칩.완료 { color: #236044; }
.칩.반려 { color: var(--문제); }
.칩.제작실패 { color: var(--문제); }
.칩.결과불명 { color: var(--문제); }
.칩.보류 { color: var(--문제); }
.칩.취소 { color: #526171; }
.칩.게시확인 { color: #236044; }
.칩.발행중 { color: #006779; }
.칩.삭제완료 { color: #526171; }
.칩.예약 { color: #006779; }

/* 오늘 카드 */
.카드들 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.달력띠 { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; margin: .5rem 0; }
.달력띠 span { height: 18px; border: 1px solid var(--선); border-radius: 3px; background: var(--흰); }
.달력띠 span.채움 { background: var(--주색); border-color: var(--주색); }
.달력띠 span.오늘칸 { outline: 2px solid #89500F; }
.경고줄 { color: var(--문제); font-weight: 700; }

/* 검수함 */
.탭 { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.탭 button.현재 { background: var(--주색); color: #fff; }
.항목 {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: .8rem;
  padding: .7rem;
  border: 1px solid var(--선);
  border-radius: 8px;
  background: var(--흰);
  margin-bottom: .6rem;
  text-decoration: none;
  color: inherit;
}
.항목 img, .항목 .표지없음 { width: 64px; height: 114px; object-fit: cover; border-radius: 4px; background: var(--옅은); }

/* 편집기 */
.편집판 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .편집판 { grid-template-columns: 340px 1fr; align-items: start; }
  .미리보기칸 { position: sticky; top: .5rem; }
}
.세로영상 { width: 100%; max-width: 320px; aspect-ratio: 9 / 16; background: #000; border-radius: 8px; display: block; margin: 0 auto; }
.띠 { position: relative; margin: .6rem auto 0; max-width: 320px; cursor: pointer; border: 1px solid var(--선); border-radius: 4px; overflow: hidden; background: var(--옅은); min-height: 36px; }
.띠 img { width: 100%; display: block; }
.컷 { border: 1px solid var(--선); border-radius: 8px; padding: .7rem; margin-bottom: .7rem; background: #fcfbf7; }
.컷 .머리줄 { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .4rem; }
.검사줄 { margin: .2rem 0; padding: .3rem .5rem; border: 1px solid var(--문제); border-radius: 6px; color: var(--문제); font-weight: 600; }
.차이 { font-family: Consolas, "Courier New", monospace; white-space: pre-wrap; border: 1px solid var(--선); border-radius: 6px; padding: .5rem; background: #fff; }
.차이 .더함 { background: #dcefe3; display: block; }
.차이 .뺌 { background: #f6dcd8; display: block; text-decoration: line-through; }
.차이 .같음 { display: block; }
.두영상 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.지문 { font-family: Consolas, "Courier New", monospace; font-size: 1.1rem; letter-spacing: .05em; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--선); vertical-align: top; word-break: break-word; }
.표감싸기 { overflow-x: auto; }

/* 알림 */
#알림 { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .6rem; pointer-events: none; }
.알림글 { pointer-events: auto; max-width: 560px; width: 100%; padding: .8rem 1rem; border-radius: 8px; background: var(--먹); color: #fff; font-weight: 600; }
.알림글.오류 { background: var(--문제); }
.알림글.성공 { background: #236044; }

/* 창 */
.막 { position: fixed; inset: 0; background: rgba(32, 51, 48, .55); display: flex; align-items: center; justify-content: center; z-index: 40; padding: 1rem; }
.창 { background: #fff; border-radius: 10px; padding: 1.2rem; max-width: 400px; width: 100%; }

@media (max-width: 420px) {
  .본문 { padding: .6rem; }
  .판 { padding: .75rem; }
  .항목 { grid-template-columns: 52px 1fr; }
  .항목 img, .항목 .표지없음 { width: 52px; height: 92px; }
  .달력띠 { grid-template-columns: repeat(7, 1fr); }
}
@media (prefers-reduced-motion: no-preference) {
  button { transition: background-color .15s; }
}

/* 접수 · 도움말 */
.칩.발급 { color: #526171; }
.칩.신청중 { color: #89500F; }
.칩.결제완료 { color: #265A91; }
.칩.설치대기 { color: #006779; }
.칩.활성 { color: #236044; }
.칩.환불 { color: #A2352B; }
.경고글 { color: var(--문제); font-weight: 600; margin: .3rem 0; }
details { margin: .4rem 0; }
summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
input[readonly] { background: #f3f1ea; word-break: break-all; }
.탭 button { flex: 1 1 auto; }
@media (max-width: 600px) { .탭 { flex-direction: column; } .머리줄 { flex-direction: column; align-items: flex-start; } }
