:root {
    --ink: #213a37;
    --muted: #71827e;
    --green: #236859;
    --green-dark: #174b40;
    --canvas: #f4f7f6;
    --line:#e6ece9
}
* {
    box-sizing:border-box
}
body {
    font-family: "Segoe UI",system-ui,sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-size: 14px;
    margin:0
}
a {
    color:var(--green)
}
button,input,select,textarea {
    font:inherit
}
a:focus-visible,button:focus-visible {
    outline: 3px solid #b5d6c8;
    outline-offset:3px
}
.ui-icon {
    flex-shrink: 0;
    vertical-align:middle
}
h1,h2,h3,p {
    margin-top:0
}
h1 {
    font-size: 28px;
    letter-spacing: -.7px;
    font-weight: 700;
    margin-bottom:8px
}
h2 {
    font-size: 17px;
    font-weight: 650;
    margin-bottom:6px
}
h3 {
    font-size: 16px;
    font-weight:650
}
p {
    line-height:1.65
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 246px;
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 30px 18px 20px;
    display: flex;
    flex-direction: column;
    z-index:40
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 22px;
    letter-spacing: -.5px;
    font-weight: 750;
    color: var(--green-dark);
    padding:0 12px
}
.brand-mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    background: var(--green-dark);
    color: #fff;
    border-radius:13px
}
.brand-mark svg {
    width: 27px;
    height:27px
}
.brand-sub {
    display: block;
    font-size: 9px;
    letter-spacing: 3.4px;
    color: var(--muted);
    margin-top:1px
}
.nav-caption {
    margin: 40px 14px 12px;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #8a9894;
    font-weight:650
}
.side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    margin-bottom: 5px;
    color: #687b75;
    font-weight: 550;
    font-size: 13px;
    text-decoration: none;
    border-radius: 10px;
    border: 0;
    background: transparent;
    width: 100%;
    text-align:left
}
.side-link:hover {
    background: #f4f7f5;
    color:var(--green)
}
.side-link.selected {
    color: var(--green);
    background: #e9f3ed;
    font-weight:700
}
.sidebar-bottom {
    margin-top: auto;
    padding-top:30px
}
.sidebar-note {
    padding: 20px 14px;
    background: #f5f8f5;
    border-radius: 13px;
    margin-bottom:16px
}
.sidebar-note>svg {
    color: #78917f;
    display: block;
    margin-bottom:12px
}
.sidebar-note strong {
    font-size:12px
}
.sidebar-note p {
    font-size: 11px;
    color: #82908a;
    margin:8px 0 0
}
.logout-link {
    color:#8d6159
}
.app-shell {
    margin-left:246px
}
.topbar {
    height: 91px;
    padding: 20px 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    background:#fff
}
.breadcrumb-label {
    font-size: 11px;
    color: #8a9894;
    margin-bottom:5px
}
.breadcrumb-label span {
    margin: 0 8px;
    color:#bbc5c0
}
.topbar strong {
    font-size:14px
}
.admin-account {
    display: flex;
    align-items: center;
    gap:11px
}
.admin-account strong {
    max-width: 220px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size:12px
}
.admin-account small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top:3px
}
.avatar,.mini-avatar {
    display: inline-grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    background: #e9eee4;
    color: #5d755c;
    font-size: 14px;
    font-weight: 700;
    flex-shrink:0
}
.mini-avatar {
    width: 31px;
    height: 31px;
    font-size:11px
}
.main-content {
    max-width: 1700px;
    margin: auto;
    padding:34px 38px
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom:26px
}
.page-heading p {
    color: var(--muted);
    margin-bottom:0
}
.eyebrow {
    font-size: 10px!important;
    letter-spacing: 1.8px;
    font-weight: 700;
    color: #7a9288!important;
    margin-bottom:10px!important
}
.app-footer {
    font-size: 11px;
    color: #92a09a;
    padding:6px 38px 26px
}
.app-footer span {
    margin:0 8px
}
.panel,.card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow:0 3px 12px #183d3103
}
.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding:23px 24px 19px
}
.panel-heading p {
    color: var(--muted);
    font-size: 12px;
    margin-bottom:0
}
.panel-heading h2 {
    margin:0 0 5px
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 16px;
    margin-bottom:26px
}
.stat-card {
    position: relative;
    border: 1px solid var(--line);
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    min-height:144px
}
.stat-icon {
    width: 37px;
    height: 37px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: #e7f1eb;
    color:#47816d
}
.stat-icon.blue {
    background: #eaf1fa;
    color:#6585b2
}
.stat-icon.amber {
    background: #faf2e5;
    color:#ad8946
}
.stat-icon.purple {
    background: #f0ebf7;
    color:#9673b1
}
.stat-label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top:13px
}
.stat-card>strong {
    position: absolute;
    right: 20px;
    top: 24px;
    font-size: 30px;
    letter-spacing: -1px;
    font-weight:650
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 310px;
    gap: 22px;
    align-items:start
}
.dashboard-aside {
    display: grid;
    gap:20px
}
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 10px;
    color:var(--muted)
}
.legend>span {
    display: flex;
    align-items: center;
    gap:6px
}
.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background:#287965
}
.dot.sermon {
    background:#8464ae
}
.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 24px 22px;
    gap:10px
}
.calendar-toolbar h3 {
    margin: 0;
    font-size: 21px;
    letter-spacing:-.5px
}
.calendar-weekdays,.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7,minmax(0,1fr));
    margin:0 20px
}
.calendar-weekdays {
    border-top: 1px solid var(--line);
    padding: 14px 0;
    color: #8d9a95;
    font-size: 11px;
    text-align:center
}
.calendar-grid {
    border-top: 1px solid var(--line);
    border-left:1px solid var(--line)
}
.calendar-day {
    min-height: 97px;
    padding: 9px 5px 6px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: #4b6058;
    position: relative;
    background:#fff
}
.calendar-day:hover {
    background:#f2f7f3
}
.calendar-day.outside {
    background: #fafbfa;
    color:#b8c2bd
}
.calendar-day.chosen {
    background: #f0f7f2;
    box-shadow: inset 0 0 0 2px #6a9b81;
    z-index:1
}
.day-number {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    margin: 0 auto 7px;
    font-size:12px
}
.today .day-number {
    background: var(--green);
    color: white;
    border-radius: 50%;
    font-weight:650
}
.calendar-events {
    display: flex;
    flex-direction: column;
    gap:4px
}
.calendar-event {
    font-size: 9px;
    padding: 3px 4px;
    border-radius: 4px;
    display: flex;
    gap: 3px;
    align-items: center;
    justify-content:space-between
}
.sabbath.calendar-event,.sabbath.service-badge {
    color: #286e58;
    background:#eaf4ee
}
.sermon.calendar-event,.sermon.service-badge {
    color: #8061a4;
    background:#f2edf8
}
.event-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space:nowrap
}
.event-count {
    font-size: 9px;
    opacity:.8
}
.calendar-footnote {
    padding: 17px 24px;
    color: #8b9991;
    font-size:11px
}
.selected-panel {
    padding-bottom:20px
}
.selected-panel>.btn {
    width: calc(100% - 40px)!important;
    margin:8px 20px 0
}
.small-icon {
    color:#7a9788
}
.agenda-list {
    padding:0 20px
}
.agenda-item {
    border-top: 1px solid var(--line);
    padding:18px 0
}
.service-badge {
    display: inline-flex;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 650;
    padding: 6px 10px;
    border-radius: 6px;
    white-space:nowrap
}
.status-text {
    color: #8b9891;
    font-size: 10px;
    padding-top:6px
}
.agenda-person {
    display: flex;
    align-items: center;
    gap: 10px;
    margin:14px 0
}
.agenda-person strong {
    font-size: 12px;
    display: block;
    overflow-wrap:anywhere
}
.agenda-person small {
    font-size: 10px;
    color:var(--muted)
}
.text-link {
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    gap:8px
}
.text-link .ui-icon {
    width: 15px;
    height:15px
}
.reminder-card {
    display: flex;
    gap: 14px;
    border: 1px solid #dde9e0;
    border-radius: 15px;
    background: #eef5ef;
    padding:21px
}
.reminder-card h3 {
    font-size: 13px;
    margin:2px 0 7px
}
.reminder-card p {
    font-size: 12px;
    color: #759080;
    margin-bottom:9px
}
.reminder-card a {
    font-size: 11px;
    text-decoration: none;
    font-weight:650
}
.upcoming-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    padding:0 24px 24px
}
.upcoming-card {
    display: flex;
    gap: 14px;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding:16px
}
.upcoming-card:hover {
    background:#f8faf8
}
.date-tile {
    background: #f1f4ef;
    color: #658267;
    min-width: 44px;
    height: 57px;
    padding: 7px;
    text-align: center;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 650;
    border-radius:9px
}
.date-tile small {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    margin-top:3px
}
.upcoming-card p {
    font-size: 11px;
    margin:9px 0 4px
}
.upcoming-card small {
    font-size: 10px;
    color:var(--muted)
}
.btn {
    font-size: 12px;
    font-weight: 600;
    border-radius: 9px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 16px;
    white-space:nowrap
}
.btn .ui-icon {
    width: 16px;
    height:16px
}
.btn-sm {
    font-size: 11px;
    min-height: 33px;
    padding:6px 11px
}
.btn-primary {
    --bs-btn-bg: var(--green);
    --bs-btn-border-color: var(--green);
    --bs-btn-hover-bg: var(--green-dark);
    --bs-btn-hover-border-color:var(--green-dark)
}
.btn-outline-primary {
    --bs-btn-color: var(--green);
    --bs-btn-border-color: #c5dace;
    --bs-btn-hover-bg: var(--green);
    --bs-btn-hover-border-color:var(--green)
}
.btn-light {
    --bs-btn-bg: #f4f7f5;
    --bs-btn-border-color: #e8eeea;
    --bs-btn-color:#62766b
}
.btn-outline-danger {
    --bs-btn-color: #a9635d;
    --bs-btn-border-color: #ead6d2;
    --bs-btn-hover-bg: #a9635d;
    --bs-btn-hover-border-color:#a9635d
}
.icon-button {
    width: 34px;
    height: 34px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    color: #708377;
    text-decoration: none;
    font-size: 22px;
    flex-shrink:0
}
.form-label {
    font-size: 12px;
    font-weight: 600;
    color: #516a5e;
    margin-bottom:8px
}
.form-control,.form-select {
    font-size: 13px;
    padding: 11px 13px;
    min-height: 44px;
    border-color: #dde6df;
    border-radius: 9px;
    color: #354f41;
    background-color:#fff
}
.form-control::placeholder {
    color:#9ca9a1
}
.form-control:focus,.form-select:focus {
    border-color: #89b299;
    box-shadow:0 0 0 3px #23685912
}
.form-check-input:checked {
    background-color: var(--green);
    border-color:var(--green)
}
.filter-bar {
    display: flex;
    gap: 14px;
    align-items: end;
    padding: 20px;
    margin-bottom: 22px;
    flex-wrap:wrap
}
.filter-grow {
    flex: 1;
    min-width:190px
}
.filter-bar .form-label {
    font-size:11px
}
.table-panel {
    overflow:hidden
}
.table {
    margin: 0;
    font-size:12px
}
.table>:not(caption)>*>* {
    padding: 18px 22px;
    border-color:#edf1ee
}
.table th {
    background: #f8faf8;
    color: #849188;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 650;
    white-space:nowrap
}
.table td {
    color:#516657
}
.table strong {
    color: #2d4c3b;
    font-weight:600
}
.table-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap:wrap
}
.cell-sub {
    display: block;
    font-size: 10px;
    color: #8a998e;
    margin-top:4px
}
.member-cell {
    display: flex;
    align-items: center;
    gap:12px
}
.status-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 10px;
    background: #f0f3f1;
    color: #79847d;
    font-weight:600
}
.status-badge.active,.status-badge.accepted {
    background: #edf5ec;
    color:#5a8756
}
.status-badge.cancelled,.status-badge.failed {
    background: #fbefec;
    color:#ad776a
}
.status-badge.unknown,.status-badge.retry,.status-badge.pending {
    background: #fbf4e6;
    color:#b68c48
}
.assignment-summary {
    display: grid;
    gap: 8px;
    min-width:160px
}
.assignment-summary strong {
    font-size:12px
}
.assignment-summary small {
    display: block;
    color: #91a093;
    font-size: 10px;
    margin-top:3px
}
.count-badge {
    font-size: 11px;
    color: #729780;
    background: #eff5ee;
    padding: 4px 8px;
    border-radius: 6px;
    margin-left:7px
}
.pagination-footer {
    padding:15px 22px
}
.pagination-footer:empty {
    display:none
}
.pagination {
    --bs-pagination-color: var(--green);
    --bs-pagination-active-bg: var(--green);
    --bs-pagination-active-border-color: var(--green);
    --bs-pagination-font-size: 12px;
    margin:0
}
.pagination-footer nav p {
    font-size: 11px!important;
    margin:0
}
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color:#829288
}
.empty-state h3 {
    font-size: 15px;
    color: #607b69;
    margin:14px 0 8px
}
.empty-state p {
    font-size: 12px;
    max-width: 300px;
    margin:0 auto 18px
}
.empty-icon {
    display: inline-grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f0f5ef;
    color:#88a28e
}
.empty-state.compact {
    padding:26px 12px
}
.empty-state.compact p {
    margin-bottom:0
}
.form-layout {
    display: grid;
    grid-template-columns: minmax(0,1fr) 280px;
    gap: 24px;
    max-width:1130px
}
.form-panel {
    padding:26px
}
.step-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom:22px
}
.step-heading>span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: #eef5ee;
    border-radius: 50%;
    color: #62916f;
    font-size: 13px;
    font-weight: 700;
    flex-shrink:0
}
.step-heading h2 {
    font-size:16px
}
.step-heading p {
    margin: 0;
    font-size: 12px;
    color:var(--muted)
}
.service-options {
    display: flex;
    gap:14px
}
.service-option {
    flex: 1;
    cursor: pointer;
    position:relative
}
.service-option input {
    position: absolute;
    opacity:0
}
.service-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 11px;
    font-size: 13px;
    color:#6b8374
}
.choice-check {
    margin-left: auto;
    opacity:0
}
.service-option input:checked+.service-choice {
    background: #f0f7f0;
    border-color: #73a485;
    color:#256340
}
.service-option input:checked+.service-choice .choice-check {
    opacity:1
}
.service-option input:focus-visible+.service-choice {
    outline:3px solid #b5d6c8
}
.date-input {
    max-width:310px
}
.assignment {
    display: flex;
    align-items: start;
    gap: 12px;
    background: #f8faf8;
    border: 1px solid #e6eee7;
    border-radius: 12px;
    padding: 18px;
    margin-bottom:16px
}
.assignment-fields {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.2fr);
    gap: 16px;
    flex: 1;
    min-width:0
}
.remove-assignment {
    margin-top: 26px;
    color:#a87366
}
.member-search-status {
    font-size: 10px;
    display: block;
    margin-top:5px
}
.form-guide {
    padding: 25px;
    align-self:start
}
.form-guide h2 {
    margin:18px 0 12px
}
.form-guide p {
    font-size: 12px;
    color:var(--muted)
}
.guide-line {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: #7d9282;
    margin: 15px 0;
    line-height:1.6
}
.guide-line svg {
    width: 15px;
    height: 15px;
    margin-top:2px
}
.form-guide .text-link {
    margin-top:10px
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    max-width:826px
}
.back-link {
    margin-bottom:16px
}
.form-narrow {
    max-width:850px
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap:20px
}
.info-cell {
    padding: 18px;
    background: #f7faf7;
    border-radius:10px
}
.info-cell dt {
    font-size: 11px;
    color: #889c8b;
    font-weight: 500;
    margin-bottom:5px
}
.info-cell dd {
    margin: 0;
    font-size: 14px;
    font-weight:600
}
.profile-heading {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom:24px
}
.profile-heading .avatar {
    width: 66px;
    height: 66px;
    font-size:24px
}
.offset-options {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
    margin-top:14px
}
.offset-choice {
    cursor: pointer;
    position:relative
}
.offset-choice input {
    position: absolute;
    opacity:0
}
.offset-choice span {
    display: block;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    color: #85958a;
    font-size:12px
}
.offset-choice strong {
    display: block;
    font-size: 21px;
    margin-bottom: 4px;
    color:#4a7057
}
.offset-choice input:checked+span {
    background: #edf6ef;
    border-color:#72a080
}
.offset-choice input:focus-visible+span {
    outline:3px solid #b5d6c8
}
.settings-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
    margin-bottom:25px
}
.settings-switch p {
    font-size: 12px;
    color: var(--muted);
    margin:0
}
.form-switch .form-check-input {
    width: 44px;
    height: 24px;
    cursor:pointer
}
.message-cell {
    max-width: 340px;
    line-height:1.7
}
.log-details {
    font-size: 11px;
    color: var(--muted);
    margin-top:7px
}
.log-details summary {
    cursor: pointer;
    color:var(--green)
}
.auth-header {
    padding:30px 40px
}
.auth-main {
    max-width: 1040px;
    margin: 40px auto 70px;
    padding:0 24px
}
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items:center
}
.auth-story {
    padding:30px 10px
}
.auth-story h1 {
    font-size: 42px;
    line-height: 1.2;
    color: #28573f;
    max-width:390px
}
.auth-story p {
    color: #85948a;
    max-width:330px
}
.auth-illustration {
    display: grid;
    place-items: center;
    width: 160px;
    height: 160px;
    background: #e6eee1;
    border-radius: 40px;
    margin: 0 0 35px;
    transform:rotate(-5deg)
}
.auth-illustration svg {
    width: 74px;
    height: 74px;
    color: #67866a;
    transform:rotate(5deg)
}
.login-card {
    padding:35px
}
.login-card h2 {
    font-size: 23px;
    letter-spacing:-.5px
}
.login-card p {
    font-size: 12px;
    color:var(--muted)
}
.login-card .form-control {
    margin-bottom:20px
}
.login-card .btn {
    width: 100%;
    margin-top: 8px;
    min-height:46px
}
.alert {
    font-size: 13px;
    border-radius:12px
}
.alert-success {
    background: #eaf5ed;
    border-color: #d4e8d9;
    color:#497955
}
.mobile-menu,.sidebar-scrim {
    display:none
}
.role-row {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom:1px solid var(--line)
}
.role-row:last-child {
    border:0
}
.role-row form:first-child {
    flex: 1;
    display: flex;
    gap:12px
}
.text-muted {
    color:var(--muted)!important
}
@media(max-width:1200px) {
    .sidebar {
        width: 218px;
        padding-inline:12px
    }
    .app-shell {
        margin-left:218px
    }
    .main-content {
        padding:25px
    }
    .topbar {
        padding-inline:25px
    }
    .dashboard-grid {
        grid-template-columns: minmax(0,1fr) 270px;
        gap:16px
    }
    .panel-heading {
        padding:20px 18px
    }
    .calendar-panel .panel-heading {
        align-items: start;
        flex-direction: column;
        gap:9px
    }
    .stat-grid {
        gap:10px
    }
    .stat-card {
        padding:15px
    }
    .stat-card>strong {
        right: 13px;
        font-size:25px
    }
    .stat-label {
        font-size:10px
    }
    .upcoming-grid {
        grid-template-columns:1fr
    }
    .calendar-day {
        min-height:85px
    }
    .form-layout {
        grid-template-columns:1fr
    }
    .form-guide {
        display:none
    }
}
@media(max-width:991px) {
    .sidebar {
        transform: translateX(-100%);
        width:246px
    }
    .sidebar-open .sidebar {
        transform:translateX(0)
    }
    .sidebar-open .sidebar-scrim {
        display: block;
        position: fixed;
        inset: 0;
        border: 0;
        background: #193e3555;
        z-index:35
    }
    .sidebar-open {
        overflow:hidden
    }
    .app-shell {
        margin-left:0
    }
    .mobile-menu {
        display:inline-grid
    }
    .dashboard-grid {
        grid-template-columns:minmax(0,1fr) 290px
    }
    .main-content {
        padding:26px 20px
    }
    .topbar {
        height: 80px;
        padding:16px 20px
    }
}
@media(max-width:767px) {
    h1 {
        font-size:24px
    }
    .page-heading {
        align-items:start
    }
    .page-heading>.btn {
        font-size: 11px;
        padding:9px 12px
    }
    .page-heading p {
        font-size:12px
    }
    .stat-grid {
        grid-template-columns: repeat(3,1fr);
        gap:10px
    }
    .stat-card {
        min-height:119px
    }
    .stat-icon {
        width: 30px;
        height: 30px;
        border-radius:8px
    }
    .stat-icon svg {
        width: 17px;
        height:17px
    }
    .stat-card>strong {
        top:18px
    }
    .stat-label {
        margin-top:17px
    }
    .dashboard-grid {
        grid-template-columns:1fr
    }
    .calendar-panel .panel-heading {
        flex-direction:row
    }
    .calendar-weekdays,.calendar-grid {
        margin-inline:14px
    }
    .calendar-toolbar {
        padding-inline:18px
    }
    .event-name {
        font-size:8px
    }
    .legend {
        font-size: 9px;
        gap:7px
    }
    .admin-account strong {
        max-width: 140px;
        font-size:11px
    }
    .filter-bar>div {
        flex: 1;
        min-width:130px
    }
    .filter-bar .filter-grow {
        flex-basis:100%
    }
    .filter-bar>.btn {
        flex:1
    }
    .table>:not(caption)>*>* {
        padding:14px 16px
    }
    .table-actions {
        flex-wrap:nowrap
    }
    .form-panel {
        padding:20px
    }
    .form-actions {
        justify-content:stretch
    }
    .form-actions>.btn {
        flex:1
    }
    .assignment-fields {
        grid-template-columns: 1fr;
        gap:14px
    }
    .assignment {
        padding:15px
    }
    .offset-options {
        grid-template-columns:repeat(2,1fr)
    }
    .auth-story {
        display:none
    }
    .auth-layout {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin:auto
    }
    .auth-main {
        margin-top:15px
    }
    .login-card {
        padding:28px
    }
    .auth-header {
        padding:25px
    }
    .info-grid {
        gap:12px
    }
    .topbar strong {
        font-size:12px
    }
    .app-footer {
        padding-inline:20px
    }
}
@media(max-width:430px) {
    .main-content {
        padding:22px 12px
    }
    .page-heading {
        flex-wrap: wrap;
        gap:14px
    }
    .calendar-day {
        min-height: 76px;
        padding-inline:3px
    }
    .calendar-event {
        padding: 3px;
        justify-content: center;
        min-height:7px
    }
    .calendar-event .event-name {
        display:none
    }
    .calendar-event .event-count {
        font-size:9px
    }
    .calendar-toolbar {
        padding-inline:14px
    }
    .stat-card {
        padding:13px
    }
    .stat-label {
        max-width:90px
    }
    .calendar-panel .panel-heading {
        flex-direction:column
    }
    .service-choice {
        padding: 14px 10px;
        font-size: 12px;
        gap:7px
    }
    .service-options {
        gap:9px
    }
    .admin-account>div {
        display:none
    }
    .info-grid {
        grid-template-columns:1fr
    }
}
/* Profile actions and password controls. */ .profile-menu {
    position: relative;
    flex-shrink:0
}
.profile-menu>summary {
    cursor: pointer;
    list-style: none;
    border-radius: 10px;
    padding:5px
}
.profile-menu>summary::-webkit-details-marker {
    display:none
}
.profile-menu>summary:focus-visible,.password-toggle:focus-visible {
    outline: 2px solid #315dd8;
    outline-offset:2px
}
.profile-name {
    display: flex;
    flex-direction: column;
    text-align:left
}
.profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 170px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 8px 24px #0002;
    z-index:100
}
.profile-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #b42318;
    padding: 12px;
    text-align:left
}
.profile-logout:hover {
    background:#fff1f0
}
.password-field {
    position:relative
}
.password-field>.form-control {
    padding-right:50px
}
.password-field>.password-toggle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    cursor:pointer
}
.password-toggle:hover {
    color: #1d4ed8;
    background:#eff6ff
}
.password-toggle [hidden] {
    display:none!important
}
@media(max-width:575px) {
    .profile-name {
        display:none
    }
}
