body { background: var(--bg); padding-bottom: env(safe-area-inset-bottom); }
.appbar { background: var(--accent); color: var(--accent-ink); position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top); box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.appbar-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: .6rem; padding: .6rem 14px; min-height: 56px; }
.appbar h1 { font-size: 1.05rem; margin: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbar .sub { font-size: .78rem; opacity: .85; font-weight: 500; }
.appbar button, .appbar a.iconbtn { background: rgba(255,255,255,.4); color: inherit; border: 0; border-radius: 8px; min-height: 38px; min-width: 38px; font: inherit; font-weight: 700; padding: 0 .7em; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.applogo { height: 34px; max-width: 90px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px 4px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 14px 14px 90px; }
.tabbar { display: flex; background: var(--card); border-radius: 10px; border: 1px solid var(--line); padding: 4px; margin-bottom: 14px; }
.tabbar button { flex: 1; border: 0; background: none; font: inherit; font-weight: 700; color: var(--muted); padding: .6em .4em; border-radius: 7px; cursor: pointer; }
.tabbar button.active { background: var(--accent); color: var(--accent-ink); }
.listitem { display: flex; align-items: center; gap: .8rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; margin-bottom: .6rem; cursor: pointer; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.listitem:active { transform: scale(.995); }
.listitem .t { font-weight: 700; }
.listitem .m { font-size: .84rem; color: var(--muted); }
.listitem .grow { flex: 1; min-width: 0; }
.chev { color: var(--muted); font-size: 1.3rem; }
.sec-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin: 1rem 0 .4rem; }
.qcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; margin-bottom: .7rem; }
.qcard.err { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad-soft); }
.qlabel { font-weight: 600; margin-bottom: .55rem; }
.qlabel .req { color: var(--bad); }
.yn { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.yn button { border: 1.5px solid var(--line); background: #fff; border-radius: 9px; min-height: 46px; font: inherit; font-weight: 800; color: var(--muted); cursor: pointer; }
.yn button.on[data-v=yes] { background: var(--ok); border-color: var(--ok); color: #fff; }
.yn button.on[data-v=no] { background: var(--bad); border-color: var(--bad); color: #fff; }
.yn button.on[data-v=na] { background: #8a99a8; border-color: #8a99a8; color: #fff; }
.qcomment { margin-top: .5rem; }
.form-heading { font-size: 1.02rem; margin: 1.2rem 0 .5rem; padding-left: .5rem; border-left: 4px solid var(--accent); }
.att-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: .4rem; align-items: center; margin-bottom: .5rem; }
.att-row .signed { color: var(--ok); font-weight: 700; font-size: .85rem; }
@media (max-width: 420px) { .att-row { grid-template-columns: 1fr 1fr; } .att-row .att-acts { grid-column: 1 / -1; display: flex; gap: .4rem; } }
.att-sig { height: 28px; max-width: 80px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; margin: .6rem 0; }
.photo { position: relative; border-radius: 10px; overflow: hidden; background: #e8eef3; }
.photo img { width: 100%; height: 120px; object-fit: cover; display: block; }
.photo input { border: 0; border-radius: 0; min-height: 36px; font-size: .85rem; }
.photo .rm { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); color: #fff; border: 0; border-radius: 50%; width: 28px; height: 28px; font-size: 1rem; cursor: pointer; }
.submitbar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); padding: .7rem 14px calc(.7rem + env(safe-area-inset-bottom)); z-index: 20; }
.submitbar .inner { max-width: 720px; margin: 0 auto; display: flex; gap: .6rem; }
.submitbar .btn { flex: 1; min-height: 50px; font-size: 1.02rem; }
.done-box { text-align: center; padding: 2.5rem 1rem; }
.done-box .big { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 1rem; }
.draft-note { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: .6rem .8rem; font-size: .9rem; margin-bottom: .8rem; display: flex; gap: .5rem; align-items: center; }
.install-tip { background: var(--accent-soft); border-radius: 10px; padding: .7rem .9rem; font-size: .88rem; margin-bottom: 1rem; }
.toggle-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; background: var(--card); border: 1.5px solid var(--accent); border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0 .6rem; cursor: pointer; font-weight: 700; }
.toggle-head input { width: 24px; height: 24px; accent-color: var(--primary); }
.toggle-head span { flex: 1; font-size: 1.02rem; }
.toggle-head small { width: 100%; font-weight: 500; color: var(--muted); padding-left: 34px; margin-top: -.3rem; }
.toggle-head:has(input:checked) { background: var(--accent-soft); }
.opts { display: grid; gap: .4rem; }
.opts button { border: 1.5px solid var(--line); background: #fff; border-radius: 9px; min-height: 44px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; text-align: left; padding: .4rem .8rem; }
.opts button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.so-name { width: 100%; }
