:root { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #171717; background: #f3f2ef; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: #8f0712; }
.centered { display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 560px); padding: 38px; background: #fff; border: 1px solid #ddd9d3; border-radius: 22px; box-shadow: 0 18px 60px rgba(40,20,20,.08); }
h1 { font-size: clamp(2rem, 6vw, 3.3rem); margin: 8px 0 18px; line-height: 1.05; }
h2 { margin: 0 0 12px; }
p { line-height: 1.55; }
.eyebrow { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6b645f; }
button, input, select, textarea { font: inherit; }
button, .button, .file-button { border: 1px solid #cbc5bf; border-radius: 10px; padding: 10px 14px; background: #fff; cursor: pointer; color: inherit; text-decoration: none; display: inline-block; }
.primary { background: #930715; color: #fff; border-color: #930715; }
.secondary { background: transparent; }
.danger { color: #930715; border-color: #e6b6ba; }
.status { min-height: 1.5em; font-weight: 700; }
.shell { width: min(100% - 32px, 1240px); margin: 0 auto; padding-bottom: 60px; }
.topbar { min-height: 86px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid #ddd9d3; }
.topbar nav { margin-left: auto; display: flex; gap: 20px; }
.topbar nav a { text-decoration: none; font-weight: 700; color: #292524; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 40px 0 24px; }
.page-heading h1 { margin-bottom: 0; }
.panel, .room-card { background: #fff; border: 1px solid #ddd9d3; border-radius: 18px; padding: 24px; box-shadow: 0 4px 18px rgba(40,20,20,.035); }
.panel { margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.room-card { display: block; color: inherit; text-decoration: none; min-height: 180px; }
.room-card:hover { border-color: #930715; transform: translateY(-1px); }
.room-card.compact { min-height: 130px; }
.badge { display: inline-block; border-radius: 999px; padding: 4px 9px; background: #eeeae5; font-size: .74rem; font-weight: 800; }
.badge.ok { background: #def7e7; color: #176537; }
.badge.warn { background: #fee2e2; color: #991b1b; }
.empty { text-align: center; padding: 60px 24px; }
.compact-empty { padding: 28px 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { font-size: .84rem; font-weight: 750; }
.form-grid input, .form-grid select, .form-grid textarea { display: block; width: 100%; margin-top: 5px; border: 1px solid #cbc5bf; border-radius: 9px; padding: 10px; background: #fff; }
.form-grid .wide { grid-column: 1 / -1; }
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.admin-grid .panel { margin: 0 0 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 9px; text-align: left; border-bottom: 1px solid #e5e1dc; vertical-align: top; }
th { color: #6b645f; font-size: .8rem; }
small { color: #6b645f; }
.actions { display: flex; flex-wrap: wrap; gap: 7px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-heading p { margin: 0 0 12px; color: #6b645f; }
.upload-form { margin: 18px 0; padding: 16px; border: 1px solid #e5e1dc; border-radius: 12px; background: #faf9f7; }
.document-list { border: 1px solid #e5e1dc; border-radius: 12px; overflow: hidden; }
.document-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px; border-bottom: 1px solid #e5e1dc; }
.document-row:last-child { border-bottom: 0; }
.document-row h3 { margin: 0 0 5px; }
.file-button input { position: absolute; opacity: 0; pointer-events: none; }
.version-history, .pending { margin-top: 10px; }
.version-history summary, .pending > summary { cursor: pointer; font-weight: 700; color: #8f0712; }
.version-history ul { margin: 8px 0 0; padding-left: 20px; }
.pending { padding-top: 16px; }
.notice { padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; }
.notice.error { background: #fee2e2; color: #991b1b; }
.notice.success { background: #def7e7; color: #176537; }
.notice.invite { background: #fff5cf; }
.notice code { display: block; margin-top: 8px; word-break: break-all; }
@media (max-width: 850px) { .admin-grid { grid-template-columns: 1fr; } .topbar { flex-wrap: wrap; padding: 16px 0; } .topbar nav { order: 3; width: 100%; margin: 0; } }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } .form-grid .wide { grid-column: auto; } .page-heading { align-items: flex-start; flex-direction: column; } .shell { width: min(100% - 20px, 1240px); } }
