/* ==========================================================================
   Foxboss の课程表 · 网页版样式
   两套主题：深色（玻璃拟态，与 iOS 版一致）/ 浅色（清爽白底）
   ========================================================================== */

/* ---------- 主题变量 ---------- */

:root {
  /* 网格几何：节次列宽、行高、行间距、列间距 */
  --row-h: 64px;
  --row-gap: 6px;
  --col-gap: 6px;
  --axis-w: 54px;
  --radius: 14px;
  --radius-lg: 22px;

  --accent: #6C9BFF;
  --lane: rgba(108, 155, 255, 0.12);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: linear-gradient(135deg, #070A16 0%, #0C1330 55%, #150B28 100%);
  --orb-1: rgba(43, 91, 255, 0.55);
  --orb-2: rgba(138, 43, 226, 0.45);
  --orb-3: rgba(0, 194, 255, 0.35);
  --text: #F2F5FF;
  --text-2: #A9B4D0;
  --text-3: #6E7893;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --stroke-top: rgba(255, 255, 255, 0.28);
  --stroke-bottom: rgba(255, 255, 255, 0.07);
  --divider: rgba(169, 180, 208, 0.20);
  --shadow: rgba(0, 0, 0, 0.55);
  --shadow-sm: rgba(0, 0, 0, 0.35);
  --accent: #6C9BFF;
  --lane: rgba(108, 155, 255, 0.12);
  --danger: #FF6B6B;
  /* 调课 / 假期标记与提示文字：深色底上沿用 iOS 版的亮色 */
  --tag-makeup: #FF9800;
  --tag-holiday: #F44336;
  --warn: #FF9800;
  --danger-bg: rgba(255, 107, 107, 0.12);
  --danger-bd: rgba(255, 107, 107, 0.30);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: linear-gradient(135deg, #EAF1FF 0%, #F7F2FF 55%, #E9F7FF 100%);
  --orb-1: rgba(108, 139, 255, 0.42);
  --orb-2: rgba(192, 140, 255, 0.34);
  --orb-3: rgba(98, 216, 255, 0.30);
  --text: #141824;
  --text-2: #4A5266;
  --text-3: #6C7486;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --stroke-top: rgba(255, 255, 255, 0.95);
  --stroke-bottom: rgba(159, 178, 214, 0.35);
  --divider: rgba(74, 82, 102, 0.18);
  --shadow: rgba(42, 58, 96, 0.18);
  --shadow-sm: rgba(42, 58, 96, 0.12);
  --accent: #3E6BFA;
  --lane: rgba(62, 107, 250, 0.10);
  --danger: #D93025;
  /* 浅色底上要压深一档，否则橙字/红字在白玻璃上看不清 */
  --tag-makeup: #E06C00;
  --tag-holiday: #D42A20;
  --warn: #C2410C;
  --danger-bg: rgba(217, 48, 37, 0.08);
  --danger-bd: rgba(217, 48, 37, 0.26);
}

@media (max-width: 720px) {
  :root {
    --row-h: 54px;
    --row-gap: 5px;
    --col-gap: 4px;
    --axis-w: 40px;
    --radius: 11px;
    --radius-lg: 18px;
  }
}

/* ---------- 基础 ---------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  transition: color 0.25s ease;
}

/* 背景柔光斑：用径向渐变，避免大面积高斯模糊 */
.orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.orbs i {
  position: absolute;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
}
.orbs i:nth-child(1) {
  top: -14vw; left: -10vw;
  background: radial-gradient(circle, var(--orb-1) 0%, transparent 68%);
}
.orbs i:nth-child(2) {
  top: 30vh; right: -16vw;
  background: radial-gradient(circle, var(--orb-2) 0%, transparent 68%);
}
.orbs i:nth-child(3) {
  bottom: -18vw; left: 20vw;
  background: radial-gradient(circle, var(--orb-3) 0%, transparent 68%);
}

h1, h2, h3 { margin: 0; font-weight: 700; }

/* ---------- 顶栏 ---------- */

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 20px 10px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), #8A6CFF);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 16px rgba(62, 107, 250, 0.35);
}

.brand-text h1 { font-size: 18px; letter-spacing: 0.2px; }
.brand-text p { margin: 2px 0 0; font-size: 12px; color: var(--text-3); }

.topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.account-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
  padding-right: 2px;
}
.account-badge b { font-size: 13px; }
.account-badge em {
  font-size: 11px;
  font-style: normal;
  color: var(--text-3);
}

/* ---------- 登录页 ---------- */

.login-view {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 64px;
}
.login-view[hidden] { display: none; }

.login-card {
  width: min(400px, 100%);
  padding: 30px 26px 22px;
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  margin-bottom: 24px;
}
.login-brand .logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 18px;
  margin-bottom: 8px;
}
.login-brand h1 { font-size: 20px; }
.login-brand p { margin: 0; font-size: 12px; color: var(--text-3); }

#loginForm { display: flex; flex-direction: column; gap: 15px; }
.login-submit { padding: 11px 14px; font-size: 14px; margin-top: 3px; }

/* 登录方式的两个面板：各自内部沿用表单的纵向间距 */
.login-panel { display: flex; flex-direction: column; gap: 15px; }
/* .login-panel / .seg / .field 都带 display，需要显式压过 hidden（登录卡片内限定作用域） */
.login-card .login-panel[hidden],
.login-card .seg[hidden],
.login-card .field[hidden] { display: none; }

.login-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 12.5px;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid var(--danger-bd);
}
.login-error[hidden] { display: none; }

.login-tip {
  margin: 18px 0 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-3);
}

/* ---------- 布局 ---------- */

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  background: var(--glass);
  border: 1px solid var(--stroke-bottom);
  border-top-color: var(--stroke-top);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}

/* ---------- 按钮 / 表单控件 ---------- */

.btn {
  appearance: none;
  border: 1px solid var(--stroke-bottom);
  border-top-color: var(--stroke-top);
  border-radius: 12px;
  background: var(--glass);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:hover:not(:disabled) { background: var(--glass-strong); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #7C6BFF);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(62, 107, 250, 0.3);
}
.btn.ghost { background: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--glass); }
.btn.danger { color: var(--danger); }
.btn.icon { width: 34px; height: 34px; padding: 0; font-size: 16px; line-height: 1; }
.btn.small { padding: 5px 10px; font-size: 12px; border-radius: 9px; }
.btn.wide { width: 100%; justify-content: center; }

.input {
  width: 100%;
  appearance: none;
  border: 1px solid var(--stroke-bottom);
  border-radius: 11px;
  background: var(--glass);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  padding: 8px 11px;
}
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

select.input { cursor: pointer; }
html[data-theme="dark"] select.input option { background: #131A2C; color: var(--text); }

/* 开关 */
.switch {
  appearance: none;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: var(--glass);
  border: 1px solid var(--stroke-bottom);
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--text-3);
  transition: transform 0.2s ease, background 0.2s ease;
}
.switch:checked { background: var(--accent); border-color: transparent; }
.switch:checked::after { transform: translateX(18px); background: #fff; }

/* 分段控件 */
.seg {
  display: inline-flex;
  padding: 3px;
  gap: 3px;
  border-radius: 13px;
  background: var(--glass);
  border: 1px solid var(--stroke-bottom);
}
.seg.wide { display: flex; }
.seg-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 10px;
  cursor: pointer;
  flex: 1;
  transition: background 0.15s ease, color 0.15s ease;
}
.seg-btn.is-active {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(62, 107, 250, 0.28);
}

/* ---------- 下一节课 ---------- */

.next-card {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 14px 18px;
  border-left: 3px solid var(--c, var(--accent));
}
.next-label { font-size: 12px; color: var(--text-3); }
.next-count {
  font-size: 19px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.4px;
}
.next-course { font-size: 15px; font-weight: 700; }
.next-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.next-teacher { font-size: 12px; color: var(--text-3); }
.next-empty { font-size: 13px; color: var(--text-3); padding: 4px 0; }

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--c, var(--accent));
  background: var(--c-bg, var(--glass));
  border: 1px solid var(--c-bd, var(--stroke-bottom));
  white-space: nowrap;
}

/* ---------- 工具条 ---------- */

.toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
}
.toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
}

.weeknav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 4px;
}
.weeknav[hidden] { display: none; }
.week-label { font-size: 13px; color: var(--text-2); }
.week-label b { color: var(--text); font-size: 15px; }

/* ---------- 周视图网格 ---------- */

.panel { padding: 16px; }

.grid-scroll { overflow-x: auto; }

.grid {
  /* 天数越多、整表越宽；窄屏时可左右滑动 */
  min-width: calc(170px + var(--days, 5) * 80px);
}

.grid-head,
.grid-body {
  display: grid;
  grid-template-columns: var(--axis-w) repeat(var(--days, 5), minmax(0, 1fr));
  column-gap: var(--col-gap);
}

.grid-head {
  align-items: end;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--divider);
}

.gh-axis {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-align: center;
}

.gh-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.gh-day .weekday {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--glass);
  font-size: 13px;
  font-weight: 700;
}
.gh-day .date { font-size: 11px; color: var(--text-3); }
.gh-day .tag {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  padding: 1px 6px;
  border-radius: 999px;
}
.gh-day .tag-makeup { background: var(--tag-makeup); }
.gh-day .tag-holiday { background: var(--tag-holiday); }
.gh-day.is-today .weekday { background: var(--accent); color: #fff; }
.gh-day.is-today .date { color: var(--accent); }

.grid-body { align-items: start; }

/* 左侧节次时间轴 */
.axis {
  display: flex;
  flex-direction: column;
  gap: var(--row-gap);
}
.axis-cell {
  height: var(--row-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-radius: var(--radius);
  background: var(--glass);
  font-variant-numeric: tabular-nums;
}
.axis-cell .t-start { font-size: 9px; font-weight: 500; color: var(--text-2); }
.axis-cell .t-id { font-size: 13px; font-weight: 700; color: var(--text-2); }
.axis-cell .t-end { font-size: 9px; font-weight: 500; color: var(--text-3); }

/* 每天一列 */
.day {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--row-gap);
}
/* 今天整列铺一层极淡的底 */
.day.is-today::before {
  content: "";
  position: absolute;
  inset: -3px -2px;
  border-radius: 18px;
  background: var(--lane);
  z-index: 0;
}

.slot {
  position: relative;
  z-index: 1;
  height: var(--row-h);
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--stroke-bottom);
  opacity: 0.62;
}

/* 课程块：按起始节次与跨度绝对定位，正好压在空位格子上 */
.course {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  top: calc((var(--start) - 1) * (var(--row-h) + var(--row-gap)));
  height: calc(var(--span) * var(--row-h) + (var(--span) - 1) * var(--row-gap));
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 8px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 3px 6px var(--c-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  color: #fff;
  font: inherit;
  text-align: left;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
/* 课程改由管理员维护、学生端只读：保留悬停浮起，但不再给出可点击的暗示 */
.course:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px var(--c-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.c-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.c-foot { margin-top: auto; display: flex; flex-direction: column; }
.c-meta {
  font-size: 10px;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.c-period { font-size: 10px; font-weight: 600; opacity: 0.72; }

.hint {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 12px 2px 0;
  font-size: 12px;
  color: var(--text-3);
}
.hint[hidden] { display: none; }

/* 本周概览：与 iOS / macOS 同一口径（WeekStats）的统计行 */
.week-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 12px 2px 0;
  font-size: 12.5px;
  color: var(--text-2);
}
.week-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.week-stats[hidden] { display: none; }

/* ---------- 日视图 ---------- */

.day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--divider);
}
.day-title h3 { font-size: 19px; }
.day-title p { margin: 3px 0 0; font-size: 12px; color: var(--text-2); }
.day-title .makeup-note { color: var(--warn); font-weight: 600; }
.day-head .input { width: auto; }

.day-list { display: flex; flex-direction: column; gap: 10px; }

.day-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--stroke-bottom);
  border-left: 3px solid var(--c);
  border-radius: 16px;
  background: var(--glass);
  color: var(--text);
  font: inherit;
  text-align: left;
  transition: transform 0.15s ease, background 0.15s ease;
}
.day-row:hover { background: var(--glass-strong); }

.dr-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 52px;
  flex-shrink: 0;
}
.dr-time b { font-size: 14px; font-variant-numeric: tabular-nums; }
.dr-time i { width: 2px; height: 16px; border-radius: 1px; margin: 2px 0; }
.dr-time em {
  font-size: 11px;
  font-style: normal;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.dr-main { flex: 1; min-width: 0; }
.dr-name { display: block; font-size: 15px; font-weight: 700; }
.dr-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--text-2); }

.dr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.dr-teacher { font-size: 11px; color: var(--text-3); }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 40px 20px;
  text-align: center;
}
.empty strong { font-size: 15px; }
.empty span { font-size: 12px; color: var(--text-3); }

/* ---------- 页脚 ---------- */

.foot {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 40px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

/* ---------- 设置抽屉 ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(2px);
}
.scrim[hidden] { display: none; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 21;
  width: min(400px, 92vw);
  height: 100vh;
  overflow-y: auto;
  padding: 20px;
  background: var(--glass-strong);
  border-left: 1px solid var(--stroke-bottom);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow: -16px 0 40px var(--shadow);
  animation: slide-in 0.22s ease;
}
html[data-theme="dark"] .drawer { background: rgba(14, 19, 36, 0.92); }
html[data-theme="light"] .drawer { background: rgba(247, 250, 255, 0.94); }
.drawer[hidden] { display: none; }

@keyframes slide-in {
  from { transform: translateX(24px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.drawer-head h2 { font-size: 17px; }

.drawer-body { display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.field.row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.field.row > label { font-size: 13px; }

.rule-list {
  margin: 0;
  padding: 8px 12px;
  list-style: none;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--stroke-bottom);
  max-height: 190px;
  overflow-y: auto;
  font-size: 12px;
}
.rule-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}
.rule-list li + li { border-top: 1px solid var(--stroke-bottom); }
.rule-list li span { color: var(--text-2); font-variant-numeric: tabular-nums; }
.rule-list li em { font-style: normal; color: var(--text-3); text-align: right; }
.rule-list li.muted { color: var(--text-3); justify-content: flex-start; }

/* ---------- 课程编辑弹窗（改动只写本机） ---------- */

.modal {
  position: fixed;
  z-index: 22;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  border: 1px solid var(--stroke-bottom);
  -webkit-backdrop-filter: blur(26px) saturate(170%);
  backdrop-filter: blur(26px) saturate(170%);
  box-shadow: 0 24px 60px var(--shadow);
}
html[data-theme="dark"] .modal { background: rgba(14, 19, 36, 0.96); }
html[data-theme="light"] .modal { background: rgba(247, 250, 255, 0.98); }
.modal[hidden] { display: none; }

.modal-body { display: flex; flex-direction: column; gap: 14px; }

.modal-note {
  margin: 0;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--glass);
  border: 1px solid var(--stroke-bottom);
}

.field.row-2,
.field.row-3 {
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
}
.field.row-2 > .field,
.field.row-3 > .field { flex: 1; min-width: 0; }

.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.modal-actions .spacer { flex: 1; }

.drawer-actions { display: flex; flex-direction: column; gap: 8px; }

/* 课程块：可点击编辑；本机改过的会打「本机」标记 */
.course.is-editable { cursor: pointer; }
.course.is-editable:hover { transform: translateY(-1px); filter: brightness(1.06); }
.course.is-local { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 6px 16px var(--c-shadow); }
.c-local {
  font-style: normal;
  font-size: 9px;
  line-height: 1;
  padding: 2px 4px;
  margin-left: 5px;
  border-radius: 5px;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 560px) {
  .next-meta { margin-left: 0; }
  .topbar { padding: 16px 14px 8px; }
  .wrap { padding: 6px 14px 32px; }
  .foot { padding: 0 14px 32px; }
  .account-badge em { display: none; }
  .login-card { padding: 24px 20px 18px; }
}
