:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background:#f4f1ea; color:#151816; }
* { box-sizing:border-box; }
html { width:100%; max-width:100%; overflow-x:hidden; overscroll-behavior:none; }
body { width:100%; max-width:100%; margin:0; min-height:100vh; overflow-x:hidden; background:radial-gradient(circle at 50% 20%,#fff 0,#f4f1ea 48%,#e9e5dc 100%); overscroll-behavior:none; }
button,input,textarea,select { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
.privacy-curtain { position:fixed; z-index:9999; inset:0; display:none; place-content:center; justify-items:center; gap:14px; background:#f4f1ea; color:#343934; font-size:11px; font-weight:760; letter-spacing:.18em; }
.privacy-curtain img { width:44px; height:44px; }
html.privacy-covered .privacy-curtain { display:grid; }
html.privacy-covered .shell { visibility:hidden; }
.shell { width:100%; max-width:100%; min-height:100vh; overflow-x:hidden; }
.topbar { height:68px; padding:0 32px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #d7d3ca; background:rgba(255,255,255,.72); backdrop-filter:blur(18px); }
.brand { display:flex; gap:10px; align-items:center; color:#151816; text-decoration:none; font-size:13px; letter-spacing:.18em; font-weight:750; }
.brand-mark { display:block; width:31px; height:31px; object-fit:contain; }
.privacy-state { display:flex; align-items:center; gap:8px; color:#62665f; font-size:12px; }
.status-dot { width:7px; height:7px; border-radius:50%; background:#999c96; box-shadow:0 0 0 4px #e7e7e2; }
.status-dot.connected,.privacy-state .connected { background:#16a064; box-shadow:0 0 0 4px #d9f1e4; }
.landing { width:min(820px,calc(100% - 40px)); margin:0 auto; min-height:calc(100vh - 68px); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:56px 0 80px; }
.shield { width:112px; height:112px; display:grid; place-items:center; border:1px solid #d1cdc3; border-radius:30px; background:#fff; box-shadow:0 18px 60px rgba(38,42,36,.1); margin-bottom:28px; overflow:hidden; }
.shield img { width:92px; height:92px; object-fit:contain; }
.eyebrow { margin:0 0 16px; color:#697068; font-size:10px; letter-spacing:.22em; font-weight:760; }
h1 { margin:0; font-size:clamp(42px,7vw,78px); letter-spacing:-.055em; line-height:.98; font-weight:650; }
h1 span { color:#787c76; }
.lede { max-width:590px; margin:28px auto; color:#5f645d; font-size:17px; line-height:1.6; }
.primary,.link-button { border:0; border-radius:14px; padding:15px 23px; color:#fff; background:#171a18; font-weight:680; cursor:pointer; box-shadow:0 10px 24px rgba(10,12,10,.17); text-decoration:none; }
.primary:hover,.link-button:hover { background:#2a2e2b; }
.facts { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin-top:34px; }
.facts span { border:1px solid #d8d4cb; border-radius:999px; background:#ffffffa8; padding:8px 12px; color:#565c55; font-size:11px; }
.honesty,.small { color:#7a7e78; font-size:11px; line-height:1.55; max-width:650px; margin-top:28px; }
.live-usage { margin:16px 0 -14px; color:#727770; font-size:10px; letter-spacing:.06em; text-transform:uppercase; }
.hidden { display:none !important; }
.panel { width:min(680px,calc(100% - 40px)); margin:12vh auto; padding:44px; border:1px solid #d7d3ca; border-radius:24px; background:#fff; box-shadow:0 30px 90px rgba(28,31,27,.12); text-align:center; }
.panel h1 { font-size:44px; }
.panel p { color:#666b64; line-height:1.6; }
.copy-row { display:flex; margin:28px 0 14px; padding:6px; border:1px solid #d9d5cc; border-radius:14px; background:#f7f5f0; }
.copy-row input { min-width:0; flex:1; border:0; background:transparent; padding:10px; color:#343834; outline:none; }
.copy-row button,.secondary { border:1px solid #cbc7be; border-radius:10px; background:#fff; padding:10px 14px; cursor:pointer; }
.copy-row button:disabled { cursor:wait; opacity:.45; }
.invite-kind { margin:8px auto 0; color:#855f25 !important; }
.danger-ghost { border:0; background:transparent; color:#9b3d3d; cursor:pointer; margin-top:22px; padding:10px; }
.chat { display:grid; grid-template-columns:300px minmax(0,1fr); height:calc(100vh - 68px); }
.session-card { padding:28px; border-right:1px solid #d9d5cc; background:#f8f6f1; overflow:auto; }
.mobile-session-bar { display:none; }
.session-card h2 { margin:0 0 8px; font-size:17px; color:#a23f3f; }
.session-card h2.verified { color:#087948; }
.session-card p { font-size:12px; color:#626760; line-height:1.5; }
.safety-number { display:block; margin:24px 0; padding:16px; border:1px solid #d7d3ca; border-radius:12px; background:#fff; font:600 15px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.1em; overflow-wrap:anywhere; }
.divider { height:1px; background:#ddd9d0; margin:28px 0; }
.session-card label { display:block; font-size:11px; color:#656a63; margin-bottom:8px; }
.session-card select { width:100%; padding:10px; border:1px solid #d4d0c7; border-radius:10px; background:#fff; }
.conversation { position:relative; min-width:0; display:flex; flex-direction:column; background:#fff; }
.privacy-watermark { position:absolute; z-index:1; inset:46% auto auto 50%; width:max-content; max-width:80%; transform:translate(-50%,-50%) rotate(-24deg); pointer-events:none; user-select:none; color:#182019; opacity:.045; font:800 clamp(18px,4vw,42px)/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing:.12em; }
.conversation > header { height:60px; padding:0 22px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #e3e0d9; color:#747872; font-size:11px; }
.conversation > header div { display:flex; gap:10px; align-items:center; color:#292d2a; }
#messages { flex:1; overflow:auto; list-style:none; margin:0; padding:28px; display:flex; flex-direction:column; gap:12px; }
.message { max-width:min(560px,80%); padding:12px 15px; border-radius:16px; background:#f0eee8; color:#242824; white-space:pre-wrap; overflow-wrap:anywhere; font-size:14px; line-height:1.45; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
.message.mine { margin-left:auto; background:#1d211e; color:#fff; }
.message.removing { opacity:0; transition:opacity .2s ease; }
#composer { display:flex; align-items:flex-end; gap:10px; padding:16px 20px 20px; border-top:1px solid #e3e0d9; }
#message-input { flex:1; resize:none; max-height:140px; border:1px solid #d7d3ca; border-radius:14px; padding:13px 14px; outline:none; }
#message-input:focus { border-color:#8e948c; box-shadow:0 0 0 3px #eceeea; }
.send { border:0; border-radius:12px; background:#171a18; color:#fff; padding:13px 17px; cursor:pointer; }
.send:disabled,#message-input:disabled { cursor:not-allowed; opacity:.48; }
.send span:last-child { display:none; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width:760px) {
  html.chat-active,body.chat-active { height:100%; overflow:hidden; }
  body { min-height:100dvh; }
  body.chat-active .shell { height:100%; overflow:hidden; }
  .topbar { height:58px; padding:0 14px; }
  .brand { gap:7px; font-size:11px; }
  .brand-mark { width:27px; height:27px; }
  .privacy-state { max-width:145px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .landing { min-height:calc(100dvh - 58px); padding:36px 0 52px; }
  .shield { width:86px; height:86px; border-radius:24px; margin-bottom:22px; }
  .shield img { width:72px; height:72px; }
  h1 { font-size:clamp(39px,12vw,56px); }
  .lede { margin:22px auto; font-size:15px; }
  .facts { margin-top:26px; }
  .panel { margin:6vh auto; padding:24px 18px; }
  .panel h1 { font-size:36px; }
  .copy-row { align-items:stretch; }
  .copy-row button { flex:none; }
  .chat { position:fixed; z-index:2; top:58px; left:0; width:100%; max-width:100%; display:flex; flex-direction:column; height:calc(100dvh - 58px); min-height:0; overflow:hidden; }
  .session-card { width:100%; max-width:100%; flex:none; padding:0; border-right:0; border-bottom:1px solid #d9d5cc; overflow:hidden; }
  .mobile-session-bar { height:52px; padding:0 14px; display:flex; align-items:center; justify-content:space-between; background:#f8f6f1; }
  .mobile-session-bar div { min-width:0; display:flex; align-items:baseline; gap:8px; }
  .mobile-session-bar strong { font-size:12px; }
  .mobile-session-bar span { color:#9b3d3d; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
  .mobile-session-bar button { border:1px solid #d2cec5; border-radius:9px; background:#fff; padding:7px 11px; color:#353a35; font-size:11px; }
  .session-card:not(.mobile-open) > :not(.mobile-session-bar) { display:none; }
  .session-card.mobile-open { width:100%; max-width:100%; max-height:min(68dvh,560px); overflow-y:auto; overflow-x:hidden; padding-bottom:18px; }
  .session-card.mobile-open > :not(.mobile-session-bar) { max-width:calc(100% - 36px); margin-left:18px; margin-right:18px; }
  .session-card.mobile-open > select { width:calc(100% - 36px); }
  .session-card.mobile-open > .eyebrow { margin-top:20px; }
  .session-card.mobile-open .safety-number { font-size:13px; padding:13px; }
  .conversation { width:100%; max-width:100%; flex:1; min-height:0; overflow:hidden; }
  .conversation > header { flex:none; height:44px; padding:0 14px; }
  .conversation > header span:last-child { display:none; }
  #messages { min-height:0; padding:14px 12px 96px; gap:8px; overscroll-behavior:contain; }
  .message { max-width:86%; padding:10px 13px; border-radius:15px; font-size:14px; }
  #composer { position:fixed; z-index:6; left:0; right:0; bottom:var(--keyboard-inset,0px); width:100%; max-width:100%; gap:8px; padding:9px 10px calc(9px + env(safe-area-inset-bottom)); border-top:1px solid #e3e0d9; background:#fff; }
  #message-input { min-width:0; width:100%; min-height:44px; max-height:88px; padding:11px 12px; border-radius:13px; font-size:16px; }
  .send { width:44px; height:44px; flex:none; display:grid; place-items:center; padding:0; border-radius:13px; font-size:20px; }
  .send span:first-child { display:none; }
  .send span:last-child { display:inline; }
}
@media print {
  body > * { display:none !important; }
  body::after { content:"GHOSTWIRE private sessions cannot be printed."; display:grid; min-height:100vh; place-content:center; font:700 16px system-ui,sans-serif; }
}
