/* ==========================================================================
   值班表 Web 版 —— App Shell UI
   设计系统来自 app-shell-ui skill：单一品牌主色、双层主题、表面阶梯、
   1px 边框优先、圆角 8/12/16/999、动效仅 150–200ms 颜色变化。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens —— light + dark 均为一等公民
   -------------------------------------------------------------------------- */
:root,
:root[data-theme="light"] {
  --bg-app: #f4f5f7;
  --bg-sidebar: #eef0f3;
  --bg-surface: #ffffff;
  --bg-muted: #f7f8fa;
  --bg-hover: rgba(0, 0, 0, 0.04);
  --bg-selected: color-mix(in srgb, var(--primary) 12%, white);

  --text-primary: #1c1c1e;
  --text-secondary: #636366;
  --text-tertiary: #8e8e93;
  --text-success: #34c759;
  --text-warning: #ff9f0a;
  --text-danger: #ff3b30;

  --primary: #007aff;
  --primary-foreground: #ffffff;

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --sidebar-width: 240px;
  --content-padding: 24px;

  --titlebar-bg: linear-gradient(to bottom, #fafbfc, #f3f4f6);
  --seg-track: rgba(0, 0, 0, 0.05);
  --secondary-btn-bg: rgba(0, 0, 0, 0.06);
  --toggle-off: rgba(0, 0, 0, 0.12);
  --banner-bg: linear-gradient(135deg, #e8f4ff 0%, #f0f7ff 50%, #eefbf3 100%);
  --banner-border: color-mix(in srgb, var(--primary) 12%, white);

  /* 班次状态语义色（保留小程序的关键词配色含义） */
  --shift-rest-bg: #f3f4f6;
  --shift-rest-fg: #9ca3af;
  --shift-night-bg: #faf5ff;
  --shift-night-fg: #7c3aed;
  --shift-er-bg: #e0f2fe;
  --shift-er-fg: #0369a1;
  --shift-out-bg: #ffedd5;
  --shift-out-fg: #7c2d12;
  --shift-in-bg: #dcfce7;
  --shift-in-fg: #14532d;
  --shift-swapped-bg: #ea4335;
  --shift-swapped-fg: #ffffff;
  --shift-pending-ring: color-mix(in srgb, var(--primary) 55%, transparent);

  --wallpaper-veil: rgba(244, 245, 247, 0.88);
}

:root[data-theme="dark"] {
  --bg-app: #1c1c1e;
  --bg-sidebar: #161617;
  --bg-surface: #2c2c2e;
  --bg-muted: #3a3a3c;
  --bg-hover: rgba(255, 255, 255, 0.06);
  --bg-selected: color-mix(in srgb, var(--primary) 22%, #2c2c2e);

  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6c6c70;
  --text-success: #30d158;
  --text-warning: #ffd60a;
  --text-danger: #ff453a;

  --primary: #0a84ff;
  --primary-foreground: #ffffff;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.45);

  --titlebar-bg: linear-gradient(to bottom, #2c2c2e, #1c1c1e);
  --seg-track: rgba(255, 255, 255, 0.08);
  --secondary-btn-bg: rgba(255, 255, 255, 0.1);
  --toggle-off: rgba(255, 255, 255, 0.18);
  --banner-bg: linear-gradient(135deg, #1a2a3d 0%, #1c2834 50%, #1a2e28 100%);
  --banner-border: color-mix(in srgb, var(--primary) 28%, #2c2c2e);

  --shift-rest-bg: rgba(255, 255, 255, 0.06);
  --shift-rest-fg: #8e8e93;
  --shift-night-bg: color-mix(in srgb, #bf5af2 24%, #2c2c2e);
  --shift-night-fg: #d6aaff;
  --shift-er-bg: color-mix(in srgb, #0a84ff 24%, #2c2c2e);
  --shift-er-fg: #86c5ff;
  --shift-out-bg: color-mix(in srgb, #ff9f0a 24%, #2c2c2e);
  --shift-out-fg: #ffc46b;
  --shift-in-bg: color-mix(in srgb, #30d158 22%, #2c2c2e);
  --shift-in-fg: #86e3a3;
  --shift-swapped-bg: #d93b30;
  --shift-swapped-fg: #ffffff;
  --shift-pending-ring: color-mix(in srgb, var(--primary) 70%, transparent);

  --wallpaper-veil: rgba(28, 28, 30, 0.86);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
  }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-primary);
  background: var(--bg-app);
  height: 100dvh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-track {
  background: transparent;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Window chrome (L0)
   -------------------------------------------------------------------------- */
.window {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 0;
}

.titlebar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 14px;
  background: var(--titlebar-bg);
  border-bottom: 1px solid var(--border);
  user-select: none;
}

.traffic {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.traffic i {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  display: block;
}
.traffic i:nth-child(1) {
  background: #ff5f57;
}
.traffic i:nth-child(2) {
  background: #febc2e;
}
.traffic i:nth-child(3) {
  background: #28c840;
}

.titlebar-title {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: center;
}
.titlebar-title b {
  font-size: 14px;
  font-weight: 600;
}
.titlebar-title span {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.titlebar-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   4. Sidebar (L1)
   -------------------------------------------------------------------------- */
.shell {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.sidebar {
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px 12px;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 6px 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-foreground);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.brand-mark svg {
  width: 18px;
  height: 18px;
}
.brand-text {
  min-width: 0;
}
.brand-text b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.brand-text span {
  display: block;
  font-size: 11.5px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  min-height: 0;
}
.nav-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 10px 10px 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 160ms ease, color 160ms ease;
}
.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.nav-item[aria-current="page"] {
  background: var(--bg-selected);
  color: var(--primary);
  font-weight: 600;
}
.nav-item svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  stroke-width: 1.7;
}
.nav-item .nav-count {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  min-width: 0;
}
.identity-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  flex: 0 0 auto;
}
.identity-text {
  min-width: 0;
}
.identity-text b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.identity-text span {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   5. Main canvas (L2)
   -------------------------------------------------------------------------- */
.main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-app);
  position: relative;
}
.main.has-wallpaper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--wallpaper-url, none);
  background-size: cover;
  background-position: center;
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.main.has-wallpaper > * {
  position: relative;
  z-index: 1;
}

.view {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: var(--content-padding);
}

.page-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-head h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.page-head p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.page-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   6. Surfaces & primitives (L3)
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.card-head h2 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
}
.card-head .hint {
  font-size: 11.5px;
  color: var(--text-tertiary);
}
.card-body {
  padding: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--secondary-btn-bg);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}
.btn:hover:not(:disabled) {
  border-color: var(--border-strong);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: transparent;
}
.btn-primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--primary) 88%, black);
  border-color: transparent;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.btn-danger {
  background: transparent;
  color: var(--text-danger);
  border-color: color-mix(in srgb, var(--text-danger) 35%, transparent);
}
.btn-danger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--text-danger) 10%, transparent);
}
.btn-icon {
  width: 32px;
  padding: 0;
}
.btn-sm {
  height: 28px;
  font-size: 12.5px;
  padding: 0 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field > label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}
.control {
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 13px;
  width: 100%;
  min-width: 0;
}
select.control {
  appearance: none;
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-tertiary) 50%),
    linear-gradient(135deg, var(--text-tertiary) 50%, transparent 50%);
  background-position: calc(100% - 16px) 14px, calc(100% - 11px) 14px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.seg {
  display: inline-flex;
  padding: 2px;
  gap: 2px;
  background: var(--seg-track);
  border-radius: var(--radius-sm);
}
.seg button {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.seg button[aria-pressed="true"] {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.pill-primary {
  background: var(--bg-selected);
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 22%, transparent);
}
.pill-warn {
  background: color-mix(in srgb, var(--text-warning) 16%, transparent);
  color: color-mix(in srgb, var(--text-warning) 80%, var(--text-primary));
  border-color: color-mix(in srgb, var(--text-warning) 30%, transparent);
}
.pill-danger {
  background: color-mix(in srgb, var(--text-danger) 14%, transparent);
  color: var(--text-danger);
  border-color: color-mix(in srgb, var(--text-danger) 30%, transparent);
}

/* 玻璃开关（沿用小程序的自绘开关语义：ON = 主色） */
.switch {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: var(--radius-full);
  border: 0;
  background: var(--toggle-off);
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
  transition: background 180ms ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 180ms ease;
}
.switch[aria-checked="true"] {
  background: var(--primary);
}
.switch[aria-checked="true"]::after {
  transform: translateX(18px);
}
.switch:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 列表行 */
.rows {
  display: flex;
  flex-direction: column;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  min-height: 48px;
}
.rows > .row:first-child {
  border-top: 0;
}
.row-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--text-secondary);
}
.row-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
}
.row-main {
  flex: 1 1 auto;
  min-width: 0;
}
.row-main b {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
}
.row-main span {
  display: block;
  font-size: 11.5px;
  color: var(--text-tertiary);
  margin-top: 1px;
}
.row-tail {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.row-action {
  cursor: pointer;
  transition: background 160ms ease;
}
.row-action:hover {
  background: var(--bg-hover);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: var(--banner-bg);
  border: 1px solid var(--banner-border);
  font-size: 12.5px;
  color: var(--text-secondary);
}
.notice svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--primary);
}
.notice b {
  color: var(--text-primary);
  font-weight: 600;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-tertiary);
  min-height: 0;
}
.empty svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.4;
  opacity: 0.7;
}
.empty b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.empty span {
  font-size: 12px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--primary);
  border-radius: var(--radius-full);
  animation: spin 0.7s linear infinite;
  flex: 0 0 auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loading-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 12.5px;
}

/* 有界内滚动区域：App Mode 要求页面本身不滚动 */
.scroll-region {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

/* --------------------------------------------------------------------------
   7. 值班表
   -------------------------------------------------------------------------- */
.schedule-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar .spacer {
  flex: 1 1 auto;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.date-chip input {
  border: 0;
  background: transparent;
  padding: 0;
  width: 118px;
  font-size: 12.5px;
}

.table-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.grid-table {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(88px, 132px) repeat(7, minmax(72px, 1fr));
  align-content: start;
}

.gt-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  padding: 8px 6px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border-right: 1px solid var(--border);
}
.gt-head:last-child {
  border-right: 0;
}
.gt-head.is-today {
  color: var(--primary);
  background: var(--bg-selected);
}
.gt-head small {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}
.gt-head.is-today small {
  color: var(--primary);
}

.gt-corner {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 3;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 8px;
  font-size: 11px;
  color: var(--text-tertiary);
  display: grid;
  align-content: end;
}

.gt-name {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
.gt-name button {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gt-name button:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gt-cell {
  position: relative;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-height: 44px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--text-primary);
  padding: 4px 2px;
  transition: box-shadow 160ms ease, filter 160ms ease;
}
.gt-cell:hover {
  filter: brightness(0.97);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
:root[data-theme="dark"] .gt-cell:hover {
  filter: brightness(1.12);
}
.gt-cell:last-child {
  border-right: 0;
}
.gt-cell .gtext {
  line-height: 1.2;
  text-align: center;
  word-break: break-all;
}

.shift-rest {
  background: var(--shift-rest-bg);
  color: var(--shift-rest-fg);
  font-weight: 500;
}
.shift-night {
  background: var(--shift-night-bg);
  color: var(--shift-night-fg);
}
.shift-er {
  background: var(--shift-er-bg);
  color: var(--shift-er-fg);
}
.shift-out {
  background: var(--shift-out-bg);
  color: var(--shift-out-fg);
}
.shift-in {
  background: var(--shift-in-bg);
  color: var(--shift-in-fg);
}
.shift-swapped {
  background: var(--shift-swapped-bg);
  color: var(--shift-swapped-fg);
  font-weight: 700;
}
.gt-cell.is-pending {
  box-shadow: inset 0 0 0 2px var(--shift-pending-ring);
}
.gt-cell.is-dimmed {
  opacity: 0.45;
}

.gbadge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 15px;
  height: 15px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 3px;
  line-height: 1;
}
.gbadge-1 { background: #facc15; color: #000; }
.gbadge-2 { background: #4ade80; color: #000; }
.gbadge-3 { background: #38bdf8; color: #000; }
.gbadge-4 { background: #f472b6; color: #fff; }
.gbadge-5 { background: #c084fc; color: #fff; }
.gbadge-6 { background: #ffffff; color: #000; }
.gbadge-7 { background: #fb923c; color: #000; }
.gbadge-8 { background: #2dd4bf; color: #000; }

.legend {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-tertiary);
  padding: 0 2px;
}
.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: -1px;
  border: 1px solid var(--border);
}
.legend span {
  display: inline-flex;
  align-items: center;
}

/* --------------------------------------------------------------------------
   8. 换班推荐
   -------------------------------------------------------------------------- */
.swap-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch; /* 规则 11：并排卡片等高 */
}
.swap-layout > .card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  overflow-y: auto;
  min-height: 0;
}

.exclude-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 6px 0 9px;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.tag button {
  border: 0;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1;
}
.tag button:hover {
  color: var(--text-danger);
}

.rec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  overflow-y: auto;
  min-height: 0;
}

.rec {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
  user-select: none;
}
.rec:hover {
  border-color: var(--border-strong);
  background: var(--bg-muted);
}
.rec.is-marked {
  border-color: color-mix(in srgb, var(--text-danger) 45%, transparent);
  background: color-mix(in srgb, var(--text-danger) 7%, var(--bg-surface));
}
.rec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rec-head b {
  font-size: 13.5px;
  font-weight: 600;
}
.rec-head .date {
  color: var(--primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rec-head .arrow {
  color: var(--text-tertiary);
}
.rec-tags {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rec-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.rec-line .who {
  color: var(--text-primary);
  font-weight: 500;
}
.rec-line .shift {
  font-weight: 600;
}
.rec-line .k {
  color: var(--text-tertiary);
  font-size: 11.5px;
}
.rec-warn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-warning);
  background: color-mix(in srgb, var(--text-warning) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-warning) 28%, transparent);
  border-radius: var(--radius-full);
  padding: 1px 8px;
}
.quote-line {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-tertiary);
  padding: 0 2px;
  min-height: 18px;
}
.quote-line svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   9. 值班统计
   -------------------------------------------------------------------------- */
.stat-groups {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.stat-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stat-card h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
}
.stat-card .scope-note {
  font-size: 11px;
  color: var(--text-tertiary);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.stat-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-box .num {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.stat-box .label {
  font-size: 11px;
  color: var(--text-tertiary);
}
.stat-box.s-full .num { color: var(--shift-night-fg); }
.stat-box.s-half .num { color: var(--shift-in-fg); }
.stat-box.s-night .num { color: var(--text-danger); }
.stat-box.s-rest .num { color: var(--shift-er-fg); }

.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.rank-table th,
.rank-table td {
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.rank-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-muted);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
}
.rank-table th:first-child,
.rank-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--bg-surface);
}
.rank-table th:first-child {
  background: var(--bg-muted);
}
.rank-table tbody tr {
  cursor: pointer;
}
.rank-table tbody tr:hover td {
  background: var(--bg-hover);
}
.rank-table tbody tr.is-selected td {
  background: var(--bg-selected);
  color: var(--primary);
  font-weight: 600;
}
.rank-table tbody tr.is-selected td:first-child {
  background: var(--bg-selected);
}
.rank-table .name-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rank-bar {
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--primary);
  min-width: 2px;
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   10. 个人中心
   -------------------------------------------------------------------------- */
.me-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.me-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.shift-defs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.shift-def {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  padding: 9px 8px;
  text-align: center;
}
.shift-def b {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}
.shift-def span {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}
.shift-def.d-night b { color: var(--shift-night-fg); }
.shift-def.d-out b { color: var(--shift-out-fg); }
.shift-def.d-er b { color: var(--shift-er-fg); }
.shift-def.d-in b { color: var(--shift-in-fg); }

.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
}

/* 头像（本机选择、本机保存，不上传） */
.identity-avatar img,
.me-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.me-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  flex: 0 0 auto;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   11. 模态框 / 提示
   -------------------------------------------------------------------------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fade 160ms ease;
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  width: min(560px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pop 180ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(6px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
.modal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  flex: 1 1 auto;
}
.modal-body {
  padding: 16px;
  overflow-y: auto;
  min-height: 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.modal-body p {
  margin: 0 0 10px;
}
.modal-body p:last-child {
  margin-bottom: 0;
}
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-muted);
}
.modal.wide {
  width: min(760px, 100%);
}

.menu {
  position: fixed;
  z-index: 210;
  min-width: 180px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  padding: 5px;
  animation: fade 140ms ease;
}
.menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.menu button:hover {
  background: var(--bg-hover);
}
.menu button svg {
  width: 15px;
  height: 15px;
  color: var(--text-secondary);
  stroke-width: 1.8;
}
.menu .menu-meta {
  padding: 6px 10px;
  font-size: 11.5px;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.toasts {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  animation: pop 180ms ease;
  max-width: min(560px, 90vw);
}
.toast svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.toast.t-error svg { color: var(--text-danger); }
.toast.t-warn svg { color: var(--text-warning); }
.toast.t-success svg { color: var(--text-success); }
.toast.t-info svg { color: var(--primary); }

/* --------------------------------------------------------------------------
   12. 登录
   -------------------------------------------------------------------------- */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background: var(--bg-app);
}
.login-bg {
  position: absolute;
  inset: 0;
  background-image: var(--wallpaper-url, none);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 600ms ease;
}
.login-bg.is-loaded {
  opacity: 1;
}
.login-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 22, 0.55), rgba(10, 14, 22, 0.75));
}
.login-inner {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.login-tools {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}
.login-tools .btn {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
}
.login-tools .btn:hover {
  background: rgba(255, 255, 255, 0.22);
}
.login-hero {
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.login-logo {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
}
.login-logo svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.6;
  color: #fff;
}
.login-hero h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.login-hero p {
  margin: 5px 0 0;
  font-size: 12.5px;
  opacity: 0.85;
}
.login-card {
  background: color-mix(in srgb, var(--bg-surface) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.login-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.login-field > svg {
  width: 16px;
  height: 16px;
  color: var(--text-tertiary);
  flex: 0 0 auto;
}
.login-field input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
}
.login-field .mini {
  border: 0;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}
.login-field .mini:hover {
  color: var(--text-primary);
}
.login-field .mini svg {
  width: 16px;
  height: 16px;
}
.login-error {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--text-danger) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--text-danger) 30%, transparent);
  color: var(--text-danger);
  font-size: 12.5px;
  font-weight: 500;
}
.login-error svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.shake {
  animation: shake 420ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
.login-submit {
  height: 40px;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
}
.login-foot {
  text-align: center;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   13. 生日祝福
   -------------------------------------------------------------------------- */
.bd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8, 10, 18, 0.72);
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  animation: fade 220ms ease;
}
.bd-hearts,
.bd-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bd-hearts span {
  position: absolute;
  bottom: -40px;
  font-size: 22px;
  opacity: 0;
  animation: floatUp 7s linear infinite;
}
.bd-stars span {
  position: absolute;
  font-size: 15px;
  opacity: 0;
  animation: twinkle 3.2s ease-in-out infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translateY(-108vh) scale(1.1); opacity: 0; }
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.7); }
  50% { opacity: 0.95; transform: scale(1.15); }
}
.bd-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  animation: pop 320ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.bd-card-bg {
  position: absolute;
  inset: 0;
  background-image: var(--wallpaper-url, none);
  background-size: cover;
  background-position: center;
}
.bd-card-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 24, 0.55), rgba(12, 12, 24, 0.82));
}
.bd-card-inner {
  position: relative;
  z-index: 1;
  padding: 26px 24px 22px;
  text-align: center;
  color: #fff;
}
.bd-confetti {
  font-size: 20px;
  letter-spacing: 8px;
  margin-bottom: 10px;
}
.bd-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
.bd-name {
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.85;
}
.bd-name b {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffd76e, #ff9ec7, #a5b4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bd-wishes {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.bd-divider {
  margin: 18px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ff9ec7;
}
.bd-divider::before,
.bd-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
}
.bd-btn {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 160ms ease;
}
.bd-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

/* --------------------------------------------------------------------------
   14. 窄屏适配（App Mode 主目标 1280×800，窄屏保证可用）
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .swap-layout,
  .me-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .stat-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  body {
    overflow: auto;
    height: auto;
    min-height: 100dvh;
  }
  .window {
    height: auto;
    min-height: 100dvh;
  }
  .shell {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex: 0 0 auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 10px 12px;
  }
  .nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
  }
  .nav-group-label,
  .sidebar-foot {
    display: none;
  }
  .nav-item {
    width: auto;
    white-space: nowrap;
  }
  .nav-item .nav-count {
    display: none;
  }
  .main {
    min-height: 0;
  }
  .view {
    padding: 16px;
  }
  .grid-table {
    grid-template-columns: minmax(72px, 92px) repeat(7, minmax(58px, 1fr));
  }
  .shift-defs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
