.company-site-editor { min-width: 0; color: var(--ink, #172033); }
.company-site-editor [hidden] { display: none !important; }
.company-site-editor :is(button, input, textarea) { font: inherit; }
.company-site-editor button, .company-site-editor .csite-upload-label { min-height: 44px; cursor: pointer; line-height: 1.5; }
.company-site-editor button:disabled { cursor: default; }
.company-site-editor :is(button, input, textarea, a, .csite-public-status):focus-visible { outline: 3px solid var(--brand, #2868f0); outline-offset: 3px; }
.company-site-editor :is(h2, h3, p) { overflow-wrap: anywhere; }
.csite-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 0 0 16px; border-bottom: 1px solid var(--line, #d9dfe7); }
.csite-toolbar p { margin: 0; }
.csite-public-status { font-size: 16px; font-weight: 700; line-height: 1.5; }
.csite-save-status { margin-top: 4px !important; color: var(--muted, #52627a); font-size: 13px; line-height: 1.6; }
.csite-public-indexing { margin-top: 4px !important; color: var(--muted, #52627a); font-size: 13px; line-height: 1.6; }
.csite-toolbar-actions, .csite-publish-actions, .csite-recovery { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.csite-message { margin: 8px 0; font-size: 14px; line-height: 1.7; }
.csite-message:empty { margin: 0; }
.csite-message input { width: 100%; min-width: 0; }
.csite-recovery { margin: 12px 0 20px; }
.csite-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .9fr); align-items: start; gap: 24px; margin-top: 20px; }
.csite-layout > *, .csite-contact-grid > *, .csite-photo-pair > * { min-width: 0; }
.csite-layout form { display: grid; gap: 20px; }
.csite-panel { min-width: 0; padding: var(--workspace-panel-padding, 20px); border: 1px solid var(--line, #d9dfe7); border-radius: var(--workspace-panel-radius, 10px); background: var(--panel, #fff); }
.csite-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.csite-panel h2, .csite-preview-panel h2 { margin: 0; color: var(--ink, #172033); font-size: var(--workspace-section-heading-size, 18px); font-weight: var(--workspace-heading-weight, 700); line-height: var(--workspace-section-heading-leading, 1.5); }
.csite-row h3 { margin: 0; font-size: var(--workspace-subheading-size, 16px); font-weight: var(--workspace-heading-weight, 700); line-height: 1.5; }
.csite-field { display: grid; align-content: start; gap: 6px; margin: 16px 0; min-width: 0; }
.csite-field > span, .csite-photo-label { color: var(--ink, #172033); font-size: 14px; font-weight: 600; line-height: 1.6; }
.csite-field > span > small { margin-left: 6px; color: var(--muted, #52627a); font-size: 12px; font-weight: 400; }
.csite-field :is(input, textarea) { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--input-line, #b8c2d2); border-radius: 6px; box-sizing: border-box; background: var(--panel, #fff); color: var(--ink, #172033); font-size: 16px; line-height: 1.6; }
.csite-field textarea { min-height: 84px; resize: none; }
.csite-field :is(input, textarea):focus { background: var(--editing-field-bg, #fffde7); }
.csite-field input[readonly] { background: var(--bg, #f5f6f8); }
.csite-field [aria-invalid="true"] { border-color: var(--loss, #b42318); }
.csite-hint { margin: 8px 0; color: var(--muted, #52627a); font-size: 13px; font-weight: 400; line-height: 1.7; overflow-wrap: anywhere; }
.csite-error { color: var(--loss, #b42318); font-size: 14px; line-height: 1.7; }
.csite-error:empty { margin: 0; }
.csite-availability { margin: -8px 0 16px; }
.csite-availability > p { margin: 6px 0; }
.csite-availability > button { margin: 0; }
.csite-photo-error { margin: 8px 0; }
.csite-row { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line, #d9dfe7); }
.csite-row-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.csite-photo-pair, .csite-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.csite-photo-control { min-width: 0; margin: 12px 0; }
.csite-photo-list { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0; }
.csite-photo-list:empty { margin: 0; }
.csite-photo-list figure { display: grid; justify-items: start; width: 120px; max-width: 100%; margin: 0; }
.csite-photo-list img { display: block; width: 120px; max-width: 100%; height: 90px; object-fit: contain; border: 1px solid var(--line, #d9dfe7); box-sizing: border-box; background: var(--bg, #f5f6f8); }
.csite-photo-loading { display: grid; align-content: center; width: 120px; max-width: 100%; height: 90px; padding: 8px; box-sizing: border-box; color: var(--muted, #52627a); font-size: 12px; background: var(--bg, #f5f6f8); }
.csite-upload-label { position: relative; display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; box-sizing: border-box; overflow: hidden; }
.csite-upload-label:focus-within { outline: 3px solid var(--brand, #2868f0); outline-offset: 3px; }
.csite-file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.csite-consent { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0 12px; color: var(--ink, #172033); font-size: 14px; line-height: 1.7; cursor: pointer; }
.csite-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--brand, #2868f0); }
.csite-consent span { min-width: 0; overflow-wrap: anywhere; }
.csite-search-settings { margin-top: 20px; padding: 16px 0; border-block: 1px solid var(--line, #d9dfe7); }
.csite-search-choice { min-height: 44px; align-items: center; margin: 0; font-weight: 600; }
.csite-search-choice input { margin-top: 0; }
.csite-search-settings > .csite-hint { margin-bottom: 0; }
.csite-search-preview { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line, #d9dfe7); }
.csite-search-preview h3 { margin: 0 0 12px; color: var(--ink, #172033); font-size: var(--workspace-subheading-size, 16px); font-weight: var(--workspace-heading-weight, 700); line-height: 1.5; }
.csite-search-preview p { margin: 4px 0; overflow-wrap: anywhere; }
.csite-search-url { color: var(--muted, #52627a); font-size: 12px; line-height: 1.6; }
.csite-search-title { color: var(--ink, #172033); font-size: 16px; font-weight: 600; line-height: 1.5; }
.csite-search-description { color: var(--muted, #52627a); font-size: 13px; line-height: 1.7; }
.csite-publish-actions { margin-top: 16px; }
.csite-preview-panel { position: sticky; top: 20px; min-width: 0; padding: 16px; border: 1px solid var(--line, #d9dfe7); border-radius: var(--workspace-panel-radius, 10px); background: var(--panel, #fff); }
.csite-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.csite-preview-heading > span { color: var(--muted, #52627a); font-size: 12px; }
.csite-preview-panel iframe, .csite-example iframe { display: block; width: 100%; height: 700px; border: 1px solid var(--line, #d9dfe7); box-sizing: border-box; background: #fff; }
.csite-mobile-switch { display: none; }
.csite-example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); align-items: start; gap: 32px; }
.csite-example > div > p { line-height: 1.8; }
@media (min-width: 1101px) {
  .csite-preview-panel { display: flex; flex-direction: column; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); }
  .csite-preview-panel > :not(iframe) { flex: 0 0 auto; }
  .csite-preview-panel iframe { flex: 0 1 auto; min-height: 180px; height: min(700px, calc(100vh - 180px)); height: min(700px, calc(100dvh - 180px)); }
}
@media (max-width: 1100px) {
  .csite-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .csite-mobile-switch { display: flex; position: sticky; top: 0; z-index: 8; gap: 0; margin-top: 16px; padding: 8px 0; border-bottom: 1px solid var(--line, #d9dfe7); background: var(--bg, #f5f6f8); }
  .csite-mobile-switch button { flex: 1 1 0; }
  .csite-mobile-switch button[aria-pressed="true"] { border-color: var(--brand, #2868f0); color: var(--brand, #2868f0); background: var(--home-icon-wash, #e9f0ff); }
  .csite-layout[data-csite-mode="edit"] .csite-preview-panel, .csite-layout[data-csite-mode="preview"] > form { display: none; }
  .csite-preview-panel { position: static; }
  .csite-preview-panel iframe { max-width: 430px; margin: 0 auto; }
  .csite-field, .csite-photo-error, .csite-preview-panel { scroll-margin-top: 76px; }
}
@media (max-width: 760px) {
  .csite-mobile-switch { top: 64px; }
  .csite-field, .csite-photo-error, .csite-preview-panel { scroll-margin-top: 140px; scroll-margin-bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .csite-toolbar { align-items: start; flex-direction: column; gap: 12px; }
  .csite-toolbar-actions { width: 100%; }
  .csite-toolbar-actions > button:first-child { width: 100%; }
  .csite-section-heading { margin-bottom: 12px; }
  .csite-photo-pair, .csite-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .csite-panel { padding: var(--workspace-panel-padding, 16px); }
  .csite-publish-actions > .primary-button { width: 100%; }
  .csite-example { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .csite-preview-panel { padding: 12px; }
}
@media (forced-colors: active) { .company-site-editor :is(button, input, textarea, a):focus-visible { outline-color: Highlight; } }
