:root { --bg:#f4f4f7; --card:#fff; --ink:#14141a; --muted:#646778; --line:#e2e3ea; --brand:#0b0b10; --gold:#c9a46a;
  --pass:#16a36a; --att:#d39200; --fail:#d43a4a; --na:#8a8d99; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: inherit; } button, input, select, textarea { font: inherit; color: inherit; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--brand); color: #fff; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { border-radius: 8px; } .brand span { display: grid; line-height: 1.1; } .brand small { font-size: 11px; color: #b9bac6; letter-spacing: .06em; }
.gear { font-size: 22px; text-decoration: none; padding: 4px 8px; }
.trial { background: linear-gradient(135deg, #f3dcae, var(--gold)); color: #1a1408; border: 0; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
main { max-width: 860px; margin: 0 auto; padding: 16px 16px 120px; }
h1 { font-size: 26px; margin: 8px 0 12px; letter-spacing: -.02em; } h3 { margin: 0 0 10px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.bar.sticky { position: sticky; top: 56px; z-index: 10; background: var(--bg); padding: 8px 0; }
.back { text-decoration: none; font-weight: 600; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 16px; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); } .btn.ghost { background: transparent; }
.btn.big { padding: 14px 20px; font-size: 17px; } .btn.small { min-height: 34px; padding: 6px 12px; font-size: 14px; } .btn.wide { width: 100%; margin-top: 10px; }
.btn[disabled] { opacity: .6; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; } .row input { flex: 1; min-width: 160px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 12px; min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.search { margin: 6px 0 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 12px 0; }
.list { display: grid; gap: 10px; }
.insp { display: flex; justify-content: space-between; gap: 10px; align-items: center; text-decoration: none; margin: 0; }
.insp .right { display: flex; gap: 6px; align-items: center; }
.tag { font-size: 12px; font-weight: 700; background: #eef0f4; border-radius: 999px; padding: 3px 9px; } .tag.done { background: #e3f6ec; color: var(--pass); }
.dot { min-width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.dot.fail { background: var(--fail); } .dot.attention { background: var(--att); }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.banner { display: block; background: #fff6e2; border: 1px solid #f1dca7; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; text-decoration: none; overflow-wrap: anywhere; }
.form fieldset { border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 14px; margin: 0 0 12px; }
.form legend { font-weight: 700; padding: 0 6px; } .form label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .three { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 10px; }
.head h1 { margin-bottom: 2px; }
.progress { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); } .progress i { width: 120px; height: 8px; border-radius: 4px; background: #e2e3ea; overflow: hidden; } .progress b { display: block; height: 100%; background: var(--pass); width: 0; transition: width .3s; }
.jump { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; } .jump a { white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; text-decoration: none; }
h2.sec { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 4px 8px; scroll-margin-top: 110px; }
.item { background: #fff; border: 1px solid var(--line); border-left: 5px solid #d7d8e0; border-radius: 14px; padding: 12px; margin-bottom: 8px; }
.item.r-pass { border-left-color: var(--pass); } .item.r-attention { border-left-color: var(--att); } .item.r-fail { border-left-color: var(--fail); } .item.r-na { border-left-color: var(--na); }
.item .t { font-weight: 600; margin-bottom: 8px; }
.res { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rb { border: 2px solid var(--line); background: #fff; border-radius: 10px; min-height: 46px; font-weight: 700; font-size: 14px; cursor: pointer; }
.rb.pass.on { background: var(--pass); border-color: var(--pass); color: #fff; } .rb.attention.on { background: var(--att); border-color: var(--att); color: #fff; }
.rb.fail.on { background: var(--fail); border-color: var(--fail); color: #fff; } .rb.na.on { background: var(--na); border-color: var(--na); color: #fff; }
.more { display: flex; gap: 8px; margin-top: 8px; align-items: flex-start; } .more .note { min-height: 44px; resize: vertical; }
.cam { min-width: 48px; height: 46px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; font-size: 22px; cursor: pointer; background: #fff; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.th { width: 72px; height: 54px; border-radius: 8px; border: 1px solid var(--line); background: #eee center/cover; cursor: pointer; }
.photo-btn { margin-top: 8px; }
.verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.vd { border: 2px solid var(--line); background: #fff; border-radius: 12px; min-height: 52px; font-weight: 700; cursor: pointer; }
.vd.v-recommend.on { background: var(--pass); border-color: var(--pass); color: #fff; } .vd.v-caution.on { background: var(--att); border-color: var(--att); color: #fff; } .vd.v-not.on { background: var(--fail); border-color: var(--fail); color: #fff; }
#sig { width: 100%; height: 140px; border: 1px dashed #b9bac6; border-radius: 12px; background: #fff; touch-action: none; }
.paper { background: #fff; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.logo-row { display: flex; gap: 10px; align-items: center; margin: 4px 0 12px; } .logo-prev { width: 140px; height: 56px; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-items: center; overflow: hidden; } .logo-prev img { max-width: 100%; max-height: 100%; }
.level { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; } .level summary { cursor: pointer; display: flex; gap: 8px; align-items: center; } .level summary input { max-width: 220px; font-weight: 700; }
.lv-item { display: grid; grid-template-columns: 1fr 2fr 40px; gap: 6px; margin-top: 6px; } .lv-item .x { border: 0; background: none; color: var(--fail); font-size: 18px; cursor: pointer; }
.gate { max-width: 460px; margin: 40px auto; text-align: center; display: grid; gap: 12px; justify-items: center; } .gate-mark { width: 72px; border-radius: 16px; } .gate .row { width: 100%; justify-content: center; }
#toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 12px; opacity: 0; transition: .25s; pointer-events: none; max-width: 90vw; z-index: 50; }
#toast.show { opacity: 1; transform: translate(-50%, 0); } #toast.bad { background: var(--fail); }
@media (max-width: 560px) { .three { grid-template-columns: 1fr 1fr; } .three label:first-child { grid-column: span 2; } .verdicts { grid-template-columns: 1fr; } .lv-item { grid-template-columns: 1fr 40px; } .lv-item .lv-sec { grid-column: span 2; } }
@media print { .top, .no-print, #toast, .bar { display: none !important; } body, main { background: #fff; padding: 0; max-width: none; } .paper { border: 0; border-radius: 0; } }
