/* ============================================================
   midas — mockups reais do sistema (linha do dia)
   Regras vindas da LP anterior, isoladas sob .legacy para não
   colidir com styles.css. Os ajustes de moldura ficam no fim.
   ============================================================ */

.legacy .dash-window { position: relative; border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--sh-xl); overflow: hidden; border: 1px solid var(--line); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.legacy .dash-chrome { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 16px; background: #FAFAF7; border-bottom: 1px solid var(--line-soft); }
.legacy .dash-traffic { display: flex; gap: 6px; }
.legacy .dash-traffic span { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.legacy .dash-traffic span:nth-child(1) { background: #f3c8c0; }
.legacy .dash-traffic span:nth-child(2) { background: #f2ddb4; }
.legacy .dash-traffic span:nth-child(3) { background: #c0deca; }
.legacy .dash-url { flex: 0 1 320px; margin: 0 auto; padding: 4px 14px; background: var(--bg); border-radius: 999px; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-soft); text-align: center; border: 1px solid var(--line-soft); }
.legacy .dash-chrome-spacer { width: 60px; }
.legacy .dash-body { display: grid; grid-template-columns: 220px 1fr; min-height: 560px; }
.legacy .dash-side { background: #FAFAF6; border-right: 1px solid var(--line-soft); padding: 22px 16px; display: flex; flex-direction: column; gap: 20px; }
.legacy .dash-brand { display: flex; align-items: center; padding: 0 6px; }
.legacy .dash-logo { height: 24px; width: auto; display: block; }
.legacy .dash-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.legacy .dash-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 13.5px; color: var(--ink-soft); border-radius: var(--r-sm); transition: background .15s, color .15s; cursor: pointer; }
.legacy .dash-nav-section { font-family: var(--f-body); font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-mute); padding: 10px 12px 4px; }
.legacy .dash-nav a:hover { background: rgba(107,95,166,.08); color: var(--ink); }
.legacy .dash-nav a.active { background: #6B5FA6; color: #fff; font-weight: 500; }
.legacy .dash-side-foot { display: flex; gap: 10px; align-items: center; padding: 10px 8px; border-radius: var(--r-md); }
.legacy .avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #A8D5BA, #CDB4DB); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-size: 12px; font-weight: 600; flex-shrink: 0; }
.legacy .dash-foot-info { flex: 1; min-width: 0; }
.legacy .dash-side-foot .name { font-size: 12.5px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legacy .dash-side-foot .sub { font-family: var(--f-body); font-size: 10px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legacy .dash-logout { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-mute); transition: background .15s, color .15s; flex-shrink: 0; }
.legacy .dash-logout:hover { background: #FEE2E2; color: #DC2626; }
.legacy .dash-main { padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; background: #F0F7F2; min-width: 0; overflow-x: hidden; }
.legacy .dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.legacy .dash-greet { font-family: var(--f-display); font-size: 20px; font-weight: 600; color: var(--green-ink); letter-spacing: -.01em; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.legacy .dash-sess-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: #E8F5EE; color: var(--green-deep); font-size: 10.5px; font-weight: 600; font-family: var(--f-body); }
.legacy .sess-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-deep); animation: sessDotPulse 2s ease-in-out infinite; }
.legacy .dash-date { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.legacy .dash-head-actions { display: flex; gap: 7px; align-items: center; }
.legacy .dh-btn { height: 32px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; transition: background .15s, color .15s, box-shadow .15s; }
.legacy .dh-btn-ghost { width: 32px; padding: 0; justify-content: center; background: #fff; border: 1px solid #E0E5E2; color: var(--ink-soft); }
.legacy .dh-btn-ghost:hover { background: #E8F5EE; border-color: #A8D5BA; color: var(--green-deep); }
.legacy .dh-btn-agenda { background: #fff; border: 1px solid #E0E5E2; color: var(--green-deep); }
.legacy .dh-btn-agenda:hover { background: #E8F5EE; border-color: #A8D5BA; }
.legacy .dh-btn-accent { background: var(--green-deep); color: #fff; }
.legacy .dh-btn-accent:hover { background: #3a6647; }
.legacy .dash-main .quote-card { position: relative; overflow: hidden; background: linear-gradient(125deg, #4A7C59 0%, #3d7a52 60%, #2e5e3e 100%); border: none; border-radius: 18px; padding: 18px 24px; display: flex; align-items: center; backdrop-filter: none; }
.legacy .qc-sparkles { position: absolute; inset: 0; pointer-events: none; }
.legacy .qc-label { font-family: var(--f-body); font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; color: #A8D5BA; margin-bottom: 6px; }
.legacy .qc-text { font-family: var(--f-display); font-size: 14px; font-weight: 600; color: #fff; line-height: 1.45; }
.legacy .dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.legacy .stat-card { background: #fff; padding: 16px; border-radius: 18px; border: 1px solid #E8EDE9; box-shadow: 0 1px 4px rgba(30,50,35,.06); }
.legacy .stat-icon-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.legacy .stat-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.legacy .stat-badge { font-family: var(--f-body); font-size: 9.5px; background: #F0F7F2; color: var(--green-deep); padding: 2px 8px; border-radius: 999px; text-transform: lowercase; }
.legacy .stat-value { font-family: var(--f-display); font-size: 28px; font-weight: 700; color: #1A2320; letter-spacing: -.02em; line-height: 1; margin-bottom: 4px; }
.legacy .stat-label { font-size: 11px; color: #9CA5AE; }
.legacy .stat-sub { font-family: var(--f-body); font-size: 9.5px; color: #9CA5AE; margin-top: 3px; }
.legacy .dash-cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; opacity: .92; }
.legacy .dash-col-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.legacy .dash-col-right { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.legacy .d-panel { background: #fff; border-radius: 18px; border: 1px solid #E8EDE9; box-shadow: 0 1px 3px rgba(30,50,35,.05); overflow: hidden; min-width: 0; width: 100%; }
.legacy .d-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 10px; border-bottom: 1px solid #F3F4F5; }
.legacy .d-panel-head-left { display: flex; align-items: center; gap: 7px; }
.legacy .d-panel-head h4 { font-family: var(--f-display); font-size: 13px; font-weight: 600; color: var(--ink); }
.legacy .d-count-badge { font-family: var(--f-body); font-size: 10px; font-weight: 600; background: #E8F5EE; color: var(--green-deep); padding: 1px 7px; border-radius: 999px; }
.legacy .d-panel-link { font-family: var(--f-body); font-size: 10px; color: var(--green-deep); display: inline-flex; align-items: center; gap: 2px; cursor: pointer; }
.legacy .d-panel-actions { display: flex; align-items: center; gap: 8px; }
.legacy .d-panel-link-sm { font-family: var(--f-body); font-size: 10px; color: #6B5FA6; cursor: pointer; }
.legacy .d-sess-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #F3F4F5; transition: background .15s; min-width: 0; }
.legacy .d-sess-row:last-child { border-bottom: none; }
.legacy .d-sess-row:hover { background: #E8F5EE; }
.legacy .d-sess-row.done { opacity: .5; }
.legacy .d-sess-time { font-family: var(--f-display); font-size: 12px; font-weight: 500; color: var(--ink); width: 36px; flex-shrink: 0; text-align: left; }
.legacy .d-sess-av { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; background: #EDE9F8; color: #6B5FA6; display: grid; place-items: center; font-family: var(--f-display); font-size: 10px; font-weight: 700; }
.legacy .d-sess-info { flex: 1; min-width: 0; }
.legacy .d-sess-name { font-size: 12.5px; font-weight: 500; color: var(--ink); }
.legacy .d-sess-badges { display: flex; align-items: center; gap: 6px; margin-top: 1px; }
.legacy .d-sess-dur { font-family: var(--f-body); font-size: 10px; color: var(--ink-mute); }
.legacy .d-sbadge { display: inline-flex; align-items: center; gap: 4px; font-family: var(--f-body); font-size: 10px; font-weight: 500; }
.legacy .d-sbadge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.legacy .d-sbadge-dot.pulse { animation: sessDotPulse 1.8s ease-in-out infinite; }
.legacy .d-sbadge.done { color: #059669; }
.legacy .d-sbadge.upcoming { color: #6B5FA6; }
.legacy .d-sbadge.pending { color: #D97706; }
.legacy .d-edit-btn { width: 30px; height: 30px; border-radius: 11px; border: 1px solid var(--line-soft); display: grid; place-items: center; color: var(--ink-mute); transition: background .15s, color .15s; flex-shrink: 0; }
.legacy .d-edit-btn:hover { background: #E8F5EE; color: var(--green-deep); }
.legacy .d-rem-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #F3F4F5; transition: background .15s; }
.legacy .d-rem-row:last-child { border-bottom: none; }
.legacy .d-rem-row:hover { background: rgba(107,95,166,.04); }
.legacy .d-check { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #C8CDD3; flex-shrink: 0; margin-top: 1px; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.legacy .d-check.checked { background: #6B5FA6; border-color: #6B5FA6; }
.legacy .d-rem-body { flex: 1; min-width: 0; }
.legacy .d-rem-body.done .d-rem-title { text-decoration: line-through; opacity: .5; }
.legacy .d-rem-title { font-size: 12px; color: var(--ink); line-height: 1.3; }
.legacy .d-rem-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.legacy .d-rem-pat { display: inline-flex; align-items: center; gap: 3px; font-family: var(--f-body); font-size: 9.5px; background: #EDE9F8; color: #6B5FA6; padding: 1px 7px; border-radius: 999px; }
.legacy .d-due { font-family: var(--f-body); font-size: 9.5px; padding: 1px 6px; border-radius: 999px; }
.legacy .d-due.today { background: #E8F5EE; color: var(--green-deep); }
.legacy .d-due.future { background: #EDE9F8; color: #6B5FA6; }
.legacy .d-fin-row { display: flex; align-items: center; gap: 7px; padding: 9px 16px; border-bottom: 1px solid #F3F4F5; font-size: 11.5px; transition: background .15s; min-width: 0; }
.legacy .d-fin-row:last-child { border-bottom: none; }
.legacy .d-fin-row:hover { background: rgba(0,0,0,.02); }
.legacy .d-fin-desc { flex: 1; min-width: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legacy .d-fin-badge { font-family: var(--f-body); font-size: 9px; padding: 2px 6px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.legacy .d-fin-badge.paid { background: #D1FAE5; color: #059669; }
.legacy .d-fin-badge.pend { background: #EDE9F8; color: #6B5FA6; }
.legacy .d-fin-badge.over { background: #FEE2E2; color: #DC2626; }
.legacy .d-fin-act-col { width: 58px; display: flex; justify-content: center; flex-shrink: 0; }
.legacy .d-fin-action { font-family: var(--f-body); font-size: 11px; padding: 2px 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; background: #A8D5BA; color: #1A3D2B; transition: background .15s; }
.legacy .d-fin-action:hover { background: #8FC9A5; }
.legacy .d-fin-action.danger { background: #FEE2E2; color: #DC2626; }
.legacy .d-fin-action.danger:hover { background: #fecaca; }
.legacy .d-fin-val { font-family: var(--f-display); font-size: 11px; font-weight: 600; text-align: right; width: 76px; flex-shrink: 0; color: var(--ink); }
.legacy .d-fin-val.credit { color: #059669; }
.legacy .d-fin-val.debit { color: #DC2626; }
.legacy .d-pend-row { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #F3F4F5; transition: background .15s; cursor: pointer; }
.legacy .d-pend-row:last-child { border-bottom: none; }
.legacy .d-pend-row:hover { background: #F7F5FF; }
.legacy .d-pend-info { flex: 1; min-width: 0; }
.legacy .d-pend-name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.legacy .d-pend-missing { font-size: 10.5px; color: var(--green-deep); margin-top: 1px; font-family: var(--f-body); }
.legacy .d-pend-arrow { color: var(--ink-mute); flex-shrink: 0; }
.legacy .d-bday-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; border-bottom: 1px solid #F3F4F5; transition: background .15s; }
.legacy .d-bday-row:last-child { border-bottom: none; }
.legacy .d-bday-row:hover { background: rgba(251,191,36,.06); }
.legacy .d-bday-name { font-size: 12px; font-weight: 500; color: var(--ink); }
.legacy .d-bday-badge { font-family: var(--f-body); font-size: 9.5px; padding: 2px 8px; border-radius: 999px; font-weight: 500; }
.legacy .d-bday-badge.today { background: #FEF3C7; color: #92400E; }
.legacy .d-bday-badge.soon { background: #EDE9F8; color: #6B5FA6; }
.legacy .mod-vis { margin: 8px -28px -1px; padding: 18px 22px; flex: 1; display: flex; align-items: flex-end; position: relative; min-height: 220px; background: linear-gradient(180deg, transparent 0%, var(--bg-soft) 100%); }
.legacy .mod-vis-cal { padding: 0; overflow: hidden; align-items: stretch; align-self: stretch; position: relative; }
.legacy .ag-scaled { position: absolute; top: 0; left: 0; width: calc(100% / 0.6); height: calc(100% / 0.6); transform: scale(0.6); transform-origin: top left; display: flex; flex-direction: column; background: #fff; }
.legacy .ag-topbar { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-bottom: 1px solid #E8EDE9; background: #fff; flex-shrink: 0; }
.legacy .ag-nav { display: flex; align-items: center; gap: 2px; }
.legacy .ag-nav-btn { width: 30px; height: 30px; border: 1px solid #E8EDE9; border-radius: 8px; display: grid; place-items: center; color: #6B5FA6; background: #fff; cursor: default; }
.legacy .ag-nav-today { height: 30px; padding: 0 12px; border: 1px solid #E8EDE9; border-radius: 8px; font-family: var(--f-body); font-size: 13px; font-weight: 500; color: #4A3D72; background: #fff; cursor: default; }
.legacy .ag-title { font-family: var(--f-display); font-size: 17px; font-weight: 600; color: #1A2320; flex: 1; }
.legacy .ag-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.legacy .ag-view-toggle { display: flex; background: #EDE9F8; border-radius: 10px; padding: 3px; gap: 2px; }
.legacy .ag-view-btn { height: 28px; padding: 0 14px; border-radius: 7px; font-family: var(--f-body); font-size: 13px; font-weight: 500; color: #9CA5AE; background: transparent; border: none; cursor: default; }
.legacy .ag-view-btn.active { background: #fff; color: #6B5FA6; box-shadow: 0 1px 3px rgba(107,95,166,.2); }
.legacy .ag-novo-btn { display: flex; align-items: center; gap: 5px; height: 36px; padding: 0 14px; background: var(--green-deep); color: #fff; border-radius: 12px; border: none; font-family: var(--f-body); font-size: 13px; font-weight: 600; cursor: default; }
.legacy .ag-grid { display: grid; grid-template-columns: 44px repeat(5, 1fr); grid-auto-rows: 1fr; grid-template-rows: auto repeat(4, 1fr); flex: 1; overflow: hidden; }
.legacy .ag-gutter-head { border-bottom: 1px solid #F0F0F0; border-right: 1px solid #F0F0F0; }
.legacy .ag-day-head { font-family: var(--f-body); font-size: 12px; font-weight: 500; color: #9CA5AE; text-align: center; padding: 8px 4px; border-bottom: 1px solid #F0F0F0; border-right: 1px solid #F0F0F0; }
.legacy .ag-day-head span { display: block; font-size: 18px; font-weight: 700; color: #1A2320; line-height: 1.1; }
.legacy .ag-day-head.today { color: #6B5FA6; }
.legacy .ag-today-num { display: inline-flex !important; width: 32px; height: 32px; background: #6B5FA6; color: #fff !important; border-radius: 50%; align-items: center; justify-content: center; font-size: 16px !important; margin: 0 auto; }
.legacy .ag-time-lbl { font-family: var(--f-body); font-size: 11px; color: #C4C9CE; padding: 6px 6px 0 0; text-align: right; border-right: 1px solid #F0F0F0; border-bottom: 1px solid #F0F0F0; }
.legacy .ag-slot { border-right: 1px solid #F0F0F0; border-bottom: 1px solid #F0F0F0; padding: 3px; position: relative; min-height: 52px; }
.legacy .ag-ev { border-radius: 6px; border-left: 3px solid; padding: 4px 7px; font-family: var(--f-body); font-size: 12px; font-weight: 500; line-height: 1.3; height: 100%; display: flex; flex-direction: column; gap: 1px; overflow: hidden; }
.legacy .ag-ev span { font-size: 10px; opacity: .75; }
.legacy .ag-ev.confirmed { background: #F3E8FF; border-color: #E9D5FF; color: #6B5FA6; }
.legacy .ag-ev.completed { background: #E8F5EE; border-color: #A8D5BA; color: #2D6A4F; }
.legacy .ag-ev.pending { background: #FEF3C7; border-color: #FDE68A; color: #92400E; }
.legacy .ag-ev.commitment { background: #EFF6FF; border-color: #BFDBFE; color: #1D4ED8; }
.legacy .now-row { position: relative; }
.legacy .ag-now-line { position: absolute; left: 0; right: 0; top: 40%; height: 2px; background: #6B5FA6; z-index: 2; }
.legacy .ag-now-line::before { content: ''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; background: #6B5FA6; border-radius: 50%; }
.legacy .mod-vis-fin { padding: 0; overflow: hidden; align-items: stretch; align-self: stretch; position: relative; }
.legacy .fn-scaled { position: absolute; top: 0; left: 0; width: calc(100% / 0.6); height: calc(100% / 0.6); transform: scale(0.6); transform-origin: top left; background: #F0F7F2; display: flex; flex-direction: column; padding: 24px 28px 16px; gap: 14px; }
.legacy .fn-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.legacy .fn-title { font-family: var(--f-display); font-size: 22px; font-weight: 700; color: #1A2420; line-height: 1.2; margin: 0; }
.legacy .fn-sub { font-size: 12px; color: #8A958E; margin: 2px 0 0; }
.legacy .fn-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.legacy .fn-month-nav { display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid #E8EDE9; border-radius: 8px; padding: 4px 8px; }
.legacy .fn-nav-btn { background: none; border: none; color: #8A958E; cursor: pointer; padding: 0; display: flex; align-items: center; line-height: 1; }
.legacy .fn-month-label { font-size: 12px; font-weight: 500; color: #1A2420; white-space: nowrap; padding: 0 4px; }
.legacy .fn-ghost-btn { background: #fff; border: 1px solid #E8EDE9; border-radius: 8px; padding: 6px; display: flex; align-items: center; color: #8A958E; cursor: pointer; }
.legacy .fn-novo-btn { display: flex; align-items: center; gap: 6px; background: #6B5FA6; color: #fff; border: none; border-radius: 9px; padding: 8px 14px; font-size: 13px; font-weight: 600; font-family: var(--f-body); cursor: pointer; white-space: nowrap; }
.legacy .fn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.legacy .fn-stat-card { background: #fff; border: 1px solid #E8EDE9; border-radius: 12px; padding: 10px 12px; display: flex; align-items: flex-start; gap: 10px; }
.legacy .fn-stat-ic { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.legacy .fn-stat-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.legacy .fn-stat-val { font-family: var(--f-display); font-size: 15px; font-weight: 700; color: #1A2420; white-space: nowrap; }
.legacy .fn-stat-lbl { font-size: 11px; font-weight: 600; color: #5B6760; }
.legacy .fn-stat-sub { font-size: 10px; color: #9CA5AE; }
.legacy .fn-val-red { color: #DC2626; }
.legacy .fn-val-amber { color: #D97706; }
.legacy .fn-val-purple { color: #6B5FA6; }
.legacy .fn-filter-bar { display: flex; align-items: center; gap: 8px; }
.legacy .fn-search { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #E8EDE9; border-radius: 9px; padding: 7px 10px; flex: 0 0 auto; min-width: 180px; font-size: 12px; color: #9CA5AE; }
.legacy .fn-filters { display: flex; gap: 4px; }
.legacy .fn-filter-btn { background: none; border: 1px solid #E8EDE9; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 500; color: #5B6760; cursor: pointer; font-family: var(--f-body); white-space: nowrap; }
.legacy .fn-filter-active { background: #6B5FA6; color: #fff; border-color: #6B5FA6; }
.legacy .fn-table { background: #fff; border: 1px solid #E8EDE9; border-radius: 14px; overflow: hidden; flex: 1; }
.legacy .fn-thead { display: grid; grid-template-columns: 22px 1fr 60px 90px 80px 60px; padding: 9px 16px; border-bottom: 1px solid #F0F2F1; background: #FAFAFA; font-size: 11px; font-weight: 600; color: #9CA5AE; gap: 10px; align-items: center; }
.legacy .fn-row { display: grid; grid-template-columns: 22px 1fr 60px 90px 80px 60px; padding: 10px 16px; border-bottom: 1px solid #F5F6F7; align-items: center; gap: 10px; }
.legacy .fn-row:last-child { border-bottom: none; }
.legacy .fn-cb { width: 14px; height: 14px; accent-color: #6B5FA6; cursor: pointer; }
.legacy .fn-row-desc { display: flex; align-items: center; gap: 10px; min-width: 0; }
.legacy .fn-av { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.legacy .fn-av-purple { background: #EDE9F8; color: #6B5FA6; }
.legacy .fn-av-red { background: #FEE2E2; color: #DC2626; }
.legacy .fn-desc-name { font-size: 13px; font-weight: 500; color: #1A2420; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legacy .fn-cat-badge { font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 999px; margin-top: 2px; display: inline-block; }
.legacy .fn-cat-receita { background: #E8F5EE; color: #2D6A4F; }
.legacy .fn-cat-debito { background: #FEE2E2; color: #DC2626; }
.legacy .fn-cell { font-size: 12px; color: #5B6760; white-space: nowrap; }
.legacy .fn-date { color: #8A958E; }
.legacy .fn-val-green { color: #2D6A4F; font-weight: 600; font-size: 13px; }
.legacy .fn-val-red { color: #DC2626; font-weight: 600; font-size: 13px; }
.legacy .fn-val-muted { color: #8A958E; font-weight: 500; font-size: 13px; }
.legacy .fn-status-badge { font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.legacy .fn-pago { background: #E8F5EE; color: #2D6A4F; }
.legacy .fn-pendente { background: #FEF3C7; color: #92400E; }
.legacy .fn-vencido { background: #FEE2E2; color: #DC2626; }
.legacy .fn-rec-btn { background: #EDE9F8; color: #6B5FA6; border: none; border-radius: 7px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.legacy .fn-action-btn { border: none; border-radius: 7px; padding: 5px 10px; font-size: 11px; font-weight: 600; cursor: pointer; font-family: var(--f-body); white-space: nowrap; }
.legacy .fn-receber { background: #A8D5BA; color: #1A3D2B; }
.legacy .fn-pagar { background: #FEE2E2; color: #DC2626; }
.legacy .mod-vis-cfg { padding: 0; overflow: hidden; align-items: stretch; align-self: stretch; position: relative; }
.legacy .cg-scaled { position: absolute; top: 0; left: 0; width: calc(100% / 0.6); height: calc(100% / 0.6); transform: scale(0.6); transform-origin: top left; background: #F0F7F2; display: flex; flex-direction: column; padding: 22px 26px 16px; gap: 12px; }
.legacy .cg-header { display: flex; align-items: center; justify-content: space-between; }
.legacy .cg-title { font-family: var(--f-display); font-size: 22px; font-weight: 700; color: #1A2420; margin: 0; }
.legacy .cg-tabs { display: flex; gap: 2px; background: #fff; border: 1px solid #E8EDE9; border-radius: 10px; padding: 3px; align-self: flex-start; }
.legacy .cg-tab { background: none; border: none; border-radius: 8px; padding: 5px 12px; font-size: 12px; font-weight: 500; color: #5B6760; cursor: pointer; font-family: var(--f-body); white-space: nowrap; }
.legacy .cg-tab-active { background: #6B5FA6; color: #fff; }
.legacy .cg-card { background: #fff; border: 1.5px solid #E8EDE9; border-radius: 14px; padding: 16px 18px; }
.legacy .cg-card + .cg-card { margin-top: 0; }
.legacy .cg-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.legacy .cg-card-title { font-size: 14px; font-weight: 600; color: #1A2420; margin: 0; }
.legacy .cg-card-sub { font-size: 11px; color: #8A958E; margin: 3px 0 0; }
.legacy .cg-divider { height: 1px; background: #F0F2F1; margin: 12px 0; }
.legacy .cg-label { font-size: 10px; font-weight: 600; color: #9CA5AE; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 6px; }
.legacy .cg-toggle { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
.legacy .cg-toggle input { display: none; }
.legacy .cg-toggle-track { position: absolute; inset: 0; border-radius: 999px; background: #A8D5BA; transition: background .2s; }
.legacy .cg-track-off { background: #D1D5DB; }
.legacy .cg-toggle-knob { position: absolute; top: 2px; left: 18px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .2s; }
.legacy .cg-knob-off { left: 2px; }
.legacy .cg-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; }
.legacy .cg-toggle-row + .cg-toggle-row { border-top: 1px solid #F5F6F7; }
.legacy .cg-toggle-row-lbl { font-size: 13px; color: #1A2420; padding-left: 12px; }
.legacy .cg-check-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.legacy .cg-checkbox { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #D1D5DB; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.legacy .cg-cb-on { background: #6B5FA6; border-color: #6B5FA6; }
.legacy .cg-check-lbl { font-size: 13px; color: #1A2420; }
.legacy .cg-save-row { display: flex; justify-content: flex-end; margin-top: 12px; }
.legacy .cg-save-btn { background: #6B5FA6; color: #fff; border: none; border-radius: 8px; padding: 7px 18px; font-size: 12px; font-weight: 600; font-family: var(--f-body); cursor: pointer; }
.legacy .cg-gcal-row { display: flex; align-items: center; gap: 14px; }
.legacy .cg-gcal-ic { width: 42px; height: 42px; border-radius: 12px; border: 1px solid #E8EDE9; background: #FAFAFA; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.legacy .cg-gcal-info { flex: 1; min-width: 0; }
.legacy .cg-gcal-name { font-size: 14px; font-weight: 600; color: #1A2420; margin: 0; }
.legacy .cg-gcal-status { font-size: 11px; margin: 2px 0 0; }
.legacy .cg-gcal-connected { color: #2D6A4F; }
.legacy .cg-gcal-btn-disconnect { background: none; border: 1.5px solid #E8EDE9; border-radius: 8px; padding: 6px 14px; font-size: 12px; font-weight: 500; color: #5B6760; cursor: pointer; font-family: var(--f-body); white-space: nowrap; flex-shrink: 0; }
.legacy .cg-gcal-hint { display: flex; align-items: flex-start; gap: 6px; font-size: 11px; color: #9CA5AE; margin: 10px 0 0; line-height: 1.5; }
.legacy .ac-vis { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.legacy .ac-url-bar { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line-soft); border-radius: 999px; padding: 6px 14px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-mute); box-shadow: var(--sh-xs); }
.legacy .ac-bezel { width: 200px; background: #111315; padding: 10px 7px; border-radius: 36px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 28px 56px rgba(0,0,0,.30), 0 4px 12px rgba(0,0,0,.15); position: relative; }
.legacy .ac-bezel::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 60px; height: 5px; background: #2A2D2F; border-radius: 999px; z-index: 2; }
.legacy .ac-screen { background: var(--bg); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; height: auto; }
.legacy .ac-status-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 2px; background: #fff; font-size: 9px; font-weight: 600; color: #1A2420; }
.legacy .ac-status-icons { display: flex; align-items: center; gap: 3px; color: #1A2420; }
.legacy .ac-app-header { background: #fff; border-bottom: 1px solid #E8EDE9; padding: 5px 10px; display: flex; align-items: center; justify-content: center; }
.legacy .ac-hero { background: linear-gradient(160deg, #2D6A4F, #4A7C59); padding: 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.legacy .ac-hero-avatar { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.2); border: 1.5px solid rgba(255,255,255,.35); display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.legacy .ac-hero-name { font-size: 9px; font-weight: 600; color: #fff; text-align: center; margin: 0; }
.legacy .ac-hero-crp { font-size: 8px; color: rgba(255,255,255,.7); margin: 0; }
.legacy .ac-progress { display: flex; align-items: flex-start; justify-content: center; background: #fff; border-bottom: 1px solid #F0F2F1; padding: 5px 8px 4px; }
.legacy .ac-step-item { display: flex; flex-direction: column; align-items: center; gap: 1px; flex-shrink: 0; }
.legacy .ac-step-dot { width: 14px; height: 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 7px; font-weight: 600; }
.legacy .ac-dot-active { background: #6B5FA6; color: #fff; }
.legacy .ac-dot-pending { background: #E8EDE9; color: #9CA5AE; }
.legacy .ac-step-lbl { font-size: 6.5px; color: #9CA5AE; white-space: nowrap; }
.legacy .ac-lbl-active { color: #6B5FA6; font-weight: 600; }
.legacy .ac-step-line { flex: 1; height: 1px; background: #E8EDE9; margin: 6px 2px 0; }
.legacy .ac-content { padding: 6px 7px 4px; display: flex; flex-direction: column; gap: 4px; }
.legacy .ac-step-title { font-family: var(--f-display); font-size: 10px; font-weight: 600; color: #1A2420; margin: 0; }
.legacy .ac-step-sub { font-size: 7.5px; color: #8A958E; margin: 0; line-height: 1.4; }
.legacy .ac-field-card { background: #fff; border: 1px solid #E8EDE9; border-radius: 8px; padding: 6px 7px; display: flex; flex-direction: column; gap: 5px; }
.legacy .ac-field { display: flex; flex-direction: column; gap: 2px; }
.legacy .ac-field label { font-size: 6.5px; font-weight: 600; color: #9CA5AE; text-transform: uppercase; letter-spacing: 0.04em; }
.legacy .ac-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.legacy .ac-input { background: #FAFAFA; border: 1px solid #E8EDE9; border-radius: 4px; padding: 4px 5px; font-size: 8px; color: #9CA5AE; }
.legacy .ac-filled { color: #1A2420; border-color: #A8D5BA; background: #fff; }
.legacy .ac-pills { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 1px; }
.legacy .ac-pill { padding: 2px 6px; border-radius: 999px; font-size: 7.5px; font-weight: 500; border: 1px solid #E8EDE9; color: #5B6760; background: #fff; }
.legacy .ac-pill-active { background: #6B5FA6; color: #fff; border-color: #6B5FA6; }
.legacy .ac-footer { padding: 4px 7px 7px; background: #fff; border-top: 1px solid #F0F2F1; }
.legacy .ac-continuar-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 4px; background: #6B5FA6; color: #fff; border: none; border-radius: 999px; padding: 5px; font-size: 9px; font-weight: 600; font-family: var(--f-body); cursor: pointer; }
.legacy .pdif-wrap { position: relative; width: 100%; height: 380px; overflow: hidden; border-radius: 18px; box-shadow: 0 8px 40px rgba(0,0,0,.10); }
.legacy .pdif-scaled { position: absolute; top: 0; left: 0; width: calc(100% / 0.62); height: calc(100% / 0.62); transform: scale(0.62); transform-origin: top left; background: #F0F7F2; display: flex; flex-direction: column; font-family: var(--f-body); }
.legacy .pdif-bg-layer { position: absolute; inset: 0; display: flex; flex-direction: column; background: #F0F7F2; }
.legacy .pdif-header { display: flex; align-items: center; gap: 10px; padding: 12px 20px; background: #fff; border-bottom: 1px solid #E8EDE9; flex-shrink: 0; }
.legacy .pdif-back-btn { display: flex; align-items: center; gap: 4px; background: none; border: none; font-size: 13px; font-weight: 500; color: #5B6760; cursor: pointer; font-family: var(--f-body); padding: 0; }
.legacy .pdif-h-divider { width: 1px; height: 18px; background: #E8EDE9; }
.legacy .pdif-ver-pront-btn { display: flex; align-items: center; gap: 5px; background: #EDE9F8; border: 1px solid #D3CDF0; border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 500; color: #6B5FA6; cursor: pointer; font-family: var(--f-body); white-space: nowrap; }
.legacy .pdif-ver-pront-active { background: #6B5FA6; color: #fff; border-color: #5a4f94; }
.legacy .pdif-session-info { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.legacy .pdif-session-date { font-size: 13px; color: #1A2420; font-weight: 500; }
.legacy .pdif-session-type { font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: #E8F5EE; color: #2D6A4F; }
.legacy .pdif-salvar-btn { background: #A8D5BA; color: #1A3D2B; border: none; border-radius: 9px; padding: 7px 18px; font-size: 13px; font-weight: 600; font-family: var(--f-body); cursor: pointer; }
.legacy .pdif-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 20px 0; flex-shrink: 0; }
.legacy .pdif-section-card { background: #fff; border: 1px solid #E8EDE9; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.legacy .pdif-section-head { display: flex; align-items: center; gap: 6px; padding: 11px 14px 9px; border-bottom: 1px solid #F0F2F1; color: #8A958E; }
.legacy .pdif-section-head span { font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #9CA5AE; flex: 1; }
.legacy .pdif-ia-btn { display: flex; align-items: center; gap: 5px; background: #6B5FA6; color: #fff; border: none; border-radius: 7px; padding: 5px 10px; font-size: 11px; font-weight: 600; font-family: var(--f-body); cursor: pointer; white-space: nowrap; }
.legacy .pdif-editor { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.legacy .pdif-editor-line { height: 7px; background: #E8EDE9; border-radius: 4px; }
.legacy .pdif-dim-overlay { position: absolute; inset: 0; background: rgba(10,20,15,.28); z-index: 1; }
.legacy .pdif-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; background: #fff; border-left: 1px solid #E8EDE9; box-shadow: -12px 0 40px rgba(0,0,0,.14); z-index: 2; display: flex; flex-direction: column; }
.legacy .pdif-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #E8EDE9; flex-shrink: 0; }
.legacy .pdif-drawer-pat { display: flex; align-items: center; gap: 12px; }
.legacy .pdif-drawer-av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #A8D5BA, #4A7C59); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.legacy .pdif-drawer-name { font-size: 14px; font-weight: 600; color: #1A2420; }
.legacy .pdif-drawer-meta { font-size: 11px; color: #8A958E; margin-top: 1px; }
.legacy .pdif-drawer-close { width: 28px; height: 28px; border-radius: 8px; border: 1px solid #E8EDE9; background: #F8FAF8; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #8A958E; flex-shrink: 0; }
.legacy .pdif-drawer-tabs { display: flex; border-bottom: 1px solid #E8EDE9; padding: 0 18px; flex-shrink: 0; }
.legacy .pdif-dtab { background: none; border: none; border-bottom: 2px solid transparent; padding: 10px 12px; font-size: 12px; font-weight: 500; color: #8A958E; cursor: pointer; font-family: var(--f-body); white-space: nowrap; }
.legacy .pdif-dtab-active { color: #6B5FA6; border-bottom-color: #6B5FA6; }
.legacy .pdif-drawer-body { flex: 1; overflow: hidden; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.legacy .pdif-devo-card { background: #FAFBFA; border: 1px solid #E8EDE9; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.legacy .pdif-devo-current { background: #F5F3FD; border-color: #D3CDF0; }
.legacy .pdif-devo-row { display: flex; align-items: center; justify-content: space-between; }
.legacy .pdif-devo-info { display: flex; flex-direction: column; gap: 2px; }
.legacy .pdif-devo-num { font-size: 12px; font-weight: 600; color: #1A2420; }
.legacy .pdif-devo-date { font-size: 11px; color: #8A958E; }
.legacy .pdif-devo-badge { font-size: 10px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.legacy .pdif-devo-now { background: #F5F3FD; color: #6B5FA6; border: 1px solid #D3CDF0; }
.legacy .pdif-devo-done { background: #F3F4F6; color: #6B7280; }
.legacy .pdif-devo-lines { display: flex; flex-direction: column; gap: 6px; }
.legacy .pdif-devo-line { height: 6px; background: #E8EDE9; border-radius: 3px; }
.legacy .pdif-devo-current .pdif-devo-line { background: #D3CDF0; }
.legacy .msg-stack { display: flex; flex-direction: column; gap: 14px; max-width: 420px; margin-left: auto; }
.legacy .msg { background: var(--paper); padding: 14px 16px; border-radius: var(--r-md); box-shadow: var(--sh-md); border: 1px solid var(--line-soft); }
.legacy .msg-head { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-mute); text-transform: lowercase; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.legacy .msg-ic { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #fff; }
.legacy .msg-ic-wa { background: #25D366; }
.legacy .msg-ic-em { background: var(--lilac-deep); }
.legacy .msg-body { font-size: 14px; line-height: 1.5; color: var(--ink); }
.legacy .msg-email { transform: translateX(-20px); }
.legacy .dash-main .quote-card { background: linear-gradient(125deg, #4A7C59 0%, #3d7a52 60%, #2e5e3e 100%); border: none; border-radius: 18px; padding: 18px 24px; flex-direction: row; justify-content: flex-start; gap: 0; backdrop-filter: none; box-shadow: none; }
.legacy .dash-topbar { display: none; align-items: center; gap: 12px; padding: 10px 16px; background: #FAFAF6; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 10; }
.legacy .dash-topbar-menu { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-soft); flex-shrink: 0; }
.legacy .dash-topbar-menu:hover { background: rgba(107,95,166,.08); }
.legacy .dash-topbar-logo { height: 26px; width: auto; display: block; }
@media (max-width: 1100px) {
  .legacy .dash-stats { grid-template-columns: repeat(3, 1fr); }
  .legacy .dash-cols { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .legacy .dash-topbar { display: flex; }
  .legacy .dash-body { grid-template-columns: 1fr; }
  .legacy .dash-side { display: none; }
  .legacy .dash-main { padding: 20px; gap: 14px; }
  .legacy .dash-head-actions .dh-btn-ghost { display: none; }
  .legacy .dash-head-actions .dh-btn-agenda { display: none; }
  .legacy .dash-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .legacy .dash-cols { grid-template-columns: 1fr; gap: 12px; }
  .legacy .dash-head { flex-wrap: nowrap; align-items: center; }
}
@media (max-width: 700px) {
  .legacy .dash-main { padding: 14px; gap: 10px; }
  .legacy .dash-greet { font-size: 15px; }
  .legacy .dash-sess-badge { font-size: 9.5px; }
  .legacy .dash-head-actions .dh-btn-agenda { display: none; }
  .legacy .dash-stats { grid-template-columns: repeat(1, 1fr); gap: 8px; }
  .legacy .stat-value { font-size: 22px; }
  .legacy .d-sess-row { padding: 8px 12px; gap: 8px; }
  .legacy .d-rem-row { padding: 8px 12px; }
  .legacy .d-fin-row { padding: 8px 12px; }
  .legacy .d-pend-row { padding: 8px 12px; }
  .legacy .d-bday-row { padding: 8px 12px; }
  .legacy .d-panel-head { padding: 10px 12px 8px; }
  .legacy .dash-cols { display: flex; flex-direction: column; gap: 10px; }
  .legacy .dash-col-left, .legacy .dash-col-right { width: 100%; min-width: 0; overflow: hidden; }
  .legacy .d-fin-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px; }
  .legacy .d-fin-act-col { display: none; }
  .legacy .d-fin-badge { display: inline-block; }
  .legacy .d-fin-val { width: auto; font-size: 10px; }
  .legacy .d-fin-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@keyframes sessDotPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

/* ============ Moldura na linha do dia ============ */
.legacy { font-family: var(--f-body); color: var(--ink); font-size: 14px; line-height: 1.5; }
.legacy .mod-vis { margin: 0; min-height: 0; height: 100%; background: none; }
.lg-frame { position: relative; height: var(--h, 380px); border-radius: var(--r-lg); border: 1px solid var(--line); background: #F0F7F2; box-shadow: var(--sh-lg); overflow: hidden; }
.legacy .ag-scaled, .legacy .fn-scaled, .legacy .cg-scaled { width: calc(100% / var(--s)); height: calc(100% / var(--s)); transform: scale(var(--s)); }
.lg-cal { --h: 310px; --s: .9; background: var(--paper); }
.lg-fin { --h: 430px; --s: .78; }
.lg-cfg { --h: 400px; --s: .74; }
.legacy .dash-window { box-shadow: var(--sh-lg); }
/* no hero antigo a barra do app grudava no topo; aqui ela fica parada dentro da janela */
.legacy .dash-topbar { position: static; }
.lg-pdif .pdif-wrap { height: 420px; box-shadow: var(--sh-lg); border: 1px solid var(--line); }
.lg-pair { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: center; }
.lg-pair .msg-stack { margin-left: 0; }
.lg-phone { display: flex; align-items: center; gap: 32px; }
.lg-phone .ac-vis { flex: none; }

/* entrada dos mockups: sobe e cresce um pouco */
.js .legacy.reveal { transform: translateY(32px) scale(.97); transform-origin: 50% 0; }
.js .legacy.reveal.in { transform: none; }

/* cartões flutuantes do hero antigo, agora ao lado do dashboard */
.lg-dash { position: relative; }
.legacy .hero-chip { position: absolute; z-index: 3; display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-md); box-shadow: var(--sh-lg); will-change: transform; }
.legacy .chip-ic { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--lilac-soft); color: var(--lilac-deep); }
.legacy .chip-ic-money { background: var(--money-bg); color: var(--money-tx); }
.legacy .chip-title { font-family: var(--f-display); font-size: 13px; font-weight: 600; color: var(--ink); }
.legacy .chip-sub { font-size: 11px; color: var(--ink-mute); margin-top: 1px; }
.legacy .chip-1 { top: 30%; left: -36px; animation: floatChip 6s ease-in-out infinite; }
.legacy .chip-2 { top: 64%; right: -28px; animation: floatChip 7s ease-in-out infinite -2s; }
@keyframes floatChip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (min-width: 901px) {
  .lg-dash .lg-zoom { zoom: .72; }
}
@media (max-width: 900px) {
  .legacy .hero-chip { display: none; }
  /* dashboard enxuto no celular: cabeçalho, indicadores e sessões de hoje */
  .legacy.lg-dash .quote-card,
  .legacy.lg-dash .dash-col-right,
  .legacy.lg-dash .dash-col-left > .d-panel ~ .d-panel,
  .legacy.lg-dash .dash-head-actions,
  .legacy.lg-dash .stat-sub,
  .legacy.lg-dash .stat-badge { display: none; }
  .legacy.lg-dash .dash-body { min-height: 0; }
  .lg-dash .dash-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lg-dash .stat-card { padding: 10px; min-width: 0; }
  .lg-dash .stat-ic { width: 26px; height: 26px; }
  .lg-dash .stat-value { font-size: 18px; white-space: nowrap; }
  .lg-dash .stat-label { font-size: 10.5px; line-height: 1.3; }
  .lg-pair { grid-template-columns: 1fr; }
  .lg-phone { flex-direction: column; align-items: flex-start; }
  .lg-phone .ac-vis { align-self: center; }
  .lg-cal { --s: .62; --h: 260px; }
  .lg-fin { --s: .58; --h: 360px; }
  .lg-cfg { --s: .62; --h: 340px; }
  .lg-pdif .pdif-wrap { height: 340px; }
}
