/* Settings, feedback and sign-in share the customer workspace design. */
.secondary-eyebrow {
  margin: 0 0 .45rem;
  color: #a8102a;
  font-size: .75rem;
  line-height: 1.5;
  font-weight: 650;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.customer-shell .settings-page { display: grid; gap: 1.4rem; width: min(100%, 62rem); margin-inline: auto; }
.customer-shell .settings-page :is(.settings-heading, .settings-card, .settings-form),
.customer-shell .feedback :is(.feedback-heading, .feedback-card, .feedback-filter-form) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.customer-shell .settings-heading { margin: 0; }
.customer-shell .settings-heading h1 { margin: 0; font-size: clamp(1.75rem, 2.4vw, 2rem); font-weight: 650; letter-spacing: -.035em; }
.customer-shell .settings-heading h1 + p { margin: .55rem 0 0; color: #475569; font-size: .9375rem; line-height: 1.6; }
.settings-section-nav { display: flex; flex-wrap: wrap; gap: .5rem; padding: .65rem; border: 1px solid #e0e6ee; border-radius: 1rem; background: #fff; }
.settings-section-nav a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .6rem .85rem; border-radius: .6rem; color: #475569; font-size: .875rem; font-weight: 550; }
.settings-section-nav a:hover { background: #f3f5f8; color: #17243b; }
.settings-section-nav svg { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.settings-section-nav a:focus-visible { outline: 3px solid #c8102e; outline-offset: 2px; }
.customer-shell .settings-page > .settings-card { margin: 0; border: 1px solid #e0e6ee; border-radius: 1rem; background: #fff; box-shadow: 0 2px 6px rgb(23 36 59 / 3%); scroll-margin-top: 6rem; }
.customer-shell .settings-page > .settings-card:target { box-shadow: 0 0 0 3px rgb(200 16 46 / 13%); }
.customer-shell .settings-page .settings-card-heading { padding: 1.4rem 1.5rem; border-bottom-color: #e7ecf2; }
.customer-shell .settings-page .settings-card-heading h2 { color: #17243b; font-size: 1.125rem; font-weight: 650; }
.customer-shell .settings-page .settings-card-heading p { max-width: 42rem; margin: .4rem 0 0; color: #475569; font-size: .875rem; line-height: 1.6; }
.customer-shell .settings-page .settings-form { padding: 1.5rem; gap: 1.2rem; }
.customer-shell .settings-page .form-field { min-width: 0; }
.customer-shell .settings-page .form-label { margin-bottom: .4rem; color: #27374e; font-size: .875rem; font-weight: 550; }
.customer-shell .settings-page .settings-form input:not([type="checkbox"]):not([type="radio"]),
.customer-shell .settings-page .settings-form select,
.customer-shell .settings-page .settings-form textarea {
  min-height: 2.875rem; width: 100%; max-width: 100%; padding: .7rem .8rem; border: 1px solid #cbd5e1 !important; border-radius: .6rem; background: #fff !important; color: #17243b !important; font-size: .9375rem; line-height: 1.6;
}
.customer-shell .settings-page .settings-form input:focus,
.customer-shell .settings-page .settings-form select:focus,
.customer-shell .settings-page .settings-form textarea:focus { outline: 2px solid #c8102e; outline-offset: 2px; box-shadow: none; }
.customer-shell .settings-page .settings-form textarea { min-height: 8rem; resize: vertical; }
.customer-shell .settings-page .form-help { margin-top: .45rem; color: #475569; font-size: .8125rem; line-height: 1.6; }
.settings-save-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding-top: .3rem; }
.settings-save-row > span { color: #475569; font-size: .8125rem; }
.customer-shell .settings-page .settings-submit { margin: 0; }
.customer-shell .settings-page .acquisition-template-list { padding-inline: 1.5rem; }
.customer-shell .settings-page .acquisition-template-item { margin-top: 1rem; padding: 1.25rem; border: 1px solid #e0e6ee; border-radius: .75rem; background: #fbfcfe; }
.customer-shell .settings-page .acquisition-template-item:first-child { margin-top: 0; }
.customer-shell .settings-page .acquisition-template-item h3 { font-size: 1rem; }
.customer-shell .settings-page .acquisition-template-item .settings-form { padding: 1.1rem 0 0; gap: .8rem; }
.customer-shell .settings-page .acquisition-template-state { padding: .25rem .55rem; border-radius: .4rem; background: #e9f6ef; color: #216044; font-size: .8125rem; }
.customer-shell .settings-page .acquisition-template-state.is-missing { color: #98312b; background: #fff0ed; }
.customer-shell .settings-page .acquisition-placeholder-help { padding-block: .8rem; }
.customer-shell .settings-page .signature-preview { border-radius: .65rem; background: #f8fafc; }
.customer-shell .settings-page .template-default-form { gap: .75rem; align-items: end; }
.customer-shell .settings-page .message-template-item { border-radius: .75rem; padding: 1rem; gap: 1rem; }
.customer-shell .settings-page .message-template-item > div { min-width: 0; }
.customer-shell .settings-page .message-template-item p { max-height: 6rem; font-size: .875rem; }
.customer-shell .settings-page .message-template-item details { min-width: 0; }
.customer-shell .settings-page .agent-settings-card { padding: 1.5rem; }
.customer-shell .settings-page .agent-settings-item { padding: 1.1rem; border-color: #e0e6ee; border-radius: .75rem; }
.customer-shell .settings-page .agent-settings-heading h2 { font-size: 1.125rem; }
.customer-shell .settings-page .token-create-form,
.customer-shell .settings-page .token-copy-row { gap: .75rem; }

/* Feedback keeps its native filters and conversation actions. */
.customer-shell .feedback { gap: 1.4rem; min-width: 0; color: #17243b; }
.customer-shell .feedback-heading { align-items: center; gap: 1rem; }
.customer-shell .feedback-heading h1 { margin: 0; font-size: clamp(1.75rem, 2.4vw, 2rem); line-height: 1.25; font-weight: 650; letter-spacing: -.035em; }
.customer-shell .feedback-heading .secondary-eyebrow { color: #a8102a; font-size: .75rem; margin: 0 0 .45rem; }
.customer-shell .feedback-heading h1 + p { margin: .55rem 0 0; color: #475569; font-size: .9375rem; }
.customer-shell .feedback-workspace-nav { gap: .25rem; padding: .3rem; border: 1px solid #e0e6ee; border-radius: .75rem; background: #fff; }
.customer-shell .feedback-workspace-nav a { min-height: 2.75rem; padding: .65rem .9rem; border: 0; border-radius: .5rem; color: #475569; font-size: .875rem; }
.customer-shell .feedback-workspace-nav a[aria-current] { color: #a8102a; background: #fff0f3; }
.customer-shell .feedback-workspace-nav a:hover { background: #f3f5f8; }
.customer-shell .feedback-view-tabs { gap: 1rem; }
.customer-shell .feedback-view-tabs a { position: relative; min-height: 6.5rem; padding: 1.1rem 1.25rem; border: 1px solid #e0e6ee; border-radius: 1rem; background: #fff; color: #475569; box-shadow: 0 2px 6px rgb(23 36 59 / 3%); font-size: .875rem; }
.customer-shell .feedback-view-tabs strong { color: #17243b; font-size: 1.8rem; font-weight: 650; }
.customer-shell .feedback-view-tabs a[aria-current] { border-color: #c8102e; box-shadow: 0 0 0 1px #c8102e; background: #fffafb; }
.customer-shell .feedback-view-tabs a:hover { border-color: #b7c2d1; }
.customer-shell .feedback-view-tabs a[aria-current]:hover { border-color: #c8102e; }
.customer-shell .feedback-card { padding: 1.4rem; border: 1px solid #e0e6ee; border-radius: 1rem; box-shadow: 0 2px 6px rgb(23 36 59 / 3%); }
.customer-shell .secondary-section-heading { margin-bottom: 1.15rem; }
.customer-shell .secondary-section-heading h2 { margin: 0; color: #17243b; font-size: 1rem; font-weight: 650; }
.customer-shell .secondary-section-heading p { margin: .35rem 0 0; color: #475569; font-size: .875rem; }
.customer-shell .feedback-filter-form { grid-template-columns: minmax(12rem, 2fr) repeat(3, minmax(7rem, 1fr)); gap: 1rem; }
.customer-shell .feedback label { gap: .4rem; color: #27374e; font-size: .875rem; font-weight: 500; }
.customer-shell .feedback input:not([type="checkbox"]):not([type="radio"]),
.customer-shell .feedback select,
.customer-shell .feedback textarea { min-height: 2.875rem; padding: .65rem .8rem; border: 1px solid #cbd5e1 !important; border-radius: .6rem; color: #17243b !important; background: #fff !important; font-size: .9375rem; font-weight: 400; }
.customer-shell .feedback select { padding-inline-end: 2rem; }
.customer-shell .feedback textarea.sr-only { width: 1px; height: 1px; min-height: 0; padding: 0; border: 0 !important; }
.customer-shell .feedback .feedback-filter-disclosure { padding-top: .25rem; border-top: 1px solid #e7ecf2; }
.customer-shell .feedback .feedback-filter-extra { padding: .8rem 0 .4rem; gap: 1rem; }
.customer-shell .feedback .feedback-filter-actions { gap: .75rem; }
.customer-shell .feedback .feedback-back { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem .75rem; color: #475569; text-decoration: underline; }
.customer-shell .feedback-list-card { padding: 0; container: feedback-list / inline-size; }
.customer-shell .feedback-list-summary { padding: 1.1rem 1.4rem; border-bottom-color: #e7ecf2; background: #fff; color: #475569; font-size: .875rem; }
.customer-shell .feedback-list-summary strong { color: #17243b; font-size: 1rem; font-weight: 650; }
.customer-shell .feedback-table { font-size: .875rem; }
.customer-shell .feedback-table th { padding: .8rem 1rem; background: #f7f9fc; color: #475569; font-size: .75rem; font-weight: 600; }
.customer-shell .feedback-table td { padding: 1.2rem 1rem; line-height: 1.6; border-bottom-color: #e7ecf2; }
.customer-shell .feedback-listing { gap: .8rem; }
.customer-shell .feedback-thumb { width: 4rem; height: 3.75rem; flex-basis: 4rem; border-radius: .65rem; color: #64748b; }
.customer-shell .feedback-listing a { color: #17243b; font-weight: 650; }
.customer-shell .feedback-listing small,
.customer-shell .feedback-row-time { color: #475569; font-size: .8125rem; }
.customer-shell .feedback-next-step a { display: flex; align-items: center; justify-content: center; gap: .35rem; min-height: 2.75rem; margin: 0 0 .5rem; padding: .5rem .7rem; border: 1px solid #cbd5e1; border-radius: .55rem; color: #27374e; background: #fff; font-size: .8125rem; font-weight: 550; text-decoration: none; text-align: center; }
.customer-shell .feedback-next-step a:hover { border-color: #c8102e; color: #a8102a; background: #fffafb; }
.customer-shell .feedback-next-step a + a { border-color: transparent; color: #475569; font-weight: 400; }
.customer-shell .feedback-badge { font-size: .8125rem; line-height: 1.5; border-radius: .4rem; }
.customer-shell .feedback-empty { display: grid; justify-items: center; gap: .7rem; padding: 3rem 1.5rem; }
.customer-shell .feedback-empty svg { width: 2.75rem; height: 2.75rem; padding: .55rem; border-radius: .8rem; background: #edf1f7; fill: none; stroke: #475569; stroke-width: 1.5; }
.customer-shell .feedback-empty h2 { margin: .25rem 0 0; color: #17243b; }
.customer-shell .feedback-empty p { margin: 0; color: #475569; font-size: .875rem; }
.customer-shell .feedback-pagination { padding: 1rem 1.4rem; }
.customer-shell .feedback-status { color: #334155; }
.customer-shell .feedback-status.warning { color: #725019; }
.customer-shell .feedback-status.error { color: #8d1c30; }

/* Spacious sign-in, using the existing authentication form. */
.auth-shell { background: #f3f5f8; color: #17243b; }
.auth-shell .auth-page-layout { width: min(100%, 46rem); }
.auth-shell .auth-card-wrap { width: min(100%, 29rem); }
.auth-shell .auth-brand { margin-bottom: clamp(1rem, 3vw, 1.5rem); }
.auth-shell .auth-brand--ai {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  margin-inline: auto;
  border: 1px solid #e0e6ee;
  border-radius: 10px;
  background: white;
  color: #151518;
  font-size: 1.0625rem;
  font-weight: 780;
  letter-spacing: .035em;
}
.auth-brand--ai img { width: 40px; height: 40px; object-fit: contain; }
.auth-brand--ai b { color: #a30e26; font-weight: inherit; }
.auth-shell .auth-card { padding: clamp(1.125rem, 4.8vw, 2.25rem); border: 1px solid #e0e6ee; border-radius: 1.125rem; background: #fff; box-shadow: 0 12px 40px rgb(23 36 59 / 6%); }
.auth-agent-mark { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; border-radius: .75rem; color: #c8102e; background: #fff0f3; }
.auth-agent-mark svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.auth-shell .auth-card h1 { margin: 0; color: #17243b; font-size: 1.9rem; line-height: 1.3; font-weight: 650; letter-spacing: -.035em; }
.auth-shell .auth-intro { margin: .65rem 0 0; color: #475569; font-size: .9375rem; line-height: 1.6; }
.auth-shell .auth-form { gap: 1.25rem; margin-top: 1.75rem; }
.auth-shell .form-label { margin-bottom: .4rem; font-size: .875rem; font-weight: 550; }
.auth-shell .auth-form input:not([type="checkbox"]):not([type="radio"]) { width: 100%; min-height: 3rem; padding: .75rem .85rem; border: 1px solid #cbd5e1 !important; border-radius: .65rem; background: #fff !important; color: #17243b !important; }
.auth-shell .auth-form input:focus { outline: 2px solid #c8102e; outline-offset: 2px; box-shadow: none; }
.auth-shell .auth-submit { min-height: 3rem; margin-top: .35rem; border-radius: .65rem; background: #c8102e; font-size: .9375rem; font-weight: 600; }
.auth-access-help { margin: 1.25rem 0 0; color: #475569; font-size: .8125rem; line-height: 1.6; text-align: center; }
.auth-brand--ai + .auth-card .form-label { font-size: var(--text-control); }
.auth-card-wrap:has(.auth-brand--ai) .auth-access-help { font-size: var(--text-meta); }

@container feedback-list (max-width: 70rem) {
  .customer-shell .feedback-table-scroll { overflow: visible; }
  .customer-shell .feedback-list-card .feedback-table,
  .customer-shell .feedback-list-card .feedback-table tbody { display: block; width: 100%; min-width: 0; }
  .customer-shell .feedback-list-card .feedback-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .customer-shell .feedback-list-card .feedback-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.5rem; padding: 1.25rem 1.4rem; border-bottom: 1px solid #e7ecf2; }
  .customer-shell .feedback-list-card .feedback-table td { min-width: 0; max-width: none; padding: 0; border: 0; }
  .customer-shell .feedback-list-card .feedback-table td[data-column]::before { display: block; margin-bottom: .25rem; color: #475569; font-size: .75rem; font-weight: 550; content: attr(data-column); }
  .customer-shell .feedback-list-card .feedback-table td[data-column="Anzeige"],
  .customer-shell .feedback-list-card .feedback-table td[data-column="Letzte Rückmeldung"],
  .customer-shell .feedback-list-card .feedback-table td[data-column="Nächster Schritt"],
  .customer-shell .feedback-list-card .feedback-table td[colspan] { grid-column: 1 / -1; }
  .customer-shell .feedback-list-card .feedback-table td[data-column="Anzeige"]::before { display: none; }
  .customer-shell .feedback-list-card .feedback-listing,
  .customer-shell .feedback-list-card .feedback-preview,
  .customer-shell .feedback-list-card .feedback-provider,
  .customer-shell .feedback-list-card .feedback-next-step { min-width: 0; }
  .customer-shell .feedback-list-card .feedback-listing a { max-width: none; }
  .customer-shell .feedback-list-card .feedback-next-step { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
  .customer-shell .feedback-list-card .feedback-next-step::before { flex-basis: 100%; }
  .customer-shell .feedback-list-card .feedback-next-step a { margin: 0; }
}
@media (max-width: 1100px) {
  .customer-shell .feedback-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .customer-shell .settings-page { gap: 1rem; }
  .settings-section-nav { padding: .4rem; gap: .2rem; }
  .settings-section-nav a { flex: 1 1 calc(50% - .2rem); padding: .55rem .6rem; font-size: .8125rem; }
  .customer-shell .settings-page .settings-card-heading,
  .customer-shell .settings-page .settings-form,
  .customer-shell .settings-page .agent-settings-card { padding: 1.1rem; }
  .customer-shell .settings-page .settings-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .customer-shell .settings-page .acquisition-template-list { padding-inline: 1rem; }
  .customer-shell .settings-page .acquisition-template-item { padding: 1rem; }
  .customer-shell .settings-page .acquisition-template-item .settings-form { padding-inline: 0; }
  .customer-shell .settings-page .settings-save-row { align-items: flex-start; flex-direction: column; }
  .customer-shell .settings-page .settings-save-row .btn-primary { width: 100%; }
  .customer-shell .settings-page .message-template-item { flex-direction: column; }
  .customer-shell .settings-page .message-template-item > details { width: 100%; }
  .customer-shell .settings-page .message-template-item .settings-form { padding: .75rem 0; }
  .customer-shell .feedback { gap: 1rem; }
  .customer-shell .feedback-heading { align-items: flex-start; }
  .customer-shell .feedback-workspace-nav a { flex: 1 1 auto; padding-inline: .6rem; font-size: .8125rem; text-align: center; }
  .customer-shell .feedback-view-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .customer-shell .feedback-view-tabs a { min-height: 6rem; padding: 1rem; }
  .customer-shell .feedback-card { padding: 1.1rem; }
  .customer-shell .feedback-list-card { padding: 0; }
  .customer-shell .feedback-filter-form { grid-template-columns: minmax(0, 1fr); }
  .customer-shell .feedback-filter-actions .btn-primary { width: 100%; }
  .customer-shell .feedback-list-summary,
  .customer-shell .feedback-pagination { padding: 1rem; }
  .customer-shell .feedback-list-card .feedback-table tbody tr { padding: 1.1rem; gap: .8rem 1rem; }
  .customer-shell .feedback-list-card .feedback-next-step a:first-of-type { flex: 1 1 100%; }
  .auth-shell .auth-form { gap: 1rem; margin-top: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .settings-page { scroll-behavior: auto; }
}
