/* Shared contact columns retain Krönung's configurable corporate palette. */
body:has(#branch-directory-root) { min-width: 0; }
.branches-page { min-width: 0; }
.branches-page :is(h1,h2,h3,p,a,dt,dd,label,legend,button) { overflow-wrap: anywhere; }
.branches-page .button { min-height: 42px; max-width: 100%; white-space: normal; line-height: 1.4; padding: 10px 14px; text-decoration: none; transition: background-color 120ms ease, box-shadow 120ms ease; }
.branches-page .button:active:not(:disabled) { transform: none; box-shadow: inset 0 0 0 2px currentColor; }
.branches-page .button:disabled { opacity: .55; cursor: not-allowed; }
.branches-page :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.branches-page .button .icon { flex: 0 0 16px; }
.branch-page-header > div { min-width: 0; }
.branch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.branch-demo { padding: 14px 18px; margin-bottom: 18px; border: 1px solid var(--brand-100); border-radius: 10px; background: var(--brand-50); color: var(--text-secondary); font-size: 13px; line-height: 1.6; }
.branch-demo strong { color: var(--brand-800); margin-right: 8px; }
.branch-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px 22px; padding: 20px 24px; margin-bottom: 26px; }
.branch-toolbar > .form-field { flex: 1 1 300px; min-width: 0; }
.branch-toolbar > [data-branch-count] { color: var(--text-secondary); font-size: 13px; padding-bottom: 12px; }
.branches-page .form-field label { font-size: 13px; line-height: 1.5; }
.branches-page .form-field input { min-width: 0; width: 100%; min-height: 44px; padding: 10px 12px; font-size: 14px; line-height: 1.5; }
.branch-region { margin-bottom: 28px; }
.branch-region-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 12px; }
.branch-region-heading h2 { margin: 0; font-size: 20px; line-height: 1.4; }
.branch-region-heading > span { font-size: 12px; color: var(--text-secondary); }
.branch-directory-list { overflow: visible; }
.branch-row { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(0, 3fr); gap: 24px; padding: 24px; min-width: 0; }
.branch-row + .branch-row { border-top: 1px solid var(--border); }
.branch-identity { min-width: 0; }
.branch-region-label { margin: 0 0 5px; font-size: 11px; color: var(--text-secondary); font-weight: 650; }
.branch-identity h3 { margin: 0 0 10px; color: var(--text-primary); font-size: 18px; line-height: 1.45; }
.branch-number { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.branch-number dt { font-size: 12px; color: var(--text-secondary); }
.branch-number dd { margin: 0; font-size: 12px; font-weight: 650; }
.branch-row-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.branch-row-actions .button { min-height: 38px; padding: 8px 10px; font-size: 12px; }
.branch-contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .7fr); gap: 16px 24px; margin: 0; }
.branch-contact-grid > div { min-width: 0; }
.branch-contact-grid dt { font-size: 12px; color: var(--text-secondary); margin-bottom: 5px; }
.branch-contact-grid dd { font-size: 14px; line-height: 1.6; margin: 0; color: var(--text-primary); }
.branch-contact-grid a { color: var(--brand-800); text-decoration: underline; text-underline-offset: 3px; }
.branch-contact-grid a:hover { color: var(--brand-600); }
.branch-contact-grid .branch-address { grid-row: span 2; }
.branch-contact-grid address { font-style: normal; display: grid; }
.branch-contact-grid .branch-website { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; margin-top: 8px; min-height: 30px; }
.branch-missing { font-size: 12px; font-weight: 400; color: var(--text-secondary); }
.branch-empty { padding: 36px 24px; text-align: center; }
.branch-empty h2 { margin: 0 0 10px; font-size: 20px; }
.branch-empty p { color: var(--text-secondary); font-size: 14px; max-width: 65ch; margin: 0 auto 18px; }
.branch-status { margin: 0 0 16px; color: var(--brand-800); font-size: 14px; }
.branch-status:empty { display: none; }
.branch-error, .branch-warning { border: 1px solid var(--danger); border-radius: 10px; background: var(--danger-bg); color: var(--danger); padding: 16px 18px; margin-bottom: 20px; font-size: 14px; line-height: 1.6; }
.branch-warning { color: var(--text-primary); border-color: var(--brand-100); background: var(--brand-50); }
.branch-warning p { margin: 6px 0 14px; }
.branch-editor { padding: 26px; margin-bottom: 24px; }
.branch-editor h2 { margin: 0; font-size: 22px; }
.branch-help { margin: 8px 0 24px; color: var(--text-secondary); font-size: 13px; line-height: 1.65; max-width: 90ch; }
.branch-editor fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.branch-editor legend { float: left; display: block; width: 100%; padding: 0 0 12px; font-size: 15px; font-weight: 700; }
.branch-editor legend + * { clear: both; }
.branch-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; max-width: 1000px; }
.branch-field-wide { grid-column: 1 / -1; }
.branch-editor-footer { border-top: 1px solid var(--border); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.branch-editor-footer p { color: var(--text-secondary); font-size: 12px; margin: 0; }
.branch-confirm { padding: 24px; margin-bottom: 24px; border: 1px solid var(--brand-700); border-radius: 12px; background: var(--brand-50); }
.branch-confirm h2 { font-size: 20px; margin: 0 0 10px; }
.branch-confirm p { font-size: 14px; line-height: 1.6; }
.branch-confirm > .branch-actions { margin-top: 14px; }
.branch-confirm .branch-row { margin: 18px 0; padding: 16px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 9px; }
.branch-confirm .branch-row-actions { display: none; }
@media (max-width: 1180px) {
  .branch-row { grid-template-columns: minmax(150px,.8fr) minmax(0,2fr); gap: 20px; }
  .branch-contact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 20px; }
  .branch-contact-grid .branch-address { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .branch-page-header { align-items: flex-start; flex-direction: column; gap: 16px; }
  .branch-row { grid-template-columns: minmax(0,1fr); gap: 20px; padding: 20px; }
  .branch-identity { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
  .branch-row-actions { margin-top: 12px; }
  .branch-toolbar { padding: 18px; gap: 12px; }
  .branch-toolbar > .branch-actions { width: 100%; }
  .branch-toolbar > [data-branch-count] { padding-bottom: 0; }
  .branch-editor, .branch-confirm { padding: 20px; }
}
@media (max-width: 480px) {
  .branch-editor-grid, .branch-contact-grid { grid-template-columns: minmax(0,1fr); }
  .branch-editor-grid { gap: 16px; }
  .branch-contact-grid { gap: 14px; }
  .branch-editor-footer .branch-actions { width: 100%; }
  .branch-editor-footer .button { flex: 1 1 120px; }
  .branch-toolbar > .form-field { flex-basis: 100%; }
  .branch-page-header .button, .branch-toolbar .button { width: 100%; }
  .branch-page-header > .branch-actions, .branch-toolbar .branch-actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .branches-page .button { transition: none; } }
