@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__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__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);
}

.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__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;
}

/* Plus 페이지 셸 톤 */
.wr-plus-page {
  max-width: 960px;
  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: 2px solid var(--theme-green);
}

.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-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__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 44px 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;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: var(--color-blue, var(--button-bg));
  color: var(--button-text);
  cursor: pointer;
  font-size: 14px;
}
