/* ===== 彼岸 v2 增强组件（在 v1 theme.css 基础上叠加）===== */
.view-switch.active { color: #021520; border-color: #35dfff; background: linear-gradient(180deg, #4fe3ff, #1aa8d6); box-shadow: 0 0 14px rgba(40, 216, 255, .35); }
.stream-status { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; letter-spacing: .04em; }
.stream-status.online { color: var(--accent-2); }
.stream-status.reconnecting, .stream-status.connecting { color: var(--warn); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .45; } }

.user-chip { position: relative; height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 9px 0 4px; border: 1px solid var(--line); background: rgba(4, 27, 47, .8); cursor: pointer; }
.user-avatar { width: 24px; height: 24px; display: grid; place-items: center; background: linear-gradient(135deg, #1aa8d6, #2cf2c2); color: #021520; font-size: 10px; font-weight: 700; }
.user-meta { display: flex; flex-direction: column; line-height: 1.1; }
.user-meta b { color: #d8f6ff; font-size: 11px; font-weight: 550; }
.user-meta small { color: #5f8aa1; font-size: 9px; }
.user-menu { position: absolute; right: 0; top: 36px; z-index: 50; min-width: 120px; display: none; flex-direction: column; border: 1px solid var(--line-strong); background: var(--menu-bg); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.user-chip.open .user-menu { display: flex; }
.user-menu button { height: 34px; border: 0; border-bottom: 1px solid rgba(56, 189, 248, .1); background: transparent; color: #a8d9e8; text-align: left; padding: 0 12px; cursor: pointer; font-size: 12px; }
.user-menu button:hover { background: rgba(40, 216, 255, .1); color: #fff; }

.bian-toast { position: fixed; right: 24px; bottom: 54px; z-index: 200; max-width: min(460px, calc(100vw - 24px)); padding: 11px 15px; border: 1px solid var(--line-strong); background: #08243a; color: #c9edf7; box-shadow: 0 14px 40px rgba(0,0,0,.4); font-size: 12px; opacity: 0; transform: translateY(10px); transition: .2s; pointer-events: none; }
.bian-toast.show { opacity: 1; transform: none; }
.bian-toast.success { border-color: rgba(44,242,194,.55); color: var(--accent-2); }
.bian-toast.warning { border-color: rgba(255,200,87,.55); color: var(--warn); }
.bian-toast.danger { border-color: rgba(255,115,136,.6); color: #ff96a5; }
.boot-error { padding: 80px 24px; text-align: center; color: #ff96a5; }

.pw-form { display: grid; gap: 12px; padding-top: 6px; }
.pw-form label, .login-form label { display: grid; gap: 6px; color: #84abc0; font-size: 11px; }
.pw-form input, .login-form input { height: 38px; padding: 0 11px; border: 1px solid var(--line-strong); background: rgba(3, 21, 38, .9); color: #e8f7ff; font-size: 13px; }
.pw-actions { display: flex; justify-content: flex-end; gap: 8px; }
.bian-modal .modal { width: min(420px, 100%); }
.bian-modal .modal-head { display: flex; justify-content: space-between; padding: 16px 18px 6px; }
.bian-modal .modal-body { padding: 8px 18px 18px; }
.bian-modal h3 { margin: 0; color: #dff7ff; font-size: 15px; }
.bian-modal .modal-subtitle { margin: 4px 0 0; color: #6b93a8; font-size: 11px; }

/* ===== KPI v2 ===== */
.kpi-tile .kpi-sub { display: flex; gap: 10px; margin-top: 7px; color: #5f8aa1; font-size: 10px; position: relative; z-index: 1; }
.kpi-tile .kpi-sub b { color: #9fd6e7; font-weight: 500; font-family: "Bahnschrift", sans-serif; }
.kpi-tile.kpi-alert { border-color: rgba(255,115,136,.45); }
.kpi-tile.kpi-alert::before { background: var(--danger); }
#kpiGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { #kpiGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== 数字孪生 ===== */
.twin-panel .chart-wrap { min-height: 560px; }
.twin-canvas { width: 100%; height: 100%; min-height: 560px; display: block; cursor: grab; touch-action: none; }
.twin-canvas:active { cursor: grabbing; }
.twin-hud { position: absolute; left: 10px; top: 8px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.twin-hud span { padding: 3px 8px; border: 1px solid rgba(40,216,255,.25); background: rgba(3, 22, 38, .75); color: #8fd3e6; font-size: 10px; }
.twin-hud b { color: #effdff; font-family: "Bahnschrift", sans-serif; font-weight: 500; margin-left: 3px; }
.twin-legend { position: absolute; left: 10px; bottom: 8px; z-index: 3; display: flex; gap: 14px; color: #79a2b9; font-size: 10px; pointer-events: none; }
.twin-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; vertical-align: -1px; }
.twin-help { position: absolute; right: 10px; bottom: 8px; z-index: 3; color: #46708a; font-size: 9px; pointer-events: none; }
.twin-tip { position: absolute; z-index: 5; min-width: 170px; padding: 9px 11px; border: 1px solid rgba(40,216,255,.45); background: rgba(3, 20, 35, .95); box-shadow: 0 10px 30px rgba(0,0,0,.45); color: #cfeef8; font-size: 11px; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.twin-tip.show { opacity: 1; transform: none; }
.twin-tip strong { display: block; color: #fff; font-size: 13px; }
.twin-tip > span { color: #6fb6cc; font-size: 10px; }
.twin-tip dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 7px 0 0; }
.twin-tip dt { color: #5f8aa1; } .twin-tip dd { margin: 0; color: #e8f7ff; }
.vessel-card { position: absolute; right: 10px; top: 72px; z-index: 4; width: 240px; padding: 11px 12px; border: 1px solid rgba(44,242,194,.4); background: rgba(3, 22, 38, .9); display: none; }
.vessel-card.show { display: block; }
.vessel-card h3 { margin: 0 0 2px; color: #fff; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.vessel-card .vc-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin-top: 8px; font-size: 11px; }
.vessel-card .vc-grid span { color: #5f8aa1; } .vessel-card .vc-grid b { color: #dff7ff; font-weight: 500; }
.vessel-card .vc-bar { height: 5px; margin-top: 8px; background: rgba(40,216,255,.12); position: relative; }
.vessel-card .vc-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #2cf2c2, #28d8ff); }
.vessel-card .vc-actions { display: flex; gap: 6px; margin-top: 10px; }
.vessel-card .vc-actions button { flex: 1; min-height: 28px; }

/* ===== 风浪 & 出航建议 ===== */
.weather-readout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 2px 0 6px; }
.weather-readout div { padding: 7px 8px; border: 1px solid rgba(40,216,255,.14); background: rgba(5, 32, 52, .55); }
.weather-readout span { display: block; color: #5f8aa1; font-size: 9px; }
.weather-readout strong { color: #effdff; font: 600 20px/1.15 "Bahnschrift", sans-serif; }
.weather-readout em { margin-left: 3px; color: #6990a5; font-size: 9px; font-style: normal; }
.chart.weather-chart { height: 150px; min-height: 150px; }
.advisory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.advisory-item { position: relative; padding: 7px 9px 7px 11px; border: 1px solid rgba(40,216,255,.12); background: rgba(5, 30, 50, .55); overflow: hidden; }
.advisory-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent-2); }
.advisory-item.谨慎::before { background: var(--warn); } .advisory-item.暂停::before { background: var(--danger); }
.advisory-item.暂停 { border-color: rgba(255,115,136,.4); background: rgba(70, 18, 30, .35); }
.advisory-item header { display: flex; justify-content: space-between; align-items: center; min-height: 0 !important; }
.advisory-item b { color: #dff7ff; font-size: 12px; font-weight: 550; }
.advisory-item .score { font: 600 15px "Bahnschrift", sans-serif; color: var(--accent-2); }
.advisory-item.谨慎 .score { color: var(--warn); } .advisory-item.暂停 .score { color: var(--danger); }
.advisory-item p { margin: 3px 0 0; color: #6990a5; font-size: 9px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.advisory-item .meter { height: 3px; margin-top: 5px; background: rgba(255,255,255,.06); }
.advisory-item .meter i { display: block; height: 100%; background: currentColor; }

/* ===== 智能简报 ===== */
.briefing { display: flex; flex-direction: column; gap: 7px; flex: 1; overflow: auto; padding-top: 4px; }
.brief-line { display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: start; padding: 7px 9px; border: 1px solid rgba(40,216,255,.1); background: rgba(5, 30, 50, .45); }
.brief-line .tag { padding: 2px 0; text-align: center; font-size: 10px; border: 1px solid currentColor; color: var(--accent); }
.brief-line.ok .tag { color: var(--accent-2); } .brief-line.warn .tag { color: var(--warn); } .brief-line.danger .tag { color: var(--danger); }
.brief-line p { margin: 0; color: #bfe3ef; font-size: 12px; line-height: 1.55; }
.brief-line p .cursor { display: inline-block; width: 6px; height: 12px; margin-left: 2px; background: var(--accent); vertical-align: -1px; animation: blink .8s infinite; }
.ai-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border: 1px solid rgba(167,139,250,.45); color: #c4b5fd; background: rgba(167,139,250,.08); font-size: 10px; letter-spacing: .05em; }
.ai-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 8px #a78bfa; animation: blink 1.6s infinite; }

/* ===== 排队估算 ===== */
.queue-list { display: flex; flex-direction: column; gap: 5px; overflow: auto; flex: 1; }
.queue-row { display: grid; grid-template-columns: 74px 1fr 62px; gap: 8px; align-items: center; font-size: 11px; }
.queue-row b { color: #cbeaf4; font-weight: 500; }
.queue-row .qbar { height: 14px; position: relative; background: rgba(40,216,255,.07); border: 1px solid rgba(40,216,255,.1); }
.queue-row .qbar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(40,216,255,.35), rgba(44,242,194,.7)); }
.queue-row .qbar i.hot { background: linear-gradient(90deg, rgba(255,200,87,.4), rgba(255,115,136,.8)); }
.queue-row .qbar small { position: absolute; left: 6px; top: 0; color: #dff7ff; font-size: 9px; line-height: 13px; }
.queue-row .qwait { text-align: right; color: #effdff; font: 600 13px "Bahnschrift", sans-serif; }
.queue-row .qwait em { color: #5f8aa1; font: 9px sans-serif; margin-left: 2px; font-style: normal; }

/* ===== 预警中心 ===== */
.alert-feed { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 6px; max-height: 360px; }
.alert-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 8px; align-items: center; padding: 7px 8px; border: 1px solid rgba(40,216,255,.1); background: rgba(5,30,50,.45); }
.alert-item.new { animation: flash 1.2s 2; }
@keyframes flash { 50% { background: rgba(255,115,136,.2); } }
.alert-level { text-align: center; padding: 2px 0; font-size: 10px; border: 1px solid; }
.alert-level.紧急 { color: #ff7388; background: rgba(255,115,136,.12); } .alert-level.重要 { color: #ffc857; }
.alert-level.一般 { color: #28d8ff; } .alert-level.提示 { color: #8ca9bb; }
.alert-body b { display: block; color: #d8f3fb; font-size: 12px; font-weight: 500; }
.alert-body small { color: #5f8aa1; font-size: 10px; }
.alert-actions { display: flex; gap: 4px; }
.alert-actions button { min-height: 24px; padding: 0 7px; font-size: 10px; }
.alert-empty { padding: 30px 0; text-align: center; color: #4f7a90; font-size: 12px; }

/* ===== 安全指数构成 ===== */
.safety-parts { display: grid; gap: 4px; margin-top: 4px; }
.safety-parts div { display: flex; justify-content: space-between; font-size: 10px; color: #6990a5; border-bottom: 1px dashed rgba(40,216,255,.1); padding: 2px 0; }
.safety-parts b { color: #ff96a5; font-weight: 500; } .safety-parts b.zero { color: #3e6a80; }

/* ===== 事件滚动条 ===== */
.event-ticker { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 30px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-top: 1px solid rgba(40,216,255,.25); background: rgba(2, 12, 24, .94); backdrop-filter: blur(10px); overflow: hidden; }
.event-ticker > strong { flex: none; color: #021520; background: var(--accent); padding: 2px 8px; font-size: 10px; letter-spacing: .1em; }
.ticker-track { flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-inner { display: inline-block; padding-left: 100%; animation: ticker 60s linear infinite; }
.ticker-inner span { margin-right: 36px; color: #9cc9d9; font-size: 11px; }
.ticker-inner span b { color: var(--accent); font-weight: 500; margin-right: 6px; }
@keyframes ticker { to { transform: translateX(-100%); } }
body.has-ticker .dashboard-shell { padding-bottom: 56px; }

/* ===== 表格补充 ===== */
.fleet-table td, .fleet-table th { white-space: nowrap; }
.fleet-table tr.selected td { background: rgba(44,242,194,.08); }
.fleet-table tr { cursor: pointer; }
.mini-bar { display: inline-block; width: 56px; height: 5px; margin-right: 6px; vertical-align: 1px; background: rgba(40,216,255,.12); position: relative; }
.mini-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-2); }
.mini-bar i.low { background: var(--danger); } .mini-bar i.mid { background: var(--warn); }
.signal { font-size: 10px; } .signal.在线 { color: var(--accent-2); } .signal.信号丢失 { color: var(--danger); animation: blink 1s infinite; } .signal.未接入 { color: #567a8e; }
.panel-tools { display: flex; align-items: center; gap: 6px; }
.panel-tools .segmented button { min-width: 38px; height: 24px; font-size: 10px; }
.panel-badge { padding: 2px 7px; border: 1px solid rgba(40,216,255,.25); color: #7fcde2; font-size: 10px; white-space: nowrap; }
.panel-badge.warn { border-color: rgba(255,200,87,.35); color: var(--warn); }
.chart.short { height: 220px; min-height: 220px; }
.forecast-meta { display: flex; gap: 12px; color: #5f8aa1; font-size: 10px; }
.forecast-meta b { color: #a7e6f5; font-weight: 500; }

/* ===== 登录页 ===== */
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { position: relative; z-index: 2; width: min(420px, 100%); padding: 30px 30px 24px; border: 1px solid var(--line-strong); background: linear-gradient(155deg, rgba(6,28,48,.94), rgba(2,16,30,.94)); box-shadow: 0 0 80px rgba(0,155,220,.15); }
.login-card::before, .login-card::after { content: ""; position: absolute; width: 18px; height: 18px; }
.login-card::before { left: -1px; top: -1px; border-left: 2px solid #2acfed; border-top: 2px solid #2acfed; }
.login-card::after { right: -1px; bottom: -1px; border-right: 2px solid #2acfed; border-bottom: 2px solid #2acfed; }
.login-card h1 { margin: 14px 0 2px; color: #effdff; font-size: 24px; letter-spacing: .12em; text-align: center; }
.login-card .sub { text-align: center; color: #5f8aa1; font-size: 10px; letter-spacing: .3em; }
.login-form { display: grid; gap: 14px; margin-top: 24px; }
.login-form button { height: 42px; font-size: 13px; letter-spacing: .2em; }
.login-error { min-height: 18px; color: #ff96a5; font-size: 12px; text-align: center; }
.login-foot { margin-top: 18px; display: flex; justify-content: space-between; color: #3f677c; font-size: 10px; }
.login-mark { display: flex; justify-content: center; }
.login-mark svg { width: 46px; height: 46px; color: var(--accent); filter: drop-shadow(0 0 10px rgba(40,216,255,.6)); }
.login-bg { position: fixed; inset: 0; z-index: 0; opacity: .5; }

/* ===== 船员端（移动优先） ===== */
.crew-body .dashboard-shell { max-width: 720px; padding: 14px 14px 40px; }
.crew-body .topbar-inner { grid-template-columns: 1fr; gap: 8px; padding: 10px 14px; }
.crew-body .title-wrap h1 { font-size: 20px; }
.crew-body .controls { justify-content: center; }
.crew-hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.crew-hero div { padding: 10px; border: 1px solid var(--line); background: rgba(6,28,48,.8); text-align: center; }
.crew-hero span { display: block; color: #6990a5; font-size: 10px; }
.crew-hero strong { color: #effdff; font: 600 24px "Bahnschrift", sans-serif; }
.batch-card { position: relative; margin-bottom: 12px; padding: 14px; border: 1px solid var(--line-strong); background: linear-gradient(155deg, rgba(6,28,48,.95), rgba(2,16,30,.92)); }
.batch-card.operating { border-color: rgba(44,242,194,.55); box-shadow: 0 0 24px rgba(44,242,194,.08); }
.batch-card h3 { margin: 0; display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 17px; }
.batch-card .batch-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-top: 10px; font-size: 12px; }
.batch-card .batch-meta span { color: #6990a5; } .batch-card .batch-meta b { color: #dff7ff; font-weight: 500; }
.batch-card .tickets { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.batch-card .tickets em { padding: 2px 6px; border: 1px solid rgba(40,216,255,.2); color: #8fd3e6; font-size: 10px; font-style: normal; }
.batch-card .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.batch-card .actions button { min-height: 48px; font-size: 14px; }
.batch-card .actions button:only-child { grid-column: 1 / -1; }
.batch-card .countdown { font: 600 30px "Bahnschrift", sans-serif; color: var(--accent-2); text-align: center; margin-top: 8px; }
.crew-weather { margin-bottom: 12px; }
.crew-empty { padding: 40px 10px; text-align: center; color: #5f8aa1; border: 1px dashed var(--line); }

/* ===== 股东端 ===== */
.holder-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; margin-bottom: 14px; }
.holder-twin { position: relative; min-height: 330px; border: 1px solid var(--line); background: rgba(3,18,32,.8); }
.holder-twin canvas { width: 100%; height: 330px; display: block; }
.holder-live { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; }
.holder-live > div { padding: 10px 12px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(9,40,63,.9), rgba(3,19,35,.86)); }
.holder-live span { display: block; color: #6990a5; font-size: 10px; }
.holder-live strong { color: #effdff; font: 600 20px "Bahnschrift", "PingFang SC", sans-serif; }
.holder-live strong em { color: #6990a5; font-size: 10px; font-style: normal; margin-left: 3px; }
.holder-live .wide { grid-column: span 3; }

/* ===== 票务页补充 ===== */
.advisory-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid; font-size: 10px; }
.advisory-chip.适宜 { color: var(--accent-2); } .advisory-chip.谨慎 { color: var(--warn); } .advisory-chip.暂停 { color: var(--danger); background: rgba(255,115,136,.1); }
.force-row { display: none; align-items: center; gap: 6px; color: #ff96a5; font-size: 11px; margin-top: 6px; }
.force-row.show { display: flex; }
.role-note { margin: 0 0 10px; padding: 8px 12px; border-left: 2px solid var(--accent); background: rgba(5,30,50,.6); color: #8fbfd0; font-size: 11px; }

@media (max-width: 1500px) {
  .twin-panel .chart-wrap, .twin-canvas { min-height: 480px; }
  .weather-readout strong { font-size: 17px; }
}
@media (max-width: 1100px) {
  .holder-hero { grid-template-columns: 1fr; }
  .advisory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-meta { display: none; }
}
@media (max-width: 720px) {
  .twin-panel .chart-wrap, .twin-canvas { min-height: 380px; }
  .holder-live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .holder-live .wide { grid-column: span 2; }
  .event-ticker { display: none; }
  .vessel-card { left: 10px; right: 10px; width: auto; top: auto; bottom: 34px; }
}

.table-panel .table-scroll.capped { max-height: 470px; }
.table-scroll thead th { position: sticky; top: 0; z-index: 1; }
.ticketing-view .assignment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ticketing-view .assignment-grid select:disabled { opacity: .55; }
.ticketing-view .ticket-action-grid button:disabled { opacity: .38; cursor: not-allowed; filter: grayscale(.4); }
.ticketing-view .ticket-workflow-panel header { align-items: center; }
.qr-ticket-card .qr-code img, .qr-ticket-card .qr-code canvas { margin: 0 auto; }
@media print { .topbar, .event-ticker, .ticket-integration-banner, .ticket-kpi-grid, .dashboard-note, .dashboard-panel:not(.ticket-sales-panel), .sale-form, .sale-ticket-actions, .sale-result-head button { display: none !important; } body::before, body::after { display: none; } }
.holder-live strong .status-badge { font-size: 13px; padding: 3px 10px; }

.vessel-card .vc-crew { margin-top: 8px; }
.vessel-card .vc-crew select { width: 100%; height: 30px; border: 1px solid var(--line-strong); background: #071e32; color: #aed5e2; font-size: 11px; }
.my-boat { border-color: rgba(40,216,255,.55); }
.my-boat .idle-note { margin-top: 10px; color: #6990a5; font-size: 12px; text-align: center; padding: 14px 0; border: 1px dashed rgba(40,216,255,.2); }

/* ===== 系统配置 ===== */
.admin-tabs { margin: 0 0 12px; }
.admin-tabs button { min-width: 120px; height: 34px; font-size: 12px; }
.admin-form { display: grid; gap: 10px; }
.admin-form label { display: grid; gap: 5px; color: #84abc0; font-size: 11px; }
.admin-form input, .admin-form select { height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); background: rgba(3, 21, 38, .9); color: #e8f7ff; font-size: 13px; }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-hint { margin: 4px 0 8px; color: #6990a5; font-size: 11px; line-height: 1.6; }
.admin-hint b { color: #a7e6f5; font-weight: 500; }
.row-actions { display: flex; gap: 5px; }
.row-actions button { min-height: 26px; padding: 0 8px; font-size: 10px; }
.secret-box { margin-top: 12px; padding: 10px 12px; border: 1px solid rgba(255,200,87,.45); background: rgba(80,60,10,.25); font-size: 12px; }
.secret-box b { display: block; color: #ffd475; margin-bottom: 6px; font-weight: 500; }
.secret-box div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; color: #cfe8f2; }
.secret-box code { color: #fff; font-family: "Bahnschrift", monospace; letter-spacing: .04em; }
.secret-box button { margin-top: 8px; min-height: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.holding-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 8px; border: 1px solid rgba(40,216,255,.3); background: rgba(40,216,255,.07); color: #bfe8f5; font-size: 11px; cursor: pointer; }
.holding-chip i { font-style: normal; color: #ff96a5; padding: 0 4px; }
.holding-chip:hover { border-color: var(--accent); }
.alloc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.alloc { padding: 8px 10px; border: 1px solid var(--line); background: rgba(5,30,50,.5); }
.alloc b { color: #dff7ff; font-size: 12px; font-weight: 500; }
.alloc small { display: block; margin-top: 4px; color: #6990a5; font-size: 10px; line-height: 1.4; }
.alloc-bar { height: 5px; margin-top: 6px; background: rgba(255,255,255,.06); }
.alloc-bar i { display: block; height: 100%; background: var(--warn); }
.alloc.full .alloc-bar i { background: var(--accent-2); } .alloc.none { opacity: .55; }
.import-text { width: 100%; min-height: 240px; padding: 10px; border: 1px solid var(--line-strong); background: rgba(3,21,38,.9); color: #e8f7ff; font: 13px/1.6 "Bahnschrift", "PingFang SC", monospace; }
.import-actions { display: flex; gap: 8px; margin-top: 10px; }
.import-result { margin-top: 12px; }
.import-errors { padding: 10px 12px; border: 1px solid rgba(255,115,136,.5); background: rgba(70,18,30,.35); color: #ff96a5; font-size: 12px; }
.import-errors p { margin: 3px 0; }
.import-ok { padding: 10px 12px; border: 1px solid rgba(44,242,194,.45); color: var(--accent-2); font-size: 12px; }
.admin-view .admin-kpis .kpi-tile { height: 100px; }
/* 股东多船切换 */
.vessel-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.vessel-tabs button { min-height: 34px; padding: 0 14px; border: 1px solid var(--line-strong); background: rgba(25,135,174,.12); color: #9ed9e9; font-size: 12px; cursor: pointer; }
.vessel-tabs button.active { background: linear-gradient(180deg, #4fe3ff, #1aa8d6); color: #021520; border-color: #35dfff; }
.vessel-tabs button small { margin-left: 6px; opacity: .8; }
[data-pane][hidden], .admin-form [hidden], .vessel-tabs[hidden] { display: none !important; }

.row-exited td { opacity: .62; }
.exit-summary { padding: 8px 10px; border: 1px solid rgba(255,200,87,.35); background: rgba(80,60,10,.2); color: #cfe8f2; font-size: 12px; line-height: 1.7; }
.exit-summary b { color: #ffd475; font-weight: 500; }
#exitModal .modal { width: min(480px, 100%); }
.modal-backdrop.open { z-index: 170; }

/* ===== 指挥中心 16:9 单屏：宽屏无滚动，后台经营模块不占展示面 ===== */
@media (min-width: 1201px) {
  body.command-body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
  .command-body .topbar { position: relative; flex: none; }
  .command-body .dashboard-shell {
    display: grid; flex: 1; min-height: 0; width: 100%; max-width: none; margin: 0;
    padding: 10px 14px; gap: 10px;
    grid-template-columns: minmax(250px, .85fr) minmax(0, 2.1fr) minmax(290px, 1.05fr);
    grid-template-rows: auto minmax(0, 1fr) 200px;
  }
  body.command-body.has-ticker .dashboard-shell { padding-bottom: 10px; }
  .command-body .panel-grid { display: contents; }
  .command-body .dashboard-note, .command-body .screen-note { display: none; }
  .command-body .panel-grid > .dashboard-panel { display: none; }
  .command-body .panel-grid > .twin-panel,
  .command-body .panel-grid > .weather-panel,
  .command-body .panel-grid > .fleet-panel,
  .command-body .panel-grid > .device-panel,
  .command-body .panel-grid > .queue-panel,
  .command-body .panel-grid > .alert-panel { display: flex; }
  .command-body #kpiGrid { grid-column: 1 / -1; grid-row: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
  .command-body .weather-panel { grid-column: 1; grid-row: 2; }
  .command-body .twin-panel { grid-column: 2; grid-row: 2; }
  .command-body .fleet-panel { grid-column: 3; grid-row: 2; }
  .command-body .device-panel { grid-column: 1; grid-row: 3; }
  .command-body .queue-panel { grid-column: 2; grid-row: 3; }
  .command-body .alert-panel { grid-column: 3; grid-row: 3; }
  .command-body .kpi-tile { height: 96px; padding-top: 9px; }
  .command-body .dashboard-panel { min-height: 0; padding: 9px 10px 7px; overflow: hidden; }
  .command-body .dashboard-panel header { flex: none; min-height: 38px; }
  .command-body .dashboard-panel h2 { font-size: 13px; }
  .command-body .dashboard-panel footer { flex: none; min-height: 16px; }
  .command-body .twin-panel .chart-wrap { min-height: 0; overflow: hidden; }
  .command-body .twin-panel .twin-canvas { height: 100%; min-height: 0; }
  .command-body .twin-help { display: none; }
  .command-body .weather-readout { flex: none; }
  .command-body .chart.weather-chart { flex: 0 1 112px; height: 112px; min-height: 80px; }
  .command-body .weather-panel .advisory-grid { flex: 1; min-height: 0; overflow: hidden; align-content: start; }
  .command-body .fleet-panel .table-scroll.capped { flex: 1; min-height: 0; max-height: none; overflow: hidden; }
  .command-body .fleet-panel th, .command-body .fleet-panel td { padding: 6px 7px; font-size: 10px; }
  .command-body .fleet-panel .fleet-table th:nth-child(3), .command-body .fleet-panel .fleet-table td:nth-child(3),
  .command-body .fleet-panel .fleet-table th:nth-child(5), .command-body .fleet-panel .fleet-table td:nth-child(5),
  .command-body .fleet-panel .fleet-table th:nth-child(7), .command-body .fleet-panel .fleet-table td:nth-child(7),
  .command-body .fleet-panel .fleet-table th:nth-child(8), .command-body .fleet-panel .fleet-table td:nth-child(8),
  .command-body .fleet-panel .fleet-table th:nth-child(9), .command-body .fleet-panel .fleet-table td:nth-child(9) { display: none; }
  .command-body .fleet-panel .mini-bar, .command-body #fleetFilter { display: none; }
  .command-body .fleet-panel footer span:last-child { display: none; }
  .command-body .device-panel .chart.short { flex: 1; height: 100%; min-height: 0; }
  .command-body .queue-list { min-height: 0; overflow: hidden; gap: 3px; }
  .command-body .queue-row { grid-template-columns: 70px 1fr 55px; gap: 6px; }
  .command-body .queue-row .qbar { height: 13px; }
  .command-body .alert-feed { min-height: 0; max-height: none; overflow: hidden; gap: 4px; }
  .command-body .alert-item { grid-template-columns: 38px 1fr auto; gap: 5px; padding: 4px 5px; }
  .command-body .alert-body { min-width: 0; }
  .command-body .alert-body b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
  .command-body .alert-body small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 8px; }
  .command-body .alert-actions button { min-height: 20px; padding: 0 5px; font-size: 9px; }
  .command-body .event-ticker { position: relative; inset: auto; flex: none; width: 100%; }
}

@media (min-width: 1201px) and (max-height: 850px) {
  .command-body .topbar-inner { padding-top: 8px; padding-bottom: 8px; }
  .command-body .brand-mark { width: 34px; height: 34px; }
  .command-body .brand-mark svg { width: 24px; }
  .command-body .dashboard-shell { padding: 8px 10px; gap: 7px; grid-template-rows: auto minmax(0, 1fr) 162px; }
  .command-body .kpi-tile { height: 78px; padding: 7px 10px 5px; }
  .command-body .kpi-number strong { font-size: 24px; }
  .command-body .kpi-tile .kpi-sub { margin-top: 3px; }
  .command-body .dashboard-panel { padding: 7px 8px 5px; }
  .command-body .dashboard-panel header { min-height: 32px; }
  .command-body .dashboard-panel header p { display: none; }
  .command-body .dashboard-panel footer { min-height: 13px; font-size: 8px; }
  .command-body .weather-readout div { padding: 4px 5px; }
  .command-body .weather-readout strong { font-size: 15px; }
  .command-body .chart.weather-chart { flex-basis: 80px; min-height: 60px; }
  .command-body .advisory-item { padding: 4px 6px 4px 8px; }
  .command-body .advisory-item p { display: none; }
  .command-body .advisory-item .meter { margin-top: 3px; }
  .command-body .fleet-panel th, .command-body .fleet-panel td { padding: 3px 5px; font-size: 9px; }
  .command-body .fleet-panel .status-badge { padding: 1px 4px; font-size: 8px; }
  .command-body .twin-hud span, .command-body .twin-legend { font-size: 8px; }
  .command-body .twin-legend { gap: 8px; }
  .command-body .queue-list { gap: 2px; }
  .command-body .queue-row { font-size: 9px; }
  .command-body .queue-row .qbar { height: 12px; }
  .command-body .alert-item { padding: 3px 5px; }
  .command-body .alert-body small { display: none; }
}
