:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #15171a;
  --muted: #667085;
  --line: #d8dee8;
  --red: #d71920;
  --green: #047857;
  --blue: #2563eb;
  --amber: #b45309;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
    "Noto Sans KR", sans-serif;
}

body.sheetOpen,
body.modalOpen {
  overflow: hidden;
  background: var(--panel);
}

body.searchMode,
body.calendarPage,
body.calendarOpen,
body.myPageMode {
  overflow: auto;
  background: var(--panel);
}

button,
input,
select {
  font: inherit;
}

.app {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 16px calc(104px + env(safe-area-inset-bottom));
  background: var(--bg);
}

body.searchMode .app {
  padding: 0 16px calc(104px + env(safe-area-inset-bottom));
  background: var(--panel);
}

body.calendarPage .app,
body.calendarOpen .app,
body.myPageMode .app {
  padding: 0 16px calc(104px + env(safe-area-inset-bottom));
  background: #f7f7f8;
}

body.searchMode .topbar,
body.searchMode .controls,
body.searchMode .content,
body.calendarPage .topbar,
body.calendarPage .controls,
body.calendarPage .content,
body.calendarOpen .topbar,
body.calendarOpen .controls,
body.calendarOpen .content,
body.myPageMode .topbar,
body.myPageMode .controls,
body.myPageMode .content {
  display: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.topbarActions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.topIconButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.topIconButton svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topIconButton.active {
  background: #fff5f5;
  color: #e03131;
}

h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
  line-height: 1.1;
}

.bottomTabs {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 65;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.64);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.78) 48%, rgba(255, 255, 255, 0.92) 100%);
  box-shadow: 0 -14px 34px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px) saturate(1.18);
}

.bottomTabs::before {
  content: "";
  position: absolute;
  top: -24px;
  right: 0;
  left: 0;
  height: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.42));
  pointer-events: none;
}

.bottomTab {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 66px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #475467;
  cursor: pointer;
}

.bottomTab:focus {
  outline: none;
}

.bottomTab:focus-visible {
  outline: 2px solid #ffb4b8;
  outline-offset: -3px;
}

.bottomTab svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calendarNav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottomTab .activeIcon {
  display: none;
}

.bottomTab span {
  overflow: hidden;
  max-width: 100%;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottomTab.active {
  background: transparent;
  color: var(--ink);
}

.bottomTab.active svg {
  fill: none;
  stroke: currentColor;
}

.bottomTab.active .outlineIcon {
  display: none;
}

.bottomTab.active .activeIcon {
  display: block;
  fill: currentColor;
  stroke: none;
}

.authTab {
  background: transparent;
  color: #475467;
  box-shadow: none;
}

.authTab.loggedIn {
  background: transparent;
  color: #475467;
}

.authTab.active {
  background: transparent;
  color: var(--ink);
}

.aiTab {
  color: #475467;
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 14px;
}

.selectFilters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.selectControl {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.selectControl select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
}

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow-x: auto;
}

.segmented button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

.segmented button.active {
  background: var(--ink);
  color: #fff;
}

.search {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.search input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

.search span {
  white-space: nowrap;
}

.content {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
}

.eventList {
  display: grid;
  gap: 10px;
}

.eventCard {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  min-height: 108px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.eventCard.active {
  border-color: #cbd5e1;
}

.eventCard img {
  width: 76px;
  height: 88px;
  border-radius: 6px;
  object-fit: cover;
  background: #e5e7eb;
}

.eventBody {
  min-width: 0;
}

.eventMeta,
.scheduleMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 6px;
  border-radius: 5px;
  background: #eef2f7;
  color: #344054;
  font-size: 10px;
  font-weight: 700;
}

.badge.gv {
  background: #dbeafe;
  color: var(--blue);
}

.badge.stage_greeting {
  background: #fee2e2;
  color: var(--red);
}

.badge.preview {
  background: #dcfce7;
  color: var(--green);
}

.badge.special_screening {
  background: #fef3c7;
  color: var(--amber);
}

.badge.source {
  background: #f3f4f6;
  color: #111827;
}

.eventTitle {
  display: -webkit-box;
  margin: 7px 0 5px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.subtle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.detailSheet[hidden] {
  display: none;
}

.schedulePage[hidden] {
  display: none;
}

.myPagePage[hidden] {
  display: none;
}

.authSheet[hidden],
.searchSheet[hidden],
.notificationSheet[hidden],
.confirmDialog[hidden],
.bookmarksSheet[hidden] {
  display: none;
}

.detailSheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: end;
}

.schedulePage {
  display: block;
  min-height: 100dvh;
}

.myPagePage {
  display: block;
  min-height: 100dvh;
}

.authSheet,
.notificationSheet,
.confirmDialog,
.bookmarksSheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
}

.authSheet,
.confirmDialog {
  align-items: center;
  padding: 20px;
}

.searchSheet {
  display: block;
  min-height: 100dvh;
}

.notificationSheet,
.bookmarksSheet {
  align-items: end;
}

.sheetBackdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  opacity: 0;
  transition: opacity 180ms ease;
}

.schedulePageBackdrop,
.calendarBackdrop {
  display: none !important;
}

.modalBackdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
  opacity: 0;
  transition: opacity 180ms ease;
}

.confirmBackdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
}

.detailSheet.open .sheetBackdrop {
  opacity: 1;
}

.authSheet.open .modalBackdrop,
.searchSheet.open .modalBackdrop,
.notificationSheet.open .modalBackdrop,
.bookmarksSheet.open .modalBackdrop {
  opacity: 1;
}

.sheetPanel {
  position: relative;
  width: min(100%, 430px);
  height: calc(100dvh - 6px);
  max-height: calc(100dvh - 6px);
  overflow: auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: var(--panel);
  box-shadow: 0 -20px 60px rgba(15, 23, 42, 0.26);
  transform: translateY(105%);
  transition: transform 220ms ease;
}

.schedulePagePanel {
  min-height: 100dvh;
  background: #f7f7f8;
}

.calendarPopup {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: block !important;
  min-height: 100dvh !important;
  padding: 0 !important;
}

.calendarPanel {
  width: 100% !important;
  max-height: none !important;
  min-height: 100dvh !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #f7f7f8 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.modalPanel {
  position: relative;
  width: min(100%, 430px);
  max-height: min(80dvh, 720px);
  overflow: auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: var(--panel);
  box-shadow: 0 -20px 60px rgba(15, 23, 42, 0.22);
  transform: translateY(105%);
  transition: transform 200ms ease;
}

.authSheet .modalPanel {
  width: min(100%, 398px);
  max-height: calc(100dvh - 28px);
  border-bottom: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.28);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.searchPanel {
  min-height: 100dvh;
  background: var(--panel);
}

.notificationPanel {
  position: relative;
  width: min(100%, 430px);
  height: calc(100dvh - 6px);
  max-height: calc(100dvh - 6px);
  overflow: auto;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: var(--panel);
  box-shadow: 0 -20px 60px rgba(15, 23, 42, 0.22);
  transform: translateY(105%);
  transition: transform 200ms ease;
}

.confirmPanel {
  position: relative;
  width: min(100%, 320px);
  padding: 24px 20px 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
  text-align: center;
}

.detailSheet.open .sheetPanel {
  transform: translateY(0);
}

.authSheet.open .modalPanel,
.bookmarksSheet.open .modalPanel {
  transform: translateY(0);
}

.authSheet.open .modalPanel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.notificationSheet.open .notificationPanel {
  transform: translateY(0);
}

.sheetHandle {
  display: none;
}

.sheetHandle::before {
  content: "";
}

.sheetContent {
  padding: 0 14px calc(104px + env(safe-area-inset-bottom));
}

.schedulePageContent {
  min-height: 100%;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom));
}

.myPagePageContent {
  min-height: 100%;
  padding: 0 0 calc(28px + env(safe-area-inset-bottom));
}

.modalContent {
  padding: 16px;
}

.authSheet .modalContent {
  padding: 18px;
}

.searchContent {
  min-height: 100%;
  padding: 0 0 calc(28px + env(safe-area-inset-bottom));
  background: var(--panel);
}

.notificationContent {
  min-height: 100%;
  padding: 0 16px calc(108px + env(safe-area-inset-bottom));
  background: #f4f4f5;
}

.modalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modalHeader h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.modalClose {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.modalText {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.searchHeader {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: center;
  margin: 0 -16px;
  padding: 8px 16px 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.searchHeader h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  text-align: center;
  letter-spacing: 0;
}

.searchNavButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.searchNavButton svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.searchDialogField {
  position: relative;
  display: block;
  margin: 12px 0 10px;
}

.searchDialogField input {
  width: 100%;
  min-height: 48px;
  padding: 0 50px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}

.searchDialogField input::placeholder {
  color: #8a8f98;
}

.searchDialogField svg {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 25px;
  height: 25px;
  fill: none;
  color: var(--ink);
  pointer-events: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
}

.searchHint {
  margin: 0 0 24px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

.recentSearchBlock,
.searchResultBlock {
  padding-top: 0;
}

.recentSearchBlock h3,
.searchResultBlock h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}

.searchResultBlock h3 span {
  color: var(--red);
}

.recentEmptyPanel {
  display: grid;
  min-height: 220px;
  margin: 0 -16px;
  border-top: 12px solid #f4f4f5;
  background: #f7f7f8;
  place-items: center;
}

.recentEmptyPanel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.searchResultList {
  display: grid;
  gap: 10px;
}

.searchResultItem {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.searchResultItem img {
  width: 76px;
  height: 88px;
  object-fit: cover;
  border-radius: 7px;
  background: #e5e7eb;
}

.searchResultItem strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchResultItem span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.confirmPanel h2 {
  margin: 0 0 18px;
  font-size: 19px;
  letter-spacing: 0;
}

.confirmPanel p {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.45;
}

.confirmActions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.confirmActions button {
  min-height: 52px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
}

.confirmCancel {
  border: 1px solid #d1d5db;
  background: #fff;
  color: var(--ink);
}

.confirmOk {
  border: 1px solid #ff5258;
  background: #ff5258;
  color: #fff;
}

.notificationHeader {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  margin: 0 -16px;
  padding: 12px 16px 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.notificationHeader h2 {
  margin: 0;
  font-size: 22px;
  text-align: center;
  letter-spacing: 0;
}

.notificationBack,
.notificationHome {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.notificationBack svg,
.notificationHome svg,
.notificationItemIcon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notificationFilters {
  display: flex;
  gap: 8px;
  margin: 18px 0 18px;
  overflow-x: auto;
}

.notificationFilters button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.notificationFilters button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.notificationSectionTitle {
  margin: 22px 0 12px;
  font-size: 17px;
  font-weight: 900;
}

.notificationList {
  display: grid;
  gap: 10px;
}

.notificationItem {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  background: #fffef7;
}

.notificationItem::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ff5258;
}

.notificationItemIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

.notificationItem strong {
  display: block;
  padding-right: 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.notificationItem span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.authError {
  color: var(--red);
  font-weight: 800;
}

.authStatus {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.myPageHeader {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  margin: 0 -16px 14px;
  padding: 8px 16px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #eef2f7;
  backdrop-filter: blur(12px);
}

.myPageHeader h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0;
}

.myPageBack,
.myPageHome {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.myPageBack svg,
.myPageHome svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.myPageForm,
.myPageSection,
.myPageActions {
  display: grid;
  gap: 10px;
}

.myPageForm {
  margin: 0 0 14px;
}

.myPageSection {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.myPageSection + .myPageSection,
.myPageActions {
  margin-top: 12px;
}

.myPageSection h3 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.myPageField {
  display: grid;
  gap: 6px;
}

.myPageField span,
.connectedAccount > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.myPageField input {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
}

.connectedAccount {
  display: grid;
  gap: 7px;
}

.accountSummary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  color: var(--muted);
}

.accountProviderIcon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

.accountProviderIcon.naverIcon,
.accountProviderIcon.defaultProviderIcon {
  font-size: 17px;
}

.accountProviderIcon svg {
  width: 20px;
  height: 20px;
}

.accountEmail {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.myPageHelp {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.contactMail {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.authActions,
.bookmarkList {
  display: grid;
  gap: 8px;
}

.oauthButton,
.primaryAction,
.secondaryAction {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.oauthButton {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}

.providerIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.providerIcon svg {
  width: 21px;
  height: 21px;
}

.googleIcon {
  background: #fff;
  border: 1px solid var(--line);
}

.kakaoIcon {
  background: #fee500;
  color: #000;
}

.kakaoIcon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.naverIcon {
  background: #03c75a;
  color: #fff;
  font-size: 20px;
  font-weight: 1000;
  line-height: 1;
}

.defaultProviderIcon {
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.oauthButton.kakao {
  border-color: #facc15;
  background: #fee500;
  color: #111827;
}

.oauthButton.naver {
  border-color: #03c75a;
  background: #03c75a;
  color: #fff;
}

.primaryAction {
  margin-top: 12px;
  background: var(--red);
}

.secondaryAction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
}

.secondaryAction:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.calendarPageHeader {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  margin: 0 -16px;
  padding: 8px 16px 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.calendarPageHeader h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0;
}

.calendarBack,
.calendarHome,
.calendarNav,
.calendarClose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.calendarBack,
.calendarHome {
  width: 44px;
  height: 44px;
}

.calendarBack svg,
.calendarHome svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calendarNav {
  width: 38px;
  height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.calendarClose {
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.calendarHero {
  display: grid;
  gap: 16px;
  margin: 0 -16px;
  padding: 22px 16px 18px;
  background: #fff;
  border-top: 1px solid #f1f2f4;
}

.calendarHero > div:first-child {
  display: grid;
  gap: 7px;
}

.calendarHero span {
  color: #767d88;
  font-size: 13px;
  font-weight: 800;
}

.calendarHero strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0;
}

.calendarSurface {
  margin: 10px -16px 0;
  padding: 18px 16px 20px;
  background: #fff;
}

.calendarMonthBar {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.calendarMonthLabel {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.calendarMonthLabel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.calendarModeTabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.calendarModeTabs button {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}

.calendarModeTabs button + button {
  border-left: 1px solid var(--line);
}

.calendarModeTabs button.active {
  background: #fff5f5;
  color: #e03131;
  box-shadow: inset 0 0 0 2px #ff5258;
}

.weekdays,
.calendarGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.weekdays {
  margin-bottom: 8px;
  color: #8b929d;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.calendarDay {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f7f7f8;
  color: var(--ink);
  cursor: pointer;
}

.calendarDay span {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.calendarDay small {
  min-width: 6px;
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 999px;
  background: #ff5258;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.calendarDay.outside {
  color: #c4c8cf;
  background: #fff;
}

.calendarDay.today {
  border-color: #ffb4b8;
}

.calendarDay.selected {
  border-color: #ff5258;
  background: #ff5258;
  color: #fff;
}

.calendarDay.selected small {
  background: #fff;
  color: transparent;
}

.calendarEvents {
  margin: 10px -16px 0;
  padding: 20px 16px 28px;
  background: #fff;
}

.calendarEventsTitle {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.calendarEventsTitle div {
  display: grid;
  gap: 4px;
}

.calendarEventsTitle strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.calendarEventsTitle span,
.calendarEventsTitle em {
  color: #767d88;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.calendarEventList {
  display: grid;
  gap: 8px;
}

.calendarBookmarkList {
  display: grid;
  gap: 10px;
}

.calendarEventItem {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 8px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.calendarEventItem strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendarEventItem > span:last-child {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.calendarEmpty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.compactAction {
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
}

.detailHeader {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 88px;
  gap: 8px;
  align-items: flex-start;
  margin: 0 -14px 14px;
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.sheetBack,
.detailHeaderSpacer {
  width: 44px;
  height: 44px;
}

.sheetBack {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.sheetBack svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detailTitleBlock {
  min-width: 0;
  text-align: center;
}

.detailHeader h2 {
  margin: 0 0 4px;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detailMetaRow {
  grid-column: 1 / -1;
  padding: 0 4px;
}

.detailMetaRow .eventMeta {
  justify-content: center;
}

.detailTitleBlock .subtle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detailHeaderActions {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 2px;
  min-width: 0;
}

.detailHeaderAction {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.detailHeaderAction svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detailHeaderAction.copied {
  color: var(--red);
}

.detailBookmark.saved {
  color: var(--red);
}

.detailBookmark.saved svg {
  fill: currentColor;
}

.sheetContent h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 0;
}

.scheduleList {
  display: grid;
  gap: 12px;
}

.detailBody {
  display: grid;
  gap: 14px;
}

.detailPoster {
  width: 100%;
  max-height: none;
  border-radius: 8px;
  object-fit: contain;
  background: #f1f5f9;
}

.detailBlock {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.sectionTitleRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.smallExternalLink {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.fullDescription {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.fullDescription p {
  margin: 0 0 8px;
}

.fullDescription p:last-child {
  margin-bottom: 0;
}

.fullDescription strong {
  display: inline-block;
  min-width: 42px;
  margin-right: 8px;
  color: var(--ink);
}

.detailInfoGroup {
  display: grid;
  gap: 7px;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.detailInfoGroup:last-child {
  margin-bottom: 0;
}

.detailInfoRow {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  margin: 0;
}

.detailInfoRow strong {
  min-width: 0;
  margin: 0;
}

.detailInfoRow span {
  min-width: 0;
}

.detailInfoNote {
  margin: 0;
  color: var(--muted);
}

.scheduleGroup {
  display: grid;
  gap: 8px;
}

.scheduleGroup h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
}

.scheduleRows {
  display: grid;
  gap: 6px;
}

.scheduleRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.scheduleRow div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.scheduleRow strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.15;
}

.scheduleRow span,
.scheduleRow p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.scheduleRow em {
  align-self: start;
  color: var(--ink);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.scheduleRow p {
  grid-column: 1 / -1;
}

.bookmarkItem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.calendarBookmarkItem {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 11px;
  width: 100%;
  background: #fff;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.calendarBookmarkItem img {
  width: 58px;
  height: 70px;
  border-radius: 7px;
  object-fit: cover;
  background: #eef2f7;
}

.bookmarkItem div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.bookmarkItem strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bookmarkItem span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.bookmarkRemove {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--red);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.scheduleItem {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.scheduleTitle {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-weight: 800;
}

.externalLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.empty {
  padding: 36px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}
