:root { font-family: Arial, sans-serif; color: #17212b; background: #f2f5f7; font-size: 18px; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 680px; margin: auto; padding: 20px 16px 40px; }
.login-view { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: #102b2b; }
.login-card { width: 100%; max-width: 420px; padding: 30px 24px; border-radius: 18px; background: #f7faf9; box-shadow: 0 20px 60px #0005; }
.login-card h1 { color: #07553e; }
.login-card form { margin-top: 24px; }
.login-card form label { margin-top: 16px; }
.login-card form button { width: 100%; margin-top: 18px; }
.eyebrow { margin: 0; color: #b55b00; letter-spacing: .12em; font-size: .8rem; font-weight: bold; }
.app-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.account { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.account span { font-weight: bold; }
h1 { margin: 0; font-size: 2rem; }
h2 { margin: 0 0 12px; font-size: 1.25rem; }
p { line-height: 1.5; }
header p { margin: 8px 0 20px; }
button, input, textarea, select, .button { font: inherit; border-radius: 8px; min-height: 48px; }
button, .button { border: 1px solid #07553e; background: #07553e; color: white; padding: 12px 16px; cursor: pointer; font-weight: bold; text-align: center; text-decoration: none; }
button:disabled { opacity: .55; cursor: wait; }
.secondary { background: white; color: #17212b; border-color: #697784; }
:focus-visible { outline: 3px solid #b55b00; outline-offset: 3px; }
input, textarea, select { display: block; width: 100%; min-width: 0; border: 1px solid #697784; background: white; color: #17212b; padding: 10px; margin-top: 6px; }
label { display: block; font-weight: bold; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input { flex: 1; width: auto; margin: 0; }
#add { width: 100%; }
.contact-channel { display: flex; gap: 10px; margin: 16px 0; padding: 10px; border: 1px solid #697784; border-radius: 8px; }
.contact-channel legend { font-weight: bold; }
.contact-channel label { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; min-height: 48px; border: 1px solid #697784; border-radius: 8px; background: white; cursor: pointer; }
.contact-channel label:has(input:checked) { background: #07553e; color: white; border-color: #07553e; }
.contact-channel input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: #07553e; }
.job, .customer { padding: 18px; background: white; border: 1px solid #b9c4cd; border-radius: 12px; margin-top: 16px; }
.job p { margin: 10px 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.job h2 { overflow-wrap: anywhere; }
.job time { display: block; font-size: 1.1rem; font-weight: bold; margin-bottom: 4px; text-align: right; }
.badge { display: inline-block; background: #e7edf2; padding: 6px 12px; border-radius: 6px; font-weight: bold; }
.job.done .badge { background: #d8f0df; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.hint { color: #495663; font-size: .9rem; }
#error, #form-error, .error { color: #8a1721; background: #fff0f1; padding: 12px; border: 1px solid #8a1721; border-radius: 6px; }
.messages { width: 100%; margin-top: 16px; }
dialog { width: calc(100% - 24px); max-width: 520px; max-height: 90dvh; border: 1px solid #697784; border-radius: 12px; padding: 20px; }
dialog::backdrop { background: #0008; }
form label { margin-top: 14px; }
[hidden] { display: none !important; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.wide { width: 100%; }
select { max-width: 100%; flex: 1; padding: 8px; background: white; color: #17212b; border: 1px solid #697784; }
summary { cursor: pointer; min-height: 48px; overflow-wrap: anywhere; }
summary .summary-name { font-size: 1.15rem; font-weight: bold; }
summary .summary-address { display: block; color: #495663; margin-top: 8px; }
summary .badge { margin-inline-start: 8px; }
.customer p { overflow-wrap: anywhere; white-space: pre-wrap; }
.customer .job { padding: 12px; }
.job > summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.job > summary::-webkit-details-marker { display: none; }
.summary-main::before { content: "▸"; float: right; margin-inline-end: 6px; }
.job[open] > summary .summary-main::before { content: "▾"; }
.customer-name { display: block; color: #07553e; text-decoration: underline; min-height: 44px; padding-block: 8px; }
.summary-contact { text-align: left; align-self: start; }
.job .summary-contact .summary-address { margin-top: 0; }
.summary-phone { display: block; margin-top: 8px; unicode-bidi: isolate; }
.job summary .badge { margin-inline-start: 0; font-size: .85rem; }
.day-navigation { display: flex; gap: 8px; width: 100%; }
.day-navigation button { flex: 1; padding-inline: 8px; }
#customer-suggestions { display: grid; gap: 8px; margin-top: 8px; }
#customer-suggestions button { text-align: start; overflow-wrap: anywhere; }
