/* A small desktop companion, presented in the shared research desk theme. */
.desktop-app-intro,.desktop-app-form,.desktop-app-pairing,.desktop-app-connected { min-width:0; }
.desktop-app-intro p,.desktop-app-steps p,.desktop-app-connected p,.desktop-app-resume p { word-break:keep-all; overflow-wrap:anywhere; }
.desktop-app-kicker { font:600 11px/1.5 var(--p-mono); letter-spacing:.11em; color:var(--p-accent); }
.desktop-app-intro h3 { margin:12px 0; font-size:27px; line-height:1.45; font-weight:650; letter-spacing:-.045em; }
.desktop-app-intro>p:not(.desktop-app-kicker) { font-size:14px; line-height:1.8; color:var(--p-muted); }
.desktop-app-download { display:inline-flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:48px; padding:13px 15px; margin:20px 0 0; border:1px solid var(--p-accent); border-radius:var(--md-shape-s); color:var(--p-inverse)!important; background:var(--p-accent); font-size:14px; font-weight:650; text-decoration:none; text-align:center; line-height:1.5; }
.desktop-app-download:hover { filter:brightness(1.06); }
.desktop-app-download:not([href]) { opacity:.5; pointer-events:none; }
.desktop-app-download .p-icon { width:18px; height:18px; }
.desktop-app-intro>p.desktop-app-platform { margin-top:10px; font-size:11px; line-height:1.8; }
.desktop-app-platform span { display:block; color:var(--p-muted); }
.desktop-app-steps { display:grid; gap:17px; margin:25px 0 18px; padding:0; list-style:none; }
.desktop-app-steps li { display:flex; gap:12px; align-items:flex-start; }
.desktop-app-steps b { display:grid; place-items:center; flex:none; width:25px; height:25px; margin-top:1px; background:var(--p-accent-soft); color:var(--p-accent); border-radius:var(--md-shape-s); font:600 11px var(--p-mono); }
.desktop-app-steps strong { display:block; font-size:14px; line-height:1.7; font-weight:650; }
.desktop-app-steps p { color:var(--p-muted); font-size:13px; line-height:1.8; margin-top:4px; }
.desktop-app-download-help { border-top:1px solid var(--p-line); padding-top:4px; margin-bottom:22px; }
.desktop-app-download-help summary,.desktop-app-code-help summary { padding:12px 0; cursor:pointer; font-size:12px; line-height:1.7; color:var(--p-muted); }
.desktop-app-download-help p,.desktop-app-code-help p { color:var(--p-muted); font-size:12px; line-height:1.8; padding-bottom:12px; word-break:keep-all; overflow-wrap:anywhere; }
.desktop-app-form { margin-top:18px; padding-top:1px; }
.desktop-app-form>.primary { width:100%; margin-top:20px; min-height:46px; }
.desktop-app-pairing { margin-top:24px; padding:20px; background:var(--p-bg); border:1px solid var(--md-outline); border-radius:var(--md-shape-m); }
.desktop-app-pairing h3 { font-size:18px; outline-offset:5px; scroll-margin-top:110px; }
#desktop-app-expiry { font:11px/1.5 var(--p-mono); white-space:nowrap; color:var(--p-accent); }
.desktop-app-code-help { margin-top:12px; }
.desktop-app-code { display:flex; gap:8px; margin:0 0 12px; flex-wrap:wrap; }
.desktop-app-code input { flex:1 1 200px; width:auto; font:12px/1.8 var(--p-mono); }
.desktop-app-code button { flex:none; }
.desktop-app-pairing .desktop-pair-state { margin-top:12px; font-size:13px; }
.desktop-app-pairing .desktop-text-button { font-size:12px; min-height:44px; }
.desktop-app-connected { padding:20px; margin-top:22px; border:1px solid var(--p-accent); border-radius:var(--md-shape-m); background:var(--p-accent-soft); }
.desktop-app-connected h3 { margin:9px 0; font-size:20px; line-height:1.5; font-weight:650; }
.desktop-app-connected p { color:var(--p-muted); font-size:13px; line-height:1.8; }
.desktop-app-success-actions { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-top:16px; }
.desktop-app-success-actions a { display:inline-flex; align-items:center; min-height:44px; color:var(--p-accent); font-size:13px; font-weight:600; text-decoration:none; }
.desktop-app-success-actions button { font-size:12px; }
.desktop-manual { margin-top:28px; border-top:1px solid var(--p-line); }
.desktop-manual>summary { cursor:pointer; list-style:none; padding:19px 0; }
.desktop-manual>summary::-webkit-details-marker { display:none; }
.desktop-manual>summary strong { display:block; font-size:13px; font-weight:600; }
.desktop-manual>summary>span { display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:12px; margin-top:5px; color:var(--p-muted); }
.desktop-manual>summary>span>span { font-size:16px; }
.desktop-manual[open]>summary>span>span { transform:rotate(45deg); }
.desktop-manual .setup-guide { margin-top:4px; }
.desktop-app-resume { display:flex; align-items:flex-start; gap:12px; margin-top:22px; padding:19px; border:1px solid var(--md-outline); border-radius:var(--md-shape-m); }
.desktop-app-resume>.p-icon { flex:none; width:19px; height:19px; color:var(--p-accent); margin-top:2px; }
.desktop-app-resume strong { font-size:13px; line-height:1.7; font-weight:600; }
.desktop-app-resume p { color:var(--p-muted); font-size:12px; line-height:1.85; margin-top:7px; }
.desktop-app-pairing[hidden],.desktop-app-form[hidden],.desktop-app-connected[hidden] { display:none!important; }
.desktop-app-intro a:focus-visible,.desktop-manual>summary:focus-visible,.desktop-app-download-help summary:focus-visible,.desktop-app-code-help summary:focus-visible { outline:2px solid var(--p-accent); outline-offset:5px; }
@media(max-width:600px) {
  .desktop-app-intro h3 { font-size:25px; }
  .desktop-app-pairing { padding:16px; }
  .desktop-app-pairing .pairing-heading { flex-wrap:wrap; gap:8px; }
  .desktop-app-download { font-size:13px; }
  .desktop-app-success-actions { align-items:stretch; flex-direction:column; gap:4px; }
}
@media(prefers-reduced-motion:reduce) { .desktop-app-download { transition:none; } }
