/* 航前一刻 · 改版（redesign 分支）
   手机优先：顶部只有导航（一级：航班提醒 / 提醒记录 / 人员；二级：日期、组别），没有标题栏和底部标签栏。
   玻璃质感参考 iOS：近不透明的浅底 + 四层阴影（外投影两层、内侧上高光、内侧下暗边），
   不用大面积 backdrop-filter —— 手机上滚动时每帧重算模糊是掉帧的主要来源。
   动效只用 transform / opacity；选中块用带一点回弹的曲线滑过去。 */

:root {
  color-scheme: light;
  --bg: #edf0f4;
  --card: #fdfdfe;
  --card-2: #f4f6f9;          /* 卡片里的次级底：提醒条、分组框 */
  --card-hover: #f8f9fb;
  --sheet: #fdfdfe;
  --thumb: #ffffff;
  --ink: #1b2333;
  --ink-2: #3a4558;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: rgba(15, 23, 42, .07);
  --fill: rgba(118, 118, 128, .12);       /* iOS 系统填充色：分段控件轨道、次要按钮 */
  --fill-2: rgba(118, 118, 128, .07);
  --accent: #2563eb;
  --ok: #16a34a;
  --ok-bg: #dcfce7;
  --ok-ink: #15803d;
  --warn-bg: #fef3c7;
  --warn-ink: #92400e;
  --bad: #dc2626;
  --bad-bg: #fee2e2;
  --a: #2563eb; --a-bg: #eff6ff; --a-ink: #1e40af;
  --b: #16a34a; --b-bg: #f0fdf4; --b-ink: #166534;
  --c: #ca8a04; --c-bg: #fefce8; --c-ink: #854d0e;
  --d: #7c3aed; --d-bg: #f5f3ff; --d-ink: #5b21b6;

  --glass-bg: rgba(250, 250, 252, .94);
  --glass-shadow:
    0 -1px 6px rgba(0, 0, 0, .04),
    0 3px 12px rgba(0, 0, 0, .09),
    inset 0 1px 2px rgba(255, 255, 255, .8),
    inset 0 -1px 2px rgba(0, 0, 0, .07);
  --thumb-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04);
  --card-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 18px -8px rgba(15, 23, 42, .10);
  --glass-border: rgba(255, 255, 255, .5);

  --solid: #1f2937; --on-solid: #ffffff; --on-tag: #ffffff;
  --todo-bg: #e6eefc; --todo-ink: #1d4ed8;      /* 待提醒按钮：蓝色浅底，不再是一排黑胶囊 */
  --bad-ink: #b91c1c;
  --grab: #d4d8de; --track: #e3e8ef; --strike: #cbd5e1;
  --ck: #b45309; --ck-dot: #f59e0b; --star: #f59e0b;
  --rem-bar: #86efac;
  --bar-todo: #3b82f6; --bar-done: #22c55e; --bar-none: #cbd5e1;
  --prog-bg: #e2e6ec; --prog-i: #86d6a4; --prog-bg-on: #cfd6df;
  --badge-bg: #fde68a; --badge-ink: #92400e;
  --body-tint-1: rgba(37, 99, 235, .08); --body-tint-2: rgba(124, 58, 237, .05);

  --spring: cubic-bezier(.3, 1.35, .5, 1);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --sheet-ease: cubic-bezier(.32, .72, 0, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue",
          "Microsoft YaHei", system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top);
  --safe-b: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background:
    radial-gradient(600px 320px at 10% -60px, var(--body-tint-1), transparent 70%),
    radial-gradient(520px 300px at 100% 0, var(--body-tint-2), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
body.locked { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.ico { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
#more-btn .ico { fill: currentColor; stroke: none; }

/* 按下的即时反馈：所有可点的东西统一 */
.press, .seg button, .round, .rbtn, .btn-primary, .btn-sec, .chip-t, .pcard, .rc, .link {
  transition: transform 160ms var(--ease), background-color 200ms ease, color 200ms ease, opacity 200ms ease;
}
.press:active, .round:active, .rbtn:active, .btn-primary:active, .btn-sec:active, .chip-t:active,
.rc:active, .link:active { transform: scale(.95); }
.pcard:active { transform: scale(.985); }

/* ---------------------------------------------------------------- 玻璃 / 分段控件 */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.seg {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: 3px;
  border-radius: 999px;
  background: var(--fill);
  isolation: isolate;
}
.seg.glass { background: var(--glass-bg); padding: 4px; }
.seg > button {
  position: relative; z-index: 1;
  height: 32px; padding: 0 6px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.seg > button[aria-selected="true"] { color: var(--ink); }
.seg > button:disabled { opacity: .35; }
.seg > button small { font-size: 11px; font-weight: 500; color: var(--faint); }
.seg > button[aria-selected="true"] small { color: var(--accent); }
.seg > button .dot { width: 7px; height: 7px; border-radius: 50%; }
.seg .thumb {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0;
  border-radius: 999px;
  background: var(--thumb);
  box-shadow: var(--thumb-shadow);
  transition: transform 460ms var(--spring), width 460ms var(--spring);
  will-change: transform;
}
.seg.glass .thumb { top: 4px; bottom: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .10), 0 0 0 1px rgba(15, 23, 42, .04); }
.seg .thumb.no-anim { transition: none; }
.seg-main > button { height: 36px; font-size: 15px; }

/* ---------------------------------------------------------------- 顶部导航 */
.top {
  position: sticky; top: 0; z-index: 40;
  padding: calc(8px + var(--safe-t)) 12px 6px;
  background: linear-gradient(180deg, var(--bg) 0, var(--bg) 78%, transparent 100%);
  transition: transform 320ms var(--ease);
}
/* 手机上往下滑只收起一级导航那一行，日期 / 搜索那个岛和刻度条留在顶部 */
body.top-hidden .top { transform: translateY(calc(-1 * var(--nav-h, 60px))); }
.top-inner { display: flex; gap: 8px; align-items: center; }
.seg-main { flex: 1; }
.round {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-2);
}
.sub { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.sub:empty { display: none; }
.sub-row { display: flex; gap: 8px; align-items: center; }
.sub-row > .seg { flex: 1; }
.search {
  flex: 1; height: 38px; border-radius: 999px; border: 0;
  background: var(--fill); padding: 0 14px 0 36px; font-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center; background-size: 17px;
  outline: none;
}
.search:focus { background-color: rgba(118, 118, 128, .16); }
.date-range { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.date-range input {
  flex: 1; min-width: 0; height: 36px; border: 0; border-radius: 10px;
  background: var(--fill); padding: 0 10px; font-size: 15px; color: var(--ink);
}

.alerts { padding: 0 12px; display: flex; flex-direction: column; gap: 6px; }
.alerts:empty { display: none; }
.alert {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 9px 12px; border-radius: 14px;
  background: var(--bad-bg); color: var(--bad-ink); font-size: 13px; font-weight: 500;
}

/* ---------------------------------------------------------------- 页面 */
.page { padding: 6px 12px calc(32px + var(--safe-b)); }
.page.enter { animation: pageIn 300ms var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page.loading { opacity: .55; transition: opacity 160ms ease; }

.summary-line {
  display: flex; align-items: center; gap: 10px;
  padding: 2px 4px 10px; font-size: 13px; color: var(--muted);
}
.summary-line b { color: var(--ink); font-weight: 600; }
.summary-line .pct { font-size: 12px; font-weight: 600; color: var(--ok-ink); }
.summary-line .flt { flex: 0 1 300px; min-width: 0; }
.seg.mini { padding: 2px; }
.seg.mini > button { height: 28px; font-size: 13px; padding: 0 4px; }
.seg.mini > button small { font-size: 11px; margin-left: 1px; }
.seg.mini .thumb { top: 2px; bottom: 2px; }
.summary-line .spacer { flex: 1; }
.pbar { flex: 0 0 64px; height: 5px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.pbar i { display: block; height: 100%; border-radius: 3px; background: var(--ok); transition: width 500ms var(--ease); }

.sec-h {
  display: flex; align-items: baseline; gap: 8px;
  margin: 16px 4px 8px; font-size: 13px; font-weight: 600; color: var(--muted);
}
.sec-h:first-child { margin-top: 4px; }
.sec-h .n { font-weight: 500; color: var(--faint); }
.empty { text-align: center; color: var(--muted); padding: 64px 16px; font-size: 14px; }
.empty b { display: block; font-size: 16px; color: var(--ink-2); margin-bottom: 4px; }

.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }

/* ---------------------------------------------------------------- 航班甘特
   手机：每行两层 —— 上面「时间 航班号 航程 / 本队人员 + 按钮」，下面一条全宽时间轴；
   电脑：一行三列 —— 信息 | 时间轴 | 按钮 + 最近一条提醒。所有行共用顶部吸附的 00–24 刻度。 */
/* 每个航班一张卡片，卡片之间留空隙，一眼看清一班一班的边界 */
.gantt { display: flex; flex-direction: column; gap: 8px; }
.gr, .g-axis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "info act" "track track" "rems rems";
  column-gap: 10px;
}
.gr-flight, .tl-head, .gr .l2 > .lbl, .rems-full { display: none; }
.gr-rems { grid-area: rems; min-width: 0; }
.rems-snip {
  margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: var(--card-2); box-shadow: inset 2px 0 0 var(--rem-bar);
  font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rems-snip b { color: var(--ink); }
.rems-snip i { font-style: normal; color: var(--faint); }
.gr {
  padding: 12px 12px 12px 14px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease);
}
.gr:active { background: var(--card-2); transform: scale(.992); }
.gr-info { grid-area: info; min-width: 0; }
.gr-track { grid-area: track; position: relative; }
.gr-act { grid-area: act; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; min-width: 0; }

.gr .l1 { display: flex; align-items: baseline; gap: 4px 8px; min-width: 0; white-space: nowrap; }
.gr .l1 .t { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.gr .l1 .t .plus { font-size: 10px; font-weight: 600; color: var(--warn-ink); vertical-align: super; }
.gr .l1 .no { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.gr .l1 .route { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gr .l1 .tag { font-size: 11px; font-weight: 600; color: var(--warn-ink); background: var(--warn-bg); border-radius: 6px; padding: 0 5px; }
.gr .l2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; }
.gr .l2 .who-chip { font-size: 14.5px; font-weight: 650; padding: 1px 9px 1px 7px; }
.gr .l2 .who-chip .star { font-size: 10px; }
.gr .l2 .mark { font-size: 11px; padding: 1px 7px; }
.gr.st-muted .gr-info, .gr.st-none .gr-info { opacity: .55; }

/* 时间轴：一根淡细线 + 细胶囊航段 + 节点（空心橙点 = 签到，小白点 = 经停）；时刻写在线下面一行 */
.tl2 { position: relative; margin-top: 8px; }
.tl2-track {
  position: relative; height: 12px;
  background: linear-gradient(transparent calc(50% - .5px), var(--track) calc(50% - .5px), var(--track) calc(50% + .5px), transparent calc(50% + .5px));
}
.tl2-bot { position: relative; height: 15px; margin-top: 2px; font-size: 10.5px; line-height: 15px; color: var(--muted); }
.lab { position: absolute; top: 0; white-space: nowrap; letter-spacing: -.01em; }
.lab .plus { font-size: 8.5px; color: var(--warn-ink); vertical-align: super; margin-left: 1px; }
.lab.stop { color: var(--faint); }
.lab.ck-lab { color: var(--ck); font-weight: 600; }
.bar { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; }
.bar.over { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.b-todo { background: var(--bar-todo); }
.b-done { background: var(--bar-done); }
.b-muted, .b-none { background: var(--bar-none); }
.stop-dot, .ck-dot {
  position: absolute; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); z-index: 1;
}
.stop-dot { width: 5px; height: 5px; background: var(--card); }
.ck-dot { width: 9px; height: 9px; background: var(--card); box-shadow: inset 0 0 0 2px var(--ck-dot); }

/* 吸顶刻度 */
.g-axis {
  position: sticky; top: var(--stick, 0px); z-index: 20;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "track";
  padding: 6px 12px 6px 14px;
  margin: 0 -12px 2px; padding-left: 26px; padding-right: 24px;
  background: var(--bg);
  box-shadow: 0 6px 8px -8px rgba(15, 23, 42, .18);
  transition: top 320ms var(--ease);
}
.g-axis .gr-track { height: 14px; font-size: 10.5px; font-weight: 600; color: var(--faint); }
.g-axis .gr-track span { position: absolute; top: 0; transform: translateX(-50%); }
.g-axis .gr-track span:first-child { transform: none; }
.g-axis .gr-track span:last-child { transform: translateX(-100%); }

.g-sec {
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 6px 0; font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.g-sec:first-child { padding-top: 2px; }
.g-sec span { font-weight: 500; color: var(--faint); font-size: 12px; }

/* 行内按钮：手机上更小 */
.gr .rbtn { height: 30px; padding: 0 11px 0 9px; font-size: 12.5px; gap: 4px; }
.gr .rbtn .ico { width: 13px; height: 13px; }
.gr .rbtn.none { height: 22px; font-size: 11.5px; }

/* 状态按钮：没提醒 = 深色实心（最醒目）；已提醒 = 绿；免提醒 = 灰 */
.rbtn {
  flex: 0 0 auto;
  height: 34px; padding: 0 14px 0 12px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  background: var(--solid); color: var(--on-solid);
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, .45);
}
.rbtn .ico { width: 15px; height: 15px; stroke-width: 2.3; }
.rbtn.done { background: var(--ok-bg); color: var(--ok-ink); box-shadow: none; }
.rbtn.done .n { background: rgba(22, 163, 74, .16); border-radius: 999px; padding: 0 6px; font-size: 12px; }
.rbtn.muted { background: var(--fill); color: var(--muted); box-shadow: none; }
.rbtn.none { background: transparent; color: var(--faint); box-shadow: none; padding: 0 4px; font-weight: 500; }

/* 人：本队是组色胶囊 */
.who-chip {
  display: inline-flex; align-items: baseline; gap: 3px;
  padding: 3px 10px 3px 8px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  background: var(--fill-2); color: var(--ink-2);
}
.who-chip .star { color: var(--star); font-size: 12px; }
.who-chip .mk { font-size: 11.5px; font-weight: 600; opacity: .85; margin-left: 1px; }
.who-chip i { font-style: normal; font-size: 11.5px; font-weight: 500; opacity: .7; }
.who-chip[data-g="A"] { background: var(--a-bg); color: var(--a-ink); }
.who-chip[data-g="B"] { background: var(--b-bg); color: var(--b-ink); }
.who-chip[data-g="C"] { background: var(--c-bg); color: var(--c-ink); }
.who-chip[data-g="D"] { background: var(--d-bg); color: var(--d-ink); }
.dot[data-g="A"] { background: var(--a); } .dot[data-g="B"] { background: var(--b); }
.dot[data-g="C"] { background: var(--c); } .dot[data-g="D"] { background: var(--d); }

/* 变动标注 */
.marks { display: flex; flex-wrap: wrap; gap: 5px; }
.mark { display: inline-flex; gap: 4px; align-items: baseline; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; }
.mark em { font-style: normal; font-weight: 500; opacity: .8; }
.mark-add { background: var(--ok-bg); color: var(--ok-ink); }
.mark-time { background: var(--warn-bg); color: var(--warn-ink); }
.mark-del { background: var(--bad-bg); color: var(--bad-ink); }
.gone-box { background: var(--bad-bg); border-radius: 16px; padding: 10px 12px; margin-bottom: 10px; }
.gone-box .lbl { font-size: 12px; color: var(--bad-ink); font-weight: 600; margin-bottom: 6px; }
.gone-box .mark s { text-decoration-thickness: 1px; }

/* ---------------------------------------------------------------- 底部弹层 */
.scrim {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15, 23, 42, .28);
  opacity: 0; pointer-events: none;
  transition: opacity 320ms ease;
}
.scrim.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-height: calc(100% - 44px - var(--safe-t));
  display: flex; flex-direction: column;
  background: var(--sheet);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -10px 40px -12px rgba(15, 23, 42, .25);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform 460ms var(--sheet-ease), visibility 0s linear 460ms;
  will-change: transform;
}
.sheet.show { transform: translateY(0); visibility: visible; transition: transform 460ms var(--sheet-ease), visibility 0s; }
.sheet.dragging { transition: none; }
.sheet.tall { min-height: 70%; }
.sheet-grab { padding: 8px 0 2px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.sheet-grab i { width: 38px; height: 5px; border-radius: 3px; background: var(--grab); }
.sheet-head { display: flex; align-items: flex-start; gap: 8px; padding: 4px 16px 10px; touch-action: none; }
.sheet-title { flex: 1; min-width: 0; }
.sheet-title h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.sheet-title .sub-t { font-size: 13px; color: var(--muted); margin-top: 1px; }
.sheet-x, .sheet-back {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 32px;
  display: grid; place-items: center; background: var(--fill); color: var(--muted);
}
.sheet-x .ico, .sheet-back .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.sheet-body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 2px 16px 20px;
}
.sheet-foot {
  display: flex; gap: 10px;
  padding: 10px 16px calc(10px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: var(--sheet);
}
.sheet-foot > * { flex: 1; }

.blk { margin-top: 18px; }
.blk:first-child { margin-top: 6px; }
.blk > h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.blk > h4 .act { margin-left: auto; font-size: 13px; color: var(--accent); font-weight: 600; }
.group-box { background: var(--card-2); border-radius: 16px; padding: 4px 14px; }
.kv { display: flex; gap: 12px; padding: 10px 0; font-size: 14.5px; border-top: 1px solid var(--line); }
.kv:first-child { border-top: 0; }
.kv .k { width: 64px; flex: 0 0 64px; color: var(--muted); }
.kv .v { flex: 1; min-width: 0; }
.crew-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.crew-row:first-child { border-top: 0; }
.crew-row .role { width: 56px; flex: 0 0 56px; color: var(--muted); font-size: 13px; }
.crew-row .nm { flex: 1; min-width: 0; }
.crew-row .nm .mk { color: var(--ink-2); font-weight: 600; font-size: 12.5px; margin-left: 2px; }
.crew-row .gtag { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; color: var(--on-tag); }
.crew-row.own .nm { font-weight: 600; }
.crew-row .chev { color: var(--faint); }
.cabin-wrap { padding: 9px 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; border-top: 1px solid var(--line); }
.cabin-wrap i { font-style: normal; color: var(--faint); font-size: 12px; margin-right: 8px; }
.gtag[data-g="A"] { background: var(--a); } .gtag[data-g="B"] { background: var(--b); }
.gtag[data-g="C"] { background: var(--c); } .gtag[data-g="D"] { background: var(--d); }

/* 迷你时间轴 */
.tl { padding: 14px 2px 2px; }
.tl-track { position: relative; height: 8px; border-radius: 4px; background: var(--fill); }
.tl-bar { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); }
.tl-ck { position: absolute; top: -5px; bottom: -5px; width: 2px; border-radius: 1px; background: var(--ck-dot); }
.tl-axis { position: relative; height: 16px; margin-top: 5px; font-size: 11px; color: var(--faint); }
.tl-axis span { position: absolute; transform: translateX(-50%); }
.tl-axis span:first-child { transform: none; }
.tl-axis span:last-child { transform: translateX(-100%); }

/* 提醒条目（弹层、记录页共用） */
.rem {
  background: var(--card-2); border-radius: 14px; padding: 11px 13px; font-size: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.rem + .rem { margin-top: 8px; }
.rem-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); }
.rem-head b { color: var(--ink); font-size: 14px; }
.rem-head .del { margin-left: auto; color: var(--bad); font-weight: 600; font-size: 13px; }
.rem .q { color: var(--ink); line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.rem .note { color: var(--muted); font-size: 13px; }

/* 表单 */
.field {
  width: 100%; height: 46px; border: 0; border-radius: 14px;
  background: var(--fill-2); padding: 0 14px; font-size: 16px; outline: none;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 160ms ease, background 160ms ease;
}
textarea.field { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.field:focus { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(37, 99, 235, .12); }
.f-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 16px 0 7px; }
.f-label:first-child { margin-top: 4px; }
.f-label b { color: var(--bad); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rc { height: 30px; padding: 0 12px; border-radius: 999px; background: var(--fill); font-size: 13.5px; font-weight: 500; }
.chip-t {
  height: 36px; padding: 0 14px 0 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--fill-2); color: var(--muted); font-size: 14.5px; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line);
}
.chip-t .ico { width: 15px; height: 15px; stroke-width: 2.6; opacity: 0; transition: opacity 160ms ease; }
.chip-t[aria-pressed="true"] { background: var(--solid); color: var(--on-solid); box-shadow: none; }
.chip-t[aria-pressed="true"] .ico { opacity: 1; }
.chip-t i { font-style: normal; font-size: 12px; font-weight: 500; opacity: .7; }
.suggest { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.suggest:empty { display: none; }

.btn-primary {
  height: 50px; border-radius: 16px; background: var(--solid); color: var(--on-solid);
  font-size: 16px; font-weight: 600; width: 100%;
}
.btn-primary:disabled { opacity: .5; }
.btn-sec {
  height: 50px; border-radius: 16px; background: var(--fill); color: var(--ink);
  font-size: 16px; font-weight: 600; width: 100%;
}
.btn-sec.danger { color: var(--bad); }
.link { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.link.danger { color: var(--bad); }

/* ---------------------------------------------------------------- 提醒记录 / 统计 */
.rec-card { background: var(--card); border-radius: 18px; padding: 13px 14px; box-shadow: var(--card-shadow); }
.rec-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rec-top .d { font-size: 13px; color: var(--muted); }
.rec-top .no { font-size: 16px; font-weight: 700; }
.rec-top .route { font-size: 13px; color: var(--muted); }
.rec-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 6px; font-size: 13px; color: var(--muted); }
.rec-q { font-size: 14px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; word-break: break-word;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rec-card.open .rec-q { -webkit-line-clamp: unset; display: block; }
.rec-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--faint); }
.rec-foot .del { margin-left: auto; color: var(--bad); font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 4px; }
.tiles.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { background: var(--card); border-radius: 18px; padding: 12px 14px; box-shadow: var(--card-shadow); }
.tile .k { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.tile .v { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-top: 2px; }
.tile .v small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 3px; letter-spacing: 0; }
.table-card { background: var(--card); border-radius: 18px; box-shadow: var(--card-shadow); padding: 4px 14px; }
.trow { display: grid; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.trow:first-child { border-top: 0; }
.trow.head { font-size: 12px; color: var(--faint); font-weight: 600; padding: 9px 0 7px; }
.trow .r { text-align: right; }
.days-grid { grid-template-columns: 92px repeat(4, minmax(0, 1fr)); }
.days-grid > span:first-child { white-space: nowrap; }
.days-grid .cell { text-align: center; font-size: 13.5px; }
.by-grid { grid-template-columns: minmax(0, 1fr) 64px; }
.pp-grid { grid-template-columns: minmax(0, 1fr) 56px 56px; }
.note-s { font-size: 12px; color: var(--faint); margin: 8px 4px 0; }

/* ---------------------------------------------------------------- 人员 */
.pcard {
  background: var(--card); border-radius: 18px; padding: 12px 14px;
  box-shadow: var(--card-shadow); cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; text-align: left; width: 100%;
}
.pcard.off { opacity: .5; }
.pc-top { display: flex; align-items: center; gap: 8px; }
.pc-top .nm { font-size: 16px; font-weight: 700; }
.pc-top .pgrade { font-size: 12.5px; color: var(--muted); }
.pc-top .off-tag { margin-left: auto; font-size: 11.5px; color: var(--muted); background: var(--fill); border-radius: 999px; padding: 1px 8px; }
.pc-next { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-next .ok { color: var(--ok-ink); font-weight: 600; font-size: 12px; margin-left: 4px; }
.pc-month { font-size: 12.5px; color: var(--faint); }
.people-tools { display: flex; gap: 16px; padding: 0 4px 10px; flex-wrap: wrap; }

.pstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pstat { background: var(--card-2); border-radius: 16px; padding: 11px 13px; }
.pstat .k { font-size: 12.5px; color: var(--muted); }
.pstat .v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.pstat .v small { font-size: 12.5px; color: var(--muted); font-weight: 500; margin: 0 6px 0 2px; }
.pstat .f { font-size: 12px; color: var(--faint); }
.pitem { padding: 11px 0; border-top: 1px solid var(--line); }
.pitem:first-child { border-top: 0; }
.pitem .l1 { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 14.5px; }
.pitem .l1 .when { font-weight: 600; }
.pitem .l2 { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pitem .rem { margin-top: 8px; }
.pitem .todo { color: var(--warn-ink); font-size: 13px; margin-top: 4px; font-weight: 500; }
.ev { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ev:first-child { border-top: 0; }
.ev .t { color: var(--faint); font-size: 12px; flex: 0 0 76px; }
.hist .gone { color: var(--faint); text-decoration: line-through; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid label { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; flex-direction: column; gap: 6px; }
select.field { appearance: none; -webkit-appearance: none; }
.log { font-size: 12.5px; color: var(--muted); margin-top: 10px; display: flex; flex-direction: column; gap: 3px; }

/* ---------------------------------------------------------------- 更多 */
.menu { background: var(--card-2); border-radius: 16px; overflow: hidden; }
.menu > * {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; font-size: 16px; text-align: left; border-top: 1px solid var(--line);
}
.menu > *:first-child { border-top: 0; }
.menu .v { margin-left: auto; color: var(--muted); font-size: 14px; }
.menu .danger { color: var(--bad); }
.menu button:active { background: var(--fill-2); }

/* ---------------------------------------------------------------- 登录 / 提示 */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(360px, 100%); border-radius: 28px; padding: 32px 24px 24px; text-align: center; }
.login-mark {
  width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px;
  background: linear-gradient(145deg, #2563eb, #7c3aed);
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .6);
}
.login-card h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.login-card p { margin: 4px 0 22px; color: var(--muted); font-size: 14px; }
.login-card .field { text-align: center; margin-bottom: 12px; }
.login-error { min-height: 18px; margin-top: 8px; color: var(--bad); font-size: 13px; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); z-index: 90;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: rgba(15, 23, 42, .92); color: #fff;
  padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
  transition: opacity 220ms ease, transform 320ms var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.skel { height: 120px; border-radius: 20px; background: linear-gradient(90deg, var(--fill-2) 25%, var(--fill) 40%, var(--fill-2) 60%);
  background-size: 300% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------------------------------------------------------------- 电脑 / 平板 */
@media (min-width: 760px) {
  .top { padding-top: 14px; padding-bottom: 10px; background: var(--bg); }
  .top-inner, .alerts { max-width: 720px; margin-left: auto; margin-right: auto; }
  .sub { margin-top: 10px; }
  .page { max-width: 1240px; margin: 0 auto; padding: 10px 24px 48px; }
  body[data-page="flights"] .page { max-width: 1600px; }
  .list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* 电脑：时间轴在左（窄）| 航班 | 机组 | 按钮，提醒内容完整排在整行下面（同最初那版） */
  .gr, .g-axis {
    grid-template-columns: 330px 220px minmax(0, 1fr) 128px;
    grid-template-areas: "track flight info act" "rems rems rems rems";
    column-gap: 22px;
    align-items: start;
  }
  .gr { padding: 14px 18px; }
  .gr .l1 { display: none; }
  .gr .l2 { margin-top: 0; }
  .gr .l2 > .lbl, .gr .gr-info .l3 > .lbl {
    display: inline-block; width: 30px; flex: 0 0 30px; font-size: 11.5px; font-weight: 600; color: var(--faint);
  }
  .gr .gr-info .l3 {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 9px; margin-top: 7px;
  }
  .gr .l3 .mate { font-size: 12px; color: var(--faint); }
  .gr .l2 .mate.cabin { display: none; }
  .gr-flight { display: block; grid-area: flight; min-width: 0; }
  .gr-flight .no { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
  .gr-flight .no .tag { margin-left: 6px; font-size: 11px; font-weight: 600; color: var(--warn-ink); background: var(--warn-bg); border-radius: 6px; padding: 0 5px; }
  .gr-flight .route { font-size: 13px; color: var(--muted); margin-top: 2px; }
  .gr-flight .ac { font-size: 12px; color: var(--faint); margin-top: 3px; }
  .gr-flight .ac span { margin-left: 4px; }
  .gr-flight .ckline { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
  .gr-flight .ckline b { color: var(--ck); font-weight: 600; }
  .tl-head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; }
  .tl-head b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
  .tl-head .plus { font-size: 10px; color: var(--warn-ink); vertical-align: super; }
  .tl-head .to { color: var(--strike); }
  .tl-head .dur { margin-left: auto; font-size: 12px; color: var(--faint); }
  .gr-act { padding-top: 2px; }
  .rems-snip { display: none; }
  .rems-full { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
  .rline {
    display: flex; align-items: baseline; gap: 10px;
    padding: 7px 12px; border-radius: 10px; font-size: 13px;
    background: var(--card-2); box-shadow: inset 2px 0 0 var(--rem-bar);
  }
  .rline b { white-space: nowrap; }
  .rline .q { flex: 1; min-width: 0; color: var(--ink-2); line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
  .rline .note { color: var(--muted); }
  .rline .at { white-space: nowrap; color: var(--faint); font-size: 12px; }
  .g-axis { margin: 0 0 2px; padding: 8px 18px 6px; }
  .g-axis .gr-track { height: 16px; font-size: 11.5px; }
  .sheet {
    left: auto; top: 12px; right: 12px; bottom: 12px; width: 460px; max-height: none;
    border-radius: 26px;
    transform: translateX(calc(100% + 24px));
  }
  .sheet.show { transform: none; }
  .sheet-grab { display: none; }
  .sheet-head { padding-top: 18px; }
  .sheet-foot { border-radius: 0 0 26px 26px; padding-bottom: 14px; }
}
@media (hover: hover) and (pointer: fine) {
  .gr:hover { background: var(--card-hover); }
  .pcard:hover { box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 26px -10px rgba(15, 23, 42, .18); }
  .seg > button:not([aria-selected="true"]):hover { color: var(--ink-2); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* 日期：和一级导航同样的玻璃分段，旁边圆形「更多」打开历史 */
.seg.dates > button { height: 34px; }
.sub-row > .round { width: 42px; height: 42px; flex-basis: 42px; }
.gr .l3 { display: none; }

/* 机组：按席位顺序，本队提醒席位是组色胶囊，其他人普通文字 */
.mate { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.mate i { font-style: normal; font-size: 11px; color: var(--faint); margin-left: 3px; }
.mate .mk { font-size: 11.5px; font-weight: 600; color: var(--ink-2); margin-left: 1px; }
.mate.key { font-size: 14.5px; font-weight: 650; color: var(--ink); }
.mate.minor { font-size: 12.5px; color: var(--muted); }
.mate.minor .mk { color: var(--muted); font-weight: 500; }
.mate.own { font-weight: 600; }
.mate.cabin { color: var(--faint); font-size: 12px; }
.mate.cab { font-size: 12px; color: var(--faint); }
.mate.cab i { color: var(--faint); }
.mate.gone { color: var(--faint); text-decoration: line-through; }
.gr .l2 { gap: 3px 9px; }

/* 手机上的时间轴加粗，宽度够的航段写上航班号，看得出几段、各段多长 */
@media (max-width: 759px) {
}

/* 历史弹窗 */
.hist-days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.hist-days::-webkit-scrollbar { display: none; }
.hday {
  flex: 0 0 auto; min-width: 56px; height: 52px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: var(--fill-2); color: var(--ink-2); font-size: 11.5px;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease);
}
.hday b { font-size: 14px; }
.hday span { color: var(--muted); }
.hday.on { background: var(--solid); color: var(--on-solid); }
.hday.on span { color: var(--on-solid); opacity: .6; }
.hday:active { transform: scale(.95); }
.hday.pick { position: relative; padding: 0 12px; color: var(--muted); cursor: pointer; }
.hday.pick input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.hf { padding: 11px 0 12px; border-top: 1px solid var(--line); }
.sec-h + .hf { border-top: 0; }
.hf .l1 { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; min-width: 0; }
.hf .l1 .t { font-size: 15.5px; font-weight: 700; }
.hf .l1 .no { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hf .l1 .route { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.hf .l2 { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 5px; }
.hf .l2 .who-chip { font-size: 13px; padding: 1px 8px 1px 6px; }
.hf .tl2 { margin-top: 6px; }
.hf.gone .l1 { color: var(--faint); text-decoration: line-through; }
.hrem { margin-top: 7px; font-size: 13px; line-height: 1.5; color: var(--ink-2); background: var(--card-2); border-radius: 10px; padding: 7px 10px; }
.hrem > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hrem b { color: var(--ink); }
.hrem.none { background: transparent; padding: 0; color: var(--warn-ink); font-size: 12.5px; }

/* A321：机型下面一道线（机型少、比较特殊） */
.ac-321 { text-decoration: underline; text-decoration-color: var(--star); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ac-321.sm { font-size: 11.5px; font-weight: 700; color: var(--ink-2); flex: 0 0 auto; }

/* 航班 + 写提醒弹层 */
.fx-info { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ink-2); }
.fx-info b { color: var(--ck); font-weight: 600; }
.fx-form { margin-top: 10px; }
.fx-mute { margin-top: 18px; text-align: center; }
.fx-mute .muted-link { color: var(--muted); font-weight: 500; font-size: 13px; }

/* 列表上方的组别：没有底色的文字标签，带班数 */
.gtabs { display: flex; gap: 4px 18px; padding: 2px 6px 10px; overflow-x: auto; scrollbar-width: none; }
.gtabs::-webkit-scrollbar { display: none; }
.gtab {
  position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 0 6px; font-size: 15px; font-weight: 600; color: var(--muted);
  transition: color 200ms ease;
}
.gtab small { font-size: 12px; font-weight: 500; color: var(--faint); }
.gtab .dot { width: 7px; height: 7px; border-radius: 50%; }
.gtab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; border-radius: 2px;
  background: var(--ink); transform: scaleX(0); transition: transform 260ms var(--spring);
}
.gtab[aria-selected="true"] { color: var(--ink); }
.gtab[aria-selected="true"]::after { transform: scaleX(1); }

/* 圆形按钮按下状态（例如「统计」打开时） */
.round.on { background: var(--solid); color: var(--on-solid); border-color: transparent; }
/* 人员页的搜索框做成和日期一样的玻璃岛 */
.search.glass { height: 44px; background-color: var(--glass-bg); border: 1px solid var(--glass-border); }
.search.glass:focus { background-color: var(--card); box-shadow: var(--glass-shadow), 0 0 0 3px rgba(37, 99, 235, .15); }


/* ================================================================ 第三版：顶部只有日期岛 + 侧边栏 */
.top { padding: calc(8px + var(--safe-t)) 12px 8px; }
.top-inner { gap: 8px; }
.topbar { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.topbar .seg.dates { flex: 1; min-width: 0; }
.seg.glass { padding: 3px; }
.seg.glass .thumb { top: 3px; bottom: 3px; }
.seg.dates > button { height: 30px; font-size: 13.5px; gap: 3px; }
.seg.dates > button small { font-size: 10.5px; }
.badge {
  font-style: normal; font-size: 10px; font-weight: 700; line-height: 15px;
  min-width: 15px; padding: 0 4px; border-radius: 999px; text-align: center;
  background: var(--badge-bg); color: var(--badge-ink);
}
.round, .round.sm, #menu-btn { width: 38px; height: 38px; flex: 0 0 38px; }
.round .ico { width: 17px; height: 17px; }
.pill {
  flex: 0 0 auto; height: 34px; padding: 0 12px 0 9px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  transition: transform 160ms var(--ease), background-color 200ms ease, color 200ms ease;
}
.pill:active { transform: scale(.95); }
.pill .ico { width: 15px; height: 15px; }
.pill.on { background: var(--solid); color: var(--on-solid); }
.bar-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 一行事实信息：日期、班数、已提醒几班、数据更新时间 */
.fact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 0 6px 10px; font-size: 12.5px; color: var(--muted); }
.fact .upd { margin-left: auto; color: var(--faint); font-size: 12px; }

/* 已提醒：整张卡片淡下去，没提醒的更显眼 */
.gr.st-done { background: var(--card-2); box-shadow: none; }
.gr.st-done .gr-info, .gr.st-done .gr-flight, .gr.st-done .gr-track { opacity: .5; }
.gr.st-done .gr-rems { opacity: .8; }

/* 侧边栏（右边滑出） */
.side {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 62;
  width: min(300px, 84vw); background: var(--sheet);
  display: flex; flex-direction: column;
  padding: calc(18px + var(--safe-t)) 16px calc(16px + var(--safe-b));
  box-shadow: -16px 0 40px -16px rgba(15, 23, 42, .3);
  transform: translateX(105%); visibility: hidden;
  transition: transform 380ms var(--sheet-ease), visibility 0s linear 380ms;
}
.side.show { transform: none; visibility: visible; transition: transform 380ms var(--sheet-ease), visibility 0s; }
.side-head { display: flex; flex-direction: column; gap: 2px; padding: 0 6px 16px; }
.side-head b { font-size: 18px; }
.side-head span { font-size: 12.5px; color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav button {
  text-align: left; padding: 12px 12px; border-radius: 12px; font-size: 15.5px; font-weight: 600; color: var(--ink-2);
  transition: background-color 160ms ease;
}
.side-nav button:active { background: var(--fill-2); }
.side-nav button.on { background: var(--fill); color: var(--ink); }
.side-status { margin-top: 18px; padding: 12px; border-radius: 14px; background: var(--card-2); font-size: 13px; display: flex; flex-direction: column; gap: 7px; }
.side-status div { display: flex; justify-content: space-between; gap: 10px; }
.side-status span { color: var(--muted); }
.side-status b { font-weight: 600; }
.side-status .warn { margin: 0; color: var(--bad-ink); font-size: 12.5px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.side-foot button { text-align: left; padding: 11px 12px; border-radius: 12px; font-size: 14.5px; color: var(--ink-2); }
.side-foot .danger { color: var(--bad); }

/* 历史日期选择 */
.day-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.day-grid .hday { min-width: 0; }

/* 人员页：头部信息 + 按日期的航班卡片 */
.phead { padding: 2px 6px 12px; }
.pname { display: flex; align-items: center; gap: 8px; }
.pname b { font-size: 22px; letter-spacing: -.02em; }
.pname .gtag { font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 1px 7px; color: var(--on-tag); }
.pmeta { font-size: 13px; color: var(--muted); margin-top: 3px; }
.day-h { padding: 16px 6px 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.more-btn { display: block; width: 100%; margin: 14px 0 4px; padding: 12px; border-radius: 14px; background: var(--fill-2);
  color: var(--accent); font-size: 14px; font-weight: 600; }
#p-q { width: 100%; margin-bottom: 8px; }

/* 手机：字号降一档、每张卡片固定格式（标题一行 / 机组一行 / 时间轴 / 提醒全文） */
@media (max-width: 759px) {
  .gtab { font-size: 14px; }
  .gtabs { gap: 4px 16px; padding-bottom: 6px; }
  .gr { padding: 10px 11px 10px 12px; }
  .gr .l1 { gap: 6px; }
  .gr .l1 .t { font-size: 15px; }
  .gr .l1 .no { font-size: 13px; }
  .gr .l1 .route { font-size: 11.5px; }
  .gr .rbtn { height: 28px; padding: 0 10px 0 8px; font-size: 12px; }
  .gr .l2 {
    flex-wrap: nowrap; overflow: hidden; white-space: nowrap; gap: 0 8px; margin-top: 5px;
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent);
  }
  .gr .l2 .who-chip { font-size: 13px; padding: 1px 8px 1px 6px; flex: 0 0 auto; }
  .gr .l2 > * { flex: 0 0 auto; }
  .mate.key { font-size: 13px; }
  .mate.minor, .mate.cabin { font-size: 11.5px; }
  .mate i { font-size: 10.5px; }
  .mate .mk, .who-chip .mk { font-size: 10.5px; }
  .tl2 { margin-top: 6px; }
  .tl2-bot { font-size: 10px; height: 13px; line-height: 13px; }
  .rems-snip { display: none; }
  .rems-full { display: flex; flex-direction: column; gap: 5px; margin-top: 7px; }
  .rline { display: block; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.55;
    background: var(--card-2); box-shadow: inset 2px 0 0 var(--rem-bar); }
  .rline > b { margin-right: 5px; }
  .rline .q { color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
  .rline .at { display: block; margin-top: 2px; font-size: 10.5px; color: var(--faint); }
  .fact { font-size: 12px; }
  .fact .upd { margin-left: 0; }
}

/* ---------------- 第四版：组别带已提醒数；事实行；手机卡片不截断、信息全 */
.gtab .done { font-style: normal; font-size: 11px; font-weight: 600; color: var(--ok-ink); margin-left: 1px; }
.fact { gap: 2px 6px; }
.fact b { color: var(--ink-2); font-weight: 600; }
.fact .sep { color: var(--faint); }
.lroute { display: none; }

@media (max-width: 759px) {
  .gtabs { gap: 4px 10px; }
  .gtab { font-size: 13.5px; gap: 3px; }
  .gtab .dot { width: 6px; height: 6px; }
  .gtab small { font-size: 11px; }
  .gr .l1 .route, .gr .l1 .ac-321 { display: none; }
  .lroute {
    display: flex; flex-wrap: wrap; gap: 1px 10px; margin-top: 3px;
    font-size: 12px; color: var(--muted);
  }
  .lroute .ck b { color: var(--ck); font-weight: 600; }
  /* 飞行机组：全部显示，放不下换行 */
  .gr .l2 { flex-wrap: wrap; overflow: visible; white-space: normal; gap: 3px 9px; margin-top: 6px;
    -webkit-mask-image: none; mask-image: none; }
  .gr .l2 .mate.cabin { display: none; }
  /* 乘务组：小字浅灰，换行 */
  .gr .gr-info .l3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 8px; margin-top: 4px; }
  .gr .l3 .lbl { font-size: 10.5px; font-weight: 600; color: var(--faint); margin-right: 1px; }
  .gr .l3 .mate { font-size: 11.5px; color: var(--faint); }
  .gr .l3 .mate i { font-size: 10px; }
}

/* ---------------- 第五版：变动标注、被撤卡片、组别进度、乘务折叠 */
.gr { position: relative; }
.corner {
  position: absolute; right: 10px; bottom: 8px; z-index: 1;
  font-size: 11px; font-weight: 600; line-height: 1; padding: 4px 8px; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok-ink);
}
.corner.del { background: var(--bad-bg); color: var(--bad-ink); }
.gr.has-corner { padding-bottom: 30px; }
.chg { font-size: 12px; margin-top: 4px; }
.chg b { font-weight: 600; }
.chg-time { color: var(--warn-ink); }
.chg-del { color: var(--bad-ink); }
.gr.st-gone { background: var(--card-2); box-shadow: none; cursor: default; }
.gr.st-gone .gr-info, .gr.st-gone .gr-flight, .gr.st-gone .gr-track { opacity: .55; }
.gr.st-gone .gr-flight .no, .gr.st-gone .tl-head b { text-decoration: line-through; text-decoration-color: var(--strike); }
.gr.st-gone .l1 .t, .gr.st-gone .l1 .no { text-decoration: line-through; text-decoration-color: var(--strike); }
.gr.st-gone .gr-rems { opacity: .7; }
.gone-why { font-size: 12px; color: var(--bad-ink); }
.gone-name { text-decoration: line-through; }

/* 组别：数字只留班数，已提醒用标签下面的细进度表示 */
.gtab { flex-direction: row; padding-bottom: 8px; }
.gtab::after { display: none; }
.gtab .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: var(--prog-bg); overflow: hidden; font-style: normal; }
.gtab .prog i { display: block; height: 100%; background: var(--prog-i); border-radius: 2px; }
.gtab[aria-selected="true"] .prog { background: var(--prog-bg-on); }
.gtab[aria-selected="true"] .prog i { background: var(--ok); }
.gtab[aria-selected="true"]:not(:has(.prog))::after { display: block; }

/* 乘务：「乘务 N ›」按钮，点开才显示名单（电脑上始终显示） */
.mate.cabin { display: inline-flex; align-items: center; gap: 1px; background: none; border: 0; padding: 0; cursor: pointer; }
.mate.cabin .ico { width: 12px; height: 12px; transition: transform 160ms var(--ease); }
.gr.cab-open .mate.cabin .ico { transform: rotate(90deg); }
@media (max-width: 759px) {
  .gr .l2 .mate.cabin { display: inline-flex; font-size: 11.5px; color: var(--faint); }
  .gr .gr-info .l3 { display: none; }
  .gr.cab-open .gr-info .l3 { display: flex; }
}

/* 提醒：提醒人 → 被提醒人：内容 */
.rline .q b { color: var(--ink); font-weight: 650; }
.rline .q .to { color: var(--faint); }
.rline .q .tgt { color: var(--accent); font-weight: 600; }
.rems-snip .tgt { color: var(--accent); }
.rem-head .tgt { color: var(--accent); }
.rec-who { gap: 6px; }

/* 跨零点：次日那一截画在时间轴最左边，淡一点、左端直角 */
.bar.wrap { opacity: .55; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.lab.plus1 { color: var(--warn-ink); font-weight: 700; }

/* ================================================================ 第六版：护眼配色 + 深色模式 + 已提醒/待提醒拉开差距 + 登录页
   深色模式跟随系统，侧边栏可手动选「自动 / 浅色 / 深色」（<html data-theme>）。只重定义令牌，组件不分两套。 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1116; --card: #1a1f28; --card-2: #1e232c; --card-hover: #1c2129; --sheet: #1a1e26; --thumb: #2c323d;
    --ink: #e4e7ec; --ink-2: #c2c8d2; --muted: #8b95a5; --faint: #667085;
    --line: rgba(255, 255, 255, .07); --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .14);
    --accent: #6b9bf2; --ok: #3fb96b; --ok-bg: rgba(52, 199, 89, .14); --ok-ink: #7ad99a;
    --warn-bg: rgba(245, 158, 11, .14); --warn-ink: #f2c46b; --bad: #f47174; --bad-bg: rgba(239, 68, 68, .14); --bad-ink: #f59a9c;
    --a: #6b9bf2; --a-bg: rgba(59, 130, 246, .16); --a-ink: #a9c6fa;
    --b: #4cc37a; --b-bg: rgba(34, 197, 94, .14); --b-ink: #8fe0ad;
    --c: #e2b33c; --c-bg: rgba(234, 179, 8, .14); --c-ink: #f0d28a;
    --d: #a48bf5; --d-bg: rgba(139, 92, 246, .18); --d-ink: #c9b8fb;
    --glass-bg: rgba(30, 34, 43, .94); --glass-border: rgba(255, 255, 255, .06);
    --glass-shadow: 0 3px 12px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
    --thumb-shadow: 0 2px 6px rgba(0, 0, 0, .4);
    --card-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 6px 18px -10px rgba(0, 0, 0, .6);
    --solid: #e4e7ec; --on-solid: #12151b; --on-tag: #12151b;
    --todo-bg: rgba(107, 155, 242, .16); --todo-ink: #a9c6fa;
    --grab: #3a404b; --track: #2b313b; --strike: #4b5361;
    --ck: #e9a55a; --ck-dot: #e9a23b; --star: #e9a23b;
    --rem-bar: rgba(122, 217, 154, .55);
    --bar-todo: #4f86e8; --bar-done: #36a862; --bar-none: #3a414d;
    --prog-bg: #262c36; --prog-i: #2f8a52; --prog-bg-on: #343b47;
    --badge-bg: #45391f; --badge-ink: #f2c46b;
    --body-tint-1: rgba(59, 130, 246, .07); --body-tint-2: rgba(139, 92, 246, .05);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1116; --card: #1a1f28; --card-2: #1e232c; --card-hover: #1c2129; --sheet: #1a1e26; --thumb: #2c323d;
  --ink: #e4e7ec; --ink-2: #c2c8d2; --muted: #8b95a5; --faint: #667085;
  --line: rgba(255, 255, 255, .07); --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .14);
  --accent: #6b9bf2; --ok: #3fb96b; --ok-bg: rgba(52, 199, 89, .14); --ok-ink: #7ad99a;
  --warn-bg: rgba(245, 158, 11, .14); --warn-ink: #f2c46b; --bad: #f47174; --bad-bg: rgba(239, 68, 68, .14); --bad-ink: #f59a9c;
  --a: #6b9bf2; --a-bg: rgba(59, 130, 246, .16); --a-ink: #a9c6fa;
  --b: #4cc37a; --b-bg: rgba(34, 197, 94, .14); --b-ink: #8fe0ad;
  --c: #e2b33c; --c-bg: rgba(234, 179, 8, .14); --c-ink: #f0d28a;
  --d: #a48bf5; --d-bg: rgba(139, 92, 246, .18); --d-ink: #c9b8fb;
  --glass-bg: rgba(30, 34, 43, .94); --glass-border: rgba(255, 255, 255, .06);
  --glass-shadow: 0 3px 12px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
  --thumb-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  --card-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 6px 18px -10px rgba(0, 0, 0, .6);
  --solid: #e4e7ec; --on-solid: #12151b; --on-tag: #12151b;
  --todo-bg: rgba(107, 155, 242, .16); --todo-ink: #a9c6fa;
  --grab: #3a404b; --track: #2b313b; --strike: #4b5361;
  --ck: #e9a55a; --ck-dot: #e9a23b; --star: #e9a23b;
  --rem-bar: rgba(122, 217, 154, .55);
  --bar-todo: #4f86e8; --bar-done: #36a862; --bar-none: #3a414d;
  --prog-bg: #262c36; --prog-i: #2f8a52; --prog-bg-on: #343b47;
  --badge-bg: #45391f; --badge-ink: #f2c46b;
  --body-tint-1: rgba(59, 130, 246, .07); --body-tint-2: rgba(139, 92, 246, .05);
}
:root[data-theme="light"] { color-scheme: light; }

/* 待提醒：卡片浮起来 + 蓝色「提醒」；已提醒：卡片沉下去（无底色、只有细边），时间轴收起，提醒内容留着 */
.rbtn { background: var(--todo-bg); color: var(--todo-ink); box-shadow: none; font-weight: 650; }
.gr.st-done { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.gr.st-done .gr-info, .gr.st-done .gr-flight { opacity: .5; }
.gr.st-done .gr-track { opacity: .3; }
.gr.st-done .gr-rems { opacity: 1; }
.gr.st-done .rline { background: transparent; padding-top: 4px; padding-bottom: 4px; }
.gr.st-done .rline { font-size: 12px; line-height: 1.5; }
.gr.st-done .rline .q { color: var(--muted); }
.gr.st-done .rline .q b { color: var(--ink-2); }
.gr.st-done .rbtn.done { background: transparent; padding-right: 2px; }
@media (max-width: 759px) {
  .gr.st-done .gr-track { display: none; }
  .gr.st-done { padding-top: 8px; padding-bottom: 8px; }
  .gr.st-done .rems-full { margin-top: 4px; }
}
@media (hover: hover) and (pointer: fine) {
  .gr.st-done:hover { background: var(--card-hover); }
}

/* 登录：清晨的天色 + 一道航迹 + 跑道，中间一张玻璃卡 */
.login { position: relative; overflow: hidden; padding: 24px 20px calc(24px + var(--safe-b));
  background: linear-gradient(180deg, #dbe6f6 0%, #e9eef6 46%, #f5ede4 100%); }
.login-sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.login-sky .trail { fill: none; stroke: #ffffff; stroke-width: 2; stroke-linecap: round; opacity: .8; }
.login-sky .trail2 { fill: none; stroke: #ffffff; stroke-width: 1; stroke-linecap: round; opacity: .55; }
.login-sky .rw { stroke: #c7cfdb; stroke-width: 1.2; fill: none; }
.login-sky .rw-c { stroke: #c7cfdb; stroke-width: 2; stroke-dasharray: 10 12; fill: none; }
.login-sky .sun-a { stop-color: #ffd29a; stop-opacity: .75; }
.login-sky .sun-b { stop-color: #ffd29a; stop-opacity: 0; }
.login-card {
  position: relative; width: min(360px, 100%); border-radius: 28px; padding: 30px 24px 22px; text-align: center;
  background: rgba(253, 253, 254, .82); border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 20px 50px -24px rgba(30, 50, 90, .35), 0 2px 6px rgba(30, 50, 90, .06);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.login-mark {
  width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 18px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, #3b82f6 0%, #2563eb 55%, #4f46e5 100%);
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.login-mark .ico { width: 28px; height: 28px; stroke-width: 1.8; transform: rotate(-8deg); }
.login-card h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: .02em; }
.login-card p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.login-date { margin: 14px 0 18px; font-size: 13px; color: var(--ink-2); font-weight: 600; letter-spacing: .02em; }
.login-date:empty { display: none; }
.login-card .field { height: 50px; text-align: center; font-size: 18px; letter-spacing: .3em; margin-bottom: 12px;
  background: rgba(118, 118, 128, .1); }
.login-card .field::placeholder { letter-spacing: .1em; font-size: 15px; color: var(--faint); }
.login-card .btn-primary { background: linear-gradient(180deg, #2f6ff0, #2563eb); color: #fff;
  box-shadow: 0 8px 18px -10px rgba(37, 99, 235, .8); }
.login-foot { position: absolute; left: 0; right: 0; bottom: calc(18px + var(--safe-b)); text-align: center;
  font-size: 11.5px; color: rgba(60, 72, 92, .55); letter-spacing: .04em; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .login { background: linear-gradient(180deg, #0b1220 0%, #121a2b 55%, #1d1c27 100%); }
  :root:not([data-theme="light"]) .login-card { background: rgba(26, 30, 38, .78); border-color: rgba(255, 255, 255, .07);
    box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .8); }
  :root:not([data-theme="light"]) .login-sky .trail, :root:not([data-theme="light"]) .login-sky .trail2 { stroke: #8aa4d6; opacity: .35; }
  :root:not([data-theme="light"]) .login-sky .rw, :root:not([data-theme="light"]) .login-sky .rw-c { stroke: #2c3546; }
  :root:not([data-theme="light"]) .login-sky .sun-a { stop-color: #9fb6e6; stop-opacity: .16; }
  :root:not([data-theme="light"]) .login-sky .sun-b { stop-color: #9fb6e6; stop-opacity: 0; }
  :root:not([data-theme="light"]) .login-foot { color: rgba(200, 210, 225, .35); }
}
:root[data-theme="dark"] .login { background: linear-gradient(180deg, #0b1220 0%, #121a2b 55%, #1d1c27 100%); }
:root[data-theme="dark"] .login-card { background: rgba(26, 30, 38, .78); border-color: rgba(255, 255, 255, .07);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .login-sky .trail, :root[data-theme="dark"] .login-sky .trail2 { stroke: #8aa4d6; opacity: .35; }
:root[data-theme="dark"] .login-sky .rw, :root[data-theme="dark"] .login-sky .rw-c { stroke: #2c3546; }
:root[data-theme="dark"] .login-sky .sun-a { stop-color: #9fb6e6; stop-opacity: .16; }
:root[data-theme="dark"] .login-sky .sun-b { stop-color: #9fb6e6; stop-opacity: 0; }
:root[data-theme="dark"] .login-foot { color: rgba(200, 210, 225, .35); }

/* 侧边栏：外观 */
.side-theme { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 0 6px; font-size: 13px; color: var(--muted); }
.side-theme .seg { flex: 1; }

/* ================================================================ 第七版：右上角菜单变小弹窗、下拉刷新、历史标题、总表搜索 */
.side {
  top: calc(54px + var(--safe-t)); right: 10px; bottom: auto;
  width: min(232px, calc(100vw - 20px)); max-height: calc(100vh - 70px - var(--safe-t)); overflow-y: auto;
  padding: 6px; border-radius: 18px; background: var(--sheet);
  box-shadow: 0 12px 40px -12px rgba(15, 23, 42, .35), 0 0 0 1px var(--line);
  transform: scale(.92); transform-origin: top right; opacity: 0;
  transition: transform 260ms var(--spring), opacity 180ms ease, visibility 0s linear 260ms;
}
.side.show { transform: none; opacity: 1; transition: transform 260ms var(--spring), opacity 180ms ease, visibility 0s; }
.side-nav { gap: 0; }
.side-nav button { padding: 10px 12px; font-size: 15px; border-radius: 12px; }
.side-theme { margin: 6px 0 4px; padding: 6px 8px 8px; border-top: 1px solid var(--line); font-size: 12.5px; }
.side-theme .seg.mini > button { height: 26px; font-size: 12.5px; }
.side-status { margin: 0 4px 6px; padding: 8px 10px; gap: 4px; font-size: 12px; border-radius: 12px; }
.side-foot { margin-top: 0; padding-top: 4px; border-top: 1px solid var(--line); gap: 0; }
.side-foot button { padding: 9px 12px; font-size: 14px; border-radius: 12px; }
.side-foot button:active { background: var(--fill-2); }
.scrim.pop { background: rgba(15, 23, 42, .06); }
@media (min-width: 760px) { .side { top: 66px; right: calc(50% - 360px); } }

/* 下拉刷新提示 */
.ptr {
  position: fixed; left: 50%; top: calc(8px + var(--safe-t)); z-index: 80;
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: var(--sheet); color: var(--muted); font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 18px -8px rgba(15, 23, 42, .35), 0 0 0 1px var(--line);
  transform: translate(-50%, -60px); opacity: 0; pointer-events: none; transition: opacity 160ms ease;
}
.ptr.show { opacity: 1; }
.ptr .ico { width: 15px; height: 15px; transition: transform 200ms ease; }
.ptr.ready { color: var(--accent); }
.ptr.ready .ico { transform: rotate(180deg); }
.ptr.spin .ico { animation: ptrspin .8s linear infinite; }
@keyframes ptrspin { to { transform: rotate(360deg); } }

/* 历史日期：顶部标题不截断；弹层按月分组 */
.hist-bar .bar-title { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.hist-bar .bar-title .wd { font-weight: 600; color: var(--ink-2); }
.hist-bar .bar-title small { font-size: 11px; font-weight: 600; color: var(--warn-ink); background: var(--warn-bg); border-radius: 6px; padding: 1px 6px; }
.month-h { margin: 14px 2px 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.month-h:first-child { margin-top: 2px; }

/* 总表：搜索框、起落时间、看航班 */
#rec-q { width: 100%; margin-bottom: 8px; }
.rec-top .go-flight { margin-left: auto; font-size: 13px; }
.rec-top .go-flight .ico { width: 14px; height: 14px; }
.gr.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 3px var(--accent), var(--card-shadow); } 100% { box-shadow: var(--card-shadow); } }

/* 登录页图标 = 桌面图标（static/favicon.svg），进来第一眼和桌面上点的是同一个 */
.login-mark { display: block; width: 72px; height: 72px; margin: 0 auto 14px; padding: 0; border-radius: 17px;
  background: none; box-shadow: 0 12px 26px -12px rgba(33, 86, 217, .75); }

/* 日期岛的提醒条数：贴在右上角的小角标，不占宽度（手机上「今天 10/29 14」挤不下，气泡会被按钮切掉一块） */
.seg.dates > button { overflow: visible; }
.seg.dates .badge {
  position: absolute; top: -9px; right: -5px; z-index: 2;
  font-size: 9.5px; line-height: 15px; min-width: 15px; padding: 0 4px;
  box-shadow: 0 0 0 2px var(--glass-bg);
}
