:root{
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:#14213d;background:#f5f7fb;
  --brand:#0b66e8;--brand2:#084fae;--brand-soft:#eaf3ff;--ink:#14213d;--muted:#6b7890;
  --card:#fff;--line:#e5eaf2;--danger:#d92d20;--warn:#b76e00;--ok:#12a66a;
  --shadow:0 8px 26px rgba(27,52,93,.07);--shadow-lg:0 18px 48px rgba(27,52,93,.12)
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#f5f7fb}body{padding:env(safe-area-inset-top) env(safe-area-inset-right) calc(80px + env(safe-area-inset-bottom)) env(safe-area-inset-left);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}.hidden{display:none!important}.screen{max-width:940px;margin:0 auto;padding:16px 16px 28px}.login-wrap{min-height:88vh;display:grid;place-items:center}.login-card{width:min(100%,440px);background:var(--card);border:1px solid var(--line);border-radius:28px;padding:30px;box-shadow:var(--shadow-lg)}.logo{width:78px;height:78px;border-radius:22px;object-fit:contain;display:block;margin:0 auto 14px}.center{text-align:center}.brand{font-weight:850;font-size:29px;letter-spacing:-.7px}.subtitle{color:var(--muted);margin:6px 0 24px}.topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:10px 16px;background:rgba(255,255,255,.92);border-bottom:1px solid rgba(229,234,242,.9);backdrop-filter:blur(18px)}.topbar>div{min-width:0}.brand-mini{font-weight:850;color:#10254a;font-size:17px;letter-spacing:-.2px}.top-logo{display:flex;align-items:center;gap:10px}.top-logo img{width:34px;height:34px;border-radius:10px}.icon-btn{border:1px solid var(--line);background:#fff;border-radius:13px;padding:8px 12px;font-size:20px;box-shadow:0 4px 12px rgba(27,52,93,.05)}
.bottom-nav{position:fixed;z-index:25;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(4,1fr);gap:2px;background:rgba(255,255,255,.96);border-top:1px solid var(--line);padding:8px 8px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -8px 26px rgba(20,45,80,.07);backdrop-filter:blur(16px)}.bottom-nav button{border:0;background:transparent;padding:7px 4px;border-radius:14px;color:#718096;font-size:11px;font-weight:650;display:flex;flex-direction:column;align-items:center;gap:2px;transition:.18s ease}.bottom-nav button.active{background:var(--brand-soft);color:var(--brand2);font-weight:800}.nav-ico{font-size:20px;line-height:1}
.page-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin:4px 0 14px}.page-head h1{margin:0;font-size:25px;letter-spacing:-.5px}.page-head p{margin:5px 0 0;color:var(--muted);line-height:1.4}.card{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:16px;margin:12px 0;box-shadow:0 5px 18px rgba(27,52,93,.045)}.soft-card{background:#f9fbff}.grid{display:grid;gap:11px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{padding:14px;border-radius:17px;background:#fff;border:1px solid var(--line);min-height:86px}.stat .n{font-size:25px;font-weight:850;line-height:1}.stat .l{font-size:12px;color:var(--muted);margin-top:6px}.stat.primary{background:linear-gradient(145deg,#eff6ff,#fff);border-color:#d9e8ff}.field{display:flex;flex-direction:column;gap:7px;margin:12px 0}.field label{font-size:13px;font-weight:750;color:#43526b}.field input,.field select,.field textarea{width:100%;padding:13px 14px;border:1px solid #d7deea;border-radius:13px;background:#fff;color:var(--ink);outline:none;transition:.16s ease}.field textarea{min-height:96px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(11,102,232,.10)}.row{display:flex;gap:10px;align-items:center}.between{justify-content:space-between}.row.wrap{flex-wrap:wrap}.btn{border:0;border-radius:13px;padding:12px 15px;background:linear-gradient(135deg,var(--brand),#1682f5);color:#fff;font-weight:780;cursor:pointer;box-shadow:0 5px 14px rgba(11,102,232,.16);transition:transform .15s ease,box-shadow .15s ease}.btn:active{transform:scale(.985)}.btn:disabled{opacity:.55}.btn.secondary{background:#eef4ff;color:#164f9d;box-shadow:none}.btn.ghost{background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:none}.btn.danger{background:#fff0ef;color:#b42318;box-shadow:none}.btn.warn{background:#fff6e5;color:#8a5700;box-shadow:none}.btn.full{width:100%}.btn.sm{padding:8px 10px;font-size:13px}.link-btn{border:0;background:none;padding:8px 0;color:var(--brand2);font-weight:750}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:800;background:#edf1f6;color:#536078}.pill.Pending{background:#fff4d9;color:#8a5c00}.pill.Approved{background:#e8f2ff;color:#0a5bad}.pill.Inside{background:#e8f8f1;color:#08704a}.pill.Completed{background:#eef1f5;color:#536078}.pill.Rejected,.pill.Cancelled,.pill.Expired{background:#ffebe9;color:#a52a20}.muted{color:var(--muted)}.small{font-size:12px}.note{font-size:13px;color:var(--muted);line-height:1.5}.visit-title{font-size:18px;font-weight:820}.visit-meta{display:grid;gap:5px;margin-top:8px;font-size:14px}.sep{height:1px;background:var(--line);margin:12px 0}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:end}.toolbar .field{margin:0;min-width:150px;flex:1}.drawer{position:fixed;inset:0;z-index:50;background:rgba(8,20,44,.42);display:flex;justify-content:flex-end}.drawer-panel{height:100%;width:min(90vw,400px);background:#f8faff;padding:18px;overflow:auto;box-shadow:-18px 0 45px rgba(0,0,0,.16)}.drawer-head{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px}.menu-list{display:grid;gap:8px;margin-top:14px}.menu-list button{width:100%;text-align:left;border:1px solid var(--line);background:#fff;border-radius:14px;padding:13px 14px;color:#243653;font-weight:690}.menu-list .menu-danger{color:#b42318}.modal{position:fixed;inset:0;z-index:60;background:rgba(8,20,44,.50);display:grid;place-items:center;padding:16px}.modal-card{width:min(100%,580px);max-height:88vh;overflow:auto;background:#fff;border-radius:22px;padding:19px;box-shadow:0 20px 60px rgba(0,0,0,.22)}.modal-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.modal-head h2{margin:0}.close{border:0;background:#eef2f7;border-radius:999px;width:36px;height:36px}.photo-preview{width:100%;max-height:340px;object-fit:contain;background:#eef2f7;border-radius:16px}.toast{position:fixed;z-index:100;left:50%;transform:translateX(-50%);bottom:94px;background:#11213c;color:#fff;padding:11px 15px;border-radius:13px;box-shadow:var(--shadow);max-width:88vw;font-size:14px}.danger-text{color:var(--danger)}.ok-text{color:var(--ok)}.install-box{background:#eef7ff;border-color:#d2e8ff}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px}.table{width:100%;border-collapse:collapse;min-width:560px}.table th,.table td{padding:11px;border-bottom:1px solid var(--line);text-align:left;font-size:13px}.table th{background:#f6f8fc;position:sticky;top:0}.empty{text-align:center;color:var(--muted);padding:30px 12px}.switch-row{display:flex;justify-content:space-between;align-items:center;gap:14px}.checkbox{width:20px;height:20px}.kicker{font-size:11px;text-transform:uppercase;letter-spacing:.09em;color:var(--brand2);font-weight:850}.hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#0b5fd4,#1685f8);color:white;border-radius:24px;padding:20px;margin:4px 0 14px;box-shadow:0 14px 32px rgba(11,102,232,.22)}.hero:after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.10);right:-55px;top:-72px}.hero h1{margin:0 0 5px;font-size:27px;letter-spacing:-.5px}.hero .muted{color:#e6f2ff}.hero-meta{font-size:13px;opacity:.95}.home-section{margin:18px 0 8px}.home-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.home-section-head h2{font-size:17px;margin:0}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-tile{border:1px solid var(--line);background:#fff;border-radius:18px;padding:14px;text-align:left;min-height:94px;box-shadow:0 4px 16px rgba(27,52,93,.04);cursor:pointer}.quick-icon{width:38px;height:38px;border-radius:12px;background:var(--brand-soft);display:grid;place-items:center;font-size:19px;margin-bottom:10px}.quick-title{font-weight:800;color:#203352}.quick-sub{font-size:12px;color:var(--muted);margin-top:3px;line-height:1.35}.focus-card{display:flex;justify-content:space-between;align-items:center;gap:14px;background:linear-gradient(135deg,#0f6ce8,#1392f3);color:white;border:0}.focus-card .kicker{color:#dceeff}.focus-card .focus-n{font-size:28px;font-weight:900;line-height:1}.focus-card .focus-copy{font-size:13px;color:#eaf5ff;margin-top:5px}.focus-card .btn{background:#fff;color:#0b5dc8;box-shadow:none;white-space:nowrap}.update-row{display:flex;gap:12px;align-items:flex-start}.update-icon{flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#edf4ff;display:grid;place-items:center}.update-row h3{margin:0 0 3px;font-size:15px}.update-row p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}.offline{background:#fff1f0;color:#9d2218;border-bottom:1px solid #f2c5c1;padding:7px 12px;text-align:center;font-size:13px}.loading{opacity:.65;pointer-events:none}
@media(max-width:620px){.screen{padding:12px}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.grid-2{grid-template-columns:1fr}.toolbar{display:grid;grid-template-columns:1fr 1fr}.toolbar .field{min-width:0}.page-head h1{font-size:22px}.login-card{border-radius:24px;padding:22px}.actions .btn{flex:1 1 auto}.stat{padding:12px;min-height:78px}.stat .n{font-size:22px}.stat .l{font-size:11px}.focus-card{align-items:flex-end}.topbar{padding-left:12px;padding-right:12px}}
@media(min-width:850px){.bottom-nav{left:50%;transform:translateX(-50%);max-width:940px;border-left:1px solid var(--line);border-right:1px solid var(--line);border-radius:18px 18px 0 0}.quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

.unread-badge{display:inline-block;background:#b91c1c;color:#fff;border-radius:20px;min-width:22px;padding:2px 6px;margin-left:6px;font-size:12px;font-weight:700;line-height:18px;text-align:center}.unread-badge[hidden]{display:none}

/* Victora Connect 2.7.3 – synced Android/iPhone company-update detail experience */
.compact-hero{display:flex;align-items:center;justify-content:space-between;min-height:118px;padding:20px 22px}.hero-kicker{color:#dceeff}.hero-mark{position:relative;z-index:1;width:58px;height:58px;border-radius:18px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);display:grid;place-items:center;font-weight:900;letter-spacing:.06em}.plant-card{padding-top:10px;padding-bottom:10px}.plant-card .field{margin:0}.stat-grid{margin:10px 0 2px}.home-layout{display:grid;grid-template-columns:1fr;gap:18px}.home-main,.home-side{min-width:0}.side-updates{margin-top:0}.unread-update{border-color:#cfe0ff;box-shadow:0 8px 22px rgba(11,102,232,.08)}.update-photo{flex:0 0 58px;width:58px;height:58px;object-fit:cover;border-radius:14px;background:#eef2f7}.notice-card{overflow:hidden}.notice-photo{width:100%;max-height:320px;object-fit:cover;border-radius:15px;margin-bottom:14px;background:#eef2f7}.notice-body{white-space:pre-wrap;line-height:1.55;color:#263955;margin:8px 0 12px}.notice-image-editor{padding:14px}.pipeline-card{padding:15px}.pipe-row{display:grid;grid-template-columns:72px 1fr 30px;gap:10px;align-items:center;margin:11px 0;font-size:12px;color:#536078}.pipe-row b{text-align:right;color:#203352}.pipe-track{height:8px;border-radius:999px;background:#edf1f6;overflow:hidden}.pipe-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0b66e8,#3ba2ff)}
@media(max-width:620px){.compact-hero{min-height:108px;padding:18px}.hero-mark{width:48px;height:48px;border-radius:15px}.notice-photo{max-height:240px}.update-photo{width:50px;height:50px;flex-basis:50px}}
@media(min-width:860px){.home-layout{grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);align-items:start}.home-side{position:sticky;top:82px}.side-updates .update-row{margin-top:10px}.pipeline{margin-top:16px}}
@media(min-width:1000px){body{padding-left:208px;padding-bottom:22px}.screen{max-width:1180px;padding:20px 24px 38px}.bottom-nav{left:16px;right:auto;top:78px;bottom:18px;transform:none;width:176px;max-width:none;border:1px solid var(--line);border-radius:22px;padding:10px;grid-template-columns:1fr;grid-template-rows:repeat(4,54px);align-content:start;box-shadow:var(--shadow);background:rgba(255,255,255,.97)}.bottom-nav button{flex-direction:row;justify-content:flex-start;gap:11px;padding:11px 12px;font-size:13px;border-radius:13px}.bottom-nav button.active{background:var(--brand-soft)}.nav-ico{font-size:19px;width:24px;text-align:center}.topbar{padding-left:24px;padding-right:24px}.toast{left:calc(50% + 104px)}.quick-tile{min-height:102px}.page-head h1{font-size:27px}}

/* 2.7.3 full company-update detail view */
.notice-card{cursor:pointer}.notice-preview{display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}.notice-detail{padding-top:8px}.notice-detail-meta{margin:8px 0 12px}.notice-detail-title{font-size:24px;line-height:1.25;margin:10px 0 14px;color:var(--ink)}.notice-detail-photo{display:block;width:100%;max-height:58vh;object-fit:contain;background:#eef2f7;border-radius:16px;margin:10px 0 16px}.notice-detail-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.65;color:#263955;margin:10px 0 16px}.notice-detail-expiry{margin-bottom:16px}
@media(max-width:620px){.notice-detail-title{font-size:21px}.notice-detail-photo{max-height:48vh}.notice-detail-body{font-size:15px}}

/* Victora Connect 2.7.4 UI upgrade */
.top-actions{display:flex;align-items:center;gap:8px}.bell-btn{position:relative}.bell-badge{position:absolute;right:-3px;top:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#e53935;color:#fff;font-size:10px;font-weight:900;display:grid;place-items:center;border:2px solid #fff}.bell-badge[hidden]{display:none}.quick-tile{position:relative;border:0;background:linear-gradient(145deg,#fff,#f8fbff);box-shadow:0 8px 22px rgba(25,52,92,.08)}.quick-icon{font-size:22px}.tone-blue .quick-icon{background:#e6f1ff}.tone-green .quick-icon{background:#e6f8ef}.tone-orange .quick-icon{background:#fff0df}.tone-pink .quick-icon{background:#ffe9f2}.tone-purple .quick-icon{background:#f1eaff}.tone-blue{border-bottom:3px solid #4389f5}.tone-green{border-bottom:3px solid #36ad76}.tone-orange{border-bottom:3px solid #f59b45}.tone-pink{border-bottom:3px solid #e7659b}.tone-purple{border-bottom:3px solid #8d6bd1}.birthday-grid{display:grid;gap:12px}.birthday-card{display:flex;align-items:center;gap:16px;background:linear-gradient(135deg,#fff8fc,#fff)}.birthday-avatar,.profile-avatar{width:72px;height:72px;border-radius:22px;background:#f1eaff;display:grid;place-items:center;overflow:hidden;font-size:28px;font-weight:900;flex:0 0 auto}.birthday-avatar img,.profile-avatar img{width:100%;height:100%;object-fit:cover}.birthday-wish{color:var(--muted);line-height:1.5}.profile-card{text-align:center;max-width:520px;margin:auto}.profile-avatar{width:104px;height:104px;border-radius:32px;margin:0 auto 12px;position:relative}.profile-avatar img:not([src]){display:none}.profile-card input{margin:18px 0}.home-section{margin-top:14px}.quick-grid{gap:12px}@media(min-width:700px){.birthday-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.header-avatar{width:42px;height:42px;border-radius:50%;border:2px solid #e5eaf2;background:#eef3fb;overflow:hidden;padding:0;display:grid;place-items:center;position:relative;cursor:pointer}.header-avatar img{width:100%;height:100%;object-fit:cover;display:none}.header-avatar img[src]{display:block}.header-avatar span{font-weight:900;color:#315a8d}.header-avatar img[src]+span{display:none}.top-actions{margin-left:auto}.dob-required{color:#b91c1c;font-weight:800}
/* Build 23 UI cleanup */
.birthday-count-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-left:6px;border-radius:999px;background:#e7659b;color:#fff;font-size:11px;font-weight:900;vertical-align:middle}.birthday-count-badge[hidden]{display:none}.quick-title{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.bottom-nav button{min-width:0}
