/* me / teach / admin 三個分頁殼共用。 */

.shell-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 0;
}
.shell-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.shell-title h1 { font-size: 22px; }
.shell-title small { color: var(--ink-faint); font-size: 13px; font-weight: 400; }

.tabs-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabs {
  display: flex;
  gap: 2px;
  min-width: max-content;
  border-bottom: 1px solid var(--line);
  margin-bottom: -1px;
}
.tab-btn {
  font-family: inherit;
  font-size: 14.5px;
  padding: 10px 16px;
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }

.panes { padding: 22px 0 60px; }

.toolbar {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.toolbar .field { margin-bottom: 0; }
.toolbar .field input, .toolbar .field select { min-width: 150px; }

.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.stat-card {
  flex: 1 1 130px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
}
.stat-card .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat-card .k { font-size: 12.5px; color: var(--ink-faint); margin-top: 2px; }

.notif-item {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: var(--accent-soft); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--radius-sm); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 8px; }
.notif-dot.read { background: transparent; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 500; font-size: 14.5px; }
.notif-text { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.notif-time { font-size: 12px; color: var(--ink-faint); margin-top: 3px; }

.role-tags { display: flex; gap: 5px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .shell-head { padding-top: 14px; }
  .shell-title h1 { font-size: 19px; }
  .panes { padding: 16px 0 24px; }
  .toolbar { gap: 8px; }
  .toolbar .field { flex: 1 1 140px; }
  .toolbar .field input, .toolbar .field select { min-width: 0; width: 100%; }
  .stat-card { flex: 1 1 calc(50% - 6px); }
}
