/* Online Clipboard — minimal, mobile-first */
:root { color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.55; color: #1c2333; background: #f6f7f9; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.site-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 18px; color: #1c2333; text-decoration: none; }
.site-nav nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.site-nav nav a { color: #445; text-decoration: none; }
.site-nav nav a:hover { text-decoration: underline; }
.lang-switch button { border: 1px solid #ccd; background: #fff; border-radius: 6px; padding: 3px 8px; cursor: pointer; font-size: 13px; }
.lang-switch button.active { background: #2563eb; color: #fff; border-color: #2563eb; }
.hero { padding: 18px 0 8px; }
.hero h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; }
.lead { font-size: 17px; color: #333d52; }
.warning { background: #fff8e1; border: 1px solid #f0d48a; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.card { background: #fff; border: 1px solid #e3e6ec; border-radius: 12px; padding: 18px; margin: 16px 0; }
.card h2 { margin: 0 0 10px; font-size: 20px; }
.card h3 { margin: 18px 0 6px; font-size: 16px; }
.tiny { font-size: 13px; color: #667085; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.space-between { justify-content: space-between; }
input[type="text"], input[type="password"], select, textarea { font: inherit; padding: 9px 10px; border: 1px solid #cbd2dd; border-radius: 8px; background: #fff; color: inherit; }
input[type="text"], input[type="password"] { flex: 1; min-width: 180px; }
textarea { width: 100%; resize: vertical; min-height: 260px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; line-height: 1.5; }
textarea[readonly] { background: #f3f4f6; }
.btn { font: inherit; background: #2563eb; color: #fff; border: none; border-radius: 8px; padding: 9px 16px; cursor: pointer; }
.btn:hover { background: #1d4ed8; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.danger { background: #dc2626; }
.btn.danger:hover { background: #b91c1c; }
.btn.danger.armed { background: #7f1d1d; }
.ghost { font: inherit; background: none; border: none; color: #2563eb; cursor: pointer; padding: 4px 2px; }
.ghost.small { font-size: 13px; }
.ghost:hover { text-decoration: underline; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.banner { border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.banner.readonly { background: #eff6ff; border: 1px solid #bfdbfe; }
code { background: #eef1f5; padding: 1px 6px; border-radius: 5px; font-size: .92em; }
#recent-list { margin: 8px 0; padding-left: 20px; }
#recent-list li { margin: 4px 0; }
#recent-list a { color: #2563eb; }
#recent-list .tiny { margin-left: 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1c2333; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; z-index: 50; max-width: 90vw; text-align: center; }
footer { padding: 8px 16px 32px; }
[hidden] { display: none !important; }
@media (max-width: 560px) {
  .hero h1 { font-size: 24px; }
  .card { padding: 14px; }
}
