:root{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#163a5f;background:#f4f9ff;--blue:#327dc8;--muted:#5e7b99;--border:#d8e6f3}*{box-sizing:border-box}body{margin:0}#app{max-width:660px;margin:auto;padding: max(16px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom));min-height:100vh}header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 16px}header img{width:115px;object-fit:contain}h1{font-size:21px;margin:0 0 4px}h2{font-size:18px;margin:0 0 12px}p{line-height:1.65;margin:6px 0}small,.muted{color:var(--muted);font-size:13px}.hero{display:flex;align-items:center;gap:12px;padding:18px;background:linear-gradient(130deg,#d9ecff,#e9faff);border:1px solid white;border-radius:22px;box-shadow:0 7px 22px #4a90e222}.hero img{width:90px;height:90px;object-fit:contain}.hero h2{font-size:24px;margin:0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.tile{min-height:125px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:linear-gradient(150deg,#fff,#eef6ff);color:#163a5f;border:1px solid white;box-shadow:0 5px 14px #4a90e220;border-radius:18px;padding:10px;font-weight:700}.tile img{width:66px;height:66px;object-fit:contain}.tile:active{transform:scale(.97)}button,input,select{font:inherit}button,.filebutton{border:0;border-radius:13px;min-height:48px;padding:10px 14px;cursor:pointer;font-weight:650}button.primary,.filebutton{background:#327dc8;color:#fff}button.secondary{background:#e5f1fc;color:#163a5f}button.danger{background:#fdecef;color:#a32b3e}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible{outline:3px solid #4a90e2;outline-offset:2px}.panel{background:white;border:1px solid var(--border);border-radius:18px;padding:16px;margin:14px 0;box-shadow:0 5px 15px #4a90e20b}.notice{padding:10px 12px;background:#fff3df;color:#805412;border-radius:12px;margin:12px 0;font-size:13px}.status{padding:9px 12px;background:#e5f6f0;color:#166746;border-radius:12px;font-size:13px;margin:10px 0}.error{background:#fdecef;color:#98283c}.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.row>*{flex:1}.stack{display:grid;gap:10px}label{display:grid;gap:5px;margin:10px 0;font-size:14px;font-weight:600}input:not([type=file]),select{width:100%;background:#fff;border:1px solid #c9dced;border-radius:12px;padding:12px;min-height:48px;color:#163a5f}input[type=file]{max-width:100%;font-size:13px}video,.photo{max-width:100%;width:100%;max-height:320px;object-fit:contain;background:#edf5fc;border-radius:14px}table{border-collapse:collapse;width:100%;font-size:13px}td,th{border:1px solid #caddeb;padding:7px;text-align:right;overflow-wrap:anywhere}th{background:#e8f2fc}.record{border-bottom:1px solid #d8e6f3;padding:12px 0}.record:last-child{border:0}.record img{width:85px;height:70px;object-fit:contain}.footer{text-align:center;color:var(--muted);font-size:12px;padding:14px}.print-only,#printSheet{display:none}@media(prefers-reduced-motion:no-preference){button{transition:transform .16s,background .16s}}@media print{@page{size:A4 portrait;margin:12mm}body{background:white;color:#163a5f}#app{display:none!important}#printSheet{display:block!important}#printSheet header img{width:100px}#printSheet h1{text-align:center;margin:20px 0}#printSheet table{font-size:11pt}#printSheet tr{break-inside:avoid}#printSheet .notice{background:white;border:1px solid #ccc;color:#222}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* Approved home header and card styling */
#app:has(.brand-header){background:radial-gradient(ellipse at 0 5%,#d9ecfc 0,transparent 45%),linear-gradient(160deg,#eaf4fd,#f4f9ff 70%,#dceefb);padding-inline:16px}
.brand-header{display:block;margin:0 0 14px;line-height:0;border-radius:20px;overflow:hidden;box-shadow:0 8px 18px #367eb330;background:#e4f2fc}
.brand-header img{width:100%;height:auto;display:block;object-fit:contain}
.brand-header~.grid{margin-top:0;gap:10px}
.brand-header~.grid .tile{position:relative;isolation:isolate;overflow:hidden;min-height:110px;padding:9px 6px;gap:4px;background:linear-gradient(142deg,#ffffff 0%,#f0f7fe 60%,#dceefa 100%);border:1px solid #fff;box-shadow:0 6px 12px #397db52b,inset 0 1px 1px #fff;font-size:clamp(14px,3.9vw,18px);line-height:1.4;color:#10365b;font-weight:750}
.brand-header~.grid .tile:before{content:'';position:absolute;inset:-55% 44% 20% -30%;border-radius:50%;background:linear-gradient(125deg,#ffffff85,#ffffff00);z-index:-1;pointer-events:none}
.brand-header~.grid .tile img{width:64px;height:64px;object-fit:contain}
.home-actions{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.home-actions button{background:linear-gradient(#4a9ce7,#1262b4);border:1px solid white;box-shadow:0 3px 8px #367eb344;color:white}
@media(max-width:420px){#app:has(.brand-header){padding-inline:10px}.brand-header{border-radius:13px;margin-bottom:12px}.brand-header~.grid .tile{min-height:98px;border-radius:16px}.brand-header~.grid .tile img{width:54px;height:54px}}
