:root{--brand: #d4b896;--brand-hover: #e0c8a8;--brand-deep: #b89870;--brand-glow: rgba(212, 184, 150, .3);--brand-soft: rgba(212, 184, 150, .12);--bg: #0a0a0a;--bg-deep: #000000;--surface: #141414;--surface-elevated: #1c1c1c;--surface-hover: #242424;--text: #ffffff;--text-muted: #a8a8a8;--text-faint: #6e6e6e;--border: rgba(255, 255, 255, .08);--border-strong: rgba(255, 255, 255, .16);--success: #4ade80;--danger: #ef4444;--warning: #f59e0b;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .6);--shadow-md: 0 4px 14px rgba(0, 0, 0, .5);--shadow-lg: 0 24px 60px rgba(0, 0, 0, .7);--gradient-brand: linear-gradient(135deg, #d4b896 0%, #c9a674 100%);--gradient-surface: linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,0) 100%);--tap-target-min: 56px;--tap-target-huge: 80px;--radius-sm: 6px;--radius: 8px;--radius-lg: 12px;--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;--font-display: "Anton", "Inter", sans-serif;--font-mono: ui-monospace, "SF Mono", monospace}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;padding:0;height:100%;background:var(--bg);color:var(--text);font-family:var(--font-sans);font-size:18px;line-height:1.4;font-feature-settings:"cv11","ss01","ss03";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;letter-spacing:-.005em;overscroll-behavior-y:contain;-webkit-user-select:none;user-select:none}body{background:var(--bg)}#app{min-height:100%;display:flex;flex-direction:column}.loading{display:flex;align-items:center;justify-content:center;flex:1;font-size:1.5rem;color:var(--text-muted)}.btn-primary,.btn-secondary,.btn-text,.btn-huge{font:inherit;border:none;border-radius:var(--radius);cursor:pointer;min-height:var(--tap-target-min);padding:0 1.5rem;font-weight:600;transition:background .15s ease,transform .05s ease,box-shadow .15s ease}.btn-primary{background:var(--brand);color:#1a1410;font-weight:700;text-transform:uppercase;letter-spacing:.04em;font-size:.95rem}.btn-primary:hover{background:var(--brand-hover);transform:translateY(-1px)}.btn-primary:active{transform:translateY(0) scale(.98)}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.btn-secondary{background:var(--surface-elevated);color:var(--text);border:1px solid var(--border-strong)}.btn-secondary:hover{background:var(--surface-hover);border-color:var(--text-muted)}.btn-secondary:active{transform:scale(.98)}.btn-text{background:transparent;color:var(--text-muted);padding:0 1rem;min-height:44px;border-radius:var(--radius-sm)}.btn-text:hover{background:var(--surface-elevated);color:var(--text)}.btn-text.danger{color:var(--danger)}.btn-text.danger:hover{background:#ef44441a}.btn-huge{min-height:var(--tap-target-huge);font-family:var(--font-display);font-size:1.75rem;font-weight:400;text-transform:uppercase;letter-spacing:.06em;width:100%;border-radius:var(--radius-lg);box-shadow:var(--shadow-md)}.login-screen{flex:1;display:flex;align-items:center;justify-content:center;padding:2rem;position:relative;overflow:hidden}.login-screen:before{content:"";position:absolute;top:-200px;left:50%;transform:translate(-50%);width:600px;height:600px;background:radial-gradient(circle,rgba(212,184,150,.1) 0%,transparent 60%);pointer-events:none}.login-card{position:relative;background:var(--surface);background-image:var(--gradient-surface);border:1px solid var(--border-strong);border-radius:var(--radius-lg);padding:3rem;width:100%;max-width:480px;text-align:center;box-shadow:var(--shadow-lg);backdrop-filter:blur(20px)}.login-card h1{margin:0 0 .5rem;font-family:var(--font-display);font-size:2.5rem;font-weight:400;letter-spacing:.02em;text-transform:uppercase;color:var(--text);line-height:1}.login-logo{max-width:200px;max-height:100px;object-fit:contain;margin-bottom:1.5rem}.login-subtitle{margin:0 0 2rem;color:var(--text-muted)}.login-form{display:flex;flex-direction:column;gap:1rem;text-align:left}.login-form label{display:flex;flex-direction:column;gap:.5rem;font-size:.95rem;color:var(--text-muted)}.login-form input{font:inherit;font-size:1.1rem;padding:0 1rem;height:var(--tap-target-min);background:var(--surface-elevated);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);-webkit-user-select:text;user-select:text;transition:border-color .15s ease,box-shadow .15s ease}.login-form input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-soft)}.login-form .btn-primary{margin-top:.5rem;height:var(--tap-target-min)}.login-error{background:#ef44441a;color:var(--danger);padding:.75rem 1rem;border-radius:var(--radius);font-size:.95rem}.home-screen{flex:1;display:flex;flex-direction:column}.app-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.5rem;background:var(--bg-deep);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}.app-header h1{margin:0;font-family:var(--font-display);font-size:1.5rem;font-weight:400;text-transform:uppercase;letter-spacing:.04em;color:var(--text)}.app-header>div{display:flex;gap:.25rem;align-items:center}.home-main{flex:1;padding:2rem;max-width:800px;width:100%;margin:0 auto}.home-main h2{font-family:var(--font-display);font-size:1.5rem;font-weight:400;text-transform:uppercase;letter-spacing:.06em;color:var(--brand);margin:2rem 0 1rem;padding-bottom:.5rem;border-bottom:1px solid var(--border)}.job-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.75rem}.job-item{position:relative;display:flex;align-items:stretch;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);min-height:var(--tap-target-min);transition:border-color .15s ease,background .15s ease}.job-item:hover{border-color:var(--brand);background:var(--surface-elevated)}.job-row{flex:1;display:grid;grid-template-columns:auto 1fr auto;gap:1rem;align-items:center;padding:1.25rem .5rem 1.25rem 1.5rem;cursor:pointer;border-radius:var(--radius) 0 0 var(--radius);transition:transform .05s ease}.job-row:active{transform:scale(.99)}.job-menu-btn{flex:0 0 auto;width:56px;min-height:var(--tap-target-min);background:transparent;border:0;border-left:1px solid var(--border);color:var(--text-muted);font-size:1.5rem;line-height:1;cursor:pointer;border-radius:0 var(--radius) var(--radius) 0;transition:background .15s ease,color .15s ease}.job-menu-btn:hover,.job-item.menu-open .job-menu-btn{background:var(--surface-hover);color:var(--text)}.job-menu{position:absolute;top:calc(100% + 4px);right:0;z-index:20;min-width:180px;background:var(--surface-elevated);border:1px solid var(--border-strong);border-radius:var(--radius);padding:.35rem;display:flex;flex-direction:column;gap:.2rem;box-shadow:0 12px 32px #00000080}.job-menu[hidden]{display:none}.job-menu button{text-align:left;background:transparent;border:0;color:var(--text);padding:.7rem .9rem;border-radius:var(--radius-sm);font:inherit;font-weight:500;cursor:pointer;min-height:44px}.job-menu button:hover{background:var(--surface-hover)}.job-menu button.menu-danger{color:var(--danger)}.job-menu button.menu-danger:hover{background:#ef44441f}.job-item.deleting{pointer-events:none;opacity:.5}.empty-hint{color:var(--text-muted);text-align:center;margin-top:2rem;font-size:.95rem}.job-rego{font-family:var(--font-display);font-weight:400;font-size:1.15rem;letter-spacing:.05em;text-transform:uppercase;background:var(--brand);color:#1a1410;padding:.3rem .7rem;border-radius:4px}.job-vehicle{color:var(--text-muted);font-weight:500}.job-number{color:var(--text-faint);font-family:var(--font-mono);font-size:.85rem;font-weight:500}.error-screen{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2rem;text-align:center}.error-screen h1{font-size:1.5rem;margin:0 0 1rem}.error-screen p{color:var(--text-muted);max-width:480px}.picker-screen{flex:1;display:flex;flex-direction:column}.picker-main{flex:1;padding:1.5rem;max-width:900px;width:100%;margin:0 auto}.template-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}.template-item{position:relative;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem 3rem 1.5rem 1.5rem;min-height:var(--tap-target-huge);cursor:pointer;display:flex;flex-direction:column;justify-content:center;gap:.5rem;transition:background .15s ease,border-color .15s ease,transform .05s ease}.template-item:hover{background:var(--surface-elevated);border-color:var(--brand)}.template-item:active{transform:scale(.99)}.template-name{font-size:1.15rem;font-weight:600;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.template-details{font-size:.9rem;color:var(--text-muted);line-height:1.4}.template-arrow{position:absolute;right:1.25rem;top:50%;transform:translateY(-50%);color:var(--text-faint);font-size:1.5rem;transition:color .15s ease,transform .15s ease}.template-item:hover .template-arrow{color:var(--brand);transform:translateY(-50%) translate(4px)}.picker-hint{background:var(--surface);border-left:3px solid var(--brand);padding:.75rem 1rem;border-radius:0 var(--radius) var(--radius) 0;font-size:.9rem;color:var(--text-muted);margin-bottom:1.5rem}.new-job-screen{flex:1;display:flex;flex-direction:column}.new-job-main{flex:1;padding:2rem;max-width:600px;width:100%;margin:0 auto}.template-badge{background:var(--surface-elevated);color:var(--text-muted);padding:.75rem 1rem;border-radius:var(--radius);font-size:.95rem;margin-bottom:1.5rem;text-align:center}.new-job-form{display:flex;flex-direction:column;gap:1rem}.new-job-form label{display:flex;flex-direction:column;gap:.5rem;font-size:.95rem;color:var(--text-muted)}.new-job-form input{font:inherit;font-size:1.1rem;padding:0 1rem;height:var(--tap-target-min);background:var(--surface-elevated);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);-webkit-user-select:text;user-select:text;text-transform:uppercase}.new-job-form input[type=number],.new-job-form input[name=customer_name]{text-transform:none}.new-job-form input{transition:border-color .15s ease,box-shadow .15s ease}.new-job-form input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-soft)}.new-job-form .btn-huge{margin-top:1rem}.checklist-screen{flex:1;display:flex;flex-direction:column;height:100vh}.checklist-main{flex:1;overflow-y:auto;padding:0 0 2rem;-webkit-overflow-scrolling:touch}.checklist-footer{padding:1rem 1.5rem;border-top:1px solid var(--border);background:var(--surface);flex-shrink:0}.job-header-bar{display:flex;gap:1.5rem;align-items:center;padding:1rem 1.5rem;background:var(--surface);border-bottom:1px solid var(--border);flex-wrap:wrap}.job-header-rego{font-family:var(--font-display);font-weight:400;font-size:1.1rem;letter-spacing:.05em;text-transform:uppercase;background:var(--brand);color:#1a1410;padding:.25rem .6rem;border-radius:4px}.job-header-detail{font-size:.9rem;color:var(--text-muted)}.checklist-section{margin-bottom:.5rem}.section-title{display:flex;align-items:center;gap:.6rem;width:100%;font-size:.85rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);padding:1.25rem 1.5rem .75rem;margin:0;background:var(--bg);border:0;text-align:left;cursor:pointer;position:sticky;top:0;z-index:5;font-family:inherit;-webkit-tap-highlight-color:transparent}.section-title:hover{color:var(--text)}.section-chevron{display:inline-block;font-size:.7rem;color:var(--text-faint);transition:transform .18s ease;width:.9rem;text-align:center}.checklist-section.collapsed .section-chevron{transform:rotate(-90deg)}.section-title-text{flex:1}.section-progress{font-family:var(--font-mono, ui-monospace, monospace);font-size:.78rem;font-weight:600;color:var(--text-faint);letter-spacing:0;text-transform:none;background:var(--surface);border:1px solid var(--border);padding:.2rem .55rem;border-radius:999px}.section-progress:not([data-checked="0"]){color:var(--brand);border-color:var(--brand-soft)}.checklist-section.collapsed .item-list{display:none}.item-list{list-style:none;padding:0;margin:0}.checklist-item{display:flex;align-items:center;gap:.75rem;padding:.5rem 1.5rem;min-height:var(--tap-target-min);border-bottom:1px solid var(--border)}.checklist-item.critical{border-left:4px solid var(--warning);background:#f59e0b12}.checklist-item.critical .item-label{font-weight:600}.item-highlight-marker{color:var(--warning);font-weight:700;margin-right:.15rem}.item-check{width:48px;height:48px;flex-shrink:0;border-radius:50%;border:2px solid var(--border);background:transparent;color:transparent;font-size:1.25rem;font-weight:700;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s ease}.checklist-item.checked .item-check{background:var(--success);border-color:var(--success);color:#fff}.check-icon{pointer-events:none}.item-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:.25rem}.item-label{font-size:.9rem;line-height:1.3}.checklist-item.checked .item-label{color:var(--text-muted)}.item-helper{font-size:.8rem;color:var(--text-muted);font-style:italic}.item-note{font-size:.8rem;color:var(--warning)}.item-note-btn{width:44px;height:44px;flex-shrink:0;border:none;background:transparent;color:var(--text-muted);font-size:1.1rem;cursor:pointer;border-radius:var(--radius);display:flex;align-items:center;justify-content:center}.item-note-btn:active{background:var(--surface-elevated)}.parts-panel{padding:1rem 1.5rem;background:var(--surface);border-bottom:1px solid var(--border)}.parts-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.parts-header h3{margin:0;font-size:1rem}.parts-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}.parts-empty{color:var(--text-muted);font-size:.9rem;padding:.5rem 0}.part-item{display:flex;align-items:center;gap:1rem;padding:.75rem 1rem;background:var(--surface-elevated);border-radius:var(--radius)}.part-name{flex:1;font-size:.95rem}.part-qty{color:var(--text-muted);font-family:ui-monospace,monospace;font-size:.9rem}.part-delete{width:36px;height:36px;border:none;background:transparent;color:var(--danger);font-size:1rem;cursor:pointer;border-radius:var(--radius);display:flex;align-items:center;justify-content:center}.signoff-screen{flex:1;display:flex;flex-direction:column}.signoff-main{flex:1;padding:1.5rem;max-width:700px;width:100%;margin:0 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.signoff-main h2{font-size:1rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);margin:1.5rem 0 .75rem}.signoff-main h2:first-child{margin-top:0}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.summary-item{background:var(--surface);padding:.75rem 1rem;border-radius:var(--radius);border:1px solid var(--border)}.summary-label{display:block;font-size:.8rem;color:var(--text-muted);margin-bottom:.25rem}.summary-value{font-size:1rem;font-weight:600}.warning-box{background:#f59e0b1a;border-left:3px solid var(--warning);padding:1rem;border-radius:0 var(--radius) var(--radius) 0;margin-top:1rem;font-size:.9rem}.warning-box ul{margin:.5rem 0 0;padding-left:1.5rem}.signoff-notes textarea{width:100%;min-height:100px;background:var(--surface-elevated);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);font:inherit;font-size:1rem;padding:1rem;resize:vertical;-webkit-user-select:text;user-select:text}.signoff-notes textarea{transition:border-color .15s ease,box-shadow .15s ease}.signoff-notes textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-soft)}.signature-container{width:100%;height:200px;border:2px dashed var(--border);border-radius:var(--radius);background:var(--surface-elevated);position:relative;touch-action:none}.signature-canvas{display:block;border-radius:var(--radius);cursor:crosshair;touch-action:none}.signoff-signature .btn-text{margin-top:.5rem}.signoff-main .btn-huge{margin-top:2rem}.signoff-main .login-error{margin-top:1rem}.item-photo-btn{width:44px;height:44px;flex-shrink:0;border:none;background:transparent;color:var(--text-muted);font-size:1.1rem;cursor:pointer;border-radius:var(--radius);display:flex;align-items:center;justify-content:center;position:relative}.item-photo-btn:active{background:var(--surface-elevated)}.item-photo-btn.has-photos{color:var(--success)}.photo-count{position:absolute;top:2px;right:2px;background:var(--success);color:#fff;font-size:.65rem;font-weight:700;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center}.photo-strip-container{width:100%;padding:.75rem 0}.photo-strip{display:flex;gap:.75rem;overflow-x:auto;padding:.25rem 0;-webkit-overflow-scrolling:touch}.photo-thumb{width:80px;height:80px;flex-shrink:0;border-radius:var(--radius);overflow:hidden;position:relative;background:var(--surface-elevated)}.photo-thumb img{width:100%;height:100%;object-fit:cover}.photo-thumb-delete{position:absolute;top:2px;right:2px;width:24px;height:24px;border-radius:50%;border:none;background:#000000b3;color:var(--danger);font-size:.75rem;cursor:pointer;display:flex;align-items:center;justify-content:center}.photo-add-btn{width:80px;height:80px;flex-shrink:0;border:2px dashed var(--border);border-radius:var(--radius);background:transparent;color:var(--text-muted);font-size:2rem;cursor:pointer;display:flex;align-items:center;justify-content:center}.photo-add-btn:active{background:var(--surface-elevated)}.photo-uploading{font-size:1rem;animation:pulse 1s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.3}}.template-clone-btn{font:inherit;font-size:.85rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-elevated);color:var(--text-muted);padding:.5rem 1rem;min-height:44px;cursor:pointer;margin-top:.5rem}.template-clone-btn:active{background:var(--border)}.template-badge-custom{display:inline-block;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;background:var(--brand);color:#fff;padding:.15rem .5rem;border-radius:4px;margin-left:.5rem;vertical-align:middle}.admin-screen{flex:1;display:flex;flex-direction:column}.admin-nav{display:flex;gap:0;background:var(--surface);border-bottom:1px solid var(--border);overflow-x:auto}.admin-nav-btn{font:inherit;font-size:.95rem;font-weight:600;border:none;background:transparent;color:var(--text-muted);padding:1rem 1.5rem;min-height:var(--tap-target-min);cursor:pointer;white-space:nowrap;border-bottom:2px solid transparent;transition:color .15s ease,border-color .15s ease}.admin-nav-btn:hover{color:var(--text)}.admin-nav-btn.active{color:var(--brand);border-bottom-color:var(--brand);text-transform:uppercase;letter-spacing:.04em}.admin-content{flex:1;padding:1.5rem;max-width:1000px;width:100%;margin:0 auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.admin-toolbar{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;margin-bottom:1.5rem}.admin-toolbar input,.admin-toolbar select{font:inherit;font-size:.95rem;padding:0 1rem;height:44px;background:var(--surface-elevated);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);-webkit-user-select:text;user-select:text}.admin-toolbar select{appearance:none;-webkit-appearance:none;padding-right:2rem}.data-table{width:100%;border-collapse:collapse;font-size:.9rem}.data-table th{text-align:left;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);padding:.75rem 1rem;border-bottom:1px solid var(--border)}.data-table td{padding:.75rem 1rem;border-bottom:1px solid var(--border);vertical-align:middle}.data-table tr{cursor:pointer}.data-table tr:active{background:var(--surface-elevated)}.status-badge{display:inline-block;font-size:.75rem;font-weight:600;padding:.2rem .6rem;border-radius:4px;text-transform:uppercase}.status-badge.in_progress{background:#f59e0b26;color:var(--warning)}.status-badge.completed{background:#10b98126;color:var(--success)}.modal-overlay{position:fixed;inset:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:100;padding:1.5rem}.modal-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:2rem;width:100%;max-width:500px;max-height:90vh;overflow-y:auto}.modal-card h2{margin:0 0 1.5rem;font-size:1.25rem}.modal-form{display:flex;flex-direction:column;gap:1rem}.modal-form label{display:flex;flex-direction:column;gap:.5rem;font-size:.95rem;color:var(--text-muted)}.modal-form input,.modal-form select,.modal-form textarea{font:inherit;font-size:1rem;padding:0 1rem;height:var(--tap-target-min);background:var(--surface-elevated);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);-webkit-user-select:text;user-select:text}.modal-form textarea{height:auto;min-height:80px;padding:.75rem 1rem;resize:vertical}.modal-actions{display:flex;gap:1rem;margin-top:.5rem}.modal-actions .btn-primary,.modal-actions .btn-text{flex:1}.template-editor-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:1rem;overflow:hidden}.template-editor-section-header{display:flex;align-items:center;gap:.75rem;padding:1rem;background:var(--surface-elevated);border-bottom:1px solid var(--border)}.template-editor-section-header input{flex:1;font:inherit;font-size:1rem;font-weight:600;background:transparent;border:1px solid transparent;border-radius:var(--radius);color:var(--text);padding:.5rem;-webkit-user-select:text;user-select:text}.template-editor-section-header input:focus{border-color:var(--border);background:var(--surface);outline:none}.template-editor-item{display:flex;flex-direction:column;gap:.25rem;padding:.5rem 1rem;border-bottom:1px solid var(--border);border-left:3px solid transparent}.template-editor-item.is-highlighted{border-left-color:var(--warning);background:#f59e0b0f}.template-editor-item-row{display:flex;align-items:center;gap:.5rem;min-height:44px}.template-editor-item-marker{width:16px;text-align:center;color:var(--warning);font-size:.95rem;flex-shrink:0}.template-editor-item input{flex:1;font:inherit;font-size:.9rem;background:transparent;border:1px solid transparent;border-radius:var(--radius);color:var(--text);padding:.4rem .5rem;-webkit-user-select:text;user-select:text}.template-editor-item input:focus{border-color:var(--border);background:var(--surface);outline:none}.item-helper-input{font-size:.78rem!important;color:var(--text-muted);margin-left:24px}.highlight-toggle{font-size:.7rem;padding:.25rem .55rem;border:1px solid var(--border);border-radius:4px;background:transparent;color:var(--text-muted);cursor:pointer;white-space:nowrap}.highlight-toggle.active{background:#f59e0b2e;color:var(--warning);border-color:var(--warning);font-weight:600}.modal-desc{margin:0 0 1rem;color:var(--text-muted);font-size:.9rem}.delete-options{display:flex;flex-direction:column;gap:.5rem;margin:.5rem 0 1.25rem}.delete-option{display:flex;flex-direction:column;gap:.2rem;text-align:left;padding:.8rem 1rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);cursor:pointer;font:inherit;transition:background .12s,border-color .12s}.delete-option strong{font-size:.95rem}.delete-option span{font-size:.8rem;color:var(--text-muted)}.delete-option:hover:not(:disabled){border-color:var(--text-muted);background:var(--surface-elevated)}.delete-option:disabled{opacity:.5;cursor:not-allowed}.delete-option.danger{border-color:#dc262699;color:#fff;background:#dc26261f}.delete-option.danger strong{color:#fca5a5}.delete-option.danger:hover:not(:disabled){background:#dc262633;border-color:#dc2626e6}.template-editor-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin:.5rem 0 1rem}.template-editor-subtitle{font-size:.85rem;color:var(--text-muted);margin-top:.15rem}.template-editor-add-section,.template-editor-add-item{display:flex;gap:.5rem;padding:.6rem 1rem;align-items:center}.template-editor-add-section{margin-top:1rem;padding:.75rem;background:var(--surface);border:1px dashed var(--border);border-radius:var(--radius)}.template-editor-add-section input,.template-editor-add-item input{flex:1;font:inherit;font-size:.9rem;background:var(--surface-elevated);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);padding:.5rem .6rem}.template-editor-add-section input:focus,.template-editor-add-item input:focus{outline:2px solid var(--accent);outline-offset:-1px}.small-icon-btn{width:36px;height:36px;border:none;background:transparent;color:var(--text-muted);font-size:1rem;cursor:pointer;border-radius:var(--radius);display:flex;align-items:center;justify-content:center;flex-shrink:0}.small-icon-btn:active{background:var(--surface-elevated)}.small-icon-btn.danger{color:var(--danger)}.user-card{display:flex;align-items:center;gap:1rem;padding:1rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:.75rem}.user-info{flex:1}.user-name{font-weight:600}.user-email{font-size:.85rem;color:var(--text-muted)}.user-role-select{font:inherit;font-size:.85rem;padding:.4rem .75rem;height:36px;background:var(--surface-elevated);border:1px solid var(--border);border-radius:var(--radius);color:var(--text)}.user-toggle{font:inherit;font-size:.8rem;padding:.4rem .75rem;height:36px;border:1px solid var(--border);border-radius:var(--radius);cursor:pointer}.user-toggle.active{background:#10b98126;color:var(--success)}.user-toggle.inactive{background:#ef444426;color:var(--danger)}.signup-screen{flex:1;display:flex;align-items:center;justify-content:center;padding:2rem;background:var(--bg)}.signup-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:2.5rem;width:100%;max-width:520px}.signup-card h1{margin:0 0 .5rem;font-size:1.5rem}.signup-subtitle{margin:0 0 2rem;color:var(--text-muted);font-size:.95rem}.signup-form{display:flex;flex-direction:column;gap:1rem}.signup-form label{display:flex;flex-direction:column;gap:.5rem;font-size:.95rem;color:var(--text-muted)}.signup-form input{font:inherit;font-size:1.1rem;padding:0 1rem;height:var(--tap-target-min);background:var(--surface-elevated);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);-webkit-user-select:text;user-select:text}.signup-form input{transition:border-color .15s ease,box-shadow .15s ease}.signup-form input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-soft)}.slug-preview{font-size:.85rem;color:var(--text-muted);font-family:ui-monospace,monospace;margin-top:.25rem}.signup-link{text-align:center;margin-top:1.5rem;font-size:.9rem;color:var(--text-muted)}.signup-link a{color:var(--text);text-decoration:underline;cursor:pointer}.offline-bar{background:var(--warning);color:#000;text-align:center;padding:.5rem 1rem;font-size:.85rem;font-weight:600}.offline-bar.syncing{background:var(--brand);color:#fff}.toast{position:fixed;bottom:2rem;left:50%;transform:translate(-50%);background:var(--surface-elevated);border:1px solid var(--border-strong);color:var(--text);padding:.75rem 1.5rem;border-radius:var(--radius);font-size:.9rem;z-index:200;animation:toast-in .25s ease;box-shadow:0 12px 32px #0006;max-width:calc(100vw - 2rem)}.toast-error{border-color:var(--danger);color:#fff;background:#2a1414}.toast-leaving{animation:toast-out .2s ease forwards}@keyframes toast-in{0%{opacity:0;transform:translate(-50%) translateY(1rem)}to{opacity:1;transform:translate(-50%) translateY(0)}}@keyframes toast-out{0%{opacity:1;transform:translate(-50%) translateY(0)}to{opacity:0;transform:translate(-50%) translateY(.5rem)}}.data-table .row-menu-cell{position:relative;width:56px;text-align:right;padding:0}.row-menu-btn{width:44px;height:44px;background:transparent;border:0;color:var(--text-muted);font-size:1.4rem;line-height:1;cursor:pointer;border-radius:var(--radius-sm);transition:background .15s ease,color .15s ease}.row-menu-btn:hover,tr.menu-open .row-menu-btn{background:var(--surface-hover);color:var(--text)}.row-menu{position:absolute;top:calc(100% - 8px);right:8px;z-index:30;min-width:180px;background:var(--surface-elevated);border:1px solid var(--border-strong);border-radius:var(--radius);padding:.35rem;display:flex;flex-direction:column;gap:.2rem;box-shadow:0 12px 32px #00000080}.row-menu[hidden]{display:none}.row-menu button{text-align:left;background:transparent;border:0;color:var(--text);padding:.65rem .85rem;border-radius:var(--radius-sm);font:inherit;font-weight:500;cursor:pointer;min-height:40px}.row-menu button:hover{background:var(--surface-hover)}.row-menu button.menu-danger{color:var(--danger)}.row-menu button.menu-danger:hover{background:#ef44441f}tr.deleting{pointer-events:none;opacity:.5}.section-block{background:var(--surface);background-image:var(--gradient-surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.5rem;margin-bottom:1.5rem;box-shadow:var(--shadow-sm)}.section-block-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.section-block-header h3{margin:0;font-family:var(--font-display);font-size:1.4rem;font-weight:400;letter-spacing:.04em;text-transform:uppercase;color:var(--brand)}.section-block-hint{margin:-.5rem 0 1rem;font-size:.875rem;color:var(--text-muted);line-height:1.5}.empty-state{text-align:center;padding:2rem 1rem;color:var(--text-muted);font-size:.95rem;font-style:italic;background:var(--bg);border:1px dashed var(--border);border-radius:var(--radius);margin:0}.page-title{font-family:var(--font-display);font-size:2rem;font-weight:400;letter-spacing:.04em;text-transform:uppercase;margin:.75rem 0 1.5rem}.card-list{display:flex;flex-direction:column;gap:.625rem}.entity-card{position:relative;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.25rem;background:var(--surface-elevated);border:1px solid var(--border);border-radius:var(--radius);transition:border-color .15s ease,background .15s ease,transform .15s ease;overflow:hidden}.entity-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--gradient-brand);opacity:0;transition:opacity .15s ease}.entity-card:hover{border-color:var(--border-strong);background:var(--surface-hover);transform:translate(2px)}.entity-card:hover:before{opacity:1}.entity-card.archived{opacity:.65;background:var(--surface)}.entity-card.archived .entity-card-title{text-decoration:line-through;text-decoration-color:var(--text-faint)}.entity-card-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:.2rem}.entity-card-title{font-size:1rem;font-weight:600;color:var(--text)}.entity-card-subtitle{font-size:.85rem;color:var(--text-muted);font-family:var(--font-mono)}.entity-card-meta{font-size:.75rem;color:var(--text-faint);text-transform:uppercase;letter-spacing:.05em;font-weight:600}.entity-card-actions{display:flex;gap:.25rem;align-items:center;flex-shrink:0}.template-editor-add{padding:.5rem 1rem;background:var(--surface)}.admin-content h2{font-family:var(--font-display);font-size:1.75rem;font-weight:400;letter-spacing:.04em;text-transform:uppercase;color:var(--text);margin:0 0 1.25rem}.landing{display:flex;flex-direction:column;min-height:100vh;background:var(--bg)}.landing-header{position:sticky;top:0;z-index:20;background:#060912b3;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-bottom:1px solid var(--border)}.landing-header-inner{max-width:1100px;margin:0 auto;padding:1rem 1.5rem;display:flex;align-items:center;justify-content:space-between;gap:2rem}.landing-logo{display:flex;align-items:center;gap:.6rem;font-weight:700;font-size:1.05rem;letter-spacing:-.01em}.landing-logo-mark{width:32px;height:32px;border-radius:4px;background:var(--brand);display:flex;align-items:center;justify-content:center;color:#1a1410;font-family:var(--font-display);font-size:.95rem;font-weight:400;letter-spacing:.04em}.landing-nav{display:flex;align-items:center;gap:.5rem}.landing-nav-link{color:var(--text-muted);font-size:.95rem;font-weight:500;cursor:pointer;padding:.5rem .75rem;border-radius:var(--radius-sm);transition:color .15s ease,background .15s ease}.landing-nav-link:hover{color:var(--text);background:var(--surface-elevated)}.landing-cta-sm{min-height:40px!important;padding:0 1.1rem!important;font-size:.92rem!important}.landing-hero{position:relative;padding:5rem 1.5rem 6rem;overflow:hidden}.landing-hero-glow{position:absolute;inset:0;background:radial-gradient(circle at 50% 0%,rgba(212,184,150,.15) 0%,transparent 55%),radial-gradient(circle at 80% 30%,rgba(212,184,150,.08) 0%,transparent 50%);pointer-events:none;z-index:0}.landing-hero-inner{position:relative;z-index:1;max-width:820px;margin:0 auto;text-align:center}.landing-eyebrow{display:inline-block;font-size:.78rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#93c5fd;background:var(--brand-soft);border:1px solid rgba(212,184,150,.3);padding:.4rem .9rem;border-radius:999px;margin-bottom:1.5rem}.landing-title{font-size:clamp(2.2rem,5vw,3.5rem);font-weight:800;letter-spacing:-.03em;line-height:1.05;margin:0 0 1.25rem;background:linear-gradient(180deg,#fff,#94a3b8 130%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.landing-subtitle{font-size:1.15rem;color:var(--text-muted);max-width:620px;margin:0 auto 2rem;line-height:1.55}.landing-cta-row{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap;margin-bottom:1.25rem}.btn-cta{min-height:56px!important;padding:0 1.75rem!important;font-size:1rem!important}.landing-hero-meta{font-size:.85rem;color:var(--text-faint);letter-spacing:.01em}.landing-features{padding:5rem 1.5rem;border-top:1px solid var(--border);background:var(--bg-deep)}.landing-features-inner{max-width:1100px;margin:0 auto}.landing-section-title{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:700;letter-spacing:-.02em;text-align:center;margin:0 0 3rem}.landing-feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}.landing-feature{background:var(--surface);background-image:var(--gradient-surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.75rem;transition:border-color .2s ease,transform .2s ease}.landing-feature:hover{border-color:var(--border-strong);transform:translateY(-3px)}.landing-feature-icon{font-size:1.75rem;margin-bottom:.75rem;width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:var(--brand-soft);border-radius:12px}.landing-feature h3{margin:0 0 .5rem;font-size:1.1rem;font-weight:700;letter-spacing:-.01em}.landing-feature p{margin:0;color:var(--text-muted);font-size:.95rem;line-height:1.55}.landing-cta-band{padding:5rem 1.5rem;text-align:center;border-top:1px solid var(--border);background:radial-gradient(circle at 50% 100%,rgba(212,184,150,.12) 0%,transparent 60%),var(--bg)}.landing-cta-band h2{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:700;letter-spacing:-.02em;margin:0 0 .5rem}.landing-cta-band p{color:var(--text-muted);margin:0 0 1.75rem;font-size:1rem}.landing-footer{padding:2rem 1.5rem;border-top:1px solid var(--border);display:flex;justify-content:space-between;flex-wrap:wrap;gap:.5rem;font-size:.85rem;color:var(--text-faint);max-width:1100px;margin:0 auto;width:100%}@media (max-width: 540px){.landing-header-inner{gap:.75rem}.landing-nav-link{display:none}.landing-hero{padding:3rem 1.25rem 4rem}.landing-features,.landing-cta-band{padding:3.5rem 1.25rem}}.auth-logo{display:flex;justify-content:center;margin-bottom:1.25rem}.auth-logo .landing-logo-mark{width:48px;height:48px;font-size:1rem;border-radius:12px}.integration-toggle{flex-direction:row!important;align-items:center;gap:.75rem!important;cursor:pointer;padding:.5rem 0}.integration-toggle input[type=checkbox]{width:22px;height:22px;cursor:pointer;accent-color:var(--brand)}.integration-toggle span{font-size:.95rem;color:var(--text)}.integration-meta{font-size:.85rem;color:var(--text-muted);padding:.5rem .75rem;background:var(--bg);border-radius:var(--radius-sm);border:1px solid var(--border)}.integration-meta.error{color:var(--danger);border-color:#ef44444d;background:#ef444414}
