:root {
  color: #123047;
  background: #f4f7f8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: #f4f7f8; }
button, input { font: inherit; }
button { cursor: pointer; }
.app { width: min(100%, 540px); min-height: 100vh; margin: 0 auto; background: #fff; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); box-shadow: 0 0 32px rgba(18,48,71,.08); }
.topbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 12px 20px; background: rgba(255,255,255,.96); border-bottom: 1px solid #e3eaed; backdrop-filter: blur(12px); }
.brand { display: grid; gap: 2px; }
.brand strong { font-size: 16px; letter-spacing: .02em; }
.brand span { color: #657886; font-size: 12px; }
.secure { padding: 5px 9px; border-radius: 999px; background: #e8f6f3; color: #0f766e; font-size: 12px; font-weight: 700; }
main { padding: 24px 20px 40px; }
.hero { margin-bottom: 24px; }
.eyebrow { margin: 0 0 8px; color: #0f766e; font-size: 13px; font-weight: 700; }
h1 { margin: 0; font-size: clamp(25px, 7vw, 34px); line-height: 1.25; letter-spacing: -.02em; }
.lead { margin: 12px 0 0; color: #5f7381; font-size: 15px; line-height: 1.75; }
.card { padding: 20px; border: 1px solid #dce6e9; border-radius: 18px; background: #fff; box-shadow: 0 8px 28px rgba(18,48,71,.06); }
.field { display: grid; gap: 8px; margin-top: 16px; }
.field:first-child { margin-top: 0; }
label { color: #304d5e; font-size: 13px; font-weight: 700; }
input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #bdcbd1; border-radius: 12px; color: #123047; background: #fff; outline: none; }
input:focus { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15,118,110,.12); }
.code { font-size: 24px; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.primary, .secondary, .text-button { width: 100%; min-height: 50px; margin-top: 20px; border-radius: 12px; font-weight: 800; }
.primary { border: 0; color: #fff; background: #0f766e; }
.primary:disabled { cursor: wait; opacity: .62; }
.secondary { border: 1px solid #b9c9cf; color: #123047; background: #fff; }
.text-button { min-height: 42px; margin-top: 8px; border: 0; color: #5c7280; background: transparent; }
.link-button { display: grid; place-items: center; text-decoration: none; }
.note { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #f1f6f7; color: #5c7280; font-size: 13px; line-height: 1.65; }
.message { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.6; }
.message.error { color: #8a2f28; background: #fff0ee; }
.message.success { color: #12625c; background: #e9f7f4; }
.hidden { display: none !important; }
.summary { display: grid; gap: 4px; margin-bottom: 18px; }
.summary h1 { font-size: 26px; }
.summary p { margin: 0; color: #5f7381; }
.groups { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.chip { padding: 6px 10px; border-radius: 999px; color: #0f766e; background: #e8f6f3; font-size: 12px; font-weight: 700; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 12px; }
.section-title h2 { margin: 0; font-size: 18px; }
.count { color: #607784; font-size: 13px; }
.work-list { display: grid; gap: 12px; }
.work { padding: 16px; border: 1px solid #dce6e9; border-radius: 16px; background: #fff; }
.work-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.work h3 { margin: 0; font-size: 16px; line-height: 1.55; }
.priority { flex: none; padding: 4px 8px; border-radius: 999px; color: #9a5a0c; background: #fff4d8; font-size: 11px; font-weight: 800; }
.work p { margin: 9px 0 0; color: #5f7381; font-size: 14px; line-height: 1.65; }
.meta { display: grid; gap: 5px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #edf1f3; color: #536c7a; font-size: 12px; }
.empty { padding: 26px 18px; border: 1px dashed #c4d2d7; border-radius: 16px; color: #607784; text-align: center; line-height: 1.7; }
.footer-note { margin-top: 26px; color: #788b96; font-size: 12px; line-height: 1.7; text-align: center; }
.connection-view { display: grid; place-items: center; min-height: 52vh; text-align: center; }
.connection-view h1 { margin-top: 18px; font-size: 24px; }
.connection-view p { color: #607784; }
.spinner { width: 42px; height: 42px; border: 4px solid #dce8e9; border-top-color: #0f766e; border-radius: 50%; animation: spin .8s linear infinite; }
.fallback h1 { font-size: 25px; }
.fallback-link { margin: 26px 0 0; text-align: center; }
.fallback-link a { color: #607784; font-size: 12px; }
.gas-bridge { position: fixed; left: -10000px; top: -10000px; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 380px) { main { padding-left: 16px; padding-right: 16px; } .card { padding: 17px; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
