@font-face { font-family: Inter; src: url('assets/fonts/inter-var.woff2'); }
@font-face { font-family: 'DM Serif'; src: url('assets/fonts/dm-serif-display-400.woff2'); }
* { box-sizing: border-box; }
:root { --paper: #f6f1e7; --gold: #735b29; --line: #e1dbcf; --muted: #807766; --green: #527743; }
body { margin: 0; background: #fffdf7; color: #211e18; font: 14px/1.6 Inter, sans-serif; }
.journey { max-width: 1150px; margin: auto; padding: 40px 36px; display: grid; grid-template-columns: 1fr 365px; gap: 55px; align-items: center; }
h1 { font: 38px/1.16 'DM Serif', Georgia, serif; margin: 16px 0 22px; }
h1 em { color: var(--gold); font-style: normal; }
.eyebrow { color: #963d20; letter-spacing: 1.4px; font-size: 10px; }
.intro { max-width: 440px; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 28px 0; }
.timeline li { border-top: 1px solid var(--line); padding: 13px 0; }
.timeline b { display: block; font-size: 13px; font-weight: 600; }
.timeline span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.current { border-left: 3px solid var(--gold); padding-left: 17px; min-height: 128px; }
.current>span { color: var(--gold); font-size: 10px; letter-spacing: 1px; }
h2 { font-size: 18px; margin: 8px 0; }
.current p { font-size: 12px; color: var(--muted); margin: 0; }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid #b85636; outline-offset: 3px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.controls button { padding: 10px 13px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; background: var(--paper); }
.controls #play { background: #25221c; color: #fffdf7; border-color: #25221c; }
.note { font-size: 10px; color: var(--muted); margin-top: 18px; max-width: 390px; }
.device-wrap { min-width: 0; }
.perspective { text-align: center; font-size: 11px; color: var(--gold); margin: 0 0 12px; }
.phone { border: 7px solid #292824; border-radius: 42px; overflow: hidden; background: var(--paper); box-shadow: 0 18px 32px #302b2420; width: 100%; height: 724px; position: relative; }
.statusbar { display: flex; justify-content: space-between; padding: 16px 24px 12px; font-size: 12px; height: 48px; }
#screen { height: 646px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.home-indicator { height: 4px; width: 110px; border-radius: 5px; background: #25221c; margin: 10px auto; }
.appbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; font-size: 14px; }
.appbar span { font-size: 11px; color: var(--muted); }
.content { padding: 18px 16px; }
.brand { display: inline-block; background: white; border: 1px solid var(--line); border-radius: 13px; padding: 9px 12px; font-weight: 600; }
.greeting { font: 29px/1.2 'DM Serif', serif; margin: 8px 0 24px; }
.muted { color: var(--muted); font-size: 11px; }
.card { padding: 17px; border: 1px solid var(--line); background: white; border-radius: 17px; margin: 14px 0; }
.shortcuts { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.shortcut { padding: 19px 10px; background: white; border: 1px solid var(--line); border-radius: 15px; font-size: 12px; }
.shortcut.active { border: 2px solid var(--gold); box-shadow: 0 0 0 4px #735b2910; }
.shortcut span { display: block; color: var(--gold); font-size: 22px; margin-bottom: 8px; }
.bottomnav { margin-top: auto; padding: 17px 8px; background: white; display: flex; justify-content: space-around; font-size: 10px; color: var(--muted); }
.field-label { font-size: 10px; letter-spacing: 1px; color: var(--muted); margin: 17px 0 8px; }
.field { border: 1px solid var(--line); background: white; padding: 12px; border-radius: 12px; font-size: 13px; }
.description { min-height: 83px; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 20px; color: var(--gold); background: #eae4d7; font-size: 10px; border: 1px solid #c7bfa9; }
.pill.green { color: var(--green); background: #e9eee5; border-color: #becdb4; }
.photos { display: flex; gap: 9px; align-items: center; }
.photos img { width: 75px; height: 75px; object-fit: cover; border-radius: 12px; }
.camera-button { border: 1px dashed var(--gold); border-radius: 12px; padding: 13px; font-size: 11px; color: var(--gold); }
.send { background: var(--gold); color: white; padding: 12px; border-radius: 12px; text-align: center; font-weight: 600; font-size: 12px; margin-top: 20px; }
.camera { background: #111; height: 100%; color: white; display: flex; flex-direction: column; text-align: center; }
.camera img { width: 100%; flex: 1; min-height: 0; object-fit: cover; }
.camera p { font-size: 11px; margin: 15px; }
.shutter { width: 58px; height: 58px; border: 5px double #333; background: white; border-radius: 50%; margin: 15px auto; }
.case-head { background: white; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.case-head strong { display: block; font-size: 13px; margin-top: 7px; }
.progress { display: flex; justify-content: space-between; gap: 4px; padding: 12px; font-size: 9px; background: white; border-bottom: 1px solid var(--line); }
.progress span { color: #a89c87; text-align: center; flex: 1; border-top: 3px solid var(--line); padding-top: 5px; }
.progress .done { color: var(--green); border-color: var(--green); }
.chat { padding: 13px; flex: 1; min-height: 0; overflow-y: auto; }
.bubble { background: white; padding: 12px; border: 1px solid var(--line); border-radius: 16px; max-width: 94%; margin: 0 0 13px; font-size: 12px; line-height: 1.5; }
.bubble.mine { margin-left: auto; background: #eae4d7; border-color: #c9bfa8; }
.bubble small { color: var(--muted); display: block; margin-bottom: 5px; font-size: 9px; }
.bubble img { width: 105px; height: 96px; object-fit: cover; border-radius: 10px; display: block; margin-top: 9px; }
.event { text-align: center; color: var(--muted); font-size: 9px; margin: 12px 0; }
.composer { display: flex; align-items: center; gap: 9px; padding: 12px; background: white; font-size: 12px; }
.composer .input { flex: 1; background: #efe9dc; padding: 11px; border-radius: 13px; min-height: 43px; }
.composer .arrow { color: white; background: var(--gold); border-radius: 11px; padding: 10px; }
.typing::after { content: '|'; color: #3978cb; }
.keyboard { background: #dedee2; padding: 8px 4px 14px; text-align: center; }
.keyboard div { display: flex; gap: 3px; justify-content: center; margin: 5px 0; }
.keyboard i { font-style: normal; background: white; padding: 6px 0; border-radius: 4px; flex: 1; font-size: 12px; }
.keyboard .space { flex: 5; }
.resolved { background: #e8ecdf; color: var(--green); padding: 12px; font-size: 10px; }
.time-jump { background: #eae4d7; padding: 12px; border-radius: 10px; text-align: center; font-size: 12px; color: var(--gold); margin: 15px 0; }
@media(max-width: 800px) {
  .journey { grid-template-columns: 1fr; gap: 25px; padding: 26px 18px; }
  .device-wrap { width: min(365px,100%); margin: auto; }
  h1 { font-size: 32px; }
  .current { min-height: 105px; }
}
@media(prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

.camera.captured img { opacity: .55; }
.camera.captured .shutter { background: #bbb; }

/* Skærmbilledets proportioner og originale kontroller bevares uden nytegning. */
.phone { height: auto; border-radius: 38px; }
.statusbar, .home-indicator { display: none; }
#screen { display: block; height: auto; aspect-ratio: 942 / 2048; }
.original-screen { position: absolute; width: 942px; height: 2048px; transform-origin: top left; }
.original-image { width: 942px; height: 2048px; display: block; }
.data-patch { position: absolute; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.35; }
.data-patch b { font-weight: 600; }
.camera-photo { position: absolute; left: 0; top: 300px; width: 942px; height: 1120px; object-fit: cover; }
.camera-photo.captured { filter: brightness(1.15); }
.pending-track { display: inline-flex; flex-direction: column; text-align: center; width: 50%; color: #807766; }
.pending-track span { font-size: 22px; }

/* Personerne er fortællingens ramme, mens appens egne skærme bevares. */
.device-wrap { --role-color: #735b29; }
.role-banner { margin-bottom: 18px; }
.role-people { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.role-person { display: flex; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid transparent; border-radius: 12px; color: #8d887f; flex: 1; transition: background .3s, border-color .3s, color .3s; }
.person-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #ece9e1; color: #888174; font: 17px 'DM Serif', Georgia, serif; flex-shrink: 0; }
.role-person strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.role-person div>span { display: block; font-size: 10px; margin-top: 2px; }
.role-person i { width: 5px; height: 5px; border-radius: 50%; margin-left: auto; background: transparent; }
.role-link { font-size: 18px; color: #b5ae9f; }
.device-wrap[data-role="tenant"] .tenant-person,
.device-wrap[data-role="staff"] .staff-person { border-color: #ded5c2; background: #f4efe4; color: #3b3325; }
.device-wrap[data-role="tenant"] .tenant-person .person-avatar,
.device-wrap[data-role="staff"] .staff-person .person-avatar { background: #735b29; color: #fffdf7; }
.device-wrap[data-role="tenant"] .tenant-person i,
.device-wrap[data-role="staff"] .staff-person i { background: #735b29; }
.perspective { text-align: center; color: #735b29; margin: 14px 0 3px; font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; }
.communication-direction { text-align: center; min-height: 36px; font-size: 11px; line-height: 1.5; color: #81796b; margin: 0; }
.role-transition { position: absolute; inset: 0; z-index: 5; background: #f6f1e8f5; color: #382e1b; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 28px; text-align: center; }
.role-transition[hidden] { display: none; }
.role-transition span { font-size: 9px; letter-spacing: 2px; color: #91836a; }
.role-transition strong { font: 34px/1.15 'DM Serif', Georgia, serif; margin-top: 18px; max-width: 240px; }
.role-transition p { font-size: 12px; color: #81796b; max-width: 205px; }

/* Personernes farver er faste, så receptionen kan genkendes ved hvert skift. */
.staff-person .person-avatar { background: #e4eded; color: #41656b; }
.device-wrap[data-role="staff"] .staff-person { border-color: #bfd0d2; background: #edf3f3; color: #315b63; }
.device-wrap[data-role="staff"] .staff-person .person-avatar { background: #416b73; color: #fff; }
.device-wrap[data-role="staff"] .staff-person i { background: #416b73; }
.device-wrap[data-role="staff"] .perspective { color: #416b73; }
