/* ════════════════════════════════════════
   楠隼中高一貫校 生徒ポータル - style.css
   旧デザイン踏襲 + タブUI対応版
════════════════════════════════════════ */

/* ── 変数定義 ── */
:root {
  --bg-color:      #f0f2f5;
  --header-bg:     #004d40;
  --section-bg:    #ffffff;
  --card-bg:       #e8f5e9;
  --text-main:     #1a1a1a;
  --text-muted:    #666666;
  --accent:        #00796b;
  --accent-light:  #b2dfdb;
  --shadow:        0 4px 20px rgba(0,0,0,0.08);
  --border:        rgba(0,0,0,0.05);
  --panel-bg:      #ffffff;
  --holiday-color: #e53935;
  --saturday-color:#1565c0;
  --today-bg:      #00796b;
  --today-color:   #ffffff;
}
[data-theme="dark"] {
  --bg-color:      #050d0c;
  --header-bg:     #001a14;
  --section-bg:    #0b1a17;
  --card-bg:       #132b26;
  --text-main:     #e0f2f1;
  --text-muted:    #809693;
  --accent:        #4db6ac;
  --accent-light:  #1a3a36;
  --shadow:        0 8px 30px rgba(0,0,0,0.4);
  --border:        rgba(77,182,172,0.15);
  --panel-bg:      #0f2420;
  --holiday-color: #ef9a9a;
  --saturday-color:#90caf9;
  --today-bg:      #00695c;
  --today-color:   #ffffff;
}

/* ── ベース ── */
* { box-sizing:border-box; margin:0; padding:0; }
body {
  font-family:'Noto Sans JP',sans-serif;
  background:var(--bg-color); color:var(--text-main);
  line-height:1.6; transition:background-color .3s,color .3s;
}
ul { list-style:none; }

/* ════════════════════════
   ヘッダー（新HTML構造対応）
   .header-left / .header-right / .header-center
════════════════════════ */
.main-header {
  background:var(--header-bg); color:#fff;
  padding:14px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  position:sticky; top:0; z-index:100;
  box-shadow:0 2px 12px rgba(0,0,0,.25);
}
.header-left {
  display:flex; align-items:center; gap:10px; flex-shrink:0;
}
.header-logo { font-size:1.6rem; line-height:1; }
.header-title-block h1 { font-size:1.1rem; font-weight:bold; line-height:1.25; }
.header-time  { font-size:.72rem; opacity:.75; margin-top:2px; }
.header-center { flex:1; }
.header-right {
  display:flex; align-items:center; gap:10px; flex-shrink:0;
}
.header-selector { display:flex; align-items:center; gap:6px; }
.header-select {
  padding:6px 12px; border-radius:8px;
  border:1px solid rgba(255,255,255,.3);
  background:rgba(255,255,255,.15); color:#fff;
  font-size:.9rem; font-family:inherit; cursor:pointer;
}
.header-select option { background:var(--header-bg); color:#fff; }
.theme-btn {
  background:rgba(255,255,255,.15); border:1px solid rgba(255,255,255,.25);
  width:40px; height:40px; border-radius:50%; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:1.15rem; transition:.2s; color:#fff; flex-shrink:0;
}
.theme-btn:hover { background:rgba(255,255,255,.28); transform:scale(1.07); }

/* ════════════════════════
   タブバー
════════════════════════ */
.tabbar-wrapper {
  display:flex; align-items:stretch;
  background:var(--section-bg);
  border-bottom:2px solid var(--accent-light);
  padding:0 12px; gap:4px;
  position:sticky; top:68px; z-index:90;
  box-shadow:0 2px 8px rgba(0,0,0,.06);
}
.tabbar {
  display:flex; gap:3px; flex:1;
  overflow-x:auto; padding:6px 0 0;
  scrollbar-width:none;
}
.tabbar::-webkit-scrollbar { display:none; }

.tab-btn {
  display:flex; align-items:center; gap:6px;
  padding:8px 16px; border-radius:10px 10px 0 0;
  border:1.5px solid var(--border); border-bottom:none;
  background:var(--bg-color); color:var(--text-muted);
  font-size:.85rem; cursor:pointer; white-space:nowrap;
  font-family:inherit; transition:.15s; flex-shrink:0;
}
.tab-btn:hover { background:var(--accent-light); color:var(--accent); }
.tab-btn.active {
  background:var(--section-bg); color:var(--accent);
  font-weight:bold; border-color:var(--accent-light);
  position:relative; bottom:-2px; z-index:1;
}
.tab-close {
  font-size:.8rem; line-height:1; padding:1px 3px;
  border-radius:4px; color:var(--text-muted);
  transition:.15s;
}
.tab-close:hover { background:var(--accent); color:#fff; border-radius:4px; }

.tab-add-btn {
  align-self:center; margin:0 0 0 4px;
  padding:6px 14px; border-radius:20px;
  border:1.5px dashed var(--accent);
  background:transparent; color:var(--accent);
  font-size:1rem; cursor:pointer; font-family:inherit; transition:.15s;
}
.tab-add-btn:hover { background:var(--accent); color:#fff; }

/* ════════════════════════
   ワークスペース
════════════════════════ */
.workspace {
  max-width:1100px; margin:0 auto;
  padding:24px 20px;
  min-height:calc(100vh - 130px);
}
.tab-panel { animation:fadeIn .2s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }

.workspace-empty {
  display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:18px; padding:80px 20px;
  color:var(--text-muted); text-align:center;
}
.workspace-empty p { font-size:1rem; }
.btn-add-first {
  padding:12px 30px; border-radius:24px;
  background:var(--accent); color:#fff; border:none;
  font-size:1rem; cursor:pointer; font-family:inherit; transition:.2s;
  box-shadow:0 4px 14px rgba(0,121,107,.3);
}
.btn-add-first:hover { opacity:.88; transform:translateY(-1px); }

/* ════════════════════════
   カード・セクション共通
════════════════════════ */
.card {
  background:var(--card-bg); border-radius:15px; padding:20px;
  border:1px solid var(--border); transition:.2s;
}
.card h3 { margin-bottom:12px; font-size:1.05rem; }
.grid-3-col { display:grid; gap:20px; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); }

/* ── パネル共通ヘッダー行 ── */
.panel-header-row {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:20px; flex-wrap:wrap; gap:8px;
}
.panel-header-row h2 {
  color:var(--accent); font-size:1.25rem;
  border-bottom:2px solid var(--accent); padding-bottom:8px; flex:1;
}
.settings-btn {
  padding:6px 16px; border-radius:20px; flex-shrink:0;
  border:1.5px solid var(--accent); background:transparent;
  color:var(--accent); font-size:.8rem; cursor:pointer;
  font-family:inherit; transition:.15s;
}
.settings-btn:hover { background:var(--accent); color:#fff; }

/* ════════════════════════
   通知・係投稿
════════════════════════ */
.notice-section { margin-bottom:28px; }
.notice-section h3 {
  font-size:1rem; color:var(--accent); margin-bottom:14px;
  padding-bottom:8px; border-bottom:1.5px solid var(--accent-light);
}
.notices-list { display:flex; flex-direction:column; gap:12px; }
.notice-item {
  background:var(--card-bg); border-radius:12px; padding:14px 18px;
  border-left:5px solid var(--accent); transition:.2s;
}
.notice-item:hover { transform:translateX(3px); }
.notice-item.notice-urgent    { border-left-color:#c62828; }
.notice-item.notice-important { border-left-color:#e65100; }
.notice-header { display:flex; align-items:center; gap:8px; margin-bottom:6px; flex-wrap:wrap; }
.notice-tag {
  font-size:.72rem; font-weight:bold; padding:2px 10px;
  border-radius:20px; letter-spacing:.03em; flex-shrink:0;
}
.tag-update { background:#e3f2fd; color:#1565c0; }
.tag-class  { background:#fff3e0; color:#e65100; }
.tag-grade  { background:#f3e5f5; color:#6a1b9a; }
.tag-info   { background:#e8f5e9; color:#2e7d32; }
.tag-urgent { background:#ffebee; color:#c62828; }
[data-theme="dark"] .tag-update { background:#1a2a3a; color:#90caf9; }
[data-theme="dark"] .tag-class  { background:#2a1a0a; color:#ffb74d; }
[data-theme="dark"] .tag-grade  { background:#1e0a2a; color:#ce93d8; }
[data-theme="dark"] .tag-info   { background:#0a2a0a; color:#81c784; }
[data-theme="dark"] .tag-urgent { background:#2a0a0a; color:#ef9a9a; }
.target-badge {
  font-size:.7rem; padding:2px 8px; border-radius:20px;
  background:var(--accent); color:#fff; flex-shrink:0;
}
.target-badge.all { background:var(--text-muted); }
.notice-date  { font-size:.8rem; color:var(--text-muted); margin-left:auto; }
.notice-title { font-weight:bold; font-size:.95rem; margin-bottom:4px; }
.notice-body  { font-size:.85rem; color:var(--text-muted); }
.notice-link  { margin-top:6px; font-size:.82rem; }
.notice-link a { color:var(--accent); }
.no-notice    { color:var(--text-muted); font-size:.9rem; padding:8px 0; }

/* ════════════════════════
   時限バッジ
════════════════════════ */
.period-badge {
  font-size:.7rem; font-weight:bold; padding:2px 8px;
  border-radius:20px; background:#fff3e0; color:#e65100;
  flex-shrink:0; white-space:nowrap;
}
[data-theme="dark"] .period-badge { background:#2a1800; color:#ffb74d; }

/* ════════════════════════
   時間割パネル
════════════════════════ */
.timetable-card {
  background:var(--card-bg); border-radius:15px;
  padding:20px; border:1px solid var(--border); margin-bottom:24px;
}
.tt-meta { display:flex; align-items:center; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
.tt-date  { font-size:.95rem; font-weight:bold; }
.tt-label {
  font-size:.78rem; padding:3px 12px; border-radius:20px;
  background:var(--accent-light); color:var(--accent); font-weight:bold;
}
.tt-label.special { background:#fff3e0; color:#e65100; }
[data-theme="dark"] .tt-label.special { background:#2a1800; color:#ffb74d; }

.timetable-list { list-style:none; display:flex; flex-direction:column; gap:6px; }
.tt-row {
  display:flex; align-items:center; gap:10px;
  background:var(--section-bg); padding:10px 14px;
  border-radius:10px; border-left:5px solid var(--accent);
  box-shadow:0 2px 5px rgba(0,0,0,.03);
}
.tt-period  { font-size:.78rem; font-weight:bold; color:var(--accent); min-width:30px; }
.tt-subject { font-size:.92rem; }

.timetable-week-section { margin-top:8px; }
.timetable-week-section h3 {
  font-size:1rem; color:var(--accent); margin-bottom:14px;
  padding-bottom:8px; border-bottom:1.5px solid var(--accent-light);
}
.week-tt-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; }
.week-day-col {
  background:var(--card-bg); border-radius:12px;
  padding:10px 8px; border:1px solid var(--border);
}
.week-day-col.today { border-color:var(--accent); background:var(--accent-light); }
.week-day-header {
  font-size:.75rem; font-weight:bold; text-align:center;
  margin-bottom:8px; padding-bottom:6px;
  border-bottom:1px solid var(--border); color:var(--accent);
}
.week-day-holiday,.week-day-empty {
  font-size:.75rem; color:var(--text-muted); text-align:center; padding:6px 0;
}
.week-tt-item {
  display:flex; align-items:center; gap:4px;
  padding:3px 0; border-bottom:1px solid var(--border); font-size:.75rem;
}
.week-tt-item:last-child { border-bottom:none; }
.wt-period  { font-weight:bold; color:var(--accent); min-width:14px; font-size:.7rem; }
.wt-subject { flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wt-note    { font-size:.65rem; color:#e65100; background:#fff3e0; border-radius:4px; padding:0 3px; }
.special-badge { font-size:.6rem; background:#ff7043; color:#fff; border-radius:4px; padding:1px 4px; }

/* ════════════════════════
   カレンダー
════════════════════════ */
.calendar-wrapper { overflow:hidden; }
.cal-toolbar { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; flex-wrap:wrap; gap:10px; }
.cal-nav { display:flex; align-items:center; gap:12px; }
.cal-nav-btn {
  background:var(--accent); color:#fff; border:none;
  width:32px; height:32px; border-radius:50%; font-size:1.1rem; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:.2s;
}
.cal-nav-btn:hover { opacity:.8; transform:scale(1.05); }
.cal-range-label { font-weight:bold; font-size:1rem; min-width:130px; text-align:center; }
.cal-mode-btns { display:flex; gap:8px; }
.cal-mode-btn {
  padding:6px 16px; border-radius:20px; border:2px solid var(--accent);
  background:transparent; color:var(--accent); font-size:.85rem;
  cursor:pointer; font-family:inherit; transition:.15s;
}
.cal-mode-btn.active, .cal-mode-btn:hover { background:var(--accent); color:#fff; }
.cal-grid   { display:grid; gap:6px; }
.week-grid  { grid-template-columns:repeat(7,1fr); }
.month-grid { grid-template-columns:repeat(7,1fr); }
.cal-week-header {
  text-align:center; font-size:.78rem; font-weight:bold;
  padding:6px 4px; background:transparent; border:none;
  color:var(--text-muted); cursor:default !important;
}
.cal-blank { background:transparent; border:none; cursor:default !important; }
.cal-cell {
  background:var(--section-bg); border-radius:10px; padding:10px 6px;
  text-align:center; cursor:pointer; transition:background .15s,transform .12s;
  border:1px solid var(--border); min-height:60px;
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:4px;
}
.month-cell { min-height:52px; }
.cal-cell:not(.cal-week-header):not(.cal-blank):hover { background:var(--accent-light); transform:scale(1.03); }
.cal-cell.today    { background:var(--today-bg); color:var(--today-color); font-weight:bold; border-color:var(--accent); }
.cal-cell.holiday  .cal-date-num,
.cal-cell.holiday  .cal-day-label  { color:var(--holiday-color); }
.cal-cell.saturday .cal-date-num,
.cal-cell.saturday .cal-day-label  { color:var(--saturday-color); }
.cal-cell.today .cal-day-label     { color:rgba(255,255,255,.8); }
.cal-day-label { font-size:.7rem; color:var(--text-muted); }
.cal-date-num  { font-size:1rem; font-weight:bold; line-height:1; }
.cal-dots      { display:flex; gap:3px; justify-content:center; flex-wrap:wrap; margin-top:2px; }
.cal-dot       { width:7px; height:7px; border-radius:50%; display:inline-block; flex-shrink:0; }
.special-dot   { background:#ff7043; }
.event-dot     { background:#42a5f5; }
.cal-legend    { display:flex; gap:18px; margin-top:14px; font-size:.8rem; color:var(--text-muted); }
.legend-item   { display:flex; align-items:center; gap:5px; }
.cal-tt-preview { display:flex; flex-direction:column; gap:1px; width:100%; margin-top:3px; }
.cal-tt-item {
  font-size:.62rem; line-height:1.3; white-space:nowrap;
  overflow:hidden; text-overflow:ellipsis; color:rgba(255,255,255,.9);
}
.cal-tt-item em {
  font-style:normal; font-size:.58rem;
  background:rgba(255,255,255,.25); border-radius:4px; padding:0 3px; margin-left:2px;
}
.cal-tt-more { font-size:.6rem; color:rgba(255,255,255,.7); }
.cal-special-badge {
  font-size:.6rem; background:rgba(255,152,0,.8); color:#fff;
  border-radius:4px; padding:1px 5px; margin-top:2px;
}

/* ════════════════════════
   サイドパネル
════════════════════════ */
.panel-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:200; backdrop-filter:blur(2px); }
.panel-overlay.show { display:block; }
.side-panel {
  position:fixed; top:0; right:-420px; width:400px; max-width:95vw; height:100%;
  background:var(--panel-bg); box-shadow:-4px 0 30px rgba(0,0,0,.2);
  z-index:300; transition:right .3s cubic-bezier(.4,0,.2,1); overflow-y:auto;
}
.side-panel.open  { right:0; }
.side-panel-inner { padding:24px 20px; }
.panel-close {
  position:absolute; top:16px; right:16px; background:var(--card-bg); border:none;
  border-radius:50%; width:36px; height:36px; font-size:1rem; cursor:pointer;
  color:var(--text-main); display:flex; align-items:center; justify-content:center; transition:.2s;
}
.panel-close:hover { background:var(--accent); color:#fff; }
.panel-date-header { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:20px; margin-top:10px; }
.panel-date  { font-size:1.2rem; font-weight:bold; }
.panel-badge { font-size:.72rem; padding:3px 10px; border-radius:20px; font-weight:bold; }
.panel-badge.special { background:#fff3e0; color:#e65100; }
.panel-badge.holiday { background:#ffebee; color:#c62828; }
[data-theme="dark"] .panel-badge.special { background:#2a1800; color:#ffb74d; }
[data-theme="dark"] .panel-badge.holiday { background:#2a0a0a; color:#ef9a9a; }
.panel-section { margin-bottom:22px; padding-bottom:18px; border-bottom:1px solid var(--border); }
.panel-section:last-child { border-bottom:none; }
.panel-section h4 { font-size:.95rem; color:var(--accent); margin-bottom:10px; }
.panel-empty  { font-size:.85rem; color:var(--text-muted); }
.panel-timetable { list-style:none; display:flex; flex-direction:column; gap:6px; }
.panel-timetable li {
  display:flex; align-items:center; gap:10px; background:var(--card-bg);
  padding:8px 12px; border-radius:8px; border-left:4px solid var(--accent);
  margin-bottom:0; box-shadow:none;
}
.period  { font-size:.78rem; font-weight:bold; color:var(--accent); min-width:28px; }
.subject { font-size:.9rem; }
.panel-events { list-style:none; display:flex; flex-direction:column; gap:6px; }
.panel-events li { background:var(--card-bg); padding:8px 12px; border-radius:8px; border-left:4px solid #42a5f5; font-size:.9rem; margin-bottom:0; box-shadow:none; }

/* ════════════════════════
   クイックアクセス・リンクカード
════════════════════════ */
.links-grid {
  display:grid; gap:16px;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
}
.link-card {
  text-decoration:none; color:var(--text-main);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
}
.link-card .icon { font-size:2.2rem; margin-bottom:10px; }
.link-card h3 { font-size:.95rem; }
.link-card:hover { background:var(--accent); color:#fff !important; }

/* ブックマーク削除ボタン */
.bm-card { position:relative; }
.bm-delete-btn {
  position:absolute; top:6px; right:6px;
  background:rgba(0,0,0,.12); border:none; border-radius:50%;
  width:22px; height:22px; font-size:.7rem; cursor:pointer;
  color:var(--text-muted); display:flex; align-items:center; justify-content:center; transition:.15s;
}
.bm-delete-btn:hover { background:#e53935; color:#fff; }

/* ════════════════════════
   アンケート
════════════════════════ */
.surveys-grid {
  display:grid; gap:16px;
  grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
}
.survey-card {
  background:var(--card-bg); border-radius:14px;
  padding:18px; border:1px solid var(--border);
  display:flex; flex-direction:column; gap:8px; transition:.2s;
}
.survey-card:hover { transform:translateY(-2px); box-shadow:var(--shadow); }
.survey-card-header { display:flex; align-items:center; gap:10px; }
.survey-icon  { font-size:1.8rem; }
.survey-title { font-weight:bold; font-size:.95rem; }
.survey-desc  { font-size:.82rem; color:var(--text-muted); }
.survey-meta  { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:4px; }
.survey-category { font-size:.72rem; padding:2px 8px; border-radius:20px; background:var(--accent-light); color:var(--accent); }
.survey-deadline { font-size:.72rem; color:var(--text-muted); }
.survey-deadline.near { color:#e65100; font-weight:bold; }
.survey-btn {
  display:block; text-align:center; padding:9px 0;
  background:var(--accent); color:#fff; border-radius:10px;
  text-decoration:none; font-size:.88rem; font-weight:bold;
  margin-top:auto; transition:.15s;
}
.survey-btn:hover { opacity:.85; }

/* ════════════════════════
   コンテンツピッカー
════════════════════════ */
.picker-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.5); z-index:400;
  align-items:center; justify-content:center;
  backdrop-filter:blur(3px);
}
.picker-overlay.show { display:flex; }
.picker-modal {
  background:var(--panel-bg); border-radius:20px;
  padding:24px; width:90%; max-width:480px;
  box-shadow:0 20px 60px rgba(0,0,0,.3);
  animation:popIn .2s ease;
}
@keyframes popIn { from{opacity:0;transform:scale(.95)} to{opacity:1;transform:none} }
.picker-header {
  display:flex; align-items:center; justify-content:space-between; margin-bottom:18px;
}
.picker-header span { font-size:1rem; font-weight:bold; color:var(--accent); }
.picker-close {
  background:var(--card-bg); border:none; border-radius:50%;
  width:32px; height:32px; font-size:.9rem; cursor:pointer;
  color:var(--text-main); display:flex; align-items:center; justify-content:center; transition:.2s;
}
.picker-close:hover { background:var(--accent); color:#fff; }
.picker-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.picker-item {
  display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:18px 10px; border-radius:14px;
  background:var(--card-bg); border:2px solid var(--border);
  cursor:pointer; font-family:inherit; font-size:.85rem;
  color:var(--text-main); transition:.15s;
}
.picker-item:hover { border-color:var(--accent); background:var(--accent-light); color:var(--accent); transform:scale(1.04); }
.picker-icon { font-size:2rem; }

/* ════════════════════════
   ブックマーク追加フォーム
════════════════════════ */
.bm-modal  { max-width:380px; }
.bm-form   { display:flex; flex-direction:column; gap:14px; }
.bm-form-group { display:flex; flex-direction:column; gap:4px; }
.bm-form-group label { font-size:.82rem; color:var(--text-muted); }
.req { color:#e53935; }
.bm-input {
  padding:10px 14px; border-radius:10px;
  border:1.5px solid var(--border); background:var(--card-bg);
  color:var(--text-main); font-size:.92rem; font-family:inherit;
}
.bm-input:focus { outline:none; border-color:var(--accent); }
.bm-submit {
  padding:11px; border-radius:12px; background:var(--accent);
  color:#fff; border:none; font-size:.95rem;
  cursor:pointer; font-family:inherit; font-weight:bold; transition:.15s;
}
.bm-submit:hover { opacity:.85; }
#bm-msg { font-size:.82rem; color:#e53935; }

/* ════════════════════════
   トグルスイッチ
════════════════════════ */
.toggle-switch { position:relative; display:inline-block; width:46px; height:26px; flex-shrink:0; }
.toggle-switch input { opacity:0; width:0; height:0; }
.toggle-slider {
  position:absolute; cursor:pointer; inset:0;
  background:#ccc; border-radius:26px; transition:.3s;
}
.toggle-slider::before {
  content:""; position:absolute;
  width:20px; height:20px; left:3px; bottom:3px;
  background:#fff; border-radius:50%; transition:.3s;
}
.toggle-switch input:checked + .toggle-slider { background:var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform:translateX(20px); }

/* ════════════════════════
   フッター
════════════════════════ */
footer { text-align:center; padding:40px; color:var(--text-muted); font-size:.85rem; }

/* ════════════════════════
   モバイル
════════════════════════ */
@media (max-width:700px) {
  .main-header      { padding:10px 14px; gap:8px; }
  .header-logo      { font-size:1.3rem; }
  .header-title-block h1 { font-size:.9rem; }
  .header-time      { display:none; }
  .header-select    { font-size:.82rem; padding:5px 8px; }
  .tabbar-wrapper   { top:58px; }
  .workspace        { padding:14px 12px; }
  .week-tt-grid     { grid-template-columns:repeat(3,1fr); }
  .picker-grid      { grid-template-columns:repeat(2,1fr); }
  .side-panel       { width:100vw; }
  .cal-cell         { min-height:48px; padding:6px 2px; }
  .cal-date-num     { font-size:.9rem; }
}
