/* Chrome extension pages: /connect-extension and /extension-privacy.
   Paper-and-ink variables come from paper.css; selectors are body-prefixed
   so they win over the older sheets. */

body .stw-ext {
    max-width: 620px;
    margin: 0 auto;
    padding: 56px 20px 80px;
    color: var(--ink, #1C2230);
}
/* [hidden] must win over the display rules below and over .stw-btn. */
body .stw-ext [hidden] { display: none !important; }
body .stw-ext-mark { display: block; width: 48px; height: 48px; margin: 0 0 14px; }
body .stw-ext-kicker {
    display: inline-block;
    margin: 0 0 10px;
    font: 600 .75rem/1 var(--sans, Inter, sans-serif);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--coral, #EE5234);
}
body .stw-ext h1 {
    font-family: var(--serif, Literata, Georgia, serif);
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 12px;
    color: var(--ink, #1C2230);
}
body .stw-ext h2 {
    font-family: var(--serif, Literata, Georgia, serif);
    font-size: 1.25rem;
    margin: 34px 0 10px;
    color: var(--ink, #1C2230);
}
body .stw-ext p, body .stw-ext li { color: var(--ink, #1C2230); line-height: 1.6; }
body .stw-ext-lead { font-size: 1.08rem; color: var(--ink-soft, #5C6270); margin: 0 0 24px; }
body .stw-ext-lead strong { color: var(--ink, #1C2230); }
body .stw-ext-facts {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    background: var(--card, #FFFCF6);
    border: 1px solid var(--line, #E3D9C8);
    border-radius: 14px;
    overflow: hidden;
}
body .stw-ext-facts li { padding: 14px 18px; border-bottom: 1px solid var(--line, #E3D9C8); font-size: .96rem; }
body .stw-ext-facts li:last-child { border-bottom: 0; }
body .stw-ext-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
body .stw-ext-actions .stw-btn { min-width: 200px; }
body .stw-ext-status { min-height: 1.4em; margin: 6px 0 0; font-size: .95rem; color: var(--ink-soft, #5C6270); }
body .stw-ext-status.is-error { color: var(--coral-deep, #D8401F); }
body .stw-ext-missing,
body .stw-ext-done {
    margin: 14px 0 0;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: .96rem;
    line-height: 1.55;
}
body .stw-ext-missing { background: var(--note, #F8E6A8); }
body .stw-ext-done { background: #E3F1E8; border: 1px solid #BFDDCB; }
body .stw-ext-browsers {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin: 26px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line, #E3D9C8);
    font-size: .93rem;
    color: var(--ink-soft, #5C6270);
}
body .stw-ext-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--coral-deep, #D8401F);
    text-decoration: underline;
    cursor: pointer;
}
body .stw-ext-small { margin: 26px 0 0; font-size: .9rem; color: var(--ink-soft, #5C6270); }
body .stw-ext-small a, body .stw-ext-doc a { color: var(--ink, #1C2230); text-decoration: underline; }

/* Privacy note */
body .stw-ext-doc ul { padding-left: 1.2em; margin: 0 0 12px; }
body .stw-ext-doc li { margin: 0 0 8px; }
body .stw-ext-perms { width: 100%; border-collapse: collapse; margin: 6px 0 8px; font-size: .94rem; }
body .stw-ext-perms th, body .stw-ext-perms td {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line, #E3D9C8);
}
body .stw-ext-perms th { width: 30%; font-weight: 600; white-space: nowrap; }
body .stw-ext-perms code { font-size: .88rem; background: var(--paper-deep, #EDE4D5); padding: 1px 5px; border-radius: 4px; }
body .stw-ext-updated { font-size: .88rem; color: var(--ink-faint, #9A9CA3); }

@media (max-width: 620px) {
    body .stw-ext { padding: 36px 16px 60px; }
    body .stw-ext h1 { font-size: 1.55rem; }
    body .stw-ext-actions .stw-btn { width: 100%; }
    body .stw-ext-perms th { white-space: normal; width: auto; }
}
