.concept-bar { background: var(--blue-wash); border-bottom: 1px solid var(--line); }
.concept-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.concept-bar-inner > div:first-child { display: flex; gap: 4px; flex-direction: column; }
.concept-bar strong { color: var(--navy); }
.concept-bar #concept-summary { font-size: var(--type-small); color: var(--muted); }
.concept-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.concept-actions .button { min-height: 44px; padding: 8px 20px; font-size: var(--type-small); }
.concept-workspace { background: var(--pale); padding-block: 32px 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 104px; }
.editor-heading { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.editor-heading > div { flex: 1; min-width: 0; }
.editor-heading h2 { font-size: var(--type-feature); text-wrap: auto; }
.editor-kicker { color: var(--blue); font-size: var(--type-small); margin: 0 0 8px; font-weight: 600; }
.editor-close { display: flex; align-items: center; gap: 12px; background: transparent; border: 1px solid var(--control-border); border-radius: var(--radius-control); min-height: 44px; padding: 8px 16px; flex-shrink: 0; }
.editor-close span[aria-hidden] { font-size: 24px; line-height: 1; }
.editor-intro { margin: 16px 0 24px; }
.editor-tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 24px; }
.editor-tabs button { border: 1px solid var(--control-border); background: var(--white); border-radius: var(--radius-control); min-height: 44px; padding: 8px 16px; }
.editor-tabs button[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.editor-selection, .editor-form { min-width: 0; }
.concept-workspace label { display: block; font-weight: 600; margin: 16px 0 8px; }
.concept-workspace label:first-child { margin-top: 0; }
.concept-workspace input:not([type="checkbox"]), .concept-workspace select, .concept-workspace textarea { display: block; width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--control-border); border-radius: var(--radius-control); padding: 12px; background: var(--white); color: var(--ink); }
.concept-workspace select { text-overflow: ellipsis; padding-right: 24px; }
.concept-workspace textarea { resize: vertical; line-height: 1.65; }
.concept-workspace textarea:disabled { background: var(--blue-wash); opacity: 1; color: var(--surface-text); }
.editor-selection .small { margin-top: 12px; }
.editor-field-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.editor-field-heading h3 { font-size: var(--type-title); overflow-wrap: anywhere; flex: 1 1 220px; }
.editor-field-actions { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 16px; }
.editor-text-button { min-height: 44px; background: transparent; border: none; padding: 8px 0; color: var(--blue); text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.editor-original { margin-top: 24px; border-top: 1px solid var(--line); }
.editor-original summary, .editor-changes summary { min-height: 48px; padding-block: 12px; cursor: pointer; color: var(--navy); font-weight: 600; }
.editor-original p { padding-top: 12px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.editor-export-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; }
.editor-export-layout h3, .editor-import h3 { font-size: var(--type-title); margin-bottom: 12px; }
.editor-export-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.editor-export-list > div:first-child { padding-top: 0; border-top: 0; }
.editor-export-list p { margin: 8px 0 0; color: var(--muted); font-size: var(--type-small); }
.editor-export-list .button { font-size: var(--type-small); }
.concept-workspace .editor-check { display: flex; align-items: start; gap: 12px; font-weight: 400; margin: 24px 0; padding: 12px; border-radius: 8px; background: var(--blue-wash); }
.editor-check input { width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--blue); margin-top: 4px; }
.editor-import { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.editor-import p { margin-bottom: 0; }
.editor-import .button { flex-shrink: 0; }
.editor-import-preview { margin-top: 24px; padding: 24px; border-radius: var(--radius-panel); background: var(--cyan-wash); border: 1px solid var(--control-border); }
.editor-import-preview h4 { margin-bottom: 12px; }
.editor-changes { border-block: 1px solid var(--line); margin-top: 32px; }
.editor-change { padding: 20px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.editor-change h4 { margin-bottom: 12px; }
.editor-change p { font-size: var(--type-small); white-space: pre-wrap; }
.editor-change .editor-change-label { margin-bottom: 4px; font-weight: 600; color: var(--blue); }
.editor-save-status { margin: 16px 0 0; font-size: var(--type-small); color: var(--muted); }
.editor-save-status[data-error="true"] { color: var(--ink); background: var(--cyan-wash); padding: 12px; border: 1px solid var(--control-border); border-radius: 8px; }
.editor-copy { white-space: pre-line; overflow-wrap: anywhere; }
.section-edit { display: none; min-height: 44px; margin-top: 16px; border: 1px solid var(--control-border); border-radius: 8px; background: var(--white); color: var(--navy); font-size: var(--type-small); padding: 8px 16px; }
.editing-enabled .section-edit { display: inline-flex; align-items: center; gap: 12px; }
.editor-edited { text-decoration: underline dotted var(--cyan); text-underline-offset: 5px; }
.editor-download-ready { margin-top: 24px; padding: 20px 24px; border: 1px solid var(--control-border); border-radius: 12px; background: var(--cyan-wash); }
.editor-download-ready strong, .editor-download-ready a { display: block; overflow-wrap: anywhere; }
.editor-download-ready p { margin: 8px 0 0; }
.editor-preview-return { display: block; background: var(--blue-wash); padding: 12px 16px; border: 1px solid var(--control-border); border-radius: 8px; color: var(--navy); font-size: var(--type-small); margin-bottom: 24px; }
@media (max-width: 900px) {
  .editor-grid, .editor-export-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .editor-selection { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; }
  .editor-selection label, .editor-selection .small { grid-column: 1 / -1; }
  .editor-selection select, .editor-selection input { grid-column: 1 / -1; }
  .editor-selection label { margin-top: 8px; margin-bottom: 0; }
  .editor-import { align-items: start; flex-direction: column; }
}
@media (max-width: 600px) {
  .concept-bar-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .concept-actions .button { flex: 1; }
  .editor-heading { gap: 12px; }
  .editor-heading h2 { font-size: 28px; }
  .editor-close { font-size: var(--type-small); padding: 8px 12px; }
  .editor-close-label, .editor-tab-detail { display: none; }
  .concept-actions .button { padding: 8px 12px; gap: 8px; }
  .editor-export-layout > div:first-child { display: none; }
  .editor-export-list > div { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .editor-export-list .button { justify-self: start; }
  .editor-tabs button { flex: 1 1 120px; }
  .editor-field-actions > .button { width: 100%; }
}
@media print {
  .concept-bar, .concept-workspace, .section-edit, .editor-preview-return { display: none !important; }
  .editor-edited { text-decoration: none; }
}
