:root { color-scheme: light; font-family: "Microsoft YaHei", system-ui, sans-serif; color: #20252b; background: #f3f5f6; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 1480px; margin: auto; }
header, section { padding: 24px 28px; }
header, .heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
header { background: #fff; border-bottom: 1px solid #d8dfe2; }
header span { color: #637079; font-size: 13px; }
h1 { font-size: 24px; margin: 0 0 5px; }
h2 { font-size: 18px; margin: 0 0 12px; }
p { line-height: 1.6; overflow-wrap: anywhere; }
section { margin: 0; background: white; border-bottom: 1px solid #d8dfe2; }
button, input { font: inherit; border: 1px solid #bcc7cd; border-radius: 4px; }
button { padding: 9px 14px; min-height: 40px; background: #fff; color: #243b48; cursor: pointer; }
button:hover { border-color: #237c74; }
button:disabled { opacity: .55; cursor: wait; }
button.primary { background: #116e64; border-color: #116e64; color: white; }
input { display: block; width: 100%; min-width: 0; margin-top: 7px; padding: 10px; }
label { font-size: 14px; font-weight: 600; min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.settings { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); gap: 18px; align-items: end; margin: 10px 0 18px; }
form.settings { grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto; }
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.types label { display: flex; align-items: center; gap: 8px; }
.types input { width: 18px; height: 18px; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { border-bottom: 1px solid #d8dfe2; text-align: left; padding: 11px 10px; min-width: 100px; vertical-align: top; }
th { background: #edf3f4; white-space: nowrap; }
td { max-width: 260px; overflow-wrap: anywhere; }
#message { margin: 0; padding: 12px 28px; min-height: 48px; color: #9c3128; }
#signin form { max-width: 400px; display: grid; gap: 15px; }
.remote-screen { width: min(100%, 1100px); aspect-ratio: 1100 / 750; background: #e7ecef; border: 1px solid #bcc7cd; }
#screen { display: block; width: 100%; height: 100%; object-fit: contain; touch-action: none; cursor: crosshair; }
.remote-tools { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.remote-tools label { flex: 1 1 240px; }
@media (max-width: 640px) {
  header, section { padding: 18px 16px; }
  h1 { font-size: 21px; }
  .settings, form.settings { grid-template-columns: 1fr; }
  .heading { align-items: start; }
  #message { padding: 10px 16px; }
}
