/* VBIT Client Portal - brand: navy #0E1E30 / #0A1420, ice #5AB4E8, steel #3C5871 */
:root {
  --navy-950: #0a1420; --navy-900: #0e1e30; --navy-800: #142c44;
  --ice-400: #5ab4e8; --ice-300: #8fd0f5; --steel-700: #3c5871;
  --ink: #0f1b2d; --muted: #556273; --line: #e3e8ef; --line-soft: #edf1f5;
  --bg: #f5f7fa; --card: #ffffff; --link: #1a5fcc;
  --green-bg: #e7f5ec; --green-fg: #1d6b38; --amber-bg: #fff4de; --amber-fg: #7a4a00;
  --red-bg: #fdecea; --red-fg: #9b1c1c; --gray-bg: #eef0f3; --gray-fg: #3f4855; --blue-bg: #eaf1fc; --blue-fg: #1a4a99;
  --display: Rajdhani, "Arial Narrow", Arial, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --grid: linear-gradient(rgba(90,180,232,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(90,180,232,.08) 1px, transparent 1px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
a:hover { color: #123f8a; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #8db4f2; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.break { word-break: break-all; }
.nowrap { white-space: nowrap; }
.h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.015em; }
.h3 { margin: 0; font-size: 18px; font-weight: 700; }
.h4 { margin: 0; font-size: 15px; font-weight: 700; }
.stack-4 > * + * { margin-top: 4px; }
.stack-12 > * + * { margin-top: 12px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }
.stack-4 > *, .stack-12 > *, .stack-16 > *, .stack-24 > * { margin-bottom: 0; }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.page { padding-top: 28px; padding-bottom: 48px; }
.page-lift { margin-top: -56px; position: relative; }
.narrow { max-width: 640px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--ice-400); color: var(--navy-950); }
.btn-primary:hover { background: #47a5dc; color: var(--navy-950); }
.btn-outline { background: #fff; color: var(--ink); border-color: #d5dce5; font-weight: 600; }
.btn-outline:hover { background: var(--bg); color: var(--ink); }
.btn-light { background: #fff; color: #5c3800; border-color: #c79a3b; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); font-weight: 600; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.link-strong { font-weight: 600; color: var(--link); text-decoration: none; }
.link-strong:hover { text-decoration: underline; }
.back { font-weight: 600; text-decoration: none; display: inline-block; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 8px; }
.form label { font-size: 14px; font-weight: 600; margin-top: 6px; }
.form .btn { margin-top: 12px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #c5ced9; border-radius: 10px; font: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
.code-input { font-size: 24px; letter-spacing: 8px; text-align: center; font-family: var(--mono); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500 !important; }
.check input { width: 20px; height: 20px; margin-top: 2px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.form-grid > div { display: flex; flex-direction: column; gap: 6px; }
.form-grid label { margin-top: 0; }
.form-grid .span-all { grid-column: 1 / -1; }
.search { display: flex; flex-direction: column; gap: 4px; flex: 0 1 380px; }
.search label { font-size: 12px; font-weight: 600; color: var(--muted); }
.search-row { display: flex; gap: 8px; }
.search-row .btn { flex: none; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.alert-ok { background: var(--green-bg); color: var(--green-fg); }
.alert-error { background: var(--red-bg); color: var(--red-fg); }
.alert-temp { background: var(--amber-bg); color: #5c3800; display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.alert-link { text-decoration: none; font-weight: 700; display: block; }
.temp-pw { font-size: 20px; background: #fff; padding: 8px 12px; border-radius: 8px; align-self: flex-start; user-select: all; }

/* Auth screens */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; }
.auth-brand { flex: 1 1 460px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 48px 56px; color: #fff; background-color: var(--navy-950); background-image: var(--grid); background-size: 40px 40px; }
.auth-brand-top { display: flex; align-items: center; gap: 16px; }
.auth-logo { width: 112px; height: 112px; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.auth-brand-title { display: flex; flex-direction: column; }
.auth-brand-title .display { font-size: 26px; letter-spacing: .04em; }
.auth-brand-title small { color: var(--ice-300); font-size: 14px; }
.auth-pitch { max-width: 540px; }
.auth-pitch h1 { margin: 0 0 20px; font-size: 50px; line-height: 1.08; }
.auth-pitch p { margin: 0 0 28px; font-size: 17px; line-height: 1.55; color: #d3dce8; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: #e7edf5; font-size: 16px; line-height: 1.45; }
.checks svg { color: var(--ice-400); flex: none; width: 22px; height: 22px; margin-top: 0.12em; }
.auth-host { font-size: 13px; color: #afbccd; }
.auth-form { flex: 1 1 420px; display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: #fff; }
.auth-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 18px; }
.auth-card p { margin: 0; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-bg); color: var(--link); display: flex; align-items: center; justify-content: center; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.setup-key { display: block; font-size: 17px; letter-spacing: 1px; background: var(--bg); border: 1px solid var(--line); padding: 10px 12px; border-radius: 8px; margin: 6px 0; user-select: all; word-break: break-all; }
.mfa-qr { display: flex; justify-content: center; margin: 8px 0 4px; }
.mfa-qr img { width: 220px; height: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-sizing: border-box; }
.mfa-manual { margin: 4px 0 8px; font-size: 14px; }
.mfa-manual summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.mfa-manual[open] summary { margin-bottom: 8px; }

/* Client header + hero */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; min-height: 68px; }
.topbar-left { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.topbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: .04em; text-transform: uppercase; }
.brand img { border-radius: 10px; }
.brand small { display: block; font-family: var(--body); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; color: #c9d4e3; }
.brand-light { color: #fff; }
.mainnav { display: flex; gap: 4px; }
.mainnav a { display: flex; align-items: center; min-height: 68px; padding: 0 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; }
.mainnav a[aria-current=page] { color: var(--ink); border-bottom-color: var(--ice-400); }
.mainnav a:hover { color: var(--ink); }
.who { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; }
.who small { color: var(--muted); font-size: 12px; }
.preview-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 8px 24px; background: var(--amber-bg); color: #5c3800; font-weight: 600; font-size: 14px; }
.hero { color: #fff; background-color: var(--navy-900); background-image: var(--grid); background-size: 40px 40px; }
.hero-inner { padding-top: 36px; padding-bottom: 84px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.hero-greet { margin: 0 0 6px; color: var(--ice-300); }
.hero h1 { margin: 0; font-size: 42px; line-height: 1.05; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 20px; background: rgba(255,255,255,.1); font-size: 13px; color: #e7edf5; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: 0 4px 14px rgba(15,27,45,.05); }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; }
.grid-cards-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 24px; align-items: start; }
.stat { display: flex; flex-direction: column; gap: 10px; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-value { display: flex; align-items: baseline; gap: 6px; }
.stat-value .num { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
meter { width: 100%; height: 6px; border-radius: 3px; -webkit-appearance: none; appearance: none; background: var(--line-soft); border: 0; }
meter::-webkit-meter-bar { background: var(--line-soft); border-radius: 3px; border: 0; height: 6px; }
meter::-webkit-meter-optimum-value, meter::-webkit-meter-suboptimum-value, meter::-webkit-meter-even-less-good-value { border-radius: 3px; }
.meter-green::-webkit-meter-optimum-value { background: #1f9d55; } .meter-green::-moz-meter-bar { background: #1f9d55; }
.meter-ice::-webkit-meter-optimum-value { background: var(--ice-400); } .meter-ice::-moz-meter-bar { background: var(--ice-400); }
.meter-steel::-webkit-meter-optimum-value { background: var(--steel-700); } .meter-steel::-moz-meter-bar { background: var(--steel-700); }
.meter-gold::-webkit-meter-optimum-value { background: #b7791f; } .meter-gold::-moz-meter-bar { background: #b7791f; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split-main { flex: 999 1 520px; min-width: 0; }
.split-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.attn { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.attn .dot { margin-top: 7px; }
.attn-body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.attn-title { font-weight: 600; color: var(--ink); text-decoration: none; }
.attn-title:hover { text-decoration: underline; }
.all-good { margin: 0; padding: 20px 0; border-top: 1px solid var(--line-soft); color: var(--green-fg); font-weight: 600; }
.team { display: flex; gap: 12px; align-items: center; }
.team img { border-radius: 12px; border: 1px solid var(--line); }
.team span { display: flex; flex-direction: column; }
.stack-4 > span { display: block; }
.kv { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }
.kv-tight { border: 0; margin-top: 8px; }
.kv-tight > div { padding: 8px 0; }

/* Pills, dots */
.pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-green { background: var(--green-bg); color: var(--green-fg); }
.pill-amber { background: var(--amber-bg); color: var(--amber-fg); }
.pill-red { background: var(--red-bg); color: var(--red-fg); }
.pill-gray { background: var(--gray-bg); color: var(--gray-fg); }
.pill-blue { background: var(--blue-bg); color: var(--blue-fg); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-green { background: #1f9d55; } .dot-gray { background: #9aa7b8; } .dot-red { background: #c53030; }
.dot-amber { background: #d69e2e; } .dot-blue { background: var(--link); }
.sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 3px; }

/* Tables */
.table-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; padding: 20px 24px; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 960px; }
.table th { text-align: left; padding: 12px 16px; background: #f7f9fb; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table td strong { display: block; }
.table-compact td { padding: 8px 16px; vertical-align: top; }
.table .empty { text-align: center; color: var(--muted); padding: 36px 16px; }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.note-cell { max-width: 360px; white-space: normal; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 10px; background: #eef1f5; }
.segmented a { padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; }
.segmented a[aria-current=page] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,27,45,.12); }

/* Admin */
.adminbar { background-color: var(--navy-900); background-image: var(--grid); background-size: 40px 40px; }
.adminbar-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.adminnav { display: flex; flex-wrap: wrap; gap: 4px; }
.adminnav a { color: #c9d4e3; text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 8px; }
.adminnav a[aria-current=page], .adminnav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.adminbar-right { display: flex; align-items: center; gap: 12px; }
.who-light { color: #d3dce8; font-size: 13px; }
.page-title { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.sync-card { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; }
.sync-card > div { flex: 1 1 400px; min-width: 0; }
.sync-card p { margin: 8px 0; }
.sync-log { margin: 0; white-space: pre-wrap; font-family: var(--mono); font-size: 12px; color: var(--muted); max-height: 160px; overflow: auto; }
.userlist { list-style: none; margin: 0; padding: 0; }
.userlist li { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.userlist li > span { display: flex; flex-direction: column; min-width: 0; }
.userlist small { font-size: 12px; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.temp-pw-input { width: 170px; min-height: 32px; padding: 4px 8px; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.user-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.temp-alt { width: 100%; font-size: 13px; color: var(--muted); }
.temp-alt summary { cursor: pointer; font-weight: 600; }
.temp-alt[open] summary { margin-bottom: 8px; }
.temp-alt .form { margin-top: 8px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: var(--muted); }

@media (max-width: 640px) {
  .wrap, .wrap-wide { padding-left: 16px; padding-right: 16px; }
  .auth-brand { padding: 32px 24px; gap: 28px; }
  .auth-pitch h1 { font-size: 34px; line-height: 1.1; }
  .auth-pitch p { font-size: 16px; margin-bottom: 22px; }
  .auth-logo { width: 84px; height: 84px; }
  .checks li { font-size: 15px; }
  .hero h1 { font-size: 32px; }
  .who { align-items: flex-start; }
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .card-flush { padding: 0; }
  .kv > div { flex-direction: column; gap: 2px; }
  .kv dd { text-align: left; }
}

.protection-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 8px 12px; border-radius: 999px; background: var(--blue-bg, #eef5ff); color: var(--navy-900, #0b1b33); border: 1px solid var(--line, #d7e0ec); font-size: 13px; font-weight: 600; }
.protection-badge-icon { flex: none; color: var(--link, #1f6feb); }

/* Ticket system additions */
.home-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.home-action { display:block; background:var(--card); border:1px solid var(--line); border-radius:16px; padding:20px 18px; text-decoration:none; color:var(--ink); box-shadow:0 8px 24px rgba(14,30,48,.06); }
.home-action strong { display:block; font-size:22px; margin-bottom:6px; }
.home-action span { color:var(--muted); }
.protect { display:flex; gap:12px; align-items:flex-start; background:var(--green-bg); color:var(--green-fg); border-radius:16px; padding:16px 18px; font-weight:600; }
.announce { background:#eef6fc; border:1px solid #d3e6f5; border-radius:16px; padding:16px 18px; }
.announce h2 { margin:0 0 8px; font-size:18px; }
.ticket-words { white-space:pre-wrap; font-size:16px; }
.timeline { list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.thumbs { display:flex; flex-wrap:wrap; gap:10px; }
.thumb { display:flex; flex-direction:column; gap:4px; padding:10px; border:1px solid var(--line); border-radius:10px; text-decoration:none; }
.ticket-row { display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-top:1px solid var(--line-soft); }
.warn { background:var(--amber-bg); color:var(--amber-fg); padding:10px 12px; border-radius:10px; }
.hint { margin:0 0 6px; color:var(--muted); font-size:13px; }
.next-hint { font-weight:600; }
.form { display:grid; gap:8px; }
.form input:not([type="checkbox"]):not([type="radio"]), .form select, .form textarea { width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:10px; font:inherit; }
.form textarea { min-height:120px; }
.checkrow { display:flex; flex-direction:row; align-items:center; justify-content:flex-start; gap:10px; width:max-content; max-width:100%; min-height:44px; font-weight:600; cursor:pointer; text-align:left; }
.checkrow input[type="checkbox"],
.checkrow input[type="radio"],
.form .check input[type="checkbox"],
.form .check input[type="radio"],
.form input[type="checkbox"],
.form input[type="radio"],
.equip-card input[type="checkbox"],
.equip-card input[type="radio"] {
  width:20px; height:20px; min-width:20px; min-height:20px; margin:0; padding:0; border:0; border-radius:0; flex:none; align-self:center;
}
.rate-row { display:flex; gap:16px; flex-wrap:wrap; align-items:center; }
.rate-btn {
  width:72px; height:72px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  border:2px solid; padding:0; margin:0; box-sizing:border-box;
  appearance:none; -webkit-appearance:none; font:inherit; line-height:0;
  background:transparent; cursor:pointer;
}
.rate-btn.rate-up { background:#e7f5ec; border-color:#22a04b; }
.rate-btn.rate-down { background:#fdecea; border-color:#d93025; }
.rate-btn.rate-chosen { cursor:default; }
button.rate-btn:hover { filter:brightness(0.97); }
button.rate-btn:focus-visible { outline:3px solid #8db4f2; outline-offset:2px; }
.equip-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; }
.equip-item { display:grid; gap:6px; }
.equip-card { display:flex; align-items:center; justify-content:flex-start; gap:10px; padding:14px; border:1px solid var(--line); border-radius:12px; background:#fff; text-align:left; cursor:pointer; }
.equip-qty { font-size:22px; padding:10px; }
.internal { background:var(--gray-bg); border-radius:10px; padding:10px 12px; }
.email-preview { border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.email-preview header, .email-preview .body { padding:12px 14px; }
.email-preview header { background:var(--gray-bg); display:grid; gap:4px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.stack-16 { display:grid; gap:16px; }
.btn-block { width:100%; text-align:center; }
.remote-in { display:grid; gap:6px; }
.remote-in p { margin:0; }
@media (max-width: 900px) {
  .home-actions, .grid-4, .grid-2 { grid-template-columns:1fr !important; }
  .topbar-inner, .topbar-right, .adminbar-inner { flex-wrap:wrap; }
}
.adminnav-tickets { display:inline-flex; align-items:center; gap:8px; }
.nav-badge { display:inline-flex; align-items:center; justify-content:center; min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:var(--ice-400); color:var(--navy-950); font-size:12px; font-weight:800; line-height:1; }
.nav-badge[hidden] { display:none !important; }
.staff-toast { position:fixed; top:16px; left:50%; transform:translateX(-50%); z-index:80; width:min(640px, calc(100% - 24px)); display:flex; align-items:center; gap:12px; background:var(--navy-900); color:#fff; border:1px solid rgba(90,180,232,.45); box-shadow:0 12px 32px rgba(14,30,48,.28); border-radius:14px; padding:14px 16px; }
.staff-toast[hidden] { display:none !important; }
.staff-toast-msg { margin:0; flex:1; font-weight:600; line-height:1.4; }
.staff-toast-msg a { color:#fff; font-weight:800; }
.staff-toast a.btn-primary { color:var(--navy-950); text-decoration:none; flex:none; }
.staff-toast-x { appearance:none; border:0; background:transparent; color:#fff; font:inherit; font-weight:800; font-size:18px; line-height:1; cursor:pointer; padding:6px 8px; }
.presence { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0 0 16px; }
.presence-meta { grid-column:1 / -1; margin:0; }
.presence-tile { display:flex; flex-direction:column; gap:4px; padding:20px 18px; border-radius:16px; text-decoration:none; border:1px solid var(--line); color:inherit; }
a.presence-tile:hover { filter:brightness(.98); color:inherit; }
.presence-online { background:var(--green-bg); color:var(--green-fg); border-color:#c9e6d2; }
.presence-offline { background:var(--gray-bg); color:var(--gray-fg); border-color:#dde1e7; }
.presence-tickets { background:var(--blue-bg); color:var(--blue-fg); border-color:#c5d7ee; }
.presence-tickets-open { background:#e8eef5; color:var(--navy-900); border-color:#d3deea; }
.ticket-filter { display:flex; flex-wrap:wrap; gap:8px; align-items:flex-end; }
.ticket-filter label { font-size:14px; font-weight:600; }
.ticket-filter select { width:auto; min-width:200px; flex:none; }
.ticket-filter .btn { flex:none; }
.ticket-filter-tools { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; }
.presence-label { font-weight:700; font-size:18px; }
.presence-num { font-family:var(--display); font-size:42px; font-weight:700; letter-spacing:.02em; line-height:1; }
.presence-tile.is-current { box-shadow:inset 0 0 0 2px currentColor; }
.presence-row { display:inline-flex; align-items:center; gap:8px; font-weight:600; white-space:nowrap; }
.loaner-tag { display:inline-block; margin-left:8px; padding:2px 8px; border-radius:999px; background:var(--blue-bg); color:var(--blue-fg); font-size:12px; font-weight:700; vertical-align:middle; }
.loaner-tag-client { margin-left:0; }
.loaner-filter { display:inline-flex; align-items:center; }
.loaner-filter.is-current { box-shadow:inset 0 0 0 2px var(--navy-900); }

.form fieldset { border:1px solid var(--line); border-radius:12px; padding:14px; margin:8px 0 0; }
.form legend { font-weight:700; padding:0 6px; }

/* Sign-in hardening (v1.1.7): Forgot password, Help, footer links, draft legal pages */
.forgot-link { align-self: flex-end; font-size: 14px; font-weight: 600; text-decoration: none; margin-top: 2px; }
.forgot-link:hover { text-decoration: underline; }
.auth-links { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.auth-links a { text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-card-wide { max-width: 680px; }
.auth-card-wide h3 { margin-top: 10px; }
.auth-card-wide ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.help-call { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 14px; background: var(--blue-bg); border: 1px solid #d3e2f7; }
.help-label { font-size: 13px; font-weight: 700; color: var(--blue-fg); text-transform: uppercase; letter-spacing: .04em; }
.help-phone { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.15; color: var(--navy-900); text-decoration: none; }
.help-phone:hover { color: var(--link); }
.help-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-links a { font-weight: 600; }
