:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#171719;background:#f2f2f7;font-synthesis:none;font-size:16px;--accent:#fff000;--secondary:#73737a;--line:#e5e5ea;--card:#fff;--danger:#bf2926;--green:#237746}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible{outline:3px solid #4c6de7;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #898127;outline-offset:1px}button{border:0;background:none;color:inherit}input,select,textarea{max-width:100%;border:1px solid #d9d9df;border-radius:9px;padding:11px 12px;background:white;color:inherit;min-height:44px}textarea{min-height:88px;resize:vertical}input:disabled{background:#f4f4f6;color:#74747a}a{color:inherit}h1,h2,h3,p{margin:0}h1{font-size:34px;letter-spacing:-1.1px;line-height:1.15}h2{font-size:20px;letter-spacing:-.35px}h3{font-size:17px}p{line-height:1.5}small,.muted{color:var(--secondary)}.icon{width:23px;height:23px;display:inline-block;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--accent);color:#181800;border-radius:10px;padding:13px 18px;font-weight:600;min-height:46px}.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#f0f0f4;border-radius:10px;padding:12px 16px;min-height:44px;font-weight:500}.link-button{color:#6c6500;font-weight:500;padding:10px 4px;display:inline-flex;gap:7px;align-items:center}.danger{color:var(--danger)}.wide{width:100%}.login-wrap{min-height:100dvh;display:grid;place-items:center;padding:28px 20px}.login-card{width:100%;max-width:420px}.login-brand{width:115px;height:115px;border-radius:26px;display:block;margin:0 auto 26px;box-shadow:0 8px 28px #0000000b}.login-card h1{text-align:center;font-size:32px}.login-card>.muted{text-align:center;margin:12px 0 32px;font-size:17px}.login-form{background:white;border:1px solid #e8e8ed;border-radius:18px;padding:26px;display:grid;gap:20px;box-shadow:0 5px 25px #00000003}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field>span{font-size:14px;font-weight:500}.field small{font-size:12px;line-height:1.4}.login-foot{font-size:13px;color:var(--secondary);text-align:center;line-height:1.6;margin:24px 0}.form-error{font-size:14px;line-height:1.5;color:var(--danger);background:#fff2f1;border-radius:8px;padding:10px}.form-error:empty{display:none}.topbar{height:70px;position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;padding:0 30px;background:#f9f9fbe8;backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-weight:650;font-size:17px}.brand img{height:38px;width:38px;border-radius:9px}.account{display:flex;align-items:center;gap:12px;font-size:13px}.avatar{display:grid;place-items:center;width:33px;height:33px;background:#e8e8ed;border-radius:50%;font-weight:600;color:#54545b}.role{color:var(--secondary);font-size:11px;margin-top:3px}.app-main{max-width:860px;margin:auto;padding:36px 24px 130px}.app-main.office{max-width:1180px}.heading{display:flex;gap:18px;justify-content:space-between;align-items:center;margin-bottom:26px}.eyebrow{text-transform:uppercase;letter-spacing:1.5px;color:var(--secondary);font-size:10px;font-weight:600;margin-bottom:7px}.search{width:100%;border:0;background:#e7e7ec;margin-bottom:25px;padding-left:15px}.card{border-radius:13px;background:white;overflow:hidden;border:1px solid #e9e9ee}.intro{padding:22px;margin-bottom:25px}.intro h2{display:flex;align-items:center;gap:9px;margin-bottom:8px}.intro p{color:var(--secondary);font-size:15px;margin-bottom:20px}.section-title{color:var(--secondary);font-size:12px;text-transform:uppercase;letter-spacing:.45px;font-weight:400;margin:24px 15px 9px}.empty{padding:55px 20px;text-align:center;color:var(--secondary)}.empty>.icon{width:44px;height:44px;margin-bottom:15px;color:#a5a5ad}.empty h3{font-size:19px;color:#66666e;margin-bottom:7px}.empty p{font-size:14px;max-width:330px;margin:auto}.record-row{width:100%;text-align:left;display:flex;align-items:center;gap:16px;padding:17px 20px}.record-row+.record-row{border-top:1px solid var(--line)}.record-row:hover{background:#fcfcfd}.tile{height:50px;width:50px;flex-shrink:0;background:#fffdeb;border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#928900}.tile small{font-size:10px;color:inherit;font-weight:650}.tile strong{font-size:24px}.record-copy{flex:1;min-width:0}.record-copy strong{display:block;font-size:16px;font-weight:600;overflow-wrap:anywhere}.record-copy p{font-size:13px;color:var(--secondary);margin-top:4px}.chevron{color:#b3b3b9}.badge{display:inline-block;font-size:11px;border-radius:6px;padding:4px 7px;background:#f1f1f4;color:#686870;white-space:nowrap}.badge.signed,.badge.approved{color:#216a42;background:#eaf5ee}.badge.draft{color:#986715;background:#fff5df}.badge.rejected{color:#a7433f;background:#fff0ef}.tabs{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;background:#fafafcf2;backdrop-filter:blur(22px);border-top:1px solid #dedee5;padding:9px 12px calc(8px + env(safe-area-inset-bottom));z-index:20}.tab{min-width:90px;max-width:155px;flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;color:#85858d;padding:4px}.tab.active{color:#514c00}.tab.active .icon{background:var(--accent);box-shadow:0 0 0 6px var(--accent);border-radius:3px}.tab .icon{width:23px;height:23px;margin:5px}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:16px 20px;min-height:55px}.settings-row+.settings-row{border-top:1px solid var(--line)}.settings-row p{font-size:14px;color:var(--secondary);margin-top:6px}.pad{padding:20px}.stack{display:grid;gap:16px}.row{display:flex;align-items:center;gap:12px}.spread{justify-content:space-between}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}.notice{font-size:13px;color:#6c6c74;line-height:1.6;margin:10px 16px}.notice-box{background:#fffbea;border:1px solid #eee5bb;padding:13px 15px;border-radius:10px;color:#74611c;font-size:13px;line-height:1.55}.help{font-size:12px;line-height:1.6;color:var(--secondary)}dialog{padding:0;border:0;border-radius:18px;width:calc(100% - 32px);max-width:760px;max-height:92dvh;background:#f2f2f7;color:inherit;box-shadow:0 24px 90px #0003}dialog::backdrop{background:#1b1d264d;backdrop-filter:blur(3px)}dialog .sheet-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:63px;padding:8px 20px;background:#f8f8faf5;border-bottom:1px solid var(--line)}.sheet-head h2{font-size:16px;text-align:center}.sheet-head button{font-size:14px}.sheet-content{padding:4px 20px 28px}.sheet-content .section-title{margin-top:24px}.sheet-content .card{margin-bottom:10px}.sheet-footer{padding-top:20px;display:grid;gap:10px}.day{border-radius:12px;background:white;overflow:hidden;border:1px solid #e9e9ee;margin-bottom:10px}.day summary{display:flex;align-items:center;justify-content:space-between;list-style:none;padding:16px 18px;cursor:pointer;gap:12px}.day summary::-webkit-details-marker{display:none}.day summary small{font-size:12px}.day[open] summary{border-bottom:1px solid var(--line)}.day-content{padding:18px;display:grid;gap:17px}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.toggle-row input{appearance:none;width:45px;height:27px;min-height:0;background:#dddde3;border:0;border-radius:30px;position:relative;padding:0;cursor:pointer;flex-shrink:0}.toggle-row input:before{content:"";position:absolute;width:23px;height:23px;border-radius:50%;background:white;top:2px;left:2px;box-shadow:0 1px 3px #0003;transition:transform .15s}.toggle-row input:checked{background:#b3ab00}.toggle-row input:checked:before{transform:translateX(18px)}.metrics{display:flex;align-items:center;justify-content:space-between;background:#f6f6f8;border-radius:8px;padding:12px 14px;font-size:14px}.subrecord{border-top:1px solid var(--line);padding-top:16px;margin-top:6px;display:grid;gap:12px}.article{padding:20px;display:grid;gap:17px}.article+.article{border-top:1px solid var(--line)}.issues{color:#986715;font-size:13px;line-height:1.6;margin:0;padding:16px 20px 16px 35px}.signature-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 18px;text-align:left}.signature-row+.signature-row{border-top:1px solid var(--line)}.signature-preview{height:50px;width:120px;object-fit:contain}.signature-pad{display:block;background:white;touch-action:none;border-radius:14px;border:1px solid #d1d1d7;width:100%;height:260px}.sign-content{padding:23px;display:grid;gap:17px}#signature{max-width:670px}#confirmation{max-width:440px}#confirmation h2{margin-bottom:12px}#confirmation p{font-size:14px;color:var(--secondary);white-space:pre-line;overflow-wrap:anywhere}#toast{position:fixed;z-index:100;left:50%;bottom:100px;transform:translateX(-50%);background:#29292e;color:white;box-shadow:0 4px 18px #0002;padding:14px 20px;max-width:min(90vw,550px);border-radius:12px;font-size:14px;line-height:1.5}#toast.error{background:#9c302c}.office-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:25px}.stat{padding:20px}.stat strong{display:block;font-size:29px;letter-spacing:-.7px;margin-top:12px}.stat small{font-size:12px}.filterbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.filterbar .search{margin:0;flex:1;min-width:200px}.filterbar select{font-size:13px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}th{font-size:10px;font-weight:500;color:var(--secondary);letter-spacing:.55px;text-transform:uppercase;background:#fafafb;padding:14px 17px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:15px 17px;border-bottom:1px solid var(--line)}tr:last-child td{border:0}td button{text-align:left;padding:4px 0;font-weight:600}td small{display:block;margin-top:5px}.users-grid{display:grid;gap:0}.user-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 18px;border-bottom:1px solid var(--line)}.user-row:last-child{border:0}.user-row small{display:block;margin-top:5px}.user-row button{font-size:12px}.office-switch{display:flex;gap:6px;background:#e5e5eb;padding:4px;border-radius:10px;margin-bottom:20px;width:max-content}.office-switch button{padding:8px 15px;font-size:13px;border-radius:7px}.office-switch .active{background:white;box-shadow:0 1px 4px #0001}.readonly-note{margin:15px 0}.review-box{margin-top:20px;display:grid;gap:12px}.history-row{padding:12px 16px;border-bottom:1px solid var(--line);font-size:13px}.history-row p{font-size:12px;color:var(--secondary);margin-top:5px}.scan-video{width:100%;max-height:240px;border-radius:10px;background:#222}.password-box{font-family:ui-monospace,monospace;background:#eeeef2;padding:12px;overflow-wrap:anywhere;border-radius:8px;user-select:all}.busy{opacity:.7;pointer-events:none}
@media(min-width:1100px){.tabs{left:50%;transform:translateX(-50%);bottom:18px;width:650px;border:1px solid #dedee5;border-radius:20px;padding:9px 12px 10px;box-shadow:0 8px 28px #0000000b}.topbar{padding:0 40px}.app-main{padding-top:42px}}
@media(max-width:600px){.topbar{height:61px;padding:0 18px}.brand{font-size:15px;gap:9px}.brand img{height:32px;width:32px}.account .account-name{display:none}.app-main{padding:27px 16px 115px}h1{font-size:31px}.heading{margin-bottom:23px}.intro{padding:20px}.tab{min-width:0;font-size:10px}.record-row{padding:16px 15px;gap:12px}.record-row>.badge{display:none}.grid3{grid-template-columns:1fr 1fr}.office-stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:16px}.stat strong{font-size:25px}.filterbar select{flex:1;min-width:110px}.sheet-content{padding-left:13px;padding-right:13px}.sheet-head{padding-left:13px!important;padding-right:13px!important}dialog{width:100%;max-width:100%;max-height:96dvh;margin-bottom:0;border-radius:17px 17px 0 0}.article{padding:16px}.grid2{gap:12px}.sheet-head button{padding:10px 4px}.row.wrap{flex-wrap:wrap}.login-form{padding:23px}.login-brand{width:94px;height:94px}.signature-row{font-size:14px}.signature-preview{width:85px}.topbar .link-button{padding:8px 0}.office-switch{width:100%}.office-switch button{flex:1}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
