:root { --brand: #0a6ebd; --green: #2e7d32; }
body { font-family: -apple-system, system-ui, Segoe UI, Roboto, Arial, sans-serif; margin: 0; background: #f6f7fb; color: #222; }
.container { max-width: 720px; margin: 0 auto; padding: 24px; }
h1 { margin: 0 0 12px; color: var(--brand); }
.hint { margin: 0 0 16px; color: #666; }

.page-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
#langSwitcher { position: relative; display: inline-flex; align-items: center; font-size: 0.9rem; color: #444; }

.lang-switcher-button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; border: 1px solid transparent; background: transparent; cursor: pointer; font: inherit; color: inherit; }
.lang-switcher-button img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }
.lang-switcher-button span.code { opacity: 0.7; font-size: 0.8rem; }
.lang-switcher-button .caret { font-size: 0.7rem; opacity: 0.7; }
.lang-switcher-button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.lang-menu { position: absolute; top: 100%; right: 0; margin-top: 4px; min-width: 180px; background: #fff; border-radius: 8px; box-shadow: 0 8px 16px rgba(15, 23, 42, 0.15); padding: 4px 0; z-index: 20; }
.lang-menu.hidden { display: none; }
.lang-menu-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px; cursor: pointer; font-size: 0.9rem; }
.lang-menu-item img { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; }
.lang-menu-item span.code { opacity: 0.7; font-size: 0.75rem; }
.lang-menu-item:hover { background: #f3f4f6; }

fieldset { border: 1px solid #e0e0e0; border-radius: 8px; padding: 16px; margin-bottom: 20px; }
legend { font-weight: 600; padding: 0 8px; color: var(--brand); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

.field { margin-bottom: 12px; display: grid; gap: 6px; }
input, select { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 8px; font-size: 16px; }
.checkbox { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.checkbox input { width: auto; }

.btn { margin-top: 10px; padding: 12px 16px; background: var(--green); color: #fff; border: 0; border-radius: 10px; font-weight: 600; cursor: pointer; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.message { margin-top: 12px; color: #333; }
