:root {
  --planner-max-width: 1440px;
  --planner-shell-padding: clamp(10px, 2.2vw, 24px);
  --planner-surface: #ffffff;
  --planner-bg: #f4f6fb;
  --planner-border: #e2e8f0;
  --planner-radius: 24px;
  --planner-shadow: 0 22px 46px rgba(15, 23, 42, 0.08);
  --text-primary: #1f2937;
  --text-muted: #6b7280;
  --accent: #4f46e5;
  --accent-light: #eef2ff;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --action-shadow: 0 12px 25px rgba(79, 70, 229, 0.2);
  --planner-meta-font-size: 1rem;
  --planner-meta-height: 24px;
}

body {
  font-family: var(--font-family-sans, 'Pretendard Variable', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  background: var(--planner-bg);
  color: var(--text-primary);
}

.planner-wrapper {
  width: 100%;
  max-width: var(--planner-max-width);
  margin: 0 auto;
  padding: clamp(10px, 2.6vh, 18px) var(--planner-shell-padding) clamp(20px, 5vh, 32px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vw, 20px);
  min-height: 100vh;
}

.planner-wrapper.sidebar-open {
  margin-left: 0;
  padding-left: 0;
}

.planner-shell {
  position: relative;
  display: grid;
  grid-template-columns: clamp(240px, 19vw, 280px) 1fr;
  gap: clamp(12px, 1.6vw, 18px);
  align-items: flex-start;
}

.planner-shell.sidebar-collapsed {
  grid-template-columns: 0 1fr;
}

.planner-shell.sidebar-open {
  grid-template-columns: clamp(240px, 19vw, 280px) 1fr;
}

.planner-sidebar {
  background: var(--planner-surface);
  border: 1px solid var(--planner-border);
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  padding: 18px 16px;
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: hidden;
  position: relative;
}

.planner-shell.sidebar-open .planner-sidebar {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.planner-shell.sidebar-collapsed .planner-sidebar {
  opacity: 0;
  transform: translateX(-16px);
  pointer-events: none;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-date__value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.sidebar-clock {
  display: flex;
  justify-content: center;
}

.sidebar-clock__ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid rgba(79, 70, 229, 0.25);
  background: rgba(79, 70, 229, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.08);
}

.clock-face {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
}

.clock-face--sidebar {
  width: 60px;
  height: 60px;
}

.clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 2px;
  transform-origin: 50% 100%;
  transform: translate(-50%, 0) rotate(0deg);
  border-radius: 999px;
  transition: transform 0.2s linear;
}

.clock-face--sidebar .clock-hand.hour {
  height: 18px;
}

.clock-face--sidebar .clock-hand.minute {
  height: 26px;
}

.clock-face--sidebar .clock-hand.second {
  height: 28px;
}

.clock-face--sidebar .clock-center {
  width: 6px;
  height: 6px;
}

.clock-hand.hour {
  width: 3px;
  background: rgba(79, 70, 229, 0.8);
}

.clock-hand.minute {
  background: rgba(79, 70, 229, 0.65);
}

.clock-hand.second {
  width: 1.5px;
  background: #f97316;
  transition: none;
}

.clock-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  transform: translate(-50%, -50%);
}

.sidebar-calendar {
  width: 100%;
}

.sidebar-calendar__input {
  opacity: 0;
  height: 0;
  padding: 0;
  border: none;
}

.sidebar-memo {
  border: 1px solid var(--planner-border);
  border-radius: 12px;
  padding: 10px;
  font-size: 0.85rem;
  min-height: 120px;
  resize: vertical;
}

.sidebar-memo:focus {
  outline: 2px solid rgba(79, 70, 229, 0.3);
  border-color: rgba(79, 70, 229, 0.4);
}

.sidebar-memo__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sidebar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.sidebar-btn:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

.sidebar-btn--ghost {
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent);
}

.sidebar-btn--ghost:hover {
  background: rgba(79, 70, 229, 0.18);
}

.sidebar-toggle {
  position: absolute;
  top: 14px;
  left: 8px;
  transform: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: var(--planner-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  color: var(--text-primary);
  transition: left 0.3s ease, background 0.2s ease;
  z-index: 10;
}

.sidebar-toggle:hover {
  background: rgba(79, 70, 229, 0.08);
}

.sidebar-toggle .material-icons {
  transition: transform 0.3s ease;
}

.planner-shell.sidebar-open .sidebar-toggle .material-icons {
  transform: rotate(180deg);
}

.sidebar-section--feedback .sidebar-btn {
  width: 100%;
}

.sidebar-section--calendar .flatpickr-calendar {
  width: 100%;
  max-width: 100%;
  box-shadow: none;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  margin: 0;
  font-size: clamp(0.7rem, 2.4vw, 0.85rem);
  padding: 8px 12px;
  box-sizing: border-box;
}

.sidebar-section--calendar .flatpickr-months,
.sidebar-section--calendar .flatpickr-weekdays,
.sidebar-section--calendar .flatpickr-days {
  width: 100%;
}

.sidebar-section--calendar .flatpickr-day.selected,
.sidebar-section--calendar .flatpickr-day.startRange,
.sidebar-section--calendar .flatpickr-day.endRange,
.sidebar-section--calendar .flatpickr-day.today {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.sidebar-section--calendar .flatpickr-weekday,
.sidebar-section--calendar .flatpickr-current-month {
  font-size: clamp(0.7rem, 2.6vw, 0.88rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.sidebar-section--calendar .flatpickr-calendar .flatpickr-prev-month,
.sidebar-section--calendar .flatpickr-calendar .flatpickr-next-month {
  top: 10px;
}

.sidebar-section--calendar .flatpickr-weekdays {
  text-align: center;
  margin-bottom: 4px;
}

.sidebar-section--calendar .flatpickr-weekdaycontainer {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
  justify-items: center;
  column-gap: 2px;
}

.sidebar-section--calendar .flatpickr-weekday {
  margin: 0;
  padding: 2px 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-section--calendar .flatpickr-days {
  overflow: visible;
}

.sidebar-section--calendar .dayContainer {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  justify-items: center;
  width: 100% !important;
  min-width: 0 !important;
  column-gap: 2px;
}

.sidebar-section--calendar .flatpickr-day {
  max-width: none;
  width: 100%;
  height: 28px;
  line-height: 28px;
  text-align: center;
  margin: 0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-section--memo,
.sidebar-section--feedback {
  gap: 10px;
}

.sidebar-memo__actions {
  justify-content: space-between;
  gap: 8px;
}

.sidebar-memo__actions .sidebar-btn {
  flex: 1 1 auto;
}

.sidebar-section--feedback .sidebar-btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1024px) {
  .planner-shell,
  .planner-shell.sidebar-open {
    grid-template-columns: 1fr;
  }

  .planner-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .planner-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    height: auto;
    max-height: calc(100vh - clamp(36px, 7vh, 64px));
    z-index: 20;
    transform: translateX(-110%);
    opacity: 0;
  }

  .planner-shell.sidebar-open .planner-sidebar {
    transform: translateX(0);
    opacity: 1;
  }

  .sidebar-toggle {
    top: 12px;
    left: 8px;
    transform: none;
  }

  .sidebar-clock__ring {
    width: 72px;
    height: 72px;
  }

  .clock-face--sidebar {
    width: 48px;
    height: 48px;
  }

  .sidebar-section--calendar .flatpickr-calendar {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .planner-wrapper {
    padding: clamp(8px, 2.8vw, 18px) clamp(12px, 4vw, 22px) clamp(28px, 8vh, 52px);
  }

  .sidebar-toggle {
    width: 32px;
    height: 32px;
    left: 8px;
    transform: none;
  }

  .sidebar-inner {
    gap: 16px;
  }

  .sidebar-section--calendar .flatpickr-calendar {
    width: 100%;
    font-size: clamp(0.65rem, 3.2vw, 0.78rem);
  }

  .sidebar-section--calendar .flatpickr-day {
    height: 26px;
    line-height: 26px;
  }

  .sidebar-memo {
    min-height: 100px;
  }
}

.planner-main {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
}

.planner-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.planner-headline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.planner-badge {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}

.planner-date {
  display: inline-flex;
  align-items: center;
  font-size: var(--planner-meta-font-size);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  height: var(--planner-meta-height);
  line-height: var(--planner-meta-height);
}

.planner-content {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}

.planner-primary {
  min-width: 0;
  width: 100%;
}

.focus-stack {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}

.focus-stack .panel {
  width: 100%;
}

#catSection.today-meta {
  display: none;
}

.today-meta__controls {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.5vw, 16px);
  flex: 1 1 50%;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.plan-board-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.plan-board__tabbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 8px;
  gap: 0;
  flex-wrap: nowrap;
}

.tab-separator {
  display: inline-flex;
  align-items: center;
  padding: 0 clamp(10px, 1.4vw, 16px);
  color: rgba(79, 70, 229, 0.65);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.plan-board__view {
  width: 100%;
}

.today-meta__tabs {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 18px);
  flex-wrap: nowrap;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}

.tab-item {
  background: none;
  border: none;
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, border-bottom 0.2s ease;
}

.tab-item:hover,
.tab-item:focus-visible {
  color: var(--accent);
  outline: none;
}

.tab-item.tab-active {
  color: var(--accent);
  border-bottom-color: #111827;
}

.today-meta__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: clamp(8px, 1vw, 16px);
  flex-shrink: 0;
  order: 5;
}

.today-meta__categories {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  padding: 2px 0;
  scroll-snap-type: none;
}

.today-meta__categories::-webkit-scrollbar {
  height: 6px;
}

.today-meta__categories::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}

.plan-board__categories {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.plan-board__categories .today-meta__categories {
  order: 1;
  flex: 1 1 auto;
  min-width: 0;
}

.plan-board__categories.plan-board__categories--overflow .today-meta__categories {
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 78%, rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 1) 78%, rgba(0, 0, 0, 0));
}

.plan-board__categories .today-meta__add {
  order: 2;
  flex: 0 0 auto;
}

.plan-board__categories .today-meta__filter {
  order: 3;
  flex: 0 0 auto;
}

.plan-category-expand-toggle {
  order: 4;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.plan-category-expand-toggle .material-icons {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.plan-category-expand-toggle:hover,
.plan-category-expand-toggle:focus-visible {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.3);
  color: var(--accent);
}

.plan-board__categories.plan-board__categories--expanded {
  gap: 10px;
}

.plan-board__categories.plan-board__categories--expanded .today-meta__categories {
  mask-image: none;
  -webkit-mask-image: none;
}

.plan-board__categories.plan-board__categories--expanded .plan-category-expand-toggle .material-icons {
  transform: rotate(180deg);
}

.plan-category-expandbar {
  order: 5;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: var(--planner-surface);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  padding: 12px;
  margin-top: 2px;
  display: block;
  animation: planCategoryExpand 0.2s ease;
}

.plan-category-expandbar__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.plan-category-expandbar__list .cat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--accent-soft);
}

.plan-category-expandbar__list .cat-name {
  max-width: none;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-primary);
  padding-right: 0;
}

.plan-category-expandbar__list .cat-edit-input {
  width: 100%;
  min-width: 0;
}

.plan-category-expandbar__list .btn-del-cat {
  position: static;
  width: 24px;
  height: 24px;
  opacity: 1;
  visibility: visible;
  margin-left: auto;
  background: transparent;
  border: none;
  box-shadow: none;
  color: rgba(100, 116, 139, 0.75);
}

.plan-category-expandbar__list .btn-del-cat .material-symbols-outlined {
  font-size: 16px;
}

.plan-category-expandbar__list .btn-del-cat:hover,
.plan-category-expandbar__list .btn-del-cat:focus-visible {
  color: #dc2626;
}

@keyframes planCategoryExpand {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-offset-bar {
  flex: 0 0 auto;
}

.review-offset-tabs {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 18px);
}

.review-offset-tabs .tab-item {
  font-size: 12px;
}

.review-offset-group {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
}

.tab-gear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
}

.tab-gear-btn .material-icons {
  font-size: 1.1rem;
}

.tab-gear-btn.tab-active,
.tab-gear-btn:hover,
.tab-gear-btn:focus-visible {
  color: var(--accent);
}

.mock-subtabs {
  flex: 0 0 auto;
}

.mock-subtabs__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 18px);
}

.mock-overview {
  display: flex;
  gap: 20px;
  width: 100%;
  align-items: stretch;
}

.mock-overview__panel {
  flex: 0 0 clamp(220px, 22%, 260px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid var(--planner-border);
  border-radius: 16px;
  padding: 16px;
  overflow-y: auto;
}

.mock-overview__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.mock-overview__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-overview__list button {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease;
}

.mock-overview__item-title {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.mock-overview__item-date {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mock-overview__list button:hover,
.mock-overview__list button:focus-visible {
  border-color: rgba(79, 70, 229, 0.4);
  background: rgba(238, 242, 255, 0.9);
  outline: none;
}

.mock-overview__list button.active {
  border-color: rgba(79, 70, 229, 0.6);
  background: rgba(224, 231, 255, 0.9);
  color: var(--accent);
}

.mock-overview__detail {
  flex: 1 1 auto;
  border: 1px solid var(--planner-border);
  border-radius: 16px;
  background: var(--planner-surface);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-overview__section-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.mock-overview__placeholder {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.mock-overview__review {
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: pre-wrap;
  line-height: 1.5;
}

.mock-overview__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.mock-overview__meta-item {
  background: rgba(248, 250, 252, 0.8);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.mock-overview__meta-item dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  color: var(--text-muted);
}

.mock-overview__meta-item dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

.mock-overview__groups {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.mock-overview__charts {
  margin-bottom: 16px;
}

.mock-overview__group,
.mock-subject-group {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  flex: 1 1 clamp(220px, 28%, 320px);
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-overview__group-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.mock-overview__group-meta {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
}

.mock-overview__subjects {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  table-layout: fixed;
}

.mock-overview__subjects th,
.mock-overview__subjects td {
  padding: 5px 8px;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  white-space: nowrap;
}

.mock-overview__subjects tr:last-child td {
  border-bottom: none;
}

.mock-overview__subjects th:first-child,
.mock-overview__subjects td:first-child {
  text-align: left;
}

.mock-overview__subjects th:not(:first-child),
.mock-overview__subjects td:not(:first-child) {
  text-align: center;
}

@media (max-width: 768px) {
  .mock-overview__groups {
    flex-direction: column;
  }

  .mock-overview__group {
    flex: 1 1 100%;
  }

  .mock-chart-content--split {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .mock-pie-chart-wrap {
    width: 130px;
    height: 130px;
  }

  .mock-pie-chart {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 1024px) {
  .mock-pie-tooltip {
    left: 50%;
    transform: translate(-50%, -110%);
    width: min(280px, 90vw);
  }
}

.mock-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 8px 0 12px;
}

.mock-chart-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.mock-chart-card--pie {
  position: relative;
}

.mock-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mock-chart-header h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mock-chart-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mock-chart-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-chart-content--split {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.mock-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  min-height: 150px;
  padding: 4px 0 8px;
  position: relative;
  width: 100%;
  overflow-x: auto;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
  scrollbar-width: thin;
}

.mock-bar-chart::-webkit-scrollbar {
  height: 6px;
}

.mock-bar-chart::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 999px;
}

.mock-bar-chart::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
}

.mock-bar-chart__bar {
  flex: 0 0 38px;
  min-width: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mock-bar-chart__bar-figure {
  width: 100%;
  min-height: 6px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.9), rgba(79, 70, 229, 0.8));
  transition: height 0.3s ease;
  position: relative;
}

.mock-bar-chart__bar-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  max-width: 54px;
  word-break: keep-all;
}

.mock-bar-chart__empty {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mock-pie-chart-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-pie-chart {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(var(--pie-gradient, rgba(209, 213, 219, 0.6) 0deg 360deg));
  position: relative;
}

.mock-pie-chart::after {
  content: '';
  position: absolute;
  inset: 32px;
  background: #fff;
  border-radius: 50%;
}

.mock-pie-total {
  position: absolute;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  line-height: 1.2;
}

.mock-pie-tooltip {
  position: absolute;
  top: 50%;
  left: -240px;
  transform: translateY(-50%);
  width: 210px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
  display: none;
  pointer-events: none;
  z-index: 10;
}

.mock-pie-tooltip[data-visible="true"] {
  display: block;
}

.mock-pie-tooltip__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.mock-pie-tooltip__title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.82rem;
}

.mock-pie-tooltip__value {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.mock-pie-tooltip__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-primary);
}

.mock-pie-tooltip__list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.mock-pie-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78rem;
}

.mock-pie-legend__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(248, 250, 252, 0.95);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  appearance: none;
  color: inherit;
  font: inherit;
}

.mock-pie-legend__item:hover,
.mock-pie-legend__item:focus-visible {
  border-color: rgba(79, 70, 229, 0.4);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.mock-pie-legend__swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: 0 0 auto;
}

.mock-pie-legend__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
}

.mock-pie-legend__label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.78rem;
}

.mock-pie-legend__bar-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.mock-pie-legend__bar-fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.3s ease;
  min-width: 4px;
}

.mock-pie-legend__value {
  margin-left: auto;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  white-space: nowrap;
}

.mock-pie-empty {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mock-overview__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.mock-overview__actions button {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.mock-overview__edit {
  background: var(--accent);
  color: #fff;
}

.mock-overview__edit:hover,
.mock-overview__edit:focus-visible {
  background: #4338ca;
}

.mock-overview__refresh {
  background: rgba(248, 250, 252, 0.9);
  border-color: rgba(99, 102, 241, 0.2);
  color: var(--accent);
}

.mock-overview__refresh:hover,
.mock-overview__refresh:focus-visible {
  background: rgba(224, 231, 255, 0.7);
}

.mock-overview__delete {
  background: rgba(254, 226, 226, 0.9);
  border-color: rgba(248, 113, 113, 0.4);
  color: rgba(220, 38, 38, 0.95);
}

.mock-overview__delete:hover,
.mock-overview__delete:focus-visible {
  background: rgba(254, 202, 202, 0.95);
  border-color: rgba(239, 68, 68, 0.6);
}

.mock-overview__empty-list {
  font-size: 0.9rem;
  color: var(--text-muted);
}


.today-meta__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px dashed rgba(79, 70, 229, 0.45);
  color: var(--accent);
  background: rgba(79, 70, 229, 0.05);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: background 0.2s ease;
  align-self: center;
}

.today-meta__add:hover {
  background: rgba(79, 70, 229, 0.12);
}

.add-plan-btn[disabled] {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.today-meta__filter {
  flex-shrink: 0;
  align-self: center;
}

.today-meta__filter .material-icons {
  font-size: 1.2rem;
}

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

.review-plan-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1 1 auto;
}

.planner-wrapper .hidden {
  display: none !important;
}

.mock-board {
  width: 90%;
  margin: 0 auto;
  background: var(--planner-surface);
  border-radius: var(--planner-radius);
  box-shadow: var(--planner-shadow);
  padding: clamp(20px, 3vw, 32px);
}

.mock-board__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mock-board__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.mock-board__actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.mock-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.mock-summary__card {
  border: 1px solid var(--planner-border);
  border-radius: 16px;
  padding: 16px;
  background: rgba(248, 250, 252, 0.9);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-summary__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  
}

.mock-summary__value {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent);
}

.mock-summary__diff {
  font-size: 0.85rem;
  color: rgba(22, 163, 74, 0.8);
}

.mock-summary__diff:empty {
  display: none;
}

.mock-exam-card--history {
  gap: clamp(14px, 1.8vw, 20px);
}

.mock-history-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mock-save-btn--ghost {
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent);
  border: 1px solid rgba(79, 70, 229, 0.24);
}

.mock-save-btn--ghost:hover {
  background: rgba(79, 70, 229, 0.16);
}

.mock-save-btn--ghost[disabled],
.mock-save-btn--ghost[aria-disabled='true'] {
  opacity: 0.6;
  cursor: not-allowed;
}

.mock-score-table {
  margin-top: 22px;
  border-radius: 18px;
  border: 1px solid var(--planner-border);
  overflow: auto;
  background: #fff;
  max-height: 320px;
  box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.12);
}

.mock-score-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 100%;
}

.mock-score-table thead {
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent);
  font-weight: 600;
}

.mock-score-table th,
.mock-score-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--planner-border);
  font-size: 0.9rem;
}

.mock-score-table tbody tr:hover {
  background: rgba(248, 250, 252, 0.8);
}

.mock-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.mock-actions button {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.mock-actions .mock-add {
  background: var(--accent);
  color: #fff;
}

.mock-actions .mock-add:hover {
  background: #4338ca;
}

.mock-actions .mock-export {
  background: #e5e7eb;
  color: #374151;
}

.mock-actions .mock-export:hover {
  background: #d1d5db;
}

.coming-soon {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
}

.mock-exam-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(12px, 2vw, 18px);
}

.mock-exam-card {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(18px, 2.4vw, 24px);
  border-radius: 18px;
  border: 1px solid var(--planner-border);
  background: #fff;
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.07);
}

.mock-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mock-card-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mock-card-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.mock-form-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mock-form-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mock-form-section--primary {
  gap: 14px;
}

.mock-form-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  row-gap: 10px;
}

.mock-form-bar__right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mock-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.mock-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: flex-end;
}

.mock-form-field--exam {
  flex: 1 1 280px;
}

.mock-form-field--date {
  flex: 0 0 200px;
}

.mock-form-field--review {
  flex: 1 1 280px;
}

.mock-form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mock-input {
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}

.mock-input:focus {
  outline: none;
  border-color: rgba(79, 70, 229, 0.55);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.12);
}

.mock-total-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 14px;
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid rgba(79, 70, 229, 0.14);
  color: var(--accent);
  font-weight: 700;
}

.mock-total-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mock-total-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.mock-total-value,
.mock-total-max {
  min-width: 28px;
  text-align: right;
}

.mock-total-divider,
.mock-total-unit {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.mock-save-btn--header {
  padding: 12px 20px;
}

.mock-form-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mock-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.mock-subject-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}


.mock-subject-group {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 clamp(220px, 28%, 320px);
  min-width: 200px;
}


.mock-subject-group .mock-overview__subjects thead th:last-child,
.mock-subject-group .mock-overview__subjects td:last-child {
  width: 160px;
  text-align: center;
}

.mock-subject-group .mock-overview__subjects td {
  vertical-align: middle;
}

.mock-subject-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.mock-subject-max {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mock-input-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: clamp(64px, 6vw, 84px);
  padding: 0 0 2px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  min-height: 1.4rem;
  transition: border-bottom-color 0.2s ease;
}

.mock-input-wrap:focus-within {
  border-bottom-color: rgba(79, 70, 229, 0.7);
}

.mock-input-wrap--wide {
  width: clamp(80px, 8vw, 110px);
}

.mock-subject-row--total-time td {
  background: rgba(79, 70, 229, 0.06);
}

.mock-subject-name--total-time {
  color: var(--accent);
  font-weight: 600;
}

.mock-subject-group .mock-overview__subjects tbody tr:hover {
  background: rgba(224, 231, 255, 0.25);
}

@media (max-width: 640px) {
  .mock-subject-group .mock-overview__subjects thead {
    display: none;
  }

  .mock-subject-group .mock-overview__subjects,
  .mock-subject-group .mock-overview__subjects tbody,
  .mock-subject-group .mock-overview__subjects tr,
  .mock-subject-group .mock-overview__subjects td {
    display: block;
    width: 100%;
  }

  .mock-subject-group .mock-overview__subjects td {
    padding: 10px 0;
  }

  .mock-subject-group .mock-overview__subjects td:last-child {
    display: flex;
    justify-content: flex-start;
    width: 100%;
  }
}


.mock-input-field::placeholder {
  color: rgba(148, 163, 184, 0.7);
  opacity: 1;
}

.mock-input-field:focus {
  outline: none;
  color: var(--accent);
}

.mock-input-unit {
  display: inline-flex;
  align-items: flex-end;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(71, 85, 105, 0.92);
  white-space: nowrap;
}
.mock-input-field::-webkit-outer-spin-button,
.mock-input-field::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.mock-input-field[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.mock-input--textarea {
  min-height: 120px;
  resize: vertical;
}

.mock-input--inline-textarea {
  min-height: 48px;
  padding-top: 12px;
  resize: vertical;
}

.mock-form-helper,
.mock-form-error {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.mock-form-error {
  color: #ef4444;
}

.mock-save-btn {
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mock-save-btn:hover {
  background: #4338ca;
}

.mock-save-btn:active {
  transform: translateY(1px);
}

@media (max-width: 960px) {
  .mock-form-bar__right {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }

  .mock-form-row {
    flex-direction: column;
  }

  .mock-form-field--exam,
  .mock-form-field--date,
  .mock-form-field--review {
    flex: 1 1 100%;
  }

  .mock-total-summary {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .mock-total-pair {
    width: 100%;
    justify-content: flex-start;
  }

  .mock-history-actions {
    justify-content: flex-start;
  }

  .mock-score-table {
    max-height: none;
  }

  #mockBoard.mock-exam-board {
    gap: 14px;
  }

  #mockBoard.mock-exam-board > #mockRecordView {
    gap: 14px;
  }

  .mock-exam-card {
    padding: 16px;
    gap: 16px;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
  }

  .mock-summary {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }
}

.cat-item {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: transparent;
  min-width: 0;
  scroll-snap-align: start;
}

.cat-item .cat-edit-input {
  display: none;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 4px 8px;
  font-size: 0.95rem;
  min-width: 140px;
}

.cat-name {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--planner-meta-height);
  padding-right: 18px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  color: var(--text-muted);
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-item.editing .cat-name {
  display: none;
}

.cat-item.editing .cat-edit-input {
  display: inline-block;
}

.btn-del-cat {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #fff;
  color: rgba(100, 116, 139, 0.7);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.btn-del-cat .material-symbols-outlined {
  font-size: 14px;
  line-height: 1;
}

.cat-item:hover .btn-del-cat,
.btn-del-cat:focus-visible {
  opacity: 1;
  visibility: visible;
  color: #dc2626;
}

.cat-item.editing .btn-del-cat {
  display: none;
}

#catSection .cat-item.cat-selected .cat-name {
  color: var(--accent);
}

.btn-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(79, 70, 229, 0.25);
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-circle:hover,
.btn-circle:focus-visible {
  background: rgba(79, 70, 229, 0.18);
  transform: translateY(-1px);
}

.btn-circle--brand {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--action-shadow);
}

.btn-circle--brand:hover,
.btn-circle--brand:focus-visible {
  background: #4338ca;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.today-board {
  background: var(--planner-surface);
  border-radius: var(--planner-radius);
  box-shadow: var(--planner-shadow);
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 460px;
  width: 100%;
  margin: 0;
}

.today-board__head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.today-board__head-actions {
  display: inline-flex;
  gap: 8px;
}

.today-board__title {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 700;
  margin: 0;
}

.today-board__caption {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.today-plan-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: minmax(220px, auto);
  gap: 18px;
  padding: 8px 0 12px;
}

.today-plan-board::-webkit-scrollbar {
  display: none;
}

.today-plan-board > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 12px;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 16px;
}

.today-plan-board > div {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 20px;
  border: 1px solid var(--planner-border);
  background: var(--planner-surface);
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.07);
  padding: 18px 20px 20px;
  position: relative;
}

#mockBoard.mock-exam-board {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vw, 24px);
  padding: 0;
}

#mockBoard.mock-exam-board > #mockRecordView {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.review-scroll {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.review-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.review-carousel::-webkit-scrollbar {
  height: 8px;
}

.review-carousel::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.16);
  border-radius: 999px;
}




.today-plan-board > div > .flex {
  margin-bottom: 8px;
}

.plan-card-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-bottom: 0;
}

.plan-card-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.plan-card-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--planner-border);
  margin: 0;
}

.today-plan-board .space-y-3 {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.today-plan-board .space-y-3::-webkit-scrollbar {
  width: 0;
}

.today-plan-board .space-y-3::-webkit-scrollbar-thumb {
  background: transparent;
}

.plan-item {
  border: none;
  border-bottom: 1px solid var(--planner-border);
  border-radius: 0;
  background: transparent;
  padding: 0;
  transition: none;
  cursor: default;
  margin: 0;
}

.plan-item.open {
  border-bottom-color: rgba(79, 70, 229, 0.4);
  box-shadow: none;
}

.plan-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  min-height: 0;
}

.plan-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.plan-status-input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--planner-border);
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.plan-status-input:focus-visible {
  outline: 2px solid rgba(79, 70, 229, 0.35);
  outline-offset: 2px;
}

.plan-status-input:checked {
  border-color: var(--accent);
  background: radial-gradient(circle, var(--accent) 0 55%, transparent 60% 100%);
}

.plan-toggle {
  flex: 1 1 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  min-width: 0;
  min-height: 0;
}

.plan-title {
  font-weight: 600;
  font-size: 10px;
  line-height: 1.1;
  color: var(--text-primary);
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-toggle-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.plan-toggle-actions .material-icons {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.expand-icon {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.plan-item.open .expand-icon {
  transform: rotate(180deg);
}

.plan-body {
  margin: 0;
  padding: 4px 0 6px;
  border-top: 1px solid var(--planner-border);
  display: none;
}

.plan-item:last-child {
  border-bottom: none;
}

.plan-item + .plan-item {
  margin-top: 0;
}

.plan-item.open .plan-body {
  display: block;
}

.plan-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-field span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.plan-field input,
.plan-field textarea {
  border: 1px solid var(--planner-border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.9rem;
  color: var(--text-primary);
  background: #fff;
}

.plan-field textarea {
  min-height: 140px;
  resize: vertical;
}

.plan-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.plan-delete {
  border: none;
  background: none;
  color: #dc2626;
  font-size: 0.85rem;
  cursor: pointer;
}

.plan-delete:hover {
  text-decoration: underline;
}

.plan-action-right {
  display: inline-flex;
  gap: 8px;
}

.plan-cancel,
.plan-save {
  border: none;
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.plan-cancel {
  background: #e5e7eb;
  color: #374151;
}

.plan-cancel:hover {
  background: #d1d5db;
}

.plan-save {
  background: var(--accent);
  color: #fff;
}

.plan-save:hover {
  background: #4338ca;
}

.plan-item.done .plan-title {
  text-decoration: line-through;
  color: rgba(55, 65, 81, 0.6);
}

.plan-item--review .plan-header {
  align-items: center;
  gap: 12px;
}

.plan-item--review .plan-status {
  margin-top: 0;
}

.plan-item--review .plan-body {
  padding-top: 8px;
}

.review-plan-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-plan-body .review-plan-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.review-plan-body .review-plan-detail--empty {
  color: rgba(107, 114, 128, 0.9);
}

.plan-priority {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.14);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.plan-item[data-status="done"],
.plan-item.done {
  opacity: 0.85;
}

.plan-item[data-status="done"] .plan-title,
.plan-item.done .plan-title {
  text-decoration: line-through;
  color: rgba(55, 65, 81, 0.6);
}

.add-plan-btn {
  border: 1px dashed rgba(79, 70, 229, 0.45) !important;
  background: rgba(79, 70, 229, 0.08) !important;
  color: var(--accent) !important;
  font-weight: 600;
  font-size: 10px !important;
  justify-content: center;
  display: flex;
  gap: 8px;
  align-items: center;
  border-radius: 12px !important;
  padding: 6px 12px !important;
  transition: background 0.2s ease;
}

.add-plan-btn:hover {
  background: rgba(79, 70, 229, 0.16) !important;
}

.panel {
  background: var(--planner-surface);
  border-radius: var(--planner-radius);
  box-shadow: var(--planner-shadow);
  padding: 22px clamp(18px, 2.6vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.panel__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.panel__title .material-icons {
  font-size: 1.4rem;
}

.panel__body,
.panel__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: clamp(360px, 52vh, 560px);
  overflow-y: auto;
  padding-right: 4px;
}

.memo-list::-webkit-scrollbar {
  width: 6px;
}

.memo-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}

.panel__nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel__month {
  font-weight: 600;
  color: var(--text-primary);
}



.memo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-primary);
  max-height: clamp(180px, 28vh, 320px);
  overflow-y: auto;
}

.memo-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.btn-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
}

.btn-link--muted {
  color: var(--text-muted);
}

.feedback-textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--action-shadow);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #4338ca;
  transform: translateY(-1px);
}

.panel__helper {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.mood-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mood-icon-wrapper {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(248, 250, 252, 0.9);
  transition: background 0.2s ease, transform 0.2s ease, border 0.2s ease;
}

.mood-icon-wrapper:hover {
  transform: translateY(-1px);
  background: rgba(79, 70, 229, 0.08);
}

.mood-icon-wrapper.selected {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(14, 165, 233, 0.45);
}

/* Original inline logic-preserving rules */
.sidebar-section--calendar .flatpickr-months .flatpickr-month {
  display: flex;
  justify-content: center;
  width: 100%;
}

.sidebar-section--calendar .flatpickr-current-month {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  width: auto;
}

.sidebar-section--calendar .flatpickr-current-month input.cur-year {
  width: auto;
}

.sidebar-section--calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
  width: auto;
}
.mock-subject-group .mock-input-wrap {
  /* 입력+단위 묶음의 내부 간격을 10px로 */
  gap: 10px;
  /* 폭은 과도 확장을 막기 위해 적당히 고정 (기존 clamp 유지해도 됨) */
  width: 84px; /* 필요시 width: clamp(64px, 6vw, 84px); 로 유지 */
}

.mock-subject-group .mock-input-wrap .mock-input-field {
  /* flex 컨텍스트에서 입력이 수축되도록 설정 */
  flex: 1 1 auto;
  min-width: 0;

  /* 시각적으로 라인만 보이도록(래퍼가 하단 보더 가짐) */
  border: 0;
  background: transparent;
  padding: 0;

  /* 숫자 오른쪽 정렬 */
  text-align: right;
}

/* 총 응시시간(분) 입력 래퍼도 동일 간격 적용 */
.mock-subject-group .mock-input-wrap--wide {
  gap: 10px;
}

[hidden] { display: none !important; }