.brand-logo { display: block; width: 45px; height: 48px; object-fit: contain; flex-shrink: 0; }
.platform-warning { background: #faf0d9; color: #674718; border-bottom: 1px solid #dfc58e; }
.platform-warning-inner { display: flex; align-items: flex-start; gap: 14px; padding-block: 17px; }
.platform-warning-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 23px; height: 23px; border: 1px solid currentColor; border-radius: 50%; font-size: 14px; font-weight: 700; line-height: 1; margin-top: 2px; }
.platform-warning strong { display: block; font-size: 13px; font-weight: 650; line-height: 1.6; }
.platform-warning p { margin: 4px 0 0; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.account-menu, .actions, .page-heading, .panel-heading { display: flex; align-items: center; gap: 12px; }
.actions { flex-wrap: wrap; }
.account-menu { font-size: 11px; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; }
.account-name { max-width: 170px; overflow-wrap: anywhere; }
.account-name:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.logout-button { border: 0; background: transparent; padding: 5px 0; color: var(--muted); font-size: 11px; }
.logout-button:hover { color: var(--ink); }
.page-section { padding-block: 44px 65px; min-height: 65vh; }
.page-heading, .panel-heading { justify-content: space-between; margin-bottom: 28px; }
.page-title { font-size: clamp(29px, 3.8vw, 42px); letter-spacing: -1.6px; margin-block: 14px; }
.muted { color: var(--muted); font-size: 13px; }
.page-heading .muted { margin: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 15px; border: 1px solid #d5dcd2; border-radius: 6px; background: transparent; color: var(--ink); font-size: 12px; font-weight: 500; line-height: 1.65; cursor: pointer; }
.button:hover { background: #eaf0e5; }
.button-primary { background: #203c34; color: white; border-color: #203c34; }
.button-primary:hover { background: #305446; border-color: #305446; }
.button-danger { color: #943d32; border-color: #ddbab2; }
.button-danger:hover { background: #f9eeeb; }
.message { padding: 17px 20px; margin-top: 24px; border-radius: 6px; border: 1px solid; font-size: 13px; overflow-wrap: anywhere; }
.message ul { margin-block: 6px 0; padding-left: 20px; }
.success { color: #305639; background: #edf4eb; border-color: #cdddbe; }
.notice { color: #735625; background: #faf4e9; border-color: #e4d7b6; }
.error { color: #883b32; background: #fcf0ed; border-color: #e8c9c1; }
.auth-panel { width: min(460px, 100%); margin: 64px auto 80px; }
.auth-panel h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -1.8px; line-height: 1.15; }
.auth-panel > .muted { margin-block: 20px 30px; }
.form-stack { display: flex; flex-direction: column; gap: 20px; }
.form-stack h2 { font-size: 18px; font-weight: 600; letter-spacing: -.4px; margin: 8px 0 0; }
.form-stack h2:not(:first-child) { border-top: 1px solid var(--line); padding-top: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, legend { font-size: 12px; font-weight: 600; }
.optional { font-size: 10px; font-weight: 400; color: var(--muted); padding-left: 5px; }
input, textarea, select { font: inherit; font-size: 14px; background: #fff; border: 1px solid #ccd5c8; border-radius: 5px; color: var(--ink); width: 100%; padding: 11px 12px; min-height: 43px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #799e76; outline-offset: 2px; }
textarea { resize: vertical; min-height: 105px; line-height: 1.7; }
input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; padding: 0; accent-color: var(--green); flex-shrink: 0; }
.checkbox-label { display: flex; align-items: center; gap: 10px; font-size: 12px; cursor: pointer; padding-block: 7px; }
.form-help { font-size: 11px; line-height: 1.8; color: var(--muted); margin: 0; }
.auth-panel > .form-help { margin-top: 24px; }
.field-error { font-size: 12px; color: #943d32; margin: 0; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-tile { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 26px; display: flex; flex-direction: column; transition: border-color .2s; }
.project-tile:hover { border-color: #78906c; }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.project-tile h2 { font-size: 22px; letter-spacing: -.7px; line-height: 1.4; margin: 24px 0 8px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.project-tile h2 span { color: #8da376; }
.project-tile p { font-size: 12px; color: var(--muted); margin: 0 0 25px; line-height: 1.9; }
.empty-state { padding: 25px; border: 1px dashed #cbd6c3; border-radius: 7px; color: var(--muted); font-size: 13px; grid-column: 1 / -1; }
.empty-state h2, .empty-state h3 { font-size: 17px; color: var(--ink); margin-top: 0; }
.empty-state p { margin-bottom: 0; }
.management-list { display: grid; gap: 14px; }
.management-row { border: 1px solid var(--line); border-radius: 7px; background: white; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.management-row h2 { font-size: 18px; font-weight: 600; letter-spacing: -.4px; margin: 0 0 5px; }
.management-row h3 { font-size: 14px; font-weight: 600; margin: 0; }
.management-row p { font-size: 12px; color: var(--muted); margin: 0; }
.management-row .button { flex-shrink: 0; }
.management-row > div:first-child { min-width: 0; }
.management-row .tag { margin-top: 10px; }
.back-link { display: inline-block; font-size: 12px; color: var(--muted); margin-bottom: 15px; }
.editor-panel { background: white; padding: 30px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 24px; }
.editor-panel > h2, .panel-heading h2 { font-size: 19px; font-weight: 600; margin-block: 0; }
.panel-heading { margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.customer-picker { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 6px; }
.customer-picker .form-help { margin-bottom: 12px; }
.customer-picker .muted { font-size: 11px; }
.compact-row { padding: 15px 18px; background: #fafbf8; }
.danger-zone { border: 1px solid #e8cec4; border-radius: 6px; padding: 0 20px 16px; }
.danger-zone summary { color: #943d32; padding-bottom: 0; font-size: 12px; }
.danger-zone p { margin-top: 20px; }
.narrow-page { max-width: 800px; margin-inline: auto; }
.pagination { display: flex; justify-content: space-between; gap: 15px; font-size: 12px; margin-top: 28px; }
.pagination > span { color: var(--muted); }
.pagination a { color: var(--green); }
.preserve-lines { white-space: pre-line; }
.summary-empty { margin-top: 24px !important; }
.step-completed .step-number { color: #426c44; background: #edf4eb; border-color: #cdddbe; }
.step-completed h3 { color: #64765d; }
.update-card { padding-bottom: 5px; }
.update-card h3, .project-tile h2, .management-row, .intro-copy, .phase-heading h2, .summary-card h2, .summary-card p, .timeline h3, .timeline p { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
    .header-inner { flex-wrap: wrap; padding-block: 16px; gap: 12px 24px; }
    .header-inner nav { order: 3; width: 100%; gap: 22px; }
    .nav-link { padding-block: 5px; }
    .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .page-section { padding-block: 30px 45px; }
    .header-inner nav { overflow-x: auto; flex-wrap: nowrap; gap: 22px; }
    .nav-link { flex-shrink: 0; }
    .brand { margin: 0; }
    .account-menu { margin-left: auto; }
    .account-name { max-width: 95px; font-size: 10px; }
    .page-heading, .panel-heading, .management-row { align-items: flex-start; flex-direction: column; gap: 16px; }
    .project-grid, .form-grid { grid-template-columns: 1fr; }
    .editor-panel { padding: 20px; }
    .auth-panel { margin-block: 44px 60px; }
    .page-title { letter-spacing: -1px; }
    .checkbox-label { align-items: flex-start; }
    .checkbox-label input { margin-top: 3px; }
    .customer-picker { padding: 12px; overflow-wrap: anywhere; }
}
@media print {
    .account-menu, .actions, .message, .pagination, .back-link { display: none !important; }
    .header-inner { flex-wrap: nowrap; }
    #empty-filter { display: none !important; }
    .page-section { min-height: 0; }
}
