/* Dinheiro em Rota — tema unificado v4 */
:root{--route-navy:#071a28;--route-navy-2:#0d2d3b;--route-green:#17b987;--route-green-dark:#0a8066;--route-blue:#2589e8;--route-purple:#8059d9;--route-orange:#f59e42;--route-red:#ed5d70;--route-yellow:#ffd95c;--route-surface:#fff;--route-bg:#eef5f4;--route-text:#102936;--route-muted:#667c86;--route-border:#d8e7e3;--primary:#17b987;--nav:#071a28;--bg:#eef5f4;--ink:#102936;--line:#d8e7e3}
body{background:linear-gradient(135deg,#eef5f4 0,#f5f3fb 55%,#eef7fb 100%);color:var(--route-text)}
.sidebar{background:linear-gradient(180deg,var(--route-navy),#0b2735);box-shadow:8px 0 30px #071a2812}.sidebar .brand{font-size:18px;line-height:1.25;color:#fff}.sidebar .brand span{display:inline-grid;place-items:center;width:31px;height:31px;margin-right:7px;border-radius:10px;background:linear-gradient(135deg,#18c994,#29a9df);color:#fff}.sidebar nav a{position:relative;color:#d8e8ed;border:1px solid transparent}.sidebar nav a:hover{background:#ffffff10;border-color:#ffffff14;color:#fff;transform:translateX(3px)}
.main{padding:30px 32px}.topbar{padding:5px 0 18px;border-bottom:1px solid #d9e6e3}.topbar h1{font-size:29px;letter-spacing:-.5px}.topbar p{color:var(--route-muted);text-transform:capitalize}.topbar .btn.primary{box-shadow:0 8px 22px #17b98735}
.btn{border-radius:11px}.btn.primary{background:linear-gradient(135deg,var(--route-green),var(--route-green-dark));border-color:transparent;box-shadow:0 5px 15px #17b98725}.btn.primary:hover{filter:brightness(1.05);transform:translateY(-1px)}
.panel,.cards article,.goal,.video-card,.sheet-panel{border:1px solid var(--route-border);box-shadow:0 8px 24px #143d480b;border-radius:17px}.panel{padding:23px}.panel h2{font-size:20px}.cards{gap:18px}.cards article{position:relative;overflow:hidden;padding:21px 22px;border:0}.cards article:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px}.cards article:nth-child(1){background:linear-gradient(135deg,#e5faf2,#fff)}.cards article:nth-child(1):before{background:var(--route-green)}.cards article:nth-child(2){background:linear-gradient(135deg,#ffedf0,#fff)}.cards article:nth-child(2):before{background:var(--route-red)}.cards article:nth-child(3){background:linear-gradient(135deg,#ebf5ff,#fff)}.cards article:nth-child(3):before{background:var(--route-blue)}.cards article:nth-child(4){background:linear-gradient(135deg,#f2edff,#fff)}.cards article:nth-child(4):before{background:var(--route-purple)}
.hero{border-radius:21px;background:linear-gradient(120deg,#092536 0,#0b6e66 55%,#19b986 100%);box-shadow:0 18px 45px #0b6e6630}.hero .score{border-radius:16px;background:#ffffff16;backdrop-filter:blur(5px)}
/* Resumo anual do painel */
.sheet-panel{background:#fff;padding:23px;margin:20px 0;border-top:5px solid var(--route-green);overflow:hidden}.sheet-panel .panel-head{gap:20px}.sheet-panel .panel-head h2{margin:5px 0 3px;font-size:23px}.sheet-panel .panel-head p{margin:0;color:var(--route-muted)}.eyebrow.dark{color:var(--route-green-dark);font-weight:800;letter-spacing:1.5px}.year-strip{display:grid!important;grid-template-columns:repeat(12,minmax(168px,1fr))!important;gap:13px!important;overflow-x:auto!important;padding:20px 2px 10px!important;scrollbar-color:#9bcfc0 #eaf3f0}.month-mini{display:block!important;min-width:168px!important;padding:15px!important;border:1px solid var(--route-border)!important;border-radius:14px!important;background:#fff!important;box-shadow:0 5px 14px #143d480a;transition:.18s}.month-mini:nth-child(4n+1){border-top:4px solid var(--route-green)!important}.month-mini:nth-child(4n+2){border-top:4px solid var(--route-blue)!important}.month-mini:nth-child(4n+3){border-top:4px solid var(--route-purple)!important}.month-mini:nth-child(4n){border-top:4px solid var(--route-orange)!important}.month-mini:hover{transform:translateY(-3px);box-shadow:0 9px 23px #143d4818}.month-mini>b{display:flex!important;align-items:center;justify-content:space-between;font-size:17px;margin-bottom:11px}.month-mini>b:after{content:"→";color:var(--route-green)}.month-mini div{display:flex!important;justify-content:space-between!important;gap:8px!important;padding:5px 0;border-bottom:1px dashed #e3ecea}.month-mini small{color:var(--route-muted)}.month-mini strong{font-size:12px}.month-mini>span{display:block!important;margin-top:9px;padding:6px 8px;border-radius:8px;font-size:11px;font-weight:800}.month-mini .ok,.month-mini .good{background:#dcf8ed;color:#087457}.month-mini .warn{background:#fff1d4;color:#9a6400}
/* Mapa financeiro */
.map-toolbar{display:flex!important;justify-content:space-between;align-items:flex-end;gap:18px;margin:18px 0!important;background:#fff;border:1px solid var(--route-border);border-radius:15px;padding:17px 19px;box-shadow:0 6px 18px #143d4808}.map-toolbar form{display:flex!important;gap:12px!important;align-items:flex-end}.map-toolbar label{display:grid!important;gap:5px;color:var(--route-muted);font-size:12px;font-weight:800}.map-toolbar input,.map-toolbar select{min-width:110px;border:1px solid var(--route-border)!important;border-radius:9px!important;padding:10px!important;background:#f9fbfb;font:inherit}.sheet-title{display:flex!important;justify-content:space-between;align-items:center;background:linear-gradient(110deg,var(--route-navy),#13566a)!important;color:#fff;padding:18px 22px!important;border-radius:17px 17px 0 0!important}.sheet-title>span{font-size:21px!important;font-weight:900}.sheet-legend{display:flex!important;align-items:center;gap:8px!important;flex-wrap:wrap}.sheet-legend i{width:12px;height:12px;border-radius:4px}.sheet-legend .vision{background:var(--route-blue)}.sheet-legend .reality{background:var(--route-purple)}.sheet-legend .gap{background:var(--route-green)}
.finance-sheet{background:#fff!important;border:1px solid var(--route-border)!important;border-top:0!important;border-radius:0 0 17px 17px!important;padding:22px!important;margin-bottom:22px!important;box-shadow:0 10px 28px #143d480c;overflow-x:auto}.auto-reality{display:flex!important;gap:10px;align-items:center;background:linear-gradient(90deg,#e2f8f0,#effaf7)!important;color:#096a52!important;border:1px solid #bce8d9!important;border-radius:11px!important;padding:12px 14px!important;margin-bottom:15px!important;font-weight:800}.auto-reality input{width:18px;height:18px}.sheet-row{display:grid!important;grid-template-columns:minmax(235px,2fr) repeat(3,minmax(145px,1fr))!important;align-items:stretch;min-width:710px}.sheet-row>*{display:flex;align-items:center;padding:12px 14px!important;border-bottom:1px solid #e7efed!important}.sheet-row.header{background:#edf3f2!important;border-radius:10px 10px 0 0;font-size:11px;letter-spacing:.5px;text-transform:uppercase}.sheet-row.header>*:nth-child(1){background:#e9f0f1}.sheet-row.header>*:nth-child(2){background:#dff0ff;color:#12649e}.sheet-row.header>*:nth-child(3){background:#eee4ff;color:#6742a6}.sheet-row.header>*:nth-child(4){background:#dcf7eb;color:#087457}.sheet-row input{width:100%;border:1px solid #d3e1de!important;border-radius:8px!important;padding:9px!important;background:#fff}.sheet-row.total{font-weight:900}.sheet-row.income{background:#ddf8ee!important}.sheet-row.available{background:#deefff!important}.sheet-row.expenses{background:#fff2d2!important}.sheet-row.objective{background:#eee7ff!important}.finance-sheet textarea{background:#fafcfc}
.planner-items{padding:24px!important;overflow-x:auto}.planner-items:nth-of-type(odd){border-top:5px solid var(--route-green)}.planner-items:nth-of-type(even){border-top:5px solid var(--route-orange)}.planner-items .panel-head{margin-bottom:18px}.planner-items .panel-head p{color:var(--route-muted)}.planner-items .sheet-row{grid-template-columns:minmax(235px,2fr) repeat(3,minmax(135px,1fr)) 80px!important;min-width:790px}.planner-items .empty{background:#f7faf9;border:1px dashed #cbded9;border-radius:11px}.save-line{background:var(--route-green)!important}.delete-line{background:var(--route-red)!important}.guidance{border-top:5px solid var(--route-blue)}.guidance-grid{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:15px!important}.guidance-grid>div{border:1px solid var(--route-border);border-radius:13px;padding:17px!important;background:#f9fbfb!important}.guidance-grid>div:nth-child(1){background:#e5f8f1!important}.guidance-grid>div:nth-child(2){background:#e8f3ff!important}.guidance-grid>div:nth-child(3){background:#fff2df!important}.guidance-grid>div:nth-child(4){background:#f1eaff!important}.guidance-grid b{display:block;font-size:24px;margin:5px 0}.guidance-grid span,.guidance-grid small{color:var(--route-muted)}
@media(max-width:900px){.main{padding:18px}.sheet-panel .panel-head{align-items:flex-start;flex-direction:column}.guidance-grid{grid-template-columns:1fr 1fr!important}}@media(max-width:600px){.topbar{align-items:flex-start}.topbar h1{font-size:23px}.sheet-panel{padding:17px}.year-strip{grid-template-columns:repeat(12,155px)!important}.month-mini{min-width:155px!important}.map-toolbar{align-items:stretch;flex-direction:column}.map-toolbar form{display:grid!important;grid-template-columns:1fr 1fr}.map-toolbar form .btn{grid-column:1/-1}.sheet-title{align-items:flex-start;flex-direction:column;gap:10px}.finance-sheet{padding:13px!important}.guidance-grid{grid-template-columns:1fr!important}.cards{grid-template-columns:1fr!important}}
