/* v45 QuickBooks Online screens. Phone-first; two columns on wide screens. QuickBooks green per Intuit's brand (#2CA01C). */
.qb { --qb: #2ca01c; --qb-dark: #108000; max-width: 760px; }
.qb-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--qb); color: #fff; font: 800 .95rem/1 system-ui, sans-serif; letter-spacing: -.04em; flex: none; }
.qb-back { display: inline-flex; align-items: center; gap: .2rem; color: var(--muted); font-weight: 650; font-size: .85rem; text-decoration: none; margin-bottom: .1rem; }
.qb-back .flip { transform: rotate(180deg); }
.qb-hero { padding: 1.2rem; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--qb) 14%, transparent), transparent 60%), var(--surface); }
.qb-hero-top { display: flex; gap: .85rem; align-items: flex-start; }
.qb-hero-top .qb-mark { width: 48px; height: 48px; font-size: 1.25rem; box-shadow: 0 6px 18px color-mix(in srgb, var(--qb) 35%, transparent); }
.qb-hero h2 { margin: 0 0 .25rem; font-size: 1.3rem; line-height: 1.2; } .qb-hero-top p { margin: 0; color: var(--ink-2); }
.qb-points { list-style: none; margin: 1.1rem 0; padding: 0; display: grid; gap: .55rem; }
.qb-points li { display: flex; gap: .7rem; align-items: center; }
.qb-points b { display: block; } .qb-points small { color: var(--muted); }
.qb-pt-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: color-mix(in srgb, var(--qb) 13%, var(--surface)); color: var(--qb-dark); flex: none; }
.qb-connect { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; min-height: 54px; border: 0; border-radius: 14px; background: var(--qb); color: #fff; font: inherit; font-weight: 750; font-size: 1.05rem; cursor: pointer; box-shadow: 0 6px 18px color-mix(in srgb, var(--qb) 35%, transparent); }
.qb-connect:hover { background: var(--qb-dark); } .qb-connect:disabled { opacity: .7; }
.qb-connect .qb-mark { width: 26px; height: 26px; background: #fff; color: var(--qb); font-size: .75rem; }
.qb-fine { font-size: .82rem; margin: .7rem 0 0; text-align: center; }
.qb-note { display: flex; gap: .4rem; align-items: center; background: var(--info-bg); color: var(--info); border-radius: 12px; padding: .7rem .8rem; margin: 0; }
.qb-co { padding: 1rem; border-top: 4px solid var(--qb); } .qb-co.bad { border-top-color: var(--bad); }
.qb-co-top { display: flex; gap: .75rem; align-items: center; margin-bottom: .9rem; }
.qb-co-name { flex: 1; min-width: 0; } .qb-co-name b { display: block; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .qb-co-name small { color: var(--muted); }
.qb-tag { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: .2rem .55rem; }
.qb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--qb); box-shadow: 0 0 0 4px color-mix(in srgb, var(--qb) 20%, transparent); }
.qb-actions { display: grid; grid-template-columns: 1fr auto; gap: .6rem; }
.qb-sync { background: linear-gradient(145deg, #4cc13c -30%, var(--qb) 60%) !important; color: #fff !important; box-shadow: 0 4px 14px color-mix(in srgb, var(--qb) 38%, transparent) !important; }
.qb .spin { animation: qbspin 1s linear infinite; } @keyframes qbspin { to { transform: rotate(360deg); } }
.qb-prog { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin-top: .8rem; }
.qb-prog i { display: block; height: 100%; width: 40%; background: var(--qb); border-radius: 4px; animation: qbslide 1.2s ease-in-out infinite; } @keyframes qbslide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.qb-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin: .9rem 0; }
.qb-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: .7rem .75rem; display: grid; gap: .1rem; }
.qb-stat b { font-size: 1.55rem; line-height: 1.1; } .qb-stat small { color: var(--muted); font-size: .78rem; }
.qb-stat-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; margin-bottom: .2rem; }
.qb-stat.ok .qb-stat-ic { background: var(--ok-bg); color: var(--ok); } .qb-stat.bad .qb-stat-ic { background: var(--bad-bg); color: var(--bad); } .qb-stat.info .qb-stat-ic { background: var(--info-bg); color: var(--info); }
.qb-stat.bad b { color: var(--bad); }
.qb-sec { margin-top: 1.1rem; } .qb-sec > h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .45rem .2rem; }
.qb-sub { margin: -.2rem 0 .5rem .2rem; font-size: .88rem; }
.qb-list { list-style: none; margin: 0; padding: .2rem 0; }
.qb-list > li { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; min-height: 60px; } .qb-list > li + li { border-top: 1px solid var(--line); }
.qb-rec-main { flex: 1; min-width: 0; } .qb-rec-main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .qb-rec-main small { color: var(--muted); display: block; }
.qb-rec-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex: none; background: var(--surface-3); color: var(--ink-2); }
.qb-rec-ic.k-invoice { background: var(--accent-soft); color: var(--accent); } .qb-rec-ic.k-payment { background: var(--ok-bg); color: var(--ok); }
.qb-rec-ic.k-purchase { background: var(--warn-bg); color: var(--warn); } .qb-rec-ic.k-customer { background: var(--info-bg); color: var(--info); }
.qb-rec.error .qb-rec-ic { background: var(--bad-bg); color: var(--bad); }
.qb-err { color: var(--bad) !important; white-space: normal; line-height: 1.3; margin-top: .1rem; }
.qb-st { display: inline-flex; align-items: center; gap: .2rem; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .2rem .55rem; flex: none; }
.qb-st.synced { color: var(--ok); background: var(--ok-bg); } .qb-st.pending, .qb-st.skipped { color: var(--muted); background: var(--surface-3); }
.qb-retry { flex: none; min-height: 40px; padding: 0 .9rem; }
.qb-switch { position: relative; width: 50px; height: 30px; flex: none; } .qb-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.qb-switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background .15s; }
.qb-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.qb-switch input:checked + i { background: var(--qb); } .qb-switch input:checked + i::after { transform: translateX(20px); }
.qb-switch input:focus-visible + i { outline: 3px solid var(--accent); outline-offset: 2px; }
.qb-disc { width: 100%; margin: 1.4rem 0 .5rem; }
.qb-empty { padding: 1.1rem; text-align: center; } .qb-empty p { margin: 0 0 .6rem; } .qb-empty p:last-child { margin: 0; }
.qb-form { padding: .3rem 0; }
.qb-field { display: flex; flex-direction: column; gap: .35rem; padding: .7rem .9rem; } .qb-field + .qb-field { border-top: 1px solid var(--line); }
.qb-field b { display: block; } .qb-field small { color: var(--muted); }
.qb-sel { width: 100%; min-height: 46px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; padding: 0 .7rem; }
.qb-savebar { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); margin-top: 1rem; padding: .6rem 0; background: linear-gradient(transparent, var(--bg) 35%); }
.qb-save { width: 100%; }
@media (min-width: 900px) {
  .qb-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; align-items: start; }
  .qb-body > .qb-co, .qb-body > .qb-stats, .qb-body > .qb-hero, .qb-body > .qb-skel, .qb-body > .qb-empty { grid-column: 1 / -1; }
  .qb-body > .qb-disc { grid-column: 1 / -1; width: auto; justify-self: start; }
  .qb { max-width: 1040px; } .qb-hero { padding: 1.6rem; } .qb-points { grid-template-columns: 1fr 1fr; }
  .qb-field { flex-direction: row; align-items: center; justify-content: space-between; } .qb-field > span { flex: 1; } .qb-field .qb-sel { width: 320px; }
  .qb-savebar { bottom: 0; }
}
/* polish: names wrap to two lines instead of cutting off on phones */
.qb-co-name b, .qb-rec-main b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.qb-co-name b { font-size: 1.05rem; }

/* v45.2 Intuit's official Connect to QuickBooks button: shown at its native size/aspect, base + hover images, never restyled. */
.qb-connect-row { display: flex; justify-content: center; margin: .4rem 0 0; }
.qb-c2qb { display: inline-block; position: relative; padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; border-radius: 4px; }
.qb-c2qb img { display: block; width: 274px; height: 48px; max-width: none; }
.qb-c2qb .qb-c2qb-hover { position: absolute; inset: 0; opacity: 0; }
.qb-c2qb:hover .qb-c2qb-hover, .qb-c2qb:focus-visible .qb-c2qb-hover { opacity: 1; }
.qb-c2qb:focus-visible { outline: 3px solid color-mix(in srgb, var(--qb) 45%, transparent); outline-offset: 3px; }
.qb-c2qb:disabled { opacity: .6; cursor: progress; }
.qb-reconnect .qb-sub { margin: .2rem 0 .3rem; }
.qb-mark .icon, .qb-mark svg { color: inherit; }
/* v45.3 Pro gate */
.qb-locked h2 .pro-tag { vertical-align: middle; margin-left: .2rem; }
.qb-locked .btn-row { margin-top: .2rem; flex-wrap: wrap; }
.qb-locked .qb-disc { margin-top: .4rem; }
.more-row b .pro-tag { margin-left: .35rem; vertical-align: middle; font-size: .65rem; }
