/* Site Builder — Focus mode (public/focus.js)
   The Updates panel's own skin (.upc, updates.css) — paper, clay, the chat's
   composer — as a taller window centred along the foot of the screen, so it
   sits beside the panel rather than over it. The conversation reads as the
   editor's Claude panel does: you in a sand bubble, Claude under its star. */
.upf {
  --upc-w: 640px;
  left: 0; right: 0; margin: 0 auto; z-index: 905;
  height: min(720px, calc(100vh - 44px));
  transform-origin: bottom center;
}
.upf .upf-mark { background: linear-gradient(160deg, #3A3A38 0%, #141413 100%); box-shadow: 0 1px 2px rgba(20, 20, 19, .25), 0 3px 10px rgba(20, 20, 19, .22), inset 0 1px 0 rgba(255, 255, 255, .16); }
.upf .upf-mark svg { width: 16px; height: 16px; }
.upf .upc-titles p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upf .upf-chats {
  flex: 0 1 auto; max-width: 168px; height: 29px; padding: 0 24px 0 10px; background-color: transparent; background-position: right 8px center;
  border: 1px solid var(--cl-line); border-radius: 999px; box-shadow: none;
  font: 600 11px var(--sans); color: var(--cl-muted); cursor: pointer; text-overflow: ellipsis;
}
.upf .upf-chats[hidden] { display: none; }
.upf .upf-chats:hover { background-color: var(--cl-sand); color: var(--cl-ink); }

.upf-feed { gap: 10px; }
.upf-msg { font-size: 13.5px; line-height: 1.55; color: var(--cl-ink); overflow-wrap: anywhere; animation: upf-in .32s var(--ease-out) backwards; }
@keyframes upf-in { from { opacity: 0; transform: translateY(6px); } }
.upf-msg.user {
  align-self: flex-end; max-width: 88%; white-space: pre-wrap; padding: 9px 14px; margin-top: 6px;
  background: linear-gradient(180deg, #F6F4EF 0%, #EFECE4 100%);
  border: 1px solid var(--cl-line-soft); border-radius: 18px 18px 6px 18px;
  box-shadow: 0 1px 2px rgba(20, 20, 19, .05), 0 4px 14px rgba(20, 20, 19, .05), inset 0 1px 0 rgba(255, 255, 255, .85);
}
.upf-msg.claude { padding: 2px 2px 4px; }
:is(.upf, .ubc, .upl) .md { line-height: 1.62; }
:is(.upf, .ubc, .upl) .md > :first-child { margin-top: 0; }
:is(.upf, .ubc, .upl) .md > :last-child { margin-bottom: 0; }
:is(.upf, .ubc, .upl) .md p { margin: 0 0 9px; }
:is(.upf, .ubc, .upl) .md :is(h3, h4, h5, h6) { margin: 15px 0 6px; font-size: 13.5px; font-weight: 650; color: var(--cl-ink); }
:is(.upf, .ubc, .upl) .md :is(ul, ol) { margin: 0 0 9px; padding-left: 19px; }
:is(.upf, .ubc, .upl) .md li { margin: 3px 0; }
:is(.upf, .ubc, .upl) .md li::marker { color: var(--cl-muted); }
:is(.upf, .ubc, .upl) .md :is(b, strong) { font-weight: 650; }
:is(.upf, .ubc, .upl) .md a { color: var(--clay); text-decoration: underline; text-underline-offset: 2px; }
:is(.upf, .ubc, .upl) .md code { font: 500 11.8px/1.4 var(--mono); background: rgba(20, 20, 19, .045); color: #3A2A22; border: 1px solid var(--cl-line-soft); border-radius: 6px; padding: .5px 5px; word-break: break-word; }
:is(.upf, .ubc, .upl) .md pre { margin: 2px 0 11px; padding: 11px 13px; background: linear-gradient(180deg, #F5F3EE, #F0EDE6); border: 1px solid var(--cl-line-soft); border-radius: 12px; overflow-x: auto; }
:is(.upf, .ubc, .upl) .md pre code { background: none; border: none; padding: 0; font-size: 11.6px; line-height: 1.55; white-space: pre; color: var(--cl-ink); }
:is(.upf, .ubc, .upl) .md blockquote { margin: 0 0 9px; padding: 2px 0 2px 11px; border-left: 2px solid rgba(217, 119, 87, .5); color: var(--cl-muted); }
:is(.upf, .ubc, .upl) .md hr { border: none; border-top: 1px solid var(--cl-line); margin: 13px 0; }
/* what Claude looked at on the way: one quiet line each */
.upf-tool { font: 500 11px/1.45 var(--mono); color: var(--cl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 30px; margin: -4px 0; }
.upf-line { align-self: center; max-width: 92%; text-align: center; font-size: 11.5px; line-height: 1.45; color: var(--cl-muted); font-style: italic; }
.upf-line.err { color: #8C2D24; font-style: normal; }
.upf-busy { display: flex; align-items: center; gap: 8px; padding: 4px 2px; font-size: 12px; color: var(--cl-muted); }
.upf-busy .upd-spin { width: 12px; height: 12px; color: var(--clay); }
.upf-busy-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-size: 11px; }
.upf-empty { margin: auto; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--cl-muted); font-size: 12.5px; line-height: 1.5; }
.upf-empty svg { width: 26px; height: 26px; color: var(--clay); margin-bottom: 2px; }
.upf-empty b { font: 700 14px var(--sans); color: var(--cl-ink); }

.upf #upf-msg { min-height: 44px; max-height: 30vh; }
.upf .upf-pick { display: contents; }
/* Send off: the plan goes to Claude to build — a quiet clay pill at the card's foot */
.upf-off {
  all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 5px; height: 29px; padding: 0 11px 0 9px; flex-shrink: 0;
  border: 1px solid rgba(217, 119, 87, .45); border-radius: 999px; background: var(--clay-soft); color: #A64B28; cursor: pointer;
  font: 600 11.5px var(--sans); transition: background-color .16s var(--ease-out), color .16s var(--ease-out);
}
.upf-off svg { width: 13px; height: 13px; }
.upf-off:hover:not(:disabled) { background: var(--clay); color: #fff; }
.upf-off:disabled { opacity: .5; cursor: default; }
.upf-off.loading { opacity: .6; cursor: progress; }
.upf-off[hidden] { display: none; }
.upf-off:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
@media (max-width: 720px) { .upf { height: calc(100vh - 44px); } }
