body{color:#111827;margin:0;font-family:system-ui,sans-serif}:root{--device:#16a34a;--device-bg:#f0fdf4;--cloud:#2563eb;--cloud-bg:#eff6ff;--bump:#ea580c;--bump-bg:#fff7ed;--line:#e5e7eb;--muted:#6b7280}*{box-sizing:border-box}button{font:inherit;background:var(--device);color:#fff;cursor:pointer;white-space:nowrap;border:none;border-radius:8px;padding:9px 14px}button:disabled{opacity:.5;cursor:default}button.secondary{color:#111827;border:1px solid var(--line);background:#fff}button.cloud{background:var(--cloud)}button.icon{color:var(--muted);background:0 0;padding:0 6px;font-size:22px}input,textarea{font:inherit;border:1px solid var(--line);border-radius:8px;width:100%;padding:9px 10px}textarea{resize:vertical}.muted{color:var(--muted)}.small{font-size:13px}.row{align-items:stretch;gap:8px;display:flex}.row.end{justify-content:flex-end}.layout{grid-template-columns:1fr;height:100vh;display:grid}.layout.with-bump{grid-template-columns:1fr 440px}.main{flex-direction:column;min-width:0;height:100vh;display:flex}.top{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:14px 24px;display:flex}.top h1{margin:0;font-size:20px}.tagline{color:var(--muted);margin:0;font-size:13px}.top-right{align-items:center;gap:8px;display:flex}.pill{color:var(--muted);background:#f3f4f6;border-radius:999px;padding:6px 10px;font-size:13px}.pill.available{background:var(--device-bg);color:var(--device);font-weight:600}.pill.downloading{background:var(--device-bg);color:var(--device)}.pill.action{border-radius:999px}.chat{flex-direction:column;flex:1;gap:12px;padding:24px;display:flex;overflow-y:auto}.empty{text-align:center;max-width:480px;color:var(--muted);margin:auto}.msg{white-space:pre-wrap;border-radius:12px;max-width:75%;padding:10px 14px;line-height:1.5}.msg p{margin:4px 0 0}.msg.user{background:#f3f4f6;align-self:flex-end}.msg.local{background:var(--device-bg);align-self:flex-start}.msg.pending{color:var(--device)}.where{font-size:12px;font-weight:600}.where.device{color:var(--device)}.where.cloud{color:var(--cloud)}.hint{background:var(--bump-bg);border:1px solid #fed7aa;border-radius:12px;align-self:flex-start;align-items:center;gap:12px;padding:10px 14px;font-size:14px;display:flex}.bump-btn{background:var(--bump)}.result{flex-direction:column;align-self:flex-start;gap:6px;max-width:75%;display:flex}.col{white-space:pre-wrap;border-radius:12px;padding:10px 14px;line-height:1.5}.col p{margin:4px 0 0}.cloud-col{background:var(--cloud-bg)}.device-col{background:var(--device-bg)}.receipt{color:var(--muted);margin:0;font-size:13px}.tag{background:var(--bump);color:#fff;border-radius:4px;padding:0 4px;font-family:ui-monospace,monospace;font-size:.9em}mark{border-radius:4px;padding:0 2px}mark.restored{background:#bbf7d0}mark.hid{background:#fed7aa}mark.sent{color:inherit;background:0 0;-webkit-text-decoration:underline dotted #9ca3af;text-decoration:underline dotted #9ca3af}.divider{color:var(--device);align-items:center;gap:10px;font-size:13px;font-weight:600;display:flex}.divider:before,.divider:after{content:"";border-top:1px dashed var(--device);flex:1}.notice,.banner{color:#9a3412;background:var(--bump-bg);border-radius:8px;margin:0;padding:8px 12px;font-size:13px}.banner{margin:0 24px}.error{color:#b91c1c;font-size:14px}.composer{padding:12px 24px 20px}.composer-label{color:var(--device);margin:0 0 6px;font-size:13px;font-weight:600}.composer textarea{border:2px solid var(--device)}.bump{border-left:3px solid var(--bump);background:#fffdfb;flex-direction:column;gap:14px;height:100vh;padding:16px 20px;display:flex;overflow:hidden}.bump-scroll{flex-direction:column;flex:1;gap:18px;min-height:0;padding-right:4px;display:flex;overflow-y:auto}.preview-box{flex:none}.bump h2{color:var(--bump);margin:0}.bump h3{margin:0 0 8px;font-size:14px}.bump-head{justify-content:space-between;align-items:flex-start;display:flex}.bump-head p{color:var(--muted);margin:4px 0 0;font-size:13px}.items{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.items li{border:1px solid var(--line);background:#fff;border-radius:8px;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;display:flex}.items .type{text-transform:uppercase;color:var(--muted);margin-right:6px;font-size:11px}.items .value{font-weight:600}.items .src{color:var(--muted);font-size:11px;display:block}.item-text{min-width:0}.items .result{font-size:12px;font-weight:600;display:block}.items .result.hid{color:var(--bump)}.items .result.sent{color:#374151}.switch-wrap{cursor:pointer;flex:none;align-items:center;gap:8px;font-size:13px;font-weight:600;display:flex}.switch{background:#d1d5db;border-radius:999px;width:46px;height:28px;padding:0;transition:background .2s;position:relative}.switch.on{background:var(--bump)}.switch .knob{background:#fff;border-radius:50%;width:22px;height:22px;transition:transform .2s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0000004d}.switch.on .knob{transform:translate(18px)}.preview{background:var(--cloud-bg);white-space:pre-wrap;border:1px solid #bfdbfe;border-radius:8px;max-height:32vh;margin:0;padding:10px;font-family:inherit;font-size:14px;line-height:1.6;overflow-y:auto}.bump .row+.row{margin-top:10px}.note{color:#9a3412;margin:6px 0 0;font-size:13px}.actions{flex-direction:column;gap:8px;display:flex}.bump section>button{margin-top:8px}@media (width<=900px){.layout.with-bump{grid-template-columns:1fr}.layout.with-bump .main{display:none}}button.inline{font:inherit;white-space:normal;cursor:pointer;border-radius:4px;padding:0 4px;display:inline}button.inline.tag{background:var(--bump);color:#fff;font-family:ui-monospace,monospace;font-size:.9em}button.inline.sent{color:inherit;background:0 0;padding:0;-webkit-text-decoration:underline dotted #9ca3af;text-decoration:underline dotted #9ca3af}button.inline:hover{outline:2px solid var(--bump)}.recaptcha-note{color:var(--muted);margin:8px 0 0;font-size:11px}.recaptcha-note a{color:inherit}.sent-note{color:var(--muted);margin-bottom:6px;font-size:12px}.sent-note summary{cursor:pointer;list-style:none}.sent-note summary::-webkit-details-marker{display:none}.sent-note[open] summary{margin-bottom:4px}.sent-note p{background:var(--cloud-bg);border-radius:6px;margin:0;padding:6px 8px}.col-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.col{transition:background .2s}.small-switch{color:var(--muted);font-size:12px}.switch.device.on{background:var(--device)}.cloud-col .tag{color:#1e40af;background:#bfdbfe}.preview span.sent.inline{cursor:text;-webkit-text-decoration:underline dotted #9ca3af;text-decoration:underline dotted #9ca3af}
