:root {
  --navy: #0d1627;
  --navy-2: #121f34;
  --navy-3: #1c2c47;
  --ink: #152033;
  --muted: #6f7d91;
  --muted-2: #98a3b4;
  --page: #f4f6fa;
  --surface: #ffffff;
  --line: #dfe5ef;
  --line-strong: #cbd5e4;
  --blue: #5264df;
  --blue-dark: #3f51c8;
  --blue-soft: #edf0ff;
  --amber: #f1b746;
  --amber-soft: #fff5df;
  --red: #d9646b;
  --red-soft: #fff0f1;
  --cyan: #4a9bc4;
  --purple: #866bd8;
  --shadow: 0 14px 34px rgba(21, 32, 51, .08);
  --shadow-lg: 0 24px 58px rgba(21, 32, 51, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-width: 276px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}

.dimensioning-note { display: grid; gap: 4px; margin-top: 16px; padding: 12px 13px; border: 1px solid #dbe7f4; border-radius: 12px; background: #f5faff; color: #1b65a7; }
.dimensioning-note b { font-size: 12px; }
.dimensioning-note small { color: #63758b; font-size: 11px; line-height: 1.4; }

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--page); color: var(--ink); font-size: 15px; line-height: 1.45; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: inherit; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Login */
.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .92fr) minmax(470px, 1.08fr); background: var(--navy); }
.login-intro { min-height: 100vh; padding: clamp(28px, 5vw, 76px); display: flex; flex-direction: column; color: #f5f8ff; background: var(--navy); border-right: 1px solid rgba(255,255,255,.08); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); min-width: 0; }
.brand-light { color: #f4f7ff; }
.brand-dark { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; background: var(--blue); color: #fff; font-weight: 900; font-size: 23px; letter-spacing: -2px; box-shadow: 0 8px 20px rgba(82,100,223,.32); }
.product-brand-icon { width: 38px; height: 38px; flex: 0 0 38px; object-fit: contain; border-radius: 12px; box-shadow: 0 8px 20px rgba(20,120,229,.22); }
.brand-image { display: block; width: auto; max-width: 205px; height: 46px; flex: 0 0 auto; object-fit: contain; border-radius: 10px; background: #fff; }
.brand strong { display: block; font-size: 19px; letter-spacing: -.6px; line-height: 1; }
.brand small { display: block; margin-top: 3px; color: var(--blue); font-size: 9px; letter-spacing: 2.8px; font-weight: 900; }
.brand-light small { color: #aeb8ff; }
.intro-copy { max-width: 620px; margin: auto 0 46px; }
.eyebrow { display: inline-flex; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: 1.7px; text-transform: uppercase; }
.login-intro .eyebrow { color: #aeb8ff; }
.intro-copy h1 { margin: 18px 0 18px; max-width: 640px; font-size: clamp(36px, 5vw, 66px); line-height: 1.04; letter-spacing: -3px; font-weight: 780; }
.intro-copy p { max-width: 520px; margin: 0; color: #aeb8c9; font-size: 18px; line-height: 1.7; }
.login-proof-grid { display: grid; gap: 12px; max-width: 580px; }
.login-proof-grid > div { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.12); color: #c5ccdc; }
.login-proof-grid b { color: var(--amber); font-size: 12px; letter-spacing: 1px; }
.login-proof-grid span { font-size: 14px; }
.login-intro footer { margin-top: 52px; color: #7f8ba1; font-size: 12px; }
.login-panel { min-height: 100vh; display: grid; place-items: center; padding: 32px; background: #f7f8fb; }
.login-card { width: min(100%, 500px); padding: clamp(27px, 4vw, 52px); background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); }
.login-heading { margin: 34px 0 25px; }
.login-heading h2 { margin: 8px 0 5px; font-size: 31px; letter-spacing: -1.2px; }
.login-heading p { margin: 0; color: var(--muted); }
.field-label, .field-label > .field-title { display: grid; gap: 7px; color: #3c4a60; font-size: 13px; font-weight: 780; }
.login-card form { display: grid; gap: 17px; }
input, select, textarea { width: 100%; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
input, select { min-height: 43px; padding: 10px 12px; }
textarea { min-height: 100px; padding: 10px 12px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a5afbd; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(82,100,223,.13); }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 45px; }
.input-icon { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; }
.input-icon:hover { color: var(--blue); background: var(--blue-soft); }
.login-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.check-label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.check-label input { width: 15px; height: 15px; min-height: 0; accent-color: var(--blue); }
.link-button { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 12px; font-weight: 760; }
.link-button:hover { text-decoration: underline; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--ink); background: var(--surface); font-size: 13px; font-weight: 800; line-height: 1.1; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(82,100,223,.24); }
.button-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); box-shadow: 0 12px 24px rgba(82,100,223,.28); }
.button-secondary { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.button-secondary:hover { background: #1d3150; }
.button-ghost { border-color: var(--line-strong); background: #fff; color: #46556b; box-shadow: none; }
.button-ghost:hover { border-color: var(--blue); color: var(--blue); background: #f8f9ff; }
.button-danger { color: var(--red); background: var(--red-soft); border-color: #f1c8cc; }
.button-large { min-height: 47px; }
.button-block { width: 100%; }
.login-divider { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 23px 0 18px; color: #a0aaba; font-size: 12px; }
.login-divider::before, .login-divider::after { content: ""; height: 1px; background: var(--line); }
.demo-box { display: grid; gap: 14px; padding: 15px; border: 1px solid #dce2f7; border-radius: 12px; background: #f6f7ff; }
.demo-box b, .demo-box small { display: block; }
.demo-box b { color: #3546ad; font-size: 13px; }
.demo-box small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.demo-actions { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.form-feedback { min-height: 18px; margin: 12px 0 0; color: var(--red); font-size: 12px; }

/* Shared app shell */
.app-shell { min-height: 100vh; display: flex; background: var(--page); }
.sidebar { position: sticky; inset: 0 auto 0 0; z-index: 80; width: var(--sidebar-width); height: 100vh; flex: 0 0 var(--sidebar-width); display: flex; flex-direction: column; padding: 22px 14px 16px; overflow-y: auto; background: var(--navy); border-right: 1px solid #22314a; }
.sidebar .brand { margin: 0 10px 23px; }
.sidebar .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 21px; }
.sidebar .product-brand-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
.sidebar .brand strong { color: #f4f7ff; font-size: 17px; }
.workspace-switcher { display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px; align-items: center; gap: 9px; padding: 11px; margin-bottom: 19px; border: 1px solid #293a56; border-radius: 12px; background: #15243c; color: #e9eefb; }
.workspace-avatar, .user-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #2c3f61; color: #c9d1ff; font-size: 11px; font-weight: 900; }
.workspace-switcher b, .workspace-switcher small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-switcher b { font-size: 12px; }
.workspace-switcher small { margin-top: 2px; color: #8e9db5; font-size: 10px; }
.workspace-switcher > span:last-child { color: #8999b5; text-align: center; }
.nav-section-label { padding: 12px 12px 6px; color: #66758f; font-size: 10px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 3px; }
.nav-item { min-height: 40px; display: flex; align-items: center; gap: 11px; padding: 9px 11px; border: 1px solid transparent; border-radius: 10px; color: #9ba8bd; background: transparent; font-size: 13px; font-weight: 690; text-align: left; }
.nav-item:hover { color: #f5f8ff; background: #172945; border-color: #263d5f; }
.nav-item.active { color: #fff; background: #1c2e4d; border-color: #2d4670; box-shadow: inset 3px 0 var(--blue); }
.nav-icon { width: 20px; display: grid; place-items: center; color: #8393ad; font-size: 17px; line-height: 1; }
.nav-item.active .nav-icon, .nav-item:hover .nav-icon { color: #aeb8ff; }
.nav-item .nav-count { min-width: 20px; margin-left: auto; padding: 2px 6px; border-radius: 10px; color: #bdc7ff; background: #293b5e; font-size: 10px; text-align: center; }
.sidebar-bottom { display: grid; gap: 3px; margin-top: auto; padding-top: 15px; border-top: 1px solid #22314a; }
.main { min-width: 0; flex: 1; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 60; height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 0 clamp(16px, 3vw, 46px); background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px rgba(21,32,51,.04); backdrop-filter: blur(12px); }
.topbar-left, .topbar-actions, .topbar-search, .profile-trigger { display: flex; align-items: center; }
.topbar-left { min-width: 0; gap: 13px; }
.mobile-menu-button { width: 37px; height: 37px; display: none; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--blue); background: #f4f6ff; font-size: 20px; }
.breadcrumb { min-width: 0; color: var(--muted); font-size: 12px; }
.breadcrumb b { color: var(--ink); }
.breadcrumb span { margin: 0 6px; color: #bac3d0; }
.topbar-actions { gap: 9px; }
.topbar-search { width: 210px; gap: 7px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted-2); background: #fbfcfe; }
.topbar-search input { min-height: 27px; padding: 2px 0; border: 0; background: transparent; box-shadow: none; font-size: 12px; }
.topbar-search input:focus { box-shadow: none; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; position: relative; border: 1px solid transparent; border-radius: 10px; color: #6e7d91; background: transparent; font-size: 17px; }
.icon-button:hover { color: var(--blue); background: var(--blue-soft); border-color: #dfe4ff; }
.notification-dot { position: absolute; right: 7px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); border: 1px solid #fff; }
.profile-trigger { gap: 8px; padding: 4px 6px 4px 4px; border: 1px solid transparent; border-radius: 11px; background: transparent; }
.profile-trigger:hover { border-color: var(--line); background: #fafbfe; }
.profile-trigger > span:last-child { display: grid; text-align: left; }
.profile-trigger b { max-width: 130px; overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-trigger small { color: var(--muted); font-size: 10px; }
.profile-trigger .user-avatar { width: 32px; height: 32px; }
.page { max-width: 1680px; margin: 0 auto; padding: 32px clamp(16px, 3vw, 48px) 70px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.page-heading h1 { margin: 5px 0 5px; color: var(--ink); font-size: clamp(27px, 3vw, 35px); letter-spacing: -1.5px; line-height: 1.1; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.page-heading .heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card:hover { box-shadow: 0 18px 36px rgba(21,32,51,.10); }
.card-pad { padding: 20px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.card-heading h2, .card-heading h3 { margin: 0; color: var(--ink); font-size: 17px; letter-spacing: -.3px; }
.card-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.text-button { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 12px; font-weight: 800; }
.text-button:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.overline { display: block; color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; }
.empty-state { min-height: 260px; display: grid; place-items: center; align-content: center; gap: 9px; padding: 34px; color: var(--muted); text-align: center; }
.empty-state .empty-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; color: var(--blue); background: var(--blue-soft); font-size: 24px; }
.empty-state h2 { margin: 0; color: var(--ink); font-size: 20px; }
.empty-state p { max-width: 450px; margin: 0; font-size: 13px; }

/* Dashboard */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 15px; }
.metric-card { min-height: 145px; display: flex; flex-direction: column; justify-content: space-between; padding: 19px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.metric-card.highlight { color: #f6f8ff; background: var(--navy-2); border-color: var(--navy-3); }
.metric-card small { color: var(--muted); font-size: 12px; font-weight: 720; }
.metric-card.highlight small { color: #b9c5d9; }
.metric-card strong { display: block; margin: 10px 0 2px; color: var(--ink); font-size: clamp(25px, 3vw, 32px); letter-spacing: -1.3px; line-height: 1; }
.metric-card.highlight strong { color: #fff; }
.metric-card strong i { color: var(--muted); font-size: 13px; font-style: normal; letter-spacing: 0; }
.metric-card.highlight strong i { color: #b5c1d6; }
.metric-change { color: #3b8f69; font-size: 11px; font-weight: 800; }
.metric-change.down { color: var(--red); }
.metric-change em { color: var(--muted-2); font-style: normal; font-weight: 550; }
.metric-card.highlight .metric-change { color: var(--amber); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr); gap: 15px; margin-bottom: 15px; }
.chart-card { min-height: 340px; padding: 20px; }
.chart-controls { display: flex; align-items: center; gap: 8px; }
.chart-controls select { width: auto; min-height: 33px; padding: 6px 9px; font-size: 11px; }
.line-chart { position: relative; height: 220px; display: grid; grid-template-columns: 43px 1fr; gap: 8px; }
.y-axis { display: flex; flex-direction: column; justify-content: space-between; padding: 4px 0 23px; color: var(--muted-2); font-size: 10px; text-align: right; }
.chart-area { position: relative; height: 100%; border-bottom: 1px solid var(--line); }
.chart-grid { position: absolute; inset: 0 0 23px; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid i { width: 100%; display: block; border-top: 1px dashed #e7ebf2; }
.chart-svg { position: absolute; inset: 0 0 23px; width: 100%; height: calc(100% - 23px); overflow: visible; }
.chart-svg path { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-svg .area { fill: rgba(82,100,223,.10); stroke: none; }
.x-axis { position: absolute; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(6, 1fr); color: var(--muted-2); font-size: 10px; text-align: center; text-transform: lowercase; }
.legend { display: flex; gap: 16px; margin-top: 7px; color: var(--muted); font-size: 11px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }
.dot.blue { background: var(--blue); }.dot.gray { background: #b6c0cf; }.dot.amber { background: var(--amber); }.dot.cyan { background: var(--cyan); }
.activity-list { display: grid; gap: 0; }
.activity-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eef1f5; }
.activity-row:last-child { border-bottom: 0; }
.activity-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-size: 13px; font-weight: 900; }
.activity-icon.amber { color: #a56e0f; background: var(--amber-soft); }.activity-icon.cyan { color: #277599; background: #eaf7fc; }.activity-icon.purple { color: #6b55b5; background: #f1edff; }
.activity-row b, .activity-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-row b { font-size: 12px; }.activity-row small, .activity-row time { color: var(--muted); font-size: 11px; }.activity-row time { white-space: nowrap; }
.funnel-card, .quick-card { padding: 20px; }
.funnel { min-height: 205px; display: flex; align-items: flex-end; justify-content: space-around; gap: 14px; padding: 15px 8px 0; }
.funnel-col { min-width: 0; display: flex; flex: 1; flex-direction: column; align-items: center; gap: 5px; }
.funnel-bar { width: min(66px, 80%); min-height: 20px; border-radius: 9px 9px 4px 4px; background: var(--blue); box-shadow: inset 0 -10px 20px rgba(0,0,0,.08); }
.funnel-col:nth-child(2) .funnel-bar { background: #6676e5; opacity: .86; }.funnel-col:nth-child(3) .funnel-bar { background: #7886e7; opacity: .75; }.funnel-col:nth-child(4) .funnel-bar { background: #8b97e8; opacity: .64; }
.funnel-col b { font-size: 18px; }.funnel-col small { color: var(--muted); font-size: 10px; text-align: center; }
.quick-list { display: grid; gap: 9px; }
.quick-action { width: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr) 18px; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; }
.quick-action:hover { border-color: #bbc5ff; background: #fafbff; }
.quick-action .quick-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-soft); font-size: 16px; }
.quick-action b, .quick-action small { display: block; }.quick-action b { font-size: 12px; }.quick-action small { margin-top: 2px; color: var(--muted); font-size: 11px; }.quick-action strong { color: var(--blue); }

/* Forms, quote and tables */
.two-column { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .8fr); gap: 16px; align-items: start; }
.stack { display: grid; gap: 15px; }
.form-card { padding: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-grid .wide, .form-grid .full { grid-column: 1 / -1; }
.form-label { display: grid; gap: 7px; color: #42516a; font-size: 12px; font-weight: 780; }
.form-label small { color: var(--muted); font-size: 10px; font-weight: 520; }
.input-with-action { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.input-with-action .button { min-height: 43px; }
.section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.section-title h2 { margin: 0; font-size: 17px; }.section-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.live-badge, .tag { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 4px 8px; border-radius: 20px; color: #3e50c0; background: var(--blue-soft); font-size: 10px; font-weight: 820; }
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.range-field { display: grid; gap: 8px; }.range-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.range-line output { color: var(--blue); font-weight: 850; }
input[type="range"] { min-height: 0; padding: 0; border: 0; accent-color: var(--blue); box-shadow: none; }
.loss-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; padding: 12px 14px; border: 1px solid #dce2ef; border-radius: 11px; background: #f6f8fc; }
.loss-summary b, .loss-summary small { display: block; }.loss-summary b { font-size: 12px; }.loss-summary small { margin-top: 3px; color: var(--muted); font-size: 10px; }.loss-summary strong { color: var(--blue); font-size: 22px; }
.quote-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 15px; }
.progress-step { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 10px; color: var(--muted); border-bottom: 2px solid var(--line); font-size: 11px; font-weight: 760; }
.progress-step b { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #e9edf4; font-size: 10px; }
.progress-step.active { color: var(--blue); border-color: var(--blue); }.progress-step.active b { color: #fff; background: var(--blue); }
.result-card { position: sticky; top: 88px; overflow: hidden; color: #f6f8ff; background: var(--navy-2); border: 1px solid var(--navy-3); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(13,22,39,.22); }
.result-top { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.10); }.result-top h2 { margin: 5px 0 0; font-size: 20px; }.result-top .overline { color: #aeb8ff; }.result-status { color: #b8c2ff; font-size: 11px; }
.result-main { padding: 22px 20px 19px; border-bottom: 1px solid rgba(255,255,255,.10); }.result-main strong { display: block; color: #fff; font-size: 44px; letter-spacing: -2px; line-height: 1; }.result-main strong i { color: #aeb9cd; font-size: 15px; font-style: normal; letter-spacing: 0; }.result-main > span { display: block; margin-top: 6px; color: #9caac0; font-size: 12px; }.result-pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }.result-pills span { padding: 6px 8px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; color: #aebbd1; background: rgba(255,255,255,.05); font-size: 11px; }.result-pills b { color: #fff; }
.result-stats { display: grid; grid-template-columns: repeat(2, 1fr); }.result-stat { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,.10); }.result-stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.10); }.result-stat small, .result-stat b { display: block; }.result-stat small { color: #9caac0; font-size: 10px; }.result-stat b { margin-top: 5px; color: #fff; font-size: 14px; }
.payback-box { padding: 17px 20px 19px; }.payback-head { display: flex; justify-content: space-between; gap: 10px; color: #cbd3e2; font-size: 11px; }.payback-track { position: relative; height: 7px; margin: 15px 0 7px; border-radius: 5px; background: #2e405e; }.payback-track i { display: block; height: 100%; width: 16%; border-radius: inherit; background: var(--blue); }.payback-track b { position: absolute; top: 12px; left: 16%; transform: translateX(-50%); color: var(--amber); font-size: 10px; white-space: nowrap; }.payback-labels { display: flex; justify-content: space-between; color: #8190a8; font-size: 9px; }.result-actions { display: grid; gap: 8px; padding: 0 20px 20px; }.result-actions .button-primary { color: #fff; background: var(--blue); }.result-actions .button-ghost { color: #fff; border-color: #445575; background: transparent; }
.payment-card { padding: 20px; }.payment-option { width: 100%; display: grid; grid-template-columns: 37px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; }.payment-option + .payment-option { margin-top: 8px; }.payment-option.active { border-color: #bbc4ff; background: var(--blue-soft); }.payment-option b, .payment-option small { display: block; }.payment-option b { font-size: 12px; }.payment-option small { margin-top: 2px; color: var(--muted); font-size: 10px; }.payment-option strong { color: var(--blue); font-size: 12px; }.payment-logo { width: 35px; height: 27px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--navy-2); font-size: 10px; font-weight: 900; }
.table-wrap { width: 100%; overflow-x: auto; }.data-table { width: 100%; min-width: 720px; border-collapse: collapse; }.data-table th, .data-table td { padding: 13px 12px; border-bottom: 1px solid #edf0f5; text-align: left; vertical-align: middle; }.data-table th { color: #8995a7; font-size: 10px; font-weight: 900; letter-spacing: 1px; }.data-table td { color: #4b5970; font-size: 12px; }.data-table td strong, .data-table td b { color: var(--ink); }.data-table td small, .data-table td span { display: block; }.data-table td small { margin-top: 3px; color: var(--muted); font-size: 10px; }.data-table tr:last-child td { border-bottom: 0; }.row-actions { display: flex; justify-content: flex-end; gap: 5px; }.row-action { min-height: 29px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: #607087; background: #fff; font-size: 10px; font-weight: 800; }.row-action:hover { color: var(--blue); border-color: #bec7ff; background: var(--blue-soft); }.row-action.danger:hover { color: var(--red); border-color: #f1c8cc; background: var(--red-soft); }
.status { display: inline-flex !important; width: max-content; padding: 5px 8px; border-radius: 20px; font-size: 10px !important; font-weight: 850; }.status-blue { color: #3f51c8; background: var(--blue-soft); }.status-green { color: #2f805d; background: #e8f6ef; }.status-amber { color: #9a6d16; background: var(--amber-soft); }.status-gray { color: #68778d; background: #eef1f5; }.status-red { color: #b44d56; background: var(--red-soft); }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }.search-field { min-width: 220px; flex: 1; position: relative; }.search-field input { padding-left: 34px; }.search-field span { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted-2); }

/* CRM and catalog */
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-bottom: 15px; }.summary-card { padding: 17px; }.summary-card small, .summary-card b, .summary-card span { display: block; }.summary-card small { color: var(--muted); font-size: 11px; }.summary-card b { margin: 10px 0 3px; font-size: 25px; letter-spacing: -1px; }.summary-card span { color: #3b8f69; font-size: 11px; font-weight: 760; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px; }.kanban-column { min-height: 350px; padding: 12px; background: #edf1f7; border: 1px solid var(--line); border-radius: 13px; }.kanban-column > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 3px 4px 12px; }.kanban-column h3 { margin: 0; font-size: 12px; }.kanban-column header span { min-width: 22px; padding: 3px 6px; border-radius: 10px; color: var(--blue); background: #e0e5ff; font-size: 10px; text-align: center; }.lead-card { display: grid; gap: 5px; margin-top: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 5px 14px rgba(21,32,51,.05); }.lead-card b { font-size: 12px; }.lead-card small, .lead-card span { color: var(--muted); font-size: 10px; }.lead-card span { color: var(--blue); }
.catalog-tabs { display: flex; gap: 3px; padding: 4px; border-radius: 10px; background: #e9edf5; }.catalog-tab { padding: 8px 11px; border: 0; border-radius: 8px; color: #718096; background: transparent; font-size: 11px; font-weight: 800; white-space: nowrap; }.catalog-tab.active { color: var(--blue); background: #fff; box-shadow: 0 3px 10px rgba(21,32,51,.08); }.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }.catalog-toolbar .search-field { flex: 0 1 310px; }.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.equipment-card { display: flex; flex-direction: column; min-height: 235px; padding: 17px; }.equipment-logo { width: 68px; height: 48px; display: grid; place-items: center; margin-bottom: 15px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }.equipment-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }.equipment-logo span { color: var(--blue); font-size: 19px; font-weight: 900; }.equipment-card h3 { margin: 0; font-size: 14px; }.equipment-card p { min-height: 34px; margin: 5px 0 12px; color: var(--muted); font-size: 11px; }.equipment-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }.equipment-specs span { padding: 5px 7px; border-radius: 7px; color: #52617a; background: #f2f4f8; font-size: 10px; }.equipment-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; padding-top: 12px; border-top: 1px solid #edf0f5; }.equipment-footer small { color: var(--muted); font-size: 10px; }.equipment-footer .row-actions { justify-content: flex-end; }

/* Agenda, projects and reports */
.agenda-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 15px; }.calendar-card { padding: 20px; }.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }.calendar-head button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 9px; color: var(--blue); background: #fff; }.calendar-head strong, .calendar-head small { display: block; text-align: center; }.calendar-head strong { font-size: 15px; }.calendar-head small { margin-top: 2px; color: var(--muted); font-size: 10px; }.weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }.weekdays { margin-bottom: 7px; color: var(--muted-2); font-size: 9px; font-weight: 900; text-align: center; }.calendar-day { min-height: 39px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; color: #54637a; background: #fbfcfe; font-size: 11px; }.calendar-day.muted { color: #c4ccd7; background: transparent; }.calendar-day.today { color: #fff; background: var(--blue); }.calendar-day.has-event { position: relative; color: var(--blue); border-color: #cbd3ff; background: var(--blue-soft); }.calendar-day.has-event::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--amber); }.calendar-day.today.has-event { color: #fff; background: var(--blue); }.agenda-list { padding: 20px; }.event-list { display: grid; gap: 0; }.event-row { display: grid; grid-template-columns: 55px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf0f5; }.event-row:last-child { border-bottom: 0; }.event-time { color: var(--blue); font-size: 11px; font-weight: 850; }.event-row b, .event-row small { display: block; }.event-row b { font-size: 12px; }.event-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }.integration-note { display: flex; gap: 10px; margin-top: 15px; padding: 12px; border: 1px solid #dfe5ef; border-radius: 10px; background: #f6f8fc; }.integration-note > span { color: #3b8f69; font-size: 16px; }.integration-note b, .integration-note small { display: block; }.integration-note b { font-size: 11px; }.integration-note small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.project-card { padding: 18px; }.project-card header { display: flex; justify-content: space-between; gap: 10px; }.project-card h3 { margin: 0; font-size: 15px; }.project-card p { margin: 5px 0 14px; color: var(--muted); font-size: 11px; }.progress-bar { height: 7px; overflow: hidden; border-radius: 5px; background: #e9edf4; }.progress-bar i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }.project-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 10px; }.stage-list { display: grid; gap: 7px; margin-top: 16px; }.stage-row { display: flex; align-items: center; gap: 8px; color: #52617a; font-size: 11px; }.stage-row i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #c4ccd8; font-size: 10px; font-style: normal; }.stage-row.done i { background: #4a9a72; }.stage-row.current i { background: var(--blue); }.reports-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 15px; }.bar-chart { display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 12px; min-height: 230px; padding: 20px 10px 0; border-bottom: 1px solid var(--line); }.bar-col { min-width: 0; display: grid; align-items: end; justify-items: center; gap: 7px; height: 100%; }.bar-col i { width: min(44px, 80%); min-height: 4px; border-radius: 8px 8px 0 0; background: var(--blue); }.bar-col b { color: var(--ink); font-size: 10px; }.bar-col small { color: var(--muted); font-size: 10px; }

/* Settings/admin */
.settings-grid, .admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }.settings-card, .admin-card { padding: 20px; }.settings-card form, .admin-card form { display: grid; gap: 14px; }.color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.color-input { display: grid; gap: 6px; color: #42516a; font-size: 11px; font-weight: 800; }.color-input input { height: 42px; min-height: 42px; padding: 4px; }.logo-upload { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }.logo-preview { min-width: 190px; min-height: 76px; display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px dashed #cbd4e3; border-radius: 12px; background: #f9fafc; }.logo-preview img { max-width: 150px; max-height: 48px; object-fit: contain; }.logo-preview b { font-size: 17px; }.logo-preview small { display: block; color: var(--blue); font-size: 8px; letter-spacing: 2px; }.settings-note { padding: 12px; border: 1px solid #dfe5ef; border-radius: 10px; color: var(--muted); background: #f6f8fc; font-size: 11px; }.settings-note b { color: var(--ink); }.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.plan-card { padding: 19px; }.plan-card.selected { border-color: #9da9ff; box-shadow: 0 0 0 3px #e8ebff; }.plan-card h3 { margin: 0; font-size: 17px; }.plan-card .price { margin: 13px 0 15px; font-size: 29px; font-weight: 850; letter-spacing: -1px; }.plan-card .price small { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0; }.feature-list { display: grid; gap: 8px; min-height: 134px; padding: 0; margin: 0; list-style: none; color: #607087; font-size: 11px; }.feature-list li::before { content: "✓"; margin-right: 7px; color: #3b8f69; font-weight: 900; }.role-chip { display: inline-flex; padding: 5px 8px; border-radius: 20px; color: #52617a; background: #eef1f5; font-size: 10px; font-weight: 850; }.role-chip.master { color: #3f51c8; background: var(--blue-soft); }.role-chip.engineer { color: #795abf; background: #f1edff; }.role-chip.reseller { color: #9a6d16; background: var(--amber-soft); }.access-card { padding: 20px; }.access-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }.access-form .full { grid-column: 1 / -1; }.access-note { margin-top: 15px; padding: 12px; border: 1px solid #dfe5ef; border-radius: 10px; color: var(--muted); background: #f6f8fc; font-size: 11px; }.access-note b { color: var(--ink); }.connection-card { display: grid; gap: 13px; padding: 18px; }.connection-head { display: flex; align-items: center; gap: 11px; }.connection-logo { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--navy-2); font-weight: 900; }.connection-head b, .connection-head small { display: block; }.connection-head small { margin-top: 2px; color: var(--muted); font-size: 10px; }.connection-status { margin-left: auto; color: var(--muted); font-size: 10px; }.connection-status.on { color: #3b8f69; }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.tracked-card { padding: 18px; }.tracked-card h3 { margin: 0; font-size: 14px; }.tracked-card .link-value { margin: 12px 0; padding: 9px; overflow: hidden; border-radius: 8px; color: #52617a; background: #f3f5f9; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.tracked-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }.tracked-stats b, .tracked-stats small { display: block; }.tracked-stats b { font-size: 16px; }.tracked-stats small { color: var(--muted); font-size: 9px; }
.contract-layout { display: grid; grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr); gap: 15px; align-items: start; }.contract-form, .document-preview { padding: 20px; }.contract-form form { display: grid; gap: 13px; }.document-paper { min-height: 690px; padding: 42px 48px; border: 1px solid #d9dee7; background: #fff; box-shadow: 0 8px 24px rgba(21,32,51,.06); font-family: Georgia, serif; }.document-paper h2 { margin: 0 0 22px; text-align: center; font-size: 21px; }.document-paper p { margin: 0 0 13px; color: #303844; font-size: 13px; line-height: 1.65; }.document-paper .doc-signatures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 35px; margin-top: 80px; text-align: center; }.doc-signatures div { padding-top: 9px; border-top: 1px solid #6a7382; color: #4e5969; font-family: inherit; font-size: 11px; }

/* Engineer */
.engineer-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 15px; align-items: start; }.process-list, .process-detail { padding: 18px; }.process-list-items { display: grid; gap: 7px; }.process-select { width: 100%; display: grid; gap: 3px; padding: 11px; border: 1px solid transparent; border-radius: 10px; color: #52617a; background: #f7f8fb; text-align: left; }.process-select:hover, .process-select.active { color: var(--blue); border-color: #cbd3ff; background: var(--blue-soft); }.process-select b, .process-select small { display: block; }.process-select b { color: inherit; font-size: 12px; }.process-select small { color: var(--muted); font-size: 10px; }.process-header { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }.process-header h2 { margin: 0; font-size: 20px; }.process-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }.timeline { display: grid; gap: 0; margin-top: 20px; }.timeline-step { position: relative; display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; gap: 11px; min-height: 74px; }.timeline-step:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 33px; bottom: 0; width: 2px; background: #e1e6ef; }.timeline-step.done:not(:last-child)::before { background: #8bc5a8; }.timeline-dot { position: relative; z-index: 1; width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; color: #718096; background: #eef1f5; font-size: 11px; font-weight: 900; }.timeline-step.done .timeline-dot { color: #fff; background: #4b9d73; }.timeline-step.current .timeline-dot { color: #fff; background: var(--blue); }.timeline-step.changes .timeline-dot { color: #fff; background: var(--red); }.timeline-step b { display: block; padding-top: 4px; font-size: 12px; }.timeline-step small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }.timeline-status { padding-top: 6px; color: var(--muted); font-size: 10px; text-align: right; }.timeline-step.current .timeline-status { color: var(--blue); font-weight: 800; }.stage-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }.engineer-note { margin-top: 17px; padding: 13px; border: 1px solid #dfe5ef; border-radius: 10px; background: #f6f8fc; }.engineer-note b { font-size: 11px; }.engineer-note p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }

/* Modal and overlays */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; background: rgba(8,15,29,.62); backdrop-filter: blur(4px); }.modal { width: min(100%, 650px); max-height: min(90vh, 820px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 28px 90px rgba(5,13,26,.34); }.modal.large { width: min(100%, 1000px); }.modal-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 19px 21px; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }.modal-header h2 { margin: 0; font-size: 19px; letter-spacing: -.5px; }.modal-header p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }.modal-close { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; }.modal-close:hover { color: var(--blue); border-color: #cbd3ff; background: var(--blue-soft); }.modal-body { padding: 21px; }.modal-form { display: grid; gap: 14px; }.modal-form .form-grid { gap: 13px; }.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding-top: 5px; }.proposal-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }.proposal-hero { padding: 30px; color: #fff; background: var(--navy-2); }.proposal-hero h1 { max-width: 680px; margin: 11px 0 9px; font-size: clamp(28px, 5vw, 48px); letter-spacing: -2px; line-height: 1.05; }.proposal-hero p { max-width: 660px; margin: 0; color: #bdc8d9; font-size: 13px; }.proposal-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 25px; }.proposal-meta div { padding: 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(255,255,255,.06); }.proposal-meta b, .proposal-meta small { display: block; }.proposal-meta b { font-size: 16px; }.proposal-meta small { margin-top: 3px; color: #aeb9cb; font-size: 9px; }.proposal-section { padding: 24px 30px; }.proposal-section + .proposal-section { border-top: 1px solid var(--line); }.proposal-section h3 { margin: 0 0 10px; font-size: 16px; }.proposal-section p { margin: 0; color: #5e6b7e; font-size: 12px; line-height: 1.65; }.proposal-number-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }.proposal-number { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfe; }.proposal-number b, .proposal-number small { display: block; }.proposal-number b { color: var(--blue); font-size: 19px; }.proposal-number small { margin-top: 3px; color: var(--muted); font-size: 10px; }.notifications-panel, .profile-menu { position: absolute; top: 57px; right: 0; z-index: 100; width: min(360px, calc(100vw - 28px)); max-height: 480px; overflow: auto; padding: 8px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-lg); }.notifications-panel header, .profile-menu header { display: flex; justify-content: space-between; gap: 10px; padding: 10px; }.notifications-panel header b, .profile-menu header b { font-size: 13px; }.notice-row { display: grid; grid-template-columns: 29px minmax(0, 1fr); gap: 9px; padding: 11px 9px; border-radius: 9px; }.notice-row:hover { background: #f7f8fb; }.notice-row b, .notice-row small { display: block; }.notice-row b { font-size: 11px; }.notice-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }.profile-menu { width: 240px; padding: 7px; }.profile-menu header { padding: 10px; border-bottom: 1px solid var(--line); }.profile-menu header small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }.profile-menu button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px; border: 0; border-radius: 8px; color: #52617a; background: transparent; text-align: left; font-size: 11px; font-weight: 750; }.profile-menu button:hover { color: var(--blue); background: var(--blue-soft); }.profile-menu button.danger { color: var(--red); }.toast { position: fixed; right: 22px; bottom: 22px; z-index: 300; max-width: min(390px, calc(100vw - 44px)); display: flex; align-items: flex-start; gap: 9px; padding: 13px 15px; color: #fff; background: var(--navy-2); border: 1px solid #2b3e60; border-radius: 11px; box-shadow: var(--shadow-lg); font-size: 12px; animation: toast-in .2s ease; }.toast.success { border-color: #4f9d78; }.toast.error { border-color: #c75f68; }.toast b { display: block; margin-bottom: 2px; }.toast small { color: #b4c0d3; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.logo-upload-status { flex: 1 1 100%; color: var(--muted); font-size: 11px; }
.public-brand-image { display: block; width: auto; max-width: 180px; height: 34px; object-fit: contain; border-radius: 7px; background: #fff; }

/* Responsive */
@media (max-width: 1180px) {
  :root { --sidebar-width: 238px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .two-column, .reports-grid, .contract-layout { grid-template-columns: 1fr; }
  .result-card { position: relative; top: auto; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-intro { min-height: auto; padding: 28px 28px 35px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .intro-copy { margin: 48px 0 27px; }.intro-copy h1 { font-size: 42px; }.intro-copy p { font-size: 15px; }
  .login-proof-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }.login-proof-grid > div { display: block; padding: 10px 0; border-top: 0; }.login-proof-grid b, .login-proof-grid span { display: block; }.login-proof-grid span { margin-top: 5px; font-size: 11px; }
  .login-intro footer { margin-top: 22px; }
  .login-panel { min-height: auto; padding: 30px 18px 48px; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 20px 0 45px rgba(0,0,0,.35); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu-button { display: grid; }
  .mobile-shade { position: fixed; inset: 0; z-index: 70; background: rgba(8,15,29,.56); }
  .topbar-search { width: 175px; }
  .profile-trigger > span:last-child { display: none; }
  .settings-grid, .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 14px; }
  .login-intro { padding: 23px 19px 28px; }.intro-copy { margin-top: 42px; }.intro-copy h1 { font-size: 36px; letter-spacing: -1.8px; }.intro-copy p { font-size: 14px; }.login-proof-grid { grid-template-columns: 1fr; gap: 0; }.login-proof-grid > div { display: flex; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.10); }.login-proof-grid span { margin: 0; }.login-panel { padding: 20px 12px 35px; }.login-card { padding: 24px 18px; border-radius: 16px; }.demo-actions { grid-template-columns: 1fr; }
  .topbar { height: 62px; padding: 0 12px; }.breadcrumb { display: none; }.topbar-left { flex: 1; }.topbar-search { flex: 1; width: auto; }.topbar-actions { gap: 2px; }.topbar-actions > .icon-button:first-of-type { display: none; }
  .page { padding: 22px 12px 48px; }.page-heading { display: block; }.page-heading h1 { font-size: 27px; }.page-heading .heading-actions { margin-top: 15px; }.page-heading .heading-actions .button { flex: 1; }
  .metric-grid, .summary-grid, .catalog-grid, .project-grid, .link-grid, .plan-grid { grid-template-columns: 1fr; }.dashboard-grid { gap: 12px; }.card-pad, .chart-card, .funnel-card, .quick-card, .form-card, .payment-card, .settings-card, .admin-card, .process-list, .process-detail, .contract-form, .document-preview { padding: 16px; }
  .form-grid, .access-form, .color-grid { grid-template-columns: 1fr; }.form-grid .wide, .form-grid .full, .access-form .full { grid-column: auto; }.quote-progress { overflow-x: auto; grid-template-columns: repeat(4, minmax(125px, 1fr)); }.progress-step { padding-left: 5px; }
  .line-chart { grid-template-columns: 33px 1fr; height: 190px; }.funnel { min-height: 175px; gap: 5px; }.quick-action { grid-template-columns: 33px minmax(0, 1fr) 14px; }
  .catalog-toolbar { display: grid; grid-template-columns: 1fr; }.catalog-toolbar .search-field { width: 100%; }.catalog-tabs { overflow-x: auto; }
  .agenda-layout, .engineer-layout { grid-template-columns: 1fr; }.kanban { grid-template-columns: repeat(4, minmax(220px, 1fr)); margin-right: -12px; padding-right: 12px; }.proposal-meta, .proposal-number-grid { grid-template-columns: repeat(2, 1fr); }.proposal-hero, .proposal-section { padding: 22px 18px; }.proposal-hero h1 { font-size: 33px; }.document-paper { min-height: 560px; padding: 27px 20px; }.document-paper .doc-signatures { grid-template-columns: 1fr; gap: 30px; margin-top: 50px; }
  .event-row { grid-template-columns: 47px minmax(0, 1fr); }.event-row > .button { grid-column: 2; justify-self: start; }.timeline-step { grid-template-columns: 33px minmax(0, 1fr); }.timeline-status { grid-column: 2; padding-top: 0; text-align: left; }.modal-backdrop { padding: 8px; }.modal-body { padding: 16px; }.modal-header { padding: 15px 16px; }.modal-actions .button { flex: 1; }.toast { right: 12px; bottom: 12px; max-width: calc(100vw - 24px); }.stage-upload-file-list { grid-template-columns: 1fr; max-height: 220px; }.charger-contract-row { display: grid; align-items: start; }.charger-contract-row .row-actions { display: flex; flex-wrap: wrap; }
}

/* Integrações Google e envio múltiplo de documentos. */
.file-upload-hint { display: inline-block; margin-left: 5px; color: var(--blue); font-size: 9px; font-weight: 800; }
.stage-upload-file-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; max-height: 230px; overflow: auto; margin-top: 8px; padding: 10px; border: 1px solid #e4eaf2; border-radius: 12px; background: #f8fbff; }
.stage-upload-file-list:empty { display: none; }
.stage-upload-file-item { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid #e1e8f2; border-radius: 10px; background: #fff; }
.stage-upload-file-thumb, .stage-upload-file-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 8px; }
.stage-upload-file-thumb { display: block; object-fit: cover; background: #eef3f9; }
.stage-upload-file-icon { display: grid; place-items: center; color: #1478e5; background: #eaf3ff; font-size: 10px; font-weight: 900; }
.stage-upload-file-meta { min-width: 0; display: grid; gap: 3px; }
.stage-upload-file-meta b { overflow: hidden; color: var(--ink); font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.stage-upload-file-meta small { color: var(--muted); font-size: 9px; }
.charger-contract-empty { margin-top: 15px; }
.charger-contracts-panel { margin-top: 15px; padding: 18px; }
.charger-contract-list { display: grid; gap: 8px; }
.charger-contract-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid #e3eaf3; border-radius: 10px; background: #fbfcfe; }
.charger-contract-row > div:first-child { min-width: 0; }
.charger-contract-row b, .charger-contract-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.charger-contract-row b { color: var(--ink); font-size: 12px; }
.charger-contract-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.charger-contract-row .row-actions { flex: 0 0 auto; }
.drive-settings-grid { align-items: start; }
.drive-account { display: flex; align-items: center; gap: 10px; margin-top: 15px; padding: 11px; border: 1px solid #e5ebf3; border-radius: 11px; background: #fbfcfe; }
.drive-account-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; border-radius: 9px; color: #fff; background: #4285f4; font-size: 14px; font-weight: 900; }
.drive-account b, .drive-account small { display: block; }
.drive-account b { font-size: 11px; }
.drive-account small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.drive-folder-tree { display: grid; gap: 9px; margin: 5px 0 14px; padding: 14px; border: 1px solid #e4eaf2; border-radius: 12px; background: #fbfcfe; }
.drive-folder-tree div { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 11px; }
.drive-folder-tree div:nth-child(n+2) { padding-left: 16px; color: #53637a; }
.drive-folder-tree span { color: #4285f4; font-weight: 900; }
.drive-muted { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.drive-security-note { margin-bottom: 15px; }
.drive-preview-note { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 10px; border: 1px solid #dfe8f3; border-radius: 10px; background: #f8fbff; }
.drive-preview-note > div { min-width: 0; flex: 1; }
.drive-preview-note b, .drive-preview-note small { display: block; }
.drive-preview-note b { font-size: 10px; }
.drive-preview-note small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.drive-preview-note .button { flex: 0 0 auto; min-height: 29px; padding: 6px 9px; font-size: 9px; }
@media (max-width: 620px) {
  .file-upload-hint { display: block; margin: 3px 0 0; }
  .drive-preview-note { align-items: flex-start; flex-wrap: wrap; }
  .drive-preview-note .button { margin-left: 40px; }
}

@media print {
  body { background: #fff; }
  .sidebar, .topbar, .page-heading, .no-print, .modal-header, .modal-actions, #login-screen, .toast { display: none !important; }
  .app-shell, .main { display: block; min-height: 0; }.page { padding: 0; max-width: none; }.card, .document-paper, .proposal-preview { box-shadow: none; border-color: #d7dce5; }.result-card { color: #111; background: #fff; border-color: #d7dce5; }.result-card * { color: #111 !important; }.modal-backdrop { position: static; display: block; padding: 0; background: #fff; }.modal { width: 100%; max-height: none; border: 0; box-shadow: none; }.modal-body { padding: 0; }
}

/* Direção visual escolhida: interface clara, azul-gelo, arredondada e arejada. */
body.app-active { background: #f7f8fb; }
body.app-active .app-shell { background: radial-gradient(circle at 72% 16%, rgba(247, 225, 237, .48), transparent 34%), radial-gradient(circle at 42% 12%, rgba(218, 236, 255, .55), transparent 32%), #f7f8fb; }
body.app-active .sidebar { background: rgba(245, 249, 253, .94); border-right-color: #e6edf5; box-shadow: 8px 0 24px rgba(75, 104, 143, .035); }
body.app-active .sidebar .brand strong { color: #1b2538; }
body.app-active .sidebar .brand small { color: #1478e5; }
body.app-active .sidebar .brand-mark { background: #1478e5; box-shadow: 0 8px 18px rgba(20, 120, 229, .23); }
body.app-active .workspace-switcher { background: #edf4fb; border-color: #e0e9f3; color: #263348; }
body.app-active .workspace-avatar { color: #1478e5; background: #dcecff; }
body.app-active .workspace-switcher small { color: #8794a6; }
body.app-active .nav-section-label { color: #a0aaba; }
body.app-active .nav-item { color: #57667a; }
body.app-active .nav-item:hover { color: #176fce; border-color: transparent; background: #eaf3ff; }
body.app-active .nav-item.active { color: #126dcd; border-color: transparent; background: #eaf3ff; box-shadow: none; }
body.app-active .nav-item .nav-icon, body.app-active .nav-item.active .nav-icon, body.app-active .nav-item:hover .nav-icon { color: currentColor; }
body.app-active .nav-item .nav-count { color: #1478e5; background: #dbeaff; }
body.app-active .sidebar-bottom { border-top-color: #e6edf5; }
body.app-active .main { background: transparent; }
body.app-active .topbar { height: 78px; margin: 15px 18px 0; padding: 0 28px; border: 1px solid rgba(231, 236, 244, .86); border-radius: 22px; background: rgba(255,255,255,.92); box-shadow: 0 8px 26px rgba(58, 79, 113, .035); }
body.app-active .breadcrumb { color: #6d7889; font-size: 14px; }
body.app-active .breadcrumb b { color: #1b2538; }
body.app-active .breadcrumb span { color: #9aa5b4; }
body.app-active .topbar-search { background: #f9fbfe; border-color: #e8edf4; }
body.app-active .icon-button { color: #667386; }
body.app-active .profile-trigger:hover { background: #f7faff; border-color: #e4ebf4; }
body.app-active .page { padding-top: 36px; }
body.app-active .page-heading h1 { font-weight: 740; }
body.app-active .card, body.app-active .metric-card { box-shadow: 0 10px 26px rgba(62, 83, 116, .055); }
body.app-active .card:hover, body.app-active .metric-card:hover { box-shadow: 0 15px 34px rgba(62, 83, 116, .085); }
body.app-active .button-primary { background: #1478e5; border-color: #1478e5; box-shadow: 0 7px 17px rgba(20,120,229,.18); }
body.app-active .button-primary:hover { background: #0f6bcf; border-color: #0f6bcf; }
body.app-active .overline, body.app-active .eyebrow { color: #1478e5; }
body.app-active .metric-card.highlight { background: #edf5ff; border-color: #d9eaff; color: #1b2538; }
body.app-active .metric-card.highlight small, body.app-active .metric-card.highlight strong, body.app-active .metric-card.highlight .metric-change { color: #1b2538; }
body.app-active .metric-card.highlight .metric-change { color: #1478e5; }
body.app-active .chart-svg path { stroke: #1478e5; }
body.app-active .chart-svg .area { fill: rgba(20,120,229,.10); }
body.app-active .funnel-bar { background: #1478e5; }
body.app-active .funnel-col:nth-child(2) .funnel-bar { background: #3a8fe9; }
body.app-active .funnel-col:nth-child(3) .funnel-bar { background: #6aa9ee; }
body.app-active .funnel-col:nth-child(4) .funnel-bar { background: #91c1f2; }
body.app-active .result-card { background: #f2f7fd; border-color: #dbe8f6; color: #1b2538; box-shadow: 0 15px 34px rgba(62,83,116,.08); }
body.app-active .result-top, body.app-active .result-main, body.app-active .result-stat { border-color: #dfE9f4; }
body.app-active .result-top h2, body.app-active .result-main strong, body.app-active .result-stat b { color: #1b2538; }
body.app-active .result-top .overline { color: #1478e5; }.result-status { color: #1478e5; }
body.app-active .result-main > span, body.app-active .result-stat small, body.app-active .result-pills span, body.app-active .payback-head, body.app-active .payback-labels { color: #718198; }
body.app-active .result-main strong i { color: #718198; }.result-pills span { border-color: #dbe5f0; background: #fff; }.result-pills b { color: #1b2538; }.payback-track { background: #d8e5f2; }.payback-track i { background: #1478e5; }.payback-track b { color: #d3911f; }
body.app-active .result-actions .button-primary { color: #fff; background: #1478e5; }.result-actions .button-ghost { color: #52617a; border-color: #ccd8e6; }
body.app-active .modal-backdrop { background: rgba(42, 58, 83, .38); }
@media (max-width: 860px) { body.app-active .topbar { margin: 10px 10px 0; padding: 0 14px; border-radius: 16px; } }
@media (max-width: 620px) { body.app-active .topbar { height: 62px; margin: 8px 8px 0; } body.app-active .page { padding-top: 24px; } }

/* Glassmorphism inspirado no iOS 17/macOS: os orbes ficam atrás dos painéis. */
body.app-active .app-shell { position: relative; isolation: isolate; overflow: hidden; }
body.app-active .app-shell::before, body.app-active .app-shell::after { content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(76px); opacity: .42; }
body.app-active .app-shell::before { width: 380px; height: 380px; left: 18%; top: 12%; background: rgba(135, 195, 255, .38); }
body.app-active .app-shell::after { width: 460px; height: 460px; right: 12%; top: 9%; background: rgba(244, 177, 216, .24); }
body.app-active .sidebar, body.app-active .main { position: relative; z-index: 1; }
body.app-active .topbar, body.app-active .card, body.app-active .metric-card, body.app-active .modal, body.app-active .workspace-switcher, body.app-active .quick-action, body.app-active .equipment-card, body.app-active .project-card, body.app-active .summary-card, body.app-active .settings-card, body.app-active .admin-card, body.app-active .access-card, body.app-active .connection-card, body.app-active .tracked-card { background: rgba(255,255,255,.68); border-color: rgba(255,255,255,.84); backdrop-filter: blur(18px) saturate(1.08); -webkit-backdrop-filter: blur(18px) saturate(1.08); }
body.app-active .sidebar { background: rgba(245,249,253,.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
body.app-active .result-card { background: rgba(242,247,253,.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
body.app-active .bar-col i { transform-origin: bottom; transform: scaleY(0); animation: ios-bar-rise .95s cubic-bezier(.17, .89, .34, 1.28) both; }
body.app-active .bar-col:nth-child(1) i { background: #37b978; animation-delay: .04s; }
body.app-active .bar-col:nth-child(2) i { background: #f1a63b; animation-delay: .11s; }
body.app-active .bar-col:nth-child(3) i { background: #886bd7; animation-delay: .18s; }
body.app-active .bar-col:nth-child(4) i { background: #3b92e6; animation-delay: .25s; }
body.app-active .bar-col:nth-child(5) i { background: #e875a5; animation-delay: .32s; }
body.app-active .bar-col:nth-child(6) i { background: #5cb8c6; animation-delay: .39s; }
body.app-active .funnel-bar { transform-origin: bottom; animation: ios-bar-rise .95s cubic-bezier(.17, .89, .34, 1.28) both; }
body.app-active .funnel-col:nth-child(1) .funnel-bar { animation-delay: .05s; }
body.app-active .funnel-col:nth-child(2) .funnel-bar { animation-delay: .13s; }
body.app-active .funnel-col:nth-child(3) .funnel-bar { animation-delay: .21s; }
body.app-active .funnel-col:nth-child(4) .funnel-bar { animation-delay: .29s; }
@keyframes ios-bar-rise { 0% { opacity: .2; transform: scaleY(0); } 62% { opacity: 1; transform: scaleY(1.045); } 82% { transform: scaleY(.975); } 100% { opacity: 1; transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { body.app-active .bar-col i, body.app-active .funnel-bar { animation: none; transform: scaleY(1); } }

/* Ajuste de composição para reproduzir o print de referência. */
@media (min-width: 861px) {
  body.app-active { --sidebar-width: clamp(292px, 19.5vw, 356px); }
  body.app-active .sidebar { padding: 0 0 16px; }
  body.app-active .sidebar .brand { height: 97px; margin: 0 0 22px; padding: 24px 25px; border-bottom: 1px solid #e4ebf3; }
  body.app-active .sidebar .brand-mark { width: 46px; height: 46px; border-radius: 15px; }
  body.app-active .sidebar .product-brand-icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 15px; }
  body.app-active .sidebar .brand-mark { font-size: 0; }
  body.app-active .sidebar .brand-mark::after { content: '☼'; color: #fff; font-size: 26px; line-height: 1; }
  body.app-active .sidebar .brand strong { font-size: 24px; letter-spacing: -1px; }
  body.app-active .sidebar .brand small { font-size: 10px; letter-spacing: 2.5px; }
  body.app-active .workspace-switcher { display: none; }
  body.app-active .sidebar-nav { gap: 0; }
  body.app-active .nav-section-label { padding: 13px 25px 7px; font-size: 11px; }
  body.app-active .nav-item { min-height: 53px; padding: 10px 25px; border-radius: 0; font-size: 16px; font-weight: 560; }
  body.app-active .nav-icon { width: 18px; font-size: 18px; }
  body.app-active .nav-item.active { background: rgba(218,235,255,.62); box-shadow: inset 3px 0 #1478e5; }
  body.app-active .nav-item .nav-count { margin-right: 18px; }
  body.app-active .sidebar-bottom { padding: 13px 0 0; margin: auto 0 0; border-top: 1px solid #e4ebf3; }
  body.app-active .sidebar-bottom .nav-item { min-height: 47px; font-size: 13px; }
  body.app-active .topbar { height: 94px; margin: 0 5px 0 15px; padding: 0 40px; border-radius: 0 0 22px 22px; }
  body.app-active .page { padding-left: clamp(28px, 4vw, 72px); padding-right: clamp(28px, 4vw, 72px); }
}

/* Proposta pública: mesma linguagem visual da referência, com um único sistema recomendado. */
body.public-proposal-active { min-width: 320px; overflow-x: hidden; color: #18191c; background: #f8faf9; }
body.public-proposal-active #app-root { display: block; }
.public-proposal { --public-yellow: #f0ce00; --public-ink: #17181b; --public-muted: #66717d; --public-line: #e4e8e8; min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 2% 28%, rgba(248, 245, 211, .42), transparent 25%), radial-gradient(circle at 94% 34%, rgba(221, 237, 255, .52), transparent 30%), #f9fbfa; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.public-header { position: fixed; top: 0; right: 0; left: 0; z-index: 100; height: 62px; border-bottom: 1px solid rgba(225, 229, 232, .92); background: rgba(255,255,255,.91); box-shadow: 0 5px 18px rgba(38, 46, 55, .06); backdrop-filter: blur(17px); -webkit-backdrop-filter: blur(17px); }
.public-header-inner { width: min(1240px, calc(100% - 48px)); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; }
.public-brand, .public-header-meta, .public-brand > span:last-child { display: flex; align-items: center; }
.public-brand { gap: 12px; min-width: 0; }.public-brand-mark { width: 43px; height: 34px; display: grid; place-items: center; border: 2px solid #202226; border-radius: 8px; color: var(--public-yellow); background: #202226; font-size: 23px; font-weight: 950; line-height: 1; }
.public-brand > span:last-child { gap: 16px; min-width: 0; }.public-brand b { color: #22252a; font-size: 13px; letter-spacing: .7px; text-transform: uppercase; white-space: nowrap; }.public-brand small { color: #7f8892; font-size: 11px; font-weight: 700; letter-spacing: 3px; white-space: nowrap; }
.public-header-meta { gap: 18px; color: #7f8892; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: 1px; }.public-approve-button { min-height: 40px; padding: 0 25px; border: 0; border-radius: 23px; color: #161719; background: var(--public-yellow); box-shadow: 0 9px 18px rgba(240, 206, 0, .25); font-size: 12px; font-weight: 900; letter-spacing: .35px; text-transform: uppercase; }.public-approve-button:hover { background: #e3c200; transform: translateY(-1px); }
.public-hero { position: relative; min-height: 760px; display: grid; place-items: center; overflow: hidden; color: #fff; background: #25282c; }.public-hero::before { content: ""; position: absolute; inset: 0; opacity: .55; background: linear-gradient(157deg, rgba(13,16,18,.85) 0 22%, transparent 22% 42%, rgba(15,17,20,.38) 42% 44%, transparent 44% 100%), repeating-linear-gradient(16deg, rgba(255,255,255,.12) 0 1px, transparent 1px 56px), repeating-linear-gradient(106deg, rgba(255,255,255,.08) 0 1px, transparent 1px 82px); transform: scale(1.3) rotate(-4deg); }.public-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,15,.82), rgba(12,14,17,.76) 45%, rgba(13,15,18,.94)); }
.public-hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 74% 35%, rgba(119, 98, 31, .22), transparent 28%), radial-gradient(circle at 20% 74%, rgba(73, 104, 118, .24), transparent 30%); z-index: 1; }
.public-hero-content { position: relative; z-index: 2; width: min(920px, calc(100% - 36px)); padding: 110px 0 52px; text-align: center; }.public-hero-logo { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 15px; color: var(--public-yellow); font-size: 20px; font-weight: 950; letter-spacing: 1px; text-transform: uppercase; }.public-hero-logo img { max-width: 148px; max-height: 44px; object-fit: contain; }.public-hero-logo span { width: 39px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(240,206,0,.8); border-radius: 7px; background: rgba(0,0,0,.48); font-weight: 950; }.public-location { color: #bfc5ca; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: 2px; }.public-location i { margin: 0 7px; color: var(--public-yellow); font-style: normal; }.public-hero h1 { max-width: 830px; margin: 52px auto 51px; color: #f5f6f6; font-size: clamp(27px, 4vw, 46px); font-weight: 350; letter-spacing: -1.5px; line-height: 1.17; }.public-hero h1 strong { font-weight: 850; }.public-kicker { display: block; color: var(--public-yellow); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 900; letter-spacing: 3px; }.public-hero-price { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin-top: 20px; color: #fff; }.public-hero-price span { padding-top: 12px; color: #b6babd; font-size: 28px; font-weight: 350; }.public-hero-price strong { font-size: clamp(54px, 8vw, 93px); font-weight: 950; letter-spacing: -5px; line-height: .95; }.public-hero-content > p { margin: 58px 0 42px; color: #bec4c8; font-size: 17px; line-height: 1.55; }.public-outline-button { min-height: 54px; padding: 0 29px; border: 1px solid rgba(255,255,255,.25); border-radius: 30px; color: #fff; background: rgba(255,255,255,.03); font-size: 12px; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; }.public-outline-button:hover { border-color: var(--public-yellow); color: var(--public-yellow); background: rgba(240,206,0,.08); }.public-outline-button b { margin-left: 11px; color: var(--public-yellow); font-size: 17px; }
.public-section { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }.public-diagnosis { padding: 120px 0 85px; text-align: center; }.public-section-intro { max-width: 760px; margin: 0 auto 42px; }.public-pill { display: inline-flex; padding: 9px 16px; border-radius: 20px; color: #625b25; background: #fffbe3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 900; letter-spacing: 1.5px; }.public-pill:first-letter { color: var(--public-yellow); }.public-section-intro > strong { display: block; margin-top: 26px; color: var(--public-yellow); font-size: clamp(45px, 6vw, 78px); font-weight: 950; letter-spacing: -4px; line-height: 1; }.public-section-intro h2 { max-width: 700px; margin: 24px auto 17px; color: #191a1d; font-size: clamp(22px, 3vw, 34px); letter-spacing: -1.5px; line-height: 1.14; }.public-section-intro p { margin: 0; color: #6c7781; font-size: 17px; line-height: 1.5; }
.public-metrics { overflow: hidden; padding: 63px 70px 58px; border-radius: 35px; color: #f7f8f8; background: #17181a; box-shadow: 0 26px 45px rgba(28, 35, 39, .18); }.public-production { padding-bottom: 55px; border-bottom: 1px solid rgba(255,255,255,.14); }.public-production > span { display: block; color: var(--public-yellow); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 900; letter-spacing: 3px; }.public-production > strong { display: block; margin-top: 21px; font-size: clamp(55px, 8vw, 84px); font-weight: 950; letter-spacing: -4px; line-height: 1; }.public-production > strong i, .public-metric-row i { color: #b5bdc0; font-size: .42em; font-style: normal; font-weight: 500; letter-spacing: 0; }.public-metric-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 49px; }.public-metric-row > div { padding: 0 24px; border-right: 1px solid rgba(255,255,255,.14); }.public-metric-row > div:last-child { border-right: 0; }.public-metric-row strong, .public-metric-row span { display: block; }.public-metric-row strong { font-size: clamp(28px, 4vw, 39px); font-weight: 900; letter-spacing: -1.5px; }.public-metric-row span { margin-top: 9px; color: #9da6aa; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 850; letter-spacing: 2px; }.public-metric-row > div:nth-child(2) strong { color: #f5f6f4; }.public-metric-row > div:nth-child(2) span { color: #62c68b; }
.public-installations { padding: 72px 0 100px; }.public-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }.public-section-heading h2 { margin: 0; color: #16181b; font-size: 28px; letter-spacing: -1px; }.public-slider-buttons { display: flex; gap: 12px; }.public-slider-buttons button { width: 48px; height: 48px; border: 1px solid #e5e9eb; border-radius: 50%; color: #46515b; background: rgba(255,255,255,.65); font-size: 20px; }.public-slider-buttons button:hover { color: #111; border-color: var(--public-yellow); background: #fffde7; }.public-installations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }.public-installation-card { position: relative; min-height: 445px; display: flex; align-items: flex-end; overflow: hidden; border-radius: 29px; box-shadow: 0 17px 35px rgba(44, 55, 58, .11); }.public-installation-card::before { content: ""; position: absolute; inset: 0; opacity: .88; background: repeating-linear-gradient(12deg, rgba(9,19,26,.28) 0 2px, transparent 2px 31px), repeating-linear-gradient(102deg, rgba(255,255,255,.18) 0 2px, transparent 2px 53px); }.public-photo-one { background: linear-gradient(145deg, #51685c, #111a1f 64%, #b2a07e); }.public-photo-two { background: linear-gradient(145deg, #0c4261, #156a85 38%, #d7a165 39% 44%, #263843 45%); }.public-photo-three { background: linear-gradient(145deg, #cfcac1, #665e55 47%, #212c2c 48% 55%, #938d77); }.public-installation-card > div { position: relative; z-index: 1; width: 100%; padding: 26px 30px 28px; color: #fff; background: linear-gradient(180deg, transparent, rgba(5,8,11,.88)); }.public-installation-card span { display: inline-block; padding: 7px 11px; border-radius: 14px; background: rgba(50, 52, 50, .7); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; font-weight: 850; letter-spacing: 1px; text-transform: uppercase; }.public-installation-card h3 { margin: 19px 0 3px; font-size: 22px; letter-spacing: .5px; text-transform: uppercase; }.public-installation-card small { color: #d9dedf; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.public-logos { padding: 20px 0 120px; text-align: center; }.public-section-label { color: #83909b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 900; letter-spacing: 2.5px; }.public-logos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }.public-logo-card { min-height: 105px; display: grid; place-items: center; padding: 18px 20px; border: 1px solid #edf0f0; border-radius: 16px; background: rgba(255,255,255,.74); box-shadow: 0 7px 18px rgba(68,80,87,.05); }.public-logo-card img { max-width: 145px; max-height: 52px; object-fit: contain; filter: saturate(.95); }.public-logo-card:nth-child(4n + 2), .public-logo-card:nth-child(4n + 4) { transform: translateY(16px); }
.public-math { padding: 0 0 116px; }.public-math-card { display: grid; grid-template-columns: .98fr 1.02fr; gap: 35px; min-height: 590px; padding: 65px 64px; border: 1px solid #e1e6e7; border-radius: 35px; background: rgba(255,255,255,.78); box-shadow: 0 15px 33px rgba(55, 65, 72, .08); }.public-math-copy h2 { margin: 0; color: #15171a; font-size: clamp(38px, 5vw, 55px); letter-spacing: -3px; line-height: .98; }.public-math-copy h3 { margin: 34px 0 20px; color: #e6c400; font-size: 18px; line-height: 1.35; }.public-math-copy > p { max-width: 540px; margin: 0; color: #69747e; font-size: 16px; line-height: 1.65; }.public-economy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 25px; margin-top: 51px; }.public-economy-grid > div { position: relative; }.public-economy-grid span { display: block; color: #7b8791; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 900; letter-spacing: 1.4px; }.public-economy-grid strong { display: block; margin-top: 9px; color: #202327; font-size: 23px; letter-spacing: -.8px; }.public-economy-grid strong.positive { color: #369965; }.public-economy-grid i { display: block; width: 100%; height: 5px; margin-top: 12px; border-radius: 6px; background: var(--public-yellow); }.public-economy-grid i.short { width: 19%; }.public-chart-wrap { align-self: center; min-width: 0; }.public-chart-legend { display: flex; justify-content: flex-end; gap: 17px; margin-bottom: 13px; color: #75818b; font-size: 11px; }.public-chart-legend i { width: 12px; height: 12px; display: inline-block; margin-right: 4px; border-radius: 50%; vertical-align: -2px; }.public-chart-legend i.yellow { background: var(--public-yellow); }.public-chart-legend i.black { background: #151719; }.public-chart-svg { width: 100%; overflow: visible; }.public-chart-grid line { stroke: #edf0ef; stroke-dasharray: 2 5; }.public-chart-area { fill: url(#public-chart-fill); }.public-chart-line { fill: none; stroke: var(--public-yellow); stroke-width: 4; stroke-linecap: round; }.public-investment-line { fill: none; stroke: #17191b; stroke-width: 4; stroke-linecap: round; }.public-chart-marker { fill: var(--public-yellow); stroke: #17191b; stroke-width: 3; }.public-chart-labels text { fill: #7d8992; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }.public-chart-annotation rect { fill: var(--public-yellow); }.public-chart-annotation text { fill: #17191b; font-size: 9px; font-weight: 900; }
.public-system { padding: 0 0 125px; text-align: center; }.public-system > h2, .public-checkout > h2 { margin: 0; color: #15171a; font-size: clamp(32px, 5vw, 53px); letter-spacing: -2.4px; }.public-system > p, .public-checkout > p { margin: 14px auto 42px; color: #69757f; font-size: 17px; }.public-system-card { position: relative; max-width: 860px; margin: 0 auto; padding: 53px 52px 42px; border: 2px solid #f2d631; border-radius: 31px; text-align: left; background: rgba(255,255,255,.82); box-shadow: 0 17px 35px rgba(52,65,71,.08); }.public-recommended { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); padding: 8px 19px; border-radius: 16px; color: #17191b; background: var(--public-yellow); font-size: 10px; font-weight: 950; letter-spacing: 1px; white-space: nowrap; }.public-system-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; padding-bottom: 28px; border-bottom: 1px solid #edf0ef; }.public-overline, .public-simulation-label { color: #7b8791; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 900; letter-spacing: 1.5px; }.public-system-heading h3 { margin: 11px 0 0; color: #17191c; font-size: 26px; letter-spacing: -.8px; }.public-system-price { text-align: right; }.public-system-price span { display: block; color: #8d97a0; font-size: 11px; }.public-system-price strong { display: block; margin-top: 5px; color: #17191b; font-size: 31px; letter-spacing: -1.5px; }.public-feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 25px; padding: 27px 0; color: #4e5c68; font-size: 14px; }.public-feature-list span::first-letter { color: #e2c500; }.public-equipment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }.public-equipment-card { padding: 16px; border: 1px solid #e2e8e8; border-radius: 16px; background: #f9fbfb; }.public-equipment-head { display: flex; align-items: center; gap: 13px; }.public-equipment-logo { width: 72px; height: 58px; display: grid; place-items: center; padding: 7px; border: 1px solid #e4e9e9; border-radius: 11px; background: #fff; }.public-equipment-logo img { max-width: 100%; max-height: 40px; object-fit: contain; }.public-equipment-fallback { color: #2e6ab0; font-size: 20px; font-weight: 950; }.public-equipment-card h4 { margin: 6px 0 1px; color: #202326; font-size: 15px; }.public-equipment-card small { color: #74808a; font-size: 11px; }.public-equipment-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }.public-equipment-specs > div { padding: 10px; border: 1px solid #e3e9e9; border-radius: 10px; background: #fff; }.public-equipment-specs span, .public-equipment-specs b { display: block; }.public-equipment-specs span { color: #8a959d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; font-weight: 900; letter-spacing: 1px; }.public-equipment-specs b { margin-top: 5px; color: #222529; font-size: 13px; }.public-equipment-card p { margin: 13px 0 0; padding-top: 11px; border-top: 1px solid #e3e9e9; color: #74808a; font-size: 11px; font-style: italic; }
.public-checkout { padding: 0 0 125px; text-align: center; }.public-payment-layout { display: grid; grid-template-columns: minmax(0, 1.34fr) minmax(280px, .66fr); gap: 30px; align-items: stretch; text-align: left; }.public-payment-panel, .public-cta-card { border-radius: 27px; background: rgba(255,255,255,.84); box-shadow: 0 12px 28px rgba(52,65,71,.07); }.public-payment-panel { padding: 31px 33px 35px; border-top: 3px solid var(--public-yellow); }.public-payment-tabs { display: flex; gap: 30px; margin-top: 24px; border-bottom: 1px solid #eef0ef; }.public-payment-tabs button { min-height: 48px; padding: 0 4px; border: 0; border-bottom: 3px solid transparent; color: #9da7ae; background: transparent; font-size: 15px; font-weight: 850; }.public-payment-tabs button.active { color: #181a1d; border-color: var(--public-yellow); }.public-payment-tabs button:hover { color: #181a1d; }.public-payment-result { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; margin-top: 38px; }.public-payment-result > div:first-child > span { display: block; color: #7b8791; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase; }.public-payment-result strong { display: block; margin-top: 12px; color: #17191c; font-size: clamp(37px, 5vw, 55px); font-weight: 950; letter-spacing: -3px; line-height: 1; }.public-payment-result strong small { color: #87929a; font-size: 19px; font-weight: 400; letter-spacing: 0; }.public-payment-result em { display: block; margin-top: 13px; color: #359b67; font-size: 12px; font-style: normal; font-weight: 850; }.public-payment-explain { padding: 23px; border: 1px solid #e5e9e7; border-radius: 16px; background: linear-gradient(135deg, #fffdf0, #f6fbfa); }.public-payment-explain h4 { margin: 0 0 10px; color: #202326; font-size: 15px; }.public-payment-explain p { margin: 0; color: #69757d; font-size: 13px; line-height: 1.55; }.public-cta-card { display: flex; flex-direction: column; justify-content: center; padding: 40px 33px; border: 1px solid #e4e9e8; text-align: center; }.public-cta-card h3 { margin: 0; color: #191b1e; font-size: 22px; }.public-cta-card p { margin: 14px 0 28px; color: #717c85; font-size: 14px; line-height: 1.6; }.public-whatsapp-button { min-height: 53px; border: 0; border-radius: 11px; color: #fff; background: #33c978; box-shadow: 0 9px 17px rgba(51,201,120,.22); font-size: 14px; font-weight: 850; }.public-whatsapp-button:hover { background: #28b86a; transform: translateY(-1px); }.public-footer { padding: 58px 24px 47px; border-top: 1px solid #e1e5e5; color: #7e8992; text-align: center; background: rgba(255,255,255,.68); }.public-footer-mark { width: 42px; height: 31px; display: grid; place-items: center; margin: 0 auto 17px; border-radius: 7px; color: var(--public-yellow); background: #23262a; font-weight: 950; }.public-footer p { margin: 0 0 10px; font-size: 14px; }.public-footer small { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: 2px; }
@media (max-width: 860px) {
  .public-header-inner, .public-section { width: min(100% - 28px, 680px); }.public-header { height: 58px; }.public-brand > span:last-child { gap: 0; }.public-brand small { display: none; }.public-brand b { font-size: 11px; }.public-brand-mark { width: 37px; height: 30px; font-size: 19px; }.public-header-meta { gap: 7px; font-size: 9px; }.public-approve-button { min-height: 36px; padding: 0 13px; font-size: 10px; }.public-hero { min-height: 690px; }.public-hero-content { padding-top: 100px; }.public-hero h1 { margin-top: 38px; margin-bottom: 38px; }.public-hero-content > p { margin-top: 44px; }.public-diagnosis { padding-top: 80px; }.public-metrics { padding: 46px 25px 40px; border-radius: 26px; }.public-production { padding-bottom: 38px; }.public-metric-row > div { padding: 0 10px; }.public-metric-row strong { font-size: 23px; }.public-metric-row span { font-size: 8px; letter-spacing: 1px; }.public-installations { padding: 55px 0 70px; }.public-installations-grid { grid-template-columns: 1fr; }.public-installation-card { min-height: 340px; }.public-logos { padding-bottom: 75px; }.public-logos-grid { grid-template-columns: repeat(2, 1fr); }.public-logo-card:nth-child(4n + 2), .public-logo-card:nth-child(4n + 4) { transform: none; }.public-math-card { grid-template-columns: 1fr; padding: 39px 24px; border-radius: 25px; }.public-math-copy h2 { font-size: 42px; }.public-chart-wrap { margin-top: 18px; }.public-system { padding-bottom: 80px; }.public-system-card { padding: 41px 21px 26px; border-radius: 25px; }.public-system-heading { display: block; }.public-system-price { margin-top: 18px; text-align: left; }.public-feature-list { grid-template-columns: 1fr; gap: 10px; }.public-equipment-grid { grid-template-columns: 1fr; }.public-payment-layout { grid-template-columns: 1fr; }.public-checkout { padding-bottom: 80px; }.public-payment-result { grid-template-columns: 1fr; }.public-cta-card { min-height: 250px; }
}
@media (max-width: 520px) {
  .public-header-meta > span { display: none; }.public-hero-price strong { letter-spacing: -3px; }.public-hero-price span { font-size: 22px; }.public-section-intro > strong { letter-spacing: -2px; }.public-metric-row { margin-top: 35px; }.public-metric-row > div { padding: 0 5px; }.public-metric-row strong { font-size: 18px; letter-spacing: -1px; }.public-metric-row span { font-size: 7px; }.public-payment-panel { padding: 25px 18px; }.public-payment-tabs { gap: 15px; }.public-payment-tabs button { font-size: 13px; }.public-economy-grid { gap: 22px 12px; }.public-economy-grid strong { font-size: 18px; }.public-footer small { letter-spacing: 1px; }
}
@media print {
  body.public-proposal-active .public-header { position: static; }.public-hero { min-height: 700px; }.public-approve-button, .public-outline-button, .public-slider-buttons, .public-whatsapp-button { display: none; }.public-section, .public-math-card, .public-system-card, .public-payment-layout { break-inside: avoid; }.public-proposal { background: #fff; }
}

.dimensioning-note { display: grid; gap: 4px; margin-top: 18px; padding: 13px 15px; border: 1px solid #dce9f5; border-radius: 13px; background: #f5faff; color: #1e5f9f; }
.dimensioning-note b { font-size: 13px; }
.dimensioning-note small { color: #617486; font-size: 11px; line-height: 1.4; }
.public-hero { background: #25282c url("https://bulbeenergia.com.br/wp-content/uploads/2025/11/iStock-1472255314.jpg") center / cover no-repeat; }
.public-choice-block { margin-top: 28px; padding-top: 21px; border-top: 1px solid #edf0ef; }
.public-choice-block > span { display: block; color: #7b8791; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; font-weight: 900; letter-spacing: 1.5px; }
.public-choice-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.public-choice-pills b { min-width: 45px; padding: 9px 10px; border: 1px solid #e1e7e5; border-radius: 9px; color: #273039; background: #fff; font-size: 12px; text-align: center; }
.public-choice-pills b:first-child { border-color: #efd20d; background: #fffbe3; }
.public-choice-block small { display: block; margin-top: 12px; color: #79858d; font-size: 11px; }
.public-choice-highlight { margin-top: 12px; padding: 11px 13px; border-radius: 9px; color: #756400; background: #fffbe3; font-size: 13px; font-weight: 750; }

.tracked-history-summary { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:13px; padding-top:11px; border-top:1px solid var(--line); color:var(--muted); font-size:10px; }
.tracked-history-summary .text-button { padding:0; font-size:10px; }
.project-stage-card { margin-top:11px; padding:14px; border:1px solid #e0e6ef; border-radius:12px; background:rgba(250,252,255,.72); }
.project-stage-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.project-stage-card-head > div:first-child { display:flex; align-items:flex-start; gap:10px; min-width:0; }
.project-stage-card-head > div:first-child > span:last-child { display:grid; gap:3px; }
.project-stage-card-head b, .project-stage-card-head small { display:block; }
.project-stage-card-head b { font-size:12px; }
.project-stage-card-head small { color:var(--muted); font-size:10px; }
.stage-number { width:31px; height:25px; display:grid; place-items:center; border-radius:8px; color:var(--blue); background:var(--blue-soft); font-size:10px; font-weight:900; }
.stage-card-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; }
.stage-card-actions .button { min-height:30px; padding:0 10px; font-size:10px; }
.project-document-list { display:grid; gap:7px; margin-top:12px; }
.document-row { display:grid; grid-template-columns:31px minmax(0,1fr) auto; gap:10px; align-items:center; padding:9px; border:1px solid #e8edf3; border-radius:9px; background:#fff; }
.document-file-icon { width:31px; height:31px; display:grid; place-items:center; border-radius:8px; color:var(--blue); background:var(--blue-soft); font-size:10px; font-weight:900; }
.document-info { min-width:0; }
.document-info b, .document-info small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.document-info b { font-size:11px; }
.document-info small { margin-top:2px; color:var(--muted); font-size:9px; }
.document-info .status { display:inline-flex; margin-top:5px; font-size:9px; }
.document-actions { display:flex; gap:5px; }
.document-empty { padding:11px; color:var(--muted); font-size:10px; }
.process-document-heading { display:flex; justify-content:space-between; margin-top:25px; padding-bottom:8px; border-bottom:1px solid var(--line); }
.process-document-heading h3, .project-art-payment h3, .history-card h3 { margin:0; font-size:14px; }
.process-document-heading p, .project-art-payment p, .history-card p { margin:4px 0 0; color:var(--muted); font-size:10px; line-height:1.45; }
.project-documents { display:grid; gap:8px; }
.project-art-payment { margin-top:13px; padding:15px; }
.project-art-payment .card-heading { align-items:flex-start; }
.art-payment-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin:14px 0; }
.art-payment-grid span { display:grid; gap:4px; padding:10px; border:1px solid #e7ecf2; border-radius:9px; background:#fff; }
.art-payment-grid small { color:var(--muted); font-size:9px; }
.art-payment-grid b { font-size:11px; }
.history-card { margin-top:13px; padding:15px; }
.project-history { display:grid; gap:9px; margin-top:13px; }
.history-row { display:grid; grid-template-columns:28px minmax(0,1fr); gap:9px; align-items:start; }
.history-row > span:last-child { display:grid; gap:3px; }
.history-row b, .history-row small { display:block; }
.history-row b { font-size:11px; }
.history-row small { color:var(--muted); font-size:9px; line-height:1.35; }
.link-history-list { display:grid; gap:10px; max-height:390px; overflow:auto; }
.document-preview-modal .modal-body { min-height:350px; }
.document-preview-image { display:block; width:100%; max-height:600px; object-fit:contain; border-radius:10px; background:#f4f6f9; }
.document-preview-frame { width:100%; height:560px; border:1px solid var(--line); border-radius:10px; background:#f6f8fb; }
.timeline-status.status-green { color:#32855e; font-weight:800; }.timeline-status.status-amber { color:#a56b0c; font-weight:800; }.timeline-status.status-red { color:#c34848; font-weight:800; }.timeline-status.status-blue { color:var(--blue); font-weight:800; }

@media (max-width: 700px) {
  .project-stage-card-head { display:block; }.stage-card-actions { justify-content:flex-start; margin-top:10px; }.document-row { grid-template-columns:31px minmax(0,1fr); }.document-actions { grid-column:2; justify-content:flex-start; }.art-payment-grid { grid-template-columns:1fr; }.process-document-heading { display:block; }.tracked-history-summary { align-items:flex-start; flex-direction:column; }
}

@media print {
  @page { size: A4; margin: 0; }
  html, body { margin: 0 !important; background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.public-proposal-active { min-width: 0; }
  body.public-proposal-active #login-screen,
  body.public-proposal-active #modal-root,
  body.public-proposal-active #toast-root { display: none !important; }
  body.public-proposal-active #app-root { display: block !important; }
  .public-proposal { width: 100%; min-height: 0; background: #fff; }
  .public-header { position: static !important; height: 18mm; }
  .public-header-inner { width: 100%; padding: 0 14mm; }
  .public-hero { min-height: 260mm; height: 260mm; }
  .public-hero-content { padding: 30mm 12mm 15mm; }
  .public-section { width: 100%; padding-left: 14mm; padding-right: 14mm; }
  .public-diagnosis { padding-top: 18mm; }
  .public-installations, .public-math, .public-system, .public-checkout { break-before: page; }
  .public-installations-grid { grid-template-columns: repeat(3, 1fr); gap: 5mm; }
  .public-installation-card { min-height: 83mm; }
  .public-logo-card { min-height: 25mm; }
  .public-math-card { min-height: 125mm; padding: 14mm; }
  .public-system-card { max-width: none; }
  .public-approve-button, .public-outline-button, .public-slider-buttons, .public-whatsapp-button { display: none !important; }
  .public-section, .public-math-card, .public-system-card, .public-payment-layout, .public-footer { break-inside: avoid; }
}

/* Portal externo do cliente: consulta segura, somente leitura e responsiva. */
body.client-portal-active { min-width: 320px; overflow-x: hidden; color: #172033; background: #f5f8fc; }
body.client-portal-active #login-screen, body.client-portal-active #modal-root { display: none !important; }
body.client-portal-active #app-root { display: block !important; min-height: 100vh; }
.client-portal-shell { --portal-blue: #1478e5; --portal-ink: #172033; --portal-muted: #718198; --portal-line: #e2eaf3; min-height: 100vh; background: radial-gradient(circle at 8% 10%, rgba(160, 211, 255, .42), transparent 27%), radial-gradient(circle at 92% 8%, rgba(249, 205, 232, .38), transparent 30%), #f6f9fd; }
.client-portal-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1390px, calc(100% - 42px)); min-height: 78px; margin: 0 auto; padding: 13px 22px; border: 1px solid rgba(255,255,255,.9); border-top: 0; border-radius: 0 0 22px 22px; background: rgba(255,255,255,.74); box-shadow: 0 10px 30px rgba(63, 92, 128, .07); backdrop-filter: blur(20px) saturate(1.08); -webkit-backdrop-filter: blur(20px) saturate(1.08); }
.client-portal-brand, .client-portal-brand > span:last-child, .client-portal-header-actions, .portal-client-chip, .portal-boleto-meta { display: flex; align-items: center; }
.client-portal-brand { min-width: 0; gap: 11px; }.client-portal-brand > span:last-child { display: grid; gap: 3px; min-width: 0; }.client-portal-brand b { overflow: hidden; color: var(--portal-ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }.client-portal-brand small { color: var(--portal-blue); font-size: 9px; font-weight: 900; letter-spacing: 2px; }.portal-logo-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--portal-blue); box-shadow: 0 8px 17px rgba(20,120,229,.2); font-size: 21px; font-weight: 950; }.portal-logo-image { width: auto; max-width: 178px; height: 43px; object-fit: contain; border-radius: 10px; background: #fff; }.client-portal-header-actions { gap: 12px; }.portal-secure-badge, .portal-readonly { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 10px; border: 1px solid #d9eee3; border-radius: 18px; color: #34835f; background: #f1fbf5; font-size: 10px; font-weight: 850; white-space: nowrap; }.client-portal-header .button { min-height: 35px; padding: 8px 12px; font-size: 11px; }
.client-portal { width: min(1390px, calc(100% - 42px)); margin: 0 auto; padding: 53px 0 65px; }.portal-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }.portal-eyebrow { display: block; color: var(--portal-blue); font-size: 10px; font-weight: 900; letter-spacing: 1.65px; text-transform: uppercase; }.portal-welcome h1 { margin: 8px 0 9px; color: var(--portal-ink); font-size: clamp(31px, 5vw, 51px); letter-spacing: -2.5px; line-height: 1; }.portal-welcome p { max-width: 650px; margin: 0; color: var(--portal-muted); font-size: 15px; line-height: 1.65; }.portal-client-chip { gap: 10px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.9); border-radius: 16px; background: rgba(255,255,255,.65); box-shadow: 0 7px 20px rgba(76, 106, 141, .06); white-space: nowrap; }.portal-client-avatar { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; color: var(--portal-blue); background: #e2f0ff; font-size: 11px; font-weight: 900; }.portal-client-chip > span:last-child { display: grid; gap: 2px; }.portal-client-chip b { color: var(--portal-ink); font-size: 12px; }.portal-client-chip small { color: var(--portal-muted); font-size: 10px; }
.portal-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 25px; }.portal-stat-grid article { min-height: 123px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid rgba(255,255,255,.88); border-radius: 17px; background: rgba(255,255,255,.67); box-shadow: 0 9px 24px rgba(72, 100, 135, .055); backdrop-filter: blur(16px); }.portal-stat-grid small { color: #8d9aaa; font-size: 9px; font-weight: 900; letter-spacing: 1.3px; }.portal-stat-grid strong { color: var(--portal-ink); font-size: 27px; letter-spacing: -1px; line-height: 1; }.portal-stat-grid span { color: var(--portal-muted); font-size: 10px; }
.portal-layout { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(315px, .62fr); gap: 16px; align-items: start; }.portal-section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 5px 0 14px; }.portal-section-title h2 { margin: 4px 0 0; color: var(--portal-ink); font-size: 22px; letter-spacing: -.8px; }.portal-project-card, .portal-updates-card, .portal-boleto-card { border: 1px solid rgba(255,255,255,.88); border-radius: 21px; background: rgba(255,255,255,.7); box-shadow: 0 12px 29px rgba(75, 101, 134, .065); backdrop-filter: blur(17px); -webkit-backdrop-filter: blur(17px); }.portal-project-card { margin-top: 13px; padding: 20px; }.portal-project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }.portal-project-head h2 { margin: 5px 0 3px; color: var(--portal-ink); font-size: 19px; letter-spacing: -.4px; }.portal-project-head p { margin: 0; color: var(--portal-muted); font-size: 12px; }.portal-project-status { padding: 7px 10px; border: 1px solid #d8e8f8; border-radius: 14px; color: var(--portal-blue); background: #f2f8ff; font-size: 11px; font-weight: 850; white-space: nowrap; }.portal-progress { height: 8px; overflow: hidden; margin-top: 17px; border-radius: 10px; background: #eaf0f7; }.portal-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1478e5, #59aaf1); }.portal-project-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--portal-muted); font-size: 10px; }.portal-timeline { display: grid; gap: 0; margin-top: 19px; padding: 5px 0; border-top: 1px solid #edf1f6; }.portal-stage-row { position: relative; display: grid; grid-template-columns: 27px minmax(0,1fr) 8px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef2f6; }.portal-stage-row:last-child { border-bottom: 0; }.portal-stage-index { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: #8f9caf; background: #eef2f7; font-size: 9px; font-weight: 900; }.portal-stage-row > span:nth-child(2) { display: grid; gap: 2px; }.portal-stage-row b { color: var(--portal-ink); font-size: 11px; }.portal-stage-row small { color: var(--portal-muted); font-size: 10px; }.portal-stage-dot { width: 7px; height: 7px; border-radius: 50%; background: #c8d1df; }.portal-status-done { color: #338661 !important; background: #eaf8ef !important; }.portal-stage-dot.portal-status-done { background: #39a86f !important; }.portal-status-current { color: #a86f0f !important; background: #fff5dc !important; }.portal-stage-dot.portal-status-current { background: #e6ac3d !important; }.portal-status-alert { color: #c34d55 !important; background: #fff0f1 !important; }.portal-stage-dot.portal-status-alert { background: #d9646b !important; }.portal-status-pending { color: #7e8c9f !important; background: #eef2f7 !important; }
.portal-documents { margin-top: 16px; padding-top: 16px; border-top: 1px solid #edf1f6; }.portal-documents h3 { margin: 0 0 9px; color: var(--portal-ink); font-size: 12px; }.portal-document-row { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: 9px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eef2f6; }.portal-document-row:last-child { border-bottom: 0; }.portal-document-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; color: var(--portal-blue); background: #eaf3ff; font-size: 10px; font-weight: 900; }.portal-document-row > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }.portal-document-row b, .portal-document-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.portal-document-row b { color: var(--portal-ink); font-size: 11px; }.portal-document-row small { color: var(--portal-muted); font-size: 9px; }.portal-document-row .button { min-height: 29px; padding: 6px 9px; font-size: 9px; }.portal-locked { color: #a0aaba; font-size: 9px; white-space: nowrap; }.portal-muted { margin: 0; color: var(--portal-muted); font-size: 11px; line-height: 1.55; }
.portal-updates-card { padding: 20px; }.portal-event-list { display: grid; gap: 0; }.portal-event-row { display: grid; grid-template-columns: 29px minmax(0,1fr); gap: 9px; padding: 11px 0; border-bottom: 1px solid #eef2f6; }.portal-event-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: #318760; background: #eaf8ef; font-size: 12px; font-weight: 900; }.portal-event-row > span:last-child { display: grid; gap: 3px; }.portal-event-row b { color: var(--portal-ink); font-size: 11px; }.portal-event-row small, .portal-event-row time { color: var(--portal-muted); font-size: 10px; line-height: 1.4; }.portal-event-row time { font-size: 9px; }.portal-help-card { margin-top: 20px; padding: 15px; border: 1px solid #dceafb; border-radius: 14px; background: #f4f9ff; }.portal-help-card b { color: var(--portal-ink); font-size: 12px; }.portal-help-card p { margin: 6px 0 12px; color: var(--portal-muted); font-size: 10px; line-height: 1.5; }.portal-help-card .button { min-height: 34px; width: 100%; font-size: 10px; }.portal-boleto-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 15px; padding: 18px 20px; }.portal-boleto-card h2 { margin: 5px 0 3px; color: var(--portal-ink); font-size: 16px; }.portal-boleto-card p { max-width: 550px; margin: 0; color: var(--portal-muted); font-size: 11px; }.portal-boleto-meta { flex-wrap: wrap; justify-content: flex-end; gap: 12px; }.portal-boleto-meta > span { display: grid; gap: 3px; min-width: 92px; }.portal-boleto-meta small { color: #8d9aaa; font-size: 8px; font-weight: 900; letter-spacing: 1px; }.portal-boleto-meta b { color: var(--portal-ink); font-size: 12px; }.portal-boleto-meta .button { min-height: 34px; font-size: 10px; }.portal-empty, .client-portal-loading, .client-portal-error { min-height: 430px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 30px; text-align: center; }.portal-empty { border: 1px solid rgba(255,255,255,.88); border-radius: 21px; background: rgba(255,255,255,.68); }.portal-empty > span, .portal-error-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; color: var(--portal-blue); background: #e5f1ff; font-size: 24px; font-weight: 900; }.portal-empty h2, .client-portal-error h1 { margin: 0; color: var(--portal-ink); font-size: 20px; }.portal-empty p, .client-portal-error p, .client-portal-loading p { max-width: 440px; margin: 0; color: var(--portal-muted); font-size: 12px; }.client-portal-loading b { color: var(--portal-ink); font-size: 16px; }.portal-spinner { width: 34px; height: 34px; border: 3px solid #dceafa; border-top-color: var(--portal-blue); border-radius: 50%; animation: portal-spin .8s linear infinite; }.client-portal-error .portal-error-icon { color: #c34d55; background: #fff0f1; }.client-portal-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1390px, calc(100% - 42px)); margin: 0 auto; padding: 20px 0 30px; border-top: 1px solid rgba(220,228,238,.8); color: #8090a4; font-size: 10px; }.client-portal-footer span { color: var(--portal-ink); font-weight: 850; }.client-portal-footer small { text-align: right; }.portal-admin-intro { margin-bottom: 15px; }.portal-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }.portal-admin-card { padding: 18px; }.portal-admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }.portal-admin-head h3 { margin: 5px 0 3px; font-size: 16px; }.portal-admin-head p { margin: 0; color: var(--muted); font-size: 11px; }.portal-admin-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }.portal-admin-meta span { display: grid; gap: 3px; padding: 9px; border: 1px solid #e7edf4; border-radius: 10px; color: var(--muted); font-size: 9px; }.portal-admin-meta b { color: var(--ink); font-size: 14px; }.portal-admin-note { margin: 13px 0; color: var(--muted); font-size: 10px; }.notice-row.unread { background: #f2f7ff; }.notice-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }.process-header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }.checkbox-line { display: flex; align-items: flex-start; gap: 9px; padding: 12px; border: 1px solid #dfe8f3; border-radius: 11px; background: #f8fbff; }.checkbox-line input { width: 16px; height: 16px; min-height: 0; margin-top: 2px; accent-color: var(--blue); }.checkbox-line span { display: grid; gap: 3px; }.checkbox-line b { font-size: 11px; }.checkbox-line small { color: var(--muted); font-size: 10px; }.portal-boleto-fields { display: grid; gap: 11px; margin-top: 12px; padding: 13px; border: 1px solid #e5ebf3; border-radius: 12px; background: #fbfcfe; }.portal-boleto-fields > label > span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }.permission-box { display: grid; gap: 9px; padding: 13px; border: 1px solid #dfe8f2; border-radius: 12px; background: #f8fbff; }.permission-box > b { font-size: 12px; }.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }.permission-check { display: flex; align-items: center; gap: 7px; padding: 8px; border: 1px solid #e4eaf2; border-radius: 8px; background: #fff; color: var(--muted); font-size: 10px; }.permission-check input { width: 14px; height: 14px; min-height: 0; accent-color: var(--blue); }
@keyframes portal-spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .portal-layout { grid-template-columns: 1fr; }.portal-updates-card { order: -1; }.portal-stat-grid { grid-template-columns: repeat(2, 1fr); }.portal-admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .client-portal-header, .client-portal, .client-portal-footer { width: calc(100% - 22px); }.client-portal-header { align-items: flex-start; padding: 11px 12px; }.client-portal-header-actions { flex-wrap: wrap; justify-content: flex-end; gap: 6px; }.portal-secure-badge { display: none; }.client-portal-header .button { min-height: 30px; padding: 7px 9px; font-size: 9px; }.portal-logo-mark { width: 35px; height: 35px; border-radius: 10px; }.portal-logo-image { max-width: 115px; height: 35px; }.client-portal-brand b { font-size: 11px; }.client-portal-brand small { font-size: 7px; letter-spacing: 1.3px; }.client-portal { padding-top: 34px; }.portal-welcome { display: grid; gap: 20px; }.portal-welcome h1 { font-size: 36px; }.portal-welcome p { font-size: 13px; }.portal-client-chip { width: fit-content; }.portal-stat-grid { gap: 8px; }.portal-stat-grid article { min-height: 100px; padding: 13px; }.portal-stat-grid strong { font-size: 22px; }.portal-stat-grid span { font-size: 9px; }.portal-section-title { align-items: flex-start; display: grid; gap: 9px; }.portal-project-card, .portal-updates-card, .portal-boleto-card { border-radius: 16px; }.portal-project-card, .portal-updates-card { padding: 14px; }.portal-project-head { display: grid; gap: 12px; }.portal-project-status { justify-self: start; }.portal-document-row { grid-template-columns: 30px minmax(0,1fr); }.portal-document-row .button, .portal-document-row .portal-locked { grid-column: 2; justify-self: start; }.portal-boleto-card { display: grid; gap: 17px; padding: 15px; }.portal-boleto-meta { justify-content: flex-start; }.portal-boleto-meta .button { width: 100%; }.client-portal-footer { display: grid; gap: 8px; }.client-portal-footer small { text-align: left; }.portal-admin-meta { grid-template-columns: 1fr; }.permission-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .portal-spinner { animation: none; } }

/* Homologação: status compacto e ações alinhadas diretamente na etapa. */
.timeline-step { grid-template-columns: 35px minmax(0, 1fr) minmax(150px, 270px); align-items: start; }
.timeline-side { min-width: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding-top: 1px; }
.timeline-status { display: inline-flex !important; align-items: center; justify-content: center; width: max-content; max-width: 100%; min-height: 24px; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.timeline-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 270px; }
.timeline-action-button { min-height: 27px; padding: 5px 8px; border: 1px solid #dbe3ed; border-radius: 7px; color: #52617a; background: #fff; font-size: 9px; font-weight: 800; line-height: 1; cursor: pointer; }
.timeline-action-button:hover { color: var(--blue); border-color: #bfccff; background: var(--blue-soft); }
.timeline-action-button.timeline-action-ok { color: #2f805d; border-color: #c8e8d6; background: #f3fbf6; }
.timeline-action-button.timeline-action-ok:hover { color: #236448; border-color: #8fd0ab; background: #e8f6ef; }
.timeline-action-count, .timeline-waiting { color: var(--muted); font-size: 9px; line-height: 1.25; text-align: right; }
.engineer-queue-summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; padding: 13px 15px; border: 1px solid #d9e6f6; border-radius: 12px; background: linear-gradient(135deg, #f7fbff, #fffafd); }
.engineer-queue-summary > div { display: grid; gap: 3px; min-width: 0; }
.engineer-queue-summary b { color: var(--ink); font-size: 12px; }
.engineer-queue-summary small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.queue-summary-badge { display: grid; place-items: center; min-width: 52px; height: 36px; padding: 0 9px; border-radius: 12px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 900; }
.consultation-documents { margin-top: 22px; }
.consultation-stage-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.consultation-stage-heading { display: grid; grid-template-columns: 31px minmax(0, 1fr) max-content; gap: 10px; align-items: center; }
.consultation-stage-heading > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.consultation-stage-heading b { font-size: 11px; }
.consultation-stage-heading small { color: var(--muted); font-size: 9px; }
.consultation-document-list { display: grid; gap: 6px; margin: 9px 0 0 41px; }
.consultation-document { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 9px; border: 1px solid #e6ecf3; border-radius: 8px; background: #fff; }
.consultation-document > span:first-child { display: grid; gap: 2px; min-width: 0; }
.consultation-document b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.consultation-document small { color: var(--muted); font-size: 9px; }
.consultation-document-actions { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.consultation-empty { display: block; margin: 8px 0 0 41px; color: var(--muted); font-size: 9px; }
.stage-upload-file-actions { display: flex; justify-content: flex-start; margin-top: -6px; }
.stage-upload-file-actions .button { min-height: 29px; padding: 6px 9px; font-size: 9px; }
.stage-card-actions .timeline-actions { justify-content: flex-end; }

@media (max-width: 700px) {
  .timeline-step { grid-template-columns: 33px minmax(0, 1fr); }
  .timeline-side { grid-column: 2; align-items: flex-start; padding-top: 0; }
  .timeline-actions { justify-content: flex-start; max-width: none; }
  .timeline-status { align-self: flex-start; }
  .timeline-action-count, .timeline-waiting { text-align: left; }
  .consultation-stage-heading { grid-template-columns: 31px minmax(0, 1fr); }
  .consultation-stage-heading > .status { grid-column: 2; justify-self: start; }
  .consultation-document-list, .consultation-empty { margin-left: 0; }
  .consultation-document { align-items: flex-start; flex-direction: column; }
  .consultation-document-actions { justify-content: flex-start; }
  .engineer-queue-summary { align-items: flex-start; }
}

/* Dashboard comercial: leitura executiva, pontos interativos e movimento sutil. */
.commercial-chart-card { min-height: 500px; padding: 22px; overflow: hidden; }
.commercial-chart-card .card-heading { align-items: flex-start; margin-bottom: 15px; }
.commercial-chart-card .card-heading h2 { font-size: 19px; letter-spacing: -.5px; }
.chart-controls { flex-wrap: wrap; justify-content: flex-end; }
.chart-live { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 6px 9px; border: 1px solid #e0eaf4; border-radius: 20px; color: #718198; background: rgba(247,250,253,.72); font-size: 9px; font-weight: 800; white-space: nowrap; }
.chart-live i { width: 6px; height: 6px; border-radius: 50%; background: #43ae7d; box-shadow: 0 0 0 4px rgba(67,174,125,.12); }
.chart-insights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.chart-insights > div { min-width: 0; padding: 11px 12px; border: 1px solid rgba(221,230,240,.86); border-radius: 12px; background: rgba(249,251,254,.72); }
.chart-insights span, .chart-insights b, .chart-insights small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chart-insights span { color: #8491a4; font-size: 9px; font-weight: 850; letter-spacing: .35px; text-transform: uppercase; }
.chart-insights b { margin-top: 6px; color: var(--ink); font-size: 17px; letter-spacing: -.5px; }
.chart-insights small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.commercial-chart-wrap { min-height: 310px; padding: 10px 3px 0; border: 1px solid rgba(226,233,242,.92); border-radius: 15px; background: rgba(255,255,255,.4); }
.dashboard-chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dashboard-chart-grid line { stroke: #e6ecf3; stroke-width: 1; stroke-dasharray: 3 6; }
.dashboard-chart-y-labels text, .dashboard-chart-x-labels text { fill: #8b98aa; font-family: inherit; font-size: 10px; font-weight: 650; }
.dashboard-chart-x-labels text { font-size: 10px; text-transform: lowercase; }
.dashboard-chart-area { stroke: none; opacity: 0; }
.dashboard-chart-area.proposals { fill: rgba(20,120,229,.10); animation: dashboard-area-in .9s ease-out .22s forwards; }
.dashboard-chart-area.sales { fill: rgba(217,87,145,.11); animation: dashboard-area-in .9s ease-out .33s forwards; }
.dashboard-chart-line { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: dashboard-line-draw 1.35s cubic-bezier(.2,.78,.28,1) forwards; }
.dashboard-chart-line.proposals { stroke: #1478e5; }
.dashboard-chart-line.sales { stroke: #d95791; animation-delay: .12s; }
.dashboard-chart-points .dashboard-point { cursor: pointer; outline: none; }
.dashboard-point-hit { fill: transparent; pointer-events: all; }
.dashboard-point-dot { transform-box: fill-box; transform-origin: center; stroke: #fff; stroke-width: 2.5; opacity: 0; animation: dashboard-point-in .72s cubic-bezier(.18,.86,.32,1.24) .72s both; pointer-events: none; }
.dashboard-point-dot.proposals { fill: #1478e5; }
.dashboard-point-dot.sales { fill: #d95791; animation-delay: .84s; }
.dashboard-point:hover .dashboard-point-dot, .dashboard-point:focus .dashboard-point-dot { stroke-width: 3.5; filter: drop-shadow(0 3px 5px rgba(31,59,98,.2)); }
.dashboard-tooltip { opacity: 0; pointer-events: none; transition: opacity .16s ease, transform .16s ease; transform-origin: center bottom; }
.dashboard-point:hover .dashboard-tooltip, .dashboard-point:focus .dashboard-tooltip { opacity: 1; }
.dashboard-tooltip rect { fill: #17243a; stroke: rgba(255,255,255,.6); stroke-width: 1; filter: drop-shadow(0 7px 12px rgba(22,37,63,.16)); }
.dashboard-tooltip text { font-family: inherit; }
.dashboard-tooltip-label { fill: #aebbd0; font-size: 10px; font-weight: 700; }
.dashboard-tooltip-value { fill: #fff; font-size: 14px; font-weight: 850; }
.commercial-legend { align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 11px; }
.commercial-legend small { margin-left: auto; color: #8b98aa; font-size: 9px; }
.dot.chart-blue { background: #1478e5; }.dot.chart-pink { background: #d95791; }
.funnel-summary { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -3px 0 14px; color: var(--muted); font-size: 10px; }
.funnel-summary b { color: var(--ink); font-size: 14px; }
.professional-funnel { display: grid; gap: 10px; }
.funnel-stage { padding: 10px 12px; border: 1px solid rgba(225,232,241,.88); border-radius: 12px; background: rgba(250,252,254,.72); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.funnel-stage:hover, .funnel-stage:focus { border-color: #cbd9ea; box-shadow: 0 8px 18px rgba(53,80,117,.08); transform: translateX(3px); outline: none; }
.funnel-stage-head { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 9px; }
.funnel-stage-head > span { display: inline-flex; align-items: center; min-width: 0; gap: 7px; overflow: hidden; color: #4b5970; font-size: 11px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.funnel-stage-head > b { color: var(--ink); font-size: 16px; }
.funnel-stage-head > small { min-width: 82px; color: #8b98aa; font-size: 9px; text-align: right; }
.funnel-color { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; }
.funnel-color.green, .funnel-fill.green { background: #36b77c; }.funnel-color.orange, .funnel-fill.orange { background: #ef9f32; }.funnel-color.purple, .funnel-fill.purple { background: #866ad4; }.funnel-color.blue, .funnel-fill.blue { background: #398fe2; }.funnel-color.pink, .funnel-fill.pink { background: #dc6e9d; }
.funnel-track { height: 7px; overflow: hidden; margin-top: 9px; border-radius: 8px; background: #edf2f7; }
.funnel-fill { display: block; height: 100%; min-width: 6px; border-radius: inherit; animation: dashboard-funnel-in .85s cubic-bezier(.18,.84,.31,1.18) both; }
@keyframes dashboard-line-draw { to { stroke-dashoffset: 0; } }
@keyframes dashboard-area-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dashboard-point-in { 0% { opacity: 0; transform: scale(.25); } 70% { opacity: 1; transform: scale(1.15); } 100% { opacity: 1; transform: scale(1); } }
@keyframes dashboard-funnel-in { from { opacity: .2; transform: scaleX(0); transform-origin: left center; } to { opacity: 1; transform: scaleX(1); transform-origin: left center; } }
@media (max-width: 900px) {
  .chart-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commercial-legend small { width: 100%; margin-left: 0; }
}
@media (max-width: 620px) {
  .commercial-chart-card { min-height: 0; padding: 16px; }
  .commercial-chart-card .card-heading { display: grid; gap: 12px; }
  .chart-controls { justify-content: space-between; }
  .commercial-chart-wrap { min-height: 0; padding: 6px 0 0; }
  .dashboard-chart-y-labels text { font-size: 9px; }
  .dashboard-chart-x-labels text { font-size: 9px; }
  .chart-insights > div { padding: 10px; }
  .chart-insights b { font-size: 15px; }
  .funnel-stage-head { grid-template-columns: minmax(0,1fr) auto; }
  .funnel-stage-head > small { grid-column: 1 / -1; min-width: 0; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-chart-area, .dashboard-chart-line, .dashboard-point-dot, .funnel-fill { animation: none !important; opacity: 1; stroke-dashoffset: 0; transform: none; }
  .funnel-stage, .dashboard-tooltip { transition: none; }
}

/* Documentos da venda: contrato e procuração separados, com prévia e emissão. */
.contract-workflow-note { margin-bottom: 15px; border-left: 3px solid #1478e5; }
.contract-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.contract-quote-picker { min-width: min(430px, 100%); margin: 0; }
.contract-tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid #dfe7f1; border-radius: 13px; background: rgba(248,250,253,.86); }
.contract-tab { border: 0; border-radius: 9px; padding: 10px 13px; color: #758399; background: transparent; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.contract-tab.active { color: #fff; background: #1478e5; box-shadow: 0 7px 15px rgba(20,120,229,.18); }
.contract-editor { padding: 22px; }
.contract-editor .card-heading { align-items: flex-start; }
.contract-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.contract-data-grid > div { min-width: 0; }
.contract-data-grid h3 { margin: 0 0 13px; font-size: 14px; color: var(--ink); }
.contract-validation-note { margin-top: 16px; }
.contract-form-actions { justify-content: flex-start; margin-top: 18px; }
.contract-sale-summary { margin-top: 15px; }
.contract-sale-summary article { padding: 20px 22px; }
.contract-sale-summary h2 { margin: 6px 0 3px; font-size: 20px; }
.contract-sale-summary p { margin: 0; color: var(--muted); font-size: 11px; }
.contract-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 18px 0 13px; }
.contract-summary-grid span { padding: 11px 12px; border: 1px solid #e2e9f2; border-radius: 11px; background: #fbfcfe; }
.contract-summary-grid b, .contract-summary-grid small { display: block; }
.contract-summary-grid b { color: var(--ink); font-size: 14px; }
.contract-summary-grid small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.contract-doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 15px; }
.contract-doc-card { display: flex; gap: 14px; padding: 19px; }
.contract-doc-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; color: #1478e5; background: #eaf3ff; font-size: 19px; }
.contract-doc-main { min-width: 0; flex: 1; }
.contract-doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.contract-doc-head h2 { margin: 0; font-size: 15px; }
.contract-doc-head p { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.contract-doc-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #e8edf4; }
.contract-doc-summary b, .contract-doc-summary small { display: block; }
.contract-doc-summary b { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.contract-doc-summary small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.contract-doc-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 15px; }
.contract-doc-actions .button { min-height: 32px; padding: 8px 10px; font-size: 10px; }
.contract-payment-tab { max-width: 760px; }
.contract-payment-import { display: flex; align-items: center; gap: 11px; margin-top: 15px; padding: 13px; border: 1px solid #dfe7f1; border-radius: 12px; background: #f8fbff; }
.contract-payment-import > div { min-width: 0; }
.contract-payment-import b, .contract-payment-import small { display: block; }
.contract-payment-import b { color: var(--ink); font-size: 11px; }
.contract-payment-import small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.contract-modal-preview { max-height: 70vh; overflow: auto; padding: 16px; background: #eef2f7; }
.contract-modal-preview .contract-document { box-shadow: 0 12px 30px rgba(25,42,67,.12); }
.contract-modal-preview .contract-page { min-height: 0; }
.contract-modal-preview .contract-page-number { display: none; }
.sale-closed-panel { padding: 14px 5px 5px; text-align: center; }
.sale-closed-icon { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; color: #fff; background: #43ae7d; font-size: 23px; font-weight: 800; }
.sale-closed-panel h3 { margin: 0; font-size: 20px; }
.sale-closed-panel p { max-width: 410px; margin: 8px auto 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.sale-closed-actions { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; }
.contract-preview-modal { width: min(980px, calc(100vw - 28px)); }
@media (max-width: 900px) {
  .contract-data-grid, .contract-doc-grid { grid-template-columns: 1fr; }
  .contract-toolbar { align-items: stretch; flex-direction: column; }
  .contract-quote-picker { min-width: 0; }
  .contract-tabs { align-self: flex-start; }
}
@media (max-width: 620px) {
  .contract-editor, .contract-sale-summary article { padding: 16px; }
  .contract-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contract-doc-card { padding: 15px; }
  .contract-doc-head { display: grid; }
  .contract-doc-head .tag { justify-self: start; }
  .contract-doc-summary { grid-template-columns: 1fr; }
  .contract-doc-actions .button { flex: 1 1 100%; }
}
@media (max-width: 620px) {
  .stage-upload-file-list { grid-template-columns: 1fr; max-height: 220px; }
}

/* Abas internas e acompanhamento compacto da homologação. */
.workspace-tabs { padding: 0 22px; border-bottom: 1px solid rgba(221,229,239,.9); background: rgba(248,251,255,.56); }
.workspace-tabs-inner { display: flex; gap: 6px; min-height: 43px; overflow-x: auto; scrollbar-width: thin; }
.workspace-tab { display: inline-flex; align-items: center; gap: 9px; min-width: max-content; margin-top: 7px; padding: 8px 10px 8px 13px; border: 1px solid transparent; border-radius: 10px 10px 0 0; color: #76849a; background: transparent; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.workspace-tab:hover { color: var(--blue); background: rgba(255,255,255,.78); }
.workspace-tab.active { color: var(--ink); border-color: #e0e8f1; border-bottom-color: #fff; background: rgba(255,255,255,.9); box-shadow: 0 -3px 12px rgba(41,64,96,.04); }
.workspace-tab i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; color: #97a3b3; font-size: 15px; font-style: normal; line-height: 1; }
.workspace-tab i:hover { color: #c24f5c; background: #fff0f1; }
.compact-process-board { margin-top: 15px; padding: 16px; border: 1px solid rgba(221,230,240,.9); border-radius: 15px; background: rgba(255,255,255,.66); }
.compact-process-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; margin-bottom: 8px; }
.compact-process-heading h3 { margin: 5px 0 3px; font-size: 15px; }
.compact-process-heading p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.compact-stage-row { padding: 13px 0; border-top: 1px solid #e9eef4; }
.compact-stage-row:first-of-type { border-top: 0; }
.compact-stage-row.needs-attention { border-left: 3px solid #efb447; padding-left: 10px; }
.compact-stage-row.is-done { border-left: 3px solid #49a97b; padding-left: 10px; }
.compact-stage-heading { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.compact-stage-heading > span:nth-child(2) { min-width: 0; }
.compact-stage-heading b, .compact-stage-heading small { display: block; }
.compact-stage-heading b { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.compact-stage-heading small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.compact-stage-heading .status { justify-self: end; white-space: nowrap; }
.compact-stage-actions { display: flex; justify-content: flex-end; min-height: 0; margin-top: 8px; }
.compact-stage-actions:empty { display: none; }
.compact-stage-actions .timeline-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.compact-stage-actions .timeline-action-button { min-height: 28px; padding: 6px 9px; font-size: 9px; }
.compact-stage-actions .timeline-action-count, .compact-stage-actions .timeline-waiting { color: var(--muted); font-size: 9px; }
.compact-stage-documents { display: grid; gap: 6px; margin-top: 9px; }
.compact-stage-document { display: grid; grid-template-columns: 25px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid #e6edf4; border-radius: 9px; background: rgba(249,251,254,.8); }
.compact-stage-document > span:nth-child(2) { min-width: 0; }
.compact-stage-document b, .compact-stage-document small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compact-stage-document b { color: var(--ink); font-size: 10px; }
.compact-stage-document small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.compact-stage-document-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.compact-stage-document-actions .row-action { padding: 5px 7px; font-size: 9px; }
.compact-stage-empty { color: #98a4b4; font-size: 9px; }
.project-art-payment.art-payment-focus { margin-top: 14px; border: 1px solid #d7e6f7; border-left: 4px solid #1478e5; background: rgba(247,251,255,.86); }
.art-payment-focus .card-heading { margin-bottom: 8px; }
.art-payment-focus .status { white-space: nowrap; }
.art-payment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.art-payment-actions .button { min-height: 31px; padding: 8px 10px; font-size: 10px; }
.art-payment-alert { display: block; margin-top: 10px; color: #9a6b19; font-size: 9px; line-height: 1.4; }
.portal-boleto-highlight { position: relative; flex-wrap: wrap; border: 1px solid #d8e8fb; border-left: 4px solid var(--portal-blue); box-shadow: 0 10px 25px rgba(42,106,170,.08); }
.portal-boleto-highlight > div:first-child { min-width: 230px; flex: 1 1 360px; }
.portal-boleto-highlight > .portal-boleto-meta { flex: 0 1 auto; }
.portal-proof-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px, 1.2fr); align-items: center; gap: 16px; flex: 1 1 100%; margin-top: 4px; padding-top: 15px; border-top: 1px solid #e4edf7; }
.portal-proof-panel h3 { margin: 5px 0 3px; color: var(--portal-ink); font-size: 14px; }
.portal-proof-panel p { margin: 0; color: var(--portal-muted); font-size: 10px; line-height: 1.45; }
.portal-proof-fields { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; }
.portal-proof-fields .checkbox-line { grid-column: 1 / -1; }
.portal-proof-fields .file-selected { min-height: 30px; align-self: center; }
.portal-file-button { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.portal-proof-status { display: inline-flex; margin-top: 9px; padding: 6px 8px; border: 1px solid #f1dba4; border-radius: 8px; color: #936615; background: #fff9e9; font-size: 9px; font-weight: 800; }
.portal-proof-locked { flex: 1 1 100%; margin-top: 6px; color: var(--portal-muted); font-size: 10px; }
.notice-row.unread { border: 1px solid #dbe8fa; animation: alert-pulse 1.3s ease-in-out infinite; }
.alert-blink { animation: alert-pulse 1.3s ease-in-out infinite; }
.notification-dot { animation: alert-pulse 1.3s ease-in-out infinite; }
@keyframes alert-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,180,71,.06); } 50% { box-shadow: 0 0 0 5px rgba(239,180,71,.18); } }
.stage-upload-file-thumb.preview-failed { display: grid; place-items: center; color: #7c899b; background: #eef3f8; font-size: 8px; object-fit: contain; }
@media (max-width: 760px) {
  .workspace-tabs { padding: 0 12px; }
  .compact-process-board { padding: 13px; }
  .compact-stage-heading { grid-template-columns: 31px minmax(0,1fr); }
  .compact-stage-heading .status { grid-column: 2; justify-self: start; }
  .compact-stage-actions { justify-content: flex-start; margin-left: 41px; }
  .compact-stage-document { grid-template-columns: 25px minmax(0,1fr); }
  .compact-stage-document-actions { grid-column: 2; justify-content: flex-start; }
  .portal-proof-panel { grid-template-columns: 1fr; }
  .portal-proof-fields { grid-template-columns: 1fr; }
  .portal-proof-fields .checkbox-line { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .alert-blink { animation: none !important; }
}
