:root { --ink: #16202b; --muted: #5a6573; --brand: #1f4e79; --accent: #e0a526; --paper: #faf8f4; --line: #e4dfd5; }
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.top { padding: 1.2rem 0; }
.logo { font-size: 1.1rem; font-weight: 700; color: inherit; text-decoration: none; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); line-height: 1.05; margin: 0 0 .4em; max-width: 16ch; }
.muted { color: var(--muted); }
.hero { padding: clamp(2rem, 8vw, 6rem) 0 3rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 56ch; }
.claim { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.6rem; max-width: 640px; }
.claim input { flex: 1 1 260px; font: inherit; padding: .9rem 1.1rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.claim input:focus { outline: none; border-color: var(--brand); }
.claim button, .button { font: inherit; font-weight: 650; padding: .9rem 1.4rem; border: 0; border-radius: 12px;
  background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.button.ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); padding: .7rem 1.2rem; }
button:disabled { opacity: .6; cursor: wait; }
.error { color: #a32020; }
.steps { display: grid; gap: 1.5rem; padding: 3rem 0 5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--line); }
.steps p { color: var(--muted); margin: 0; }

.share-head { padding: clamp(1.5rem, 5vw, 3.5rem) 0 1rem; }
.progress, .failed { padding-bottom: 2rem; }
.log { color: var(--muted); padding-left: 1.2rem; }
.log li:last-child { color: var(--ink); font-weight: 600; }
.viewer { padding-bottom: 2rem; }
.viewer-bar { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.viewer-bar .button.ghost { margin-left: auto; }
.tabs { display: inline-flex; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.tabs button { font: inherit; font-weight: 600; border: 0; background: none; padding: .55rem 1rem; cursor: pointer; }
.tabs button[aria-selected="true"], .tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.stage { width: min(1300px, 100% - 2.5rem); margin-inline: auto; transition: width .2s; }
.stage.phone { width: 400px; max-width: calc(100% - 2.5rem); }
.stage iframe { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: 0 10px 40px rgba(22, 32, 43, .12); }
.mine { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 3rem 0 5rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.mine h2 { margin-top: 0; font-size: 1.9rem; }
.claim-form { display: grid; gap: .8rem; }
.claim-form label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
.claim-form input, .claim-form textarea { font: inherit; font-weight: 400; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.claim-form .button { justify-self: start; }
@media (max-width: 760px) { .mine { grid-template-columns: 1fr; } .viewer-bar .button { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .stage { transition: none; } }
