/* Resident web view: loaded after the legacy dashboard theme. */
:root {
    --resident-red: #f44336;
    --resident-ink: #243746;
    --resident-muted: #526371;
    --resident-border: #dce3e8;
    --resident-header-height: 64px;
    --resident-nav-height: 64px;
}
body.resident-app, body.resident-login {
    color: var(--resident-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}
.resident-app a, .resident-login a { color: #17639a; }
.resident-app button, .resident-app a, .resident-login button, .resident-login a { touch-action: manipulation; }
.resident-app :focus-visible, .resident-login :focus-visible {
    outline: 3px solid #17639a;
    outline-offset: 3px;
}
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10000000; background: white; padding: 12px; }
.skip-link:focus { top: env(safe-area-inset-top, 0px); }
.resident-app .resident-header {
    background: var(--resident-red);
    min-height: var(--resident-header-height);
    padding-top: env(safe-area-inset-top, 0px);
    border: 0;
    box-shadow: 0 1px 6px rgba(36, 55, 70, .16);
}
.resident-header > .container-fluid {
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
}
.resident-header .navbar-header {
    display: flex;
    align-items: center;
    float: none;
    min-height: var(--resident-header-height);
    margin: 0;
    width: 100%;
}
.resident-header .navbar-header::before, .resident-header .navbar-header::after { display: none; }
.resident-header .navbar-header .bars, .resident-header-button {
    position: relative;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: transparent;
    line-height: 1.2;
}
.resident-header .navbar-header .bars::before, .resident-header .navbar-header .bars::after { content: none; }
.resident-header svg, .resident-bottom-nav svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.resident-header .navbar-brand {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 44px;
    padding: 6px;
    margin: 0;
    float: none;
}
.resident-header .navbar-brand img { width: 112px; max-width: 100%; height: auto; }
.resident-header .resident-header-actions { display: flex; align-items: center; margin: 0 0 0 auto; float: none !important; }
.resident-header .resident-header-actions > li { float: none; }
.resident-header-button { display: flex; gap: 4px; font-size: 13px; font-weight: 600; }
.resident-header-button.checkin_active { background: #fff; color: #216746; }
.resident-header .label-count { top: 0; right: 0; font-size: 11px; background: white; color: var(--resident-red); border-radius: 10px; }
.resident-header .resident-notifications { right: 0; left: auto; width: 300px; max-width: calc(100vw - 24px); }
.resident-header .resident-notifications .body .menu a { min-height: 48px; white-space: normal; padding: 14px 16px; color: var(--resident-ink); font-size: 15px; }
.resident-app .sidebar { top: calc(var(--resident-header-height) + env(safe-area-inset-top, 0px)); height: calc(100% - var(--resident-header-height) - env(safe-area-inset-top, 0px)); }
.resident-app .sidebar .menu .list a { min-height: 48px; }
.resident-app .sidebar .menu .list a span { overflow-wrap: anywhere; }
.resident-app .sidebar .user-info .name, .resident-app .sidebar .user-info .email { white-space: normal; overflow-wrap: anywhere; }
.resident-app section.content { margin-top: calc(var(--resident-header-height) + 20px + env(safe-area-inset-top, 0px)); }
.resident-app .content, .resident-app .tab-pane, .resident-app .card, .resident-app .media-body { min-width: 0; overflow-wrap: anywhere; }
.resident-app .card { border-radius: 12px; box-shadow: 0 2px 8px rgba(36, 55, 70, .08); }
.resident-app .card .body, .resident-app .card .header { color: var(--resident-ink); }
.resident-app .btn, .resident-login .btn { min-height: 44px; min-width: 44px; font-size: 14px !important; padding: 10px 14px !important; border-radius: 8px; white-space: normal; }
.resident-app .btn.bg-teal { background-color: #006e63 !important; }
.resident-app .btn.bg-blue { background-color: #17639a !important; }
.resident-app .btn.bg-cyan { background-color: #006d80 !important; }
.resident-app .btn.bg-blue-grey { background-color: #465d69 !important; }
.resident-app .form-control, .resident-login .form-control {
    font-size: 16px;
    line-height: 1.5;
    min-height: 48px;
    height: auto;
    padding: 10px 8px;
    max-width: 100%;
    color: var(--resident-ink);
}
.resident-app textarea.form-control, .resident-login textarea.form-control { min-height: 104px; resize: vertical !important; }
.resident-app .form-group .form-line .form-label { position: static; display: block; color: var(--resident-muted); }
.resident-app .form-group .form-line { margin-bottom: 8px; }
.resident-app .form-group::after, .resident-app .panel-heading::after { content: ""; display: table; clear: both; }
.resident-app .input-group .input-group-addon { min-width: 44px; padding: 10px; }
.resident-app .panel-title > a { display: block; min-height: 44px; padding: 10px 0; line-height: 1.5; }
.resident-app .nav-tabs { display: flex; width: 100%; }
.resident-app .nav-tabs > li { float: none !important; min-width: 0; }
.resident-app .nav-tabs > li > a { display: flex; gap: 5px; justify-content: center; align-items: center; min-height: 48px; color: var(--resident-muted) !important; }
.resident-app .nav-tabs > li.active > a { color: var(--resident-red) !important; font-weight: 700; }
.resident-app .nav-tabs > li a::before { border-color: var(--resident-red); }
.resident-app .mood-options { display: flex; flex-wrap: nowrap; gap: 4px; margin: 12px 0; }
.resident-app .mood-options .greeting_feeling { width: auto !important; height: auto; min-width: 44px; flex: 1 0 auto; margin: 0 !important; padding: 10px 4px !important; border-radius: 10px; opacity: 1 !important; white-space: nowrap; overflow-wrap: normal; }
.resident-app .mood-options .bg-red { background: #f44336 !important; }
.resident-app .mood-options .bg-deep-orange { background: #ff5722 !important; }
.resident-app .mood-options .bg-orange { background: #ff9800 !important; }
.resident-app .mood-options .bg-light-green { background: #8bc34a !important; }
.resident-app .mood-options .bg-green { background: #4caf50 !important; }
.resident-app .greeting_feeling[aria-pressed="true"] { outline: 3px solid var(--resident-ink); outline-offset: 2px; }
.resident-app #greeting_question_input label { color: var(--resident-muted) !important; font-size: 15px !important; }
.resident-app .resident-bottom-nav { display: none; }
.resident-app .table-responsive { -webkit-overflow-scrolling: touch; }
.resident-app .modal-title { padding-right: 40px; overflow-wrap: anywhere; }
.resident-app .modal .close, .resident-login .modal .close { width: 44px; height: 44px; margin: -10px -8px 0 0; opacity: 1; color: var(--resident-muted); }
.resident-app #ViewFileModal .modal-content { display: flex; flex-direction: column; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); }
.resident-app #ViewFileModal .modal-body { overflow: auto; min-height: 0; -webkit-overflow-scrolling: touch; }
.resident-app #viewfile_div.is-document { padding: 0; flex: 1 1 auto; height: 75vh; height: 75dvh; }
.resident-app #viewfile_div iframe { display: block; width: 100%; height: 100%; border: 0; }
.resident-app .jconfirm .jconfirm-box { border-radius: 12px; }
.resident-app .jconfirm .jconfirm-box .jconfirm-buttons { display: flex; flex-wrap: wrap; gap: 8px; float: none; justify-content: flex-end; }
.resident-app .jconfirm .jconfirm-box .jconfirm-buttons button { min-height: 44px; margin: 0; white-space: normal; }
.resident-app .jconfirm .jconfirm-content { overflow-wrap: anywhere; }
.resident-app .resident-empty { padding: 16px; margin: 0; color: var(--resident-muted); }
.resident-app #staff a[href^="tel:"], .resident-app #staff a[href^="mailto:"] { display: inline-block; min-height: 44px; padding: 10px 0; overflow-wrap: anywhere; }
.resident-app #staff .content { margin-top: 8px !important; }
.resident-app #staff small { font-size: 15px !important; }
.resident-app .switch label { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 8px; color: var(--resident-ink); }
.resident-app .switch label .lever { flex-shrink: 0; margin: 0 8px; }
.resident-app .switch .resident-help { padding: 8px !important; background: transparent; color: #17639a; box-shadow: none; }
.resident-app .switch { margin-bottom: 16px; }
body.resident-login { background: #f3f5f7; max-width: none; margin: 0; padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.resident-login .login-box { width: 100%; max-width: 420px; margin: 4vh auto; }
.resident-login .logo { text-align: center; }
.resident-login .logo img { width: 180px; max-width: 100%; }
.resident-login .logo small { color: var(--resident-muted); font-size: 16px; margin-top: 12px; }
.resident-login .card { border-radius: 16px; box-shadow: 0 4px 20px rgba(36, 55, 70, .08); }
.resident-login .card .body { padding: 24px; }
.resident-login .input-group { margin-bottom: 20px; }
.resident-login label { font-size: 15px; color: var(--resident-ink); }
.resident-login .login-submit { background: var(--resident-red); color: white; width: 100%; }
.resident-login .login-help { display: block; padding: 12px; margin: 12px auto 0; min-height: 44px; text-align: center; }
.resident-login .password-toggle { border: 0; background: transparent; color: #17639a; min-height: 44px; min-width: 52px; font-size: 14px; }
.resident-login .password-field { display: flex; align-items: center; border-bottom: 1px solid var(--resident-border); }
.resident-login .password-field .form-control { border: 0; flex: 1; min-width: 0; }
.resident-login #fpw_error { color: #a51d2c; }
@media (max-width: 1169px) {
    .resident-app.ls-closed .sidebar { visibility: hidden; }
    .resident-app.ls-closed.overlay-open .sidebar { visibility: visible; }
    .resident-app.overlay-open { overflow: hidden; }
    .resident-app .sidebar { width: min(300px, calc(100vw - 44px)); overflow-y: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom, 0px); }
    .resident-app .sidebar .legal { position: static; }
    .resident-app .sidebar .menu .list, .resident-app .sidebar .slimScrollDiv { height: auto !important; overflow: visible !important; }
    .resident-app .sidebar .slimScrollBar, .resident-app .sidebar .slimScrollRail { display: none !important; }
    .resident-app section.content { margin-left: 16px; margin-right: 16px; }
}
@media (max-width: 767px) {
    .resident-app { background: #f3f5f7; }
    .resident-app section.content {
        margin: calc(var(--resident-header-height) + 12px + env(safe-area-inset-top, 0px)) 0 0;
        padding: 0 max(12px, env(safe-area-inset-right, 0px)) calc(var(--resident-nav-height) + 24px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    }
    .resident-app .content > .container-fluid { padding: 0; }
    .resident-app .content .row { margin-left: -6px; margin-right: -6px; }
    .resident-app .content .row > [class*="col-"] { padding-left: 6px; padding-right: 6px; margin-bottom: 12px; }
    .resident-app .content .card { margin-bottom: 16px; }
    .resident-app .content .card .body { padding: 12px; }
    .resident-app .tab-content { padding: 16px 0 0; }
    .resident-app .tab-pane > .card { box-shadow: none; }
    .resident-app .tab-pane > .card > .body { padding: 0; }
    .resident-app .panel-post { margin-bottom: 16px; }
    .resident-app .panel-post > .panel-heading { padding: 12px; }
    .resident-app .panel-post .row.panel-heading { margin: 0; padding: 12px 0; }
    .resident-app .panel-body { padding: 12px; }
    .resident-app .panel-body .body { padding: 0 !important; }
    .resident-app .panel-title { font-size: 16px; }
    .resident-app h4 { line-height: 1.45; }
    .resident-app h4 > .pull-right { float: none !important; display: block; margin: 10px 0 !important; }
    .resident-app .nav-tabs > li { flex: 1 1 0; }
    .resident-app .nav-tabs > li > a { font-size: 14px; line-height: 1.3; text-align: center; padding: 10px 4px !important; height: 100%; }
    .resident-app .nav-tabs > li > a > i { display: none; }
    .resident-app .well { font-size: 15px !important; padding: 14px !important; background: #eef3f6; color: var(--resident-muted); border: 0; box-shadow: none; }
    .resident-app .profile-card .profile-footer ul li { height: auto !important; min-height: 48px; overflow: auto; padding-bottom: 12px; }
    .resident-app .profile-card .profile-footer ul li > span { display: block; float: none !important; }
    .resident-app .profile-card .profile-footer ul li .btn { float: none !important; text-align: left; max-width: 100%; }
    .resident-app .profile-card .profile-footer { padding: 12px; }
    .resident-app .thumbnail { display: flex; margin-left: 0; margin-right: 0; }
    .resident-app .thumbnail > .col-xs-3 { flex: 0 0 52px; width: 52px; }
    .resident-app .thumbnail > .col-xs-9 { flex: 1; width: auto; min-width: 0; padding: 8px; }
    .resident-app .thumbnail .pull-right { float: none !important; display: block; margin-top: 10px; }
    .resident-app .thumbnail .btn-group { display: flex; flex-wrap: wrap; gap: 6px; }
    .resident-app .thumbnail img { max-width: 100% !important; }
    .resident-app .resident-bottom-nav {
        display: flex; position: fixed; z-index: 11; left: 0; right: 0; bottom: 0;
        min-height: var(--resident-nav-height); padding: 4px env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
        border-top: 1px solid var(--resident-border); background: #fff; box-shadow: 0 -2px 8px rgba(36,55,70,.06);
    }
    .resident-bottom-nav a { display: flex; flex: 1; min-width: 0; min-height: 60px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--resident-muted); font-size: 12px; text-decoration: none; }
    .resident-bottom-nav a[aria-current="page"] { color: var(--resident-red); background: #fff3f3; font-weight: 700; border-radius: 8px; }
    .resident-app.keyboard-open .resident-bottom-nav { display: none; }
    .resident-app .modal-dialog, .resident-login .modal-dialog { margin: max(8px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); width: auto; }
    .resident-app #ViewFileModal .modal-content { max-height: calc(100vh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
    .resident-app .modal .modal-body, .resident-login .modal .modal-body { padding: 16px; }
    .resident-app .jconfirm .jconfirm-box-container { width: 100% !important; margin-left: 0 !important; padding: 0 8px; }
    .resident-app .jconfirm .jconfirm-holder { padding: max(8px, env(safe-area-inset-top, 0px)) env(safe-area-inset-right, 0px) max(8px, env(safe-area-inset-bottom, 0px)) env(safe-area-inset-left, 0px) !important; }
    .resident-app .jconfirm .jconfirm-box { padding: 16px; margin: 0 !important; }
    .resident-app .jconfirm .jconfirm-content .row { margin-left: 0; margin-right: 0; width: 100% !important; }
    .resident-app .jconfirm .jconfirm-content .row > [class*="col-sm-"] { padding: 0 !important; margin-bottom: 12px; }
    .resident-app .jconfirm .jconfirm-content .form-group { margin-bottom: 12px; }
    .resident-app .jconfirm .jconfirm-buttons button { flex: 1 1 100px; }
    .resident-app .jconfirm #checkout_distance_ft { width: 100% !important; }
    .resident-app .table-responsive > .table > tbody > tr > td { white-space: normal; min-width: 84px; }
    .resident-app #chores .slimScrollDiv, .resident-app #chores_list, .resident-app #completedchores_list, .resident-app #overnight_pass .slimScrollDiv, .resident-app #passrequests_div { height: auto !important; max-height: none !important; overflow: visible !important; }
    .resident-app #chores .slimScrollBar, .resident-app #chores .slimScrollRail, .resident-app #overnight_pass .slimScrollBar, .resident-app #overnight_pass .slimScrollRail { display: none !important; }
    .resident-app #chores .list-group-item .row { display: flex; flex-wrap: wrap; }
    .resident-app #chores .list-group-item .col-xs-1 { width: 40px; flex: 0 0 40px; }
    .resident-app #chores .list-group-item .col-xs-10 { flex: 1; width: auto; min-width: 0; }
    .resident-app #chores .list-group-item .col-xs-12 { width: 100%; padding: 8px 0 0 40px !important; text-align: left !important; }
    .resident-app #chores .list-group-item span { margin-left: 0 !important; }
    .resident-app #chores .list-group-item label { display: flex; min-width: 36px; min-height: 44px; align-items: center; }
    .resident-app [name="chorenotesbtn"] { max-width: 100% !important; }
    .resident-app #passrequests_div .dropdown-menu { right: 0; left: auto; margin: 4px 0 0 !important; }
    .resident-app #toast-container { top: calc(var(--resident-header-height) + 8px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; width: auto; }
    .resident-app #toast-container > div { width: 100%; opacity: 1; }
}
@media (max-width: 400px) {
    .resident-app .mood-options .greeting_feeling { font-size: 13px !important; }
}
@media (max-width: 359px) {
    .resident-header .navbar-brand img { width: 88px; }
    .resident-header-button { font-size: 12px; padding: 6px; }
    .resident-app .nav-tabs > li > a { font-size: 13px; }
    .resident-app .mood-options { gap: 3px; margin-left: -8px; margin-right: -8px; }
    .resident-app .mood-options .greeting_feeling { font-size: 12px !important; padding-left: 2px !important; padding-right: 2px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .resident-app *, .resident-login * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.resident-login .login-title { font-size: 26px; margin: 0 0 8px; }
.resident-login .login-title + p { color: var(--resident-muted); margin-bottom: 24px; }
.resident-app #main-content { scroll-margin-top: calc(var(--resident-header-height) + 12px + env(safe-area-inset-top, 0px)); }
/* Override the dashboard's more-specific control and login rules. */
.resident-header .navbar-header { padding: 0; }
.resident-header-button { white-space: nowrap; }
.resident-header svg { flex-shrink: 0; }
.resident-header .resident-notifications { margin-top: 8px !important; }
.resident-app .btn:not(.btn-link):not(.btn-circle), .resident-login .btn:not(.btn-link):not(.btn-circle) { border-radius: 8px; box-shadow: none; }
.resident-app .btn.btn-default { border: 1px solid var(--resident-border); background: #f5f7f9; color: var(--resident-ink); }
.resident-app .btn.bg-green:not(.greeting_feeling) { background: #276c45 !important; }
.resident-login .login-box .logo small { color: var(--resident-muted); }
.resident-login .login-box a { color: #17639a; }
.resident-app #updateuserpwbtn { width: auto; min-width: 100px; }
.resident-app .resident-chore-notes { box-shadow: none !important; background: #f3f5f7; padding: 8px !important; margin: 8px 0; }
.resident-app .resident-chore-notes small { font-size: 14px !important; }
.resident-app #ViewFileModal .modal-header { flex: 0 0 auto; }
.resident-app input.resident-chore-checkbox[type="checkbox"] { position: static; left: auto; opacity: 1; width: 24px; height: 24px; margin: 0; accent-color: #006e63; cursor: pointer; }
.resident-app .resident-chore-control { min-height: 44px; min-width: 36px; display: flex; align-items: center; }
.resident-app .sidebar .user-info { height: auto; min-height: 135px; background-color: var(--resident-red); background-size: cover; }
.resident-app .sidebar .user-info .info-container { top: 0; margin-top: 12px; }
.resident-app .sidebar .user-info .info-container .name, .resident-app .sidebar .user-info .info-container .email { max-width: 100%; }
@media (max-width: 1169px) { .resident-app .sidebar .menu { height: auto; overflow: visible; } }
.resident-privacy .login-box { max-width: 850px; }
.resident-privacy .container { width: 100%; padding: 0; }
.resident-privacy .row, .resident-privacy #pageHeader { color: var(--resident-ink) !important; }
.resident-privacy #pageHeader { font-size: 28px; margin: 32px 0 24px; }
.resident-privacy .light-blue { color: inherit; background: transparent !important; }
.resident-privacy #contract-body { overflow-wrap: anywhere; line-height: 1.7; }
.resident-error { box-sizing: border-box; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.resident-error-card { box-sizing: border-box; max-width: 440px; width: 100%; padding: 28px; text-align: center; background: white; border-radius: 16px; box-shadow: 0 4px 20px rgba(36,55,70,.08); }
.resident-error-card img { max-width: 100%; height: auto; }
.resident-error-card h1 { font-size: 26px; line-height: 1.3; }
.resident-error-code { color: var(--resident-muted); font-size: 18px; margin: 28px 0 0; }
.resident-error-card .btn { box-sizing: border-box; display: block; width: 100%; margin-top: 16px; border: 0; text-decoration: none; font-family: inherit; cursor: pointer; }
.resident-error-home { background: #eef3f6; }
/* iOS can shrink only the visual viewport when its keyboard opens. */
.keyboard-open.resident-app .jconfirm, .keyboard-open.resident-app .modal, .keyboard-open.resident-login .modal {
    top: var(--resident-visible-top, 0px);
    bottom: auto;
    height: var(--resident-visible-height, 100%);
}
.keyboard-open.resident-app .jconfirm .jconfirm-box {
    display: flex;
    flex-direction: column;
    max-height: calc(var(--resident-visible-height) - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
}
.keyboard-open.resident-app .jconfirm .jconfirm-box .jconfirm-content-pane { flex: 1 1 auto; min-height: 0; height: auto !important; overflow-y: auto !important; }
.keyboard-open.resident-app .jconfirm .jconfirm-title-c, .keyboard-open.resident-app .jconfirm .jconfirm-buttons { flex: 0 0 auto; }
.keyboard-open.resident-app .modal-content, .keyboard-open.resident-login .modal-content { max-height: calc(var(--resident-visible-height) - 24px); overflow-y: auto; }
/* Lifetime sobriety stays visible while the bar tracks each calendar milestone. */
.resident-app .sobriety-card {
    margin: 0 0 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 12px;
    overflow-wrap: anywhere;
}
.resident-app .sobriety-since { margin: 0; color: var(--resident-ink); }
.resident-app .sobriety-counter { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 20px 0 24px; }
.resident-app .sobriety-counter > div { flex: 1 1 auto; display: flex; align-items: baseline; gap: 5px; }
.resident-app .sobriety-counter strong { font-size: 26px; line-height: 1.2; font-weight: 700; }
.resident-app .sobriety-counter span { font-size: 15px; color: var(--resident-muted); }
.resident-app .sobriety-progress-heading, .resident-app .sobriety-progress-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; color: var(--resident-muted); }
.resident-app .sobriety-progress-heading { margin-bottom: 10px; }
.resident-app .sobriety-progress-heading strong { color: var(--resident-ink); }
.resident-app .sobriety-progress-meta { margin-top: 10px; }
.resident-app .sobriety-progress-track { height: 12px; border-radius: 999px; background: #e6eeef; overflow: hidden; }
.resident-app .sobriety-progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #009688, #26a69a); }
.resident-app .sobriety-card--milestone { background: #f5fbf7; border-color: #c8e6d4; }
.resident-app .sobriety-card--milestone .sobriety-progress-fill { background: #4caf50; }
.resident-app .sobriety-celebration { display: flex; align-items: center; gap: 12px; margin: -4px 0 16px; color: #276c45; }
.resident-app .sobriety-celebration-icon { flex: 0 0 auto; font-size: 28px; }
.resident-app .sobriety-celebration strong, .resident-app .sobriety-celebration div > span { display: block; }
.resident-app .sobriety-celebration strong { font-size: 17px; }
.resident-app .sobriety-celebration div > span { margin-top: 2px; font-size: 13px; color: var(--resident-muted); }
@media (max-width: 767px) {
    .resident-app .sobriety-card { padding: 16px; }
    .resident-app .sobriety-counter { gap: 12px; }
    .resident-app .sobriety-counter strong { font-size: 24px; }
    .resident-app .sobriety-counter span { font-size: 14px; }
}
