/* Renovation journal: forest, ivory and warm brass. */
:root {
  --paper: #f5f5ef;
  --paper-deep: #eceee5;
  --surface-sunk: #f0f2eb;
  --hairline: #e1e6dc;
  --hairline-soft: #edf0e8;
  --hairline-strong: #cbd4c6;
  --ink: #203a31;
  --ink-soft: #41554a;
  --concrete: #647469;
  --concrete-light: #748378;
  --blueprint: #28634e;
  --blueprint-dark: #173f35;
  --blueprint-light: #e5eee3;
  --brass: #997236;
  --brass-light: #f5eddb;
  --track: #e6eadf;
  --r-card: 20px;
  --r-hero: 24px;
  --sh-card: 0 4px 18px #203a3105;
  --sh-raise: 0 4px 12px #173f351a;
}
body { font-size: 14px; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #997236; outline-offset: 3px; }
.sidebar { background: #173f35; color: #fff; border: 0; padding: 28px 16px; width: 252px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; }
.sidebar-brand { gap: 12px; padding: 0 4px 30px; }
.sidebar-logo { width: 44px; height: 44px; background: #ffffff0d; border: 1px solid #ffffff26; border-radius: 14px; }
.sidebar-logo img { width: 100%; height: 100%; border-radius: inherit; }
.sidebar-wordmark { font-size: 15px; color: #faf9ef; }
.sidebar-sub { color: #bdd0bc; font-family: var(--font-body); font-size: 10px; letter-spacing: .12em; }
.sidebar .nav-link { color: #c5d6ca; padding: 12px 14px; margin-bottom: 4px; font-size: 13px; }
.sidebar .nav-link:hover { background: #ffffff0d; color: #fff; }
.sidebar .nav-link.active { background: #e5edda; color: #173f35; }
.sidebar .nav-tag { background: #ffffff12; color: #c5d6ca; font-size: 8px; }
.sidebar .active .nav-tag { color: #173f35; background: #173f3512; }
.sidebar-foot-card { background: #ffffff09; border: 1px solid #ffffff16; color: #c5d6ca; line-height: 1.9; border-radius: 14px; }
.topbar { background: #f5f5eff2; border-color: var(--hairline); }
.topbar-row { min-height: 80px; }
.topbar-meta { border-left: 1px solid var(--hairline-strong); padding-left: 16px; font-size: 10px; }
.content { width: 100%; max-width: 1500px; margin: 0 auto; padding: 28px 32px 48px; }
.dashboard-intro { margin-bottom: 24px; }
.dashboard-intro h2 { font-size: clamp(24px, 2.5vw, 34px); letter-spacing: -.045em; font-weight: 600; }
.dashboard-intro p { margin: 8px 0 0; color: var(--concrete); font-size: 13px; line-height: 1.6; }
.dashboard-top { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; margin-top: 22px; }
.hero-card { position: relative; overflow: hidden; background: #173f35; padding: 28px 30px; box-shadow: none; min-height: 208px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.hero-card::after { content: ""; position: absolute; right: -12px; bottom: -34px; width: 190px; height: 190px; border: 1px solid #d9b87736; border-radius: 42px; transform: rotate(35deg); pointer-events: none; }
.hero-card::before { content: ""; position: absolute; right: 24px; bottom: -65px; width: 190px; height: 190px; border: 1px solid #d9b87736; border-radius: 42px; transform: rotate(35deg); pointer-events: none; }
.hero-label { color: #c0d1bb; font-family: var(--font-body); font-size: 11px; letter-spacing: .14em; }
.hero-value { font-family: var(--font-display); font-size: clamp(38px, 4vw, 54px); margin-top: 16px; position: relative; z-index: 1; }
.hero-chip { background: #ffffff12; color: #e1eadb; border: 1px solid #ffffff16; margin-top: 18px; }
.dashboard-top .quick-actions { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0; padding: 0; background: transparent; box-shadow: none; overflow: visible; }
.quick-action { background: #fff; border: 1px solid var(--hairline); border-radius: 18px; padding: 18px; gap: 12px; font-size: 12px; transition: background .15s, border-color .15s; }
.quick-action:hover { background: #f0f4eb; border-color: #aabda8; }
.quick-action-icon { width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0; }
.section-head { margin: 26px 0 13px; }
.eyebrow { color: var(--ink-soft); font-family: var(--font-body); font-size: 11px; letter-spacing: .1em; }
.eyebrow-meta { font-family: var(--font-body); color: var(--concrete); font-size: 11px; }
.stat-card { padding: 22px 20px; min-width: 0; }
.stat-label { font-family: var(--font-body); font-size: 10px; letter-spacing: .07em; }
.stat-head { margin-bottom: 20px; }
.stat-dot { width: 7px; height: 7px; }
.stat-value { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -.04em; white-space: nowrap; }
.stat-green { background: #eaf1e5; border-color: #d9e5d2; }
.card-header { padding: 18px 20px; }
.card-title { font-size: 14px; }
.card-body { padding: 20px; }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.chart-box { min-width: 0; }
.summary-row { padding: 16px 20px; }
.summary-row.accent { background: #fafbf7; }
.summary-amount { font-size: 16px; }
.account-balance-card { padding: 24px; }
.account-card-name { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.account-card-balance { margin-top: 20px; color: var(--blueprint-dark); font-family: var(--font-display); font-variant-numeric: tabular-nums; font-size: clamp(28px, 3vw, 36px); font-weight: 600; letter-spacing: -.03em; overflow-wrap: anywhere; }
.list-row { min-height: 64px; padding: 10px 18px; }
.list-row-meta { line-height: 1.6; }
.pill { min-height: 38px; border-radius: 10px; background: transparent; }
.pill.active { background: #e0e9d8; border-color: #d2dec7; color: #234b39; }
.seg { background: #e9ede2; }
.avatar-btn { background: #173f35; }
.btn { min-height: 44px; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; }
.btn-icon svg { width: 18px; height: 18px; flex-shrink: 0; }
.worker-group-title { min-width: 0; overflow-wrap: anywhere; }
.worker-paid { padding: 20px 0; }
.worker-paid .account-card-balance { margin-top: 8px; }
.worker-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--hairline-soft); padding-top: 16px; }
.worker-actions .btn { white-space: nowrap; }
.worker-payment-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--hairline); }
.worker-payment-details { min-width: 0; flex: 1; }
.worker-payment-details p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.worker-payment-row > .flex { flex-shrink: 0; }
@media (max-width: 639px) {
  .worker-payment-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .worker-payment-row > .flex { width: 100%; justify-content: flex-end; }
  .transaction-row { flex-wrap: wrap; }
  .transaction-row > .flex { margin-left: auto; }
}
.input, select.input { height: 46px; }
.center-screen { background: #e9eee2; }
.center-card { padding: 40px 30px; border-radius: 28px; box-shadow: 0 20px 80px #173f3510; }
.auth-logo { display: block; width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 20px; }
.mobile-logo { display: none; width: 30px; height: 30px; border-radius: 9px; }
@media (min-width: 640px) and (max-width: 1100px) {
  .sidebar { width: 212px; padding: 24px 10px; }
  .sidebar-wordmark { font-size: 13px; }
  .content { padding: 24px; }
  .dashboard-top { grid-template-columns: 1fr; }
  .dashboard-top .quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .quick-action { flex-direction: column; align-items: flex-start; padding: 14px; }
}
@media (max-width: 639px) {
  .content { padding: 20px 16px 110px; }
  .topbar-row { min-height: 68px; gap: 6px; }
  .topbar-title { align-items: center; gap: 9px; }
  .mobile-logo { display: block; }
  .dashboard-intro { margin-bottom: 20px; }
  .dashboard-intro p { font-size: 12px; }
  .dashboard-top { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
  .hero-card { min-height: 195px; padding: 24px; }
  .dashboard-top .quick-actions { gap: 8px; }
  .quick-action { flex-direction: row; align-items: center; padding: 12px; min-height: 68px; font-size: 11px; gap: 9px; border-radius: 14px; }
  .quick-action-icon { width: 32px; height: 32px; }
  .stat-card { padding: 18px 13px; }
  .stat-label { font-size: 9px; letter-spacing: .03em; }
  .stat-value { font-size: clamp(20px, 6vw, 29px); }
  .stat-head { margin-bottom: 16px; }
  .bottom-nav { border-radius: 20px 20px 0 0; box-shadow: 0 -5px 24px #173f3509; }
  .card-body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
