:root { color-scheme: light; }
* { box-sizing: border-box; }
html { background:#b6b6b0; }
body { margin:0; padding:22px 14px 40px; color:#101010; font:12px/1.45 "MS Sans Serif","Microsoft Sans Serif",Tahoma,Arial,sans-serif; }
[hidden] { display:none !important; }
.filter-defs { position:absolute; }
#page { width:936px; max-width:100%; margin:auto; padding:20px 24px 12px; background:#fff; border:1px solid #73736d; box-shadow:1px 1px 0 #555; }
h1,h2,h3,p { margin:0 0 8px; }
h1 { font-family:Fixedsys,Terminal,"MS Sans Serif",Tahoma,sans-serif; font-size:28px; font-weight:normal; line-height:1.2; }
h2 { margin-top:22px; font-size:15px; }
h3 { font-size:13px; }
body:not(.clean-text) h1,body:not(.clean-text) h2:not(.titlebar),body:not(.clean-text) .subtitle,body:not(.clean-text) nav,body:not(.clean-text) footer { text-shadow:.28px 0 rgba(0,0,0,.42); filter:url('#rough-text'); }
/* Never distort tokens, fingerprints, QR codes, progress, or form text. */
.masthead { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.edition { font:10px "Courier New",monospace; letter-spacing:.5px; color:#555; }
.subtitle { color:#444; font-size:11px; margin:2px 0 13px; }
a { color:#0000bb; text-decoration:underline; }
a:visited { color:#551a8b; }
a:hover { color:#b00; }
nav { line-height:1.8; }
hr { border:0; border-top:1px solid #777; margin:14px 0; }
.statusline { padding:4px 7px; border:1px solid #ccc; background:#f6f6f3; font:11px/1.5 "Courier New",monospace; }
.notice { border:1px solid #8b2424; background:#fff4ed; padding:9px 10px; margin:10px 0; white-space:pre-wrap; }
.window { background:#efefea; border:2px solid; border-color:#fff #6b6b64 #6b6b64 #fff; box-shadow:1px 1px 0 #bbb; }
.titlebar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0; padding:4px 7px; color:#fff; background:#000080; font:bold 12px/1.4 Tahoma,Arial,sans-serif; }
.titlebar > span:last-child:not(:first-child) { font-size:9px; font-weight:normal; }
.window-body { padding:12px; }
.window-body p:last-child { margin-bottom:0; }
#locked { max-width:620px; margin:24px auto 36px; }
fieldset { min-width:0; margin:18px 0; padding:12px; border:1px solid #888; }
legend { padding:0 6px; }
label { display:block; margin:6px 0 3px; }
input,textarea,select { max-width:100%; color:#111; background:#fff; border:2px solid; border-color:#777 #fff #fff #777; border-radius:0; font:12px/1.45 Tahoma,Arial,sans-serif; padding:5px 6px; }
input[type=text],input[type=password],textarea { width:100%; }
textarea { resize:vertical; }
input[type=checkbox] { margin-right:5px; }
button,.button { display:inline-block; margin:0; padding:4px 9px; color:#0000bb; background:#deded6; border:2px solid; border-color:#fff #66665f #66665f #fff; border-radius:0; font:inherit; text-align:center; text-decoration:none; cursor:pointer; }
button:hover,.button:hover { background:#eeeeea; }
button:active,.button:active { border-color:#66665f #fff #fff #66665f; }
button:disabled { color:#73736d; cursor:not-allowed; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,.button:focus-within { outline:2px dotted #000080; outline-offset:2px; }
button.danger { color:#980000; }
.default-button { font-weight:bold; outline:1px solid #222; }
.actions { display:flex; flex-wrap:wrap; gap:7px; align-items:center; margin:8px 0; }
.toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:12px 0 8px; }
#this-device { font-weight:bold; }
.workspace-grid { display:grid; grid-template-columns:240px minmax(0,1fr); gap:13px; align-items:start; }
.tabs { display:flex; gap:3px; margin-bottom:10px; }
.tabs button[aria-pressed=true] { font-weight:bold; color:#000; border-bottom-color:#efefea; }
#drop-zone { text-align:center; padding:20px 8px; margin-bottom:9px; border:1px dashed #888; background:#fff; }
#drop-zone.dragging { border:2px solid #000080; background:#ededff; }
.file-input { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }
.send-bottom { display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin:12px 0; }
.send-bottom label { margin:0; }
.send-bottom select { flex:1; min-width:120px; font-size:11px; }
.device { display:block; width:100%; margin:0 0 8px; padding:8px; text-align:left; color:#111; }
.device.selected { outline:1px dotted #000080; outline-offset:-5px; background:#e2e2f0; }
.device-name { display:block; font-weight:bold; overflow-wrap:anywhere; }
.device-state { display:block; color:#555; font-size:10px; margin-top:3px; }
.small { font-size:10px; color:#50504a; }
.empty { padding:10px 0; color:#666; font-size:11px; }
.transfer,.inbox-item { border:1px solid #999; padding:11px 12px; margin:9px 0; background:#f5f5f0; overflow-wrap:anywhere; }
.transfer-head { display:flex; justify-content:space-between; gap:12px; }
.transfer-state { font-size:10px; color:#000080; }
progress { width:100%; height:16px; border:1px solid #777; border-radius:0; background:#fff; appearance:none; }
progress::-webkit-progress-bar { background:#fff; }
progress::-webkit-progress-value { background:repeating-linear-gradient(90deg,#000080 0,#000080 9px,#fff 9px,#fff 11px); }
progress::-moz-progress-bar { background:#000080; }
.transfer-stat { font:11px/1.6 "Courier New",monospace; }
.transfer-message { font-size:11px; margin:4px 0; }
pre,.mono { font:11px/1.5 "Courier New",monospace; white-space:pre-wrap; overflow-wrap:anywhere; }
.inbox-item pre { margin:6px 0; max-height:230px; overflow:auto; }
table { width:100%; border-collapse:collapse; font-size:11px; }
th,td { border-bottom:1px solid #ccc; text-align:left; padding:6px 6px 6px 0; vertical-align:top; }
th { white-space:nowrap; font-weight:normal; }
.settings-grid { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:8px 12px; align-items:center; }
.settings-grid > * { min-width:0; }
.settings-grid select { width:100%; }
.settings-grid label { margin:0; }
.inline { display:flex; align-items:center; }
.manage { margin:10px 0; padding:9px 0; border-bottom:1px solid #bbb; }
.fingerprint { font:10px/1.5 "Courier New",monospace; overflow-wrap:anywhere; }
footer { text-align:center; font-size:10px; color:#555; line-height:1.45; }
footer p { margin:1px 0; }
.last-updated,.site-version { font-family:"Courier New",monospace; }
dialog { width:520px; max-width:calc(100% - 28px); max-height:calc(100dvh - 32px); overflow:auto; padding:3px; color:#111; background:#c0c0c0; border:2px solid; border-color:#fff #404040 #404040 #fff; box-shadow:1px 1px 0 #000; border-radius:0; font:12px/1.45 Tahoma,Arial,sans-serif; }
dialog::backdrop { background:rgba(0,0,0,.35); }
#dialog-x { font:16px/1 Tahoma,sans-serif; color:#000; padding:0 3px; min-width:20px; }
.dialog-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; padding:0 12px 12px; }
.qr { display:block; max-width:100%; height:auto; margin:12px auto; image-rendering:pixelated; background:#fff; }
.safety { font:bold 24px "Courier New",monospace; text-align:center; letter-spacing:3px; margin:12px 0; }
#dialog-body textarea { font:11px/1.4 "Courier New",monospace; }
summary { cursor:pointer; text-decoration:underline; }
@media (max-width:700px) {
  body { padding:8px 6px 22px; }
  #page { padding:14px 12px 10px; }
  .edition { display:none; }
  .workspace-grid { grid-template-columns:1fr; }
  .settings-grid { grid-template-columns:minmax(0,1fr); gap:5px; }
  button,.button { min-height:36px; padding:7px 9px; }
  input,textarea,select { font-size:16px; }
  .device { min-height:48px; }
  .titlebar { font-size:12px; }
  .window > .titlebar span { display:none; }
  .send-bottom select { font-size:12px; }
  .transfer-head { display:block; }
  #dialog-x { min-height:24px; }
}
@media print { body { background:#fff; }#locked,dialog,.actions,.toolbar { display:none; } }
