.language-card { padding: 0 !important; overflow: clip; }
.language-disclosure { width: 100%; color: var(--text, #24272b); }
.language-disclosure > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; min-height: 48px; padding: 0 13px; list-style: none; cursor: pointer; }
.language-disclosure > summary::-webkit-details-marker { display: none; }
.language-disclosure > summary::after { content: "⌄"; grid-column: 3; grid-row: 1; color: var(--muted, #6b7078); transform: rotate(0); transition: transform 180ms cubic-bezier(.23,1,.32,1); }
.language-disclosure[open] > summary::after { transform: rotate(180deg); }
.language-disclosure > summary > :first-child { grid-column: 1; grid-row: 1; font-size: 12px; font-weight: 600; letter-spacing: normal; }
.language-disclosure > summary > :nth-child(2) { grid-column: 2; grid-row: 1; color: var(--muted, #6b7078); font-size: 12px; font-weight: 600; }
.language-disclosure > summary:focus-visible { outline: 2px solid var(--accent, #0782ff); outline-offset: -3px; border-radius: 10px; }
.language-disclosure-body { padding: 4px 13px 13px; border-top: 1px solid var(--line, #d4d9df); }
.language-intro { margin: 10px 0 6px; color: var(--muted, #6b7078); font-size: 12px; }
.language-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.language-option { display: flex; min-width: 0; min-height: 34px; align-items: center; gap: 8px; padding: 0 4px; border-bottom: 1px solid var(--line, #d4d9df); color: var(--text, #24272b); font: inherit; font-size: calc(11px + var(--app-font-increase, 1pt)); line-height: 1.35; cursor: pointer; }
.language-option:first-child { grid-column: 1 / -1; }
.language-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent, #0782ff); }
.language-option:has(input:checked) { color: var(--accent, #0782ff); font-weight: 700; }
.language-option:has(input:focus-visible) { outline: 2px solid var(--accent, #0782ff); outline-offset: -2px; border-radius: 6px; }
.language-help { margin: 10px 0 0; color: var(--muted, #6b7078); font-size: 12px; line-height: 1.6; }
.legal-language-setting { max-width: 1080px; margin: 0 auto 16px; }
.legal-language-setting .language-disclosure { margin-left: auto; width: min(100%, 520px); border: 1px solid var(--line, #d4d9df); border-radius: 11px; background: var(--surface, #f7f9fb); overflow: clip; }
@media print { .legal-language-setting { display: none; } }
html:not([lang="ko"]) .options-tabs { overflow-x: auto; }
html:not([lang="ko"]) .options-tabs button { white-space: nowrap; flex-shrink: 0; }
html:not([lang="ko"]) .reference-role-heading { min-width: 0; }
html:not([lang="ko"]) .reference-role-heading strong { overflow-wrap: anywhere; }
/* Translated labels need natural header height and a separate action row. */
html:not([lang="ko"]) #createMoodboardDock .reference-library-section > header {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto;
  height: auto; padding-block: 7px; gap: 6px; flex-shrink: 0;
}
html:not([lang="ko"]) #createMoodboardDock .reference-library-section h3 { display: block; overflow-wrap: anywhere; }
html:not([lang="ko"]) #createMoodboardDock .asset-density-buttons { margin-left: 0; }
html:not([lang="ko"]) #moodboardGrid.is-reference-library > .reference-library-section > header {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  height: auto; padding-block: 8px; flex-shrink: 0;
}
html:not([lang="ko"]) #moodboardGrid .reference-library-actions {
  grid-column: 1 / -1; margin-left: 0; justify-content: flex-end; flex-wrap: wrap;
}
html:not([lang="ko"]) #moodboardGrid .reference-library-section header > span { justify-self: start; }
html:not([lang="ko"]) #moodboardGrid .reference-library-section:has(.reference-library-row.is-empty) { min-height: 240px; }
html:not([lang="ko"]) #moodboardGrid .reference-empty-icon { flex-shrink: 0; }
html:not([lang="ko"]) #moodboardGrid .reference-section-delete { grid-column: 1 / -1; justify-self: end; }
html:not([lang="ko"]) .composer-fields .reference-role-grid > .reference-role-card:not(.has-multiple-references):not([data-reference-role="typography"].has-reference):not(:has(.custom-reference-fields:not([hidden]))) {
  height: 140px; min-height: 140px;
}
html:not([lang="ko"]) .composer-fields .reference-role-grid > .reference-role-card:not(.has-multiple-references):not([data-reference-role="typography"].has-reference):not(:has(.custom-reference-fields:not([hidden]))) .reference-role-picker {
  height: 98px; min-height: 98px;
}
@media (max-width: 560px) { .language-options { grid-template-columns: 1fr; } .language-option:first-child { grid-column: 1; } }

#languageTitle { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
#languageTitle svg { flex: 0 0 16px; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Keep current/total and aspect ratios in numeric order inside RTL interfaces. */
.prompt-character-count,
#referenceCount,
.carousel-counter-numbers,
#helpGuideProgress,
#onboardingProgress,
.ratio-picker-number {
  direction: ltr;
  unicode-bidi: isolate;
}
