:root {
    color-scheme: light;
    --dp-navy: #263b5e;
    --dp-blue: #385681;
    --dp-text: #142743;
    --dp-muted: #62738f;
    --dp-border: #dce4ef;
    --dp-danger: #a31d2d;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #eef4f8; color: var(--dp-text); font: 1rem/1.5 "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
a { color: var(--dp-blue); text-underline-offset: .2em; }
button, input, textarea { font: inherit; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #216fd0; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: 1.75rem; line-height: 1.2; margin: .35rem 0 .65rem; }
h2 { font-size: 1.15rem; margin-bottom: .8rem; }
h3 { font-size: 1rem; }
p + p { margin-top: .5rem; }
.dp-header { background: linear-gradient(115deg, #263b5e, #314c78); color: white; padding: .85rem max(1rem, env(safe-area-inset-right)) .85rem max(1rem, env(safe-area-inset-left)); }
.dp-header-inner { max-width: 760px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.dp-brand { min-width: 0; display: flex; align-items: center; gap: .7rem; color: white; text-decoration: none; }
.dp-brand img { flex: 0 0 48px; width: 48px; height: 48px; object-fit: contain; }
.dp-brand span { min-width: 0; }
.dp-brand strong, .dp-brand small { display: block; }
.dp-brand strong { letter-spacing: 0; }
.dp-brand small { font-size: .78rem; color: #dce6f5; }
.dp-logout { display: inline-flex; flex: 0 0 auto; gap: .4rem; align-items: center; color: white; text-decoration: none; min-height: 44px; padding: .5rem; }
.dp-main { max-width: 792px; margin: auto; padding: 1.4rem max(1rem, env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); }
.dp-main > * + * { margin-top: 1rem; }
.dp-page-heading { padding: .3rem 0; }
.dp-eyebrow { text-transform: uppercase; letter-spacing: 0; color: var(--dp-blue); font-weight: 700; font-size: .72rem; }
.dp-card { min-width: 0; background: white; border: 1px solid var(--dp-border); border-radius: 8px; padding: 1.15rem; box-shadow: 0 3px 12px #263b5e05; }
.dp-muted { color: var(--dp-muted); font-size: .9rem; }
.dp-card > .dp-muted { margin-bottom: .85rem; }
.dp-login { max-width: 440px; margin: 1.5rem auto; }
.dp-login .dp-form { margin-top: 1.5rem; }
.dp-form, .dp-field { display: grid; gap: .65rem; min-width: 0; }
.dp-form { gap: 1rem; }
.dp-field label { font-size: .9rem; font-weight: 600; }
input:not([type=checkbox]):not([type=hidden]), textarea { display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 48px; padding: .75rem; border: 1px solid #b7c5d8; border-radius: 10px; background: #fff; color: var(--dp-text); }
textarea { resize: vertical; }
input[type=file] { font-size: .9rem; overflow: hidden; }
input::file-selector-button { border: 0; border-radius: 6px; padding: .45rem; margin-right: .6rem; background: #eaf0f8; color: var(--dp-blue); font: inherit; cursor: pointer; }
.dp-button { min-width: 0; min-height: 48px; border: 1px solid transparent; border-radius: 10px; padding: .75rem 1rem; display: inline-flex; justify-content: center; align-items: center; gap: .6rem; font-weight: 600; cursor: pointer; text-align: center; overflow-wrap: anywhere; }
.dp-button-primary { background: var(--dp-blue); color: white; }
.dp-button-primary:hover:enabled { background: var(--dp-navy); }
.dp-button-secondary { border-color: #b7c5d8; background: #f2f6fb; color: var(--dp-blue); }
.dp-button:disabled { background: #e6ebf2; color: #657389; border-color: var(--dp-border); cursor: not-allowed; }
.dp-search { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; align-items: end; }
.dp-trip-list { display: grid; gap: 1rem; }
.dp-trip-link { display: block; color: var(--dp-text); text-decoration: none; }
.dp-trip-link:hover { border-color: #496d9f; }
.dp-card-heading { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .7rem; }
.dp-card-heading h2 { margin: 0; }
.dp-card-heading > * { min-width: 0; }
.dp-id { color: var(--dp-blue); }
.dp-route { display: grid; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--dp-border); }
.dp-route span { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.dp-route small { display: block; font-size: .75rem; font-weight: 400; color: var(--dp-muted); margin-bottom: .2rem; }
.dp-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem 1rem; margin: 1rem 0; }
.dp-details > div { min-width: 0; }
.dp-details dt { color: var(--dp-muted); font-size: .75rem; }
.dp-details dd { margin: .2rem 0 0; min-height: 1.5em; overflow-wrap: anywhere; font-size: .92rem; }
.dp-full { grid-column: 1 / -1; }
.dp-badge { display: inline-block; max-width: 100%; border-radius: 7px; padding: .3rem .6rem; font-size: .78rem; font-weight: 600; background: #eaf0f8; color: var(--dp-blue); overflow-wrap: anywhere; }
.dp-badge-success { background: #e3f3eb; color: #216545; }
.dp-badge-danger { background: #fce9eb; color: var(--dp-danger); }
.dp-empty { text-align: center; padding: 2rem 1rem; color: var(--dp-muted); }
.dp-empty > i { display: block; font-size: 2rem; margin-bottom: .5rem; }
.dp-back { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; text-decoration: none; }
.dp-stages { margin: 0; padding: 0; list-style: none; }
.dp-stage { padding: .5rem 0; }
.dp-stage + .dp-stage { border-top: 1px solid #edf1f6; }
.dp-stage-label { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: start; gap: .8rem; min-height: 64px; padding: .65rem .35rem; border-radius: 9px; }
.dp-stage-next .dp-stage-label { background: #f0f5fc; cursor: pointer; }
.dp-stage-label input { width: 24px; height: 24px; margin: .15rem 0 0; accent-color: var(--dp-blue); }
.dp-stage-copy { min-width: 0; }
.dp-stage-copy strong { display: block; font-size: .95rem; overflow-wrap: anywhere; }
.dp-stage-status { display: block; color: var(--dp-muted); font-size: .8rem; margin-top: .25rem; overflow-wrap: anywhere; }
.dp-stage-done .dp-stage-status, .dp-success { color: #216545; }
.dp-inline-error { margin-top: .6rem; color: var(--dp-danger); font-size: .9rem; overflow-wrap: anywhere; }
.dp-notice { border: 1px solid #b7c5d8; border-radius: 10px; background: #f2f6fb; padding: .8rem 1rem; overflow-wrap: anywhere; }
.dp-notice-danger, .dp-notice-error { color: var(--dp-danger); background: #fce9eb; border-color: #f0bdc5; }
.dp-notice-success { color: #216545; background: #e3f3eb; border-color: #b5dac6; }
.dp-flashes { display: grid; gap: .6rem; }
.dp-attachments { list-style: none; margin: .8rem 0; padding: 0; display: grid; gap: .4rem; }
.dp-attachments:empty { display: none; }
.dp-attachments a { display: grid; grid-template-columns: 20px minmax(0, 1fr) 20px; align-items: center; gap: .5rem; min-height: 48px; padding: .6rem; background: #f2f6fb; border-radius: 8px; text-decoration: none; }
.dp-attachments span { min-width: 0; overflow-wrap: anywhere; }
.dp-camera-label { display: flex; gap: .5rem; align-items: center; min-height: 48px; border: 1px solid #b7c5d8; border-radius: 10px; padding: .7rem; color: var(--dp-blue); background: #f2f6fb; cursor: pointer; }
.dp-occurrence { border-bottom: 1px solid var(--dp-border); padding: .8rem 0; }
.dp-occurrence-form { margin-top: 1rem; }
.dp-occurrence-form summary { min-height: 48px; padding: .65rem 0; font-weight: 600; color: var(--dp-blue); cursor: pointer; }
fieldset { display: grid; gap: 1rem; padding: 0; margin: 0; border: 0; min-width: 0; }
fieldset:disabled { opacity: .7; }
.dp-preline { white-space: pre-line; }
.dp-finish form { margin-top: 1rem; }
.dp-finish .dp-button { width: 100%; }
.dp-submit-status:empty { display: none; }
.dp-submit-status { margin-top: .5rem; }
.dp-sr-only, .dp-skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dp-skip:focus { position: fixed; top: .5rem; left: .5rem; z-index: 10; background: white; padding: .75rem; }
@media (min-width: 480px) {
    .dp-search { grid-template-columns: minmax(0, 1fr) auto; }
    .dp-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dp-card { padding: 1.5rem; }
}
