:root {
  --key: #ED1456;
  --key-hover: #C91149;
  --ink: #111114;
  --muted: #6E6E78;
  --line: #E8E8EC;
  --bg: #F7F7F9;
  --card: #fff;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; }
button, input { font: inherit; }
.rm-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.rm-top__in { max-width: 1100px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rm-brand { text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.rm-brand strong { color: var(--key); letter-spacing: 0.04em; font-size: 18px; }
.rm-brand span { font-size: 12px; font-weight: 700; color: var(--muted); }
.rm-who { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rm-who a { color: var(--key-hover); font-weight: 700; text-decoration: none; }
.rm-main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 64px; }
.rm-auth { max-width: 420px; margin: 32px auto; text-align: center; }
.rm-auth h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -0.04em; }
.rm-auth p { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }
.rm-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 12px; text-align: left; }
.rm-card h2 { margin: 0 0 4px; font-size: 20px; }
.rm-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rm-card input[type="text"], .rm-card input[type="password"] {
  height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.rm-card button[type="submit"], .rm-actions button:first-child {
  height: 48px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700;
}
.rm-card button[type="submit"]:hover { background: var(--key-hover); color: #fff; }
.rm-link, .rm-ghost { height: 44px; border: 0; background: none; color: var(--key-hover); font-weight: 700; }
.rm-idrow { display: flex; gap: 8px; }
.rm-idrow input { flex: 1; }
.rm-idrow button { height: 46px; padding: 0 12px; border: 0; border-radius: 10px; background: #111; color: #fff; font-size: 13px; font-weight: 700; }
.rm-type { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rm-type__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rm-type__opts label {
  display: flex; align-items: center; justify-content: center;
  height: 46px; margin: 0; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer;
}
.rm-type__opts input { position: absolute; opacity: 0; pointer-events: none; }
.rm-type__opts label:has(input:checked) { border-color: var(--ink); background: #111; color: #fff; }
.rm-type__opts label:has(input:focus-visible) { outline: 2px solid var(--key); outline-offset: 2px; }
.rm-actions { display: flex; gap: 8px; }
.rm-actions button { flex: 1; }
.rm-modal { position: fixed; inset: 0; background: rgba(17,17,20,.45); display: grid; place-items: center; padding: 16px; z-index: 10; }
.rm-modal[hidden] { display: none !important; }
.rm-modal .rm-card { width: min(420px, 100%); }
.rm-head { margin-bottom: 20px; }
.rm-hint { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.5; }
.rm-day { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: center; margin-bottom: 16px; }
.rm-day span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.rm-day strong { font-size: 26px; letter-spacing: -0.04em; }
.rm-nav { width: 40px; height: 40px; border-radius: 999px; background: #111; color: #fff; display: grid; place-items: center; text-decoration: none; font-weight: 700; }
.rm-empty { padding: 48px 16px; text-align: center; color: #c00; font-weight: 700; }
.rm-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.rm-table { width: max-content; min-width: 100%; border-collapse: collapse; table-layout: auto; }
.rm-table th, .rm-table td { border: 1px solid var(--line); padding: 8px 6px; text-align: center; font-size: 12px; word-break: keep-all; white-space: nowrap; }
.rm-table thead th { background: #FAFAFB; min-width: 88px; }
.rm-table thead th:first-child,
.rm-table tbody th {
  position: sticky; left: 0; z-index: 2;
  background: #FAFAFB; font-size: 12px; min-width: 88px; width: 88px;
}
.rm-table tbody th .rm-type { display: block; font-style: normal; font-size: 11px; color: var(--muted); font-weight: 700; }
.rm-table tbody th span { display: block; margin-top: 2px; color: var(--key-hover); }
.rm-table td.is-busy { background: #F4F5F7; font-weight: 700; color: var(--muted); }
.rm-table td.is-mine { background: #111; color: #fff; font-weight: 700; }
.rm-table td.is-staff { background: var(--key); color: #fff; font-weight: 700; }
.rm-table button {
  margin-top: 4px; height: 26px; padding: 0 6px; border: 0; border-radius: 6px; background: var(--key-hover); color: #fff; font-weight: 700; font-size: 11px;
}
.rm-table td.is-mine button { background: #8E8E97; color: #fff; }
.rm-mute { color: #B0B0B6; }
.rm-note { margin-top: 28px; }
.rm-note strong { display: block; margin-bottom: 10px; color: var(--key-hover); }
.rm-note li { margin: 6px 0; color: #55555E; font-size: 14px; line-height: 1.6; }
.rm-foot { padding: 24px 16px 40px; text-align: center; color: var(--muted); font-size: 12px; display: grid; gap: 8px; }
.rm-foot a { font-weight: 700; color: var(--key-hover); text-decoration: none; }
@media (max-width: 860px) {
  .rm-main { padding: 12px 8px 48px; max-width: none; }
  .rm-day strong { font-size: 20px; }
  .rm-auth { margin-top: 12px; }
  .rm-table-wrap { border-radius: 10px; }
  .rm-table th, .rm-table td { padding: 8px 6px; font-size: 12px; line-height: 1.35; }
  .rm-table thead th { min-width: 92px; }
  .rm-table thead th:first-child,
  .rm-table tbody th { min-width: 80px; width: 80px; font-size: 12px; }
  .rm-table tbody th .rm-type { display: block; }
  .rm-table tbody th span { margin-top: 2px; font-size: 12px; }
  .rm-table button { margin-top: 4px; height: 26px; padding: 0 8px; font-size: 11px; border-radius: 6px; }
}
