:root {
  --blue: #2563eb;
  --blue-dark: #1e3a8a;
  --navy: #0f172a;
  --panel: #ffffff;
  --bg: #f4f7fb;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --green: #15803d;
  --green-bg: #dcfce7;
  --orange: #b45309;
  --orange-bg: #fef3c7;
  --red: #b91c1c;
  --red-bg: #fee2e2;
  --purple: #6d28d9;
  --purple-bg: #ede9fe;
  --indigo: #4338ca;
  --indigo-bg: #e0e7ff;
  --radius: 18px;
  --shadow: 0 11px 28px rgba(15, 23, 42, .07);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; transform: none !important; }
.login-body { min-height: 100vh; background: #eaf1ff; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.13fr .87fr; }
.login-promo { position: relative; overflow: hidden; min-height: 100vh; padding: 43px 7vw; color: #fff; background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 52%, #0f172a 100%); }
.login-promo-content { position: relative; z-index: 2; max-width: 620px; margin-top: 16vh; }
.login-promo h1 { font-size: clamp(35px, 4.15vw, 57px); line-height: 1.08; letter-spacing: -1.6px; margin: 13px 0 19px; }
.login-promo p:not(.eyebrow) { margin: 0; max-width: 550px; color: #dbeafe; font-size: 16px; line-height: 1.72; }
.login-form-wrap { display: grid; place-items: center; min-height: 100vh; padding: 42px; background: #fff; }
.login-form-card { width: min(100%, 430px); }
.login-form-card h2 { margin: 7px 0; font-size: 29px; letter-spacing: -.5px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand strong { display: block; color: #fff; font-size: 16px; letter-spacing: .45px; }
.brand span { display: block; color: #bfdbfe; font-size: 11px; margin-top: 3px; }
.logo-mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #38bdf8, #2563eb); box-shadow: 0 8px 22px rgba(15, 23, 42, .25); color: #fff; font-size: 21px; font-weight: 800; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.25px; font-size: 10px; color: #c7d2fe; font-weight: 800; margin: 0; }
.eyebrow.blue { color: var(--blue); }
.muted { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 4px 0 0; }
.feature-list { margin-top: 28px; display: grid; gap: 13px; }
.feature-list div { display: flex; align-items: center; gap: 11px; font-size: 14px; color: #eff6ff; }
.feature-list span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #1e3a8a; font-size: 12px; font-weight: 900; background: #bfdbfe; }
.login-shape { position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.shape-one { width: 380px; height: 380px; top: -132px; right: -145px; }
.shape-two { width: 290px; height: 290px; bottom: -130px; right: 13%; background: rgba(59, 130, 246, .28); }
.mobile-brand { display: none; align-items: center; gap: 10px; color: var(--navy); margin-bottom: 28px; }
.mobile-brand .logo-mark { width: 38px; height: 38px; }
.mobile-brand strong { font-size: 15px; }
.form-stack { display: grid; gap: 15px; margin-top: 23px; }
.form-stack label, .form-grid label { color: #334155; display: grid; gap: 7px; font-size: 12px; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid #cbd5e1; color: var(--text); background: #fff; padding: 11px 12px; border-radius: 10px; outline: 0; transition: border .18s, box-shadow .18s; }
textarea { resize: vertical; min-height: 92px; }
input:focus, select:focus, textarea:focus { border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(37,99,235,.11); }
.btn { border: 0; border-radius: 10px; padding: 11px 15px; min-height: 41px; font-size: 12px; font-weight: 800; transition: transform .18s, background .18s, opacity .18s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: #e8f0ff; color: #1d4ed8; }
.btn-secondary:hover { background: #dbeafe; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-full { width: 100%; }
.login-note { margin-top: 22px; padding: 12px 14px; color: #475569; font-size: 12px; line-height: 1.55; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; }
.alert { margin: 18px 0 0; border-radius: 11px; padding: 12px 14px; font-size: 12px; line-height: 1.45; }
.alert-success { color: #166534; background: #dcfce7; border: 1px solid #bbf7d0; }
.alert-error { color: #991b1b; background: #fee2e2; border: 1px solid #fecaca; }
.app-alert { margin: 0 0 19px; }
.app-body { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 266px; padding: 26px 17px; color: #e2e8f0; background: linear-gradient(180deg, #0f172a 0%, #172554 100%); overflow-y: auto; }
.nav-title { margin: 31px 10px 9px; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; font-size: 10px; font-weight: 800; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; color: #cbd5e1; background: transparent; text-align: left; padding: 12px 13px; margin-bottom: 5px; border-radius: 11px; font-size: 13px; transition: background .18s, color .18s; }
.nav-item span { width: 20px; text-align: center; font-size: 16px; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,.12); }
.sidebar-card { margin: 27px 3px 5px; padding: 13px; border-radius: 13px; background: rgba(255,255,255,.09); }
.sidebar-card strong { display: block; color: #fff; font-size: 12px; margin-bottom: 5px; }
.sidebar-card span { display: block; color: #bfdbfe; font-size: 11px; line-height: 1.5; }
.main-content { width: calc(100% - 266px); margin-left: 266px; padding: 27px 34px 42px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.topbar-left { display: flex; align-items: flex-start; gap: 12px; }
.topbar h1 { margin: 0; font-size: 25px; letter-spacing: -.45px; }
.profile-menu { display: flex; align-items: center; gap: 10px; }
.notification { position: relative; width: 42px; height: 42px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; font-size: 17px; }
.notification b { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; top: 9px; right: 10px; border: 2px solid #fff; }
.avatar, .large-avatar { display: grid; place-items: center; background: linear-gradient(135deg, #f97316, #e11d48); color: #fff; font-weight: 800; }
.avatar { width: 40px; height: 40px; border-radius: 50%; font-size: 12px; }
.profile-summary strong { display: block; max-width: 185px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.profile-summary span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.logout-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); color: var(--red); background: #fff; border-radius: 10px; font-size: 18px; }
.menu-toggle { display: none; width: 41px; height: 41px; border: 1px solid var(--border); border-radius: 11px; background: #fff; font-size: 18px; }
.hero-card { position: relative; min-height: 218px; overflow: hidden; padding: 31px; color: #fff; border-radius: var(--radius); background: linear-gradient(135deg, #2563eb, #1e3a8a); box-shadow: 0 17px 31px rgba(30,58,138,.21); }
.hero-copy { position: relative; z-index: 2; max-width: 700px; }
.hero-card h2 { margin: 0; max-width: 700px; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.23; letter-spacing: -.8px; }
.hero-card p:not(.eyebrow) { max-width: 640px; margin: 14px 0 0; color: #dbeafe; font-size: 14px; line-height: 1.65; }
.hero-orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.09); }
.orb-one { top: -122px; right: -75px; width: 290px; height: 290px; }
.orb-two { right: 130px; bottom: -155px; width: 220px; height: 220px; }
.stats-grid { display: grid; gap: 17px; margin-top: 21px; }
.stats-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card, .panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card { padding: 18px; }
.stat-icon, .line-icon, .child-icon { display: grid; place-items: center; flex: none; width: 41px; height: 41px; margin-bottom: 15px; border-radius: 12px; font-size: 18px; }
.line-icon, .child-icon { margin: 0; }
.icon-blue { color: #1d4ed8; background: #dbeafe; }
.icon-green { color: var(--green); background: var(--green-bg); }
.icon-orange { color: var(--orange); background: var(--orange-bg); }
.icon-purple { color: var(--purple); background: var(--purple-bg); }
.stat-card strong { display: block; font-size: 24px; line-height: 1.13; }
.stat-card span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.content-grid { display: grid; gap: 21px; margin-top: 21px; }
.content-grid.two-one { grid-template-columns: minmax(0, 1.36fr) minmax(300px, .84fr); }
.panel { padding: 21px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.panel-heading h3 { margin: 0; font-size: 17px; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.child-row, .status-line, .mini-row, .mini-metric { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid var(--border); }
.child-row:first-of-type, .status-line:first-of-type, .mini-row:first-of-type, .mini-metric:first-of-type { padding-top: 2px; border-top: 0; }
.child-row > div:nth-child(2), .status-line > div { flex: 1; min-width: 0; }
.child-row strong, .status-line strong, .mini-row strong { display: block; font-size: 13px; }
.child-row span:not(.badge), .status-line span:not(.badge), .mini-row span:not(.badge), .mini-metric span { display: block; margin-top: 4px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.mini-metric span { margin: 0; font-size: 12px; }
.mini-metric strong { font-size: 13px; }
.badge { display: inline-flex; align-items: center; justify-content: center; padding: 5px 9px; border-radius: 999px; white-space: nowrap; font-size: 10px; line-height: 1.15; font-weight: 800; }
.badge-blue { color: #1d4ed8; background: #dbeafe; }.badge-green, .badge-success { color: var(--green); background: var(--green-bg); }.badge-orange, .badge-warning { color: var(--orange); background: var(--orange-bg); }.badge-red, .badge-danger { color: var(--red); background: var(--red-bg); }.badge-purple { color: var(--purple); background: var(--purple-bg); }.badge-indigo { color: var(--indigo); background: var(--indigo-bg); }.badge-slate { color: #475569; background: #e2e8f0; }
.info-box, .privacy-note { padding: 15px; color: #475569; border-radius: 13px; font-size: 13px; line-height: 1.6; }
.info-box { background: #f8fafc; border: 1px dashed #cbd5e1; }
.privacy-note { margin-bottom: 17px; color: #854d0e; background: #fffbeb; border: 1px solid #fde68a; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.quick-actions form { margin: 0; }
.app-section { display: none; }.app-section.active { display: block; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 650px; border-collapse: collapse; }
th { padding: 12px; color: var(--muted); text-align: left; text-transform: uppercase; letter-spacing: .75px; background: #f8fafc; border-bottom: 1px solid var(--border); font-size: 10px; }
td { padding: 14px 12px; color: #475569; border-bottom: 1px solid var(--border); font-size: 12px; vertical-align: top; }
td strong { color: var(--text); } tbody tr:last-child td { border-bottom: 0; }
td input, td select { min-width: 120px; padding: 8px 9px; font-size: 12px; }
td small { color: var(--muted); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
.space-top { margin-top: 21px; }
.message-list { display: grid; gap: 12px; }
.message-card { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.message-card:first-child { padding-top: 2px; border-top: 0; }
.message-avatar { display: grid; place-items: center; flex: none; width: 37px; height: 37px; border-radius: 50%; font-size: 11px; font-weight: 800; }
.message-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }.message-meta strong { font-size: 13px; }.message-meta span { color: var(--muted); white-space: nowrap; font-size: 10px; }.message-card p { margin: 5px 0; color: #475569; font-size: 12px; line-height: 1.55; }.message-card small { color: var(--muted); font-size: 10px; }
.empty-state { padding: 30px 0; color: var(--muted); text-align: center; font-size: 13px; }
.profile-detail { display: flex; align-items: center; gap: 15px; }.large-avatar { width: 62px; height: 62px; border-radius: 20px; font-size: 18px; }.profile-detail h3 { margin: 0 0 5px; font-size: 17px; }.profile-detail p { margin: 0 0 9px; color: var(--muted); font-size: 13px; }
.presence-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px; border-radius: 14px; background: #f8fafc; border: 1px solid var(--border); }.presence-card strong { display: block; font-size: 18px; }.presence-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.location-share-panel { border-color: #bfdbfe; }.location-share-status { margin-bottom: 14px; color: #1e40af; font-size: 13px; font-weight: 700; }.fine-print { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.inline-actions { display: flex; align-items: center; gap: 10px; }.inline-actions form { margin: 0; }.text-button { border: 0; padding: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 800; }.text-button:hover { text-decoration: underline; }.text-button:disabled { color: #94a3b8; text-decoration: none; }
.modal { display: none; position: fixed; z-index: 100; inset: 0; align-items: center; justify-content: center; padding: 20px; background: rgba(15,23,42,.55); }.modal.open { display: flex; }.modal-card { position: relative; width: min(100%, 410px); padding: 25px; border-radius: 17px; background: #fff; box-shadow: 0 22px 60px rgba(15,23,42,.25); }.modal-card h3 { margin: 0; }.modal-close { position: absolute; right: 14px; top: 12px; width: 30px; height: 30px; color: #64748b; background: transparent; border: 0; font-size: 24px; }
.location-status-live { color: var(--green); font-weight: 800; }.location-status-stale { color: var(--orange); font-weight: 800; }.map-link { color: var(--blue); font-weight: 800; text-decoration: none; }.map-link:hover { text-decoration: underline; }.live-updated { margin-top: 13px; font-size: 11px; }
@media (max-width: 1160px) { .stats-grid.four { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 960px) { .login-shell { grid-template-columns: 1fr; }.login-promo { min-height: 330px; padding: 34px 8vw; }.login-promo-content { margin: auto 0 0; padding-top: 55px; }.login-promo h1 { font-size: 34px; }.login-form-wrap { padding: 45px 28px; }.sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 16px 0 35px rgba(15,23,42,.2); }.sidebar.open { transform: translateX(0); }.main-content { width: 100%; margin-left: 0; padding: 23px 22px 36px; }.menu-toggle { display: grid; place-items: center; }.content-grid.two-one { grid-template-columns: 1fr; } }
@media (max-width: 660px) { .login-promo { display: none; }.login-form-wrap { min-height: 100vh; padding: 28px 20px; }.mobile-brand { display: flex; }.topbar { align-items: flex-start; }.profile-summary, .notification { display: none; }.topbar h1 { font-size: 21px; }.main-content { padding: 18px 15px 28px; }.hero-card { min-height: 230px; padding: 24px 20px; }.stats-grid.four { grid-template-columns: 1fr 1fr; gap: 11px; }.stat-card { padding: 15px; }.stat-card strong { font-size: 21px; }.panel { padding: 17px; }.child-row, .status-line, .presence-card { align-items: flex-start; flex-direction: column; }.child-row .badge { display: none; }.form-grid { grid-template-columns: 1fr; }.form-grid .full { grid-column: auto; }.message-meta { display: block; }.message-meta span { display: block; margin-top: 4px; }.inline-actions { flex-direction: column; align-items: flex-start; } }

.nav-link { text-decoration: none; cursor: pointer; }
