@font-face { font-family: 'Inter'; src: url('/assets/inter-latin-wght-normal-Dx4kXJAl.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/assets/fraunces-latin-full-normal-CFFu7zhK.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root { color-scheme: dark; --bg: #0c0c0f; --raised: #15151a; --high: #26262d; --text: #fff; --text-2: #ffffffa6; --line: #ffffff1a; --line-soft: #ffffff0f; --fill: #ffffff0a;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; --display: 'Fraunces', Georgia, serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
main { width: 100%; max-width: 440px; display: grid; background: var(--raised); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
.art { display: none; position: relative; overflow: hidden; background: var(--bg); border-radius: 18px; }
.art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art::after { content: ''; position: absolute; inset: 50% 0 0; background: linear-gradient(#0c0c0f00, #0c0c0fd9); }
.models { position: absolute; z-index: 1; inset: auto 24px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.models span { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.models img { width: 16px; height: 16px; object-fit: contain; }
.white { filter: invert(1); }
.card { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 36px 24px 28px; }
.marks { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 18px; }
.mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #f5f1ea; }
.mark.claude { color: #d97757; }
.link-line { width: 28px; border-top: 2px dotted #ffffff59; }
.logo { display: block; }
.link-line + .logo { margin-left: -8px; }
h1 { margin: 0 0 8px; text-align: center; font: 380 28px/1.15 var(--display); letter-spacing: -0.03em; }
.lead { margin: 8px 0 0; text-align: center; color: var(--text-2); }
#signin { display: grid; gap: 10px; margin-top: 18px; }
.or { display: flex; align-items: center; gap: 12px; margin: 2px 0; color: var(--text-2); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.form, .field { display: grid; gap: 6px; }
.form .outline { margin-top: 4px; width: 100%; background: #fff; border-color: #fff; color: #0c0c0f; }
.form .outline:hover { background: #ffffffe0; }
.field label { color: var(--text-2); font-size: 13px; font-weight: 500; }
.field input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--fill); color: var(--text); font: 16px var(--font); }
.who, .passhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; min-width: 0; min-height: 44px; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.passhead .text { display: flex; align-items: center; min-height: 44px; color: var(--text); font-size: 13px; margin: 0; }
.account { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0 0 20px; color: var(--text-2); min-width: 0; }
.account span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--fill); }
.panel > li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 16px; }
.panel > li + li { border-top: 1px solid var(--line-soft); }
.panel .icon { flex: none; color: var(--text-2); }
.panel > .setting { justify-content: space-between; padding-right: 8px; font-weight: 600; }
select { appearance: none; min-height: 36px; padding: 0 34px 0 12px; border: 0; border-radius: 10px; color: var(--text); font: 600 14px var(--font); cursor: pointer;
  background: var(--high) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23ffffffa6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center no-repeat; }
.message { margin: 14px 0 0; text-align: center; font-size: 14px; }
.message:empty { display: none; }
.actions { display: flex; gap: 10px; margin-top: 20px; }
section[hidden] ~ .actions .primary, section[hidden] ~ .foot { display: none; }
section[hidden] ~ .actions .outline { background: none; border-color: transparent; color: var(--text-2); }
button { font: 600 15px var(--font); color: var(--text); cursor: pointer; }
.outline, .primary { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 16px; border-radius: 14px; }
.outline { background: var(--fill); border: 1px solid var(--line); }
.outline:hover { background: #ffffff17; }
.primary { border: 0; color: #170d2b; background: linear-gradient(90deg, #a98bff 0%, #d98be0 50%, #e8a84c 100%); box-shadow: inset 0 -3px 0 #170d2b4d, inset 0 1px 0 #ffffff38; }
.primary:hover { filter: brightness(1.06); }
button:disabled { opacity: 0.5; cursor: default; }
:is(button, select, input, a, summary):focus-visible, .drop:focus-within { outline: 2px solid #b594ff; outline-offset: 2px; }
.text { padding: 12px 4px; margin: -12px 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #ffffff59; }
.legal a { color: var(--text); text-underline-offset: 2px; }
.foot { margin: 16px 0 0; text-align: center; color: var(--text-2); font-size: 13px; }
.cost { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 0 0 18px; font-size: 20px; font-weight: 600; }
.prompt { margin: 0; padding: 16px; max-height: 200px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; border-bottom: 1px solid var(--line-soft); }
dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; padding: 14px 16px; }
dt { color: var(--text-2); }
dd { margin: 0; text-align: right; }
.drop { display: grid; justify-items: center; gap: 6px; margin-top: 12px; padding: 36px 16px; border: 1.5px dashed #ffffff40; border-radius: 16px; text-align: center; font-weight: 600; cursor: pointer; }
.drop[data-over], .drop:hover { background: var(--fill); }
.drop small { color: var(--text-2); font-weight: 400; font-size: 13px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tiles { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 0; padding: 0; }
.tiles:empty { display: none; }
.tiles li { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--high); }
.tiles img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tiles .file { display: grid; place-items: center; height: 100%; padding: 6px; text-align: center; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; color: var(--text-2); }
.tiles li[data-state=busy] img, .tiles li[data-state=busy] .file { opacity: 0.4; }
.tiles li[data-state=failed] { outline: 2px solid #ff6b66; outline-offset: -2px; }
a.primary { text-decoration: none; font-weight: 600; }
.apps { margin-top: 14px; overflow: hidden; }
.apps details + details { border-top: 1px solid var(--line-soft); }
.apps summary { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px; cursor: pointer; list-style: none; }
.apps summary::-webkit-details-marker { display: none; }
.apps summary::after { content: ''; width: 8px; height: 8px; margin: -4px 4px 0 auto; border: solid var(--text-2); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.15s; }
.apps details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.apps .mark { width: 36px; height: 36px; border-radius: 10px; }
.apps .mark > * { width: 22px; height: 22px; }
.apps div { padding: 0 16px 16px; }
.apps p { margin: 0 0 12px; color: var(--text-2); font-size: 14px; }
.copy { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); text-align: left; }
.copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 13px ui-monospace, Menlo, monospace; color: var(--text-2); }
#grants li { gap: 14px; min-height: 68px; padding: 12px 12px 12px 14px; }
#grants .mark { flex: none; width: 40px; height: 40px; border-radius: 11px; }
#grants b { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; }
.small { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--fill); font-size: 14px; }
.small:hover { background: #ffffff17; }
a.outline { color: var(--text); text-decoration: none; font-weight: 600; }
@media (min-width: 860px) {
  main { max-width: 920px; grid-template-columns: 400px 1fr; gap: 8px; padding: 8px; min-height: 600px; }
  .art { display: block; }
  .card { padding: 32px 44px; }
}
@media (max-width: 480px) {
  body { padding: 0; place-items: stretch; }
  main { border: 0; border-radius: 0; background: var(--bg); }
}
