:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#eaf0fa;background:#091120;font-synthesis:none}*{box-sizing:border-box}html{min-height:100%;color-scheme:dark}body{margin:0;min-height:100vh;background:#091120}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}select,input{outline-offset:2px}a{color:#5be5bd}.shell{min-height:100vh}.topbar{height:76px;background:#0f1b2d;border-bottom:1px solid #25364e;display:flex;align-items:center;justify-content:space-between;padding:0 max(25px,calc((100vw - 1500px)/2 + 28px));gap:12px}.brand{display:flex;align-items:center;gap:11px;font-size:21px;font-weight:510;letter-spacing:-.5px;color:#f4f7fc;white-space:nowrap}.brand strong{font-weight:790}.logo{width:39px;height:39px;background:linear-gradient(135deg,#284b58,#1d6b6d);border:1px solid #2e8983;color:#6af1bd;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;font-size:31px;line-height:1}.top-right{display:flex;align-items:center;gap:19px}.tag{font-size:10px;letter-spacing:1px;font-weight:780;padding:7px 9px;border-radius:5px;white-space:nowrap}.tag-demo{background:#3c3022;color:#f7c479;border:1px solid #8f672e}.account{font-size:13px;color:#a5b5cd}button.logout{border:1px solid #36445a;background:transparent;color:#a8bbd1;border-radius:8px;padding:7px 12px;font-size:22px;line-height:20px}.layout{display:grid;grid-template-columns:300px minmax(0,1fr);max-width:1500px;margin:0 auto;min-height:calc(100vh - 76px)}.sidebar{background:#101d30;border-right:1px solid #27384d;padding:31px 24px 40px;min-width:0}.sidebar-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.micro{color:#57b99f;font-size:10px;letter-spacing:1.6px;font-weight:800}.sidebar h2{margin:5px 0 0;font-size:24px;letter-spacing:-.5px}.tiny-btn{background:transparent;color:#7ca6bf;border:0;font-size:12px;padding:7px 0}.control-label{display:block;color:#becde2;font-size:12px;font-weight:640;margin:18px 0 9px}.control{width:100%;min-width:0;display:block;background:#15253a;color:#e9f2fc;border:1px solid #34485f;border-radius:9px;min-height:43px;padding:10px 12px;font-size:13px}.control:focus{outline:2px solid #43bda0}.priority-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.priority{background:#14263a;border:1px solid #34475b;color:#a1b3c9;border-radius:9px;min-height:43px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;font-weight:750}.priority.selected{background:#203448;color:#fff;border-color:#5d8591}.circle{height:7px;width:7px;border-radius:50%;display:inline-block}.circle-1{background:#ff727a}.circle-2{background:#ffc174}.circle-3{background:#6bdbb6}.check-list{border-top:1px solid #2b3a50;margin-top:27px;padding-top:12px;display:grid;gap:19px}.check{font-size:13px;color:#c0cee0;display:flex;align-items:center;gap:11px}.check input{width:17px;height:17px;accent-color:#41c69e}.sidebar-foot{border-top:1px solid #293d51;margin-top:35px;padding-top:20px;color:#7f91a6;font-size:11px;line-height:1.6}.content{max-width:1130px;padding:36px 42px 60px;width:100%;min-width:0}.section-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-end}.eyebrow{display:flex;gap:10px;align-items:center;color:#59d2b2;font-size:10px;letter-spacing:1.2px;font-weight:800}.pulse-dot{width:7px;height:7px;border-radius:50%;background:#54e9b6;box-shadow:0 0 0 4px #193f40}.slash{color:#64748b}h1{font-size:32px;letter-spacing:-1.2px;margin:12px 0 8px;line-height:1.2}.subtitle,.muted{color:#98a9bd}.subtitle{margin:0;font-size:13px;line-height:1.6}.filter-toggle{display:none}.notice{font-size:12px;padding:13px 16px;border-radius:10px;background:#292313;border:1px solid #5c4622;color:#dfc697;margin-top:25px}.notice strong{color:#ffd489}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:22px 0 29px}.stat{padding:20px;border:1px solid #263851;border-radius:13px;background:linear-gradient(144deg,#18273d,#111e30);display:flex;flex-direction:column;gap:7px}.stat span{color:#9aafc4;font-size:10px;font-weight:800;letter-spacing:.9px}.stat strong{font-size:39px;letter-spacing:-1px;line-height:1.1}.stat small{font-size:11px;color:#90a2b7}.stat:nth-child(2) strong{color:#ff8088}.stat:nth-child(3) strong{color:#5bdcb9}.listbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;gap:15px}.listbar h2{margin:0;font-size:19px;letter-spacing:-.3px}.listbar h2 span{font-size:13px;color:#748ba4}.listbar p{margin:7px 0 0;font-size:11px}.refresh{background:#17293e;border:1px solid #3a5265;color:#dbe9f8;border-radius:8px;font-weight:600;font-size:12px;padding:10px 14px;white-space:nowrap}.refresh span{font-size:16px;margin-right:6px}.events{display:grid;gap:12px}.event-card{border:1px solid #2b3c52;background:#111e30;border-radius:12px;overflow:hidden}.event-head{display:flex;align-items:center;justify-content:space-between;background:#192940;padding:12px 17px;gap:10px;border-bottom:1px solid #2a3950}.event-head-left{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.pill{font-size:10px;font-weight:800;letter-spacing:.3px;border-radius:5px;padding:6px 9px;white-space:nowrap}.sk-1{background:#5d2935;color:#ffb6b9}.sk-2{background:#55402a;color:#ffd29f}.sk-3{background:#17483e;color:#a0f5cd}.new{background:#2a4b58;color:#a5e4fb}.changed{background:#434068;color:#c9c6ff}.soft{background:#1c3047;color:#b7cbdb;font-weight:650}.warning{color:#f4d39d;background:#503b26}.event-time,.eta{color:#91a9bf;font-size:11px}.eta{color:#d4e5f5;font-weight:700;white-space:nowrap}.event-content{padding:17px}.hospital-line{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.hospital{font-size:12px;color:#73d6ba;font-weight:760}.scope{font-size:10px;color:#829aaf;text-align:right;max-width:50%}.event-title{font-size:18px;line-height:1.4;margin:11px 0 6px;letter-spacing:-.3px}.department{font-size:12px;color:#9eafc2}.event-extra{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px}.empty{text-align:center;border:1px dashed #415169;padding:45px 15px;border-radius:14px;background:#132137}.empty-symbol{font-size:36px;color:#65d6bc}.empty h3{margin:12px 0 7px}.empty p{font-size:13px}.bottom-help{font-size:11px;color:#798b9f;text-align:center;margin-top:32px;line-height:1.5}.error-inline{background:#4e252d;border:1px solid #89404d;border-radius:9px;padding:14px 17px;margin-bottom:15px;color:#ffb5c0;font-size:13px}.login-page{display:grid;place-items:center;padding:25px;background:radial-gradient(ellipse at 40% 10%,#1b3444 0%,#091120 55%)}.login-panel{border:1px solid #2a4558;background:#101e30;border-radius:20px;padding:36px;width:min(440px,100%);box-shadow:0 20px 80px #0004}.login-panel .brand{margin-bottom:30px}.login-panel h1{font-size:28px;margin:13px 0 8px}.login-panel .muted{font-size:13px;line-height:1.6;margin:0 0 25px}.login-panel label{display:block;font-size:12px;font-weight:640;color:#c0d1e0;margin:15px 0}.login-panel label input{display:block;width:100%;margin-top:8px;background:#15293e;border:1px solid #3c5368;border-radius:9px;color:#f4f9ff;padding:12px;min-height:46px}.primary{background:#4bdbb0;color:#0b2227;border:0;border-radius:9px;width:100%;padding:14px;font-size:14px;font-weight:800;margin-top:10px}.footnote{color:#839bb2;font-size:11px;text-align:center;line-height:1.6;margin-top:22px}.error{background:#4e252d;border-radius:8px;color:#ffb9c3;padding:12px;font-size:12px}@media(max-width:900px){.layout{grid-template-columns:260px minmax(0,1fr)}.sidebar{padding:25px 16px}.content{padding:28px 23px 45px}h1{font-size:27px}.stats{gap:9px}.stat{padding:15px}.stat strong{font-size:32px}}@media(max-width:680px){.topbar{height:68px;padding:0 16px}.brand{font-size:18px}.logo{height:34px;width:34px;font-size:25px}.top-right{gap:11px}.account{display:none}.tag{font-size:9px;padding:6px}.layout{display:block}.sidebar{display:none;border:1px solid #334961;margin:10px 12px 0;border-radius:13px;padding:18px}.sidebar.open{display:block}.content{padding:22px 14px 35px}.section-top{gap:10px}.section-top h1{font-size:25px;margin-top:9px}.eyebrow{font-size:9px;max-width:calc(100vw - 30px);flex-wrap:wrap}.subtitle{font-size:12px}.filter-toggle{display:block;white-space:nowrap;align-self:flex-start;border:1px solid #34536a;background:#152c42;color:#b8dfed;border-radius:8px;padding:9px 11px;font-size:11px;font-weight:720}.notice{margin-top:18px;font-size:11px}.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:17px 0 24px}.stat{padding:13px 10px;min-height:107px}.stat span{font-size:8px;letter-spacing:.3px;line-height:1.4;min-height:23px}.stat strong{font-size:29px}.stat small{font-size:9px}.event-head{padding:11px 12px}.event-content{padding:13px}.event-title{font-size:16px}.scope{font-size:9px}.hospital{font-size:11px}.listbar h2{font-size:17px}.eta,.event-time{font-size:10px}.pill{font-size:9px;padding:5px 7px}.event-head-left{gap:6px}}@media(max-width:365px){.stats{grid-template-columns:repeat(3,minmax(0,1fr))}.stat strong{font-size:25px}.brand{font-size:16px}.tag{font-size:8px}.top-right{gap:5px}}

/* IVENA 0.4: remarks are text only and never executable HTML. */
.transport-note{margin-top:13px;padding:12px 14px;border:1px solid #334d60;border-radius:9px;background:#17283c}
.transport-note-label{display:block;font-size:10px;color:#80cdb9;font-weight:800;letter-spacing:.7px;margin-bottom:7px}
.transport-note-text{font-size:12px;color:#d7e4f0;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:680px){.transport-note{padding:11px}.transport-note-text{font-size:12px}}

/* Explicit two-stage selector on the smartphone, even with collapsed sidebar. */
.quick-chooser{display:none}
@media(max-width:680px){
.quick-chooser{display:grid;gap:11px;margin-top:17px;padding:14px;background:#111f32;border:1px solid #34516a;border-radius:12px}
.quick-chooser label{display:grid;gap:6px;font-size:11px;font-weight:700;color:#bbd3e9}
.quick-chooser .control{font-size:13px}
.quick-chooser p{margin:2px 0 0;color:#91a6ba;font-size:10px;line-height:1.5}
}

/* Version 0.5 – all 15 original IVENA fields, accessible on mobile and desktop. */
.list-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.detail-global{font-weight:600;color:#9ee6cf}
.event-details{margin-top:16px;border:1px solid #375268;border-radius:10px;background:#101d30;overflow:hidden}
.event-details-toggle{list-style:revert;cursor:pointer;padding:12px 15px;color:#d6ecf5;font-size:12px;font-weight:760;background:#182c42;line-height:1.5}
.event-details-toggle:focus-visible{outline:2px solid #68ecc1;outline-offset:-2px}
.event-fields{margin:0;padding:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.event-field{margin:0;min-width:0;padding:11px 12px;border:1px solid #2a4055;background:#142339;border-radius:8px}
.event-field-label{font-size:10px;font-weight:750;letter-spacing:.15px;color:#81b9b3;line-height:1.45;margin:0 0 6px}
.event-field-value{font-size:12px;font-weight:530;color:#e1edf7;line-height:1.6;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal}
.event-field-value.field-empty{color:#698096}
.event-details>.muted{padding:10px 16px;font-size:12px}
@media(max-width:1100px){.event-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.event-fields{grid-template-columns:1fr;gap:5px;padding:7px}.event-field{padding:9px 11px}.event-details{margin-top:12px}.event-details-toggle{padding:12px}.list-actions{justify-content:flex-start}.listbar{align-items:flex-start;flex-wrap:wrap}.detail-global{font-size:11px}.event-field-value{font-size:12px}}

/* Version 0.6 – Mobile-first compact cards; all original details remain on demand. */
.event-card{border-radius:11px}
.event-head{padding:8px 13px;min-height:38px}
.event-content{padding:12px 14px 10px}
.event-title{font-size:15px;line-height:1.38;margin:7px 0 4px;font-weight:690;letter-spacing:-.12px}
.hospital-line{align-items:baseline}
.hospital{font-size:12px}
.scope{font-size:10px;line-height:1.3}
.department{font-size:11px}
.event-extra{gap:5px;margin-top:9px}
.event-extra .pill{font-size:10px;padding:4px 7px}
.event-extra .note-indicator{color:#8dc7bd;border:1px solid #32544c;background:transparent;font-weight:600}
.event-details{margin-top:10px;background:transparent;border:0;border-top:1px solid #2a3c50;border-radius:0;overflow:visible}
.event-details-toggle{display:flex;align-items:center;justify-content:space-between;list-style:none;font-size:11px;font-weight:680;color:#82cdbb;padding:10px 0 2px;background:transparent;gap:8px}
.event-details-toggle::-webkit-details-marker{display:none}
.event-details-toggle::after{content:'⌄';font-size:17px;color:#7faeb8;line-height:1;transform:rotate(0deg);transition:transform .16s ease}
.event-details[open]>.event-details-toggle::after{transform:rotate(180deg)}
.event-details[open]>.event-details-toggle{padding-bottom:12px}
.event-detail-group{border-top:1px solid #26394e;padding:11px 0 2px}
.detail-group-title{font-size:11px;font-weight:780;color:#8ac8bc;letter-spacing:.35px;margin:0 0 7px}
.event-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;margin:0;padding:0}
.event-field{display:grid;grid-template-columns:minmax(115px,42%) minmax(0,1fr);gap:10px;align-items:start;margin:0;padding:7px 0;background:transparent;border:0;border-top:1px solid #203347;border-radius:0;min-width:0}
.event-field-label{font-size:11px;color:#8fa8bd;font-weight:570;letter-spacing:0;line-height:1.45;margin:0}
.event-field-value{font-size:11px;color:#e1eaf5;line-height:1.5;font-weight:550;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}
.event-field-value.field-empty{color:#7e92a6}
.event-details>.muted{padding:8px 0}
.list-actions .detail-global{font-weight:620}
@media(max-width:900px){.event-fields{grid-template-columns:1fr}}
@media(max-width:680px){
  .content{padding:17px 12px 32px}
  .event-head{padding:8px 11px}
  .event-content{padding:11px 12px 9px}
  .event-title{font-size:14px;line-height:1.35}
  .hospital-line{gap:6px;flex-wrap:wrap}
  .hospital{font-size:11px}
  .scope{font-size:9px;max-width:100%;text-align:left}
  .event-extra{margin-top:8px;gap:5px}
  .event-extra .pill{font-size:9px;padding:3px 6px}
  .event-details{margin-top:9px}
  .event-details-toggle{min-height:31px;padding:7px 0 0}
  .event-fields{grid-template-columns:1fr}
  .event-field{grid-template-columns:minmax(110px,40%) minmax(0,1fr);gap:8px;padding:7px 0}
  .event-field-label,.event-field-value{font-size:11px}
  .stats{margin:14px 0 17px}
  .stat{min-height:76px;padding:10px 9px;gap:3px}
  .stat strong{font-size:25px}
  .stat span{font-size:8px;min-height:0}
  .stat small{font-size:9px}
  .listbar{margin-bottom:11px;gap:9px}
  .list-actions{gap:6px}
  .list-actions .refresh{padding:8px 9px;font-size:10px}
  .notice{margin-top:12px;padding:9px 11px}
  .quick-chooser{gap:7px;padding:10px;margin-top:12px}
  .quick-chooser .control{min-height:38px}
  .quick-chooser p{display:none}
}
@media(prefers-reduced-motion:reduce){.event-details-toggle::after{transition:none}}

/* Version 0.7: immediately visible age/sex, full free-text remark and S+.
   Full original fields still live in the collapsed details panel. */
.event-card.shock-positive{border-left:4px solid #ff657a}
.shock-plus{color:#fff0f2;background:#8b2a41;border:1px solid #ff7185;letter-spacing:.2px;font-weight:850}
.patient-brief{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:5px;color:#d9e7f5;font-size:11px;line-height:1.4;min-width:0}
.patient-brief .brief-label{color:#95adc1;font-weight:500}
.patient-brief .brief-value{font-weight:750;white-space:normal;overflow-wrap:anywhere}
.event-note{display:flex;gap:7px;align-items:baseline;margin-top:7px;font-size:11px;line-height:1.48;min-width:0}
.event-note-label{color:#88bbae;font-weight:730;flex-shrink:0}
.event-note-text{color:#d8e6f3;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;min-width:0}
@media(max-width:680px){
  .event-note{font-size:11px;gap:5px;margin-top:7px;align-items:flex-start}
  .event-note-label{font-size:11px}
  .event-note-text{font-size:11px}
  .patient-brief{font-size:11px}
  .shock-plus{font-size:9px;padding:4px 6px}
}

/* v1.0.8: Vehicle call sign filter, desktop and compact smartphone selector. */
.vehicle-select{margin-top:7px}
.vehicle-hint{font-size:11px;color:#8ca5b9;line-height:1.5;margin:6px 0 0}
.quick-chooser input[type="search"]{width:100%;min-width:0}

/* IVENA v1.1 stage 1: Push and rules dialog */
.notify-bell{border:1px solid #346055;border-radius:10px;background:#17352d;color:#8fe9cb;padding:9px 12px;font-size:12px;font-weight:700;white-space:nowrap}
.notify-bell span{margin-left:4px}
.notify-dialog{border:1px solid #34516a;border-radius:17px;background:#101d30;color:#eaf0fa;width:min(590px,calc(100vw - 22px));max-height:89dvh;padding:0;box-shadow:0 25px 90px #000a}
.notify-dialog::backdrop{background:#030b18c8}
.notify-head{display:flex;justify-content:space-between;align-items:center;padding:19px 20px 10px;position:sticky;top:0;background:#101d30;z-index:1}
.notify-head h2{margin:0;font-size:21px}.notify-head button,.notify-buttons button{border:1px solid #3a5369;background:#182d44;border-radius:9px;color:#dce8f5;padding:9px 12px}
.notify-dialog>.notify-muted{padding:0 20px}
.notify-muted{font-size:12px;color:#93aac0;line-height:1.5}
.notify-panel{border-top:1px solid #2c4055;padding:17px 20px}.notify-panel h3{font-size:15px;margin:0 0 14px}
.notify-panel form{display:grid;gap:11px}.notify-panel label:not(.notify-check){font-size:12px;font-weight:650;display:grid;gap:6px}
.notify-panel .control{font-size:13px}.notify-rule-list{margin:16px 0 0;display:grid;gap:9px}
.notify-rule{border:1px solid #314c61;border-radius:9px;background:#15273b;padding:10px 12px;display:flex;gap:10px;align-items:center;justify-content:space-between}
.notify-rule p{margin:0;font-size:12px;min-width:0}.notify-rule small{display:block;color:#95aebe;margin-top:3px}.notify-remove{background:transparent;color:#ffbbc0;border:1px solid #92505a;border-radius:7px;padding:7px 10px}
.notify-action{background:#49d2ac!important;color:#082524!important;font-weight:800!important;border:0!important;border-radius:9px;padding:10px 12px}
.notify-check{display:flex;align-items:center;gap:7px;font-size:12px}.notify-check input{accent-color:#49d2ac}
.notify-buttons{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.notify-buttons button{font-size:12px}
#notify-feedback{font-size:12px;color:#7bdfba;min-height:18px}#notify-feedback.notify-error{color:#ffadb7}
@media(max-width:680px){.notify-bell{padding:7px 9px;font-size:17px}.notify-bell span{display:none}.notify-dialog{max-height:95dvh}.notify-head{padding:15px}.notify-panel{padding:14px 15px}.notify-dialog>.notify-muted{padding:0 15px}}
