@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    font-family: 'DM Sans', 'Segoe UI', Arial, sans-serif;
    color: #263c32;
    background: #f7f8f5;
    font-synthesis: none;
    font-size: 14px;
    --green: #275d3d;
    --muted: #768078;
    --border: #e5e9e1;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
button:focus-visible,
a:focus-visible {
    outline: 3px solid #9db88c;
    outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #c5d5bd;
    border-color: #7d9b6c;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1,
h2,
h3 {
    font-family: Manrope, 'Segoe UI', sans-serif;
}
h1 {
    font-size: 29px;
    letter-spacing: -1px;
    line-height: 1.25;
    margin-bottom: 10px;
}
h2 {
    font-size: 17px;
    letter-spacing: -0.3px;
    margin-bottom: 16px;
}
h3 {
    font-size: 16px;
}
p {
    line-height: 1.65;
}
small {
    font-size: 12px;
}
.muted {
    color: var(--muted);
}
.section-label,
.eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #7a8a70;
    display: block;
    margin-bottom: 12px;
}
.row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 7px;
    padding: 12px 18px;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
    transition: background 0.15s;
}
.btn.primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 2px 3px #16382412;
}
.btn.primary:hover {
    background: #1b4b2e;
}
.btn.secondary {
    background: white;
    border-color: #dfe5d9;
    color: #42513e;
}
.btn.secondary:hover {
    background: #f4f6ef;
}
.btn.small {
    font-size: 12px;
    padding: 8px 12px;
}
.btn.danger {
    background: #fff5f2;
    color: #a5574b;
    border-color: #efd9d4;
}
.full {
    width: 100%;
}
.spaced {
    margin-top: 24px;
}
.brand-logo {
    width: 162px;
    max-height: 75px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(30%) sepia(16%) saturate(1239%) hue-rotate(89deg)
        brightness(91%) contrast(87%);
}
.app-layout {
    min-height: 100vh;
    display: flex;
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 248px;
    background: white;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 28px 20px;
    z-index: 30;
}
.sidebar-brand {
    display: block;
    padding: 0 15px;
    margin-bottom: 38px;
}
.workspace-label {
    font-size: 9px;
    letter-spacing: 1.8px;
    color: #97a08e;
    padding: 0 15px;
    margin-bottom: 16px;
    font-weight: 700;
}
.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.sidebar nav a,
.sidebar-bottom > a,
.sidebar-bottom > button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 7px;
    color: #6b766a;
    font-weight: 500;
    font-size: 12px;
    background: none;
    border: 0;
    text-align: left;
    width: 100%;
}
.sidebar nav a.selected {
    background: #edf2e7;
    color: var(--green);
    font-weight: 700;
}
.sidebar nav a:hover,
.sidebar-bottom > a:hover,
.sidebar-bottom > button:hover {
    background: #f2f5ee;
}
.sidebar nav svg {
    flex-shrink: 0;
}
.sidebar-bottom {
    margin-top: auto;
    padding-top: 40px;
}
.user-chip {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.avatar {
    display: grid;
    place-items: center;
    background: #e7eddf;
    border: 1px solid #dce5d0;
    color: #567247;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
}
.user-chip strong {
    font-size: 12px;
    display: block;
    overflow-wrap: anywhere;
}
.user-chip small {
    display: block;
    color: #87917f;
    font-size: 10px;
    margin-top: 4px;
}
.workspace {
    margin-left: 248px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.topbar {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: #fff;
    padding: 0 38px;
    font-size: 12px;
    gap: 15px;
}
.crumb {
    color: #b2b9a9;
    padding: 0 6px;
}
.site-link {
    font-size: 11px;
    color: #788371;
    white-space: nowrap;
}
.page {
    padding: 36px 38px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    flex: 1;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}
.page-heading p {
    color: #7b8475;
    font-size: 13px;
    margin-bottom: 0;
}
.page-heading .section-label {
    margin-bottom: 10px;
}
.card {
    padding: 26px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 2px 3px #243c2502;
    min-width: 0;
}
.card.flush {
    padding: 0;
    overflow: hidden;
}
.card-title,
.card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.card-heading {
    padding: 23px 25px;
    border-bottom: 1px solid #eef0e9;
}
.card-title {
    margin-bottom: 20px;
}
.card-title h2,
.card-heading h2 {
    margin: 0;
}
.card-title p,
.card-heading p {
    font-size: 12px;
    color: #849079;
    margin: 7px 0 0;
}
.text-link {
    color: #43693b;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}
.text-link:hover {
    text-decoration: underline;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}
.stat-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px 21px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}
.stat-icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    margin-bottom: 5px;
}
.green {
    background: #edf3e6;
    color: #6b8d55;
}
.amber {
    background: #fbf2dc;
    color: #b1974c;
}
.rose {
    background: #fcf0e9;
    color: #bd8872;
}
.stat-card > span:not(.stat-icon) {
    font-size: 12px;
    color: #6f7c67;
}
.stat-card strong {
    font-family: Manrope, sans-serif;
    font-size: 31px;
    letter-spacing: -1px;
}
.stat-card strong.money-stat {
    font-size: 24px;
    padding-top: 5px;
    padding-bottom: 4px;
    overflow-wrap: anywhere;
    max-width: 100%;
}
.stat-card small {
    font-size: 10px;
    color: #9ba58f;
}
.welcome-banner {
    border-radius: 11px;
    background: #eaf0e1;
    border: 1px solid #e0e8d6;
    padding: 28px 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin: 0 0 28px;
    overflow: hidden;
}
.welcome-banner h2 {
    font-size: 21px;
    font-weight: 600;
    color: #3e5d32;
    margin-bottom: 9px;
}
.welcome-banner p {
    margin: 0;
    color: #7c8c70;
    font-size: 12px;
}
.welcome-banner > span {
    font-size: 91px;
    line-height: 1;
    color: #aabc95;
    padding-right: 20px;
}
.welcome-banner .section-label {
    font-size: 9px;
}
.empty {
    text-align: center;
    padding: 58px 22px;
    color: #8b987e;
}
.empty svg {
    margin-bottom: 16px;
    color: #859b6c;
}
.empty h3 {
    color: #536548;
    margin-bottom: 10px;
}
.empty p {
    font-size: 12px;
    margin: 0;
}
.loading {
    padding: 35px;
    text-align: center;
    color: #839078;
}
.loading-screen {
    display: grid;
    place-items: center;
    height: 100vh;
    color: #738665;
}
.table-wrap {
    overflow-x: auto;
}
table {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
    font-size: 12px;
}
th {
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8a957e;
    padding: 14px 24px;
    background: #fafbf8;
    white-space: nowrap;
}
td {
    padding: 18px 24px;
    border-top: 1px solid #eff1eb;
    white-space: nowrap;
    color: #607054;
}
td strong {
    color: #3f5235;
    font-weight: 600;
}
tr:hover td {
    background: #fcfdfb;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 600;
    border-radius: 5px;
    padding: 5px 8px;
}
.badge:before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}
.badge.active {
    background: #eaf3e4;
    color: #668449;
}
.badge.expiring {
    background: #fcf2d8;
    color: #ad8b3c;
}
.badge.expired {
    background: #faeae4;
    color: #b07b66;
}
.badge.archived {
    background: #eef0ec;
    color: #858d80;
}
.footer-note {
    margin: 17px 0;
    font-size: 11px;
}
.panel-footer {
    padding: 20px 38px;
    font-size: 10px;
    color: #9ba48f;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.filters {
    padding: 20px 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--border);
}
.search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 0 12px;
    max-width: 380px;
    flex: 1;
    background: #fff;
    color: #93a084;
}
.search-field input {
    border: 0;
    min-width: 0;
    width: 100%;
    padding: 11px 0;
    background: none;
}
.filters select {
    width: auto;
    min-width: 170px;
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: #8d9783;
    gap: 12px;
}
.qr-mini {
    width: 48px;
    height: 48px;
    display: block;
    border: 1px solid var(--border);
    border-radius: 5px;
}
.name-link {
    font-weight: 600;
    font-size: 12px;
    color: #42593a;
}
.cell-sub {
    display: block;
    font-size: 10px;
    color: #96a08c;
    margin-top: 7px;
}
.memorial-table th,
.memorial-table td {
    padding: 14px 16px;
}
.back-link {
    font-size: 11px;
    display: inline-block;
    color: #81926d;
    margin-bottom: 16px;
}
.editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}
.detail-aside {
    display: grid;
    gap: 20px;
}
.detail-aside h2 {
    font-size: 15px;
}
.info-card {
    background: #f0f4e9;
    border-color: #e1e9d6;
}
.info-card h2 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
}
.info-card ol {
    padding-left: 20px;
    margin-bottom: 0;
    color: #7a8c68;
    font-size: 12px;
    line-height: 1.9;
}
.info-card li {
    padding-bottom: 14px;
}
.info-card p {
    font-size: 12px;
    color: #7b8a70;
}
.qr-card {
    text-align: center;
}
.qr-card > img {
    display: block;
    width: 170px;
    max-width: 100%;
    margin: 8px auto 20px;
}
.qr-card .row {
    justify-content: center;
}
.qr-url {
    text-align: left;
    margin: 0 0 20px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #f8faf5;
}
.qr-url strong {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    color: #6b7b60;
}
.qr-url a {
    display: block;
    overflow-wrap: anywhere;
    color: var(--green);
    font-size: 11px;
    line-height: 1.5;
    text-decoration: underline;
}
.qr-card p {
    font-size: 10px;
    color: #8b967f;
    margin: 15px 0 0;
}
.qr-card .section-label {
    font-size: 9px;
}
.details {
    font-size: 12px;
    margin: 20px 0;
}
.details dt {
    color: #92a082;
    margin-top: 16px;
}
.details dd {
    margin: 7px 0;
    font-weight: 500;
    color: #526742;
    overflow-wrap: anywhere;
}
label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #53634a;
    margin-bottom: 20px;
}
input,
select,
textarea {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #dfe5d8;
    border-radius: 6px;
    background: #fff;
    color: #344b2c;
    line-height: 1.5;
    margin-top: 8px;
    min-width: 0;
}
input::placeholder,
textarea::placeholder {
    color: #a7af9f;
}
input[readonly] {
    background: #f7f9f3;
}
label small {
    display: block;
    font-size: 10px;
    color: #94a287;
    margin-top: 7px;
    font-weight: 400;
}
textarea {
    resize: vertical;
}
.biography-field { margin-bottom: 20px; }
.biography-field > label { margin-bottom: 8px; }
.biography-editor { border: 1px solid #dfe5d8; border-radius: 6px; overflow: hidden; background: #fff; }
.biography-editor:focus-within { outline: 2px solid #c5d5bd; border-color: #7d9b6c; }
.biography-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 8px; background: #f7f9f3; border-bottom: 1px solid #dfe5d8; }
.biography-toolbar button, .biography-toolbar select { width: auto; min-height: 36px; margin: 0; padding: 6px 10px; border: 1px solid #dfe5d8; border-radius: 4px; background: white; color: #344b2c; font-size: 12px; }
.biography-toolbar button:hover { background: #eaf0e4; }
.biography-editor .biography-content { min-height: 210px; max-height: 600px; overflow-y: auto; padding: 12px; outline: none; color: #344b2c; font-size: 16px; line-height: 1.7; }
.biography-editor .biography-content:empty::before { content: attr(data-placeholder); color: #a7af9f; pointer-events: none; }
.biography-field > small { display: block; margin-top: 7px; font-size: 10px; color: #768078; }
.biography-field > .biography-limit { color: #a32929; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.form-divider {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 30px;
}
.form-divider h2 {
    margin-bottom: 8px;
}
.form-divider p {
    font-size: 12px;
}
.form-actions {
    border-top: 1px solid #eff1ea;
    padding-top: 22px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}
.form-actions span {
    font-size: 10px;
    max-width: 210px;
}
.photo-card {
    margin-top: 24px;
}
.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 28px 15px;
    border: 1px dashed #bfcdb0;
    border-radius: 8px;
    background: #fafcf7;
    position: relative;
    cursor: pointer;
    color: #81966d;
}
.upload-zone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    margin: 0;
}
.upload-zone:focus-within {
    outline: 2px solid var(--green);
}
.upload-zone span {
    font-size: 10px;
    color: #9eaa91;
    font-weight: 400;
}
.upload-zone.disabled {
    opacity: 0.5;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
    gap: 12px;
}
.photo-tile {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 7px;
}
.photo-tile > img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #e7eddf;
    display: block;
}
.cover-label {
    position: absolute;
    left: 8px;
    top: 8px;
    background: #f8fcf1ee;
    color: #52713c;
    font-size: 9px;
    padding: 4px 7px;
    border-radius: 4px;
}
.photo-actions {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    gap: 6px;
}
.photo-actions button {
    border: 1px solid transparent;
    padding: 9px 11px;
    min-height: 38px;
    font-size: 12px;
    font-weight: 600;
}
.photo-actions .btn-success {
    background: var(--green);
    border-color: var(--green);
    color: white;
}
.photo-actions .btn-danger {
    background: #b9443b;
    border-color: #b9443b;
    color: white;
}
.photo-actions { flex-wrap: wrap; }
.page-heading .back-link {
    padding: 10px 14px;
    border: 1px solid #becfb2;
    border-radius: 7px;
    color: #275d3d;
    background: #edf3e6;
    font-size: 13px;
    font-weight: 700;
}
.customer-layout .workspace { margin-left: 0; }
.customer-layout .page { max-width: 1200px; }
.customer-layout .topbar { min-height: 78px; }
.customer-layout .topbar .brand-logo { width: 155px; display: block; }
.logout-button { flex-shrink: 0; }
.nur-dialog { border-radius: 14px; color: #263c32; font-family: inherit; }
.nur-dialog-title { font-family: Manrope, 'Segoe UI', sans-serif; color: #275d3d; font-size: 24px; }
.nur-dialog .swal2-html-container { font-size: 14px; line-height: 1.6; text-align: left; }
.nur-dialog .swal2-actions { gap: 12px; }
.nur-dialog .swal2-html-container input { width: 100%; }
.nur-dialog .swal2-icon.swal2-question { color: #698754; border-color: #a9be98; }
.alert {
    border: 1px solid;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 22px;
    font-size: 12px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.alert.error {
    background: #fff4f0;
    border-color: #efd3c7;
    color: #a75f49;
}
.alert.success {
    background: #eff7e9;
    border-color: #d8e8c9;
    color: #608346;
}
.alert.warning {
    background: #fff8e4;
    border-color: #f0e2b7;
    color: #9b813a;
}
.narrow {
    max-width: 550px;
}
.chart-container {
    height: 280px;
    width: 100%;
    position: relative;
}
.chart-legend {
    display: flex;
    gap: 15px;
    font-size: 10px !important;
}
.chart-legend span:first-child {
    color: var(--green);
}
.chart-legend span:last-child {
    color: #b98e41;
}
.segmented {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}
.segmented button {
    padding: 8px 12px;
    border: 0;
    background: #fff;
    color: #8d9b7d;
    font-size: 11px;
}
.segmented button.active {
    background: #ecf2e4;
    color: #55743e;
    font-weight: 600;
}
.referer {
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: #17302180;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
    backdrop-filter: blur(4px);
}
.modal {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 80px #14302030;
}
.modal h2 {
    font-size: 25px;
}
.modal p {
    font-size: 12px;
    color: #839276;
}
.modal input {
    font-family: monospace;
    font-size: 14px;
}
.icon-button {
    padding: 5px;
    border: 0;
    background: none;
    color: #657c52;
    display: grid;
    place-items: center;
}
.mobile-menu {
    display: none;
}
.menu-backdrop {
    display: none;
}
.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 45% 55%;
}
.login-story {
    background: #e6eede;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 45px 60px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}
.login-story:after {
    content: '';
    width: 440px;
    height: 440px;
    border: 1px solid #cddbbf;
    border-radius: 50%;
    position: absolute;
    right: -180px;
    bottom: -170px;
    pointer-events: none;
}
.login-story > div {
    padding: 45px 0;
    position: relative;
}
.login-story .eyebrow {
    font-size: 10px;
    color: #849b71;
}
.login-story h1 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: clamp(40px, 4.5vw, 70px);
    letter-spacing: -2px;
    line-height: 1.15;
    color: #375b2c;
    margin: 25px 0;
}
.login-story p {
    font-size: 14px;
    color: #809270;
    max-width: 300px;
}
.story-ornament {
    font-size: 76px;
    color: #afbf9e;
    display: block;
    margin-top: 25px;
}
.login-story small {
    font-size: 9px;
    letter-spacing: 2px;
    color: #93a780;
}
.login-main {
    display: grid;
    place-items: center;
    padding: 45px 24px;
    background: #fff;
}
.login-card {
    max-width: 360px;
    width: 100%;
}
.login-card h2 {
    font-size: 30px;
    letter-spacing: -1px;
    margin: 16px 0 10px;
}
.login-card > p {
    font-size: 13px;
}
.login-card form {
    margin-top: 35px;
}
.login-card .btn {
    justify-content: space-between;
    padding: 14px 18px;
}
.login-help {
    font-size: 11px !important;
    text-align: center;
    color: #9aa78c;
    margin: 22px 0;
}
.login-card > .back-link {
    display: block;
    text-align: center;
    font-size: 10px;
    margin-top: 35px;
}
@media (min-width: 1500px) {
    .stats-grid {
        gap: 24px;
    }
}
@media (max-width: 1200px) {
    .sidebar {
        width: 222px;
        padding: 24px 15px;
    }
    .workspace {
        margin-left: 222px;
    }
    .page {
        padding: 28px 26px;
    }
    .topbar {
        padding: 0 26px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-card {
        padding: 22px;
    }
    .editor-grid {
        grid-template-columns: minmax(0, 1fr) 250px;
    }
    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .form-actions span {
        max-width: none;
    }
}
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s;
        width: 250px;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .workspace {
        margin-left: 0;
    }
    .mobile-menu {
        display: grid;
    }
    .menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: #1c302760;
        border: 0;
        z-index: 25;
    }
    .topbar {
        height: 66px;
    }
    .editor-grid {
        grid-template-columns: minmax(0, 1fr) 250px;
    }
    .login-story {
        padding: 35px;
    }
    .login-story h1 {
        font-size: 45px;
    }
}
@media (max-width: 650px) {
    h1 {
        font-size: 25px;
    }
    .page {
        padding: 24px 18px;
    }
    .topbar {
        padding: 0 18px;
        font-size: 10px;
    }
    .site-link {
        font-size: 9px;
    }
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
    .page-heading > .btn {
        width: 100%;
    }
    .page-heading p {
        font-size: 12px;
    }
    .stats-grid {
        gap: 10px;
    }
    .stat-card {
        padding: 16px 14px;
        gap: 8px;
    }
    .stat-card > span:not(.stat-icon) {
        font-size: 10px;
    }
    .stat-card strong {
        font-size: 27px;
    }
    .stat-card strong.money-stat {
        font-size: 18px;
        padding-top: 8px;
    }
    .stat-card small {
        font-size: 9px;
    }
    .welcome-banner {
        padding: 22px;
    }
    .welcome-banner h2 {
        font-size: 18px;
    }
    .welcome-banner > span {
        display: none;
    }
    .welcome-banner p {
        font-size: 11px;
    }
    .card {
        padding: 21px;
    }
    .card-heading {
        padding: 20px;
    }
    .card-heading h2 {
        font-size: 15px;
    }
    .card-heading p {
        font-size: 11px;
    }
    .editor-grid {
        display: flex;
        flex-direction: column;
    }
    .editor-grid > div,
    .editor-grid > form,
    .editor-grid > aside {
        width: 100%;
    }
    .detail-aside {
        grid-template-columns: 1fr;
    }
    .form-grid {
        gap: 12px;
    }
    .form-grid input {
        font-size: 12px;
        padding: 10px 8px;
    }
    .filters {
        padding: 16px;
        flex-wrap: wrap;
    }
    .search-field {
        flex-basis: 100%;
        max-width: none;
    }
    .filters select {
        flex: 1;
        min-width: 0;
        margin: 0;
    }
    .filters > .btn {
        padding: 11px 20px;
    }
    .pagination {
        padding: 16px;
        font-size: 10px;
        flex-wrap: wrap;
    }
    .pagination .row {
        gap: 6px;
    }
    .panel-footer {
        padding: 20px 18px;
        font-size: 9px;
    }
    .login-layout {
        display: block;
    }
    .login-story {
        min-height: 0;
        padding: 24px;
    }
    .login-story > div {
        padding: 12px 0 0;
    }
    .login-story h1 {
        font-size: 32px;
        margin: 10px 0;
    }
    .login-story h1 br {
        display: none;
    }
    .login-story .eyebrow,
    .login-story p,
    .login-story small,
    .story-ornament {
        display: none;
    }
    .login-story .brand-logo {
        width: 130px;
        height: auto;
    }
    .login-main {
        padding: 35px 24px;
        min-height: 65vh;
    }
    .login-card h2 {
        font-size: 27px;
    }
    .chart-container {
        height: 230px;
    }
    .chart-legend {
        flex-wrap: wrap;
        gap: 6px;
    }
    .btn {
        font-size: 12px;
    }
    .card-title {
        gap: 14px;
    }
    .details {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .details dt,
    .details dd {
        margin: 0;
    }
    .modal {
        padding: 25px;
    }
    .alert {
        padding: 13px;
    }
    .qr-card > img {
        width: 150px;
    }
}

.checkbox-field{display:flex;align-items:center;gap:10px;font-size:14px}
.checkbox-field input{width:18px;height:18px;margin:0;accent-color:#426b35}
.photo-crop-dialog{width:min(660px,calc(100% - 24px));max-height:90dvh;overflow:auto;border:1px solid #dfe5d8;border-radius:14px;padding:24px;color:#344b2c;background:#fff}
.photo-crop-dialog::backdrop{background:#102018b3}
.photo-crop-dialog h2{margin:0 0 8px}
.photo-crop-dialog p{font-size:14px;overflow-wrap:anywhere}
/* Handles have generous touch targets while the visible grips stay compact. */
.photo-crop-stage{position:relative;max-width:100%;margin:24px auto;touch-action:none;user-select:none;cursor:crosshair}
.photo-crop-canvas{display:block;width:100%;height:auto;border-radius:4px}
.photo-crop-selection{position:absolute;border:2px solid #fff;cursor:move;touch-action:none;outline:none}
.photo-crop-selection:focus-visible{outline:3px solid #93ca66;outline-offset:3px}
.photo-crop-grid{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to right,transparent calc(33.333% - .5px),#ffffff70 33.333%,transparent calc(33.333% + .5px),transparent calc(66.666% - .5px),#ffffff70 66.666%,transparent calc(66.666% + .5px)),linear-gradient(to bottom,transparent calc(33.333% - .5px),#ffffff70 33.333%,transparent calc(33.333% + .5px),transparent calc(66.666% - .5px),#ffffff70 66.666%,transparent calc(66.666% + .5px))}
.photo-crop-handle{position:absolute;display:block;width:44px;height:44px;padding:0;border:0;background:transparent;transform:translate(-50%,-50%);touch-action:none;z-index:2}
.photo-crop-handle::after{content:"";position:absolute;left:50%;top:50%;width:12px;height:12px;transform:translate(-50%,-50%);background:#fff;border:1px solid #34562a;border-radius:2px;box-shadow:0 1px 4px #0005}
.photo-crop-handle:focus-visible{outline:2px solid #93ca66;outline-offset:-5px;border-radius:8px}
.photo-crop-handle[data-handle="nw"]{left:0;top:0;cursor:nwse-resize}
.photo-crop-handle[data-handle="n"]{left:50%;top:0;cursor:ns-resize}
.photo-crop-handle[data-handle="ne"]{left:100%;top:0;cursor:nesw-resize}
.photo-crop-handle[data-handle="e"]{left:100%;top:50%;cursor:ew-resize}
.photo-crop-handle[data-handle="se"]{left:100%;top:100%;cursor:nwse-resize}
.photo-crop-handle[data-handle="s"]{left:50%;top:100%;cursor:ns-resize}
.photo-crop-handle[data-handle="sw"]{left:0;top:100%;cursor:nesw-resize}
.photo-crop-handle[data-handle="w"]{left:0;top:50%;cursor:ew-resize}
.photo-crop-stage.dragging{cursor:grabbing}
.photo-crop-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:16px}
.customer-nav{display:flex;justify-content:center;gap:12px;padding:12px 20px;border-bottom:1px solid #e3e9de;background:#fff}
.customer-nav a{padding:9px 14px;border-radius:6px;font-size:14px;text-decoration:none;color:#53634a}
.customer-nav a.router-link-active{background:#edf2e8;color:#34562a;font-weight:600}
