[hidden] { display:none !important; }
.ops-card { border:1px solid #475569; background:#172338; color:#e2e8f0; border-radius:14px; padding:16px; margin:12px 0; min-width:0; overflow-wrap:anywhere; }
.ops-card h2,.ops-card h3 { font-weight:800; margin:0 0 10px; }
.ops-card p { margin:6px 0; }
.ops-card small { display:block; opacity:.8; }
.ops-card .ops-body { white-space:pre-wrap; user-select:text; }
.ops-button { border:1px solid #64748b; background:#1e40af; color:white; border-radius:9px; padding:10px 14px; min-height:44px; font-weight:600; }
.ops-button:disabled { opacity:.5; }
.ops-urgent { border:3px solid #ef4444; background:#7f1d1d; color:white; }
.ops-urgent h2 { font-size:1.25rem; }
.ops-warning { border:2px solid #f59e0b; }
.ops-filters { display:flex; gap:12px; align-items:end; flex-wrap:wrap; margin:16px 0; }
.ops-filters label { flex:1 1 170px; min-width:0; }
.ops-filters input,.ops-input { display:block; width:100%; min-width:0; max-width:100%; box-sizing:border-box; border:1px solid #64748b; background:#0f172a; color:#e2e8f0; border-radius:9px; padding:12px; font-size:16px; }
.ops-status { font-size:13px; padding:8px 0; }
.ops-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr)); gap:12px; }
.ops-grid .ops-card { margin:0; }
.ops-dialog { max-width:min(560px,calc(100% - 32px)); width:100%; max-height:85dvh; overflow:auto; border-radius:16px; padding:20px; background:#0f172a; color:#e2e8f0; border:1px solid #64748b; }
.ops-dialog::backdrop { background:rgba(0,0,0,.75); }
#mobileMenuButton { flex:none; width:42px; height:42px; border:1px solid #64748b; border-radius:10px; }
#mobileMenuBackdrop { position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:59; }
#mobileBottomNav { position:fixed; top:0; bottom:0; left:0; right:auto; width:min(310px,88vw); z-index:60; overflow-y:auto; padding:calc(16px + env(safe-area-inset-top)) 12px calc(20px + env(safe-area-inset-bottom)); background:#0f172a; color:#e2e8f0; border-right:1px solid #475569; }
#mobileBottomNav:not(.drawer-open) { display:none !important; }
#mobileBottomNav > div { display:flex; flex-direction:column; gap:5px; }
#mobileBottomNav .mobile-nav-btn { display:flex; flex-direction:row; align-items:center; gap:15px; text-align:left; padding:13px; border-radius:10px; min-height:46px; }
#mobileBottomNav .mobile-nav-btn > span:first-of-type { font-size:14px; font-weight:600; }
#mobileBottomNav .mobile-nav-btn > i { width:22px; }
#mobileBottomNav .mobile-nav-btn [id^="badge"] { position:static; margin-left:auto; }
#mobileBottomNav .mobile-nav-btn [aria-current="page"] { font-weight:700; }
#mobileBottomNav .drawer-heading { display:flex; flex-direction:row; justify-content:space-between; align-items:center; padding:0 10px 15px; }
.safe-bottom { padding-bottom:calc(24px + env(safe-area-inset-bottom)) !important; }
html[data-theme="light"] .ops-card,html[data-theme="light"] .ops-dialog { background:#fff; color:#172338; border-color:#cbd5e1; }
html[data-theme="light"] .ops-input,html[data-theme="light"] .ops-filters input { background:#f8fafc; color:#172338; }
html[data-theme="light"] .ops-urgent { background:#fff1f2; color:#881337; border-color:#dc2626; }
html[data-theme="light"] .ops-warning { border-color:#d97706; }
html[data-theme="light"] #mobileBottomNav { background:#fff; color:#172338; }
@media(prefers-reduced-motion:reduce) { .ops-dialog { scroll-behavior:auto; } }

.ops-handover{border:1px solid var(--border-color,#64748b);border-radius:12px;padding:12px;margin:12px 0;min-width:0;overflow-wrap:anywhere}.ops-note-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:10px 0}.ops-handover small{display:block}.ops-handover-completed{border-style:dashed}.ops-handover summary{cursor:pointer;padding:8px 0}

[data-history-root] .ops-filters {flex-wrap:wrap} [data-history-root] .ops-filters label {min-width:0;flex:1 1 160px} [data-history-root] select {max-width:100%} #opsDeadlineNotices {overflow-wrap:anywhere}

.ops-media-picker {margin:12px 0; min-width:0}
.ops-media-picker fieldset {border:1px solid #64748b;border-radius:10px;padding:12px;min-width:0}
.ops-media-help {font-size:13px;line-height:1.5;opacity:.85}
.ops-media-file {display:flex;align-items:center;gap:10px;margin:10px 0;min-width:0;overflow-wrap:anywhere}
.ops-media-file img {width:64px;height:64px;object-fit:cover;border-radius:8px;flex:none}
.ops-media-file>span {flex:1;min-width:0}.ops-media-file small {display:block}
.ops-media-file button {padding:8px;font-size:13px}
.ops-media-attachments {display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:14px 0}
.ops-media-attachments button {text-align:left;overflow-wrap:anywhere}
.ops-media-viewer img,.ops-media-viewer video {display:block;width:100%;height:auto;max-height:60dvh;object-fit:contain;margin:12px 0}
.ops-media-viewer a {display:inline-block;margin-top:12px}
#patrolDeskList {scroll-margin-top:90px}

.ops-draft{border:1px solid #64748b;border-radius:10px;padding:10px;margin:12px 0;overflow-wrap:anywhere}.ops-draft p{margin:0 0 8px}.ops-draft button{margin:4px 4px 0 0}

#operationalDrafts {min-width:0;overflow-wrap:anywhere} #operationalDrafts .ops-filters {flex-wrap:wrap} #operationalDrafts label {min-width:0;flex:1 1 180px} .draft-values dt{font-weight:700;margin-top:14px}.draft-values dd{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0 12px}.draft-viewer img,.draft-viewer video{display:block;max-width:100%;max-height:45dvh;object-fit:contain;margin:12px 0}.draft-viewer a{display:inline-block}

#operationalDrafts h2,.draft-viewer h2{font-size:1.25rem;font-weight:800;margin:0 0 16px}.draft-viewer>p{margin:8px 0}.draft-values{user-select:text}
