/* ========== 基础 ========== */
* { box-sizing: border-box; }
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --border: #e6e9ef;
  --border-strong: #d4d9e2;
  --text: #0f172a;
  --muted: #64748b;
  --dim: #94a3b8;
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-soft: #e0f2fe;
  --good: #10b981;
  --good-soft: #d1fae5;
  --warn: #f59e0b;
  --warn-soft: #fef3c7;
  --bad: #ef4444;
  --bad-soft: #fee2e2;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  --sidebar-w: 232px;
  --topbar-h: 56px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--mono); }
.hidden { display: none !important; }
.dim { color: var(--dim); font-size: 12px; }

/* ========== 登录 ========== */
.view-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(1200px 600px at 100% 0%, #dbeafe 0%, transparent 60%),
    radial-gradient(900px 500px at 0% 100%, #ecfeff 0%, transparent 55%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.view-login::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.view-login::after {
  content: "";
  position: absolute;
  bottom: -160px; left: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 32px 32px 24px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(15, 23, 42, 0.08),
    0 32px 64px -16px rgba(14, 165, 233, 0.10);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.login-mark {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 22px;
  background-image: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  box-shadow:
    0 1px 2px rgba(14, 165, 233, 0.2),
    0 8px 16px -4px rgba(14, 165, 233, 0.3);
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
}
.login-mark img,
.login-mark span { display: block; }
.login-brand-text { min-width: 0; }
.login-eyebrow {
  font-size: 11px;
  color: var(--primary-dark);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.login-title { font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -0.3px; }
.login-sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.login-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 4px 0 22px;
}
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.input, .select, .textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  font-size: 14px;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}
.input::placeholder { color: #cbd5e1; }
.textarea { min-height: 110px; resize: vertical; font-family: var(--font); }
.checkbox { font-size: 12px; color: var(--muted); align-items: center; gap: 6px; cursor: pointer; }
.checkbox input { margin: 0; cursor: pointer; }
.checkbox:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  font-weight: 500;
  color: var(--text);
  user-select: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.btn:hover { background: #f1f5f9; }
.btn:active { background: #e2e8f0; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-lg {
  padding: 12px 16px;
  font-size: 14px;
  width: 100%;
  margin-top: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 10px;
  transition: transform .08s, box-shadow .15s, background .15s;
  box-shadow: 0 1px 2px rgba(14, 165, 233, 0.2), 0 4px 12px -2px rgba(14, 165, 233, 0.3);
}
.btn-lg:hover { box-shadow: 0 1px 2px rgba(14, 165, 233, 0.3), 0 8px 20px -4px rgba(14, 165, 233, 0.4); }
.btn-lg:active { transform: translateY(1px); }
.btn-danger { color: var(--bad); border-color: var(--bad-soft); }
.btn-danger:hover { background: var(--bad-soft); }
.icon-btn {
  width: 32px; height: 32px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  cursor: pointer; color: var(--muted);
}
.icon-btn:hover { background: #eef2f7; color: var(--text); }
.login-error {
  color: var(--bad);
  font-size: 12px;
  min-height: 0;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .2s, opacity .15s, margin-top .15s, padding .15s;
}
.login-error:not(:empty) {
  max-height: 200px;
  opacity: 1;
  margin-top: 10px;
  padding: 8px 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
}
.login-tip { color: var(--dim); font-size: 12px; margin-top: 18px; line-height: 1.6; }
.login-tip code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: 11px; font-family: var(--mono); }
.login-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
}
.login-foot-link {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
}
.login-foot-link:hover { text-decoration: underline; }

/* 登录页 2026 刷新 */
.view-login {
  background:
    radial-gradient(circle at 12% 20%, rgba(125, 211, 252, .22), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(167, 243, 208, .20), transparent 28%),
    #f5f9ff;
}
.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 440px);
  width: min(1040px, 100%);
  min-height: 610px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 30px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 30px 90px -38px rgba(30, 64, 175, .32);
  backdrop-filter: blur(22px);
}
.login-welcome {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #075985 0%, #0284c7 48%, #0ea5e9 100%);
}
.login-welcome::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -150px;
  bottom: -170px;
  border: 58px solid rgba(255,255,255,.10);
  border-radius: 50%;
}
.login-welcome-badge {
  align-self: flex-start;
  padding: 6px 11px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.11);
  font-size: 12px;
  letter-spacing: .08em;
}
.login-welcome h1 {
  position: relative;
  margin: 24px 0 18px;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.22;
  letter-spacing: -.04em;
}
.login-welcome > p {
  max-width: 460px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 15px;
  line-height: 1.8;
}
.login-feature-list { display: grid; gap: 14px; margin-top: 52px; }
.login-feature-list > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 12px;
  align-items: center;
}
.login-feature-list span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  font-weight: 700;
}
.login-feature-list strong { font-size: 13px; }
.login-feature-list small { color: rgba(255,255,255,.65); font-size: 11px; }
.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  padding: 54px 48px 38px;
  border: 0;
  border-radius: 0;
  background: rgba(255,255,255,.94);
  box-shadow: none;
  backdrop-filter: none;
}
.login-brand { margin-bottom: 28px; }
.login-mark { width: 48px; height: 48px; border-radius: 15px; }
.login-title { font-size: 18px; }
.login-eyebrow { color: var(--primary-dark); letter-spacing: .12em; }
.login-divider { display: none; }
.login-card .field { margin-bottom: 18px; }
.login-card .field > span { margin-bottom: 7px; color: #475569; font-size: 12px; font-weight: 600; }
.login-card .input { height: 46px; border-color: #dbe3ee; background: #f8fafc; }
.login-card .input:focus { background: #fff; }
.login-card .checkbox { margin: 2px 0 12px; }
.login-card .checkbox input { width: 15px; height: 15px; accent-color: var(--primary); }
.login-card .btn-lg { height: 46px; border-radius: 11px; letter-spacing: .08em; }
.login-captcha-row { gap: 10px; }
.login-captcha-row .input { flex: 1; }
.login-captcha-row img { height: 46px; max-width: 120px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.login-security { margin-top: 18px; color: var(--dim); font-size: 11px; text-align: center; }
.login-security span { color: var(--good); font-weight: 700; }
.login-foot { margin-top: 28px; padding-top: 18px; border-top-style: solid; }

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; width: min(460px, 100%); min-height: 0; border-radius: 24px; }
  .login-welcome { padding: 34px 38px; }
  .login-welcome h1 { margin: 16px 0 10px; font-size: 28px; }
  .login-welcome > p, .login-feature-list { display: none; }
  .login-card { padding: 38px; }
}
@media (max-width: 480px) {
  .view-login { padding: 14px; align-items: start; overflow: auto; }
  .login-shell { margin: 14px 0; border-radius: 20px; }
  .login-welcome { padding: 26px 24px; }
  .login-welcome h1 { font-size: 23px; }
  .login-card { padding: 30px 24px 24px; }
}

.ai-mode-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}
.ai-mode-bar label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 500; }
.ai-mode-bar input { accent-color: var(--primary); }
.ai-mode-bar .badge { margin-left: auto; }
.admin-table-wrap { overflow-x: auto; }
.admin-quota-input { width: 90px; padding: 7px 9px; }
.admin-config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: center; }
.admin-config-grid .checkbox { align-self: center; }
@media (max-width: 720px) {
  .admin-config-grid { grid-template-columns: 1fr; }
  .ai-mode-bar .badge { width: 100%; margin-left: 0; }
}

/* ========== 应用主体 ========== */
.view-app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  width: var(--sidebar-w);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
  background-size: cover; background-position: center;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.3);
}
.brand-title { font-weight: 600; font-size: 14px; }
.brand-sub { color: var(--muted); font-size: 11px; }

.nav { padding: 10px 8px; flex: 1; overflow: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 2px;
  transition: background .12s, color .12s;
}
.nav-item i { width: 16px; height: 16px; }
.nav-item:hover { background: #f1f5f9; color: var(--text); }
.nav-item.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}
.sidebar-foot { padding: 10px 12px; border-top: 1px solid var(--border); }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: grid; place-items: center;
  font-weight: 600; font-size: 12px;
  flex-shrink: 0;
}
.user-meta { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-school { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  position: sticky; top: 0; z-index: 10;
}
.crumbs { font-weight: 600; font-size: 14px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-right .select { padding: 6px 10px; }
.topbar-left { display: none; align-items: center; gap: 8px; }

.page { display: none; padding: 18px 20px 40px; }
.page.active { display: block; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .view-app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; height: 100vh;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 60;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.1);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.35);
    z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
  .topbar { padding: 0 12px; }
  .page { padding: 14px 12px 40px; }
  .topbar-left { display: flex; align-items: center; gap: 8px; }
}

/* ========== Sidebar backdrop (移动端) ========== */
.sidebar-backdrop { display: none; }

/* ========== 卡片 ========== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  margin-bottom: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.card:hover { border-color: var(--border-strong); }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
.card-title { font-weight: 600; font-size: 14px; }
.card-hint { color: var(--muted); font-size: 12px; }
.card-link { color: var(--primary-dark); font-size: 12px; cursor: pointer; }
.card-link:hover { text-decoration: underline; }
.card-body { padding: 14px 16px; }
.empty { color: var(--dim); padding: 18px 4px; text-align: center; font-size: 13px; }

.stat {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  transition: transform .15s, box-shadow .15s;
}
.stat:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06); }
.stat .stat-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  flex-shrink: 0;
  background: #f1f5f9;
  color: var(--muted);
}
.stat .stat-icon i { width: 22px; height: 22px; }
.stat .stat-body { flex: 1; min-width: 0; }
.stat .stat-label {
  color: var(--muted); font-size: 12px; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 2px;
}
.stat .stat-value {
  font-size: 24px; font-weight: 700; letter-spacing: -0.5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat .stat-sub { color: var(--muted); font-size: 11.5px; margin-top: 3px; line-height: 1.4; }

/* 各 stat 卡片主题色 */
.stat.stat-today .stat-icon { background: #e0f2fe; color: #0284c7; }
.stat.stat-hw .stat-icon { background: #fef3c7; color: #d97706; }
.stat.stat-att .stat-icon { background: #d1fae5; color: #059669; }

.row { display: flex; align-items: center; }
.row.gap { gap: 8px; flex-wrap: wrap; }
.row.wrap { flex-wrap: wrap; }

/* ========== 课表 ========== */

/* ========== Dashboard 课程/作业列表卡片 ========== */
.cls-item, .hw-mini {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s;
  margin-bottom: 2px;
}
.cls-item:hover, .hw-mini:hover { background: #f8fafc; }
.cls-item:last-child, .hw-mini:last-child { margin-bottom: 0; }
.cls-item.is-past { opacity: 0.55; }
.cls-item.is-past .cls-name, .cls-item.is-past .cls-meta, .cls-item.is-past .cls-time { text-decoration: line-through; }
.cls-item.is-past:hover { opacity: 0.8; }
.cls-item.is-next {
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 8%, white), transparent);
  border-left: 2px solid var(--primary);
  padding-left: 10px;
}
.cls-item .done-mark {
  display: inline-block; color: var(--good); font-size: 12px;
  font-weight: 700; margin-left: 4px;
  text-decoration: none;
}
.cls-time {
  display: flex; flex-direction: column; align-items: center;
  min-width: 50px;
  padding: 4px 8px;
  background: #f1f5f9;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.cls-time .t1 { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.1; }
.cls-time .t2 { font-size: 11px; color: var(--muted); line-height: 1.1; margin-top: 1px; }
.cls-bar { width: 3px; align-self: stretch; border-radius: 2px; flex-shrink: 0; }
.cls-body { flex: 1; min-width: 0; }
.cls-name { font-size: 13px; font-weight: 500; color: var(--text); }
.cls-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

.hw-mini-time {
  display: flex; flex-direction: column; align-items: center;
  min-width: 56px;
  padding: 4px 8px;
  background: #f1f5f9;
  border-radius: 6px;
  flex-shrink: 0;
}
.hw-mini-time .d { font-size: 11px; color: var(--muted); line-height: 1.2; }
.hw-mini-time .h { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.2; margin-top: 1px; }
.hw-mini-body { flex: 1; min-width: 0; }
.hw-mini-name { font-size: 13px; font-weight: 500; color: var(--text); display: flex; align-items: center; gap: 6px; }
.hw-mini-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ========== 课表周视图：精致 cell ========== */
.sch-week {
  display: grid;
  grid-template-columns: 64px repeat(7, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.sch-week .hd, .sch-week .cell, .sch-week .time-col {
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
  min-height: 64px;
}
.sch-week .hd {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  font-weight: 600;
  text-align: center;
  padding: 10px 6px;
  font-size: 12.5px;
  color: var(--text);
  letter-spacing: 0.2px;
}
.sch-week .hd .hd-date { color: var(--muted); font-weight: 500; font-size: 11px; margin-left: 2px; }
.sch-week .hd .badge.today { background: #0ea5e9; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 8px; margin-left: 4px; vertical-align: 1px; }
.sch-week .hd.hd-empty { color: var(--muted); font-weight: 500; font-size: 12px; letter-spacing: 0.2px; }
.sch-week .cell.cell-empty { background: #fafbfc; }
.sch-week .time-col {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 10px 8px 8px;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
  position: relative;
}
.sch-week .time-col::after {
  content: '';
  position: absolute;
  left: 50%; top: 10px; bottom: 10px;
  width: 1px;
  background: #e2e8f0;
  transform: translateX(-50%);
  opacity: 0.6;
}
.sch-week .tc-num { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1; z-index: 1; }
.sch-week .tc-time { font-size: 10.5px; color: var(--muted); line-height: 1.1; margin-top: 4px; z-index: 1; }
.sch-week .cell {
  background: #fff;
  vertical-align: top;
  padding: 6px;
  position: relative;
  transition: background .12s;
}
.sch-week .cell:hover { background: #fafbfc; }
.sch-week .ev {
  background: color-mix(in srgb, var(--c) 10%, white);
  border-left: 3px solid var(--c);
  border-radius: 6px;
  padding: 6px 8px 6px 9px;
  margin-bottom: 4px;
  font-size: 11.5px;
  line-height: 1.3;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.sch-week .ev:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--c) 25%, transparent);
}
.sch-week .ev:last-child { margin-bottom: 0; }
.sch-week .ev-name {
  font-weight: 600;
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sch-week .ev-time {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
  font-weight: 500;
}
.sch-week .ev-meta {
  color: color-mix(in srgb, var(--c) 65%, var(--muted));
  font-size: 10.5px;
  margin-top: 3px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sch-week .ev-merged {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}
.sch-week .ev-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--c) 22%, white);
  color: color-mix(in srgb, var(--c) 75%, #1e293b);
  margin-top: 4px;
  letter-spacing: 0.2px;
  align-self: flex-start;
}
/* ev 是 sch-week 的直接 grid item，z-index 浮在 cell 之上 */
.sch-week .ev { z-index: 2; position: relative; }

/* ========== 课表 list 视图：横排卡片 ========== */
.sch-day { background: #fff; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03); }
.sch-day.is-today { border-color: #bae6fd; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.08), 0 1px 2px rgba(15, 23, 42, 0.03); }
.sch-day-head {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 11px 16px;
  font-weight: 500; font-size: 13px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #eef2f7;
}
.sch-day-head b { color: var(--text); font-weight: 700; font-size: 13.5px; letter-spacing: 0.5px; }
.sch-day.is-today .sch-day-head { background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%); }
.sch-day-body { padding: 10px 12px; }
.sch-row {
  display: flex; align-items: stretch; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
  background: #fff;
  border: 1px solid #eef2f7;
  transition: background .12s, border-color .12s, transform .12s;
  cursor: pointer;
}
.sch-row:hover {
  background: #fafbfc;
  border-color: color-mix(in srgb, var(--c) 35%, var(--border));
}
.sch-row:last-child { margin-bottom: 0; }
.sch-row .sch-time {
  min-width: 56px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 2px 0;
  border-right: 1px dashed #eef2f7;
  padding-right: 10px;
}
.sch-row .sch-time > div:first-child { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.1; }
.sch-row .sch-time > div:last-child { font-size: 11px; color: var(--muted); margin-top: 3px; }
.sch-row .sch-bar { width: 4px; align-self: stretch; background: var(--c); border-radius: 3px; flex-shrink: 0; }
.sch-row .sch-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.sch-row .sch-name { font-size: 14px; font-weight: 600; color: var(--text); }
.sch-row .sch-name .badge.merged { background: color-mix(in srgb, var(--c) 18%, white); color: color-mix(in srgb, var(--c) 70%, #1e293b); font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 8px; margin-left: 6px; vertical-align: 2px; letter-spacing: 0.2px; }
.sch-row .sch-meta { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.sch-row .sch-meta .meta-dot { color: #cbd5e1; }



.sch-list .ev { display: none; } /* 旧样式废弃 */

/* ========== 表格 ========== */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.tbl th { background: #f8fafc; font-weight: 600; color: var(--muted); font-size: 12px; }
.tbl tbody tr:hover { background: #f8fafc; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .name { font-weight: 500; }
.tbl .meta { color: var(--muted); font-size: 11px; }

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  background: #eef2f7;
  color: var(--muted);
}
.badge.good { background: var(--good-soft); color: #047857; }
.badge.warn { background: var(--warn-soft); color: #b45309; }
.badge.bad { background: var(--bad-soft); color: #b91c1c; }
.badge.info { background: var(--primary-soft); color: var(--primary-dark); }

/* ========== 出勤 ========== */
.big-num { font-size: 38px; font-weight: 700; letter-spacing: -1px; }
.att-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2f7;
  margin-top: 12px;
}
.att-bar .seg-good { background: var(--good); }
.att-bar .seg-warn { background: var(--warn); }
.att-bar .seg-bad { background: var(--bad); }
.att-pie { display: flex; justify-content: center; padding: 8px 0 14px; }
.legend { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.legend li { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.legend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ========== AI ========== */
.ai-output {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 280px;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.ai-output.empty { color: var(--dim); font-style: italic; }

/* ========== Segmented control ========== */
.seg {
  display: inline-flex;
  flex-shrink: 0;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
  border: 1px solid #e2e8f0;
}
.seg-btn {
  padding: 5px 14px;
  border: none;
  background: transparent;
  border-radius: 5px;
  cursor: pointer;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  transition: color .12s;
  display: inline-flex; align-items: center; gap: 5px;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
  font-weight: 600;
}

/* ========== 抽屉 ========== */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.35); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 480px; max-width: 100vw;
  background: #fff;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.1);
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.drawer-title { font-weight: 600; }
.drawer-body { flex: 1; overflow: auto; overflow-x: hidden; padding: 16px; }

/* ========== 提示 ========== */
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 200;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: toast-in .15s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 6px); } }

/* ========== 节次编辑器 ========== */
.slots-editor { display: grid; gap: 6px; margin-bottom: 10px; }
.slot-row { display: grid; grid-template-columns: 50px 1fr 1fr 32px; gap: 8px; align-items: center; }
.slot-row input { padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 4px; }
.slot-row .num { background: #f1f5f9; text-align: center; color: var(--muted); }

/* ========== 文件上传 ========== */
.file-zone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}
.file-zone:hover { background: #f8fafc; }
.file-list { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13px; }
.file-list li { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.file-list .name { flex: 1; }
.file-list .size { color: var(--muted); font-size: 11px; }
.file-list .x { color: var(--bad); cursor: pointer; }

/* ========== 作业详情抽屉 ========== */
.hw-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.hw-card .hw-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  margin-bottom: 12px;
}
.hw-card .hw-title {
  font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -0.3px;
  color: var(--text);
}
.hw-card .hw-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 12px; color: var(--muted);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}
.hw-card .hw-meta span {
  display: inline-flex; align-items: center; gap: 4px;
}
.hw-card .hw-meta i { width: 13px; height: 13px; opacity: 0.7; }
.hw-card .hw-section { margin-top: 14px; }
.hw-card .hw-section:first-child { margin-top: 0; }
.hw-section-title {
  font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.hw-content {
  font-size: 13px; line-height: 1.7; white-space: pre-wrap;
  color: var(--text);
  word-break: break-word;
}
.hw-attach {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 4px;
}
.hw-attach li {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.hw-attach li i { width: 14px; height: 14px; color: var(--primary-dark); flex-shrink: 0; min-width: 14px; }
.hw-attach li .name {
  flex: 1 1 0; min-width: 0; color: var(--text); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 13px;
}
.hw-attach li .name:hover { color: var(--primary-dark); text-decoration: underline; }
.hw-attach li .size {
  flex: 0 1 auto; min-width: 0;
  color: var(--muted); font-size: 11px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: right;
}
.hw-attach li .size:empty { display: none; }

.hw-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.hw-stat {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
}
.hw-stat .v { font-size: 16px; font-weight: 600; margin-top: 2px; color: var(--text); }
.hw-stat .dim { font-size: 11px; }

.file-zone { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.file-zone i { width: 22px; height: 22px; color: var(--dim); }


/* ========== 课表响应式 ========== */
@media (max-width: 720px) {
  .sch-week {
    grid-template-columns: 48px repeat(7, minmax(0, 1fr));
    font-size: 11px;
  }
  .sch-week .hd { padding: 6px 2px; font-size: 11px; }
  .sch-week .hd .hd-date { display: block; margin-left: 0; font-size: 10px; }
  .sch-week .hd .badge.today { display: inline-block; margin-left: 0; margin-top: 2px; }
  .sch-week .time-col { padding: 6px 4px; }
  .sch-week .tc-num { font-size: 11px; }
  .sch-week .tc-time { font-size: 9.5px; margin-top: 2px; }
  .sch-week .cell { padding: 3px; }
  .sch-week .ev {
    padding: 4px 5px 4px 6px;
    font-size: 10.5px;
    line-height: 1.25;
    margin-bottom: 3px;
  }
  .sch-week .ev-name { font-size: 11px; }
  .sch-week .ev-meta { font-size: 9.5px; margin-top: 1px; }
  /* 窄屏让工具栏行换行 */
  .page .card-head .row.gap { flex-wrap: wrap; }
  .page .card-head .row.gap .btn, .page .card-head .row.gap .input { font-size: 12px; padding: 5px 10px; }
  .sch-day-head { padding: 9px 12px; font-size: 12.5px; }
  .sch-day-body { padding: 8px 10px; }
  .sch-row { padding: 8px 10px; gap: 10px; }
  .sch-row .sch-time { min-width: 48px; padding-right: 8px; }
  .sch-row .sch-time > div:first-child { font-size: 13px; }
  .sch-row .sch-time > div:last-child { font-size: 10.5px; }
  .sch-row .sch-name { font-size: 13.5px; }
  .sch-row .sch-meta { font-size: 11.5px; }
}

@media (max-width: 480px) {
  .sch-week { grid-template-columns: 40px repeat(7, minmax(0, 1fr)); }
  .sch-week .hd { font-size: 10px; padding: 4px 1px; }
  .sch-week .tc-num { font-size: 10px; }
  .sch-week .tc-time { display: none; }
  .sch-week .cell { min-height: 56px; padding: 2px; }
  .sch-week .ev { padding: 3px 4px; font-size: 10px; }
  .sch-week .ev-name { font-size: 10.5px; -webkit-line-clamp: 2; }
  .sch-week .ev-meta { display: none; }
}

/* ========== 作业全屏页 ========== */
.view-hw {
  position: fixed; inset: 0; z-index: 200;
  background: #f8fafc;
  display: flex; flex-direction: column;
}
.hw-page-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.hw-page-title {
  flex: 1; font-size: 15px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hw-page-body {
  flex: 1; overflow: auto;
  padding: 20px 24px;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.hw-page-body .hw-card { max-width: none; }

/* drawer 头部右侧"独立页打开"按钮 */
.drawer-head-actions {
  display: flex; align-items: center; gap: 4px;
}
.drawer-head-actions .icon-btn { color: var(--muted); }
.drawer-head-actions .icon-btn:hover { color: var(--primary); background: #f1f5f9; }



/* ========== 课程详情弹窗 ========== */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; }
.modal-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45); animation: fadeIn .15s ease-out; }
.modal-panel {
  position: relative; z-index: 1;
  background: #fff; border-radius: 14px;
  width: 440px; max-width: calc(100vw - 32px);
  max-height: calc(100vh - 80px);
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
  animation: popIn .18s ease-out;
  overflow: hidden;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.95) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  flex: 1; font-size: 15px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.modal-title::before {
  content: ''; width: 4px; height: 18px; border-radius: 2px;
  background: var(--c, var(--primary));
}
.modal-body { flex: 1; overflow: auto; padding: 18px; }
.cm-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #eef2f7;
  font-size: 13px;
}
.cm-row:last-child { border-bottom: none; }
.cm-row .cm-label {
  display: flex; align-items: center; gap: 5px;
  width: 64px; flex-shrink: 0;
  color: var(--muted); font-size: 12px;
}
.cm-row .cm-label i { width: 14px; height: 14px; }
.cm-row .cm-value { flex: 1; color: var(--text); }
.cm-time-block {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: 8px;
  font-variant-numeric: tabular-nums;
}
.cm-time-block .cm-time-main { font-size: 18px; font-weight: 700; color: var(--text); }
.cm-time-block .cm-time-arrow { color: var(--muted); }
.cm-time-block .cm-time-meta { font-size: 12px; color: var(--muted); }
.cm-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cm-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; background: #f1f5f9;
  border-radius: 999px; font-size: 11.5px; color: var(--muted);
}
.cm-tag i { width: 12px; height: 12px; }

/* ========== 云盘 ========== */
.cloud-hero {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 28px 30px; margin-bottom: 16px; overflow: hidden;
  color: #fff; border-radius: 18px;
  background: radial-gradient(circle at 90% 10%, rgba(125,211,252,.45), transparent 30%), linear-gradient(135deg, #172554, #1d4ed8 62%, #0891b2);
  box-shadow: 0 18px 45px rgba(29,78,216,.18);
}
.cloud-kicker { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .15em; opacity: .76; }
.cloud-hero h2 { margin: 0 0 7px; font-size: 24px; line-height: 1.25; }
.cloud-hero p { margin: 0; max-width: 620px; font-size: 13px; opacity: .76; }
.cloud-hero .btn { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(8px); }
.cloud-hero .btn:hover { background: rgba(255,255,255,.2); }
.cloud-search { width: 235px; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.96); }
.cloud-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.cloud-summary > div { display: flex; align-items: baseline; gap: 7px; padding: 14px 18px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.cloud-summary b { font-size: 22px; color: var(--text); }
.cloud-summary span { font-size: 12px; color: var(--muted); }
.cloud-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.cloud-course { overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 15px; box-shadow: 0 4px 18px rgba(15,23,42,.04); }
.cloud-course-head { display: flex; align-items: center; gap: 11px; padding: 17px 18px; border-bottom: 1px solid #eef2f7; }
.cloud-course-dot { width: 10px; height: 38px; border-radius: 8px; background: var(--course-color); }
.cloud-course-head h3 { margin: 0 0 2px; font-size: 16px; }
.cloud-course-head span:last-child { color: var(--muted); font-size: 11px; }
.cloud-teacher { padding: 13px 15px 16px; }
.cloud-teacher + .cloud-teacher { border-top: 1px dashed #e2e8f0; }
.cloud-teacher-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; }
.cloud-teacher-head > span:last-child { margin-left: auto; color: var(--muted); }
.cloud-avatar { display: grid; place-items: center; width: 25px; height: 25px; color: var(--course-color); background: color-mix(in srgb, var(--course-color) 12%, white); border-radius: 8px; font-weight: 700; }
.cloud-files { display: grid; gap: 7px; }
.cloud-file { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; text-align: left; color: inherit; background: #f8fafc; border: 1px solid transparent; border-radius: 10px; cursor: pointer; transition: .15s ease; }
.cloud-file:hover { transform: translateY(-1px); background: #fff; border-color: color-mix(in srgb, var(--course-color) 32%, #e2e8f0); box-shadow: 0 5px 14px rgba(15,23,42,.06); }
.cloud-file-type { display: grid; place-items: center; flex: 0 0 39px; height: 39px; color: #1d4ed8; background: #dbeafe; border-radius: 9px; font-size: 9px; font-weight: 800; }
.cloud-file-main { min-width: 0; flex: 1; }
.cloud-file-main b, .cloud-file-main small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-file-main b { margin-bottom: 3px; font-size: 12.5px; font-weight: 600; }
.cloud-file-main small { color: var(--muted); font-size: 10.5px; }
.cloud-file > i { width: 15px; color: #94a3b8; }
.cloud-error { grid-column: 1 / -1; display: flex; justify-content: center; gap: 16px; padding: 48px 24px; text-align: left; background: #fff; border: 1px dashed #cbd5e1; border-radius: 15px; }
.cloud-error > i { width: 30px; height: 30px; color: #94a3b8; }
.cloud-error p { margin: 6px 0 14px; color: var(--muted); font-size: 12px; }
@media (max-width: 900px) {
  .cloud-hero { align-items: stretch; flex-direction: column; }
  .cloud-groups { grid-template-columns: 1fr; }
  .cloud-search { width: 100%; box-sizing: border-box; }
}
@media (max-width: 560px) {
  .cloud-hero { padding: 22px 18px; border-radius: 14px; }
  .cloud-hero h2 { font-size: 20px; }
  .cloud-summary { grid-template-columns: 1fr; }
}
