* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; padding: 28px 16px; display: grid; place-items: center; font: 16px/1.5 "Segoe UI", Arial, sans-serif; background: radial-gradient(circle at top left,#1cc28b,#128a61 30%,#0d604b 68%,#0d3d34); color:#173653; }
a { color:#087654; }
button,input,textarea { font:inherit; }
button,a { touch-action:manipulation; }
.card { width:min(100%,580px); padding:34px; background:white; border-radius:20px; box-shadow:0 24px 60px #031c1638; }
.brand {display:block;text-align:center}
.brand img {width:180px;height:75px;object-fit:contain}
h1 {font-size:28px;line-height:1.2;margin:20px 0 10px}
h2 {font-size:22px;margin:0 0 12px}
h3 {font-size:17px}
.switch {margin:8px 0 22px}
.auth-form {display:grid;gap:16px}
.auth-form label {display:grid;gap:6px;font-size:14px;font-weight:600}
.auth-form input:not([type=checkbox]),.auth-form textarea {width:100%;min-width:0;padding:12px;border:1px solid #cbd8e1;border-radius:8px;background:#fff;color:#173653}
.auth-form .check {display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-weight:400;font-size:12px}
.password-field {display:flex;position:relative}
.password-field input {padding-right:70px!important}
.password-field button {position:absolute;right:8px;top:8px;bottom:8px;border:0;background:white;color:#087654;cursor:pointer}
.primary,.google {display:block;width:100%;padding:13px 18px;border:0;border-radius:9px;font-weight:700;font-size:16px;cursor:pointer;text-align:center;text-decoration:none}
.primary {background:#0b8e64;color:white;margin:12px 0}
.primary:hover {background:#077650}
.google {border:1px solid #ccd7e0;background:white;color:#173653}
.google-letter {color:#4285f4;font-weight:800;margin-right:8px}
.compact {width:fit-content;max-width:100%}
.divider {display:flex;align-items:center;gap:14px;margin:20px 0;color:#698178}
.divider:before,.divider:after {content:"";height:1px;background:#dbe5df;flex:1}
.message {padding:14px 18px;background:#e9f7f0;border-radius:10px}
.error {background:#fff0f0;color:#9b2433}
.privacy,.muted {font-size:13px;color:#5a7168}
.logout {background:transparent;border:0;color:inherit;text-decoration:underline;cursor:pointer}
details summary {cursor:pointer;font-weight:600;padding:12px 0}
details form {margin-top:10px}
:focus-visible {outline:3px solid #e88425;outline-offset:3px}
.portal {display:block;padding:0;background:#f3f7f6;color:#173653}
.portal-nav {position:fixed;inset:0 auto 0 0;width:240px;padding:30px 22px;background:#143f33;color:white;display:flex;flex-direction:column;z-index:5}
.portal-brand {font-size:32px;font-weight:800;letter-spacing:-1px;color:white;text-decoration:none}
.portal-brand small {display:block;font-size:11px;letter-spacing:4px;font-weight:400}
.portal-nav nav {display:grid;gap:8px;margin:40px 0;flex:1;align-content:start}
.portal-nav nav a {padding:12px 16px;color:#d6ece5;text-decoration:none;border-radius:9px}
.portal-nav nav a[aria-current] {background:#207157;color:white;font-weight:700}
.portal-content {margin-left:240px;padding:40px;max-width:1500px}
.portal-top {display:flex;align-items:center;justify-content:space-between;gap:16px}
.eyebrow {font-size:11px;font-weight:700;letter-spacing:2px;margin:0;color:#448069}
.portal-top h1 {margin:8px 0 18px}
.status {font-size:12px;font-weight:600;border-radius:24px;padding:7px 12px;background:#dbefe5;white-space:nowrap}
.welcome {color:#61776d;margin-bottom:28px}
.summary-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:26px 0}
.panel {background:white;border:1px solid #dce8e2;padding:26px;border-radius:16px;margin-bottom:22px}
.summary-card {display:flex;flex-direction:column;gap:10px;text-decoration:none;color:#173653;margin:0}
.summary-card strong {font-size:40px;line-height:1.2}
.summary-card .advisor-name {font-size:22px;overflow-wrap:anywhere}
.summary-card small {color:#0b8e64}
.welcome-panel {padding:32px;background:linear-gradient(110deg,#e0f2e8,#fff)}
.welcome-panel p {max-width:650px}
.empty {padding:50px 30px;text-align:center}
.lot-card header {display:flex;justify-content:space-between;align-items:center;gap:16px}
.progress-steps {display:grid;grid-template-columns:repeat(4,1fr);list-style:none;padding:0;margin:30px 0;gap:8px}
.progress-steps li {border-top:4px solid #dce6e1;padding:10px 0;color:#6d7f76;font-size:14px}
.progress-steps .done {border-color:#0b8e64;color:#087654;font-weight:600}
.timeline-item {border-left:2px solid #bee3ce;padding:0 0 12px 18px;margin:0 0 10px 3px}
.timeline-item time,.bubble time {display:block;font-size:11px;color:#687e73}
.timeline-item p {margin:5px 0;white-space:pre-wrap}
.chat {height:360px;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:18px;background:#f4f8f6;border-radius:12px}
.bubble {background:white;border:1px solid #d8e7df;border-radius:12px;padding:12px 16px;max-width:85%;align-self:flex-start;overflow-wrap:anywhere}
.bubble.mine {background:#def3e7;align-self:flex-end}
.bubble p {white-space:pre-wrap;margin:5px 0;font-size:14px}
.bubble strong {font-size:12px}
.profile-panel {max-width:680px}
@media(max-width:950px){.portal-nav{width:195px}.portal-content{margin-left:195px;padding:25px}.summary-grid{grid-template-columns:1fr}.summary-card{gap:6px}.summary-card strong{font-size:28px}}
@media(max-width:640px){.card{padding:24px}.portal-nav{position:static;width:100%;padding:16px 18px}.portal-brand{font-size:24px}.portal-brand small{display:inline;margin-left:8px;font-size:9px}.portal-nav nav{display:flex;overflow-x:auto;margin:16px 0;gap:5px}.portal-nav nav a{white-space:nowrap;padding:9px 12px;font-size:13px}.portal-nav form{align-self:end;font-size:12px}.portal-content{margin-left:0;padding:22px 16px}.portal-top{align-items:start;flex-wrap:wrap}.panel{padding:20px}.progress-steps{grid-template-columns:repeat(2,1fr)}.lot-card header{align-items:start;flex-wrap:wrap}.bubble{max-width:95%}}
