:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #24211e;
    background: #faf9f6;
}

* { box-sizing: border-box; }

body { margin: 0; }

.page {
    width: min(100% - 32px, 880px);
    margin: 12vh auto 0;
}

h1 {
    margin: 0 0 24px;
    font-size: clamp(2rem, 6vw, 3rem);
    letter-spacing: -0.05em;
}

.panel { max-width: 420px; }

label { display: block; margin: 0 0 10px; font-weight: 600; }

input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #bab4aa;
    border-radius: 9px;
    background: white;
    font: inherit;
}

button {
    margin-top: 18px;
    padding: 11px 22px;
    border: 0;
    border-radius: 9px;
    background: #282522;
    color: white;
    font: inherit;
    cursor: pointer;
}

button:hover { background: #504940; }
button:focus-visible, input:focus-visible { outline: 3px solid #c89c64; outline-offset: 3px; }

.error { color: #9f3232; }


/* Private workspace */
:root {
    --den-ink: #27302b;
    --den-muted: #7d8178;
    --den-paper: #f7f6f0;
    --den-card: #fffefa;
    --den-line: #e7e6db;
    --den-green: #3c5c4b;
    --den-yellow: #f8c966;
    --den-peach: #f9e4d6;
    --den-sage: #e3ebdc;
    --den-lavender: #ebe4f1;
}

.workspace-body {
    margin: 0;
    background: var(--den-paper);
    color: var(--den-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.workspace-body a { color: inherit; text-decoration: none; }
.workspace-body button, .workspace-body input,
.workspace-body select, .workspace-body textarea {
    font-family: inherit;
    font-size: inherit;
}

.workspace-body button { margin: 0; }
.workspace-body button, .workspace-body a { -webkit-tap-highlight-color: transparent; }
.workspace-body :focus-visible { outline: 3px solid #e0a744; outline-offset: 3px; }
.workspace-body .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.workspace {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 249px;
    flex: 0 0 249px;
    padding: 29px 19px 19px;
    color: #fffdf5;
    background: #29392f;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 2px 8px 41px;
    color: #fffdf5 !important;
}

.brand-mark {
    background: var(--den-yellow);
    color: #29392f;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 33px;
    font-weight: 900;
    letter-spacing: -0.09em;
    position: relative;
    line-height: 1;
    transform: rotate(-5deg);
}

.brand-mark span {
    position: absolute;
    font-size: 7px;
    top: 10px;
    right: 7px;
    letter-spacing: 0;
}

.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy strong { font-size: 18px; font-weight: 800; letter-spacing: -0.045em; }
.brand-copy small { color: #bfcabf; font-size: 11px; letter-spacing: 0.015em; }
.sidebar-label {
    color: #9bad9e;
    letter-spacing: 0.12em;
    font-weight: 800;
    font-size: 10px;
    padding: 0 13px;
    margin-bottom: 12px;
}
.sidebar-label--second { margin-top: 32px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #d4ddd1 !important;
    min-height: 46px;
    padding: 10px 13px;
    font-weight: 630;
    font-size: 13px;
    border-radius: 13px;
    transition: background .18s ease, color .18s ease;
}
.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 24px;
    font-size: 19px;
    font-weight: 650;
}
.nav-link:hover { background: #3b5243; color: white !important; }
.nav-link.is-active {
    background: #f7cc73;
    color: #28352c !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.09);
}
.sidebar-bottom {
    margin-top: auto;
    padding: 22px 10px 6px;
    font-size: 11px;
    color: #b0c0b0;
}
.online-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    background: #a3d6a4;
    border-radius: 50%;
    margin-right: 7px;
}
.logout-button {
    display: block;
    margin-top: 15px !important;
    background: transparent !important;
    padding: 6px 0;
    font-weight: 650;
    color: #f4e4b9;
    font-size: 12px;
}
.logout-button:hover { color: white; }
.workspace-content { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.workspace-top {
    height: 73px;
    padding: 0 clamp(23px, 4%, 65px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--den-line);
    background: #faf9f3;
}
.top-breadcrumb {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    color: #586356;
    text-transform: uppercase;
}
.top-breadcrumb span { margin: 0 11px; color: #b5bcb1; }
.top-private {
    display: inline-flex;
    background: #e8ede1;
    color: #486850;
    border-radius: 30px;
    padding: 8px 13px;
    font-size: 11px;
    font-weight: 700;
}
.workspace-main {
    flex: 1;
    margin: 0 auto;
    padding: 42px clamp(23px, 4%, 65px) 65px;
    width: 100%;
    max-width: 1560px;
}
.heading-row { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.workspace-main .eyebrow, .tiny-eyebrow {
    margin: 0 0 9px;
    font-size: 10px;
    color: #8a896e;
    letter-spacing: .14em;
    font-weight: 850;
}
.workspace-main h1 {
    font-size: clamp(30px, 3.8vw, 43px);
    letter-spacing: -.055em;
    font-weight: 790;
    line-height: 1.1;
    margin: 0;
}
.page-intro { color: #767d72; margin: 11px 0 0; font-size: 14px; }
.workspace-footer {
    padding: 18px clamp(23px, 4%, 65px);
    border-top: 1px solid var(--den-line);
    font-size: 11px;
    color: #969a8e;
}
.workspace-footer span { padding: 0 5px; }
.button {
    border: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 17px;
    font-size: 13px;
    font-weight: 760;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.25;
    transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--den-green); color: white !important; }
.button--primary:hover { background: #304d3c; box-shadow: 0 6px 16px rgba(48,77,60,.12); }
.button--light { background: #fffdf5; color: #394735 !important; }
.button--light:hover { background: white; }
.button--outline { background: transparent; border: 1px solid #dcded5; color: #465746 !important; }
.button--outline:hover { background: #f6f7f2; }
.button--ghost { background: transparent; color: #686e62 !important; }
.button--soft { background: #f5e6d9; color: #755443 !important; }
.button--soft:hover { background: #efd8c8; }
.notice {
    margin-top: 23px;
    border-radius: 14px;
    padding: 13px 17px;
    font-size: 13px;
    font-weight: 650;
}
.notice--success { background: #e2eddd; color: #355d3d; }
.notice--error { background: #fbdfda; color: #9c423b; }
.notice--soft { background: #f4ebdd; color: #675c42; margin-bottom: 20px; }
.dashboard-welcome {
    background: #f4cc77;
    border-radius: 24px;
    padding: 28px 34px;
    margin: 31px 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background-image: radial-gradient(circle at 94% 90%, rgba(255,255,255,.28) 0 45px, transparent 46px),
        radial-gradient(circle at 82% 8%, rgba(255,255,255,.19) 0 25px, transparent 27px);
}
.welcome-sticker {
    background: #fff7e3;
    border-radius: 99px;
    padding: 6px 10px;
    display: inline-block;
    font-size: 9px;
    letter-spacing: .12em;
    font-weight: 850;
    color: #886327;
}
.dashboard-welcome h2 {
    font-size: clamp(22px, 3vw, 29px);
    line-height: 1.15;
    letter-spacing: -.05em;
    margin: 13px 0 6px;
    color: #49391f;
}
.dashboard-welcome p { color: #705a32; margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 40px; }
.stat-card {
    display: flex;
    flex-direction: column;
    border-radius: 19px;
    padding: 22px 20px 18px;
    min-height: 157px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 9px 18px rgba(38,52,42,.09); }
.stat-card--sage { background: #e2eddf; }
.stat-card--peach { background: #f9e6da; }
.stat-card--lavender { background: #eae4f2; }
.stat-card--yellow { background: #f8edcb; }
.stat-top { display: flex; justify-content: space-between; font-weight: 750; font-size: 12px; gap: 5px; }
.stat-top span { font-size: 18px; font-weight: 600; line-height: .8; }
.stat-card strong { font-size: clamp(26px, 3vw, 36px); margin: 13px 0 4px; letter-spacing: -.06em; }
.stat-card small { font-size: 11px; color: #657468; }
.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 19px;
}
.section-header h2 {
    font-size: 18px;
    letter-spacing: -.035em;
    margin: 0 0 5px;
    line-height: 1.25;
}
.section-header p { font-size: 12px; color: var(--den-muted); margin: 0; }
.subtle-link { font-size: 11px; font-weight: 700; color: #56705b !important; }
.subtle-link:hover { text-decoration: underline; }
.dashboard-lists { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; }
.content-card {
    background: var(--den-card);
    border: 1px solid #e8e8dd;
    border-radius: 20px;
    box-shadow: 0 3px 16px rgba(46,54,38,.027);
}
.list-card { padding: 22px 22px 15px; }
.client-tile {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    padding: 14px 7px;
    border-top: 1px solid #eeeee6;
    transition: background .18s ease;
    border-radius: 9px;
}
.client-tile:hover { background: #f7f8f1; }
.client-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    border-radius: 14px;
    background: #e7ede1;
    color: #55745d;
    font-size: 18px;
    font-weight: 850;
    text-transform: uppercase;
}
.client-tile:nth-of-type(4n+2) .client-avatar { background: #fae8d9; color: #b47951; }
.client-tile:nth-of-type(4n+3) .client-avatar { background: #eee6f2; color: #82709e; }
.client-tile-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.client-tile-info strong { font-size: 13px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-tile-info small, .client-tile-meta small { font-size: 11px; color: #888d80; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-tile-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; max-width: 190px; }
.tile-chevron { font-size: 20px; color: #95a296; padding-left: 4px; }
.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 780;
    white-space: nowrap;
    background: #ededeb;
    color: #73786f;
}
.tag--active, .tag--available { background: #e1eddf; color: #426b4d; }
.tag--lead, .tag--paused { background: #fcf0d9; color: #976e32; }
.tag--contact { background: #f7e5d8; color: #a46c4d; }
.tag--finished, .tag--unavailable { background: #eeebeb; color: #777474; }
.tag--other { background: #ece8f3; color: #74618e; }
.client-progress {
    width: 65px;
    height: 6px;
    border: 0;
    border-radius: 99px;
    appearance: none;
    background: #edf0e8;
}
.client-progress::-webkit-progress-bar,
.progress-bar::-webkit-progress-bar { background: #edf0e8; border-radius: 99px; }
.client-progress::-webkit-progress-value,
.progress-bar::-webkit-progress-value { background: #81a68a; border-radius: 99px; }
.client-progress::-moz-progress-bar,
.progress-bar::-moz-progress-bar { background: #81a68a; border-radius: 99px; }
.client-tile--compact .client-avatar { width: 34px; height: 34px; flex-basis: 34px; border-radius: 12px; font-size: 14px; }
.client-tile--compact { padding: 11px 4px; }
.client-tile--compact .client-tile-info strong { font-size: 12px; }
.client-tile--compact .tile-chevron { font-size: 17px; }
.empty-list {
    padding: 29px 15px;
    border: 1px dashed #e6e7dc;
    border-radius: 13px;
    color: #979b8c;
    text-align: center;
    font-size: 12px;
}
.empty-list span { display: block; font-size: 21px; color: #9fae98; margin-bottom: 5px; }
.dashboard-strip {
    border: 1px solid #e7e5d8;
    background: #fffdf4;
    border-radius: 18px;
    margin-top: 19px;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}
.dashboard-strip > div { display: flex; align-items: center; gap: 15px; }
.strip-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: #e5eddf; color: #507357; font-size: 22px; }
.dashboard-strip strong { display: block; font-size: 14px; }
.dashboard-strip p { margin: 3px 0 0; color: #929589; font-size: 12px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 27px 0 18px; }
.toolbar-copy strong { font-size: 14px; font-weight: 750; }
.toolbar-copy span { color: #919588; font-size: 12px; }
.heading-actions { flex-shrink: 0; }
.search-bar {
    display: flex;
    align-items: center;
    border-radius: 15px;
    padding: 6px 6px 6px 15px;
    background: white;
    border: 1px solid #e5e7dd;
    margin-bottom: 22px;
    gap: 8px;
}
.search-bar > span { color: #92a292; font-size: 26px; line-height: 1; }
.search-bar input {
    flex: 1;
    min-width: 0;
    border: none;
    box-shadow: none;
    padding: 10px 5px;
    font-size: 13px;
    background: transparent;
    outline: 0;
}
.search-bar button { padding: 9px 17px; }
.client-group-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 26px; }
.client-group { padding: 20px 17px 13px; min-width: 0; }
.client-group .section-header { min-height: 49px; }
.directory { padding: 24px; margin-bottom: 19px; }
.directory .client-tile { padding: 15px 8px; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 20px; font-size: 12px; color: #848c7f; }
.pagination a { font-weight: 700; border: 1px solid #e1e4d9; padding: 7px 11px; border-radius: 9px; background: #fffefa; }
.under-note { font-size: 11px; color: #96998e; line-height: 1.6; margin: 15px 0; }
.under-note a { color: #597561; text-decoration: underline; font-weight: 650; }
.back-link { display: inline-block; color: #617968 !important; margin: 25px 0 20px; font-size: 12px; font-weight: 730; }
.back-link:hover { text-decoration: underline; }
.editor-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(250px,.75fr); align-items: start; gap: 20px; }
.editor-card { padding: 29px; }
.editor-card--narrow { max-width: 840px; margin-top: 18px; }
.editor-form { margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; }
.form-field--full { grid-column: 1 / -1; }
.form-field > span { color: #3b493d; font-size: 12px; font-weight: 760; }
.form-field em { color: #c28060; font-style: normal; }
.form-field input, .form-field select, .form-field textarea,
.sidebar-card textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 12px 13px;
    border-radius: 11px;
    border: 1px solid #e2e5d9;
    background: #fbfcf8;
    box-shadow: none;
    color: #364138;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    outline: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus,
.sidebar-card textarea:focus { background: white; border-color: #a0b7a1; box-shadow: 0 0 0 3px #e6eee3; }
.form-field textarea, .sidebar-card textarea { line-height: 1.6; resize: vertical; }
.form-field select { cursor: pointer; }
.form-field small { font-size: 10px; color: #92978d; line-height: 1.45; }
.form-actions { display: flex; gap: 10px; margin-top: 26px; align-items: center; }
.editor-aside { display: flex; flex-direction: column; gap: 17px; }
.sidebar-card { padding: 23px; }
.sidebar-card h3 { font-size: 18px; letter-spacing: -.03em; line-height: 1.25; margin: 5px 0 9px; }
.sidebar-card p { color: #848b7e; margin: 0 0 17px; font-size: 12px; line-height: 1.5; }
.sidebar-card .card-hint { margin: 13px 0 0; }
.sidebar-card textarea { margin-bottom: 12px; }
.sidebar-card .button { width: 100%; }
.progress-caption { display: flex; justify-content: space-between; font-size: 11px; margin-top: 17px; }
.progress-caption strong { color: #426b4d; }
.progress-bar { display: block; width: 100%; height: 10px; border: 0; appearance: none; background: #e9efe6; margin-top: 9px; border-radius: 50px; }
.archive-card { background: #fff9f3; border-color: #f0dfd0; }
.archive-card .form-field { margin-bottom: 12px; }
.checkbox-line { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #737e70; margin: 9px 0 15px; }
.checkbox-line input { width: 15px; height: 15px; accent-color: #58725c; }
.client-details { display: grid; grid-template-columns: 155px minmax(0,1fr); gap: 14px 18px; font-size: 13px; }
.client-details dt { color: #858b7d; }
.client-details dd { color: #3d4a40; margin: 0; overflow-wrap: anywhere; }
.timeline-card { margin-top: 20px; padding: 26px; }
.timeline { position: relative; margin-top: 12px; }
.timeline-item { display: flex; gap: 17px; padding: 12px 0 19px; }
.timeline-dot { width: 12px; height: 12px; flex: 0 0 12px; margin: 8px 2px 0 5px; background: #e4b55d; border-radius: 50%; box-shadow: 0 0 0 5px #fdf3de; }
.timeline-content { flex: 1; border-bottom: 1px solid #edeee5; padding-bottom: 17px; min-width: 0; }
.timeline-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px; align-items: center; }
.timeline-head strong { font-size: 13px; text-transform: capitalize; }
.timeline-head time { color: #a0a499; font-size: 11px; }
.timeline-client { display: inline-block; color: #58725d !important; margin-top: 6px; font-size: 12px; font-weight: 720; }
.timeline-client span { font-weight: 450; color: #92988c; }
.timeline-content p { font-size: 12px; color: #707b6e; line-height: 1.65; margin: 9px 0 0; white-space: normal; overflow-wrap: anywhere; }
.history-intro, .settings-intro {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 19px 22px;
    margin-bottom: 18px;
    border-radius: 17px;
    background: #e9eee3;
}
.history-symbol, .settings-intro span { font-size: 27px; color: #537457; }
.history-intro strong { font-size: 14px; }
.history-intro p, .settings-intro p { font-size: 12px; color: #657965; margin: 4px 0 0; }
.snapshot { background: #f8f7ef; border-radius: 10px; margin: 12px 0 3px; padding: 10px 14px; }
.snapshot summary { cursor: pointer; font-weight: 720; font-size: 11px; color: #6c7969; }
.snapshot dl { display: grid; grid-template-columns: 100px 1fr; gap: 8px; font-size: 11px; overflow-wrap: anywhere; }
.snapshot dt { color: #969a8c; }
.snapshot dd { margin: 0; }
.catalogue-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.catalogue-filter { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--den-line); border-radius: 12px; background: var(--den-card); font-size: 12px; font-weight: 700; }
.catalogue-filter span, .catalogue-count { background: #efefe7; border-radius: 99px; padding: 2px 8px; font-size: 11px; color: #637260; font-weight: 750; white-space: nowrap; }
.catalogue-filter[aria-current="page"] { background: var(--den-sage); border-color: #b7c8aa; color: var(--den-green); }
.catalogue-filter[aria-current="page"] span { background: #fffefa; }
.catalogue-filter:hover { border-color: #9eb397; }
.catalogue-results { display: flex; justify-content: space-between; gap: 12px; margin: -7px 0 14px; color: var(--den-muted); font-size: 12px; }
.catalogue-section { margin: 14px 0; padding: 19px 21px 9px; }
.catalogue-section > .section-header { margin-bottom: 10px; }
.service-row { display: grid; grid-template-columns: 38px minmax(0,1fr) minmax(80px,auto) minmax(100px,auto) auto; align-items: center; gap: 16px; padding: 15px 8px; border-top: 1px solid var(--den-line); border-radius: 9px; }
.service-row:hover { background: #f5f7ef; }
.service-row-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #f9eed7; color: #b99046; font-size: 19px; }
.service-row-copy { min-width: 0; overflow-wrap: anywhere; }
.service-row-copy h3 { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 750; }
.service-row-copy p { margin: 4px 0 0; font-size: 12px; line-height: 1.5; color: var(--den-muted); white-space: pre-line; }
.service-row-price { display: flex; flex-direction: column; gap: 3px; }
.service-row-price strong { font-size: 13px; white-space: nowrap; }
.service-row-price small { color: var(--den-muted); font-size: 11px; }
.service-row-edit { font-size: 12px; font-weight: 750; white-space: nowrap; color: var(--den-green); }
.catalogue-empty { padding: 18px; color: var(--den-muted); font-size: 13px; margin: 0; }
@media (max-width: 650px) {
    .catalogue-section { padding: 16px 13px 6px; }
    .service-row { grid-template-columns: 32px minmax(0,1fr) auto; gap: 8px 12px; padding: 13px 5px; }
    .service-row-icon { width: 32px; height: 32px; grid-row: 1; align-self: start; }
    .service-row-copy { grid-column: 2 / -1; }
    .service-row-status { grid-column: 2; }
    .service-row-price { grid-column: 2; grid-row: 3; }
    .service-row-edit { grid-column: 3; grid-row: 3; }
    .catalogue-filter { padding: 9px 11px; }
}
.finance-stat-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 30px 0 22px; }
.finance-stat { padding: 23px; display: flex; flex-direction: column; gap: 9px; background: #f9eed7; }
.finance-stat:nth-child(2) { background: #e7efdf; }
.finance-stat:nth-child(3) { background: #f0e7ec; }
.finance-stat > span { font-size: 12px; font-weight: 730; }
.finance-stat strong { font-size: 32px; letter-spacing: -.06em; }
.finance-stat small { color: #777f72; font-size: 11px; }
.finance-layout { display: grid; grid-template-columns: minmax(290px,.8fr) minmax(0,1.2fr); gap: 20px; align-items: start; }
.finance-form, .finance-history { padding: 25px; }
.finance-form .form-field { margin: 14px 0; }
.finance-form .button { margin-top: 10px; }
.payment-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid #edeee6; padding: 14px 2px; }
.payment-icon { display: grid; place-items: center; background: #e6eee1; color: #53745a; border-radius: 12px; width: 39px; height: 39px; font-size: 19px; flex: 0 0 39px; }
.payment-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.payment-info strong { font-size: 12px; }
.payment-info small { font-size: 11px; color: #93998c; overflow-wrap: anywhere; }
.payment-positive { color: #477558; font-size: 13px; }
.payment-negative { color: #ae6c63; font-size: 13px; }
.settings-intro { margin: 28px 0 20px; }
.settings-card { padding: 27px; margin: 20px 0; }
.settings-row { display: grid; grid-template-columns: 1.3fr 1.3fr .85fr .55fr auto; align-items: end; gap: 11px; border-top: 1px solid #ebede4; padding: 15px 0; }
.settings-row .form-field { margin: 0; }
.settings-row .form-field > span { font-size: 10px; }
.settings-row .form-field input, .settings-row .form-field select { font-size: 11px; padding: 10px; min-height: 42px; }
.settings-row .button { min-height: 42px; padding: 10px 15px; }
.settings-row--waiting { grid-template-columns: 1.4fr .9fr .5fr auto; }
.settings-row--new { background: #f6f9f2; margin: 9px -10px 0; padding: 17px 10px; border-radius: 13px; border: 0; }
@media (max-width: 1190px) {
    .sidebar { width: 217px; flex-basis: 217px; padding-inline: 13px; }
    .workspace-main { padding-inline: 25px; }
    .workspace-top { padding-inline: 25px; }
    .client-group-grid { grid-template-columns: 1fr 1fr; }
    .client-group-grid > :last-child { grid-column: 1 / -1; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 850px) {
    .workspace { flex-direction: column; }
    .sidebar {
        position: static;
        width: auto;
        flex: none;
        height: auto;
        min-height: 0;
        overflow: visible;
        padding: 16px 18px 13px;
    }
    .brand { padding: 0 0 14px; }
    .brand-mark { width: 37px; height: 37px; font-size: 28px; border-radius: 12px; }
    .brand-copy strong { font-size: 16px; }
    .sidebar-label, .sidebar-label--second { display: none; }
    .sidebar-nav { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: thin; padding-bottom: 5px; }
    .nav-link { flex: 0 0 auto; min-height: 39px; padding: 7px 12px; gap: 7px; font-size: 12px; }
    .nav-icon { font-size: 15px; width: 17px; }
    .sidebar-bottom { display: flex; align-items: center; gap: 16px; padding: 6px 2px 0; }
    .logout-button { margin-top: 0 !important; }
    .workspace-top { height: 55px; }
    .workspace-main { padding: 29px 22px 45px; }
    .editor-layout, .finance-layout { grid-template-columns: 1fr; }
    .editor-aside { display: grid; grid-template-columns: 1fr 1fr; }
    .settings-row { grid-template-columns: 1fr 1fr; }
    .settings-row > .button { align-self: end; }
}
@media (max-width: 600px) {
    .workspace-main { padding-inline: 16px; }
    .workspace-top { padding-inline: 18px; }
    .top-private { display: none; }
    .workspace-main h1 { font-size: 32px; }
    .dashboard-welcome { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
    .dashboard-welcome .button { width: 100%; }
    .stat-grid { gap: 10px; }
    .stat-card { padding: 15px; min-height: 140px; border-radius: 15px; }
    .stat-card strong { font-size: 29px; }
    .stat-card small { font-size: 10px; }
    .dashboard-lists, .client-group-grid, .finance-stat-grid { grid-template-columns: 1fr; }
    .client-group-grid > :last-child { grid-column: auto; }
    .finance-stat-grid { gap: 10px; }
    .finance-stat { padding: 18px; }
    .form-grid, .editor-aside { grid-template-columns: 1fr; }
    .editor-card, .timeline-card, .directory, .settings-card { padding: 20px 17px; }
    .toolbar { flex-wrap: wrap; }
    .toolbar .heading-actions { width: 100%; }
    .toolbar .button { width: 100%; }
    .client-tile { gap: 9px; }
    .client-avatar { width: 37px; height: 37px; flex-basis: 37px; border-radius: 11px; }
    .client-tile-meta { max-width: 100px; }
    .client-progress { display: none; }
    .client-details { grid-template-columns: 1fr; gap: 5px; }
    .client-details dd { margin-bottom: 12px; }
    .settings-row, .settings-row--waiting { grid-template-columns: 1fr 1fr; }
    .settings-row > :first-child { grid-column: 1 / -1; }
    .settings-row .button { width: 100%; }
    .dashboard-strip { align-items: stretch; flex-direction: column; }
    .dashboard-strip .button { width: 100%; }
    .workspace-footer { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .workspace * { transition: none !important; }
}

.client-mini-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    max-width: 130px;
    min-width: 0;
    gap: 3px;
}
.client-mini-status small {
    font-size: 10px;
    color: #828d7e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.client-mini-status small + small { color: #a5a899; }
@media (max-width: 600px) {
    .client-mini-status { max-width: 82px; }
}


/* Monthly billing */
.recurring-client { margin-top: 20px; }
.recurring-client .form-grid { margin-top: 14px; }
.recurring-client .under-note, .recurring-finance .under-note { margin: 16px 0; }
.recurring-client .recurring-list { margin-top: 24px; }
.recurring-finance { margin-bottom: 20px; padding: 24px; }
.recurring-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.recurring-summary > div { background: var(--den-paper); border-radius: 15px; padding: 15px; }
.recurring-summary small, .recurring-entry small { display: block; color: var(--den-muted); font-size: 12px; }
.recurring-summary strong { display: block; margin-top: 6px; font-size: 24px; }
.recurring-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; border-top: 1px solid var(--den-line); padding: 15px 0; }
.recurring-entry > div:first-child { flex: 1 1 180px; min-width: 0; }
.recurring-entry > div:first-child strong { display: block; }
.recurring-entry > strong { white-space: nowrap; }
.recurring-entry form { margin: 0; }
.recurring-entry .button { white-space: nowrap; }
@media (max-width: 650px) {
    .recurring-summary { grid-template-columns: 1fr; }
    .recurring-finance { padding: 18px; }
}


/* Offer categories and multi-service client picker */
.service-picker { border: 1px solid #e5e5d9; border-radius: 17px; padding: 17px; margin: 4px 0; background: #fbfaf5; min-width: 0; }
.service-picker legend { font-weight: 750; font-size: 13px; padding: 0 8px; }
.service-picker-group { margin: 8px 0; border: 1px solid #e5e5d9; border-radius: 12px; background: #fff; }
.service-picker-group summary { cursor: pointer; padding: 12px; color: #5e755c; font-size: 13px; overflow-wrap: anywhere; }
.service-picker-group summary strong { font-weight: 750; }
.service-picker-group summary span { display: block; margin: 4px 0 0 17px; color: var(--den-muted); font-size: 12px; }
.service-picker-options { display: grid; gap: 6px; padding: 0 10px 10px; }
.service-choice { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 11px; background: #fff; border: 1px solid #eae9dd; cursor: pointer; }
.service-choice:has(input:checked) { background: #edf3e7; border-color: #b7c8aa; }
.service-choice input { width: 17px; height: 17px; accent-color: #648067; flex-shrink: 0; }
.service-choice-name { flex: 1; min-width: 0; font-size: 12px; font-weight: 650; }
.service-choice small { color: #788078; white-space: nowrap; font-size: 11px; }
.agreed-price-control { display: flex; flex-direction: column; gap: 5px; }
.agreed-price-control .form-field { margin: 0; }
.agreed-price-control .form-field input[readonly] { color: #49664b; background: #f2f5ed; cursor: default; }
.agreed-price-control .checkbox-line { font-size: 12px; }
.agreed-price-control .price-hint { color: #87877f; font-size: 11px; }
.delete-card { border-color: #efd5ce; }
.delete-card > h3 { color: #a05445; }
.delete-card .button { color: #9b4b42; }
.progress-portal { background: #f7f6f1; display: grid; place-items: center; min-height: 100vh; padding: 28px; }
.progress-public-card { background: #fff; border: 1px solid #e4e5d9; box-shadow: 0 18px 50px rgba(40,50,35,.09); border-radius: 28px; width: min(100%, 540px); padding: clamp(24px, 5vw, 44px); }
.progress-brand { color: #7c957d; font-size: 12px; letter-spacing: .12em; font-weight: 800; }
.progress-public-card h1 { font-size: clamp(26px, 6vw, 38px); line-height: 1.15; margin: 20px 0 6px; color: #25322a; }
.progress-rep { color: #657166; margin: 0 0 24px; }
.progress-public-card h2 { margin: 12px 0 10px; font-size: 17px; }
.progress-public-card ul { margin: 0 0 28px; padding-left: 21px; color: #454f43; }
.progress-public-card li { margin: 5px 0; }
.progress-public-number { font-size: 52px; font-weight: 850; color: #497657; letter-spacing: -.05em; }
.progress-public-card .progress-bar { display: block; width: 100%; height: 13px; }
.progress-public-label { color: #657166; font-size: 13px; margin: 10px 0 0; }

.unavailable-card { margin: 0 auto 32px; }
.unavailable-card p { color: #657166; line-height: 1.65; overflow-wrap: anywhere; }
.unavailable-contact { display: grid; gap: 8px; margin: 24px 0; overflow-wrap: anywhere; }
.unavailable-contact a { color: var(--den-green); font-weight: 650; }
.unavailable-home { display: inline-block; border-radius: 12px; padding: 12px 18px; background: var(--den-sage); color: var(--den-green); font-weight: 700; text-decoration: none; }
.unavailable-home:hover { background: #d2e0c9; }
