:root { --ink: #252523; --brand: #344b5f; --accent: #d9987d; --paper: #f2efe9; --white: #fff; --line: #ddd9d3; --muted: #62615d; --error: #a12d35; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #b75b3c; outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.7rem, 2.7vw, 2.5rem); line-height: 1.2; font-weight: 600; letter-spacing: -.025em; margin-bottom: 12px; overflow-wrap: anywhere; }
h2 { font-size: 1.2rem; font-weight: 600; line-height: 1.35; margin-bottom: 14px; overflow-wrap: anywhere; }
h3 { font-size: 1rem; margin-bottom: 4px; }
.muted { color: var(--muted); font-size: .9rem; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); margin-bottom: 13px; }
.button { display: inline-flex; gap: 9px; justify-content: center; align-items: center; border: 1px solid #b75b3c; border-radius: 6px; background: #b75b3c; color: #fff; padding: 11px 18px; font-size: .9rem; font-weight: 600; line-height: 1.5; transition: background .15s; text-align: center; }
.button:hover { background: #963f26; }
.button.secondary { background: white; color: var(--ink); border-color: #c9c4bd; }
.button.secondary:hover { background: #f3efea; }
.button:disabled { cursor: not-allowed; background: #edf0f1; color: #6b6a65; border-color: #d9d8d4; }
.text-link, .breadcrumb { font-size: .9rem; font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.breadcrumb { display: inline-block; margin-bottom: 23px; }
.panel { border: 1px solid var(--line); background: #fff; border-radius: 9px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 32px; }
.page-description { color: var(--muted); margin: 0; max-width: 650px; }
.page-header .button { flex-shrink: 0; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { background: var(--brand); color: #fff; width: 256px; flex-shrink: 0; padding: 35px 20px 28px; display: flex; flex-direction: column; position: sticky; height: 100vh; top: 0; }
.brand { display: flex; align-items: center; gap: 12px; font-size: .8rem; letter-spacing: .17em; font-weight: 600; }
.brand-mark { font-size: 1.8rem; font-weight: 750; letter-spacing: -.04em; color: var(--accent); border-right: 1px solid #ffffff40; padding-right: 14px; }
.sidebar .brand { margin: 0 12px 52px; }
.nav-caption { margin-left: 14px; font-size: .75rem; letter-spacing: .13em; color: #c5d0d9; }
.navigation { display: grid; gap: 8px; }
.navigation a { display: flex; align-items: center; gap: 11px; border-radius: 5px; color: #e6edf3; padding: 14px; font-size: .9rem; line-height: 1.4; }
.navigation svg { flex-shrink: 0; }
.navigation a:hover { background: #ffffff0d; }
.navigation a.active { background: #ffffff12; color: #fff; box-shadow: inset 3px 0 var(--accent); }
.sidebar-bottom { margin-top: auto; padding: 30px 14px 0; border-top: 1px solid #ffffff20; color: #c9d3dd; }
.phase-label { font-size: .75rem; letter-spacing: .13em; color: var(--accent); }
.sidebar-bottom p { font-size: .9rem; margin: 8px 0 0; }
.workspace { flex: 1; min-width: 0; }
.topbar { height: 82px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 38px; }
.topbar-label { color: var(--muted); font-size: .875rem; }
.topbar-label span { padding: 0 13px; color: #bdc7c4; }
.user-area { display: flex; align-items: center; gap: 12px; font-size: .875rem; }
.avatar { width: 35px; height: 35px; background: #e8edf1; color: var(--brand); display: grid; place-items: center; border-radius: 50%; font-size: .75rem; font-weight: 600; }
.logout { background: none; border: 0; display: flex; align-items: center; gap: 7px; color: var(--muted); margin-left: 12px; font-size: .875rem; padding: 7px; }
.main-content { max-width: 1440px; margin: 0 auto; padding: 42px 38px 45px; min-height: calc(100vh - 146px); }
.app-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin: 0 38px; padding: 19px 0; font-size: .75rem; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat { position: relative; padding: 25px; background: white; border: 1px solid var(--line); border-radius: 9px; }
.stat > svg { position: absolute; right: 22px; top: 26px; width: 22px; height: 22px; color: #687f93; }
.stat > span { display: block; font-size: .9rem; padding-right: 30px; }
.stat strong { display: block; font-size: 2.5rem; font-weight: 500; margin: 13px 0 8px; line-height: 1.2; }
.stat strong.stat-text { font-size: 1.3rem; padding-top: 19px; margin-bottom: 11px; }
.stat p { font-size: .875rem; color: var(--muted); margin: 0; }
.stat-future { background: #ece7e0; }
.section-header { padding: 26px 26px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-header h2, .section-header .muted { margin-bottom: 0; }
.section-header .eyebrow { margin-bottom: 7px; }
.project-row { display: flex; align-items: center; gap: 18px; padding: 23px 26px; border-top: 1px solid var(--line); }
.project-row:hover { background: #faf8f4; }
.row-icon { background: #eef0f3; height: 48px; width: 48px; display: grid; place-items: center; flex-shrink: 0; border-radius: 6px; color: #647d94; }
.project-main { flex: 1; min-width: 0; }
.project-main strong { display: block; font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.project-main span, .project-meta { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.project-meta { text-align: right; }
.project-meta span { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.badge { font-size: .75rem; font-weight: 500; background: #eff0f2; color: #41576b; padding: 5px 9px; border: 1px solid #dce2e8; border-radius: 4px; display: inline-block; }
.badge.planned { background: #f8ede7; border-color: #e8cebf; color: #89442f; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.quick { display: flex; align-items: center; gap: 19px; padding: 25px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.quick svg { color: #6c8296; flex-shrink: 0; }
.quick p { color: var(--muted); font-size: .875rem; margin: 0; }
.quick:hover { border-color: #8498ab; }
.phase-note { display: flex; align-items: flex-start; gap: 14px; margin-top: 28px; color: var(--muted); font-size: .875rem; padding: 10px 2px; }
.phase-note svg { flex-shrink: 0; margin-top: 3px; }
.phase-note strong { color: #4d6071; font-weight: 500; }
.phase-note p { margin: 3px 0 0; }
.empty { display: flex; align-items: center; flex-direction: column; text-align: center; padding: 52px 24px; }
.empty svg { color: #8295a6; margin-bottom: 20px; }
.empty h2 { margin-bottom: 10px; }
.empty p { color: var(--muted); max-width: 510px; margin-bottom: 25px; }
.filter-bar { display: flex; align-items: flex-end; gap: 16px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.filter-bar .field { flex: 1; }
.filter-bar .text-link { margin-bottom: 12px; }
.result-count { color: var(--muted); font-size: .875rem; margin: 20px 0 14px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-size: .9rem; font-weight: 600; }
.required { color: #a24e33; }
input, textarea, select { border: 1px solid #c8c5bf; color: var(--ink); background: #fff; border-radius: 5px; padding: 11px 12px; width: 100%; min-width: 0; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #73726d; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
textarea:disabled { background: #f3f1ed; }
.form-panel { max-width: 900px; padding: 30px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.wide { grid-column: 1 / -1; }
.form-footer { margin-top: 30px; display: flex; justify-content: flex-end; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-error { color: var(--error); background: #fff0f0; border: 1px solid #e8bfc1; padding: 14px; margin-bottom: 24px; border-radius: 5px; }
.form-error ul { margin-bottom: 0; }
.form-error a { text-decoration: underline; }
.field-error { color: var(--error); font-size: .875rem; }
.template-preview { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .9rem; }
.template-preview p { margin: 7px 0 0; color: var(--muted); }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.house-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.house-card { padding: 25px; display: flex; flex-direction: column; }
.house-card:hover { border-color: #90a0af; }
.house-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.house-symbol { width: 60px; height: 60px; display: grid; place-items: center; background: #f0ede7; color: #627d96; border-radius: 6px; }
.house-description { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.house-card-bottom { border-top: 1px solid var(--line); padding-top: 16px; margin-top: auto; display: grid; gap: 8px; font-size: .75rem; color: var(--muted); }
.house-card-bottom strong { font-size: .875rem; color: var(--brand); font-weight: 600; }
.detail-actions { display: flex; gap: 12px; margin: 0 0 24px; flex-wrap: wrap; }
.detail-panel { padding: 28px; margin-bottom: 24px; }
.detail-panel .section-header { padding: 0; margin-bottom: 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 35px; margin: 22px 0 8px; }
.detail dt { font-size: .875rem; color: var(--muted); margin-bottom: 7px; }
.detail dd { margin: 0; }
.success { color: #20523d; padding: 12px 0; border-bottom: 1px solid #ccd4df; }
.project-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; font-size: .875rem; color: var(--muted); }
.project-tabs { display: flex; flex-wrap: wrap; gap: 3px 20px; border-bottom: 1px solid var(--line); margin-bottom: 25px; }
.project-tabs a { padding: 13px 0; font-size: .875rem; color: var(--muted); border-bottom: 3px solid transparent; }
.project-tabs .active { border-bottom-color: var(--brand); color: var(--brand); font-weight: 600; }
.placeholder { padding: 44px; }
.placeholder > svg { color: #a15439; display: block; margin-bottom: 20px; }
.placeholder h2 { margin-top: 20px; }
.placeholder-copy { max-width: 700px; color: var(--muted); }
.placeholder-copy .field { margin: 24px 0; }
.version-row { padding: 23px 26px; display: flex; gap: 20px; align-items: center; border-top: 1px solid var(--line); }
.version-row > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.version-row strong, .version-row div span { display: block; }
.version-row div span { font-size: .875rem; color: var(--muted); }
.version-number { background: #eaf0f5; color: var(--brand); font-weight: 600; padding: 8px 12px; border-radius: 5px; }
.version-row:hover { background: #f6f5f2; }
.skip-link { position: absolute; top: -80px; background: #fff; color: var(--brand); padding: 10px; z-index: 100; }
.skip-link:focus { top: 10px; left: 10px; }
.loading { padding: 60px; display: flex; gap: 15px; align-items: center; justify-content: center; }
.spinner { height: 22px; width: 22px; border: 2px solid #d1d8df; border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.standalone { max-width: 700px; margin: 10vh auto; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-brand { background: var(--brand); color: #fff; padding: 48px 54px; display: flex; flex-direction: column; }
.login-brand .brand-mark { font-size: 2rem; }
.login-message { margin: auto 0; padding: 70px 0; }
.login-message .eyebrow { color: #d0d9e2; }
.login-message h1 { font-size: clamp(2.6rem, 4.4vw, 4.5rem); font-weight: 500; line-height: 1.15; }
.login-message h1 span { color: #e1aa93; }
.login-message > p:last-child { color: #dde5ed; max-width: 350px; margin: 28px 0 0; }
.login-brand-bottom { display: flex; gap: 12px; align-items: center; color: #d3dde5; font-size: .875rem; border-top: 1px solid #ffffff30; padding-top: 22px; }
.login-side { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; background: #fafbfb; padding: 50px; }
.login-card { width: 100%; max-width: 390px; }
.login-lock { display: inline-grid; place-items: center; width: 50px; height: 50px; border: 1px solid #dedad3; border-radius: 8px; margin-bottom: 28px; color: var(--brand); }
.login-card h2 { font-size: 2rem; letter-spacing: -.02em; margin-bottom: 10px; }
.login-form { display: grid; gap: 20px; margin-top: 35px; }
.login-form .button { margin-top: 5px; padding: 13px; }
.login-help { margin: 30px 0 0; font-size: .875rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; }
.login-foot { position: absolute; bottom: 20px; font-size: .75rem; color: var(--muted); }
@media (max-width: 1150px) { .sidebar { width: 225px; padding-left: 12px; padding-right: 12px; } .main-content { padding: 32px 25px; } .topbar { padding: 0 25px; } .topbar-label { display: none; } .topbar { justify-content: flex-end; } .house-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .project-meta { display: none; } .stat { padding: 20px; } .stat > svg { display: none; } .stat > span { padding-right: 0; } .page-header { align-items: flex-start; } }
@media (max-width: 820px) { .app-shell { display: block; } .sidebar { width: 100%; height: auto; position: static; padding: 17px 20px; } .sidebar .brand { margin: 0 0 18px; } .nav-caption, .sidebar-bottom { display: none; } .navigation { display: flex; flex-wrap: wrap; gap: 6px; } .navigation a { padding: 9px 11px; font-size: .875rem; } .navigation a.active { box-shadow: inset 0 -2px var(--accent); } .topbar { height: auto; min-height: 62px; padding: 10px 20px; } .stats-grid { gap: 12px; } .main-content { padding: 28px 20px; } .page-header { flex-wrap: wrap; } .section-header { flex-wrap: wrap; padding: 22px; } .login-layout { grid-template-columns: 1fr; } .login-brand { padding: 24px; } .login-message { padding: 35px 0 20px; } .login-message h1 { font-size: 2.5rem; } .login-message h1 br { display: none; } .login-brand-bottom { display: none; } .login-side { padding: 38px 24px 70px; } .login-card { max-width: 450px; } }
@media (max-width: 560px) { .main-content { padding: 25px 16px; } .navigation svg { width: 17px; } .navigation a { padding: 8px; font-size: .875rem; } .navigation a:nth-child(2) { flex-basis: auto; } .user-name { max-width: 130px; overflow-wrap: anywhere; } .logout { margin-left: 0; } .stats-grid, .quick-grid, .house-grid, .form-grid, .detail-grid { grid-template-columns: 1fr; } .stats-grid { gap: 12px; } .stat { padding: 20px; } .stat > svg { display: block; } .stat strong { font-size: 2rem; margin: 8px 0; } .stat strong.stat-text { padding-top: 0; } .filter-bar { flex-wrap: wrap; padding: 18px; } .filter-bar .field { flex-basis: 100%; } .project-row { padding: 20px; gap: 12px; flex-wrap: wrap; } .project-row .badge { display: none; } .row-icon { width: 38px; height: 38px; } .project-main { min-width: 160px; } .quick { padding: 20px; } .form-panel, .detail-panel, .placeholder { padding: 22px; } .form-footer { flex-wrap: wrap; } .form-footer .button { flex: 1; } .project-toolbar { flex-wrap: wrap; } .version-row { padding: 20px; gap: 12px; flex-wrap: wrap; } .app-footer { margin: 0 16px; gap: 12px; } .login-card h2 { font-size: 1.7rem; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
