:root{font-family:Inter,system-ui,-apple-system,sans-serif;color:#183630;background:#f3f6f2;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #dfa84b;outline-offset:2px}a{color:#245f4c}.heading{display:flex;align-items:start;justify-content:space-between;gap:14px;margin:0 0 22px}.heading h1{margin:0 0 6px;font-size:28px}.muted{color:#688075}.button{border:0;border-radius:9px;padding:11px 16px;font-weight:700;background:#25664e;color:white}.button.secondary{background:white;color:#235843;border:1px solid #c5d6cc}.button.danger{background:#fff;color:#a13434;border:1px solid #dec2c2}.button:disabled{opacity:.5;cursor:not-allowed}.panel{background:white;border:1px solid #dfe9e0;border-radius:14px;padding:22px;margin-bottom:16px;box-shadow:0 3px 18px #213e2b09}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions .button{margin-top:8px}.row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #edf1ed}.row:last-child{border-bottom:0}.row strong,.row small{display:block}.row small{color:#718579;margin-top:4px}.project-button{width:100%;background:transparent;border:0;text-align:left;color:inherit}.project-button:hover{background:#f4f8f5}.tag{font-size:12px;color:#5a7a68;background:#e9f3eb;border-radius:20px;padding:5px 9px}.fields{display:grid;gap:14px}.fields.two{grid-template-columns:1fr 1fr}label{display:grid;gap:6px;font-weight:600;font-size:14px}input,select,textarea{width:100%;border:1px solid #cbd9d0;border-radius:8px;background:white;padding:10px;color:#183630}textarea{resize:vertical;min-height:80px}.login{max-width:440px;margin:8vh auto;padding:0 16px}.login h1{font-size:28px}.notice{padding:12px;border-radius:8px;background:#edf7ee;color:#205837;margin-bottom:14px;white-space:pre-wrap}.notice.error{background:#fff0ed;color:#96392e}.error:empty,.notice:empty{display:none}.pictures{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.pictures figure{margin:0}.pictures img{width:100%;max-height:240px;object-fit:cover;border-radius:8px}.pictures figcaption{font-size:13px;margin-top:5px}table{width:100%;border-collapse:collapse}th,td{padding:9px;text-align:left;border-bottom:1px solid #e5ebe5;vertical-align:top;font-size:14px}dialog{border:0;border-radius:14px;max-width:600px;width:calc(100% - 30px);padding:24px}dialog::backdrop{background:#102d24aa}.dialog-head{display:flex;justify-content:space-between;align-items:start}.dialog-head h2{margin:0 0 18px}.close{border:0;background:none;font-size:25px}.empty{color:#74887b;padding:12px 0}.loading{padding:30px}.print-only{display:none}@media print{body{background:white}.sidebar,.no-print,dialog{display:none!important}.content{padding:0;width:100%}.panel{box-shadow:none;border:0;padding:0}.print-only{display:block}figure,img,tr{break-inside:avoid;page-break-inside:avoid}img{max-height:8in;max-width:100%;object-fit:contain}}

.shell {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 220px;
    flex: none;
    display: flex;
    flex-direction: column;
    background: #173a32;
    color: white;
    padding: 20px 14px;
}
.brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    border: 0;
    background: none;
    color: inherit;
    padding: 10px;
    font-size: 23px;
    font-weight: 750;
    letter-spacing: -.045em;
    text-align: left;
}
.menu-toggle {
    display: none;
}
.navigation-panel {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-top: 16px;
}
.nav {
    display: grid;
    gap: 3px;
}
.nav button {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #deeee5;
    text-align: left;
}
.nav button[aria-current="page"],
.nav button:hover {
    color: white;
    background: #30574a;
}
.account {
    margin-top: auto;
    padding-top: 18px;
}
.user {
    display: grid;
    gap: 2px;
    padding: 14px 12px 8px;
    border-top: 1px solid #46675a;
    color: #c7dacd;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.user strong {
    color: #f4faf6;
    font-size: 14px;
}
.account-links button {
    font-size: 14px;
}
.content {
    width: min(1200px, 100%);
    min-width: 0;
    margin: 0 auto;
    padding: 32px clamp(16px, 4vw, 55px);
}
.heading {
    align-items: center;
}
.heading h1 {
    overflow-wrap: anywhere;
}
.panel h2 {
    margin: 0 0 12px;
    font-size: 20px;
}
.balance-summary {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    margin: 0 0 12px;
    border: 1px solid #d4e2d9;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    font-variant-numeric: tabular-nums;
}
.balance-summary > div {
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px clamp(12px, 2.3vw, 24px);
}
.balance-summary > div + div {
    border-inline-start: 1px solid #e1eae3;
}
.balance-summary .balance-main {
    background: #e7f2e9;
}
.balance-summary dt {
    color: #526b5d;
    font-size: 13px;
    line-height: 1.3;
}
.balance-summary dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
    font-weight: 700;
    font-size: clamp(16px, 1.8vw, 23px);
    line-height: 1.2;
}
.balance-summary .balance-main dd {
    color: #15543e;
    font-size: clamp(19px, 2vw, 27px);
}
.project-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 16px;
}
.project-actions button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    min-height: 44px;
    border: 1px solid #c3d5c8;
    border-radius: 9px;
    padding: 6px 8px;
    background: white;
    color: #225a43;
    font-size: 15px;
    font-weight: 650;
}
.project-actions button[data-action="entry"] {
    background: #25664e;
    border-color: #25664e;
    color: white;
}
.project-actions button:hover {
    filter: brightness(.96);
}
.project-actions button span {
    font-size: 18px;
    font-weight: 450;
}
@media (max-width: 700px) {
    .shell {
        display: block;
    }
    .sidebar {
        position: relative;
        width: 100%;
        padding: 4px 12px;
        z-index: 3;
    }
    .logo {
        padding: 9px 4px;
        font-size: 21px;
    }
    .menu-toggle {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: white;
    }
    .menu-toggle:hover,
    .menu-toggle[aria-expanded="true"] {
        background: #30574a;
    }
    .menu-lines,
    .menu-lines::before,
    .menu-lines::after {
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        border-radius: 2px;
    }
    .menu-lines { position: relative; }
    .menu-lines::before, .menu-lines::after { position: absolute; content: ''; }
    .menu-lines::before { top: -6px; }
    .menu-lines::after { top: 6px; }
    .navigation-panel {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        right: 8px;
        width: min(296px, calc(100% - 16px));
        max-height: 75vh;
        max-height: 75dvh;
        margin: 0;
        padding: 8px;
        overflow-y: auto;
        background: #173a32;
        border-radius: 12px;
        box-shadow: 0 6px 28px #142d243d;
    }
    .menu-open .navigation-panel { display: block; }
    .account { padding-top: 4px; }
    .content { padding: 16px 12px; }
    .heading { margin-bottom: 12px; }
    .heading h1 { margin: 0; font-size: 24px; }
    .panel { padding: 14px; margin-bottom: 12px; }
    .panel h2 { margin-bottom: 7px; font-size: 19px; }
    .fields.two { grid-template-columns: 1fr; }
    .project-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; }
    table { min-width: 600px; }
    .table-wrap { overflow: auto; }
}
@media (max-width: 480px) {
    .balance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .balance-summary > div { padding: 8px 12px; }
    .balance-summary .balance-main {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: baseline;
        gap: 2px 8px;
        padding-block: 10px;
    }
    .balance-summary .balance-main dd { margin: 0; font-size: 22px; }
    .balance-summary > div:nth-child(2) { border-inline-start: 0; }
}
@media print {
    .content { width: 100%; padding: 0; }
    .project-actions, .sidebar { display: none; }
    .shell { display: block; }
}
.due-reminder-list {
    list-style: none;
    padding: 0;
    max-height: 55vh;
    overflow: auto;
}
.due-reminder-list li {
    padding: 10px 0;
    border-bottom: 1px solid #dfe9e0;
    overflow-wrap: anywhere;
}
.due-reminder-list p { margin: 4px 0; }
.reminders-panel h2 { margin: 0 0 .5rem; font-size: 1.2rem; }
.reminder-list { list-style: none; margin: 0; padding: 0; }
.reminder-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem;
    min-height: 3rem;
    padding: .125rem 0;
}
.reminder-row + .reminder-row { border-top: 1px solid #e5ede8; }
.reminder-copy { min-width: 0; padding-block: .2rem; }
.reminder-copy strong { display: block; font-size: .94rem; line-height: 1.25; overflow-wrap: anywhere; }
.reminder-copy small {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 .45rem;
    margin-top: 2px;
    color: #526b5e;
    font-size: .8125rem;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}
.reminder-state::before { content: '·'; margin-inline-end: .45rem; color: #62796b; }
.reminder-row[data-status="completed"] .reminder-state { font-weight: 650; color: #216044; }
.reminder-row[data-status="completed"] strong { color: #506359; }
.reminder-actions { display: inline-flex; align-items: center; gap: .125rem; }
.reminder-actions button {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 .375rem;
    border: 0;
    border-radius: .5rem;
    background: transparent;
}
.reminder-toggle:hover { background: #eef5ef; }
.reminder-actions button:disabled { opacity: .65; cursor: progress; }
.reminder-box {
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    border: 1.5px solid #677f71;
    border-radius: .35rem;
}
.reminder-toggle[aria-checked="true"] .reminder-box { background: #25664e; border-color: #25664e; }
.reminder-toggle[aria-checked="true"] .reminder-box::after {
    content: '';
    width: .3rem;
    height: .6rem;
    margin-top: -.15rem;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.reminder-delete { font-size: .875rem; font-weight: 600; color: #8a3932; }
.reminder-delete:hover { background: #fbefed; }
@media (max-width: 700px) {
    .reminders-panel { padding: .8rem .875rem .25rem; }
    .reminders-panel h2 { margin-bottom: .25rem; }
    .reminder-copy strong { font-size: .875rem; }
}
@media (forced-colors: active) {
    .reminder-toggle[aria-checked="true"] .reminder-box::after { border-color: ButtonText; }
}

.logo {text-transform:none;letter-spacing:-.04em}
.logo::after,.login h1::after {content:'✓';display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;border-radius:.3em;font-size:.5em;line-height:1;inline-size:1.3em;block-size:1.3em;margin-inline-start:.32em;background:#c3e8ae;color:#174d38;letter-spacing:0}
.preview-version {display:block;color:#c4decf;font-size:.75rem;margin-bottom:.5rem}
.demo-choices {border-top:1px solid #dfe7e1;padding-top:.65rem;margin-top:.8rem}
.demo-choices h2 {font-size:1rem}.demo-roles {display:flex;gap:.5rem;flex-wrap:wrap}
.button.text-button {display:inline;padding:.25rem 0;background:transparent;color:#276447;border:0;text-decoration:underline;text-underline-offset:3px;box-shadow:none}
.photo-delete {margin-inline-start:.6rem;color:#913e33!important}
.button.danger {background:#963d35;color:white;border-color:#963d35}
.plan-mode {margin-bottom:1rem}
