/* AgentFort Govern console. Light theme, matching the AgentFort site and console. */
:root {
  color-scheme: light;
  --bg: #F7F9FC; --surface: #FFFFFF; --surface-2: #F8FAFF; --tint: #EDF3FF; --tint-2: #E4EBFF;
  --ink: #101C30; --ink-2: #2C3A52; --muted: #596A82; --line: #DCE3ED; --line-strong: #C3CEDF; --control-line: #718096;
  --fort: #365CFA; --fort-deep: #2446C8; --navy: #101C30; --navy-line: rgba(255,255,255,.10);
  --ok: #047857; --ok-bg: #E3F7EE; --warn: #B45309; --warn-bg: #FFF3DD; --bad: #BE123C; --bad-bg: #FFEBEE; --info-bg: #E9EFFF;
  --display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 12px; --shadow: 0 1px 2px rgba(16,28,48,.06), 0 8px 24px rgba(16,28,48,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--fort); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; margin: 0; line-height: 1.2; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--fort); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 10px 16px; background: var(--surface); color: var(--ink); border: 2px solid var(--fort); border-radius: 8px; }
.skip-link:focus { top: 12px; }
#main-content, #main-content h1, #main-content h2 { scroll-margin-top: 140px; }
.boot { padding: 48px; color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .85em; }
.small { font-size: .85rem; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* top bar */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--navy-line); }
.topbar .wrap { display: flex; align-items: center; gap: 22px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font: 600 1.05rem var(--display); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--fort) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M7 7h4v4h3V7h4v4h3V7h4v19h-7v-7a2 2 0 0 0-4 0v7H7z' fill='%23fff'/%3E%3C/svg%3E") center/100% no-repeat; display: inline-block; flex: none; }
.brand small { font: 500 .7rem var(--mono); letter-spacing: .12em; color: #9DB4FF; text-transform: uppercase; }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.nav a { color: #C7D2E6; padding: 8px 12px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.nav a.on { color: #fff; background: rgba(255,255,255,.1); }
.who { display: flex; align-items: center; gap: 12px; color: #C7D2E6; font-size: .85rem; white-space: nowrap; }
.who button { background: none; border: 1px solid rgba(255,255,255,.25); color: #fff; border-radius: 8px; padding: 6px 10px; font: 500 .82rem var(--body); cursor: pointer; }
@media (max-width: 760px) {
  .who .email { display: none; }
  .topbar .wrap { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding-top: 10px; padding-bottom: 8px; }
  .topbar .brand { grid-column: 1; grid-row: 1; }
  .topbar .who { grid-column: 2; grid-row: 1; }
  .topbar .nav { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  .topbar .nav a { flex: 1; text-align: center; padding: 10px 8px; }
}

.banner { padding: 9px 0; font-size: .9rem; border-bottom: 1px solid var(--line); }
.banner.trial { background: var(--info-bg); color: var(--fort-deep); }
.banner.expired { background: var(--bad-bg); color: var(--bad); }
.banner .wrap { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }

main { padding: 28px 0 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head > div:first-child { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.page-head .sub { color: var(--muted); margin-top: 6px; }
.crumbs { font: 500 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .9rem var(--body); border-radius: 999px; padding: 9px 16px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn-primary { background: var(--fort); color: #fff; box-shadow: 0 4px 14px rgba(54,92,250,.25); }
.btn-primary:hover { background: var(--fort-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--fort); }
.btn-danger { background: var(--surface); color: var(--bad); border-color: #F3C2CC; }
.btn-danger:hover { background: var(--bad-bg); }
.btn-sm { padding: 6px 12px; font-size: .82rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
label.field { display: grid; gap: 6px; font-weight: 500; font-size: .9rem; }
label.field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
input[type=text], input[type=email], input[type=url], input[type=date], select, textarea {
  font: 400 .95rem var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--control-line); border-radius: 9px; padding: 9px 11px; width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--fort); outline-offset: 0; border-color: var(--fort); }
.radio-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.radio-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface); cursor: pointer; font-weight: 400; }
.radio-card:has(input:checked) { border-color: var(--fort); background: var(--tint); }
.radio-card b { display: block; }
.form { display: grid; gap: 16px; max-width: 640px; }
.form-error { color: var(--bad); font-size: .9rem; min-height: 1.2em; }

/* panels, tiles, tables */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile .v { font: 600 1.6rem var(--display); }
.tile .l { color: var(--muted); font-size: .82rem; }
.tile.bad .v { color: var(--bad); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font: 500 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
td b, td .name { color: var(--ink); font-weight: 600; }
.row-action { border: 0; padding: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.row-action:hover { color: var(--fort); text-decoration: underline; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font: 500 .72rem var(--mono); white-space: nowrap; }
.pill.ok { color: var(--ok); background: var(--ok-bg); }
.pill.bad { color: var(--bad); background: var(--bad-bg); }
.pill.warn { color: var(--warn); background: var(--warn-bg); }
.pill.info { color: var(--fort-deep); background: var(--info-bg); }
.pill.mute { color: var(--muted); background: #EEF1F6; }

.tabs { position: relative; display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--fort); }
.tabs .count { font: 500 .7rem var(--mono); background: var(--tint); color: var(--fort-deep); border-radius: 999px; padding: 1px 7px; margin-left: 6px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 5px 12px; font: 500 .82rem var(--body); cursor: pointer; color: var(--ink-2); }
.chip.on { border-color: var(--fort); background: var(--tint); color: var(--fort-deep); }

.finding { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; display: grid; gap: 8px; }
.finding + .finding { margin-top: 10px; }
.finding.high { border-left: 4px solid var(--bad); }
.finding.medium { border-left: 4px solid var(--warn); }
.finding.low { border-left: 4px solid var(--line-strong); }
.finding .fix { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; font-size: .9rem; }
.finding .meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .82rem; }

.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 14px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); word-break: break-word; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } }

.list { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.callout { border: 1px solid #C9D6FF; background: linear-gradient(180deg, var(--tint), #fff); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.callout.warn { border-color: #F5D9A8; background: linear-gradient(180deg, var(--warn-bg), #fff); }
.linkbox { display: flex; gap: 8px; align-items: center; }
.linkbox input { font-family: var(--mono); font-size: .8rem; }
.policy-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; max-height: 520px; overflow: auto; }
.policy-body h1 { font-size: 1.3rem; margin: 6px 0 12px; } .policy-body h2 { font-size: 1.02rem; margin: 18px 0 8px; }
.policy-body p, .policy-body li { color: var(--ink-2); font-size: .92rem; } .policy-body p { margin: 6px 0; }
.policy-body blockquote { margin: 8px 0; padding: 8px 12px; background: var(--warn-bg); border-radius: 8px; color: var(--warn); font-size: .88rem; }
.policy-body table { margin: 8px 0; } .policy-body td, .policy-body th { padding: 6px 10px; }

/* drawer and modal */
.dialog-shell { border: 0; padding: 0; background: transparent; color: inherit; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); }
.dialog-shell::backdrop { background: rgba(16,28,48,.35); }
.dialog-shell.drawer-shell { margin: 0 0 0 auto; width: min(560px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; }
.drawer { width: 100%; min-height: 100%; background: var(--surface); box-shadow: var(--shadow); overflow-y: auto; padding: 22px; display: grid; gap: 16px; align-content: start; }
.drawer > * { min-width: 0; }
.modal { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); width: min(520px, calc(100vw - 32px)); padding: 22px; display: grid; gap: 14px; }
.modal .row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .9rem; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; max-width: 90vw; }
#toast.show { opacity: 1; }

/* sign-in landing */
.landing { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 900px) { .landing { grid-template-columns: 1fr; } .landing .art { display: none; } }
.landing .copy { padding: clamp(28px, 6vw, 72px); display: grid; align-content: center; gap: 22px; }
.landing .eyebrow { font: 500 .78rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fort); }
.landing h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); max-width: 18ch; }
.landing .lede { color: var(--ink-2); font-size: 1.08rem; max-width: 56ch; }
.landing ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-2); }
.landing li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.landing li::before { content: ""; width: 16px; height: 16px; margin-top: 4px; border-radius: 5px; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23365cfa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; border: 1px solid #C9D6FF; }
.landing .art { background: radial-gradient(70% 60% at 70% 30%, rgba(54,92,250,.14), transparent 70%), linear-gradient(180deg, var(--tint), var(--bg)); border-left: 1px solid var(--line); display: grid; align-content: center; padding: 48px; gap: 12px; }
.landing .art .card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--ink); }
.landing .art .card b { font-weight: 500; }
.ms-btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #1b1b1b; border: 1px solid #8C8C8C; border-radius: 4px; padding: 10px 16px; font: 600 .95rem "Segoe UI", var(--body); width: fit-content; }
.ms-btn:hover { background: #F3F3F3; text-decoration: none; }
.ms-logo { width: 18px; height: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.ms-logo i:nth-child(1) { background: #F25022; } .ms-logo i:nth-child(2) { background: #7FBA00; } .ms-logo i:nth-child(3) { background: #00A4EF; } .ms-logo i:nth-child(4) { background: #FFB900; }

/* callback message pages */
.msg-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.msg-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 28px; max-width: 520px; display: grid; gap: 12px; }
.msg-card.ok { border-top: 4px solid var(--ok); } .msg-card.bad { border-top: 4px solid var(--bad); }
.brand-row { display: flex; align-items: center; gap: 10px; font-family: var(--display); }
:root .customer-legal { max-width:800px; margin:40px auto; padding:0 24px; }
:root .customer-legal-text { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
:root .customer-support { line-height:1.7; overflow-wrap:anywhere; }
:root .customer-support h1 { margin:16px 0; }
:root .customer-support p { margin:16px 0; }
