﻿:root {
    color-scheme: light;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    font-synthesis: none;
    color: #242a32;
    background: #f5f6f8;
    --muted: #68717d;
    --border: #dce1e7;
    --accent: #243b53;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, a, label { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.brand-mark { color: var(--accent); }
.generator-main { width: min(100%, 708px); margin: 0 auto; padding: 64px 24px 48px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
h1 { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -.65px; }
h2 { margin: 0; font-size: 14px; font-weight: 600; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 2px 4px #18283b04; overflow: hidden; }
.panel-body { padding: 30px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading > span { color: var(--muted); font-size: 12px; }
.field-help { color: var(--muted); font-size: 12px; margin: 7px 0 18px; line-height: 1.6; }
.drop-zone { position: relative; min-height: 148px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 16px; padding: 28px 18px; border: 1px dashed #b9c3cf; border-radius: 5px; color: #60758b; background: #fafbfd; cursor: pointer; transition: background .15s, border-color .15s; }
.drop-zone:hover, .drop-zone.dragging { border-color: #60758b; background: #f0f4f8; }
.drop-title { color: var(--accent); font-size: 13px; font-weight: 600; text-align: center; }
.drop-title span { color: var(--muted); font-weight: 400; }
.drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-zone:focus-within, button:focus-visible, a:focus-visible { outline: 2px solid #52769a; outline-offset: 3px; border-radius: 4px; }
.selected-file { min-height: 88px; display: flex; align-items: center; gap: 14px; padding: 18px; background: #f8fafb; border: 1px solid var(--border); border-radius: 5px; }
.file-icon { color: #527261; flex-shrink: 0; }
.file-details { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.file-details strong { font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.file-details span { color: var(--muted); font-size: 12px; }
.text-button { background: transparent; border: 0; color: #596575; min-height: 36px; padding: 7px 9px; font-size: 12px; border-radius: 4px; }
.text-button:hover:not(:disabled) { background: #edf0f4; color: #263a50; }
.generation-options { border: 0; margin: 27px 0 0; padding: 0; min-width: 0; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-field > label { font-size: 13px; font-weight: 500; }
.form-field input, .form-field select { width: 100%; height: 44px; padding: 10px 12px; background: #fff; color: #303943; border: 1px solid #c9d0d9; border-radius: 5px; font-size: 13px; }
.form-field select { padding-right: 24px; cursor: pointer; }
.form-field input:hover, .form-field select:hover { border-color: #9faab7; }
.form-field input:focus, .form-field select:focus { outline: 2px solid #52769a; outline-offset: 2px; border-color: #52769a; }
.option-hint { margin: 12px 0 0; }
.panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 30px; border-top: 1px solid #e8ebef; }
.panel-footer > span { color: var(--muted); font-size: 12px; }
.primary-button { min-height: 44px; padding: 11px 20px; border: 1px solid var(--accent); border-radius: 5px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; transition: background .15s; }
.primary-button:hover:not(:disabled) { background: #172c42; }
.primary-button:disabled { background: #e8ecf1; border-color: #e0e5eb; color: #7a8491; cursor: default; }
form[aria-busy="true"] .primary-button { cursor: wait; }
input:disabled, select:disabled { background: #f2f4f7; cursor: default; }
.status { margin-top: 20px; padding: 12px 14px; font-size: 13px; border: 1px solid #dce4ed; border-radius: 5px; background: #f3f6fa; color: #40576f; overflow-wrap: anywhere; }
.status[data-state="error"] { border-color: #edd8d6; background: #fdf5f4; color: #943f38; }
.status[data-state="success"] { border-color: #d6e5dc; background: #f2f8f4; color: #38644b; }
.login-main { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-panel { width: min(100%, 400px); padding: 36px; }
.login-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 38px; color: #2b323b; font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.login-panel h1 { font-size: 24px; margin-bottom: 28px; }
.login-panel .form-field + .form-field { margin-top: 20px; }
.login-panel .primary-button { width: 100%; margin-top: 28px; }
.password-field { position: relative; }
.password-field input { padding-right: 64px; }
.password-toggle { position: absolute; right: 5px; top: 5px; min-width: 50px; height: 34px; border: 0; border-radius: 3px; background: transparent; color: #596575; font-size: 12px; }
.password-toggle:hover { background: #f0f3f6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 560px) {
    .generator-main { padding: 32px 16px; }
    h1 { font-size: 23px; }
    .page-heading { margin-bottom: 20px; }
    .panel-body { padding: 22px; }
    .options-grid { gap: 16px; }
    .panel-footer { flex-direction: column-reverse; gap: 12px; padding: 18px 22px; }
    .primary-button { width: 100%; }
    .login-main { padding: 20px; }
    .login-panel { padding: 28px; }
}
@media (max-width: 380px) {
    .options-grid { grid-template-columns: 1fr; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
    .drop-title span { display: block; margin-top: 3px; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
