@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');
:root{color-scheme:dark;--page:#181a20;--panel:#202127;--line:#3b3d45;--text:#f5f5f5;--muted:#aeb1ba;--accent:#f0b90b;--error:#ff9898;font-family:'Be Vietnam Pro',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{min-height:100vh;margin:0;display:flex;flex-direction:column;background:var(--page);color:var(--text)}::selection{background:var(--accent);color:var(--page)}a{color:inherit}button,input{font:inherit}button{cursor:pointer}
.site-header{height:72px}.header-inner{width:min(calc(100% - 64px),1200px);height:100%;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-size:21px;font-weight:800;letter-spacing:-.025em}.brand-logo{display:block;width:36px;height:36px;object-fit:cover;border-radius:6px}.brand>span:last-child{color:var(--accent)}
.page-shell{width:min(calc(100% - 64px),720px);margin:clamp(54px,7vw,90px) auto 100px}.intro{max-width:none;margin-bottom:42px;text-align:center}.intro h1,.success-shell h1{margin:0;font-size:clamp(36px,4vw,54px);line-height:1.19;letter-spacing:-.035em;font-weight:800;text-wrap:balance}.intro h1{white-space:nowrap}.intro h1 span,.success-shell h1 span{color:var(--accent)}.intro p,.success-shell p{max-width:570px;margin:22px 0 0;color:var(--muted);font-size:16px;line-height:1.75}.intro p{margin-inline:auto;text-align:justify;text-align-last:left}.success-intro p{text-align:center;text-align-last:center}.success-intro p[hidden]{display:none}.success-intro strong{color:var(--text);font-weight:800}
form{width:100%;max-width:600px;margin-inline:auto;background:var(--panel);border-radius:14px;padding:clamp(22px,2.5vw,26px)}.field{display:grid;gap:8px;margin-bottom:18px}label,legend{font-size:13px;font-weight:700;line-height:1.5}label span[aria-hidden=true]{color:var(--accent)}input[type=text]{width:100%;height:52px;padding:0 15px;border:1px solid #555861;border-radius:7px;background:#181a20;color:var(--text);font-size:14px;caret-color:var(--accent)}input[type=text]::placeholder{color:#9296a0}input[type=text]:hover{border-color:#858995}:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.image-fields{margin:0;padding:0;border:0;min-width:0}.field-hint{margin:5px 0 12px;color:var(--muted);font-size:12px;line-height:1.5}.image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.upload-field{display:grid;gap:8px;min-width:0}.upload-title{font-size:13px;font-weight:700}.upload-label{position:relative;display:flex;align-items:center;gap:9px;width:100%;height:52px;min-width:0;padding:6px 12px 6px 16px;border:1px solid #555861;border-radius:7px;background:#181a20;cursor:pointer;transition:border-color .18s,background .18s}.upload-label::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;background:var(--accent)}.upload-label:hover{border-color:#858995;background:#1d1f26}.upload-label:has(.preview:not([hidden])){border-color:#8d7431}.upload-media{position:relative;display:grid;place-items:center;flex:none;width:30px;height:30px;color:var(--accent)}.upload-plus{font-size:27px;line-height:1;font-weight:500}.preview{position:absolute;inset:0;border-radius:4px;background-position:center;background-size:cover}.preview[hidden]{display:none}.upload-copy{display:grid;gap:3px;min-width:0;flex:1}.file-name{display:block;min-width:0;color:var(--text);font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upload-label:not(.has-file) .file-name{color:#9296a0;font-size:12px;font-weight:400}.upload-action{display:block;min-width:0;color:var(--accent);font-size:12px;line-height:1.3}.upload-action[hidden]{display:none}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.upload-field input:focus-visible+.upload-label{outline:2px solid var(--accent);outline-offset:2px}.upload-field input:user-invalid+.upload-label{border-color:var(--error)}.profile-code-note{margin:16px 0;color:var(--muted);font-size:12px;line-height:1.7}.form-footer{display:grid;gap:10px;padding-top:14px;border-top:1px solid var(--line)}.form-footer p{margin:0;color:var(--error);font-size:12px;line-height:1.5}.form-footer p:empty{display:none}.form-footer button,.primary-action{display:inline-flex;align-items:center;justify-content:space-between;gap:20px;min-height:50px;padding:12px 19px;border:0;border-radius:7px;background:var(--accent);color:#181a20;text-decoration:none;font-size:13px;font-weight:800;transition:background .18s,transform .18s}.form-footer button{width:100%;justify-content:center}.form-footer button:hover,.primary-action:hover{background:#ffd240;transform:translateY(-1px)}.form-footer button:disabled,.primary-action:disabled{opacity:.65;cursor:wait;transform:none}
.success-card{width:100%;max-width:600px;margin-inline:auto;padding:clamp(22px,2.5vw,26px);border-radius:14px;background:var(--panel)}.success-card h2{margin:0;font-size:25px;line-height:1.3;letter-spacing:-.025em}.success-card p{margin:12px 0 24px;color:var(--muted);font-size:14px;line-height:1.7}.primary-action:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.success-card[hidden],.lookup-card[hidden]{display:none}.lookup-card h2{margin:0;font-size:25px;line-height:1.3;letter-spacing:-.025em}.lookup-card>p:not(.lookup-status){margin:12px 0 24px;color:var(--muted);font-size:14px;line-height:1.7}.lookup-card label{display:block;margin-bottom:8px}.lookup-card input{margin-bottom:14px}.lookup-status{margin:0 0 14px;color:var(--error);font-size:12px;line-height:1.5}.lookup-status:empty{display:none}.primary-action{width:100%;justify-content:center}
@media(max-width:580px){.site-header{height:64px}.header-inner{width:calc(100% - 36px)}.page-shell{width:calc(100% - 32px);margin:42px auto 72px}.intro{margin-bottom:32px}.intro h1{font-size:clamp(25px,7.2vw,36px)}.intro p{margin-top:18px;font-size:14px}form,.success-card{padding:22px}.image-grid{gap:8px}.upload-label{height:52px;gap:6px;padding-inline:11px 7px}.upload-media{width:25px;height:26px}.upload-plus{font-size:24px}.file-name{font-size:12px}.upload-action{font-size:12px}.profile-code-note{margin-block:16px}.success-card h2{font-size:22px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.upload-label,.form-footer button,.primary-action{transition:none}}@media(forced-colors:active){.upload-label,input[type=text],form,.success-card{border:1px solid CanvasText}}
.workflow-card{margin-top:18px}.workflow-card[hidden],.workflow-step[hidden]{display:none}.step-progress{display:flex;gap:8px;margin:0 0 24px;padding:0;list-style:none}.step-progress li{flex:1;padding:0 0 10px;border-bottom:2px solid var(--line);color:var(--muted);font-size:12px;font-weight:700;text-align:center}.step-progress li.current{border-color:var(--accent);color:var(--accent)}.workflow-step p{margin:12px 0 20px}.step-status{min-height:0;color:var(--error)!important}.step-status:empty{display:none}.step-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.secondary-action{min-height:50px;padding:12px 16px;border:1px solid var(--accent);border-radius:7px;background:transparent;color:var(--accent);font-size:13px;font-weight:800}.secondary-action:hover{background:#2d2a1e}.secondary-action:focus-visible,.confirm-row input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.secondary-action:disabled,.step-actions .primary-action:disabled{opacity:.45;cursor:not-allowed;transform:none}.shared-words{display:block;margin:20px 0;padding:18px;border:1px solid var(--line);border-radius:7px;background:var(--page);color:var(--accent);font-size:16px;font-weight:700;line-height:1.8;overflow-wrap:anywhere}.confirm-row{display:flex;align-items:flex-start;gap:10px;margin:20px 0;font-size:13px}.confirm-row input{width:18px;height:18px;margin:1px 0 0;accent-color:var(--accent)}@media(max-width:580px){.step-progress li{font-size:11px}.step-actions{gap:8px}.step-actions button{padding-inline:8px;font-size:12px}}
.step-profile-code{display:grid;justify-items:center;gap:7px;margin:16px 0 22px;padding:17px 16px;border:1px dashed #777b85;border-radius:9px;background:var(--page);text-align:center}.step-profile-code-label{color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.step-profile-code-value{color:var(--accent);font-size:clamp(22px,5vw,27px);font-weight:800;line-height:1.2;letter-spacing:.14em;font-variant-numeric:tabular-nums}@media(max-width:580px){.step-profile-code{margin:16px 0 20px;padding:15px 12px}}
.workflow-card .primary-action:disabled,.workflow-card .primary-action:disabled:hover{background:#444750;color:#b8bbc2;opacity:1;cursor:not-allowed;transform:none}.workflow-card .secondary-action:disabled,.workflow-card .secondary-action:disabled:hover{border-color:#555861;background:#303239;color:#9da0a9;opacity:1;cursor:not-allowed}
.text-back{display:inline-flex;align-items:center;gap:6px;min-height:44px;width:max-content;margin:0 0 8px -4px;padding:0 4px;border:0;background:transparent;color:var(--muted);font-size:13px;font-weight:600}.text-back:hover{color:var(--accent)}.text-back:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:3px}.text-back:disabled{color:#777b85;cursor:wait}.text-back svg{flex:none}
.logout-button{min-height:40px;padding:0 10px;border:1px solid #555861;border-radius:7px;background:transparent;color:var(--muted);font-size:12px;font-weight:700;white-space:nowrap}.logout-button:hover{border-color:var(--accent);color:var(--accent)}.logout-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.logout-button[hidden]{display:none}
.copy-words-wrap{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:-6px}.copy-words-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:164px;min-height:44px;padding:9px 17px;border:1px solid #555861;border-radius:8px;background:#30333b;color:#e0e2e7;font-size:13px;font-weight:700}.copy-words-button:hover{background:#393d46;border-color:#777b85}.copy-words-button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.copy-words-button:disabled{opacity:.65;cursor:wait}.copy-words-button svg{flex:none}.copy-words-status{margin:0!important;color:var(--muted)!important;font-size:12px!important;line-height:1.4!important;text-align:center}.copy-words-status:empty{display:none}
.copy-words-status[data-state="success"]{color:#4ade80!important}
.form-footer #form-status[data-state="loading"]{color:#4ade80}
#lookup-form>.primary-action,#continue-step,#chat-three{display:flex;width:min(100%,220px);margin-inline:auto}
.shared-words-card{margin:20px 0;border:1px solid #59491f;border-radius:9px;background:#20242a}.shared-words-card .shared-words{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0;padding:14px;border:0;background:transparent;white-space:normal;overflow:visible}.word-tile{display:grid;place-items:center;min-width:0;min-height:44px;padding:6px 5px;border:1px solid #4a4d56;border-radius:7px;background:var(--page);color:var(--text);font-size:13px;line-height:1.3;text-align:center;overflow-wrap:anywhere}.shared-words-card .copy-words-wrap{margin:0 14px;padding:0 0 14px;border:0}
.shared-words-card .copy-words-button{width:100%;min-height:44px;padding:8px 12px;gap:8px;border-color:#555861;background:transparent;color:var(--text);font-size:13px}.shared-words-card .copy-words-button svg{width:16px;height:16px}@media(max-width:580px){.shared-words-card .shared-words{gap:6px;padding:10px}.word-tile{min-height:40px;padding:5px 2px;font-size:11px}.shared-words-card .copy-words-wrap{margin-inline:10px;padding-bottom:10px}.shared-words-card .copy-words-button{min-height:44px;font-size:12px}}
