@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root { --ink: #182321; --muted: #71807b; --paper: #f7f8f3; --line: #dce4dd; --coral: #f27668; --blue: #62a8d8; --yellow: #f2c65b; --mint: #dcefe5; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Manrope', sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.content { min-height: 100vh; }
.dashboard-shell { max-width: 1220px; margin: 0 auto; padding: 38px 42px 64px; }
.dashboard-header, .panel-heading, .header-actions, .brand-lockup, .month-controls, .weather-note { display: flex; align-items: center; }
.dashboard-header { justify-content: space-between; margin-bottom: 45px; }
.brand-lockup { gap: 13px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--coral); color: white; font-size: 23px; font-weight: 800; transform: rotate(-5deg); }
.eyebrow { display: block; color: var(--muted); font: 500 10px/1 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, p { margin: 0; }
h1 { font-size: 20px; letter-spacing: -.03em; }
h1 span { color: var(--coral); }
.header-actions { gap: 13px; }
.icon-button, .avatar, .round-button, .add-button { border: 0; background: transparent; }
.icon-button { color: var(--muted); font-size: 28px; line-height: 1; }
.avatar { width: 38px; height: 38px; border-radius: 50%; color: var(--ink); background: var(--mint); font-size: 11px; font-weight: 800; }
.welcome-strip { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 38px; }
.date-label { margin-bottom: 9px; color: var(--coral); font: 500 11px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .07em; }
.welcome-strip h2 { font-size: clamp(28px, 4vw, 43px); line-height: 1.08; letter-spacing: -.055em; }
.muted-copy { color: var(--muted); margin-top: 11px; font-size: 14px; }
.weather-note { gap: 10px; padding: 12px 16px; border-radius: 10px; background: #fff8dc; color: #857139; font-size: 11px; }
.weather-note span:first-child { font-size: 21px; color: #d99b2c; }
.weather-note strong { color: var(--ink); font-size: 17px; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.68); }
.calendar-panel { padding: 26px 28px 19px; }
.panel-heading { justify-content: space-between; margin-bottom: 28px; }
.panel-heading h2 { margin-top: 7px; font-size: 20px; letter-spacing: -.04em; }
.month-controls { gap: 8px; }
.round-button, .today-button { height: 31px; border: 1px solid var(--line); color: var(--muted); background: white; }
.round-button { width: 31px; border-radius: 50%; font-size: 20px; line-height: 20px; }
.today-button { padding: 0 12px; border-radius: 16px; font: 500 10px 'DM Mono', monospace; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.calendar-weekdays { margin-bottom: 7px; color: #a3afaa; font: 500 9px 'DM Mono', monospace; text-align: center; }
.calendar-days { gap: 5px; }
.calendar-day { aspect-ratio: 1.18; min-height: 53px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-size: 13px; }
.calendar-day:hover { background: #edf4ef; }
.calendar-day.selected { background: var(--ink); color: white; }
.calendar-day.muted-day { color: #bdc6c1; }
.event-dots { display: flex; gap: 3px; height: 5px; }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; }
.dot.coral { background: var(--coral); } .dot.blue { background: var(--blue); } .dot.yellow { background: var(--yellow); }
.calendar-legend { display: flex; gap: 17px; margin-top: 19px; color: var(--muted); font-size: 10px; }
.calendar-legend span { display: flex; align-items: center; gap: 6px; }
.agenda-panel { padding: 26px 26px 21px; }
.agenda-heading { margin-bottom: 17px; }
.add-button { width: 31px; height: 31px; border-radius: 50%; background: var(--ink); color: white; font-size: 21px; line-height: 1; }
.agenda-list { display: flex; flex-direction: column; }
.agenda-item { min-height: 71px; display: grid; grid-template-columns: 42px 4px 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid #e8ede8; }
.agenda-item time { color: var(--muted); font: 10px 'DM Mono', monospace; }
.agenda-line { align-self: stretch; height: 34px; border-radius: 4px; }
.agenda-line.coral { background: var(--coral); } .agenda-line.blue { background: var(--blue); } .agenda-line.yellow { background: var(--yellow); }
.agenda-details { display: flex; flex-direction: column; gap: 4px; } .agenda-details strong { font-size: 12px; } .agenda-details span { color: var(--muted); font-size: 10px; }
.person-badge { color: var(--muted); font: 9px 'DM Mono', monospace; }
.outline-button, .text-button { border: 0; background: transparent; color: var(--coral); font-size: 11px; font-weight: 700; }
.outline-button { margin-top: 20px; padding: 0; } .outline-button span { margin-left: 8px; font-size: 17px; vertical-align: -1px; }
.quick-add { display: flex; align-items: center; justify-content: space-between; min-height: 145px; padding: 27px 29px; background: var(--mint); border-color: transparent; }
.quick-copy h2 { margin: 7px 0 5px; font-size: 21px; letter-spacing: -.04em; } .quick-copy p { color: #698177; font-size: 12px; }
.primary-button { border: 0; border-radius: 7px; padding: 12px 15px; background: var(--coral); color: white; font-size: 11px; font-weight: 800; box-shadow: 0 5px 12px rgba(242,118,104,.2); }
.primary-button span { margin-right: 5px; font-size: 16px; vertical-align: -1px; }
.family-panel { padding: 26px 28px 20px; }
.family-panel .panel-heading { margin-bottom: 14px; } .family-list { display: flex; justify-content: space-between; gap: 13px; }
.family-person { display: flex; align-items: center; gap: 8px; min-width: 0; } .family-person > div { display: flex; flex-direction: column; gap: 2px; } .family-person strong { font-size: 11px; } .family-person div span { color: var(--muted); white-space: nowrap; font-size: 9px; }
.person-avatar { width: 32px; height: 32px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: white; font-size: 11px; font-weight: 800; }
.coral-avatar { background: var(--coral); } .blue-avatar { background: var(--blue); } .yellow-avatar { background: var(--yellow); color: var(--ink); }
.status-dot { width: 5px; height: 5px; margin-left: 2px; border-radius: 50%; background: #83c58e; }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: rgba(24,35,33,.42); }
.event-modal { position: relative; width: min(100%, 390px); display: flex; flex-direction: column; gap: 17px; padding: 31px; border-radius: 15px; background: var(--paper); box-shadow: 0 22px 70px rgba(24,35,33,.22); }
.event-modal h2 { font-size: 26px; letter-spacing: -.05em; } .event-modal label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font: 10px 'DM Mono', monospace; text-transform: uppercase; }
.event-modal input { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 11px; color: var(--ink); background: white; font: 13px 'Manrope', sans-serif; }
.modal-close { position: absolute; top: 17px; right: 19px; border: 0; background: transparent; color: var(--muted); font-size: 23px; }
.loading-progress { position: relative; display: block; width: 8rem; height: 8rem; margin: 20vh auto 1rem; }
.loading-progress circle { fill: none; stroke: #e0e0e0; stroke-width: .6rem; transform-origin: 50% 50%; transform: rotate(-90deg); }
.loading-progress circle:last-child { stroke: var(--coral); stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * .8), 500%; transition: stroke-dasharray .05s ease-in-out; }
.loading-progress-text { position: absolute; inset: calc(20vh + 3.25rem) 0 auto .2rem; text-align: center; font-weight: bold; }
.loading-progress-text:after { content: var(--blazor-load-percentage-text, 'Loading'); }
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; z-index: 1000; width: 100%; padding: .7rem 1.25rem; background: #fff3c4; color: var(--ink); box-shadow: 0 -1px 2px rgba(0,0,0,.2); }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
@media (max-width: 760px) {
    .dashboard-shell { padding: 25px 18px 40px; }
    .dashboard-header { margin-bottom: 34px; }
    .welcome-strip { align-items: flex-start; flex-direction: column; gap: 20px; margin-bottom: 28px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .calendar-panel, .agenda-panel, .family-panel { padding: 22px 18px; }
    .calendar-day { min-height: 45px; }
    .quick-add { align-items: flex-start; flex-direction: column; gap: 20px; }
    .family-list { flex-direction: column; }
    .family-person { justify-content: flex-start; }
    .status-dot { margin-left: auto; }
}