/* 平板看板：优先展示任务和日程；管理页继续使用原有布局。 */
.board-tools { display: none; }
.list-controls { display: none; }

@media (min-width: 760px) {
  body.board-mode { overflow: hidden; }
  .board-mode #app { height: 100%; }
  .board-mode .sidebar { display: none; }
  .board-mode main {
    margin: 0;
    padding: 12px 16px !important;
    max-width: none;
    min-height: 440px;
    display: flex;
    flex-direction: column;
  }
  .board-mode .topbar {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 0 8px;
    gap: 16px;
  }
  .board-mode .topbar .eyebrow,
  .board-mode #board-view > .greeting,
  .board-mode .panel-heading .eyebrow,
  .board-mode .note-card,
  .board-mode .panel-foot,
  .board-mode footer { display: none; }
  .board-mode .topbar h1 { font-size: 23px; line-height: 1.25; letter-spacing: .5px; }
  .board-mode .header-right { flex-direction: row; align-items: center; gap: 18px; }
  .board-mode .clock { font-size: 27px; line-height: 1; }
  .board-mode #date-label { font-size: 13px; white-space: nowrap; }
  .board-mode .board-tools { display: flex; gap: 8px; position: relative; align-items: center; }
  .tool-button {
    color: #4c6656;
    border: 1px solid #d9e0d0;
    border-radius: 8px;
    background: #fffefa;
    padding: 5px 12px;
    min-height: 36px;
    font-size: 13px;
  }
  .board-menu {
    position: absolute; right: 0; top: 44px; width: 165px; z-index: 10;
    padding: 6px; background: #fffefa; border: 1px solid #d9e0d0;
    border-radius: 10px; box-shadow: 0 8px 24px #2d483326;
  }
  .board-menu button { display: block; width: 100%; border: 0; background: transparent; color: #4c6656; padding: 12px; text-align: left; }
  .board-menu button:hover { background: #edf0e6; }
  .board-mode .connection { flex: 0 0 auto; margin: 6px 0 10px; font-size: 11px; }
  .board-mode #board-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .board-mode .weather-column { flex: 0 0 auto; width: 100%; min-width: 0; margin-bottom: 12px; display: block; }
  .board-mode .weather-card {
    width: 100%; height: 112px; padding: 12px 18px 24px;
    border-radius: 12px; position: relative;
    display: flex; flex-direction: row; align-items: center; gap: 18px;
  }
  .board-mode .section-top { flex: 0 0 70px; flex-direction: column; gap: 5px; font-size: 17px; }
  .board-mode .weather-label { align-self: flex-start; border: 0; padding: 0; font-size: 11px; }
  .board-mode .weather-main { flex: 0 0 174px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 10px; }
  .board-mode .weather-symbol { font-size: 36px; line-height: 1; }
  .board-mode .weather-main strong { font-size: 48px; line-height: 1; letter-spacing: -2px; }
  .board-mode .weather-main p { width: 100%; font-size: 12px; line-height: 1.3; margin-top: 4px; }
  .board-mode .weather-extra { flex: 0 1 130px; padding: 0; border: 0; font-size: 12px; text-align: left; }
  .board-mode .forecast { flex: 1; min-width: 0; padding: 0; border-left: 1px solid #527062; }
  .board-mode .forecast-day { width: 33.333%; font-size: 11px; }
  .board-mode .forecast-day span { display: inline; font-size: 20px; margin: 0 7px; }
  .board-mode .forecast-day strong { display: block; font-size: 14px; line-height: 1.5; margin-top: 3px; }
  .board-mode .forecast-day > div { font-size: 10px; }
  .board-mode .weather-stamp { position: absolute; bottom: 5px; left: 18px; margin: 0; font-size: 10px; }
  .board-mode .weather-credit { position: absolute; bottom: 5px; right: 18px; margin: 0; font-size: 10px; }
  .board-mode .board-columns { flex: 1; min-height: 0; display: flex; flex-wrap: nowrap; gap: 12px; align-items: stretch; }
  .board-mode .homework-panel { width: 56%; flex: 0 1 56%; }
  .board-mode .agenda-panel { width: 44%; flex: 0 1 44%; }
  .board-mode .homework-panel,
  .board-mode .agenda-panel { min-height: 0; min-width: 0; padding: 16px 18px 8px; border-radius: 12px; }
  .board-mode .panel-heading { flex: 0 0 auto; margin-bottom: 10px; min-height: 32px; }
  .board-mode .panel-heading > div:first-child { flex: 1; }
  .board-mode .list-controls { display: flex; gap: 6px; }
  .board-mode .list-controls button { width: 34px; height: 34px; border: 1px solid #d9e0d0; border-radius: 8px; background: #f4f5ed; color: #58754c; font-size: 18px; }
  .board-mode .panel-heading .add-button { margin-left: 8px; }
  .board-mode .panel-heading h2 { font-size: 21px; margin: 0; line-height: 1.3; }
  .board-mode .count { font-size: 12px; }
  .board-mode .homework-panel > .small { flex: 0 0 auto; margin: 5px 0 7px; font-size: 12px; }
  .board-mode .progress-track { flex: 0 0 4px; }
  .board-mode .homework-list,
  .board-mode .event-list { flex: 1; min-height: 0; overflow-y: auto; touch-action: pan-y; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #c2cdb5 transparent; }
  .board-mode .homework-item { padding: 9px 4px 10px 0; gap: 12px; }
  .board-mode .check-button { width: 36px; height: 36px; margin-top: 2px; border-radius: 9px; }
  .board-mode .item-meta { font-size: 12px; }
  .board-mode .homework-content { font-size: 17px; line-height: 1.5; margin: 3px 0; }
  .board-mode .status-label,
  .board-mode .due-label { font-size: 11px; }
  .board-mode .agenda-label { flex: 0 0 auto; font-size: 12px; padding-bottom: 7px; }
  .board-mode .agenda-date { padding-top: 9px; margin-top: 0; font-size: 12px; }
  .board-mode .event-item { padding: 9px 4px 9px 0; gap: 10px; }
  .board-mode .event-title { font-size: 17px; line-height: 1.5; }
  .board-mode .event-description { font-size: 12px; }
  .board-mode .event-time { font-size: 12px; }
  .board-mode .empty-state { padding: 24px 10px; }
  .board-mode .empty-state .empty-icon { font-size: 28px; margin-bottom: 7px; }
  .board-mode .empty-state strong { font-size: 16px; }
}

@media (min-width: 760px) and (max-width: 1050px) {
  .board-mode .weather-extra { display: none; }
  .board-mode .header-right { gap: 12px; }
  .board-mode .weather-card { gap: 12px; }
}

@media (min-width: 760px) and (max-height: 600px) {
  .board-mode .weather-card { height: 94px; padding-top: 8px; }
  .board-mode .weather-main strong { font-size: 40px; }
  .board-mode .homework-panel,
  .board-mode .agenda-panel { padding-top: 12px; }
}
