/* =========================================================
   △ 브레인 덤프 & 타임박스 노트 — 진짜 노트에 끄적인 미니멀 아날로그 스타일
   교보 손글씨 폰트 기본 적용
   ========================================================= */

@font-face {
  font-family: 'KyoboHand';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@1.0/KyoboHand.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

:root {
  --bg-desk: #ebe5da;          /* 차분한 웜 그레이/베이지 바탕 */
  --paper-bg: #faf7f0;         /* 진짜 노트의 따뜻한 미색 종이 */
  --ink-black: #1e1c1a;        /* 볼펜/만년필 검은 잉크색 */
  --ink-muted: #8c847a;        /* 연필/흐린 잉크 보조색 */
  --ink-faint: rgba(30, 28, 26, 0.14);

  /* 손으로 대충 그린 듯한 자연스러운 비정형 네모 테두리 */
  --sketch-box-radius: 3px 8px 4px 7px / 6px 4px 7px 3px;
  --font-hand: 'KyoboHand', cursive, sans-serif;
  --hour-row-height: 43px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-desk);
  color: var(--ink-black);
  font-family: var(--font-hand);
  font-weight: 400;
  line-height: 1.4;
  overflow-x: hidden;
}

.app-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top, 22px)) 14px 40px;
}

/* =========================================================
   상단 미니멀 헤더 (가운데 정렬 및 다이내믹 아일랜드 안전 여백)
   ========================================================= */
.top-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 4px 6px;
  text-align: center;
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-display-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.native-date-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
  -webkit-appearance: none;
}

.native-date-overlay::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.date-label-btn {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink-black);
  background: transparent;
  border: none;
  border-bottom: 1.8px solid var(--ink-black);
  padding: 0 4px;
  cursor: pointer;
}

.text-btn {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-black);
  background: transparent;
  border: none;
  padding: 2px 5px;
  cursor: pointer;
  user-select: none;
}

.text-btn:hover {
  text-decoration: underline;
}

.muted-btn {
  color: var(--ink-muted);
  font-size: 1.1rem;
}

.muted-btn:hover {
  color: var(--ink-black);
}

.dot-sep {
  color: var(--ink-muted);
  font-size: 1rem;
}

.utility-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--ink-black);
  border-bottom: 1.5px solid var(--ink-black);
  padding: 0 2px;
}

.hidden {
  display: none !important;
}

/* =========================================================
   배치 안내 배너 (연필 밑줄 느낌으로 심플하게)
   ========================================================= */
.assign-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 4px 8px 20px;
  padding: 4px 10px;
  background: rgba(30, 28, 26, 0.05);
  border-bottom: 1.8px dashed var(--ink-black);
  font-size: 1.15rem;
}

/* =========================================================
   스프링 노트 본체 (유튜브 첫 번째 이미지처럼 심플한 종이 한 장)
   ========================================================= */
.notebook-container {
  position: relative;
  display: flex;
  background: var(--paper-bg);
  border: 2.6px solid var(--ink-black);
  border-radius: 3px 8px 5px 4px / 5px 4px 8px 3px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
  margin-left: 18px;
  min-height: 750px;
}

/* 좌측 스프링 링 바인더 (펜으로 그린 스프링 철사) */
.spiral-binding {
  position: absolute;
  left: -20px;
  top: 14px;
  bottom: 14px;
  width: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.spiral-ring {
  width: 30px;
  height: 24px;
  border: 2.8px solid var(--ink-black);
  border-right: 2.8px solid transparent;
  border-radius: 50% 45% 40% 55% / 60% 50% 50% 60%;
  transform: rotate(-8deg);
  position: relative;
}

.spiral-ring::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 4px;
  width: 6px;
  height: 6px;
  background: var(--ink-black);
  border-radius: 50%;
}

/* 노트 내부 2단 분할 페이지 */
.notebook-page {
  flex: 1;
  display: grid;
  grid-template-columns: 44% 56%;
  padding: 22px 18px 24px 28px;
  gap: 10px;
  width: 100%;
}

/* =========================================================
   [좌측 반] △할일 & △중요 (종이 위에 글씨만 끄적인 형태)
   ========================================================= */
.left-column {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-right: 8px;
  gap: 32px;
}

.hand-title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-black);
  margin-bottom: 6px;
}

.title-symbol {
  font-size: 1.35rem;
  font-weight: 700;
  display: inline-block;
  transform: translateY(-1px);
}

.star-symbol {
  font-size: 1.45rem;
}

/* 할일 목록 (박스 없이 순수 줄글씨) */
.todo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.todo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 2px 4px;
  border-radius: 4px;
}

.todo-item.assigning {
  border-bottom: 1.8px dashed var(--ink-black);
}

.todo-text-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  cursor: pointer;
  min-width: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: opacity 0.1s ease;
}

.todo-text-wrap:active {
  opacity: 0.65;
}

.todo-bullet {
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.todo-text {
  font-size: 1.22rem;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 손으로 쓱 그은 취소선 */
.todo-item.done .todo-text {
  color: var(--ink-muted);
  text-decoration: line-through;
  text-decoration-thickness: 2.2px;
  text-decoration-color: var(--ink-black);
}

/* 옆에 조용히 표시되는 펜 기호 버튼 (☆ / → / ×) */
.todo-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  opacity: 0.32;
  transition: opacity 0.15s ease;
}

.todo-item:hover .todo-actions,
.todo-actions:focus-within {
  opacity: 1;
}

.ink-icon-btn {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-black);
  background: transparent;
  border: none;
  padding: 0 3px;
  cursor: pointer;
  line-height: 1;
}

.ink-icon-btn.starred {
  opacity: 1;
}

.ink-icon-btn:hover {
  transform: scale(1.15);
}

/* 노트 마지막 줄에 바로 적는 인라인 입력줄 */
.todo-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 2px 4px;
}

.bullet-dot {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink-muted);
  line-height: 1;
}

.hand-input {
  flex: 1;
  width: 100%;
  font-family: var(--font-hand);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink-black);
  background: transparent;
  border: none;
  border-bottom: 1.5px dashed rgba(30, 28, 26, 0.25);
  padding: 2px 2px;
  outline: none;
}

.hand-input:focus {
  border-bottom-color: var(--ink-black);
  border-bottom-style: solid;
}

.hand-input::placeholder {
  color: rgba(30, 28, 26, 0.32);
}

/* =========================================================
   △중요 영역 (박스 배경 없이 원본 이미지처럼 ① ② ③ 글씨만)
   ========================================================= */
.priority-section {
  margin-top: 6px;
}

.priority-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.priority-empty {
  font-size: 1.15rem;
  color: var(--ink-muted);
  padding: 2px 4px;
}

.priority-slot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 4px;
}

.priority-slot.assigning {
  border-bottom: 1.8px dashed var(--ink-black);
}

/* 손으로 동그라미 친 번호 ① ② ③ */
.circle-num {
  width: 24px;
  height: 24px;
  border: 2px solid var(--ink-black);
  border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  background: transparent;
  flex-shrink: 0;
}

.priority-text-wrap {
  flex: 1;
  min-width: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  transition: opacity 0.1s ease;
}

.priority-text-wrap:active {
  opacity: 0.65;
}

.priority-text {
  font-size: 1.22rem;
  color: var(--ink-black);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.priority-slot.done .priority-text {
  text-decoration: line-through;
  text-decoration-thickness: 2.2px;
  color: var(--ink-muted);
}

.priority-btns {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  opacity: 0.32;
  transition: opacity 0.15s ease;
}

.priority-slot:hover .priority-btns {
  opacity: 1;
}

/* =========================================================
   [우측 반] 8시 ~ 밤 12시 시간축 + 손그림 네모 타임박스
   ========================================================= */
.right-column {
  display: flex;
  flex-direction: column;
  position: relative;
}

.timeline-wrapper {
  position: relative;
  flex: 1;
  user-select: none;
}

.timeline-grid {
  display: flex;
  flex-direction: column;
}

/* 개별 시각 행 (8, 9, 10, 11, 12, 1, 2 ... 12) */
.hour-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  height: var(--hour-row-height);
  position: relative;
}

.hour-row.noon-divider {
  border-top: 1.5px dashed rgba(30, 28, 26, 0.22);
}

.hour-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  font-weight: 700;
  text-align: center;
  color: var(--ink-black);
  line-height: 0.95;
  cursor: pointer;
  user-select: none;
}

.hour-period-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-muted);
  line-height: 1;
  margin-bottom: 2px;
  letter-spacing: -0.5px;
}

.hour-slot-area {
  height: 100%;
  margin-left: 6px;
  cursor: pointer;
  position: relative;
  touch-action: none; /* 아이폰 터치 드래그 시 브라우저 스크롤 간섭 방지 */
}

.hour-slot-area:hover,
.hour-slot-area.drag-over {
  background: rgba(30, 28, 26, 0.04);
}

/* =========================================================
   시각 오른쪽에 펜으로 그린 네모 박스 (유튜브 원본 이미지 그대로)
   ========================================================= */
.timebox-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  right: 2px;
  pointer-events: none;
}

.drawn-timebox {
  position: absolute;
  left: 2px;
  right: 4px;
  pointer-events: auto;
  background: var(--paper-bg);
  border: 2.5px solid var(--ink-black);
  border-radius: var(--sketch-box-radius);
  padding: 2px 34px 2px 6px; /* 1시간 높이에서도 우측 기호 버튼과 글씨가 겹치지 않게 여백 확보 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
}

.drawn-timebox:hover {
  background: #f5f0e4;
}

/* 박스 안 텍스트 */
.box-main-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.box-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink-black);
  line-height: 1.2;
  word-break: keep-all;
}

.drawn-timebox.done .box-title {
  text-decoration: line-through;
  text-decoration-thickness: 2.2px;
  color: var(--ink-muted);
}

/* 1시간 박스에서도 겹치지 않도록 세로 중앙 정렬 및 슬림 배치 */
.box-corner-tools {
  position: absolute;
  top: 50%;
  right: 3px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.drawn-timebox:hover .box-corner-tools {
  opacity: 0.85;
}

.box-tool-btn {
  font-family: var(--font-hand);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-black);
  background: transparent;
  border: none;
  padding: 0 1px;
  cursor: pointer;
  line-height: 1;
}

.box-tool-btn:hover {
  transform: scale(1.2);
}

/* =========================================================
   모달 및 토스트 (심플 종이 메모장 스타일)
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 28, 26, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.sketch-modal {
  width: 100%;
  max-width: 390px;
  background: var(--paper-bg);
  border: 2.4px solid var(--ink-black);
  border-radius: var(--sketch-box-radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  padding: 18px;
}

.modal-title {
  font-size: 1.55rem;
  margin-bottom: 12px;
  border-bottom: 1.5px solid var(--ink-black);
  padding-bottom: 4px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.modal-input, .hand-select {
  font-family: var(--font-hand);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 5px 8px;
  background: transparent;
  color: var(--ink-black);
  border: 1.8px solid var(--ink-black);
  border-radius: 4px;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  max-height: 130px;
  overflow-y: auto;
}

.chip-btn {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 2px 8px;
  background: transparent;
  color: var(--ink-black);
  border: 1.5px solid var(--ink-black);
  border-radius: 4px;
  cursor: pointer;
}

.chip-btn:hover {
  background: rgba(30, 28, 26, 0.06);
}

/* 모달 내 터치/마우스 시간 드래그 트랙 */
.modal-time-drag-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.time-drag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.time-drag-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-black);
}

.time-drag-live-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a422a;
  background: rgba(43, 122, 75, 0.08);
  border: 1px solid rgba(43, 122, 75, 0.25);
  border-radius: 4px;
  padding: 1px 6px;
}

.modal-time-track {
  display: grid;
  grid-template-columns: repeat(17, 1fr);
  gap: 2px;
  background: rgba(30, 28, 26, 0.04);
  border: 1.8px solid var(--ink-black);
  border-radius: 4px;
  padding: 4px 3px;
  user-select: none;
  touch-action: none;
}

.track-hour-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.1s ease;
  font-family: var(--font-hand);
}

.track-slot-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-black);
  line-height: 1;
}

.track-slot-sub {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--ink-muted);
  line-height: 1;
  margin-bottom: 2px;
}

.track-hour-slot:hover {
  background: rgba(30, 28, 26, 0.08);
}

/* 드래그로 선택된 시간 범위 하이라이트 (형광펜 느낌) */
.track-hour-slot.selected {
  background: #2b2522;
  color: #faf7f0;
}

.track-hour-slot.selected .track-slot-num,
.track-hour-slot.selected .track-slot-sub {
  color: #faf7f0;
}

.track-hour-slot.range-start {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.track-hour-slot.range-end {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.modal-right-btns {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.sketch-btn {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-black);
  background: transparent;
  border: 1.8px solid var(--ink-black);
  border-radius: 4px;
  padding: 3px 12px;
  cursor: pointer;
}

.sketch-btn.primary-btn {
  background: var(--ink-black);
  color: var(--paper-bg);
}

.sketch-btn.full-btn {
  width: 100%;
  padding: 8px 12px;
  font-size: 1.25rem;
  text-align: center;
}

/* 동기화 전용 모달 및 상태 뱃지 */
.sync-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.sync-btn.syncing #syncIcon {
  animation: spinSync 1s linear infinite;
}

@keyframes spinSync {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sync-status-box {
  background: rgba(30, 28, 26, 0.04);
  border: 1.5px dashed var(--ink-black);
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.sync-status-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-black);
}

.sync-dot-badge {
  color: #2b7a4b;
  font-size: 1.1rem;
}

.sync-time-sub {
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-top: 4px;
}

.sync-magic-section {
  margin-bottom: 16px;
}

.sync-help-note {
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-top: 6px;
  line-height: 1.35;
}

.sync-advanced-details {
  border: 1.5px solid rgba(30, 28, 26, 0.2);
  border-radius: 4px;
  padding: 8px 10px;
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.sync-advanced-details summary {
  cursor: pointer;
  font-weight: 700;
  user-select: none;
}

.sync-form-fields {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sketch-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink-black);
  color: var(--paper-bg);
  font-size: 1.15rem;
  padding: 6px 16px;
  border-radius: 6px;
  z-index: 200;
}

/* =========================================================
   📱 아이폰 / 아이패드 반응형 최적화
   ========================================================= */
@media (max-width: 680px) {
  :root {
    --hour-row-height: 39px;
  }

  .app-wrapper {
    padding: max(26px, env(safe-area-inset-top, 26px)) 6px 28px;
  }

  /* 상단 헤더 중앙 정렬 및 여백 확보 */
  .top-bar {
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 2px 4px;
    text-align: center;
  }

  .date-nav {
    justify-content: center;
  }

  .utility-btns {
    justify-content: center;
    gap: 4px;
  }

  .text-btn {
    font-size: 1.05rem;
    padding: 1px 3px;
  }

  .date-label-btn {
    font-size: 1.25rem;
  }

  .notebook-container {
    margin-left: 0;
    margin-right: 0;
    border-width: 2.2px;
    border-radius: 4px;
  }

  /* 📱 아이폰에서는 스프링 바인더를 숨겨 가로 공간을 온전히 확보 */
  .spiral-binding {
    display: none !important;
  }

  .notebook-page {
    grid-template-columns: 48% 52%;
    padding: 14px 6px 16px 8px;
    gap: 6px;
  }

  .assign-banner {
    margin-left: 0;
    margin-right: 0;
  }

  .modal-time-track {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 3px;
    padding: 6px 3px;
  }

  .track-hour-slot {
    min-width: 0;
    min-height: 40px;
  }

  .left-column {
    padding-right: 4px;
    gap: 20px;
  }

  /* 📱 아이폰에서는 중복되는 중요 섹션을 숨겨 할일 목록의 세로 공간을 극대화 */
  .priority-section {
    display: none !important;
  }

  .hand-title {
    font-size: 1.45rem;
  }

  .title-symbol {
    font-size: 1.25rem;
  }

  .hand-input,
  .modal-input,
  .hand-select {
    font-size: 16px !important; /* iOS 사파리 인풋 포커스 시 자동 확대 방지 */
  }

  /* 📱 아이폰 좁은 화면에서 텍스트가 시원하게 써지도록 2단(텍스트 상단, 버튼 하단 우측) 레이아웃 적용 */
  .todo-item {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 4px 2px;
    border-bottom: 1px dotted rgba(30, 28, 26, 0.12);
  }

  .todo-text-wrap {
    flex: 1 1 100%;
    min-width: 0;
  }

  .todo-text {
    font-size: 1.15rem;
    line-height: 1.25;
    word-break: break-all;
  }

  .todo-actions {
    margin-left: auto;
    margin-top: 1px;
    opacity: 0.8;
    gap: 8px;
  }

  .priority-slot {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 4px 2px;
    border-bottom: 1px dotted rgba(30, 28, 26, 0.12);
  }

  .circle-num {
    width: 18px;
    height: 18px;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .priority-text-wrap {
    flex: 1 1 calc(100% - 26px);
    min-width: 0;
  }

  .priority-text {
    font-size: 1.15rem;
    line-height: 1.25;
    word-break: break-all;
  }

  .priority-btns {
    margin-left: auto;
    margin-top: 1px;
    opacity: 0.8;
    gap: 8px;
  }

  .hour-row {
    grid-template-columns: 24px 1fr;
  }

  .hour-number {
    font-size: 1.22rem;
  }

  .timebox-layer {
    left: 28px;
  }

  .drawn-timebox {
    padding: 2px 28px 2px 5px;
  }

  .box-title {
    font-size: 1.15rem;
  }

  .box-corner-tools {
    opacity: 0.7;
    gap: 2px;
  }

  .box-tool-btn {
    font-size: 0.85rem;
  }
}
