@font-face {
  font-family: Inter;
  src: url("/static/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  font-family: "SF Pro", -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", sans-serif;
  color-scheme: dark;
  --bg: #0b0b0d;
  --card: #1c1c1e;
  --field: #1c1c1e;
  --text: #f5f5f5;
  --muted: rgba(235,235,245,.7);
  --tertiary: rgba(235,235,245,.4);
  --line: rgba(255,255,255,.12);
  --accent: #0088ff;
  --accent-text: #fff;
  --link: #64b7ff;
  --error: #ff9c96;
  --success: #60df88;
  --glass: rgba(38,38,40,.78);
  --glass-line: rgba(255,255,255,.14);
  --glass-shadow: inset 0 .5px 0 rgba(255,255,255,.12), 0 8px 40px rgba(0,0,0,.24);
  --radius: 20px;
  --pill: 100px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); font-size: 17px; line-height: 22px; letter-spacing: -.43px; }
.form-page, .admin-page { display: flex; flex-direction: column; }
.form-page > .container { flex: 1; }
button, input, textarea, select { font: inherit; letter-spacing: inherit; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--text); }
p { margin: 8px 0; }
h1, h2, h3 { font-weight: 650; }
h1 { font-size: 34px; line-height: 41px; letter-spacing: -.9px; }
h2 { font-size: 22px; line-height: 28px; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 13px; line-height: 18px; letter-spacing: -.08px; margin: 8px 0 0; }
.container { width: min(100%,520px); margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom)); }
.form-header { margin-bottom: 28px; }
.brand-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; flex: 1; min-width: 0; gap: 9px; align-items: center; font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.brand-name { min-width: 0; line-height: 20px; }
.workspace-avatar { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.12); border: .5px solid var(--glass-line); color: var(--text); font-size: 14px; font-weight: 600; overflow: hidden; }
.form-header h1 { margin: 32px 0 8px; }
.form-header p { margin: 0; font-size: 15px; line-height: 20px; }
.admin-link { flex: none; font-size: 13px; line-height: 20px; font-weight: 500; text-decoration: none; white-space: nowrap; padding: 8px 12px; background: var(--glass); border: .5px solid var(--glass-line); border-radius: var(--pill); box-shadow: var(--glass-shadow); }
.form-card { padding: 0; }
.form-description { margin: 0 0 28px; color: var(--muted); font-size: 15px; line-height: 22px; }
.field { margin-bottom: 24px; min-width: 0; }
.field-grid { display: grid; grid-template-columns: minmax(0,1fr) 96px; gap: 12px; }
label { display: block; color: var(--muted); font-size: 13px; line-height: 18px; letter-spacing: -.08px; font-weight: 500; margin: 0 0 8px; padding-left: 4px; }
input, textarea, select { width: 100%; min-height: 52px; border: .5px solid rgba(255,255,255,.12); border-radius: var(--pill); background: var(--field); color: var(--text); padding: 14px 18px; font-size: 17px; line-height: 22px; caret-color: var(--accent); box-shadow: inset 0 .5px 0 rgba(255,255,255,.05); }
textarea { resize: vertical; min-height: 146px; border-radius: var(--radius); }
select option { background: var(--card); color: var(--text); }
input:focus, textarea:focus, select:focus { outline: 1.5px solid rgba(100,183,255,.75); outline-offset: -1.5px; border-color: rgba(100,183,255,.5); }
input:user-invalid, textarea:user-invalid { border-color: rgba(255,156,150,.7); }
input:disabled, textarea:disabled, select:disabled { opacity: .5; cursor: default; }
input::placeholder, textarea::placeholder { color: var(--tertiary); opacity: 1; }
.text-field { position: relative; min-width: 0; }
.text-field input { padding-right: 46px; }
.text-field input[type="number"] { padding-left: 14px; padding-right: 34px; appearance: textfield; -moz-appearance: textfield; }
.text-field input[type="number"]::-webkit-inner-spin-button, .text-field input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.field-clear { position: absolute; z-index: 1; top: 0; right: 12px; bottom: 0; display: grid; place-items: center; width: 22px; height: 22px; min-height: 22px; margin: auto 0; padding: 0; border: 0; border-radius: 50%; background: rgba(235,235,245,.16); color: rgba(235,235,245,.65); font-size: 18px; line-height: 1; font-weight: 400; opacity: 0; visibility: hidden; transform: scale(.8); }
.text-field input[type="number"] + .field-clear { right: 8px; }
.text-field:focus-within input:not(:placeholder-shown) + .field-clear { opacity: 1; visibility: visible; transform: scale(1); }
.text-field input:disabled + .field-clear, .text-field input[readonly] + .field-clear { display: none; }
.text-field .field-clear:not(:disabled):active { transform: scale(.88); }
button { width: 100%; min-height: 44px; border: .5px solid transparent; border-radius: var(--pill); background: var(--accent); color: var(--accent-text); padding: 11px 18px; font-size: 17px; font-weight: 600; line-height: 22px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:hover { filter: brightness(1.08); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
button:disabled { opacity: .4; cursor: default; filter: none; }
.secondary { background: rgba(255,255,255,.07); border-color: var(--glass-line); color: var(--link); box-shadow: inset 0 .5px 0 rgba(255,255,255,.08); }
.compact { width: auto; min-height: 36px; padding: 6px 14px; font-size: 13px; line-height: 20px; white-space: nowrap; }
.card { background: var(--card); border: .5px solid rgba(255,255,255,.06); border-radius: var(--radius); padding: 24px; }
.photo-upload { position: relative; display: flex; align-items: center; gap: 18px; min-height: 96px; padding: 20px; border: .5px solid var(--glass-line); border-radius: var(--radius); background: var(--glass); box-shadow: var(--glass-shadow); overflow: hidden; }
.photo-upload:focus-within { outline: 2px solid var(--accent); outline-offset: -2px; }
.photo-upload svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--link); }
.photo-upload div { min-width: 0; }
.photo-upload strong { display: block; font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-upload small { display: block; margin-top: 5px; font-size: 12px; line-height: 18px; letter-spacing: -.08px; color: var(--muted); }
.photo-upload .photo-input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; }
.photo-preview { display: block; max-width: 100%; max-height: 260px; width: auto; border-radius: 16px; margin-top: 12px; object-fit: contain; }
.field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.field-heading label, .field-heading p { margin: 0; }
#word-counter { font-size: 13px; font-variant-numeric: tabular-nums; }
.valid { color: var(--success); }
.notification-box { padding: 20px; margin-top: 28px; border-radius: var(--radius); background: var(--card); font-size: 15px; line-height: 22px; color: var(--muted); }
.notification-box p { margin: 0; }
.notification-box button { width: auto; margin-top: 14px; padding: 10px 16px; font-size: 15px; }
.form-footer { margin-top: 28px; }
.form-footer > button { min-height: 52px; font-size: 19px; line-height: 24px; box-shadow: inset 0 1px 1px rgba(255,255,255,.25), 0 4px 16px rgba(0,136,255,.12); }
.form-footer .hint { text-align: center; font-size: 12px; margin-top: 14px; }
.notice { border: .5px solid var(--glass-line); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; font-size: 15px; line-height: 22px; background: var(--glass); box-shadow: var(--glass-shadow); overflow-wrap: anywhere; }
.error { color: var(--error); }
.success { color: var(--success); }
.status-panel { padding: 28px; border: .5px solid var(--glass-line); border-radius: var(--radius); background: var(--glass); box-shadow: var(--glass-shadow); }
.status-panel h2 { margin: 0 0 14px; }
.status-panel p { font-size: 15px; line-height: 22px; color: var(--muted); }
.status-panel #status-meta { font-size: 13px; margin: 20px 0 24px; }
#status button + button { margin-top: 12px; }
#retry { margin-top: 16px; }
.selection-indicator { position: absolute; top: 0; left: 0; z-index: 0; border-radius: var(--pill); background: rgba(224,224,224,.14); box-shadow: inset 0 .5px 0 rgba(255,255,255,.14), 0 2px 8px rgba(0,0,0,.12); pointer-events: none; }
.site-credit { flex: none; width: 100%; margin-top: auto; padding: 16px 20px calc(28px + env(safe-area-inset-bottom)); color: var(--tertiary); text-align: center; font-size: 12px; line-height: 18px; letter-spacing: -.08px; }
.site-credit p { margin: 0; }
.site-credit p + p { margin-top: 3px; }
.site-credit a { color: var(--muted); font-weight: 500; text-decoration: none; white-space: nowrap; }
.site-credit a:hover { color: var(--link); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .admin-link, .notice, .status-panel, .photo-upload { backdrop-filter: blur(28px) saturate(150%); -webkit-backdrop-filter: blur(28px) saturate(150%); }
}
@media (max-width: 360px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .field-grid { grid-template-columns: minmax(0,1fr) 84px; }
  .form-header h1 { font-size: 30px; line-height: 36px; }
  .photo-upload { padding: 18px; gap: 14px; }
  .photo-upload small { font-size: 11px; }
}
@media (prefers-reduced-transparency: reduce) {
  .admin-link, .notice, .status-panel, .photo-upload { background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

