/* The set-up page (client/site/setup.html, 2026-10-07): the sign-in card, the account line, the settings in groups with their Copy buttons,
   and the illustrated guides - small drawings of each mail app's screen (setup-guides.js) in a generic phone or window frame, the field to fill
   highlighted in the page's accent. A sheet of its own beside /pages.css (shared by every standalone page): a new address, so no browser holds
   an older copy. Light and dark follow the device (pages.css's tokens); the drawings keep left-to-right inside an Arabic page. */
.wrap{max-width:920px}
#mail,#servers,#guides,#install{margin-top:18px}#mail{margin-top:0}.card>h2:first-child{margin-top:0}
label .muted{font-weight:400}
.signin-card{border:1px solid var(--accent);border-radius:16px;padding:16px 18px;background:var(--soft);margin-top:14px}.signin-card h2{margin-top:0}
.who{margin:4px 0 6px;color:var(--muted)}.who .addr{color:var(--ink)}
#acct{max-width:420px}
fieldset.radios{border:0;padding:0;margin:14px 0 0}fieldset.radios legend{font-size:14px;font-weight:600;padding:0;margin:0 0 4px}
.linkish{background:none;border:0;padding:0;font:inherit;color:var(--accent-strong);text-decoration:underline;cursor:pointer}.linkish[disabled]{opacity:.55;cursor:default}
.ok-line{color:var(--ok);font-weight:600;margin:12px 0 0}
#continue-card .btn,#limited-card .btn{margin-top:4px}#limited-card h3{margin-top:0}
.cfg{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));margin-top:10px}
.cfg-g{border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:var(--soft);min-width:0}.cfg-g h3{margin:0 0 2px}.cfg-g .hint{margin:0 0 4px}.cfg-g .kv{margin:6px 0 0;font-size:14px}.cfg-g .kv th{width:38%}
.cfg-g .kv code{font-size:14px}.cfg-g .copy{padding:2px 8px}
@media (max-width:520px){.cfg-g .kv tr{display:table-row;border-top:0;padding:0}.cfg-g .kv th,.cfg-g .kv td{display:table-cell;width:auto}.cfg-g .kv th{white-space:nowrap;padding:7px 10px 7px 0;width:1%}.cfg-g .kv td{border-top:1px solid var(--line);padding:7px 0}.cfg-g .kv tr:first-child th,.cfg-g .kv tr:first-child td{border-top:0}}
[dir="rtl"] .cfg-g .kv th{padding:7px 0 7px 10px}
#pw-note .linkish{margin-top:4px}
[dir="rtl"] .copy{margin-left:0;margin-right:8px}
/* the guides: the app tabs, the numbered steps, a drawing beside each */
.sg-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 6px}.sg-tabs .chip[aria-selected="true"]{background:var(--accent);border-color:var(--accent);color:#241b12}
.sg-panel h3{margin:22px 0 4px}
.sg-steps{list-style:none;padding:0;margin:0}
.sg-step{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:14px 0;border-top:1px solid var(--line)}.sg-step:first-child{border-top:0}
.sg-text{display:flex;gap:12px;align-items:flex-start}.sg-text p{margin:0;overflow-wrap:anywhere}
.sg-n{flex:none;width:28px;height:28px;border-radius:50%;background:var(--accent);color:#241b12;font-weight:700;display:inline-flex;align-items:center;justify-content:center;font-size:14px}
.sg-v{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em;background:var(--soft);border:1px solid var(--line);border-radius:6px;padding:0 4px;unicode-bidi:isolate;overflow-wrap:anywhere}
.sg-fig{margin:0;justify-self:end}
@media (max-width:640px){.sg-step{grid-template-columns:1fr;gap:10px}.sg-fig{justify-self:center}}
/* the drawing's own palette: a light screen on the light page, a dark one on the dark page */
.sg-dev{--sg-bg:#ffffff;--sg-ground:#f2f2f7;--sg-ink:#1c1c1e;--sg-mute:#6e6e73;--sg-line:#d8d8dc;--sg-acc:#0a66d8;--sg-field:#ffffff;--sg-hl:var(--accent);font:11px/1.35 -apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--sg-ink);text-align:left;direction:ltr}
@media (prefers-color-scheme:dark){.sg-dev{--sg-bg:#1c1c1e;--sg-ground:#000000;--sg-ink:#f2f2f7;--sg-mute:#a1a1a6;--sg-line:#3a3a3c;--sg-acc:#4c9bff;--sg-field:#2c2c2e}}
.sg-md,.sg-oneui{--sg-acc:#1a73e8}.sg-ol,.sg-win{--sg-acc:#0f6cbd}.sg-tbird{--sg-acc:#2a6fdb}
@media (prefers-color-scheme:dark){.sg-md,.sg-oneui{--sg-acc:#8ab4f8}.sg-ol,.sg-win{--sg-acc:#5fa8ff}.sg-tbird{--sg-acc:#7ab2ff}}
/* the frames' sizes (the review of 2026-10-07: at 198 px the iOS bar clipped its own action - "Instal", "Nex" - and a row field cut the address
   short): a phone 232 px wide, a window 300 px, both larger beside the steps on a wide screen (900 px and up); no drawing ever cuts the thing to tap or a value */
.sg-phone{width:232px;max-width:100%;border-radius:30px;padding:7px;background:#16161a;box-shadow:0 12px 28px rgba(0,0,0,.18),inset 0 0 0 1px #3a3a40}

.sg-scr{border-radius:24px;overflow:hidden;background:var(--sg-ground);min-height:290px;display:flex;flex-direction:column}
.sg-md .sg-scr,.sg-oneui .sg-scr,.sg-ol .sg-scr{background:var(--sg-bg)}
.sg-status{display:flex;justify-content:space-between;align-items:center;padding:7px 16px 3px;font-weight:600;font-size:10px}.sg-status i{width:26px;height:9px;border-radius:3px;border:1px solid var(--sg-mute)}
.sg-bar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px;padding:6px 10px 8px}.sg-bar .sg-l{color:var(--sg-acc);white-space:nowrap}.sg-bar .sg-r{color:var(--sg-acc);text-align:right;font-weight:600;justify-self:end;padding:1px 5px;white-space:nowrap;min-width:max-content}.sg-bar .sg-t{font-size:12px;text-align:center;min-width:0;overflow-wrap:anywhere}
.sg-bar.sg-big{grid-template-columns:1fr;padding-top:2px}.sg-bar.sg-big .sg-l,.sg-bar.sg-big .sg-r{display:none}.sg-bar.sg-big .sg-t{font-size:18px;text-align:left}
.sg-ol .sg-bar{background:var(--sg-acc);color:#fff}.sg-ol .sg-bar .sg-l,.sg-ol .sg-bar .sg-r{color:#fff}
.sg-md .sg-bar .sg-t,.sg-oneui .sg-bar .sg-t{text-align:left;font-size:13px;grid-column:1/-1}.sg-md .sg-bar,.sg-oneui .sg-bar{grid-template-columns:1fr}.sg-md .sg-bar .sg-l,.sg-oneui .sg-bar .sg-l{display:none}.sg-md .sg-bar .sg-r:empty,.sg-oneui .sg-bar .sg-r:empty{display:none}
.sg-oneui .sg-bar .sg-t{font-size:17px;padding:10px 2px 6px}
.sg-body{padding:0 8px 12px;display:flex;flex-direction:column;gap:5px;flex:1}
.sg-h{color:var(--sg-mute);font-size:10px;letter-spacing:.04em;text-transform:uppercase;margin:6px 6px 0;overflow-wrap:anywhere}
.sg-f,.sg-i,.sg-me,.sg-card,.sg-link,.sg-txt{background:var(--sg-bg);border-radius:9px;padding:6px 8px}
.sg-f{display:grid;grid-template-columns:minmax(52px,auto) minmax(0,1fr);gap:6px;align-items:center}.sg-f .sg-k{color:var(--sg-ink)}.sg-f .sg-x{color:var(--sg-mute);overflow-wrap:anywhere;min-width:0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px}
.sg-f .sg-dots{letter-spacing:1px}.sg-sel .sg-x i{font-style:normal;margin-left:4px;color:var(--sg-mute)}
.sg-md .sg-f,.sg-oneui .sg-f,.sg-win .sg-f,.sg-mac .sg-f,.sg-tbird .sg-f,.sg-ol .sg-f{grid-template-columns:1fr;gap:1px;border:1px solid var(--sg-line);background:var(--sg-field)}.sg-md .sg-f .sg-k,.sg-oneui .sg-f .sg-k,.sg-win .sg-f .sg-k,.sg-mac .sg-f .sg-k,.sg-tbird .sg-f .sg-k,.sg-ol .sg-f .sg-k{font-size:10.5px;color:var(--sg-mute)}.sg-md .sg-f .sg-x,.sg-oneui .sg-f .sg-x,.sg-win .sg-f .sg-x,.sg-mac .sg-f .sg-x,.sg-tbird .sg-f .sg-x,.sg-ol .sg-f .sg-x{color:var(--sg-ink)}
.sg-oneui .sg-f,.sg-oneui .sg-i{border-radius:14px}
.sg-i{display:flex;align-items:center;gap:6px}.sg-it{flex:1;min-width:0;overflow-wrap:anywhere}.sg-it small{display:block;color:var(--sg-mute);font-size:10px;overflow-wrap:anywhere}
.sg-chev{font-style:normal;color:var(--sg-mute);font-size:13px}.sg-badge{background:#e5383b;color:#fff;border-radius:9px;font-size:9px;padding:0 5px}
.sg-rad{width:10px;height:10px;border-radius:50%;border:1.5px solid var(--sg-mute);flex:none}.sg-rad.on{border-color:var(--sg-acc);box-shadow:inset 0 0 0 2.5px var(--sg-bg),inset 0 0 0 6px var(--sg-acc)}
.sg-swx{width:24px;height:14px;border-radius:8px;background:var(--sg-line);position:relative;flex:none;font-style:normal}.sg-swx::after{content:'';position:absolute;top:2px;left:2px;width:10px;height:10px;border-radius:50%;background:#fff}.sg-swx.on{background:#34c759}.sg-swx.on::after{left:12px}
.sg-md .sg-swx.on,.sg-oneui .sg-swx.on,.sg-ol .sg-swx.on{background:var(--sg-acc)}
.sg-chkx{width:11px;height:11px;border-radius:3px;border:1.5px solid var(--sg-mute);flex:none;font-style:normal;order:-1}.sg-chkx.on{background:var(--sg-acc);border-color:var(--sg-acc);box-shadow:inset 0 0 0 2px var(--sg-bg)}
.sg-seg{display:flex;background:var(--sg-line);border-radius:8px;padding:2px;margin:2px 4px}.sg-seg span{flex:1;text-align:center;padding:3px 0;border-radius:6px;color:var(--sg-mute)}.sg-seg span.on{background:var(--sg-bg);color:var(--sg-ink);font-weight:600}
.sg-btns{display:flex;gap:6px;justify-content:flex-end;margin-top:4px}.sg-btn{border:1px solid var(--sg-line);background:var(--sg-bg);border-radius:8px;padding:4px 10px;color:var(--sg-ink)}.sg-btn.sg-pri{background:var(--sg-acc);border-color:var(--sg-acc);color:#fff;font-weight:600}
.sg-md .sg-btn,.sg-oneui .sg-btn{border-radius:16px}
.sg-link{background:none;color:var(--sg-acc);font-weight:600;padding:4px 8px;align-self:flex-start}
.sg-txt{background:none;color:var(--sg-mute);padding:2px 6px;overflow-wrap:anywhere}
.sg-url{margin:0 0 6px;background:var(--sg-bg);border-radius:8px;padding:4px 8px;text-align:center;color:var(--sg-mute);font-size:10.5px;overflow-wrap:anywhere}
.sg-alert{margin:40px 10px 0;background:var(--sg-bg);border-radius:12px;box-shadow:0 6px 18px rgba(0,0,0,.25);text-align:center;overflow:hidden}.sg-alert b{display:block;padding:10px 10px 0}.sg-alert>span{display:block;padding:8px 10px 10px}
.sg-ab{display:flex;border-top:1px solid var(--sg-line)}.sg-ab span{flex:1;padding:7px 0;color:var(--sg-acc)}.sg-ab span+span{border-left:1px solid var(--sg-line)}.sg-dev .sg-ab .sg-hl{font-weight:700;outline-offset:-3px;box-shadow:none}
.sg-phone .sg-alert{margin-top:60px}
.sg-me{display:flex;align-items:center;gap:7px}.sg-av{width:26px;height:26px;border-radius:50%;background:var(--sg-acc);color:#fff;font-style:normal;display:flex;align-items:center;justify-content:center;font-weight:700}
.sg-card{display:flex;flex-direction:column;gap:3px}.sg-card b{font-size:12px}.sg-card span{color:var(--sg-mute)}.sg-card .sg-unsigned{color:#d70015}.sg-card .sg-signed{color:#248a3d}
@media (prefers-color-scheme:dark){.sg-card .sg-unsigned{color:#ff6961}.sg-card .sg-signed{color:#30d158}}
/* the window frame (.sg-window): a generic title bar (.sg-tb) - the Mac's three lights on the left, a Windows-style row of controls on the right for
   Windows and Thunderbird - a sidebar where the app has one, a dialog's tabs. The frame and the skins have names of their own (until 2026-10-07 the
   frame and the Windows skin shared .sg-win, and Thunderbird's skin was the title bar's own .sg-tb: every Mac window drew Windows controls and
   every Thunderbird drawing was laid out as a title bar) */
.sg-window{width:300px;max-width:100%;border-radius:10px;overflow:hidden;background:var(--sg-bg);border:1px solid var(--sg-line);box-shadow:0 12px 28px rgba(0,0,0,.14)}
.sg-tb{display:flex;align-items:center;gap:5px;padding:6px 9px;background:var(--sg-bg);border-bottom:1px solid var(--sg-line);font-weight:600}.sg-tb i{width:9px;height:9px;border-radius:50%;background:var(--sg-line);flex:none}.sg-tb span{flex:1;min-width:0;text-align:center;margin-right:28px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sg-mac .sg-tb i:nth-child(1){background:#ff5f57}.sg-mac .sg-tb i:nth-child(2){background:#febc2e}.sg-mac .sg-tb i:nth-child(3){background:#28c840}
.sg-win .sg-tb,.sg-tbird .sg-tb{flex-direction:row-reverse;gap:9px}.sg-win .sg-tb span,.sg-tbird .sg-tb span{margin:0 18px 0 0;text-align:left}.sg-win .sg-tb i,.sg-tbird .sg-tb i{width:9px;height:2px;border-radius:0;background:var(--sg-mute)}
.sg-wbody{display:flex;min-height:150px}.sg-main{flex:1;min-width:0;padding-top:8px}
.sg-side{width:96px;flex:none;background:var(--sg-bg);border-right:1px solid var(--sg-line);padding:6px 4px;display:flex;flex-direction:column;gap:2px}.sg-side span{padding:3px 5px;border-radius:5px;color:var(--sg-mute);font-size:10.5px;overflow-wrap:anywhere}.sg-side span.on{background:var(--sg-acc);color:#fff}
.sg-tabsx{display:flex;flex-wrap:wrap;gap:2px;padding:0 8px;margin-bottom:4px}.sg-tabsx span{padding:3px 7px;border:1px solid var(--sg-line);border-bottom:0;border-radius:5px 5px 0 0;color:var(--sg-mute);font-size:10.5px}.sg-tabsx span.on{background:var(--sg-bg);color:var(--sg-ink)}
.sg-tbird .sg-body{padding-top:2px}
@media (min-width:900px){.sg-phone{width:252px}.sg-window{width:400px}.sg-dev{font-size:12px}}   /* beside the steps on a wide screen: larger frames, larger type */
/* the field to fill, the button to tap: the page's accent, a ring and a dot */
.sg-dev .sg-hl{outline:2px solid var(--sg-hl);outline-offset:-1px;box-shadow:0 0 0 4px rgba(224,123,57,.28);position:relative}
.sg-dev .sg-hl::after{content:'';position:absolute;right:-4px;top:-4px;width:9px;height:9px;border-radius:50%;background:var(--sg-hl);box-shadow:0 0 0 2px var(--sg-bg)}
.sg-dev .sg-hl .sg-x,.sg-dev .sg-hl.sg-f .sg-x{color:var(--sg-ink);font-weight:600}
.sg-bar .sg-r.sg-hl{border-radius:6px}
@media (prefers-reduced-motion:no-preference){.sg-dev .sg-hl::after{animation:sgp 1.8s ease-in-out 3}@keyframes sgp{50%{transform:scale(1.35)}}}   /* three pulses, then still: a page left open does no work (the phone-heat rule of 2026-10-07) */
@media print{.sg-dev .sg-hl::after{display:none}}
