*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:#f5f3ef;color:#25282c}header{background:#25282c;color:white;padding:18px 18px 20px;position:sticky;top:0;z-index:5}header h1{margin:0;font-size:25px}header p{margin:4px 0 0;color:#d4d4d4;font-size:13px}.wrap{max-width:760px;margin:auto;padding:16px}.card{background:white;border-radius:16px;padding:16px;margin:12px 0;box-shadow:0 2px 10px #00000012}.grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.btn{background:#34383e;color:#fff;cursor:pointer;width:100%;border:0;border-radius:12px;padding:14px;font-weight:700;font-size:15px}.primary{background:#155eef;color:#fff}.secondary{background:#dbeafe;color:#1e3a8a;box-shadow:inset 0 0 0 1px #bfdbfe}.danger{background:#fee2e2;color:#991b1b}.field{margin:12px 0}.field label{display:block;font-weight:700;font-size:13px;margin-bottom:6px}.field input,.field select,.field textarea{width:100%;padding:12px;border:1px solid #d1d5db;border-radius:10px;font-size:16px;background:white}.field textarea{min-height:110px;resize:vertical}.pill{display:inline-block;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700;background:#e5e7eb}.issue{border:1px solid #e5e7eb;border-radius:12px;padding:12px;margin:9px 0}.issue h3{margin:0 0 5px;font-size:15px}.muted{color:#62666c;font-size:13px}.hidden{display:none}.success{background:#dcfce7;color:#166534;padding:12px;border-radius:10px;margin-bottom:12px}.nav{display:flex;gap:8px;overflow:auto;margin-bottom:12px}.nav button{white-space:nowrap}.stat{font-size:28px;font-weight:800}.small{font-size:12px;color:#62666c}.btn:active{background:#2463eb!important;color:white!important;transform:scale(.98)}

/* Keep the photo actions evenly spaced on mobile. */
.field button[onclick*="photoCamera"],
.field button[onclick*="photoGallery"]{display:block}
.field button[onclick*="photoGallery"]{margin-top:8px}

/* Separate issue history from the photo action and repair details. */
.issue > .btn[onclick^="viewHistory("]{margin-top:16px}

/* Charcoal utility buttons, blue actions and branding, red issue count. */
header h1{color:#60a5fa}
.btn:focus-visible,.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible{outline:3px solid #155eef;outline-offset:3px}
.btn:disabled{opacity:.6;cursor:wait}
.stat{color:#b91c1c}
a{color:#155eef}
dialog::backdrop{background:rgba(25,28,32,.6)}

.btn[onclick^="viewHistory("]{background:#34383e;color:#fff;box-shadow:none}


/* Visible before and after sign-in; independent of account permissions. */
.millfix-legal{max-width:760px;margin:0 auto;padding:12px 16px 24px;text-align:center}
.millfix-legal a{display:inline-block;min-height:44px;padding:10px 16px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#1e3a8a;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.millfix-legal a:focus-visible{outline:3px solid #155eef;outline-offset:3px}


/* Wrenchrook identity */
.brand-lockup{display:flex;align-items:center;gap:14px}.brand-lockup>img{width:72px;height:72px;object-fit:contain;flex-shrink:0}.brand-lockup h1{font-size:27px;letter-spacing:-.5px;color:#e8f1ff}.brand-lockup .brand-parent{margin:5px 0 0;font-size:12px;color:#bdcee5}.brand-lockup+ p{margin:7px 0 0 86px}@media(max-width:420px){.brand-lockup{gap:10px}.brand-lockup>img{width:60px;height:60px}.brand-lockup h1{font-size:25px}.brand-lockup .brand-parent{font-size:11px}.brand-lockup+p{margin-left:70px}}

/* Joined product wordmark with the website colour treatment. */
.app-wordmark{white-space:nowrap}.brand-wrench{color:#e8f1ff}.brand-rook{color:#60a5fa}.tv-brand .app-wordmark{font:inherit;font-weight:inherit}
