:root { color-scheme: light dark; font-family: system-ui, sans-serif; }
body { margin: 0; background: Canvas; color: CanvasText; }
main { padding: 22px; max-width: 38rem; margin: auto; }
h1 { font-size: 1.45rem; margin: 0 0 12px; }
p { line-height: 1.5; }
.note { color: GrayText; font-size: .9rem; }
label { display: block; margin-top: 16px; margin-bottom: 6px; font-weight: 600; }
input, button { box-sizing: border-box; width: 100%; padding: 11px; border-radius: 8px; font: inherit; }
input { border: 1px solid GrayText; background: Field; color: FieldText; }
button { margin-top: 20px; border: 0; background: #5631b5; color: white; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
input:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid Highlight; outline-offset: 3px; }
#status { min-height: 3em; }
details { font-size: .9rem; }

#connect{display:inline-block;padding:10px 14px;border-radius:8px;background:#8225d7;color:white;text-decoration:none}#connect[hidden]{display:none}

a { color: #a76bf0; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid Highlight; outline-offset: 4px; }
.installation main { max-width: 46rem; padding: 32px 24px 48px; }
.install-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; }
.brand img { border-radius: 9px; }
.badge { font-size: .78rem; color: GrayText; padding: 6px 10px; border: 1px solid color-mix(in srgb, CanvasText 18%, transparent); border-radius: 20px; }
.installation h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.04em; line-height: 1.1; margin-bottom: 18px; }
.lead { font-size: 1.1rem; max-width: 40rem; }
.download-button { display: inline-flex; gap: 24px; align-items: center; background: #8225d7; color: #fff; border-radius: 10px; padding: 14px 20px; font-weight: 600; text-decoration: none; margin: 12px 0 4px; }
.download-button:hover { background: #7020bc; }
.install-card { margin-top: 24px; padding: 24px; border: 1px solid color-mix(in srgb, CanvasText 14%, transparent); border-radius: 16px; }
.installation h2 { font-size: 1.2rem; margin: 0 0 18px; }
.install-steps { margin: 0; padding-left: 24px; }
.install-steps li { padding-left: 8px; margin: 24px 0 0; }
.install-steps li::marker { color: #a76bf0; font-weight: 700; }
.installation h3 { font-size: 1rem; margin: 0; }
.install-steps p { margin: 8px 0 12px; }
.folder-path { font-family: ui-monospace, monospace; font-size: .8rem; width: 100%; }
kbd { font-family: inherit; font-size: .9em; border: 1px solid GrayText; border-radius: 4px; padding: 1px 5px; margin-right: 3px; }
.installation footer { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; font-size: .85rem; }
@media (prefers-color-scheme: light) { a { color: #7020bc; } }
@media (max-width: 480px) { .installation main { padding: 24px 16px; } .install-card { padding: 18px; } .install-header { margin-bottom: 32px; } }

/* The Office pane has its own compact scale; installation pages retain theirs. */
.office-pane { --pane-muted: #64646e; --pane-line: #e5e5eb; --pane-surface: #f8f8fb; --pane-ink: #22222b; --pane-accent: #8225d7; font-size: 13px; line-height: 1.5; color: var(--pane-ink); background: #fff; }
.office-pane * { box-sizing: border-box; }
.office-pane main { max-width: 440px; padding: 20px; margin: 0 auto; }
.pane-brand { display: flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -.01em; }
.pane-brand img { border-radius: 7px; }
.pane-preview { margin-left: auto; color: var(--pane-muted); font-weight: 500; font-size: 10px; line-height: 1; border: 1px solid var(--pane-line); border-radius: 20px; padding: 5px 7px; }
.pane-intro { margin: 27px 0 21px; }
.office-pane h1 { font-size: 23px; line-height: 1.2; letter-spacing: -.035em; font-weight: 700; margin: 0 0 9px; }
.pane-intro p { font-size: 13px; line-height: 1.6; color: var(--pane-muted); margin: 0; }
.pane-action { padding: 17px; border: 1px solid var(--pane-line); border-radius: 12px; background: var(--pane-surface); }
.pane-connection { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--pane-muted); min-height: 22px; }
.connection-dot { height: 6px; width: 6px; flex: 0 0 6px; border-radius: 50%; background: #9696a1; }
.pane-action[data-state="connected"] .connection-dot { background: #25844a; }
.pane-action[data-state="waiting"] .connection-dot { background: #b47713; }
.office-pane h2 { font-size: 14px; line-height: 1.4; font-weight: 650; letter-spacing: -.015em; margin: 10px 0 15px; }
.office-pane #connect, .office-pane #capture { display: flex; width: 100%; align-items: center; justify-content: center; gap: 9px; padding: 11px 12px; margin: 0; border: 0; border-radius: 8px; color: #fff; background: var(--pane-accent); font-size: 13px; line-height: 1.35; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
.office-pane #connect:hover, .office-pane #capture:not(:disabled):hover { background: #7020bc; }
.office-pane #capture:disabled { opacity: .6; cursor: progress; }
.office-pane #disconnect { width: auto; padding: 2px 0 2px 6px; margin: 0 0 0 auto; border: 0; border-radius: 3px; background: transparent; color: var(--pane-muted); font-size: 11px; line-height: 1.5; font-weight: 500; }
.office-pane #disconnect:hover { color: var(--pane-ink); text-decoration: underline; }
.office-pane [hidden], .office-pane #connect[hidden], .office-pane #capture[hidden], .office-pane #disconnect[hidden] { display: none; }
.office-pane #status { font-size: 11px; line-height: 1.55; color: var(--pane-muted); min-height: 0; margin: 11px 0 0; overflow-wrap: anywhere; }
.pane-included { margin-top: 24px; }
.pane-included h2 { font-size: 11px; color: var(--pane-muted); margin: 0 0 14px; font-weight: 600; }
.pane-included ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 15px; }
.pane-included li { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; font-weight: 550; }
.context-symbol { display: flex; align-items: center; justify-content: center; width: 29px; height: 29px; border: 1px solid var(--pane-line); border-radius: 7px; flex-shrink: 0; color: var(--pane-muted); }
.context-symbol svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.context-detail { display: block; font-weight: 400; font-size: 11px; color: var(--pane-muted); margin-top: 1px; }
.pane-details { border-top: 1px solid var(--pane-line); border-bottom: 1px solid var(--pane-line); margin-top: 24px; font-size: 11px; }
.pane-details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; min-height: 42px; cursor: pointer; list-style: none; font-weight: 550; }
.pane-details summary::-webkit-details-marker { display: none; }
.pane-details summary svg { width: 13px; height: 13px; fill: none; stroke: var(--pane-muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pane-details[open] summary svg { transform: rotate(90deg); }
.pane-details-content { color: var(--pane-muted); padding: 0 0 6px; line-height: 1.65; }
.pane-details-content p { margin: 0 0 10px; }
.pane-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 17px 0 0; color: var(--pane-muted); font-size: 10px; }
.pane-footer a { color: var(--pane-muted); text-decoration: none; }
.pane-footer a:hover { text-decoration: underline; }
@media (max-width: 290px) { .office-pane main { padding: 16px; } .pane-action { padding: 13px; } .office-pane h1 { font-size: 21px; } }
@media (prefers-color-scheme: dark) { .office-pane { --pane-muted: #aaaab7; --pane-line: #34343f; --pane-surface: #24242d; --pane-ink: #f0f0f5; background: #1c1c23; } .pane-action[data-state="connected"] .connection-dot { background: #67c58a; } .pane-action[data-state="waiting"] .connection-dot { background: #e6b760; } }
