/* 메인 페이지 모바일 전용 분리 스타일 */

@media (max-width: 720px) {
  body.home-page {
    --home-header-offset: 42px;
    --home-surface: #131c2c;
    --home-surface-soft: #182235;
    --home-border: var(--fdc-border-panel, var(--fdc-color-border, #3b4d68));
    --home-border-strong: var(--fdc-border-panel-strong, var(--fdc-color-border-strong, #4b6282));
    --home-text: var(--fdc-color-text-main, #e5edf8);
    --home-text-sub: #b6c2d1;
    --home-text-soft: #8c9aae;
    --home-calendar-heading-color: var(--fdc-color-text-main, #e5edf8);
    --home-primary-soft: rgba(37, 99, 235, 0.2);
    --home-glass-calendar-bg: linear-gradient(180deg, rgba(14, 21, 36, 0.88), rgba(10, 16, 28, 0.82));
    --home-glass-calendar-border: rgba(88, 109, 142, 0.62);
    --home-tcg-panel-bg:
      linear-gradient(145deg, rgba(17, 31, 66, 0.94), rgba(23, 24, 58, 0.92) 54%, rgba(41, 28, 78, 0.9));
    --home-tcg-panel-border:
      linear-gradient(135deg, rgba(98, 178, 255, 0.56), rgba(160, 130, 255, 0.46), rgba(251, 202, 106, 0.24));
    --home-tcg-panel-border-strong:
      linear-gradient(135deg, rgba(122, 196, 255, 0.82), rgba(184, 148, 255, 0.64), rgba(251, 202, 106, 0.34));
    --home-tcg-panel-hover-bg:
      linear-gradient(145deg, rgba(20, 38, 78, 0.97), rgba(28, 29, 70, 0.94) 54%, rgba(50, 34, 92, 0.92));
    --home-calendar-panel-surface: linear-gradient(180deg, rgba(13, 19, 34, 0.74), rgba(18, 25, 44, 0.64));
    --home-main-panel-surface: var(--home-calendar-panel-surface);
    --home-main-panel-border: rgba(181, 205, 255, 0.2);
    --home-main-panel-border-strong: rgba(167, 196, 255, 0.42);
    --home-main-panel-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 18px 36px rgba(5, 10, 24, 0.22);
  }

  body.home-page footer.site-footer[data-shared-footer].is-compact .site-footer-inner {
    gap: 8px !important;
    padding: 10px 14px 12px !important;
  }

  body.home-page footer.site-footer[data-shared-footer].is-compact .foot {
    gap: 5px !important;
  }

  body.home-page footer.site-footer[data-shared-footer] .foot-legal-top {
    gap: 4px !important;
    padding-bottom: 8px !important;
  }

  body.home-page footer.site-footer[data-shared-footer] .foot-compact-grid {
    gap: 6px !important;
  }

  body.home-page footer.site-footer[data-shared-footer] .foot-compact-copy {
    gap: 2px !important;
  }

  body.home-page footer.site-footer[data-shared-footer] .foot-compact-links {
    gap: 3px 8px !important;
  }

  body.home-page footer.site-footer[data-shared-footer] .foot-compact-links a,
  body.home-page footer.site-footer[data-shared-footer] .foot-compact-links button {
    min-height: 44px !important;
    padding: 5px 0 !important;
    line-height: 1.25 !important;
  }

  body.home-page footer.site-footer[data-shared-footer] .foot-links-inline {
    gap: 3px 6px !important;
  }

  body.home-page .home-calendar-list > .home-section-loading {
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
  }

  body.home-page .home-calendar-list > .home-section-loading .fdc-loading-stack {
    justify-items: center;
    text-align: center;
    --fdc-loading-copy-color: rgba(244, 247, 255, 0.96);
    --fdc-loading-copy-strong: #ffffff;
  }

  .home-container {
    padding: 4px 12px 44px;
  }

  .home-hero-title {
    font-size: 2.5rem;
  }

  .home-hero-content {
    gap: 12px;
    padding-top: 0;
  }

  .home-workspace {
    gap: 12px;
  }

  .home-workspace--compact {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    align-content: start;
  }

  .home-hero-search {
    transform: translateY(-10px);
    margin-bottom: 0;
  }

  .home-logo-stage {
    display: none;
  }

  .home-logo-object {
    width: min(100%, 280px);
    padding: 26px 22px;
  }

  .home-search-form {
    display: block;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .home-search-input-wrap {
    border-color: rgba(78, 102, 136, 0.92);
    background: rgba(11, 18, 30, 0.84);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  }

  .home-search-input-icon {
    color: var(--home-primary-strong);
  }

  .home-search-input::placeholder {
    color: rgba(255, 255, 255, 0.9);
  }

  .home-search-submit {
    min-width: 44px;
    width: auto;
    padding: 0 14px;
  }

  .home-stage-side,
  .home-stage-side--right,
  .home-today-rail,
  .home-calendar-list,
  .home-today-rail-panel {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }

  .home-today-rail-panel {
    gap: 14px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.home-page .home-calendar-rail-list-section--mobile {
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 20px;
    background:
      var(--home-tcg-panel-bg) padding-box,
      var(--home-tcg-panel-border) border-box;
  }

  body.home-page .home-calendar-rail-list--mobile {
    gap: 10px;
  }

  body.home-page .home-calendar-mini {
    border-color: var(--home-main-panel-border);
    background: var(--home-main-panel-surface);
    box-shadow: var(--home-main-panel-shadow);
    backdrop-filter: blur(24px) saturate(1.08);
    -webkit-backdrop-filter: blur(24px) saturate(1.08);
  }

  body.home-page .home-calendar-mini-head {
    align-items: center;
  }

  body.home-page .home-calendar-mini-month,
  body.home-page .home-calendar-rail-list-title,
  body.home-page .home-calendar-rail-title,
  body.home-page .home-calendar-mini-open,
  body.home-page .home-calendar-mini-weekday {
    color: rgba(244, 247, 255, 0.96);
  }

  body.home-page .home-calendar-mini-open {
    width: 36px;
    height: 36px;
  }

  body.home-page .home-calendar-rail-list {
    gap: 10px;
  }

  body.home-page .home-calendar-rail-item {
    padding: 12px;
    border-radius: 14px;
    border-color: var(--home-main-panel-border);
    background: var(--home-main-panel-surface);
    box-shadow: var(--home-main-panel-shadow);
  }

  body.home-page .home-calendar-rail-item .calendar-event-time-primary,
  body.home-page .home-calendar-rail-item .calendar-event-time-secondary,
  body.home-page .home-calendar-rail-item .calendar-event-title,
  body.home-page .home-calendar-rail-item .calendar-event-meta,
  body.home-page .home-calendar-rail-item .calendar-event-shop-name-text {
    color: rgba(244, 247, 255, 0.96);
  }

  body.home-page .home-calendar-rail-item .calendar-event-meta {
    color: rgba(214, 224, 241, 0.82);
  }

  body.home-page .home-calendar-rail-empty.fdc-empty-state {
    border-color: var(--home-main-panel-border);
    background: var(--home-main-panel-surface);
    box-shadow: var(--home-main-panel-shadow);
  }

  .home-shortcut-card,
  .home-db-card {
    width: 100%;
    min-height: 112px;
    padding: 16px;
    border-radius: 16px;
  }

  .home-shortcut-card,
  .home-db-card,
  .home-db-shelf-section,
  .home-db-shelf-track,
  .home-db-shelf-track--single,
  .home-db-card--feature {
    width: 100%;
    justify-self: stretch;
  }

  .home-workspace--compact > .home-shortcut-card,
  .home-workspace--compact > .home-shortcut-card--manage {
    width: 100%;
  }

  body.home-page .home-shortcut-card,
  body.home-page .home-db-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: 12px;
    text-align: left;
    border-color: var(--home-main-panel-border);
    background: var(--home-main-panel-surface);
    box-shadow: var(--home-main-panel-shadow);
    backdrop-filter: blur(24px) saturate(1.08);
    -webkit-backdrop-filter: blur(24px) saturate(1.08);
  }

  body.home-page .home-shortcut-title,
  body.home-page .home-db-card-title {
    color: rgba(248, 250, 255, 0.98);
  }

  body.home-page .home-shortcut-copy,
  body.home-page .home-db-card-body {
    color: rgba(220, 229, 241, 0.78);
  }

  .home-shortcut-head,
  .home-db-card-head {
    width: 40px;
    min-width: 40px;
    justify-content: flex-start;
    align-self: center;
  }

  .home-shortcut-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .home-shortcut-icon .material-symbols-outlined {
    display: block;
    font-size: 21px;
    transform: translateY(1px);
  }

  .home-db-card-icon {
    width: 40px;
    height: 40px;
  }

  .home-shortcut-copy-block,
  .home-db-card-copy,
  .home-shortcut-card--manage .home-shortcut-copy-block {
    gap: 4px;
    justify-items: start;
    align-content: center;
    max-width: none;
    text-align: left;
  }

  .home-shortcut-card--manage,
  .home-shortcut-card--manage .home-shortcut-head {
    align-items: center;
    justify-content: flex-start;
  }

  .home-stage-label--workspace {
    margin-top: 0;
    margin-bottom: 2px;
    font-size: 0.9rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
  }

  body.home-page .home-calendar-mini-day {
    border: 1px solid rgba(112, 136, 176, 0.5);
    border-radius: 10px;
    background: color-mix(in srgb, var(--fdc-color-surface, #111827) 88%, rgba(255, 255, 255, 0.12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: rgba(240, 244, 255, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.home-page .home-calendar-mini-day.is-selected {
    background: rgba(30, 41, 59, 0.92);
    border-color: rgba(96, 165, 250, 0.72);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
    color: #ffffff;
  }

  body.home-page .home-calendar-mini-weekday.is-sunday,
  body.home-page .home-calendar-mini-day.is-sunday {
    color: #f87171;
  }

  body.home-page .home-calendar-mini-weekday.is-saturday,
  body.home-page .home-calendar-mini-day.is-saturday {
    color: #93c5fd;
  }
}

@media (max-width: 560px) {
  .home-hero-search {
    transform: translateY(-10px);
    margin-bottom: 0;
  }

  .home-search-input {
    min-height: 52px;
    padding: 0 88px 0 50px;
    font-size: 0.94rem;
    border-radius: 16px;
  }

  .home-search-input-icon {
    left: 18px;
    font-size: 22px;
  }

  .home-search-input-wrap {
    border-radius: 16px;
  }

  .home-search-submit {
    top: 4px;
    right: 4px;
    min-width: 56px;
    min-height: 44px;
    width: auto;
    padding: 0 12px;
    border-radius: 12px;
  }

  .home-search-submit-label {
    display: inline-flex;
  }

  .home-search-submit-icon {
    display: none;
  }

  .home-calendar-mini-grid {
    gap: 4px;
  }

  .home-calendar-mini-weekday,
  .home-calendar-mini-day {
    font-size: 0.76rem;
  }

  .home-calendar-mini-day {
    aspect-ratio: 1 / 1;
    min-height: 40px;
  }

  .home-hero-title {
    font-size: 2.16rem;
  }

  .home-logo-backdrop {
    width: 100%;
  }

  .home-logo-shadow {
    width: 180px;
    transform: translateY(138px);
  }

  .home-shortcut-card,
  .home-db-card {
    min-height: 108px;
    padding: 15px 14px;
  }

  .home-shortcut-title,
  .home-db-card-title {
    font-size: 1rem;
  }

  .home-shortcut-copy,
  .home-db-card-body {
    max-width: none;
    font-size: 0.82rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-copy-desktop {
    display: none;
  }

  .home-copy-mobile {
    display: inline;
  }

}
