.roll-call-app {
    --stage-bg: #f8fbff;
    --stage-name-color: #0f172a;
    --stage-name-size: 96px;
    --stage-name-weight: 700;
    --stage-name-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.roll-call-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.roll-call-toolbar .btn {
    min-height: 40px;
}
.danger-soft {
    border-color: #fecaca;
    color: #b91c1c;
    background: #fff7f7;
}
.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 40px;
    padding: 0 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 0.9rem;
}
.inline-check input {
    width: 16px;
    height: 16px;
}
.roll-call-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 1rem;
    align-items: start;
}
.roll-call-stage-wrap {
    min-width: 0;
}
.roll-call-stage {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    border: 1px solid #d8e4f2;
    border-radius: 14px;
    background: var(--stage-bg);
    color: var(--stage-name-color);
    text-align: center;
    overflow: hidden;
}
.stage-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2563eb;
}
.stage-name {
    width: 100%;
    color: var(--stage-name-color);
    font-family: var(--stage-name-family);
    font-size: var(--stage-name-size);
    font-weight: var(--stage-name-weight);
    line-height: 1.1;
    overflow-wrap: anywhere;
}
.stage-sub {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}
.status-line {
    min-height: 22px;
    margin-top: 0.75rem;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
}
.roll-call-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    margin-top: 0.75rem;
}
.roll-call-stats div {
    padding: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
}
.roll-call-stats span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    margin-bottom: 0.22rem;
}
.roll-call-stats strong {
    color: #0f172a;
    font-size: 1.2rem;
}
.roll-call-config {
    display: grid;
    gap: 0.85rem;
    min-width: 0;
}
.config-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 1rem;
}
.config-title {
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.names-input {
    width: 100%;
    min-height: 170px;
    resize: vertical;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.85rem;
    color: #0f172a;
    background: #ffffff;
    font-size: 0.95rem;
    line-height: 1.65;
}
.names-input:focus,
.setting-field input:focus,
.setting-field select:focus {
    outline: 2px solid #bfdbfe;
    border-color: #60a5fa;
}
.name-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.name-actions span {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.5;
}
.setting-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}
.setting-field {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}
.setting-field span {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
}
.setting-field input,
.setting-field select {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    padding: 0 0.65rem;
    font-size: 0.92rem;
}
.setting-field input[type="color"] {
    padding: 0.2rem;
}
.fullscreen-hint {
    margin: 0.8rem 0 0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.55;
}
.roll-call-results {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.85rem;
    margin-top: 1rem;
}
.result-panel {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 1rem;
}
.result-title {
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 0.65rem;
}
.result-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: #475569;
    line-height: 1.7;
}
.result-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.45rem 0.68rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.history-list {
    margin: 0;
    padding-left: 1.25rem;
    color: #475569;
    line-height: 1.75;
}
.history-list li {
    padding-left: 0.2rem;
    overflow-wrap: anywhere;
}
.notice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.notice-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    padding: 1.15rem;
}
.notice-title {
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 0.35rem;
}
.notice-desc {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.75;
}
.faq-wrap {
    max-width: 860px;
}

body.roll-call-focus-mode .breadcrumb-bar,
body.roll-call-focus-mode .hero-content,
body.roll-call-focus-mode .hero-divider,
body.roll-call-focus-mode .roll-call-config,
body.roll-call-focus-mode .roll-call-stats,
body.roll-call-focus-mode .roll-call-results,
body.roll-call-focus-mode .section,
body.roll-call-focus-mode footer {
    display: none;
}
body.roll-call-focus-mode .page-top {
    min-height: 100vh;
    padding-bottom: 1.5rem;
}
body.roll-call-focus-mode .roll-call-layout {
    grid-template-columns: 1fr;
}
body.roll-call-focus-mode .roll-call-stage {
    min-height: 62vh;
}

.roll-call-app:fullscreen {
    width: 100%;
    min-height: 100%;
    padding: 1.5rem;
    background: #ffffff;
    overflow: auto;
}
.roll-call-app:fullscreen .roll-call-layout {
    grid-template-columns: 1fr;
}
.roll-call-app:fullscreen .roll-call-config,
.roll-call-app:fullscreen .roll-call-results {
    display: none;
}
.roll-call-app:fullscreen .roll-call-stage {
    min-height: 70vh;
}

@media (max-width: 980px) {
    .roll-call-layout,
    .roll-call-results,
    .notice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .roll-call-toolbar {
        align-items: stretch;
    }
    .roll-call-toolbar .btn,
    .inline-check {
        width: 100%;
        justify-content: center;
    }
    .roll-call-stage {
        min-height: 280px;
        padding: 1.25rem;
    }
    .stage-name {
        font-size: min(var(--stage-name-size), 64px);
    }
    .setting-grid,
    .roll-call-stats {
        grid-template-columns: 1fr;
    }
    .name-actions {
        align-items: stretch;
        flex-direction: column;
    }
}
