:root { --blue:#1d6251; --ink:#202a26; --muted:#758078; --line:#dfe5df; --bg:#f6f7f5; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; color:var(--ink); background:var(--bg); font:14px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif; }
h1,h2,h3,p { margin:0 0 12px; }
h1,h2,h3 { overflow-wrap:anywhere; }
h1 { font-size:22px; line-height:1.3; } h2 { font-size:18px; } h3 { font-size:15px; }
button,input,textarea { font:inherit; }
button,input,textarea { border:1px solid var(--line); border-radius:8px; }
button { background:#fff; color:var(--ink); padding:9px 13px; cursor:pointer; }
button:hover:not(:disabled) { color:var(--blue); border-color:#a4c7f3; }
button:disabled { opacity:.55; cursor:default; }
button.primary { background:var(--blue); border-color:var(--blue); color:#fff; }
button.primary:hover:not(:disabled) { background:#0054bd; color:#fff; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible { outline:3px solid #97c3ff; outline-offset:2px; }
input,textarea { width:100%; background:#fff; color:var(--ink); padding:10px 12px; }
textarea { resize:vertical; min-height:88px; }
label { display:block; margin:18px 0 6px; font-weight:600; }
.page-header { padding:22px 28px; background:#fff; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:20px; }
.page-header p { color:var(--muted); margin:7px 0 0; }
.page-header > div { min-width:0; }
.workspace { display:grid; grid-template-columns:260px minmax(0,1fr); min-height:calc(100vh - 112px); }
.rail { padding:20px 16px; background:#fff; border-right:1px solid var(--line); }
.full-width { width:100%; }
.room { display:block; width:100%; text-align:left; margin-top:10px; padding:12px; overflow-wrap:anywhere; }
.room[aria-current="true"] { border-color:var(--blue); box-shadow:inset 3px 0 0 var(--blue); }
.room small { display:block; color:var(--muted); margin-top:5px; }
.content { min-width:0; padding:24px 28px 48px; max-width:1060px; width:100%; }
.card { border:1px solid var(--line); border-radius:12px; padding:24px; background:#fff; margin-bottom:20px; }
.muted { color:var(--muted); font-size:13px; }
.notice { background:#f1f6fe; border-radius:8px; padding:12px 14px; color:#36506e; margin:16px 0; font-size:13px; }
.status { color:var(--muted); min-height:0; margin:12px 0; overflow-wrap:anywhere; }
.status:empty { display:none; }
.status.error { color:#a32d36; background:#fdf4f4; padding:10px 12px; border-radius:8px; }
.section-head { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:12px; }
.section-head h2 { margin:0; }
.badge { color:var(--blue); background:#e7f1fe; border-radius:999px; padding:3px 10px; font-size:12px; white-space:nowrap; }
.link-row { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.link-row input { min-width:0; } .link-row button { flex:none; }
.actions { display:flex; gap:8px; flex-wrap:wrap; }
.preserve { white-space:pre-wrap; overflow-wrap:anywhere; }
.question { border-top:1px solid var(--line); padding-top:18px; margin-top:18px; }
.answer { border-left:3px solid #d7e7fc; padding:2px 0 2px 14px; margin:16px 0; }
.answer p { margin-bottom:4px; }
.markdown { overflow-wrap:anywhere; } .markdown pre { overflow-x:auto; padding:12px; background:var(--bg); }
.markdown table { border-collapse:collapse; display:block; overflow-x:auto; }
.markdown td,.markdown th { border:1px solid var(--line); padding:6px 8px; }
.response-page { max-width:760px; padding:36px 20px; margin:auto; }
.response-page .card { margin-top:20px; } .response-page h1 { font-size:26px; }
.response-page fieldset { border:0; margin:0; padding:0; min-width:0; }
.response-page .identity { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.response-page #response-submit { margin-top:24px; min-width:140px; }
@media (max-width:760px) {
  .page-header { padding:20px; align-items:flex-start; } .page-header button { flex:none; }
  .workspace { grid-template-columns:1fr; } .rail { border-right:0; border-bottom:1px solid var(--line); }
  #rooms { display:flex; gap:8px; overflow-x:auto; } .room { min-width:200px; max-width:280px; }
  .content { padding:18px 14px 36px; } .card { padding:20px; }
  .section-head { align-items:flex-start; flex-wrap:wrap; } .response-page { padding:24px 14px; }
  .response-page .identity { grid-template-columns:1fr; gap:0; } input,textarea { font-size:16px; }
}

.return-link { display:inline-block; margin-bottom:10px; font-size:12px; color:var(--muted); text-decoration:none; }
.owner-login { min-height:100dvh; display:grid; place-items:center; padding:24px; background:var(--bg); }.owner-login .card { width:min(420px,100%); margin:0; }.owner-login p { color:var(--muted); font-size:13px; }.owner-login button { width:100%; margin-top:18px; }
#import-summary { margin-top:18px; }

/* Shared conversation input for the owner and private branches. */
.compose-surface {
  --compose-accent:#1d6251;
  position:relative;
  border:1px solid #d8e1db;
  border-radius:16px;
  background:#fff;
  padding:14px;
  box-shadow:0 4px 16px #243d2d08;
  transition:border-color 180ms ease,box-shadow 180ms ease;
}
.compose-surface:focus-within { border-color:#739b89; box-shadow:0 0 0 3px #1d62510c; }
.compose-surface .compose-label { margin:0 2px 8px; font-size:12px; font-weight:500; color:#69766e; }
.compose-surface textarea {
  display:block;
  width:100%;
  min-height:84px;
  max-height:220px;
  padding:4px 2px 12px;
  border:0;
  border-radius:0;
  resize:vertical;
  background:transparent;
  font:inherit;
  font-size:14px;
  line-height:1.7;
}
.compose-surface textarea::placeholder { color:#89938d; }
.compose-surface textarea:focus-visible { outline:none; }
.compose-toolbar { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; min-width:0; }
.compose-voice-slot { min-width:0; flex:1; }
.compose-surface .compose-send {
  flex:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  margin:0;
  padding:8px 14px;
  border-radius:10px;
  font-size:13px;
  font-weight:600;
  line-height:22px;
}
.compose-send svg { width:17px; height:17px; }
.compose-surface .compose-send:disabled { background:#e7eeea; color:#8b9b91; border-color:#e7eeea; opacity:1; }
.compose-caption { margin:10px 2px 0; color:#819087; font-size:11px; line-height:1.6; }
.voice-input { display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-width:0; }
.voice-input button,.voice-input select,.voice-input summary { -webkit-tap-highlight-color:transparent; }
.voice-input .voice-toggle {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:40px;
  margin:0;
  padding:8px 10px;
  border:1px solid transparent;
  border-radius:9px;
  color:#506459;
  background:#f1f5f2;
  font-size:12px;
  font-weight:500;
  line-height:22px;
  transition:background 160ms ease,border-color 160ms ease,color 160ms ease;
}
.voice-icon,.voice-info-icon,.voice-chevron { display:block; width:16px; height:16px; flex:none; }
.voice-input .voice-toggle:hover:not(:disabled) { background:#e6eee8; border-color:#d2dfd5; color:#1d6251; }
.voice-input .voice-toggle[aria-pressed="true"] { background:#fff0ed; border-color:#eecfc7; color:#aa4a38; }
.voice-language { position:relative; display:inline-flex; align-items:center; margin:0; }
.voice-input .voice-language select {
  appearance:none;
  -webkit-appearance:none;
  width:auto;
  min-width:92px;
  min-height:40px;
  margin:0;
  padding:8px 26px 8px 10px;
  border:1px solid transparent;
  border-radius:9px;
  background:#fff;
  color:#67786c;
  font:inherit;
  font-size:12px;
  font-weight:400;
  line-height:22px;
  cursor:pointer;
}
.voice-input .voice-language select:hover:not(:disabled) { background:#f3f6f3; }
.voice-chevron { position:absolute; right:8px; width:12px; height:12px; color:#8c9a90; pointer-events:none; }
.voice-info { position:relative; margin:0; }
.voice-info-toggle { display:flex; align-items:center; justify-content:center; width:32px; height:40px; border-radius:8px; color:#8a988f; cursor:pointer; list-style:none; }
.voice-info-toggle::-webkit-details-marker { display:none; }
.voice-info-toggle:hover,.voice-info[open] .voice-info-toggle { color:#355e48; background:#f0f5f0; }
.voice-notice {
  position:absolute;
  left:0;
  bottom:calc(100% + 8px);
  width:240px;
  max-width:calc(100vw - 48px);
  margin:0;
  padding:12px 14px;
  border:1px solid #dce5dd;
  border-radius:10px;
  background:#fff;
  color:#5c6c62;
  font-size:12px;
  font-weight:400;
  line-height:1.7;
  box-shadow:0 8px 24px #233c2814;
  z-index:4;
}
.voice-status { flex-basis:100%; font-size:12px; line-height:1.6; padding:2px 2px 0; color:#65816d; }
.voice-input:is([data-state="permission"],[data-state="microphone"],[data-state="network"],[data-state="failed"],[data-state="limit"],[data-state="start"]) .voice-status { color:#a04738; }
.compose-surface button:focus-visible,.compose-surface select:focus-visible,.compose-surface summary:focus-visible { outline:2px solid #5e9179; outline-offset:3px; }
.compose-surface button:active:not(:disabled) { transform:translateY(1px); }
@media (max-width:600px) {
  .compose-surface { padding:12px; border-radius:14px; }
  .compose-surface textarea { min-height:80px; font-size:16px; }
  .compose-toolbar { gap:8px; }
  .compose-surface .compose-send { min-height:44px; padding:10px 12px; }
  .voice-input .voice-toggle,.voice-input .voice-language select { min-height:44px; }
  .voice-info-toggle { height:44px; width:44px; }
  .voice-input { gap:4px; }
  .voice-input .voice-toggle { padding:10px 8px; }
  .voice-input .voice-language select { min-width:78px; padding-left:6px; padding-right:22px; }
  .voice-info { position:static; }
  .voice-notice { left:12px; right:12px; bottom:calc(100% + 8px); width:auto; max-width:none; }
  .compose-caption { font-size:11px; }
}
@media (max-width:400px) {
  .voice-input .voice-label { display:none; }
  .voice-input .voice-toggle { width:44px; padding:10px; }
}
@media (max-width:360px) {
  .voice-input { gap:3px; }
  .compose-surface .compose-send { width:44px; padding:10px; }
  .compose-send > span { display:none; }
  .variant-columns .variant-conversation { padding:18px 12px; }
}
@media (prefers-reduced-motion:reduce) {
  .compose-surface,.voice-input .voice-toggle { transition:none; }
}
