/* Guest permissions on the same workspace, message and composer design. */
[hidden]{display:none!important}
body[data-account="guest"][data-surface="conversation"] #web-workspace .assistant-main {
  grid-template-rows:auto minmax(0,1fr) auto auto;
}
#web-workspace .guest-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:56px;
  padding:6px 16px;
  border-bottom:1px solid var(--ws-line);
  background:var(--ws-surface);
}
#web-workspace .guest-header .assistant-identity { gap:10px; }
#web-workspace .guest-header .assistant-identity::before { display:none; }
.guest-assistant-mark {
  flex:0 0 44px;
  height:44px;
  background:url('/brand/vi-v1/logo/symbol-small-brand.svg') center / 32px 32px no-repeat;
}
#web-workspace .guest-header .identity-line h1 { font-size:17px; }
#web-workspace[aria-busy="true"] .guest-header .online-dot { visibility:hidden; }
.guest-header-actions { display:flex; align-items:center; gap:4px; }
#web-workspace .guest-header .guest-account {
  display:none;
  min-height:44px;
  padding:0 8px;
  border:0;
  background:transparent;
  color:var(--ws-accent);
  font-size:13px;
  white-space:nowrap;
}
#web-workspace .guest-header .guest-account:hover { background:var(--ws-hover); }
.guest-hero{margin:clamp(30px,12vh,120px) 0 18px}
.guest-hero h2{margin:0 0 12px;color:var(--ws-ink);font-size:clamp(25px,3vw,32px);font-weight:600;letter-spacing:-.03em}
.guest-hero p{margin:0;color:var(--ws-muted);font-size:15px;line-height:1.8}
.guest-examples{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.guest-examples button{min-height:44px;padding:9px 14px;border:1px solid var(--ws-line);border-radius:7px;background:var(--ws-surface);color:var(--ws-text-soft);font-size:13px;cursor:pointer}
.guest-examples button:hover{background:var(--ws-hover);color:var(--ws-ink)}
.guest-messages{display:flex;flex-direction:column;gap:24px}
#web-workspace .message.pending{color:var(--ws-muted)}
#web-workspace .message.failed{color:var(--ws-danger)}
.guest-status{width:min(100% - 48px,800px);min-height:24px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 auto;color:var(--ws-muted);font-size:12px;line-height:1.6}
.guest-status:has(span:empty):has(button[hidden]){min-height:0}
.guest-status .text-action{font-size:12px;flex-shrink:0;min-height:36px}
.guest-status a,.guest-status button{color:var(--ws-accent)}
.guest-auth{width:min(100% - 28px,440px);max-height:90dvh;margin:auto;padding:0;border:1px solid var(--ws-line);border-radius:12px;background:var(--ws-surface);color:var(--ws-ink);box-shadow:var(--vi-shadow)}
.guest-auth::backdrop{background:#141c2c66}
.guest-auth-inner{position:relative;padding:30px 26px;max-height:90dvh;overflow:auto}
.guest-auth h2{margin:8px 0;font-size:25px;font-weight:600}
.guest-auth p{font-size:14px;line-height:1.8;color:var(--ws-muted)}
.guest-close{position:absolute;right:12px;top:12px;width:44px;height:44px;border:0;border-radius:7px;background:transparent;color:var(--ws-muted);font-size:24px;cursor:pointer}
.guest-auth form{display:flex;flex-direction:column;gap:9px;margin-top:22px}
.guest-auth label{font-size:13px;font-weight:500;margin-top:7px}
.guest-auth input{min-width:0;width:100%;height:46px;padding:0 12px;border:1px solid var(--ws-control);border-radius:7px;color:var(--ws-ink);background:var(--ws-surface);font-size:16px}
.guest-code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.guest-code-row button{min-width:110px;min-height:46px;padding:8px 12px;border:1px solid var(--ws-line);border-radius:7px;color:var(--ws-ink);background:var(--ws-subtle);font-size:13px;cursor:pointer}
.guest-primary{width:100%;min-height:46px;padding:10px 16px;margin-top:12px;border:0;border-radius:7px;color:var(--ws-on-accent);background:var(--ws-accent);font-size:15px;cursor:pointer}
.guest-auth button:disabled{opacity:.55;cursor:wait}
.guest-auth .guest-form-message{min-height:20px;margin:12px 0 0;font-size:13px;color:var(--ws-danger)}
.guest-form-message[data-kind="success"]{color:var(--ws-muted)}
@media (max-width:759px), (max-height:540px) and (pointer:coarse) {
  #web-workspace .guest-header { min-height:64px; padding:8px 12px; }
  #web-workspace .guest-header .assistant-identity { gap:6px; }
  #web-workspace .guest-header .guest-account { display:inline-flex; align-items:center; }
  .guest-hero { margin-top:clamp(20px,7vh,60px); }
  .guest-status { width:calc(100% - 36px); }
  .guest-auth-inner { padding:28px 22px; }
  .guest-examples { gap:8px; }
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Guest entry follows the same name and control geometry contract. */
#web-workspace .guest-header .identity-line{flex-shrink:0;min-width:max-content}
#web-workspace .guest-header .identity-line h1{white-space:nowrap;word-break:keep-all;flex-shrink:0}
.guest-examples button{border-radius:var(--vi-radius-control)}
