/* Armour ONE – Fire Armour brand: navy #2F3C8A → blue #3773B9 → sky #4DAEE8, wordmark royal #121BB4 */
:root {
  --navy: #2F3C8A; --navy-d: #1E2766; --blue: #3773B9; --sky: #4DAEE8; --royal: #121BB4;
  --ink: #0E1A3A; --ink2: #3B4660; --muted: #5A6478; --line: #E1E7F2; --line2: #EEF2F8; --bg: #F6F8FC; --tint: #EEF3FC;
  --bad: #9A330A; --bad-bg: #FDE8DF; --warn: #7A4A00; --warn-bg: #FFF2DB; --good: #11663A; --good-bg: #E3F5EC;
  --grad: linear-gradient(100deg, #2F3C8A 0%, #3773B9 55%, #4DAEE8 100%);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: Montserrat, system-ui, sans-serif; font-size: 15px; }
a { color: var(--royal); } a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { margin: 0; }

/* layout */
.shell { display: flex; min-height: 100vh; }
.nav { width: 240px; flex: none; background: linear-gradient(180deg, var(--navy-d), var(--navy)); color: #fff; padding: 26px 16px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; }
.brand { padding: 0 10px; font-weight: 300; font-size: 19px; letter-spacing: .22em; }
.brand b { font-weight: 600; }
.nav a.item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 10px; color: #D6DEF5; text-decoration: none; font-size: 14px; }
.nav a.item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); }
.nav a.item.on { background: rgba(255,255,255,.14); color: #fff; font-weight: 500; }
.nav a.item.on::before { background: var(--sky); }
.nav .foot { margin-top: auto; padding: 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: #D6DEF5; display: flex; flex-direction: column; gap: 8px; }
.nav .foot button { background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px; min-height: 36px; cursor: pointer; font-family: Montserrat; letter-spacing: 0; }
.main { flex: 1; min-width: 0; padding: 30px 38px 60px; display: flex; flex-direction: column; gap: 22px; }
.topbar { display: none; }

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .nav { display: none; }
  .nav.open { display: flex; position: fixed; inset: 0; z-index: 50; width: auto; height: auto; overflow-y: auto; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 40; }
  .topbar button { background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 8px; min-height: 40px; padding: 0 14px; }
  .main { padding: 20px 16px 50px; }
}

/* type */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.h1 { font-weight: 300; font-size: 36px; } .h1 b { font-weight: 500; }
.head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; }
.head > div { display: flex; flex-direction: column; gap: 6px; }
.sub { color: var(--ink2); font-size: 15px; margin: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.card-h { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; color: var(--blue); text-transform: uppercase; }

/* cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.card.tip { background: var(--tint); border-color: #C9D6F0; } .card.tip .card-h { color: var(--royal); }
.card.warn { background: #FFF4EC; border-color: #F3C9B5; } .card.warn .card-h { color: var(--bad); }
.card.flush { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.tile .n { font-weight: 300; font-size: 30px; color: var(--navy); } .tile .n.bad { color: var(--bad); font-weight: 500; }
.tile .l { font-size: 13px; color: var(--muted); }
.tile.dark { background: var(--navy); color: #fff; border-color: var(--navy); } .tile.dark .n { color: #fff; font-weight: 500; } .tile.dark .l { color: #D6DEF5; }
.split { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.split > .wide { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split > .side { flex: 1 1 290px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.hero { position: relative; overflow: hidden; border-radius: 18px; padding: 26px 30px; background: var(--grad); color: #fff; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 18px; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("waves.svg") center/cover no-repeat; opacity: .9; }
.hero > * { position: relative; }
.hero .kicker { color: #fff; }
.hero h1 { font-weight: 300; font-size: 34px; } .hero h1 b { font-weight: 500; }

/* tables */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); font-weight: 500; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; text-transform: uppercase; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
tr.total td { background: #F3F6FC; font-weight: 600; }
tr.clickable { cursor: pointer; } tr.clickable:hover td { background: #F3F6FC; }
td.num, th.num { text-align: right; white-space: nowrap; }
td input { width: 110px; }

/* pills & buttons */
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: #EEF2F7; color: var(--muted); }
.pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.good { background: var(--good-bg); color: var(--good); } .pill.navy { background: #E3E6F7; color: var(--navy); } .pill.blue { background: #E6F0FA; color: #1F5E9E; }
.btn { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0; background: var(--grad); color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .06em; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { color: #fff; filter: brightness(1.05); }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid #C9D6F0; font-weight: 500; letter-spacing: 0; }
.btn.danger { background: #fff; color: var(--bad); border: 1px solid #F3C9B5; font-weight: 500; letter-spacing: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--navy); border: 1px solid #C9D6F0; font-size: 13px; font-weight: 500; cursor: pointer; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* forms */
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid #D5DCEA; background: #fff; color: var(--ink); font-size: 14px; letter-spacing: 0; }
textarea { padding: 10px 12px; min-height: 80px; }
select, input, textarea { max-width: 100%; }
.side select, .side input, .side textarea { width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(55,115,185,.2); }
.form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; }
.err { color: var(--bad); font-size: 14px; } .ok { color: var(--good); font-size: 14px; }

/* login */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login .panel { flex: 1 1 520px; min-height: 380px; position: relative; overflow: hidden; background: var(--grad); color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; }
.login .panel::before { content: ''; position: absolute; inset: 0; background: url("waves.svg") center/cover no-repeat; animation: drift 14s ease-in-out infinite; }
.login .panel > * { position: relative; }
.login .panel h1 { font-weight: 300; font-size: 60px; letter-spacing: .22em; line-height: 1.1; } .login .panel h1 b { font-weight: 500; }
.login .form-side { flex: 1 1 460px; display: flex; align-items: center; justify-content: center; padding: 48px 28px; }
.login form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.login img { width: 260px; align-self: center; margin-bottom: 10px; }
@keyframes drift { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-30px); } }

/* misc */
.list-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.list-item:last-child { border-bottom: 0; }
.bubble { max-width: 640px; padding: 13px 17px; border-radius: 16px; line-height: 1.55; white-space: pre-wrap; }
.bubble.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.bubble.ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.mic { width: 52px; height: 52px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--navy), var(--sky)); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mic.live { animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(55,115,185,.6); } 50% { box-shadow: 0 0 0 12px rgba(55,115,185,0); } }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 100; font-size: 14px; max-width: 90vw; }
.bar { height: 6px; border-radius: 3px; background: #E3E9F5; overflow: hidden; width: 70px; display: inline-block; vertical-align: middle; }
.bar > span { display: block; height: 100%; background: var(--blue); }
.cal td { vertical-align: top; min-width: 130px; border-left: 1px solid var(--line2); }
.ev { padding: 6px 8px; border-radius: 8px; font-size: 12px; font-weight: 500; line-height: 1.35; margin-bottom: 6px; }
.ev.meeting { background: #E3E6F7; color: var(--navy); } .ev.site { background: var(--good-bg); color: var(--good); }
.ev.money { background: var(--bad-bg); color: var(--bad); } .ev.admin { background: var(--warn-bg); color: var(--warn); }
.empty { padding: 30px; text-align: center; color: var(--muted); }
.sr { position: absolute; left: -9999px; }

/* print: applications become a clean PDF */
@media print {
  .nav, .topbar, .no-print { display: none !important; }
  .main { padding: 0; } body { background: #fff; }
  .card { border: 0; padding: 0; } .hero { background: #fff !important; color: var(--ink); border-bottom: 3px solid var(--navy); border-radius: 0; }
  .hero::before { display: none; } .hero .kicker { color: var(--muted); }
}
