:root {
  --out: #0078d4;
  --out-deep: #201f1e;
  --word: #185abd;
  --excel: #107c10;
  --ppt: #d83b01;
  --teams: #6264a7;
  --ink: #1c1c1e;
  --muted: #636366;
  --bg: #f3f2f1;
  --card: #fff;
  --line: rgba(255, 255, 255, .55);
  --glass: rgba(255, 255, 255, .88);
  --glass-edge: rgba(255, 255, 255, .96);
  --glass-blur: blur(24px) saturate(1.15);
  --radius: 18px;
  --ctrl: 12px;
  --safe-bottom: env(safe-area-inset-bottom);
  --rail: 260px;
  --nav-row: 54px;
  --nav-gap: 4px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  min-height: 100dvh;
  background: var(--bg);
}
body.app {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: linear-gradient(145deg, #e8eef8 0%, #ebe4f8 45%, #e4ecf6 100%);
  padding-bottom: calc(84px + var(--safe-bottom));
}
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  will-change: transform;
}
.o1 {
  width: 42vmin; height: 42vmin;
  top: -8%; left: -6%;
  background: radial-gradient(circle, rgba(120, 175, 255, .75) 0%, transparent 68%);
  animation: orb-a 26s ease-in-out infinite alternate;
}
.o2 {
  width: 36vmin; height: 36vmin;
  top: 12%; right: -4%;
  background: radial-gradient(circle, rgba(175, 140, 255, .65) 0%, transparent 70%);
  animation: orb-b 32s ease-in-out infinite alternate;
}
.o3 {
  width: 50vmin; height: 50vmin;
  bottom: -12%; left: 18%;
  background: radial-gradient(circle, rgba(100, 160, 255, .55) 0%, transparent 72%);
  animation: orb-c 38s ease-in-out infinite alternate;
}
.o4 {
  width: 28vmin; height: 28vmin;
  top: 48%; left: 8%;
  background: radial-gradient(circle, rgba(200, 170, 255, .5) 0%, transparent 70%);
  animation: orb-d 22s ease-in-out infinite alternate;
}
.o5 {
  width: 32vmin; height: 32vmin;
  bottom: 8%; right: 12%;
  background: radial-gradient(circle, rgba(140, 190, 255, .6) 0%, transparent 68%);
  animation: orb-e 30s ease-in-out infinite alternate;
}
.drop {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .25) 28%, transparent 62%),
    radial-gradient(circle at 70% 75%, rgba(160, 195, 255, .35) 0%, transparent 55%);
  box-shadow:
    inset 2px 2px 6px rgba(255, 255, 255, .7),
    inset -3px -4px 10px rgba(120, 160, 230, .18);
  opacity: .55;
  will-change: transform;
}
.d1 { width: 72px; height: 72px; top: 18%; left: 22%; animation: drop-a 18s ease-in-out infinite; }
.d2 { width: 48px; height: 48px; top: 62%; left: 6%; animation: drop-b 22s ease-in-out infinite; }
.d3 { width: 56px; height: 56px; top: 28%; right: 18%; animation: drop-c 20s ease-in-out infinite; }
.d4 { width: 40px; height: 40px; bottom: 22%; right: 28%; animation: drop-d 24s ease-in-out infinite; }
.d5 { width: 64px; height: 64px; bottom: 14%; left: 42%; animation: drop-e 19s ease-in-out infinite; }
.d6 { width: 36px; height: 36px; top: 8%; right: 38%; animation: drop-f 21s ease-in-out infinite; }
@keyframes orb-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
}
@keyframes orb-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(-5vw, 6vh, 0) scale(.92); }
}
@keyframes orb-c {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, -5vh, 0) scale(1.08); }
}
@keyframes orb-d {
  from { transform: translate3d(0, 0, 0) scale(.95); }
  to { transform: translate3d(-4vw, -3vh, 0) scale(1.1); }
}
@keyframes orb-e {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-6vw, 2vh, 0) scale(1.06); }
}
@keyframes drop-a {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: .5; }
  50% { transform: translate3d(18px, -28px, 0); opacity: .72; }
}
@keyframes drop-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-14px, 22px, 0) scale(1.08); }
}
@keyframes drop-c {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(12px, 18px, 0); }
}
@keyframes drop-d {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .45; }
  50% { transform: translate3d(-20px, -16px, 0) scale(1.12); opacity: .65; }
}
@keyframes drop-e {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(16px, -12px, 0); }
}
@keyframes drop-f {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-10px, 24px, 0) scale(.9); }
}
@media (prefers-reduced-motion: reduce) {
  .orb, .drop { animation: none; }
}
.glass-app {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
}
.duty-live-bar {
  margin: 12px 12px 0;
  max-width: 880px;
}
.duty-live-bar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, .95);
  border-left: 3px solid #0078d4;
  border-radius: 14px;
  box-shadow:
    0 6px 18px rgba(15, 23, 42, .07),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}
.duty-live-bar.warn .duty-live-bar-inner {
  border-left-color: #b45309;
  background: rgba(255, 252, 247, .92);
}
.duty-live-bar-text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.duty-live-kicker {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.duty-live-main {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1c1c1e;
  letter-spacing: -.01em;
}
.duty-live-proof-warn {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #9a3412;
}
.duty-live-ok {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #166534;
}
.duty-live-cam-link {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 8px;
  background: #0078d4;
  color: #fff !important;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid #106ebe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}
.duty-live-cam-link:hover {
  background: #106ebe;
}
.stage {
  position: relative;
  z-index: 1;
  min-width: 0;
}
a { color: inherit; }
.wrap, .flash {
  width: 100%;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.wrap {
  position: relative;
  z-index: 1;
  padding: 16px 16px 28px;
}
.flash { padding: 0 16px; margin: 12px auto 0; }
.flash p { margin: 0 0 8px; padding: 10px 12px; border-radius: var(--radius); font-size: 14px; }
.flash .success { background: #dff6dd; color: #0b5a08; }
.flash .error { background: #fde7e9; color: #a4262c; }
.flash .info { background: #deecf9; color: #004578; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 10px;
  position: sticky;
  top: 0;
  z-index: 11;
  color: var(--ink);
  background: rgba(255, 255, 255, .62);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}
.top .who { color: var(--muted); }
.top .icon-btn { color: var(--out); }
.top .icon-btn:hover { background: rgba(0, 120, 212, .12); color: var(--out); }
.brand { display: flex; gap: 10px; align-items: center; }
.brand strong { letter-spacing: -.02em; font-size: 16px; }
.logo { height: 40px; width: auto; display: block; }
.logo.lg { height: 96px; width: auto; margin-bottom: 8px; }
.who { display: block; font-size: 11px; font-weight: 500; margin-top: 1px; }
.top-right { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--out);
  color: #fff; font-weight: 700; font-size: 13px;
  position: relative;
  object-fit: cover;
}
.avatar.t0 { background: #0078d4; }
.avatar.t1 { background: #5856d6; }
.avatar.t2 { background: #af52de; }
.avatar.t3 { background: #ff2d55; }
.avatar.t4 { background: #ff9500; }
.avatar.online::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  background: #34c759;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 199, 89, .65);
  animation: online-pulse 1.8s ease-out infinite;
}
@keyframes online-pulse {
  70%, 100% { box-shadow: 0 0 0 7px rgba(52, 199, 89, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .avatar.online::after { animation: none; }
}
.icon-btn {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 8px 10px;
  border-radius: var(--ctrl);
  font: inherit;
  cursor: pointer;
}

.rail { display: none; }
.rail-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 12px 16px;
}
.rail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 14px;
  margin-bottom: 4px;
}
.rail-logo { width: 36px; height: 36px; object-fit: contain; }
.rail-head strong {
  display: block;
  font-size: 18px;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.rail-head span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 1px;
}
.rail-group {
  margin: 10px 8px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rail-nav {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 0 4px;
}
.rail-glider {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 0;
  height: var(--nav-row);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow:
    0 4px 16px rgba(15, 23, 42, .08),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  transform: translateY(calc(var(--active, 0) * (var(--nav-row) + var(--nav-gap))));
  transition: transform .32s cubic-bezier(.34, 1.2, .64, 1);
  pointer-events: none;
  z-index: 0;
}
.nav-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  height: var(--nav-row);
  padding: 0 10px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-link:not(.on) { opacity: .82; }
.nav-link:hover { opacity: 1; transform: translateX(3px); }
.nav-link.on { opacity: 1; }
.nav-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.nav-text b {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.nav-text small {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 13px;
  opacity: 0;
  transition: opacity .2s;
}
.nav-link.on .nav-text small,
.nav-link:hover .nav-text small {
  opacity: 1;
}
.nav-solo { margin: 0 4px; }
.nav-solo.on {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}
.nav-feed.on .nav-text b { color: #007aff; }
.nav-duty.on .nav-text b { color: #e86a00; }
.nav-events.on .nav-text b { color: #248a3d; }
.nav-scores.on .nav-text b { color: #8944ab; }
.nav-short.on .nav-text b { color: #0f766e; }
.rail-foot {
  margin-top: auto;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, .5);
}
.rail-user {
  flex: 1;
  min-width: 0;
}
.rail-foot strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  word-break: break-word;
}
.rail-foot .rail-user span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}
.rail-out { margin: 0; flex-shrink: 0; align-self: center; }
.rail-out-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 10px;
  background: rgba(255, 255, 255, .45);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.rail-out-btn:hover {
  background: rgba(253, 231, 233, .85);
  color: #a4262c;
  border-color: rgba(244, 180, 186, .8);
}
.rail-out-btn svg { width: 16px; height: 16px; stroke: currentColor; }
body.app .stage > .wrap,
body.app .stage > .wrap-duty,
body.app .stage > .wrap-xl { padding-top: 12px; }
body.app .stage > .flash { margin-top: 10px; }
.appico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--ico-bg);
  color: var(--ico-color);
  transition: background .2s, transform .22s cubic-bezier(.34, 1.2, .64, 1);
}
.appico svg,
.appico .lucide {
  width: 18px;
  height: 18px;
  stroke: var(--ico-color);
  stroke-width: 2;
  fill: none;
}
.appico-feed { --ico-bg: rgba(0, 122, 255, .14); --ico-color: #007aff; }
.appico-duty { --ico-bg: rgba(255, 149, 0, .16); --ico-color: #e08600; }
.appico-events { --ico-bg: rgba(52, 199, 89, .14); --ico-color: #28a745; }
.appico-scores { --ico-bg: rgba(175, 82, 222, .14); --ico-color: #9b4dca; }
.appico-link { --ico-bg: rgba(13, 148, 136, .16); --ico-color: #0d9488; }
.nav-link.on .appico {
  --ico-bg: color-mix(in srgb, var(--ico-color) 22%, white);
}
.rail .appico { width: 34px; height: 34px; border-radius: 11px; }
.rail .appico svg { width: 19px; height: 19px; }
.nav-link.on .appico { transform: scale(1.06); }
.nav-link:hover .appico { transform: scale(1.04); }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 14px;
}
.page-head h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.03em;
  color: var(--ink);
  font-weight: 600;
}
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--out);
  margin: 0 0 4px;
}
.section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--out);
  margin: 18px 0 8px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.stat-chip {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}
.stat-chip strong {
  display: block;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1.1;
}
.stat-chip span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.quick-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.quick {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 6px;
  text-decoration: none;
  color: var(--ink);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
  transition: background .15s;
}
.quick:hover { background: rgba(255, 255, 255, .96); }
.quick .appico { width: 42px; height: 42px; border-radius: 12px; }
.quick .appico svg { width: 22px; height: 22px; }

.feed-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.feed-banner {
  position: relative;
  min-height: 200px;
  border-radius: 20px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, .12);
  background: #c8d4e8 url("/static/club/hust.jpg") center 35% / cover no-repeat;
  display: flex;
  align-items: flex-end;
}
.feed-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .25) 38%, transparent 72%);
  pointer-events: none;
}
.feed-banner-cap {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 18px 14px;
}
.feed-banner-intro { min-width: 0; }
.feed-banner-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}
.feed-banner h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.feed-banner-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, .88);
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.feed-banner-btn {
  flex-shrink: 0;
  background: rgba(255, 255, 255, .96);
  color: #185abd;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}
.feed-banner-btn:hover { background: #fff; }
.feed-duty-card {
  padding: 12px 14px;
  margin-bottom: 0;
}
.feed-duty-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.feed-duty-main { flex: 1; min-width: 0; }
.feed-duty-kicker {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.feed-duty-people {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feed-duty-person {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--glass-edge);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.feed-duty-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.feed-duty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.feed-proof-inline {
  margin: 8px 0 0;
  font-size: 12px;
}
.feed-proof-ok {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 650;
  color: #15803d;
}
.feed-duty-end-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(60, 60, 67, .08);
}
.duty-feed-cam {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(60, 60, 67, .08);
}
.feed-duty-week {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 120, 212, .08);
}
.avatar.xs {
  width: 22px;
  height: 22px;
  font-size: 10px;
  flex-shrink: 0;
}
.feed-page .quick-row { margin: 0; }
.feed-page .card { margin-bottom: 0; }
.feed-page .section-title { margin: 0; }

.event-post-feed { display: flex; flex-direction: column; gap: 14px; }
.event-post { padding: 16px 18px; }
.event-post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.event-post-head > div { flex: 1; min-width: 0; }
.event-post-head strong { display: block; font-size: 14px; }
.event-post-head .muted { font-size: 12px; }
.event-post-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.event-post-body p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.event-post-meta {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.6;
}
.event-post-meta li { margin: 0; }
.event-post-file {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(16, 124, 65, .12);
  font-size: 13px;
  font-weight: 600;
}
.event-post-file-ico {
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #107c41;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
}
.event-post-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(60, 60, 67, .1);
}
.event-post-people {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.event-post-people .avatar { margin-left: -4px; border: 2px solid var(--glass); }
.event-post-people .avatar:first-child { margin-left: 0; }
.event-post-people .muted { margin-left: 6px; font-size: 12px; }
.event-post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.event-post-actions form { margin: 0; }
.check-present {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}
.check-present input { width: 18px; height: 18px; accent-color: #107c10; }
.event-post-locked,
.event-post-demo-note { font-size: 12px; }
.event-post-demo { border: 1px dashed rgba(0, 120, 212, .35); }

.card {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .72),
    0 10px 32px rgba(15, 23, 42, .1);
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
}
.card.accent { border-left: 3px solid var(--out); }
.card.accent.teams { border-left-color: var(--teams); }
.card.accent.word { border-left-color: var(--word); }
.card.accent.excel { border-left-color: var(--excel); }
.row-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.list-item {
  padding: 12px 0;
  border-top: 1px solid rgba(60, 60, 67, .12);
}
.list-item:first-of-type { border-top: 0; padding-top: 0; }
.list-item h2, .list-item h3 { margin: 0 0 4px; font-size: 16px; }
.card-title { margin: 0 0 12px; font-size: 16px; }
.shortlink-list { display: grid; gap: 12px; }
.shortlink-card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 8px 28px rgba(80, 100, 140, .08);
}
.shortlink-card--off { opacity: .72; }
.shortlink-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.shortlink-card__code {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--out);
  text-decoration: none;
}
.shortlink-card__label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.shortlink-card__badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 59, 48, .12);
  color: #c41e14;
}
.shortlink-card__url {
  margin: 0 0 4px;
  font-size: 13px;
  word-break: break-all;
  line-height: 1.4;
}
.shortlink-card__target {
  margin: 0 0 4px;
  font-size: 12px;
  word-break: break-all;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shortlink-card__meta { margin: 0 0 14px; font-size: 12px; }
.shortlink-card__foot {
  display: grid;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(60, 60, 67, .1);
}
.shortlink-card__qr {
  margin: 0;
  text-align: center;
}
.shortlink-card__qr img {
  display: block;
  width: min(100%, 160px);
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(24, 90, 189, .14);
}
.shortlink-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.shortlink-card__actions form { margin: 0; }
.shortlink-card__actions .btn,
.shortlink-card__actions form button {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 13px;
  white-space: nowrap;
}
.shortlink-card__danger { color: #c41e14 !important; }
@media (min-width: 640px) {
  .shortlink-card__foot {
    grid-template-columns: 168px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
  }
  .shortlink-card__qr { text-align: left; }
  .shortlink-card__qr img { margin: 0; }
  .shortlink-card__actions {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    max-width: 420px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(60, 60, 67, .14);
    border-radius: 10px;
    box-shadow:
      0 1px 2px rgba(15, 23, 42, .04),
      inset 0 1px 0 rgba(255, 255, 255, .85);
  }
  .shortlink-card__actions > .btn,
  .shortlink-card__actions > form {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    border-right: 1px solid rgba(60, 60, 67, .1);
  }
  .shortlink-card__actions > .btn:last-child,
  .shortlink-card__actions > form:last-child {
    border-right: 0;
  }
  .shortlink-card__actions .btn,
  .shortlink-card__actions form button {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 12.5px;
    font-weight: 650;
    letter-spacing: .01em;
    color: #1c1c1e;
  }
  .shortlink-card__actions .btn:hover,
  .shortlink-card__actions form button:hover {
    background: rgba(0, 120, 212, .08);
    color: #0b5cab;
  }
  .shortlink-card__actions .shortlink-card__danger {
    color: #a4262c !important;
  }
  .shortlink-card__actions .shortlink-card__danger:hover {
    background: rgba(196, 30, 20, .08);
    color: #8a1212 !important;
  }
}
.shortlink-form p { margin: 0 0 10px; }
.shortlink-form label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.shortlink-form input { width: 100%; max-width: 480px; }
.duty-now form { margin-top: 8px; }
.proof-thumb {
  display: block;
  width: min(100%, 280px);
  height: auto;
  border-radius: var(--radius);
  margin: 8px 0 12px;
}
.presence { display: grid; gap: 14px; margin-top: 10px; }
.person-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
}
.person:last-child { margin-bottom: 0; }
.person div { display: grid; gap: 1px; min-width: 0; }
.person strong { font-size: 14px; letter-spacing: -.02em; }
.person .muted { font-weight: 500; }
.avatar.sm { width: 40px; height: 40px; font-size: 15px; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
h1 { font-size: 22px; margin: 0 0 10px; letter-spacing: -.02em; }
h2 { font-size: 16px; margin: 0 0 6px; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.45; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cmd { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
button, .btn {
  appearance: none;
  border: 0;
  background: #0078d4;
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--ctrl);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
button:hover, .btn:hover { background: #106ebe; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.ghost, .btn.ghost {
  background: rgba(255, 255, 255, .45);
  color: #1c1c1e;
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
button.ghost:hover, .btn.ghost:hover { background: rgba(255, 255, 255, .7); }
.btn.teams { background: var(--teams); }
.btn.teams:hover { background: #50519a; }
.btn.word { background: var(--word); }
.btn.word:hover { background: #13478c; }
.btn.excel { background: var(--excel); }
.btn.excel:hover { background: #0b6a0b; }
.btn.ppt { background: var(--ppt); }
.btn.ppt:hover { background: #b72201; }
.btn.small { padding: 5px 10px; font-size: 13px; }
input, select, textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(60, 60, 67, .22);
  border-radius: var(--ctrl);
  font: inherit;
  margin: 4px 0 12px;
  background: rgba(255, 255, 255, .7);
}
input:hover, select:hover, textarea:hover { border-color: rgba(60, 60, 67, .4); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #0078d4;
  box-shadow: 0 0 0 4px rgba(0, 120, 212, .22);
}
label { font-size: 12px; color: var(--muted); font-weight: 600; }
form p { margin: 0; }

.mob-top { display: none; }
.mob-out { display: none; }
@media (max-width: 820px) {
  .mob-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: calc(10px + env(safe-area-inset-top, 0px)) 12px 0;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 18px;
    box-shadow:
      0 8px 24px rgba(15, 23, 42, .08),
      inset 0 1px 0 rgba(255, 255, 255, .9);
  }
  .glass-app.has-duty-live .mob-top {
    margin-top: calc(10px + env(safe-area-inset-top, 0px));
  }
  .duty-live-bar {
    margin-left: 12px;
    margin-right: 12px;
  }
  .mob-top-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 12px;
  }
  .mob-top-text {
    min-width: 0;
    display: grid;
    gap: 2px;
  }
  .mob-top-text strong {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
    line-height: 1.2;
  }
  .mob-top-text span {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.2;
  }
  .mob-out {
    display: block;
    margin: 0;
  }
  .mob-out button {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow:
      0 4px 14px rgba(15, 23, 42, .08),
      inset 0 1px 0 rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .9);
  }
  .mob-out button:hover { color: #a4262c; }
  .mob-out button svg { width: 18px; height: 18px; stroke: currentColor; }
}
.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  width: auto;
  max-width: none;
  bottom: calc(8px + var(--safe-bottom));
  z-index: 9;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 20px;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, .12),
    inset 0 1px 0 rgba(255, 255, 255, .85);
}
.dock-pill {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  align-items: stretch;
}
.dock-pill .nav-link {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 2px;
  height: auto;
  min-height: 46px;
  padding: 4px 2px 5px;
  border-radius: 14px;
  opacity: .7;
  overflow: visible;
  transform: none;
}
.dock-pill .nav-link.on {
  opacity: 1;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .08);
}
.dock-pill .nav-link:hover { transform: translateY(-2px); opacity: 1; }
.dock-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--muted);
  max-width: 100%;
  overflow: visible;
  white-space: nowrap;
  text-align: center;
}
.dock-pill .nav-link.on .dock-label { color: var(--ink); }
.dock-pill .nav-feed.on .dock-label { color: #007aff; }
.dock-pill .nav-duty.on .dock-label { color: #e86a00; }
.dock-pill .nav-events.on .dock-label { color: #248a3d; }
.dock-pill .nav-scores.on .dock-label { color: #8944ab; }
.dock-pill .appico { width: 26px; height: 26px; border-radius: 8px; }
.dock-pill .appico svg { width: 15px; height: 15px; }
.dock-pill .nav-link.on .appico { transform: scale(1.08); }
.dock-pill .nav-link::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  margin-top: 0;
}
.dock-pill .nav-feed.on::after { background: #007aff; }
.dock-pill .nav-duty.on::after { background: #ff9500; }
.dock-pill .nav-events.on::after { background: #34c759; }
.dock-pill .nav-scores.on::after { background: #af52de; }
.dock .nav-short {
  display: grid;
  place-items: center;
  height: auto;
  min-height: 46px;
  padding: 4px;
  flex-shrink: 0;
  align-self: center;
}
.dock-side {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  align-self: center;
}
.dock .nav-short .appico { width: 32px; height: 32px; border-radius: 10px; }
.dock .nav-short .appico svg { width: 17px; height: 17px; }
.dock .nav-short.on .appico {
  outline: 2px solid rgba(13, 148, 136, .5);
  outline-offset: 2px;
  transform: scale(1.05);
}
@media (prefers-reduced-motion: reduce) {
  .rail-glider,
  .nav-link,
  .nav-link .appico { transition: none; }
}

.wrap-duty {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 12px 24px;
  background: transparent;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
}
.duty-page .flash { max-width: 1240px; padding-left: 12px; padding-right: 12px; }
.duty-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.duty-shell > .card,
.duty-shell > .duty-xls-wrap,
.duty-shell > .duty-foot,
.duty-shell > .duty-cancel-panel {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}
.duty-hero { padding: 16px 18px; }
.duty-hero-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.duty-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.duty-hero-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.duty-hk {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 124, 16, .14);
  color: #0b6a0b;
  border: 1px solid rgba(16, 124, 16, .2);
}
.duty-weeknav { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.duty-arr {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--ctrl);
  font-size: 18px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--glass-edge);
}
.duty-arr.off { opacity: .35; pointer-events: none; }
.duty-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.duty-stat {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(0, 120, 212, .08);
  border: 1px solid rgba(0, 120, 212, .12);
}
.duty-stat strong { font-weight: 800; margin-right: 4px; }
.duty-stat.muted-stat { background: rgba(60, 60, 67, .06); border-color: rgba(60, 60, 67, .1); color: var(--muted); }
.duty-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(60, 60, 67, .1);
}
.duty-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, .45);
  border: 1px solid var(--glass-edge);
  color: var(--ink);
}
.chip.on {
  background: linear-gradient(135deg, #0078d4, #2b8ce0);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 120, 212, .25);
}
.duty-check {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  padding-left: 20px;
  position: relative;
}
.duty-check::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 13px; height: 13px;
  border: 1px solid #8a8886;
  border-radius: 4px;
  background: #fff;
}
.duty-check.on::before {
  background: #0078d4;
  border-color: #0078d4;
  box-shadow: inset 0 0 0 2px #fff;
}
.duty-xls-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(22px) saturate(1.12);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius);
  box-shadow:
    0 10px 36px rgba(80, 100, 140, .1),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}
.duty-xls {
  width: 100%;
  min-width: 700px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 12px;
  line-height: 1.35;
}
.duty-xls th,
.duty-xls td {
  border: 1px solid rgba(60, 60, 67, .07);
  padding: 0;
  vertical-align: middle;
  text-align: center;
}
.duty-xls thead th {
  border-bottom: 2px solid rgba(60, 60, 67, .1);
}
.duty-xls-corner,
.duty-xls-col,
.duty-xls-row {
  background: rgba(248, 250, 255, .95);
  color: var(--ink);
  font-weight: 600;
}
.duty-xls-corner {
  width: 108px;
  min-width: 108px;
  padding: 10px 10px;
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  position: sticky;
  left: 0;
  z-index: 4;
  box-shadow: 4px 0 12px rgba(15, 23, 42, .04);
}
.duty-xls-col {
  padding: 8px 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(236, 240, 248, .9));
}
.duty-xls-day { display: block; font-size: 12px; font-weight: 800; letter-spacing: -.02em; }
.duty-xls-date { display: block; font-size: 10px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.duty-xls-col.today {
  background: linear-gradient(180deg, #107c10, #0b6a0b);
  color: #fff;
  border-color: rgba(11, 106, 11, .35);
}
.duty-xls-col.today .duty-xls-date { color: rgba(255, 255, 255, .88); }
.duty-xls-col.past { opacity: .72; }
.duty-xls-col.holi {
  background: linear-gradient(180deg, #fff0e8, #fde8dc);
  color: #a63b12;
}
.duty-xls-row {
  width: 108px;
  min-width: 108px;
  padding: 8px 10px;
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 2;
  background: rgba(248, 250, 255, .98);
  border-right: 2px solid rgba(60, 60, 67, .08);
  box-shadow: 4px 0 10px rgba(15, 23, 42, .03);
}
.duty-xls-row.onl {
  background: linear-gradient(90deg, rgba(98, 100, 167, .1), rgba(248, 250, 255, .98));
}
.duty-xls-kip { display: block; font-size: 12px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.duty-xls-time { display: block; font-size: 10px; font-weight: 700; color: #444; margin-top: 3px; }
.duty-xls-place {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.duty-xls-cell {
  position: relative;
  min-height: 54px;
  height: auto;
  padding: 6px 4px 5px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  cursor: default;
  transition: background .15s ease, box-shadow .15s ease, transform .12s ease;
}
.duty-xls-faces {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  min-height: 26px;
  max-width: 100%;
  padding: 0 2px;
}
.duty-xls-faces .avatar {
  width: 22px;
  height: 22px;
  font-size: 10px;
  margin-left: -7px;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .12);
  flex-shrink: 0;
}
.duty-xls-faces .avatar:first-child { margin-left: 0; }
.duty-xls-more {
  margin-left: 2px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}
.duty-xls-val {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.duty-xls-val.dim { color: #8e8e93; font-weight: 700; }
.duty-xls-sub {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 600;
}
.duty-xls-cell.empty,
.duty-xls-cell.open { background: rgba(255, 255, 255, .95); }
.duty-xls-cell.hot {
  background: linear-gradient(180deg, #fff8e1, #ffefb8);
}
.duty-xls-cell.hot .duty-xls-sub { color: #b8860b; font-weight: 800; }
.duty-xls-cell.today:not(.mine):not(.full):not(.past):not(.dead) {
  background: linear-gradient(180deg, #edf7ed, #e2f0e2);
}
.duty-xls-cell.mine {
  background: linear-gradient(180deg, #edf7ed, #d8f0dc);
  box-shadow: inset 0 0 0 1px rgba(40, 167, 69, .28);
}
.duty-xls-cell.mine .duty-xls-sub { color: #1e7e34; font-weight: 700; }
.duty-xls-cell.full {
  background: linear-gradient(180deg, #ececf0, #e2e2e8);
  color: #636366;
}
.duty-xls-cell.dead {
  background: linear-gradient(180deg, #ffe8e8, #ffd6d6);
  color: #c41e14;
}
.duty-xls-cell.past { background: rgba(242, 242, 247, .85); color: #aeaeb2; }
.duty-xls-cell.locked { opacity: .6; }
.duty-xls-cell.away { opacity: .22; pointer-events: none; }
.duty-xls-cell.void { background: rgba(250, 250, 252, .6); }
.duty-xls-cell.js-duty-toggle { cursor: pointer; }
.duty-xls-cell.js-duty-toggle:hover {
  background: rgba(0, 120, 212, .08);
  box-shadow: inset 0 0 0 2px rgba(0, 120, 212, .35);
  z-index: 1;
}
.duty-xls-cell.mine.js-duty-toggle:hover {
  background: linear-gradient(180deg, #dff5e3, #c8ebd0);
  box-shadow: inset 0 0 0 2px rgba(40, 167, 69, .4);
}
.duty-xls-admin {
  display: none;
  position: absolute;
  top: 3px; right: 3px;
  gap: 3px;
  font-size: 9px;
}
.duty-xls-cell:hover .duty-xls-admin { display: inline-flex; }
.duty-xls-admin form { margin: 0; display: inline; }
.duty-xls-admin button,
.duty-xls-admin a {
  padding: 1px 5px;
  font-size: 9px;
  border: 1px solid rgba(60, 60, 67, .15);
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
}
.duty-xls-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 14px;
  border-top: 1px solid rgba(60, 60, 67, .08);
  background: rgba(248, 250, 255, .92);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.duty-xls-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.duty-xls-leg {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  line-height: 14px;
}
.duty-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(60, 60, 67, .12);
  border-radius: 4px;
  flex: 0 0 14px;
  box-sizing: border-box;
}
.duty-swatch.open { background: #fff; }
.duty-swatch.hot { background: linear-gradient(180deg, #fff8e1, #ffefb8); border-color: #e6b800; }
.duty-swatch.mine {
  background: linear-gradient(180deg, #edf7ed, #d8f0dc);
  border: 2px solid #28a745;
  box-shadow: 0 0 0 1px rgba(40, 167, 69, .2);
}
.duty-swatch.full { background: #e2e2e8; }
.duty-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
}
.duty-foot-body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.duty-foot-summary { margin: 0; font-size: 13px; color: var(--ink); font-weight: 600; }
.duty-my-block { display: grid; gap: 4px; }
.duty-cancel-panel {
  margin-top: 0;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.duty-cancel-panel-head .duty-my-label {
  color: #a4262c;
  margin-bottom: 2px;
}
.duty-cancel-panel-hint {
  margin: 0;
  font-size: 12px;
}
.duty-cancel-wrap {
  border-color: rgba(164, 38, 44, .18);
}
.duty-cancel-xls .duty-cancel-reason-cell {
  white-space: normal;
  max-width: 320px;
  text-align: left;
  font-weight: 500;
  color: #5c2b2b;
}
.duty-cancel-row td.name { font-weight: 650; }
.duty-my-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.duty-my-wrap {
  overflow-x: auto;
  border: 1px solid rgba(60, 60, 67, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
}
.duty-my-xls {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.duty-my-xls th,
.duty-my-xls td {
  padding: 7px 10px;
  border: 1px solid rgba(60, 60, 67, .1);
  text-align: left;
  white-space: nowrap;
}
.duty-my-xls thead th {
  background: rgba(248, 250, 255, .95);
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.duty-my-row { cursor: pointer; }
.duty-my-row:hover td { background: rgba(40, 167, 69, .06); }
.duty-my-row.past td { color: #8e8e93; }
.duty-my-empty-row td {
  color: var(--muted);
  font-weight: 500;
  text-align: center;
  font-style: italic;
}
.duty-proof-cell {
  min-width: 9.5rem;
  white-space: normal;
  line-height: 1.25;
}
.duty-proof-warn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #b45309;
  font-weight: 600;
  font-size: 11px;
}
.duty-proof-warn svg { flex: 0 0 auto; }
.duty-proof-ok {
  color: #15803d;
  font-weight: 650;
  font-size: 12px;
  text-decoration: none;
}
.duty-proof-na { color: var(--muted); }
.feed-proof-warn {
  margin: 8px 0 10px;
  font-size: 13px;
}
.duty-proof-video {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
  margin: 8px 0;
}
.duty-proof-card { width: min(100%, 380px); }
.duty-proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.btn.tiny {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 8px;
  margin-top: 4px;
}
.duty-captcha-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}
.duty-captcha-modal[hidden] { display: none !important; }
.duty-captcha-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.duty-captcha-card {
  position: relative;
  width: min(100%, 320px);
  padding: 20px 18px 16px;
  border-radius: 20px;
  text-align: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 16px 48px rgba(15, 23, 42, .18);
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
}
.duty-captcha-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.duty-captcha-hint {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.duty-captcha-widget {
  display: flex;
  justify-content: center;
  min-height: 68px;
  margin-bottom: 12px;
}
.duty-captcha-cancel { width: 100%; }
.duty-cancel-reason {
  width: 100%;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--glass-border, rgba(255,255,255,.35));
  border-radius: 12px;
  font: inherit;
  resize: vertical;
  min-height: 72px;
  background: rgba(255,255,255,.55);
}
#duty-cancel-submit { width: 100%; margin-bottom: 8px; }
.badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 120, 212, .14);
  color: var(--word);
  font-weight: 700;
  display: inline-block;
}
.badge.off { background: rgba(16, 124, 16, .14); color: var(--excel); }
.badge.onl { background: rgba(60, 60, 67, .08); color: var(--muted); }
.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
.pill.xs { background: #dff6dd; color: var(--excel); }
.pill.tot { background: #deecf9; color: var(--word); }
.pill.ht { background: #fff4e5; color: #ca5010; }
.pill.kht { background: #fde7e9; color: var(--ppt); }
.tile {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.tile-date {
  min-width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #0078d4;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.1;
  font-weight: 700;
}
.tile-date small { display: block; font-size: 10px; opacity: .7; font-weight: 600; }
.tile.past { opacity: .65; }
.tile h2 { margin: 4px 0 2px; }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.score-grid-4 { grid-template-columns: repeat(2, 1fr); }
.score-num { font-size: 28px; font-weight: 750; letter-spacing: -.04em; color: var(--ink); }
.score-sub { margin: 4px 0 0; font-size: 12px; }
.stat { margin-bottom: 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  padding: 10px 8px;
  text-align: left;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid rgba(60, 60, 67, .12);
}
table.data td { padding: 12px 8px; border-bottom: 1px solid rgba(60, 60, 67, .1); }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(255, 255, 255, .35); }

body.login-page {
  padding-bottom: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", sans-serif;
}
.login-page .top, .login-page .dock, .login-page .rail { display: none; }
.login-page .wrap { max-width: none; padding: 0; min-height: 100dvh; margin: 0; background: transparent; border-radius: 0; box-shadow: none; }
.login-page .flash { max-width: 420px; }
.login-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px 40px;
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(8, 22, 40, .5) 0%, rgba(8, 22, 40, .12) 42%, rgba(8, 22, 40, .45) 100%),
    url("/static/club/hust.jpg") center 32% / cover no-repeat;
  color: #fff;
}
.login-art .logo.lg { height: 72px; margin-bottom: 12px; }
.login-art h1 { font-size: 26px; line-height: 1.25; margin: 0 0 8px; color: #fff; }
.login-art p { color: rgba(255,255,255,.9); max-width: 360px; font-size: 15px; margin: 0; }
.login-form {
  display: grid;
  place-items: center;
  padding: 56px 56px;
  min-height: 100dvh;
  background: #f3f2f1;
  position: relative;
}
.login-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d83b01 0 25%, #ffb900 25% 50%, #107c10 50% 75%, #0078d4 75% 100%);
}
.login-panel { width: min(100%, 340px); }
.login-brand {
  margin: 0 0 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #0078d4;
}
.login-lead {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: #201f1e;
}
.login-hint { margin: 0 0 28px; font-size: 14px; color: #605e5c; line-height: 1.45; }
.login-panel form { width: 100%; }
.login-panel label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #201f1e;
}
.login-panel ul.errorlist {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  color: #a4262c;
  font-size: 13px;
}
.login-panel input {
  border: 1px solid #8a8886;
  border-radius: 2px;
  padding: 8px 10px;
  height: 40px;
  margin: 0 0 16px;
  background: #fff;
  color: #201f1e;
  font-size: 15px;
}
.login-panel input:hover { border-color: #323130; }
.login-panel input:focus {
  outline: none;
  border-color: #0078d4;
  box-shadow: inset 0 -2px 0 #0078d4;
}
.login-panel button {
  width: 100%;
  margin: 8px 0 20px;
  padding: 10px 16px;
  height: 40px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 2px;
  background: #0078d4;
}
.login-panel button:hover { background: #106ebe; }
.login-panel button:disabled { opacity: .55; cursor: not-allowed; }
.login-captcha-label {
  margin: 14px 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #605e5c;
}
.login-turnstile {
  display: flex;
  justify-content: center;
  min-height: 68px;
  margin: 0 0 12px;
}
.login-foot { margin: 0; font-size: 13px; color: #605e5c; }
.login-foot span { color: #0078d4; font-weight: 600; }
.tick {
  border: 1px solid var(--glass-edge);
  min-width: 32px;
  height: 32px;
  border-radius: var(--ctrl);
  background: rgba(255, 255, 255, .5);
  color: var(--muted);
  padding: 0;
  cursor: pointer;
  font-weight: 800;
}
.tick.on { background: rgba(16, 124, 16, .18); color: var(--excel); border-color: rgba(16, 124, 16, .35); }
.qr-box { text-align: center; padding: 24px 16px 28px; }
.qr-box img {
  width: min(72vw, 280px);
  height: auto;
  background: #fff;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--glass-edge);
}
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
#reader { border-radius: var(--radius); overflow: hidden; }
.wrap-xl { max-width: 1400px; padding: 12px 12px 20px; }
.events-sheet .flash { max-width: 1400px; }
.xl-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 10px;
}
.xl-bar h1 { margin: 0; font-size: 22px; color: var(--ink); }
.xl-bar .muted { color: var(--muted); }
.xl-search {
  width: 220px;
  margin: 0;
  height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--glass-edge);
  border-radius: var(--ctrl);
  background: rgba(255, 255, 255, .7);
}
.xl-wrap {
  overflow: auto;
  max-height: calc(100dvh - 210px);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .08);
}
.xl {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  font-size: 12px;
  font-family: "Segoe UI", Calibri, sans-serif;
}
.xl th, .xl td {
  border: 1px solid #e1dfdd;
  padding: 4px 6px;
  white-space: nowrap;
  background: #fff;
}
.xl thead th {
  position: sticky;
  z-index: 3;
  background: #0078d4;
  color: #fff;
  font-weight: 700;
  text-align: center;
}
.xl thead tr:nth-child(1) th { top: 0; }
.xl thead tr:nth-child(2) th { top: 28px; }
.xl thead tr:nth-child(3) th { top: 56px; }
.xl thead tr:nth-child(4) th { top: 84px; }
.xl.xl-report thead tr:nth-child(2) th,
.xl.xl-report thead tr:nth-child(3) th,
.xl.xl-report thead tr:nth-child(4) th { top: auto; position: static; }
.xl.xl-report .xl-ev {
  width: 88px;
  min-width: 88px;
  max-width: 110px;
  padding: 10px 8px !important;
  vertical-align: middle;
  white-space: normal;
}
.xl.xl-report .xl-ev-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  padding-top: 14px;
}
.xl.xl-report .xl-ev a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  color: #fff;
  text-decoration: none;
}
.xl.xl-report .xl-ev a:hover { text-decoration: underline; }
.xl.xl-report .xl-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}
.xl.xl-report .xl-chip.is-off {
  color: #0f3d1a;
  background: rgba(255, 255, 255, .88);
  border-color: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, .25);
}
.xl.xl-report .xl-chip.is-on {
  color: #0b3a66;
  background: rgba(255, 255, 255, .88);
  border-color: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, .28);
}
.xl.xl-report .xl-total-h,
.xl.xl-report .xl-total {
  width: 64px;
  min-width: 64px;
  text-align: center;
}
.xl td.xl-present {
  width: 88px;
  min-width: 88px;
  max-width: 110px;
  text-align: center;
  vertical-align: middle;
  padding: 8px 6px !important;
}
.xl .xl-ok {
  color: #107c10;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.xl .xl-no { color: #94a3b8; font-size: 14px; }
.xl .xl-col-hide {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.xl .xl-col-hide:hover {
  background: rgba(255, 255, 255, .4);
}
.xl [data-ev-col].is-col-hidden,
.xl [data-post-col].is-col-hidden,
.xl [data-act-col].is-col-hidden {
  display: none;
}
.xl thead .xl-sub th { background: #deecf9; color: #004578; font-weight: 650; }
.xl-ev a { color: #fff; text-decoration: none; }
.xl-ev a:hover { text-decoration: underline; }
.xl-off { background: #dff6dd !important; color: #0b5a08 !important; }
.xl-on { background: #deecf9 !important; color: #004578 !important; }
.xl .xl-s { position: sticky; z-index: 2; background: #fff; }
.xl thead .xl-s { z-index: 4; background: #0078d4; }
.xl thead .xl-sub .xl-s { background: #deecf9; }
.xl-s0 { left: 0; min-width: 40px; width: 40px; text-align: center; }
.xl-s1 { left: 40px; min-width: 168px; width: 168px; text-align: left; }
.xl-s2 { left: 208px; min-width: 92px; width: 92px; }
.xl-s3 { left: 300px; min-width: 110px; width: 110px; }
.xl-s4 { left: 410px; min-width: 96px; width: 96px; }
.xl td.name { font-weight: 650; }
.xl td.num, .xl td.pct { text-align: center; }
.xl tbody tr:nth-child(even) td { background: #faf9f8; }
.xl tbody tr:nth-child(even) td.xl-s { background: #faf9f8; }
.xl tbody tr.me td, .xl tbody tr.me td.xl-s { background: #deecf9; }
.xl td.rank { font-weight: 700; }
.xl tr.rk-xs td.rank { color: #006100; }
.xl tr.rk-tot td.rank { color: #185abd; }
.xl tr.rk-ht td.rank { color: #ca5010; }
.xl tr.rk-kht td.rank { color: #a4262c; }
.xl-in {
  width: 48px;
  height: 24px;
  margin: 0 auto;
  padding: 0 4px;
  border: 1px solid rgba(60, 60, 67, .22);
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  background: rgba(255, 255, 255, .85);
  box-shadow: none;
  display: block;
}
.xl-in:focus { outline: none; box-shadow: 0 0 0 3px rgba(0, 120, 212, .22); border-color: #0078d4; }
.xl-hint { margin: 8px 4px 0; color: var(--muted); }
.task-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

@media (max-width: 820px) {
  .xl-s2, .xl-s3, .xl-s4 { position: static; }
  .xl-s1 { left: 40px; }
  .score-grid { grid-template-columns: 1fr; }
  .score-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .login-shell { grid-template-columns: 1fr; }
  .login-art {
    min-height: 0;
    height: 22vh;
    max-height: 168px;
    padding: 16px 20px 14px;
  }
  .login-art .logo.lg { height: 44px; margin-bottom: 6px; }
  .login-art h1 { font-size: 18px; margin-bottom: 4px; }
  .login-art p { font-size: 13px; }
  .login-form {
    min-height: auto;
    place-items: start center;
    padding: 18px 22px 28px;
  }
  .login-lead { font-size: 20px; }
  .login-hint { margin-bottom: 18px; }
}
@media (max-width: 820px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid .stat-chip:last-child { grid-column: span 2; }
  .quick-row { grid-template-columns: repeat(2, 1fr); }
  .feed-banner { min-height: 168px; }
  .feed-banner-cap { flex-direction: column; align-items: flex-start; }
  .feed-banner-btn { align-self: flex-start; }
  .feed-banner h1 { font-size: 20px; }
  .feed-duty-top { flex-direction: column; }
  .feed-duty-aside { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .feed-duty-actions { width: 100%; justify-content: flex-end; }
  .duty-hero { padding: 14px; }
  .duty-hero-title { font-size: 20px; }
  .duty-xls-hint { margin-left: 0; width: 100%; }
  .duty-xls-cell { min-height: 46px; height: 46px; }
  .duty-xls-corner,
  .duty-xls-row { width: 92px; min-width: 92px; padding: 6px 8px; }
}
@media (min-width: 821px) {
  body.app { padding-bottom: 0; }
  .wrap-duty {
    padding: 0 16px 28px;
  }
  .duty-page .flash { padding-left: 16px; padding-right: 16px; }
  .glass-app {
    display: grid;
    grid-template-columns: var(--rail) 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
  }
  .rail {
    display: block;
    position: sticky;
    top: 0;
    height: 100dvh;
    width: auto;
    z-index: 8;
    padding: 12px 10px 12px 12px;
    background: transparent;
    border-right: 0;
    box-shadow: none;
  }
  .rail-panel {
    height: calc(100dvh - 24px);
    background: rgba(255, 255, 255, .58);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 22px;
    box-shadow:
      0 8px 32px rgba(15, 23, 42, .1),
      inset 0 1px 0 rgba(255, 255, 255, .8);
  }
  .stage { grid-column: 2; }
  .duty-live-bar {
    margin: 16px 16px 0;
    max-width: 880px;
  }
  .dock { display: none; }
  .mob-top { display: none; }
  .wrap { margin: 0 auto 28px; }
  .flash { margin-top: 16px; }
  .presence { grid-template-columns: 1fr 1fr; }
  .wrap-xl { max-height: none; }
}

/* Event form + Quill */
.event-form-card form p { margin: 0 0 12px; }
.event-form-card label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #334155; }
.event-form-card input[type=text],
.event-form-card select,
.event-form-card .date-vn {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .45);
  background: rgba(255,255,255,.72);
}
.event-form-dates { display: flex; flex-wrap: wrap; gap: 12px; }
.event-form-dates p { flex: 1; min-width: 160px; }
.quill-field { margin: 8px 0 16px; }
.quill-box {
  min-height: 180px;
  background: rgba(255,255,255,.78);
  border-radius: 0 0 14px 14px;
  border: 1px solid rgba(148, 163, 184, .4);
}
.ql-toolbar.ql-snow {
  border-radius: 14px 14px 0 0;
  border-color: rgba(148, 163, 184, .4);
  background: rgba(255,255,255,.65);
}
.ql-container.ql-snow { border: 0; font-size: 15px; }
.richtext { line-height: 1.55; margin: 0 0 10px; }
.richtext p { margin: 0 0 .7em; }
.richtext ul, .richtext ol { margin: 0 0 .7em; padding-left: 1.3em; }
.richtext a { color: #0369a1; }

/* Bump board */
.bump-add {
  margin-bottom: 12px;
  padding: 12px 14px;
}
.bump-add-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: flex-end;
}
.bump-add-form label,
.bump-add-form .bump-add-submit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 650;
  color: #334155;
  margin: 0;
}
.bump-add-form input,
.bump-add-form input[type="text"],
.bump-add-form input[type="number"] {
  width: 100%;
  min-width: 140px;
  max-width: 220px;
  height: 34px;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, .45);
  background: rgba(255,255,255,.75);
  box-sizing: border-box;
  margin: 0;
  line-height: 1.2;
}
.bump-add-form .bump-add-spacer {
  display: block;
  height: 15px;
  line-height: 15px;
  visibility: hidden;
  overflow: hidden;
}
.bump-add-form input[type="file"] {
  max-width: none;
  min-width: 220px;
  padding: 4px 8px;
  background: transparent;
  border-style: dashed;
}
.bump-add-form .bump-add-submit .btn,
.bump-add-form .bump-add-submit button {
  height: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
  align-self: stretch;
}
.xl.xl-bump {
  table-layout: fixed;
}
.xl.xl-bump .xl-ev {
  width: 108px;
  min-width: 108px;
  max-width: 108px;
  padding: 8px 6px !important;
  vertical-align: middle;
  white-space: normal;
}
.xl.xl-bump .xl-ev-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  padding-top: 14px;
}
.bump-hidden-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(148, 163, 184, .28);
}
.bump-hidden-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.bump-hidden-chip {
  appearance: none;
  border: 1px solid rgba(0, 120, 212, .28);
  background: rgba(0, 120, 212, .1);
  color: #0b3a66;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.bump-hidden-chip:hover {
  background: rgba(0, 120, 212, .18);
}
.xl.xl-bump .xl-ev-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 96px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  color: #fff;
}
.xl.xl-bump .xl-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: #0b3a66;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .55);
  white-space: nowrap;
}
.xl.xl-bump .xl-rs-lab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 56px;
  gap: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255,255,255,.9);
  text-align: center;
}
.xl.xl-bump .xl-bump-td {
  width: 108px;
  min-width: 108px;
  max-width: 108px;
  padding: 6px 4px !important;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
.xl.xl-bump .xl-bump-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 56px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}
.xl.xl-bump .xl-total-h,
.xl.xl-bump .xl-total {
  width: 56px;
  min-width: 56px;
  text-align: center;
  font-weight: 700;
}
.xl-tick {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 22px;
  height: 22px;
}
.xl-tick:hover { color: #64748b; }
.xl-tick.on { color: #107c10; }

.xl.xl-scores {
  table-layout: fixed;
  width: max-content;
  min-width: 100%;
}
.xl.xl-scores th,
.xl.xl-scores td.num {
  text-align: center;
}
.xl.xl-scores .xl-ratio {
  width: 100px;
  min-width: 96px;
  max-width: 120px;
  white-space: nowrap;
}
@media (min-width: 900px) {
  .score-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.xl.xl-act .xl-ev {
  width: 108px;
  min-width: 108px;
  max-width: 120px;
}
.xl.xl-act .xl-ev-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  color: #fff;
}
.xl.xl-act .xl-present {
  width: 108px;
  min-width: 108px;
}

.score-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(148, 163, 184, .28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.score-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  color: #475569;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease;
}
.score-tab:hover {
  background: rgba(0, 120, 212, .08);
  color: #0b3a66;
}
.score-tab.on {
  background: #0078d4;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 120, 212, .28);
}
