/* Round 9: desktop presentation only; shared profile and flow remain unchanged. */
@media(min-width:980px){
 /* Desktop HOME uses the holiday film; legacy mobile strip stays out of scope. */
 html.tp-work-home body[data-stage=HOME] .travel-strip{display:none!important}
 html.tp-work-home .journey-shell .home-message-input,
 html.tp-work-home .journey-shell .home-message-input:focus-within{
  padding:14px 16px 12px!important;border:1px solid #646864!important;
  border-radius:24px!important;background:#fff!important;box-shadow:none!important;
  display:flex;flex-direction:column;gap:0;outline:0;transition:none;
 }
 html.tp-work-home[data-composer-input=keyboard] .journey-shell .home-message-input:focus-within{outline:1px dashed #646864;outline-offset:4px}
 html.tp-work-home .home-message-input::before{display:none!important}
 html.tp-work-home .journey-shell textarea#message{
  border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;
  padding:4px 2px!important;font-size:18px!important;font-weight:400!important;line-height:1.45!important;
  height:clamp(50px,7.5dvh,74px)!important;min-height:50px!important;max-height:96px!important;
  color:#202923!important;caret-color:#28322c;resize:none;
 }
 html.tp-work-home .home-message-input .home-start-prompt{
  font-size:13px!important;line-height:1.45!important;font-weight:400!important;color:#59685e!important;
  height:38px!important;min-height:38px!important;margin:0 2px 7px!important;
 }
 html.tp-work-home .journey-shell .composer-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:12px;min-height:52px;flex:0 0 auto}
 html.tp-work-home .journey-shell .composer-right{display:flex;gap:10px;align-items:center;justify-content:flex-end}
 html.tp-work-home .journey-shell .composer-icon{
  display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;min-width:38px;
  border:0;border-radius:50%;padding:9px;background:#f0f1ee!important;color:#344139!important;
  box-shadow:none;cursor:pointer;transition:background .15s;
 }
 html.tp-work-home .journey-shell .composer-icon[hidden]{display:none!important}
 html.tp-work-home .journey-shell .composer-icon:hover{background:#e6ece5!important}
 html.tp-work-home .journey-shell .composer-icon svg{display:block;width:20px;height:20px}
 html.tp-work-home .journey-shell .composer-icon:focus-visible{outline:2px solid #626a65;outline-offset:3px}
 html.tp-work-home .journey-shell .composer-icon:disabled{opacity:.45;cursor:default}
 html.tp-work-home .journey-shell .composer-icon[data-recording=true]{background:#dff1e0!important;color:#087d27!important;box-shadow:0 0 0 3px #eaf4e9}
 html.tp-work-home .journey-shell .composer-bottom #send{min-height:40px;border-radius:22px;padding:10px 22px;font-size:14px;background:#07811b;color:#fff}
 html.tp-work-home .composer-attachment{position:relative;display:inline-flex}
 html.tp-work-home .composer-tooltip{
  position:absolute;left:0;bottom:calc(100% + 10px);width:max-content;max-width:250px;
  padding:8px 11px;border-radius:9px;background:#26382c;color:#fff;font:12px/1.4 Arial,Helvetica,sans-serif;
  opacity:0;visibility:hidden;pointer-events:none;z-index:10;box-shadow:0 4px 15px #1e32281a;
 }
 html.tp-work-home .composer-attachment:hover .composer-tooltip,
 html.tp-work-home .composer-attachment:focus-within .composer-tooltip{opacity:1;visibility:visible}
 html.tp-work-home .home-composer-meta{display:flex;align-items:start;justify-content:space-between;gap:10px;margin:6px 3px 0;min-height:16px}
 html.tp-work-home .home-keyboard-hint{margin:0;font-size:10px!important;flex:0 0 auto;color:#738077}
 html.tp-work-home .dictation-status{font:11px/1.4 Arial,Helvetica,sans-serif;color:#4f6757;text-align:right}
 html.tp-work-home .journey-shell .chat-tools{grid-template-columns:minmax(0,1fr);gap:0;margin:0 0 4px;min-height:42px}
 html.tp-work-home .journey-shell .chat-status-slot{width:100%;height:42px;min-height:42px}
 html.tp-work-home body[data-stage=HOME][data-home-panels=false] .journey-shell .chat{background:transparent;border:0!important;box-shadow:none;padding:0 6px 4px!important}
 html.tp-work-home body[data-stage=HOME][data-home-panels=true] .journey-shell .chat{background:#fffffff7;border:1px solid #e0e8df;box-shadow:0 8px 26px #204e2c0b}
 html.tp-work-home body[data-stage=TRIPDNA] .journey-shell .chat,
 html.tp-work-home body[data-stage=TRIPDNA] .journey-side{background:#fff;box-shadow:0 8px 22px #254d2d0c;border-color:#d3e2d0}
 html.tp-work-home .holiday-background{position:fixed;inset:0;z-index:0;pointer-events:none;background:#f7fcf9;overflow:clip}
 html.tp-work-home .holiday-background>img,
 html.tp-work-home .holiday-background>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.83) brightness(1.08)}
 html.tp-work-home .holiday-background>video{opacity:0;transition:opacity .7s ease}
 html.tp-work-home .holiday-background.is-playing>video{opacity:1}
 html.tp-work-home .holiday-veil{position:absolute;inset:0;background:linear-gradient(90deg,#ffffff91 0%,#fffffff0 29%,#fffffff9 43%,#fffffff9 57%,#fffffff0 71%,#ffffff91 100%),linear-gradient(#ffffffe8 0%,#ffffff35 32%,#ffffff70 85%,#fff 100%)}
 html.tp-work-home body.has-holiday-background::before,
 html.tp-work-home body.has-holiday-background::after{opacity:.12!important;z-index:1!important}
 html.tp-work-home body.has-holiday-background>main,
 html.tp-work-home body.has-holiday-background>header,
 html.tp-work-home body.has-holiday-background>footer{position:relative;z-index:2}
 html.tp-work-home .holiday-motion-toggle{position:fixed;top:68px;right:18px;z-index:3;padding:5px 9px;border:1px solid #cddbcf;border-radius:20px;background:#ffffffe8;color:#52705c;font:11px/1.4 Arial,Helvetica,sans-serif;box-shadow:none}
 html.tp-work-home .holiday-motion-toggle:focus-visible{outline:2px solid #626a65;outline-offset:2px}
 html.tp-work-home .holiday-scene-picker{position:fixed;top:103px;right:18px;z-index:3;display:flex;flex-direction:column;gap:5px;width:174px;padding:8px 10px;border:1px solid #cddbcf;border-radius:12px;background:#fffffff5;color:#52705c;font:11px/1.4 Arial,Helvetica,sans-serif;box-shadow:0 3px 12px #254d2d0c}
 html.tp-work-home .holiday-scene-picker select{width:100%;min-height:30px;padding:4px;border:1px solid #cddbcf;border-radius:6px;background:#fff;color:#26382c;font:12px/1.4 Arial,Helvetica,sans-serif;cursor:pointer}
 html.tp-work-home .holiday-scene-picker select:focus-visible{outline:2px solid #626a65;outline-offset:2px}
}
@media(min-width:980px) and (max-height:720px){
 html.tp-work-home .journey-shell .home-message-input{padding:10px 13px!important;border-radius:21px!important}
 html.tp-work-home .journey-shell .composer-bottom{padding-top:8px;min-height:46px}
 html.tp-work-home .home-message-input .home-start-prompt{height:36px!important;min-height:36px!important;margin-bottom:4px!important}
}
@media(prefers-reduced-motion:reduce){.holiday-background>video{display:none!important;transition:none!important}.composer-icon{transition:none!important}}
@media(max-width:979px){.holiday-background,.holiday-motion-toggle,.holiday-scene-picker,.composer-bottom,.dictation-status{display:none!important}}


/* WORK desktop: cleaner holiday background and slightly higher initial HOME. */
@media(min-width:980px){
 html.tp-work-home body[data-stage=HOME]::before,
 html.tp-work-home body[data-stage=HOME]::after,
 html.tp-work-home body[data-stage=TRIPDNA]::before,
 html.tp-work-home body[data-stage=TRIPDNA]::after{content:none!important;display:none!important;background:none!important}
 html.tp-work-home body[data-stage=HOME][data-has-conversation=false] .journey-shell{
  box-sizing:border-box;padding-bottom:clamp(28px,6dvh,64px)!important;
 }
 html.tp-work-home .holiday-veil{
  background:linear-gradient(90deg,#ffffff44 0%,#ffffffe3 29%,#fffffff4 43%,#fffffff4 57%,#ffffffe3 71%,#ffffff44 100%),linear-gradient(#ffffffd9 0%,#ffffff10 32%,#ffffff30 85%,#ffffffd9 100%);
 }
}

/* Desktop answers are written in the conversation, without suggested-answer buttons. */
@media(min-width:980px){
 html.tp-work-home body[data-stage=HOME] .journey-suggestions,
 html.tp-work-home body[data-stage=TRIPDNA] .journey-suggestions{display:none!important}
}

/* Desktop HOME / TripDNA: category symbols, separate from completion markers. */
@media(min-width:980px){
 html.tp-work-home :is(body[data-stage="HOME"],body[data-stage="TRIPDNA"]) .journey-fact-label{gap:7px;min-height:18px}
 html.tp-work-home :is(body[data-stage="HOME"],body[data-stage="TRIPDNA"]) .journey-fact-label svg{width:18px;height:18px;flex:0 0 18px;color:#27765d;stroke-width:1.7}
}

@media(min-width:980px){
 html.tp-work-home .journey-room-note{display:block;margin-top:5px;color:#526b5e;font-size:12px;font-weight:500;line-height:1.45;overflow-wrap:anywhere}
}

/* WORK desktop: open conversation surface, keeping the existing scroll layout.
   Only the message bubbles and composer carry backgrounds; no full-height card.
   HOME's initial composer, summaries, controls and conversation logic are intact. */
@media(min-width:980px){
 html.tp-work-home body[data-stage=HOME][data-home-panels=true] .journey-shell .chat,
 html.tp-work-home body[data-stage=TRIPDNA] .journey-shell .chat{
  background:transparent!important;border:0!important;box-shadow:none!important;
  backdrop-filter:none!important;border-radius:0;padding:4px 6px!important;
 }
 html.tp-work-home :is(body[data-stage=HOME],body[data-stage=TRIPDNA]) .journey-shell .journey-chat-heading{display:none!important}
 html.tp-work-home :is(body[data-stage=HOME],body[data-stage=TRIPDNA]) .journey-shell .conversation-history{
  background:transparent;border:0;box-shadow:none;padding:4px 4px 2px;
 }
 html.tp-work-home :is(body[data-stage=HOME],body[data-stage=TRIPDNA]) .journey-shell .conversation-history:focus-visible{
  outline:1px dashed #646864;outline-offset:1px;border-radius:12px;
 }
 html.tp-work-home :is(body[data-stage=HOME],body[data-stage=TRIPDNA]) .journey-shell #turns{border:0;box-shadow:none;background:transparent}
 html.tp-work-home :is(body[data-stage=HOME],body[data-stage=TRIPDNA]) .journey-shell .work-chat-message{
  box-sizing:border-box;padding:12px 15px;margin-bottom:12px;border-radius:16px;
  box-shadow:0 2px 8px #244c3005;
 }
 html.tp-work-home :is(body[data-stage=HOME],body[data-stage=TRIPDNA]) .journey-shell .work-chat-message:not(.is-user){
  max-width:96%;margin-left:0;margin-right:auto;background:rgba(255,255,255,.88)!important;
  border:1px solid rgba(211,225,213,.48);color:#17372e;
 }
 html.tp-work-home :is(body[data-stage=HOME],body[data-stage=TRIPDNA]) .journey-shell .work-chat-message.is-user{
  max-width:92%;margin-left:auto;margin-right:0;background:rgba(232,243,232,.94)!important;
  border:1px solid rgba(193,216,197,.6);border-left:2px solid #69a67a;
 }
 html.tp-work-home :is(body[data-stage=HOME],body[data-stage=TRIPDNA]) .journey-shell .work-chat-message.is-user>p{
  font-size:17px!important;line-height:1.5!important;color:#173323;
 }
 html.tp-work-home :is(body[data-stage=HOME],body[data-stage=TRIPDNA]) .journey-shell .work-chat-message:not(.is-user) .message-copy{
  font-size:16px;line-height:1.55;color:#17372e;
 }
}

/* Desktop HOME completion: one transition card, with corrections still in chat. */
@media(min-width:980px){
 html.tp-work-home body[data-stage=HOME] #homeCompletionDetails,
 html.tp-work-home body[data-stage=HOME] #homeCompletionEdit,
 html.tp-work-home body[data-stage=HOME] #completionFinishEdit{display:none!important}
 html.tp-work-home body[data-stage=HOME] .journey-shell #homeCompletion{padding:16px 18px;margin:10px 0 4px}
 html.tp-work-home body[data-stage=HOME] #homeCompletionLead{margin:10px 0 16px;font-size:14px;line-height:1.55}
 html.tp-work-home body[data-stage=HOME] .journey-shell #homeCompletionNext{font-size:14px;padding:12px 16px}
 html.tp-work-home body[data-stage=HOME][data-home-completion-compact=true] .journey-shell .home-message-input{
  padding:8px 14px!important;border-radius:20px!important;
 }
 html.tp-work-home body[data-stage=HOME][data-home-completion-compact=true] .journey-shell textarea#message{
  height:36px!important;min-height:36px!important;max-height:36px!important;
 }
 html.tp-work-home body[data-stage=HOME][data-home-completion-compact=true] .journey-shell .composer-bottom{
  min-height:42px;padding-top:4px;
 }
}

/* TripDNA shares HOME's holiday surface, panels and unchanged conversation. */
@media(min-width:980px){
 html.tp-work-home .holiday-scene-picker{top:60px;margin:0;padding:6px 8px;font-size:10px;gap:4px}
 html.tp-work-home .holiday-motion-toggle{top:126px;margin:0;padding:3px 8px;font-size:10px;min-height:22px}
 html.tp-work-home body[data-stage=TRIPDNA]{background:#fff!important}
 html.tp-work-home body[data-stage=TRIPDNA] .journey-shell .conversation-layout{
  padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;
 }
 html.tp-work-home body[data-stage=TRIPDNA] .journey-side{
  background:#f5faf4f5;border:1px solid #d3e2d0;box-shadow:0 5px 16px #21482b08;
 }
 html.tp-work-home body[data-stage=TRIPDNA] .journey-shell{gap:clamp(6px,1.1dvh,12px)!important}
 html.tp-work-home body[data-stage=TRIPDNA] .journey-notices{width:min(1320px,100%)}
 html.tp-work-home body[data-stage=TRIPDNA] #tripBrief:not([hidden]){
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 18px;
  padding:10px 18px;border:1px solid #d3e2d0;border-radius:14px;
  background:#ffffffdc;text-align:left;font-family:inherit;
 }
 html.tp-work-home #tripBrief .trip-brief-item{min-width:0}
 html.tp-work-home #tripBrief .trip-brief-label{display:block;font-size:10px;line-height:1.3;color:#617466;margin-bottom:2px}
 html.tp-work-home #tripBrief .trip-brief-value{display:block;font-size:12px;line-height:1.4;font-weight:600;color:#214d3c;overflow-wrap:anywhere}
 html.tp-work-home body[data-stage=TRIPDNA] .journey-facts li{padding-bottom:12px}
 html.tp-work-home body[data-stage=TRIPDNA] #dnaPreview{padding:16px 18px;border:1px solid #c9e1d3;border-radius:16px;background:#edf6f0;margin:10px 0 4px}
 html.tp-work-home body[data-stage=TRIPDNA] #dnaPreview details{display:none}
 html.tp-work-home body[data-stage=TRIPDNA] #dnaPreview h2{font-size:18px;margin:0 0 10px;color:#153f33}
 html.tp-work-home body[data-stage=TRIPDNA] #dnaPreviewNext{width:100%;padding:12px 16px;background:#176b58;color:white;border:0;border-radius:10px;font-size:14px}
}
@media(min-width:980px) and (max-height:720px){
 html.tp-work-home body[data-stage=TRIPDNA] #tripBrief:not([hidden]){gap:5px 14px;padding:7px 14px}
 html.tp-work-home #tripBrief .trip-brief-value{font-size:11px;line-height:1.3}
}
