@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

:root {
  --brand: #123b4a;
  --brand-hover: #1c4e60;
  --mint: #0ffcbe;
  --paper: #f5f3f0;
  --white: #fff;
  --ink: #2e3238;
  --muted: #6b6f75;
  --line: #e3dfd7;
  --success: #4a8c6b;
  --error: #8c3b35;
  --sage: #e4eae2;
  --sidebar-width: 232px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 13px/1.65 Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, blockquote { margin: 0; }
h1, h2, h3, strong, b { font-weight: 500; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.035em; }
button, input, select, textarea { border-radius: 4px; }
input, select, textarea { min-width: 0; }
input, select, textarea, button { accent-color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #5b9d89; outline-offset: 3px; }
.icon { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.text-xs { font-size: 10px; }
.eyebrow { font-size: 10px; letter-spacing: .075em; color: #60776d; margin-bottom: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 100; padding: 10px 20px; background: var(--white); color: var(--brand); }
.skip-link:focus { top: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; background: var(--brand); color: white; border: 1px solid transparent; padding: 11px 17px; font-size: 12px; line-height: 1.5; min-height: 42px; transition: background .18s, border-color .18s; white-space: nowrap; }
.button .icon { width: 17px; height: 17px; }
.button:hover { background: var(--brand-hover); }
.button.secondary { background: transparent; border-color: #c9d0cb; color: var(--brand); }
.button.secondary:hover { background: #e9eee8; }
.button.quiet { background: transparent; color: var(--brand); }
.button.quiet:hover { background: #e4e9e3; }
.button.small { font-size: 11px; padding: 7px 11px; min-height: 32px; }
.button.full { width: 100%; }
.button.danger { background: var(--error); }
.button.danger-outline { background: transparent; border-color: #cbb3ac; color: var(--error); }
.icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; background: transparent; color: var(--muted); flex-shrink: 0; }
.icon-button:hover { background: #e7ebe5; color: var(--brand); }
.icon-button .icon { width: 17px; height: 17px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #dce6df; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--brand); }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 16px; }

/* Estrutura principal */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); background: var(--brand); color: #eaf3f2; display: flex; flex-direction: column; padding: 31px 16px 20px; z-index: 30; overflow-y: auto; }
.sidebar-brand { display: flex; align-items: center; gap: 7px; padding: 0 9px; font-size: 19px; font-weight: 500; letter-spacing: -.8px; }
.sidebar-brand img { object-fit: contain; background: var(--paper); border-radius: 9px; padding: 3px; }
.sidebar-brand>span>span { font-weight: 400; }
.sidebar-brand small { display: block; font-size: 9px; color: #9bc0c9; font-weight: 400; letter-spacing: .02em; margin-top: 2px; }
.family-switch { display: block; padding: 26px 11px 22px; }
.family-switch>span { font-size: 8px; letter-spacing: .11em; color: #9bc0c9; }
.family-switch select { width: 100%; background: transparent; color: #eaf3f2; border: 0; border-bottom: 1px solid #315562; border-radius: 0; padding: 9px 14px 9px 0; font-size: 12px; }
.family-switch option { background: var(--brand); }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar-nav a { display: flex; align-items: center; gap: 13px; padding: 11px 16px; color: #a9c6ce; font-size: 12px; border-radius: 3px; position: relative; }
.sidebar-nav a .icon { width: 18px; height: 18px; }
.sidebar-nav a:hover { color: #fff; background: #194452; }
.sidebar-nav a[aria-current] { background: var(--brand-hover); color: white; }
.sidebar-nav a[aria-current]::before { content: ''; width: 2px; position: absolute; left: 0; top: 11px; bottom: 11px; background: var(--mint); }
.sidebar-nav a[data-route="filhos"] { margin-top: 17px; }
.sidebar-nav a[data-route="configuracoes"] { margin-top: 10px; border-top: 1px solid #315562; padding-top: 18px; }
.nav-count { margin-left: auto; background: #3d6872; color: #eaf3f2; font-size: 9px; padding: 1px 6px; border-radius: 3px; }
.sidebar-bottom { margin-top: auto; padding-top: 22px; }
.sidebar-motto { display: flex; gap: 11px; color: #99b9bc; padding: 15px 12px 22px; font-size: 10px; }
.sidebar-motto .icon { width: 18px; color: #72a997; margin-top: 3px; }
.sidebar-profile { border: 0; border-top: 1px solid #315562; background: transparent; color: #eaf3f2; display: flex; align-items: center; gap: 10px; padding: 19px 8px 0; width: 100%; text-align: left; }
.sidebar-profile>span:nth-child(2) { flex: 1; min-width: 0; font-size: 11px; overflow-wrap: anywhere; }
.sidebar-profile small { display: block; color: #9bc0c9; font-size: 9px; }
.sidebar-profile>.icon { width: 15px; color: #9bc0c9; }
.workspace { margin-left: var(--sidebar-width); min-height: 100vh; }
.topbar { height: 77px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 40px; }
.breadcrumb { display: flex; gap: 13px; align-items: center; font-size: 11px; color: var(--muted); }
.breadcrumb>.icon { width: 11px; }
.breadcrumb>span:last-child { color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.global-search { display: flex; gap: 10px; align-items: center; border: 0; background: transparent; font-size: 11px; color: var(--muted); padding: 7px; }
.global-search .icon { width: 16px; }
kbd { font: 9px Inter,Arial,sans-serif; padding: 3px 5px; border: 1px solid var(--line); border-radius: 3px; margin-left: 12px; }
.topbar-divider { height: 20px; width: 1px; background: var(--line); }
.notification-button { position: relative; }
.notification-dot { position: absolute; width: 5px; height: 5px; background: var(--success); border-radius: 50%; right: 6px; top: 6px; }
.mobile-menu { display: none; }
.demo-ribbon { text-align: center; background: #e6ece7; color: #476356; font-size: 10px; padding: 6px 18px; border-bottom: 1px solid #dce3d9; }
#main { max-width: 1510px; padding: 37px 40px 25px; margin-inline: auto; min-height: calc(100vh - 140px); }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 29px; }
.page-heading h1 { font-size: 30px; }
.page-heading .eyebrow { margin-bottom: 9px; }
.page-description { color: var(--muted); font-size: 12px; margin-top: 9px; }
.heading-actions { display: flex; gap: 10px; }
.workspace-footer { display: flex; justify-content: space-between; font-size: 9px; color: var(--muted); padding: 16px 40px 23px; gap: 20px; }
.workspace-footer>span:first-child { color: var(--brand); font-size: 10px; letter-spacing: -.3px; }

/* Início: composição assimétrica e divisórias leves */
.daily-banner { background: #e2e9e0; border-radius: 5px; padding: 30px 34px; display: flex; justify-content: space-between; gap: 25px; align-items: center; min-height: 199px; overflow: hidden; position: relative; }
.live-caption { display: flex; align-items: center; gap: 9px; font-size: 10px; color: #5c7767; }
.live-caption .icon { width: 16px; }
.daily-banner h2 { font-size: clamp(24px,2.2vw,33px); color: var(--brand); margin-top: 13px; }
.daily-banner p { color: #657568; font-size: 11px; margin-block: 10px 15px; }
.banner-art { position: relative; height: 150px; width: 218px; flex-shrink: 0; }
.orbit { position: absolute; width: 172px; height: 172px; border: 1px solid #bbcdbb; border-radius: 50%; right: 15px; top: -10px; }
.orbit.second { width: 133px; height: 133px; right: 35px; top: 10px; }
.art-parent { width: 65px; height: 65px; position: absolute; left: 30px; top: 23px; background: var(--brand); color: #eaf3f2; font-size: 22px; border: 5px solid #e2e9e0; }
.art-child { width: 75px; height: 75px; position: absolute; right: 32px; top: 58px; font-size: 26px; background: #f5f3e9; border: 5px solid #e2e9e0; }
.art-caption { position: absolute; font-size: 9px; color: #5c7767; bottom: -5px; left: 38px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,1fr); gap: 32px; margin-top: 33px; }
.module { padding-bottom: 24px; }
.module-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.module-title h2 { font-size: 14px; letter-spacing: -.015em; }
.module-title>a, .module-title>span { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--muted); }
.module-title a:hover { color: var(--brand); }
.module-title>a .icon { width: 14px; }
.event-row { display: flex; width: 100%; align-items: center; gap: 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 15px 0; text-align: left; color: var(--ink); }
.event-row:hover { background: #edece5; }
.date-tile { text-align: center; color: var(--brand); font-size: 22px; line-height: 1.1; width: 35px; flex-shrink: 0; }
.date-tile small { display: block; font-size: 9px; text-transform: uppercase; margin-top: 5px; }
.event-info { flex: 1; min-width: 0; font-size: 12px; }
.event-info small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.event-category { font-size: 9px; color: #698075; }
.event-row>.icon { width: 13px; color: #90988f; }
.finance-overview { background: #edece5; padding: 25px 23px; display: grid; grid-template-columns: 1fr 1fr; gap: 25px; align-items: center; border-left: 2px solid #a0b8a7; margin-top: 4px; }
.finance-overview .eyebrow { font-size: 9px; margin-bottom: 8px; }
.big-number { font-size: 29px; letter-spacing: -1px; }
.finance-overview>div>span { font-size: 9px; color: var(--muted); }
.agreement-progress { font-size: 10px; color: var(--muted); }
.progress { height: 3px; background: #d9ded5; margin-block: 12px 13px; overflow: hidden; }
.progress>span { display: block; background: var(--success); height: 100%; }
.agreement-progress a { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--brand); }
.agreement-progress .icon { width: 13px; }
.tasks-module { margin-top: 30px; }
.task-row { display: flex; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.task-check { width: 20px; height: 20px; flex-shrink: 0; border: 1px solid #aab8ae; border-radius: 3px; background: transparent; color: var(--success); padding: 0; display: grid; place-items: center; }
.task-check .icon { width: 14px; }
.task-row>div:nth-child(2) { flex: 1; font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
.task-row small { display: block; color: var(--muted); font-size: 9px; margin-top: 4px; }
.task-row.is-done>div>span { text-decoration: line-through; color: var(--muted); }
.task-row.is-done .task-check { background: #e3ece3; }
.row-actions { display: flex; gap: 3px; align-items: center; justify-content: flex-end; }
.row-actions .icon-button { width: 28px; height: 30px; }
.row-actions .icon { width: 14px; height: 14px; }
.message-spotlight { background: var(--brand); color: white; padding: 24px 25px; border-radius: 4px; border-top: 2px solid #66b799; }
.spotlight-header { display: flex; gap: 9px; align-items: center; color: #a7cbcd; }
.spotlight-header span { font-size: 8px; letter-spacing: .07em; }
.spotlight-header .icon { width: 16px; }
.message-spotlight blockquote { margin-block: 20px 14px; font-size: 16px; line-height: 1.75; letter-spacing: -.015em; overflow-wrap: anywhere; }
.message-spotlight>p { color: #9bc0c9; font-size: 9px; }
.message-spotlight>a { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #315562; margin-top: 19px; padding-top: 15px; font-size: 11px; }
.message-spotlight>a .icon { width: 16px; color: var(--mint); }
.support-module { margin-top: 28px; }
.person-mini { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 11px; }
.person-mini>div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.person-mini small { display: block; color: var(--muted); font-size: 9px; }
.person-mini .avatar { width: 31px; height: 31px; font-size: 10px; }
.person-mini:nth-child(3) .avatar { background: #b6ccc6; }
.module-note { font-size: 9px; color: var(--muted); margin-top: 18px; }
.recent-module { border-top: 1px solid var(--line); padding-top: 22px; }
.activity-mini { display: flex; gap: 13px; margin-top: 19px; }
.timeline-point { width: 5px; height: 5px; border: 1px solid #79917e; border-radius: 50%; margin-top: 8px; flex-shrink: 0; }
.activity-mini p { font-size: 11px; }
.activity-mini small { font-size: 9px; color: var(--muted); }
.bottom-note { border-top: 1px solid var(--line); padding-top: 20px; font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.bottom-note .icon { width: 15px; color: #78917c; }

/* Filtros, agenda e tabelas */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-block: 25px 20px; flex-wrap: wrap; }
.toolbar-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.toolbar select, .toolbar input[type=month] { border: 1px solid var(--line); background: #faf9f6; padding: 9px 11px; color: var(--ink); font-size: 11px; min-height: 38px; max-width: 220px; }
.search-field { display: flex; align-items: center; gap: 9px; background: #faf9f6; border: 1px solid var(--line); padding: 8px 12px; border-radius: 4px; }
.search-field .icon { width: 16px; color: var(--muted); }
.search-field input { background: transparent; color: var(--ink); border: 0; padding: 0; font-size: 11px; width: 175px; min-height: 20px; }
.month-switch { display: flex; align-items: center; gap: 10px; }
.month-switch h2 { font-size: 16px; min-width: 158px; text-align: center; }
.month-switch [data-action=prev-month] { transform: rotate(180deg); }
.segmented { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 4px; padding: 3px; }
.segmented button { background: transparent; color: var(--muted); border: 0; font-size: 10px; padding: 6px 10px; }
.segmented button.active { color: var(--brand); background: #dde7df; }
.calendar { border: 1px solid var(--line); background: #faf9f6; border-radius: 5px; overflow: hidden; }
.weekdays { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); background: #e9ede6; }
.weekdays>span { text-align: center; padding: 12px; font-size: 10px; color: #5d7263; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar-cell { min-height: 121px; padding: 8px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 0; }
.calendar-cell[data-action="new-event-day"] { cursor: pointer; }
.calendar-cell[data-action="new-event-day"]:hover,
.calendar-cell[data-action="new-event-day"]:focus-within { box-shadow: inset 0 0 0 1px var(--brand); }
.calendar-cell:nth-child(7n) { border-right: 0; }
.calendar-cell.other-month { background: #f0eee9; color: #9a9b93; }
.calendar-cell.today { background: #eef3ec; }
.day-number { background: transparent; border: 0; border-radius: 50%; width: 26px; height: 26px; color: inherit; font-size: 11px; display: grid; place-items: center; margin-bottom: 6px; }
.today .day-number { background: var(--brand); color: white; }
.calendar-event { width: 100%; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border: 0; border-left: 2px solid #a2b5a1; background: #e5ebe2; color: #3f5d4c; font-size: 9px; text-align: left; border-radius: 1px; padding: 5px; margin-top: 4px; }
.calendar-event.custody { background: #dce7e8; border-color: #5b858c; color: #234f5b; }
.calendar-event>span { opacity: .8; }
.more-events { font-size: 9px; background: none; border: 0; padding: 5px 1px; color: var(--brand); }
.page-footnote { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; margin-top: 23px; }
.page-footnote .icon { width: 15px; height: 15px; }
.surface { background: #faf9f6; border: 1px solid var(--line); padding: 10px 25px; border-radius: 5px; }
.surface .event-row:last-child, .surface .task-row:last-child { border-bottom: 0; }
.finance-summary { display: grid; grid-template-columns: 1.15fr 1fr 1fr; background: #e8ece4; padding: 26px 28px; gap: 26px; border-radius: 5px; }
.finance-summary>div+div { border-left: 1px solid #ccd5c8; padding-left: 26px; }
.finance-summary span { font-size: 11px; color: #5d6d5f; }
.finance-summary strong { display: block; font-size: 28px; letter-spacing: -.04em; margin-top: 7px; }
.finance-summary small { font-size: 9px; color: var(--muted); }
.inline-label { display: flex; align-items: center; gap: 9px; font-size: 11px; }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 5px; background: #faf9f6; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 14px 18px; color: var(--muted); font-size: 10px; font-weight: 400; border-bottom: 1px solid var(--line); background: #eeeee8; white-space: nowrap; }
td { padding: 20px 18px; border-bottom: 1px solid var(--line); font-size: 12px; }
tr:last-child td { border-bottom: 0; }
td small { display: block; font-size: 9px; color: var(--muted); margin-top: 5px; }
.table-link { background: none; border: 0; padding: 0; text-align: left; color: var(--ink); }
.table-link:hover { color: var(--success); }
.amount { white-space: nowrap; }
.status { font-size: 10px; display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.status .icon { width: 13px; height: 13px; }
.status.pending { color: #736e56; }
.status.confirmed, .status.paid { color: #3d7458; }
.task-summary { display: flex; gap: 30px; align-items: center; padding: 6px 0 23px; font-size: 11px; color: var(--muted); }
.task-summary .progress { width: 200px; }

/* Conversas e documentos */
.chat-layout { display: grid; grid-template-columns: minmax(0,1fr) 255px; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.chat-main { background: #faf9f6; min-width: 0; }
.chat-header { display: flex; gap: 12px; align-items: center; padding: 20px 25px; border-bottom: 1px solid var(--line); }
.chat-header>.icon { color: var(--brand); }
.chat-header h2 { font-size: 13px; }
.chat-header span { font-size: 10px; color: var(--muted); }
.chat-update { margin-left: auto; }
.chat-thread { height: min(55vh,560px); min-height: 250px; overflow-y: auto; padding: 5px 25px 25px; overscroll-behavior: contain; }
.conversation-date { display: flex; align-items: center; gap: 15px; color: var(--muted); font-size: 9px; margin-block: 23px; }
.conversation-date::before, .conversation-date::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.chat-message { display: flex; gap: 12px; margin-top: 23px; padding-right: 28px; }
.chat-message>.avatar { width: 31px; height: 31px; font-size: 10px; margin-top: 1px; }
.chat-message>div { min-width: 0; flex: 1; }
.chat-meta { display: flex; gap: 10px; align-items: center; font-size: 10px; color: var(--muted); }
.chat-meta>span { color: var(--brand); }
.chat-meta .icon-button { height: 21px; width: 23px; margin-left: auto; }
.chat-meta .icon { width: 12px; }
.chat-message p { font-size: 13px; line-height: 1.85; background: #e8eeea; padding: 13px 16px; margin-top: 8px; border-radius: 0 5px 5px 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message.mine { padding-right: 0; padding-left: 28px; }
.chat-message.mine p { background: #dce7e5; }
.chat-message.mine>.avatar { background: #bcd2cb; }
.chat-compose { display: flex; gap: 12px; margin: 0 22px; padding-top: 17px; border-top: 1px solid var(--line); align-items: end; }
.chat-compose textarea { flex: 1; resize: vertical; min-height: 53px; max-height: 180px; border: 1px solid var(--line); background: #fff; padding: 12px; font-size: 12px; }
.compose-note { color: var(--muted); font-size: 9px; padding: 9px 23px 17px; }
.chat-aside { padding: 30px 25px; background: #e8ece4; border-left: 1px solid var(--line); }
.chat-aside h3 { font-size: 21px; color: var(--brand); margin-block: 20px; line-height: 1.45; }
.chat-aside>p:not(.eyebrow) { font-size: 11px; line-height: 1.9; color: #687767; }
.aside-people { border-top: 1px solid #d1d9cc; padding-top: 15px; margin-top: 32px; }
.document-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.document-card { background: #faf9f6; border: 1px solid var(--line); border-radius: 5px; padding: 24px; }
.document-top { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; color: var(--brand); }
.document-top>.icon { width: 25px; height: 25px; }
.document-top .eyebrow { margin: 0; }
.document-top .row-actions { margin-left: auto; }
.document-card h2 { font-size: 17px; overflow-wrap: anywhere; }
.document-card>p { color: var(--muted); font-size: 10px; margin-top: 9px; }
.document-metadata { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 9px; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.document-card .document-expiry { font-size: 10px; margin-block: 17px; }
.document-expiry .icon { width: 13px; height: 13px; margin-right: 3px; }
.document-expiry.expired { color: var(--error); }
.children-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; }
.child-card { background: #f9f8f4; border: 1px solid var(--line); border-top: 3px solid #9fb8a3; padding: 28px; border-radius: 4px; }
.child-card-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 23px; }
.child-avatar { width: 62px; height: 62px; font-size: 22px; background: #dae5d8; }
.child-avatar.tone-1 { background: #c3d8d2; }
.child-card h2 { font-size: 23px; }
.child-card>p { font-size: 11px; color: var(--muted); margin-top: 8px; }
.child-card dl { border-top: 1px solid var(--line); padding-top: 5px; margin-top: 25px; }
.child-card dt { color: #66816d; font-size: 10px; margin-top: 20px; }
.child-card dd { margin: 4px 0 0; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Pessoas, histórico e configurações */
.people-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.person-card { background: #faf9f6; border: 1px solid var(--line); padding: 24px; border-radius: 4px; }
.person-card.inactive { background: #eeede8; }
.person-card-heading { display: flex; align-items: center; gap: 13px; }
.person-card-heading>div { flex: 1; min-width: 0; }
.person-card-heading h2 { font-size: 15px; overflow-wrap: anywhere; }
.person-card-heading p { font-size: 10px; color: var(--muted); margin-top: 4px; }
.person-card-heading>.avatar { width: 42px; height: 42px; font-size: 14px; }
.person-role { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--brand); margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); }
.person-role .icon { width: 16px; }
.person-permissions { font-size: 11px; color: var(--muted); margin-block: 9px 15px; }
.person-card>.text-xs { overflow-wrap: anywhere; }
.invitations { margin-top: 40px; }
.invitation-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.invitation-row>div { overflow-wrap: anywhere; min-width: 0; }
.invitation-row small { display: block; font-size: 10px; color: var(--muted); }
.history-list { border-top: 1px solid var(--line); }
.history-row { display: flex; align-items: center; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.history-row>div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.history-icon { color: #5e8070; background: #e6ece4; padding: 9px; border-radius: 50%; }
.history-icon .icon { width: 16px; height: 16px; }
.history-row h2 { font-size: 13px; letter-spacing: -.01em; }
.history-row p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.history-row time { margin-left: auto; font-size: 10px; color: var(--muted); flex-shrink: 0; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 25px; }
.settings-panel { background: #faf9f6; border: 1px solid var(--line); padding: 27px; border-radius: 5px; }
.settings-panel>.module-title { margin-bottom: 24px; }
.settings-panel .module-title>.icon { color: #6f8b75; width: 18px; }
.settings-panel>p { color: var(--muted); font-size: 12px; margin-bottom: 20px; }
.settings-panel>.button { margin: 0 8px 10px 0; }
.settings-divider { border-top: 1px solid var(--line); margin-block: 23px; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 30px; border-top: 1px solid #d8c9c2; margin-top: 40px; padding-top: 25px; }
.danger-zone h2 { font-size: 14px; color: var(--error); }
.danger-zone p { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* Formulários, diálogos e estados */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; font-size: 11px; }
.field>span { color: #536159; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d8dcd3; background: #fff; color: var(--ink); padding: 11px 12px; font-size: 12px; min-height: 42px; }
.field textarea { resize: vertical; }
.field input:disabled { background: #eeeee8; color: var(--muted); }
.required { color: #607969; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
.form-hint { font-size: 10px; color: var(--muted); line-height: 1.8; margin-block: -2px 20px; }
.form-error { color: var(--error); font-size: 11px; margin-block: 14px; }
.form-error:empty { display: none; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding-top: 21px; margin-top: 24px; }
.form-footer>span { font-size: 10px; color: var(--muted); }
dialog { width: min(520px,calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 28px; border: 1px solid #d7dcd2; border-radius: 7px; background: #faf9f6; color: var(--ink); box-shadow: 0 25px 100px #123b4a2b; }
dialog.dialog-wide { width: min(680px,calc(100% - 32px)); }
dialog::backdrop { background: #123b4a75; backdrop-filter: blur(3px); }
.dialog-header { display: flex; justify-content: space-between; align-items: start; gap: 25px; margin-bottom: 26px; }
.dialog-header .eyebrow { margin-bottom: 8px; }
.dialog-header h2 { font-size: 24px; }
.dialog-description { font-size: 12px; color: var(--muted); margin-bottom: 24px; line-height: 1.9; }
.detail-list { margin: 0; }
.detail-list dt { font-size: 10px; color: var(--muted); margin-top: 18px; }
.detail-list dd { margin: 5px 0 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.file-drop { display: flex; flex-direction: column; gap: 9px; align-items: center; background: #e9eee6; border: 1px dashed #a6b7a3; padding: 23px 17px; border-radius: 5px; color: var(--brand); font-size: 12px; }
.file-drop>.icon { width: 25px; height: 25px; }
.file-drop small { color: var(--muted); font-size: 10px; }
.file-drop input { width: 100%; max-width: 290px; font-size: 11px; margin-top: 8px; }
.permissions { border: 1px solid var(--line); padding: 16px; margin: 20px 0; }
.permissions legend { font-size: 11px; color: var(--brand); padding-inline: 6px; }
.permissions>p { font-size: 10px; color: var(--muted); margin-bottom: 14px; }
.permissions>label { display: inline-flex; gap: 7px; align-items: center; margin: 0 15px 10px 0; font-size: 11px; }
.checkbox-label { display: flex; gap: 9px; align-items: center; font-size: 12px; }
.empty-state { text-align: center; padding: 45px 20px; max-width: 480px; margin-inline: auto; }
.empty-state>.icon { width: 28px; height: 28px; color: #8da38e; margin-bottom: 13px; }
.empty-state h3 { font-size: 16px; }
.empty-state p { font-size: 11px; color: var(--muted); margin-top: 10px; }
.empty-state .button { margin-top: 22px; }
.module .empty-state { padding-block: 24px; }
.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; flex-direction: column; align-items: end; gap: 10px; pointer-events: none; }
.toast { padding: 15px 21px; background: var(--brand); border-left: 3px solid #84bc99; color: white; box-shadow: 0 8px 30px #123b4a22; border-radius: 4px; font-size: 12px; max-width: min(450px,calc(100vw - 48px)); }
.toast-error { background: #713c37; border-color: #c5a497; }
.search-result { display: flex; gap: 13px; align-items: center; width: 100%; text-align: left; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); padding: 16px 0; border-radius: 0; font-size: 12px; }
.search-result:hover { background: #eef0e9; }
.search-result>.icon { color: #64856f; width: 17px; }
.search-result>span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.search-result small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.modal-search input { width: 100%; font-size: 12px; min-height: 26px; }
.recovery-code { display: block; padding: 18px; background: #e5ece4; border: 1px dashed #a1b99f; word-break: break-all; font-size: 16px; text-align: center; }
.no-family { max-width: 650px !important; margin: 10vh auto !important; text-align: center; min-height: auto !important; }
.no-family>img { margin-bottom: 25px; }
.no-family h1 { font-size: 30px; }
.no-family>p:not(.eyebrow) { color: var(--muted); margin-top: 20px; }
.hero-actions { display: flex; justify-content: center; gap: 15px; margin-block: 25px; flex-wrap: wrap; }
.initial-loading, .startup-error { max-width: 600px; margin: 20vh auto; text-align: center; padding: 25px; }
.initial-loading p { color: var(--muted); margin-top: 20px; }
.startup-error h1 { font-size: 27px; margin-block: 20px; }
.startup-error p { color: var(--muted); margin-bottom: 20px; }

/* Acesso à conta */
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-story { background: var(--brand); color: white; padding: 45px 10%; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; overflow: hidden; }
.auth-brand { display: flex; gap: 12px; align-items: center; font-size: 25px; letter-spacing: -1px; }
.auth-brand img { background: var(--paper); border-radius: 8px; padding: 3px; }
.auth-story>div { margin-block: 45px; }
.auth-story .eyebrow { color: #a2c5c5; margin-bottom: 25px; font-size: 11px; }
.auth-story h1 { font-size: clamp(36px,4.1vw,59px); line-height: 1.18; letter-spacing: -.05em; }
.auth-story h1>span { color: #9fc6b4; }
.auth-story>div>p:not(.eyebrow) { color: #b0c9ce; font-size: 14px; line-height: 1.9; margin-top: 27px; }
.auth-symbol { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 50px; min-height: 90px; }
.auth-symbol>.icon { width: 28px; height: 28px; color: #8bb7a3; margin-left: 8px; }
.auth-symbol>span:last-child { font-size: 11px; color: #b4d0c9; }
.auth-orbit { position: absolute; width: 70px; height: 70px; border: 1px solid #406c70; border-radius: 50%; left: -15px; }
.auth-footer { font-size: 10px; color: #93b8be; }
.auth-form-side { padding: 45px 9%; display: grid; place-items: center; }
.auth-form-container { width: 100%; max-width: 380px; }
.auth-form-container h2 { font-size: 32px; }
.auth-subtitle { font-size: 12px; color: var(--muted); margin: 13px 0 29px; }
.auth-form-container .field { margin-bottom: 20px; }
.auth-form-container .field input { min-height: 47px; background: #faf9f6; }
.auth-form-container .button { min-height: 46px; }
.auth-forgot { border: 0; background: transparent; font-size: 11px; color: #59766a; margin: -7px 0 20px auto; display: block; padding: 0; }
.auth-switch { margin-top: 21px; font-size: 11px; color: var(--muted); text-align: center; }
.auth-switch button { background: none; border: 0; color: var(--brand); font-size: 11px; padding: 0 3px; }
.auth-demo { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 24px; text-align: center; }
.auth-demo>span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.auth-demo>small { display: block; font-size: 9px; color: var(--muted); margin-top: 9px; }
.auth-security { display: flex; gap: 7px; align-items: center; justify-content: center; color: var(--muted); font-size: 9px; margin-top: 28px; }
.auth-security .icon { width: 12px; height: 12px; }
.auth-small-brand { display: none; }
.invite-notice { background: #e5ece3; border-left: 2px solid #94ad95; padding: 12px; font-size: 11px; margin-bottom: 24px; color: #4b6557; }

@media (min-width: 1600px) {
  :root { --sidebar-width: 250px; }
  #main { padding-inline: 55px; padding-top: 45px; }
  .dashboard-grid { gap: 45px; }
  .daily-banner { padding-block: 38px; }
}
@media (max-width: 1200px) {
  :root { --sidebar-width: 210px; }
  .sidebar { padding-inline: 12px; }
  .sidebar-brand { font-size: 17px; gap: 6px; }
  .sidebar-brand img { width: 35px; height: 34px; }
  #main { padding-inline: 27px; }
  .topbar { padding-inline: 27px; }
  .dashboard-grid { gap: 24px; grid-template-columns: minmax(0,1.35fr) minmax(250px,1fr); }
  .daily-banner { padding: 27px; }
  .banner-art { width: 175px; }
  .art-parent { left: 2px; }
  .art-child { right: 16px; }
  .art-caption { left: 15px; }
  .orbit { right: 0; }
  .orbit.second { right: 20px; }
  .event-category { display: none; }
  .page-heading h1 { font-size: 27px; }
  .finance-overview { padding: 22px 18px; gap: 17px; }
  .big-number { font-size: 24px; }
  .document-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .chat-layout { grid-template-columns: minmax(0,1fr) 220px; }
  .chat-aside { padding: 24px 20px; }
  .page-heading { flex-wrap: wrap; }
  .calendar-cell { padding: 6px; min-height: 105px; }
}
@media (max-width: 980px) {
  :root { --sidebar-width: 195px; }
  .sidebar-nav a { gap: 10px; padding-inline: 11px; }
  .sidebar-brand { font-size: 16px; padding-inline: 2px; }
  .sidebar-brand small { font-size: 8px; }
  .global-search span, .global-search kbd { display: none; }
  .topbar-actions { gap: 10px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; align-items: start; }
  .support-module { margin-top: 0; }
  .recent-module { grid-column: 1 / -1; }
  .daily-banner h2 { max-width: 330px; }
  .daily-banner p { max-width: 300px; }
  .banner-art { width: 150px; }
  .finance-summary { padding: 23px 20px; gap: 18px; }
  .finance-summary>div+div { padding-left: 18px; }
  .finance-summary strong { font-size: 23px; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-aside { display: none; }
  .settings-grid, .people-grid, .children-grid { grid-template-columns: 1fr; }
  .auth-story { padding-inline: 9%; }
  .auth-story h1 { font-size: 39px; }
  .auth-story>div>p:not(.eyebrow) { font-size: 12px; }
  .auth-form-side { padding-inline: 10%; }
}
@media (max-width: 760px) {
  body { font-size: 13px; }
  .sidebar { width: 245px; transform: translateX(-100%); transition: transform .2s; padding-top: 27px; }
  .sidebar-brand { font-size: 20px; padding-inline: 10px; }
  .sidebar-brand small { font-size: 9px; }
  .sidebar-nav a { padding: 12px 17px; }
  .sidebar-scrim { display: none; position: fixed; inset: 0; background: #123b4a70; z-index: 29; }
  .menu-open .sidebar { transform: none; }
  .menu-open .sidebar-scrim { display: block; }
  .workspace { margin-left: 0; }
  .mobile-menu { display: inline-grid; margin-left: -7px; }
  .topbar { height: 64px; padding-inline: 20px; gap: 12px; }
  .breadcrumb { gap: 9px; font-size: 10px; }
  .breadcrumb>span:first-of-type, .breadcrumb>.icon { display: none; }
  .topbar-actions { gap: 7px; }
  .topbar-divider { display: none; }
  #main { padding: 27px 20px 20px; }
  .page-heading { margin-bottom: 23px; gap: 20px; }
  .page-heading h1 { font-size: 27px; }
  .page-description { font-size: 11px; line-height: 1.8; }
  .heading-actions { flex-wrap: wrap; }
  .button { font-size: 11px; padding: 10px 14px; }
  .daily-banner { padding: 24px; min-height: 195px; }
  .daily-banner h2 { font-size: 26px; }
  .daily-banner p { font-size: 10px; max-width: 250px; }
  .banner-art { width: 130px; height: 140px; margin-right: -18px; }
  .orbit { width: 140px; height: 140px; }
  .orbit.second { width: 105px; height: 105px; top: 7px; right: 17px; }
  .art-parent { left: -13px; top: 16px; width: 57px; height: 57px; font-size: 17px; }
  .art-child { right: 9px; top: 55px; width: 63px; height: 63px; font-size: 21px; }
  .art-caption { left: -2px; font-size: 8px; bottom: 1px; }
  .dashboard-grid { margin-top: 27px; gap: 5px; }
  .dashboard-secondary { gap: 22px; }
  .message-spotlight { padding: 22px; }
  .message-spotlight blockquote { font-size: 14px; }
  .event-row { gap: 12px; }
  .finance-overview { padding: 24px; }
  .finance-summary { grid-template-columns: 1fr; padding: 23px; gap: 17px; }
  .finance-summary>div { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .finance-summary>div+div { border-left: 0; border-top: 1px solid #d2d9cd; padding: 17px 0 0; }
  .finance-summary strong { text-align: right; margin: 0; font-size: 24px; }
  .finance-summary small { grid-column: 1 / -1; }
  .toolbar { margin-top: 20px; gap: 15px; }
  .toolbar-filters { gap: 9px; }
  .toolbar select { max-width: 160px; font-size: 10px; padding-inline: 8px; }
  .month-switch { gap: 5px; }
  .month-switch h2 { font-size: 15px; min-width: 148px; }
  .calendar { overflow-x: auto; }
  .weekdays, .calendar-grid { min-width: 630px; }
  .calendar-cell { min-height: 106px; }
  .page-footnote { font-size: 9px; align-items: start; }
  .page-footnote .icon { margin-top: 2px; }
  .table-wrap table { min-width: 750px; }
  .table-wrap th, .table-wrap td { padding-inline: 14px; }
  .table-wrap td { padding-block: 16px; }
  .surface { padding-inline: 17px; }
  .document-grid { gap: 15px; }
  .document-card { padding: 20px; }
  .document-card h2 { font-size: 16px; }
  .chat-header { padding: 17px; }
  .chat-update { font-size: 8px !important; }
  .chat-thread { padding-inline: 17px; height: 50dvh; }
  .chat-message { gap: 9px; padding-right: 14px; }
  .chat-message.mine { padding-left: 14px; }
  .chat-message p { font-size: 12px; padding: 12px; }
  .chat-compose { margin-inline: 15px; gap: 9px; }
  .chat-compose .button { padding: 11px; }
  .chat-compose .button .icon { display: none; }
  .chat-meta { font-size: 9px; gap: 7px; }
  .chat-message>.avatar { width: 26px; height: 26px; font-size: 8px; }
  .settings-panel, .child-card, .person-card { padding: 23px; }
  .danger-zone { flex-direction: column; align-items: start; gap: 20px; }
  .workspace-footer { padding-inline: 20px; font-size: 8px; }
  .history-row { gap: 13px; flex-wrap: wrap; }
  .history-row time { margin-left: 49px; width: calc(100% - 49px); margin-top: -7px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { display: none; }
  .auth-form-side { padding: 30px 25px 40px; display: flex; flex-direction: column; min-height: 100dvh; justify-content: center; }
  .auth-small-brand { display: block; align-self: start; font-size: 21px; color: var(--brand); letter-spacing: -1px; margin-bottom: 38px; }
  .auth-form-container { max-width: 420px; margin: auto; }
  .auth-form-container h2 { font-size: 30px; }
  .auth-form-container input, .auth-form-container select, .field input, .field select, .field textarea, .chat-compose textarea { font-size: 16px; }
  dialog { padding: 23px; max-height: calc(100dvh - 24px); }
  .dialog-header h2 { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-footer>span { max-width: 130px; }
  .toast-region { right: 16px; bottom: 16px; }
}
@media (max-width: 460px) {
  .banner-art { display: none; }
  .daily-banner p, .daily-banner h2 { max-width: none; }
  .daily-banner { padding: 24px; }
  .dashboard-secondary { grid-template-columns: 1fr; }
  .support-module { margin-top: 7px; }
  .finance-overview { grid-template-columns: 1fr; gap: 17px; }
  .big-number { font-size: 29px; }
  .agreement-progress { border-top: 1px solid #d7dccf; padding-top: 18px; }
  .document-grid { grid-template-columns: 1fr; }
  .search-field { width: 100%; }
  .search-field input { width: 100%; }
  .task-summary { gap: 15px; font-size: 10px; }
  .task-summary .progress { flex: 1; width: auto; }
  .chat-update { display: none; }
  .row-actions .icon-button { width: 25px; }
  .task-row { gap: 10px; }
  .task-row>div:nth-child(2) { font-size: 11px; }
  .demo-ribbon { font-size: 9px; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.judicial-steps { display:flex; flex-wrap:wrap; gap:24px; padding:22px; background:var(--sage,#e8efeb); border-radius:16px; margin-bottom:18px; }
.judicial-steps span { display:flex; align-items:center; gap:10px; font-size:14px; }
.judicial-steps b { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#123B4A; color:white; font-weight:500; }
.judicial-actions,.review-tools { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.judicial-actions .button { width:100%; }
.job-status,.notice { padding:14px; background:#f4eee0; border-radius:10px; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.rule-card { border:1px solid #dbe1de; border-radius:14px; padding:20px; margin:22px 0; min-width:0; }
.rule-card legend { padding:0 8px; font-weight:500; color:#123B4A; }
.source-document { border:1px solid #dbe1de; padding:14px; border-radius:10px; margin:14px 0; }
.source-document summary { cursor:pointer; font-size:14px; }
.source-document pre { white-space:pre-wrap; overflow-wrap:anywhere; max-height:350px; overflow:auto; font:13px/1.7 inherit; }
.preview-list { max-height:420px; overflow:auto; margin:18px 0; }
.preview-list table { width:100%; }
.preview-list td,.preview-list th { padding:12px; text-align:left; font-size:13px; }
.payment-details { border-top:1px solid #dbe1de; margin-top:18px; padding-top:18px; }
.payment-details p,.payment-row { font-size:13px; line-height:1.7; }
.payment-row { padding:12px 0; border-bottom:1px solid #e5e8e5; }
@media(max-width:600px) { .rule-card { padding:14px; }.review-tools .button { width:100%; }.judicial-steps { gap:14px; }.preview-list table { min-width:500px; } }
.history-record-link { color: #123B4A; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #8baba5; overflow-wrap: anywhere; }
.history-record-link:hover { text-decoration-color: currentColor; }
.history-record-link:focus-visible { outline: 2px solid #123B4A; outline-offset: 4px; border-radius: 2px; }
.history-availability { display: block; margin-top: 6px; color: #6B6F75; font-size: 12px; }
.history-row > div { min-width: 0; }
.detail-list dd { white-space: pre-wrap; overflow-wrap: anywhere; }
