.cn-back { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.65); display: grid; place-items: center; padding: 16px; }
.cn-dlg { box-sizing: border-box; width: min(520px, 100%); max-height: 100%; overflow: auto; background: var(--card, #1b1b20); color: var(--fg, #f1f1f3); border: 1px solid var(--edge, #3a3a44); border-radius: 12px; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.cn-head { display: flex; align-items: center; justify-content: space-between; }
.cn-head h2 { margin: 0; font-size: 20px; }
.cn-x { border: 0; background: transparent; color: var(--muted, #a3a3ad); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.cn-x:hover { color: #fff; }
.cn-lead { margin: 0; color: var(--muted, #a3a3ad); font-size: 14px; }
.cn-dlg h3 { margin: 8px 0 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted, #a3a3ad); }
.cn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.cn-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border: 1px solid var(--edge, #3a3a44); border-radius: 10px; background: var(--card2, #232328); color: inherit; font: 600 13px system-ui, sans-serif; cursor: pointer; transition: transform 0.12s, background 0.12s; }
.cn-tile:hover:not(:disabled) { background: var(--card3, #2a2a31); transform: translateY(-2px); }
.cn-tile img { width: 40px; height: 40px; display: block; }
.cn-tile:disabled { opacity: 0.55; cursor: default; }
.cn-check { position: absolute; top: 6px; right: 8px; font-style: normal; color: #8fe3a4; font-size: 13px; }
.cn-list { display: flex; flex-direction: column; gap: 8px; }
.cn-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--edge, #3a3a44); border-radius: 10px; background: var(--card2, #232328); }
.cn-row img { width: 36px; height: 36px; flex: none; }
.cn-name { flex: 1 1 120px; min-width: 0; display: flex; flex-direction: column; }
.cn-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-name small { color: var(--muted, #a3a3ad); }
.cn-rm { border: 1px solid var(--edge, #3a3a44); border-radius: 999px; background: transparent; color: inherit; font: 700 12px system-ui, sans-serif; padding: 6px 12px; cursor: pointer; flex: none; }
.cn-rm:hover { background: #3a2226; border-color: #8a3a44; color: #ffb4bc; }
.cn-none { margin: 0; color: var(--muted, #a3a3ad); font-size: 14px; }
.cn-msg { min-height: 18px; margin: 4px 0 0; font-size: 13px; color: var(--muted, #a3a3ad); }
.cn-msg.ok { color: #8fe3a4; }
.cn-msg.error { color: #ff9b9b; }
.link-summary { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 10px; }
.link-summary:empty { display: none; }
.link-summary img { width: 30px; height: 30px; display: block; }
#link-open { display: block; margin: 0 auto; }
.cn-hint { margin: 0; font-size: 13px; color: var(--muted, #a3a3ad); }
.cn-show { border: 1px solid var(--edge, #3a3a44); border-radius: 999px; background: transparent; color: inherit; font: 700 12px system-ui, sans-serif; padding: 6px 12px; cursor: pointer; flex: none; }
.cn-show:hover { background: var(--card3, #2a2a31); }
.cn-show.on { background: #22362a; border-color: #3f7a52; color: #a9efbd; cursor: default; }
.cn-hide { align-self: flex-start; border: 0; background: none; color: var(--muted, #a3a3ad); font: 600 13px system-ui, sans-serif; text-decoration: underline; cursor: pointer; padding: 2px 0; }
.cn-hide:hover { color: inherit; }
.cn-row { flex-wrap: wrap; }
.cn-act { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

/* what others can see: switches under every connected account */
.cn-opts { flex: 1 0 100%; display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--edge, #3a3a44); }
.cn-opts-t { color: var(--muted, #a3a3ad); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.cn-sw { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.cn-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cn-sw-i { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: var(--edge, #3a3a44); transition: background 0.15s; }
.cn-sw-i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.cn-sw input:checked + .cn-sw-i { background: #3f9a62; }
.cn-sw input:checked + .cn-sw-i::after { transform: translateX(14px); }
.cn-sw input:focus-visible + .cn-sw-i { outline: 2px solid #8fb7ff; outline-offset: 2px; }
.cn-sw input:disabled + .cn-sw-i { opacity: 0.45; }
.cn-sw input:disabled ~ span { opacity: 0.6; }

/* connect your own domain */
.dm-back { position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, 0.7); display: grid; place-items: center; padding: 16px; }
.dm-dlg { box-sizing: border-box; width: min(440px, 100%); max-height: 100%; overflow: auto; background: var(--card, #1b1b20); color: var(--fg, #f1f1f3); border: 1px solid var(--edge, #3a3a44); border-radius: 12px; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65); }
.dm-head { display: flex; align-items: center; justify-content: space-between; }
.dm-head h2 { margin: 0; font-size: 19px; }
.dm-x { border: 0; background: transparent; color: var(--muted, #a3a3ad); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.dm-x:hover { color: #fff; }
.dm-lead { margin: 0; color: var(--muted, #a3a3ad); font-size: 14px; }
.dm-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--muted, #a3a3ad); font-size: 14px; }
.dm-field { display: flex; flex-direction: column; gap: 6px; }
.dm-field label { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700; color: var(--muted, #a3a3ad); }
.dm-req { color: #ff8a8a; }
.dm-input, .dm-copy input { box-sizing: border-box; width: 100%; min-width: 0; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--edge, #3a3a44); background: var(--bg, #121216); color: inherit; font: 500 14px system-ui, sans-serif; }
.dm-input:focus-visible, .dm-copy input:focus-visible { outline: 2px solid #8fb7ff; outline-offset: 1px; }
.dm-copy { display: flex; gap: 8px; align-items: stretch; }
.dm-copy input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; text-overflow: ellipsis; }
.dm-info { margin: 0; padding: 10px 12px; border-radius: 8px; background: #172336; border: 1px solid #2c4468; color: #b9d2f7; font-size: 13px; }
.dm-err { padding: 10px 12px; border-radius: 8px; background: #3a1d22; border: 1px solid #7a2f38; color: #ffb4bc; font-size: 14px; }
.dm-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.dm-sp { flex: 1; }
.dm-btn { border: 1px solid var(--edge, #3a3a44); border-radius: 8px; background: var(--card3, #2a2a31); color: inherit; font: 700 14px system-ui, sans-serif; padding: 10px 16px; cursor: pointer; }
.dm-btn:hover:not(:disabled) { background: #34343d; }
.dm-btn.main { background: #6b73ff; border-color: transparent; color: #fff; }
.dm-btn.main:hover:not(:disabled) { background: #7a81ff; }
.dm-btn.small { font-size: 12px; padding: 0 12px; flex: none; }
.dm-btn:disabled { opacity: 0.55; cursor: wait; }
.dm-btn:focus-visible, .dm-x:focus-visible { outline: 2px solid #8fb7ff; outline-offset: 2px; }
.dm-dlg [hidden] { display: none !important; }
@media (max-width: 420px) { .dm-foot .dm-btn { flex: 1 1 100%; } .dm-sp { display: none; } }
.dm-input, .dm-copy input { text-align: left; }
.dm-head h2 { text-transform: none; letter-spacing: 0; }

/* link to the developer page (start page) */
#dev-open { display: block; width: max-content; margin: 0 auto; text-align: center; text-decoration: none; }
