:root {
  --ink: #493447;
  --muted: #796574;
  --primary: #a43d70;
  --primary-dark: #843057;
  --pink: #f9e6ee;
  --lavender: #eee7f8;
  --cream: #fff6e9;
  --bg: #fcf8fa;
  --line: #eedfe7;
  --shadow: 0 8px 28px #72395607;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px 'Segoe UI', Arial, sans-serif; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #a878ba; outline-offset: 3px; }
aside { position: fixed; inset: 0 auto 0 0; width: 250px; padding: 32px 22px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; gap: 11px; align-items: center; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.brand span { font-size: 14px; font-weight: 700; letter-spacing: 1.5px; }
.brand b { display: block; color: var(--primary); font-size: 22px; letter-spacing: 5px; margin-top: 2px; }
.tagline { margin: 18px 0 32px; font-size: 12px; }
nav { display: flex; flex-direction: column; gap: 6px; }
nav a { padding: 13px 14px; border-radius: 12px; color: var(--muted); font-weight: 600; transition: background .15s; }
nav a:hover { background: #fcf4f8; text-decoration: none; }
nav a.selected { background: var(--pink); color: var(--primary-dark); }
nav a.selected::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-right: 10px; vertical-align: middle; }
.aside-bottom { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.text-button { border: 0; background: transparent; padding: 12px 0; color: var(--primary); cursor: pointer; }
main { margin-left: 250px; padding: 36px 4%; max-width: 1680px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.eyebrow { color: var(--primary); font-size: 10px; font-weight: 700; letter-spacing: 2px; }
h1 { font-size: 33px; font-weight: 650; letter-spacing: -1px; line-height: 1.2; margin: 12px 0; }
h2 { font-size: 19px; font-weight: 650; margin: 0; }
h3 { font-size: 19px; font-weight: 600; }
p { color: var(--muted); line-height: 1.6; }
.welcome { background: linear-gradient(110deg, #fbe4ed, #f1eafa 65%, #fff4e5); border: 1px solid #f0dce8; padding: 30px; border-radius: 24px; position: relative; overflow: hidden; }
.welcome > * { position: relative; z-index: 1; }
.welcome::after { content: '♡'; position: absolute; right: 23%; top: -38px; font-size: 190px; color: #a43d700c; transform: rotate(-15deg); pointer-events: none; }
.welcome p:last-child { margin-bottom: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--primary); border-radius: 12px; background: var(--primary); color: #fff; padding: 12px 20px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; box-shadow: 0 4px 10px #a43d7014; transition: background .15s, transform .15s; }
.button:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); }
.button.secondary { background: #fff; color: var(--primary); border-color: #e7c8d8; box-shadow: none; }
.button.secondary:hover { background: #fff4f8; }
.stats { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 18px; margin-bottom: 24px; }
.stats article, .panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.stats article:first-child { background: #fff7ec; border-color: #f0e5d5; }
.stats article:nth-child(2) { background: #f3eefb; border-color: #e7dff2; }
.stats article.accent { background: #fbeaf1; border-color: #f1dbe6; }
.stats article span { display: block; color: var(--muted); font-size: 13px; }
.stats strong { display: block; font-size: 32px; font-weight: 650; margin: 15px 0; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stats a { font-size: 13px; font-weight: 600; }
.panel { margin-bottom: 24px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.section-head a { font-size: 13px; font-weight: 600; }
.empty { text-align: center; padding: 34px 15px; }
.empty > span { display: grid; place-items: center; color: var(--primary); font-size: 36px; background: #fff1f6; border-radius: 23px; width: 64px; height: 64px; margin: 0 auto; }
.empty h3 { margin: 18px 0 0; }
.empty p { font-size: 14px; }
.finance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.finance-grid > div { padding: 17px; border-radius: 14px; background: #fcf7fa; border: 1px solid #f3e9ef; }
.finance-grid > div:nth-child(2n) { background: #f9f6fd; border-color: #eee7f5; }
.finance-grid span { display: block; color: var(--muted); font-size: 12px; }
.finance-grid strong { display: block; font-size: 22px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.appointments > a { display: flex; align-items: center; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.appointments span { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; }
.appointments time { margin-left: auto; font-size: 13px; color: var(--muted); }
.avatar { background: var(--pink); color: var(--primary); border-radius: 14px; width: 44px; height: 44px; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.search { display: flex; gap: 12px; align-items: center; margin-bottom: 25px; }
.search input { max-width: 380px; margin: 0; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 15px 12px; background: #fbf5f8; white-space: nowrap; }
td { padding: 18px 12px; border-bottom: 1px solid var(--line); }
tbody tr:hover { background: #fffbfd; }
.actions { white-space: nowrap; }
.actions a + a { margin-left: 16px; }
.danger { color: #a33948; }
.badge { padding: 5px 10px; border-radius: 15px; background: #fff1da; color: #7e5718; font-size: 12px; white-space: nowrap; }
.badge.done { background: #e7f3ec; color: #28624a; }
.muted { font-size: 12px; }
.form-panel { max-width: 860px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
input, textarea, select { display: block; width: 100%; padding: 12px; margin-top: 8px; border: 1px solid #decbd7; border-radius: 11px; font-size: 15px; background: #fff; color: var(--ink); }
input::placeholder { color: #85717d; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); outline: 3px solid #f6dce9; outline-offset: 1px; }
.wide { grid-column: 1 / -1; }
small { display: block; color: #9b452b; font-weight: 400; margin-top: 8px; }
.form-actions { display: flex; gap: 24px; align-items: center; margin-top: 10px; }
.destructive, .destructive:hover { background: #a33948; border-color: #a33948; }
.message { padding: 15px 20px; background: #e7f3ec; color: #28624a; border-radius: 12px; margin-bottom: 22px; }
.message.error { background: #ffe9e7; color: #963f35; }
footer { font-size: 11px; color: var(--muted); text-align: center; padding: 16px; }
.login-main { margin: 0; max-width: none; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(ellipse at 10% 10%, #f9dae9, transparent 55%), radial-gradient(ellipse at 95% 85%, #e8def6, transparent 55%), #fff8f5; }
.login-card { width: 100%; max-width: 440px; padding: 38px; background: #ffffffed; border: 1px solid #fff; border-radius: 28px; box-shadow: 0 20px 70px #72395612; }
.login-card h1 { font-size: 31px; font-weight: 650; letter-spacing: -1px; }
.login-card h1 span { color: var(--primary); }
.login-card > p { font-size: 13px; }
.logo-heart img { width: 74px; height: 74px; margin-bottom: 15px; }
.login-card form { margin-top: 26px; }
.full { width: 100%; }
.linked-notice { padding: 16px; border-radius: 12px; background: var(--lavender); margin-bottom: 24px; line-height: 1.6; font-size: 14px; }
.linked-notice p { margin-bottom: 0; }
.billing-box { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #fff7fa; margin-bottom: 18px; }
.billing-box h2 { margin-bottom: 18px; }
.billing-box p { font-size: 13px; }
.billing-box label:last-child { max-width: 300px; margin-bottom: 0; }
.check-label { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.check-label input { width: 19px; height: 19px; margin: 0; accent-color: var(--primary); }
.agenda-filters { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; padding-bottom: 20px; }
.agenda-filters label { flex: 1; min-width: 140px; margin: 0; }
.finance-link { display: block; margin-top: 8px; font-size: 12px; }
@media (max-width: 1150px) {
  .finance-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .accent { grid-column: 1 / -1; }
  aside { width: 220px; padding: 28px 18px; }
  main { margin-left: 220px; padding: 28px; }
  .welcome { padding: 24px; }
  .welcome .button { padding: 12px 15px; }
}
@media (max-width: 700px) {
  aside { position: static; width: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 16px; }
  .brand img { width: 39px; height: 39px; }
  .brand span { font-size: 12px; letter-spacing: 1px; }
  .brand b { display: inline; font-size: 15px; letter-spacing: 1px; }
  .tagline, .aside-bottom > span { display: none; }
  nav { flex-direction: row; flex-wrap: wrap; margin-top: 16px; gap: 5px; }
  nav a { white-space: nowrap; padding: 10px 11px; font-size: 12px; background: #fcf7fa; border-radius: 10px; }
  nav a.selected::before { display: none; }
  .aside-bottom { position: absolute; right: 18px; top: 17px; padding: 0; border: 0; }
  main { margin-left: 0; padding: 22px 16px; }
  header { align-items: flex-start; flex-direction: column; gap: 16px; }
  h1 { font-size: 28px; }
  .welcome { padding: 24px; border-radius: 20px; }
  .welcome::after { right: -30px; top: -20px; }
  .welcome p:last-child { font-size: 13px; }
  .stats { gap: 12px; }
  .stats article, .panel { padding: 20px; border-radius: 17px; }
  .stats strong { font-size: 27px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .finance-grid { gap: 10px; }
  .finance-grid > div { padding: 14px 10px; }
  .finance-grid strong { font-size: 19px; }
  .section-head { align-items: flex-start; }
  .section-head a { max-width: 125px; text-align: right; }
  .appointments time { font-size: 11px; max-width: 110px; text-align: right; }
  .search { flex-wrap: wrap; }
  .search input { flex: 1; min-width: 150px; }
  .login-main { padding: 25px 16px; }
  .login-card { padding: 28px; }
  .login-main > .message { max-width: 440px; }
}
@media (prefers-reduced-motion: reduce) { .button, nav a { transition: none; } .button:hover { transform: none; } }
