/* Chasudim Dispatch — design tokens mirror the original app (shadcn-style HSL tokens, dark default) */
:root{
  --background:222 47% 6%; --foreground:210 40% 96%;
  --card:222 40% 9%; --card-foreground:210 40% 96%; --popover:222 40% 9%;
  --primary:122 35% 33%; --primary-foreground:0 0% 100%;
  --secondary:217 33% 15%; --secondary-foreground:210 40% 96%;
  --muted:217 33% 15%; --muted-foreground:215 20% 62%;
  --accent:217 33% 17%; --accent-foreground:161 70% 62%;
  --destructive:0 62% 45%; --border:217 33% 17%; --input:217 33% 17%; --ring:161 84% 40%;
  --radius:.75rem; --ink:#111827; --ink-hover:#1F2937; --emerald:#10b981; --emerald-600:#059669;
  --gold:#c9a227; --sat:env(safe-area-inset-top,0px); --sab:env(safe-area-inset-bottom,0px);
  color-scheme:dark;
}
html.light{
  --background:218 46% 98%; --foreground:221 39% 11%;
  --card:0 0% 100%; --card-foreground:221 39% 11%; --popover:0 0% 100%;
  --secondary:220 14% 94%; --secondary-foreground:221 39% 11%;
  --muted:220 14% 94%; --muted-foreground:220 9% 46%;
  --accent:220 14% 92%; --accent-foreground:122 35% 28%;
  --border:220 13% 89%; --input:220 13% 89%; color-scheme:light;
}
*{box-sizing:border-box} html,body{margin:0;padding:0;min-height:100%}
body{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif,"Apple Color Emoji","Segoe UI Emoji";background:hsl(var(--background));color:hsl(var(--foreground));font-size:15px;line-height:1.45;-webkit-font-smoothing:antialiased;overflow-x:hidden;overscroll-behavior-y:contain}
a{color:hsl(var(--primary))} html.dark a{color:#4ade80}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
img{max-width:100%;display:block}
:focus-visible{outline:2px solid hsl(var(--ring));outline-offset:2px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hidden{display:none!important}

/* layout */
.app{min-height:100vh;display:flex}
.sidebar{position:fixed;inset:0 auto 0 0;z-index:30;width:16rem;display:none;flex-direction:column;border-right:1px solid hsl(var(--border));background:hsl(var(--card))}
@media(min-width:1024px){.sidebar{display:flex}.content{margin-left:16rem}}
.content{flex:1;min-width:0;display:flex;flex-direction:column;min-height:100vh}
.topbar{position:sticky;top:0;z-index:30;border-bottom:1px solid hsl(var(--border));background:hsl(var(--card)/.85);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);padding-top:var(--sat)}
.topbar-in{display:flex;height:64px;align-items:center;justify-content:space-between;gap:8px;padding:0 12px}
@media(min-width:640px){.topbar-in{padding:0 20px}}
.topbar .left,.topbar .right{display:flex;align-items:center;gap:8px;min-width:0}
.iconbtn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:999px;border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--muted-foreground));transition:color .15s,background .15s;flex-shrink:0}
.iconbtn:hover{color:hsl(var(--foreground))} .iconbtn svg{width:18px;height:18px}
@media(min-width:1024px){.lg-hide{display:none!important}}
.avatar{width:36px;height:36px;border-radius:999px;overflow:hidden;box-shadow:0 0 0 1px hsl(var(--border));flex-shrink:0}
.avatar img{width:100%;height:100%;object-fit:cover}
.brand{font-weight:800;letter-spacing:-.01em;font-size:14px;white-space:nowrap}
.pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:2px 8px;font-size:10px;font-weight:600}
.pill.duty{background:rgba(16,185,129,.1);color:#34d399} html.light .pill.duty{background:#ecfdf5;color:#047857}
.pill.live{background:hsl(var(--secondary));color:hsl(var(--muted-foreground))}
.dot{width:6px;height:6px;border-radius:999px;background:var(--emerald);display:inline-block}
.dot.pulse{animation:pulse 1.6s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
.eyebrow{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.18em;color:hsl(var(--muted-foreground))}
.sm-show{display:none}@media(min-width:640px){.sm-show{display:inline-flex}}
.md-show{display:none}@media(min-width:768px){.md-show{display:inline-flex}}

/* sidebar / drawer */
.side-head{display:flex;height:64px;align-items:center;gap:10px;border-bottom:1px solid hsl(var(--border));padding:0 16px}
.side-user{margin:12px 12px 0;display:flex;align-items:center;gap:10px;border-radius:12px;background:hsl(var(--secondary)/.6);padding:10px 12px}
.side-user .name{font-size:13px;font-weight:700;line-height:1.2} .side-user .unit{font-size:11px;color:hsl(var(--muted-foreground))}
.side-post{margin:12px}
.btn-post{display:flex;width:100%;align-items:center;justify-content:center;gap:8px;border-radius:12px;background:var(--ink);padding:10px;font-size:14px;font-weight:600;color:#fff;transition:background .15s;text-decoration:none}
.btn-post:hover{background:var(--ink-hover)} html.dark .btn-post{background:var(--ink)}
.side-nav{flex:1;overflow-y:auto;padding:0 12px 12px}
.nav-group{margin-top:20px} .nav-group .eyebrow{margin:0 12px 6px}
.nav-link{display:flex;align-items:center;gap:12px;border-radius:8px;padding:8px 12px;font-size:14px;font-weight:500;color:hsl(var(--muted-foreground));text-decoration:none;transition:background .15s,color .15s;position:relative}
.nav-link svg{width:18px;height:18px;flex-shrink:0}
.nav-link:hover{background:hsl(var(--secondary)/.6);color:hsl(var(--foreground))}
.nav-link.active{background:hsl(var(--primary)/.18);color:#4ade80;font-weight:600} html.light .nav-link.active{background:hsl(var(--primary)/.12);color:hsl(var(--primary))}
.nav-link.active::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:3px;background:#4ade80}
.side-foot{border-top:1px solid hsl(var(--border));padding:12px;display:flex;gap:8px}
.side-foot button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;border-radius:8px;padding:8px;font-size:13px;color:hsl(var(--muted-foreground));border:1px solid hsl(var(--border))}
.side-foot button:hover{color:hsl(var(--foreground));background:hsl(var(--secondary)/.6)}
.drawer-bg{position:fixed;inset:0;z-index:40;background:rgba(0,0,0,.6);opacity:0;pointer-events:none;transition:opacity .2s}
.drawer{position:fixed;inset:0 auto 0 0;z-index:41;width:min(84vw,300px);display:flex;flex-direction:column;background:hsl(var(--card));border-right:1px solid hsl(var(--border));transform:translateX(-100%);transition:transform .22s ease;padding-top:var(--sat)}
body.drawer-open .drawer{transform:none} body.drawer-open .drawer-bg{opacity:1;pointer-events:auto}

/* page */
.page{padding:16px;max-width:72rem;margin:0 auto;width:100%}
@media(min-width:640px){.page{padding:24px}}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;flex-wrap:wrap}
h1{font-size:24px;font-weight:700;letter-spacing:-.01em;margin:0} @media(min-width:640px){h1{font-size:30px}}
.sub{color:hsl(var(--muted-foreground));font-size:14px;margin:4px 0 0}
h2{font-size:18px;font-weight:700;margin:0} h3{font-size:16px;font-weight:600;margin:0}
.card{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:16px}
.card.pad{padding:16px} .card.section{padding:16px;margin-bottom:16px}
.card-title{display:flex;align-items:center;gap:8px;font-weight:700;font-size:15px;margin-bottom:10px}
.empty{text-align:center;padding:56px 16px}
.empty .ico{width:64px;height:64px;margin:0 auto 16px;border-radius:999px;background:hsl(var(--secondary));display:flex;align-items:center;justify-content:center;color:hsl(var(--muted-foreground))}
.empty .ico svg{width:28px;height:28px}
.empty h3{font-size:20px;margin-bottom:6px} .empty p{color:hsl(var(--muted-foreground));margin:0}
.muted{color:hsl(var(--muted-foreground))} .small{font-size:12px} .xs{font-size:11px} .b{font-weight:700} .sb{font-weight:600}
.row{display:flex;align-items:center;gap:8px;flex-wrap:wrap} .between{justify-content:space-between} .grow{flex:1;min-width:0}
.stack>*+*{margin-top:12px} .stack-sm>*+*{margin-top:6px}
.grid{display:grid;gap:16px} .grid-2{grid-template-columns:repeat(2,1fr)} .grid-3{grid-template-columns:repeat(3,1fr)} .grid-4{grid-template-columns:repeat(4,1fr)}
@media(max-width:640px){.grid-4{grid-template-columns:repeat(2,1fr)}.grid-3.sm1{grid-template-columns:1fr}}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;border-radius:10px;padding:8px 14px;font-size:14px;font-weight:500;border:1px solid transparent;transition:background .15s,color .15s,opacity .15s}
.btn svg{width:16px;height:16px}
.btn:disabled{opacity:.5;pointer-events:none}
.btn-primary{background:hsl(var(--primary));color:#fff} .btn-primary:hover{background:hsl(var(--primary)/.85)}
.btn-ink{background:var(--ink);color:#fff;border-radius:999px} .btn-ink:hover{background:var(--ink-hover)}
.btn-outline{border-color:hsl(var(--border));background:hsl(var(--card))} .btn-outline:hover{background:hsl(var(--accent))}
.btn-ghost:hover{background:hsl(var(--accent))}
.btn-secondary{background:hsl(var(--secondary));color:hsl(var(--secondary-foreground))} .btn-secondary:hover{background:hsl(var(--accent))}
.btn-danger{background:hsl(var(--destructive));color:#fff} .btn-danger:hover{opacity:.9}
.btn-emerald{background:var(--emerald-600);color:#fff} .btn-emerald:hover{background:#047857}
.btn-sm{padding:5px 10px;font-size:12px;border-radius:8px} .btn-xs{padding:3px 8px;font-size:11px;border-radius:6px}
.btn-block{width:100%}
.chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 12px;font-size:12px;font-weight:600;border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--muted-foreground))}
.chip.on{background:rgba(16,185,129,.1);color:#34d399;border-color:rgba(16,185,129,.25)} html.light .chip.on{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.chip.off{background:hsl(var(--secondary))}
.badge{display:inline-flex;align-items:center;border-radius:6px;padding:2px 8px;font-size:11px;font-weight:600;border:1px solid transparent;background:hsl(var(--secondary));color:hsl(var(--foreground))}
.badge.ink{background:var(--ink);color:#fff} .badge.green{background:rgba(16,185,129,.15);color:#34d399} html.light .badge.green{background:#d1fae5;color:#047857}
.badge.red{background:rgba(239,68,68,.15);color:#f87171} .badge.amber{background:rgba(245,158,11,.15);color:#fbbf24} .badge.blue{background:rgba(59,130,246,.15);color:#60a5fa} .badge.gray{background:hsl(var(--secondary));color:hsl(var(--muted-foreground))}
.badge.outline{background:transparent;border-color:hsl(var(--border));color:hsl(var(--muted-foreground))}
.tag{display:inline-flex;border-radius:999px;background:hsl(var(--secondary));padding:2px 10px;font-size:12px}
.tag:hover{background:hsl(var(--accent))}

/* forms */
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
label.lbl,.lbl{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:hsl(var(--muted-foreground))}
.lbl.req::after{content:" *";color:#f87171}
.input,.select,.textarea{width:100%;border:1px solid hsl(var(--input));background:hsl(var(--background));border-radius:10px;padding:10px 12px;font-size:15px;color:hsl(var(--foreground));min-height:44px}
.input::placeholder,.textarea::placeholder{color:hsl(var(--muted-foreground))}
.input:focus,.select:focus,.textarea:focus{outline:none;border-color:hsl(var(--ring));box-shadow:0 0 0 2px hsl(var(--ring)/.3)}
.textarea{min-height:88px;resize:vertical}
.select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;padding-right:32px}
.check{display:flex;align-items:center;gap:10px;font-size:14px;cursor:pointer} .check input{width:18px;height:18px;accent-color:hsl(var(--primary))}
.counter{font-size:11px;color:hsl(var(--muted-foreground));text-align:right}
.areas-grid{display:flex;flex-wrap:wrap;gap:6px}
.area-opt{display:inline-flex;align-items:center;gap:6px;border:1px solid hsl(var(--border));border-radius:8px;padding:6px 10px;font-size:12px;cursor:pointer;background:hsl(var(--card))}
.area-opt b{font-size:11px;color:hsl(var(--muted-foreground))} .area-opt.on{border-color:#34d399;background:rgba(16,185,129,.12);color:#34d399} .area-opt.on b{color:#34d399}
html.light .area-opt.on{background:#ecfdf5;color:#047857;border-color:#6ee7b7}
.prio-row{display:flex;gap:6px;flex-wrap:wrap}
.prio{flex:1;min-width:64px;border:1px solid hsl(var(--border));border-radius:8px;padding:8px 6px;font-size:12px;font-weight:600;text-align:center;background:hsl(var(--card))}
.prio.on.low{border-color:#60a5fa;color:#60a5fa;background:rgba(59,130,246,.12)} .prio.on.regular{border-color:#34d399;color:#34d399;background:rgba(16,185,129,.12)} .prio.on.high{border-color:#fb923c;color:#fb923c;background:rgba(249,115,22,.12)} .prio.on.urgent{border-color:#f87171;color:#f87171;background:rgba(239,68,68,.14)} .prio.on.dnd{border-color:#a78bfa;color:#a78bfa;background:rgba(139,92,246,.12)}
.form-section{border:1px solid hsl(var(--border));border-radius:12px;padding:14px;margin-bottom:12px;background:hsl(var(--background)/.4)}
.form-section .eyebrow{margin-bottom:2px} .form-section .hint{font-size:12px;color:hsl(var(--muted-foreground));margin-bottom:10px}
.toggle{position:relative;width:40px;height:22px;border-radius:999px;background:hsl(var(--secondary));border:1px solid hsl(var(--border));flex-shrink:0;transition:background .15s}
.toggle::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:999px;background:#fff;transition:transform .15s}
.toggle.on{background:var(--emerald-600);border-color:var(--emerald-600)} .toggle.on::after{transform:translateX(18px)}
.switch-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0}

/* call cards */
.call-card{display:flex;align-items:stretch;overflow:hidden;border-left:4px solid hsl(var(--primary))}
.call-card.urgent{border-left-color:#ef4444} .call-card.high{border-left-color:#f97316} .call-card.low{border-left-color:#3b82f6} .call-card.dnd{border-left-color:#8b5cf6}
.call-zone{width:64px;flex-shrink:0;background:var(--emerald-600);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;color:#fff;text-align:center}
.call-card.urgent .call-zone{background:#dc2626} .call-card.high .call-zone{background:#ea580c} .call-card.closed .call-zone{background:hsl(var(--secondary));color:hsl(var(--muted-foreground))}
.call-zone .z{font-weight:800;font-size:18px} .call-zone .l{font-size:10px;opacity:.85;line-height:1.1} .call-zone .n{font-size:12px;font-weight:600}
.call-body{flex:1;min-width:0;padding:14px}
.call-title{font-weight:600;font-size:17px;margin-bottom:6px;overflow-wrap:anywhere}
.phone-pill{display:flex;align-items:center;gap:10px;border-radius:10px;background:var(--ink);padding:8px 12px;color:#fff;text-decoration:none;margin-bottom:8px}
.phone-pill svg{width:16px;height:16px;flex-shrink:0} .phone-pill span{flex:1;font-size:14px;font-weight:600;letter-spacing:.02em} .phone-pill .copy{color:rgba(255,255,255,.6);display:inline-flex;padding:4px;border-radius:4px} .phone-pill .copy:hover{color:#fff}
.addr{display:flex;align-items:flex-start;gap:8px;font-size:14px;color:hsl(var(--muted-foreground));margin-top:4px}
.addr .k{width:64px;flex-shrink:0;font-size:12px;font-weight:500} .addr a{overflow-wrap:anywhere}
.call-meta{display:flex;flex-wrap:wrap;gap:6px 12px;margin-top:8px;font-size:12px;color:hsl(var(--muted-foreground))}
.call-foot{margin-top:12px;padding-top:12px;border-top:1px solid hsl(var(--border));display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.units{display:flex;flex-wrap:wrap;gap:6px}
.call-actions{display:flex;flex-wrap:wrap;gap:6px}
.notes{margin-top:8px;font-size:13px;background:hsl(var(--secondary)/.6);border-radius:8px;padding:8px 10px}
.banner{display:flex;gap:10px;align-items:flex-start;border-radius:12px;padding:12px 14px;font-size:13px;border:1px solid}
.banner.warn{background:rgba(245,158,11,.1);border-color:rgba(245,158,11,.3);color:#fbbf24} html.light .banner.warn{background:#fffbeb;color:#92400e;border-color:#fde68a}
.banner.info{background:rgba(59,130,246,.1);border-color:rgba(59,130,246,.3);color:#93c5fd} html.light .banner.info{background:#eff6ff;color:#1e40af;border-color:#bfdbfe}
.banner.ok{background:rgba(16,185,129,.1);border-color:rgba(16,185,129,.3);color:#6ee7b7} html.light .banner.ok{background:#ecfdf5;color:#065f46;border-color:#a7f3d0}
.banner .x{margin-left:auto;font-weight:700;opacity:.8}

/* dispatch portal */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.stat{border-radius:12px;padding:10px 8px;text-align:center;border:1px solid hsl(var(--border));background:hsl(var(--card))}
.stat .v{font-size:26px;font-weight:800;line-height:1} .stat .k{font-size:10px;font-weight:700;letter-spacing:.14em;margin-top:4px;color:hsl(var(--muted-foreground))}
.stat.open{border-color:rgba(245,158,11,.35)} .stat.open .v{color:#fbbf24} .stat.active{border-color:rgba(16,185,129,.35)} .stat.active .v{color:#34d399} .stat.closed .v{color:hsl(var(--muted-foreground))}
.seg{display:flex;border:1px solid hsl(var(--border));border-radius:10px;overflow:hidden;background:hsl(var(--card))}
.seg button{flex:1;padding:8px 6px;font-size:13px;font-weight:600;color:hsl(var(--muted-foreground))} .seg button.on{background:hsl(var(--secondary));color:hsl(var(--foreground))}
.tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px;-webkit-overflow-scrolling:touch}
.tabs::-webkit-scrollbar{display:none}
.tab{flex-shrink:0;display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:600;border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--muted-foreground));white-space:nowrap}
.tab.on{background:hsl(var(--primary));color:#fff;border-color:hsl(var(--primary))}
.tab .cnt{background:rgba(255,255,255,.2);border-radius:999px;padding:0 6px;font-size:10px} .tab:not(.on) .cnt{background:hsl(var(--secondary))}
.status-msg{border:1px dashed hsl(var(--border));border-radius:10px;padding:10px 12px;font-size:13px;color:hsl(var(--muted-foreground));cursor:text}
.status-msg.set{border-style:solid;color:hsl(var(--foreground));background:rgba(245,158,11,.08);border-color:rgba(245,158,11,.35)}
.zone-bar{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding:2px 0} .zone-bar::-webkit-scrollbar{display:none}
.zone-bar button{flex-shrink:0;border-radius:8px;border:1px solid hsl(var(--border));padding:4px 10px;font-size:12px;font-weight:600;color:hsl(var(--muted-foreground));background:hsl(var(--card))}
.zone-bar button.on{background:hsl(var(--secondary));color:hsl(var(--foreground));border-color:hsl(var(--accent-foreground))}
.board-col{border-radius:12px;border:1px solid hsl(var(--border));background:hsl(var(--card));overflow:hidden}
.board-col .hd{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;font-weight:700;font-size:13px;background:hsl(var(--secondary)/.5)}
.board-col .hd .cnt{background:hsl(var(--background));border-radius:999px;padding:0 8px;font-size:11px}
.board-item{padding:10px 12px;border-top:1px solid hsl(var(--border));font-size:13px}
.board-item .t{font-weight:600}
.mini{font-size:12px;color:hsl(var(--muted-foreground))}
.req-card{padding:14px} .req-card .name{font-weight:700;font-size:15px}
.ptt-btn{width:120px;height:120px;border-radius:999px;margin:12px auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:hsl(var(--secondary));border:3px solid hsl(var(--border));font-weight:800;letter-spacing:.1em;user-select:none;-webkit-user-select:none;touch-action:none}
.ptt-btn.tx{background:#dc2626;border-color:#f87171;color:#fff;box-shadow:0 0 0 8px rgba(220,38,38,.25)}
.chat{display:flex;flex-direction:column;gap:6px;max-height:300px;overflow-y:auto;padding:4px 0}
.msg{max-width:85%;border-radius:12px;padding:8px 10px;font-size:13px;background:hsl(var(--secondary))} .msg.me{align-self:flex-end;background:hsl(var(--primary));color:#fff}
.msg .who{font-size:10px;font-weight:700;opacity:.75;margin-bottom:2px} .msg .at{font-size:10px;opacity:.6;margin-top:2px;text-align:right}
.member-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid hsl(var(--border))}
.member-row:first-child{border-top:0}
.ini{width:36px;height:36px;border-radius:999px;background:hsl(var(--secondary));display:flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;flex-shrink:0;color:hsl(var(--accent-foreground))}
.ini.on{background:rgba(16,185,129,.18);color:#34d399}
#map{height:320px;border-radius:12px;border:1px solid hsl(var(--border));overflow:hidden;background:hsl(var(--secondary))}
.leaflet-container{font:inherit}

/* panels (coordinator/admin) */
.panel-tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid hsl(var(--border));margin-bottom:12px}
.panel-tabs::-webkit-scrollbar{display:none}
.panel-tabs button{flex-shrink:0;padding:10px 12px;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:hsl(var(--muted-foreground));border-bottom:2px solid transparent;margin-bottom:-1px}
.panel-tabs button.on{color:hsl(var(--foreground));border-bottom-color:#34d399}
.sub-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin-bottom:14px} .sub-tabs::-webkit-scrollbar{display:none}
.sub-tabs button{flex-shrink:0;border-radius:8px;padding:6px 10px;font-size:12px;font-weight:600;color:hsl(var(--muted-foreground));background:hsl(var(--secondary)/.5)} .sub-tabs button.on{background:hsl(var(--secondary));color:hsl(var(--foreground))}
.table-wrap{overflow-x:auto;border:1px solid hsl(var(--border));border-radius:12px}
table{width:100%;border-collapse:collapse;font-size:13px;min-width:560px}
th{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:hsl(var(--muted-foreground));text-align:left;padding:10px 12px;background:hsl(var(--secondary)/.5)}
td{padding:10px 12px;border-top:1px solid hsl(var(--border));vertical-align:top}
.kpi{border-radius:12px;padding:14px;border:1px solid hsl(var(--border));background:hsl(var(--card))}
.kpi .v{font-size:28px;font-weight:800;line-height:1} .kpi .k{font-size:12px;color:hsl(var(--muted-foreground));margin-top:4px}
.bars{display:flex;align-items:flex-end;gap:3px;height:120px;padding-top:8px}
.bars div{flex:1;background:var(--emerald-600);border-radius:3px 3px 0 0;min-height:2px;position:relative}
.bars div[data-l]::after{content:attr(data-l);position:absolute;bottom:-16px;left:0;right:0;font-size:9px;text-align:center;color:hsl(var(--muted-foreground))}
.hbar{display:grid;grid-template-columns:120px 1fr 40px;gap:8px;align-items:center;font-size:12px;margin:6px 0}
.hbar .bar{height:10px;border-radius:999px;background:hsl(var(--secondary));overflow:hidden} .hbar .bar i{display:block;height:100%;background:var(--emerald-600)}
.color-swatch{width:36px;height:36px;border-radius:8px;border:1px solid hsl(var(--border))}

/* modal */
.modal-bg{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.65);display:flex;align-items:flex-end;justify-content:center;padding:0}
@media(min-width:640px){.modal-bg{align-items:center;padding:24px}}
.modal{background:hsl(var(--card));border:1px solid hsl(var(--border));border-radius:20px 20px 0 0;width:100%;max-width:560px;max-height:92vh;overflow-y:auto;padding:18px 16px calc(18px + var(--sab))}
@media(min-width:640px){.modal{border-radius:20px}}
.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px} .modal-head h2{font-size:18px}
.modal-foot{display:flex;gap:8px;justify-content:flex-end;margin-top:14px;flex-wrap:wrap}
.toast-wrap{position:fixed;top:calc(16px + var(--sat));left:0;right:0;z-index:60;display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}
.toast{background:hsl(var(--card));border:1px solid hsl(var(--border));color:hsl(var(--foreground));border-radius:12px;padding:10px 14px;font-size:13px;box-shadow:0 10px 30px rgba(0,0,0,.35);max-width:90vw;animation:in .2s ease}
.toast.ok{border-color:rgba(16,185,129,.5)} .toast.err{border-color:rgba(239,68,68,.5)}
@keyframes in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.fab-chat{position:fixed;right:16px;bottom:calc(16px + var(--sab));z-index:35;width:52px;height:52px;border-radius:999px;background:#2563eb;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 24px rgba(0,0,0,.4)}
.fab-chat svg{width:24px;height:24px}

/* login */
.login{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px;background:linear-gradient(135deg,#f8fafc,#f1f5f9)}
html.dark .login{background:linear-gradient(135deg,hsl(222 47% 6%),hsl(222 40% 10%))}
.login-card{width:100%;max-width:28rem;background:#fff;border-radius:16px;box-shadow:0 25px 50px -12px rgba(0,0,0,.25);padding:32px;text-align:center;position:relative;overflow:hidden;color:#0f172a}
html.dark .login-card{background:hsl(var(--card));color:hsl(var(--foreground));border:1px solid hsl(var(--border))}
.login-card::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#e2e8f0,#cbd5e1,#e2e8f0)}
.login-logo{width:96px;height:96px;border-radius:999px;overflow:hidden;margin:0 auto 20px;box-shadow:0 10px 25px rgba(0,0,0,.15),0 0 0 4px rgba(255,255,255,.5)}
.login h1{font-size:24px} .login .sub{margin-bottom:24px}
.login .field{text-align:left} .login .input{background:rgba(248,250,252,.5);border-color:#e2e8f0;color:#0f172a;border-radius:12px;height:46px} html.dark .login .input{background:hsl(var(--background));border-color:hsl(var(--border));color:hsl(var(--foreground))}
.login label.lbl{text-transform:none;letter-spacing:0;font-size:14px;font-weight:500;color:#334155} html.dark .login label.lbl{color:hsl(var(--muted-foreground))}
.btn-login{width:100%;height:46px;border-radius:12px;background:#0f172a;color:#fff;font-weight:500;font-size:14px} .btn-login:hover{background:#1e293b}
.login-links{display:flex;justify-content:space-between;gap:8px;margin-top:12px;font-size:13px;color:#64748b;flex-wrap:wrap} .login-links button{color:inherit;font-weight:500} .login-links b{color:#334155} html.dark .login-links b{color:hsl(var(--foreground))}
.in-select{margin-top:14px;text-align:left}
.who-list{display:flex;flex-direction:column;gap:6px;max-height:220px;overflow-y:auto;margin-top:6px}
.who{display:flex;align-items:center;gap:10px;border:1px solid #e2e8f0;border-radius:10px;padding:8px 10px;text-align:left;font-size:13px} html.dark .who{border-color:hsl(var(--border))}
.who.on{border-color:#059669;background:#ecfdf5} html.dark .who.on{background:rgba(16,185,129,.12)}
.role-pill{margin-left:auto;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#64748b}
.install-tip{margin-top:14px;font-size:12px;color:#64748b}
@media print{.topbar,.sidebar,.drawer,.fab-chat{display:none!important}}

/* PTT (matches the Base44 Dispatcher Comms tab: amber segment + amber round button) */
.ptt-seg button.on{background:#e6a800;color:#111}
.ptt-status{display:flex;align-items:center;justify-content:space-between;margin-top:10px;border-radius:10px;background:hsl(var(--background));padding:10px 12px;font-size:13px;font-weight:600}
.ptt-status .mini{display:inline-flex;align-items:center;gap:4px} .ptt-status svg{width:14px;height:14px}
.ptt-led{display:inline-block;width:8px;height:8px;border-radius:999px;background:#34d399;margin-right:4px;vertical-align:middle} .ptt-led.on{background:#ef4444;animation:pulse .8s infinite}
.tone-row{gap:6px} .tone{border-radius:999px;background:hsl(var(--secondary));padding:6px 12px;font-size:12px;font-weight:600;color:hsl(var(--muted-foreground));cursor:pointer} .tone input{display:none} .tone.on{background:hsl(var(--accent));color:hsl(var(--foreground))}
.ptt-btn{width:144px;height:144px;border-radius:999px;margin:16px auto 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:#e6a800;border:0;color:#111;font-weight:800;letter-spacing:.1em;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none;box-shadow:0 10px 30px rgba(230,168,0,.3);transition:transform .08s}
.ptt-btn svg{width:32px;height:32px} .ptt-btn .ptt-l{font-size:14px} .ptt-btn .xs{font-weight:500;letter-spacing:0;opacity:.8}
.ptt-btn:active{transform:scale(.97)} .ptt-btn.tx{background:#dc2626;color:#fff;box-shadow:0 0 0 10px rgba(220,38,38,.25),0 10px 30px rgba(220,38,38,.4);animation:pulse 1.2s infinite}
.ptt-timer{text-align:center;color:#f87171;font-weight:800;font-variant-numeric:tabular-nums;font-size:14px;margin-bottom:4px}
.center{text-align:center}
.ptt-log{margin-top:14px;padding-top:12px;border-top:1px solid hsl(var(--border))}
.clip{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid hsl(var(--border));flex-wrap:wrap} .clip audio{height:36px;max-width:100%}
html.dark .chat-card{background:#fff;color:#0f172a} html.dark .chat-card .msg{background:#f1f5f9;color:#0f172a} html.dark .chat-card .msg.me{background:#16a34a;color:#fff} html.dark .chat-card .input{background:#f8fafc;border-color:#e2e8f0;color:#0f172a}
/* fixes from the visual pass */
.banner svg{width:18px;height:18px;flex-shrink:0;margin-top:2px}
.btn{text-decoration:none} a.btn-ink,.btn-ink{color:#fff!important}
.page-head{flex-wrap:nowrap} .page-head h1{min-width:0}
.btn-ink.btn-sm{height:32px;padding:0 12px;font-size:12px;font-weight:500;border-radius:999px}
.chip{padding:8px 14px;font-size:12px;font-weight:600}

/* ===== visual-match pass (Base44 parity) ===== */
.panel-tabs{border-bottom:0;gap:8px;margin-bottom:10px;padding:2px 0}
.panel-tabs button{border-radius:999px;padding:9px 16px;background:hsl(var(--secondary));color:hsl(var(--muted-foreground));font-size:12px;letter-spacing:.1em;border-bottom:0;margin:0}
.panel-tabs button.on{background:#e2e8f0;color:#0f172a} html.light .panel-tabs button.on{background:#0f172a;color:#fff}
.sub-tabs button{border-radius:999px;padding:9px 16px;font-size:13px;background:hsl(var(--secondary)/.7)} .sub-tabs button.on{background:hsl(var(--accent));color:hsl(var(--foreground))}
.page-head.panel{align-items:flex-start;gap:12px} .page-head.panel .back{margin-top:4px}
.page-head .sub{margin-top:2px}
.back{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:999px;background:hsl(var(--secondary));color:hsl(var(--muted-foreground));flex-shrink:0} .back svg{width:18px;height:18px}
.cc-head{display:flex;flex-direction:column;gap:12px}
.cc-head .t{display:flex;align-items:center;gap:12px} .cc-head .t h1{font-size:20px} .cc-head .reddot{width:12px;height:12px;border-radius:999px;background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.2);flex-shrink:0}
.cc-head .actions{display:flex;gap:8px;align-items:center}
.btn-pill{border-radius:999px;padding:9px 16px;font-weight:600;font-size:14px}
.stats{gap:10px} .stat{padding:14px 8px;border-radius:14px}
.stat.open .v{color:#f59e0b} .stat.active .v{color:#3b82f6} .stat.closed .v{color:#22c55e} .stat.open,.stat.active,.stat.closed{border-color:hsl(var(--border))}
.stat .k{letter-spacing:.14em;font-size:11px}
.seg.card-seg{border-radius:14px;padding:4px;margin-top:10px} .seg.card-seg button{border-radius:10px;padding:10px 6px;font-size:15px}
.tab{padding:9px 14px;font-size:13px}
.status-msg{border-style:solid;background:hsl(var(--card));padding:12px 14px;border-radius:12px}
.inline-form{margin-top:12px} .inline-form .card-title{font-size:17px;gap:10px} .inline-form .card-title svg{color:#f87171}
.form-section{border-radius:14px;padding:14px}
.sec-head{display:flex;align-items:center;gap:10px;margin-bottom:10px} .sec-head .ico{width:36px;height:36px;border-radius:999px;background:hsl(var(--secondary));display:flex;align-items:center;justify-content:center;color:hsl(var(--muted-foreground));flex-shrink:0} .sec-head .ico svg{width:16px;height:16px}
.sec-head .eyebrow{margin:0} .sec-head .hint{margin:0}
.iwrap{position:relative} .iwrap>svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:hsl(var(--muted-foreground));pointer-events:none} .iwrap .input,.iwrap .textarea{padding-left:38px}
.kpi.icon{display:flex;flex-direction:column;gap:14px;padding:16px} .kpi .kico{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center} .kpi .kico svg{width:18px;height:18px}
.kico.violet{background:rgba(139,92,246,.15);color:#a78bfa} .kico.green{background:rgba(16,185,129,.15);color:#34d399} .kico.blue{background:rgba(59,130,246,.15);color:#60a5fa} .kico.amber{background:rgba(245,158,11,.15);color:#fbbf24} .kico.red{background:rgba(239,68,68,.15);color:#f87171}
.kpi.icon .v{font-size:22px} .kpi.icon .k{font-size:13px}
.pillopt{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:8px 14px;font-size:14px;font-weight:600;background:hsl(var(--secondary));color:hsl(var(--foreground));cursor:pointer;border:1px solid transparent} .pillopt input{display:none}
.pillopt.on{background:rgba(59,130,246,.18);color:#93c5fd;border-color:rgba(59,130,246,.5)} html.light .pillopt.on{background:#dbeafe;color:#1d4ed8;border-color:#93c5fd}
.pillopt.blue.on{background:#2563eb;color:#fff;border-color:#2563eb}
.call-card .edit{width:32px;height:32px;border:0;background:transparent;color:hsl(var(--muted-foreground))} .call-card .edit:hover{color:hsl(var(--foreground))}
.phone-pill{background:#1e293b} html.light .phone-pill{background:#111827}
.call-title{font-size:18px;line-height:1.3}
.btn-ink.btn-sm{background:#111827} html.dark .btn-ink.btn-sm{background:#1e293b;border:1px solid hsl(var(--border))}
.empty-dark{padding:48px 16px}

.login-divider{display:flex;align-items:center;gap:10px;margin:16px 0 10px;color:#94a3b8;font-size:12px} .login-divider::before,.login-divider::after{content:"";flex:1;height:1px;background:#e2e8f0} html.dark .login-divider::before,html.dark .login-divider::after{background:hsl(var(--border))}
.login-public{height:46px;border-radius:12px;font-weight:600;color:#0f172a;border-color:#cbd5e1} html.dark .login-public{color:hsl(var(--foreground));border-color:hsl(var(--border))}
.req-card.public{border-color:rgba(59,130,246,.4)}


/* ===== Base44 parity pass 2 (visual worker, 2026-10-08) ===== */
/* unsized inline icons: Base44 icons are 16–18px; an svg with no size attribute defaults to 300x150 */
svg:not([width]):not([height]){width:16px;height:16px;flex-shrink:0}
/* side menu (mobile drawer + desktop sidebar) */
.btn-post{border-radius:12px;padding:10px 12px;font-size:14px;font-weight:600;background:#111827} .btn-post svg{width:16px;height:16px}
.side-post .btn-post,html.dark .side-post .btn-post{color:#fff;background:hsl(var(--secondary))} html.light .side-post .btn-post{background:#111827} .side-post .btn-post:hover{background:hsl(var(--accent))}
.side-foot button{padding:8px 8px}
.side-nav .nav-link,html.dark .side-nav .nav-link{color:hsl(var(--muted-foreground));font-size:14px;font-weight:500;padding:8px 12px;border-radius:8px;gap:12px}
.side-nav .nav-link:hover,html.dark .side-nav .nav-link:hover{background:hsl(var(--secondary)/.6);color:hsl(var(--foreground))}
.side-nav .nav-link.active,html.dark .side-nav .nav-link.active{background:hsl(var(--secondary));color:hsl(var(--foreground));font-weight:600}
.side-nav .nav-link.active svg{color:#4ade80}
.nav-link.active::before{top:50%;bottom:auto;height:16px;transform:translateY(-50%);width:3px;border-radius:999px;background:hsl(var(--primary))}
.nav-group{margin-top:20px} .nav-group:first-child{margin-top:0} .nav-group .eyebrow{margin:0 12px 6px}
.side-nav{padding:0 12px 12px}
.side-foot{padding:12px;gap:8px}
.side-foot button{border:1px solid hsl(var(--border));border-radius:8px;padding:6px 8px;font-size:12px;font-weight:500;color:hsl(var(--muted-foreground));gap:6px;background:transparent}
.side-foot button:hover{background:hsl(var(--secondary));color:hsl(var(--foreground))}
.side-foot button svg{width:14px;height:14px}
.side-user{margin:12px 12px 0;border-radius:12px;padding:10px 12px;background:hsl(var(--secondary)/.6)}
.side-user .ini{width:32px;height:32px;font-size:12px}
.side-user .name{font-size:12px;font-weight:600} .side-user .unit{font-size:10px}
/* page header: Base44 keeps title + actions on ONE row (title wraps to two lines when needed) */
html .page-head{display:flex;flex-wrap:nowrap!important;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}
html .page-head h1{font-size:24px;line-height:32px;font-weight:700;letter-spacing:-.025em;white-space:normal;min-width:0}
@media(min-width:640px){html .page-head h1{font-size:30px;line-height:36px}}
html .page-head>.row{display:flex;flex-wrap:nowrap;align-items:center;gap:10px;flex-shrink:0;margin-left:auto}
html .page-head .chip{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;font-size:12px;font-weight:600;line-height:16px;border-radius:999px;white-space:nowrap}
html .page-head .chip .dot{width:8px;height:8px}
html .page-head .chip.on{background:rgba(16,185,129,.1);color:#34d399;border-color:rgba(16,185,129,.2)}
html .page-head a.btn-ink.btn-sm,html .page-head .btn-ink.btn-sm{height:32px;padding:0 12px;font-size:12px;font-weight:500;gap:6px;background:#111827!important;border:0!important;border-radius:999px;white-space:nowrap;box-shadow:0 1px 3px rgba(0,0,0,.12);display:inline-flex;align-items:center}
html .page-head a.btn-ink.btn-sm svg{width:16px;height:16px}
/* sub-page header (Submit a Call, Member Profile): 36px round back button + 20px title + 14px subtitle */
html .page-head.panel{align-items:center;gap:12px}
html .page-head.panel .back{width:36px;height:36px;margin-top:0;border:1px solid hsl(var(--border));background:hsl(var(--background));color:hsl(var(--foreground));box-shadow:0 1px 2px rgba(0,0,0,.08)} .back svg{width:16px;height:16px}
html .page-head.panel h1{font-size:20px;line-height:28px}
@media(min-width:640px){html .page-head.panel h1{font-size:30px;line-height:36px}}
html .page-head.panel .sub{font-size:14px;margin-top:4px}
@media(min-width:640px){html .page-head.panel .sub{font-size:16px}}
/* call cards (Base44 CallCard) */
.call-card{border-radius:16px;border-left-width:4px}
.call-zone{width:64px;background:#059669;padding:8px} .call-zone .z{font-size:18px;font-weight:700} .call-zone .lbl,.call-zone small{font-size:10px;line-height:1.2;color:#ecfdf5} .call-zone .num{font-size:12px;font-weight:600}
.call-body{padding:16px}
.call-title{font-size:18px;font-weight:600;line-height:1.3;margin-bottom:4px}
.phone-pill{display:flex;align-items:center;gap:10px;border-radius:8px;background:#111827;padding:8px 12px;margin-bottom:8px;color:#fff;font-size:14px;font-weight:600;letter-spacing:.025em;text-decoration:none}
html.dark .phone-pill,html.light .phone-pill{background:#111827} .phone-pill svg{width:16px;height:16px;color:#fff}
.phone-pill .copy,.phone-pill button{color:rgba(255,255,255,.6);padding:4px;border-radius:4px} .phone-pill button:hover{color:#fff}
.addr{display:flex;align-items:flex-start;gap:8px;font-size:14px;color:hsl(var(--muted-foreground));line-height:1.45}
.addr .k{width:64px;flex-shrink:0;font-size:12px;font-weight:500;color:hsl(var(--muted-foreground))}
html .addr a,html.dark .addr a{color:hsl(var(--primary));text-decoration:none} html .addr a:hover{text-decoration:underline}
html.dark .addr a{color:#4ade80}
/* directory (Base44: 20px title, 36px rounded-full search, small category pills) */
.dir-search .input,.input.dir-search{height:36px;border-radius:999px;padding-left:40px;font-size:14px}
.tabs .tab{border-radius:999px;border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--muted-foreground));padding:4px 12px;font-size:12px;font-weight:600;text-transform:capitalize;line-height:16px}
.tabs .tab.on{background:#111827;color:#fff;border-color:#111827}
.tabs{gap:6px;flex-wrap:wrap;border:0}
/* login card: Base44 is a centered 358px-max card, centered labels, 84px logo, 24px/600 title */
html .login{display:flex;align-items:center;justify-content:center;padding:24px 16px;min-height:100vh}
html .login-card{width:100%;max-width:358px;margin:0 auto;padding:40px 24px 32px;border-radius:16px}
html .login-logo{width:84px;height:84px;margin:0 auto 16px} html .login-logo img{width:100%;height:100%;object-fit:cover;border-radius:999px}
html .login h1{font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.01em;margin:0 0 6px;text-align:center}
html .login .sub{font-size:14px;text-align:center;margin:0 0 24px}
html .login label.lbl{display:block;text-align:center;font-size:14px;font-weight:500;margin-bottom:6px}
html .login .field{margin-bottom:14px}
html .login .field span svg{width:16px;height:16px}
html .login .input{height:46px;border-radius:12px;font-size:15px}
html .login .btn-login{height:46px;border-radius:12px;font-size:14px;font-weight:600;margin-top:4px}
html .login .login-links{margin-top:14px;font-size:14px;justify-content:center}

/* directory search + member card phone pill text */
.page .input[placeholder*="Search"]{height:36px;border-radius:999px;padding:4px 12px 4px 40px;font-size:14px;background:hsl(var(--card))}
.page .iwrap .input[placeholder*="Search"]{padding-left:40px}
.call-card .phone-pill,.call-card .phone-pill *,html.dark .call-card .phone-pill,html.dark .call-card .phone-pill a,html.dark a.phone-pill{color:#fff}
.call-card .phone-pill .copy,.call-card .phone-pill button{color:rgba(255,255,255,.6)}
.call-foot{border-top:1px solid hsl(var(--border));padding-top:12px;margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.call-foot .viewonly,.call-foot .muted{font-size:12px;font-style:italic;color:hsl(var(--muted-foreground))}
.units .badge,.badge.unit{background:rgba(16,185,129,.15);color:#34d399;border-radius:6px;padding:2px 8px;font-size:11px;font-weight:600}

/* directory header sizes (needs class="page dir" on the directory page — requested) */
.dir .page-head h1{font-size:20px;line-height:28px} @media(min-width:640px){.dir .page-head h1{font-size:24px}}
.btn-sq{width:36px;height:36px;padding:0;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:#111827;color:#fff} .btn-sq svg{width:16px;height:16px}

/* ===== Dispatch Portal (Base44 Command Center) — values copied from map/d-portal.html Tailwind classes ===== */
.cc-head.card{border-radius:16px;padding:12px 16px;box-shadow:0 1px 2px rgba(0,0,0,.05);display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.cc-head .t{display:flex;align-items:center;gap:12px}
.cc-head .reddot{width:36px;height:36px;border-radius:12px;background:rgba(239,68,68,.1);box-shadow:none;display:flex;align-items:center;justify-content:center;position:relative}
.cc-head .reddot::after{content:"";width:10px;height:10px;border-radius:999px;background:#ef4444;animation:pulse 1.6s ease-in-out infinite}
html.light .cc-head .reddot{background:#fef2f2}
.cc-head .t h1{font-size:18px;line-height:28px;font-weight:700;letter-spacing:-.025em}
.cc-head .sub{font-size:12px;margin:0}
.cc-head .actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cc-head .actions .btn-pill{height:36px;padding:0 14px;font-size:14px;font-weight:500;border-radius:999px;border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--muted-foreground))}
.cc-head .actions .btn-pill:hover{color:hsl(var(--foreground))}
.cc-head .actions .btn-pill svg{width:16px;height:16px}
.cc-head .actions .iconbtn{width:36px;height:36px}
.cc-head .actions .btn-secondary.btn-pill,.cc-head .actions [data-portal=new]{border-radius:12px;background:#111827!important;color:#fff!important;font-weight:700;padding:0 16px;border:0;height:36px}
.cc-head .actions [data-portal=new]:hover{background:#1f2937!important}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px!important}
.stat{border-radius:16px;border:1px solid hsl(var(--border));background:hsl(var(--card));padding:12px;text-align:center;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.stat .v{font-size:24px;line-height:32px;font-weight:700;font-variant-numeric:tabular-nums}
.stat .k{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.18em;margin-top:0}
.stat.open .v,.stat.open .k{color:#d97706} .stat.active .v,.stat.active .k{color:#2563eb} .stat.closed .v,.stat.closed .k{color:#059669}
.seg.card-seg{display:flex;gap:4px;border-radius:16px;border:1px solid hsl(var(--border));background:hsl(var(--card));padding:4px;margin-top:12px}
.seg.card-seg button{flex:1;border-radius:12px;padding:12px 0;font-size:14px;font-weight:700;color:hsl(var(--muted-foreground));background:transparent}
.seg.card-seg button.on{background:hsl(var(--secondary));color:hsl(var(--foreground))}
/* portal tab row: ONE horizontally scrolling row (Base44: flex gap-1.5 overflow-x-auto) */
.page .tabs{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;padding-bottom:4px;margin-top:12px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.page .tabs .tab{flex-shrink:0;display:inline-flex;align-items:center;gap:4px;padding:6px 12px;border-radius:12px;font-size:12px;font-weight:500;border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--muted-foreground));white-space:nowrap;text-transform:none;line-height:16px}
.page .tabs .tab:hover{color:hsl(var(--foreground))}
.page .tabs .tab.on{background:#111827;color:#fff;border-color:#111827}
.page .tabs .tab .cnt{background:#ef4444;color:#fff;font-size:9px;border-radius:999px;padding:2px 4px;line-height:1;margin-left:2px}
.page.dir .tabs{flex-wrap:wrap;overflow:visible} .page.dir .tabs .tab{border-radius:999px;padding:4px 12px;font-weight:600;text-transform:capitalize}
.status-msg{border-radius:12px;border:1px solid hsl(var(--border));background:hsl(var(--card));padding:6px 12px;font-size:12px;color:hsl(var(--muted-foreground));text-align:left;margin-top:12px!important}
.status-msg.set{color:hsl(var(--foreground))}
.zone-bar{display:flex;align-items:center;gap:6px;overflow-x:auto;padding-bottom:4px;flex-wrap:nowrap;margin:12px 0!important}
.zone-bar .eyebrow{flex-shrink:0;display:inline-flex;align-items:center;gap:4px;padding-right:4px}
.zone-bar button{flex-shrink:0;border-radius:999px;border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--muted-foreground));padding:6px 12px;font-size:12px;font-weight:700;line-height:16px}
.zone-bar button:hover{color:hsl(var(--foreground))}
.zone-bar button.on{background:#111827;border-color:#111827;color:#fff}
/* portal request/report filter segment (Base44: pills Pending[5] Approved Rejected All, Refresh outline) */
.seg:not(.card-seg){display:flex;gap:8px;flex-wrap:wrap;background:transparent;border:0;padding:0}
.seg:not(.card-seg) button{border-radius:999px;padding:8px 14px;font-size:14px;font-weight:600;background:hsl(var(--secondary));color:hsl(var(--muted-foreground))}
.seg:not(.card-seg) button.on{background:#f1f5f9;color:#0f172a} html.light .seg:not(.card-seg) button.on{background:#111827;color:#fff}
/* portal list heading + closed-card zone strip (Base44: bg-secondary strip for closed calls) */
.call-card.closed .call-zone{background:hsl(var(--secondary));color:hsl(var(--foreground))} .call-card.closed .call-zone .l{color:hsl(var(--muted-foreground))}
.call-zone .l{font-size:10px;line-height:1.2;color:#ecfdf5} .call-zone .n{font-size:12px;font-weight:600}
.call-card .badge{border-radius:6px;padding:2px 10px;font-size:12px;font-weight:600}
.call-actions button,.call-actions .btn{border-radius:999px;background:hsl(var(--secondary));color:hsl(var(--foreground));padding:2px 10px;font-size:12px;font-weight:500;border:0;height:auto}
.call-actions .btn-emerald{background:var(--emerald-600);color:#fff}
.call-actions .btn-danger{background:hsl(var(--destructive));color:#fff}
.call-meta{font-size:10px;color:hsl(var(--muted-foreground));line-height:1.5}
/* New Call inline form (Base44: card with red phone icon title, section cards with 36px icon circles, 11px uppercase labels, 40px inputs) */
.inline-form .card-title{font-size:18px;font-weight:700}
.form-section{border-radius:16px;padding:16px;border:1px solid hsl(var(--border));background:hsl(var(--card))}
.form-section .lbl{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:hsl(var(--muted-foreground));margin-bottom:6px;display:block}
.form-section .input,.form-section .select,.form-section .textarea{height:40px;border-radius:10px;font-size:14px;padding:8px 12px;background:hsl(var(--background))}
.form-section .textarea{height:auto;min-height:80px}
.form-section .iwrap .input{padding-left:36px} .form-section .iwrap>svg{width:14px;height:14px;left:12px}
.sec-head .ico{width:36px;height:36px} .sec-head .eyebrow{font-size:10px;letter-spacing:.18em} .sec-head .hint{font-size:12px;color:hsl(var(--muted-foreground))}
.field{margin-bottom:12px}

/* Requests tab filters (Base44: white pills, 14px semibold; Refresh = outlined button) */
.seg:not(.card-seg):not(.ptt-seg) button{background:#fff;color:#0f172a;border-radius:10px;padding:7px 12px;font-size:14px;font-weight:600;line-height:20px}
.seg:not(.card-seg):not(.ptt-seg) button.on{background:#e2e8f0;color:#0f172a}
html.light .seg:not(.card-seg):not(.ptt-seg) button{background:#f1f5f9} html.light .seg:not(.card-seg):not(.ptt-seg) button.on{background:#111827;color:#fff}
.seg .cnt,.seg button .n{background:#ef4444;color:#fff;font-size:10px;border-radius:999px;padding:1px 6px;margin-left:4px}
.req-card{padding:16px;border-radius:16px} .req-card .name{font-size:16px;font-weight:700}
.req-card .btn{height:36px;border-radius:8px;font-size:14px;font-weight:500;padding:0 14px}
.req-card .btn-ghost,.req-card [data-req=reject]{color:#f87171}
/* Board tab: horizontally scrolling priority columns with colored headers (Base44) */
.grid:has(> .board-col){display:flex;flex-wrap:nowrap;overflow-x:auto;gap:12px;padding-bottom:8px;align-items:flex-start}
.board-col{min-width:272px;width:272px;flex-shrink:0;border-radius:16px;border-width:2px}
.board-col .hd{padding:10px 12px;font-size:14px;color:#fff}
.board-col .hd .cnt{background:rgba(0,0,0,.25);color:#fff;font-weight:700;padding:1px 8px}
.board-col:nth-child(1){border-color:#ef4444} .board-col:nth-child(1) .hd{background:#ef4444} .board-col:nth-child(1){background:rgba(239,68,68,.06)}
.board-col:nth-child(2){border-color:#f97316} .board-col:nth-child(2) .hd{background:#f97316} .board-col:nth-child(2){background:rgba(249,115,22,.06)}
.board-col:nth-child(3){border-color:#eab308} .board-col:nth-child(3) .hd{background:#eab308;color:#111827} .board-col:nth-child(3) .hd .cnt{color:#111827;background:rgba(0,0,0,.12)} .board-col:nth-child(3){background:rgba(234,179,8,.06)}
.board-col:nth-child(4){border-color:#3b82f6} .board-col:nth-child(4) .hd{background:#3b82f6} .board-col:nth-child(4){background:rgba(59,130,246,.06)}
.board-col:nth-child(5){border-color:#64748b} .board-col:nth-child(5) .hd{background:#64748b} .board-col:nth-child(5){background:rgba(100,116,139,.06)}
.board-item{margin:10px;border:1px solid hsl(var(--border));border-radius:12px;background:hsl(var(--card));padding:12px;border-top:1px solid hsl(var(--border))}
.board-item.mini{border:0;background:transparent;text-align:center;color:hsl(var(--muted-foreground));padding:24px 12px}
.board-item .t{font-size:14px;font-weight:700}
.board-item .btn-xs{height:28px;padding:0 10px;font-size:12px;border-radius:6px}

.seg:not(.card-seg):not(.ptt-seg) button{flex:0 0 auto;white-space:nowrap}
.seg:not(.card-seg):not(.ptt-seg){gap:8px}
/* board columns: Base44 light tinted bodies + white item cards, even in dark mode */
.board-col:nth-child(1){background:#fef2f2} .board-col:nth-child(2){background:#fff7ed} .board-col:nth-child(3){background:#fefce8} .board-col:nth-child(4){background:#eff6ff} .board-col:nth-child(5){background:#f8fafc}
.board-item{background:#fff;color:#0f172a;border-color:#e2e8f0} .board-item .muted,.board-item .mini{color:#64748b} .board-item a{color:#2563eb}
.board-item .btn-xs{background:#111827;color:#fff;border-color:#111827} .board-item .btn-xs.btn-ghost{background:#fff;color:#0f172a;border:1px solid #e2e8f0}
.board-item.mini{background:transparent;color:#94a3b8}

/* Coordinator / Admin panels (Base44: 20px title, 12px sub; tab pills rounded-full px-3.5 py-1.5 11px bold uppercase tracking .14em; sub-tabs rounded-full border px-3.5 py-2 12px) */
.panel-tabs{display:flex;gap:6px;overflow-x:auto;padding:2px 0;margin-bottom:10px;border:0;scrollbar-width:none}
.panel-tabs button{flex-shrink:0;border-radius:999px;padding:6px 14px;font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;background:hsl(var(--secondary));color:hsl(var(--muted-foreground));line-height:16px;border:0;margin:0}
.panel-tabs button.on,html.light .panel-tabs button.on{background:#111827;color:#fff}
.sub-tabs{display:flex;gap:6px;overflow-x:auto;margin-bottom:16px;scrollbar-width:none}
.sub-tabs button{flex-shrink:0;border-radius:999px;border:1px solid hsl(var(--border));background:hsl(var(--card));color:hsl(var(--muted-foreground));padding:8px 14px;font-size:12px;font-weight:500;line-height:16px;box-shadow:0 1px 2px rgba(0,0,0,.05)}
.sub-tabs button.on{background:hsl(var(--secondary));color:hsl(var(--foreground));box-shadow:none}
html .page-head.panel .sub{font-size:12px;margin-top:2px} @media(min-width:640px){html .page-head.panel .sub{font-size:14px}}
.card.section{border-radius:16px;padding:16px;margin-bottom:16px}
.card-title{font-size:16px;font-weight:700}
/* generic form fields outside the New Call form: Base44 labels are 14px, normal case, foreground */
.card.section label.lbl,.card.section .lbl,.modal label.lbl,.modal .lbl{font-size:14px;font-weight:500;letter-spacing:0;text-transform:none;color:hsl(var(--foreground));margin-bottom:6px;display:block}
.card.section .input,.card.section .select,.card.section .textarea,.modal .input,.modal .select,.modal .textarea{min-height:40px;border-radius:10px;font-size:14px;padding:8px 12px}
.card.section .textarea,.modal .textarea{min-height:88px}
.kpi{border-radius:16px}

/* alert priority / recipient pills in panels (Base44: white outlined pills, 14px medium; selected = blue tint) */
.pillopt{padding:7px 12px;font-size:14px;font-weight:500;background:#fff;color:#0f172a;border:1px solid #e2e8f0;border-radius:10px;gap:6px;line-height:20px}
.pillopt.on{background:#eff6ff;color:#1d4ed8;border-color:#3b82f6}
.pillopt.blue.on{background:#2563eb;color:#fff;border-color:#2563eb}
.pillopt svg{width:16px;height:16px}
.prio-row{gap:8px;flex-wrap:wrap}
/* panel section eyebrow labels (Base44 "PRIORITY LEVEL", "TARGET RECIPIENTS": 11px bold uppercase tracking .14em muted) */
.card.section .eyebrow,.card.section .lbl.eyebrow{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:hsl(var(--muted-foreground))}

/* ===== compact call cards (Mordechai 5:01 PM "make the call cards smaller") — Base44 CallCard metrics: p-4 body, 18px title, 14px rows; we drop the extra rows Base44 does not show ===== */
.call-card{border-radius:14px;margin-bottom:10px}
.call-zone{width:56px;padding:6px 4px} .call-zone .z{font-size:16px;line-height:1.2} .call-zone .l{font-size:9px} .call-zone .n{font-size:11px}
.call-body{padding:12px 12px 10px}
.call-body>.row.between{margin-bottom:2px}
.call-body>.row.between .row{margin-bottom:2px!important;gap:4px!important}
.call-card .xs.muted{display:none}                      /* "4h 48m ago" — Base44 has no age on the card */
.call-card .badge{font-size:10px;padding:1px 7px;border-radius:5px}
.call-title{font-size:16px;line-height:1.25;margin-bottom:6px;font-weight:600}
.phone-pill{padding:6px 10px;margin-bottom:6px;font-size:13px;border-radius:8px;gap:8px} .phone-pill svg{width:14px;height:14px}
.addr{font-size:13px;line-height:1.35;gap:6px;margin-bottom:2px} .addr .k{width:56px;font-size:11px}
.call-card .notes{font-size:12px;padding:6px 8px;margin:6px 0 0;border-radius:8px}
.call-card .call-meta{display:none}                      /* 📅/🚀 dispatched line: Base44 shows this only inside Details */
.call-foot{margin-top:8px;padding-top:8px;gap:6px}
.call-foot .units .badge,.units .badge{font-size:10px;padding:1px 7px}
.call-actions{gap:4px;flex-wrap:wrap;justify-content:flex-end}
.call-actions button,.call-actions .btn{padding:3px 10px;font-size:12px;line-height:18px;height:auto;min-height:0}
.call-actions .btn-emerald,.call-actions .btn-primary{padding:5px 12px;font-size:13px;font-weight:600}
.call-card .edit{width:28px;height:28px} .call-card .edit svg{width:14px;height:14px}
.page .grid{gap:10px}
@media(min-width:600px){.call-title{font-size:17px} .call-body{padding:14px}}

/* 1.2.76 call notes behind a "Notes" button for plain members on an open call */
.cc-notes.nb{margin-top:6px}.cc-notes.nb .notes-btn{gap:4px}.cc-notes.nb .notes{display:none}.cc-notes.nb.open .notes{display:block}.cc-notes.nb .nb-hide{display:none}.cc-notes.nb.open .nb-hide{display:inline}.cc-notes.nb.open .nb-show{display:none}
/* 1.2.111 Assign dialog: the unit number first (bold), the name under it (Mordechai Oct 25 12:46 AM) */
.member-row .as-unit{font-weight:800;font-size:16px;line-height:1.2;letter-spacing:.2px;text-align:start}
html[dir=rtl] .member-row .as-unit{text-align:right}
.member-row .as-sub{line-height:1.3}
.member-row .as-nm{color:hsl(var(--foreground));font-weight:500}
