:root { color-scheme: light; --pond: #8ba888; --ink: #253228; --muted: #59685d; --line: #d4ddd2; --accent: #485fbd; --pale: #eef0fc; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--pond); color: var(--ink); font: 15px/1.5 Menlo, 'SF Mono', Monaco, Inconsolata, 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace; }
main { width: min(100%, 560px); margin: 0 auto; padding: 16px 20px max(40px, env(safe-area-inset-bottom)); }
a { color: var(--accent); text-underline-offset: 3px; }
nav { margin-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 16px; }
header { margin-bottom: 20px; }
h1 { font-size: 24px; line-height: 1.35; font-weight: 600; margin: 0; }
h2 { font-size: 16px; line-height: 24px; font-weight: 600; margin: 0; }
.card { background: white; border-radius: 16px; padding: 20px; }
label { display: block; font-size: 14px; font-weight: 400; margin: 20px 0 8px; }
input, textarea, button { font: inherit; }
input, textarea { width: 100%; border: 1px solid #c4cec2; border-radius: 6px; padding: 12px; background: white; color: var(--ink); min-height: 48px; font-size: 16px; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.optional { color: var(--muted); font-size: 12px; margin-left: 6px; }
button { min-height: 44px; cursor: pointer; }
.primary { background: var(--accent); color: white; border: 0; border-radius: 10px; width: 100%; min-height: 48px; padding: 12px 16px; font-size: 14px; font-weight: 600; margin-top: 24px; }
.primary:hover { background: #3d50a2; }
button:disabled { opacity: .65; cursor: wait; }
.hint { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.account { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px 0 8px; font-size: 12px; }
#identity { min-width: 0; overflow-wrap: anywhere; }
.text-button { border: 0; background: transparent; color: var(--accent); font-size: 12px; padding: 10px 0 10px 12px; white-space: nowrap; }
.picker { position: relative; display: flex; justify-content: center; align-items: center; min-height: 156px; margin: 0; border: 1px dashed #b9c3dc; background: var(--pale); border-radius: 10px; cursor: pointer; text-align: center; padding: 20px; }
.picker:has(+ input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.picker.dragging { background: #dfe5fa; border-color: var(--accent); }
#picker-prompt { display: flex; align-items: center; flex-direction: column; gap: 8px; color: var(--accent); }
#picker-prompt strong { font-size: 14px; font-weight: 400; }
#picker-prompt > span:last-child { font-size: 11px; color: var(--muted); }
#preview { display: block; max-width: 100%; max-height: 220px; object-fit: contain; margin: 0 auto 24px; }
#change-image { position: absolute; bottom: 10px; color: var(--accent); font-size: 12px; text-decoration: underline; }
.file-input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; }
.message { overflow-wrap: anywhere; margin: 16px 0 0; font-size: 13px; }
.message a { display: inline-flex; align-items: center; min-height: 44px; }
.card .error { color: #a03229; }
.typeahead { position: relative; }
#actors, .actor-list { position: absolute; z-index: 2; top: calc(100% + 4px); width: 100%; padding: 4px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 16px #25322818; }
.actor { display: flex; width: 100%; align-items: center; gap: 10px; text-align: left; padding: 8px; border: 0; background: transparent; border-radius: 6px; color: var(--ink); }
.actor[aria-selected="true"], .actor:hover { background: var(--pale); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #e6eae5; flex-shrink: 0; }
.actor span:last-child { min-width: 0; }
.actor strong, .actor small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actor strong { font-size: 13px; font-weight: 400; }
.actor small { font-size: 12px; color: var(--muted); }
#recent { margin-top: 24px; }
#access { margin-top: 24px; }
#access summary { cursor: pointer; min-height: 44px; align-content: center; font-size: 14px; }
#allowlist-people { list-style: none; padding: 0; margin: 16px 0 0; }
.person { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 8px 0; }
.person > div { flex: 1; min-width: 0; }
.person strong, .person small { display: block; overflow-wrap: anywhere; font-weight: 400; }
.person strong { font-size: 13px; }
.person small { font-size: 11px; color: var(--muted); margin-top: 4px; }
.person .text-button { flex-shrink: 0; }
#submissions { list-style: none; padding: 0; margin: 12px 0 0; }
.submission { background: white; padding: 12px; border-radius: 16px; margin-bottom: 8px; display: flex; gap: 12px; align-items: center; }
.submission img { width: 64px; height: 64px; flex-shrink: 0; border-radius: 6px; object-fit: contain; background: #f5f7f3; }
.submission > div { min-width: 0; flex: 1; }
.submission strong { display: block; font-size: 13px; overflow-wrap: anywhere; font-weight: 400; }
.submission p { font-size: 12px; margin: 4px 0 0; color: var(--muted); }
.submission a, .retry { font-size: 12px; display: inline-flex; align-items: center; min-height: 44px; }
.retry { background: transparent; border: 0; text-decoration: underline; padding: 0; color: var(--accent); }
@media (max-width: 480px) { main { padding: 12px 16px max(32px, env(safe-area-inset-bottom)); } nav { margin-bottom: 16px; } .card { padding: 16px; } }
