:root {
  --bg: #FBFAF7; --ink: #0B0B0D; --orange: #FF5A1F; --muted: #6b6a66; --line: #e6e3dc;
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.55; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 24px 20px 48px; }
a { color: var(--ink); text-decoration-color: var(--orange); text-underline-offset: 3px; }
h1 { font-size: 2rem; line-height: 1.2; margin: .4em 0; letter-spacing: -.01em; }
h3 { margin: 0 0 .3em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.right { text-align: right; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); max-width: 100%; }
.brand { font-weight: 800; text-decoration: none; letter-spacing: .02em; display: flex; align-items: center; gap: 8px; }
.brand .muted { font-weight: 500; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); display: inline-block; }
nav { display: flex; gap: 16px; align-items: center; }
form.inline { display: inline; margin: 0; }
.btn { display: inline-block; background: var(--orange); color: #fff; border: 2px solid var(--orange); border-radius: 10px; padding: 12px 22px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.small { padding: 6px 14px; font-size: .9rem; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.danger { background: transparent; color: #b42318; border-color: #b42318; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
button.link { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; cursor: pointer; color: var(--ink); }
.hero { padding: 32px 0 16px; }
.eyebrow { color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0; }
.lead { font-size: 1.15rem; max-width: 640px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 32px 0; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; }
.note { border-left: 3px solid var(--orange); padding-left: 14px; }
.narrow { max-width: 560px; }
.legal { max-width: 720px; }
.legal h2 { font-size: 1.2rem; margin-top: 1.6em; }
.placeholder { background: #fff2ec; border: 1px dashed var(--orange); padding: 0 4px; border-radius: 4px; }
.warn { background: #fff2ec; border: 1px solid #ffd2bf; padding: 10px 14px; border-radius: 10px; }
.error { color: #b42318; font-size: .9rem; margin: 6px 0 0; }
.notice { background: #fff; border: 1px solid var(--line); padding: 8px 12px; border-radius: 8px; font-size: .9rem; margin: 8px 0 0; }
.foot { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; padding: 20px; border-top: 1px solid var(--line); font-size: .9rem; }
/* post page */
.creator { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 20px; }
.avatar { border-radius: 50%; object-fit: cover; }
.nickname { font-weight: 800; font-size: 1.1rem; }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.field > label, legend { font-weight: 700; }
input[type=file], textarea, select { font: inherit; padding: 10px 12px; border: 1px solid #cfcbc2; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
textarea { resize: vertical; }
select:invalid { color: var(--muted); }
.check, .switch { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; padding: 4px 0; cursor: pointer; }
.check input, .switch input { margin-top: 5px; accent-color: var(--orange); width: 18px; height: 18px; }
.check.disabled { color: var(--muted); cursor: not-allowed; }
.sub { margin: 6px 0 0 28px; padding: 10px 14px; border-left: 2px solid var(--line); }
.preview { max-width: 280px; max-height: 420px; border-radius: 12px; background: #000; margin-top: 8px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.declaration { font-size: .9rem; margin: 0; }
.progress-box { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; }
.bar { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; }
#bar-fill { height: 100%; width: 0; background: var(--orange); transition: width .3s; }
.progress-box.failed #bar-fill { background: #b42318; }
.progress-box.ok #bar-fill { background: #1a7f37; }
.account { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 12px; }
.account summary { cursor: pointer; font-weight: 700; }
[hidden] { display: none !important; }
