:root { font-family: Avenir, 'Helvetica Neue', Arial, sans-serif; color: #221d18; background: #f5f2ec; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; overflow-wrap: anywhere; }
main, section, .scale-grid > *, .job > * { min-width: 0; }
img { max-width: 100%; height: auto; }
.topbar { background: #171512; color: #f7f3ec; display: flex; align-items: center; justify-content: space-between; padding: 18px max(24px, calc((100vw - 1120px) / 2)); gap: 20px; }
.brand { display: flex; gap: 12px; align-items: center; letter-spacing: .2em; font-family: Georgia, serif; font-size: 19px; }
.brandmark { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid #bb9266; border-radius: 50%; color: #d5ad80; font-size: 21px; letter-spacing: 0; }
.portal-label { color: #d3a46e; font-size: 12px; letter-spacing: .12em; font-weight: 700; }
.workspace { max-width: 1120px; margin: 0 auto; padding: 44px 24px 100px; }
.pagehead { margin-bottom: 24px; }
.eyebrow { color: #97693d; font-weight: 800; letter-spacing: .15em; font-size: 12px; margin: 0 0 12px; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(35px, 5vw, 54px); margin: 0 0 12px; letter-spacing: -.035em; }
h2 { font-size: 27px; margin: 0 0 20px; }
p { line-height: 1.6; }
.subtle { color: #6d645c; margin: 0; }
.card { background: #fffdfa; border: 1px solid #ddd4c9; border-radius: 7px; padding: clamp(24px, 4vw, 42px); margin: 20px 0; box-shadow: 0 10px 34px #32261b08; }
.card p { max-width: 72ch; }
.login { max-width: 520px; }
.login label, .question label, .scale { display: block; font-weight: 600; line-height: 1.5; }
.login label { margin: 22px 0; }
input, textarea, select { display: block; width: 100%; margin-top: 9px; padding: 13px 14px; border: 1px solid #c7bdb1; border-radius: 5px; background: #fff; color: #221d18; font: inherit; font-size: 16px; }
textarea { resize: vertical; min-height: 106px; }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid #ba8a58; outline-offset: 2px; }
.question { border-top: 1px solid #e7e0d7; padding: 24px 0; }
.question:last-child { padding-bottom: 0; }
.scale-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 30px; margin-top: 25px; }
.scale select { max-width: 220px; }
.progressbar, .navline { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.progressbar { border-top: 2px solid #93683f; padding-top: 15px; font-weight: 650; }
.step-count { color: #93683f; }
.navline { padding: 0 0 16px; border-bottom: 1px solid #ddd4c9; }
.phase-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.selected-phase { color: white; background: #5a3828; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; padding-top: 15px; }
button { cursor: pointer; min-height: 44px; border: 1px solid transparent; border-radius: 4px; padding: 12px 18px; font: inherit; font-size: 15px; font-weight: 650; }
button:disabled { cursor: wait; opacity: .6; }
.table-wrap:focus-visible { outline: 3px solid #ba8a58; outline-offset: 3px; }
.report { margin: 26px 0; padding-top: 20px; border-top: 1px solid #ddd4c9; }
button:hover { filter: brightness(.92); }
.primary { color: #fff; background: #5a3828; }
.secondary { background: transparent; border-color: #8d705a; color: #4c3426; }
.link-button { background: transparent; color: #5a3828; text-decoration: underline; padding: 4px; }
.consent { display: flex; gap: 14px; padding: 25px 0 0; align-items: flex-start; line-height: 1.5; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.notice { background: #e9e2d7; border-left: 4px solid #997045; padding: 13px 16px; max-width: 700px; }
.notice.error { background: #fff0ec; border-color: #a53f28; }
.hint { color: #726a61; font-size: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 13px 11px; border-bottom: 1px solid #e8e1d9; white-space: nowrap; }
th { color: #654d3c; font-size: 13px; }
.job { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #e8e1d9; padding: 14px 0; }
.answer { white-space: pre-line; border-top: 1px solid #e8e1d9; padding-top: 15px; }
.card > button { margin: 0 10px 10px 0; }
@media(max-width: 680px) { .topbar { padding: 15px 18px; } .brand { font-size: 16px; } .portal-label { max-width: 120px; text-align: right; line-height: 1.4; } .workspace { padding: 32px 17px 70px; } .scale-grid { grid-template-columns: 1fr; } .actions { justify-content: stretch; } .actions button { flex: 1 1 140px; } }
