:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#203a52;background:#f4f8fc;font-size:16px;line-height:1.5;--blue:#1669bb;--line:#dbe6f0;--muted:#60788e;--pale:#eaf3fb}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button, .button{touch-action:manipulation}a{color:var(--blue)}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.symbols{display:none}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.2;margin-bottom:0;font-weight:650}h2{font-size:23px;letter-spacing:-.5px;margin-bottom:0}h3{font-size:16px;font-weight:650;margin:0 0 14px}.eyebrow{font-size:12px;font-weight:650;letter-spacing:1.3px;color:var(--muted);margin-bottom:9px}.muted{color:var(--muted)}.small{font-size:13px}.optional{font-size:13px;font-weight:400;color:#6a8195;margin-left:6px}.required{color:var(--blue)}.button{min-height:44px;padding:10px 17px;border:1px solid #cbdce9;border-radius:9px;background:white;color:#33516d;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:550;text-decoration:none;white-space:nowrap}.button:hover{background:#eef5fb;border-color:#9cbdd9}.primary{background:var(--blue);border-color:var(--blue);color:white;box-shadow:0 2px 3px #1260a414}.primary:hover{background:#105aa3;border-color:#105aa3}.icon-button{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:9px;color:#577189;width:44px;height:44px;flex-shrink:0}.icon-button:hover{background:#e8f1f9}.icon-button svg{width:20px;height:20px}:focus-visible{outline:3px solid #78baf2;outline-offset:3px}.topbar{height:80px;display:flex;align-items:center;gap:26px;padding:0 max(24px,calc((100vw - 1080px)/2));background:#eaf3fb;border-bottom:1px solid #d5e4f1}.brand{display:flex;align-items:center;gap:12px;color:#244b70;font-size:23px;font-weight:650;letter-spacing:-.5px;text-decoration:none}.brand-mark{height:39px;width:39px;border-radius:12px;background:#d3e7fa;color:#1768ae;display:inline-flex;align-items:center;justify-content:center}.brand-mark svg{width:25px;height:25px}.top-caption{font-size:14px;color:var(--muted);border-left:1px solid #c8dcea;padding-left:25px}.topbar>.icon-button{margin-left:auto}.workspace{max-width:1080px;margin:0 auto;padding:38px 0 50px}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px;gap:16px}.count{font-size:15px;letter-spacing:0;vertical-align:middle;background:#e5eef7;color:#5d7994;border-radius:7px;padding:3px 9px;margin-left:8px}.search{height:52px;border:1px solid #cbdce9;border-radius:10px;background:white;display:flex;align-items:center;gap:12px;padding:0 16px;box-shadow:0 2px 4px #203a5203;margin-bottom:27px}.search svg{color:#7892aa}.search input{border:0;padding:0;height:100%;background:none;min-width:0;flex:1;outline:none;font-size:16px}.search:focus-within{border-color:#6aa7dc;box-shadow:0 0 0 3px #dceefe}.search kbd{font-size:12px;color:#7991a6;background:#f2f6fa;padding:2px 7px;border-radius:4px;border:1px solid #e4ecf3;white-space:nowrap}.list-heading,.item-row{display:grid;grid-template-columns:95px minmax(0,1fr) 160px 65px;align-items:center;text-align:left;gap:16px}.list-heading{padding:0 22px 11px;font-size:12px;color:#6c8398;font-weight:600;letter-spacing:.3px}.list-heading>span:last-child{text-align:right}.item-list{border:1px solid var(--line);border-radius:12px;background:white;overflow:hidden}.item-row{width:100%;border:0;border-bottom:1px solid #e8eff5;background:white;min-height:83px;padding:14px 22px;color:inherit}.item-row:last-child{border-bottom:0}.item-row:hover{background:#f2f8fd}.item-row.exact{background:#eaf4ff;box-shadow:inset 3px 0 #2478c4}.item-row:focus-visible{outline-offset:-4px}.code{display:inline-flex;justify-content:center;align-items:center;background:#edf4fb;border:1px solid #dae8f4;border-radius:7px;color:#226298;font-family:"Courier New",Courier,monospace;font-size:16px;font-weight:700;letter-spacing:1.8px;width:65px;height:35px}.code.large{width:80px;height:41px;font-size:22px}.item-main{display:flex;align-items:center;gap:15px;min-width:0}.item-icon{display:flex;align-items:center;justify-content:center;background:#f2f6fa;color:#6992b4;border-radius:10px;width:40px;height:40px;flex-shrink:0}.item-text{min-width:0}.item-name{font-size:15px;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-notes{font-size:13px;color:#72869a;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:3px}.category{justify-self:start;font-size:12px;color:#526f89;background:#eff5fa;border:1px solid #e3edf5;border-radius:6px;padding:2px 8px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-amount{display:flex;align-items:center;justify-content:flex-end;gap:6px;font-size:13px;color:#7b90a3}.file-amount svg{width:15px;height:15px}.list-footer{display:flex;justify-content:space-between;font-size:12px;color:#7990a4;margin-top:15px;gap:16px}.empty{text-align:center;padding:60px 24px;color:var(--muted)}.empty h3{font-size:18px;color:#355675;margin-bottom:8px}.empty p{margin-bottom:0}.empty svg{width:34px;height:34px;margin-bottom:12px}.notice{background:#fff5df;border:1px solid #eddbaf;border-radius:8px;padding:11px 14px;color:#785315;font-size:14px;margin-bottom:18px}.notice.error{color:#98393c;border-color:#edc9cd;background:#fff3f3}.local-banner{font-size:12px;color:#6c7f90;margin:-21px 0 22px}.login{max-width:430px;margin:14vh auto 0;text-align:center;padding:28px}.login>.brand-mark{height:58px;width:58px;margin-bottom:25px}.login h1{font-size:42px;margin-bottom:15px}.login>p:not(.eyebrow){color:var(--muted)}.login .google{width:100%;margin:14px 0 16px}.local-login{margin-top:35px;text-align:left;font-size:14px;color:var(--muted)}.local-login form{padding-top:15px;display:grid;gap:12px}dialog{border:1px solid #d4e2ee;border-radius:16px;background:#fff;color:#203a52;padding:0;box-shadow:0 24px 90px #163b6033;max-height:calc(100dvh - 50px)}dialog::backdrop{background:#294b6a55;backdrop-filter:blur(3px)}.editor{width:640px;max-width:calc(100% - 36px)}.dialog-header{padding:23px 26px 18px;display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #e4edf5}.dialog-header .eyebrow{margin-bottom:3px}.editor form{display:flex;flex-direction:column;max-height:calc(100dvh - 52px)}.editor-body{padding:24px 26px;overflow-y:auto;overscroll-behavior:contain;min-height:0}.editor-body>label{margin-bottom:19px}label{display:block;font-size:14px;font-weight:550;color:#44627c}label>input,label>textarea,label>.date-field,label>.price-field{margin-top:6px}input,textarea{width:100%;border:1px solid #ccdce9;border-radius:8px;background:#fff;color:#233f58;min-height:44px;padding:10px 12px;font-size:16px;line-height:1.45}input::placeholder,textarea::placeholder{color:#8b9dab;font-weight:400}input:focus,textarea:focus{outline:2px solid #b7dbf9;outline-offset:1px;border-color:#77add9}textarea{resize:none;min-height:45px;max-height:138px;overflow-y:auto;display:block}.code-line{display:flex;align-items:center;gap:12px;margin-bottom:24px}.form-section{border-top:1px solid #e6edf4;padding-top:22px;margin-top:24px}.form-section>label{margin-bottom:15px}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.price-field,.date-field{position:relative}.price-field>span{position:absolute;right:14px;top:10px;color:#8195a7;font-size:16px}.price-field input{padding-right:35px}.date-field>input{padding-right:48px}.calendar-control{position:absolute;right:1px;top:1px;width:44px;height:43px;display:flex;align-items:center;justify-content:center;color:#6a8ba6}.calendar-control input{position:absolute;inset:0;opacity:0;cursor:pointer;width:44px;padding:0;color:transparent}.calendar-control input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.calendar-control:focus-within{outline:2px solid #8fc4ec;border-radius:6px}.dialog-footer{padding:16px 26px;background:#f7fafd;border-top:1px solid #e0eaf3;display:flex;align-items:center;gap:12px;flex-shrink:0}.footer-actions{margin-left:auto;display:flex;gap:10px}.danger-quiet{color:#a0474c;border:0;background:transparent;padding-left:0;padding-right:0}.danger-quiet:hover{background:transparent;color:#862a30}.danger{background:#b4434b;border-color:#b4434b;color:#fff}.danger:hover{background:#96343b;color:white}.dropzone{background:#f5f9fd;border:1px dashed #bfd5e7;border-radius:9px;padding:17px 12px;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;color:#6c879f;font-size:13px}.dropzone.dragover{background:#e4f2ff;border-color:#3086cb}.dropzone>span:last-of-type{width:100%;text-align:center;font-size:12px}.dropzone>svg{width:17px;height:17px}.link-button{padding:0;background:none;border:0;font-size:inherit;color:var(--blue);text-decoration:underline;text-underline-offset:3px;min-height:28px}.file-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid #edf2f6;margin-bottom:6px}.file-thumb{height:38px;width:38px;object-fit:cover;border-radius:6px;background:#eaf2f9;flex-shrink:0}.file-thumb.icon{display:flex;align-items:center;justify-content:center;color:#7a99b2}.file-open{background:none;border:0;color:#355771;display:flex;align-items:center;gap:10px;min-width:0;flex:1;text-align:left;padding:2px;font-size:14px}.file-meta{display:block;font-size:12px;color:#8a9cab}.file-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-label{min-width:0}.file-row .icon-button{width:38px;height:44px}.file-row .icon-button svg{width:17px;height:17px}#files-list:not(:empty){margin-bottom:14px}#created-info{margin:22px 0 0;font-size:12px}#form-error{margin:18px 0 0}.confirm{width:420px;max-width:calc(100% - 32px);padding:26px}.confirm h2{font-size:21px;margin-bottom:12px}.confirm p{font-size:15px;color:#627a90;overflow-wrap:anywhere}.confirm-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;margin-top:24px}.preview{width:880px;max-width:calc(100% - 32px)}.preview h2{font-size:16px;overflow-wrap:anywhere}#preview-content{height:min(65vh,650px);background:#f0f5fa;display:flex;align-items:center;justify-content:center}#preview-content>img{max-width:100%;max-height:100%;object-fit:contain}#preview-content>iframe{width:100%;height:100%;border:0}.preview .dialog-footer{justify-content:flex-end}.settings{width:500px;max-width:calc(100% - 32px)}.settings h3{margin-top:26px}.settings>.editor-body{max-height:calc(100dvh - 240px)}.settings .muted{font-size:14px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);border-radius:10px;background:#254f72;color:white;padding:12px 22px;box-shadow:0 6px 25px #203a5220;font-size:14px;z-index:100;max-width:calc(100% - 32px);text-align:center}
@media(min-width:801px){.workspace{width:calc(100% - 64px)}}
@media(max-width:800px){.topbar{height:68px;padding:0 22px}.workspace{padding:28px 20px}.list-heading,.item-row{grid-template-columns:72px minmax(0,1fr) 105px 40px;gap:10px}.item-row{padding:13px 14px}.list-heading{padding-left:14px;padding-right:14px}.item-icon{display:none}.search kbd{display:none}}
@media(max-width:520px){.topbar{padding:0 18px;gap:17px}.top-caption{font-size:12px;padding-left:17px}.brand{font-size:21px}.brand-mark{width:34px;height:34px;border-radius:10px}.workspace{padding:25px 16px}.heading{margin-bottom:20px;align-items:center}h1{font-size:25px}.heading .button{padding:10px 13px}.eyebrow{font-size:11px}.search{margin-bottom:22px;padding:0 12px}.search input{font-size:16px}.list-heading{grid-template-columns:62px 1fr 24px;padding-left:12px;padding-right:12px}.list-heading>span:nth-child(3){display:none}.item-row{grid-template-columns:62px minmax(0,1fr) 24px;gap:10px;padding:14px 12px;min-height:84px}.item-row .category{display:none}.code{font-size:15px;width:58px;height:34px}.item-name{font-size:15px}.item-notes{font-size:12px}.file-amount{font-size:12px}.file-amount svg{display:none}.list-heading>span:last-child{font-size:0}.list-footer{font-size:11px}.count{font-size:12px;padding:3px 7px;margin-left:5px}.editor{max-width:100%;width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0}.editor form{height:100dvh;max-height:100dvh}.dialog-header{padding:18px 18px 15px}.editor-body{padding:20px 18px;flex:1}.dialog-footer{padding:13px 18px max(13px,env(safe-area-inset-bottom));gap:10px}.dialog-footer .button{padding:10px 14px}.dialog-footer .danger-quiet{font-size:13px;padding:10px 0}.editor #save-state{display:none}.two-columns{gap:12px}.confirm-actions .button{flex-grow:1}.confirm{padding:23px}.code-line{margin-bottom:21px}.form-section{margin-top:22px}.login{margin-top:9vh}#created-info{font-size:11px}.toast{bottom:18px}.local-banner{margin-top:-10px;font-size:11px}.preview{max-width:100%;width:100%;border-radius:0}.settings{max-height:calc(100dvh - 24px)}}
@media(prefers-reduced-motion:no-preference){dialog[open]{animation:appear .14s ease-out}.toast{animation:appear .18s ease-out}@keyframes appear{from{opacity:0}to{opacity:1}}}

.empty-category{visibility:hidden}

input,textarea{font-weight:400}#reauth{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}

.pdf-shell{width:100%;height:100%;display:flex;flex-direction:column}.pdf-toolbar{display:flex;gap:12px;align-items:center;justify-content:center;padding:8px;border-bottom:1px solid var(--line)}.pdf-toolbar .button{min-height:36px;padding:6px 12px}.pdf-page{flex:1;min-height:0;overflow:auto;padding:12px;text-align:center}.pdf-page canvas{background:white;max-width:100%;box-shadow:0 2px 10px #254f721a}.pdf-toolbar [role=status]{color:var(--muted)}
