:root {
  color-scheme: light;
  --paper: #f1f7f5;
  --panel: #fefffe;
  --line: #dce9e5;
  --ink: #203733;
  --sub: #506862;
  --accent: #10766b;
  --accent-hover: #095a52;
  --accent-wash: #dff1ed;
  --olive: #365b50;
  --shadow: 0 10px 28px #1d453d09, 0 1px 2px #1d453d09;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font: 16px/1.45 var(--sans);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
:focus-visible { outline: 3px solid #168c7c; outline-offset: 3px; }
a { color: var(--accent); }
h1, h2, h3, p, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.boot { margin: 15vh auto; text-align: center; font: 2.5rem var(--serif); color: var(--accent); }
.icon { display: inline-block; width: 20px; height: 20px; flex: none; vertical-align: middle; }
.shell { min-height: 100svh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { min-width: 0; background: #f8fcfa; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 33px; padding: 36px 24px 24px; height: 100svh; position: sticky; top: 0; overflow: auto; }
.brand { display: flex; align-items: center; gap: 11px; white-space: nowrap; color: var(--ink); font: 1.75rem/1 var(--serif); letter-spacing: -.07em; }
.brand em { font-style: normal; color: var(--accent); }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; color: white; background: var(--accent); box-shadow: 0 3px 6px #10766b30; }
.brand-mark .icon { width: 21px; height: 21px; }
.nav { display: grid; gap: 5px; }
.nav-btn { width: 100%; min-height: 45px; background: transparent; color: var(--sub); border: 0; border-radius: 10px; display: flex; align-items: center; gap: 11px; text-align: left; padding: 0 12px; font-size: .92rem; font-weight: 570; }
.nav-btn:hover { background: #e9f5f1; }
.nav-btn.active { background: var(--accent-wash); color: #095e55; font-weight: 700; }
.nav-count { margin-left: auto; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 8px; color: #125b54; background: #d5ebe5; font-size: .75rem; font-weight: 750; }
.nav-label { color: #55726a; font-size: .75rem; letter-spacing: .12em; font-weight: 750; text-transform: uppercase; padding: 0 10px 10px; }
.members { display: flex; flex-direction: column; gap: 3px; }
.member-filter { border: none; background: transparent; border-radius: 9px; padding: 6px 8px; color: var(--ink); text-align: left; width: 100%; min-height: 40px; display: flex; align-items: center; gap: 10px; font-size: .9rem; min-width: 0; }
.member-filter span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-filter:hover, .member-filter.selected { background: #e5f1ed; }
.avatar, .avatar-stack > span { display: inline-grid; place-items: center; line-height: 1; border-radius: 50%; flex: none; color: var(--member); background: var(--member-bg); font-size: .74rem; font-weight: 750; width: 30px; height: 30px; letter-spacing: .015em; }
.terracotta { --member: #086159; --member-bg: #cfebe4; --member-mark: #27a290; }
.olive { --member: #445534; --member-bg: #e6ead9; --member-mark: #78885b; }
.plum { --member: #654666; --member-bg: #ebddeb; --member-mark: #97709a; }
.ochre { --member: #74501d; --member-bg: #f5e6c7; --member-mark: #ac803d; }
.ocean { --member: #315e6c; --member-bg: #d9ebed; --member-mark: #5c94a2; }
.rose { --member: #8a385c; --member-bg: #f2dee7; --member-mark: #bb6d8f; }
.slate { --member: #415879; --member-bg: #dfe6f0; --member-mark: #6e8aae; }
.mint { --member: #325e4e; --member-bg: #d9ebe2; --member-mark: #579a80; }
.side-bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.side-bottom .nav-btn { font-size: .87rem; }
.main { min-width: 0; }
.topbar { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 36px; border-bottom: 1px solid var(--line); background: #f8fcfa; }
.topbar-name { display: flex; align-items: center; gap: 8px; color: var(--sub); font-size: .88rem; min-width: 0; }
.topbar-name strong { color: var(--ink); text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.mobile-brand, .mobile-nav, .mobile-filters { display: none; }
.main-inner { width: min(100%, 1320px); margin: auto; padding: 28px 36px 44px; }
.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #d3e4df; border-radius: 10px; background: var(--panel); color: var(--ink); padding: 0 13px; text-decoration: none; white-space: nowrap; font-size: .9rem; font-weight: 700; }
.btn:hover { background: #eaf4f0; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: #e7f2ee; }
.btn.danger { color: #8d3629; }
.btn.small { min-height: 37px; }
.icon-btn { width: 42px; padding: 0; }
.btn .icon { width: 18px; height: 18px; }
.profile { min-width: 42px; min-height: 42px; background: transparent; border: none; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.profile > .avatar { width: 36px; height: 36px; }
.hero { min-height: 249px; position: relative; overflow: hidden; background: #dcefe9; border: 1px solid #cee3dd; border-radius: 20px; display: flex; align-items: center; isolation: isolate; }
.hero::before { content: ""; z-index: -1; position: absolute; inset: 0 0 0 42%; background: url('/mesa.jpg') center 48% / cover no-repeat; }
.hero::after { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(90deg, #e1f2ec 0%, #e1f2ec 41%, #e1f2ecee 49%, #e1f2eca1 59%, #e1f2ec12 75%, transparent); }
.hero-content { padding: 27px 35px 30px; width: min(70%, 650px); }
.hero-date { display: flex; align-items: center; gap: 7px; color: #38635a; font-size: .76rem; font-weight: 790; text-transform: uppercase; letter-spacing: .105em; margin-bottom: 12px; }
.hero-date .icon { width: 16px; height: 16px; }
.hero h1 { font: 400 clamp(2.8rem, 4.35vw, 4.85rem)/.97 var(--serif); letter-spacing: -.068em; color: #1c3b34; }
.hero h1 em { color: #157a6e; font-weight: 400; }
.hero p { margin-top: 15px; color: #3b5e55; max-width: 365px; font-size: .94rem; }
.hero-personal { display: grid; grid-template-columns: minmax(0, 43%) minmax(0, 57%); align-items: stretch; background: linear-gradient(110deg, #e2f3ee 0%, #d5ede6 64%, #b9dfd4 100%); }
.hero-personal::before, .hero-personal::after { content: none; }
.hero-personal .hero-content { width: auto; align-self: center; position: relative; z-index: 1; }
.hero-personal h1 { font-size: clamp(2.4rem, 4.02vw, 4.7rem); }
.hero-portrait {
  --edge-fade: linear-gradient(90deg, transparent, #00000012 6%, #0000003b 12%, #00000078 17%, #000000cf 22%, #000 26%);
  display: grid;
  grid-template-columns: 18fr 100fr;
  margin: 0 0 0 -18%;
  min-width: 0;
  align-self: end;
  mask-image: var(--edge-fade);
  mask-image: var(--edge-fade), linear-gradient(180deg, transparent, #000 5.5%);
  mask-composite: intersect;
}
.hero-portrait > img { display: block; width: 100%; height: auto; }
.hero-portrait-edge { position: relative; overflow: hidden; }
.hero-portrait-edge img {
  position: absolute;
  inset: 0 auto 0 100%;
  width: auto;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(-1.75);
}
.cover-settings { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.cover-settings > img { max-width: min(100%, 154px); height: auto; border-radius: 10px; }
.form input[type=file]::file-selector-button { border: 0; border-radius: 6px; padding: 6px 9px; margin-right: 8px; color: #095e55; background: var(--accent-wash); font: inherit; cursor: pointer; }
.demo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0 0; }
.demo > span { display: flex; align-items: center; gap: 7px; font-size: .79rem; color: var(--sub); }
.demo > span .icon { width: 15px; height: 15px; color: #287e6d; }
.text-btn { background: none; border: none; padding: 5px 0; min-height: 36px; font-size: .83rem; color: #09665c; font-weight: 750; text-align: left; }
.text-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.calendar-section { margin-top: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 13px; }
.section-heading h2, .section-heading h1, .agenda-head h2, .pending-title h2 { font: 400 clamp(1.65rem, 2.75vw, 2.25rem)/1.1 var(--serif); letter-spacing: -.052em; }
.section-heading p, .agenda-head p { font-size: .88rem; color: var(--sub); margin-top: 4px; }
.calendar-actions, .period-actions, .segments { display: flex; align-items: center; gap: 6px; }
.segments { gap: 1px; background: #e5f1ed; padding: 3px; border-radius: 10px; }
.segment { min-height: 32px; border: 0; border-radius: 7px; background: transparent; padding: 0 11px; color: #486059; font-size: .8rem; font-weight: 700; }
.segment.active { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px #25564a14; }
.period-actions .btn { min-height: 36px; }
.period-actions .icon-btn { width: 36px; }
.week, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 7px; border: 1px solid var(--line); background: var(--panel); border-radius: 15px; box-shadow: var(--shadow); }
.day { min-width: 0; min-height: 77px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid transparent; background: transparent; color: var(--ink); border-radius: 10px; position: relative; }
.day:hover { background: #edf7f4; }
.day.today { border-color: #c6e4db; }
.day.selected { background: #12756b; border-color: #12756b; color: white; box-shadow: 0 4px 9px #12756b2b; }
.day-name { color: var(--sub); font-size: .79rem; font-weight: 650; }
.day.selected .day-name { color: #effff9; }
.day-number { font: 400 1.48rem/.99 var(--serif); letter-spacing: -.04em; }
.markers { min-height: 8px; display: flex; justify-content: center; align-items: center; gap: 3px; }
.markers i { width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--member-mark); }
.day.selected .markers i { background: #d6fff2; }
.month-heading { text-align: center; padding: 6px 0; color: var(--sub); font-size: .79rem; }
.month-grid .day { min-height: 69px; justify-content: start; padding: 7px 5px 5px; }
.month-grid .day.faded { color: #607871; background: #f0f7f4; }
.month-grid .day.faded.selected { color: #fff; background: #12756b; }
.month-mini { font-size: .72rem; width: 100%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; text-align: center; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(250px, 1fr); gap: 25px; margin-top: 25px; align-items: start; }
.agenda-head, .pending-title { min-height: 37px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.agenda-head h2, .pending-title h2 { font-size: 1.6rem; }
.agenda-head p { font-size: .82rem; }
.event-list { display: grid; gap: 9px; }
.event-card { position: relative; border: 1px solid var(--line); background: var(--panel); border-radius: 13px; min-height: 80px; width: 100%; color: var(--ink); display: flex; text-align: left; align-items: center; gap: 13px; padding: 12px 13px 12px 17px; box-shadow: var(--shadow); }
.event-card::before { content: ""; position: absolute; left: 0; width: 3px; top: 13px; bottom: 13px; border-radius: 0 3px 3px 0; background: var(--member-mark); }
.event-card:hover, .pending-card:hover { border-color: #b7d2c8; box-shadow: 0 5px 15px #1d453d14; }
.event-time { padding-right: 11px; border-right: 1px solid var(--line); flex: none; min-width: 59px; text-align: left; }
.event-time strong { font-size: .9rem; font-weight: 750; display: block; }
.event-time span { color: var(--sub); font-size: .77rem; }
.event-main { min-width: 0; flex: 1; }
.event-main strong, .pending-main strong { font-size: .97rem; font-weight: 750; display: block; overflow-wrap: anywhere; line-height: 1.24; }
.event-meta { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--sub); font-size: .78rem; }
.event-meta .icon { width: 14px; height: 14px; }
.event-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.event-tail { display: flex; flex-direction: column; align-items: end; gap: 6px; flex: none; }
.avatar-stack { display: inline-flex; justify-content: flex-end; padding-left: 5px; }
.avatar-stack > span { width: 25px; height: 25px; margin-left: -5px; border: 2px solid var(--panel); font-size: .61rem; }
.badge { border-radius: 999px; padding: 3px 8px; font-size: .72rem; font-weight: 750; line-height: 1.3; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.badge .icon { width: 12px; height: 12px; }
.badge.confirmed { color: #425436; background: #e9eee2; }
.badge.pending { color: #845019; background: #f6ead3; }
.badge.voting { color: #694566; background: #f0e4ef; }
.badge.declined { color: #8d382c; background: #f5e3dc; }
.pending-panel { border: 1px solid var(--line); border-radius: 15px; background: #f5fbf8; padding: 14px; box-shadow: var(--shadow); }
.pending-title { min-height: 26px; }
.pending-title .text-btn { font-size: .78rem; white-space: nowrap; }
.pending-card { padding: 10px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); display: flex; text-align: left; align-items: center; gap: 9px; width: 100%; color: var(--ink); }
.pending-card + .pending-card { margin-top: 7px; }
.pending-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: #f5ebd7; color: #8c6028; }
.pending-icon.voting { background: #f1e6ef; color: #795278; }
.pending-icon .icon { width: 17px; height: 17px; }
.pending-main { flex: 1; min-width: 0; }
.pending-main strong { font-size: .86rem; }
.pending-main span { display: block; margin-top: 4px; font-size: .75rem; color: var(--sub); }
.pending-card > .icon { color: #52716a; width: 15px; height: 15px; }
.empty { border: 1px dashed #cee1d8; border-radius: 13px; text-align: center; color: var(--sub); padding: 20px; font-size: .9rem; display: grid; justify-items: center; gap: 8px; }
.empty .icon { color: #238371; }
.subpage { max-width: 850px; }
.subpage > .section-heading { margin: 6px 0 20px; }
.group { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; margin-bottom: 12px; padding: 17px; box-shadow: var(--shadow); }
.group h2 { margin-bottom: 6px; font: 1.4rem/1.1 var(--serif); letter-spacing: -.035em; }
.group p { margin-bottom: 10px; color: var(--sub); font-size: .91rem; }
.family-list { display: grid; gap: 7px; }
.family-list li { display: flex; align-items: center; min-height: 43px; gap: 11px; padding: 6px 8px; border-radius: 9px; background: #edf6f2; }
.family-list li span:last-child { margin-left: auto; font-size: .8rem; color: var(--sub); }
.invite-code { display: block; margin: 8px 0; padding: 8px; font-size: .81rem; word-break: break-all; color: var(--ink); background: #e9f5ef; border-radius: 7px; }
.requests-list { display: grid; gap: 9px; }
.requests-list .pending-card + .pending-card { margin: 0; }
.request-group { margin-bottom: 22px; }
.request-group h2 { font: 1.4rem var(--serif); margin-bottom: 8px; }
.filter-clear { margin-left: 10px; }
dialog { padding: 0; border: 1px solid var(--line); border-radius: 20px; width: min(560px, calc(100vw - 28px)); max-height: min(88svh, 950px); background: var(--panel); color: var(--ink); box-shadow: 0 24px 90px #163d3544; }
dialog::backdrop { background: #163c35a3; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 11px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font: 400 1.95rem/1.05 var(--serif); letter-spacing: -.045em; overflow-wrap: anywhere; }
.dialog-head p { color: var(--sub); font-size: .86rem; margin-top: 5px; }
.dialog-head .btn { margin: -2px -5px 0 0; }
.dialog-body { padding: 19px 22px; }
.form { display: grid; gap: 13px; }
.form label, .field-label, .form legend { font-size: .84rem; font-weight: 720; color: var(--ink); }
.form label { display: grid; gap: 5px; }
.form input:not([type=checkbox]), .form select, .form textarea, .comment-form textarea, .poll-close select { width: 100%; min-width: 0; border: 1px solid #cbdfd7; border-radius: 9px; padding: 8px 10px; min-height: 42px; background: #fcfffe; color: var(--ink); font-size: 1rem; }
.form select, .poll-close select { appearance: none; padding-right: 31px; background: #fcfffe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%2368675b' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") right 8px center / 16px no-repeat; }
.form textarea, .comment-form textarea { resize: vertical; }
.form textarea { min-height: 75px; }
.form fieldset { padding: 0; border: 0; min-width: 0; margin: 0; }
.form legend { margin-bottom: 5px; padding: 0; }
.fields { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.form .check-chip { display: inline-flex; align-items: center; justify-content: start; gap: 6px; min-height: 36px; padding: 4px 8px; background: #edf6f2; border: 1px solid var(--line); border-radius: 9px; font-size: .82rem; }
.check-chip input { accent-color: var(--accent); margin: 0; }
.check-chip .avatar { width: 22px; height: 22px; font-size: .65rem; }
.option-row { display: grid; gap: 4px; margin-bottom: 8px; background: #edf6f2; padding: 9px; border-radius: 9px; }
.option-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: .8rem; }
.option-head .btn { min-height: 31px; }
.dialog-actions { display: flex; justify-content: end; align-items: center; gap: 8px; flex-wrap: wrap; }
.form-error { color: #913a2d; border-radius: 9px; background: #faebe6; padding: 9px; font-size: .86rem; }
.info-box { background: #e5f3ee; border-radius: 10px; padding: 10px 12px; font-size: .89rem; color: #3f6158; }
.detail-facts { display: grid; gap: 8px; color: var(--sub); font-size: .92rem; }
.detail-facts > div { display: flex; align-items: center; gap: 9px; }
.detail-facts .icon { width: 17px; height: 17px; color: var(--accent); }
.detail-facts .chip-row { display: flex; align-items: center; }
.person-label { display: inline-flex; align-items: center; gap: 5px; background: var(--member-bg); color: var(--member); border-radius: 999px; padding: 3px 8px; font-size: .8rem; }
.detail-notes { white-space: pre-wrap; overflow-wrap: anywhere; color: #344f48; margin: 12px 0 0; font-size: .94rem; }
.detail-section { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 13px; }
.detail-section h3 { font: 1.35rem var(--serif); margin-bottom: 6px; }
.detail-section p { color: var(--sub); font-size: .86rem; margin-bottom: 8px; }
.detail-actions { margin-top: 13px; justify-content: start; }
.vote-option { width: 100%; min-height: 42px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #f2f8f5; display: flex; align-items: center; justify-content: space-between; gap: 7px; text-align: left; color: var(--ink); padding: 7px 10px; font-size: .87rem; }
.vote-option + .vote-option { margin-top: 6px; }
.vote-option .vote-fill { position: absolute; inset: 0 auto 0 0; width: var(--share); background: #ebdeeb; pointer-events: none; }
.vote-option > span:not(.vote-fill) { position: relative; }
.vote-option.selected { border-color: #876284; }
.vote-option strong { white-space: nowrap; }
.poll-close { display: flex; gap: 6px; align-items: center; margin-top: 10px; }
.poll-close .btn { flex: none; }
.comment-list { display: grid; gap: 7px; margin-bottom: 9px; }
.comment-list li { border-radius: 9px; background: #edf5f1; padding: 8px 10px; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; font-size: .88rem; }
.comment-list strong { display: block; font-size: .78rem; color: var(--sub); margin-bottom: 2px; }
.comment-form { display: flex; align-items: end; gap: 7px; }
.comment-form textarea { min-height: 43px; max-height: 135px; }
.toast { position: fixed; bottom: 23px; left: 50%; transform: translateX(-50%); z-index: 20; max-width: calc(100vw - 24px); background: #24584e; color: white; font-size: .9rem; padding: 10px 14px; border-radius: 11px; box-shadow: var(--shadow); text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 1450px) {
  .topbar { padding-inline: max(36px, calc((100% - 1248px) / 2)); }
}
@media (max-width: 1150px) {
  .shell { grid-template-columns: 200px minmax(0, 1fr); }
  .sidebar { padding-inline: 17px; }
  .topbar, .main-inner { padding-inline: 24px; }
  .dashboard-columns { gap: 15px; }
  .event-card { gap: 9px; }
}
@media (max-width: 920px) {
  .shell { grid-template-columns: 174px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .main-inner, .topbar { padding-inline: 18px; }
  .dashboard-columns { grid-template-columns: 1fr; }
  .hero { min-height: 224px; }
  .hero-content { padding-left: 24px; }
}
@media (max-width: 730px) {
  .shell { display: block; }
  .sidebar, .topbar-name, .desktop-profile { display: none; }
  .mobile-brand { display: flex; }
  .mobile-brand .brand { font-size: 1.58rem; }
  .mobile-brand .brand-mark { width: 33px; height: 33px; border-radius: 10px; }
  .topbar { min-height: 62px; padding: 8px 16px; }
  .topbar-actions { gap: 5px; }
  .topbar-actions .primary { min-height: 39px; }
  .main-inner { padding: 14px 14px calc(80px + env(safe-area-inset-bottom)); }
  .hero { min-height: 201px; border-radius: 16px; }
  .hero::before { left: 35%; background-position: 63% 49%; }
  .hero::after { background: linear-gradient(90deg, #e1f2ec 0%, #e1f2ec 36%, #e1f2ecde 54%, #e1f2ec45 80%, transparent); }
  .hero-content { padding: 19px 15px 20px; width: 78%; }
  .hero h1 { font-size: clamp(2.45rem, 8.7vw, 3.65rem); }
  .hero p { margin-top: 10px; font-size: .85rem; max-width: 260px; }
  .hero-personal h1 { font-size: clamp(2.35rem, 5.5vw, 3.6rem); }
  .hero-date { font-size: .68rem; letter-spacing: .07em; margin-bottom: 10px; }
  .demo { align-items: start; }
  .demo > span { font-size: .75rem; margin-top: 8px; }
  .demo .text-btn { font-size: .76rem; }
  .calendar-section { margin-top: 15px; }
  .section-heading { gap: 8px; margin-bottom: 8px; }
  .section-heading h2 { font-size: 1.55rem; }
  .section-heading p { font-size: .8rem; }
  .calendar-actions { flex-wrap: wrap; }
  .segment { padding: 0 9px; }
  .week, .month-grid { gap: 3px; padding: 5px; border-radius: 12px; }
  .day { min-height: 65px; border-radius: 8px; }
  .day-name { font-size: .76rem; }
  .day-number { font-size: 1.33rem; }
  .month-grid .day { min-height: 58px; }
  .month-mini { display: none; }
  .mobile-filters { display: flex; align-items: center; gap: 5px; padding: 7px 1px 1px; overflow: auto; scrollbar-width: thin; }
  .mobile-filters .member-filter { width: auto; white-space: nowrap; flex: none; padding: 3px 8px; min-height: 40px; gap: 5px; font-size: .78rem; }
  .mobile-filters .avatar { width: 24px; height: 24px; font-size: .64rem; }
  .dashboard-columns { margin-top: 13px; gap: 16px; }
  .agenda-head, .pending-title { margin-bottom: 8px; }
  .agenda-head h2, .pending-title h2 { font-size: 1.46rem; }
  .event-card { min-height: 69px; padding: 10px 8px 10px 12px; gap: 8px; }
  .event-time { min-width: 46px; padding-right: 7px; }
  .event-main strong { font-size: .92rem; }
  .event-tail { gap: 3px; }
  .event-tail .badge { font-size: .68rem; padding-inline: 6px; }
  .event-tail .badge .icon { display: none; }
  .mobile-nav { position: fixed; inset: auto 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; background: #f8fcfa; border-top: 1px solid var(--line); z-index: 5; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); }
  .mobile-nav .nav-btn { flex-direction: column; justify-content: center; gap: 3px; min-height: 48px; padding: 2px 5px; font-size: .73rem; position: relative; }
  .mobile-nav .nav-count { position: absolute; top: 2px; left: calc(50% + 11px); height: 16px; min-width: 16px; font-size: .65rem; padding: 0 2px; }
  .toast { bottom: calc(67px + env(safe-area-inset-bottom)); }
  dialog { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92svh; border-radius: 20px 20px 0 0; }
  .dialog-head { padding: 16px 15px 11px; }
  .dialog-body { padding: 14px 15px calc(16px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .event-card, .pending-card, .day { transition: background-color .16s, border-color .16s, box-shadow .16s; }
}

.auth-segments { justify-self: start; }
.auth-links, .members-actions { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.auth-links { justify-content: space-between; }
.form-copy { color: var(--sub); font-size: .84rem; }
.group .form-copy { margin: 8px 0 0; }
.form .consent { align-items: start; padding: 9px 10px; font-weight: 550; }
.consent input { margin-top: 3px; flex: none; }
.dialog-body > .form-error { margin-bottom: 10px; }
.family-list li strong { overflow-wrap: anywhere; }
.family-list li .btn { flex: none; }
@media (max-width: 410px) {
  .topbar { padding-inline: 12px; }
  .topbar .btn { gap: 4px; padding-inline: 8px; font-size: .8rem; }
  .topbar .brand { gap: 6px; font-size: 1.4rem; }
  .topbar .brand-mark { width: 29px; height: 29px; }
  .family-list li { gap: 6px; }
}

@media (max-width: 620px) {
  .hero-personal { grid-template-columns: 1fr; background: linear-gradient(180deg, #e2f3ee, #cee8df); }
  .hero-personal .hero-content { padding: 18px 16px 4px; }
  .hero-personal h1 { font-size: clamp(2.45rem, 9.6vw, 3.2rem); }
  .hero-personal p { max-width: max-content; margin-top: 7px; }
  .hero-portrait { display: block; margin: 0; mask-image: linear-gradient(180deg, transparent, #000 7%); mask-composite: add; }
  .hero-portrait-edge { display: none; }
}
