/* Kumble App — extensões sobre o tokens.css do Brandkit V1 */

html, body, #root { min-height: 100vh; }
body { background: var(--paper); color: var(--ink); }

a { color: inherit; }
button { font-family: var(--body); }
input, select, textarea { font-family: var(--body); }

/* SHELL */
#root { display: flex; flex-direction: column; min-height: 100vh; }
.app-shell { display: flex; flex-direction: column; min-height: 100vh; }
.app-shell main { flex: 1; padding-bottom: 96px; max-width: 460px; width: 100%; margin: 0 auto; }

/* MOBILE BOTTOM NAV */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(244,242,236,.96); backdrop-filter: blur(10px); z-index: 20; max-width: 460px; margin: 0 auto; }

/* DESKTOP LAYOUT */
@media (min-width: 900px) {
  .app-shell { flex-direction: row; }
  .app-shell main { padding-bottom: 0; padding: 34px 44px; max-width: 1180px; }
  .bottom-nav.mobile { display: none; }
  .sidebar.desktop-only { height: 100vh; position: sticky; top: 0; }
}

@media (max-width: 899px) {
  .sidebar.desktop-only { display: none; }
}

/* SCREEN STRUCTURE */
.screen-pad { padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.screen-head { padding: 6px 4px 14px; }
.screen-head .back { display: inline-flex; align-items: center; gap: 5px; color: var(--slate); font-family: var(--disp); font-weight: 600; font-size: 14px; margin-bottom: 8px; cursor: pointer; }
.screen-head h1 { font-family: var(--disp); font-weight: 600; font-size: 29px; letter-spacing: -.03em; line-height: 1.05; margin-top: 6px; }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row { display: flex; gap: 12px; align-items: center; }
.col { display: flex; flex-direction: column; gap: 8px; }

.text-mute { color: var(--mute); }
.text-ink2 { color: var(--ink-2); }
.text-slate { color: var(--slate); }
.text-amber { color: var(--amber); }
.text-green { color: var(--green); }

/* AUTH / CENTERED */
.center-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--paper-2); }
.login-card { width: 100%; max-width: 380px; padding: 28px; }
.login-card h1 { font-family: var(--disp); font-size: 28px; font-weight: 600; letter-spacing: -.03em; margin: 14px 0 6px; }
.login-card .sub { color: var(--ink-2); margin-bottom: 18px; font-size: 14px; }

.err { color: #B0432F; font-size: 13.5px; margin-top: 6px; }

/* SPINNER */
.spinner { width: 18px; height: 18px; border: 2px solid var(--line-2); border-top-color: var(--slate); border-radius: 50%; animation: spin .9s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* TASK ROW (lista dentro de cards) */
.task-row { display: flex; align-items: center; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.task-row:last-child { border-bottom: none; }
.task-check { width: 28px; height: 28px; border: 2px solid var(--line-2); border-radius: 9px; background: #fff; flex-shrink: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.task-check.done { background: var(--slate); border-color: var(--slate); color: #fff; }

.list-card { padding: 4px 16px; }

.empty { padding: 36px 12px; text-align: center; color: var(--mute); font-family: var(--disp); }

/* TABBAR */
.tabbar { display: flex; gap: 4px; padding: 4px; background: var(--card-soft); border: 1px solid var(--line); border-radius: 14px; }
.tabbar button { flex: 1; border: none; padding: 10px; border-radius: 10px; background: transparent; font-family: var(--disp); font-weight: 600; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.tabbar button.on { background: var(--slate); color: #fff; }

/* INPUT EXTRAS */
.input.textarea { min-height: 110px; resize: vertical; font-family: var(--body); }
select.input { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239C998E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }

/* MODAL */
.modal-back { position: fixed; inset: 0; background: rgba(26,25,22,.36); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 40; }
.modal { background: var(--paper); border-radius: var(--r-card); padding: 22px; max-width: 460px; width: 100%; max-height: 90vh; overflow: auto; }

/* CHAT */
.chat { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }
.chat .msg { padding: 12px 14px; border-radius: 14px; max-width: 88%; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; }
.chat .msg.user { align-self: flex-end; background: var(--slate); color: #fff; border-bottom-right-radius: 4px; }
.chat .msg.assistant { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }

/* FAB (Floating Action Button — atalho do Assistente K) */
.app-fab { position: fixed; right: 16px; bottom: 96px; width: 56px; height: 56px; border-radius: 56px; background: var(--slate); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(79,93,122,.42); z-index: 15; color: #fff; }
.app-fab svg { display: block; }
@media (min-width: 900px) {
  .app-fab { bottom: 24px; right: 24px; }
}

/* LINKS DENTRO DE CARDS — manter cor de texto */
a.card { color: var(--ink); text-decoration: none; }
a.card:hover { filter: brightness(0.985); }

/* SCROLLBAR DESKTOP — discreto */
@media (min-width: 900px) {
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--mute); }
}

/* Seletor de mês no /finance — setas grandes e centralizadas */
.month-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.month-nav { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card-soft); color: var(--ink-2); font-family: var(--disp); font-weight: 600; font-size: 22px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .15s; flex-shrink: 0; }
.month-nav:hover { background: var(--paper-2); color: var(--slate); border-color: var(--slate-soft); }
.month-title { flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* ===== Financeiro (design-financeiro.html) ===== */
.fin-app { max-width: 1240px; margin: 0 auto; padding: 0 0 90px; }

.fin-monthrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0 20px; flex-wrap: wrap; }
.fin-monthnav { display: flex; align-items: center; gap: 8px; }
.fin-monthnav .arw { width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--card); display: flex; align-items: center; justify-content: center; transition: all .15s; cursor: pointer; }
.fin-monthnav .arw:hover { border-color: var(--slate); background: var(--slate-tint); }
.fin-monthnav .arw:active { transform: scale(.95); }
.fin-monthnav .label { font-family: var(--disp); font-weight: 700; font-size: 30px; letter-spacing: -.03em; min-width: 230px; text-align: center; }
.fin-monthnav .label .yr { color: var(--mute); font-weight: 500; }

.fin-btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--disp); font-weight: 600; font-size: 14px; border-radius: 13px; padding: 12px 18px; border: 1px solid transparent; transition: all .15s; cursor: pointer; }
.fin-btn:active { transform: translateY(1px); }
.fin-btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.fin-btn-ghost:hover { border-color: var(--slate); }
.fin-btn-slate { background: var(--slate); color: #fff; }
.fin-btn-slate:hover { background: var(--slate-2); }
.fin-btn-soft { background: var(--slate-tint); color: var(--slate-2); border-color: var(--slate-soft); }
.fin-btn-sm { font-size: 12.5px; padding: 8px 13px; border-radius: 10px; }

.fin-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.fin-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.fin-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.fin-kick { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.fin-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 2px 12px; }
.fin-sec-h .t { font-family: var(--disp); font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.fin-sec-h .acts { display: flex; gap: 8px; flex-wrap: wrap; }

.fin-sum-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fin-sum-big .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.fin-sum-big .val { font-family: var(--disp); font-weight: 700; font-size: 46px; letter-spacing: -.035em; margin-top: 4px; line-height: 1; }
.fin-pill-profit { display: inline-flex; align-items: center; gap: 8px; background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 9px 15px; font-family: var(--disp); font-weight: 600; font-size: 14px; }

.fin-bartrack { margin-top: 20px; }
.fin-bartrack .bar-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.fin-bartrack .bar-top .a { font-family: var(--disp); font-weight: 600; font-size: 13.5px; color: var(--ink); }
.fin-bartrack .bar-top .b { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.fin-track { height: 12px; background: var(--paper-2); border-radius: 9px; overflow: hidden; position: relative; }
.fin-track .fill { height: 100%; background: var(--slate); border-radius: 9px; transition: width .5s cubic-bezier(.3,.8,.3,1); }

.fin-ladder { margin-top: 20px; border-top: 1px solid var(--line); }
.fin-ladder .rung { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fin-ladder .rung:last-child { border-bottom: none; }
.fin-ladder .rung .k { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.fin-ladder .rung .k .dot { width: 8px; height: 8px; border-radius: 8px; }
.fin-ladder .rung .v { font-family: var(--disp); font-weight: 600; font-size: 15px; }
.fin-ladder .rung.total { background: var(--card-soft); margin: 0 -22px; padding: 14px 22px; border-bottom: none; }
.fin-ladder .rung.total .k { font-family: var(--disp); font-weight: 600; color: var(--ink); font-size: 15px; }
.fin-ladder .rung.total .v { font-size: 20px; color: var(--green); letter-spacing: -.02em; }
.fin-neg { color: var(--amber); }

.fin-client { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.fin-client + .fin-client { margin-top: 12px; }
.fin-client-h { display: flex; align-items: center; gap: 12px; padding: 15px 16px; }
.fin-client-h .swatch { width: 11px; height: 11px; border-radius: 11px; flex-shrink: 0; }
.fin-client-h .nm { font-family: var(--disp); font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; }
.fin-client-h .meta { font-family: var(--mono); font-size: 10.5px; color: var(--mute); margin-top: 2px; }
.fin-client-h .right { margin-left: auto; text-align: right; }
.fin-client-h .right .recv { font-family: var(--disp); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.fin-client-h .right .of { font-family: var(--mono); font-size: 10px; color: var(--mute); margin-top: 1px; }
.fin-nf-list { border-top: 1px solid var(--line); background: var(--card-soft); }
.fin-nf { display: flex; align-items: center; gap: 11px; padding: 11px 16px; border-top: 1px solid var(--line); }
.fin-nf:first-child { border-top: none; }
.fin-nf .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fin-nf .info { flex: 1; min-width: 0; }
.fin-nf .info .l1 { font-family: var(--disp); font-weight: 600; font-size: 14px; }
.fin-nf .info .l2 { font-family: var(--mono); font-size: 10px; color: var(--mute); margin-top: 1px; }
.fin-nf .amt { font-family: var(--disp); font-weight: 600; font-size: 14px; }
.fin-nf .links { display: inline-flex; gap: 4px; margin-left: 8px; }
.fin-nf .links a { color: var(--slate); font-size: 10px; font-family: var(--mono); text-decoration: none; padding: 2px 6px; border-radius: 5px; background: var(--paper-2); }
.fin-nf .links a:hover { background: var(--slate-soft); }
.fin-client-foot { padding: 11px 16px; border-top: 1px solid var(--line); display: flex; }

.fin-chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 8px; border: 1px solid transparent; cursor: default; }
.fin-chip .d { width: 6px; height: 6px; border-radius: 6px; }
.fin-chip.paid { background: var(--green-soft); color: var(--green); }
.fin-chip.paid .d { background: var(--green); }
.fin-chip.emit { background: var(--slate-soft); color: var(--slate-2); cursor: pointer; border: none; font-family: var(--mono); }
.fin-chip.emit .d { background: var(--slate); }
.fin-chip.pend { background: var(--amber-soft); color: var(--amber); cursor: pointer; border: none; font-family: var(--mono); }
.fin-chip.pend .d { background: var(--amber); }
.fin-chip.pend:hover, .fin-chip.emit:hover { filter: brightness(.97); }

.fin-acct { padding: 15px 0; border-bottom: 1px solid var(--line); }
.fin-acct:last-child { border-bottom: none; padding-bottom: 0; }
.fin-acct:first-child { padding-top: 4px; }
.fin-acct-h { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.fin-acct-h .logo { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--disp); font-weight: 700; font-size: 14px; color: #fff; }
.fin-acct-h .nm { font-family: var(--disp); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.fin-acct-h .ty { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-top: 1px; }
.fin-acct-h .bal { margin-left: auto; font-family: var(--disp); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.fin-acct-flow { display: flex; gap: 9px; }
.fin-acct-flow .f { flex: 1; background: var(--card-soft); border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; }
.fin-acct-flow .f .l { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.fin-acct-flow .f .n { font-family: var(--disp); font-weight: 600; font-size: 14px; margin-top: 3px; }

.fin-edit-btn { width: 24px; height: 24px; border-radius: 7px; border: 1px solid transparent; background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; opacity: .55; padding: 0; flex-shrink: 0; }
.fin-edit-btn:hover { background: var(--paper-2); opacity: 1; border-color: var(--line-2); }

.fin-client-h .right .col-right { text-align: right; }
.fin-client-h .right .col-right .base-strike { font-family: var(--mono); font-size: 10px; color: var(--mute); text-decoration: line-through; margin-top: 1px; }

.fin-exp { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.fin-exp:last-child { border-bottom: none; }
.fin-exp .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--paper-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fin-exp .info { flex: 1; min-width: 0; }
.fin-exp .info .l1 { font-family: var(--disp); font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.fin-exp .info .tagfix { font-family: var(--mono); font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-2); background: var(--slate-soft); padding: 2px 6px; border-radius: 5px; }
.fin-exp .info .l2 { font-family: var(--mono); font-size: 10px; color: var(--mute); margin-top: 3px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fin-exp .right { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.fin-exp .amt { font-family: var(--disp); font-weight: 600; font-size: 14.5px; text-align: right; }
.fin-exp-tot { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 2px; margin-top: 4px; border-top: 2px solid var(--line-2); }
.fin-exp-tot .k { font-family: var(--disp); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.fin-exp-tot .v { font-family: var(--disp); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }

/* inline pop picker */
.fin-pop { position: absolute; z-index: 60; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 18px 50px -18px rgba(26,25,22,.4); padding: 14px; width: 268px; }
.fin-pop .ph { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.fin-pop .opt { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 7px; transition: all .12s; background: var(--card); width: 100%; text-align: left; cursor: pointer; }
.fin-pop .opt:hover { border-color: var(--slate); background: var(--slate-tint); }
.fin-pop .opt.sel { border-color: var(--slate); background: var(--slate-tint); }
.fin-pop .opt .logo { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--disp); font-weight: 700; font-size: 11px; flex-shrink: 0; }
.fin-pop .opt .nm { font-family: var(--disp); font-weight: 600; font-size: 13px; }
.fin-pop .row2 { display: flex; gap: 8px; margin-top: 4px; }
.fin-pop input[type=date] { flex: 1; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; font-family: var(--body); font-size: 13px; color: var(--ink); background: var(--card); }
.fin-pop .confirm { width: 100%; margin-top: 9px; background: var(--green); color: #fff; border: none; border-radius: 10px; padding: 11px; font-family: var(--disp); font-weight: 600; font-size: 13.5px; cursor: pointer; }

/* modal financeiro */
.fin-scrim { position: fixed; inset: 0; background: rgba(26,25,22,.34); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 22px; }
.fin-modal { background: var(--paper); border-radius: 22px; width: 520px; max-width: 100%; max-height: 88vh; overflow: auto; box-shadow: 0 40px 90px -30px rgba(26,25,22,.5); animation: finPop .2s; }
@keyframes finPop { from { transform: scale(.97); } to { transform: scale(1); } }
.fin-modal-h { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 0; }
.fin-modal-h .t { font-family: var(--disp); font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.fin-modal-h .x { width: 36px; height: 36px; border-radius: 10px; border: none; background: var(--paper-2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fin-modal-b { padding: 18px 24px 24px; }
.fin-field { margin-bottom: 15px; }
.fin-field label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
.fin-field input[type=text], .fin-field input[type=date], .fin-field select, .fin-field textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line-2); border-radius: 13px; padding: 13px 14px; font-family: var(--body); font-size: 15px; color: var(--ink); outline: none;
}
.fin-field .money { display: flex; align-items: center; background: var(--card); border: 1px solid var(--line-2); border-radius: 13px; padding: 0 14px; }
.fin-field .money span { font-family: var(--disp); font-weight: 600; font-size: 16px; color: var(--mute); }
.fin-field .money input { flex: 1; border: none; outline: none; background: none; padding: 13px 8px; font-family: var(--disp); font-weight: 600; font-size: 18px; color: var(--ink); }
.fin-seg-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.fin-seg-opts button { flex: 1; min-width: 90px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 8px; font-family: var(--disp); font-weight: 600; font-size: 13px; color: var(--ink-2); transition: all .15s; cursor: pointer; }
.fin-seg-opts button.on { background: var(--slate); color: #fff; border-color: var(--slate); }
.fin-toggle { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line-2); border-radius: 13px; padding: 13px 14px; cursor: pointer; }
.fin-toggle .sw { width: 42px; height: 25px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; flex-shrink: 0; }
.fin-toggle .sw.on { background: var(--green); }
.fin-toggle .sw .kn { position: absolute; top: 2.5px; left: 2.5px; width: 20px; height: 20px; border-radius: 20px; background: #fff; transition: left .2s; }
.fin-toggle .sw.on .kn { left: 20px; }
.fin-btn-full { width: 100%; justify-content: center; background: var(--slate); color: #fff; border: none; border-radius: 14px; padding: 15px; font-family: var(--disp); font-weight: 600; font-size: 15.5px; margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.fin-steps-dots { display: flex; gap: 6px; justify-content: center; padding: 2px 0 16px; }
.fin-steps-dots .d { width: 8px; height: 8px; border-radius: 8px; background: var(--line-2); transition: all .25s; }
.fin-steps-dots .d.on { width: 24px; background: var(--slate); }
.fin-review { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fin-review .r { display: flex; justify-content: space-between; gap: 14px; padding: 13px 15px; border-bottom: 1px solid var(--line); }
.fin-review .r:last-child { border-bottom: none; }
.fin-review .r .k { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.fin-review .r .v { font-size: 14px; text-align: right; }
.fin-fix-row { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; margin-bottom: 9px; background: var(--card); }
.fin-fix-row .nm { flex: 1; font-family: var(--disp); font-weight: 600; font-size: 14.5px; }
.fin-fix-row .vl { font-family: var(--disp); font-weight: 600; font-size: 14.5px; }
.fin-fix-row .del { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fin-fix-row .del:hover { border-color: var(--amber); }
.fin-fix-add { display: flex; gap: 8px; margin-top: 6px; }
.fin-fix-add input { background: var(--card); border: 1px solid var(--line-2); border-radius: 11px; padding: 11px 12px; font-family: var(--body); font-size: 14px; outline: none; }
.fin-fix-add .nm { flex: 1; }
.fin-fix-add .vl { width: 110px; }
.fin-fix-add .go { width: 46px; border-radius: 11px; background: var(--slate); border: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.fin-drop { border: 1.5px dashed var(--line-2); border-radius: 16px; padding: 30px; text-align: center; background: var(--card-soft); cursor: pointer; }
.fin-drop .ic { width: 50px; height: 50px; border-radius: 14px; background: var(--slate-soft); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.fin-drop .t { font-family: var(--disp); font-weight: 600; font-size: 15px; }
.fin-drop .s { font-size: 13px; color: var(--mute); margin-top: 4px; }
.fin-recon { margin-top: 16px; }
.fin-recon .row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line); }

.fin-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; font-family: var(--disp); font-weight: 600; font-size: 13.5px; padding: 12px 20px; border-radius: 999px; z-index: 120; opacity: 0; transition: all .25s; box-shadow: 0 14px 36px -10px rgba(0,0,0,.4); pointer-events: none; }
.fin-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 980px) {
  .fin-grid { grid-template-columns: 1fr; }
  .fin-monthnav .label { font-size: 24px; min-width: auto; }
  .fin-sum-big .val { font-size: 38px; }
}

/* Dropdown de conta bancária ao marcar pago/recebido */
.bank-picker { position: absolute; right: 0; top: calc(100% + 4px); background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 8px 20px rgba(26,25,22,.12); padding: 4px; z-index: 20; min-width: 200px; }
.bank-picker-item { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; border: none; background: transparent; font-family: var(--body); font-size: 13.5px; color: var(--ink); cursor: pointer; }
.bank-picker-item:hover { background: var(--paper-2); }

/* HOME — layout responsivo (2 colunas desktop, 1 mobile) */
.home-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.home-col { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) {
  .home-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .app-shell main { max-width: 1100px; }
}

/* KANBAN simples (cliente → tarefas) */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 719px) {
  .kanban { grid-template-columns: 1fr; }
}
.kanban-col { background: var(--card-soft); border: 1px solid var(--line); border-radius: var(--r-card); display: flex; flex-direction: column; min-height: 200px; }
.kanban-head { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.kanban-head > span:first-child { font-family: var(--disp); font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.kanban-head .mono { background: var(--paper-2); padding: 2px 8px; border-radius: 999px; font-size: 10.5px; color: var(--ink-2); }
.kanban-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kanban-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; transition: box-shadow .15s; }
.kanban-card:hover { box-shadow: 0 2px 6px rgba(26,25,22,.06); }

/* CALENDÁRIO */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.cal-nav { display: inline-flex; align-items: center; gap: 4px; }
.cal-nav button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-family: var(--disp); font-weight: 600; }
.cal-nav button:hover { background: var(--paper-2); }
.cal-title { font-family: var(--disp); font-weight: 600; font-size: 16px; letter-spacing: -.02em; }

.cal-view-toggle { display: inline-flex; padding: 3px; background: var(--paper-2); border-radius: var(--r-pill); }
.cal-view-toggle button { padding: 6px 12px; border: none; background: transparent; border-radius: var(--r-pill); font-family: var(--disp); font-weight: 600; font-size: 12px; color: var(--ink-2); cursor: pointer; transition: all .18s ease; }
.cal-view-toggle button.on { background: var(--slate); color: #fff; }

.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); padding: 12px 4px 8px; gap: 4px; }
.cal-weekdays > span { text-align: center; font-family: var(--mono); font-size: 10.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .12em; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
.cal-day { min-height: 88px; padding: 6px; background: var(--card-soft); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: background-color .15s; border: 1px solid transparent; }
.cal-day:hover { background: var(--paper-2); }
.cal-day.is-other { opacity: .35; }
.cal-day.is-today { border-color: var(--slate); background: var(--slate-tint); }
.cal-day.is-weekend .day-num { color: var(--mute); }
.cal-day .day-num { font-family: var(--disp); font-weight: 600; font-size: 13.5px; color: var(--ink); }
.cal-day.is-today .day-num { color: var(--slate); }
.cal-day .more { font-family: var(--mono); font-size: 9.5px; color: var(--mute); text-align: left; }

.cal-event-pill {
  display: block; padding: 4px 7px; border-radius: 6px;
  font-family: var(--disp); font-weight: 600; font-size: 10.5px;
  background: var(--slate-tint); color: var(--slate-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer; transition: filter .15s, transform .1s;
  border: 1px solid transparent;
  text-align: left;
}
.cal-event-pill:hover { filter: brightness(.97); }
.cal-event-pill:active { transform: scale(.98); }

/* Visão semanal */
.cal-week-grid { display: grid; grid-template-columns: 70px repeat(7, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); }
.cal-week-head { display: contents; }
.cal-week-head > div { background: var(--card-soft); padding: 10px 6px; font-family: var(--disp); font-weight: 600; font-size: 12px; text-align: center; }
.cal-week-head > div.is-today { background: var(--slate-tint); color: var(--slate); }
.cal-week-hour { background: var(--card-soft); padding: 6px; font-family: var(--mono); font-size: 10px; color: var(--mute); text-align: right; }
.cal-week-slot { background: var(--card); min-height: 44px; padding: 3px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.cal-week-slot:hover { background: var(--paper-2); }
.cal-week-slot.is-today { background: var(--slate-tint); }

/* KEY RESULT — linha e pill clicável de status */
.kr-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.kr-row:last-child { border-bottom: none; }

.kr-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border-radius: var(--r-pill);
  padding: 6px 12px;
  font-family: var(--disp); font-weight: 600; font-size: 12px;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  user-select: none;
  transition: background-color .22s ease, color .22s ease, border-color .22s ease, transform .12s ease, box-shadow .22s ease;
  flex-shrink: 0;
}
.kr-pill:hover { box-shadow: 0 1px 3px rgba(26,25,22,.08); transform: translateY(-1px); }
.kr-pill:active { transform: scale(.97); }
.kr-pill .kr-dot {
  width: 7px; height: 7px; border-radius: 7px; background: currentColor;
  transition: background-color .22s ease, transform .22s ease;
}

.kr-pill.kr-todo  { background: var(--paper-2);  color: var(--ink-2);  border-color: var(--line-2); }
.kr-pill.kr-doing { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-soft); }
.kr-pill.kr-done  { background: var(--green-soft); color: var(--green); border-color: var(--green-soft); }
.kr-pill.kr-done .kr-dot { transform: scale(1.15); }

.kr-trash {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid transparent; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: .35; transition: opacity .15s, background .15s;
  flex-shrink: 0;
}
.kr-trash:hover { opacity: 1; background: var(--paper-2); }

/* PROGRESS RANGE (legado — outras telas) */
input[type='range'] { -webkit-appearance: none; appearance: none; height: 6px; background: var(--paper-2); border-radius: 6px; outline: none; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--slate); cursor: pointer; box-shadow: 0 1px 3px rgba(26,25,22,.2); }
input[type='range']::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--slate); border: none; cursor: pointer; }

/* iOS safe area */
@supports (padding: env(safe-area-inset-bottom)) {
  .bottom-nav { padding-bottom: env(safe-area-inset-bottom); }
  .app-fab { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
