/* ===== Base tokens and reset ===== */
:root {
    --bg: #eef4f8;
    --panel: rgba(255, 255, 255, 0.9);
    --panel-strong: #ffffff;
    --ink: #071826;
    --muted: #667789;
    --line: #d6e0e8;
    --primary: #006278;
    --primary-deep: #004f63;
    --primary-soft: #cceefd;
    --accent: #79d7f2;
    --danger: #ff7f95;
    --warning: #c71824;
    --shadow: 0 18px 50px rgba(4, 44, 63, 0.14);
    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Trebuchet MS", "Gill Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 18% 8%, rgba(121, 215, 242, 0.28), transparent 34%),
        radial-gradient(circle at 82% 16%, rgba(255, 127, 149, 0.1), transparent 28%),
        linear-gradient(145deg, #f8fbfd 0%, var(--bg) 58%, #e7f0f6 100%);
}

button,
select,
input,
video {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.68;
}

.app-shell {
    width: 100%;
    height: 100dvh;
    overflow: hidden;
}

.portal-view {
    display: none;
}

.portal-view.active {
    display: block;
}

/* ===== Login view ===== */
.login-shell {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    padding: clamp(16px, 4vw, 40px);
}

.login-panel {
    width: min(100%, 300px);
    display: grid;
    gap: clamp(13px, 3.2vw, 22px);
    padding:
        clamp(24px, 6.2vw, 44px)
        clamp(18px, 4.8vw, 34px)
        clamp(18px, 4vw, 28px);
    border: 1px solid rgba(0, 98, 120, 0.14);
    border-radius: clamp(24px, 6vw, 42px);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.login-visual {
    display: none;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: clamp(10px, 2.8vw, 22px);
    margin-bottom: 0;
}

.login-mark {
    position: relative;
    display: inline-flex;
    width: clamp(44px, 11.4vw, 82px);
    height: clamp(36px, 9.2vw, 66px);
    flex: 0 0 auto;
    border: clamp(3px, 0.95vw, 7px) solid var(--primary);
    border-radius: clamp(10px, 2.7vw, 20px);
}

.login-mark::before {
    content: "";
    position: absolute;
    right: 25%;
    bottom: calc(clamp(7px, 2.2vw, 17px) * -1);
    left: 25%;
    height: clamp(3px, 0.95vw, 7px);
    border-radius: 999px;
    background: var(--primary);
}

.login-mark::after {
    content: "";
    position: absolute;
    bottom: calc(clamp(5px, 1.6vw, 12px) * -1);
    left: 50%;
    width: clamp(13px, 3.5vw, 26px);
    height: clamp(6px, 1.6vw, 12px);
    border-radius: 0 0 5px 5px;
    background: var(--primary);
    transform: translateX(-50%);
}

.login-brand h1 {
    margin: 2px 0 0;
    color: var(--primary-deep);
    font-size: clamp(27px, 6.5vw, 46px);
    line-height: 1;
    letter-spacing: 0;
}

.login-field {
    display: grid;
    gap: clamp(7px, 1.8vw, 12px);
}

.login-field span {
    color: var(--primary-deep);
    font-size: clamp(14px, 3.1vw, 22px);
    font-weight: 900;
}

.login-field input {
    width: 100%;
    height: clamp(42px, 9.8vw, 70px);
    padding: 0 clamp(12px, 2.8vw, 22px);
    border: 2px solid var(--line);
    border-radius: clamp(13px, 3.2vw, 24px);
    color: var(--ink);
    background: #fff;
    font-size: clamp(16px, 3.5vw, 25px);
    outline: none;
}

.login-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 98, 120, 0.12);
}

.login-submit {
    height: clamp(42px, 9.8vw, 70px);
    margin-top: clamp(2px, 0.8vw, 6px);
    border-radius: clamp(13px, 3.2vw, 24px);
    color: #fff;
    background: var(--primary);
    font-size: clamp(17px, 3.7vw, 27px);
    font-weight: 900;
    box-shadow: 0 18px 34px rgba(0, 98, 120, 0.22);
}

.login-message {
    min-height: clamp(17px, 3.5vw, 26px);
    margin: 0;
    color: var(--warning);
    font-size: clamp(13px, 2.8vw, 21px);
    font-weight: 700;
    text-align: center;
    visibility: hidden;
}

.login-message.is-visible {
    visibility: visible;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 0;
    font-size: clamp(13px, 2.8vw, 18px);
    color: var(--muted);
    cursor: pointer;
    user-select: none;
}

.login-remember input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ===== Manage view: shell and header ===== */
.hero-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 980px;
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    margin: 8px auto;
    overflow: hidden;
    border: 1px solid rgba(0, 98, 120, 0.14);
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.hero-card::after {
    content: "";
    display: block;
    flex-shrink: 0;
    height: calc(16px + env(safe-area-inset-bottom));
}

.app-header {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 38px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--line);
    background: rgba(248, 252, 255, 0.94);
}

.menu-button,
.screen-menu-button,
.screen-more-button,
.drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.menu-button,
.screen-menu-button {
    width: 38px;
    height: 38px;
    flex-direction: column;
    gap: 4px;
    border: 1px solid transparent;
    border-radius: 12px;
}

.screen-menu-button span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
}

.screen-entry-button {
    border: 1px solid transparent;
}

.screen-entry-button .screen-icon {
    position: relative;
    width: 24px;
    height: 17px;
    border: 3px solid var(--primary);
    border-radius: 4px;
}

.screen-entry-button .screen-icon::before {
    content: "";
    position: absolute;
    right: 6px;
    bottom: -8px;
    left: 6px;
    height: 3px;
    border-radius: 999px;
    background: var(--primary);
}

.screen-entry-button .screen-icon::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 8px;
    height: 5px;
    border-radius: 0 0 2px 2px;
    background: var(--primary);
    transform: translateX(-50%);
}

.eyebrow,
.subtitle {
    margin: 0;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.title-block h1 {
    margin: 2px 0 0;
    color: var(--primary-deep);
    font-size: clamp(26px, 7vw, 40px);
    line-height: 0.95;
    letter-spacing: 0;
}

.subtitle {
    margin-top: 4px;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: none;
}

.staff-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.logout-button {
    flex: 0 0 auto;
    min-width: 46px;
    height: 30px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--primary);
    background: #fff;
    font-size: 12px;
    font-weight: 900;
}

.station-label {
    display: inline-block;
    max-width: 34vw;
    overflow: hidden;
    color: #738394;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.station-label .route-name,
.station-label .station-name {
    display: inline;
}

.avatar,
.screen-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(145deg, #083042, var(--primary));
    box-shadow: 0 8px 18px rgba(0, 98, 120, 0.25);
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

/* ===== Manage view: filters and status tabs ===== */
.selector-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    padding: 12px 14px 10px;
    background: rgba(255, 255, 255, 0.54);
}

.field {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.field span {
    color: var(--primary-deep);
    font-size: 12px;
    font-weight: 800;
}

.field select,
.drawer-field select {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: var(--ink);
    background: var(--panel-strong);
    outline: none;
}

.field select:focus,
.drawer-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 98, 120, 0.12);
}

.status-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 14px 10px;
    background: rgba(255, 255, 255, 0.54);
}

/* ===== 车型类型卡片 ===== */
.category-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px 14px 10px;
}

.category-card {
    position: relative;
    display: grid;
    gap: 2px;
    padding: 12px 12px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel-strong);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.category-card:hover {
    border-color: var(--primary-soft);
    box-shadow: 0 6px 16px rgba(0, 98, 120, 0.10);
}

.category-card:active {
    transform: scale(0.97);
}

.category-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eaf8ff, #ffffff);
    box-shadow: 0 0 0 3px rgba(0, 98, 120, 0.14);
}

.category-card-name {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.category-card-count {
    font-size: clamp(20px, 5vw, 26px);
    font-weight: 900;
    line-height: 1.1;
}

.category-card.active .category-card-name,
.category-card.active .category-card-count {
    color: var(--primary-deep);
}

.category-card-wait {
    font-size: 11px;
    color: var(--muted);
}

.status-tab {
    position: relative;
    display: grid;
    gap: 4px;
    justify-items: center;
    min-height: 48px;
    padding: 6px 4px;
    border-radius: 18px;
    color: #8b949d;
    background: transparent;
}

.status-tab span {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.status-tab strong {
    min-width: 34px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #9aa4ad;
    background: #e6ecef;
    font-size: 12px;
}

.status-tab.active {
    color: var(--primary);
}

.status-tab.active::after {
    content: "";
    position: absolute;
    right: 18%;
    bottom: 3px;
    left: 18%;
    height: 4px;
    border-radius: 999px;
    background: var(--primary);
}

.status-tab.active strong {
    color: #fff;
    background: var(--primary);
}

/* ===== Manage view: queue list ===== */
.queue-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 10px 14px 0 14px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.section-heading h2 {
    margin: 0;
    font-size: 20px;
}

.section-heading p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.queue-search-inline {
    height: 34px;
    min-width: 0;
    width: min(300px, 46vw);
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    outline: none;
}

.queue-search-inline:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 98, 120, 0.12);
}

.queue-search-inline::placeholder {
    color: #9aa7b2;
}

.section-heading-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.section-heading-actions {
    flex: 0 0 auto;
}

.section-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.queue-search {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(310px, 42vw);
    min-width: 180px;
    height: 34px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.queue-search:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 98, 120, 0.12);
}

.queue-search::before {
    content: "";
    position: absolute;
    left: 12px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--primary);
    border-radius: 999px;
    opacity: 0.78;
}

.queue-search::after {
    content: "";
    position: absolute;
    left: 24px;
    top: 21px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    opacity: 0.78;
    transform: rotate(45deg);
}

.queue-search input {
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0 8px 0 34px;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    outline: none;
}

.queue-search input::placeholder {
    color: #9aa7b2;
}

.queue-search button {
    height: 100%;
    min-width: 56px;
    padding: 0 12px;
    color: #fff;
    background: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.queue-search button:disabled {
    opacity: 1;
    background: #7da9b5;
}

.queue-search.is-searching::before {
    border-right-color: transparent;
    animation: queue-search-spin 0.8s linear infinite;
}

@keyframes queue-search-spin {
    to {
        transform: rotate(360deg);
    }
}

.vehicle-filter {
    position: relative;
    min-width: 156px;
}

.vehicle-filter-trigger {
    width: 100%;
    height: 34px;
    justify-content: space-between;
    gap: 8px;
    padding: 0 32px 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}

.vehicle-filter-trigger::after {
    content: "";
    position: absolute;
    right: 12px;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg) translateY(-2px);
}

.vehicle-filter.is-open .vehicle-filter-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 98, 120, 0.12);
}

.vehicle-filter-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    right: 0;
    min-width: 100%;
    width: max-content;
    max-width: min(320px, calc(100vw - 32px));
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(8, 44, 62, 0.16);
}

.vehicle-filter-options {
    display: grid;
    gap: 4px;
}

.vehicle-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 8px;
    border-radius: 10px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.vehicle-option:hover {
    background: var(--primary-soft);
}

.vehicle-option-empty {
    min-height: 32px;
    padding: 8px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.vehicle-option input {
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
}

.refresh-button {
    min-width: 64px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--primary);
    background: #fff;
    font-weight: 800;
}

/* ===== 右下角悬浮工具窗：车型筛选（常显）+ 刷新（可折叠） ===== */
.floating-tools {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: flex;
    flex-direction: column;
    width: 210px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel-strong);
    box-shadow: 0 10px 28px rgba(4, 44, 63, 0.18);
}

.floating-tools-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.floating-tools-title {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.floating-tools-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.floating-clear,
.floating-toggle {
    height: 26px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--primary);
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.floating-toggle {
    color: var(--muted);
}

/* 折叠态：只保留头部一条，收起选项与刷新 */
.floating-tools.collapsed {
    width: auto;
    max-width: 210px;
}

.floating-tools.collapsed .floating-tools-body {
    display: none;
}

/* 常显的车型筛选选项：以可点击标签平铺展示 */
.floating-tools .vehicle-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.floating-tools .vehicle-option {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: auto;
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: #f6f8fa;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.floating-tools .vehicle-option:hover {
    background: var(--primary-soft);
    border-color: var(--primary-soft);
}

.floating-tools .vehicle-option:has(input:checked) {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.floating-tools .vehicle-option input {
    width: 0;
    height: 0;
    opacity: 0;
}

.floating-tools .refresh-button {
    align-self: stretch;
    margin-top: 10px;
}

.group-call-button {
    min-width: 78px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--primary);
    border-radius: 12px;
    color: #fff;
    background: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.group-call-button:hover,
.group-call-button:focus-visible {
    background: var(--primary-deep);
}

.queue-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 16px;
    scrollbar-width: thin;
    overscroll-behavior: contain;
}

.queue-list {
    display: grid;
    align-content: start;
    gap: 7px;
}

.load-more-status {
    min-height: 28px;
    padding: 10px 8px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.load-more-status[hidden] {
    display: none;
}

.queue-card {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 150px;
    align-items: center;
    gap: 6px;
    min-height: 50px;
    padding: 6px 8px 6px 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.91);
    box-shadow: 0 10px 24px rgba(8, 44, 62, 0.07);
    cursor: pointer;
    /* 原生虚拟化：视口外的卡片不参与布局/绘制 */
    content-visibility: auto;
    contain-intrinsic-size: auto 52px;
}

.queue-card::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 0;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: var(--primary);
}

.queue-card.is-group-queue:not(.is-called):not(.is-boarded):not(.is-cancelled):not(.is-no-show) {
    border-color: rgba(109, 88, 198, 0.4);
    background: linear-gradient(90deg, rgba(109, 88, 198, 0.13), rgba(255, 255, 255, 0.94) 42%);
}

.queue-card.is-group-queue:not(.is-called):not(.is-boarded):not(.is-cancelled):not(.is-no-show)::before {
    background: #6d58c6;
}

.queue-card.is-boarded::before {
    background: var(--danger);
}

.queue-card.is-called::before {
    background: #ff7aa5;
}

.queue-card.is-called {
    border-color: rgba(255, 122, 165, 0.38);
    background: linear-gradient(90deg, rgba(255, 122, 165, 0.08), rgba(255, 255, 255, 0.94) 34%);
}

.queue-card.is-search-hit {
    border-color: rgba(0, 98, 120, 0.42);
    box-shadow:
        0 0 0 3px rgba(0, 98, 120, 0.1),
        0 14px 28px rgba(8, 44, 62, 0.12);
    animation: queue-search-hit 1.4s ease-out 1;
}

@keyframes queue-search-hit {
    0% {
        background-color: rgba(204, 238, 253, 0.52);
    }
    100% {
        background-color: rgba(255, 255, 255, 0.91);
    }
}

.queue-card.is-cancelled,
.queue-card.is-no-show {
    cursor: default;
}

.queue-card.is-cancelled::before {
    background: #aeb8bf;
}

.queue-card.is-no-show::before {
    background: #f0a23a;
}

.queue-main {
    display: grid;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

.queue-no {
    color: var(--primary-deep);
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0;
}

.queue-no-row {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.group-queue-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 3px 6px;
    border: 1px solid rgba(109, 88, 198, 0.28);
    border-radius: 999px;
    color: #5942b3;
    background: #eeeaff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.queue-card.is-group-order {
    min-height: 62px;
    padding-top: 22px;
}

.group-part-corner {
    position: absolute;
    top: 8px;
    right: 56px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-width: 28px;
    min-height: 16px;
    justify-content: center;
    padding: 1px 5px;
    border: 1px solid rgba(109, 88, 198, 0.3);
    border-radius: 5px;
    color: #5942b3;
    background: rgba(255, 255, 255, 0.88);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

.status-pill {
    display: none;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.status-pill.waiting {
    color: #1b6f38;
    background: #d8f5e1;
}

.status-pill.boarded {
    color: #9f3448;
    background: #ffe0e6;
}

.queue-meta {
    display: flex;
    gap: 7px;
    align-items: center;
    justify-content: flex-start;
    color: var(--ink);
    font-size: 11px;
}

.queue-meta span {
    min-width: max-content;
    white-space: nowrap;
}

.queue-meta b {
    margin-right: 2px;
    font-weight: 800;
}

.queue-meta span:nth-child(1) b {
    color: #071826;
}

.queue-meta span:nth-child(2) b {
    color: #f5b632;
}

/* 右上角人数徽标（可点击修改） */
.people-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 34px;
    justify-content: center;
    padding: 3px 9px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    border: 0;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(0, 98, 120, 0.28);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}
.people-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 98, 120, 0.36);
}
.people-badge b {
    font-size: 12px;
    font-weight: 800;
}

.vehicle-chip {
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 900;
}

.queue-chip-row {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
}

.queue-chip-row-mobile {
    display: none;
}

.ticket-type-chip {
    display: inline-flex;
    align-items: center;
    max-width: 104px;
    padding: 3px 7px;
    overflow: hidden;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-type-chip-mobile {
    display: none;
}

.ticket-type-chip-inline-mobile {
    display: none;
}

.vehicle-chip-mobile {
    display: none;
}

.queue-actions {
    grid-column: 3;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: center;
    cursor: default;
}

.icon-action,
.primary-action,
.danger-action {
    position: relative;
    min-height: 32px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 900;
}

.icon-action {
    color: var(--primary);
    background: var(--primary-soft);
}

.primary-action {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 8px 18px rgba(0, 98, 120, 0.2);
}

.danger-action {
    grid-column: 1 / -1;
    color: #fff;
    background: var(--danger);
}

.readonly-action {
    grid-column: 1 / -1;
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #7c8b98;
    background: #eef3f6;
    font-size: 13px;
    font-weight: 900;
    cursor: default;
}

.call-count {
    position: absolute;
    top: -7px;
    right: -4px;
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: var(--warning);
    font-size: 10px;
}

.empty-state {
    display: none;
    gap: 8px;
    justify-items: center;
    padding: 38px 16px;
    border: 1px dashed var(--line);
    border-radius: 20px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.65);
}

.empty-state.is-visible {
    display: grid;
}

.empty-state[hidden] {
    display: none !important;
}

.empty-state strong {
    color: var(--primary-deep);
    font-size: 18px;
}

/* ===== Screen view: display board ===== */
.is-screen-view {
    overflow: hidden;
}

.screen-frame {
    display: flex;
    height: 100vh;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    background: #f4f8fb;
}

.screen-header {
    display: flex;
    height: 66px;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(250, 253, 255, 0.96);
}

.screen-brand,
.screen-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.screen-brand h2 {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--primary-deep);
    font-size: clamp(18px, 2.6vw, 26px);
    line-height: 1.1;
}

.screen-brand h2 span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.screen-brand h2 b {
    color: var(--primary);
}

.screen-more-button {
    width: 34px;
    height: 34px;
    flex-direction: column;
    gap: 3px;
    border-radius: 12px;
}

.screen-more-button span {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #1c2a33;
}

.screen-avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 11px;
}

.screen-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(230px, 22vw, 310px);
    gap: 30px;
    width: 100%;
    max-width: 1180px;
    min-height: 0;
    flex: 1;
    margin: 0 auto;
    padding: 28px 44px 38px;
}

.screen-main {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: start;
    gap: 16px;
    min-height: 0;
    min-width: 0;
}

.video-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #dbe8ee;
    min-height: 0;
    box-shadow: 0 12px 36px rgba(9, 38, 54, 0.12);
}

.video-panel video,
.video-poster-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.is-settings-open .video-panel video {
    display: none;
}

.is-settings-open .video-poster-fallback {
    display: grid;
}

.video-poster-fallback {
    display: grid;
    place-items: center;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(219, 232, 238, 0.94), rgba(246, 250, 252, 0.94));
}

.video-poster-fallback[hidden] {
    display: none;
}

.is-settings-open .video-poster-fallback[hidden] {
    display: grid;
}

.video-poster-fallback span {
    display: grid;
    min-width: 118px;
    min-height: 42px;
    padding: 0 18px;
    place-items: center;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.video-poster-fallback span::before {
    content: none;
}

.location-badge {
    position: absolute;
    bottom: 18px;
    left: 18px;
    max-width: calc(100% - 36px);
    overflow: hidden;
    padding: 8px 14px;
    border-radius: 8px;
    color: #fff;
    background: rgba(4, 33, 45, 0.72);
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-ticker {
    overflow: hidden;
    min-height: 48px;
    height: 58px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.ticker-track {
    display: inline-block;
    min-width: 100%;
    padding: 14px 18px;
    color: #374655;
    font-size: clamp(14px, 1.5vw, 18px);
    text-align: center;
    white-space: nowrap;
    animation: none;
}

.screen-side {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
    gap: 22px;
    min-height: 0;
    min-width: 0;
}

.calling-panel,
.waiting-total,
.metric-row {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.calling-panel {
    min-height: 0;
    padding: 16px 0 0;
}

.calling-panel h3 {
    margin: 0 0 28px;
    color: #071826;
    font-size: clamp(36px, 4.2vw, 64px);
    line-height: 1;
}

.calling-panel h3 span {
    color: var(--primary);
    font-size: 17px;
}

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

.calling-grid span {
    display: grid;
    min-height: 72px;
    place-items: center;
    border: 1px solid #aeb8bf;
    border-radius: 4px;
    color: #303030;
    background: #fff;
    font-size: clamp(28px, 2.8vw, 38px);
    font-weight: 500;
}

.waiting-total {
    display: grid;
    justify-items: center;
    align-content: center;
    padding: 18px 0 0;
    color: #303030;
    background: transparent;
}

.waiting-total span {
    font-size: clamp(42px, 5vw, 70px);
    font-weight: 900;
}

.waiting-total strong {
    margin-top: clamp(28px, 5vh, 64px);
    color: #303030;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 400;
    line-height: 1;
}

.waiting-preview {
    display: none;
}

.waiting-total small {
    display: none;
}

.metric-row {
    display: none;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    color: #263848;
    font-size: 14px;
}

.metric-row strong {
    color: var(--primary);
}

/* ===== Modal and drawer overlays ===== */
.drawer-mask {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(7, 24, 38, 0.22);
}

.confirm-mask {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(7, 24, 38, 0.28);
}

.confirm-mask[hidden] {
    display: none;
}

.confirm-dialog {
    width: min(420px, 92vw);
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 56px rgba(7, 24, 38, 0.24);
}

.confirm-dialog h3 {
    margin: 0 0 10px;
    color: var(--primary-deep);
    font-size: 22px;
}

.confirm-dialog p {
    margin: 0;
    color: #3a4b59;
    font-size: 15px;
    line-height: 1.65;
}

.confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.confirm-cancel,
.confirm-submit {
    min-height: 42px;
    border-radius: 12px;
    font-weight: 900;
}

.group-call-mask {
    position: fixed;
    inset: 0;
    z-index: 32;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(7, 24, 38, 0.34);
}

.group-call-mask[hidden] {
    display: none;
}

.group-call-dialog {
    width: min(420px, 92vw);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 56px rgba(7, 24, 38, 0.26);
}

.group-call-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--line);
}

.group-call-header h3 {
    margin: 0;
    color: var(--primary-deep);
    font-size: 21px;
}

.group-call-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.group-call-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 22px;
    line-height: 1;
}

.group-call-form {
    display: grid;
    gap: 14px;
    padding: 18px 20px 20px;
}

.group-call-field {
    display: grid;
    gap: 7px;
}

.group-call-field > span {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
}

.group-call-field input,
.group-call-field select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--ink);
    background: #fff;
    font-size: 15px;
    outline: none;
}

.group-call-field input:focus,
.group-call-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 98, 120, 0.12);
}

.group-call-field input:disabled {
    color: var(--muted);
    background: #f3f7f9;
}

.group-call-field small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.group-call-manual-split[hidden] {
    display: none;
}

.group-call-manual-inputs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.group-call-manual-inputs label {
    display: grid;
    gap: 4px;
}

.group-call-manual-inputs label span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.group-call-manual-inputs input {
    min-width: 0;
    padding: 0 8px;
    text-align: center;
}

.group-call-error {
    min-height: 18px;
    margin: -2px 0 0;
    color: var(--warning);
    font-size: 13px;
    font-weight: 700;
    visibility: hidden;
}

.group-call-error.is-visible {
    visibility: visible;
}

.group-call-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.group-call-cancel,
.group-call-submit {
    min-height: 42px;
    border-radius: 10px;
    font-weight: 800;
}

.group-call-cancel {
    border: 1px solid var(--line);
    color: var(--primary);
    background: #fff;
}

.group-call-submit {
    color: #fff;
    background: var(--primary);
}

.confirm-cancel {
    border: 1px solid var(--line);
    color: var(--primary);
    background: #fff;
}

.confirm-submit {
    color: #fff;
    background: var(--primary);
}

.queue-detail-mask {
    position: fixed;
    inset: 0;
    z-index: 31;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(7, 24, 38, 0.28);
}

.queue-detail-mask[hidden] {
    display: none;
}

.queue-detail-dialog {
    width: min(380px, 92vw);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 22px 56px rgba(7, 24, 38, 0.24);
}

.queue-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid var(--line);
}

.queue-detail-header h3 {
    margin: 0;
    color: var(--primary-deep);
    font-size: 21px;
}

.queue-detail-close {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 24px;
    line-height: 1;
}

.queue-detail-body {
    display: grid;
    gap: 10px;
    padding: 16px 18px 18px;
}

.queue-detail-row {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(210, 226, 236, 0.72);
}

.queue-detail-row:last-child {
    border-bottom: 0;
}

.queue-detail-row span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.queue-detail-row strong {
    min-width: 0;
    color: var(--ink);
    font-size: 18px;
    word-break: break-all;
}

.queue-detail-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 900;
}

.queue-detail-footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 18px 16px;
    border-top: 1px solid var(--line);
}

.queue-detail-link:hover,
.queue-detail-link:focus-visible {
    text-decoration: underline;
}

.settings-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 1001;
    display: grid;
    width: min(330px, 86vw);
    max-width: 100%;
    height: 100dvh;
    min-height: 100vh;
    align-content: start;
    gap: 16px;
    overflow-y: auto;
    padding: calc(18px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom));
    border-left: 1px solid var(--line);
    background: #fff;
    transition: transform 0.2s ease;
    transform: translate3d(100%, 0, 0);
    -webkit-overflow-scrolling: touch;
    will-change: transform;
}

.settings-drawer {
    right: 0;
    box-shadow: -18px 0 38px rgba(7, 24, 38, 0.18);
}

.settings-drawer.open {
    transform: translate3d(0, 0, 0);
}

.drawer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.drawer-heading h3 {
    margin: 0;
    color: var(--primary-deep);
    font-size: 20px;
}

.drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #7b8994;
    font-size: 28px;
}

.drawer-field {
    display: grid;
    gap: 7px;
}

.drawer-field span {
    color: #273846;
    font-size: 14px;
    font-weight: 800;
}

/* ===== Animation hooks ===== */
@keyframes ticker-move {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ===== Responsive: shared tablet and desktop manage adjustments ===== */
@media (min-width: 640px) {
    .login-shell {
        padding: clamp(26px, 4vw, 44px);
    }

    .login-panel {
        width: min(100%, 500px);
    }

    .hero-card {
        min-height: calc(100vh - 32px);
        margin: 16px auto;
    }

    .selector-panel {
        padding: 14px 28px 12px;
    }

    .status-tabs,
    .queue-section {
        padding-right: 28px;
        padding-left: 28px;
    }

    .station-label {
        max-width: 280px;
    }

    .queue-card {
        grid-template-columns: 120px 1fr 190px;
        min-height: 60px;
        padding: 8px 14px 8px 18px;
    }

    .queue-main {
        justify-items: start;
    }
}

/* ===== Responsive: desktop and wide tablet manage adjustments ===== */
@media (min-width: 900px) {
    .login-shell {
        padding: clamp(34px, 4vw, 56px);
    }

    .login-panel {
        width: min(100%, 500px);
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: stretch;
        padding: 28px 30px 22px;
    }

    .app-header {
        padding: 14px 28px 12px;
    }

    .queue-card {
        min-height: 52px;
        padding: 7px 18px;
    }
}

/* ===== Responsive: mid-width manage view ===== */
@media (min-width: 601px) and (max-width: 899px) and (min-height: 760px) {
    .hero-card {
        min-height: 100vh;
        min-height: 100dvh;
        margin: 0 auto;
        border-radius: 0;
    }

    .app-header {
        grid-template-columns: 54px minmax(170px, 0.82fr) minmax(250px, 1fr);
        gap: 16px;
        padding: 22px 26px 18px;
    }

    .screen-entry-button {
        align-self: center;
    }

    .title-block {
        min-width: 0;
    }

    .title-block h1 {
        max-width: 260px;
        font-size: clamp(44px, 7.2vw, 58px);
        line-height: 0.9;
    }

    .subtitle {
        max-width: 240px;
        font-size: clamp(22px, 3.4vw, 30px);
        line-height: 1.12;
    }

    .staff-badge {
        justify-content: flex-end;
        gap: 14px;
    }

    .station-label {
        display: grid;
        max-width: min(42vw, 360px);
        justify-items: end;
        gap: 4px;
        overflow: visible;
        line-height: 1.08;
        text-align: right;
        text-overflow: clip;
        white-space: normal;
    }

    .station-label .route-name,
    .station-label .station-name {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .station-label .route-name {
        color: #7d8a96;
        font-size: clamp(20px, 3.3vw, 28px);
    }

    .station-label .station-name {
        color: var(--primary-deep);
        font-size: clamp(24px, 4vw, 32px);
    }

    .logout-button {
        min-width: 78px;
        height: 56px;
        border-radius: 18px;
        font-size: 24px;
    }

    .selector-panel {
        gap: 26px;
        padding: 30px 28px 22px;
    }

    .field {
        gap: 14px;
    }

    .field span {
        font-size: 28px;
    }

    .field select {
        min-height: 72px;
        padding: 0 28px;
        border-radius: 18px;
        font-size: clamp(28px, 4.8vw, 40px);
    }

    .status-tabs {
        padding: 18px 28px 20px;
    }

    .status-tab {
        min-height: 94px;
    }

    .status-tab span {
        font-size: clamp(28px, 4.6vw, 36px);
    }

    .status-tab strong {
        min-width: 62px;
        padding: 8px 18px;
        font-size: 28px;
    }

    .queue-section {
        padding: 20px 28px 24px;
    }

    .section-heading h2 {
        font-size: clamp(42px, 6.8vw, 56px);
        line-height: 1;
    }

    .section-heading p {
        margin-top: 8px;
        font-size: clamp(24px, 3.8vw, 32px);
    }

    .section-tools {
        gap: 12px;
    }

    .vehicle-filter {
        min-width: 300px;
    }

    .vehicle-filter-trigger {
        height: 72px;
        padding: 0 58px 0 24px;
        border-radius: 20px;
        font-size: 28px;
    }

    .vehicle-filter-trigger::after {
        right: 24px;
        width: 12px;
        height: 12px;
    }

    .vehicle-filter-menu {
        width: 360px;
        padding: 12px;
        border-radius: 22px;
    }

    .vehicle-option {
        min-height: 58px;
        padding: 10px 14px;
        border-radius: 16px;
        font-size: 24px;
    }

    .vehicle-option-empty {
        min-height: 58px;
        padding: 12px 14px;
        border-radius: 16px;
        font-size: 24px;
    }

    .vehicle-option input {
        width: 24px;
        height: 24px;
    }

    .refresh-button {
        min-width: 120px;
        height: 72px;
        border-radius: 20px;
        font-size: 32px;
    }

    .queue-card {
        grid-template-columns: minmax(0, 1fr) minmax(236px, 0.44fr);
        grid-template-rows: auto auto;
        column-gap: 14px;
        row-gap: 6px;
        min-height: 118px;
        padding: 12px 16px 12px 24px;
        border-radius: 18px;
    }

    .queue-main {
        grid-column: 1;
        grid-row: 1;
        align-content: center;
        gap: 6px;
        min-width: 0;
    }

    .queue-no-row {
        gap: 8px;
        max-width: 100%;
    }

    .queue-no-row .queue-no {
        flex: 0 0 auto;
    }

    .queue-no-row .ticket-type-chip-mobile {
        display: inline-flex;
        flex: 0 1 auto;
        min-width: 0;
        max-width: 156px;
        font-size: 20px;
    }

    .queue-chip-row-mobile {
        display: inline-flex;
        width: fit-content;
        max-width: 150px;
    }

    .vehicle-chip-mobile {
        display: inline-flex;
        width: fit-content;
        max-width: 150px;
        padding: 4px 10px;
        overflow: hidden;
        font-size: 18px;
        line-height: 1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .queue-chip-row-inline {
        display: none;
    }

    .queue-no {
        font-size: clamp(40px, 6.4vw, 52px);
    }

    .queue-meta {
        grid-column: 1;
        grid-row: 2;
        gap: clamp(8px, 1.6vw, 14px);
        overflow: hidden;
        font-size: clamp(18px, 3vw, 26px);
    }

    .queue-meta span {
        min-width: 0;
    }

    .queue-meta b {
        margin-right: 1px;
    }

    .queue-actions {
        grid-column: 2;
        grid-row: 1 / span 2;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-self: center;
        gap: 10px;
        min-width: 0;
    }

    .icon-action,
    .primary-action,
    .danger-action,
    .readonly-action {
        min-height: 60px;
        border-radius: 16px;
        font-size: clamp(22px, 3.5vw, 30px);
    }

    .call-count {
        top: -14px;
        right: -8px;
        min-width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

/* 中小屏通用：900px 及以下都会先吃到这一段（平板 + 手机） */
@media (max-width: 900px) {
    .is-screen-view {
        overflow: hidden;
    }

    .screen-header {
        height: 54px;
        min-height: 54px;
        padding: 10px 16px;
    }

    .screen-content {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 24px;
        padding: 22px 22px 24px;
    }

    .screen-main {
        grid-template-rows: auto auto;
        align-content: start;
    }

    .video-panel {
        align-self: start;
        aspect-ratio: 16 / 9;
    }

    .screen-side {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        gap: 34px;
    }

    .calling-panel {
        padding: 6px 0 0;
    }

    .calling-panel h3 {
        margin-bottom: 24px;
        font-size: 46px;
    }

    .calling-grid {
        gap: 10px;
    }

    .calling-grid span {
        min-height: 58px;
        border-color: #aeb8bf;
        background: #fff;
        font-size: 28px;
        font-weight: 500;
    }

    .calling-grid span:nth-child(n + 5) {
        display: none;
    }

    .waiting-total {
        justify-items: center;
        align-content: start;
        padding: 8px 0 0;
    }

    .waiting-total span {
        font-size: 48px;
        line-height: 1;
    }

    .waiting-preview {
        display: none;
    }

    .waiting-total strong {
        margin-top: 54px;
        font-size: 30px;
        font-weight: 400;
    }

    .metric-row {
        min-height: 0;
        padding: 0 12px;
        font-size: 12px;
    }
}

/* 窄宽高屏：浏览器调试里 561-600px、以及部分折叠/小平板竖屏，按手机级密度处理 */
@media (min-width: 561px) and (max-width: 600px) {
    .hero-card {
        max-width: 980px;
        min-height: calc(100vh - 16px);
        margin: 8px auto;
        border-radius: var(--radius-xl);
    }

    .app-header {
        grid-template-columns: 42px minmax(0, 0.95fr) minmax(128px, 1.05fr);
        gap: 8px;
        padding: 12px 12px 10px;
    }

    .title-block {
        min-width: 0;
    }

    .title-block h1 {
        font-size: clamp(24px, 7vw, 34px);
        line-height: 0.96;
    }

    .eyebrow {
        font-size: 11px;
        letter-spacing: 0.08em;
    }

    .subtitle {
        margin-top: 3px;
        font-size: 13px;
        line-height: 1.1;
    }

    .staff-badge {
        align-items: flex-end;
        justify-content: flex-end;
        gap: 6px;
    }

    .station-label {
        display: grid;
        max-width: none;
        min-width: 0;
        justify-items: end;
        gap: 2px;
        overflow: visible;
        line-height: 1.1;
        text-align: right;
        text-overflow: clip;
        white-space: normal;
    }

    .station-label .route-name,
    .station-label .station-name {
        display: block;
        max-width: min(180px, 34vw);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .station-label .route-name {
        font-size: 14px;
    }

    .station-label .station-name {
        color: var(--primary-deep);
        font-size: 16px;
    }

    .logout-button {
        min-width: 48px;
        height: 34px;
        border-radius: 10px;
        font-size: 13px;
    }

    .selector-panel {
        gap: 12px;
        padding: 18px 16px 14px;
    }

    .field {
        gap: 8px;
    }

    .field span {
        font-size: 22px;
    }

    .field select {
        min-height: 56px;
        padding: 0 16px;
        border-radius: 14px;
        font-size: 26px;
    }

    .status-tabs {
        padding: 12px 16px 14px;
    }

    .status-tab {
        min-height: 76px;
    }

    .status-tab span {
        font-size: 25px;
    }

    .status-tab strong {
        min-width: 54px;
        padding: 7px 16px;
        font-size: 24px;
    }

    .queue-section {
        padding: 16px 16px 22px;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .section-heading p {
        font-size: 20px;
    }

    .refresh-button {
        min-width: 86px;
        height: 52px;
        border-radius: 16px;
        font-size: 22px;
    }

    .queue-card {
        grid-template-columns: minmax(0, 1fr) minmax(210px, 0.58fr);
        grid-template-rows: auto auto;
        column-gap: 8px;
        row-gap: 4px;
        min-height: 84px;
        padding: 10px 12px 10px 18px;
    }

    .queue-main {
        grid-column: 1;
        align-content: center;
        gap: 5px;
        min-width: 0;
    }

    .queue-no-row {
        gap: 6px;
        max-width: 100%;
    }

    .queue-no-row .queue-no {
        flex: 0 0 auto;
    }

    .queue-no-row .ticket-type-chip-mobile {
        display: inline-flex;
        flex: 0 1 auto;
        min-width: 0;
        max-width: 132px;
        font-size: 13px;
    }

    .queue-chip-row-mobile {
        display: inline-flex;
        width: fit-content;
        max-width: 78px;
    }

    .vehicle-chip-mobile {
        display: inline-flex;
        width: fit-content;
        max-width: 78px;
        padding: 3px 7px;
        overflow: hidden;
        font-size: 11px;
        line-height: 1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .vehicle-chip-inline,
    .queue-chip-row-inline {
        display: none;
    }

    .queue-no {
        font-size: 34px;
    }

    .queue-meta {
        grid-column: 1;
        grid-row: 2;
        gap: 5px;
        min-width: 0;
        overflow: hidden;
        font-size: 14px;
    }

    .queue-meta span {
        min-width: 0;
    }

    .icon-action,
    .primary-action,
    .danger-action,
    .readonly-action {
        min-height: 56px;
        border-radius: 14px;
        font-size: 20px;
        min-width: 0;
        padding-right: 8px;
        padding-left: 8px;
    }

    .queue-actions {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
        gap: 8px;
        min-width: 0;
    }
}

/* 平板竖屏：561px - 1099px，主要覆盖常见平板竖屏 */
@media (min-width: 561px) and (max-width: 1099px) and (orientation: portrait) {
    .screen-header {
        height: 58px;
        min-height: 58px;
        padding: 10px 24px;
    }

    .screen-brand {
        gap: 18px;
    }

    .screen-brand h2 {
        gap: 10px;
        font-size: clamp(15px, 2.2vw, 25px);
    }

    .screen-menu-button {
        width: 38px;
        height: 38px;
    }

    .screen-avatar {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 13px;
    }

    .screen-more-button {
        width: 34px;
        height: 38px;
    }

    .screen-content {
        grid-template-columns: minmax(0, 1fr) clamp(220px, 28vw, 300px);
        gap: clamp(18px, 3vw, 30px);
        align-items: start;
        max-width: none;
        height: calc(100vh - 58px);
        height: calc(100dvh - 58px);
        padding: 24px clamp(18px, 2.8vw, 30px) 24px;
    }

    .screen-main {
        grid-template-rows: minmax(0, 1fr) 58px;
        gap: 20px;
        overflow: hidden;
    }

    .video-panel {
        width: 100%;
        height: 100%;
        max-height: 340px;
        min-height: 0;
        border-radius: 8px;
        aspect-ratio: auto;
    }

    .location-badge {
        bottom: 18px;
        left: 18px;
        padding: 7px 13px;
        font-size: 14px;
    }

    .notice-ticker {
        height: 58px;
        min-height: 58px;
        border-radius: 8px;
    }

    .ticker-track {
        padding: 16px 18px;
        font-size: 16px;
    }

    .screen-side {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        align-content: start;
        gap: clamp(16px, 2.5vh, 28px);
        padding-top: 6px;
    }

    .calling-panel {
        padding: 0;
    }

    .calling-panel h3 {
        margin-bottom: clamp(8px, 1.5vw, 14px);
        font-size: clamp(22px, 3.2vw, 30px);
        line-height: 1.05;
        white-space: nowrap;
    }

    .calling-panel h3 span {
        font-size: 17px;
    }

    .calling-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
    }

    .calling-grid span {
        min-height: clamp(38px, 5vw, 50px);
        border-color: #aeb8bf;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.72);
        font-size: clamp(16px, 2.4vw, 22px);
        font-weight: 400;
    }

    .calling-grid span:nth-child(n + 5) {
        display: none;
    }

    .waiting-total {
        justify-items: center;
        align-content: start;
        padding: 0;
    }

    .waiting-total span {
        font-size: clamp(22px, 3.2vw, 30px);
        line-height: 1.05;
        white-space: nowrap;
    }

    .waiting-preview,
    .waiting-total small {
        display: none;
    }

    .waiting-total strong {
        margin-top: clamp(10px, 1.8vh, 18px);
        font-size: clamp(16px, 2.4vw, 22px);
        font-weight: 400;
    }
}

@media (min-width: 900px) and (max-width: 1099px) and (orientation: portrait) {
    .screen-content {
        grid-template-columns: minmax(0, 1fr) clamp(260px, 28vw, 310px);
        gap: 28px;
        padding: 26px 28px 28px;
    }

    .video-panel {
        max-height: min(56vh, 720px);
    }

    .calling-panel h3,
    .waiting-total span {
        font-size: clamp(34px, 4vw, 46px);
    }

    .calling-grid span {
        min-height: 52px;
        font-size: 26px;
    }

    .waiting-total strong {
        margin-top: 28px;
        font-size: 28px;
    }
}

/* 窄宽竖屏大屏：563px/594px/小平板浏览器，排队大屏改为上下结构 */
@media (min-width: 561px) and (max-width: 700px) and (orientation: portrait) {
    .screen-header {
        height: 56px;
        min-height: 56px;
        padding: 9px 14px;
    }

    .screen-brand {
        gap: 10px;
    }

    .screen-brand h2 {
        max-width: calc(100vw - 104px);
        gap: 6px;
        font-size: clamp(18px, 3.8vw, 24px);
    }

    .screen-menu-button {
        width: 34px;
        height: 34px;
    }

    .screen-more-button {
        width: 30px;
        height: 34px;
    }

    .screen-content {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 43vh) minmax(0, 1fr);
        gap: 14px;
        height: calc(100vh - 56px);
        height: calc(100dvh - 56px);
        padding: 14px 10px 12px;
    }

    .screen-main {
        grid-template-rows: minmax(0, 1fr) 40px;
        gap: 10px;
        overflow: hidden;
    }

    .video-panel {
        height: 100%;
        max-height: none;
        min-height: 0;
        aspect-ratio: auto;
    }

    .video-poster-fallback span {
        min-width: 110px;
        min-height: 42px;
        padding: 0 18px;
        font-size: 22px;
    }

    .location-badge {
        bottom: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        padding: 6px 10px;
        font-size: 12px;
    }

    .notice-ticker {
        height: 40px;
        min-height: 40px;
    }

    .ticker-track {
        padding: 10px 12px;
        font-size: 13px;
    }

    .screen-side {
        grid-template-columns: minmax(0, 1fr) minmax(132px, 0.7fr);
        grid-template-rows: auto;
        align-items: start;
        gap: 16px;
        padding-top: 26px;
    }

    .calling-panel {
        padding: 0;
    }

    .calling-panel h3,
    .waiting-total span {
        font-size: clamp(36px, 8vw, 48px);
        line-height: 1;
        white-space: nowrap;
    }

    .calling-panel h3 {
        margin-bottom: 14px;
    }

    .calling-grid {
        gap: 8px;
    }

    .calling-grid span {
        min-height: 34px;
        font-size: 20px;
    }

    .waiting-total {
        align-content: start;
        padding-top: 42px;
    }

    .waiting-total strong {
        margin-top: 18px;
        font-size: 22px;
    }
}

/* 手机横屏：高度受限，右侧区域需要显著收紧 */
@media (max-width: 900px) and (orientation: landscape) {
    .login-shell {
        padding: 12px 20px;
    }

    .login-panel {
        width: min(100%, 440px);
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: stretch;
        padding: 16px 22px 12px;
        border-radius: 22px;
    }

    .login-brand {
        gap: 12px;
    }

    .login-brand h1 {
        font-size: clamp(24px, 5vw, 34px);
    }

    .login-field {
        gap: 8px;
    }

    .login-field span {
        font-size: 16px;
    }

    .login-field input,
    .login-submit {
        height: 42px;
        border-radius: 13px;
        font-size: 17px;
    }

    .login-submit {
        margin-top: 2px;
    }

    .login-message {
        min-height: 18px;
        font-size: 14px;
    }

    .screen-content {
        grid-template-columns: minmax(0, 1fr) clamp(168px, 18vw, 210px);
        gap: 12px;
        padding: 12px 16px 10px;
    }

    .screen-main {
        grid-template-rows: minmax(0, 1fr) 42px;
        gap: 8px;
        overflow: hidden;
    }

    .video-panel {
        height: 100%;
        max-height: none;
        aspect-ratio: auto;
    }

    .notice-ticker {
        height: 42px;
        min-height: 42px;
    }

    .ticker-track {
        padding: 10px 14px;
        font-size: 13px;
    }

    .screen-side {
        gap: 8px;
        padding-top: 0;
    }

    .calling-panel h3 {
        margin-bottom: 6px;
        font-size: 16px;
        line-height: 1;
    }

    .calling-grid {
        gap: 6px;
    }

    .calling-grid span {
        min-height: 34px;
        font-size: 14px;
    }

    .waiting-total span {
        font-size: 16px;
        line-height: 1;
    }

    .waiting-total strong {
        margin-top: 6px;
        font-size: 14px;
    }
}

/* 平板横屏：如 MatePad 这类大平板横屏，单独一档，避免影响 PC */
@media (min-width: 1100px) and (max-width: 1366px) and (orientation: landscape) {
    .screen-header {
        height: 58px;
        min-height: 58px;
        padding: 10px 24px;
    }

    .screen-brand {
        gap: 18px;
    }

    .screen-brand h2 {
        gap: 10px;
        font-size: clamp(15px, 2vw, 24px);
    }

    .screen-menu-button {
        width: 38px;
        height: 38px;
    }

    .screen-more-button {
        width: 34px;
        height: 38px;
    }

    .screen-content {
        grid-template-columns: minmax(0, 1fr) clamp(180px, 20vw, 228px);
        gap: 14px;
        align-items: start;
        max-width: none;
        padding: 18px 18px 18px;
    }

    .screen-main {
        grid-template-rows: auto 50px;
        gap: 12px;
    }

    .video-panel {
        width: 100%;
        max-height: 300px;
        border-radius: 8px;
        aspect-ratio: 16 / 9;
    }

    .location-badge {
        bottom: 14px;
        left: 14px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .notice-ticker {
        height: 50px;
        min-height: 50px;
        border-radius: 8px;
    }

    .ticker-track {
        padding: 13px 16px;
        font-size: 14px;
    }

    .screen-side {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        align-content: start;
        gap: 10px;
        padding-top: 2px;
    }

    .calling-panel {
        padding: 0;
    }

    .calling-panel h3 {
        margin-bottom: 6px;
        font-size: 16px;
        line-height: 1;
        white-space: nowrap;
    }

    .calling-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .calling-grid span {
        min-height: 34px;
        border-color: #aeb8bf;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.72);
        font-size: 14px;
        font-weight: 400;
    }

    .calling-grid span:nth-child(n + 5) {
        display: none;
    }

    .waiting-total {
        justify-items: center;
        align-content: start;
        padding: 0;
    }

    .waiting-total span {
        font-size: 16px;
        line-height: 1;
        white-space: nowrap;
    }

    .waiting-preview,
    .waiting-total small {
        display: none;
    }

    .waiting-total strong {
        margin-top: 6px;
        font-size: 14px;
        font-weight: 400;
    }
}

/* 手机端专用：560px 及以下 */
@media (max-width: 560px) {
    .login-shell {
        min-height: 100vh;
        min-height: 100dvh;
        place-items: center;
        padding:
            max(16px, env(safe-area-inset-top))
            clamp(14px, 4.4vw, 24px)
            max(16px, env(safe-area-inset-bottom));
    }

    .login-panel {
        width: min(100%, 300px);
        gap: clamp(12px, 3vw, 18px);
        padding:
            clamp(24px, 6.6vw, 42px)
            clamp(18px, 5vw, 34px)
            clamp(18px, 4.2vw, 26px);
        border-radius: clamp(20px, 5vw, 34px);
    }

    .hero-card {
        min-height: 100vh;
        margin: 0;
        border-radius: 0;
    }

    .app-header {
        grid-template-columns: 42px minmax(0, 0.92fr) minmax(88px, 1.08fr);
        gap: 8px;
        padding: 10px 10px 8px;
    }

    .title-block h1 {
        font-size: clamp(20px, 8vw, 30px);
    }

    .eyebrow {
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .subtitle {
        margin-top: 2px;
        font-size: 11px;
    }

    .title-block {
        min-width: 0;
    }

    .staff-badge {
        align-items: flex-end;
        justify-content: flex-end;
        gap: 5px;
    }

    .station-label {
        display: grid;
        max-width: none;
        min-width: 0;
        justify-items: end;
        gap: 2px;
        line-height: 1.1;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .station-label .route-name,
    .station-label .station-name {
        display: block;
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
    }

    .station-label .route-name {
        font-size: 12px;
    }

    .station-label .station-name {
        font-size: 13px;
        color: var(--primary-deep);
    }

    .logout-button {
        min-width: 40px;
        height: 28px;
        border-radius: 9px;
        font-size: 11px;
    }

    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .section-tools {
        justify-content: stretch;
    }

    .vehicle-filter {
        flex: 1 1 auto;
        min-width: 0;
    }

    .vehicle-filter-menu {
        right: auto;
        left: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .queue-card {
        grid-template-columns: minmax(0, 1fr) minmax(186px, 0.54fr);
        grid-template-rows: auto auto;
        column-gap: 8px;
        row-gap: 4px;
        min-height: 84px;
        padding: 8px 10px 8px 18px;
    }

    .screen-frame {
        height: 100vh;
        min-height: 0;
    }

    .screen-brand {
        gap: 8px;
    }

    .screen-brand h2 {
        gap: 4px 6px;
        font-size: 16px;
    }

    .screen-header-actions {
        gap: 6px;
    }

    .screen-menu-button {
        width: 34px;
        height: 34px;
    }

    .screen-avatar {
        width: 32px;
        height: 32px;
    }

    .screen-more-button {
        width: 28px;
        height: 32px;
    }

    .queue-main {
        grid-column: 1;
        align-content: center;
        gap: 5px;
        min-width: 0;
    }

    .queue-no-row {
        gap: 6px;
        max-width: 100%;
    }

    .queue-no-row .queue-no {
        flex: 0 0 auto;
    }

    .queue-no-row .ticket-type-chip-mobile {
        display: inline-flex;
        flex: 0 1 auto;
        min-width: 0;
        max-width: min(132px, calc(100vw - 318px));
        font-size: 13px;
    }

    .queue-meta {
        grid-column: 1;
        grid-row: 2;
        gap: 5px;
        min-width: 0;
        overflow: hidden;
        font-size: 14px;
    }

    .queue-meta span {
        min-width: 0;
    }

    .queue-actions {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
        gap: 6px;
        min-width: 0;
    }

    .icon-action,
    .primary-action,
    .danger-action,
    .readonly-action {
        min-width: 0;
        padding-right: 8px;
        padding-left: 8px;
    }

    .queue-chip-row-mobile {
        display: inline-flex;
        width: fit-content;
        max-width: 78px;
    }

    .vehicle-chip-mobile {
        display: inline-flex;
        width: fit-content;
        max-width: 78px;
        padding: 3px 7px;
        overflow: hidden;
        font-size: 11px;
        line-height: 1;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .vehicle-chip-inline {
        display: none;
    }

    .queue-chip-row-inline {
        display: none;
    }

    .video-poster-fallback span {
        width: auto;
        height: auto;
        min-width: 96px;
        min-height: 36px;
        padding: 0 16px;
        font-size: 18px;
    }

    .screen-content {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 39vh) minmax(0, 1fr);
        gap: 8px;
        padding: 10px 8px 10px;
    }

    .screen-main {
        grid-template-rows: minmax(0, 1fr) 34px;
        gap: 8px;
        min-height: 0;
        overflow: hidden;
    }

    .location-badge {
        bottom: 8px;
        left: 8px;
        max-width: calc(100% - 16px);
        padding: 6px 8px;
        font-size: 10px;
    }

    .notice-ticker {
        min-height: 30px;
        height: 34px;
    }

    .ticker-track {
        padding: 9px 10px;
        font-size: 12px;
    }

    .screen-side {
        grid-template-columns: minmax(0, 1.35fr) minmax(108px, 0.65fr);
        grid-template-rows: auto;
        align-items: start;
        gap: 12px;
        min-height: 0;
        padding-top: 12px;
    }

    .calling-panel h3 {
        margin-bottom: 10px;
        font-size: 25px;
        white-space: nowrap;
    }

    .calling-panel {
        padding: 8px 0 0;
    }

    .calling-grid {
        gap: 7px;
    }

    .calling-grid span {
        min-height: 28px;
        border-color: rgba(0, 98, 120, 0.16);
        color: #23313b;
        background: rgba(255, 255, 255, 0.48);
        font-size: 15px;
        font-weight: 500;
    }

    .waiting-total {
        align-content: start;
        justify-items: center;
        padding: 44px 0 0;
        text-align: center;
    }

    .waiting-total span {
        font-size: 25px;
        line-height: 1;
        white-space: nowrap;
    }

    .waiting-preview {
        display: none;
    }

    .waiting-total strong {
        margin-top: 13px;
        font-size: 17px;
        font-weight: 500;
        white-space: nowrap;
        width: 100%;
        text-align: center;
    }
    .waiting-total small {
        display: none;
    }
}

@media (max-width: 560px) and (min-height: 780px) and (orientation: portrait) {
    .screen-header {
        height: 56px;
        min-height: 56px;
        padding: 9px 12px;
    }

    .screen-brand h2 {
        max-width: calc(100vw - 100px);
        font-size: clamp(18px, 4.8vw, 24px);
    }

    .screen-content {
        grid-template-rows: minmax(0, 42vh) minmax(0, 1fr);
        gap: 14px;
        padding: 14px 10px 12px;
    }

    .screen-main {
        grid-template-rows: minmax(0, 1fr) 38px;
        gap: 10px;
    }

    .video-poster-fallback span {
        min-width: 108px;
        min-height: 42px;
        padding: 0 18px;
        font-size: 22px;
    }

    .notice-ticker {
        height: 38px;
        min-height: 38px;
    }

    .ticker-track {
        padding: 9px 12px;
        font-size: 13px;
    }

    .screen-side {
        grid-template-columns: minmax(0, 1fr) minmax(128px, 0.72fr);
        gap: 14px;
        padding-top: 28px;
    }

    .calling-panel h3,
    .waiting-total span {
        font-size: clamp(34px, 8vw, 44px);
    }

    .calling-grid span {
        min-height: 34px;
        font-size: 19px;
    }

    .waiting-total {
        padding-top: 36px;
    }

    .waiting-total strong {
        margin-top: 16px;
        font-size: 22px;
    }
}

/* 小屏手机专用：560px 及以下，且高度不超过 720px */
@media (max-width: 560px) and (max-height: 720px) {
    .login-shell {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .login-panel {
        gap: 13px;
        padding-top: 24px;
        padding-bottom: 16px;
    }

    .login-brand h1 {
        font-size: 32px;
    }

    .login-field {
        gap: 7px;
    }

    .login-field span {
        font-size: 17px;
    }

    .login-field input,
    .login-submit {
        height: 46px;
        border-radius: 14px;
        font-size: 18px;
    }

    .login-submit {
        font-size: 20px;
    }

    .login-message {
        min-height: 18px;
        font-size: 15px;
    }

    .screen-content {
        grid-template-rows: minmax(0, 38vh) minmax(0, 1fr);
    }

    .screen-side {
        padding-top: 8px;
    }

    .calling-panel h3 {
        margin-bottom: 10px;
        font-size: 25px;
    }

    .calling-grid {
        gap: 8px;
    }

    .calling-grid span {
        min-height: 24px;
        font-size: 14px;
    }

    .waiting-total {
        padding-top: 37px;
    }

    .waiting-total span {
        font-size: 22px;
    }

    .waiting-total strong {
        margin-top: 10px;
        font-size: 15px;
    }
}

/* Manage card fit: keep long ticket names inside the content column on phones. */
@media (max-width: 600px) {
    .queue-card {
        grid-template-columns: minmax(0, 1fr) clamp(142px, 39vw, 186px);
        column-gap: clamp(6px, 1.8vw, 10px);
        padding-right: clamp(8px, 2.6vw, 12px);
        padding-left: clamp(16px, 4.6vw, 20px);
    }

    .queue-main,
    .queue-no-row,
    .queue-chip-row-mobile,
    .queue-meta {
        max-width: 100%;
        min-width: 0;
    }

    .queue-no {
        font-size: clamp(30px, 8.6vw, 34px);
    }

    .queue-no-row .ticket-type-chip-mobile {
        max-width: min(34vw, 128px);
        padding-right: 6px;
        padding-left: 6px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .queue-chip-row-mobile,
    .vehicle-chip-mobile {
        max-width: min(32vw, 116px);
    }

    .queue-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(5px, 1.6vw, 8px);
    }

    .icon-action,
    .primary-action,
    .danger-action,
    .readonly-action {
        min-height: clamp(46px, 13.5vw, 56px);
        padding-right: clamp(5px, 1.8vw, 8px);
        padding-left: clamp(5px, 1.8vw, 8px);
        border-radius: clamp(12px, 3.5vw, 14px);
        font-size: clamp(16px, 5vw, 20px);
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .queue-card {
        grid-template-columns: minmax(0, 1fr) clamp(130px, 37vw, 142px);
        column-gap: 6px;
        padding-right: 8px;
        padding-left: 16px;
    }

    .queue-no {
        font-size: 29px;
    }

    .queue-no-row {
        gap: 5px;
    }

    .queue-no-row .ticket-type-chip-mobile {
        max-width: min(31vw, 108px);
        font-size: 12px;
    }

    .queue-chip-row-mobile,
    .vehicle-chip-mobile {
        max-width: min(30vw, 98px);
    }

    .queue-meta {
        gap: 4px;
        font-size: 13px;
    }

    .queue-actions {
        gap: 5px;
    }

    .icon-action,
    .primary-action,
    .danger-action,
    .readonly-action {
        min-height: 46px;
        padding-right: 4px;
        padding-left: 4px;
        font-size: 15px;
    }
}

@media (min-width: 601px) and (max-width: 899px) {
    .queue-card {
        grid-template-columns: minmax(0, 1fr) clamp(212px, 31vw, 260px);
    }

    .queue-no-row .ticket-type-chip-mobile {
        max-width: min(28vw, 190px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .queue-chip-row-mobile,
    .vehicle-chip-mobile {
        max-width: min(24vw, 180px);
    }
}

@media (min-width: 601px) and (max-width: 899px) and (min-height: 760px) {
    .queue-search {
        width: min(38vw, 330px);
        height: 72px;
        border-radius: 20px;
    }

    .queue-search::before {
        left: 22px;
        width: 18px;
        height: 18px;
    }

    .queue-search::after {
        left: 39px;
        top: 43px;
        width: 10px;
        height: 3px;
    }

    .queue-search input {
        padding-left: 54px;
        font-size: 24px;
    }

    .queue-search button {
        min-width: 94px;
        padding: 0 20px;
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .section-heading {
        flex-wrap: wrap;
    }

    .section-heading-title {
        width: 100%;
    }

    .queue-search {
        order: 2;
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        height: 44px;
        border-radius: 14px;
    }

    .section-tools {
        order: 3;
        width: 100%;
    }

    .queue-search input {
        font-size: 15px;
    }

    .queue-search button {
        min-width: 68px;
        font-size: 15px;
    }
}

/* Mobile queue cards: show long ticket names fully in the chip row. */
@media (max-width: 600px) {
    .queue-card {
        align-items: center;
        min-height: 102px;
    }

    .queue-main {
        align-content: center;
        gap: 6px;
    }

    .queue-no-row {
        display: flex;
        max-width: 100%;
    }

    .queue-chip-row-mobile {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
        max-width: 100%;
        gap: 4px;
    }

    .queue-no-row .ticket-type-chip-mobile,
    .ticket-type-chip-mobile {
        display: inline-flex;
        flex: 0 1 auto;
        max-width: 100%;
        overflow: visible;
        font-size: 12px;
        line-height: 1.15;
        text-overflow: clip;
        white-space: normal;
        word-break: keep-all;
    }

    .vehicle-chip-mobile {
        display: inline-flex;
        flex: 0 1 auto;
        max-width: 100%;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .queue-meta {
        align-self: start;
        padding-top: 2px;
    }
}

@media (max-width: 380px) {
    .queue-card {
        min-height: 108px;
    }

    .queue-no-row .ticket-type-chip-mobile,
    .ticket-type-chip-mobile,
    .vehicle-chip-mobile {
        font-size: 11px;
    }
}

@media (max-width: 380px) {
    .queue-search {
        height: 40px;
    }

    .queue-search input,
    .queue-search button {
        font-size: 14px;
    }
}

/* Final queue chip layout split:
   phones show ticket + vehicle together; tablets keep ticket beside queue number. */
@media (max-width: 600px) {
    .ticket-type-chip-inline-mobile {
        display: none;
    }

    .queue-chip-row-mobile .ticket-type-chip-mobile {
        display: inline-flex;
    }
}

@media (min-width: 601px) and (max-width: 899px) {
    .queue-card {
        grid-template-columns: minmax(0, 1fr) clamp(190px, 30vw, 238px);
        grid-template-rows: auto auto;
        min-height: 96px;
        column-gap: clamp(20px, 4vw, 34px);
        row-gap: 4px;
        padding: 10px 16px 10px 20px;
    }

    .queue-main {
        grid-column: 1;
        grid-row: 1;
        align-content: center;
        justify-items: start;
        gap: 4px;
        min-width: 0;
    }

    .queue-meta {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        justify-content: flex-start;
        gap: 6px;
        min-width: 0;
        overflow: hidden;
    }

    .queue-no-row {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        max-width: 100%;
    }

    .queue-no-row .ticket-type-chip-inline-mobile {
        display: inline-flex;
        flex: 0 1 auto;
        min-width: 0;
        max-width: min(30vw, 220px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .queue-chip-row-mobile .ticket-type-chip-mobile {
        display: none;
    }

    .queue-meta .queue-chip-row-inline {
        display: none;
    }

    .queue-chip-row-mobile {
        display: inline-flex;
        width: fit-content;
        max-width: min(26vw, 190px);
    }

    .vehicle-chip-mobile {
        display: inline-flex;
        width: fit-content;
        max-width: min(26vw, 190px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .queue-actions {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(8px, 1.8vw, 12px);
        min-width: 0;
    }

    .icon-action,
    .primary-action,
    .danger-action,
    .readonly-action {
        min-height: 46px;
        border-radius: 14px;
        font-size: clamp(16px, 2.4vw, 22px);
        min-width: 0;
        padding-right: 8px;
        padding-left: 8px;
    }
}

@media (min-width: 900px) {
    .ticket-type-chip-inline-mobile,
    .ticket-type-chip-mobile,
    .vehicle-chip-mobile,
    .queue-chip-row-mobile {
        display: none;
    }

    .queue-meta .queue-chip-row-inline {
        display: inline-flex;
    }
}

/* ===== 标题与筛选输入框始终同行（覆盖移动端媒体查询的换行/竖排） ===== */
.hero-card .queue-section .section-heading {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}

.hero-card .section-heading-title {
    width: auto;
    flex: 0 0 auto;
}

.hero-card .queue-search-inline {
    flex: 1 1 auto;
    width: auto;
    min-width: 54px;
    max-width: 62%;
    margin-left: 8px;
}

.hero-card .section-heading h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =====================================================
   视觉精修：右下角悬浮工具窗 + 排号卡片
   仅重设样式，不改动任何 DOM/JS 结构
   ===================================================== */

/* ---- 状态主题色（排号卡片按状态着色，通过左侧色条表现） ---- */
.queue-card.waiting  { --stc: #12b76a; --stc-soft: #e7f9ef; }
.queue-card.called   { --stc: #f59e0b; --stc-soft: #fff5e0; }
.queue-card.boarded  { --stc: #0b83c9; --stc-soft: #e6f5fd; }
.queue-card.cancelled{ --stc: #ef4444; --stc-soft: #ffe9e9; }
.queue-card.no-show  { --stc: #94a3b8; --stc-soft: #eef2f6; }

/* ---- 排号卡片 ---- */
.queue-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(4, 44, 63, 0.09);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 255, 0.95));
    box-shadow: 0 8px 22px rgba(8, 44, 62, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.queue-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--primary) 28%, transparent);
    box-shadow: 0 14px 34px rgba(8, 44, 62, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.queue-card:active {
    transform: translateY(0);
}

/* 左侧状态色条 */
.queue-card::after {
    content: "";
    position: absolute;
    top: 12%;
    bottom: 12%;
    left: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, var(--stc), var(--stc-soft));
}

/* 放大排号，按状态着色 */
.queue-card .queue-no {
    color: var(--stc);
    font-size: clamp(20px, 4.6vw, 26px);
    letter-spacing: 0.02em;
}

.queue-card .status-pill {
    color: var(--stc);
    background: var(--stc-soft);
}

/* 排号后的类型标签 */
.queue-card .category-label {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid color-mix(in srgb, var(--stc) 30%, transparent);
    border-radius: 999px;
    color: var(--stc);
    background: var(--stc-soft);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

/* 元信息改为轻量胶囊 */
.queue-meta {
    gap: 8px;
    color: #566a78;
}

.queue-meta span {
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f6fa;
    line-height: 1.1;
}

/* 操作按钮精修 */
.icon-action,
.primary-action,
.danger-action,
.readonly-action {
    min-height: 34px;
    border-radius: 12px;
    font-weight: 900;
    transition: transform 0.12s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.icon-action {
    color: var(--primary);
    background: var(--primary-soft);
}

.icon-action:hover {
    filter: brightness(0.97);
    transform: translateY(-1px);
}

.primary-action {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    box-shadow: 0 8px 18px rgba(0, 98, 120, 0.24);
}

.primary-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 98, 120, 0.3);
}

.primary-action:active,
.icon-action:active {
    transform: translateY(0) scale(0.97);
}

.danger-action {
    color: #fff;
    background: linear-gradient(135deg, #ff7f95, #f65f78);
    box-shadow: 0 8px 18px rgba(247, 95, 120, 0.24);
}

/* 拼团角标 / 叫号计数精修 */
.group-part-corner,
.group-queue-badge {
    border-color: rgba(89, 66, 179, 0.28);
    color: #6d4fc8;
    background: radial-gradient(circle at 20% 20%, #fff, #f0ecff);
    box-shadow: 0 2px 6px rgba(89, 66, 179, 0.16);
}

.call-count {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    min-width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--panel-strong);
    border-radius: 999px;
    color: #fff;
    background: var(--accent);
    font-size: 9px;
    font-weight: 900;
    box-sizing: border-box;
}

/* ---- 右下角悬浮工具窗 ---- */
.floating-tools {
    right: 20px;
    bottom: 20px;
    width: 240px;
    padding: 12px 12px 14px;
    border: 1px solid rgba(0, 98, 120, 0.14);
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.92), rgba(235, 248, 255, 0.94));
    box-shadow: 0 20px 48px rgba(4, 44, 63, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    animation: floating-in 0.28s ease both;
}

@keyframes floating-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.floating-tools::before {
    content: "";
    display: block;
    height: 3px;
    margin: -12px -12px 10px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    opacity: 0.85;
}

.floating-tools-head {
    padding-bottom: 2px;
}

.floating-tools-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary-deep);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.floating-tools-title::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 98, 120, 0.12);
}

.floating-clear,
.floating-toggle {
    height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(0, 98, 120, 0.16);
    border-radius: 10px;
    color: var(--primary);
    background: #fff;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.floating-clear:hover,
.floating-toggle:hover {
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.floating-clear:active,
.floating-toggle:active {
    transform: scale(0.95);
}

/* 车型选项胶囊精修 */
.floating-tools .vehicle-option {
    padding: 5px 11px;
    border: 1px solid rgba(0, 98, 120, 0.12);
    border-radius: 999px;
    color: #375a66;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(8, 44, 62, 0.06);
    transition: transform 0.12s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.floating-tools .vehicle-option:hover {
    border-color: var(--primary-soft);
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.floating-tools .vehicle-option:has(input:checked) {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 98, 120, 0.28);
}

/* 刷新按钮精修 */
.floating-tools .refresh-button {
    min-height: 36px;
    border: 1px solid rgba(0, 98, 120, 0.18);
    border-radius: 12px;
    color: var(--primary);
    background: #fff;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(8, 44, 62, 0.08);
    transition: transform 0.12s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.floating-tools .refresh-button:hover {
    background: var(--primary-soft);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(8, 44, 62, 0.12);
}

.floating-tools .refresh-button:active {
    transform: scale(0.96);
}

/* 折叠态：紧凑药丸 */
.floating-tools.collapsed {
    width: auto;
    padding: 8px 10px;
    border-radius: 999px;
}

.floating-tools.collapsed .floating-tools-title {
    font-size: 12px;
}

.floating-tools.collapsed::before {
    display: none;
}

/* ===== 关联功能 ===== */
/* 详情弹窗里的「关联」按钮 */
.assoc-open-btn {
    margin-left: auto;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-deep);
    background: var(--primary-soft);
    border: 1px solid rgba(0, 98, 120, 0.2);
    border-radius: 999px;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}
.assoc-open-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* 关联选择弹窗 */
.assoc-mask {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 44, 63, 0.45);
    backdrop-filter: blur(4px);
}
.assoc-mask[hidden] {
    display: none;
}
.assoc-dialog {
    width: 100%;
    max-width: 420px;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    background: var(--panel-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.assoc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.assoc-header h3 {
    margin: 0;
    font-size: 16px;
}
.assoc-close {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}
.assoc-main {
    margin: 0;
    padding: 10px 18px;
    font-size: 13px;
    color: var(--muted);
    background: rgba(0, 98, 120, 0.05);
    border-bottom: 1px solid var(--line);
}
.assoc-main strong {
    color: var(--primary-deep);
}
.assoc-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}
.assoc-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
}
.assoc-option:hover {
    background: rgba(0, 98, 120, 0.06);
}
.assoc-option input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}
.assoc-option span {
    font-weight: 700;
    font-size: 15px;
}
.assoc-option small {
    margin-left: auto;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-deep);
}
.assoc-empty {
    padding: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}
.assoc-actions {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
}
.assoc-cancel {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    background: #eef2f5;
    border: 0;
    border-radius: var(--radius-md);
    cursor: pointer;
}
.assoc-submit {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: var(--radius-md);
    cursor: pointer;
}
.assoc-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* 主排队号下方的关联号 tag：跨满卡片整行，保证占满 100% 宽度 */
.assoc-tags {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 0 14px 4px;
}
.assoc-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid rgba(0, 98, 120, 0.18);
    border-radius: 999px;
}

/* 有人数徽标的卡片预留顶部空间，避免徽标压住内容 */
.queue-card:has(.people-badge) {
    padding-top: 30px;
}

/* ===== 总人数编辑弹窗 ===== */
.people-mask {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(4, 44, 63, 0.45);
    backdrop-filter: blur(4px);
}
.people-mask[hidden] {
    display: none;
}
.people-dialog {
    width: 100%;
    max-width: 340px;
    background: var(--panel-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.people-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.people-header h3 {
    margin: 0;
    font-size: 16px;
}
.people-close {
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}
.people-main {
    margin: 0;
    padding: 12px 18px 4px;
    font-size: 13px;
    color: var(--muted);
}
.people-main strong {
    color: var(--primary-deep);
}
.people-input {
    display: block;
    width: calc(100% - 36px);
    margin: 12px 18px 0;
    padding: 11px 14px;
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    outline: none;
}
.people-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 98, 120, 0.12);
}
.people-hint {
    margin: 6px 18px 0;
    font-size: 11px;
    color: var(--muted);
}
.people-error {
    min-height: 16px;
    margin: 6px 18px 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--danger);
}
.people-actions {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    margin-top: 12px;
}
.people-cancel {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    background: #eef2f5;
    border: 0;
    border-radius: var(--radius-md);
    cursor: pointer;
}
.people-submit {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: var(--radius-md);
    cursor: pointer;
}
.people-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}
