/* 오이 관리자 페이지: 휴대폰 화면 기준, 글자 15px 이상, 버튼 48px */
:root {
  --green: #15803d;
  --green-pale: #f1f9e9;
  --red: #dc2626;
  --red-pale: #fef2f2;
  --text: #191f28;
  --sub: #4e5968;
  --hint: #8b95a1;
  --line: #e5e8eb;
  --bg: #f2f4f6;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  word-break: keep-all;
  padding-bottom: env(safe-area-inset-bottom);
}

.top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.top h1 {
  margin: 0;
  font-size: 20px;
}

.screen {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
}

.lead {
  color: var(--sub);
  margin: 8px 0 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: var(--bg);
  color: var(--text);
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.danger {
  background: var(--red);
  color: #fff;
}

.button.weak-danger {
  background: var(--red-pale);
  color: var(--red);
}

.button:disabled {
  opacity: 0.5;
}

#send-code {
  width: 100%;
}

.text-button {
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--sub);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.login-form label {
  font-weight: 700;
}

.login-form input {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 22px;
  text-align: center;
}

/* 번호를 넣으면 숫자 사이를 띄운다(안내 글은 그대로) */
.login-form input:not(:placeholder-shown) {
  letter-spacing: 6px;
}

.message {
  min-height: 24px;
  margin: 12px 0;
  color: var(--sub);
}

.message.error {
  color: var(--red);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: #e5e8eb;
}

.tab {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--sub);
  cursor: pointer;
}

.tab[aria-selected='true'] {
  background: var(--card);
  color: var(--text);
}

.section-title {
  margin: 24px 0 8px;
  font-size: 18px;
}

.section-title small {
  color: var(--hint);
  font-weight: 400;
  font-size: 15px;
}

.empty {
  color: var(--hint);
  margin: 4px 0 8px;
}

.card {
  margin: 0 0 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--card);
  border: 2px solid transparent;
}

.card.highlight {
  border-color: var(--green);
}

.card h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.badge {
  display: inline-block;
  margin-right: 6px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--green-pale);
  color: #14532d;
  font-size: 15px;
  font-weight: 700;
}

.badge.red {
  background: var(--red-pale);
  color: var(--red);
}

.rows {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.rows li {
  display: flex;
  gap: 12px;
  padding: 4px 0;
  color: var(--sub);
}

.rows li b {
  flex: 0 0 84px;
  color: var(--hint);
  font-weight: 400;
}

.quote {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
  white-space: pre-wrap;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.actions .button:only-child {
  grid-column: span 2;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row .button {
  flex-shrink: 0;
  min-height: 44px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.inline-form input {
  flex: 1 1 120px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
}
