/* Dialogs (send a copy, inbox, sync conflicts), the sync status, and the share button on cards */

.dlg{width:min(430px,calc(100vw - 32px));padding:22px;border:1px solid var(--bd);border-radius:12px;background:var(--bar);color:var(--ink);box-shadow:0 12px 40px var(--shadow)}
.dlg::backdrop{background:var(--backdrop)}
.dlg h3{margin:0 0 8px;font-size:17px}
.dlg p{margin:0 0 14px;color:var(--muted);font-size:13.5px;line-height:1.5}
.dlg-input{width:100%;height:40px;padding:0 12px;border:1px solid var(--bd);border-radius:8px;background:var(--surface);font:inherit;font-size:14px;outline:none}
.dlg-input:focus{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.dlg-note{margin:10px 0 0;color:var(--muted);font-size:12.5px;line-height:1.45}
.dlg-note.err{color:var(--err)}
.dlg-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.dlg-list{display:flex;flex-direction:column;gap:8px;max-height:50vh;overflow:auto}
/* one row per item: its text across the full width, its buttons on a line of their own below */
.dlg-item{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--bd);border-radius:8px;background:var(--surface)}
.dlg-item div{flex:1 1 100%;min-width:0}
.dlg-item b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dlg-item small{display:block;margin-top:2px;color:var(--muted);overflow-wrap:anywhere}
.dlg-item>button{flex:none;white-space:nowrap}
.dlg-item>button:first-of-type{margin-left:auto}
/* inbox rows: Report and Block sit quietly on the left, Decline and Add on the right */
.dlg-item>button.minor{border-color:transparent;background:none;color:var(--muted);padding-left:6px;padding-right:6px}
.dlg-item>button.minor:hover{color:var(--danger)}
.dlg-item>button.minor:first-of-type{margin-left:0}
.dlg-item>button.push{margin-left:auto}
.report-form{display:flex;flex-direction:column;gap:10px}
.report-form textarea{height:auto;padding:8px 12px;resize:vertical}
.report-check{display:flex;align-items:center;gap:6px;font-size:13.5px;cursor:pointer}
.blocked-list{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.blocked-list .setting-row{margin:0}

.syncst{color:var(--muted);font-size:12.5px;white-space:nowrap}
.syncst.clickable{cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}
.syncst[data-state=offline]{color:var(--warn-fg)}
.syncst[data-state=conflict],.syncst[data-state=error],.syncst[data-state=full]{color:var(--err);font-weight:600}
/* keyboard shortcuts (js/ui/shortcuts.js) */
.keys{max-height:60vh;overflow:auto}
.keys h4{margin:12px 0 6px;font-size:12px;font-weight:650;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}
.keys h4:first-child{margin-top:0}
.keys dl{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;margin:0;font-size:13.5px}
.keys dt{white-space:nowrap;color:var(--muted)}
.keys dd{margin:0}
.keys kbd{display:inline-block;min-width:20px;padding:1px 6px;border:1px solid var(--bd);border-bottom-width:2px;border-radius:5px;background:var(--surface);color:var(--ink);font:12px/1.5 ui-monospace,Consolas,monospace;text-align:center}

/* the tutorial (js/ui/intro.js); its backdrop is the Settings overlay's */
.intro-overlay{z-index:10002}
.intro{width:520px;max-width:100%;max-height:100%;overflow:auto;padding:22px 24px 18px;background:var(--bar);border:1px solid var(--bd);border-radius:14px;box-shadow:0 12px 40px var(--shadow);animation:panel-in .18s ease-out}
.intro-art{margin:0 0 16px;padding:10px;border-radius:10px;background:var(--paper)}
.intro-art svg{display:block;width:100%;height:auto;max-height:190px;font-family:inherit}
.intro h2{margin:0 0 8px;font-size:19px}
.intro-text{min-height:5.6em;margin:0;color:var(--ink2);font-size:14px;line-height:1.6}
.intro-text b{color:var(--ink)}
.intro-nav{display:flex;align-items:center;gap:8px;margin-top:18px}
.intro-skip{border-color:transparent;background:none;color:var(--muted)}
.intro-dots{flex:1;display:flex;justify-content:center;gap:6px}
.intro-dot{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:var(--bd)}
.intro-dot.on{width:20px;border-radius:4px;background:var(--accent)}
/* the pictures */
.ia-card{fill:var(--surface);stroke:var(--bd)}
.ia-board{fill:var(--subtle);stroke:var(--bd)}
.ia-bar{fill:var(--subtle)}
.ia-line{fill:var(--hover)}
.ia-title{fill:var(--ink);font-size:11px;font-weight:650}
.ia-note{fill:var(--muted);font-size:10px}
.ia-ink{fill:var(--ink);font-size:11px}
.ia-arrow{fill:none;stroke:var(--line);stroke-width:2}
.ia-dash{stroke-dasharray:5 4;stroke:var(--accent)}
.ia-head{fill:var(--line)}
.ia-dot{fill:var(--accent);stroke:var(--surface);stroke-width:2}
.ia-chip{fill:var(--sel)}
.ia-unset{fill:var(--unset-bg);stroke:var(--unset-bd)}
.ia-ring{fill:var(--sel);stroke:var(--accent);stroke-width:1.5}
.ia-accent path{stroke:var(--accent);fill:none}
.ia-ink-stroke{fill:none;stroke:var(--ink);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}

/* the demo marker in the top bar */
#demo-bar{display:flex;align-items:center;gap:8px}
.demo-pill{padding:3px 10px;border:1px solid var(--unset-bd);border-radius:999px;background:var(--warn-bg);color:var(--warn-fg);font-size:12.5px;font-weight:600;white-space:nowrap;cursor:help}
#ib{margin-left:4px;padding:0 6px;border-radius:9px;background:#d99b00;color:#fff;font-size:12px}

/* .shr also covers the export button (.shr.exp) */
.shr{padding:0 3px;border:0;border-radius:4px;background:none;font-size:14px;line-height:1;opacity:0}
.card:hover .shr,.shr:focus-visible{opacity:.55}
.card:hover .shr:hover{opacity:1;background:var(--hover)}
/* sending isn't on this plan: a small PRO tag on the send button */
.shr.locked{display:inline-flex;align-items:center;gap:2px}
.shr.locked::after{content:attr(data-plan);padding:1px 4px;border-radius:4px;background:var(--accent);color:#fff;font-size:8.5px;font-weight:700;letter-spacing:.04em;line-height:1.3}
