*{box-sizing:border-box}body{margin:0;background:#f5f8f6;color:#182f29;font:16px/1.5 "Segoe UI",sans-serif}main{max-width:740px;margin:4vh auto;padding:24px}header{display:flex;align-items:center;justify-content:space-between}header a:first-child{font-size:25px;font-weight:700;text-decoration:none}a{color:#216b52}section{margin:3rem auto;padding:clamp(22px,5vw,48px);border:1px solid #d5e0da;border-radius:16px;background:white}h1{font-size:clamp(28px,5vw,44px);line-height:1.15;margin:0 0 1.5rem}form,label{display:grid;gap:.4rem}form{gap:1rem;margin:1rem 0}input,button{font:inherit;padding:.7rem .9rem;border-radius:7px;border:1px solid #80968d}button{background:#216b52;color:white;cursor:pointer}small,strong{display:block}strong{font-size:2.3rem}p[role=alert]{color:#94391f}
.price-chart{margin:24px 0;min-width:0}.price-chart canvas{display:block;width:100%;height:180px}.price-chart figcaption{font-weight:600}
main:has(.crm-table),main:has(.crm-fields){max-width:1240px}select{font:inherit;border:1px solid #80968d;border-radius:7px;padding:.7rem;background:white}.crm-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:14px}.crm-fields input{min-width:0}.crm-table{overflow:auto}.crm-table table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.crm-table td,.crm-table th{text-align:left;padding:10px;border-bottom:1px solid #d5e0da;white-space:nowrap}.crm-table th{font-size:.86rem;color:#50655b}article{padding:16px 0;border-bottom:1px solid #d5e0da}

textarea{display:block;width:100%;font:inherit;color:inherit;border:1px solid #80968d;border-radius:7px;padding:.7rem .9rem;resize:vertical}

.crm-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}.crm-nav a{padding:7px 12px;background:#ecf3ef;border-radius:7px;text-decoration:none}.crm-balances{display:flex;gap:14px 32px;flex-wrap:wrap;padding:16px;background:#f3f7f4}.crm-balances dd{margin:0;font-size:20px;font-weight:600}main:has(.crm-nav){max-width:1240px}.crm-nav~details{margin-top:14px}.crm-nav~details summary{cursor:pointer;color:#216b52}

body { background:#f4f6f5; color:#173a32; font-family:Inter,"Segoe UI",sans-serif; }
main { margin:0 auto; }
header { min-height:62px; border-bottom:1px solid #dce5df; }
header a:first-child { font-size:32px; letter-spacing:-2px; color:#173a32; }
header a:first-child::after { content:"."; color:#819e62; }
main > section { margin:26px auto; border-radius:20px; box-shadow:0 5px 24px #193a2f08; }
main:has(input[autocomplete=username]) { max-width:540px; }
main:has(input[autocomplete=username]) section { margin-top:clamp(28px,7vh,78px); }
button { background:#193f35; border-color:transparent; border-radius:10px; }
button:hover { background:#275848; }
:focus-visible { outline:3px solid #76a189; outline-offset:3px; }
.crm-nav { border-bottom:1px solid #dce5df; padding-bottom:18px; }
.crm-nav a { background:#edf2ef; color:#234f40; font-weight:600; }
.crm-nav a:hover { background:#dfece3; }
.crm-table { border:1px solid #dce5df; border-radius:12px; }
.crm-table th { background:#f3f6f4; }
.crm-table tr:last-child td { border:0; }
.crm-table tbody tr:hover { background:#f6f9f7; }
.crm-balances { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(175px,100%),1fr)); border-radius:14px; padding:20px 24px; }
.crm-balances dt { color:#486458; }
.crm-balances dd { font-size:clamp(21px,3vw,30px); font-variant-numeric:tabular-nums; }
#comment { background:#f5f8f6; border-radius:14px; padding:18px; }
#comment button { justify-self:start; }
@media(max-width:620px){main {padding:12px;} main > section {padding:18px;} .crm-nav {gap:6px;} .crm-table td,.crm-table th {padding:8px;} }

main:has(.client-identity) {color:#272d3b;}
body:has(.client-identity) {background:#f8f7f3}
main:has(.client-identity) a {color:#435a90}
main:has(.client-identity) header a:first-child::after {color:#667bd1}
.client-identity {padding:clamp(18px,3vw,32px);border-radius:15px;background:linear-gradient(112deg,#f6f5f1 36%,#e3e8f1)}
.client-identity h2 {margin:0;font:400 clamp(24px,3vw,37px)/1.2 Georgia,serif;overflow-wrap:anywhere}
.client-identity p {margin:7px 0 18px;color:#515a6d}
.client-identity .crm-balances {background:transparent;border-top:1px solid #c8ced8;border-radius:0;padding:16px 0 0;margin:0}
.client-identity .crm-balances dt {color:#525c6f}
.client-workspace {display:grid;gap:24px;margin-top:24px}
.client-workspace > * {min-width:0}
.client-tools details {padding:10px 0;border-bottom:1px solid #d9dce0}
.client-tools summary {cursor:pointer}
.client-tools #comment {background:#f2f3f7}
.client-tools button {background:#323e5c}
.client-activity h2 {font:400 25px/1.2 Georgia,serif;margin:24px 0 12px}
.client-activity h2:first-child {margin-top:0}
@media(min-width:960px){
  .client-workspace {grid-template-columns:minmax(0,1fr) minmax(280px,32%);grid-template-areas:"activity tools";align-items:start}
  .client-activity {grid-area:activity}
  .client-tools {grid-area:tools;padding-left:20px;border-left:1px solid #d9dce0}
}

body:has(input[autocomplete=username]) {
  background:linear-gradient(120deg,#f9f8f4,#eef0f6);color:#252b3a;min-height:100vh;
}
main:has(input[autocomplete=username]) {max-width:1010px;}
main:has(input[autocomplete=username]) header a {color:#384b78}
main:has(input[autocomplete=username]) section {
  position:relative;isolation:isolate;overflow:hidden;margin:clamp(25px,8vh,90px) 0;
  padding:clamp(24px,5vw,60px);border-radius:18px;background:#fff;
}
main:has(input[autocomplete=username]) h1 {font:400 clamp(34px,4vw,54px)/1.1 Georgia,serif;letter-spacing:-.05em}
main:has(input[autocomplete=username]) button {background:#283449}
main:has(input[autocomplete=username]) section > a {color:#42598b}
@media(min-width:760px){
 main:has(input[autocomplete=username]) section {padding-right:52%}
 main:has(input[autocomplete=username]) section:after {content:"";position:absolute;inset:0 0 0 55%;background:#202e46 url('/lumo-glass.svg') center/120% auto no-repeat;z-index:-1}
}
