:root { --c:#d83b01; --c2:#a52a00; --bg:#faf8f6; --tx:#222; --mu:#6b6b6b; --bd:#e5e0da; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; color:var(--tx); background:var(--bg); line-height:1.5; }
a { color:var(--c); }
.wrap { max-width:1000px; margin:0 auto; padding:0 16px; }
.btn { display:inline-block; border:0; border-radius:8px; background:var(--c); color:#fff; padding:11px 22px; font-size:16px; cursor:pointer; text-decoration:none; }
.btn:hover { background:var(--c2); }
.btn.ghost { background:#fff; color:var(--c); border:1px solid var(--c); }
.top { background:#fff; border-bottom:1px solid var(--bd); }
.top .wrap { display:flex; align-items:center; justify-content:space-between; height:60px; }
.brand { font-weight:700; font-size:20px; color:var(--c); text-decoration:none; }
.hero { padding:64px 0 48px; text-align:center; }
.hero h1 { font-size:clamp(28px,5vw,44px); margin:0 0 12px; }
.hero p { color:var(--mu); font-size:18px; max-width:620px; margin:0 auto 24px; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; padding-bottom:40px; }
.card { background:#fff; border:1px solid var(--bd); border-radius:12px; padding:20px; }
.card h3 { margin:0 0 6px; }
.card p { margin:0 0 14px; color:var(--mu); font-size:15px; }
.sec { padding:32px 0; }
.sec h2 { text-align:center; margin:0 0 24px; }
ul.ticks { list-style:none; padding:0; margin:0; display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
ul.ticks li::before { content:"✓ "; color:var(--c); font-weight:700; }
footer { text-align:center; color:var(--mu); padding:28px 0 90px; font-size:14px; }

/* chat widget */
#chat-fab { position:fixed; right:16px; bottom:16px; z-index:50; }
#chat-box { position:fixed; right:16px; bottom:16px; z-index:60; width:360px; max-width:calc(100vw - 32px); height:520px; max-height:calc(100vh - 32px); background:#fff; border:1px solid var(--bd); border-radius:14px; box-shadow:0 10px 40px rgba(0,0,0,.2); display:none; flex-direction:column; overflow:hidden; }
#chat-box.open { display:flex; }
.chat-head { background:var(--c); color:#fff; padding:12px 14px; display:flex; justify-content:space-between; align-items:center; font-weight:600; }
.chat-head button { background:none; border:0; color:#fff; font-size:22px; cursor:pointer; }
.chat-msgs { flex:1; overflow-y:auto; padding:12px; background:var(--bg); display:flex; flex-direction:column; gap:8px; }
.msg { max-width:80%; padding:8px 12px; border-radius:12px; word-wrap:break-word; white-space:pre-wrap; font-size:15px; }
.msg small { display:block; font-size:11px; opacity:.6; margin-top:2px; }
.msg img { max-width:100%; border-radius:8px; display:block; }
.msg.me { align-self:flex-end; background:var(--c); color:#fff; }
.msg.them { align-self:flex-start; background:#fff; border:1px solid var(--bd); }
.chat-form { display:flex; gap:6px; padding:8px; border-top:1px solid var(--bd); align-items:flex-end; }
.chat-form textarea { flex:1; resize:none; border:1px solid var(--bd); border-radius:8px; padding:8px; font:inherit; max-height:90px; }
.chat-form .ic { background:none; border:1px solid var(--bd); border-radius:8px; padding:8px 10px; cursor:pointer; font-size:16px; }
.chat-note { font-size:12px; color:var(--mu); text-align:center; padding:4px 8px; }
.chat-start { padding:14px; display:grid; gap:8px; }
.chat-start input { border:1px solid var(--bd); border-radius:8px; padding:9px; font:inherit; }

/* admin */
.adm { max-width:900px; margin:0 auto; padding:16px; }
.adm-bar { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; gap:8px; }
.conv { display:flex; justify-content:space-between; gap:12px; background:#fff; border:1px solid var(--bd); border-radius:10px; padding:12px 14px; margin-bottom:8px; text-decoration:none; color:inherit; }
.conv.closed { opacity:.55; }
.conv .nm { font-weight:600; }
.conv .pv { color:var(--mu); font-size:14px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:60vw; }
.badge { background:var(--c); color:#fff; border-radius:999px; padding:1px 8px; font-size:12px; margin-left:6px; }
.adm-chat { display:flex; flex-direction:column; height:calc(100vh - 150px); background:#fff; border:1px solid var(--bd); border-radius:12px; overflow:hidden; }
.adm-chat .chat-msgs { flex:1; }
.login { max-width:340px; margin:80px auto; background:#fff; border:1px solid var(--bd); border-radius:12px; padding:24px; display:grid; gap:10px; }
.login input { border:1px solid var(--bd); border-radius:8px; padding:10px; font:inherit; }
.err { color:#b00020; font-size:14px; }
.push-bar { font-size:14px; color:var(--mu); margin-bottom:12px; }
.push-bar .push-link { background:none; border:0; color:var(--c); font:inherit; cursor:pointer; padding:0; text-decoration:underline; }
.push-ios-hint { background:#fff3e8; border:1px solid var(--bd); border-radius:8px; padding:10px; }
