
    @font-face { font-family: Outfit; src: url('/assets/outfit-400-600.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
    @font-face { font-family: 'Work Sans'; src: url('/assets/work-sans-400-600.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
    :root {
      --ink: #263238; --muted: #546e7a; --cyan: #00b0ff; --link: #006f99;
      --ice: #e1f5fe; --paper: #fff; --soft: #f3f8fa; --line: #d4e1e7;
      --dark: #20333d; --green: #17654e; --amber: #815207;
      --body: 'Work Sans', Arial, sans-serif; --display: Outfit, Arial, sans-serif;
    }
    * { box-sizing: border-box; }
    body { margin: 0; background: var(--soft); color: var(--ink); font: 14px/1.6 var(--body); }
    h1, h2, h3, p { margin: 0; }
    h1, h2, h3 { font-family: var(--display); font-weight: 500; }
    button, input, select { font: inherit; }
    button { cursor: pointer; }
    button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
    button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
      outline: 3px solid var(--cyan); outline-offset: 4px;
    }
    a { color: var(--link); text-underline-offset: 4px; }
    button:disabled { cursor: wait; opacity: .65; }
    [hidden] { display: none !important; }
    .sr { position: absolute; width: 1px; height: 1px; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; }
    .muted { color: var(--muted); }
    .eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: 1.6px; font-weight: 600; }
    .mono { font-family: Consolas, 'Courier New', monospace; letter-spacing: .3px; }
    .icon { width: 18px; height: 18px; flex: 0 0 18px; }
    .preview-note { min-height: 30px; background: #e7eff3; color: #4a6572; padding: 6px 24px; text-align: center; font-size: 10px; letter-spacing: .25px; }
    .preview-note strong { font-weight: 600; margin-right: 8px; font-size: 9px; letter-spacing: 1px; }
    .header { height: 92px; border-bottom: 1px solid var(--line); background: white; }
    .header-inner { max-width: 1160px; height: 100%; margin: auto; display: flex; align-items: center; gap: 28px; }
    .brand { width: 123px; height: auto; display: block; }
    .header-label { padding-left: 25px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; }
    .header-contact { margin-left: auto; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; gap: 13px; font-size: 12px; font-weight: 500; }
    .page { max-width: 1160px; margin: 37px auto 0; padding-bottom: 28px; }
    .delivery-layout { display: grid; grid-template-columns: 320px minmax(0,1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: white; }
    .care-panel { background: var(--dark); color: white; padding: 36px 29px 30px; display: flex; flex-direction: column; align-items: flex-start; }
    .care-panel .eyebrow { color: #9fdcf7; }
    .care-title { font: 500 40px/1.12 var(--display); letter-spacing: -1.3px; margin: 23px 0 18px; }
    .care-intro { font-size: 13px; line-height: 1.9; color: #c0d3dc; }
    .care-signature { margin-top: 28px; padding-top: 23px; border-top: 1px solid #4d6370; width: 100%; }
    .care-signature strong { color: white; font-weight: 500; display: block; font-size: 13px; margin-bottom: 6px; }
    .care-signature span { color: #b5cdd8; font-size: 11px; }
    .care-contact { margin-top: auto; padding-top: 52px; width: 100%; }
    .care-contact h2 { font-size: 24px; margin: 11px 0; line-height: 1.2; letter-spacing: -.4px; }
    .care-contact p { color: #bdd2dd; font-size: 12px; line-height: 1.85; }
    .care-contact a { display: flex; justify-content: space-between; align-items: center; min-height: 47px; padding: 0 15px; border: 1px solid #6b8999; border-radius: 5px; color: #e6f6ff; text-decoration: none; font-size: 12px; margin-top: 22px; }
    .care-contact a:hover { background: #324c5a; }
    .main-pane { padding: 27px 35px 23px; min-width: 0; }
    .identity { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
    .identity .eyebrow { color: var(--muted); margin-bottom: 6px; }
    .reference-group { display: flex; align-items: center; gap: 9px; }
    .reference { font-size: 16px; font-weight: 600; }
    .copy-button { display: inline-flex; align-items: center; justify-content: center; height: 44px; min-width: 44px; background: white; border: 0; border-radius: 5px; color: var(--muted); }
    .copy-button:hover { background: var(--soft); color: var(--ink); }
    .identity-note { font-size: 11px; color: var(--muted); text-align: right; }
    .status-area { padding-top: 25px; }
    .status-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 30px; border: 1px solid #b9ddeb; padding: 5px 10px; color: #006185; font-size: 11px; font-weight: 500; background: #f1faff; }
    .status-pill:before { content: ''; height: 6px; width: 6px; border-radius: 50%; background: var(--cyan); }
    .status-pill.delivered { color: var(--green); background: #f0f8f3; border-color: #bdd9c8; }
    .status-pill.delivered:before { background: var(--green); }
    .status-pill.delayed { color: var(--amber); background: #fff8ed; border-color: #e5d4b7; }
    .status-pill.delayed:before { background: #ad710f; }
    .status-title { font-size: 38px; line-height: 1.13; font-weight: 500; letter-spacing: -1.15px; max-width: 530px; margin: 17px 0 12px; }
    .status-description { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 580px; }
    .schedule { display: grid; grid-template-columns: 1fr 180px; gap: 20px; border: 1px solid #cde5f0; background: #eff9fe; border-radius: 6px; padding: 20px 23px; margin: 24px 0; }
    .schedule .eyebrow { color: #4a6b7a; font-size: 9px; }
    .date { font: 500 26px/1.2 var(--display); letter-spacing: -.55px; margin: 7px 0 5px; }
    .estimate-note { font-size: 11px; color: var(--muted); }
    .destination { padding-left: 24px; border-left: 1px solid #c2dce8; }
    .destination strong { display: block; font: 500 21px/1.3 var(--display); margin: 8px 0 3px; }
    .destination span { color: var(--muted); font-size: 11px; }
    .schedule.no-eta { background: #f5f8fa; border-color: var(--line); }
    .progress { display: grid; grid-template-columns: repeat(4,1fr); list-style: none; padding: 0; margin: 28px 0 23px; }
    .progress li { position: relative; padding-top: 22px; color: var(--muted); font-size: 10px; }
    .progress li:before { content: ''; position: absolute; height: 2px; width: 100%; top: 5px; left: 0; background: var(--line); }
    .progress li:last-child:before { display: none; }
    .progress li:after { content: ''; position: absolute; width: 11px; height: 11px; top: 0; left: 0; border-radius: 50%; border: 2px solid #a3bac5; background: white; }
    .progress .done:before { background: var(--cyan); }
    .progress .done:after { background: var(--link); border-color: var(--link); }
    .progress .current { color: var(--ink); font-weight: 600; }
    .progress .current:after { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 4px var(--ice); }
    .update-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
    .update-row p { font-size: 10px; color: var(--muted); }
    .text-button { color: var(--link); min-height: 44px; border: 0; border-radius: 4px; padding: 5px 0; background: transparent; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 500; }
    .text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
    .text-button svg { width: 14px; height: 14px; }
    .refreshing .refresh-icon { animation: rotate 1s linear infinite; }
    @keyframes rotate { to { transform: rotate(360deg); } }
    .next-step { background: #f7fafb; border-radius: 5px; padding: 17px 20px; margin: 11px 0 21px; }
    .next-step h2 { font-size: 17px; margin-bottom: 6px; }
    .next-step p { font-size: 12px; line-height: 1.8; color: var(--muted); max-width: 570px; }
    .next-step a { font-weight: 500; }
    .activity { border-top: 1px solid var(--line); }
    .activity summary { display: flex; justify-content: space-between; align-items: center; min-height: 55px; cursor: pointer; list-style: none; font-weight: 500; font-size: 12px; gap: 12px; }
    summary::-webkit-details-marker { display: none; }
    .activity summary span { display: inline-flex; align-items: center; gap: 12px; }
    .activity summary .activity-caption { font-size: 10px; color: var(--muted); font-weight: 400; }
    .chevron { width: 12px; height: 12px; transition: transform .15s ease; }
    details[open] > summary .chevron { transform: rotate(180deg); }
    .history { list-style: none; padding: 7px 0 21px; margin: 0; }
    .history li { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 23px; border-left: 1px solid var(--line); margin-left: 4px; padding: 0 0 23px 20px; }
    .history li:last-child { border-left-color: transparent; padding-bottom: 0; }
    .history li:before { content: ''; position: absolute; left: -4px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #a2b8c3; }
    .history li:first-child:before { background: var(--cyan); box-shadow: 0 0 0 4px var(--ice); }
    .history time { font-size: 10px; color: var(--muted); line-height: 1.7; }
    .history strong { display: block; font-size: 12px; font-weight: 500; }
    .history p { font-size: 10px; color: var(--muted); margin-top: 4px; }
    .secondary-nav { border-top: 1px solid var(--line); margin-top: 0; }
    .secondary-nav summary { min-height: 49px; display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; color: var(--link); font-size: 11px; font-weight: 500; }
    .secondary-nav summary svg { width: 13px; height: 13px; }
    .manual-form { padding: 5px 0 15px; }
    .manual-form label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 8px; }
    .input-row { display: flex; gap: 9px; }
    .manual-form input { flex: 1; min-width: 0; width: 100%; min-height: 48px; border: 1px solid #a5bcc8; border-radius: 5px; padding: 0 13px; font: 14px Consolas,'Courier New',monospace; color: var(--ink); background: white; }
    .button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 5px; background: var(--ink); color: white; font-size: 12px; font-weight: 500; text-decoration: none; }
    .button:hover { background: #3b5664; }
    .button.secondary { color: var(--ink); background: white; border-color: #9fb7c4; }
    .form-note { font-size: 10px; color: var(--muted); margin-top: 7px; min-height: 16px; }
    .form-note.error { color: #a52d2d; }
    .privacy { color: var(--muted); font-size: 10px; display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; line-height: 1.8; }
    .privacy svg { width: 12px; height: 14px; flex: 0 0 12px; margin-top: 3px; }
    .carrier { margin-top: 17px; color: var(--muted); font-size: 10px; text-align: right; }
    .footer { margin-top: 19px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 10px; color: var(--muted); }
    .footer strong { color: var(--ink); font-weight: 500; }
    .preview-tools { margin-top: 17px; color: var(--muted); font-size: 10px; }
    .preview-tools summary { min-height: 44px; cursor: pointer; width: fit-content; display: flex; align-items: center; gap: 8px; list-style: none; }
    .preview-tools .tools-inner { background: #eaf1f5; border: 1px dashed #c0d3de; padding: 17px; border-radius: 5px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
    .preview-tools select { min-height: 44px; border: 1px solid #9fb6c2; background: white; color: var(--ink); border-radius: 4px; padding: 0 9px; font-size: 12px; }
    .preview-tools button { min-height: 44px; font-size: 11px; }
    .stale-notice { padding: 13px 15px; border: 1px solid #e4d2ad; background: #fff9ed; border-radius: 5px; margin-top: 19px; color: #765016; font-size: 11px; line-height: 1.8; }
    .stale-notice strong { font-weight: 600; display: block; margin-bottom: 2px; }
    .inline-feedback { font-size: 10px; line-height: 1.7; color: var(--muted); min-height: 0; }
    .inline-feedback:not(:empty) { margin: 0 0 11px; }
    .message { padding: 42px 0 35px; min-height: 470px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
    .message .eyebrow { color: var(--link); }
    .message h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.7px; margin: 18px 0 14px; max-width: 500px; }
    .message p { color: var(--muted); font-size: 13px; line-height: 1.9; max-width: 530px; }
    .message-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
    .load-line { width: 90px; height: 3px; background: var(--cyan); margin-bottom: 8px; animation: fade .8s infinite alternate; }
    @keyframes fade { to { opacity: .25; } }
    .copy-fallback { border: 1px solid var(--line); border-radius: 5px; padding: 13px; margin-top: 13px; font-size: 11px; background: var(--soft); }
    .copy-fallback label { display: block; margin-bottom: 6px; }
    .copy-fallback input { min-height: 44px; width: 100%; font: 14px Consolas,monospace; border: 1px solid #a7bfcb; border-radius: 4px; padding: 0 10px; color: var(--ink); background: white; }
    .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 30; background: var(--dark); color: white; font-size: 12px; padding: 12px 20px; border-radius: 5px; max-width: 90vw; box-shadow: 0 4px 18px #0002; }
    .toast:empty { display: none; }
    .mobile-dock { display: none; }
    @media(min-width:1500px) { .page { margin-top: 46px; } }
    @media(max-width:1240px) {
      .header-inner { margin: 0 36px; }
      .page { margin: 30px 36px 0; }
      .delivery-layout { grid-template-columns: 290px minmax(0,1fr); }
      .care-panel { padding: 32px 26px; }
      .care-title { font-size: 37px; }
      .main-pane { padding: 25px 29px 23px; }
      .schedule { grid-template-columns: 1fr 145px; gap: 15px; padding: 19px; }
      .date { font-size: 24px; }
      .destination { padding-left: 18px; }
    }
    @media(max-width:980px) {
      .delivery-layout { grid-template-columns: 250px minmax(0,1fr); }
      .care-panel { padding: 28px 22px; }
      .care-title { font-size: 33px; }
      .care-intro { font-size: 12px; }
      .main-pane { padding: 25px 24px 20px; }
      .status-title { font-size: 32px; }
      .identity-note { display: none; }
      .reference { font-size: 14px; }
      .schedule { grid-template-columns: 1fr; gap: 13px; }
      .destination { border: 0; border-top: 1px solid #c2dce8; padding: 12px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
      .destination .eyebrow { margin-right: auto; }
      .destination strong { font: 500 15px var(--body); margin: 0; }
      .date { font-size: 25px; }
      .activity-caption { display: none !important; }
      .update-row { align-items: flex-start; }
      .update-row p { padding-top: 9px; max-width: 200px; }
      .input-row { flex-wrap: wrap; }
      .input-row input, .input-row .button { flex-basis: 100%; }
    }
    @media(max-width:760px) {
      body { padding-bottom: 81px; }
      .preview-note { min-height: 27px; padding: 5px 12px; font-size: 9px; }
      .preview-note strong { font-size: 8px; margin-right: 5px; }
      .header { height: 77px; }
      .header-inner { margin: 0 21px; gap: 16px; }
      .brand { width: 108px; }
      .header-label { display: none; }
      .header-contact { font-size: 11px; gap: 8px; }
      .page { margin: 20px 18px 0; padding-bottom: 10px; }
      .delivery-layout { display: flex; flex-direction: column; border-radius: 8px; }
      .main-pane { order: 0; padding: 20px 21px 18px; }
      .care-panel { order: 1; padding: 22px 23px; display: block; }
      .care-panel > .eyebrow { font-size: 9px; }
      .care-title { font-size: 24px; letter-spacing: -.4px; margin: 10px 0 9px; }
      .care-title br { display: none; }
      .care-intro { font-size: 11px; line-height: 1.85; max-width: 520px; }
      .care-signature, .care-contact { display: none; }
      .identity { padding-bottom: 15px; gap: 10px; }
      .identity .eyebrow { font-size: 9px; margin-bottom: 2px; }
      .reference { font-size: 14px; }
      .reference-group { gap: 4px; }
      .copy-button { width: 44px; height: 44px; }
      .status-area { padding-top: 19px; }
      .status-pill { font-size: 10px; padding: 5px 10px; }
      .status-title { font-size: 31px; letter-spacing: -.9px; margin: 14px 0 11px; max-width: 420px; }
      .status-description { font-size: 12px; line-height: 1.8; }
      .schedule { padding: 17px; margin: 20px 0 23px; gap: 13px; }
      .date { font-size: 24px; margin-top: 8px; }
      .estimate-note { font-size: 10px; }
      .destination { padding-top: 12px; }
      .destination .eyebrow { font-size: 8px; }
      .destination strong { font-size: 12px; }
      .destination span { font-size: 10px; }
      .progress { margin: 25px 0 20px; gap: 3px; }
      .progress li { font-size: 9px; line-height: 1.6; }
      .update-row { padding-top: 5px; }
      .update-row p { font-size: 9px; max-width: 200px; padding-top: 10px; }
      .text-button { font-size: 10px; white-space: nowrap; }
      .next-step { padding: 15px 16px; margin: 9px 0 17px; }
      .next-step h2 { font-size: 16px; }
      .next-step p { font-size: 11px; }
      .activity summary { min-height: 53px; font-size: 11px; }
      .history { padding-bottom: 19px; }
      .history li { grid-template-columns: 66px 1fr; gap: 15px; padding-left: 17px; }
      .history time { font-size: 9px; }
      .history strong { font-size: 11px; }
      .history p { font-size: 9px; }
      .secondary-nav summary { font-size: 10px; }
      .privacy { font-size: 9px; margin-top: 6px; }
      .carrier { text-align: left; font-size: 9px; margin-top: 15px; }
      .footer { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 15px; margin-top: 16px; font-size: 9px; }
      .preview-tools { margin-top: 10px; }
      .preview-tools summary { font-size: 9px; }
      .message { min-height: 380px; padding: 35px 0; }
      .message h1 { font-size: 29px; }
      .message p { font-size: 12px; }
      .message-actions { width: 100%; flex-direction: column; }
      .message-actions .button { width: 100%; }
      .stale-notice { font-size: 10px; padding: 12px; margin-top: 15px; }
      .mobile-dock { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: white; border-top: 1px solid var(--line); }
      .mobile-dock p { font-size: 9px; color: var(--muted); }
      .mobile-dock strong { font-size: 11px; color: var(--ink); font-weight: 500; display: block; margin-top: 2px; }
      .mobile-dock a { min-height: 44px; padding: 0 17px; font-size: 11px; }
      .toast { bottom: 90px; font-size: 11px; }
    }
    @media(max-width:370px) {
      .page { margin-left: 12px; margin-right: 12px; }
      .main-pane { padding-left: 17px; padding-right: 17px; }
      .header-inner { margin: 0 17px; }
      .header-contact { font-size: 10px; }
      .status-title { font-size: 29px; }
      .date { font-size: 22px; }
      .progress li { font-size: 8px; }
      .mobile-dock { padding-left: 15px; padding-right: 15px; gap: 8px; }
    }
    @media(prefers-reduced-motion:reduce) { * { animation: none !important; transition: none !important; } }
    @media print {
      body { padding: 0; }
      .preview-tools, .mobile-dock, .preview-note, .secondary-nav, .copy-button, #refresh, .toast { display: none !important; }
      .page { margin: 15px 0; }
      .delivery-layout { display: block; }
      .care-panel { display: none; }
      .main-pane { padding: 20px; }
      .header-inner { margin: 0 20px; }
    }
