:root{--bg:#121212;--bg-raised:#1c1c1e;--text:#b3b3b3;--text-h:#f5f5f5;--border:#2c2c2e;--accent:gold;--accent-bg:#ffd7001f;--accent-border:#ffd70073;--accent-text:#121212;--danger:#f87171;--success:#4ade80;--shadow:#00000080 0 10px 15px -3px, #0000004d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;--editor-bg:#1a1a1a;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (width<=1024px){:root{font-size:16px}}*,:before,:after{box-sizing:border-box}body{margin:0}[hidden]{display:none!important}h1,h2{font-family:var(--sans);font-weight:500}h1{color:var(--text-h)}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;color:var(--accent);margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}#app{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}@media (width>=1025px){#app{padding:40px 50px}}.header{--logo-size:64px;text-align:start;border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:stretch;gap:1rem;min-height:88px;padding:.5rem 1rem;display:flex}.header__logo{width:var(--logo-size);height:var(--logo-size);border:1px solid var(--accent);background:var(--accent-bg);border-radius:10px;flex-shrink:0;justify-content:center;align-self:center;align-items:center;animation:7s ease-in-out infinite logo-bob;display:flex;box-shadow:0 0 12px #ffd70033}.header__logo img{width:42px;height:42px}@keyframes logo-bob{0%,to{transform:translateY(0)}25%{transform:translateY(-4px)}75%{transform:translateY(4px)}}.header__text{flex-direction:column;justify-content:space-between;align-self:stretch;padding-block:2px;display:flex}.header__title{letter-spacing:1px;color:var(--accent);margin:0;font-size:2rem;font-weight:800;line-height:1.2}.header__subtitle{color:var(--text-h);opacity:.85;letter-spacing:.3px;font-size:1rem;font-weight:500;line-height:1.2}@media (width<=1024px){#app{padding:20px}.header{min-height:72px}.header__title{font-size:1.6rem}.header__subtitle{font-size:.9rem}.header__logo{width:48px;height:48px}.header__logo img{width:30px;height:30px}.header__text{align-self:center;height:auto;padding-block:0}}.form{text-align:start;flex-direction:column;gap:20px;display:flex}.form-progress{background:var(--bg-raised);border:1px solid var(--border);border-radius:6px;align-items:center;height:12px;margin-bottom:1rem;padding:2px;display:flex;overflow:hidden}.form-progress__bar{background:var(--accent);border-radius:4px;width:0%;height:100%;transition:width .25s}.form-progress__label{color:var(--text);text-align:end;margin:0 0 1rem;font-size:.85rem}.form-section{border:.5px solid var(--accent-border);background:var(--bg-raised);border-radius:12px;padding:1rem}.form-section__title{background:linear-gradient(90deg,#ffd70073,#ffd70000);border-radius:12px 12px 0 0;margin:-1rem -1rem 0;padding:.65rem 1rem;font-size:20px}.form-section__title,.form-section__calc-title{align-items:center;gap:.5rem;display:flex}.section-icon{width:1.25rem;height:1.25rem;color:var(--accent);flex-shrink:0}.form-section--complete .form-section__title .section-icon{color:var(--success)}.form-section__toggle{width:100%;font:inherit;color:inherit;text-align:start;cursor:pointer;background:0 0;border:none;align-items:center;gap:.5rem;padding:0;display:flex}.form-section__toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}.form-section__status{align-items:center;gap:.35rem;margin-left:auto;display:flex}.form-section__check{width:1.35rem;height:1.35rem;color:var(--success);display:none}.form-section--complete .form-section__check{display:block}.form-section__chevron{width:1.25rem;height:1.25rem;color:var(--accent);flex-shrink:0;transition:transform .2s}.form-section--collapsed .form-section__chevron{transform:rotate(-90deg)}.form-section--collapsed>:not(.form-section__title){display:none}.form__actions{gap:1rem;margin-top:20px;display:flex}.form__actions .form__button{flex:1}.form__actions .form__button--secondary{margin-top:0}.form__button{border:1px solid var(--accent);font:inherit;cursor:pointer;background-color:var(--accent);color:var(--accent-text);border-radius:10px;justify-content:center;align-items:center;padding:.5rem 1rem;display:inline-flex}.form__button--secondary{color:var(--accent);background:0 0;margin-top:1rem}.form__button--remove{color:var(--danger);background:0 0;border:none;margin-top:.75rem;padding:0;font-size:.85rem}.form__button:disabled{opacity:.5;cursor:not-allowed}.form__input:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.form__input--error,.form__input--error:focus-visible{border-color:var(--danger);outline-color:var(--danger)}.form__field__error{color:var(--danger);margin:0;font-size:.8rem}#totalKm{background:var(--accent);color:var(--accent-text);-webkit-user-select:none;user-select:none;cursor:default;caret-color:#0000;outline:none;font-weight:700}.form-section__fields{grid-template-columns:repeat(2,1fr);gap:1rem;margin-top:1rem;display:grid}@media (width<=640px){.form-section__fields{grid-template-columns:1fr}.form__actions{flex-direction:column;align-items:stretch}.form__actions .form__button{width:100%}}.form__button--outline{color:var(--accent);background:0 0}@media (width>=641px) and (width<=1024px){.form-section{padding:.875rem}.form-section__fields{gap:.75rem;margin-top:.875rem}.form__actions{gap:.75rem}.form__button{padding:.5rem .875rem}}.form-section__fields--hidden{display:none}.repeatable-entry__title{color:var(--accent);margin:0 0 .75rem;font-size:1rem;font-weight:500}.form-section__subsections{flex-direction:column;gap:1.5rem;display:flex}.form-subsection{border:1px solid var(--border);background:var(--bg);border-radius:5px;padding:.75rem}.form-subsection__title{color:var(--text-h);border-bottom:1px solid var(--border);opacity:.85;justify-content:space-between;align-items:center;gap:.5rem;margin:0 0 1rem;padding-bottom:.5rem;font-size:1.1rem;display:flex}.form__field{flex-direction:column;gap:.35rem;display:flex}.form__field--full{grid-column:1/-1}.form__label{color:var(--text-h);opacity:.85;font-size:.9rem}.form__input{border:1px solid var(--border);background:var(--bg);color:var(--text-h);font:inherit;outline-offset:2px;border-radius:10px;outline:2px solid #0000;padding:.5rem .75rem;transition:outline-color .2s,border-color .2s}.form__textarea{resize:vertical;width:100%;min-height:6rem}.form__label--checkbox{cursor:pointer;flex-direction:row;align-items:center;gap:.75rem;display:flex;position:relative}.form__input--checkbox{opacity:0;width:1px;height:1px;margin:0;position:absolute}.form__label--checkbox:before{content:"";background:var(--border);border-radius:12px;flex-shrink:0;width:44px;height:24px;transition:background-color .2s}.form__label--checkbox:after{content:"";background:var(--text-h);border-radius:50%;width:18px;height:18px;margin-top:-9px;transition:transform .2s,background-color .2s;position:absolute;top:50%;left:3px}.form__label--checkbox:has(.form__input--checkbox:checked):before{background:var(--accent)}.form__label--checkbox:has(.form__input--checkbox:checked):after{background:var(--accent-text);transform:translate(20px)}.form__label--checkbox:has(.form__input--checkbox:focus-visible):before{outline:2px solid var(--accent);outline-offset:2px}.form__field--inline{flex-wrap:wrap;align-items:flex-end;gap:.5rem;display:flex}.form__field--inline>.form__label{white-space:nowrap;flex:none}.form__field--inline>.form__input{flex:auto}.form__input--small{text-align:center;width:70px;max-width:100%}.form-section__calc{border:1px solid var(--border);background:var(--bg-raised);border-radius:5px;margin-top:1.5rem;padding:1rem}.form-section__calc-title{color:var(--text-h);border-bottom:1px solid var(--border);margin:0 0 1rem;padding-bottom:.5rem;font-size:1.1rem}.second-driver-section{display:none}.second-driver-section.visible{display:flex}.refuel-trailer-field{display:none}.refuel-trailer-field.visible{display:flex}.attachment__actions{flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:1rem;display:flex}.attachment__add-btn{flex:1;min-width:140px}.attachment__add-btn:disabled{opacity:.5;cursor:not-allowed}.attachment__counter{color:var(--text);background:var(--bg-raised);white-space:nowrap;border-radius:4px;margin-left:auto;padding:.25rem .5rem;font-size:.85rem}.attachment__counter--warning{color:var(--accent);font-weight:500}.attachment__grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.75rem;display:grid}.attachment__item{background:var(--bg);border:1px solid var(--border);border-radius:5px;flex-direction:column;gap:.35rem;padding:.5rem;display:flex;position:relative}.attachment__thumb{aspect-ratio:1;background:var(--bg-raised);border-radius:4px;justify-content:center;align-items:center;display:flex;overflow:hidden}.attachment__thumb img{object-fit:cover;width:100%;height:100%}.attachment__thumb .pdf-icon{width:60%;height:60%;color:var(--accent)}.attachment__info{flex-direction:column;gap:.15rem;display:flex}.attachment__name{color:var(--text-h);white-space:nowrap;text-overflow:ellipsis;font-size:.75rem;overflow:hidden}.attachment__size{color:var(--text);font-size:.7rem}.attachment__item-actions{opacity:0;gap:.25rem;transition:opacity .2s;display:flex;position:absolute;top:.35rem;right:.35rem}.attachment__item:hover .attachment__item-actions,.attachment__item:focus-within .attachment__item-actions{opacity:1}.attachment__action-btn{color:#fff;cursor:pointer;background:#0009;border:none;border-radius:3px;justify-content:center;align-items:center;width:24px;height:24px;font-size:.85rem;line-height:1;display:flex}.attachment__action-btn:hover{background:var(--accent);color:var(--accent-text)}.attachment__remove:hover{background:var(--danger)}.editor-modal{z-index:1000;justify-content:center;align-items:center;display:none;position:fixed;inset:0}.editor-modal.open{display:flex}.editor-overlay{background:#000000d9;position:absolute;inset:0}.editor-container{background:var(--bg);border:1px solid var(--border);border-radius:8px;flex-direction:column;width:95%;max-width:900px;max-height:90vh;display:flex;position:relative;overflow:hidden}.editor-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:.75rem 1rem;display:flex}.editor-header h3{color:var(--text-h);margin:0;font-size:1.1rem}.editor-close{width:32px;height:32px;color:var(--text);cursor:pointer;background:0 0;border:none;border-radius:4px;font-size:1.5rem;line-height:1}.editor-close:hover{background:var(--accent);color:var(--accent-text)}.editor-toolbar{border-bottom:1px solid var(--border);flex-wrap:wrap;gap:.5rem;padding:.75rem 1rem;display:flex}.editor-btn{border:1px solid var(--border);background:var(--bg);color:var(--text-h);font:inherit;cursor:pointer;border-radius:5px;padding:.5rem 1rem;transition:all .2s}.editor-btn:hover{background:var(--accent-bg);border-color:var(--accent);color:var(--accent)}.editor-btn-primary{background:var(--accent);color:var(--accent-text);border-color:var(--accent)}.editor-btn-primary:hover{background:var(--accent);opacity:.9}.editor-canvas-wrapper{background:var(--editor-bg);flex:1;position:relative;overflow:hidden}.editor-canvas{touch-action:none;width:100%;height:100%;display:block}.editor-hints{color:var(--text);text-align:center;border-top:1px solid var(--border);padding:.5rem 1rem;font-size:.8rem}.missing-modal{border:1px solid var(--accent-border);background:var(--bg-raised);width:calc(100% - 2rem);max-width:480px;color:var(--text);border-radius:12px;padding:1.25rem}.missing-modal::backdrop{background:#0009}.missing-modal__title{color:var(--accent);margin:0 0 .5rem}.missing-modal__text{margin:0 0 .75rem}.missing-modal__list{max-height:40vh;margin:0 0 1rem;padding-left:1.25rem;overflow-y:auto}.missing-modal__list li{color:var(--text-h);margin-bottom:.35rem}.missing-modal__close{width:100%}.header__auth{align-items:center;gap:.5rem;margin-left:auto;display:flex}.form__status{min-height:1.2em;color:var(--text);margin:0}.form__status:not(:empty){margin-left:.5rem}.auth-gate{z-index:20;background:#0009;justify-content:center;align-items:center;padding:1.5rem;display:flex;position:fixed;inset:0}.auth-gate[hidden]{display:none}.auth-gate__panel{background:var(--bg-raised);border:1px solid var(--border);width:100%;max-width:24rem;box-shadow:var(--shadow);border-radius:12px;flex-direction:column;gap:1rem;padding:1.5rem;display:flex}.auth-gate__title{color:var(--text-h);text-align:center;margin:0}.app--auth-loading .form,.app--signed-out .form{visibility:hidden}
