/* Caboodle – Copyright (C) 2026 the Caboodle authors
   The site's own dialogs, on every page including Home: feedback, Cloud sync (shared/site.js) and accounts
   (shared/account.js). */
.cb-modal .modal-body { max-height: min(72vh, 680px); overflow: auto; }
.cb-modal .modal-foot .btn:disabled { opacity: .45; cursor: default; pointer-events: none; }
.cb-form { display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; line-height: 1.45; }
.cb-form p { margin: 0; }
.cb-lead { font-size: 14.5px; }
.cb-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cb-points li { display: flex; gap: 10px; align-items: flex-start; }
.cb-points .material-symbols-outlined { font-size: 20px; color: var(--prog-strong); flex: none; }
.cb-soon { padding: 10px 12px; border-radius: 10px; background: var(--prog-soft); color: var(--text); }
.cb-field { display: flex; flex-direction: column; gap: 5px; }
.cb-label { font-weight: 600; font-size: 13px; color: var(--text); }
.cb-opt { font-weight: 400; color: var(--muted); }
.cb-field input, .cb-field textarea { font: inherit; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; box-sizing: border-box; }
.cb-field textarea { resize: vertical; min-height: 44px; }
.cb-field input:focus, .cb-field textarea:focus { outline: 2px solid var(--prog); outline-offset: -1px; border-color: transparent; }
.cb-set { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cb-set legend { padding: 0; margin-bottom: 6px; }
.cb-seg, .cb-prices { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 18px; cursor: pointer; font-size: 13px; background: var(--surface); user-select: none; }
.cb-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cb-chip .material-symbols-outlined { font-size: 18px; color: var(--muted); }
.cb-chip:hover { border-color: var(--prog); }
.cb-chip:has(input:checked) { border-color: var(--prog); background: var(--prog-soft); color: var(--prog-strong); font-weight: 600; }
.cb-chip:has(input:checked) .material-symbols-outlined { color: var(--prog-strong); }
.cb-chip:has(input:focus-visible) { outline: 2px solid var(--prog); outline-offset: 1px; }
.cb-check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 13px; }
.cb-check input { margin: 2px 0 0; flex: none; accent-color: var(--prog-strong); }
.cb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cb-human:empty { display: none; }
.cb-error { color: var(--danger); background: var(--danger-soft); border-radius: 8px; padding: 8px 10px; }
.cb-note { font-size: 12px; color: var(--muted); }
.cb-note a { color: var(--prog-strong); }
.cb-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 8px 10px; font-size: 14px; line-height: 1.5; }
.cb-done .material-symbols-outlined { font-size: 40px; color: var(--prog-strong); }
.cb-done h3 { margin: 0; font-size: 18px; }
.cb-done p { margin: 0; max-width: 420px; }

/* accounts (shared/account.js): the button in the top row and on Home */
.cb-signin { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 9px; flex: none; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; }
.cb-signin:hover { border-color: var(--prog); background: var(--prog-soft); }
.cb-signin .material-symbols-outlined { font-size: 20px; color: var(--prog-strong); }
.cb-avatar-btn { flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cb-avatar-btn:hover { box-shadow: 0 0 0 3px var(--hover); }
.cb-avatar-btn.has-credits { width: auto; gap: 6px; padding: 0 0 0 10px; border-radius: 999px; background: var(--hover-soft, rgba(0,0,0,.05)); }
.cb-avatar-btn.has-credits:hover { box-shadow: none; background: var(--hover, rgba(0,0,0,.09)); }
.cb-credits { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; color: var(--text-2, var(--muted)); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cb-credits b { color: var(--text); font-weight: 600; }
.cb-credits .material-symbols-outlined { font-size: 16px; color: #e0a106; }
@media (max-width: 760px) { .cb-credits-w { display: none; } }
.cb-acct-credits { display: flex; align-items: center; gap: 6px; padding: 8px 12px; margin: 0 0 4px; font-size: 13px; color: var(--text-2, var(--muted)); border-bottom: 1px solid var(--line-soft); }
.cb-acct-credits b { color: var(--text); }
.cb-acct-credits .material-symbols-outlined { font-size: 18px; color: #e0a106; }
/* running low on AI credits: the badge and the account menu's line in the warning colour */
.low-credits .cb-credits, .low-credits .cb-credits b, .cb-acct-credits.low, .cb-acct-credits.low b { color: var(--warn); }
.cb-signin:focus-visible, .cb-avatar-btn:focus-visible { outline: 2px solid var(--prog); outline-offset: 1px; }
.cb-avatar { --cb-hue: 220; flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 600; color: #fff; background: hsl(var(--cb-hue) 42% 42%); }
.cb-avatar.big { width: 42px; height: 42px; font-size: 18px; }
/* the panel under the avatar */
.cb-acct-pop { display: flex; flex-direction: column; min-width: 240px; max-width: 320px; padding: 4px 0; }
.cb-acct-head { display: flex; align-items: center; gap: 12px; padding: 8px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.cb-acct-head > div, .cb-welcome > div, .cb-row > div { display: flex; flex-direction: column; min-width: 0; }
.cb-acct-head > div > strong, .cb-acct-head > div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-acct-head > div > span, .cb-welcome > div > span, .cb-row > div > span { font-size: 12.5px; color: var(--muted); }
.cb-pop-item { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 8px 12px; font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; text-align: left; }
.cb-pop-item:hover, .cb-pop-item:focus-visible { background: var(--hover); outline: none; }
.cb-pop-item .material-symbols-outlined { font-size: 20px; color: var(--muted); }
/* the sign-in and account dialogs */
.cb-wide { justify-content: center; width: 100%; padding: 8px 14px; }
.cb-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.cb-or::before, .cb-or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.cb-code { font-size: 22px !important; letter-spacing: 6px; font-variant-numeric: tabular-nums; text-align: center; }
.cb-code::placeholder { letter-spacing: 6px; color: var(--line-strong); }
.cb-dev { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--sunk); color: var(--text-2); font-size: 12.5px; }
.cb-dev .material-symbols-outlined { font-size: 18px; color: var(--muted); }
.cb-note .link-btn { padding: 0; font-size: inherit; color: var(--prog-strong); text-decoration: underline; }
.cb-welcome { display: flex; align-items: center; gap: 12px; }
.cb-welcome strong { font-size: 15px; overflow-wrap: anywhere; }
.cb-offer { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--prog-soft); }
.cb-offer > .material-symbols-outlined { font-size: 26px; color: var(--prog-strong); flex: none; }
.cb-offer p { margin: 4px 0 0; color: var(--text-2); }
.cb-sec { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.cb-sec h3 { margin: 0; font-size: 14px; font-weight: 600; }
.cb-sub { margin: 0; color: var(--muted); font-size: 12.5px; }
.cb-list { display: flex; flex-direction: column; gap: 2px; align-self: stretch; }
.cb-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.cb-row > .material-symbols-outlined { font-size: 22px; color: var(--muted); flex: none; }
.cb-row > div { flex: 1; }
.cb-audio { width: 100%; max-width: 300px; height: 32px; margin-top: 4px; }
.cb-acts { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cb-row strong { font-weight: 500; overflow-wrap: anywhere; }
.cb-row .btn { padding: 4px 10px; font-size: 12.5px; }
/* Connect Claude: what it may do, and the command that connects it */
.cb-lead { font-size: 13px; line-height: 1.5; }
.cb-choices { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cb-choices legend { padding: 0; margin-bottom: 4px; }
.cb-choice { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.cb-choice:has(input:checked) { border-color: var(--sel, #2b6fd6); background: color-mix(in srgb, var(--sel, #2b6fd6) 6%, transparent); }
.cb-choice input { margin-top: 3px; }
.cb-choice > span { display: flex; flex-direction: column; }
.cb-choice > span > span { font-size: 12.5px; color: var(--muted); }
.cb-copy { display: flex; align-items: flex-start; gap: 8px; align-self: stretch; }
.cb-copy code { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in srgb, var(--muted) 8%, transparent); font: 12px/1.45 'Geist Mono', ui-monospace, Consolas, monospace; overflow-wrap: anywhere; white-space: pre-wrap; user-select: all; }
.cb-copy .btn { flex: none; padding: 5px 10px; font-size: 12.5px; }
.cb-more summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.cb-more[open] { display: flex; flex-direction: column; gap: 6px; }
.cb-steps { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.55; display: flex; flex-direction: column; gap: 2px; }
.cb-sec code { font: 12px/1.4 'Geist Mono', ui-monospace, Consolas, monospace; }
.cb-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 12.5px; color: var(--muted); }
.cb-warn .material-symbols-outlined { font-size: 18px; }
@media (max-width: 900px) {
  .cb-signin { padding: 0 6px; }
  .cb-signin > span:not(.material-symbols-outlined) { display: none; }
}

/* sharing (shared/cloud.js): the Share button and the Share dialog */
.cs-share-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px; flex: none; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; }
.cs-share-btn:hover { border-color: var(--prog); background: var(--prog-soft); }
.cs-share-btn:focus-visible { outline: 2px solid var(--prog); outline-offset: 1px; }
.cs-share-btn .material-symbols-outlined { font-size: 19px; color: var(--prog-strong); }
.cs-share-btn.shared { background: var(--prog-soft); border-color: transparent; color: var(--prog-strong); }
@media (max-width: 900px) {
  .cs-share-btn { padding: 0 7px; }
  .cs-share-btn > span:not(.material-symbols-outlined) { display: none; }
}
.cs-invite { display: flex; gap: 8px; align-items: flex-end; }
.cs-invite .cs-emails { flex: 1; min-width: 0; }
.cs-role, .cs-linkrole { font: inherit; font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; cursor: pointer; }
.cs-invite .cs-role { height: 38px; }
.cs-send { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cs-person .cs-role { padding: 4px 6px; font-size: 12.5px; }
.cs-link { display: flex; align-items: center; gap: 10px; align-self: stretch; }
.cs-link > .material-symbols-outlined { font-size: 22px; color: var(--muted); flex: none; }
.cs-link > .cs-linkrole, .cs-link > span:not(.material-symbols-outlined) { flex: 1; min-width: 0; }
.cs-link .btn:disabled { opacity: .45; cursor: default; }
.cb-sec .link-btn.cs-reset { padding: 0; font-size: 12.5px; color: var(--muted); text-decoration: underline; }
/* who else has the shared file open (shared/live.js) */
.cs-wrap { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.cl-peers { display: inline-flex; align-items: center; padding-right: 2px; }
.cl-peers .cl-peer { width: 26px; height: 26px; font-size: 12px; box-shadow: 0 0 0 2px var(--surface); }
.cl-peers .cl-peer + .cl-peer { margin-left: -7px; }
/* someone else editing together has this layer or object selected (shared/livemodel.js chips) */
.ml-peer { width: 16px; height: 16px; font-size: 9.5px; margin-left: 3px; vertical-align: middle; }
.cl-more { margin-left: 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* "Continue with Google" (as Google asks its sign-in buttons to look: white, the G, plain text) */
.cb-google { background: #fff; color: #1f1f1f; border-color: #747775; font-weight: 500; }
.cb-google:hover { background: #f7f8f8; }
.cb-google .cb-g { flex: none; }
:root[data-theme="dark"] .cb-google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
:root[data-theme="dark"] .cb-google:hover { background: #1f1f20; }
