:root { color-scheme: light; font-family: "Segoe UI", system-ui, sans-serif; color: #172b26; background: #f4f6f3; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #278675; outline-offset: 3px; }
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 700; }
.mark, .company-mark { display: grid; place-items: center; flex: 0 0 auto; width: 2.35rem; height: 2.35rem; border-radius: .7rem; background: #d8f1dc; color: #194c3a; font-weight: 800; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; background: radial-gradient(ellipse at top left, #d6ecdf, #f4f6f3 60%); }
.login-card { width: min(100%, 440px); background: #fff; border: 1px solid #dce5de; border-radius: 1.25rem; padding: clamp(1.25rem, 5vw, 2.5rem); box-shadow: 0 18px 60px #173f2920; }
.login-card h1 { margin-top: 2rem; }
.login-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.login-form label { display: grid; gap: .35rem; font-weight: 600; }
input { min-width: 0; border: 1px solid #aebdb5; padding: .65rem; border-radius: .5rem; }
.primary, .secondary { border-radius: .55rem; padding: .6rem .9rem; font-weight: 650; }
.primary { border: 1px solid #225c47; background: #225c47; color: #fff; }
.secondary { border: 1px solid #b8c8be; color: #23483d; background: #fff; }
.layout { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
aside { background: #152f29; color: #f3faf5; padding: 1.2rem; }
nav { display: grid; gap: .75rem; margin-top: 1.75rem; }
nav a, summary { display: block; padding: .45rem .55rem; border-radius: .45rem; }
nav a:hover, nav a[aria-current] { background: #2e5146; }
nav h2 { font-size: .78rem; color: #b4d1bf; text-transform: uppercase; letter-spacing: .07em; margin: .8rem .55rem .35rem; }
summary { display: list-item; cursor: pointer; }
.modules ul { list-style: none; padding: 0 .65rem; margin: 0; }
.modules li { padding: .4rem 0; font-size: .88rem; }
.modules li span { display: block; color: #b4d1bf; font-size: .73rem; }
header { display: flex; justify-content: space-between; align-items: center; padding: 1rem clamp(1rem, 5vw, 3rem); background: #fff; border-bottom: 1px solid #dce5de; }
.work main { padding: clamp(1rem, 5vw, 3rem); max-width: 1100px; }
h1 { margin: 0 0 .5rem; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -.045em; }
h2 { font-size: 1.08rem; }
.work main section { margin-top: 2rem; }
.muted { color: #4c665b; }
.notice { color: #792c25; background: #faeae5; border-radius: .5rem; padding: .75rem; }
.company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 195px), 1fr)); gap: .75rem; }
.company, .panel { background: #fff; border: 1px solid #dce5de; border-radius: .75rem; padding: 1rem; }
.company { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; }
.company:hover { border-color: #529d7b; }
.company small { display: block; color: #4c665b; margin-top: .2rem; }
.contact-actions { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; }
.contact-heading { align-items: center; justify-content: space-between; }
.contact-search { margin: 1rem 0; }
.contact-search label, .contact-form label { display: grid; gap: .35rem; font-weight: 600; }
.contact-form { max-width: 34rem; display: grid; gap: .9rem; }
.contact-rows { list-style: none; margin: 0; padding: 0; }
.contact-rows li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .8rem 0; border-top: 1px solid #dce5de; overflow-wrap: anywhere; }
.contact-rows small { display: block; color: #4c665b; }
.saved { color: #225c47; }
.contact-form select, .contact-form textarea { font: inherit; border: 1px solid #aebdb5; border-radius: .5rem; padding: .65rem; background: #fff; }
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); gap: .7rem; }
.pipeline .panel { margin-top: .6rem; background: #f4f6f3; }
.pipeline h3 { margin-top: 0; font-size: 1rem; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: .75rem; }
.metrics div { background: #edf5ef; padding: .85rem; border-radius: .65rem; }
.metrics dd { margin: .25rem 0 0; font-size: 1.5rem; font-weight: 750; }
.public-page { max-width: 740px; margin: 4rem auto; padding: 0 1rem; }
.public-page .panel { padding: clamp(1rem, 5vw, 3rem); }
.public-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
.invoice-form { max-width: 52rem; }
.invoice-line { min-width: 0; display: grid; gap: .55rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr)); border: 1px solid #dce5de; border-radius: .5rem; }
nav a[aria-current="page"] { box-shadow: inset 3px 0 #a5dfba; }
.nav-planned { color: #d0e2d9; padding-left: .55rem !important; }
.modules small { display: block; color: #b4d1bf; font-size: .73rem; }
.modules summary span { display: inline-block; width: 1.4rem; text-align: center; }
.metrics-grid, .dashboard-lower { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); }
.dashboard-lower { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.metric-card { display: grid; gap: .3rem; padding: 1rem; border: 1px solid #dce5de; border-radius: .8rem; }
.metric-card:hover { border-color: #529d7b; }
.metric-card strong { font-size: 1.75rem; line-height: 1.15; }
.metric-blue { background: #edf4fa; color: #213f58; }
.metric-purple, .assistant-panel { background: #f2edf8; color: #48335c; }
.metric-green { background: #e7f5eb; color: #23513b; }
.metric-warm { background: #f8f0e6; color: #633f29; }
@media (max-width: 700px) { .layout { grid-template-columns: 1fr; } nav { margin-top: .65rem; } nav .switcher a { display: inline-block; } }

.test-environment { color: #382113; background: #fff7ef; }
.test-environment .login { background: radial-gradient(ellipse at top left, #ffd3ab, #fff7ef 65%); }
.test-environment aside { background: #753710; color: #fff8ee; }
.test-environment nav a:hover, .test-environment nav a[aria-current] { background: #914218; }
.test-environment nav a[aria-current="page"] { box-shadow: inset 3px 0 #ffc37f; }
.test-environment nav h2, .test-environment .modules li span, .test-environment .modules small,
.test-environment .nav-planned { color: #ffdbb7; }
.test-environment .primary { background: #a7440b; border-color: #a7440b; }
.test-environment .mark, .test-environment .company-mark, .test-environment .environment-label {
  background: #ffd9b4;
  color: #77350e;
}
.test-environment .environment-label { padding: .3rem .65rem; width: fit-content; border-radius: .4rem; font-weight: 750; }
.test-environment .login-card h1 { margin-top: .75rem; }
.test-environment :focus-visible { outline-color: #be550e; }
.test-environment .metrics div, .test-environment .pipeline .panel { background: #ffecd9; }
.test-environment .company:hover { border-color: #bc570e; }
