/* Functional application layout. Branding is supplied by brand-light.css. */
.product { --sidebar: 220px; }
.product h1 { font-size: 28px; letter-spacing: -.6px; }
.product h2 { font-size: 16px; letter-spacing: 0; }
.product main { max-width: 1350px; }
.product-nav { margin-top: 42px; }
.product-nav a { font-size: 13px; }
.product-account { margin-top: auto; padding: 20px 0 0; border-top: 1px solid var(--line); }
.product-account span { display: block; font-size: 12px; overflow-wrap: anywhere; }
.product-account small { display: block; margin: 7px 0 14px; font-size: 11px; color: #73736b; }
.text-button { padding: 0; border: 0; background: none; color: #65695a; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.product .page-heading { margin-bottom: 26px; }
.event-tools { position: relative; }
.event-tools > summary { cursor: pointer; list-style: none; }
.event-tools > summary::-webkit-details-marker { display: none; }
.event-tools > summary::after { content: "⌄"; margin-left: 8px; }
.event-tools nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 190px; padding: 7px; border: 1px solid var(--line); border-radius: 13px; background: #fafaf7; box-shadow: 0 8px 25px #22222214; }
.event-tools nav a { display: block; padding: 12px; border-radius: 7px; font-size: 12px; }
.event-tools nav a:hover, .event-tools nav a:focus-visible { background: #ecf0d6; }
.product td { font-size: 12px; padding: 21px; }
.product th { font-size: 10px; }
.product .event-link { font-size: 13px; }
.product .room-name { display: block; line-height: 1.8; }
.product-filters { flex-wrap: wrap; gap: 14px; }
.product-filters input[type=search] { flex: 1; min-width: 180px; max-width: 360px; font-size: 12px; }
.product-filters .switch-label { margin-left: auto; font-size: 11px; }
.product-filters .compact-select { font-size: 11px; }
.house-label { margin: 10px 0 0; color: #73736b; font-size: 12px; }
.house-picker { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.house-picker select { width: min(320px, 60%); }
.event-form { max-width: 850px; }
.event-form > .form-card { margin-bottom: 20px; }
.padded-card { padding: 24px; }
.input-field { display: flex; flex-direction: column; gap: 8px; }
.input-field label { display: block; font-size: 12px; }
.input-field input, .input-field select, .input-field textarea { font-size: 13px; }
.input-field input[type=number] { max-width: 125px; }
.input-field input[type=checkbox] { width: auto; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.records-heading { margin-top: 30px; }
.record-links { display: flex; flex-wrap: wrap; gap: 14px; }
.new-contact summary { cursor: pointer; font-size: 12px; color: #65695a; }
.new-contact .field-grid { margin-top: 18px; }
.attachment-list { display: grid; gap: 16px; max-width: 850px; }
.attachment-card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 14px; }
.attachment-card > div:first-child { min-width: 0; flex: 1; }
.attachment-name { font-size: 13px; text-decoration: underline; overflow-wrap: anywhere; }
.attachment-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.attachment-upload { margin-top: 24px; }
.attachment-upload h2 { margin: 0; overflow-wrap: anywhere; }
.attachment-upload input[type=file] { width: 100%; min-width: 0; }
.submission-status { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px; margin-bottom: 22px; }
.submission-status > div { display: flex; flex-wrap: wrap; gap: 16px; }
.submission-status a { text-decoration: underline; }
.badge.submitted { background: #e4ecd7; color: #426032; }
.changes-table td { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 140px; max-width: 420px; vertical-align: top; }
.submission-actions { margin-top: 22px; }
.submission-diff { margin-top: 24px; }
.submission-diff summary { font-size: 13px; cursor: pointer; margin-bottom: 15px; }
.submitted-files { margin-top: 22px; }
.submitted-files li { font-size: 12px; line-height: 2; overflow-wrap: anywhere; }
.room-choices { border: 0; padding: 0; margin: 0 0 24px; }
.room-choices label { display: flex; flex-direction: row; align-items: center; margin: 10px 0; font-weight: 400; }
.room-choices input { width: 16px; height: 16px; accent-color: #7a852e; }
.question-category { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 12px; }
.question-category:first-child { border: 0; margin-top: 0; padding-top: 0; }
.question-category h2 { font-size: 13px; font-weight: 600; margin: 0 0 19px; }
.room-actions { border-top: 1px solid var(--line); padding-top: 18px; text-align: right; }
.feedback { padding: 14px 18px; background: #e9efde; border: 1px solid #d9e0c9; border-radius: 10px; margin-bottom: 22px; font-size: 12px; line-height: 1.7; }
.feedback.error { background: #fbefec; color: #8d403d; border-color: #ebceca; }
.feedback a { text-decoration: underline; }
.errorlist { color: #a14647; font-size: 12px; list-style: none; padding: 0; margin: 6px 0; line-height: 1.6; }
.errorlist.nonfield { padding: 12px 15px; background: #fbefec; border-radius: 8px; }
.stacked-form { display: grid; gap: 20px; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px 20px; }
.auth-page main { max-width: 420px; padding: 0; }
.auth-logo { display: block; margin: 0 0 30px; }
.auth-card { background: #fafaf7; border: 1px solid #dedfd5; padding: 30px; border-radius: 20px; }
.auth-card h1 { margin-bottom: 27px; }
.auth-card .button { font-size: 13px; }
.auth-card p { font-size: 13px; line-height: 1.7; }
.schedule-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.schedule-heading h2 { margin: 0; }
.schedule-heading button:disabled { opacity: .5; cursor: default; }
.day-row { display: grid; grid-template-columns: minmax(130px, 1.2fr) 1fr 1fr; gap: 16px; align-items: start; padding: 15px 0; border-top: 1px solid var(--line); }
.day-row > strong { font-size: 13px; font-weight: 500; padding-top: 30px; }
.day-row label { font-size: 11px; margin-bottom: 7px; }
.day-row input { font-size: 13px; }
.legacy-confirm { display: flex; flex-direction: row; align-items: center; font-size: 12px; }
.legacy-confirm input { width: 16px; height: 16px; flex-shrink: 0; }
.overview-basics { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-bottom: 22px; }
.overview-card { border: 1px solid var(--line); border-radius: 18px; background: #fafaf7; padding: 24px; min-width: 0; }
.overview-card h2 { margin: 0 0 18px; font-size: 16px; }
.overview-card p, .contact-email { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.contact-email { text-decoration: underline; text-underline-offset: 3px; }
.product .schedule-summary td { padding: 12px 8px; }
.schedule-summary th { padding: 10px 8px; }
.schedule-summary td:first-child { min-width: 0; }
.open-value { color: #8d6843; font-size: 12px; }
.overview-card .notes-heading { margin-top: 25px; }
.summary-notes { white-space: pre-wrap; }
.overview-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.room-overview-heading { display: flex; align-items: baseline; gap: 14px; justify-content: space-between; margin-bottom: 10px; }
.room-overview-heading h2 { margin-bottom: 8px; }
.room-kind { font-size: 11px; color: #74766c; }
.summary-category { border-top: 1px solid var(--line); padding: 18px 0 0; margin-top: 12px; }
.summary-category h3 { font-size: 11px; color: #797d6d; font-weight: 500; margin-bottom: 10px; }
.summary-category dl { margin: 0; }
.summary-category dl > div { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; line-height: 1.7; padding: 7px 0; }
.summary-category dt { color: #505747; }
.summary-category dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.summary-category .summary-text { display: block; }
.summary-category .summary-text dt { font-size: 11px; color: #797d6d; }
.summary-category .summary-text dd { text-align: left; font-weight: 400; white-space: pre-wrap; margin-top: 7px; }
.open-questions { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; color: #8d6843; font-size: 12px; }
.open-questions summary { cursor: pointer; }
.open-questions ul { padding-left: 18px; line-height: 1.9; margin: 10px 0 0; }
.empty-requirements { color: #797d6d; }
.view-switch { display: flex; flex-direction: row; gap: 3px; border: 1px solid #d9dccf; border-radius: 999px; padding: 3px; background: #fafaf7; }
.view-switch a { padding: 9px 17px; border-radius: 999px; font-size: 12px; color: #62685a; }
.view-switch a[aria-current] { background: #ecff20; color: #222; font-weight: 600; }
.house-identity { display: inline-flex; gap: 9px; align-items: center; }
.house-dot { display: inline-block; width: 10px; height: 10px; flex-shrink: 0; background: var(--house-color); border: 1px solid #0002; border-radius: 50%; }
.house-color-picker { display: flex; align-items: flex-end; gap: 16px; }
.house-color-picker input[type=color] { width: 76px; height: 44px; padding: 4px; cursor: pointer; }
.house-color-picker output { font-size: 12px; color: #717767; padding-bottom: 12px; font-family: monospace; }
.color-presets { display: flex; gap: 10px; flex-wrap: wrap; }
.color-preset { width: 34px; height: 34px; padding: 0; background: var(--house-color); border: 4px solid #fafaf7; border-radius: 50%; outline: 1px solid #d7dccc; }
.color-preset[aria-pressed=true] { outline: 2px solid #333b27; outline-offset: 2px; }
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; }
.month-navigation { display: flex; align-items: center; gap: 17px; }
.month-navigation h2 { margin: 0; font-size: 18px; }
.calendar-arrow { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #d9dfcf; border-radius: 50%; font-size: 24px; line-height: 1; color: #616e4d; }
.calendar-arrow:hover { background: #f0f2df; }
.calendar-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 0; padding: 0 22px 20px; }
.calendar-legend li { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #626d55; }
.calendar-empty { padding: 0 22px 15px; margin: 0; font-size: 12px; color: #7a806f; }
.calendar-scroll { overflow: auto; position: relative; border-top: 1px solid var(--line); }
.month-grid { min-width: 840px; table-layout: fixed; white-space: normal; }
.month-grid caption { position: absolute; }
.month-grid th { text-align: center; width: calc(100% / 7); padding: 12px; border-right: 1px solid #e4e7dc; }
.month-grid th abbr { text-decoration: none; }
.product .month-grid td { vertical-align: top; min-width: 0; width: calc(100% / 7); height: 110px; padding: 9px; border-right: 1px solid #e4e7dc; border-top: 1px solid #e4e7dc; white-space: normal; }
.month-grid td:last-child, .month-grid th:last-child { border-right: 0; }
.month-grid .is-weekend { background: #f5f6ef; }
.month-grid .outside-month { background: #f0f1eb; }
.day-number { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 6px; font-size: 12px; color: #626d55; }
.outside-month .day-number { color: #969e89; }
.is-today .day-number { border-radius: 50%; background: #ecff20; color: #222; font-weight: 650; }
.calendar-entries { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; max-height: 145px; overflow-y: auto; }
.calendar-event { display: block; padding: 8px 8px 8px 9px; border-left: 4px solid var(--house-color); border-radius: 5px; background: var(--house-tint); color: #30372a; overflow-wrap: anywhere; }
.calendar-event:hover { box-shadow: 0 0 0 1px var(--house-color); }
.calendar-event-title { display: block; font-size: 11px; line-height: 1.5; font-weight: 600; }
.calendar-event-house { display: block; font-size: 10px; line-height: 1.5; margin-top: 3px; }
.calendar-event-time { display: block; font-size: 10px; margin-top: 4px; }
.product-filters input[type=month] { width: auto; min-width: 165px; font-size: 12px; }
.catalog-state { display: flex; justify-content: space-between; align-items: center; gap: 18px; border: 1px solid var(--line); background: #f5f6ec; border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; font-size: 12px; }
.catalog-state small { display: block; color: #797d6f; font-size: 11px; margin-top: 5px; }
.product .catalog-table td:first-child { white-space: normal; min-width: 220px; max-width: 420px; }
.question-category-label { display: block; color: #818676; font-size: 11px; margin-top: 7px; }
.required-note { display: block; color: #8b7146; font-size: 10px; margin-top: 7px; }
.question-order { display: flex; gap: 7px; }
.order-button { border: 1px solid var(--line); background: transparent; border-radius: 50%; width: 28px; height: 28px; font-size: 15px; color: #737e62; }
.order-button:hover { background: #ecf0d6; }
.catalog-history { margin-top: 25px; font-size: 12px; color: #768368; }
.catalog-history summary { cursor: pointer; }
.catalog-history ul { list-style: none; padding: 0; }
.catalog-history li { display: flex; flex-wrap: wrap; gap: 15px; margin: 13px 0; }
.catalog-history a { text-decoration: underline; }
.catalog-history span { color: #8a947e; font-size: 11px; }
.question-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 25px; align-items: start; }
.question-editor { min-width: 0; }
.question-editor > .form-card { margin-bottom: 17px; }
.question-editor input[type=checkbox] { width: 16px; height: 16px; flex-shrink: 0; accent-color: #879740; }
.question-editor .field-grid { margin-bottom: 0; }
.question-editor .legacy-confirm { font-size: 12px; font-weight: 400; }
.option-row { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 15px; }
.option-row .input-field { flex: 1; min-width: 0; }
.option-row .option-delete { display: flex; align-items: center; flex-direction: row; gap: 5px; margin-bottom: 10px; font-size: 11px; font-weight: 400; }
.editor-details summary { font-size: 12px; }
.editor-details > summary::after { content: "+"; margin-left: auto; font-size: 17px; color: #8a9675; font-weight: 400; }
.editor-details[open] > summary::after { content: "−"; }
.question-editor > .form-actions { position: sticky; bottom: 16px; padding: 13px 17px; border: 1px solid #dce2cd; border-radius: 15px; background: #fffff5ed; backdrop-filter: blur(10px); z-index: 5; }
.editor-details .form-body > .field-help { margin-bottom: 16px; }
.product .rule-table td { padding: 13px 8px; font-size: 11px; white-space: normal; }
.product .rule-table td:first-child { min-width: 140px; }
.rule-table th { padding: 12px 8px; }
.rule-table select { min-width: 100px; font-size: 11px; padding: 8px; }
.question-live-preview { position: sticky; top: 25px; }
.question-live-preview > h2 { font-size: 13px; color: #7a856b; margin: 0 0 13px; }
.question-live-preview label { line-height: 1.6; margin-bottom: 10px; }
.question-live-preview .field-help { margin: 10px 0; }
.question-live-preview input[type=number] { max-width: 110px; }
.preview-scope { display: block; font-size: 10px; color: #929b84; margin-bottom: 15px; }
.preview-selectors { display: flex; gap: 17px; flex-wrap: wrap; align-items: flex-end; }
.preview-selectors .input-field { flex: 1; min-width: 160px; }
.preview-selectors select { font-size: 12px; }
.preview-disclaimer { font-size: 12px; color: #8e7957; margin: 20px 0; }
.publish-card { max-width: 850px; }
.publish-card p { font-size: 12px; line-height: 1.8; color: #758169; }
.publication-changes { font-size: 13px; padding-left: 18px; line-height: 2; margin: 20px 0; }
.release-options { display: block; font-size: 11px; color: #7d896f; line-height: 1.8; margin-top: 8px; }
.general-overview { grid-column: 1 / -1; }
.preserved-answers { border-top: 1px solid #e4dfd0; color: #8b7048; font-size: 12px; margin-top: 22px; padding-top: 17px; }
.preserved-answers summary { cursor: pointer; }
.preserved-answers p { font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.preserved-answers h3 { font-size: 12px; margin-top: 20px; }
.preserved-item { border-top: 1px solid var(--line); padding: 13px 0; }
.preserved-item strong { font-size: 12px; font-weight: 500; }
.preserved-item .legacy-confirm { font-size: 11px; }
.system-field-note { margin: 12px 0 20px; }
@media (max-width: 1000px) { .overview-basics, .overview-rooms { grid-template-columns: 1fr; } }
.view-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; border-left: 5px solid #ecff20; padding: 18px 22px; margin-bottom: 18px; background: #fff; border-radius: 12px; }
.view-state strong { font-size: 18px; }
.view-state span { color: #555; font-size: 13px; }
.archived-state { border-color: #b16c15; background: #fff5df; }
.archived-state strong { color: #774608; }
.history-expanded .table-panel { margin: 0; box-shadow: none; }
.product .history-expanded { padding: 12px 20px 24px; }
.product .changes-table { min-width: 0; width: 100%; table-layout: fixed; }
.product .changes-table td, .product .changes-table th { white-space: normal; overflow-wrap: anywhere; }
.questionnaire-house { margin-bottom: 20px; }
.questionnaire-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; }
.room-questionnaire-links { list-style: none; padding: 0; margin: 18px 0 0; }
.room-questionnaire-links a { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid #e5e5e5; }
.room-questionnaire-links span { font-size: 12px; color: #666; }
.questionnaire-rows { position: relative; display: grid; gap: 10px; margin-top: 14px; }
.questionnaire-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 6px; background: white; border: 1px solid #ddd; border-radius: 12px; }
.questionnaire-label { flex: 1; font-size: 14px; }
.questionnaire-label small { display: block; color: #666; }
.product .questionnaire-required { display: flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; margin: 0; flex-direction: row; }
.drag-handle { touch-action: none; cursor: grab; border: 0; border-radius: 8px; background: transparent; color: #777; padding: 10px 13px; font-size: 24px; user-select: none; }
.drag-handle:hover, .drag-handle:focus-visible { background: #ecff20; color: #222; }
.questionnaire-placeholder { box-sizing: border-box; border: 2px dashed #a1aa51; background: #ecff201c; border-radius: 12px; }
.questionnaire-row.drag-floating { position: fixed; z-index: 1000; box-sizing: border-box; pointer-events: none; background: #fff; border-color: #9ba63b; box-shadow: 0 16px 36px #0003, 0 2px 6px #0002; transform: rotate(-0.35deg) scale(1.01); }
.drag-floating .drag-handle { cursor: grabbing; background: #ecff20; color: #222; }
.portal-dialog { width: min(440px, calc(100vw - 48px)); padding: 28px; border: 1px solid #ddd; border-radius: 20px; color: #222; background: #fafaf7; box-shadow: 0 20px 70px #0003; }
.portal-dialog::backdrop { background: #2226; }
.product .portal-dialog h2 { margin: 0 0 14px; font-size: 22px; }
.portal-dialog p { margin: 0 0 26px; line-height: 1.6; font-size: 14px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.dialog-actions .button { margin: 0; }
.account-form { max-width: 920px; }
.account-status { margin: -8px 0 24px; }
.account-invitation { margin: 26px 0; }
.account-invitation .field-help { margin-top: 12px; max-width: 730px; }
.account-history { margin-top: 30px; }
.account-change { padding: 16px 0; border-bottom: 1px solid #ddd; }
.account-change p { margin: 0 0 10px; font-size: 12px; color: #666; }
.account-change ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.8; }
.password-help { margin: -4px 0 12px; }
.password-help ul { padding-left: 18px; }
.auth-recovery-link { display: inline-block; margin-top: 22px; }
.questionnaire-add { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 22px 0; }
.questionnaire-add select { flex: 1; min-width: 220px; }
@media (max-width: 600px) { .questionnaire-row { flex-wrap: wrap; gap: 8px; } .questionnaire-label { min-width: 60%; } .questionnaire-required { margin-left: 48px; } .view-state { align-items: flex-start; flex-direction: column; } }
@media (max-width: 1050px) { .question-editor-layout { grid-template-columns: minmax(0, 1fr); } .question-live-preview { position: static; max-width: 600px; } }
@media (max-width: 700px) {
  .product { --sidebar: 0px; }
  .product .sidebar { position: static; display: block; padding: 16px 18px; }
  .product-nav { margin-top: 20px; }
  .product-account { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 14px 0 0; margin-top: 14px; }
  .product-account span { font-size: 11px; }
  .product-account small { margin: 0; font-size: 10px; }
  .product-account form { margin-left: auto; }
  .product-filters { align-items: stretch; }
  .product-filters input[type=search] { width: 100%; max-width: none; }
  .product-filters .switch-label { margin-left: 0; }
  .product .page-heading > .button { align-self: flex-start; }
  .padded-card { padding: 18px; }
  .product h1 { font-size: 26px; }
  .day-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .day-row > strong { grid-column: 1 / -1; padding-top: 0; }
  .schedule-heading .text-button { font-size: 11px; text-align: left; }
  .overview-card { padding: 18px; }
  .product .schedule-summary td { font-size: 11px; }
  .calendar-toolbar { padding: 16px; gap: 8px; }
  .calendar-toolbar .button { font-size: 10px; padding: 9px 10px; }
  .month-navigation { gap: 9px; }
  .month-navigation h2 { font-size: 15px; }
  .calendar-legend { padding: 0 16px 16px; gap: 10px 15px; }
  .calendar-legend li { font-size: 10px; }
  .view-switch a { padding: 9px 15px; }
}

/* Shared controls and spacing, following design notes.txt. */
.product { --control-height: 46px; --control-radius: 999px; --control-padding: 20px; }
.product .brand { display: block; width: 100%; }
.product .portal-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.product .portal-brand img { display: block; width: 160px; height: 68px; object-fit: contain; object-position: center; }
.product .portal-brand .brand-sub { display: block; margin: 0; width: 100%; text-align: center; font-family: "Open Sans", "Segoe UI", Arial, sans-serif; font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: .24em; text-indent: .24em; color: #66675f; }
.product.auth-page main { width: min(100%, 420px); max-width: 420px; }
.product .auth-brand { margin-bottom: 34px; }
.product .auth-brand .portal-brand { gap: 14px; }
.product .auth-brand img { width: 236px; height: 100px; }
.product .auth-brand .brand-sub { font-size: 20px; letter-spacing: .28em; text-indent: .28em; }
.product .product-nav a { display: flex; align-items: center; justify-content: center; min-height: var(--control-height); padding: 12px 18px; line-height: 1.4; text-align: center; }
.product .button { display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.3; gap: 8px; }
.product:not(.auth-page) .button { min-height: var(--control-height); padding: 12px 22px; border-radius: var(--control-radius); }
.product:not(.auth-page) input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]),
.product:not(.auth-page) select { min-height: var(--control-height); border-radius: var(--control-radius); padding: 12px var(--control-padding); line-height: 1.4; }
.product:not(.auth-page) select { appearance: none; padding-right: 50px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2364675b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 20px center; background-size: 16px; }
.product:not(.auth-page) textarea { border-radius: 20px; padding: 16px var(--control-padding); }
.product .field-grid { gap: 24px; margin-bottom: 24px; }
.product .input-field { gap: 10px; }
.product .input-field > label { margin: 0; }
.product .event-form > .form-card { margin-bottom: 24px; }
.product .form-actions, .product .heading-actions { gap: 12px; }
.product .form-actions { margin-top: 26px; }
.product .question-category + .question-category { margin-top: 26px; padding-top: 24px; }
.product .room-actions { margin-top: 24px; }
.product main > .field-help { margin: 16px 0 24px; }
.product .questionnaire-add, .product .house-picker { gap: 16px; }
.product .view-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; line-height: 1.3; }
.product .calendar-toolbar { flex-wrap: wrap; gap: 20px; }
.product .month-navigation { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; width: min(100%, 320px); gap: 14px; }
.product .month-navigation h2 { margin: 0; text-align: center; white-space: nowrap; }
.product .calendar-arrow, .product .calendar-arrow-placeholder { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border-radius: var(--control-radius); }
.product .calendar-arrow svg { display: block; flex: none; }
.product .product-filters input[type=month] { min-width: 195px; }
.product tr.clickable-row { cursor: pointer; }
.product tr.clickable-row:hover > td, .product tr.clickable-row:focus-within > td { background: #f0f2e4; }
.product .save-panel { width: calc(100% - 48px); max-width: 760px; margin: 28px auto 12px; padding: 16px 20px; bottom: 20px; gap: 12px; background: #35372f; color: #fff; border: 1px solid #50534a; border-radius: 26px; box-shadow: 0 12px 32px #2223; }
.product .save-panel .save-status { color: #eef0e6; font-size: 12px; }
.product .save-panel .secondary { color: #fff; border-color: #8c9080; background: transparent; }
.product .save-panel .secondary:hover { background: #4c5042; }
.product .save-panel a:focus-visible, .product .save-panel button:focus-visible { outline-color: #ecff20; }
@media (max-width: 700px) {
  .product .product-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
  .product .portal-brand img { width: 148px; height: 63px; }
  .product .auth-brand img { width: 236px; height: 100px; }
  .product .month-navigation { width: min(100%, 298px); gap: 10px; }
  .product .month-navigation h2 { font-size: 15px; }
  .product .save-panel { width: calc(100% - 16px); padding: 14px 16px; bottom: 12px; }
  .product .save-panel .save-status { flex-basis: 100%; }
  .product .save-panel .button { flex: 1 1 120px; min-width: 0; white-space: normal; }
}
@media (max-width: 500px) {
  .product .field-grid { grid-template-columns: 1fr; }
  .product .auth-brand .brand-sub { font-size: 18px; }
}

/* Local date/month popup: the browser's native popup cannot share portal colors. */
.date-control { position: relative; display: block; width: 100%; min-width: 0; }
.product .date-control > input[type=date], .product .date-control > input[type=month] { width: 100%; padding-right: 54px; }
.product-filters .date-control { width: auto; min-width: 195px; }
.date-control input::-webkit-calendar-picker-indicator { display: none; }
.date-open { position: absolute; right: 14px; top: calc(var(--control-height, 46px) / 2); transform: translateY(-50%); width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #55584b; display: grid; place-items: center; }
.date-open svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.date-open:hover { background: #ecff20; color: #222; }
.product .date-picker { position: fixed; inset: auto; margin: 0; width: 320px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow: auto; padding: 16px; border: 1px solid #d5d7ca; border-radius: 22px; background: #fafaf7; color: #222; box-shadow: 0 14px 42px #2223; }
.product .date-picker::backdrop { background: transparent; backdrop-filter: none; }
.date-picker-heading { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; align-items: center; gap: 8px; margin-bottom: 14px; }
.product .date-picker-heading h2 { margin: 0; font-size: 16px; line-height: 1.4; text-align: center; }
.product .date-picker-heading button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; background: transparent; color: #55584b; border: 1px solid #d5d7ca; border-radius: 50%; }
.date-picker-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.date-picker-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.date-picker-weekday { text-align: center; font-size: 11px; color: #75776e; padding: 5px 0 8px; }
.product .date-picker .date-picker-day { display: flex; align-items: center; justify-content: center; width: 100%; height: 38px; min-width: 0; margin: 0; padding: 0; font-size: 13px; line-height: 1; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #222; }
.product .date-picker .outside-date-month { color: #92958a; }
.product .date-picker button:hover:not(:disabled) { background: #f0f3da; }
.product .date-picker .date-picker-day[aria-current=date] { border-color: #a4aa94; }
.product .date-picker .selected-date, .product .date-picker .selected-date:hover:not(:disabled) { background: #ecff20; color: #222; font-weight: 700; }
.product .date-picker button:focus-visible { outline: 2px solid #424638; outline-offset: 1px; }
.product .date-picker button:disabled { opacity: .35; cursor: default; }
.date-picker-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e0e1d9; }
.product .date-picker-footer button { padding: 9px 14px; border: 0; border-radius: 999px; background: #edeee4; font-size: 12px; color: #44483b; }
.date-control input::-webkit-datetime-edit-day-field:focus,
.date-control input::-webkit-datetime-edit-month-field:focus,
.date-control input::-webkit-datetime-edit-year-field:focus { background: #ecff20; color: #222; }
