.online { min-width: 320px; }
.online-workbench { display: grid; grid-template-columns: 330px minmax(0, 1fr); max-width: 1400px; margin: 0 auto; min-height: calc(100vh - 131px); }
.online-connection { padding: 32px; background: #eef2f8; border-right: 1px solid var(--line); }
.online h1 { font-size: 28px; }
.online h2 { font-size: 22px; }
.online-connection form { margin-top: 24px; }
.online input:not([type=checkbox]):not([type=file]) { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--text); background: var(--surface); border: 1px solid #a7b6ca; border-radius: 6px; }
.online input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.online label:not(.picker):not(.check-label) { display: block; font-weight: 600; margin: 18px 0 7px; }
.online input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); }
.online .check-label { display: flex; align-items: center; gap: 7px; margin: 16px 0; font-size: 12px; }
.online .field-hint { font-size: 12px; color: var(--muted); margin-top: 7px; overflow-wrap: anywhere; }
.service-settings { margin: 18px 0; }
.service-settings summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 5px 0; }
#connect, #create-room { width: 100%; }
#pair-controls { margin-top: 24px; }
#room { padding-top: 18px; text-align: center; }
#room-code { display: block; font-size: 34px; font-weight: 650; letter-spacing: .13em; font-variant-numeric: tabular-nums; color: var(--accent); }
.join-divider { margin-top: 22px; font-size: 12px; color: var(--muted); }
.online #join-form { display: flex; gap: 8px; margin-top: 10px; }
#join-code { min-width: 0; font-variant-numeric: tabular-nums; }
.online-transfer { padding: 34px 38px; min-width: 0; }
.transfer-section + .transfer-section { margin-top: 38px; padding-top: 32px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.section-heading p { margin-top: 8px; font-size: 13px; max-width: 60ch; overflow-wrap: anywhere; }
.online .picker { position: relative; flex-shrink: 0; margin: 0; cursor: pointer; }
.online .picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.empty-transfer { padding: 26px 0; color: var(--muted); max-width: 62ch; }
.file-drop-zone { margin-top: 22px; padding: 22px; border: 1px dashed #8197b5; border-radius: 8px; background: var(--surface); }
.file-drop-zone strong { display: block; font-size: 16px; }
.file-drop-zone.drag-over { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.file-drop-zone.drag-over strong { color: var(--accent); }
.file-drop-zone[aria-disabled=true] { border-style: solid; border-color: var(--line); background: var(--background); }
.file-drop-zone[aria-disabled=true] strong { color: var(--muted); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.consent { padding: 18px 0; margin-top: 18px; border-top: 1px solid #b6c6df; border-bottom: 1px solid #b6c6df; }
.consent h2 { font-size: 18px; }
.consent p { margin-top: 9px; overflow-wrap: anywhere; }
.incoming { padding: 20px; background: var(--accent-soft); border: 1px solid #bdcfee; border-radius: 8px; }
.online ul { padding-left: 20px; margin: 12px 0; max-height: 190px; overflow-y: auto; }
.online li { padding: 4px 0; overflow-wrap: anywhere; }
#selection { padding: 22px 0 4px; }
#selection-summary { font-weight: 600; }
#peer-summary { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
#peer-name { overflow-wrap: anywhere; }
.privacy-note { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 30px; }
.online-notice { padding: 12px 16px; border: 1px solid #deb2ac; background: #fff0ed; color: #8a261f; margin-bottom: 24px; border-radius: 6px; overflow-wrap: anywhere; }
.transfer-ledger { margin-top: 18px; }
.file-progress { padding: 15px 0; border-bottom: 1px solid var(--line); }
.file-progress strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.file-progress p { font-size: 12px; color: var(--muted); margin-top: 7px; font-variant-numeric: tabular-nums; }
.file-progress progress { width: 100%; height: 6px; margin-top: 12px; appearance: none; border: 0; background: #dde5f0; border-radius: 3px; overflow: hidden; }
.file-progress progress::-webkit-progress-bar { background: #dde5f0; }
.file-progress progress::-webkit-progress-value { background: var(--accent); }
.file-progress progress::-moz-progress-bar { background: var(--accent); }
.download-row { margin-top: 15px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.download-row strong { display: block; overflow-wrap: anywhere; }
.download-row p { margin: 6px 0 10px; color: var(--muted); font-size: 12px; }
.online .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.online .app-footer { gap: 14px; }
@media (max-width: 950px) {
  .online .brand-caption { display: none; }
  .online-workbench { grid-template-columns: 290px minmax(0, 1fr); }
  .online-connection { padding: 26px 22px; }
  .online-transfer { padding: 28px 24px; }
  .section-heading { flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 680px) {
  .online .app-header { padding: 0 18px; height: 72px; }
  .online .header-actions { gap: 10px; }
  #connection-status { font-size: 12px; }
  .online-workbench { display: block; }
  .online-connection { padding: 24px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .online-transfer { padding: 28px 20px; }
  .online-connection .intro { margin-top: 10px; }
  .online .app-footer { padding: 16px 20px; height: auto; flex-wrap: wrap; }
}
