:root {
    --brand: #0866ff;
    --ink: #102c60;
    --muted: #7b8da9;
    --line: #eaf0f8;
    --canvas: #f5f9ff;
    --radius: 18px;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.55;
}
a {
    color: var(--brand);
    text-decoration: none;
}
a:hover {
    color: var(--ink);
}
button,
input,
select,
textarea {
    font: inherit;
}
button {
    cursor: pointer;
}
[hidden] {
    display: none !important;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    font-size: 31px;
    letter-spacing: -1.1px;
    font-weight: 740;
    margin-bottom: 8px;
}
h2 {
    font-size: 16px;
    font-weight: 720;
    letter-spacing: -0.25px;
}
small {
    font-size: 11px;
}
.muted {
    color: var(--muted);
}
.eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 12px;
}
.btn {
    border-radius: 9px;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 620;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
}
.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 5px 12px #0866ff18;
}
.btn-primary:hover {
    background: var(--brand);
    border-color: var(--brand);
    filter: brightness(0.94);
}
.btn-light {
    background: #f4f8fe;
    border: 1px solid var(--line);
    color: var(--ink);
}
.btn-white {
    color: var(--brand);
    background: #fff;
    border: 1px solid #ffffff55;
}
[data-icon] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
[data-icon] svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.brand {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 26px;
    font-weight: 670;
    letter-spacing: -1.2px;
    color: #082963;
    white-space: nowrap;
}
.brand strong {
    color: #0866ff;
    font-weight: 720;
}
.uploaded-logo {
    max-width: 190px;
    max-height: 55px;
    object-fit: contain;
}
.app-shell {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 230px;
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 28px 17px 18px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    overflow: auto;
    z-index: 30;
}
.sidebar .brand {
    padding: 0 7px;
    margin-bottom: 32px;
}
.workspace {
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 12px 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 25px;
}
.workspace-icon {
    height: 32px;
    width: 32px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: var(--brand);
    border-radius: 8px;
    font-weight: 700;
}
.workspace strong {
    font-size: 12px;
    display: block;
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.workspace small {
    display: block;
    color: var(--muted);
    font-size: 10px;
}
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22b996;
    flex-shrink: 0;
}
.workspace .status-dot {
    margin-left: auto;
}
.nav-item {
    border: none;
    background: none;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 13px;
    border-radius: 8px;
    padding: 11px 12px;
    margin: 2px 0;
    color: #52668c;
    font-size: 12px;
    text-align: left;
}
.nav-item:hover {
    color: var(--brand);
    background: #f5f9ff;
}
.nav-item.active {
    background: #eaf3ff;
    color: var(--brand);
    font-weight: 650;
}
.nav-icon svg {
    width: 18px;
    height: 18px;
}
.nav-label {
    color: #a1afc3;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 25px 12px 8px;
}
.soon {
    font-size: 8px;
    margin-left: auto;
    background: #edf5ff;
    color: #5d8ce9;
    padding: 2px 6px;
    border-radius: 5px;
}
.sidebar-bottom {
    margin-top: auto;
    padding-top: 28px;
}
.main-shell {
    margin-left: 230px;
    flex: 1;
    min-width: 0;
}
.topbar {
    height: 82px;
    border-bottom: 1px solid var(--line);
    background: #ffffffdd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 38px;
}
.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #8291aa;
    background: #f6f8fc;
    padding: 10px 15px;
    border-radius: 8px;
    width: 350px;
    font-size: 11px;
}
.search-box kbd {
    margin-left: auto;
    background: #fff;
    color: #9ca9bd;
    border: 1px solid #e5eaf3;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}
.notification-link {
    color: #627796;
    position: relative;
}
.notification-link i {
    position: absolute;
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: #ffb12d;
    top: 0;
    right: 1px;
}
.user-chip {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 11px;
}
.user-chip small {
    display: block;
    color: var(--muted);
    font-size: 10px;
}
.user-chip > span:last-child {
    color: var(--muted);
    margin-left: 10px;
}
.avatar {
    height: 36px;
    width: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    background: #e8f1ff;
    color: #3269c1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 3px solid #fff;
}
.avatar-0 {
    background: #e8eafc;
    color: #7261ad;
}
.avatar-1 {
    background: #fbebdf;
    color: #af7140;
}
.avatar-2 {
    background: #e2f2ed;
    color: #4a9179;
}
.avatar-3 {
    background: #fae7eb;
    color: #bd677c;
}
.content {
    padding: 30px 38px 48px;
    max-width: 1550px;
    margin: auto;
    min-height: calc(100vh - 144px);
}
.demo-strip {
    color: #8291a7;
    font-size: 9px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 22px;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}
.page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.page-heading .eyebrow {
    margin-bottom: 6px;
    font-size: 9px;
}
.wave {
    color: #ffb92c;
    font-size: 26px;
    margin-left: 7px;
}
.panel {
    border-radius: var(--radius);
    border: 1px solid #eaf0f9;
    background: #fff;
    box-shadow: 0 4px 15px #17336602;
    overflow: hidden;
}
.panel-heading {
    padding: 22px 24px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.panel-heading h2 {
    margin: 0;
}
.panel-heading a {
    font-size: 10px;
}
.balance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}
.balance-card {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 23px;
    background: #fff;
    border: 1px solid #eaf0f9;
    border-radius: 14px;
}
.metric-icon {
    height: 47px;
    width: 47px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 47px;
}
.metric-icon svg {
    height: 24px;
    width: 24px;
}
.blue {
    background: #edf5ff;
    color: #0866ff;
}
.gold {
    background: #fff7e3;
    color: #efa300;
}
.teal {
    background: #e8f8f6;
    color: #19aa9c;
}
.pale {
    background: #f1edff;
    color: #8f68cd;
}
.balance-card span:not(.metric-icon) {
    color: #647898;
    font-size: 10px;
}
.balance-card strong {
    display: block;
    font-size: 29px;
    line-height: 1.35;
    letter-spacing: -0.9px;
}
.balance-card small {
    display: block;
    color: #94a4bb;
    font-size: 9px;
}
.balance-card .date-metric {
    font-size: 22px;
    margin: 4px 0;
    letter-spacing: -0.6px;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 23px;
    align-items: start;
}
.right-column {
    display: grid;
    gap: 20px;
}
.feed-entry {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 21px 24px;
    position: relative;
}
.feed-entry + .feed-entry {
    border-top: 1px solid #f0f4fa;
}
.feed-entry-body {
    flex: 1;
    min-width: 0;
}
.feed-entry-body > div {
    font-size: 11px;
}
.feed-entry-body p {
    font-size: 11px;
    color: #6e81a0;
    margin: 6px 0;
    line-height: 1.65;
}
.feed-entry-body small {
    font-size: 9px;
    color: #9aaac0;
}
.points-pill {
    color: #d79b13;
    background: #fff6d9;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 4px;
}
.gratitude-panel {
    background: linear-gradient(135deg, #eaf4ff, #e5f0ff 50%, #f0f5ff);
    border: 1px solid #dceaff;
    border-radius: var(--radius);
    padding: 27px;
    position: relative;
    overflow: hidden;
}
.gratitude-panel h2 {
    font-size: 22px;
    line-height: 1.4;
    max-width: 260px;
    margin: 14px 0 10px;
}
.gratitude-panel p {
    color: #6480a8;
    font-size: 12px;
    max-width: 250px;
    margin-bottom: 20px;
}
.little-stars {
    color: #e4ad3e;
    font-size: 21px;
}
.little-stars span {
    color: #ffb92c;
    font-size: 32px;
    margin: 0 5px;
}
.upcoming .panel-heading {
    padding-bottom: 6px;
}
.group-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
}
.group-mini:last-child {
    padding-bottom: 22px;
}
.group-mini strong {
    font-size: 11px;
    display: block;
}
.group-mini small {
    color: #8c9fb9;
    font-size: 9px;
}
.group-mini .metric-icon {
    height: 33px;
    width: 33px;
    flex-basis: 33px;
    border-radius: 10px;
}
.group-mini svg {
    height: 17px;
    width: 17px;
}
.quote-panel {
    display: flex;
    align-items: center;
    gap: 17px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 23px;
}
.quote-panel span {
    font-size: 30px;
    color: #f7ba30;
}
.quote-panel p {
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
}
.app-footer {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #7187a9;
    padding: 18px 38px;
    border-top: 1px solid var(--line);
    font-size: 12px;
}
.app-footer span {
    font-size: 10px;
    color: #a0aec2;
}
.app-footer small {
    margin-left: auto;
    color: #9aabc2;
    font-size: 9px;
}
.form-panel {
    padding: 28px;
}
.form-panel h2 {
    margin-bottom: 24px;
}
.form-grid {
    display: grid;
    grid-template-columns: minmax(300px, 590px) 1fr;
    gap: 45px;
}
.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}
label {
    display: block;
    font-size: 12px;
    font-weight: 550;
    margin-bottom: 21px;
}
.form-control,
.form-select {
    color: var(--ink);
    border: 1px solid #e1eaf6;
    background-color: #fff;
    border-radius: 8px;
    font-size: 12px;
    padding: 11px 13px;
    margin-top: 7px;
    min-height: 42px;
}
.form-control::placeholder {
    color: #9baac0;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px #0866ff10;
}
.form-control-color {
    width: 90px;
    padding: 5px;
}
select[multiple] {
    min-height: 130px;
}
textarea {
    resize: vertical;
}
.check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 400;
    font-size: 11px;
}
.check input {
    accent-color: var(--brand);
}
.amount-options {
    display: flex;
    gap: 12px;
    margin: -7px 0 25px;
}
.amount-options button {
    border: 1px solid #e0e9f7;
    background: #fff;
    color: #365785;
    border-radius: 8px;
    padding: 11px;
    flex: 1;
    font-size: 12px;
}
.amount-options button.selected {
    border-color: var(--brand);
    color: #fff;
    background: var(--brand);
}
.available-chip {
    border: 1px solid #d7e8ff;
    color: var(--brand);
    background: #edf5ff;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 11px;
}
.give-aside {
    text-align: center;
    padding: 35px 22px;
    align-self: center;
}
.giant-heart {
    font-size: 110px;
    color: #8ebeff;
    display: block;
    line-height: 1.1;
}
.give-aside h2 {
    font-size: 23px;
    max-width: 280px;
    margin: 25px auto 15px;
}
.give-aside p {
    color: #8196b5;
    font-size: 12px;
}
.soft-note {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    padding: 17px;
    background: #f5f9ff;
    color: #7b8da9;
    font-size: 12px;
}
.soft-note p {
    margin: 0;
}
.give-aside .soft-note {
    margin-top: 40px;
    text-align: left;
}
.review-summary {
    background: #eef6ff;
    border: 1px solid #d5e7ff;
    padding: 16px;
    border-radius: 9px;
    margin: 15px 0;
    white-space: pre-line;
}
.table {
    margin-bottom: 0;
    font-size: 11px;
    color: var(--ink);
}
.table > :not(caption) > * > * {
    color: inherit;
    padding: 17px 22px;
    border-bottom: 1px solid #edf2f9;
    vertical-align: middle;
}
.table thead th {
    font-size: 10px;
    font-weight: 600;
    color: #7187a7;
    background: #fcfdff;
    white-space: nowrap;
}
.table small {
    display: block;
    color: #8fa0b9;
    margin-top: 4px;
    font-size: 9px;
}
.table .positive {
    color: #1da889;
    font-weight: 700;
}
.table .negative {
    color: #e57177;
    font-weight: 700;
}
.badge-soft {
    display: inline-block;
    border-radius: 5px;
    color: #6586b3;
    background: #eff5fc;
    font-size: 10px;
    padding: 4px 8px;
}
.empty-cell {
    padding: 45px !important;
    text-align: center;
    color: #8ca0bd !important;
}
.filter-row {
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 0 24px 20px;
}
.filter-row input,
.filter-row select {
    min-width: 80px;
    margin: 0;
    max-width: 180px;
}
.panel-bottom {
    padding: 18px 24px;
    font-size: 10px;
    color: #96a6be;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}
.panel-bottom p {
    margin: 0;
}
.point-note {
    display: flex;
    gap: 25px;
    margin-bottom: 24px;
    font-size: 11px;
    color: #7c90af;
}
.integrity-banner {
    background: #edf9f5;
    color: #389a80;
    border: 1px solid #d5eee5;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.people-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.person-card {
    text-align: center;
    padding: 28px 20px;
}
.person-card .avatar {
    height: 65px;
    width: 65px;
    font-size: 18px;
    margin-bottom: 15px;
}
.person-card h2 {
    font-size: 14px;
}
.person-card p {
    color: var(--muted);
    font-size: 11px;
}
.group-card {
    padding: 25px;
}
.group-card h2 {
    margin: 16px 0 9px;
}
.group-card p {
    color: var(--muted);
    font-size: 11px;
    min-height: 20px;
}
.group-card > a {
    font-size: 11px;
    display: block;
    margin-top: 20px;
}
.local-search {
    max-width: 280px;
}
.button-row {
    display: flex;
    gap: 9px;
}
.inline-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.text-button {
    background: none;
    border: 0;
    color: #6684ae;
    padding: 4px 0;
    font-size: 10px;
}
.text-button:hover {
    color: var(--brand);
}
.feed-actions {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}
.feed-layout {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 25px;
    align-items: start;
}
.section-label {
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 6px 0 24px;
    color: var(--brand);
}
.section-label:not(:first-child) {
    margin-top: 30px;
    border-top: 1px solid var(--line);
    padding-top: 30px;
}
.switch-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f4fa;
    padding: 13px 0;
    margin: 0;
}
.switch-row input[type="checkbox"] {
    appearance: none;
    width: 34px;
    height: 20px;
    background: #dbe4ef;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}
.switch-row input[type="checkbox"]::before {
    content: "";
    position: absolute;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: 0.15s;
}
.switch-row input:checked {
    background: var(--brand);
}
.switch-row input:checked::before {
    transform: translateX(14px);
}
.conversion-example {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f2f8ff;
    border-radius: 12px;
    margin-bottom: 22px;
}
.conversion-example strong {
    font-size: 13px;
}
.module-access {
    display: flex;
    align-items: center;
    gap: 25px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 20px;
}
.module-access .check {
    margin: 0;
}
.module-access strong {
    margin-right: auto;
}
.empty-state {
    text-align: center;
    padding: 50px 30px;
    color: #94a7c1;
}
.empty-state > [data-icon] svg {
    width: 35px;
    height: 35px;
    margin-bottom: 15px;
}
.games-empty {
    padding: 80px 40px;
}
.games-empty h2 {
    max-width: 440px;
    font-size: 22px;
    line-height: 1.5;
    margin: 25px auto;
    color: var(--ink);
}
.game-shapes {
    color: #89b9ff;
    font-size: 60px;
    letter-spacing: 14px;
}
.reference {
    font-family: monospace;
}
.table pre {
    max-width: 500px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 10px;
    padding: 12px;
    background: #f5f8fd;
    margin-top: 12px;
}
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.08fr 1fr;
}
.auth-story {
    background: linear-gradient(145deg, #eaf5ff, #e2eeff 70%, #ebf3ff);
    padding: 45px 65px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    overflow: hidden;
}
.auth-story h1 {
    font-size: 51px;
    line-height: 1.1;
    max-width: 470px;
    margin: 15px 0 20px;
    letter-spacing: -2px;
}
.auth-story p {
    color: #6884a8;
    font-size: 16px;
}
.auth-story > small {
    color: #8ca4c4;
}
.gratitude-art {
    height: 285px;
    position: relative;
}
.orb {
    position: absolute;
    border-radius: 50%;
}
.orb-one {
    width: 230px;
    height: 230px;
    background: #bddaff55;
    left: 10%;
    top: 10px;
}
.orb-two {
    width: 170px;
    height: 170px;
    background: #b4d5ff77;
    right: 2%;
    top: 60px;
}
.art-card {
    background: #ffffffd9;
    backdrop-filter: blur(10px);
    position: absolute;
    top: 35px;
    left: 16%;
    width: 240px;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 23px;
    box-shadow: 0 16px 45px #365e9b15;
    transform: rotate(-5deg);
    text-align: center;
}
.art-card .art-star {
    color: #ffb126;
    font-size: 30px;
    display: block;
}
.art-card strong {
    display: block;
    font-size: 36px;
    letter-spacing: -1px;
}
.art-card > span:last-of-type {
    color: #7992b1;
    font-size: 11px;
}
.avatar-stack {
    margin-top: 17px;
}
.avatar-stack i {
    display: inline-grid;
    place-items: center;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background: #dceaff;
    color: #5782bd;
    font-size: 8px;
    font-style: normal;
    border: 2px solid white;
    margin-left: -6px;
}
.avatar-stack i:nth-child(2) {
    background: #f9e7d7;
    color: #aa7a4d;
}
.avatar-stack i:nth-child(3) {
    background: #d7f1e9;
}
.art-note {
    position: absolute;
    right: 0;
    top: 15px;
    transform: rotate(9deg);
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 20px;
    color: #6692cf;
}
.auth-form {
    padding: 65px;
    max-width: 560px;
    width: 100%;
    margin: auto;
}
.auth-form h2 {
    font-size: 31px;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -1px;
}
.auth-form > .muted {
    margin-bottom: 30px;
}
.auth-form .btn {
    margin-top: 7px;
}
.auth-symbol {
    font-size: 40px;
    color: var(--brand);
}
.code-input {
    letter-spacing: 10px;
    text-align: center;
    font-size: 24px;
}
.back-link {
    font-size: 11px;
    display: block;
    margin-top: 25px;
    text-align: center;
}
.secret {
    display: block;
    overflow-wrap: anywhere;
    padding: 15px;
    background: #edf5ff;
    margin-bottom: 20px;
}
.demo-login {
    border: 1px dashed #ccdaee;
    border-radius: 12px;
    padding: 18px;
    margin-top: 30px;
}
.demo-login p {
    font-size: 11px;
    color: #8194af;
}
.demo-login .eyebrow {
    margin-bottom: 5px;
}
.standalone-error {
    max-width: 600px;
    padding: 50px 25px;
    margin: auto;
}
.standalone-error h1 {
    margin: 60px 0 30px;
}
.menu-toggle,
.mobile-nav {
    display: none;
}
@media (min-width: 1500px) {
    .content {
        padding-top: 40px;
    }
    .dashboard-grid {
        grid-template-columns: 1.8fr 1fr;
    }
    .balance-card {
        padding: 28px;
    }
}
@media (max-width: 1150px) {
    .sidebar {
        width: 205px;
    }
    .main-shell {
        margin-left: 205px;
    }
    .content {
        padding: 25px;
    }
    .topbar {
        padding: 0 25px;
    }
    .brand {
        font-size: 23px;
    }
    .balance-card {
        padding: 17px;
        gap: 11px;
    }
    .balance-card .date-metric {
        font-size: 17px;
    }
    .balance-card .metric-icon {
        height: 37px;
        width: 37px;
        flex-basis: 37px;
    }
    .dashboard-grid {
        grid-template-columns: 1.45fr 1fr;
    }
    .filter-row {
        flex-wrap: wrap;
    }
    .auth-story {
        padding: 45px;
    }
    .auth-story h1 {
        font-size: 40px;
    }
    .auth-form {
        padding: 45px;
    }
}
@media (max-width: 900px) {
    .search-box {
        width: auto;
        max-width: 250px;
    }
    .people-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid,
    .feed-layout {
        grid-template-columns: 1fr;
    }
    .right-column {
        grid-template-columns: 1fr 1fr;
    }
    .quote-panel {
        display: none;
    }
    .balance-grid {
        gap: 12px;
    }
    .balance-card {
        flex-direction: column;
        text-align: center;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .give-aside {
        display: none;
    }
    .module-access {
        flex-wrap: wrap;
    }
    .auth-story {
        padding: 35px;
    }
    .auth-story h1 {
        font-size: 35px;
    }
    .art-card {
        left: 0;
    }
    .art-note {
        display: none;
    }
}
@media (max-width: 700px) {
    .sidebar {
        transform: translateX(-100%);
        transition: 0.2s;
        width: 250px;
        box-shadow: 10px 0 40px #13285015;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-shell {
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
        border: 0;
        background: none;
        color: var(--ink);
        font-size: 22px;
    }
    .topbar {
        height: 69px;
        padding: 0 20px;
    }
    .search-box {
        display: none;
    }
    .topbar-right {
        margin-left: auto;
        gap: 20px;
    }
    .user-chip {
        font-size: 10px;
    }
    .content {
        padding: 23px 18px 90px;
    }
    .demo-strip {
        font-size: 8px;
        margin-bottom: 20px;
    }
    h1 {
        font-size: 27px;
    }
    .page-heading {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 15px;
    }
    .page-heading .btn {
        padding: 9px 14px;
        font-size: 11px;
    }
    .page-heading p {
        font-size: 12px;
    }
    .balance-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .balance-card {
        padding: 19px 12px;
        align-items: flex-start;
        text-align: left;
        gap: 13px;
    }
    .balance-card:last-child {
        grid-column: 1/-1;
        flex-direction: row;
        align-items: center;
        padding: 14px 18px;
    }
    .balance-card:last-child strong {
        display: inline;
        font-size: 16px;
        margin-left: 9px;
    }
    .balance-card:last-child small {
        display: inline;
        margin-left: 10px;
    }
    .balance-card strong {
        font-size: 30px;
    }
    .right-column {
        grid-template-columns: 1fr;
    }
    .gratitude-panel {
        padding: 24px;
    }
    .upcoming {
        display: none;
    }
    .panel-heading {
        padding: 20px 18px 12px;
    }
    .feed-entry {
        padding: 19px 16px;
        gap: 9px;
    }
    .feed-entry-body > div,
    .feed-entry-body p {
        font-size: 11px;
    }
    .points-pill {
        font-size: 9px;
    }
    .avatar {
        height: 32px;
        width: 32px;
        flex-basis: 32px;
    }
    .form-panel {
        padding: 23px 19px;
    }
    .form-columns {
        grid-template-columns: 1fr;
    }
    .people-grid {
        gap: 12px;
    }
    .person-card {
        padding: 23px 10px;
    }
    .person-card h2 {
        font-size: 12px;
    }
    .form-control,
    .form-select {
        font-size: 16px;
    }
    .form-control::placeholder {
        font-size: 13px;
    }
    .table > :not(caption) > * > * {
        padding: 13px;
    }
    .point-note {
        flex-direction: column;
        gap: 8px;
    }
    .filter-row {
        padding: 0 18px 18px;
    }
    .filter-row input,
    .filter-row select {
        max-width: 45%;
        font-size: 12px;
    }
    .app-footer {
        display: none;
    }
    .mobile-nav {
        display: flex;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        background: #ffffffed;
        backdrop-filter: blur(15px);
        border-top: 1px solid var(--line);
        z-index: 20;
        padding: 10px 5px max(12px, env(safe-area-inset-bottom));
    }
    .mobile-nav a {
        font-size: 9px;
        color: #8b9bb3;
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 4px;
    }
    .mobile-nav a.active {
        color: var(--brand);
    }
    .mobile-nav svg {
        height: 21px;
        width: 21px;
    }
    .auth-shell {
        display: block;
    }
    .auth-story {
        min-height: auto;
        padding: 25px;
        background: transparent;
    }
    .auth-story > div,
    .auth-story > small {
        display: none;
    }
    .auth-story .brand {
        font-size: 28px;
    }
    .auth-form {
        padding: 20px 28px 45px;
        margin: 25px auto;
    }
    .auth-form h2 {
        font-size: 29px;
    }
    .button-row {
        flex-wrap: wrap;
    }
    .panel-bottom {
        flex-wrap: wrap;
    }
    .group-card {
        padding: 20px;
    }
}
@media (max-width: 700px) {
    .sidebar {
        visibility: hidden;
    }
    .sidebar.open {
        visibility: visible;
    }
}
