@charset "utf-8";
/**
 * WeirdReports 공통 셸 — 탑바·좌측 드로어 설정·메인 3열
 */

/* —— 좌측 드로어 하단 설정 —— */
.wr-shell-settings {
  border-top: 1px solid var(--border-color);
  padding: 10px 12px 8px;
  background: var(--bg-secondary);
}

.wr-shell-settings__plan {
  margin: 0 0 10px;
}

.wr-shell-settings__plan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
}

.wr-shell-settings__plan-btn:hover {
  border-color: var(--theme-green, var(--color-blue));
  color: var(--theme-green-deep, var(--color-blue));
}

.wr-shell-settings__plan-ico {
  font-size: 11px;
  color: var(--theme-green, var(--color-blue));
  line-height: 1;
}

.wr-shell-settings__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.wr-shell-settings__label {
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.wr-shell-theme-seg {
  display: inline-flex;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.wr-shell-theme-seg button {
  border: 0;
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

.wr-shell-theme-seg button.is-active {
  background: var(--color-blue);
  color: var(--button-text);
}

.wr-shell-font-seg {
  display: inline-flex;
  gap: 4px;
}

.wr-shell-font-seg button {
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 4px;
  min-width: 36px;
  height: 32px;
  cursor: pointer;
  font-size: 13px;
}

.wr-shell-font-seg button.is-active {
  border-color: var(--theme-green);
  background: var(--bg-tertiary);
  font-weight: 700;
}

.wr-shell-settings__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.wr-shell-settings__links a {
  font-size: 12px;
  color: var(--link-color);
  text-decoration: none;
}

.wr-shell-settings__links a:hover {
  color: var(--link-hover);
}

/* —— 메인 3열 (권장안 C) —— */
.wr-shell-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

/* 하단 사이드 배너: 메인(.wr-shell-main)과 동일 가로 */
.wr-ads-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

.wr-ads-bottom .hdps-ads-site-row,
.wr-ads-bottom .hdps-ads-footer-strip {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.wr-shell-main__center,
.wr-shell-main__right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.wr-shell-panel {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.wr-shell-panel__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.wr-shell-panel__hd a {
  font-size: 12px;
  font-weight: 500;
  color: var(--link-color);
  text-decoration: none;
}

.wr-shell-panel__bd {
  padding: 12px;
}

.wr-shell-plus-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.wr-shell-plus-shortcuts a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  padding: 8px 4px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 11px;
  text-align: center;
  background: var(--bg-primary);
}

.wr-shell-plus-shortcuts a:hover {
  background: var(--bg-secondary);
  border-color: var(--theme-green);
}

.wr-shell-plus-shortcuts .wr-ico {
  font-size: 18px;
  line-height: 1;
}

/* 좌측 드로어 바로가기 — Plus 도구와 동일 그리드, 여백만 맞춤 */
#user_menu .user_menu_shortcuts {
  padding: 4px 10px 8px;
}

#user_menu .wr-shell-plus-shortcuts--drawer {
  grid-template-columns: repeat(3, 1fr);
}

#user_menu .user_menu_manseryeok_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--color-blue, var(--theme-green-deep, #5a6b4a));
  border-radius: 4px;
  background: var(--color-blue, var(--theme-green-deep, #5a6b4a));
  color: var(--button-text, #fff);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
}

#user_menu .user_menu_manseryeok_btn:hover {
  background: var(--theme-green-deep, #5a6b4a);
  border-color: var(--theme-green-deep, #5a6b4a);
  color: var(--button-text, #fff);
}

.wr-shell-cal-placeholder {
  text-align: center;
  padding: 16px 8px;
  color: var(--text-secondary);
  font-size: 13px;
}

.wr-shell-cal-placeholder a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  background: var(--color-blue);
  color: var(--button-text);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

/* —— 메인 미니 달력 —— */
.wr-main-cal__toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.wr-main-cal__title {
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: var(--text-primary);
}

.wr-main-cal__nav,
.wr-main-cal__today {
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  border-radius: 4px;
  height: 28px;
  padding: 0 8px;
  cursor: pointer;
  font-size: 12px;
}

.wr-main-cal__viewseg {
  display: inline-flex;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.wr-main-cal__viewseg button {
  border: 0;
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
}

.wr-main-cal__viewseg button.is-active {
  background: var(--color-blue);
  color: var(--button-text);
}

.wr-main-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
}

.wr-main-cal__weekdays .is-sun { color: var(--color-red); }
.wr-main-cal__weekdays .is-sat { color: #3a7ab8; }

.wr-main-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.wr-main-cal__day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 12px;
  background: var(--bg-secondary);
}

.wr-main-cal__day.is-muted {
  opacity: 0.35;
}

.wr-main-cal__day.is-today {
  outline: 2px solid var(--theme-green);
  background: var(--bg-primary);
  font-weight: 700;
}

.wr-main-cal__day.is-holiday .wr-main-cal__num,
.wr-main-cal__day.is-sun .wr-main-cal__num {
  color: var(--color-red);
}

.wr-main-cal__day.is-sat .wr-main-cal__num {
  color: #3a7ab8;
}

.wr-main-cal__dot {
  position: absolute;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-red);
}

.wr-main-cal__mark {
  position: absolute;
  top: 1px;
  right: 2px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  color: #e67e22;
  font-size: 10px;
  line-height: 1;
  pointer-events: none;
}

.wr-main-cal__mark .fa {
  font-size: 10px;
}

.wr-main-cal__foot {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
}

.wr-main-cal__foot a {
  color: var(--link-color);
  text-decoration: none;
}

.wr-main-cal__grid.is-week .wr-main-cal__day {
  min-height: 44px;
  font-size: 14px;
}

/* 주간: 세로 일별 2열 (좌 날짜 / 우 휴일·기념) */
.wr-main-cal.is-week-view .wr-main-cal__weekdays {
  display: none;
}

.wr-main-cal__grid.is-week {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wr-main-cal__row {
  display: grid;
  grid-template-columns: minmax(108px, 42%) 1fr;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-secondary);
  text-decoration: none;
  color: var(--text-primary);
  box-sizing: border-box;
}

.wr-main-cal__row:hover {
  border-color: var(--theme-green);
  background: var(--bg-primary);
}

.wr-main-cal__row.is-muted {
  opacity: 0.55;
}

.wr-main-cal__row.is-today {
  outline: 2px solid var(--theme-green);
  background: var(--bg-primary);
}

.wr-main-cal__row-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.wr-main-cal__line1,
.wr-main-cal__line2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  line-height: 1.25;
}

.wr-main-cal__wd {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.wr-main-cal__row.is-sun .wr-main-cal__wd,
.wr-main-cal__row.is-sun .wr-main-cal__solar,
.wr-main-cal__row.is-holiday .wr-main-cal__solar {
  color: var(--color-red);
}

.wr-main-cal__row.is-sat .wr-main-cal__wd,
.wr-main-cal__row.is-sat .wr-main-cal__solar {
  color: #3a7ab8;
}

.wr-main-cal__solar {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.wr-main-cal__lunar {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
}

.wr-main-cal__ganji {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.wr-main-cal__row-right {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-width: 0;
}

.wr-main-cal__tag {
  display: inline-block;
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wr-main-cal__tag.is-hol {
  border-color: color-mix(in srgb, var(--color-red) 35%, var(--border-color));
  color: var(--color-red);
}

.wr-main-cal__tag.is-term {
  border-color: color-mix(in srgb, var(--theme-green) 40%, var(--border-color));
  color: var(--theme-green);
}

.wr-main-cal__tag.is-memo {
  color: var(--text-primary);
  border-color: color-mix(in srgb, var(--theme-green) 25%, var(--border-color));
  background: color-mix(in srgb, var(--theme-green) 8%, var(--bg-primary));
}

.wr-main-cal__tag.is-event {
  color: var(--text-primary);
  border-left: 3px solid var(--theme-green);
}

.wr-main-cal__tag.is-empty {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  opacity: 0.45;
}

/* Plus 페이지 셸 톤 */
.wr-plus-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 10px 24px;
}

.wr-plus-page > h1,
.wr-tools-wrap > h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.wr-tools-lead {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 16px;
}

.wr-tools-cat {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 10px;
}

.wr-shell-new-embed #new_sch,
.wr-shell-new-embed .pg_wrap,
.wr-shell-new-embed .board_wrap > .pg_wrap {
  display: none !important;
}

.wr-shell-new-embed .board_wrap {
  margin: 0;
}

.wr-shell-new-embed .new_list {
  margin: 0;
  list-style: none;
  padding: 0;
}

.wr-shell-new-embed .new_list li {
  background: var(--bg-primary);
  border-bottom-color: var(--border-color);
}

.wr-shell-new-embed .new_tit {
  color: var(--text-primary);
}

.wr-shell-new-embed .content,
.wr-shell-new-embed .info,
.wr-shell-new-embed .info .name,
.wr-shell-new-embed .info .name a {
  color: var(--text-secondary);
}

.wr-shell-new-embed .new_board {
  background: var(--bg-tertiary);
  color: var(--theme-green-deep);
}

.wr-main-manseryeok .window-panel {
  border: 0;
  box-shadow: none;
  margin: 0;
}

.wr-main-manseryeok .window-panel-header {
  display: none;
}

.wr-main-manseryeok .window-panel-body {
  padding: 8px 10px 0;
}

.wr-main-manseryeok .panel-content {
  min-height: 0;
}

.wr-main-manseryeok .simple-form-action-row {
  margin-bottom: 0;
}

.wr-main-manseryeok__more {
  margin: 22px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.wr-main-manseryeok__more a {
  color: var(--link-color);
  text-decoration: none;
}

@media (max-width: 767px) {
  .wr-shell-main {
    grid-template-columns: 1fr;
  }

  .wr-shell-plus-shortcuts {
    grid-template-columns: repeat(4, 1fr);
  }
}

a:focus-visible,
button:focus-visible,
.wr-shell-theme-seg button:focus-visible,
.wr-shell-font-seg button:focus-visible,
.topbar-left-btn:focus-visible {
  outline: 2px solid var(--theme-green);
  outline-offset: 2px;
}

/* 탑바 홈·알림·Pro — 이모지+라벨 한 줄 유지 */
.topbar-nav-label {
  width: auto !important;
  min-width: 0;
  height: 35px;
  padding: 0 8px !important;
  border-radius: 18px !important;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap !important;
  flex-wrap: nowrap;
  gap: 3px;
  line-height: 1;
}

.topbar-nav-label .topbar-nav-ico,
.topbar-nav-label .topbar-nav-txt,
.topbar-nav-label .hd_nav_memo_ico,
.topbar-nav-label .hd_nav_memo_emoji {
  display: inline-block;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1;
}

.topbar-nav-label .topbar-nav-ico {
  font-size: 15px;
}

.topbar-nav-label .hd_nav_memo_emoji {
  font-size: 15px;
}

.topbar-nav-label .topbar-nav-txt {
  font-size: 13px;
  font-weight: 700;
}

.topbar-nav-label.is-active {
  background: var(--bg-tertiary);
  color: var(--theme-green-deep);
  box-shadow: inset 0 -2px 0 var(--theme-green);
}

.topbar-nav-label:hover {
  background: var(--bg-secondary);
}

/* 알림 아이콘(우측) — 검색과 동일 톤 */
.topbar-right .topbar-memo-btn .hd_nav_memo_ico .fa-solid,
.topbar-right .topbar-memo-btn .hd_nav_memo_ico .fa {
  font-size: 15px;
  line-height: 1;
  color: inherit;
}

/* 알림 뱃지 위치 */
.topbar-memo-btn .hd_nav_memo_no_read,
.topbar-nav-label.topbar-memo-btn .hd_nav_memo_no_read {
  right: -2px;
  bottom: 0;
}

/* 탑바 검색 드롭다운 */
.wr-topbar-search {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.wr-topbar-search__toggle {
  color: var(--text-primary);
}

.wr-topbar-search__toggle .fa {
  color: inherit;
  font-size: 15px;
  line-height: 1;
}

.wr-topbar-search__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 200;
  width: min(320px, calc(100vw - 24px));
  padding: 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.wr-topbar-search__panel[hidden] {
  display: none !important;
}

.wr-topbar-search__form {
  position: relative;
  display: block;
  margin: 0;
}

.wr-topbar-search__input {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  padding: 0 72px 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-tertiary, var(--input-bg));
  color: var(--text-primary);
  font-size: 14px;
}

.wr-topbar-search__input:focus {
  outline: 2px solid var(--theme-green);
  outline-offset: 1px;
}

.wr-topbar-search__submit {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 52px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  background: var(--color-blue, var(--button-bg));
  color: var(--button-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* 검색 패널 — 표준 만세력 폼 (메인 우측 위젯과 동일 패턴) */
.wr-topbar-search__manseryeok {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  text-align: left;
}

.wr-topbar-search__manseryeok .window-panel {
  border: 0;
  box-shadow: none;
  margin: 0;
  background: transparent;
}

.wr-topbar-search__manseryeok .window-panel-header {
  display: none;
}

.wr-topbar-search__manseryeok .window-panel-body {
  padding: 0;
}

.wr-topbar-search__manseryeok .panel-content {
  min-height: 0;
}

.wr-topbar-search__manseryeok .saju-input-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.wr-topbar-search__manseryeok .saju-input-group {
  margin: 0;
}

.wr-topbar-search__manseryeok .saju-input-label {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  color: var(--text-secondary);
}

.wr-topbar-search__manseryeok .saju-input-select {
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-tertiary, var(--input-bg));
  color: var(--text-primary);
  font-size: 13px;
}

.wr-topbar-search__manseryeok .saju-radio-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 8px;
}

.wr-topbar-search__manseryeok .saju-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  font-size: 12px;
  color: var(--text-primary);
  cursor: pointer;
}

.wr-topbar-search__manseryeok .saju-leapmonth-select {
  height: 28px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-tertiary, var(--input-bg));
  color: var(--text-primary);
  font-size: 12px;
}

.wr-topbar-search__manseryeok .simple-form-action-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 0;
}

.wr-topbar-search__manseryeok .simple-manseoryeop-btn {
  flex: 1;
  min-height: 40px;
  border: 1px solid var(--color-blue, var(--theme-green-deep, #5a6b4a)) !important;
  border-radius: 4px;
  background: var(--color-blue, var(--theme-green-deep, #5a6b4a)) !important;
  color: var(--button-text, #fff) !important;
  font-weight: 700;
  cursor: pointer;
}

.wr-topbar-search__manseryeok-more {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.wr-topbar-search__manseryeok-more a {
  color: var(--link-color, var(--color-blue, #5a6b4a));
  text-decoration: underline;
}
