@font-face{font-family:"Frank Ruhl Libre";font-style:normal;font-weight:300 900;font-display:swap;src:url(/frank-ruhl-hebrew.woff2) format("woff2");unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
:root{--bg:#f6f4ee;--card:#fff;--ink:#1d1b33;--muted:#5f5d72;--line:#e2ddcf;--brand:#2a2560;--gold:#c9a24a;--gold-lt:#e0bd6a;--brand-ink:#fff;--bld:#2f6f4f;--bus:#b26a00;--urgent:#c62828;--ok:#2e7d32;--focus:#ffbf47;--radius:12px}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:var(--bg)}
a{color:var(--brand)}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.topbar{background:#fff;border-bottom:3px solid var(--gold);box-shadow:0 1px 0 rgba(42,37,96,.08)}
.topbar .in{max-width:1100px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;gap:12px;justify-content:space-between}
.brandlink{display:flex;align-items:center;gap:12px;color:var(--brand);text-decoration:none;min-width:0}
.brandlink img{width:68px;height:auto;flex:none}
.topbar .he-title{font-family:"Frank Ruhl Libre","David Libre","David","Times New Roman",serif;font-size:3.1rem;font-weight:900;line-height:1;margin:0;padding-top:2px;color:var(--brand);white-space:nowrap;letter-spacing:0}
.topbar nav{flex:none}
.topbar nav a{color:var(--brand);text-decoration:none;font-size:.92rem;font-weight:600;padding:7px 12px;border-radius:8px;border:1.5px solid var(--brand)}
.topbar nav a:hover{background:#eeecf7}
@media (max-width:400px){.brandlink{gap:9px}.brandlink img{width:50px}.topbar .he-title{font-size:2.3rem}.topbar nav a{padding:6px 10px;font-size:.88rem}}
@media (max-width:350px){.topbar .he-title{font-size:1.8rem}}
main{max-width:1100px;margin:0 auto;padding:16px}
.narrow{max-width:640px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:0 1px 2px rgba(42,37,96,.05)}
h2{font-family:Georgia,"Times New Roman",serif;font-size:1.4rem;margin:0 0 4px;color:var(--brand)}
.sub{color:var(--muted);margin:0 0 16px}
label{display:block;font-weight:600;margin:14px 0 6px}
.hint{font-weight:400;color:var(--muted);font-size:.9rem}
input[type=text],input[type=email],input[type=tel],input[type=password],input[type=search],select,textarea{width:100%;font:inherit;padding:11px 12px;border:1px solid #c5ccd4;border-radius:10px;background:#fff;color:var(--ink)}
textarea{min-height:110px;resize:vertical}
.seg{display:flex;gap:8px;flex-wrap:wrap}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg label{margin:0;flex:1 1 0;min-width:0;text-align:center;font-weight:600;padding:12px 8px;border:1.5px solid #c5ccd4;border-radius:10px;background:#fff;cursor:pointer;user-select:none}
.seg input:checked+label{border-color:var(--brand);background:#eeecf7;color:var(--brand);box-shadow:inset 0 -3px 0 var(--gold)}
.seg input:focus-visible+label{outline:3px solid var(--focus);outline-offset:2px}
.seg.big label{padding:16px 8px;font-size:1.05rem}
.seg label .ico{display:block;font-size:1.5rem;line-height:1.1;margin-bottom:2px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width:560px){.row{grid-template-columns:1fr}}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;font:inherit;font-weight:700;border:0;border-radius:10px;padding:12px 18px;background:var(--brand);color:#fff;cursor:pointer;text-decoration:none}
.btn:disabled{opacity:.6;cursor:default}
.btn.full{width:100%;margin-top:20px;padding:14px}
.btn.ghost{background:#fff;color:var(--brand);border:1.5px solid var(--brand)}
.btn.small{padding:8px 12px;font-size:.92rem}
.err{color:var(--urgent);font-weight:600;margin-top:10px;min-height:1px}
.okbox{text-align:center;padding:28px 18px}
.okbox .big{font-size:2.6rem}
.photo-prev{margin-top:8px;max-width:180px;border-radius:8px;display:block}
.muted{color:var(--muted)}
.hidden{display:none!important}
/* dashboard */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.stat{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:10px 12px}
.stat b{display:block;font-size:1.5rem;line-height:1.1}
.stat span{color:var(--muted);font-size:.85rem}
.stat.u b{color:var(--urgent)}
@media (max-width:560px){.stats{grid-template-columns:repeat(2,1fr)}}
.tabs{display:flex;gap:6px;margin-bottom:10px;overflow-x:auto}
.tabs button{font:inherit;font-weight:600;border:1.5px solid #c5ccd4;background:#fff;border-radius:999px;padding:7px 14px;cursor:pointer;white-space:nowrap;color:var(--ink)}
.tabs button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.filters{display:grid;grid-template-columns:1fr 1fr 1.3fr 1.7fr;gap:8px;margin-bottom:12px}
@media (max-width:760px){.filters{grid-template-columns:1fr 1fr}.filters #fInst,.filters .q{grid-column:1/-1}}
.filters select,.filters input{padding:9px 10px}
.list{display:flex;flex-direction:column;gap:8px}
.tk{display:block;width:100%;text-align:left;font:inherit;color:inherit;background:#fff;border:1px solid var(--line);border-left:5px solid var(--brand);border-radius:10px;padding:12px 14px;cursor:pointer}
.tk.Bus{border-left-color:var(--gold)}
.tk:hover{border-color:#b9c2cc}
.tk .t1{display:flex;gap:8px;align-items:baseline;justify-content:space-between}
.tk .ttl{font-weight:700;overflow-wrap:anywhere}
.tk .id{color:var(--muted);font-size:.85rem;white-space:nowrap}
.tk .meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;font-size:.85rem;color:var(--muted);align-items:center}
.pill{display:inline-block;font-size:.78rem;font-weight:700;padding:2px 8px;border-radius:999px;background:#eef1f4;color:#33404d;white-space:nowrap}
.pill.Building{background:#eeecf7;color:var(--brand)}
.pill.Bus{background:#fdf0dc;color:#8a5200}
.pill.Urgent{background:#fde7e7;color:var(--urgent)}
.pill.Low{background:#f0f2f4;color:#6b7680}
.pill.New{background:#eeecf7;color:var(--brand)}
.pill.inst{background:#faf3e1;color:#7a5d1c}
.pill.In.progress,.pill.prog{background:#fff4d6;color:#7a5600}
.pill.Done{background:#e6f4e7;color:var(--ok)}
.pill.email{background:#efe9fb;color:#5a3ea8}
.empty{text-align:center;color:var(--muted);padding:30px}
/* detail drawer */
.overlay{position:fixed;inset:0;background:rgba(15,20,25,.45);display:flex;justify-content:flex-end;z-index:20}
.drawer{background:var(--bg);width:min(560px,100%);height:100%;overflow-y:auto;padding:0 0 30px}
.drawer header{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--line);padding:12px 16px;display:flex;justify-content:space-between;align-items:center;gap:10px;z-index:1}
.drawer header h3{margin:0;font-size:1.05rem}
.drawer .body{padding:14px 16px}
.drawer h4{margin:18px 0 8px;font-size:.95rem;text-transform:uppercase;letter-spacing:.5px;color:var(--muted)}
.kv{display:grid;grid-template-columns:110px 1fr;gap:6px 10px;font-size:.95rem}
.kv dt{color:var(--muted)}
.kv dd{margin:0;overflow-wrap:anywhere}
.desc{white-space:pre-wrap;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;overflow-wrap:anywhere}
.statusbar{display:flex;gap:6px}
.statusbar button{flex:1;font:inherit;font-weight:700;padding:11px 6px;border-radius:10px;border:1.5px solid #c5ccd4;background:#fff;cursor:pointer;color:var(--ink)}
.statusbar button[aria-pressed=true]{background:var(--brand);border-color:var(--brand);color:#fff}
.inline{display:flex;gap:8px}
.inline input,.inline select{flex:1;min-width:0}
.timeline{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}
.timeline li{background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 12px;font-size:.93rem}
.timeline li.sys{background:transparent;border-style:dashed;color:var(--muted)}
.timeline .who{font-weight:700}
.timeline .when{color:var(--muted);font-size:.82rem}
.timeline .txt{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:2px}
.ticket-photo{max-width:100%;border-radius:10px;border:1px solid var(--line);display:block}
.login{max-width:380px;margin:40px auto}
.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);background:#1b1f24;color:#fff;padding:10px 16px;border-radius:999px;font-weight:600;z-index:50;box-shadow:0 4px 16px rgba(0,0,0,.2)}
.footer{color:var(--muted);font-size:.85rem;text-align:center;margin:22px 0 10px}
.btn{box-shadow:inset 0 -2px 0 rgba(0,0,0,.15)}
.btn:hover{background:#1c1a4a}
.btn.ghost:hover{background:#eeecf7}
.emailnote{background:#faf3e1;border:1px solid #ecdcb2;border-radius:10px;padding:10px 12px;margin:0 0 14px;font-size:.93rem}
.emailnote a{font-weight:700;overflow-wrap:anywhere}

.loginnote{background:#f3f1fa;border:1px solid #dcd8ee;border-radius:10px;padding:9px 12px;margin:0 0 10px;font-size:.93rem;color:var(--ink)}
.small-note{font-size:.88rem;margin:14px 0 0}
.auth-tabs{margin:0 0 14px}
.myhead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:4px 0 12px}
.myhead h2{margin:0}
.myhead .sub{margin:2px 0 0;font-size:.92rem;word-break:break-word}
.small-link{font-size:.92rem;font-weight:600;white-space:nowrap;padding-top:6px}
.mytk{padding:0;display:block}
.mytk-head{all:unset;box-sizing:border-box;display:block;width:100%;padding:12px 14px;cursor:pointer}
.mytk-head:focus-visible{outline:3px solid var(--focus)}
.mytk-body{padding:0 14px 14px;border-top:1px solid var(--line)}
.mytk-body h4{margin:12px 0 6px}
.kvline{margin:10px 0 0;font-size:.93rem}
.userlist{list-style:none;padding:0;margin:0}
.userlist li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.uact{display:flex;gap:6px}
.btn.danger{color:var(--urgent);border-color:var(--urgent)}

/* v3 roles */
.userbar{display:flex;justify-content:space-between;align-items:center;gap:8px 14px;flex-wrap:wrap;margin:0 0 12px;font-size:.93rem}
.userbar .ulinks{font-size:.88rem;white-space:nowrap}
.pill.role{background:#2a2560;color:#fff}
.pill.r-principal{background:#7a5d1c;color:#fff}.pill.r-manager{background:#2f6f4f;color:#fff}.pill.r-staff{background:#e7e5f2;color:#2a2560}
.maintabs{border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:14px}
.maintabs button{display:inline-flex;align-items:center;gap:6px}
.maintabs button[aria-selected=true]{background:var(--brand);border-color:var(--brand);color:#fff}
.badge{display:inline-block;min-width:20px;padding:1px 6px;border-radius:999px;background:var(--urgent);color:#fff;font-size:.78rem;line-height:1.4;text-align:center}
.viewhead{margin:0 0 12px}.viewhead h2{margin:0}.viewhead .sub{margin:2px 0 0;font-size:.93rem}
.row-between{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.stat.p b{color:#8a5a00}
.pill.st-New{background:#eeecf7;color:var(--brand)}
.pill.st-In-progress{background:#fff4d6;color:#7a5600}
.pill.st-Pending-approval{background:#fde9c8;color:#8a4b00;white-space:normal;text-align:left}
.pill.st-Approved{background:#dff3e3;color:#1f6b2c}
.pill.st-Declined{background:#fde7e7;color:var(--urgent)}
.pill.st-Done{background:#e6f4e7;color:var(--ok)}
.pill.warn{background:#fff1c2;color:#7a4b00}
.pill.mine{background:#e7e5f2;color:#2a2560}
.tk.pend{border-left-color:#e08a00}
.tk.needs{box-shadow:0 0 0 2px #e08a00 inset}
.tk .who{margin-top:6px;font-size:.85rem;color:var(--muted);overflow-wrap:anywhere}
.dt-title{margin:0 0 8px;font-size:1.2rem;color:var(--brand);overflow-wrap:anywhere}
.drawer .meta{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.banner{border-radius:10px;padding:10px 12px;margin:0 0 12px;font-size:.95rem}
.banner.pend{background:#fff4e0;border:1px solid #f0c98a;color:#6b3d00}
.banner.okb{background:#e6f4e7;border:1px solid #b9dfbd;color:#1f5f28}
.banner.nob{background:#fde7e7;border:1px solid #f2b8b8;color:#8f1d1d}
.actbox{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px;margin:12px 0}
.actbox.decide{border:2px solid #e08a00}
.actbox h4{margin:0 0 8px!important}
.actbox textarea{min-height:80px}
.inline.two{margin-top:10px}.inline.two .btn{flex:1}
.btn.okbtn{background:var(--ok)}.btn.okbtn:hover{background:#226026}
.btn.full2{width:100%;margin-top:14px}
.row3{display:grid;grid-template-columns:1fr 1.6fr 1.4fr;gap:10px}
@media (max-width:560px){.row3{grid-template-columns:1fr}}
.aplist{display:flex;flex-direction:column;gap:6px}
.apopt{display:flex;gap:10px;align-items:flex-start;margin:0;font-weight:400;padding:10px;border:1.5px solid #c5ccd4;border-radius:10px;cursor:pointer;background:#fff}
.apopt input{margin-top:3px;width:18px;height:18px;flex:none}
.apopt:has(input:checked){border-color:var(--brand);background:#eeecf7}
.timeline li.appr{background:#fff8ea;border-color:#f0d6a4}
.userlist2{padding:4px 14px}
.urow{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}
.urow:last-child{border-bottom:0}
.urow.off{opacity:.55}
.uinfo{min-width:0;overflow-wrap:anywhere}
.small{font-size:.86rem}
.uform{margin:0 0 14px}.uform h3{margin:0 0 4px;color:var(--brand)}
.uform .inline{margin-top:16px}
.uextra{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
label.check{display:flex;gap:8px;align-items:center;font-weight:400}
label.check input{width:18px;height:18px}
.creds{margin:0 0 14px;border:2px solid var(--ok)}
.creds h3{margin:0 0 8px;color:var(--ok)}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:1.05rem;font-weight:700}
.addgroup{margin:0 0 12px}
input[readonly]{background:#f3f2f7;color:var(--muted)}
.filelist{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-direction:column;gap:6px}
.filelist li{background:#f3f1fa;border:1px solid #dcd8ee;border-radius:8px;padding:8px 10px;font-size:.92rem;overflow-wrap:anywhere}
.linkbtn{background:none;border:0;color:var(--urgent);font:inherit;font-weight:600;cursor:pointer;padding:0 0 0 6px}
input[type=file]{font:inherit;max-width:100%}
.files{list-style:none;padding:0;margin:10px 0 0;display:flex;flex-direction:column;gap:6px}
.files li a{display:flex;gap:8px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 12px;text-decoration:none;overflow-wrap:anywhere}
.files img{width:56px;height:56px;object-fit:cover;border-radius:6px;flex:none}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.attachbtn{margin:10px 0 0;width:auto}
.fieldlabel{font-weight:600;margin:14px 0 6px}
.drop{border:2px dashed #b9b4d6;border-radius:12px;background:#faf9fd;padding:16px 12px;text-align:center;transition:background .15s,border-color .15s}
.drop.over{background:#eeecf7;border-color:var(--brand)}
.dropbtn{display:inline-block;margin:0;font-weight:700;color:var(--brand);background:#fff;border:1.5px solid var(--brand);border-radius:10px;padding:11px 16px;cursor:pointer}
.drop:focus-within .dropbtn{outline:3px solid var(--focus);outline-offset:2px}
.drophint{margin:8px 0 0}
.thumbs{list-style:none;padding:0;margin:10px 0 0;display:flex;flex-direction:column;gap:6px}
.thumbs li{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px 8px}
.thumbs img,.thumbs .ficon{width:48px;height:48px;border-radius:6px;object-fit:cover;flex:none;display:flex;align-items:center;justify-content:center;font-size:1.6rem;background:#f3f1fa}
.thumbs .fname{flex:1;min-width:0;font-size:.92rem;overflow-wrap:anywhere}
.thumbs .linkbtn{font-size:1.1rem;padding:6px 8px}
#description{min-height:140px}

/* ===== logo theme (navy + gold) ===== */
:root{--navy:#1c1a4a;--brand:#2a2560;--gold:#c9a24a;--gold-lt:#e0bd6a;--cream:#fbf8f0;--bg:#f4f0e4;--focus:#e0bd6a}
body{background:var(--bg)}
:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,162,74,.35)}
.card{background:var(--cream);border-color:#e6dcc0}
input[type=text],input[type=email],input[type=tel],input[type=password],input[type=search],select,textarea{background:#fff;border-color:#cfc6ae}
h2{color:var(--brand)}
.btn{background:var(--brand)}
.btn.full,#submitBtn,#aBtn,#pBtn{background:linear-gradient(180deg,var(--gold-lt),var(--gold));color:var(--navy);box-shadow:inset 0 -2px 0 rgba(0,0,0,.18)}
.btn.full:hover,#submitBtn:hover{background:var(--gold)}
/* inner-page header */
.topbar{background:linear-gradient(180deg,#26225a,var(--navy));border-bottom:3px solid var(--gold);box-shadow:none}
.topbar .he-title{color:var(--gold-lt)}
.topbar nav a{color:var(--gold-lt);border-color:var(--gold)}
.topbar nav a:hover{background:rgba(201,162,74,.15)}
/* home hero */
.hero{position:relative;text-align:center;color:#fff;padding:22px 16px 74px;background:
  radial-gradient(ellipse at 50% 38%,rgba(224,189,106,.20),rgba(224,189,106,0) 60%),
  linear-gradient(180deg,#2a2560 0%,#1c1a4a 100%);border-bottom:4px solid var(--gold)}
.hero::after{content:"";position:absolute;left:0;right:0;bottom:8px;height:1px;background:linear-gradient(90deg,transparent,rgba(224,189,106,.7),transparent)}
.hero-nav{position:absolute;top:14px;right:14px}
.hero-nav a{display:inline-block;color:var(--gold-lt);text-decoration:none;font-weight:700;font-size:.92rem;padding:7px 14px;border:1.5px solid var(--gold);border-radius:999px;background:rgba(28,26,74,.5)}
.hero-nav a:hover{background:rgba(201,162,74,.18)}
.hero-brand{display:inline-flex;flex-direction:column;align-items:center;text-decoration:none;margin-top:18px}
.hero-brand img{width:min(220px,56vw);height:auto;filter:drop-shadow(0 6px 18px rgba(0,0,0,.35))}
.hero-title{font-family:"Frank Ruhl Libre","David Libre","David","Times New Roman",serif;font-weight:900;font-size:clamp(2.6rem,11vw,4rem);line-height:1;margin:10px 0 0;color:var(--gold-lt);text-shadow:0 2px 0 rgba(0,0,0,.25)}
.hero-sub{margin:10px 0 0;color:#e9e4ff;letter-spacing:.12em;text-transform:uppercase;font-size:.78rem;font-weight:700}
main.home{max-width:640px;margin:-56px auto 0;padding:0 14px 16px;position:relative}
main.home .card{border-top:4px solid var(--gold);box-shadow:0 10px 30px rgba(28,26,74,.18)}
main.home h2{font-size:1.6rem}
.emailnote{background:#fbf3df;border-color:#ead7a6}
.loginnote{background:#f2f0fa}
@media (min-width:700px){.hero{padding-bottom:84px}.hero-brand img{width:230px}}
.drop{background:#fffdf6;border-color:#d9c48f}
.drop.over{background:#fbf3df;border-color:var(--gold)}
.dropbtn{color:var(--navy);border-color:var(--gold)}
.userbar{background:var(--cream);border:1px solid #e6dcc0;border-radius:10px;padding:8px 12px}
.maintabs button[aria-selected=true]{background:var(--navy);border-color:var(--navy);color:var(--gold-lt);box-shadow:inset 0 -3px 0 var(--gold)}
.tk{background:#fffefb;border-left-color:var(--gold)}
.pill.role{background:var(--navy);color:var(--gold-lt)}
.drawer{background:var(--bg)}
.drawer header{background:var(--navy);border-bottom:3px solid var(--gold)}
.drawer header h3{color:var(--gold-lt)}
.drawer header .btn.ghost{background:transparent;color:var(--gold-lt);border-color:var(--gold)}
.statusbar button[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:var(--gold-lt)}
.stat{background:var(--cream);border-color:#e6dcc0}
.links{display:flex;flex-direction:column;gap:8px}
.linkrow{display:grid;grid-template-columns:1fr 1.4fr auto;gap:8px;align-items:center}
@media (max-width:560px){.linkrow{grid-template-columns:1fr auto;padding:8px;border:1px solid #e6dcc0;border-radius:10px;background:#fffdf6}.linkrow .lname{grid-column:1}.linkrow .lurl{grid-column:1}.linkrow .linkbtn{grid-column:2;grid-row:1/3}}
.addlink{background:none;border:0;color:var(--brand);font:inherit;font-weight:700;padding:8px 0;cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--gold)}
.tlinks{list-style:none;padding:0;margin:10px 0 0;display:flex;flex-direction:column;gap:6px}
.tlinks a{display:block;background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 12px;font-weight:600;overflow-wrap:anywhere}
.tlinks .muted{font-weight:400}
.portal{text-align:center;padding:24px 18px}
.portal .sub{max-width:440px;margin:6px auto 18px}
.bigcta{font-size:1.25rem;padding:18px!important;border-radius:14px;margin-top:4px!important}
.portal-links{display:flex;gap:10px;justify-content:center;margin:14px 0 16px;flex-wrap:wrap}
.portal-links .btn{flex:1 1 200px}
.portal .emailnote{text-align:left;margin:0}
.formpage{padding-top:18px}
.topbar .brandlink .he-title{font-size:2.4rem}
@media (max-width:400px){.topbar .brandlink .he-title{font-size:1.9rem}}
.emerg{font-size:.95rem;color:var(--ink)}.emerg a,.emerg-inline a{font-weight:800;color:var(--urgent);white-space:nowrap}.emerg-inline{font-weight:600;margin:8px 0 0}
input[type=url]{width:100%;font:inherit;padding:11px 12px;border:1px solid #cfc6ae;border-radius:10px;background:#fff;color:var(--ink)}
.maintabs{flex-wrap:wrap;overflow:visible}
.tabs{scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}

.kbtoggle{display:inline-block;margin:6px 0 2px;font-size:13px;color:var(--muted);text-decoration:underline}
.uext{font-weight:700;color:var(--muted)}
input.locked{background:#f3f2f7;color:var(--ink);border-style:dashed}

/* institution logos row (home) */
.inst-footer{margin-top:26px;background:linear-gradient(180deg,#fcf9f1,#f4ecd8);border-top:3px solid var(--gold);padding:22px 14px 26px;text-align:center}
.inst-logos{display:flex;align-items:center;justify-content:center;gap:10px;max-width:760px;margin:0 auto}
.inst-logos img{display:block;height:auto;flex:0 1 auto;min-width:0}
.inst-logos .inst-a{width:76px}
.inst-logos .inst-main{width:96px}
.inst-logos .inst-b{width:106px}
.inst-sep{align-self:stretch;width:1px;margin:8px 0;background:linear-gradient(180deg,transparent,var(--gold),transparent);flex:none}
.inst-name{font-family:"Frank Ruhl Libre","David Libre","David","Times New Roman",serif;font-weight:700;color:var(--brand);font-size:1rem;margin:14px 0 0;letter-spacing:.02em}
@media (min-width:520px){.inst-footer{padding:30px 20px 32px}.inst-logos{gap:36px}.inst-logos .inst-a{width:140px}.inst-logos .inst-main{width:168px}.inst-logos .inst-b{width:210px}.inst-name{font-size:1.1rem}}

/* company directory (home) */
.home-more .dir-card{grid-column:1/-1}
.dir-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.dir-count{color:var(--muted);font-size:.9rem;white-space:nowrap}
.dir-sub{color:var(--muted);margin:2px 0 12px;font-size:.93rem}
.dir-sub a{color:var(--brand);font-weight:700;white-space:nowrap}
.dir-search{margin:0 0 10px}
.dir-search input{padding-left:38px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235f5d72' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center}
.dir-list{display:grid;gap:8px}
.dir-grp{border:1px solid #e6dcc0;border-radius:10px;background:#fff;overflow:hidden}
.dir-grp summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;cursor:pointer;font-weight:700;color:var(--brand);background:linear-gradient(180deg,#fff,#f8f3e4)}
.dir-grp summary::-webkit-details-marker{display:none}
.dir-grp summary::after{content:"";width:8px;height:8px;border-right:2px solid var(--gold);border-bottom:2px solid var(--gold);transform:rotate(45deg);margin:-4px 2px 0 auto;transition:transform .15s}
.dir-grp[open] summary::after{transform:rotate(-135deg);margin-top:4px}
.dir-grp[open] summary{border-bottom:1px solid #eee5cc}
.dir-dept{min-width:0;overflow-wrap:anywhere}
/* directory group chips (moshe 5:30 PM Oct 18: directory grouped by the system groups) */
.dir-chips{display:flex;gap:8px;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:0 -2px 12px;padding:2px 2px 4px}
.dir-chips[hidden]{display:none}.dir-chips::-webkit-scrollbar{display:none}
.dir-chip{flex:none;font:inherit;font-size:.9rem;font-weight:600;padding:7px 14px;border-radius:999px;border:1.5px solid #e2d6b2;background:#fff;color:var(--brand);cursor:pointer;white-space:nowrap}
.dir-chip:hover{background:#faf5e6}
.dir-chip[aria-selected="true"]{background:var(--brand);border-color:var(--brand);color:#fff}
.dgf{display:flex;align-items:center;gap:10px;margin:0 0 10px}.dgf label{font-weight:700;margin:0}.dgf select{max-width:340px}
.dgchip{display:inline-block;margin-left:8px;padding:1px 9px;border-radius:999px;background:#eeecf7;color:var(--brand);font-size:.76rem;font-weight:700;vertical-align:1px}
.dgchip.none{background:#f3f1ea;color:#8a8799;font-weight:600}
.dir-n{flex:none;font-size:.8rem;font-weight:700;color:var(--navy);background:#f1e6c6;border-radius:999px;padding:1px 8px}
.dir-ul{list-style:none;margin:0;padding:0 14px}
.dir-list>.dir-ul{background:#fff;border:1px solid #e6dcc0;border-radius:10px}
.dir-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f0ead8}
.dir-row:last-child{border-bottom:0}
.dir-who{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.dir-name{color:var(--ink);overflow-wrap:anywhere}
.dir-title{color:var(--muted);font-size:.88rem;overflow-wrap:anywhere}
.dir-contact{display:flex;flex-wrap:wrap;gap:2px 12px;font-size:.88rem}
.dir-contact a{color:var(--brand);text-decoration:none;font-weight:600;overflow-wrap:anywhere}
.dir-contact a:hover{text-decoration:underline}
.dir-ext{flex:none;display:inline-flex;align-items:baseline;gap:4px;min-width:64px;justify-content:center;padding:8px 10px;border-radius:10px;background:var(--navy);color:var(--gold-lt);font-weight:800;font-size:1.02rem;text-decoration:none;box-shadow:inset 0 -2px 0 var(--gold)}
.dir-ext small{font-size:.7rem;font-weight:700;color:#d9d4f0;text-transform:uppercase;letter-spacing:.03em}
.dir-ext:hover{background:#2a2560}
.dir-none{margin:10px 0 0}
.dir-toggle{margin-top:12px;width:100%}
/* company directory (admin) */
.dirtools{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.dirtools .btn{flex:1 1 auto}
.drow{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--line)}
.drow:last-child{border-bottom:0}
.drow .dinfo{flex:1;min-width:0;overflow-wrap:anywhere}
.drow .dmove{display:flex;flex-direction:column;gap:4px;flex:none}
.drow .dmove button{width:34px;height:28px;padding:0;border:1px solid #d8cfb3;background:#fff;border-radius:7px;color:var(--brand);font-size:.8rem;cursor:pointer}
.drow .dmove button:disabled{opacity:.3;cursor:default}
.dgrp-h{margin:14px 0 2px;font-size:.8rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--gold)}
.dgrp-h:first-child{margin-top:0}
.imp textarea{min-height:150px;font:13px/1.4 ui-monospace,Menlo,Consolas,monospace;white-space:pre;overflow-wrap:normal;overflow-x:auto}
.mapgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:6px 0 0}
.mapgrid label{margin:0;font-size:.82rem;font-weight:600;color:var(--muted)}
.mapgrid select{padding:8px;font-size:.9rem;margin-top:3px}
.prevwrap{overflow-x:auto;margin:12px 0 0;border:1px solid var(--line);border-radius:10px;background:#fff}
.prev{border-collapse:collapse;font-size:.85rem;min-width:100%}
.prev th,.prev td{padding:6px 8px;border-bottom:1px solid #f0ead8;text-align:left;white-space:nowrap;max-width:220px;overflow:hidden;text-overflow:ellipsis}
.prev th{background:#f8f3e4;color:var(--brand);position:sticky;top:0}
.prev tr.sec td{font-weight:800;color:var(--gold);background:#fffbf0}
.modes{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 0}
.modes label{margin:0;font-weight:600;display:flex;gap:6px;align-items:center;padding:9px 12px;border:1.5px solid #c5ccd4;border-radius:10px;background:#fff;flex:1 1 160px}
.dir-subh{list-style:none;margin:6px 0 0;padding:8px 0 4px;border-bottom:1px solid #eee5cc;font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:#a3842f}
.dir-gap{height:0;border-top:2px solid #eee5cc;margin:2px 0}
.dir-contact small{font-weight:600;color:var(--muted)}
.dsec-h{margin:8px 0 0;font-size:.74rem;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.extinput{max-width:220px}
.extwho{margin:6px 0 0;min-height:1.2em;font-size:.92rem;font-weight:600;color:var(--muted)}
.extwho.ok{color:var(--ok)}
.extwho.warn{color:#9a6a00}
.dir-toggle[hidden],.dir-search[hidden]{display:none}

/* home tiles (Company Directory now; Help articles / Links later) */
.home-more{display:flex;flex-wrap:wrap;gap:14px;margin-top:16px}
.home-more[hidden],.home-tile[hidden]{display:none}
.home-more.home-row{margin:30px 0 4px}
.home-row .home-tile{flex-basis:100%}
@media (min-width:700px){.home-more.home-row{margin-top:34px}.home-row .home-tile{flex-basis:250px}}
.home-tile{flex:1 1 250px;display:flex;align-items:center;gap:14px;min-height:84px;padding:16px 18px;border-radius:14px;text-decoration:none;color:#fff;
  background:radial-gradient(ellipse at 15% 0%,rgba(224,189,106,.18),rgba(224,189,106,0) 55%),linear-gradient(180deg,#2a2560,#1c1a4a);
  border:1px solid #3a3577;border-bottom:4px solid var(--gold);box-shadow:0 10px 26px rgba(28,26,74,.20);transition:transform .12s,box-shadow .12s}
.home-tile:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(28,26,74,.26)}
.home-tile:active{transform:translateY(1px)}
.tile-icon{flex:none;width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--gold-lt);border:1.5px solid var(--gold);background:rgba(201,162,74,.12)}
.tile-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tile-title{font-size:1.18rem;font-weight:800;color:var(--gold-lt);letter-spacing:.01em}
.tile-sub{font-size:.92rem;color:#d9d4f0}
.tile-count{color:#b9b3dc;white-space:nowrap}
@media (max-width:440px){.tile-count{display:none}}
.tile-go{flex:none;width:11px;height:11px;border-top:2.5px solid var(--gold);border-right:2.5px solid var(--gold);transform:rotate(45deg);margin-right:4px}
/* /directory page */
.dir-page .dir-head h2{margin-bottom:2px}

/* delete ticket (admin, Oct 18) */
.dangerzone{margin-top:28px;padding-top:16px;border-top:1px dashed var(--line);text-align:left}
.btn.delbtn{background:var(--urgent);border-color:var(--urgent);color:#fff;width:100%;max-width:320px;justify-content:center}
.btn.delbtn:hover{background:#a51f1f;border-color:#a51f1f}
.btn.delbtn:disabled{opacity:.6;cursor:default}
.dangerzone p{margin:8px 0 0}

/* default assignee card (Users tab) */
.asgcard{margin-bottom:14px}
.asgcard label{display:block;font-weight:700;margin:0 0 6px}
.asgcard p{margin:8px 0 0}
/* reply box with recipients (v6) */
.replybox{margin-top:6px}
.rto{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 8px}
.rto-lbl{font-weight:700;font-size:.9rem;margin-right:2px}
.rtoopt{display:inline-flex;align-items:center;gap:6px;border:1.5px solid var(--line);border-radius:999px;padding:6px 12px;background:#fff;cursor:pointer;font-size:.92rem;margin:0}
.rtoopt input{margin:0;width:18px;height:18px;flex:none}
.rtoopt:has(input:checked){border-color:var(--brand);background:#eef0fb}
.rhint{margin:6px 0 0}
.rto-line{font-size:.82rem;color:var(--muted);margin-top:2px}
.timeline li.internal{background:#f6f6fb;border-left:4px solid #9a97c9}
@media (max-width:480px){.rtoopt{flex:1 1 calc(50% - 8px)}}
/* voicemail recordings */
.files li.audio-li{background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 12px}
.files li.audio-li a{display:inline;border:0;padding:0;background:none}
.files audio{display:block;width:100%;margin:6px 0 4px}

/* ext 965 voicemail-to-ticket line on the home ticket card (moshe, Oct 18 3:23 PM) */
.portal .phonenote{margin-top:10px}
.portal .phonenote a{white-space:nowrap}

/* the sender adds to their ticket (moshe 3:33 PM Oct 18) */
.addbox{background:#fffbf0;border:2px solid var(--gold);border-radius:12px;padding:12px 14px;margin:14px 0}
.addbox h4{margin:0 0 4px!important;color:var(--navy);font-size:1.08rem}
.addbox .addhint{margin:0 0 8px}
.addbox textarea{min-height:90px;background:#fff}
.addrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;margin-top:8px}
.addrow .btn.small{margin:0;width:auto}
.addsend{width:auto;margin:0;background:linear-gradient(180deg,var(--gold-lt),var(--gold));color:var(--navy);box-shadow:inset 0 -2px 0 rgba(0,0,0,.18)}
.filechips{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.filechips li{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:6px 10px;font-size:.9rem;overflow-wrap:anywhere}
.chipx{border:0;background:none;font-size:1rem;cursor:pointer;color:var(--muted);padding:2px 6px}
.timeline li.upd{background:#fffbf0;border-left:4px solid var(--gold)}
@media (max-width:480px){.addrow{flex-direction:column;align-items:stretch}.addrow .btn,.addsend{width:100%;text-align:center}}
/* WhatsApp share (moshe 3:34 PM Oct 18) */
.wabtn{border-color:#25d366!important}
.wabox{border:2px solid #25d366}
.wabox label{margin-top:8px}
.wa-hint{margin:4px 0 0}
.warow{margin-top:10px;align-items:center}
.btn.wago{background:#25d366;color:#0b3d1f;text-decoration:none;text-align:center;font-weight:800;display:inline-block}
.btn.wago.disabled{opacity:.5;pointer-events:auto;cursor:not-allowed}
.wa-on{margin:6px 0 0}
.timeline li.wa{border-left-color:#25d366}
.share-files{list-style:none;padding:0;margin:8px 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.share-files li a{display:block;text-decoration:none;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:6px;background:#fff;overflow-wrap:anywhere;font-size:.88rem}
.share-files img{width:100%;height:120px;object-fit:cover;border-radius:6px;display:block;margin-bottom:4px}
.addjump{display:inline-flex;align-items:center;gap:4px;margin:10px 0 2px;padding:8px 14px;border:2px solid var(--gold);border-radius:999px;background:#fffbf0;color:var(--navy);font:inherit;font-weight:800;cursor:pointer}

/* moshe 4:29 PM Oct 18 "remove this": the gold divider line + diamond under the Hebrew name is gone from the header; 4:33 PM "remove the background": building photo backgrounds removed (plain navy hero, cream page as before). */

/* Transfer to… (moshe 4:51 PM Oct 18) */
.xfer{margin-top:14px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--cream,#fbf8f0)}
.xfer h4{margin-top:0}
.xf-now{margin:0 0 8px;font-size:.92rem;color:var(--muted)}
.xf-now b{color:var(--ink)}
.xfer input[type=search]{width:100%;box-sizing:border-box}
.xflist{margin:8px 0 4px;max-height:220px;overflow-y:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:10px;background:#fff}
.xflist p{margin:10px 12px}
.xfp{display:flex;flex-direction:column;align-items:flex-start;gap:1px;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid var(--line);padding:9px 12px;font:inherit;color:var(--ink);cursor:pointer;min-height:44px}
.xfp:last-child{border-bottom:0}
.xfp:hover{background:#f7f5fb}
.xfp.sel{background:#eceaf7;box-shadow:inset 4px 0 0 var(--gold)}
.xfp[disabled]{opacity:.55;cursor:default}
.xfn{font-weight:700;overflow-wrap:anywhere}
.xfs{font-size:.83rem;color:var(--muted);overflow-wrap:anywhere}
.xfer textarea{width:100%;box-sizing:border-box}
.timeline li.xfr{background:#f6f6fb;border-left:4px solid var(--brand)}
.xfer .err:empty{display:none}
.xfer .btn.full{margin-top:10px}

/* ===== big ticket pane (moshe 5:21 PM Oct 18 "need the tickets should open in bigger pane") =====
   Phones: full-screen pane, blocks stack in the old order. From 700px: a large centered panel (max 1240px).
   From 980px: two columns — conversation left, ticket info + actions right. */
.drawer header{justify-content:flex-start}
.drawer header h3{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drawer header .backbtn{flex:none;font-weight:800;white-space:nowrap}
.drawer header .esc-hint{display:none;color:#cfc8a8;font-size:.8rem;white-space:nowrap}
.drawer{width:100%}
.dcols{display:flex;flex-direction:column}
.dmain,.dside{display:contents}
.dk{min-width:0}
.dk-decide{order:1}.dk-info{order:2}.dk-conv{order:3}.dk-act{order:4}.dk-talk{order:5}.dk-danger{order:7}
.dk-info .sidehd{display:none}
.dk-conv .desc{margin-top:12px}
.dtop .meta{margin-bottom:6px}
.ticket-photo{max-height:70vh;object-fit:contain;background:#fff}
@media (min-width:700px){
  .overlay{justify-content:center;align-items:center;padding:16px}
  .drawer{width:min(1240px,100%);height:100%;max-height:calc(100vh - 32px);border-radius:14px;box-shadow:0 18px 60px rgba(10,12,40,.35);overflow-y:auto}
  .drawer header{padding:12px 22px;border-radius:14px 14px 0 0}
  .drawer header .esc-hint{display:inline}
  .drawer .body{padding:20px 26px 10px;font-size:1.02rem}
  .dt-title{font-size:1.5rem;margin-bottom:10px}
  .drawer h4{font-size:.9rem}
  .kv{grid-template-columns:120px 1fr;font-size:1rem}
  .timeline li{font-size:.98rem;padding:11px 14px}
  .desc{padding:14px 16px;font-size:1.02rem;line-height:1.5}
}
@media (min-width:980px){
  .dcols{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:28px;align-items:start}
  .dmain,.dside{display:block;min-width:0}
  .dk-info{background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px 16px 14px}
  .dk-info .sidehd{display:block;margin-top:10px}
  .dk-act{background:#fff;border:1px solid var(--line);border-radius:12px;padding:2px 16px 16px;margin-top:14px}
  .dk-act > h4:first-child{margin-top:12px}
  .dk-decide .actbox{margin-top:0}
  .dk-act .xfer h4{margin-top:18px}
  .dk-conv h4:first-child{margin-top:0}
  .dk-conv .desc:first-child{margin-top:0}
  .dk-talk h4{margin-top:22px}
  .dk-talk .replybox textarea{min-height:130px}
  .dk-danger .dangerzone{margin-top:18px}
  .ticket-photo{max-height:520px}
  .dk-conv .files img{width:132px;height:99px;border-radius:8px}
}
@media (min-width:1200px){ .dcols{grid-template-columns:minmax(0,1fr) 400px;gap:32px} }

/* ===== split view (moshe 5:30 PM Oct 18 "leave the ticket list on a small pane on the left side") =====
   Only when body.split is set by app.js: width >= 1000px AND a ticket tab is showing (not Users/Groups/Directory).
   The page stops scrolling; the list is a narrow column on the left that scrolls on its own, and the open ticket
   (#overlay/.drawer) is an in-page pane on the right — no backdrop, no modal. Below 1000px nothing here applies. */
.drawer header .closex{display:none}
.split-empty{display:none}
body.split{height:100vh;height:100dvh;overflow:hidden;display:grid;grid-template-columns:340px minmax(0,1fr);grid-template-rows:auto auto auto minmax(0,1fr) auto}
body.split > .topbar{grid-column:1/-1;grid-row:1}
body.split .topbar .in{max-width:none;padding-left:18px;padding-right:18px}
body.split > main{display:contents}
body.split .userbar{grid-column:1/-1;grid-row:2;margin:12px 16px 10px}
body.split #tabs{grid-column:1/-1;grid-row:3;margin:0 16px 10px}
body.split #view{grid-column:1;grid-row:4;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin-left:16px;padding:2px 6px 14px 3px;scrollbar-width:thin}
body.split main > .footer{grid-column:1;grid-row:5;margin:6px 6px 10px 16px;font-size:.78rem}
/* list column: compact header, stats and filters */
body.split .viewhead{margin:0 0 8px}
body.split .viewhead h2{font-size:1.15rem}
body.split .viewhead .sub{display:none}
body.split .stats{grid-template-columns:repeat(2,1fr);gap:6px;margin-bottom:8px}
body.split .stat{padding:6px 10px;display:flex;align-items:baseline;gap:7px}
body.split .stat b{display:inline;font-size:1.1rem}
body.split .stat span{font-size:.75rem;line-height:1.2}
body.split .filters{grid-template-columns:1fr 1fr;gap:6px;margin-bottom:8px}
body.split .filters select[aria-label="Assigned to"]{grid-column:1/-1}
body.split .filters > :first-child:has(+ select[aria-label="Assigned to"]),body.split .filters > :first-child:has(+ .q){grid-column:1/-1}
body.split .filters .q{grid-column:1/-1}
body.split .filters select,body.split .filters input{padding:7px 8px;font-size:.88rem}
body.split .list{gap:6px}
/* compact cards: #, title, status chip, sender, assignee, time */
body.split .tk{padding:9px 11px;border-radius:9px;border-left-width:4px}
body.split .tk .ttl{font-size:.94rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.split .tk .id{font-size:.8rem}
body.split .tk .meta{margin-top:5px;gap:4px}
body.split .tk .meta .pill{font-size:.72rem;padding:1px 7px}
body.split .tk .meta .pill.inst,body.split .tk .meta .pill.email,body.split .tk .meta .pill.mine{display:none}
body.split .tk .who{margin-top:4px;font-size:.8rem;line-height:1.3}
body.split .tk.on{background:#efedf9;border-color:var(--navy);border-left-color:var(--navy);box-shadow:0 0 0 1px var(--navy) inset}
body.split .tk.on .ttl{color:var(--navy)}
/* right side: the ticket pane */
body.split .overlay{grid-column:2;grid-row:4/6;position:static;inset:auto;z-index:auto;background:none;display:flex;padding:0;margin:0 16px 14px 14px;min-height:0;justify-content:stretch;align-items:stretch}
body.split .overlay.hidden{display:flex!important}
body.split .overlay.hidden .drawer{display:none}
body.split .drawer{width:100%;height:auto;max-height:none;flex:1;min-height:0;border-radius:14px;box-shadow:0 6px 24px rgba(28,26,74,.12);border:1px solid var(--line);overflow-y:auto;container-type:inline-size;padding-bottom:24px}
body.split .drawer header{padding:10px 18px;border-radius:13px 13px 0 0}
body.split .drawer header .backbtn,body.split .drawer header .esc-hint{display:none}
body.split .drawer header .closex{display:inline-block;flex:none;font-weight:700;white-space:nowrap}
body.split .drawer .body{padding:18px 22px 8px}
/* pane narrower than ~860px (e.g. 1000–1250px screens): stack info under conversation, in the phone order */
body.split .dcols{display:flex;flex-direction:column;gap:0}
body.split .dmain,body.split .dside{display:contents}
body.split .dk-act{margin-top:14px}
body.split .dk-info{margin-top:4px}
@container (min-width:860px){
  body.split .dcols{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}
  body.split .dmain,body.split .dside{display:block;min-width:0}
  body.split .dk-info{margin-top:0}
}
@container (min-width:1150px){ body.split .dcols{grid-template-columns:minmax(0,1fr) 390px;gap:30px} }
/* nothing selected */
body.split .overlay.hidden .split-empty{display:flex;flex:1;align-items:center;justify-content:center;text-align:center;border:2px dashed #e1d8bd;border-radius:14px;background:#fbf8f0;color:var(--muted)}
.split-empty b{display:block;font-size:1.15rem;color:var(--navy);margin-bottom:4px}
.split-empty span{font-size:.92rem}
