:root {
    color-scheme: light;
    --blue: #236ca7;
    --blue-dark: #153f67;
    --blue-pale: #eaf3f8;
    --orange: #dc8a2c;
    --orange-dark: #9d5917;
    --orange-pale: #fff1dc;
    --ink: #172d3d;
    --muted: #71808a;
    --line: #e7e8e3;
    --canvas: #f5f6f2;
    --paper: #fff;
    --green: #398063;
    --red: #b6513e;
    --shadow: 0 14px 38px rgba(31, 62, 82, .07);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 88% 8%, rgba(220, 138, 44, .065), transparent 24%), radial-gradient(circle at 8% 30%, rgba(35, 108, 167, .045), transparent 25%), var(--canvas); color: var(--ink); font: 15px/1.55 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, sans-serif; }

/* A shared, compact navigation keeps the product closer to a team space than an admin console. */
.site-header { position: sticky; z-index: 20; top: 12px; display: flex; align-items: center; gap: clamp(16px, 3vw, 46px); width: min(1460px, calc(100% - 48px)); min-height: 76px; margin: 12px auto 0; padding: 10px 18px; border: 1px solid rgba(218, 224, 220, .86); border-radius: 22px; background: rgba(255, 255, 255, .88); box-shadow: 0 12px 34px rgba(28, 61, 82, .09); backdrop-filter: blur(22px) saturate(1.2); }
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 11px; padding: 0 4px; color: var(--ink); text-decoration: none; font: 800 17px/1.1 Manrope, sans-serif; letter-spacing: -.5px; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 15px; background: var(--blue); color: #fff; font: 800 21px Manrope, sans-serif; box-shadow: 0 6px 15px rgba(38, 107, 165, .24); }
.brand small { display: block; margin-top: 5px; color: #9a9d98; font: 700 7px/1 'DM Sans', sans-serif; letter-spacing: 1.15px; }
.brand-logo { width: 190px; height: auto; display: block; }
.site-nav { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.nav-link, .nav-dropdown summary { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; border: 0; border-radius: 13px; background: transparent; color: #687782; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease; }
.nav-link span, .nav-dropdown-icon { color: #9aa8ad; font-size: 16px; }
.nav-link:hover, .nav-dropdown summary:hover { background: #f3f2ed; color: var(--blue-dark); }
.nav-link.active { background: linear-gradient(135deg, #edf5f9, #e3eef5); color: var(--blue-dark); box-shadow: inset 0 0 0 1px rgba(35,108,167,.07); }
.nav-link.active span { color: var(--blue); }
.nav-dropdown { position: relative; }
.nav-dropdown summary { cursor: pointer; list-style: none; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown.active summary { background: var(--orange-pale); color: #80501f; }
.dropdown-chevron { margin-left: 1px; color: #a9a69d; font-size: 14px; }
.nav-menu { position: absolute; top: calc(100% + 12px); left: 0; display: grid; min-width: 225px; gap: 3px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 18px 45px rgba(30, 47, 57, .15); }
.nav-menu a { padding: 10px 12px; border-radius: 10px; color: #65737d; font-size: 12px; font-weight: 600; text-decoration: none; }
.nav-menu a:hover { background: var(--blue-pale); color: var(--blue-dark); }
.sidebar-bottom { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; margin-left: auto; padding-left: 15px; border-left: 1px solid var(--line); }
.profile-dropdown { position: relative; }
.profile-dropdown > summary { display: flex; align-items: center; gap: 9px; padding: 5px 7px; border-radius: 14px; cursor: pointer; list-style: none; transition: background .16s ease; }
.profile-dropdown > summary::-webkit-details-marker { display: none; }
.profile-dropdown > summary:hover, .profile-dropdown[open] > summary { background: #f3f5f2; }
.profile-chevron { color: #99a39e; font-size: 13px; transition: transform .16s ease; }
.profile-dropdown[open] .profile-chevron { transform: rotate(180deg); }
.profile-menu { position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; display: grid; width: 205px; gap: 4px; padding: 8px; border: 1px solid rgba(224, 228, 221, .95); border-radius: 17px; background: var(--paper); box-shadow: 0 18px 46px rgba(30, 47, 57, .16); animation: profile-menu-in .14s ease-out; }
.profile-menu a, .profile-menu button { display: flex; width: 100%; min-height: 41px; align-items: center; gap: 10px; padding: 0 11px; border: 0; border-radius: 11px; background: transparent; color: #55656c; font: 650 12px 'DM Sans', sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
.profile-menu a:hover { background: var(--blue-pale); color: var(--blue-dark); }
.profile-menu button:hover { background: var(--orange-pale); color: var(--orange-dark); }
.profile-menu a span, .profile-menu button span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 8px; background: #f1f3ef; color: #7d8c8c; font-size: 13px; }
.profile-menu form { margin: 0; padding-top: 4px; border-top: 1px solid #eeefeb; }
.profile-menu button:hover span { background: #fff7eb; color: var(--orange-dark); }
@keyframes profile-menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.avatar { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border: 2px solid #fff; border-radius: 50%; background: #e5eef2; color: var(--blue-dark); font-size: 11px; font-weight: 800; box-shadow: 0 0 0 1px #dce5e7; }
.avatar-tone-0 { background: #dcecf4; color: #245c7d; box-shadow: 0 0 0 1px #cbdfe9; }
.avatar-tone-1 { background: #f8e5cb; color: #8d531a; box-shadow: 0 0 0 1px #efd9b9; }
.avatar-tone-2 { background: #dcece3; color: #397256; box-shadow: 0 0 0 1px #cce0d4; }
.avatar-tone-3 { background: #e8e1f1; color: #695286; box-shadow: 0 0 0 1px #d9cfe8; }
.avatar-tone-4 { background: #e3e7e8; color: #536870; box-shadow: 0 0 0 1px #d2dadd; }
.avatar-tone-5 { background: #f3dfdc; color: #99554b; box-shadow: 0 0 0 1px #eacbc6; }
.user-meta { display: grid; gap: 1px; min-width: 0; }
.user-meta b { max-width: 130px; overflow: hidden; color: #354854; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { color: #a0a29b; font-size: 9px; }

.main-content { width: min(1320px, calc(100% - 80px)); min-height: calc(100vh - 100px); margin: 0 auto; padding: 42px 0 72px; }
.main-auth { display: grid; width: 100%; min-height: 100vh; margin: 0; padding: 30px 20px; place-items: center; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin: 4px 0 28px; }
.topbar h1 { margin: 9px 0 6px; color: #153247; font: 800 clamp(30px, 3.4vw, 46px)/1.08 Manrope, sans-serif; letter-spacing: -1.9px; }
.topbar .muted { max-width: 680px; color: #7d8587; font-size: 13px; }
.crumb, .eyebrow { color: #9b9e97; font-size: 9px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; }
.crumb b { color: var(--blue); }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 12px; font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--orange-dark); }
.muted { margin: 0; color: var(--muted); }
.top-actions, .header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.today { color: #89918f; font-size: 11px; font-weight: 600; }

/* Tactile controls and quiet paper surfaces. */
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 13px; cursor: pointer; font: 700 11px/1.2 'DM Sans', sans-serif; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .nav-link:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, .profile-menu a:focus-visible, .profile-menu button:focus-visible { outline: 3px solid rgba(38, 107, 165, .23); outline-offset: 2px; }
.button-primary { background: linear-gradient(135deg, #2b79b2, var(--blue)); color: white; box-shadow: 0 9px 20px rgba(35, 108, 167, .22); }
.button-primary:hover { background: linear-gradient(135deg, #1d668f, var(--blue-dark)); box-shadow: 0 12px 24px rgba(35, 108, 167, .28); }
.button-outline { border-color: #e4e6e1; background: rgba(255, 254, 250, .8); color: #536a78; }
.button-outline:hover { border-color: #bfd2df; background: #f5f9fb; color: var(--blue-dark); }
.button-danger { background: #fff0e9; color: var(--red); }
.full { width: 100%; margin-top: 8px; }
.card, .stat-card { border: 1px solid rgba(223, 227, 221, .92); border-radius: var(--radius); background: rgba(255, 255, 255, .94); box-shadow: var(--shadow); }
.planning-card, .next-card { padding: 25px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; color: var(--ink); font: 750 18px/1.25 Manrope, sans-serif; letter-spacing: -.45px; }
.text-link { color: var(--blue); font-size: 11px; font-weight: 800; text-decoration: none; }
.text-link:hover { color: var(--orange-dark); }
.text-link span { margin-left: 4px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .85fr); gap: 18px; align-items: start; }
.admin-grid { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr); }

/* Dashboard as an editorial team agenda, not a row of KPI tiles. */
.home-topbar { align-items: center; margin-bottom: 22px; }
.home-topbar h1 { font-size: clamp(31px, 3.5vw, 45px); }
.home-topbar .wave { margin-left: 10px; color: var(--orange); font-size: .55em; vertical-align: 8px; }
.home-topbar .top-actions { flex-wrap: wrap; }
.welcome-banner { position: relative; display: flex; min-height: 265px; align-items: center; overflow: hidden; margin-bottom: 20px; padding: 37px 46px; border: 1px solid rgba(255,255,255,.08); border-radius: 27px; background: linear-gradient(135deg, #153f67 0%, #20577c 68%, #24688f 100%); color: #fff; box-shadow: 0 24px 54px rgba(21, 63, 103, .20); }
.welcome-banner::after { position: absolute; right: 38%; bottom: -96px; width: 265px; height: 265px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; content: ''; }
.welcome-copy { position: relative; z-index: 2; max-width: 540px; }
.banner-kicker { display: inline-block; margin-bottom: 13px; color: #c4dbe8; font-size: 9px; font-weight: 800; letter-spacing: 2px; }
.welcome-copy h2 { margin: 0 0 11px; font: 800 clamp(31px, 3.5vw, 43px)/1.1 Manrope, sans-serif; letter-spacing: -1.5px; }
.welcome-copy p { margin: 0 0 19px; color: #d7e4ea; font-size: 13px; }
.banner-link { color: #ffd092; font-size: 11px; font-weight: 800; text-decoration: none; }
.banner-link span { margin-left: 7px; }
.service-verse { max-width: 500px; margin: 10px 0 18px; padding-left: 12px; border-left: 2px solid rgba(255, 208, 146, .75); color: #d7e4ea; font-size: 11px; line-height: 1.55; }
.service-verse cite { display: block; margin-top: 3px; color: #ffd092; font-size: 9px; font-style: normal; font-weight: 800; }
.auth-verse { margin: 14px 0; padding: 12px 14px; border: 1px solid #eee4d4; border-left-width: 3px; border-radius: 12px; background: #fffaf2; color: #6f6456; }
.auth-verse cite { color: #a57b4d; }
.service-verses { display: grid; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #ecdcbf; }
.service-verses p { margin: 0; color: #725738; font-size: 10px; line-height: 1.45; }
.service-verses cite { display: block; margin-top: 2px; color: #a57b4d; font-size: 9px; font-style: normal; font-weight: 800; }
.banner-art { position: absolute; inset: 0 0 0 54%; overflow: hidden; }
.art-sun { position: absolute; top: 39px; right: 24%; width: 183px; height: 183px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 19px rgba(255,255,255,.045), 0 0 70px rgba(229,137,35,.18); }
.art-orbit { position: absolute; top: -15px; right: 9%; width: 290px; height: 290px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.orbit-two { top: -52px; right: -2%; width: 365px; height: 365px; border-color: rgba(255,255,255,.12); }
.art-dot { position: absolute; top: 24px; right: 23%; width: 10px; height: 10px; border-radius: 50%; background: #f5c27e; }
.dot-two { top: 195px; right: 60%; width: 7px; height: 7px; background: #abd4e9; }
.dot-three { top: 204px; right: 13%; width: 14px; height: 14px; }
.art-caption { position: absolute; right: 6%; bottom: 21px; color: rgba(255,255,255,.65); font-size: 8px; font-weight: 700; letter-spacing: 2px; line-height: 1.6; }
.sunday-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-bottom: 19px; }
.sunday-panel { min-width: 0; padding: 23px 25px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.next-panel { border-top: 3px solid var(--orange); padding-top: 21px; }
.sunday-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sunday-panel-head .eyebrow { margin-bottom: 5px; }
.sunday-panel h2 { margin: 0; font: 750 17px/1.25 Manrope, sans-serif; letter-spacing: -.45px; }
.sunday-symbol { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 14px; background: var(--blue-pale); color: var(--blue); font-size: 17px; }
.orange-symbol { background: var(--orange-pale); color: var(--orange-dark); }
.sunday-date-line { display: flex; align-items: center; gap: 14px; margin: 15px 0 12px; }
.sunday-day { color: var(--blue); font: 800 53px/.9 Manrope, sans-serif; letter-spacing: -3px; }
.next-panel .sunday-day { color: #c87516; }
.sunday-date-line div { display: grid; gap: 3px; }
.sunday-date-line b { font: 750 15px Manrope, sans-serif; }
.sunday-date-line small { color: #9b9d96; font-size: 10px; }
.personal-sunday { display: flex; flex-direction: column; gap: 3px; margin: 10px 0 15px; padding: 11px 13px; border: 1px solid rgba(38,107,165,.13); border-radius: 15px; background: #eef5f8; color: var(--blue-dark); }
.personal-sunday b { font-size: 11px; }
.personal-sunday span { color: #587381; font-size: 10px; }
.personal-sunday-free { border-color: #f0dfc8; background: #fff7eb; color: #86551f; }
.personal-sunday-free span { color: #8d7558; }
.mini-planning { border-top: 1px solid #eeece6; padding-top: 12px; }
.mini-planning-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.mini-planning-title small { overflow: hidden; color: #9b9d96; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.mini-planning-title > a { color: var(--blue); font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.mini-assignment { display: grid; grid-template-columns: minmax(100px, .85fr) minmax(0, 1.15fr); align-items: center; gap: 10px; padding: 8px 1px; border-bottom: 1px solid #f1efe9; }
.mini-service { display: flex; min-width: 0; align-items: center; gap: 8px; font-size: 10px; font-weight: 800; }
.mini-service i, .service-name i, .service-heading > i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }
.mini-people { display: flex; min-width: 0; align-items: center; gap: 5px; overflow: hidden; color: #7d898c; font-size: 10px; white-space: nowrap; }
.mini-person { display: inline-flex; min-width: 0; align-items: center; gap: 4px; }
.mini-person > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.avatar-mini { width: 23px; height: 23px; border-width: 1px; font-size: 7px; }
.avatar-extra { width: 23px; height: 23px; border: 1px solid #fff; background: #f0eee7; color: #7b817e; box-shadow: none; font-size: 7px; }
.all-assignments { display: block; margin-top: 11px; color: var(--blue); font-size: 10px; font-weight: 800; text-decoration: none; }
.all-assignments span { float: right; }
.sunday-empty { display: flex; min-height: 118px; flex-direction: column; align-items: flex-start; justify-content: center; padding-top: 13px; border-top: 1px solid #eeece6; }
.sunday-empty > span { margin-bottom: 5px; color: var(--orange); font-size: 19px; }
.sunday-empty p { margin: 0 0 10px; color: #7f8988; font-size: 11px; line-height: 1.5; }
.sunday-empty .button { min-height: 36px; padding: 0 12px; font-size: 10px; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(240px, .7fr); gap: 17px; }
.recent-card { padding: 22px 24px; }
.recent-card .section-heading { margin-bottom: 12px; }
.recent-list { border-top: 1px solid #eeece6; }
.recent-row { display: flex; align-items: center; gap: 12px; padding: 13px 1px; border-bottom: 1px solid #f1efe9; color: var(--ink); text-decoration: none; }
.recent-row:hover .plan-info b { color: var(--blue); }
.recent-mark { width: 26px; color: #c4a274; font: 750 11px Manrope, sans-serif; }
.recent-row .plan-info { flex: 1; }
.recent-row .plan-info b { font-size: 11px; }
.recent-row .plan-info small { font-size: 9px; }
.team-note { position: relative; overflow: hidden; padding: 24px; border: 1px solid #efd9b9; border-radius: 22px; background: linear-gradient(145deg, #fff8ec, #fff1d8); }
.note-mark { display: grid; width: 36px; height: 36px; place-items: center; margin-bottom: 18px; border-radius: 14px; background: #fffefa; color: var(--orange); font-size: 18px; }
.team-note .eyebrow { margin-bottom: 14px; color: #a57b4d; }
.note-stats { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.note-stats div { display: grid; gap: 2px; }
.note-stats b { color: #6b4d2e; font: 750 22px Manrope, sans-serif; }
.note-stats span { color: #9c8060; font-size: 9px; }
.note-stats > i { height: 28px; border-left: 1px solid #e8d2b7; }
.note-footer { margin: 19px 0 0; padding-top: 14px; border-top: 1px solid #ecd8bf; color: #8b745a; font-size: 10px; line-height: 1.5; }

/* Planning pages feel like an agenda, with dates as the main anchors. */
.planning-index-header { margin-bottom: 23px; }
.planning-filter-card { margin-bottom: 23px; padding: 17px 20px; border-radius: 18px; }
.planning-date-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.planning-date-filter > div:not(.planning-filter-actions) { display: grid; min-width: 170px; gap: 6px; }
.planning-date-filter label, .planning-filter-card label { color: #738087; font-size: 10px; font-weight: 700; }
.planning-date-filter input { min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); }
.planning-filter-actions { display: flex; gap: 8px; }
.team-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.team-membership { display: grid; gap: 16px; margin-bottom: 23px; }
.team-membership .membership-share-card { margin-bottom: 0; }
.team-list-heading { align-items: center; }
.team-list-heading nav { margin-left: auto; justify-content: flex-end; }
.team-search { width: min(420px, 100%); }
.team-search label { display: block; margin: 0 0 6px; color: #738087; font-size: 10px; font-weight: 800; }
.team-search-row { display: flex; gap: 8px; }
.team-search-row .form-input { min-width: 0; margin: 0; }
.team-search-row .button { min-height: 43px; white-space: nowrap; }
.team-filter-buttons, .planning-filter-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.team-filter, .planning-filter { display: inline-flex; min-height: 30px; align-items: center; justify-content: center; padding: 0 11px; border: 1px solid #e5e8e3; border-radius: 999px; background: rgba(255,255,255,.72); color: #738087; font-size: 9px; font-weight: 800; text-decoration: none; }
.team-filter:hover, .planning-filter:hover { border-color: #c8d7df; background: #f4f8fa; color: var(--blue-dark); }
.team-filter.active, .planning-filter.active { border-color: #bfd3df; background: var(--blue-pale); color: var(--blue-dark); box-shadow: inset 0 0 0 1px rgba(35,108,167,.04); }
.team-filter.reset, .planning-filter.reset { background: #f7f7f3; color: #8a918c; }
.planning-filter-card { margin-bottom: 23px; padding: 14px 16px; }
.planning-date-range { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.planning-date-range label { font-size: 9px; font-weight: 800; }
.planning-date-range input { min-height: 38px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.planning-date-range .button { min-height: 38px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; }
.pagination-link { display: inline-flex; min-width: 36px; min-height: 36px; align-items: center; justify-content: center; padding: 0 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); color: #657782; font-size: 10px; font-weight: 800; text-decoration: none; }
.pagination-link:hover, .pagination-link.active { border-color: #bfd2df; background: var(--blue-pale); color: var(--blue-dark); }
.planning-index-summary { display: flex; align-items: center; justify-content: space-between; margin: 0 3px 11px; color: #969b95; font-size: 10px; }
.planning-index-summary .eyebrow { margin: 0; }
.planning-index-list { display: grid; gap: 10px; }
.planning-index-card { display: flex; align-items: center; gap: 15px; padding: 18px 20px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.planning-index-card:hover { transform: translateY(-3px); border-color: #cfdae0; box-shadow: 0 18px 42px rgba(31,62,82,.11); }
.planning-index-mark { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 15px; background: var(--blue-pale); color: var(--blue); font-size: 17px; }
.planning-index-card:nth-of-type(3n) .planning-index-mark { background: var(--orange-pale); color: var(--orange-dark); }
.planning-index-info { flex: 1; min-width: 0; }
.planning-index-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.planning-index-title h2 { margin: 0; font: 750 14px Manrope, sans-serif; }
.planning-index-info p { margin: 6px 0 3px; color: #5f7079; font-size: 10px; }
.planning-index-info > small { color: #9a9e97; font-size: 9px; }
.planning-owner { color: #526671 !important; font-size: 12px !important; line-height: 1.5; overflow-wrap: anywhere; }
.planning-owner strong { color: #183f5a; font-weight: 800; }
.topbar .planning-owner { margin-top: 9px; font-size: 13px !important; }
.planning-index-info > small.planning-owner { font-size: 12px !important; }
.planning-index-card > .button { white-space: nowrap; }
.planning-index-empty, .recent-empty, .empty-state { padding: 45px 22px; text-align: center; }
.planning-index-empty > span, .recent-empty > span { display: block; margin-bottom: 10px; color: var(--orange); font-size: 24px; }
.planning-index-empty h2, .empty-state h3 { margin: 0 0 8px; font: 750 17px Manrope, sans-serif; }
.planning-index-empty p, .empty-state p { margin: 0 0 17px; color: var(--muted); font-size: 11px; }
.day-card { margin-bottom: 16px; padding: 23px 25px; }
.day-card .section-heading { margin-bottom: 14px; }
.day-card .section-heading h2 { font-size: 20px; }
.assignment-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.service-name { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 800; }
.manual-tag { display: inline-block; margin-left: 4px; color: var(--orange-dark); font-size: 9px; font-weight: 700; }
.people { display: flex; flex-wrap: wrap; gap: 7px; }
.person-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border: 1px solid #d9e8ef; border-radius: 999px; background: linear-gradient(135deg, #f5fafc, #edf5f8); color: #315d74; font-size: 10px; font-weight: 700; }
.avatar-person { width: 26px; height: 26px; border-width: 1px; font-size: 8px; }

/* Editing controls remain clear and friendly on both wide and narrow screens. */
.review-notice { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 14px 17px; border: 1px solid #efd8b9; border-radius: 16px; background: #fff6e9; color: #765022; }
.review-notice > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #fff; color: var(--orange); font-size: 17px; }
.review-notice p { margin: 0; font-size: 11px; line-height: 1.55; }
.edit-day { margin-bottom: 15px; padding: 23px 25px; }
.edit-hint { color: #969e9d; font-size: 10px; }
.edit-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.edit-service { padding: 14px; border: 1px solid #ece9e2; border-radius: 16px; background: #fffefa; }
.service-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.service-heading > div { flex: 1; min-width: 0; }
.service-heading h3 { margin: 0 0 3px; font: 750 12px Manrope, sans-serif; }
.service-heading small { color: #929a98; font-size: 9px; }
.edit-people { display: flex; flex-wrap: wrap; gap: 6px; }
.edit-person { display: flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border: 1px solid #e8e9e4; border-radius: 999px; background: white; color: #50636d; cursor: pointer; font-size: 10px; }
.edit-person:has(input:checked) { border-color: #b6d0df; background: #eff6f9; color: var(--blue-dark); }
.edit-person .avatar { width: 27px; height: 27px; font-size: 8px; }
.edit-person input { accent-color: var(--blue); }
.edit-person small { display: block; color: #bf7741; font-size: 8px; }
.edit-person.is-unavailable { opacity: .48; cursor: not-allowed; }
.maximum-reached, .incompatible-reached { width: 100%; padding: 5px 2px; color: #b8742c; font-size: 9px; font-weight: 700; }
.incompatible-reached { color: var(--red); }
.edit-card { max-width: 1000px; padding: 27px; }
.edit-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.edit-card label, .planning-card label, .login-card label { display: block; margin: 14px 0 7px; color: #5d6d75; font-size: 10px; font-weight: 800; }
.form-input, .edit-card textarea, .edit-card select { display: block; width: 100%; min-height: 43px; margin: 0 0 9px; padding: 10px 12px; border: 1px solid #e1e4df; border-radius: 12px; outline: none; background: #fff; color: var(--ink); font: 12px 'DM Sans', sans-serif; transition: border-color .18s ease, box-shadow .18s ease; }
.form-input:focus, .edit-card textarea:focus, .edit-card select:focus { border-color: #8fb4cb; box-shadow: 0 0 0 4px rgba(38, 107, 165, .09); }
.form-input::placeholder { color: #aab0ad; }
.check-list { max-height: 180px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #faf9f5; }
.check-list label { display: block !important; margin: 7px 0 !important; color: #607078; font-weight: 500 !important; }
.check-list input { accent-color: var(--blue); }
.check-list-tall { max-height: 310px; }
.number-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.number-row label { font-size: 9px !important; }
.rule-note { margin: 7px 0 10px; color: #858e8b; font-size: 10px; line-height: 1.55; }
.role-option { margin-top: 15px !important; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; }
.sticky-actions { position: sticky; z-index: 5; bottom: 12px; padding: 12px; border: 1px solid rgba(232,229,222,.9); border-radius: 17px; background: rgba(255,254,250,.94); box-shadow: 0 10px 30px rgba(32,49,59,.09); backdrop-filter: blur(12px); }
.color-input { height: 45px; padding: 5px; }

/* Team and service collections. */
.plan-list { border-top: 1px solid #efede7; }
.plan-row { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid #f0eee8; color: var(--ink); text-decoration: none; }
.plan-info { display: grid; flex: 1; gap: 4px; min-width: 0; }
.plan-info b { font-size: 12px; }
.plan-info small { color: #929a98; font-size: 10px; }
.plan-row form { display: flex; margin: 0; }
.plan-row .button { min-height: 36px; padding: 0 11px; font-size: 9px; }
.stat-icon { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 13px; font-size: 15px; }
.stat-icon.blue { background: var(--blue-pale); color: var(--blue); }
.stat-icon.orange { background: var(--orange-pale); color: var(--orange-dark); }
.stat-icon.pale { background: #eef3f1; color: #63869f; }
.stat-icon.green { background: #eaf5ee; color: var(--green); }
.status { display: inline-flex; min-height: 25px; align-items: center; padding: 0 10px; border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.status-review { background: #fff2dd; color: #a66c20; }
.status-validated { background: #e9f4ed; color: #397c5c; }
.status-draft { background: #f0f0eb; color: #737d7b; }
.status-archived { background: #eff0f6; color: #68739a; }
.admin-grid form > label { display: block; margin: 13px 0 7px; }
.admin-grid .full { margin-top: 16px; }
.logout { color: #91a0ad; text-decoration: none; }
.header-actions form { display: flex; margin: 0; }
.header-actions form .button { white-space: nowrap; }
.membership-share-card { margin-bottom: 21px; padding: 22px 25px; }
.membership-share-card h2 { margin: 0 0 7px; font: 750 18px Manrope, sans-serif; }
.membership-share-card .muted { margin-bottom: 16px; font-size: 11px; }
.share-link-row { display: flex; gap: 9px; }
.share-link-row input { flex: 1; min-width: 0; }
.share-feedback { display: block; min-height: 14px; margin-top: 5px; color: var(--green); font-size: 9px; }
.membership-section-title { display: flex; align-items: flex-end; justify-content: space-between; margin: 0 2px 11px; }
.membership-section-title .eyebrow { margin-bottom: 5px; }
.membership-section-title h2 { margin: 0; font: 750 18px Manrope, sans-serif; }
.membership-section-title > span { color: var(--muted); font-size: 10px; }
.membership-requests-list { display: grid; gap: 10px; }
.membership-request-card { display: flex; align-items: center; gap: 14px; padding: 17px 19px; }
.membership-request-mark { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 15px; background: var(--orange-pale); color: var(--orange-dark); font-size: 17px; font-weight: 800; }
.membership-request-mark.approved { background: #e9f4ed; color: var(--green); }
.membership-request-mark.rejected { background: #f9ece9; color: var(--red); }
.membership-request-info { flex: 1; min-width: 0; }
.membership-request-title { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.membership-request-title h3 { margin: 0; font: 750 13px Manrope, sans-serif; }
.membership-request-info p { margin: 5px 0 3px; color: #617381; font-size: 10px; }
.membership-request-info > small { color: #97a2aa; font-size: 9px; }
.membership-request-actions { display: flex; gap: 7px; }
.membership-request-actions form { display: flex; margin: 0; }
.membership-request-actions .button { min-height: 36px; padding: 0 11px; font-size: 9px; }
.membership-created-account { color: var(--muted); font-size: 10px; white-space: nowrap; }

/* Sunday-specific absence input rows. */
.account-absence-grid { align-items: start; }
.absence-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.absence-actions form { margin: 0; }
.absence-actions .button { min-height: 35px; padding: 0 10px; font-size: 9px; }
.sunday-input-list { display: grid; gap: 8px; }
.sunday-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; padding: 10px; border: 1px solid #e9e7e0; border-radius: 15px; background: #faf9f5; }
.sunday-input-row > div { min-width: 0; }
.sunday-input-row label { margin-top: 0; }
.sunday-input-row .form-input { margin-bottom: 0; }
.remove-sunday { min-height: 41px; padding: 0 12px; color: #8b6552; }
.add-sunday { margin-top: 10px; }

/* Prominent, actionable account safety alert. */
.inactive-planning-alert { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 18px; margin: 0 0 23px; padding: 21px; border: 1px solid #f0c99d; border-left: 5px solid var(--orange); border-radius: 21px; background: #fff6eb; box-shadow: 0 14px 34px rgba(159, 73, 16, .1); color: #68310e; }
.inactive-alert-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 16px; background: var(--orange); color: #fff; font: 800 24px/1 Manrope, sans-serif; box-shadow: 0 0 0 6px rgba(229,137,35,.12); }
.inactive-alert-copy { min-width: 0; }
.inactive-alert-copy .eyebrow { margin: 0 0 4px; color: #ad4b12; font-weight: 800; }
.inactive-alert-copy h2 { margin: 0 0 5px; color: #662d0c; font: 800 clamp(19px, 2vw, 25px)/1.2 Manrope, sans-serif; letter-spacing: -.6px; }
.inactive-alert-copy > p:not(.eyebrow) { margin: 0 0 13px; color: #7e451f; font-size: 11px; }
.inactive-alert-list { display: grid; gap: 7px; }
.inactive-alert-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border: 1px solid rgba(173,75,18,.15); border-radius: 14px; background: rgba(255,255,255,.84); }
.inactive-alert-row > div { display: grid; gap: 3px; }
.inactive-alert-row b { font-size: 11px; }
.inactive-alert-row small { color: #76573e; font-size: 9px; }
.inactive-alert-row .button { flex: 0 0 auto; }

/* Sign in and personal settings. */
.login-wrap { position: relative; display: flex; width: min(470px, 100%); flex-direction: column; align-items: stretch; justify-content: center; padding: 24px 0; }
.login-wrap::before { position: fixed; z-index: -1; top: 12%; left: 50%; width: 520px; height: 520px; transform: translateX(-50%); border: 1px solid rgba(38,107,165,.08); border-radius: 50%; box-shadow: 0 0 0 55px rgba(229,137,35,.025), 0 0 0 110px rgba(38,107,165,.025); content: ''; }
.login-brand { display: flex; align-items: center; gap: 11px; margin: 0 auto 20px; color: var(--ink); font: 800 23px Manrope, sans-serif; }
.login-logo { width: 280px; max-width: 100%; height: auto; display: block; }
.login-card { width: 100%; padding: 34px; border: 1px solid rgba(218,224,220,.9); border-radius: 25px; box-shadow: 0 24px 70px rgba(28,61,82,.12); }
.login-card h1 { margin: 8px 0; font-size: 27px; letter-spacing: -1px; }
.login-card > .muted { margin-bottom: 24px; font-size: 12px; }
.login-card input:not([type=hidden]) { display: block; width: 100%; min-height: 46px; margin: 0 0 17px; padding: 11px 13px; border: 1px solid #e1e4df; border-radius: 12px; outline: none; background: white; font: 13px 'DM Sans', sans-serif; }
.login-card input:focus { border-color: #8fb4cb; box-shadow: 0 0 0 4px rgba(38,107,165,.09); }
.login-card .eyebrow { color: var(--blue); }
.forgot-link { display: block; margin-top: 17px; color: var(--blue); font-size: 11px; font-weight: 700; text-align: center; text-decoration: none; }
.forgot-link:hover { color: var(--orange-dark); }
.login-foot { margin: 18px 0 0; color: #9b9d96; font-size: 10px; text-align: center; }
.password-hint { display: block; margin: -8px 0 12px; color: #909ca4; font-size: 9px; }
.account-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.account-settings-grid .edit-card { max-width: none; }
.account-section-title { margin: 0 0 12px; font: 750 18px Manrope, sans-serif; }
.profile-form .muted, .password-change-form .muted { margin-bottom: 14px; font-size: 11px; }

/* Feedback, dialogs and empty states. */
.flash { margin: 0 0 15px; padding: 12px 15px; border: 1px solid transparent; border-radius: 13px; font-size: 11px; }
.flash-success { border-color: #d8ebdf; background: #edf7f0; color: #287351; }
.flash-error { border-color: #f0d7cf; background: #fff1ed; color: #ad4f37; }
.dialog { width: min(470px, calc(100% - 30px)); padding: 31px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 28px 90px rgba(16, 47, 70, .28); color: var(--ink); }
.dialog::backdrop { background: rgba(23, 42, 56, .48); backdrop-filter: blur(5px); }
.dialog h2 { margin: 0 0 8px; font: 800 22px Manrope, sans-serif; letter-spacing: -.7px; }
.dialog .muted { margin-bottom: 23px; font-size: 12px; line-height: 1.55; }
.dialog label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 800; }
.count-control { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.count-control input { width: 94px; min-height: 47px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; color: var(--blue); font: 800 19px Manrope, sans-serif; }
.count-control span { color: var(--muted); font-size: 12px; }
.dialog-close { position: absolute; top: 13px; right: 16px; width: 35px; height: 35px; border: 0; border-radius: 50%; background: #f1f0eb; color: #7f8988; cursor: pointer; font-size: 22px; }
.empty-state { text-align: center; }
.empty-icon { display: grid; width: 54px; height: 54px; place-items: center; margin: 0 auto 13px; border-radius: 19px; background: var(--blue-pale); color: var(--blue); font-size: 23px; }
.tip { display: flex; gap: 11px; padding: 13px; border-radius: 14px; background: #f6f5f0; color: var(--orange); }
.tip p { margin: 0; color: #7b8583; font-size: 10px; line-height: 1.55; }
.tip b { color: #526372; }
.next-date { display: grid; width: 116px; justify-items: center; margin: 16px auto 10px; padding: 11px 20px 9px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.next-date span { color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: 1.1px; }
.next-date b { font: 800 37px/1.25 Manrope, sans-serif; }
.next-date small { color: var(--muted); font-size: 10px; }
.center { font-size: 11px; text-align: center; }
.next-divider { margin: 20px 0 15px; border-top: 1px solid var(--line); }
.calendar-icon { color: var(--orange); font-size: 20px; }

@media (max-width: 1120px) {
    .site-header { gap: 12px; width: calc(100% - 32px); padding: 9px 12px; }
    .brand { gap: 8px; font-size: 15px; }
    .site-nav { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
    .site-nav::-webkit-scrollbar { display: none; }
    .nav-link, .nav-dropdown summary { padding: 0 9px; font-size: 10px; }
    .sidebar-bottom { padding-left: 10px; }
    .user-meta b { max-width: 90px; }
    .main-content { width: calc(100% - 56px); }
    .bottom-grid { grid-template-columns: minmax(0, 1.3fr) minmax(220px, .75fr); }
}
@media (max-width: 800px) {
    .team-toolbar { align-items: stretch; flex-direction: column; }
    .team-search { width: 100%; }
    .site-header { position: sticky; top: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; width: 100%; min-height: 0; margin: 0; padding: 8px 13px 6px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0 0 17px 17px; box-shadow: 0 5px 17px rgba(32,49,59,.05); }
    .brand { grid-column: 1; grid-row: 1; }
    .brand-mark { width: 34px; height: 34px; border-radius: 12px; font-size: 18px; }
    .brand-logo { width: 158px; }
    .brand small { font-size: 6px; }
    .site-header .sidebar-bottom { grid-column: 2; grid-row: 1; padding-left: 9px; border-left: 0; }
    .site-header .sidebar-bottom .avatar { width: 31px; height: 31px; }
    .site-header .user-meta { display: none; }
    .site-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; gap: 2px; overflow-x: auto; }
    .nav-link, .nav-dropdown summary { min-height: 34px; padding: 0 9px; border-radius: 10px; font-size: 10px; }
    .nav-link span, .nav-dropdown-icon { font-size: 13px; }
    .nav-menu { position: fixed; top: 82px; left: 12px; }
    .main-content { width: calc(100% - 30px); min-height: calc(100vh - 90px); padding: 26px 0 45px; }
    .topbar { align-items: flex-start; }
    .topbar h1 { font-size: 31px; }
    .topbar .muted { font-size: 11px; }
    .top-actions, .header-actions { flex-wrap: wrap; justify-content: flex-start; }
    .home-topbar { align-items: center; }
    .home-topbar h1 { font-size: 30px; }
    .home-topbar .top-actions { justify-content: flex-end; }
    .content-grid, .admin-grid, .account-settings-grid { grid-template-columns: 1fr; }
    .sunday-grid { grid-template-columns: 1fr; gap: 11px; }
    .bottom-grid { grid-template-columns: 1fr; }
    .team-note { min-height: 150px; }
    .note-stats { max-width: 420px; }
    .welcome-banner { min-height: 230px; padding: 27px 25px; border-radius: 21px; }
    .welcome-copy h2 { font-size: 32px; }
    .banner-art { left: 50%; opacity: .82; }
    .art-sun { top: 52px; right: 20%; width: 128px; height: 128px; }
    .art-orbit { top: 14px; right: 1%; width: 215px; height: 215px; }
    .orbit-two { top: -10px; right: -18%; width: 275px; height: 275px; }
    .art-caption { font-size: 6px; }
    .edit-service-grid, .edit-columns { grid-template-columns: 1fr; }
    .number-row { gap: 6px; }
    .planning-filter-card { padding: 16px; }
    .planning-date-filter { display: grid; grid-template-columns: 1fr 1fr; }
    .planning-date-filter > div:not(.planning-filter-actions) { min-width: 0; }
    .planning-filter-actions { grid-column: 1/-1; flex-wrap: wrap; }
    .planning-filter-actions .button { flex: 1; }
    .membership-request-card { align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 14px; }
    .membership-request-info { width: calc(100% - 52px); flex: 1 1 calc(100% - 52px); }
    .membership-request-actions { width: 100%; margin-left: 49px; }
    .membership-request-actions form { flex: 1; }
    .membership-request-actions .button { width: 100%; }
    .membership-created-account { margin-left: 49px; }
}
@media (max-width: 560px) {
    .team-search-row { align-items: stretch; }
    .team-search-row .button { padding: 0 10px; font-size: 9px; }
    .team-filter-buttons, .planning-filter-buttons { width: 100%; }
    .team-list-heading { align-items: flex-start; flex-direction: column; }
    .team-list-heading nav { width: 100%; margin-left: 0; justify-content: flex-start; }
    .planning-date-range { width: 100%; flex-wrap: wrap; margin-left: 0; }
    .planning-date-range input { min-width: 125px; }
    .main-content { width: calc(100% - 24px); padding-top: 21px; }
    .topbar { display: block; margin-bottom: 21px; }
    .topbar h1 { font-size: 28px; letter-spacing: -1px; }
    .topbar > .button { margin-top: 13px; }
    .home-topbar { display: flex; gap: 8px; }
    .home-topbar h1 { font-size: 25px; }
    .home-topbar .muted { font-size: 10px; }
    .home-topbar .top-actions { display: grid; justify-items: end; gap: 6px; }
    .home-topbar .today { display: none; }
    .home-topbar .button { min-height: 36px; padding: 0 9px; font-size: 9px; }
    .welcome-banner { min-height: 214px; padding: 24px 19px; }
    .welcome-copy h2 { font-size: 28px; }
    .welcome-copy p { max-width: 210px; font-size: 10px; }
    .banner-art { left: 48%; opacity: .63; }
    .art-sun { top: 55px; right: 14%; width: 106px; height: 106px; }
    .art-orbit { right: -11%; }
    .orbit-two { right: -30%; }
    .sunday-panel { padding: 18px; border-radius: 19px; }
    .sunday-day { font-size: 46px; }
    .mini-assignment { grid-template-columns: minmax(88px, .8fr) minmax(0, 1.2fr); gap: 7px; }
    .mini-service, .mini-people { font-size: 9px; }
    .recent-card, .planning-card { padding: 18px 15px; }
    .recent-row { gap: 7px; }
    .recent-row .status { padding: 0 7px; font-size: 8px; }
    .recent-row .plan-info b { font-size: 10px; }
    .recent-row .plan-info small { font-size: 8px; }
    .recent-mark { width: 19px; font-size: 9px; }
    .day-card, .edit-day { padding: 18px 14px; }
    .section-heading { gap: 8px; }
    .section-heading h2 { font-size: 15px; }
    .assignment-row { grid-template-columns: 1fr; gap: 9px; }
    .person-chip { font-size: 9px; }
    .planning-index-card { align-items: flex-start; gap: 9px; padding: 13px; }
    .planning-index-mark { width: 33px; height: 33px; min-width: 33px; border-radius: 12px; }
    .planning-index-card > .button { align-self: center; min-height: 34px; padding: 0 8px; font-size: 8px; }
    .planning-index-title h2 { font-size: 11px; }
    .planning-index-info p { line-height: 1.45; }
    .planning-index-info > small.planning-owner, .recent-row .plan-info .planning-owner { font-size: 10px !important; }
    .planning-index-summary { align-items: flex-start; gap: 8px; }
    .form-actions { flex-wrap: wrap; }
    .form-actions .button { flex: 1; }
    .sticky-actions { bottom: 6px; }
    .edit-service { padding: 11px; }
    .edit-person { font-size: 9px; }
    .header-actions { margin-top: 13px; }
    .header-actions .button { min-height: 37px; padding: 0 10px; font-size: 9px; }
    .membership-share-card { padding: 18px 15px; }
    .share-link-row { align-items: stretch; flex-direction: column; }
    .inactive-planning-alert { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
    .inactive-alert-icon { width: 37px; height: 37px; border-radius: 13px; font-size: 20px; }
    .inactive-alert-row { align-items: stretch; flex-direction: column; gap: 8px; }
    .inactive-alert-row .button { justify-content: center; }
    .login-card { padding: 25px 20px; border-radius: 20px; }
    .login-card h1 { font-size: 24px; }
    .login-brand { font-size: 20px; }
    .account-settings-grid .edit-card { padding: 20px 16px; }
    .sunday-input-row { grid-template-columns: minmax(0,1fr) auto; padding: 8px; }
    .remove-sunday { min-height: 39px; padding: 0 9px; font-size: 9px; }
    .absence-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Locally generated DiceBear profile portraits */
.avatar-portrait { overflow: hidden; padding: 0; border: 0; background: transparent; box-shadow: none; }
.avatar-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-profile { width: 66px; height: 66px; }
.avatar-person { width: 28px; height: 28px; }
.avatar-mini { width: 23px; height: 23px; }
.profile-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.profile-heading .eyebrow { margin-bottom: 4px; }
.profile-heading .account-section-title { margin-bottom: 3px; }
.avatar-fieldset { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
.avatar-fieldset legend { margin-bottom: 4px; color: #53656e; font-size: 11px; font-weight: 800; }
.avatar-fieldset > .muted { margin-bottom: 12px; font-size: 10px; }
.avatar-live-preview { display: flex; align-items: center; gap: 12px; margin: 14px 0; padding: 11px 14px; border: 1px solid #e6e9e4; border-radius: 17px; background: linear-gradient(110deg, #f8f8f3, #fff); }
.avatar-live-art { display: block; width: 66px; height: 66px; flex: 0 0 auto; overflow: hidden; border: 3px solid #fff; border-radius: 50%; background: #eaf0ec; box-shadow: 0 2px 9px #1f3a311c; }
.avatar-live-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-live-preview b, .avatar-live-preview small { display: block; }
.avatar-live-preview b { color: #263d43; font-size: 12px; }
.avatar-live-preview small { margin-top: 3px; color: #87918c; font-size: 10px; }
.avatar-style-tabs { display: flex; gap: 6px; margin: 12px 0; overflow-x: auto; padding: 2px 1px 5px; }
.avatar-style-tab { flex: 0 0 auto; padding: 7px 11px; border: 1px solid #e5e8e3; border-radius: 999px; background: #fff; color: #66746f; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; transition: .16s ease; }
.avatar-style-tab:hover { border-color: #b7cbd4; color: var(--blue); }
.avatar-style-tab.active { border-color: var(--blue); background: var(--blue); color: white; box-shadow: 0 4px 11px #266ba52b; }
.avatar-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.avatar-option[hidden] { display: none !important; }
.avatar-option { position: relative; display: grid; min-width: 0; justify-items: center; gap: 6px; margin: 0 !important; padding: 10px 6px 9px; border: 1px solid #e8e7e1; border-radius: 15px; background: #fffefa; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.avatar-option:hover { transform: translateY(-2px); border-color: #b6cedb; }
.avatar-option:has(input:checked) { border-color: #6d9db9; background: #eef5f8; box-shadow: inset 0 0 0 1px #6d9db9; }
.avatar-option input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.avatar-option:has(input:focus-visible) { outline: 3px solid rgba(38,107,165,.23); outline-offset: 2px; }
.avatar-option-art { display: block; width: 66px; height: 66px; overflow: hidden; border-radius: 50%; background: #eef1ed; }
.avatar-option-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar-option-name { color: #586970; font-size: 9px; font-weight: 700; }
.avatar-option-check { position: absolute; top: 5px; right: 5px; display: grid; width: 17px; height: 17px; place-items: center; transform: scale(.7); border-radius: 50%; background: var(--blue); color: #fff; font-size: 10px; opacity: 0; transition: transform .16s ease, opacity .16s ease; }
.avatar-option:has(input:checked) .avatar-option-check { transform: scale(1); opacity: 1; }
.avatar-gallery-status { min-height: 14px; margin: 6px 0 0; color: var(--red); font-size: 10px; }
.avatar-more { display: flex; width: 100%; align-items: center; justify-content: center; gap: 9px; margin-top: 11px; }
.avatar-more span { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: #ffffffc9; font-size: 14px; }
.avatar-more.is-loading { opacity: .75; }
.avatar-more[hidden] { display: none; }
@media (max-width: 560px) { .avatar-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; } .avatar-option-art { width: 54px; height: 54px; } .avatar-style-tab { font-size: 9px; } }
