* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: #f6f7f9;
  color: #111;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.85rem;
  border: 1px solid #d7dbe0;
  border-radius: 0.65rem;
  background: #fff;
  color: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn.primary {
  background: #0b6cff;
  border-color: #0b6cff;
  color: #fff;
}

.btn.danger {
  background: #ff3b30;
  border-color: #ff3b30;
  color: #fff;
}

.btn.ghost {
  background: #fff;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#menu-wrapper {
  margin-left: auto;
  display: flex;
  align-items: center;
}

#hamburger-button {
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

#menu-content {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: 240px;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

#menu-content.open {
  transform: translateX(0);
}

#menu-content nav {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0.5rem;
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
}

.hidden {
  display: none !important;
}

.spacer {
  flex: 1 1 auto;
}
