/* Envi partner portal — mint & charcoal system shared with Capture Studio. */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');
:root {
  --ink: #1a2f2b; --ink-2: #2d423e; --muted: #6f827c; --line: #dfe9e3; --paper: #f5f8f6; --card: #ffffff;
  --mint: #aee9d0; --mint-2: #8cdbc4; --mint-deep: #0c7468; --mint-soft: #e6f2ee; --dark: #0c181d; --dark-2: #12212a;
  --warn-bg: #fff4e1; --warn-ink: #7a4b00; --bad-bg: #fbe8e6; --bad-ink: #8a2a24; --good-bg: #e2f5ea; --good-ink: #17603d;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(12, 24, 29, .05), 0 12px 32px -20px rgba(12, 24, 29, .25);
  --font: 'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif; --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--paper); }
a { color: var(--mint-deep); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .4em; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 500; letter-spacing: -.035em; }
h2 { font-size: 26px; } h3 { font-size: 18px; } h4 { font-size: 15px; }
p { margin: 0 0 1em; } p.lead { font-size: 18px; color: var(--ink-2); max-width: 62ch; }
code, kbd, .mono { font-family: var(--mono); font-size: .92em; } code { background: var(--mint-soft); padding: .1em .4em; border-radius: 6px; }
pre { background: var(--dark); color: #dfeee7; padding: 16px 18px; border-radius: var(--radius-sm); overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.5; }
pre code { background: transparent; padding: 0; color: inherit; }
kbd { background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 .45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #39a898; outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none !important; }
.brand b { font-size: 30px; font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.brand span { font-size: 9px; letter-spacing: .16em; color: var(--muted); font-weight: 650; line-height: 1.5; text-transform: uppercase; width: 78px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.nav a:hover { background: var(--mint-soft); text-decoration: none; } .nav a[aria-current="page"] { background: var(--mint-soft); color: var(--mint-deep); }
.nav .who { font-size: 13px; color: var(--muted); padding: 0 8px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .menu-btn { display: none; margin-left: auto; }
@media (max-width: 860px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding: 14px 0; }
  .top .menu-btn { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; margin-top: 8px; } .nav.open { display: flex; } .nav .who { max-width: none; padding: 8px 12px; }
}

/* Hero */
.hero { background: var(--dark); color: #eef7f2; padding: 72px 0 64px; position: relative; overflow: hidden; }
.hero:before { content: ''; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(174, 233, 208, .22), transparent 70%); pointer-events: none; }
.hero .eyebrow { color: var(--mint-2); } .hero h1 { color: #fff; max-width: 18ch; } .hero p.lead { color: #b9cfc6; }
.eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 650; color: var(--muted); margin: 0 0 14px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 14px var(--font); cursor: pointer; text-decoration: none !important; transition: background .12s, border-color .12s, transform .06s; white-space: nowrap; }
.btn:hover { background: var(--mint-soft); } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--mint); border-color: var(--mint); color: var(--ink); font-weight: 600; } .btn.primary:hover { background: var(--mint-2); }
.btn.dark { background: var(--dark); color: #eef7f2; border-color: var(--dark); } .btn.dark:hover { background: #1c2d34; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.22); color: #eef7f2; } .btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Layout blocks */
main { padding: 44px 0 72px; }
.section { margin: 0 0 44px; } .section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.grid { display: grid; gap: 18px; } .grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } .grid.four { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card.dark { background: var(--dark); color: #dfeee7; border-color: var(--dark); } .card.dark h3 { color: #fff; } .card.dark .muted { color: #9db5ab; }
.card.mint { background: var(--mint-soft); border-color: #cfe7dc; }
.card h3 { display: flex; align-items: center; gap: 10px; } .card .icon { width: 36px; height: 36px; border-radius: 10px; background: var(--mint-soft); color: var(--mint-deep); display: inline-grid; place-items: center; flex-shrink: 0; }
.card.dark .icon { background: rgba(174,233,208,.14); color: var(--mint-2); }
.icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.action-card { display: flex; flex-direction: column; gap: 10px; min-height: 200px; } .action-card p { flex: 1; color: var(--ink-2); }
.stack { display: grid; gap: 10px; } .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-all; }
.checklist { list-style: none; padding: 0; margin: 0; counter-reset: step; } .checklist li { position: relative; padding: 12px 0 12px 46px; border-top: 1px solid var(--line); } .checklist li:first-child { border-top: 0; }
.checklist li:before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 11px; width: 30px; height: 30px; border-radius: 50%; background: var(--mint-soft); color: var(--mint-deep); font-weight: 600; font-size: 13px; display: grid; place-items: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .01em; background: var(--mint-soft); color: var(--mint-deep); white-space: nowrap; }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); } .badge.bad { background: var(--bad-bg); color: var(--bad-ink); } .badge.good { background: var(--good-bg); color: var(--good-ink); } .badge.neutral { background: #eef2f1; color: var(--ink-2); }
.badge:before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.notice { border-left: 4px solid var(--mint-2); background: #fff; padding: 14px 18px; border-radius: 10px; border: 1px solid var(--line); border-left-width: 4px; }
.notice.warn { border-left-color: #e0a532; } .notice.bad { border-left-color: #c9564d; }
table { width: 100%; border-collapse: collapse; font-size: 14px; } th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; } th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.hash { font-family: var(--mono); font-size: 12px; word-break: break-all; color: var(--ink-2); }
details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 0 18px; } details summary { cursor: pointer; padding: 14px 0; font-weight: 500; } details[open] summary { border-bottom: 1px solid var(--line); } details .body { padding: 14px 0 18px; }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-sm); background: #fff; }

/* Forms */
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input[type=text], input[type=email], textarea, select { width: 100%; font: 15px var(--font); padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
textarea { min-height: 140px; resize: vertical; } input:focus, textarea:focus, select:focus { outline: 3px solid #39a898; outline-offset: 0; border-color: transparent; }
.field { margin-bottom: 16px; } .field .help { font-size: 13px; color: var(--muted); margin-top: 5px; }
.status-line { display: flex; gap: 10px; align-items: center; font-size: 14px; min-height: 24px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--mint-deep); border-radius: 50%; animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.key-box { font-family: var(--mono); font-size: 14px; background: var(--dark); color: #dfeee7; padding: 14px 16px; border-radius: var(--radius-sm); word-break: break-all; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; } .tabs button { background: none; border: 0; padding: 10px 14px; font: 500 14px var(--font); color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; } .tabs button[aria-selected=true] { color: var(--mint-deep); border-bottom-color: var(--mint-deep); }
.report { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 16px 18px; } .report header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; } .report .desc { white-space: pre-wrap; }
.frames { font-family: var(--mono); font-size: 12px; color: var(--ink-2); margin: 0; padding-left: 18px; }
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 13px; } footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 640px) { .card { padding: 18px; } main { padding-top: 28px; } .hero { padding: 48px 0 40px; } }
