*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;background:#e9eae6;color:#1b2a4a;font:16px/1.55 system-ui,sans-serif}
a{color:inherit;text-underline-offset:3px}
a:focus-visible{outline:3px solid #b87333;outline-offset:3px}
.app{max-width:480px;min-height:100vh;margin:0 auto;background:#f7f6f2;display:flex;flex-direction:column;box-shadow:0 0 0 1px #d4d6d2}
.strip{background:#b87333;color:#fff;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:8px 16px;text-align:center}
.bar{background:#1b2a4a;color:#fff;padding:12px 16px 14px}
.bar .top{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px}
.bar .top a{color:#e6d3bd;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.bar h1{font-size:22px;line-height:1.2;margin:2px 0 2px;letter-spacing:-.01em}
.bar .job{margin:0;font-size:13px;color:#d5deea}
.steps{display:flex;gap:6px;margin:10px 0 0;padding:0;list-style:none;font-size:12px}
.steps li{flex:1;text-align:center;padding:6px 2px;border-radius:5px;background:#2c3d63;color:#c3cde0}
.steps li.on{background:#fff;color:#1b2a4a;font-weight:700}
.steps li.done{background:#3b4f7a;color:#fff}
main{flex:1 0 auto;padding:16px 16px 24px}
h2{font-size:18px;line-height:1.3;margin:22px 0 8px}
h2:first-child{margin-top:0}
p{margin:0 0 10px}
.lead{font-size:16px;color:#3f4b5c}
.card{background:#fff;border:1px solid #dedfdc;border-radius:8px;padding:14px 14px 12px;margin:0 0 12px}
.card h3{font-size:16px;margin:0 0 6px;line-height:1.3}
.card p:last-child{margin-bottom:0}
.badge{display:inline-block;border:1px solid #c9b294;color:#6b3d18;background:#fcf7ee;padding:2px 9px;border-radius:30px;font-size:12px;font-weight:700;line-height:1.5}
.chip{display:inline-block;padding:2px 9px;border-radius:30px;font-size:12px;font-weight:700;line-height:1.5;white-space:nowrap}
.chip.ack{background:#e3f1e8;color:#16573a;border:1px solid #b7d9c5}
.chip.sent{background:#fff1d1;color:#7a4e00;border:1px solid #ecd18f}
.chip.draft{background:#eceeef;color:#3f4b5c;border:1px solid #cfd3d6}
.chip.flag{background:#fbe9dd;color:#7a2f0a;border:1px solid #efc4a8}
.btn{display:block;width:100%;text-align:center;text-decoration:none;font-weight:700;font-size:16px;line-height:1.3;padding:14px 16px;min-height:48px;border-radius:6px;border:1px solid #1b2a4a;background:#fff;color:#1b2a4a;margin:0 0 10px}
.btn.primary{background:#1b2a4a;color:#fff}
.btn.inrow{grid-column:1/-1;margin:8px 0 0}
.mt8{margin-top:8px}.mt10{margin-top:10px}
.btn small{display:block;font-weight:500;font-size:12px;margin-top:2px;opacity:.85}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 12px}
.tile{background:#fff;border:1px solid #dedfdc;border-radius:8px;padding:10px 6px;text-align:center}
.tile b{display:block;font-size:26px;line-height:1.1}
.tile span{font-size:13px;color:#3f4b5c}
.sheet{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:start;background:#fff;border:1px solid #dedfdc;border-radius:8px;padding:12px 14px;margin:0 0 8px}
.sheet .ttl{font-weight:700}
.sheet .meta{grid-column:1/-1;font-size:14px;color:#3f4b5c}
.human{background:#fcf7ee;border:1px solid #e3d2b8;border-left:4px solid #b87333;border-radius:6px;padding:10px 12px;margin:14px 0;font-size:14px}
.human b{color:#6b3d18}
.example{background:#fff;border:1px dashed #b87333;border-radius:8px;padding:12px 14px;margin:0 0 12px}
.example .lab{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#6b3d18}
.example .big{font-size:24px;font-weight:800;line-height:1.2;margin:2px 0}
.example dl{margin:6px 0 0}
.kv{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid #eceeeb;font-size:15px}
.kv:last-child{border:0}
.kv span:first-child{color:#3f4b5c}
.kv span:last-child{font-weight:650;text-align:right}
.note{font-size:13px;color:#3f4b5c}
.field{margin:0 0 12px}
.field .l{display:block;font-size:13px;font-weight:700;color:#3f4b5c;margin:0 0 3px}
.field .v{background:#fff;border:1px solid #a4acb5;border-radius:5px;padding:10px 12px;min-height:44px}
.field .v.area{min-height:72px}
.photos{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.photos img{display:block;width:100%;height:auto;border-radius:6px;border:1px solid #cfd3d6}
.msg{background:#fff;border:1px solid #cfd3d6;border-radius:8px;padding:12px 14px;font-size:15px}
.msg p{margin:0 0 8px}
.msg .hd{font-size:13px;color:#3f4b5c;border-bottom:1px solid #eceeeb;padding-bottom:8px;margin-bottom:10px}
.msg .hd div{display:flex;gap:8px}
.msg .hd b{min-width:52px}
.who{background:#e6ecf7;border:1px solid #bccbe6;border-radius:6px;padding:10px 12px;font-size:14px;margin:0 0 14px}
.banner{display:none;background:#e3f1e8;color:#16573a;border:1px solid #b7d9c5;border-radius:6px;padding:10px 12px;margin:0 0 12px;font-size:14px;font-weight:600}
.banner:target{display:block}
.track{list-style:none;margin:0 0 12px;padding:0}
.track li{position:relative;padding:0 0 14px 34px;font-size:15px}
.track li:before{content:"";position:absolute;left:10px;top:22px;bottom:0;width:2px;background:#cfd3d6}
.track li:last-child:before{display:none}
.track li i{position:absolute;left:0;top:0;width:22px;height:22px;border-radius:50%;background:#fff;border:2px solid #a4acb5;font-style:normal;font-size:12px;text-align:center;line-height:18px;font-weight:700}
.track li.ok i{background:#16573a;border-color:#16573a;color:#fff}
.track li.wait i{background:#fff1d1;border-color:#b87333;color:#7a4e00}
.track small{display:block;color:#3f4b5c;font-size:13px}
.scroller{height:62vh;min-height:380px;overflow-y:auto;overflow-x:hidden;border:1px solid #a4acb5;border-radius:6px;background:#9aa1a8;padding:10px;margin:0 0 12px}
.a4{container-type:inline-size;background:#fff;color:#111;aspect-ratio:210/297;width:100%;padding:5cqw;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.a4 .in{font-size:3.5cqw;line-height:1.4}
.a4 h4{margin:0;font-size:5.6cqw;letter-spacing:.02em}
.a4 .wm{float:right;border:1.5px solid #b87333;color:#6b3d18;font-weight:800;font-size:3cqw;padding:.6cqw 2cqw;border-radius:2cqw;margin-left:2cqw}
.a4 table{width:100%;border-collapse:collapse;margin:2cqw 0}
.a4 th,.a4 td{border:1px solid #888;padding:1cqw 1.6cqw;text-align:left;font-size:3.3cqw;vertical-align:top}
.a4 th{background:#eee}
.a4 .sig{margin-top:4cqw;border:1px solid #888;padding:2cqw;font-size:3.2cqw}
.a4 .sig div{border-bottom:1px solid #888;height:7cqw;margin-top:2cqw}
.a4 .fine{font-size:2.9cqw;color:#333;margin-top:2cqw}
.a4 img{width:48%;display:inline-block;border:1px solid #888}
.tabs{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-top:1px solid #cfd3d6;z-index:2}
.tabs a{text-decoration:none;text-align:center;font-size:13px;font-weight:650;padding:12px 2px;min-height:48px;color:#3f4b5c;display:flex;align-items:center;justify-content:center}
.tabs a[aria-current=page]{color:#1b2a4a;box-shadow:inset 0 3px 0 #b87333;background:#fcf7ee}
.foot{padding:12px 16px;font-size:12px;color:#3f4b5c;text-align:center;background:#eaece9}
.table{width:100%;border-collapse:collapse;font-size:14px}
.table th,.table td{padding:6px 4px;border-bottom:1px solid #eceeeb;text-align:left;vertical-align:top}
.table td:last-child,.table th:last-child{text-align:right}
@media(min-width:700px){body{padding:24px 0}.app{min-height:calc(100vh - 48px);border-radius:12px;overflow:hidden}.scroller{height:560px}}
