.fleet-chat-layout { display:grid; grid-template-columns:280px minmax(0,1fr); min-height:620px; background:#152033; border:1px solid #2b3d58; border-radius:12px; overflow:hidden; color:#e8eef7; }
.fleet-chat-pane { border-right:1px solid #2b3d58; padding:12px; overflow:auto; background:#121c2c; }
.fleet-chat-pane h2, .fleet-chat-thread h2 { margin:4px 0 12px; font-size:15px; }
.fleet-chat-tabs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
.fleet-chat-tabs button { border:1px solid #334860; background:#1b2a40; color:#d7e3f3; border-radius:7px; padding:7px 10px; cursor:pointer; font-weight:700; }
.fleet-chat-tabs button.active { background:#2f6fad; border-color:#2f6fad; color:#fff; }
.fleet-chat-item { display:block; width:100%; text-align:left; padding:10px; border:0; border-radius:8px; background:transparent; color:#e8eef7; cursor:pointer; margin-bottom:4px; }
.fleet-chat-item:hover, .fleet-chat-item.active { background:#24364f; }
.fleet-chat-item strong, .fleet-chat-item small { display:block; }
.fleet-chat-item small { color:#93a4bb; margin-top:3px; font-size:11px; }
.fleet-chat-thread { display:flex; flex-direction:column; min-width:0; padding:14px; background:#162235; }
.fleet-chat-header { border-bottom:1px solid #2b3d58; padding-bottom:10px; }
.fleet-chat-messages { flex:1; overflow:auto; padding:14px 0; min-height:240px; }
.fleet-chat-bubble { max-width:76%; padding:9px 11px; border-radius:10px; margin:7px 0; white-space:pre-wrap; }
.fleet-chat-bubble.mine { margin-left:auto; background:#2f6fad; color:#fff; }
.fleet-chat-bubble.theirs { background:#24344c; color:#e8eef7; }
.fleet-chat-meta { display:block; font-size:10px; opacity:.72; margin-top:5px; }
.fleet-chat-files { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.fleet-chat-file { display:flex; flex-direction:column; gap:4px; color:#d6e7ff; font-size:12px; max-width:160px; }
.fleet-chat-file img { max-width:160px; max-height:110px; object-fit:cover; border-radius:6px; border:1px solid #3a506c; }
.fleet-chat-composer { display:grid; grid-template-columns:1fr auto; gap:8px; border-top:1px solid #2b3d58; padding-top:12px; }
.fleet-chat-composer[hidden] { display:none !important; }
.fleet-chat-composer textarea { min-height:52px; resize:vertical; padding:10px; border:1px solid #3a506c; border-radius:8px; font:inherit; background:#101a29; color:#e8eef7; }
.fleet-chat-actions { display:flex; flex-direction:column; gap:8px; }
.fleet-chat-actions button, .fleet-chat-upload, .fleet-dictate { border:0; border-radius:8px; background:#2f6fad; color:#fff; padding:10px 12px; font-weight:700; cursor:pointer; }
.fleet-dictate { background:#334860; }
.fleet-dictate.is-listening { background:#8a2a22; }
.fleet-dictate[hidden] { display:none !important; }
.fleet-chat-upload { background:#334860; display:inline-block; text-align:center; }
.fleet-chat-upload input { display:none; }
.fleet-chat-empty { color:#93a4bb; text-align:center; margin:auto; padding:24px; }
.fleet-chat-shell { max-width:1180px; margin:0 auto; padding:20px; }
.fleet-chat-headerbar { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin-bottom:16px; color:#e8eef7; }
.fleet-chat-headerbar h1 { margin:10px 0 4px; font-size:22px; }
.brand-lockup { display:flex; flex-direction:column; align-items:flex-start; }
.brand-lockup .brand-title { margin:0; color:#fff; font-size:clamp(2rem, 3vw, 2.6rem); font-weight:800; letter-spacing:0.01em; line-height:1; text-shadow:0 2px 18px rgba(255,255,255,0.45); }
.brand-lockup .brand-company { margin:6px 0 0; color:rgba(255,255,255,0.78); font-size:0.68rem; font-weight:700; letter-spacing:0.24em; line-height:1; text-transform:uppercase; }
.fleet-chat-header-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.fleet-chat-back { border:0; border-radius:8px; background:#2f6fad; color:#fff; padding:10px 14px; font-weight:700; cursor:pointer; }
.fleet-chat-note { color:#93a4bb; margin:0; }
body.fleet-chat-page { background:#0e1624; margin:0; font-family:Arial, sans-serif; }
.fleet-id-badge { display:inline-block; background:#24364f; border:1px solid #3a506c; color:#d6e7ff; border-radius:999px; padding:4px 10px; font-weight:700; font-size:12px; }
.fleet-money-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:12px 0 18px; }
.fleet-money-card { background:#152033; border:1px solid #2b3d58; border-radius:10px; padding:12px; }
.fleet-money-card span { display:block; color:#93a4bb; font-size:12px; }
.fleet-money-card strong { display:block; margin-top:6px; font-size:20px; }
.fleet-profile-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.fleet-profile-grid label { display:flex; flex-direction:column; gap:5px; color:#93a4bb; font-size:12px; }
.fleet-profile-grid input, .fleet-profile-grid select { padding:9px; border-radius:8px; border:1px solid #3a506c; background:#101a29; color:#e8eef7; font:inherit; }
.fleet-table { width:100%; border-collapse:collapse; font-size:13px; }
.fleet-table th, .fleet-table td { border-bottom:1px solid #2b3d58; padding:8px; text-align:left; }
.fleet-table th { color:#93a4bb; font-weight:700; }
.fleet-id-lookup { display:flex; gap:8px; margin-bottom:10px; }
.fleet-id-lookup[hidden] { display:none !important; }
.fleet-id-lookup input { flex:1; padding:8px; border-radius:8px; border:1px solid #3a506c; background:#101a29; color:#e8eef7; }
.fleet-id-lookup button { border:0; border-radius:8px; background:#2f6fad; color:#fff; padding:8px 10px; font-weight:700; cursor:pointer; }

#fleetMessengerDock { position:fixed; top:0; right:0; z-index:10045; height:100vh; width:46px; display:flex; background:#121c2c; color:#e8eef7; border-left:1px solid #2b3d58; font-family:Arial,sans-serif; }
#fleetMessengerDock.is-open { width:min(380px, 100vw); }
.fleet-dock-tab { width:46px; flex:0 0 46px; border:0; background:#173d4a; color:#fff; font:800 13px Arial; letter-spacing:.12em; writing-mode:vertical-rl; transform:rotate(180deg); cursor:pointer; }
.fleet-dock-panel { display:none; flex:1; min-width:0; height:100%; flex-direction:column; padding:12px; }
#fleetMessengerDock.is-open .fleet-dock-panel { display:flex; }
.fleet-dock-head { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:10px; }
.fleet-dock-head strong { font-size:18px; }
.fleet-dock-head span { color:#93a4bb; font-size:12px; font-weight:700; }
.fleet-dock-body { display:grid; grid-template-rows:minmax(120px, 34%) minmax(0, 1fr); gap:8px; min-height:0; flex:1; }
.fleet-dock-list { overflow:auto; border:1px solid #2b3d58; border-radius:8px; padding:6px; background:#101a29; }
.fleet-dock-thread { display:flex; flex-direction:column; min-height:0; }
.fleet-dock-thread h2 { margin:0 0 4px; font-size:15px; }
#fleetDockMessages { flex:1; min-height:0; overflow:auto; }
#fleetMessengerDock .fleet-chat-messages { min-height:0; padding:8px 0; }
#fleetMessengerDock .fleet-chat-tabs button { padding:6px 8px; font-size:12px; }
#fleetMessengerDock .fleet-chat-composer { grid-template-columns:1fr; }
#fleetMessengerDock .fleet-chat-composer textarea { min-height:44px; }
.fleet-live-tools { display:flex; flex-wrap:wrap; gap:6px; margin:0 0 10px; }
.fleet-live-tools button { flex:1 1 calc(50% - 6px); border:0; border-radius:8px; color:#fff; padding:9px 8px; font-weight:700; cursor:pointer; font-size:12px; }
#fleetVoice { background:#1f6b45; }
#fleetFaceTime { background:#2f6fad; }
#fleetScreen { background:#5b3f8c; }
#fleetCamScan { background:#8a5a10; }
.fleet-capture-row { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.fleet-capture-row[hidden] { display:none !important; }
.fleet-capture-row button { border:0; border-radius:8px; background:#173d4a; color:#fff; padding:10px 12px; font-weight:700; cursor:pointer; }
.fleet-capture-row button[hidden] { display:none !important; }
#fleetDockCall { background:#1f6b45; }
#fleetDockVideo { background:#2f6fad; }
.fleet-call { position:fixed; inset:0; z-index:10050; background:#071018; color:#fff; display:flex; align-items:flex-end; justify-content:center; }
.fleet-call[hidden] { display:none !important; }
.fleet-call-remote { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:#000; }
.fleet-call.is-audio .fleet-call-remote, .fleet-call.is-audio .fleet-call-local { display:none; }
.fleet-call-local { position:absolute; top:16px; right:16px; width:120px; height:168px; object-fit:cover; border-radius:12px; background:#111; border:2px solid rgba(255,255,255,.35); }
.fleet-call-card { position:relative; z-index:1; width:min(440px, calc(100% - 32px)); margin:0 16px 24px; padding:18px; border-radius:16px; background:rgba(8,16,28,.86); text-align:center; }
.fleet-call-card p { margin:0 0 8px; font-weight:700; }
#fleetCallStatus { font-weight:500; color:#d5deea; }
.fleet-call-actions { display:flex; gap:8px; margin-top:12px; }
.fleet-call-actions button { flex:1; border:0; border-radius:8px; padding:12px; font-weight:700; color:#fff; cursor:pointer; }
#fleetCallAnswer { background:#1f8a4c; }
#fleetCallMute { background:#24364f; }
#fleetCallDecline, #fleetCallHangup { background:#a32626; }
.fleet-notice { position:fixed; inset:0; z-index:10080; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(5,10,18,.72); }
.fleet-notice-card { width:min(440px, 100%); background:#fff8e8; color:#1c1408; border:2px solid #c4841d; border-radius:16px; padding:22px 20px; box-shadow:0 18px 50px rgba(0,0,0,.35); }
.fleet-notice-card h2 { margin:0 0 10px; font-size:22px; }
.fleet-notice-card p { margin:0 0 16px; font-size:16px; line-height:1.45; }
.fleet-notice-error { color:#8a1f1f; font-size:14px; }
#fleetNoticeAccept { width:100%; border:0; border-radius:8px; background:#8a5a10; color:#fff; padding:12px; font-weight:700; cursor:pointer; }
body.fleet-camera-open { overflow:hidden; }
.fleet-camera { position:fixed; inset:0; z-index:10000; background:#000; color:#fff; }
.fleet-camera[hidden] { display:none !important; }
.fleet-camera-video { width:100%; height:100%; object-fit:cover; background:#000; }
.fleet-camera-frame { position:absolute; left:6%; right:6%; top:8%; bottom:24%; border:3px solid rgba(255,255,255,.9); border-radius:10px; box-shadow:0 0 0 9999px rgba(0,0,0,.45); pointer-events:none; }
.fleet-camera.is-document .fleet-camera-frame { left:10%; right:10%; top:12%; }
.fleet-camera.is-ready .fleet-camera-frame { border-color:#7ddea0; }
.fleet-camera-hud, .fleet-camera-review { position:absolute; left:0; right:0; bottom:0; padding:16px 16px 22px; background:linear-gradient(transparent, rgba(0,0,0,.82)); }
.fleet-camera-review { top:0; display:flex; flex-direction:column; justify-content:flex-end; background:#000; }
.fleet-camera-review[hidden] { display:none !important; }
.fleet-camera-review img { width:min(100%, 520px); max-height:62vh; object-fit:contain; margin:0 auto 12px; background:#111; }
.fleet-camera-step, .fleet-camera-status { margin:0 0 8px; font-weight:700; }
.fleet-camera-status { font-weight:500; color:#d5deea; }
.fleet-camera-actions { display:flex; gap:8px; }
.fleet-camera-actions button { flex:1; border:0; border-radius:8px; padding:12px; font-weight:700; cursor:pointer; }
.fleet-camera-shutter, .fleet-camera-keep { background:#2f6fad; color:#fff; }
.fleet-camera-shutter:disabled { background:#3a4a60; color:#9aabbe; }
.fleet-camera-close, .fleet-camera-retake { background:#24364f; color:#fff; }
.fleet-chat-video, .fleet-video-preview { width:min(100%, 240px); max-height:180px; border-radius:8px; background:#000; }
.fleet-open-page { display:none; color:#d6e7ff; font-size:12px; font-weight:700; text-decoration:none; }
@media (min-width: 960px) {
  .fleet-open-page { display:inline-block; }
}
body.fleet-messenger-page { margin:0 !important; background:#0e1624; }
body.fleet-messenger-page #fleetMessengerDock,
body.fleet-messenger-page #fleetMessengerDock.is-open { position:fixed; inset:0; width:100%; height:100vh; }
body.fleet-messenger-page .fleet-dock-tab,
body.fleet-messenger-page .fleet-open-page { display:none !important; }
body.fleet-messenger-page .fleet-dock-panel { display:flex !important; }
body.fleet-messenger-rail { margin-right:46px; }
body.fleet-messenger-open { margin-right:min(380px, 100vw); }
@media (max-width: 800px) {
    body.fleet-messenger-rail, body.fleet-messenger-open { margin-right:0; }
    #fleetMessengerDock { width:42px; }
    #fleetMessengerDock.is-open { width:min(100vw, 420px); box-shadow:-12px 0 30px rgba(0,0,0,.35); }
}
@media (max-width:800px) {
    .fleet-chat-layout { grid-template-columns:1fr; }
    .fleet-chat-pane { border-right:0; border-bottom:1px solid #2b3d58; max-height:220px; }
    .fleet-money-grid, .fleet-profile-grid { grid-template-columns:1fr; }
}
