:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17233e;background:#f8faff;font-synthesis:none;--blue:#174ce7;--navy:#17233e;--muted:#56647c;--line:#d9e1ef;--pale:#eef3ff}*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.55;min-height:100vh}button,input,textarea{font:inherit}button,a,input,textarea,summary{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button{cursor:pointer}button:disabled{opacity:.65;cursor:wait}[hidden]{display:none!important}.topbar{height:84px;padding:0 40px;max-width:1100px;margin:auto;display:flex;align-items:center;justify-content:space-between;position:relative}.brand{display:flex;align-items:center;gap:10px;color:var(--navy);font-size:20px;font-weight:750;letter-spacing:-.6px}.brand:hover{text-decoration:none}.brand-dot{color:var(--blue)}.quiet{border:0;background:none;padding:10px 0 10px 15px;color:var(--muted);display:flex;gap:12px;align-items:center}.topbar nav{position:absolute;right:40px;top:68px;width:230px;background:white;box-shadow:0 10px 40px #17233e20;border:1px solid var(--line);padding:8px;z-index:4;border-radius:12px}.topbar nav a,.topbar nav button{display:block;width:100%;text-align:left;padding:12px;border:0;border-radius:6px;color:var(--navy);background:none}.topbar nav a:hover,.topbar nav button:hover{background:var(--pale);text-decoration:none}main{max-width:580px;padding:24px 24px 0;margin:0 auto;min-height:calc(100vh - 180px)}.screen{animation:appear .18s ease-out}.eyebrow{font-size:12px;letter-spacing:1.7px;font-weight:750;color:var(--blue);margin:0 0 14px}.section-top{display:flex;align-items:center;justify-content:space-between}.private-label{font-size:13px;color:var(--muted);margin-bottom:14px;border:1px solid var(--line);border-radius:5px;padding:2px 8px}h1{font-size:44px;line-height:1.1;letter-spacing:-1.8px;font-weight:730;margin:0 0 26px}h2{font-size:17px;margin:0 0 10px;letter-spacing:-.2px}.intro{color:var(--muted);margin:-8px 0 28px;max-width:470px}.stack{display:flex;flex-direction:column;gap:19px}.stack label{display:block;font-size:14px;font-weight:650;margin-bottom:7px}.optional{float:right;font-weight:400;color:var(--muted);font-size:13px}.location-panel{padding:18px 20px;background:var(--pale);border-left:3px solid var(--blue);margin:0 0 23px;border-radius:0 10px 10px 0}.location-title{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;font-weight:650}.coordinates{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:27px;letter-spacing:-1px;font-weight:600;margin:8px 0 2px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.hint{font-size:14px;color:var(--muted);margin:6px 0 0;line-height:1.5}.location-panel .text-button{font-size:14px}.text-button{border:0;background:none;padding:4px 0;color:var(--blue);font-weight:600;text-align:left;display:inline-block;line-height:1.5}.text-button:hover{text-decoration:underline}.primary,.secondary{border:0;border-radius:9px;min-height:54px;padding:13px 19px;font-weight:650;display:flex;justify-content:center;align-items:center;gap:20px;text-align:center;transition:background .15s}.primary{color:#fff;background:var(--blue);box-shadow:0 3px 8px #174ce717}.primary:hover{background:#113bc0;text-decoration:none}.secondary{border:1px solid var(--line);background:white;color:var(--navy)}.secondary:hover{background:var(--pale)}input,textarea{display:block;width:100%;border:1px solid #bdc9dd;background:#fff;color:var(--navy);border-radius:8px;padding:12px 13px;line-height:1.5;min-height:49px;font-size:16px}textarea{resize:vertical;min-height:120px}input::placeholder,textarea::placeholder{color:#6d7990}input:focus,textarea:focus{outline:2px solid #174ce7;outline-offset:2px}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #174ce7;outline-offset:4px}.field-foot{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin:5px 1px 0}.recipient-line{font-size:14px;margin:0;color:var(--muted)}.notice{padding:13px 15px;border-radius:8px;border:1px solid #c7d6fa;background:#eff4ff;color:#233e75;font-size:14px;overflow-wrap:anywhere}.notice.error{border-color:#efb6b6;background:#fff1f1;color:#8e2727}.notice.success{border-color:#a9d8c0;background:#effaf5;color:#195c3c}.notice a{font-weight:650}.privacy-note{font-size:12px;color:var(--muted);line-height:1.65;margin:18px auto;text-align:center;max-width:430px}.last-update{font-size:13px;color:var(--muted);text-align:center;margin:12px 0}.back{display:inline-block;font-size:14px;margin:0 0 26px}.heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.heading-row h1{margin-bottom:14px}.history-list{margin:25px 0}.history-item{display:block;color:var(--navy);padding:20px 0;border-bottom:1px solid var(--line)}.history-item:first-child{border-top:1px solid var(--line)}.history-item:hover{color:var(--blue);text-decoration:none}.history-item time{font-size:13px;color:var(--muted)}.history-item h2{margin:8px 0 5px;overflow-wrap:anywhere}.history-item p{font-size:14px;color:var(--muted);margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.empty{padding:32px 0;color:var(--muted);border-bottom:1px solid var(--line)}.empty h2{color:var(--navy)}.contacts-list{margin:16px 0 24px}.contact-row{padding:20px 0;border-bottom:1px solid var(--line)}.contact-row .name{font-weight:700}.contact-row .email{font-size:14px;color:var(--muted);overflow-wrap:anywhere}.contact-actions{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:9px}.contact-actions button{font-size:14px}.danger{color:#a02b2b}.add-contact{border-top:1px solid var(--line);padding-top:20px}.add-contact summary{font-weight:700;font-size:17px;cursor:pointer;margin-bottom:20px}.detail-time{display:block;color:var(--muted);font-size:14px;margin:-14px 0 24px}.detail-section{margin:25px 0}.detail-section h2{font-size:14px;color:var(--muted)}.preserve{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}.delivery-row{display:flex;justify-content:space-between;gap:14px;font-size:14px;padding:8px 0;border-bottom:1px solid var(--line)}.delivery-row span:last-child{color:var(--muted);text-align:right}.reply{border-left:2px solid var(--line);padding:4px 0 4px 14px;margin-bottom:18px}.reply time{font-size:12px;color:var(--muted);display:block}.reply p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}#delete-report{display:block;margin:18px auto}#refresh-detail,#load-more{width:100%}.boot{padding:80px 0;text-align:center;color:var(--muted)}#registration-fields label:not(:first-child){margin-top:18px}dialog{border:1px solid var(--line);border-radius:14px;max-width:440px;width:calc(100% - 40px);padding:26px;color:var(--navy);box-shadow:0 20px 100px #17233e40}dialog::backdrop{background:#17233e80}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}footer{max-width:580px;margin:32px auto 0;padding:20px 24px 28px;color:#65728a;font-size:12px;display:flex;justify-content:space-between}footer span{color:#65728a}@keyframes appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){.topbar{height:72px;padding:0 22px}.topbar nav{right:22px;top:62px}.brand{font-size:19px}main{padding:20px 22px 0}h1{font-size:36px;letter-spacing:-1.3px;margin-bottom:22px}.coordinates{font-size:23px}.location-panel{padding:15px 16px;margin-bottom:20px}.stack{gap:17px}.privacy-note{margin-top:17px}footer{padding:18px 22px 24px}}@media(max-width:360px){.coordinates{font-size:20px}main{padding-left:16px;padding-right:16px}h1{font-size:32px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.accuracy-warning{font-size:14px;line-height:1.5;color:#674813;background:#fff7df;border-radius:6px;padding:10px 12px;margin:0 0 14px}.chat-nav{margin-left:auto;margin-right:22px;font-size:14px;font-weight:650}.chat-shortcut{display:block;text-align:center;font-size:15px;font-weight:650;margin:22px 0 4px}.chat-messages{height:48vh;min-height:210px;overflow-y:auto;overscroll-behavior:contain;margin:18px 0;padding:4px 8px 10px 2px;scrollbar-width:thin}.chat-message{background:#fff;border:1px solid var(--line);border-radius:12px 12px 12px 2px;padding:13px 15px;margin:0 35px 14px 0;overflow-wrap:anywhere}.chat-message.mine{background:var(--pale);border-color:#ccdafb;margin:0 0 14px 35px;border-radius:12px 12px 2px 12px}.chat-message strong{font-size:14px}.chat-message time{display:block;color:var(--muted);font-size:12px}.chat-message .preserve{margin:8px 0 0}.location-chat-link{display:block;margin-top:9px;font-size:14px;font-weight:650}.chat-coordinates{font:15px ui-monospace,monospace;margin:7px 0}.chat-estimate{font-size:13px;color:#674813;margin:7px 0 0}.chat-compose{gap:8px;padding-top:10px}.chat-compose label{margin-bottom:0}.chat-compose textarea{min-height:85px}.chat-compose .primary{margin-top:7px}.chat-message details{margin-top:8px}.chat-message summary{cursor:pointer;font-size:14px;color:var(--blue)}@media(max-width:600px){.chat-nav{margin-right:10px;font-size:13px}.brand{font-size:18px}.chat-messages{height:44vh}.chat-message{margin-right:22px}.chat-message.mine{margin-left:22px}}
/* Sleek chat composer and family sender colors */
#family-chat-link{display:none!important}.chat-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:12px;margin-top:7px}.chat-actions .primary,.checkin-button{width:100%;min-height:54px;border-radius:9px;font-weight:750;display:flex;align-items:center;justify-content:center;text-align:center}.chat-actions .primary{margin-top:0}.checkin-button{border:1px solid #d4aa00;background:#ffd84d;color:#352a00;box-shadow:0 3px 9px #9d7d1a26}.checkin-button:hover{background:#ffcf22}.checkin-button:focus-visible{outline:3px solid #9b7200;outline-offset:3px}.chat-message.sender-aj{background:#eef3ff;border-color:#bfd0fb}.chat-message.sender-jj{background:#edf9ef;border-color:#a9d8b0}.chat-message.sender-pj{background:#fff0f7;border-color:#efbdd4}.chat-message.checkin-failed{background:#fff3e8!important;border:2px solid #e18432!important;box-shadow:0 3px 12px #b761181f}.checkin-failed-title{margin:10px 0 4px;font-size:12px;letter-spacing:1.35px;font-weight:850;color:#a84414}.checkin-failed-summary{margin:0;font-weight:750;color:#7f3211}.checkin-success-title{margin:10px 0 4px}.checkin-success-summary{margin:0;color:#1f5d3d;font-weight:700}.chat-compose{padding-top:8px}.chat-compose textarea{min-height:86px}@media(max-width:600px){.chat-actions{grid-template-columns:1fr 1.25fr;gap:10px}.chat-actions .primary,.checkin-button{min-height:50px;padding:11px 12px}}

/* Responsive chat shell, photo messages, and mobile navigation */
.chat-active{overflow:hidden}
.chat-active main{height:calc(100vh - 84px);height:calc(100dvh - 84px);min-height:0;padding-top:8px;max-width:760px}
.chat-active footer{display:none}.chat-active #chat-screen{height:100%;min-height:0;display:flex;flex-direction:column}
.chat-active #chat-screen>.eyebrow{margin-bottom:6px}
.chat-active #chat-screen .heading-row{flex:none;align-items:center}
.chat-active #chat-screen .heading-row h1{font-size:34px;margin:0 0 4px}
.chat-active #family-members{flex:none;margin:0 0 4px}
.chat-active .chat-search-wrap{flex:none;margin:5px 0 6px}
.chat-active #earlier-chat{flex:none}
.chat-active .chat-messages{flex:1 1 auto;height:auto;min-height:110px;margin:5px 0 7px;padding-bottom:8px}
.chat-active #chat-status{flex:none;margin-bottom:4px}
.chat-active .chat-compose{flex:none;gap:5px;padding:6px 0 max(10px,env(safe-area-inset-bottom));background:#f8faff}
.chat-active .chat-compose>label{font-size:13px}
.chat-active .chat-compose textarea{min-height:62px;max-height:20vh;resize:none}
.chat-active .chat-compose .field-foot{display:none}
.chat-active #chat-screen>.privacy-note{display:none}
.chat-photo-frame{position:relative;margin:10px 0 4px;min-height:86px;border-radius:10px;overflow:hidden;background:#e9eef7}
.chat-photo-frame:before{content:"Loading photo…";display:flex;align-items:center;justify-content:center;position:absolute;inset:0;font-size:12px;color:var(--muted)}
.chat-photo-frame.loaded:before,.chat-photo-frame.photo-error:before{display:none}
.chat-photo{position:relative;z-index:1;display:block;width:100%;max-height:380px;object-fit:contain;background:#fff}
.chat-photo-frame.photo-error{min-height:54px;display:flex;align-items:center;justify-content:center}
.chat-photo-preview{display:grid;grid-template-columns:58px 1fr auto;gap:10px;align-items:center;padding:8px 10px;border:1px solid #cbd7ec;border-radius:10px;background:#fff}
.chat-photo-preview img{width:58px;height:48px;object-fit:cover;border-radius:7px}
.chat-photo-preview strong{font-size:13px}
.chat-photo-preview .hint{display:inline;font-size:11px}
.chat-actions{grid-template-columns:.8fr 1fr 1.2fr}
.photo-button{border:1px solid #c6d1e4;background:#fff;color:var(--navy);border-radius:9px;min-height:54px;padding:11px 13px;font-weight:700;display:flex;align-items:center;justify-content:center}
.photo-button:hover{background:var(--pale)}
.topbar nav{overflow:hidden}
.menu-manage-messages span{line-height:1.3}
@media(max-width:600px){
  .chat-active .topbar{height:62px;padding:0 16px}
  .chat-active main{height:calc(100vh - 62px);height:calc(100dvh - 62px);padding:8px 14px 0}
  .chat-active #chat-screen .heading-row h1{font-size:27px;letter-spacing:-.8px}
  .chat-active #chat-screen>.eyebrow{font-size:10px;margin-bottom:2px}
  .chat-active #family-members{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .chat-active .chat-search-wrap input{min-height:38px;padding:7px 10px}
  .chat-active .chat-messages{margin:3px -2px 5px;padding-right:4px}
  .chat-active .chat-message{margin-right:13px;padding:10px 12px;margin-bottom:8px}
  .chat-active .chat-message.mine{margin-left:13px;margin-bottom:8px}
  .chat-active .chat-compose textarea{min-height:56px;max-height:18vh;padding:9px 11px}
  .chat-actions{grid-template-columns:.82fr 1fr 1.15fr;gap:7px;margin-top:4px}
  .chat-actions .primary,.checkin-button,.photo-button{min-height:46px;padding:9px 7px;font-size:13px}
  .chat-photo{max-height:46vh}
  .chat-photo-preview{grid-template-columns:50px 1fr auto;padding:6px 8px}
  .chat-photo-preview img{width:50px;height:43px}
  #menu-button{width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:11px;background:#fff;justify-content:center;font-size:0;box-shadow:0 2px 8px #17233e0d}
  #menu-button span{font-size:22px;line-height:1}
  .topbar nav{right:14px;top:58px;width:min(270px,calc(100vw - 28px));border-radius:14px;box-shadow:0 16px 45px #17233e30}
  .topbar nav a,.topbar nav button{padding:13px 14px}
}
@media(max-width:380px){
  .chat-actions{grid-template-columns:.8fr .95fr 1.05fr;gap:5px}
  .chat-actions .primary,.checkin-button,.photo-button{font-size:12px;padding-left:5px;padding-right:5px}
}
