:root { color: #16342f; background: #f3f0e8; font-family: 'DM Sans', sans-serif; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 32px 20px 22px; background: #12332e; color: #fff; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 42px; }
.brand-mark { width: 37px; height: 37px; border-radius: 50%; display: grid; place-items: center; background: #d87846; font: italic 29px 'DM Serif Display'; }
.brand-logo { display: block; width: 42px; height: 42px; flex: 0 0 42px; object-fit: contain; }
.brand strong { display: block; font: 27px/23px 'DM Serif Display'; letter-spacing: -.5px; }
.brand span { font-size: 9px; text-transform: uppercase; letter-spacing: 1.7px; color: #9eb2ad; }
nav { display: grid; gap: 8px; }
nav button, .sidebar-bottom > button, .sidebar-link { width: 100%; border: 0; border-radius: 8px; padding: 12px; background: transparent; color: #adbfba; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 13px; font-size: 14px; text-decoration: none; }
nav button:hover, nav button.active, .sidebar-link:hover { background: #23443e; color: #fff; }
.nav-icon { width: 20px; flex: 0 0 20px; }
.badge { margin-left: auto; display: block; width: 9px; height: 9px; border-radius: 50%; background: #e53e3e; }
.invoice-badge, .order-badge { background: #c53030; box-shadow: 0 0 0 2px rgba(197, 48, 48, .18); }
.sidebar-bottom { margin-top: auto; }
.account { width: 100%; min-width: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; border-top: 1px solid #31514b; margin-top: 16px; padding-top: 20px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #e7c9aa; color: #153630; font-weight: 600; font-size: 12px; }
.account > div:nth-child(2) { min-width: 0; }
.account strong, .account span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account strong { font-size: 12px; }.account span { font-size: 10px; color: #91a9a3; margin-top: 3px; }
.account button, .logout-link { border: 0; background: none; color: #91a9a3; cursor: pointer; text-decoration: none; }
.logout-link { width: 28px; height: 28px; display: grid; place-items: center; }
main { min-width: 0; }
header { height: 102px; background: #faf8f2; border-bottom: 1px solid #e6e0d6; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; }
.eyebrow, .page-intro span, .section-heading span, .contact-card > span, .modal > span, .threads > span { margin: 0 0 4px; font-size: 9px; font-weight: 600; letter-spacing: 2.2px; color: #a07a61; }
h1 { font: 30px/1 'DM Serif Display'; margin: 0; font-weight: 400; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-button { position: relative; width: 40px; height: 40px; border: 1px solid #ddd7cc; background: transparent; border-radius: 50%; cursor: pointer; }
.icon-button i { position: absolute; width: 6px; height: 6px; background: #dc7642; border-radius: 50%; right: 6px; top: 5px; }
.notification-count { position: absolute; right: 5px; top: 5px; width: 9px; height: 9px; display: block; border-radius: 50%; background: #e53e3e; box-shadow: 0 0 0 2px #faf8f2; }
.notification-dropdown { position: relative; }
.notification-menu { position: absolute; right: 0; top: 50px; z-index: 45; width: 320px; max-height: 430px; overflow-y: auto; border: 1px solid #d6dce1; background: #fff; box-shadow: 0 16px 38px rgba(36, 56, 73, .2); }
.notification-menu-title { padding: 16px 18px; border-bottom: 1px solid #e2e5e8; color: #30475e; font-size: 15px; font-weight: 700; }
.notification-menu-item { width: 100%; display: grid; grid-template-columns: 8px 1fr; gap: 11px; align-items: center; padding: 13px 18px; border: 0; border-bottom: 1px solid #edf0f2; background: #fff; text-align: left; cursor: pointer; }
.notification-menu-item:hover { background: #f5f7f9; }
.notification-menu-item > i { width: 7px; height: 7px; border-radius: 50%; background: #b8c0c7; }
.notification-menu-item > i.unread { background: #1f5faa; }
.notification-menu-item strong, .notification-menu-item small { display: block; }
.notification-menu-item strong { color: #30475e; font-size: 11px; }.notification-menu-item small { margin-top: 4px; color: #718096; font-size: 9px; }
.notification-menu > p { margin: 0; padding: 22px 18px; color: #718096; font-size: 11px; text-align: center; }
.primary { border: 0; border-radius: 6px; padding: 12px 19px; background: #d87846; color: white; font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px #d8784633; }
.primary:hover { background: #c96837; }
.button-with-icon { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.menu-button { display: none; }
.content { max-width: 1220px; margin: auto; padding: 36px 5vw 60px; }
.welcome { min-height: 255px; position: relative; overflow: hidden; border-radius: 10px; padding: 42px 45px; color: #fff; background: #31574e; }
.welcome > div:first-child { position: relative; z-index: 2; }
.welcome-label { color: #f1bd94; font-size: 9px; letter-spacing: 2.4px; }
.welcome h2 { font: 38px/1.03 'DM Serif Display'; margin: 12px 0; font-weight: 400; }
.welcome h2 em { color: #e8ad7e; font-weight: 400; }
.welcome p { max-width: 470px; color: #cbd9d5; font-size: 12px; line-height: 1.7; }
.text-button { border: 0; background: transparent; color: white; padding: 10px 0 2px; border-bottom: 1px solid #8da69f; font-size: 11px; cursor: pointer; }
.text-button span { margin-left: 12px; }
.welcome-art { position: absolute; inset: 0 0 0 55%; overflow: hidden; }
.sun { position: absolute; width: 100px; height: 100px; border-radius: 50%; background: #e7a375; right: 15%; top: 25px; }
.hill { position: absolute; border-radius: 50% 50% 0 0; bottom: -50px; transform: rotate(-8deg); }
.hill-one { width: 420px; height: 190px; background: #203f39; right: -80px; }
.hill-two { width: 390px; height: 140px; background: #477067; right: 100px; bottom: -80px; }
.plant { position: absolute; right: 26%; bottom: 22px; z-index: 2; width: 80px; height: 130px; border-left: 2px solid #efd8bd; transform: rotate(-4deg); transform-origin: bottom; }
.plant i { position: absolute; width: 40px; height: 18px; border: 2px solid #efd8bd; border-radius: 100% 0 100% 0; left: -39px; }
.plant i:nth-child(1) { top: 20px; }.plant i:nth-child(2) { top: 48px; left: 0; transform: scaleX(-1); }.plant i:nth-child(3) { top: 74px; }.plant i:nth-child(4) { top: 98px; left: 0; transform: scaleX(-1); }
.plant b { position: absolute; left: -8px; top: -8px; z-index: 2; width: 14px; height: 14px; border-radius: 50%; background: #e7a375; box-shadow: 0 0 0 2px #31574e; }
.plant b::before, .plant b::after { content: ''; position: absolute; left: 50%; top: 50%; z-index: -1; width: 18px; height: 42px; border-radius: 50%; background: #f5dfc7; transform: translate(-50%, -50%); }
.plant b::after { transform: translate(-50%, -50%) rotate(90deg); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: #faf8f3; border: 1px solid #e4ded4; border-radius: 9px; margin-top: 22px; }
.stats article { padding: 22px 28px; border-right: 1px solid #e4ded4; }.stats article:last-child { border: 0; }
.stats span { display: block; color: #8c8b82; font-size: 8px; letter-spacing: 1.5px; font-weight: 600; }
.stats strong { font: 29px 'DM Serif Display'; display: block; margin: 3px 0; }
.stats small { font-size: 9px; color: #73827e; }.dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; margin-right: 6px; }.green { background: #4e8f73; }.orange { background: #de8250; }.cream { background: #d5a775; }
.service-promo { position: relative; overflow: hidden; background: #faf8f3; border: 1px solid #e4ded4; border-radius: 9px; margin-top: 22px; }
.service-promo-track { display: flex; transition: transform .45s ease; }
.service-promo-item { flex: 0 0 100%; width: 100%; min-height: 132px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: center; padding: 18px 18px 18px 28px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.service-promo-copy { min-width: 0; }
.service-promo-item span { display: block; color: #8c8b82; font-size: 8px; letter-spacing: 1.5px; font-weight: 600; }
.service-promo-item strong { display: block; margin: 3px 0; color: #232c35; font: 29px 'DM Serif Display'; font-weight: 400; white-space: nowrap; }
.service-promo-item p { max-width: 520px; margin: 0 0 8px; color: #718096; font-size: 11px; line-height: 1.45; }
.service-promo-item small { display: flex; align-items: center; gap: 5px; color: #73827e; font-size: 9px; }
.service-promo-item img { width: 100%; height: 96px; display: block; object-fit: cover; object-position: center right; border: 1px solid #d6d9dc; }
@media (prefers-reduced-motion: reduce) {
  .service-promo-track { transition: none; }
}
.section-heading { display: flex; align-items: end; justify-content: space-between; margin: 0 0 16px; }
.section-heading h3, .contact-card h3 { font: 25px 'DM Serif Display'; font-weight: 400; margin: 2px 0 0; }
.section-heading button { border: 0; background: none; font-size: 10px; color: #876c59; cursor: pointer; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card { background: #faf9f5; padding: 23px 25px 20px; border: 1px solid #e5dfd4; border-radius: 9px; }
.project-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; }
.project-symbol { width: 36px; height: 36px; display: grid; place-items: center; color: white; border-radius: 8px; }
.status { padding: 6px 9px; border-radius: 20px; background: #e8f1ec; color: #4a7667; font-size: 9px; }.status i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #4f9878; margin-right: 5px; }
.category { color: #a07962; font-size: 8px; letter-spacing: 1.4px; text-transform: uppercase; }
.project-card h4 { font: 19px 'DM Serif Display'; margin: 6px 0 22px; font-weight: 400; }
.project-client { margin: -14px 0 18px; overflow: hidden; color: #718096; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.progress-copy, .deadline { display: flex; justify-content: space-between; font-size: 9px; color: #868881; }.progress-copy strong, .deadline strong { color: #28443e; font-weight: 500; }
.progress { height: 4px; background: #e4e2db; border-radius: 3px; margin: 7px 0 17px; overflow: hidden; }.progress i { height: 100%; display: block; border-radius: 3px; }
.deadline { border-top: 1px solid #ebe6dd; padding-top: 14px; }
.project-components { margin-top: 16px; padding-top: 14px; border-top: 1px solid #ebe6dd; }
.project-components-head { display: flex; align-items: center; justify-content: space-between; color: #718096; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; }
.project-components-head strong { color: #30475e; font-size: 11px; letter-spacing: 0; }
.project-component-tree, .project-component-children { list-style: none; margin: 0; padding: 0; }
.project-component-tree { display: grid; gap: 6px; margin-top: 10px; }
.project-component-children { margin: 6px 0 0 12px; padding-left: 10px; border-left: 1px solid #d7dde2; }
.project-component-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; padding: 6px 8px; background: #fff; border: 1px solid #e2e5e8; }
.project-component-row span { min-width: 0; overflow: hidden; color: #30475e; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.project-component-row small { flex: 0 0 auto; padding: 3px 6px; background: #e8f1ec; color: #4a7667; font-size: 8px; }
.project-components-empty { margin: 10px 0 0; color: #718096; font-size: 10px; }
.project-open-button { width: 100%; margin-top: 15px; padding: 10px 12px; border: 1px solid #30475e; background: #fff; color: #30475e; font-size: 10px; font-weight: 600; cursor: pointer; }
.project-open-button:hover { background: #30475e; color: #fff; }
.project-page-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.project-page-intro > div:first-child { min-width: 0; }
.project-intro-actions { flex: 0 0 auto; display: flex; justify-content: flex-end; }
.component-create-form { display: grid; gap: 9px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #ebe6dd; }
.component-create-form label { display: grid; gap: 5px; color: #4a5568; font-size: 10px; font-weight: 600; }
.component-create-form input, .component-create-form select { min-width: 0; width: 100%; padding: 8px 9px; border: 1px solid #cbd0d5; background: #fff; outline: none; }
.component-create-form input:focus, .component-create-form select:focus { border-color: #30475e; box-shadow: 0 0 0 2px rgba(48, 71, 94, .1); }
.component-create-form .client-action { width: 100%; }
.project-detail-head .page-intro { margin-bottom: 0; }
.project-back-button { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px; border: 0; background: none; cursor: pointer; }
.project-detail-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.project-detail-summary article { padding: 18px 20px; border: 1px solid #d6dce1; background: #fff; }
.project-detail-summary span { display: block; color: #718096; font-size: 9px; font-weight: 600; letter-spacing: 1px; }
.project-detail-summary strong { display: block; margin-top: 5px; color: #30475e; font-size: 18px; }
.project-pending-note { margin: -8px 0 22px; padding: 14px 16px; border-left: 4px solid #d87846; background: #fff7ed; color: #8a3f19; font-size: 12px; font-weight: 700; }
.project-resources-panel { margin-bottom: 22px; padding: 24px; border: 1px solid #d6dce1; background: #fff; }
.project-resource-open { text-decoration: none; }
.project-link-form { display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 16px; }
.project-link-form label { display: grid; gap: 7px; color: #4a5568; font-size: 11px; font-weight: 600; }
.project-link-form input { min-width: 0; width: 100%; padding: 10px 11px; border: 1px solid #cbd0d5; background: #fff; outline: none; }
.project-link-form input:focus { border-color: #30475e; box-shadow: 0 0 0 2px rgba(48, 71, 94, .1); }
.project-file-list { display: grid; gap: 9px; margin-top: 12px; }
.project-file-list article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #e2e5e8; }
.project-file-list article:first-child { border-top: 0; }
.project-file-list strong, .project-file-list span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-file-list strong { color: #30475e; font-size: 12px; }
.project-file-list span { margin-top: 3px; color: #718096; font-size: 9px; }
.project-file-list a { text-decoration: none; }
.project-file-form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e2e5e8; }
.project-file-form label { display: grid; flex: 1 1 280px; gap: 7px; min-width: 220px; color: #4a5568; font-size: 11px; font-weight: 600; }
.project-file-form select { min-width: 0; width: 100%; padding: 10px 11px; border: 1px solid #cbd0d5; background: #fff; outline: none; }
.project-file-form select:focus { border-color: #30475e; box-shadow: 0 0 0 2px rgba(48, 71, 94, .1); }
.project-file-form span { flex: 1 1 220px; min-width: 180px; color: #718096; font-size: 10px; line-height: 1.4; }
.project-file-form span strong { color: #4a5568; }
.requirements-panel { margin-bottom: 22px; padding: 24px; border: 1px solid #d6dce1; background: #fff; }
.section-heading .requirement-add-button { min-height: 36px; border: 1px solid #30475e; background: #30475e; color: #fff; font-size: 10px; font-weight: 600; }
.modal-file-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.modal-file-input { display: none; }
.modal-file-button { min-height: 38px; }
.modal-file-row span { color: #718096; font-size: 10px; }
.modal-existing-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.modal-existing-images a { display: block; width: 78px; height: 58px; border: 1px solid #d6dce1; background: #f7f8f8; }
.modal-existing-images img { display: block; width: 100%; height: 100%; object-fit: cover; }
.requirement-list { display: grid; gap: 10px; margin-top: 14px; }
.requirement-item { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; padding: 16px 0; border-top: 1px solid #e2e5e8; }
.requirement-item:first-child { border-top: 0; }
.requirement-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.requirement-type, .requirement-state, .requirement-feedback { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 7px; background: #edf1f5; color: #30475e; font-size: 9px; font-weight: 700; }
.requirement-state.done { background: #e8f1ec; color: #276749; }
.requirement-state.rejected { background: #fff0f0; color: #9b2c2c; }
.requirement-feedback { background: #edf8f2; color: #276749; }
.requirement-feedback.bad { background: #fff0f0; color: #9b2c2c; }
.requirement-copy p { margin: 0; color: #30475e; font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.requirement-rejection-reason { margin-top: 12px; padding: 11px 12px; border-left: 3px solid #c53030; background: #fff7f7; }
.requirement-rejection-reason strong { display: block; margin-bottom: 4px; color: #9b2c2c; font-size: 10px; }
.requirement-rejection-reason p { color: #553232; }
.client-feedback-comment { border-left-color: #d87846; background: #fff8f1; }
.client-feedback-comment strong { color: #9a4b15; }
.requirement-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.requirement-images a { display: block; width: 78px; height: 58px; border: 1px solid #d6dce1; background: #f7f8f8; }
.requirement-images img { display: block; width: 100%; height: 100%; object-fit: cover; }
.requirement-no-images { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; color: #718096; font-size: 10px; }
.requirement-feedback-actions { flex-wrap: nowrap; }
.requirement-feedback-thanks { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 5px 9px; background: #edf8f2; color: #276749; font-size: 10px; font-weight: 700; }
.component-panel, .component-table-panel { margin-bottom: 22px; padding: 24px; border: 1px solid #d6dce1; background: #fff; }
.component-form-grid { display: grid; grid-template-columns: 1fr 1.2fr .75fr; gap: 14px; }
.component-panel label { display: grid; gap: 7px; color: #4a5568; font-size: 11px; font-weight: 600; }
.component-panel input, .component-panel select { min-width: 0; width: 100%; padding: 10px 11px; border: 1px solid #cbd0d5; background: #fff; outline: none; }
.component-panel input:focus, .component-panel select:focus { border-color: #30475e; box-shadow: 0 0 0 2px rgba(48, 71, 94, .1); }
.component-panel .primary { margin-top: 12px; }
.component-table-wrap { overflow-x: auto; }
.component-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.component-table th, .component-table td { padding: 11px 12px; border-bottom: 1px solid #e2e5e8; text-align: left; vertical-align: middle; }
.component-table th { color: #718096; font-size: 10px; text-transform: uppercase; letter-spacing: .7px; }
.component-table td:nth-child(2) { width: 160px; }
.component-table td:nth-child(3) { width: 110px; }
.component-title-cell { display: flex; align-items: center; gap: 8px; min-width: 220px; }
.component-title-cell strong { min-width: 0; overflow: hidden; color: #30475e; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.component-title-cell input, .component-table select { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid #cbd0d5; background: #fff; outline: none; }
.component-status { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 5px 8px; border-radius: 2px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.component-status i { width: 6px; height: 6px; border-radius: 50%; }
.component-status-planned { background: #edf1f5; color: #30475e; }
.component-status-planned i { background: #718096; }
.component-status-active { background: #fff7e8; color: #9a5b12; }
.component-status-review { background: #eef4ff; color: #1f5faa; }
.component-status-review i { background: #3182ce; }
.component-status-done { background: #e8f1ec; color: #276749; }
.component-status-done i { background: #2f855a; }
.component-status-spinner { animation: component-status-spin .9s linear infinite; }
@keyframes component-status-spin { to { transform: rotate(360deg); } }
.component-branch { width: 12px; height: 1px; flex: 0 0 12px; background: #b8c0c7; }
.component-row-actions { display: flex; gap: 6px; }
.client-icon-action.save { border-color: #30475e; background: #30475e; color: #fff; }
.bottom-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; margin-top: 30px; }
.activity-panel { height: 270px; display: flex; flex-direction: column; background: #faf9f5; border: 1px solid #e5dfd4; border-radius: 9px; padding: 0 24px 8px; overflow: hidden; }
.activity-panel h3 { margin-top: 18px; }
.compact { margin: 0 0 7px; }
.activity-list { min-height: 0; overflow-y: auto; }
.activity-item { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #ebe6dd; }
.activity-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #edf0e9; font-size: 12px; }
.activity-item strong, .activity-item span { display: block; font-size: 10px; }.activity-item span { color: #92948c; margin-top: 3px; }.activity-item time { font-size: 8px; color: #9b9b94; }
.contact-card { border-radius: 9px; background: #dfba94; padding: 29px; position: relative; overflow: hidden; }
.contact-card p { font-size: 10px; line-height: 1.6; max-width: 220px; }
.person { display: flex; align-items: center; gap: 10px; margin: 18px 0; }.person strong, .person span { display: block; font-size: 10px; }.person span { color: #715f50; margin-top: 2px; }
.photo { background: #29564d; color: white; border: 2px solid #f1e7da; }
.contact-card button { width: 100%; display: flex; justify-content: space-between; border: 0; border-radius: 6px; background: #143a33; color: white; padding: 12px 14px; font-size: 10px; cursor: pointer; }
.page-content { padding-top: 50px; }.page-intro { margin-bottom: 28px; }.page-intro h2, .threads h2, .modal h2, .empty-state h2 { font: 36px 'DM Serif Display'; margin: 5px 0; font-weight: 400; }.page-intro p { color: #737d79; font-size: 13px; }
.all-projects { grid-template-columns: repeat(3, 1fr); }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }.service-grid article { min-height: 100%; display: flex; flex-direction: column; overflow: hidden; padding: 0; background: #faf9f5; border: 1px solid #e5dfd4; border-radius: 9px; }.service-image { width: 100%; height: 190px; display: block; object-fit: cover; object-position: center right; border-bottom: 1px solid #e5dfd4; }.service-content { padding: 24px 30px 14px; }.service-grid h3 { font: 23px 'DM Serif Display'; margin: 0 0 7px; }.service-grid p { color: #7c837f; font-size: 12px; }.service-grid button { border: 0; cursor: pointer; font-size: 11px; }
.service-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: auto; padding: 0 30px 30px; }
.service-actions button { width: 100%; min-height: 42px; border-radius: 3px; padding: 11px 14px; background: #30475e; color: #fff; font-weight: 600; }
.service-actions button:hover { background: #243849; }
.service-actions button:first-child:not(:last-child) { border: 1px solid #cbd5df; background: #fff; color: #30475e; }
.service-actions button:first-child:not(:last-child):hover { background: #eef3f9; }
.sales-back { margin-bottom: 18px; }
.sales-secondary { border: 1px solid #cbd5df; border-radius: 3px; background: #fff; color: #30475e; padding: 11px 15px; font-size: 12px; font-weight: 600; cursor: pointer; }
.sales-secondary:hover { background: #eef3f9; border-color: #aebdca; }
.sales-hero { min-height: 365px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 34px; align-items: center; overflow: hidden; padding: 38px; border: 1px solid #d6d9dc; background: #fff; }
.sales-hero-copy span, .sales-cta span, .sales-section-head span { color: #718096; font-size: 9px; font-weight: 600; letter-spacing: 1.2px; }
.sales-hero h2 { max-width: 620px; margin: 8px 0 14px; color: #30475e; font: 600 36px/1.08 'Segoe UI', Tahoma, sans-serif; }
.sales-hero p { max-width: 610px; color: #61717b; font-size: 13px; line-height: 1.75; }
.sales-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.sales-preview { min-height: 255px; padding: 18px; border: 1px solid #c8d5df; background: #eef3f9; box-shadow: 18px 18px 0 #dce5ed; }
.preview-bar { display: flex; gap: 6px; margin-bottom: 18px; }.preview-bar i { width: 8px; height: 8px; border-radius: 50%; background: #7f96aa; }
.preview-hero { height: 72px; margin-bottom: 18px; background: linear-gradient(135deg, #30475e 0%, #486480 100%); }
.preview-lines { display: grid; gap: 9px; margin-bottom: 18px; }.preview-lines i { height: 8px; background: #c3d0dc; }.preview-lines i:nth-child(1) { width: 82%; }.preview-lines i:nth-child(2) { width: 64%; }.preview-lines i:nth-child(3) { width: 74%; }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.preview-grid i { height: 55px; background: #fff; border: 1px solid #d6d9dc; }
.sales-outcomes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 18px; border: 1px solid #d6d9dc; background: #d6d9dc; }
.sales-outcomes article { display: flex; align-items: center; gap: 9px; min-height: 72px; padding: 18px; background: #fff; color: #30475e; font-size: 12px; font-weight: 600; }
.sales-sections { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.sales-sections article { padding: 24px; border: 1px solid #d6d9dc; background: #fff; }
.sales-sections svg { color: #30475e; }.sales-sections h3 { margin: 14px 0 8px; color: #30475e; font-size: 16px; }.sales-sections p { margin: 0; color: #718096; font-size: 12px; line-height: 1.65; }
.sales-process { margin-top: 18px; padding: 28px; border: 1px solid #d6d9dc; background: #fff; }
.sales-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.sales-section-head h3 { margin: 4px 0 0; color: #30475e; font-size: 22px; }
.sales-process h4 { margin: 12px 0 7px; color: #30475e; font-size: 15px; }
.sales-process p { margin: 0; color: #718096; font-size: 12px; line-height: 1.65; }
.sales-process-list { display: grid; gap: 12px; }
.sales-process-list article { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid #e2e7ec; }
.sales-process-list article:first-child { border-top: 0; padding-top: 0; }
.sales-process-list strong { width: 38px; height: 38px; display: grid; place-items: center; background: #30475e; color: #fff; font-size: 13px; }
.sales-process h4 { margin-top: 0; }
.sales-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 28px 30px; border: 1px solid #c8d5df; background: #dce5ed; }
.sales-cta span { display: inline-flex; align-items: center; gap: 6px; }
.sales-cta h3 { margin: 5px 0 7px; color: #30475e; font-size: 21px; }.sales-cta p { margin: 0; color: #61717b; font-size: 12px; }
.messages-layout { min-height: 620px; display: grid; grid-template-columns: 290px 1fr; background: #faf9f5; border: 1px solid #e5dfd4; border-radius: 10px; overflow: hidden; }.threads { padding: 28px 18px; border-right: 1px solid #e5dfd4; }.threads h2 { font-size: 28px; }.thread { width: 100%; display: flex; gap: 10px; margin-top: 8px; border: 0; border-radius: 8px; background: #eee9df; padding: 12px; text-align: left; cursor: pointer; }.thread.active { background: #dce5ed; }.thread strong, .thread span { display: block; font-size: 10px; }.thread span { color: #878c87; margin-top: 4px; white-space: nowrap; overflow: hidden; max-width: 165px; text-overflow: ellipsis; }.thread-empty { margin: 18px 0 0; padding: 14px; border: 1px dashed #cbd0d5; color: #718096; font-size: 11px; text-align: center; }
.conversation { display: flex; flex-direction: column; }.conversation-head { height: 76px; border-bottom: 1px solid #e5dfd4; padding: 15px 24px; display: flex; gap: 10px; align-items: center; }.conversation-head strong, .conversation-head span { display: block; font-size: 11px; }.conversation-head span { color: #77847f; margin-top: 4px; font-size: 9px; }
.chat { flex: 1; min-height: 0; max-height: 520px; overflow-y: auto; padding: 25px; }.bubble { max-width: 430px; margin: 0 0 14px; background: #e9e5dc; padding: 14px; border-radius: 4px 13px 13px 13px; font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }.bubble time { display: block; text-align: right; color: #8a8d87; font-size: 8px; margin-top: 5px; }.bubble.mine { background: #31574e; color: white; margin-left: auto; border-radius: 13px 4px 13px 13px; }.message-sender { display: block; margin-bottom: 3px; font-size: 9px; opacity: .72; }.message-content { margin: 0; white-space: pre-wrap; }.message-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }.message-images a { display: block; overflow: hidden; border-radius: 5px; border: 1px solid rgba(0, 0, 0, .08); background: #fff; }.message-images img { display: block; width: 100%; height: 120px; object-fit: cover; }.bubble.mine .message-images a { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); }.chat-notice { margin-top: 100px; color: #718096; text-align: center; font-size: 12px; }.message-error { margin: 0; padding: 9px 24px; background: #fff0f0; color: #9b2c2c; font-size: 11px; }.conversation form { padding: 18px 24px; border-top: 1px solid #e5dfd4; display: flex; gap: 10px; }.conversation input { flex: 1; border: 1px solid #ddd6ca; border-radius: 6px; padding: 12px; background: white; outline: none; }.conversation .message-image-input { display: none; }.conversation form .message-image-button { width: 42px; flex: 0 0 42px; padding: 0; display: grid; place-items: center; background: #30475e; }.conversation form button { border: 0; background: #d87846; color: white; border-radius: 6px; padding: 0 18px; cursor: pointer; }.conversation form button:disabled { cursor: not-allowed; opacity: .55; }.message-image-selection { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 24px 14px; color: #718096; font-size: 10px; }.message-image-selection button { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #d6dce1; border-radius: 50%; background: #fff; color: #30475e; cursor: pointer; }
.empty-state { text-align: center; padding-top: 150px; }.empty-state > svg { color: #d87846; }.empty-state p { color: #808a86; }
.modal-backdrop { position: fixed; inset: 0; background: #0d2824aa; z-index: 50; display: grid; place-items: center; padding: 20px; }.modal { width: min(500px, 100%); position: relative; padding: 38px; background: #faf9f5; border-radius: 12px; box-shadow: 0 30px 80px #071a1766; }.close { position: absolute; right: 17px; top: 13px; border: 0; background: none; font-size: 24px; cursor: pointer; }.modal label { display: grid; gap: 7px; font-size: 10px; margin-top: 18px; color: #56645f; }.modal input, .modal select, .modal textarea { border: 1px solid #dcd5c9; background: white; border-radius: 6px; padding: 12px; resize: vertical; outline: none; }.modal input { width: 100%; }.password-change-modal p { margin: 0 0 16px; color: #718096; font-size: 12px; line-height: 1.55; }.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }.ghost { border: 1px solid #d6dce1; border-radius: 6px; padding: 10px 16px; background: #fff; color: #30475e; font-size: 12px; font-weight: 600; cursor: pointer; }.ghost:disabled, .primary:disabled { cursor: not-allowed; opacity: .6; }.wide { width: 100%; margin-top: 20px; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 60; border-radius: 7px; background: #143a33; color: white; padding: 14px 20px; font-size: 11px; box-shadow: 0 10px 30px #102d2866; }.toast-enter-active,.toast-leave-active { transition: .25s; }.toast-enter-from,.toast-leave-to { opacity: 0; transform: translateY(10px); }
.portal-state { margin: 60px auto; text-align: center; color: #718096; }.portal-state.error { color: #9b2c2c; }
.collection-empty { grid-column: 1 / -1; margin: 0; padding: 28px; border: 1px dashed #cbd0d5; background: #f7f8f8; color: #718096; text-align: center; font-size: 12px; }
.empty-projects-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 22px; padding: 28px 30px; border: 1px solid #d6dce1; background: #fff; }
.empty-projects-cta span { color: #718096; font-size: 9px; font-weight: 600; letter-spacing: 1.5px; }
.empty-projects-cta h4 { margin: 5px 0 7px; color: #30475e; font-size: 18px; }
.empty-projects-cta p { max-width: 600px; margin: 0; color: #718096; font-size: 12px; line-height: 1.55; }
.empty-projects-cta .primary { flex: 0 0 auto; }
.scrim { display: none; }
.login-page, .admin-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #e8ebee; }
.login-panel, .admin-panel { width: min(440px, 100%); padding: 42px; background: #fff; border: 1px solid #d6d9dc; box-shadow: 0 12px 34px rgba(36, 56, 73, .14); }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 42px; color: #30475e; }
.login-brand .brand-logo { width: 48px; height: 48px; flex-basis: 48px; }
.login-brand .brand-mark { background: #30475e; color: #fff; }
.login-brand strong, .login-brand span { display: block; }
.login-brand strong { font: 600 22px/22px 'Times New Roman', Times, serif; }
.login-brand span { margin-top: 3px; color: #718096; font-size: 10px; }
.login-panel h1, .admin-panel h1 { margin: 5px 0 10px; }
.login-intro, .admin-panel p { margin: 0 0 26px; color: #718096; font-size: 13px; line-height: 1.6; }
.login-error { margin-bottom: 20px; padding: 11px 13px; background: #fff0f0; border-left: 3px solid #c53030; color: #9b2c2c; font-size: 12px; }
.login-form { display: grid; gap: 8px; }
.login-form label { margin-top: 10px; color: #4a5568; font-size: 12px; font-weight: 600; }
.login-form input { width: 100%; padding: 12px; border: 1px solid #cbd0d5; border-radius: 2px; outline: none; }
.login-form input:focus { border-color: #30475e; box-shadow: 0 0 0 2px rgba(48, 71, 94, .12); }
.login-form button { margin-top: 18px; }
.admin-panel { width: min(560px, 100%); }
.admin-panel-wide { width: min(1100px, 100%); }
.admin-table-wrap { margin: 24px 0; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid #e2e5e8; text-align: left; vertical-align: top; }
.admin-table th { color: #718096; font-size: 10px; text-transform: uppercase; letter-spacing: .7px; }
.admin-table td:nth-child(4) { min-width: 260px; white-space: pre-wrap; }
.admin-empty { padding: 22px; background: #f4f5f6; text-align: center; }
.admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.admin-summary button { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 13px; padding: 22px; border: 1px solid #d6dce1; background: #fff; color: #30475e; text-align: left; cursor: pointer; }
.admin-summary button > svg { grid-row: 1 / 3; }
.admin-summary span { color: #718096; font-size: 9px; letter-spacing: 1px; }
.admin-summary strong { font-size: 25px; }
.admin-alert { width: 100%; justify-content: flex-start; gap: 10px; margin: -8px 0 22px; padding: 14px 16px; border: 1px solid #e1a36f; border-left: 4px solid #d87846; background: #fff7ed; color: #8a3f19; font-size: 12px; font-weight: 700; cursor: pointer; }
.admin-alert span { flex: 1; text-align: left; }
.admin-orders-preview { display: grid; gap: 8px; }
.admin-orders-preview article { display: grid; grid-template-columns: minmax(170px, .7fr) 1.5fr auto; gap: 20px; align-items: center; padding: 16px 18px; border: 1px solid #d6dce1; background: #fff; }
.admin-orders-preview strong, .admin-orders-preview span { display: block; font-size: 11px; }
.admin-orders-preview div > span { margin-top: 4px; color: #718096; font-size: 9px; }
.admin-orders-preview p { margin: 0; overflow: hidden; color: #4a5568; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.portal-admin-table { padding: 0; border: 1px solid #d6dce1; background: #fff; }
.client-management { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(420px, 1.4fr); gap: 22px; align-items: start; }
.client-create-form, .client-list { padding: 24px; border: 1px solid #d6dce1; background: #fff; }
.client-create-form label { display: grid; gap: 7px; margin: 15px 0; color: #4a5568; font-size: 11px; font-weight: 600; }
.client-create-form input { width: 100%; padding: 11px 12px; border: 1px solid #cbd0d5; outline: none; }
.client-create-form input:focus { border-color: #30475e; box-shadow: 0 0 0 2px rgba(48, 71, 94, .1); }
.client-create-form .primary { width: 100%; justify-content: center; margin-top: 10px; }
.form-feedback { padding: 10px 12px; font-size: 11px; }.form-feedback.error { background: #fff0f0; color: #9b2c2c; }.form-feedback.success { background: #edf8f2; color: #276749; }
.client-list article { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(180px, auto) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid #e2e5e8; }
.client-list article:last-child { border-bottom: 0; }
.client-list strong, .client-list span { display: block; font-size: 11px; }.client-list span, .client-list time { margin-top: 3px; color: #718096; font-size: 9px; }
.client-main { min-width: 0; }
.client-main strong, .client-main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-meta time { display: block; text-align: right; }
.client-page-visits { grid-column: 2 / -1; padding: 12px 14px; background: #f7f8f8; border: 1px solid #e2e5e8; }
.client-page-visits > span { color: #718096; font-size: 9px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; }
.client-page-visits p { margin: 8px 0 0; color: #718096; font-size: 10px; }
.visit-day-list { display: grid; gap: 8px; margin-top: 10px; }
.visit-day-group { border: 1px solid #e2e5e8; background: #fff; }
.visit-day-toggle { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border: 0; background: #fff; color: #30475e; text-align: left; cursor: pointer; }
.visit-day-toggle:hover { background: #edf1f5; }
.visit-day-toggle strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.visit-day-toggle span { flex: 0 0 auto; color: #718096; font-size: 10px; }
.visit-table-wrap { overflow-x: auto; border-top: 1px solid #e2e5e8; }
.visit-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.visit-table th, .visit-table td { padding: 8px 12px; border-bottom: 1px solid #edf0f2; text-align: left; }
.visit-table th { color: #718096; font-size: 9px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.visit-table td:first-child { width: 76px; color: #718096; white-space: nowrap; }
.visit-table tr:last-child td { border-bottom: 0; }
.client-list article.is-editing { grid-template-columns: 1fr auto; align-items: end; padding: 18px 0; }
.client-edit-fields { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 10px; }
.client-edit-fields label { display: grid; gap: 6px; color: #4a5568; font-size: 10px; font-weight: 600; }
.client-edit-fields small { color: #718096; font-weight: 400; }
.client-edit-fields input { min-width: 0; width: 100%; padding: 9px 10px; border: 1px solid #cbd0d5; outline: none; }
.client-edit-fields input:focus { border-color: #30475e; box-shadow: 0 0 0 2px rgba(48, 71, 94, .1); }
.client-actions { display: flex; align-items: center; gap: 6px; }
.client-icon-action, .client-action { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid #cbd0d5; background: #fff; color: #30475e; cursor: pointer; }
.client-icon-action { width: 34px; height: 34px; }
.client-action { min-height: 36px; padding: 7px 10px; font-size: 10px; }
.client-action.save { border-color: #30475e; background: #30475e; color: #fff; }
.client-icon-action.danger { color: #b83232; }
.client-icon-action:hover, .client-action:hover { background: #f1f3f4; }
.client-action.save:hover { background: #243b53; }
.client-icon-action:disabled, .client-action:disabled { cursor: not-allowed; opacity: .5; }
.project-create-form { margin-bottom: 26px; padding: 24px; border: 1px solid #d6dce1; background: #fff; }
.project-form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.project-create-form label { display: grid; gap: 7px; color: #4a5568; font-size: 11px; font-weight: 600; }
.project-create-form input, .project-create-form select { width: 100%; padding: 10px 11px; border: 1px solid #cbd0d5; background: #fff; outline: none; }
.project-create-form input:focus, .project-create-form select:focus { border-color: #30475e; box-shadow: 0 0 0 2px rgba(48, 71, 94, .1); }
.project-color-row { display: flex; align-items: center; gap: 9px; margin: 16px 0 12px; color: #4a5568; font-size: 11px; font-weight: 600; }
.color-swatch { width: 28px; height: 28px; border: 2px solid transparent; cursor: pointer; }
.color-swatch.active { border-color: #111827; box-shadow: 0 0 0 2px #fff inset; }
.project-create-form .primary { min-width: 190px; margin-top: 4px; }
.invoice-management { display: grid; grid-template-columns: minmax(310px, .75fr) minmax(560px, 1.5fr); gap: 22px; align-items: start; }
.invoice-create-form, .invoice-list-panel { padding: 24px; border: 1px solid #d6dce1; background: #fff; }
.invoice-create-form label { display: grid; gap: 7px; margin: 14px 0; color: #4a5568; font-size: 11px; font-weight: 600; }
.invoice-create-form input, .invoice-create-form select, .invoice-create-form textarea { width: 100%; padding: 10px 11px; border: 1px solid #cbd0d5; background: #fff; outline: none; resize: vertical; }
.invoice-create-form input:focus, .invoice-create-form select:focus, .invoice-create-form textarea:focus { border-color: #30475e; box-shadow: 0 0 0 2px rgba(48, 71, 94, .1); }
.field-help { color: #718096; font-size: 9px; font-weight: 400; }
.invoice-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.invoice-create-form .primary { width: 100%; margin-top: 10px; }
.invoice-table td:first-child strong, .invoice-table td:first-child small { display: block; }
.invoice-table td:first-child small { min-width: 150px; max-width: 240px; margin-top: 4px; overflow: hidden; color: #718096; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.invoice-file-link { display: block; max-width: 220px; margin-top: 4px; overflow: hidden; color: #1f5faa; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.invoice-table td:nth-child(4) { min-width: auto; white-space: nowrap; }
.status.paid { background: #e8f1ec; color: #276749; }
.status.unpaid { background: #fff0f0; color: #9b2c2c; }
.client-invoice-list { display: grid; gap: 12px; }
.client-invoice-list article { display: grid; grid-template-columns: 48px 1fr auto auto auto; gap: 18px; align-items: center; padding: 22px 24px; border: 1px solid #d6dce1; background: #fff; }
.invoice-icon { width: 48px; height: 48px; display: grid; place-items: center; background: #edf1f5; color: #30475e; }
.invoice-main > span { color: #718096; font-size: 9px; font-weight: 600; letter-spacing: 1px; }
.invoice-main h3 { margin: 5px 0; color: #30475e; font-size: 15px; }
.invoice-main small { color: #718096; font-size: 10px; }
.invoice-amount { min-width: 110px; color: #30475e; font-size: 16px; text-align: right; }
.invoice-download { padding: 9px 11px; border: 1px solid #30475e; color: #30475e; font-size: 10px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.invoice-download:hover { background: #30475e; color: #fff; }
.invoice-download-actions { display: flex; gap: 7px; align-items: center; }
.invoice-actions { display: flex; gap: 5px; }.invoice-actions a { text-decoration: none; }
.invoice-edit-modal input, .invoice-edit-modal select { width: 100%; padding: 11px 12px; border: 1px solid #cbd0d5; background: #fff; outline: none; }
.admin-actions { display: flex; align-items: center; gap: 20px; }
.admin-muted-action { color: #718096; font-size: 10px; font-weight: 700; }
.link-button { display: inline-block; text-decoration: none; }
.secondary-link { color: #30475e; font-size: 12px; }

@media (max-width: 900px) {
  .portal-shell { grid-template-columns: 1fr; }.sidebar { position: fixed; left: -260px; width: 248px; transition: left .25s; }.sidebar.open { left: 0; }.scrim { display: block; position: fixed; inset: 0; background: #102b2777; z-index: 15; }
  .menu-button { display: block; border: 0; background: none; font-size: 22px; cursor: pointer; } header { padding: 0 24px; justify-content: flex-start; gap: 18px; }.header-actions { margin-left: auto; }
  .all-projects { grid-template-columns: repeat(2, 1fr); }
  .sales-hero, .sales-outcomes, .sales-sections { grid-template-columns: 1fr 1fr; }
  .sales-preview { min-height: 220px; }
  .project-form-grid { grid-template-columns: repeat(2, 1fr); }
  .component-form-grid { grid-template-columns: 1fr; }
  .invoice-management { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  header { height: 82px; padding: 0 16px; } h1 { font-size: 24px; }.eyebrow { display: none; }.primary { padding: 10px 12px; }.primary span { display: none; }
  .notification-menu { position: fixed; right: 16px; top: 74px; width: calc(100vw - 32px); }
  .content { padding: 20px 16px 40px; }.welcome { padding: 28px 24px; }.welcome h2 { font-size: 32px; }.welcome-art { opacity: .35; left: 35%; }
  .stats { grid-template-columns: 1fr; }.stats article { border-right: 0; border-bottom: 1px solid #e4ded4; padding: 17px 22px; }.service-promo-item { grid-template-columns: 1fr; gap: 14px; padding: 17px 22px 34px; }.service-promo-item strong { font-size: 22px; white-space: normal; }.service-promo-item img { height: 128px; object-position: center; }.project-grid, .all-projects, .service-grid, .bottom-grid, .sales-hero, .sales-outcomes, .sales-sections { grid-template-columns: 1fr; }
  .sales-hero { padding: 24px; }.sales-hero h2 { font-size: 28px; }.sales-actions { align-items: stretch; flex-direction: column; }.sales-actions button { width: 100%; }.sales-preview { min-height: 210px; box-shadow: 8px 8px 0 #dce5ed; }.sales-process { padding: 22px; }.sales-section-head { align-items: flex-start; flex-direction: column; }.sales-cta { align-items: flex-start; flex-direction: column; }.sales-cta .primary { width: 100%; }
  .messages-layout { grid-template-columns: 1fr; }.threads { display: none; }.messages-layout.admin-messages .threads { display: block; border-right: 0; border-bottom: 1px solid #d6d9dc; }.conversation { min-height: 550px; }.activity-item time { display: none; }
  .empty-projects-cta { align-items: flex-start; flex-direction: column; }.empty-projects-cta .primary { width: 100%; }
  .admin-summary { grid-template-columns: 1fr; }.admin-orders-preview article { grid-template-columns: 1fr auto; }.admin-orders-preview article > p { grid-column: 1 / -1; grid-row: 2; }
  .project-form-grid { grid-template-columns: 1fr; }.project-create-form .primary { width: 100%; }
  .requirement-item { grid-template-columns: 1fr; }.requirement-item .client-actions { justify-content: flex-end; }
  .project-page-intro { align-items: flex-start; flex-direction: column; }.project-intro-actions, .project-intro-actions .client-action { width: 100%; }
  .project-detail-summary { grid-template-columns: 1fr; }.project-link-form, .project-file-list article { grid-template-columns: 1fr; }.project-link-form .client-action { width: 100%; }.project-file-list .client-actions { justify-content: flex-start; flex-wrap: wrap; }.component-panel .primary { width: 100%; }.component-table td:nth-child(2), .component-table td:nth-child(3) { width: auto; }
  .client-management { grid-template-columns: 1fr; }.client-list article { grid-template-columns: 40px 1fr auto; }.client-list .client-meta { grid-column: 2 / -1; }.client-meta time { display: block; text-align: left; }.client-page-visits { grid-column: 1 / -1; }.visit-day-toggle { align-items: flex-start; flex-direction: column; gap: 3px; }.client-list article.is-editing { grid-template-columns: 1fr; }.client-edit-fields { grid-template-columns: 1fr; }.client-list article.is-editing .client-actions { justify-content: flex-end; }
  .invoice-form-row { grid-template-columns: 1fr; }.client-invoice-list article { grid-template-columns: 44px 1fr; gap: 12px; }.invoice-amount { grid-column: 2; text-align: left; }.client-invoice-list article > .status, .invoice-download-actions { grid-column: 2; justify-self: start; }.invoice-download-actions { flex-wrap: wrap; }
}

/* DoruERP visual language */
:root {
  color: #30475e;
  background: #ededed;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.portal-shell { background: #ededed; }
.sidebar { background: #30475e; padding: 22px 14px 18px; box-shadow: 2px 0 6px rgba(0, 0, 0, .12); }
.brand { padding: 0 8px 28px; gap: 10px; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background: #fff;
  color: #30475e;
  font: 700 18px/1 'Times New Roman', Times, serif;
}
.brand strong { font: 600 18px/20px 'Times New Roman', Times, serif; letter-spacing: 0; }
.brand span { color: #cad3dc; font-size: 9px; letter-spacing: .9px; text-transform: none; }
nav { gap: 2px; }
nav button, .sidebar-bottom > button {
  border-radius: 2px;
  padding: 11px 12px;
  color: #e3e8ed;
  font-size: 13px;
  transition: background-color .18s;
}
nav button:hover { background: #486480; }
nav button.active { background: #fff; color: #30475e; }
.account { border-color: #587086; }.account span { color: #cad3dc; }
.avatar { background: #30475e; color: #fff; }
.account .avatar { background: #fff; color: #30475e; }

header {
  height: 72px;
  background: #fff;
  border-bottom: 1px solid #ccc;
  padding: 0 32px;
  box-shadow: rgba(0, 0, 0, .08) 0 2px 3px;
}
.eyebrow { color: #718096; letter-spacing: 1.2px; }
h1 { font: 600 24px/1.15 'Segoe UI', Tahoma, sans-serif; color: #30475e; }
.icon-button { border-color: #d6d9dc; border-radius: 3px; color: #30475e; }
.icon-button:hover { background: #f1f3f4; }
.icon-button i { background: #e53e3e; }
.primary {
  background: #30475e;
  border-radius: 3px;
  padding: 10px 16px;
  box-shadow: none;
  font-size: 12px;
}
.primary:hover { background: #486480; }

.content { max-width: 1320px; padding: 28px 32px 48px; }
.welcome {
  min-height: 226px;
  border-radius: 2px;
  padding: 34px 38px;
  background: #30475e;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.welcome-label { color: #c8d5ea; letter-spacing: 1.5px; }
.welcome h2 {
  font: 600 33px/1.08 'Segoe UI', Tahoma, sans-serif;
  letter-spacing: -.8px;
}
.welcome h2 em { color: #d8e4f0; font-style: normal; font-weight: 300; }
.welcome p { color: #e1e7ec; }
.text-button { border-bottom-color: #aebdca; }
.sun { background: #d0dff8; opacity: .85; }
.hill-one { background: #243849; }.hill-two { background: #486480; }
.plant { border-left-color: #dce5ed; }.plant i { border-color: #dce5ed; }
.plant b { background: #e4a36f; box-shadow: 0 0 0 2px #30475e; }.plant b::before, .plant b::after { background: #f4f7fb; }

.stats, .service-promo, .project-card, .activity-panel, .service-grid article, .messages-layout {
  background: #fff;
  border-color: #d6d9dc;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.stats, .service-promo { margin-top: 18px; margin-bottom: 18px; }
.stats article { border-color: #d6d9dc; }
.stats span, .service-promo-item span, .category { color: #718096; letter-spacing: .8px; }
.stats strong, .service-promo-item strong { font: 600 27px 'Segoe UI', Tahoma, sans-serif; }
.service-promo-item small { color: #30475e; font-weight: 600; }
.green { background: #38a169; }.orange { background: #3182ce; }.cream { background: #d69e2e; }
.section-heading { margin-top: 0; }
.section-heading span, .contact-card > span, .page-intro span, .modal > span, .threads > span {
  color: #718096;
  letter-spacing: 1.2px;
}
.section-heading h3, .contact-card h3 { font: 600 21px 'Segoe UI', Tahoma, sans-serif; }
.section-heading button { color: #30475e; font-weight: 600; }
.project-card { padding: 20px 22px; }
.project-symbol { border-radius: 3px; background: #30475e !important; }
.status { background: #e8f0fe; color: #30475e; border-radius: 2px; }
.status i { background: #3182ce; }
.project-card h4 { font: 600 17px 'Segoe UI', Tahoma, sans-serif; color: #30475e; }
.progress { background: #e8eaed; }.progress i { background: #30475e !important; }
.deadline { border-color: #e3e3e3; }
.activity-item { border-color: #e3e3e3; }
.activity-icon { border-radius: 3px; background: #eef3f9; color: #30475e; }
.contact-card { background: #dce5ed; border: 1px solid #c8d5df; border-radius: 2px; }
.contact-card button { background: #30475e; border-radius: 3px; }
.photo { background: #30475e; border-color: #fff; }

.page-intro h2, .threads h2, .modal h2, .empty-state h2 {
  font: 600 30px 'Segoe UI', Tahoma, sans-serif;
  color: #30475e;
}
.service-grid h3 { font: 600 18px 'Segoe UI', Tahoma, sans-serif; }
.empty-state > svg { color: #30475e; }
.threads, .conversation-head, .conversation form { border-color: #d6d9dc; }
.thread { background: #eef3f9; border-radius: 2px; box-shadow: inset 3px 0 0 transparent; }
.thread.active { box-shadow: inset 3px 0 0 #30475e; }
.bubble { background: #f1f3f4; border-radius: 2px; }
.bubble.mine { background: #30475e; border-radius: 2px; }
.conversation input, .modal select, .modal textarea { border-color: #d6d9dc; border-radius: 2px; }
.conversation input:focus, .modal select:focus, .modal textarea:focus { border-color: #30475e; }
.conversation form button { background: #30475e; border-radius: 2px; }
.modal-backdrop { background: rgba(36, 56, 73, .7); }
.modal { background: #fafafa; border: 1px solid #d6d9dc; border-radius: 2px; box-shadow: 0 12px 36px rgba(0, 0, 0, .22); }
.toast { background: #30475e; border-radius: 2px; display: flex; align-items: center; gap: 8px; }

@media (max-width: 640px) {
  header { height: 64px; padding: 0 16px; }
  .content { padding: 18px 16px 36px; }
}

