:root { --bg:#f7f5f0; --card:#fff; --ink:#1d2430; --mute:#5d6672; --line:#e3ded4; --acc:#1f5f8b; --ok:#2e7d4f; --no:#b3412e; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 19px/1.5 -apple-system, system-ui, "Segoe UI", sans-serif;
       padding: calc(env(safe-area-inset-top) + 8px) 18px calc(env(safe-area-inset-bottom) + 90px); max-width: 640px; margin-inline: auto; }
h1 { font-size: 30px; margin: 18px 0 6px; } h2 { font-size: 23px; margin: 22px 0 8px; }
p { margin: 8px 0; } small, .mute { color: var(--mute); font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin: 14px 0; }
button, .btn { display: block; width: 100%; font: inherit; font-weight: 600; border: 0; border-radius: 14px; padding: 17px;
       background: var(--acc); color: #fff; margin-top: 12px; text-align: center; text-decoration: none; cursor: pointer; }
button.ghost, .btn.ghost { background: transparent; color: var(--acc); border: 2px solid var(--acc); }
button.danger { background: var(--no); } button.small { display: inline-block; width: auto; padding: 8px 14px; font-size: 16px; margin: 0; }
input, textarea, select { width: 100%; font: inherit; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
textarea { min-height: 110px; }
label.cat { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
label.cat input { width: 26px; height: 26px; margin-top: 3px; flex: none; }
label.cat span { display: flex; flex-direction: column; }
.mem { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.pill { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 10px; background: #e8eef4; color: var(--acc); }
.code { font: 600 24px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .05em; text-align: center; padding: 16px;
        background: #fff7e0; border: 2px dashed #d1a83a; border-radius: 14px; word-break: break-all; }
.hide { display: none !important; }
#status { min-height: 1.5em; color: var(--acc); font-weight: 600; }
nav { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: #fff; border-top: 1px solid var(--line);
      padding-bottom: env(safe-area-inset-bottom); }
nav button { background: none; color: var(--mute); margin: 0; border-radius: 0; padding: 14px 4px; font-size: 15px; }
nav button.on { color: var(--acc); }
.ai { display: flex; align-items: center; gap: 14px; } .ai b { font-size: 21px; }
.ai .dot { width: 44px; height: 44px; border-radius: 12px; background: #e8eef4; display: grid; place-items: center; font-weight: 700; color: var(--acc); flex: none; }
ol.steps { padding-left: 22px; } ol.steps li { margin: 8px 0; }
