.sf-card { background: #fff; border: 1px solid #c9c9c9; border-radius: .25rem; box-shadow: 0 2px 2px rgba(0,0,0,.08); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #181818; }
.sf-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding: .75rem 1rem; }
.sf-title { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .95rem; }
.sf-icon { width: 1.6rem; height: 1.6rem; border-radius: .25rem; background: #cb65ff; display: grid; place-items: center; color: #fff; }
.sf-btn { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; padding: .3rem .75rem; border-radius: .25rem; border: 1px solid #c9c9c9; color: #0176d3; background: #fff; white-space: nowrap; }
.sf-btn.brand { background: #0176d3; border-color: #0176d3; color: #fff; }
.sf-btn.off { color: #aeaeae; }
.sf-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.sf-table th { text-align: left; font-weight: 700; color: #444; background: #f3f3f3; border-bottom: 1px solid #e5e5e5; padding: .45rem .6rem; white-space: nowrap; }
.sf-table td { border-bottom: 1px solid #e5e5e5; padding: .5rem .6rem; white-space: nowrap; }
.sf-table tr:hover td { background: #f3f9ff; }
.sf-link { color: #0176d3; }
.sf-ok { color: #2e844a; font-weight: 700; }
.sf-bad { color: #ba0517; font-weight: 600; }
.sf-weak { color: #706e6b; }
.sf-check { width: .85rem; height: .85rem; border: 1px solid #939393; border-radius: .125rem; display: inline-block; vertical-align: middle; }
.sf-check.on { background: #0176d3; border-color: #0176d3; }
.stmt { width: 100%; border-collapse: collapse; font-family: Arial, Helvetica, sans-serif; font-size: .78rem; color: #111; }
.stmt th, .stmt td { border: 1px solid #333; padding: .3rem .4rem; text-align: center; white-space: nowrap; }
.stmt th { background: #d9d9d9; }
.stmt td.lbl { font-weight: 700; background: #f2f2f2; text-align: center; }
.dash-tile .v { font-size: 2rem; font-weight: 300; line-height: 1.1; color: #181818; }
.chart-grid { stroke: #e5e5e5; stroke-width: 1; }
.chart-axis { fill: #706e6b; font-size: 11px; }
.chart-bar { fill: #0176d3; }
.chart-bar:hover { fill: #014486; }
.stmt td.total { font-weight: 700; background: #eee; }
.chart-label { fill: #181818; font-size: 11px; font-weight: 600; }

/* Tabs */
.ex-tab { display: flex; align-items: center; gap: .75rem; text-align: left; padding: .85rem 1rem; border-radius: .9rem; border: 1px solid #e5e7eb; background: #fff; color: #374151; transition: border-color .15s, box-shadow .15s, transform .15s, background .15s; cursor: pointer; }
.ex-tab:hover { border-color: #93c5fd; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(15, 23, 42, .06); }
.ex-tab:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.ex-tab[aria-selected="true"] { border-color: #2563eb; background: #eff6ff; box-shadow: 0 6px 18px rgba(37, 99, 235, .15); }
.ex-tab-icon { flex: none; width: 2.25rem; height: 2.25rem; border-radius: .6rem; display: grid; place-items: center; background: #f3f4f6; color: #4b5563; transition: background .15s, color .15s; }
.ex-tab[aria-selected="true"] .ex-tab-icon { background: #2563eb; color: #fff; }
.ex-tab-text { display: flex; flex-direction: column; min-width: 0; }
.ex-tab-title { font-weight: 700; font-size: .95rem; color: #111827; }
.ex-tab-hint { font-size: .75rem; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-panel:focus-visible { outline: none; }
.ex-panel[hidden] { display: none; }
@media (max-width: 400px) { .ex-tab { padding: .7rem; gap: .55rem; } .ex-tab-icon { width: 2rem; height: 2rem; } }
.ex-tabs[hidden] { display: none; }

/* Panel intro + "How it works" */
.ex-intro { max-width: 48rem; margin-bottom: 2rem; }
.ex-intro h2 { font-size: 1.5rem; line-height: 1.25; font-weight: 800; color: #111827; margin-bottom: .75rem; }
.ex-intro p { color: #4b5563; line-height: 1.65; }
.ex-notes { margin-top: 1.5rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.25rem 1.5rem; }
.ex-notes-title { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #2563eb; margin-bottom: .75rem; }
.ex-notes ul { display: grid; gap: .65rem 2rem; }
@media (min-width: 768px) { .ex-notes ul { grid-template-columns: 1fr 1fr; } }
.ex-notes li { position: relative; padding-left: 1.4rem; font-size: .9rem; line-height: 1.55; color: #374151; }
.ex-notes li::before { content: ""; position: absolute; left: 0; top: .5rem; width: .5rem; height: .5rem; border-radius: 999px; background: #2563eb; box-shadow: 0 0 0 3px #dbeafe; }
.ex-portal-notes .ex-notes ul { grid-template-columns: 1fr; }

/* Chips: status always carries a word, never color alone */
.ex-chip { display: inline-flex; align-items: center; gap: .2rem; font-size: .68rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; background: #f3f4f6; color: #4b5563; white-space: nowrap; }
.ex-chip.ok { background: #e7f5ec; color: #1e6b3a; }
.ex-chip.warn { background: #fdf0e1; color: #8a4b08; }
.ex-pdf { flex: none; font-size: .55rem; font-weight: 800; color: #fff; background: #c23934; border-radius: .2rem; padding: .3rem .25rem; letter-spacing: .03em; }

/* Salesforce icon tints */
.ex-icon-green { background: #3ba755; font-size: .8rem; }
.ex-icon-blue { background: #0176d3; font-size: .8rem; }
.ex-icon-orange { background: #fe9339; font-size: .9rem; }
.ex-icon-gold { background: #d8a200; font-size: .85rem; font-weight: 800; }

/* Certificate */
.ex-cert { background: #fff; border-radius: .75rem; padding: .75rem; box-shadow: 0 10px 30px rgba(15, 23, 42, .08); border: 1px solid #e5e7eb; }
.ex-cert-inner { border: 3px double #b08d3c; border-radius: .4rem; padding: 2rem 1.5rem 1.5rem; text-align: center; background: linear-gradient(180deg, #fffdf7, #fff); }

/* Forms */
.ex-form-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; box-shadow: 0 6px 20px rgba(15, 23, 42, .05); overflow: hidden; }
.ex-steps { display: flex; overflow-x: auto; gap: .25rem; padding: .9rem 1rem; background: #f8fafc; border-bottom: 1px solid #e5e7eb; font-size: .72rem; color: #6b7280; }
.ex-steps li { display: flex; align-items: center; gap: .4rem; padding: .3rem .6rem; border-radius: 999px; white-space: nowrap; }
.ex-steps li span { width: 1.35rem; height: 1.35rem; border-radius: 999px; display: grid; place-items: center; background: #e5e7eb; color: #374151; font-weight: 700; font-size: .68rem; }
.ex-steps li.done span { background: #dbeafe; color: #1d4ed8; }
.ex-steps li.on { background: #eff6ff; color: #1d4ed8; font-weight: 700; }
.ex-steps li.on span { background: #2563eb; color: #fff; }
.ex-q { font-size: .9rem; font-weight: 600; color: #111827; margin-bottom: .5rem; }
.ex-radios { display: flex; flex-wrap: wrap; gap: .5rem; }
.ex-radios span { font-size: .8rem; padding: .4rem .9rem; border: 1px solid #d1d5db; border-radius: .5rem; color: #374151; background: #fff; }
.ex-radios span.on { border-color: #2563eb; background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.ex-reveal { border-left: 3px solid #93c5fd; padding-left: 1rem; }
.ex-label { font-size: .7rem; font-weight: 600; color: #6b7280; margin-bottom: .25rem; }
.ex-input, .ex-select { font-size: .8rem; color: #111827; border: 1px solid #d1d5db; border-radius: .45rem; padding: .45rem .65rem; background: #fff; }
.ex-select { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.ex-select span { color: #6b7280; }
.ex-sign { display: flex; align-items: center; justify-content: space-between; border: 1px dashed #93c5fd; border-radius: .6rem; background: #f8fbff; padding: .5rem .75rem; }
.ex-sign-clear { font-size: .7rem; color: #2563eb; font-weight: 600; }

/* Receipt letter */
.ex-letter { background: #fff; border: 1px solid #e5e7eb; border-radius: .5rem; padding: 1.75rem; box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.ex-logo { width: 1.9rem; height: 1.9rem; border-radius: .5rem; background: linear-gradient(135deg, #1d4ed8, #0f766e); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.ex-logo.sm { width: 1.5rem; height: 1.5rem; font-size: .75rem; }

/* Browser mock */
.ex-browser { border-radius: .75rem; overflow: hidden; border: 1px solid #d1d5db; box-shadow: 0 16px 40px rgba(15, 23, 42, .12); background: #fff; }
.ex-browser-bar { display: flex; align-items: center; gap: .35rem; padding: .55rem .75rem; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; }
.ex-browser-bar > span { width: .6rem; height: .6rem; border-radius: 999px; background: #d1d5db; }
.ex-url { margin-left: .75rem; flex: 1; max-width: 22rem; font-size: .7rem; color: #6b7280; background: #fff; border: 1px solid #e5e7eb; border-radius: 999px; padding: .2rem .75rem; }
.ex-hero { padding: 2rem 1.5rem; background: linear-gradient(135deg, #0f1d3d 0%, #1e3a8a 60%, #0f766e 100%); }
.ex-mini-btn { display: inline-block; font-size: .7rem; font-weight: 700; color: #fff; background: #f59e0b; border-radius: .4rem; padding: .25rem .6rem; }
.ex-mini-btn.lg { font-size: .8rem; padding: .5rem .9rem; }
.ex-mini-btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.5); }
