/* Shared presentation for the local layout proposal. Form semantics and routes stay intact. */
:root {
  --control-radius: 10px;
  --control-height: 40px;
  --control-border: #c8dad7;
  --control-focus: #256f74;
  --feedback-error: #a71e28;
}
#app
  :is(form.editor, .compact-form, .faq-admin-editor, .client-appointment-detail form)
  :is(input:not([type='checkbox']):not([type='radio']), select, textarea) {
  border-radius: var(--control-radius);
  border-color: var(--control-border);
  min-height: var(--control-height);
}
#app
  :is(.portal-heading, .compact-actions, .form-actions, .faq-admin-actions, .list-actions)
  button {
  border-radius: var(--control-radius);
  min-height: var(--control-height);
  font-size: 14px;
  padding: 9px 14px;
}
:is(input, select, textarea, button, summary, a):focus-visible {
  outline: 3px solid var(--control-focus);
  outline-offset: 3px;
}
.form-feedback-error,
.field-feedback-error {
  display: block;
  color: var(--feedback-error);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.field-feedback-error {
  margin: 5px 0 8px;
}
.form-feedback-error {
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 3px solid var(--feedback-error);
  background: #fff4f3;
  border-radius: 6px;
}
[aria-invalid='true'] {
  border-color: var(--feedback-error) !important;
}
#feedback[data-level='error'] {
  position: static;
  inset: auto;
  margin: 16px;
  padding: 12px 16px;
  background: #fff4f3;
  border: 1px solid #e9bec0;
  border-radius: 8px;
  color: var(--feedback-error);
  font-weight: 600;
  box-shadow: none;
}
#feedback:empty {
  display: none;
}
@media (max-width: 640px) {
  :root {
    --control-height: 44px;
  }
  #app :is(form.editor, .compact-form, .faq-admin-editor) :is(input, select, textarea) {
    font-size: 16px;
  }
  .form-feedback-error {
    padding: 9px 10px;
  }
}

/* Client workspace uses the same light controls and brand as the staff portal. */
body:has(.role-client) > header {
  display: none;
}
.role-client .client-brand {
  display: block;
  margin-bottom: 20px;
}
.role-client .client-brand img {
  display: block;
  width: 170px;
  max-width: 100%;
  height: auto;
}
.role-client .portal-workspace {
  max-width: 1280px;
  padding: 24px;
}
.role-client .portal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.role-client .client-account-name {
  font-size: 13px;
  color: #56777d;
  margin: 0 0 4px;
}
.role-client .portal-heading h1 {
  margin: 0;
}
@media (max-width: 900px) {
  .role-client .portal-nav {
    position: relative;
    min-height: 76px;
    padding: 12px 16px;
  }
  .role-client .portal-nav > .client-brand {
    display: block !important;
    width: 155px;
    margin: 0;
    padding: 5px 8px;
    border-radius: 10px;
    background: white;
  }
  .role-client .portal-menu-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    width: auto;
    gap: 14px;
  }
}
@media (max-width: 640px) {
  .role-client .portal-workspace {
    padding: 16px;
  }
  .role-client .client-brand {
    margin: 0;
  }
  .role-client .client-brand img {
    width: 155px;
  }
  .role-client .portal-heading {
    align-items: flex-start;
  }
  .role-client .portal-heading h1 {
    font-size: 25px;
  }
}

.preview-guide {
  padding: 40px 24px;
  max-width: 1100px;
  margin: auto;
}
.preview-guide .logo {
  width: 230px;
  height: auto;
}
.preview-guide h1 {
  font-size: clamp(30px, 5vw, 48px);
}
.preview-guide p {
  line-height: 1.65;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.preview-grid article {
  border: 1px solid #c8dad7;
  border-radius: 14px;
  padding: 20px;
  background: #f5faf7;
  overflow-wrap: anywhere;
}
.preview-grid h2 {
  font-size: 20px;
}
@media (max-width: 760px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }
}
