/* 独立签到页 */

.checkin-page-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 90% 55% at 50% -8%, rgba(56, 140, 210, 0.28), transparent 58%),
        radial-gradient(ellipse 60% 40% at 100% 20%, rgba(30, 90, 140, 0.18), transparent 50%),
        radial-gradient(ellipse 50% 35% at 0% 80%, rgba(20, 70, 110, 0.14), transparent 45%),
        linear-gradient(180deg, #04080e 0%, #0a1520 42%, #060d14 100%);
    color: #e8f4ff;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.checkin-page-body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(95, 184, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(95, 184, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
    z-index: 0;
}

.checkin-page-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(95, 184, 255, 0.18);
    background: rgba(4, 12, 22, 0.72);
    backdrop-filter: blur(10px);
}

.checkin-page-nav .checkin-nav-home {
    color: #8ee0ff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(95, 184, 255, 0.28);
    background: rgba(95, 184, 255, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.checkin-page-nav .checkin-nav-home:hover {
    color: #fff;
    border-color: rgba(140, 210, 255, 0.55);
    background: rgba(95, 184, 255, 0.16);
}

.checkin-page-nav--spread {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkin-nav-back {
    color: #8ee0ff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(95, 184, 255, 0.28);
    background: rgba(95, 184, 255, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.checkin-nav-back:hover {
    color: #fff;
    border-color: rgba(140, 210, 255, 0.55);
    background: rgba(95, 184, 255, 0.16);
}

.checkin-hub-hero {
    text-align: center;
    margin-bottom: 2.25rem;
    padding: 1.5rem 1rem 0;
}

.checkin-hub-page-title {
    margin: 0 0 0.85rem;
    font-size: clamp(1.85rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #fff;
    text-shadow: 0 0 40px rgba(95, 184, 255, 0.25);
}

.checkin-hub-lead {
    margin: 0 auto;
    max-width: 36rem;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(180, 210, 230, 0.78);
}

.checkin-hub-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.checkin-hub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    min-height: 11.5rem;
    padding: 1.5rem 1.6rem 1.35rem;
    border-radius: 16px;
    border: 1px solid rgba(95, 184, 255, 0.28);
    background:
        linear-gradient(155deg, rgba(14, 42, 68, 0.92) 0%, rgba(8, 24, 40, 0.88) 100%);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.checkin-hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(95, 184, 255, 0.15), rgba(95, 184, 255, 0.85), rgba(95, 184, 255, 0.15));
    opacity: 0.75;
}

.checkin-hub-card[data-branch='hq']::before {
    background: linear-gradient(90deg, transparent, #5fb8ff, transparent);
}

.checkin-hub-card[data-branch='squad1']::before {
    background: linear-gradient(90deg, transparent, #6ee7c8, transparent);
}

.checkin-hub-card[data-branch='uss']::before {
    background: linear-gradient(90deg, transparent, #c084fc, transparent);
}

.checkin-hub-card[data-branch='ussprod']::before {
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
}

.checkin-hub-card:hover {
    border-color: rgba(140, 210, 255, 0.55);
    transform: translateY(-4px);
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(95, 184, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.checkin-hub-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.checkin-hub-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f2fbff;
    letter-spacing: 0.06em;
    line-height: 1.25;
}

.checkin-hub-card-desc {
    font-size: 0.88rem;
    color: rgba(170, 200, 220, 0.68);
}

.checkin-hub-card-schedule {
    font-size: 0.82rem;
    line-height: 1.5;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(95, 184, 255, 0.14);
    background: rgba(0, 0, 0, 0.2);
    color: rgba(195, 225, 245, 0.88);
}

.checkin-hub-card-schedule--ok {
    border-color: rgba(80, 200, 130, 0.35);
    background: rgba(40, 110, 72, 0.22);
    color: rgba(170, 255, 210, 0.95);
}

.checkin-hub-card-schedule--warn {
    border-color: rgba(255, 200, 120, 0.35);
    background: rgba(90, 60, 20, 0.25);
    color: rgba(255, 220, 170, 0.95);
}

.checkin-hub-card-schedule--off {
    border-color: rgba(220, 100, 120, 0.28);
    background: rgba(60, 24, 32, 0.28);
    color: rgba(255, 200, 205, 0.88);
}

.checkin-hub-card-schedule--muted {
    border-color: rgba(95, 184, 255, 0.12);
    color: rgba(170, 200, 220, 0.72);
}

.checkin-hub-card-metrics {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
}

.checkin-hub-card-metric {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.checkin-hub-card-metric-val {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: #9ee8ff;
    font-variant-numeric: tabular-nums;
}

.checkin-hub-card-metric-lbl {
    font-size: 0.78rem;
    color: rgba(170, 200, 220, 0.62);
    letter-spacing: 0.04em;
}

.checkin-hub-card-enter {
    margin-top: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(140, 220, 255, 0.88);
    letter-spacing: 0.04em;
}

.checkin-hub-card-enter-svg {
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
    display: block;
}

.checkin-hub-card-enter-lbl {
    line-height: 1.2;
}

.checkin-hub-card:hover .checkin-hub-card-enter {
    color: #fff;
}

.checkin-hub-card-stat {
    font-size: 0.88rem;
    color: rgba(200, 230, 255, 0.88);
}

.checkin-hub-card-badge {
    flex-shrink: 0;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 200, 120, 0.95);
    background: rgba(255, 180, 80, 0.12);
    border: 1px solid rgba(255, 180, 80, 0.28);
}

.checkin-hub-card-badge--ok {
    color: rgba(160, 255, 200, 0.98);
    background: rgba(80, 200, 130, 0.14);
    border-color: rgba(80, 200, 130, 0.35);
}

.checkin-hub-error {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: #ffb0b0;
}

.checkin-subsection-title {
    margin: 0.75rem 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(210, 235, 255, 0.9);
    letter-spacing: 0.05em;
}

.checkin-unit-stats {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: rgba(200, 225, 245, 0.88);
}

.checkin-unit-stat-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
}

.checkin-unit-stat-label {
    font-size: 0.88rem;
    color: rgba(170, 200, 220, 0.72);
    letter-spacing: 0.06em;
}

.checkin-unit-stat-value {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1;
    color: #9ee8ff;
    font-variant-numeric: tabular-nums;
}

.checkin-unit-stat-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(180deg, transparent, rgba(95, 184, 255, 0.35), transparent);
}

.checkin-unit-stat strong {
    color: #9ee8ff;
    font-weight: 800;
    margin-left: 0;
}

.checkin-page-main {
    position: relative;
    z-index: 1;
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem 2.5rem 3.5rem;
    box-sizing: border-box;
}

.checkin-page-main.checkin-page-main--hub {
    max-width: 68rem;
}

.checkin-page-main.checkin-page-main--unit {
    max-width: 72rem;
}

/* 避免 [hidden] 在部分环境下未解除导致主内容不可见 */
#checkinHubMain:not([hidden]),
#checkinUnitMain:not([hidden]),
#checkinUnitMissingParam:not([hidden]) {
    display: block !important;
}

.checkin-unit-missing-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.5rem 0 0;
}

.checkin-nav-inline-sep {
    color: rgba(140, 180, 210, 0.45);
    font-size: 0.85rem;
    user-select: none;
}

.checkin-unit-hero {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 0.5rem;
}

.checkin-unit-hero-label {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: rgba(140, 210, 255, 0.7);
}

.checkin-unit-hero-title {
    margin: 0;
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    text-shadow: 0 0 36px rgba(95, 184, 255, 0.22);
}

.checkin-unit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
    gap: 1.35rem;
    align-items: start;
    margin-bottom: 1.35rem;
}

.checkin-unit-side {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.checkin-panel {
    padding: 1.35rem 1.45rem;
    border-radius: 16px;
    border: 1px solid rgba(95, 184, 255, 0.22);
    background:
        linear-gradient(160deg, rgba(10, 30, 48, 0.92) 0%, rgba(6, 18, 32, 0.88) 100%);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.checkin-panel-title {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
}

.checkin-unit-page-title {
    margin-bottom: 0.85rem;
    font-size: 1.05rem;
}

.checkin-cal-block-title,
.checkin-rank-block-title {
    font-size: 1.15rem;
    margin-top: 0;
}

.checkin-unit-calendar-section {
    margin: 0;
}

.checkin-unit-today-section {
    margin-bottom: 1.35rem;
}

.checkin-unit-today-section .checkin-stats-title,
.checkin-unit-rank-section .checkin-stats-title {
    margin-top: 0.5rem;
}

.checkin-unit-rank-section {
    margin-top: 0;
}

.checkin-today-signed-list {
    max-height: min(40vh, 20rem);
}

.checkin-member-row {
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
}

.checkin-today-signed-row {
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
}

.checkin-member-avatar {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(95, 184, 255, 0.28);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 12px rgba(95, 184, 255, 0.12);
}

.checkin-member-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.checkin-today-signed-row .checkin-today-time,
.checkin-rank-row .checkin-today-points {
    margin-left: auto;
    align-self: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.checkin-rank-row .checkin-today-points {
    font-size: 0.92rem;
    font-weight: 700;
    color: rgba(150, 230, 200, 0.98);
    letter-spacing: 0.03em;
}

.checkin-member-row .checkin-today-id,
.checkin-today-signed-row .checkin-today-id {
    font-size: 0.98rem;
    line-height: 1.25;
}

.checkin-member-row .checkin-today-duty,
.checkin-today-signed-row .checkin-today-duty {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(200, 225, 245, 0.88);
}

.checkin-today-time {
    font-size: 0.92rem;
    font-weight: 700;
    color: rgba(158, 232, 200, 0.98);
    letter-spacing: 0.04em;
    line-height: 1.25;
}


.checkin-calendar-scope-hint {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(165, 195, 220, 0.72);
}

.checkin-gate-hint {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(200, 224, 240, 0.88);
}

.checkin-gate-hint a {
    color: #8ee0ff;
}

.checkin-toolbar {
    display: flex;
    align-items: center;
    justify-content: stretch;
    gap: 0.75rem;
    margin-bottom: 0;
}

.checkin-panel--action {
    padding: 1.15rem 1.45rem;
}

.checkin-primary-btn {
    width: 100%;
    padding: 0.95rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(95, 184, 255, 0.55);
    background: linear-gradient(180deg, rgba(50, 120, 175, 0.65) 0%, rgba(28, 78, 120, 0.75) 100%);
    color: #f2fbff;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.checkin-primary-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(70, 150, 210, 0.75) 0%, rgba(40, 100, 150, 0.85) 100%);
    border-color: rgba(140, 210, 255, 0.8);
    transform: translateY(-1px);
}

.checkin-primary-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.checkin-my-history-box {
    margin: 0;
}

.checkin-my-history-summary {
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(210, 235, 255, 0.95);
    letter-spacing: 0.06em;
    list-style: none;
}

.checkin-my-history-summary::-webkit-details-marker {
    display: none;
}

.checkin-my-history-nav {
    margin: 0.45rem 0 0.4rem;
}

.checkin-history-month-wrap {
    position: relative;
}

.checkin-history-month-swipe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.42rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(95, 184, 255, 0.22);
    background: rgba(95, 184, 255, 0.06);
    touch-action: none;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.checkin-history-month-swipe:active {
    cursor: grabbing;
}

.checkin-history-month-chevron {
    font-size: 0.62rem;
    opacity: 0.65;
    line-height: 1;
    pointer-events: none;
}

.checkin-history-month-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    margin-top: 0.22rem;
    max-height: min(50vh, 14rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.2rem 0;
    border-radius: 8px;
    border: 1px solid rgba(95, 184, 255, 0.32);
    background: rgba(10, 22, 38, 0.98);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(95, 184, 255, 0.45) rgba(0, 0, 0, 0.22);
}

.checkin-history-month-dropdown::-webkit-scrollbar {
    width: 8px;
}

.checkin-history-month-dropdown::-webkit-scrollbar-thumb {
    background: rgba(95, 184, 255, 0.42);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.checkin-history-month-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 210, 255, 0.55);
}

.checkin-history-month-dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 4px;
}

.checkin-history-month-dropdown[hidden] {
    display: none;
}

.checkin-history-month-option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.42rem 0.65rem;
    border: none;
    border-radius: 0;
    text-align: left;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    color: rgba(210, 235, 255, 0.95);
    background: transparent;
    cursor: pointer;
}

.checkin-history-month-option:hover {
    background: rgba(95, 184, 255, 0.12);
}

.checkin-history-month-option.is-selected {
    background: rgba(95, 184, 255, 0.2);
    font-weight: 700;
}

.checkin-history-month-label {
    font-size: 0.82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: rgba(210, 235, 255, 0.95);
    pointer-events: none;
}

.checkin-my-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: min(40vh, 14rem);
    overflow-y: auto;
}

.checkin-my-history-row {
    padding: 0.35rem 0.4rem;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
    color: rgba(200, 230, 255, 0.9);
    border-bottom: 1px solid rgba(95, 184, 255, 0.1);
}

.checkin-my-history-row:last-child {
    border-bottom: none;
}

/* 签到中心：三分部卡片 */
.checkin-branch-chips-wrap {
    margin-bottom: 1rem;
    padding: 0.65rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(95, 184, 255, 0.2);
    background: rgba(6, 18, 32, 0.45);
}

.checkin-branch-chips-label {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(200, 230, 255, 0.88);
}

.checkin-branch-chip-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.checkin-branch-chip {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(200, 225, 245, 0.85);
    border: 1px solid rgba(95, 184, 255, 0.28);
    background: rgba(12, 32, 52, 0.5);
}

.checkin-branch-chip-strip.has-selection .checkin-branch-chip:not(.is-selected) {
    opacity: 0.42;
}

.checkin-branch-chip.is-selected {
    color: #fff;
    border-color: rgba(120, 220, 255, 0.85);
    background: rgba(40, 120, 180, 0.35);
    box-shadow: 0 0 0 1px rgba(100, 200, 255, 0.25);
}

.checkin-branch-chips-hint {
    margin: 0.45rem 0 0;
    font-size: 0.68rem;
    line-height: 1.4;
    color: rgba(160, 190, 210, 0.62);
}

.checkin-section-title {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
}

.checkin-stats-title {
    margin: 0.75rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(200, 235, 255, 0.95);
}

.checkin-stats-hint {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    color: rgba(160, 190, 210, 0.68);
    line-height: 1.5;
}

/* 月历 */
.checkin-cal-week-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.checkin-cal-wd {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: rgba(170, 210, 235, 0.75);
    letter-spacing: 0.04em;
}

.checkin-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    min-height: 18rem;
}

.checkin-cal-cell {
    aspect-ratio: 1;
    min-height: 3rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    font-weight: 700;
    box-sizing: border-box;
    border: 1px solid rgba(95, 184, 255, 0.14);
    background: rgba(8, 22, 36, 0.62);
    color: rgba(230, 245, 255, 0.92);
}

.checkin-cal-cell--pad {
    visibility: hidden;
    border: none;
    background: transparent;
}

.checkin-cal-cell--signed {
    background: rgba(28, 90, 58, 0.55);
    border: 1px solid rgba(80, 200, 130, 0.45);
    color: #e8fff0;
}

.checkin-cal-cell--miss {
    background: rgba(40, 18, 24, 0.45);
    border: 1px solid rgba(220, 100, 120, 0.35);
    color: rgba(255, 210, 215, 0.88);
}

.checkin-cal-cell--today.checkin-cal-cell--signed {
    box-shadow: 0 0 0 2px rgba(100, 255, 170, 0.75);
    border-color: rgba(120, 255, 180, 0.9);
    background: rgba(32, 110, 72, 0.65);
}

.checkin-cal-cell--today.checkin-cal-cell--pending {
    outline: 1px dashed rgba(120, 200, 255, 0.55);
    outline-offset: -1px;
}

.checkin-cal-cell--future {
    opacity: 0.4;
    border: none;
    background: transparent;
    color: rgba(160, 185, 205, 0.5);
    font-weight: 500;
}

.checkin-cal-daynum {
    pointer-events: none;
}

/* 成员排行列表：左 ID + 职阶，右职务与总积分 */
.checkin-today-list {
    list-style: none;
    margin: 0;
    padding: 0;
    padding-right: 6px;
    box-sizing: border-box;
    max-height: min(78vh, 48rem);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(95, 184, 255, 0.45) rgba(0, 0, 0, 0.22);
}

.checkin-today-list::-webkit-scrollbar {
    width: 8px;
}

.checkin-today-list::-webkit-scrollbar-thumb {
    background: rgba(95, 184, 255, 0.42);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.checkin-today-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 4px;
}

.checkin-today-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 0.35rem 1rem 0.25rem;
    border-bottom: 1px solid rgba(95, 184, 255, 0.12);
}

.checkin-today-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 0;
    flex: 1;
}

.checkin-today-id {
    font-size: 1rem;
    font-weight: 700;
    color: #7fd4ff;
    word-break: break-all;
    line-height: 1.25;
}

.checkin-today-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.45rem;
    font-size: 0.72rem;
    color: rgba(170, 200, 220, 0.65);
    line-height: 1.3;
}

.checkin-today-ranks {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
}

.checkin-today-ranks--empty {
    font-size: 0.75rem;
    color: rgba(150, 180, 200, 0.45);
}

.checkin-rank-icon-slot {
    display: inline-flex;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.checkin-rank-icon-slot .checkin-org-rank-svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: rgba(120, 210, 255, 0.92);
}

.checkin-today-branch {
    color: rgba(190, 220, 240, 0.78);
    font-size: 0.72rem;
}

.checkin-today-ranks + .checkin-today-branch::before {
    content: '·';
    margin-right: 0.28em;
    color: rgba(140, 170, 195, 0.5);
}

.checkin-today-rightcol {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.28rem;
    max-width: 46%;
    text-align: right;
}

.checkin-today-duty {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.checkin-today-points {
    font-size: 0.76rem;
    font-weight: 600;
    color: rgba(150, 230, 200, 0.95);
    letter-spacing: 0.03em;
}

.checkin-today-empty {
    padding: 0.75rem 0;
    font-size: 0.82rem;
    color: rgba(180, 210, 230, 0.55);
}

/* 分部选择弹层（预留） */
.checkin-branch-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2600;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    background: rgba(4, 12, 22, 0.72);
    backdrop-filter: blur(6px);
}

.checkin-branch-modal > * {
    width: 100%;
    max-width: 17.5rem;
    box-sizing: border-box;
}

.checkin-branch-card {
    padding: 1rem 1.05rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(95, 184, 255, 0.38);
    background: rgba(10, 28, 48, 0.94);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.checkin-branch-modal-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #e8f6ff;
    letter-spacing: 0.04em;
}

.checkin-branch-modal-hint {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(200, 224, 240, 0.78);
}

.checkin-branch-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.checkin-branch-btn {
    width: 100%;
    padding: 0.62rem 0.85rem;
    border-radius: 6px;
    border: 1px solid rgba(95, 184, 255, 0.45);
    background: rgba(20, 48, 72, 0.55);
    color: #c8ecff;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.checkin-branch-btn:hover {
    background: rgba(95, 184, 255, 0.14);
    border-color: rgba(120, 200, 255, 0.75);
    color: #fff;
}

.checkin-branch-cancel {
    margin-top: 0.75rem;
    width: 100%;
    padding: 0.45rem;
    border: none;
    background: transparent;
    color: rgba(180, 210, 230, 0.75);
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.checkin-branch-cancel:hover {
    color: #b8e4ff;
}

/* 本页提示框 */
.checkin-alert-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2700;
    min-width: 260px;
    max-width: 90vw;
    padding: 1.1rem 1.25rem;
    border-radius: 10px;
    background: rgba(14, 28, 42, 0.97);
    border: 1px solid rgba(95, 184, 255, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.checkin-alert-modal .checkin-alert-msg {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #dff6ff;
}

.checkin-alert-modal .checkin-alert-ok {
    padding: 0.4rem 1.2rem;
    border-radius: 6px;
    border: 1px solid rgba(95, 184, 255, 0.45);
    background: rgba(30, 80, 120, 0.5);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
}

.checkin-alert-modal .checkin-alert-ok:hover {
    background: rgba(95, 184, 255, 0.2);
}

@media (max-width: 900px) {
    .checkin-page-main {
        padding: 1.5rem 1.25rem 2.5rem;
    }

    .checkin-unit-layout {
        grid-template-columns: 1fr;
    }

    .checkin-hub-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .checkin-page-nav {
        padding: 0.85rem 1rem;
    }

    .checkin-hub-card {
        min-height: 10rem;
        padding: 1.2rem 1.15rem;
    }

    .checkin-hub-card-metric-val {
        font-size: 1.45rem;
    }

    .checkin-unit-stat-value {
        font-size: 1.85rem;
    }

    .checkin-cal-grid {
        gap: 5px;
        min-height: 14rem;
    }

    .checkin-cal-cell {
        min-height: 2.5rem;
        font-size: 0.82rem;
        border-radius: 8px;
    }
}

/* 签到滑动拼图人机验证 */
.checkin-captcha-backdrop {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(4, 10, 22, 0.72);
    backdrop-filter: blur(4px);
}
.checkin-captcha-backdrop[hidden] {
    display: none !important;
}
.checkin-captcha-panel {
    width: min(100%, 22rem);
    padding: 1rem 1.1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid rgba(95, 184, 255, 0.28);
    background: linear-gradient(165deg, rgba(12, 26, 48, 0.98), rgba(8, 16, 32, 0.98));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.checkin-captcha-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}
.checkin-captcha-head h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--accent, #5fb8ff);
}
.checkin-captcha-close {
    border: none;
    background: transparent;
    color: var(--muted, #9ab);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.1rem 0.35rem;
}
.checkin-captcha-hint {
    margin: 0 0 0.55rem;
    font-size: 0.8rem;
    color: var(--muted, #9ab);
    line-height: 1.45;
}
.checkin-captcha-puzzle-wrap {
    position: relative;
    width: 300px;
    max-width: 100%;
    height: 150px;
    margin: 0 auto 0.65rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(95, 184, 255, 0.2);
    flex-shrink: 0;
}
.checkin-captcha-bg {
    display: block;
    width: 100%;
    height: 100%;
}
.checkin-captcha-piece {
    position: absolute;
    left: 8px;
    top: 30px;
    width: 44px;
    height: 44px;
    pointer-events: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}
.checkin-captcha-slider-row {
    margin-bottom: 0.5rem;
}
.checkin-captcha-slider-track {
    position: relative;
    height: 2.35rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(95, 184, 255, 0.18);
}
.checkin-captcha-slider-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 8px 0 0 8px;
    background: linear-gradient(90deg, rgba(95, 184, 255, 0.25), rgba(95, 184, 255, 0.08));
    pointer-events: none;
}
.checkin-captcha-slider-knob {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2.6rem;
    height: 2rem;
    border-radius: 6px;
    border: 1px solid rgba(95, 184, 255, 0.45);
    background: linear-gradient(180deg, rgba(72, 168, 228, 0.95), rgba(48, 120, 190, 0.95));
    color: #fff;
    cursor: grab;
    touch-action: none;
    font-size: 0.85rem;
}
.checkin-captcha-slider-knob:active {
    cursor: grabbing;
}
.checkin-captcha-err {
    margin: 0 0 0.45rem;
    font-size: 0.8rem;
    color: #f88;
}
.checkin-captcha-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0.15rem;
}
.checkin-captcha-refresh,
.checkin-captcha-submit {
    min-height: 2.15rem;
    padding: 0.38rem 0.9rem;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.checkin-captcha-refresh {
    border: 1px solid rgba(95, 184, 255, 0.38);
    background: rgba(8, 20, 40, 0.85);
    color: rgba(180, 215, 255, 0.95);
    box-shadow: inset 0 1px 0 rgba(95, 184, 255, 0.12);
}
.checkin-captcha-refresh:hover:not(:disabled) {
    border-color: rgba(120, 200, 255, 0.55);
    background: rgba(20, 45, 78, 0.9);
    color: #e8f4ff;
    box-shadow: 0 0 12px rgba(95, 184, 255, 0.18);
}
.checkin-captcha-refresh:active:not(:disabled) {
    transform: translateY(1px);
}
.checkin-captcha-refresh:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.checkin-captcha-submit {
    border: 1px solid rgba(95, 184, 255, 0.45);
    background: linear-gradient(180deg, rgba(72, 168, 228, 0.95), rgba(48, 120, 190, 0.95));
    color: #fff;
    box-shadow: 0 2px 10px rgba(48, 120, 190, 0.35);
}
.checkin-captcha-submit:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(95, 184, 255, 0.98), rgba(58, 140, 210, 0.98));
    box-shadow: 0 2px 14px rgba(72, 168, 228, 0.45);
}
.checkin-captcha-submit:active:not(:disabled) {
    transform: translateY(1px);
}
.checkin-captcha-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
