/* Online mode: signed-in user chip in the app, plus the sign-in, setup and team pages. */

/* ---------- inside the app ---------- */
.cloud-user { display: flex; align-items: center; gap: 8px; background: #f6f8fb; border: 1px solid var(--line, #dfe4ec); border-radius: 999px; padding: 4px 6px 4px 14px; font-size: 13px; }
.cloud-who { display: flex; flex-direction: column; line-height: 1.15; margin-right: 4px; }
.cloud-who b { color: var(--ink, #1b2330); font-weight: 600; }
.cloud-who span { color: var(--ink-3, #7a8699); font-size: 11.5px; }
.cloud-user .btn { padding: 6px 12px; font-size: 12.5px; text-decoration: none; }
.sb-owner { color: var(--accent, #00549a) !important; font-weight: 600; }
.cloud-note { background: #eef5fc; border-radius: 8px; padding: 8px 12px; color: var(--ink-2, #4a5568); }
.cloud [data-act="save-slot"] { display: none !important; }
.cloud-no-pricing label:has(> input[data-act="replace"]),
.cloud-no-pricing [data-act="clear-slot"],
.cloud-no-pricing .upload-row,
.cloud-no-pricing label:has(> input[data-hw="upload"]),
.cloud-no-pricing [data-hwact="remove"] { display: none !important; }
.cloud-locked-settings [data-set-f]:disabled, .cloud-locked-settings button:disabled { opacity: .55; cursor: not-allowed; }
@media print { .cloud-user { display: none !important; } }

/* ---------- sign-in, setup and team pages ---------- */
.cp { margin: 0; min-height: 100vh; background: #f2f4f8; color: #1b2330; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.cp * { box-sizing: border-box; }
.cp a { color: #00549a; }
.cp-center { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.cp-card { background: #fff; border: 1px solid #dfe4ec; border-radius: 14px; box-shadow: 0 10px 30px rgba(16, 42, 76, .07); padding: 28px; width: 100%; }
.cp-narrow { max-width: 400px; }
.cp-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cp-brand img { width: 40px; height: 40px; }
.cp-brand h1 { font-size: 20px; margin: 0; color: #102a4c; }
.cp-brand p { margin: 0; color: #7a8699; font-size: 13px; }
.cp h2 { font-size: 17px; color: #102a4c; margin: 0 0 12px; }
.cp label.f { display: block; margin-bottom: 12px; }
.cp label.f > span { display: block; font-size: 12.5px; font-weight: 600; color: #4a5568; margin-bottom: 4px; }
.cp input[type=text], .cp input[type=password], .cp input[type=tel], .cp input[type=file], .cp select {
  width: 100%; font: inherit; padding: 9px 11px; border: 1px solid #c9d1dd; border-radius: 8px; background: #fff; color: inherit; }
.cp input:focus, .cp select:focus { outline: 2px solid #0a6fc2; outline-offset: 0; border-color: #0a6fc2; }
.cp .check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin: 4px 0 14px; color: #4a5568; }
.cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600; font-size: 14px; border-radius: 8px; padding: 9px 16px; cursor: pointer; border: 1px solid #c9d1dd; background: #fff; color: #1b2330; text-decoration: none; }
.cp-btn.primary { background: #102a4c; border-color: #102a4c; color: #fff; }
.cp-btn.primary:hover { background: #1f3864; }
.cp-btn.danger { color: #b42318; border-color: #f1b8b2; }
.cp-btn.sm { padding: 5px 10px; font-size: 13px; }
.cp-btn:disabled { opacity: .5; cursor: default; }
.cp-btn.block { width: 100%; }
.cp-msg { border-radius: 8px; padding: 9px 12px; font-size: 13.5px; margin-bottom: 12px; display: none; }
.cp-msg.show { display: block; }
.cp-msg.err { background: #fdecea; color: #8a1c12; }
.cp-msg.ok { background: #e7f6ec; color: #165c2f; }
.cp-hint { color: #7a8699; font-size: 13px; }

.cp-top { background: #fff; border-bottom: 1px solid #dfe4ec; }
.cp-top .in { max-width: 1100px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cp-top .cp-brand { margin: 0; flex: 1; }
.cp-tabs { display: flex; gap: 4px; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.cp-tab { font: inherit; font-weight: 600; font-size: 14px; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; color: #4a5568; cursor: pointer; }
.cp-tab[aria-selected=true] { color: #102a4c; border-bottom-color: #00549a; }
.cp-main { max-width: 1100px; margin: 0 auto; padding: 22px 20px 60px; }
.cp-main .cp-card { margin-bottom: 18px; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.cp-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cp-spacer { flex: 1; }
.cp table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cp th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #7a8699; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid #dfe4ec; }
.cp td { padding: 9px 10px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
.cp tr.off td { color: #9aa4b2; }
.cp td small { display: block; color: #7a8699; }
.cp .pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #eef1f6; color: #4a5568; }
.cp .pill.admin { background: #102a4c; color: #fff; }
.cp .pill.super_manager { background: #00549a; color: #fff; }
.cp .pill.store_manager { background: #dbeafe; color: #0b4a8b; }
.cp .pill.off { background: #fdecea; color: #8a1c12; }
.cp-modal-back { position: fixed; inset: 0; background: rgba(16, 42, 76, .35); display: grid; place-items: center; padding: 20px; z-index: 50; }
.cp-modal-back .cp-card { max-width: 520px; max-height: 92vh; overflow: auto; }
@media (max-width: 700px) { .cp .hide-sm { display: none; } }
